myapikey 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,285 @@
1
+ var pu=e=>{throw TypeError(e)};var Em=(e,t,n)=>t.has(e)||pu("Cannot "+n);var ko=(e,t,n)=>(Em(e,t,"read from private field"),n?n.call(e):t.get(e)),mu=(e,t,n)=>t.has(e)?pu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/**
2
+ * @vue/shared v3.5.40
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function hi(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const We={},lo=[],Tn=()=>{},fd=()=>!1,ca=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),da=e=>e.startsWith("onUpdate:"),ft=Object.assign,gi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Om=Object.prototype.hasOwnProperty,tt=(e,t)=>Om.call(e,t),ke=Array.isArray,io=e=>cr(e)==="[object Map]",pd=e=>cr(e)==="[object Set]",hu=e=>cr(e)==="[object Date]",Oe=e=>typeof e=="function",rt=e=>typeof e=="string",tn=e=>typeof e=="symbol",Je=e=>e!==null&&typeof e=="object",md=e=>(Je(e)||Oe(e))&&Oe(e.then)&&Oe(e.catch),hd=Object.prototype.toString,cr=e=>hd.call(e),Pm=e=>cr(e).slice(8,-1),gd=e=>cr(e)==="[object Object]",fa=e=>rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Do=hi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pa=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tm=/-\w/g,At=pa(e=>e.replace(Tm,t=>t.slice(1).toUpperCase())),$m=/\B([A-Z])/g,as=pa(e=>e.replace($m,"-$1").toLowerCase()),ma=pa(e=>e.charAt(0).toUpperCase()+e.slice(1)),Dr=pa(e=>e?`on${ma(e)}`:""),St=(e,t)=>!Object.is(e,t),Fr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},vd=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},vi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Im=e=>{const t=rt(e)?Number(e):NaN;return isNaN(t)?e:t};let gu;const ha=()=>gu||(gu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hn(e){if(ke(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=rt(s)?Dm(s):hn(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(rt(e)||Je(e))return e}const Mm=/;(?![^(]*\))/g,Lm=/:([^]+)/,Rm=/\/\*[^]*?\*\//g;function Dm(e){const t={};return e.replace(Rm,"").split(Mm).forEach(n=>{if(n){const s=n.split(Lm);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function _e(e){let t="";if(rt(e))t=e;else if(ke(e))for(let n=0;n<e.length;n++){const s=_e(e[n]);s&&(t+=s+" ")}else if(Je(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Et(e){if(!e)return null;let{class:t,style:n}=e;return t&&!rt(t)&&(e.class=_e(t)),n&&(e.style=hn(n)),e}const Fm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Nm=hi(Fm);function yd(e){return!!e||e===""}function qm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=yi(e[s],t[s]);return n}function yi(e,t){if(e===t)return!0;let n=hu(e),s=hu(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=tn(e),s=tn(t),n||s)return e===t;if(n=ke(e),s=ke(t),n||s)return n&&s?qm(e,t):!1;if(n=Je(e),s=Je(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const a in e){const i=e.hasOwnProperty(a),u=t.hasOwnProperty(a);if(i&&!u||!i&&u||!yi(e[a],t[a]))return!1}}return String(e)===String(t)}const bd=e=>!!(e&&e.__v_isRef===!0),O=e=>rt(e)?e:e==null?"":ke(e)||Je(e)&&(e.toString===hd||!Oe(e.toString))?bd(e)?O(e.value):JSON.stringify(e,_d,2):String(e),_d=(e,t)=>bd(t)?_d(e,t.value):io(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[Ya(s,r)+" =>"]=o,n),{})}:pd(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ya(n))}:tn(t)?Ya(t):Je(t)&&!ke(t)&&!gd(t)?String(t):t,Ya=(e,t="")=>{var n;return tn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.5.40
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let bt;class wd{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&&bt&&(bt.active?(this.parent=bt,this.index=(bt.scopes||(bt.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 o=this.scopes.slice();for(t=0,n=o.length;t<n;t++)o[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=bt;try{return bt=this,t()}finally{bt=n}}}on(){++this._on===1&&(this.prevScope=bt,bt=this)}off(){if(this._on>0&&--this._on===0){if(bt===this)bt=this.prevScope;else{let t=bt;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 o=this.scopes.slice();for(n=0,s=o.length;n<s;n++)o[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function bi(e){return new wd(e)}function ga(){return bt}function _i(e,t=!1){bt&&bt.cleanups.push(e)}let ot;const Xa=new WeakSet;class xd{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,bt&&(bt.active?bt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Xa.has(this)&&(Xa.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Sd(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,vu(this),Cd(this);const t=ot,n=fn;ot=this,fn=!0;try{return this.fn()}finally{Ad(this),ot=t,fn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ki(t);this.deps=this.depsTail=void 0,vu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Xa.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Sl(this)&&this.run()}get dirty(){return Sl(this)}}let kd=0,Fo,No;function Sd(e,t=!1){if(e.flags|=8,t){e.next=No,No=e;return}e.next=Fo,Fo=e}function wi(){kd++}function xi(){if(--kd>0)return;if(No){let t=No;for(No=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Fo;){let t=Fo;for(Fo=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 Cd(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ad(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),ki(s),Bm(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Sl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ed(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ed(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wo)||(e.globalVersion=Wo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sl(e))))return;e.flags|=2;const t=e.dep,n=ot,s=fn;ot=e,fn=!0;try{Cd(e);const o=e.fn(e._value);(t.version===0||St(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ot=n,fn=s,Ad(e),e.flags&=-3}}function ki(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)ki(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Bm(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let fn=!0;const Od=[];function es(){Od.push(fn),fn=!1}function ts(){const e=Od.pop();fn=e===void 0?!0:e}function vu(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ot;ot=void 0;try{t()}finally{ot=n}}}let Wo=0;class Vm{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 va{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(!ot||!fn||ot===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ot)n=this.activeLink=new Vm(ot,this),ot.deps?(n.prevDep=ot.depsTail,ot.depsTail.nextDep=n,ot.depsTail=n):ot.deps=ot.depsTail=n,Pd(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=ot.depsTail,n.nextDep=void 0,ot.depsTail.nextDep=n,ot.depsTail=n,ot.deps===n&&(ot.deps=s)}return n}trigger(t){this.version++,Wo++,this.notify(t)}notify(t){wi();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{xi()}}}function Pd(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)Pd(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Vr=new WeakMap,Vs=Symbol(""),Cl=Symbol(""),Ko=Symbol("");function Mt(e,t,n){if(fn&&ot){let s=Vr.get(e);s||Vr.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new va),o.map=s,o.key=n),o.track()}}function Wn(e,t,n,s,o,r){const a=Vr.get(e);if(!a){Wo++;return}const i=u=>{u&&u.trigger()};if(wi(),t==="clear")a.forEach(i);else{const u=ke(e),c=u&&fa(n);if(u&&n==="length"){const d=Number(s);a.forEach((f,p)=>{(p==="length"||p===Ko||!tn(p)&&p>=d)&&i(f)})}else switch((n!==void 0||a.has(void 0))&&i(a.get(n)),c&&i(a.get(Ko)),t){case"add":u?c&&i(a.get("length")):(i(a.get(Vs)),io(e)&&i(a.get(Cl)));break;case"delete":u||(i(a.get(Vs)),io(e)&&i(a.get(Cl)));break;case"set":io(e)&&i(a.get(Vs));break}}xi()}function Um(e,t){const n=Vr.get(e);return n&&n.get(t)}function Js(e){const t=He(e);return t===e?t:(Mt(t,"iterate",Ko),Zt(e)?t:t.map(gn))}function ya(e){return Mt(e=He(e),"iterate",Ko),e}function En(e,t){return ns(e)?mo(Us(e)?gn(t):t):gn(t)}const jm={__proto__:null,[Symbol.iterator](){return Ja(this,Symbol.iterator,e=>En(this,e))},concat(...e){return Js(this).concat(...e.map(t=>ke(t)?Js(t):t))},entries(){return Ja(this,"entries",e=>(e[1]=En(this,e[1]),e))},every(e,t){return qn(this,"every",e,t,void 0,arguments)},filter(e,t){return qn(this,"filter",e,t,n=>n.map(s=>En(this,s)),arguments)},find(e,t){return qn(this,"find",e,t,n=>En(this,n),arguments)},findIndex(e,t){return qn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qn(this,"findLast",e,t,n=>En(this,n),arguments)},findLastIndex(e,t){return qn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Qa(this,"includes",e)},indexOf(...e){return Qa(this,"indexOf",e)},join(e){return Js(this).join(e)},lastIndexOf(...e){return Qa(this,"lastIndexOf",e)},map(e,t){return qn(this,"map",e,t,void 0,arguments)},pop(){return So(this,"pop")},push(...e){return So(this,"push",e)},reduce(e,...t){return yu(this,"reduce",e,t)},reduceRight(e,...t){return yu(this,"reduceRight",e,t)},shift(){return So(this,"shift")},some(e,t){return qn(this,"some",e,t,void 0,arguments)},splice(...e){return So(this,"splice",e)},toReversed(){return Js(this).toReversed()},toSorted(e){return Js(this).toSorted(e)},toSpliced(...e){return Js(this).toSpliced(...e)},unshift(...e){return So(this,"unshift",e)},values(){return Ja(this,"values",e=>En(this,e))}};function Ja(e,t,n){const s=ya(e),o=s[t]();return s!==e&&!Zt(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const Hm=Array.prototype;function qn(e,t,n,s,o,r){const a=ya(e),i=a!==e&&!Zt(e),u=a[t];if(u!==Hm[t]){const f=u.apply(e,r);return i?gn(f):f}let c=n;a!==e&&(i?c=function(f,p){return n.call(this,En(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const d=u.call(a,c,s);return i&&o?o(d):d}function yu(e,t,n,s){const o=ya(e),r=o!==e&&!Zt(e);let a=n,i=!1;o!==e&&(r?(i=s.length===0,a=function(c,d,f){return i&&(i=!1,c=En(e,c)),n.call(this,c,En(e,d),f,e)}):n.length>3&&(a=function(c,d,f){return n.call(this,c,d,f,e)}));const u=o[t](a,...s);return i?En(e,u):u}function Qa(e,t,n){const s=He(e);Mt(s,"iterate",Ko);const o=s[t](...n);return(o===-1||o===!1)&&wa(n[0])?(n[0]=He(n[0]),s[t](...n)):o}function So(e,t,n=[]){es(),wi();const s=He(e)[t].apply(e,n);return xi(),ts(),s}const Wm=hi("__proto__,__v_isRef,__isVue"),Td=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tn));function Km(e){tn(e)||(e=String(e));const t=He(this);return Mt(t,"has",e),t.hasOwnProperty(e)}class $d{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Fd:Dd:r?Rd:Ld).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=ke(t);if(!o){let u;if(a&&(u=jm[n]))return u;if(n==="hasOwnProperty")return Km}const i=Reflect.get(t,n,ut(t)?t:s);if((tn(n)?Td.has(n):Wm(n))||(o||Mt(t,"get",n),r))return i;if(ut(i)){const u=a&&fa(n)?i:i.value;return o&&Je(u)?El(u):u}return Je(i)?o?El(i):Hs(i):i}}class Id extends $d{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];const a=ke(t)&&fa(n);if(!this._isShallow){const c=ns(r);if(!Zt(s)&&!ns(s)&&(r=He(r),s=He(s)),!a&&ut(r)&&!ut(s))return c||(r.value=s),!0}const i=a?Number(n)<t.length:tt(t,n),u=Reflect.set(t,n,s,ut(t)?t:o);return t===He(o)&&u&&(i?St(s,r)&&Wn(t,"set",n,s):Wn(t,"add",n,s)),u}deleteProperty(t,n){const s=tt(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Wn(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!tn(n)||!Td.has(n))&&Mt(t,"has",n),s}ownKeys(t){return Mt(t,"iterate",ke(t)?"length":Vs),Reflect.ownKeys(t)}}class Md extends $d{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const zm=new Id,Gm=new Md,Ym=new Id(!0),Xm=new Md(!0),Al=e=>e,kr=e=>Reflect.getPrototypeOf(e);function Jm(e,t,n){return function(...s){const o=this.__v_raw,r=He(o),a=io(r),i=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,c=o[e](...s),d=n?Al:t?mo:gn;return!t&&Mt(r,"iterate",u?Cl:Vs),ft(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:i?[d(f[0]),d(f[1])]:d(f),done:p}}})}}function Sr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qm(e,t){const n={get(o){const r=this.__v_raw,a=He(r),i=He(o);e||(St(o,i)&&Mt(a,"get",o),Mt(a,"get",i));const{has:u}=kr(a),c=t?Al:e?mo:gn;if(u.call(a,o))return c(r.get(o));if(u.call(a,i))return c(r.get(i));r!==a&&r.get(o)},get size(){const o=this.__v_raw;return!e&&Mt(He(o),"iterate",Vs),o.size},has(o){const r=this.__v_raw,a=He(r),i=He(o);return e||(St(o,i)&&Mt(a,"has",o),Mt(a,"has",i)),o===i?r.has(o):r.has(o)||r.has(i)},forEach(o,r){const a=this,i=a.__v_raw,u=He(i),c=t?Al:e?mo:gn;return!e&&Mt(u,"iterate",Vs),i.forEach((d,f)=>o.call(r,c(d),c(f),a))}};return ft(n,e?{add:Sr("add"),set:Sr("set"),delete:Sr("delete"),clear:Sr("clear")}:{add(o){const r=He(this),a=kr(r),i=He(o),u=!t&&!Zt(o)&&!ns(o)?i:o;return a.has.call(r,u)||St(o,u)&&a.has.call(r,o)||St(i,u)&&a.has.call(r,i)||(r.add(u),Wn(r,"add",u,u)),this},set(o,r){!t&&!Zt(r)&&!ns(r)&&(r=He(r));const a=He(this),{has:i,get:u}=kr(a);let c=i.call(a,o);c||(o=He(o),c=i.call(a,o));const d=u.call(a,o);return a.set(o,r),c?St(r,d)&&Wn(a,"set",o,r):Wn(a,"add",o,r),this},delete(o){const r=He(this),{has:a,get:i}=kr(r);let u=a.call(r,o);u||(o=He(o),u=a.call(r,o)),i&&i.call(r,o);const c=r.delete(o);return u&&Wn(r,"delete",o,void 0),c},clear(){const o=He(this),r=o.size!==0,a=o.clear();return r&&Wn(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Jm(o,e,t)}),n}function ba(e,t){const n=Qm(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(tt(n,o)&&o in s?n:s,o,r)}const Zm={get:ba(!1,!1)},eh={get:ba(!1,!0)},th={get:ba(!0,!1)},nh={get:ba(!0,!0)},Ld=new WeakMap,Rd=new WeakMap,Dd=new WeakMap,Fd=new WeakMap;function sh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hs(e){return ns(e)?e:_a(e,!1,zm,Zm,Ld)}function oh(e){return _a(e,!1,Ym,eh,Rd)}function El(e){return _a(e,!0,Gm,th,Dd)}function Qs(e){return _a(e,!0,Xm,nh,Fd)}function _a(e,t,n,s,o){if(!Je(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const a=sh(Pm(e));if(a===0)return e;const i=new Proxy(e,a===2?s:n);return o.set(e,i),i}function Us(e){return ns(e)?Us(e.__v_raw):!!(e&&e.__v_isReactive)}function ns(e){return!!(e&&e.__v_isReadonly)}function Zt(e){return!!(e&&e.__v_isShallow)}function wa(e){return e?!!e.__v_raw:!1}function He(e){const t=e&&e.__v_raw;return t?He(t):e}function Nd(e){return!tt(e,"__v_skip")&&Object.isExtensible(e)&&vd(e,"__v_skip",!0),e}const gn=e=>Je(e)?Hs(e):e,mo=e=>Je(e)?El(e):e;function ut(e){return e?e.__v_isRef===!0:!1}function F(e){return qd(e,!1)}function xa(e){return qd(e,!0)}function qd(e,t){return ut(e)?e:new rh(e,t)}class rh{constructor(t,n){this.dep=new va,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:He(t),this._value=n?t:gn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Zt(t)||ns(t);t=s?t:He(t),St(t,n)&&(this._rawValue=t,this._value=s?t:gn(t),this.dep.trigger())}}function ah(e){e.dep&&e.dep.trigger()}function l(e){return ut(e)?e.value:e}function Rt(e){return Oe(e)?e():l(e)}const lh={get:(e,t,n)=>t==="__v_raw"?e:l(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return ut(o)&&!ut(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Bd(e){return Us(e)?e:new Proxy(e,lh)}class ih{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new va,{get:s,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Vd(e){return new ih(e)}function Yt(e){const t=ke(e)?new Array(e.length):{};for(const n in e)t[n]=Ud(e,n);return t}class uh{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=tn(n)?n:String(n),this._raw=He(t);let o=!0,r=t;if(!ke(t)||tn(this._key)||!fa(this._key))do o=!wa(r)||Zt(r);while(o&&(r=r.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=l(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ut(this._raw[this._key])){const n=this._object[this._key];if(ut(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Um(this._raw,this._key)}}class ch{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function dh(e,t,n){return ut(e)?e:Oe(e)?new ch(e):Je(e)&&arguments.length>1?Ud(e,t,n):F(e)}function Ud(e,t,n){return new uh(e,t,n)}class fh{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new va(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return Sd(this,!0),!0}get value(){const t=this.dep.track();return Ed(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ph(e,t,n=!1){let s,o;return Oe(e)?s=e:(s=e.get,o=e.set),new fh(s,o,n)}const Cr={},Ur=new WeakMap;let Rs;function mh(e,t=!1,n=Rs){if(n){let s=Ur.get(n);s||Ur.set(n,s=[]),s.push(e)}}function hh(e,t,n=We){const{immediate:s,deep:o,once:r,scheduler:a,augmentJob:i,call:u}=n,c=w=>o?w:Zt(w)||o===!1||o===0?Kn(w,1):Kn(w);let d,f,p,m,g=!1,_=!1;if(ut(e)?(f=()=>e.value,g=Zt(e)):Us(e)?(f=()=>c(e),g=!0):ke(e)?(_=!0,g=e.some(w=>Us(w)||Zt(w)),f=()=>e.map(w=>{if(ut(w))return w.value;if(Us(w))return c(w);if(Oe(w))return u?u(w,2):w()})):Oe(e)?t?f=u?()=>u(e,2):e:f=()=>{if(p){es();try{p()}finally{ts()}}const w=Rs;Rs=d;try{return u?u(e,3,[m]):e(m)}finally{Rs=w}}:f=Tn,t&&o){const w=f,L=o===!0?1/0:o;f=()=>Kn(w(),L)}const k=ga(),h=()=>{d.stop(),k&&k.active&&gi(k.effects,d)};if(r&&t){const w=t;t=(...L)=>{const $=w(...L);return h(),$}}let b=_?new Array(e.length).fill(Cr):Cr;const T=w=>{if(!(!(d.flags&1)||!d.dirty&&!w))if(t){const L=d.run();if(w||o||g||(_?L.some(($,A)=>St($,b[A])):St(L,b))){p&&p();const $=Rs;Rs=d;try{const A=[L,b===Cr?void 0:_&&b[0]===Cr?[]:b,m];b=L,u?u(t,3,A):t(...A)}finally{Rs=$}}}else d.run()};return i&&i(T),d=new xd(f),d.scheduler=a?()=>a(T,!1):T,m=w=>mh(w,!1,d),p=d.onStop=()=>{const w=Ur.get(d);if(w){if(u)u(w,4);else for(const L of w)L();Ur.delete(d)}},t?s?T(!0):b=d.run():a?a(T.bind(null,!0),!0):d.run(),h.pause=d.pause.bind(d),h.resume=d.resume.bind(d),h.stop=h,h}function Kn(e,t=1/0,n){if(t<=0||!Je(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ut(e))Kn(e.value,t,n);else if(ke(e))for(let s=0;s<e.length;s++)Kn(e[s],t,n);else if(pd(e)||io(e))e.forEach(s=>{Kn(s,t,n)});else if(gd(e)){for(const s in e)Kn(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Kn(e[s],t,n)}return e}/**
10
+ * @vue/runtime-core v3.5.40
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function dr(e,t,n,s){try{return s?e(...s):e()}catch(o){ka(o,t,n)}}function un(e,t,n,s){if(Oe(e)){const o=dr(e,t,n,s);return o&&md(o)&&o.catch(r=>{ka(r,t,n)}),o}if(ke(e)){const o=[];for(let r=0;r<e.length;r++)o.push(un(e[r],t,n,s));return o}}function ka(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||We;if(t){let i=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const d=i.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,u,c)===!1)return}i=i.parent}if(r){es(),dr(r,null,10,[e,u,c]),ts();return}}gh(e,n,o,s,a)}function gh(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Vt=[];let Sn=-1;const uo=[];let gs=null,eo=0;const jd=Promise.resolve();let jr=null;function mt(e){const t=jr||jd;return e?t.then(this?e.bind(this):e):t}function vh(e){let t=Sn+1,n=Vt.length;for(;t<n;){const s=t+n>>>1,o=Vt[s],r=zo(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function Si(e){if(!(e.flags&1)){const t=zo(e),n=Vt[Vt.length-1];!n||!(e.flags&2)&&t>=zo(n)?Vt.push(e):Vt.splice(vh(t),0,e),e.flags|=1,Hd()}}function Hd(){jr||(jr=jd.then(Kd))}function yh(e){ke(e)?uo.push(...e):gs&&e.id===-1?gs.splice(eo+1,0,e):e.flags&1||(uo.push(e),e.flags|=1),Hd()}function bu(e,t,n=Sn+1){for(;n<Vt.length;n++){const s=Vt[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Vt.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Wd(e){if(uo.length){const t=[...new Set(uo)].sort((n,s)=>zo(n)-zo(s));if(uo.length=0,gs){gs.push(...t);return}for(gs=t,eo=0;eo<gs.length;eo++){const n=gs[eo];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}gs=null,eo=0}}const zo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Kd(e){try{for(Sn=0;Sn<Vt.length;Sn++){const t=Vt[Sn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),dr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Sn<Vt.length;Sn++){const t=Vt[Sn];t&&(t.flags&=-2)}Sn=-1,Vt.length=0,Wd(),jr=null,(Vt.length||uo.length)&&Kd()}}let Ot=null,zd=null;function Hr(e){const t=Ot;return Ot=e,zd=e&&e.type.__scopeId||null,t}function y(e,t=Ot,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&zr(-1);const r=Hr(t),a=Xn.length;let i;try{i=e(...o)}finally{for(let u=Xn.length;u>a;u--)$i();Hr(r),s._d&&zr(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function ho(e,t){if(Ot===null)return e;const n=Ea(Ot),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,a,i,u=We]=t[o];r&&(Oe(r)&&(r={mounted:r,updated:r}),r.deep&&Kn(a),s.push({dir:r,instance:n,value:a,oldValue:void 0,arg:i,modifiers:u}))}return e}function Ts(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let a=0;a<o.length;a++){const i=o[a];r&&(i.oldValue=r[a].value);let u=i.dir[s];u&&(es(),un(u,n,8,[e.el,i,e,t]),ts())}}function Ci(e,t){if(Lt){let n=Lt.provides;const s=Lt.parent&&Lt.parent.provides;s===n&&(n=Lt.provides=Object.create(s)),n[e]=t}}function js(e,t,n=!1){const s=Xt();if(s||fo){let o=fo?fo._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Oe(t)?t.call(s&&s.proxy):t}}const bh=Symbol.for("v-scx"),_h=()=>js(bh);function ss(e,t){return fr(e,null,t)}function Gd(e,t){return fr(e,null,{flush:"post"})}function wh(e,t){return fr(e,null,{flush:"sync"})}function Fe(e,t,n){return fr(e,t,n)}function fr(e,t,n=We){const{immediate:s,deep:o,flush:r,once:a}=n,i=ft({},n),u=t&&s||!t&&r!=="post";let c;if(Jo){if(r==="sync"){const m=_h();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!u){const m=()=>{};return m.stop=Tn,m.resume=Tn,m.pause=Tn,m}}const d=Lt;i.call=(m,g,_)=>un(m,d,g,_);let f=!1;r==="post"?i.scheduler=m=>{Bt(m,d&&d.suspense)}:r!=="sync"&&(f=!0,i.scheduler=(m,g)=>{g?m():Si(m)}),i.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};const p=hh(e,t,i);return Jo&&(c?c.push(p):u&&p()),p}function xh(e,t,n){const s=this.proxy,o=rt(e)?e.includes(".")?Yd(s,e):()=>s[e]:e.bind(s,s);let r;Oe(t)?r=t:(r=t.handler,n=t);const a=gr(this),i=fr(o,r.bind(s),n);return a(),i}function Yd(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const ps=new WeakMap,Xd=Symbol("_vte"),kh=e=>e.__isTeleport,Ds=e=>e&&(e.disabled||e.disabled===""),Sh=e=>e&&(e.defer||e.defer===""),_u=e=>typeof SVGElement<"u"&&e instanceof SVGElement,wu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ol=(e,t)=>{const n=e&&e.to;return rt(n)?t?t(n):null:n},Ch={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,r,a,i,u,c){const{mc:d,pc:f,pbc:p,o:{insert:m,querySelector:g,createText:_,createComment:k,parentNode:h}}=c,b=Ds(t.props);let{dynamicChildren:T}=t;const w=(A,I,N)=>{A.shapeFlag&16&&d(A.children,I,N,o,r,a,i,u)},L=(A=t)=>{const I=Ds(A.props),N=A.target=Ol(A.props,g),z=Pl(N,A,_,m);N&&(a!=="svg"&&_u(N)?a="svg":a!=="mathml"&&wu(N)&&(a="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(N),I||(w(A,N,z),Mo(A,!1)))},$=A=>{const I=()=>{if(ps.get(A)===I){if(ps.delete(A),Ds(A.props)){const N=h(A.el)||n;w(A,N,A.anchor),Mo(A,!0)}L(A)}};ps.set(A,I),Bt(I,r)};if(e==null){const A=t.el=_(""),I=t.anchor=_("");if(m(A,n,s),m(I,n,s),Sh(t.props)||r&&r.pendingBranch){$(t);return}b&&(w(t,n,I),Mo(t,!0)),L()}else{t.el=e.el;const A=t.anchor=e.anchor,I=ps.get(e);if(I){I.flags|=8,ps.delete(e),$(t);return}t.targetStart=e.targetStart;const N=t.target=e.target,z=t.targetAnchor=e.targetAnchor,X=Ds(e.props),H=X?n:N,de=X?A:z;if(a==="svg"||_u(N)?a="svg":(a==="mathml"||wu(N))&&(a="mathml"),T?(p(e.dynamicChildren,T,H,o,r,a,i),Ti(e,t,!0)):u||f(e,t,H,de,o,r,a,i,!1),b)X?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ar(t,n,A,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ye=Ol(t.props,g);ye&&(t.target=ye,Ar(t,ye,null,c,0))}else X&&Ar(t,N,z,c,1);Mo(t,b)}},remove(e,t,n,{um:s,o:{remove:o}},r){const{shapeFlag:a,children:i,anchor:u,targetStart:c,targetAnchor:d,target:f,props:p}=e,m=Ds(p),g=r||!m,_=ps.get(e);if(_&&(_.flags|=8,ps.delete(e)),f&&(o(c),o(d)),r&&o(u),!_&&(m||f)&&a&16)for(let k=0;k<i.length;k++){const h=i[k];s(h,t,n,g,!!h.dynamicChildren)}},move:Ar,hydrate:Ah};function Ar(e,t,n,{o:{insert:s},m:o},r=2){r===0&&s(e.targetAnchor,t,n);const{el:a,anchor:i,shapeFlag:u,children:c,props:d}=e,f=r===2;if(f&&s(a,t,n),!ps.has(e)&&(!f||Ds(d))&&u&16)for(let p=0;p<c.length;p++)o(c[p],t,n,2);f&&s(i,t,n)}function Ah(e,t,n,s,o,r,{o:{nextSibling:a,parentNode:i,querySelector:u,insert:c,createText:d}},f){function p(k,h){let b=h;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")t.targetStart=b;else if(b.data==="teleport anchor"){t.targetAnchor=b,k._lpa=t.targetAnchor&&a(t.targetAnchor);break}}b=a(b)}}function m(k,h){h.anchor=f(a(k),h,i(k),n,s,o,r)}const g=t.target=Ol(t.props,u),_=Ds(t.props);if(g){const k=g._lpa||g.firstChild;t.shapeFlag&16&&(_?(m(e,t),p(g,k),t.targetAnchor||Pl(g,t,d,c,i(e)===g?e:null)):(t.anchor=a(e),p(g,k),t.targetAnchor||Pl(g,t,d,c),f(k&&a(k),t,g,n,s,o,r))),Mo(t,_)}else _&&t.shapeFlag&16&&(m(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const Ai=Ch;function Mo(e,t){const n=e.ctx;if(n&&n.ut){let s,o;for(t?(s=e.el,o=e.anchor):(s=e.targetStart,o=e.targetAnchor);s&&s!==o;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Pl(e,t,n,s,o=null){const r=t.targetStart=n(""),a=t.targetAnchor=n("");return r[Xd]=a,e&&(s(r,e,o),s(a,e,o)),a}const Cn=Symbol("_leaveCb"),Co=Symbol("_enterCb");function Eh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ct(()=>{e.isMounted=!0}),Ca(()=>{e.isUnmounting=!0}),e}const sn=[Function,Array],Oh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sn,onEnter:sn,onAfterEnter:sn,onEnterCancelled:sn,onBeforeLeave:sn,onLeave:sn,onAfterLeave:sn,onLeaveCancelled:sn,onBeforeAppear:sn,onAppear:sn,onAfterAppear:sn,onAppearCancelled:sn};function Ph(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Tl(e,t,n,s,o){const{appear:r,mode:a,persisted:i=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:g,onLeaveCancelled:_,onBeforeAppear:k,onAppear:h,onAfterAppear:b,onAppearCancelled:T}=t,w=String(e.key),L=Ph(n,e),$=(N,z)=>{N&&un(N,s,9,z)},A=(N,z)=>{const X=z[1];$(N,z),ke(N)?N.every(H=>H.length<=1)&&X():N.length<=1&&X()},I={mode:a,persisted:i,beforeEnter(N){let z=u;if(!n.isMounted)if(r)z=k||u;else return;N[Cn]&&N[Cn](!0);const X=L[w];X&&to(e,X)&&X.el[Cn]&&X.el[Cn](),$(z,[N])},enter(N){if(L[w]===e)return;let z=c,X=d,H=f;if(!n.isMounted)if(r)z=h||c,X=b||d,H=T||f;else return;let de=!1;N[Co]=J=>{de||(de=!0,J?$(H,[N]):$(X,[N]),I.delayedLeave&&I.delayedLeave(),N[Co]=void 0)};const ye=N[Co].bind(null,!1);z?A(z,[N,ye]):ye()},leave(N,z){const X=String(e.key);if(N[Co]&&N[Co](!0),n.isUnmounting)return z();$(p,[N]);let H=!1;N[Cn]=ye=>{H||(H=!0,z(),ye?$(_,[N]):$(g,[N]),N[Cn]=void 0,L[X]===e&&delete L[X])};const de=N[Cn].bind(null,!1);L[X]=e,m?A(m,[N,de]):de()},clone(N){const z=Tl(N,t,n,s,o);return o&&o(z),z}};return I}function Go(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Go(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Jd(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let a=e[r];const i=n==null?a.key:String(n)+String(a.key!=null?a.key:r);a.type===Ce?(a.patchFlag&128&&o++,s=s.concat(Jd(a.children,t,i))):(t||a.type!==vn)&&s.push(i!=null?bs(a,{key:i}):a)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function Q(e,t){return Oe(e)?ft({name:e.name},t,{setup:e}):e}function Za(){const e=Xt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Qd(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function xu(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Wr=new WeakMap;function qo(e,t,n,s,o=!1){if(ke(e)){e.forEach((_,k)=>qo(_,t&&(ke(t)?t[k]:t),n,s,o));return}if(co(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&qo(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?Ea(s.component):s.el,a=o?null:r,{i,r:u}=e,c=t&&t.r,d=i.refs===We?i.refs={}:i.refs,f=i.setupState,p=He(f),m=f===We?fd:_=>xu(d,_)?!1:tt(p,_),g=(_,k)=>!(k&&xu(d,k));if(c!=null&&c!==u){if(ku(t),rt(c))d[c]=null,m(c)&&(f[c]=null);else if(ut(c)){const _=t;g(c,_.k)&&(c.value=null),_.k&&(d[_.k]=null)}}if(Oe(u))dr(u,i,12,[a,d]);else{const _=rt(u),k=ut(u);if(_||k){const h=()=>{if(e.f){const b=_?m(u)?f[u]:d[u]:g()||!e.k?u.value:d[e.k];if(o)ke(b)&&gi(b,r);else if(ke(b))b.includes(r)||b.push(r);else if(_)d[u]=[r],m(u)&&(f[u]=d[u]);else{const T=[r];g(u,e.k)&&(u.value=T),e.k&&(d[e.k]=T)}}else _?(d[u]=a,m(u)&&(f[u]=a)):k&&(g(u,e.k)&&(u.value=a),e.k&&(d[e.k]=a))};if(a){const b=()=>{h(),Wr.delete(e)};b.id=-1,Wr.set(e,b),Bt(b,n)}else ku(e),h()}}}function ku(e){const t=Wr.get(e);t&&(t.flags|=8,Wr.delete(e))}ha().requestIdleCallback;ha().cancelIdleCallback;const co=e=>!!e.type.__asyncLoader,Zd=e=>e.type.__isKeepAlive;function Th(e,t){ef(e,"a",t)}function $h(e,t){ef(e,"da",t)}function ef(e,t,n=Lt){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Sa(t,s,n),n){let o=n.parent;for(;o&&o.parent;)Zd(o.parent.vnode)&&Ih(s,t,n,o),o=o.parent}}function Ih(e,t,n,s){const o=Sa(t,e,s,!0);yn(()=>{gi(s[t],o)},n)}function Sa(e,t,n=Lt,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...a)=>{es();const i=gr(n),u=un(t,n,e,a);return i(),ts(),u});return s?o.unshift(r):o.push(r),r}}const ls=e=>(t,n=Lt)=>{(!Jo||e==="sp")&&Sa(e,(...s)=>t(...s),n)},Mh=ls("bm"),ct=ls("m"),Lh=ls("bu"),Ei=ls("u"),Ca=ls("bum"),yn=ls("um"),Rh=ls("sp"),Dh=ls("rtg"),Fh=ls("rtc");function Nh(e,t=Lt){Sa("ec",e,t)}const qh="components",tf=Symbol.for("v-ndc");function pr(e){return rt(e)?Bh(qh,e,!1)||e:e||tf}function Bh(e,t,n=!0,s=!1){const o=Ot||Lt;if(o){const r=o.type;{const i=xg(r,!1);if(i&&(i===t||i===At(t)||i===ma(At(t))))return r}const a=Su(o[e]||r[e],t)||Su(o.appContext[e],t);return!a&&s?r:a}}function Su(e,t){return e&&(e[t]||e[At(t)]||e[ma(At(t))])}function at(e,t,n,s){let o;const r=n&&n[s],a=ke(e);if(a||rt(e)){const i=a&&Us(e);let u=!1,c=!1;i&&(u=!Zt(e),c=ns(e),e=ya(e)),o=new Array(e.length);for(let d=0,f=e.length;d<f;d++)o[d]=t(u?c?mo(gn(e[d])):gn(e[d]):e[d],d,void 0,r&&r[d])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(Je(e))if(e[Symbol.iterator])o=Array.from(e,(i,u)=>t(i,u,void 0,r&&r[u]));else{const i=Object.keys(e);o=new Array(i.length);for(let u=0,c=i.length;u<c;u++){const d=i[u];o[u]=t(e[d],d,u,r&&r[u])}}else o=[];return n&&(n[s]=o),o}function ue(e,t,n={},s,o,r){if(Ot.ce||Ot.parent&&co(Ot.parent)&&Ot.parent.ce){const c=r!=null&&n.key==null?ft({},n,{key:r}):n,d=Object.keys(c).length>0;return t!=="default"&&(c.name=t),x(),R(Ce,null,[v("slot",c,s&&s())],d?-2:64)}let a=e[t];a&&a._c&&(a._d=!1);const i=Xn.length;x();let u;try{const c=a&&nf(a(n)),d=n.key||r||c&&c.key;u=R(Ce,{key:(d&&!tn(d)?d:`_${t}`)+(!c&&s?"_fb":"")},c||(s?s():[]),c&&e._===1?64:-2)}catch(c){for(let d=Xn.length;d>i;d--)$i();throw c}finally{a&&a._c&&(a._d=!0)}return!o&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function nf(e){return e.some(t=>Xo(t)?!(t.type===vn||t.type===Ce&&!nf(t.children)):!0)?e:null}const $l=e=>e?Sf(e)?Ea(e):$l(e.parent):null,Bo=ft(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=>$l(e.parent),$root:e=>$l(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>rf(e),$forceUpdate:e=>e.f||(e.f=()=>{Si(e.update)}),$nextTick:e=>e.n||(e.n=mt.bind(e.proxy)),$watch:e=>xh.bind(e)}),el=(e,t)=>e!==We&&!e.__isScriptSetup&&tt(e,t),Vh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:a,type:i,appContext:u}=e;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(el(s,t))return a[t]=1,s[t];if(o!==We&&tt(o,t))return a[t]=2,o[t];if(tt(r,t))return a[t]=3,r[t];if(n!==We&&tt(n,t))return a[t]=4,n[t];Il&&(a[t]=0)}}const c=Bo[t];let d,f;if(c)return t==="$attrs"&&Mt(e.attrs,"get",""),c(e);if((d=i.__cssModules)&&(d=d[t]))return d;if(n!==We&&tt(n,t))return a[t]=4,n[t];if(f=u.config.globalProperties,tt(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return el(o,t)?(o[t]=n,!0):s!==We&&tt(s,t)?(s[t]=n,!0):tt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:r,type:a}},i){let u;return!!(n[i]||e!==We&&i[0]!=="$"&&tt(e,i)||el(t,i)||tt(r,i)||tt(s,i)||tt(Bo,i)||tt(o.config.globalProperties,i)||(u=a.__cssModules)&&u[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:tt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Uh(){return jh().attrs}function jh(e){const t=Xt();return t.setupContext||(t.setupContext=Af(t))}function Yo(e){return ke(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function sf(e,t){const n=Yo(e);for(const s in t){if(s.startsWith("__skip"))continue;let o=n[s];o?ke(o)||Oe(o)?o=n[s]={type:o,default:t[s]}:o.default=t[s]:o===null&&(o=n[s]={default:t[s]}),o&&t[`__skip_${s}`]&&(o.skipFactory=!0)}return n}function ys(e,t){return!e||!t?e||t:ke(e)&&ke(t)?e.concat(t):ft({},Yo(e),Yo(t))}let Il=!0;function Hh(e){const t=rf(e),n=e.proxy,s=e.ctx;Il=!1,t.beforeCreate&&Cu(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:a,watch:i,provide:u,inject:c,created:d,beforeMount:f,mounted:p,beforeUpdate:m,updated:g,activated:_,deactivated:k,beforeDestroy:h,beforeUnmount:b,destroyed:T,unmounted:w,render:L,renderTracked:$,renderTriggered:A,errorCaptured:I,serverPrefetch:N,expose:z,inheritAttrs:X,components:H,directives:de,filters:ye}=t;if(c&&Wh(c,s,null),a)for(const j in a){const te=a[j];Oe(te)&&(s[j]=te.bind(n))}if(o){const j=o.call(n,n);Je(j)&&(e.data=Hs(j))}if(Il=!0,r)for(const j in r){const te=r[j],ae=Oe(te)?te.bind(n,n):Oe(te.get)?te.get.bind(n,n):Tn,fe=!Oe(te)&&Oe(te.set)?te.set.bind(n):Tn,Qe=ee({get:ae,set:fe});Object.defineProperty(s,j,{enumerable:!0,configurable:!0,get:()=>Qe.value,set:Te=>Qe.value=Te})}if(i)for(const j in i)of(i[j],s,n,j);if(u){const j=Oe(u)?u.call(n):u;Reflect.ownKeys(j).forEach(te=>{Ci(te,j[te])})}d&&Cu(d,e,"c");function ce(j,te){ke(te)?te.forEach(ae=>j(ae.bind(n))):te&&j(te.bind(n))}if(ce(Mh,f),ce(ct,p),ce(Lh,m),ce(Ei,g),ce(Th,_),ce($h,k),ce(Nh,I),ce(Fh,$),ce(Dh,A),ce(Ca,b),ce(yn,w),ce(Rh,N),ke(z))if(z.length){const j=e.exposed||(e.exposed={});z.forEach(te=>{Object.defineProperty(j,te,{get:()=>n[te],set:ae=>n[te]=ae,enumerable:!0})})}else e.exposed||(e.exposed={});L&&e.render===Tn&&(e.render=L),X!=null&&(e.inheritAttrs=X),H&&(e.components=H),de&&(e.directives=de),N&&Qd(e)}function Wh(e,t,n=Tn){ke(e)&&(e=Ml(e));for(const s in e){const o=e[s];let r;Je(o)?"default"in o?r=js(o.from||s,o.default,!0):r=js(o.from||s):r=js(o),ut(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:a=>r.value=a}):t[s]=r}}function Cu(e,t,n){un(ke(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function of(e,t,n,s){let o=s.includes(".")?Yd(n,s):()=>n[s];if(rt(e)){const r=t[e];Oe(r)&&Fe(o,r)}else if(Oe(e))Fe(o,e.bind(n));else if(Je(e))if(ke(e))e.forEach(r=>of(r,t,n,s));else{const r=Oe(e.handler)?e.handler.bind(n):t[e.handler];Oe(r)&&Fe(o,r,e)}}function rf(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,i=r.get(t);let u;return i?u=i:!o.length&&!n&&!s?u=t:(u={},o.length&&o.forEach(c=>Kr(u,c,a,!0)),Kr(u,t,a)),Je(t)&&r.set(t,u),u}function Kr(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Kr(e,r,n,!0),o&&o.forEach(a=>Kr(e,a,n,!0));for(const a in t)if(!(s&&a==="expose")){const i=Kh[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const Kh={data:Au,props:Eu,emits:Eu,methods:Lo,computed:Lo,beforeCreate:qt,created:qt,beforeMount:qt,mounted:qt,beforeUpdate:qt,updated:qt,beforeDestroy:qt,beforeUnmount:qt,destroyed:qt,unmounted:qt,activated:qt,deactivated:qt,errorCaptured:qt,serverPrefetch:qt,components:Lo,directives:Lo,watch:Gh,provide:Au,inject:zh};function Au(e,t){return t?e?function(){return ft(Oe(e)?e.call(this,this):e,Oe(t)?t.call(this,this):t)}:t:e}function zh(e,t){return Lo(Ml(e),Ml(t))}function Ml(e){if(ke(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qt(e,t){return e?[...new Set([].concat(e,t))]:t}function Lo(e,t){return e?ft(Object.create(null),e,t):t}function Eu(e,t){return e?ke(e)&&ke(t)?[...new Set([...e,...t])]:ft(Object.create(null),Yo(e),Yo(t??{})):t}function Gh(e,t){if(!e)return t;if(!t)return e;const n=ft(Object.create(null),e);for(const s in t)n[s]=qt(e[s],t[s]);return n}function af(){return{app:null,config:{isNativeTag:fd,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 Yh=0;function Xh(e,t){return function(s,o=null){Oe(s)||(s=ft({},s)),o!=null&&!Je(o)&&(o=null);const r=af(),a=new WeakSet,i=[];let u=!1;const c=r.app={_uid:Yh++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:Ag,get config(){return r.config},set config(d){},use(d,...f){return a.has(d)||(d&&Oe(d.install)?(a.add(d),d.install(c,...f)):Oe(d)&&(a.add(d),d(c,...f))),c},mixin(d){return r.mixins.includes(d)||r.mixins.push(d),c},component(d,f){return f?(r.components[d]=f,c):r.components[d]},directive(d,f){return f?(r.directives[d]=f,c):r.directives[d]},mount(d,f,p){if(!u){const m=c._ceVNode||v(s,o);return m.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),e(m,d,p),u=!0,c._container=d,d.__vue_app__=c,Ea(m.component)}},onUnmount(d){i.push(d)},unmount(){u&&(un(i,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(d,f){return r.provides[d]=f,c},runWithContext(d){const f=fo;fo=c;try{return d()}finally{fo=f}}};return c}}let fo=null;function mr(e,t,n=We){const s=Xt(),o=At(t),r=as(t),a=lf(e,o),i=Vd((u,c)=>{let d,f=We,p;return wh(()=>{const m=e[o];St(d,m)&&(d=m,c())}),{get(){return u(),n.get?n.get(d):d},set(m){const g=n.set?n.set(m):m;if(!St(g,d)&&!(f!==We&&St(m,f)))return;const _=s.vnode.props,k=!!(_&&(t in _||o in _||r in _)&&(`onUpdate:${t}`in _||`onUpdate:${o}`in _||`onUpdate:${r}`in _));k||(d=m,c()),s.emit(`update:${t}`,g),St(m,f)&&(St(m,g)&&!St(g,p)||k&&f!==We&&!St(g,d))&&c(),f=m,p=g}}});return i[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?a||We:i,done:!1}:{done:!0}}}},i}const lf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${At(t)}Modifiers`]||e[`${as(t)}Modifiers`];function Jh(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||We;let o=n;const r=t.startsWith("update:"),a=r&&lf(s,t.slice(7));a&&(a.trim&&(o=n.map(d=>rt(d)?d.trim():d)),a.number&&(o=n.map(vi)));let i,u=s[i=Dr(t)]||s[i=Dr(At(t))];!u&&r&&(u=s[i=Dr(as(t))]),u&&un(u,e,6,o);const c=s[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,un(c,e,6,o)}}const Qh=new WeakMap;function uf(e,t,n=!1){const s=n?Qh:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let a={},i=!1;if(!Oe(e)){const u=c=>{const d=uf(c,t,!0);d&&(i=!0,ft(a,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!i?(Je(e)&&s.set(e,null),null):(ke(r)?r.forEach(u=>a[u]=null):ft(a,r),Je(e)&&s.set(e,a),a)}function Aa(e,t){return!e||!ca(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),tt(e,t[0].toLowerCase()+t.slice(1))||tt(e,as(t))||tt(e,t))}function Ou(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:a,attrs:i,emit:u,render:c,renderCache:d,props:f,data:p,setupState:m,ctx:g,inheritAttrs:_}=e,k=Hr(e);let h,b;try{if(n.shapeFlag&4){const w=o||s,L=w;h=On(c.call(L,w,d,f,m,p,g)),b=i}else{const w=t;h=On(w.length>1?w(f,{attrs:i,slots:a,emit:u}):w(f,null)),b=t.props?i:Zh(i)}}catch(w){Xn.length=0,ka(w,e,1),h=v(vn)}let T=h;if(b&&_!==!1){const w=Object.keys(b),{shapeFlag:L}=T;w.length&&L&7&&(r&&w.some(da)&&(b=eg(b,r)),T=bs(T,b,!1,!0))}return n.dirs&&(T=bs(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&Go(T,n.transition),h=T,Hr(k),h}const Zh=e=>{let t;for(const n in e)(n==="class"||n==="style"||ca(n))&&((t||(t={}))[n]=e[n]);return t},eg=(e,t)=>{const n={};for(const s in e)(!da(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function tg(e,t,n){const{props:s,children:o,component:r}=e,{props:a,children:i,patchFlag:u}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?Pu(s,a,c):!!a;if(u&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const p=d[f];if(cf(a,s,p)&&!Aa(c,p))return!0}}}else return(o||i)&&(!i||!i.$stable)?!0:s===a?!1:s?a?Pu(s,a,c):!0:!!a;return!1}function Pu(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(cf(t,e,r)&&!Aa(n,r))return!0}return!1}function cf(e,t,n){const s=e[n],o=t[n];return n==="style"&&Je(s)&&Je(o)?!yi(s,o):s!==o}function ng({vnode:e,parent:t,suspense:n},s){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=s,e=o),o===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const df={},ff=()=>Object.create(df),pf=e=>Object.getPrototypeOf(e)===df;function sg(e,t,n,s=!1){const o={},r=ff();e.propsDefaults=Object.create(null),mf(e,t,o,r);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=s?o:oh(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function og(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:a}}=e,i=He(o),[u]=e.propsOptions;let c=!1;if((s||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f<d.length;f++){let p=d[f];if(Aa(e.emitsOptions,p))continue;const m=t[p];if(u)if(tt(r,p))m!==r[p]&&(r[p]=m,c=!0);else{const g=At(p);o[g]=Ll(u,i,g,m,e,!1)}else m!==r[p]&&(r[p]=m,c=!0)}}}else{mf(e,t,o,r)&&(c=!0);let d;for(const f in i)(!t||!tt(t,f)&&((d=as(f))===f||!tt(t,d)))&&(u?n&&(n[f]!==void 0||n[d]!==void 0)&&(o[f]=Ll(u,i,f,void 0,e,!0)):delete o[f]);if(r!==i)for(const f in r)(!t||!tt(t,f))&&(delete r[f],c=!0)}c&&Wn(e.attrs,"set","")}function mf(e,t,n,s){const[o,r]=e.propsOptions;let a=!1,i;if(t)for(let u in t){if(Do(u))continue;const c=t[u];let d;o&&tt(o,d=At(u))?!r||!r.includes(d)?n[d]=c:(i||(i={}))[d]=c:Aa(e.emitsOptions,u)||(!(u in s)||c!==s[u])&&(s[u]=c,a=!0)}if(r){const u=He(n),c=i||We;for(let d=0;d<r.length;d++){const f=r[d];n[f]=Ll(o,u,f,c[f],e,!tt(c,f))}}return a}function Ll(e,t,n,s,o,r){const a=e[n];if(a!=null){const i=tt(a,"default");if(i&&s===void 0){const u=a.default;if(a.type!==Function&&!a.skipFactory&&Oe(u)){const{propsDefaults:c}=o;if(n in c)s=c[n];else{const d=gr(o);s=c[n]=u.call(null,t),d()}}else s=u;o.ce&&o.ce._setProp(n,s)}a[0]&&(r&&!i?s=!1:a[1]&&(s===""||s===as(n))&&(s=!0))}return s}const rg=new WeakMap;function hf(e,t,n=!1){const s=n?rg:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,a={},i=[];let u=!1;if(!Oe(e)){const d=f=>{u=!0;const[p,m]=hf(f,t,!0);ft(a,p),m&&i.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!u)return Je(e)&&s.set(e,lo),lo;if(ke(r))for(let d=0;d<r.length;d++){const f=At(r[d]);Tu(f)&&(a[f]=We)}else if(r)for(const d in r){const f=At(d);if(Tu(f)){const p=r[d],m=a[f]=ke(p)||Oe(p)?{type:p}:ft({},p),g=m.type;let _=!1,k=!0;if(ke(g))for(let h=0;h<g.length;++h){const b=g[h],T=Oe(b)&&b.name;if(T==="Boolean"){_=!0;break}else T==="String"&&(k=!1)}else _=Oe(g)&&g.name==="Boolean";m[0]=_,m[1]=k,(_||tt(m,"default"))&&i.push(f)}}const c=[a,i];return Je(e)&&s.set(e,c),c}function Tu(e){return e[0]!=="$"&&!Do(e)}const Oi=e=>e==="_"||e==="_ctx"||e==="$stable",Pi=e=>ke(e)?e.map(On):[On(e)],ag=(e,t,n)=>{if(t._n)return t;const s=y((...o)=>Pi(t(...o)),n);return s._c=!1,s},gf=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Oi(o))continue;const r=e[o];if(Oe(r))t[o]=ag(o,r,s);else if(r!=null){const a=Pi(r);t[o]=()=>a}}},vf=(e,t)=>{const n=Pi(t);e.slots.default=()=>n},yf=(e,t,n)=>{for(const s in t)(n||!Oi(s))&&(e[s]=t[s])},lg=(e,t,n)=>{const s=e.slots=ff();if(e.vnode.shapeFlag&32){const o=t._;o?(yf(s,t,n),n&&vd(s,"_",o,!0)):gf(t,s)}else t&&vf(e,t)},ig=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,a=We;if(s.shapeFlag&32){const i=t._;i?n&&i===1?r=!1:yf(o,t,n):(r=!t.$stable,gf(t,o)),a=t}else t&&(vf(e,t),a={default:1});if(r)for(const i in o)!Oi(i)&&a[i]==null&&delete o[i]},Bt=pg;function ug(e){return cg(e)}function cg(e,t){const n=ha();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:a,createText:i,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:p,setScopeId:m=Tn,insertStaticContent:g}=e,_=(C,M,K,ie=null,se=null,re=null,E=void 0,P=null,D=!!M.dynamicChildren)=>{if(C===M)return;C&&!to(C,M)&&(ie=Xe(C),Te(C,se,re,!0),C=null),M.patchFlag===-2&&(D=!1,M.dynamicChildren=null);const{type:V,ref:pe,shapeFlag:oe}=M;switch(V){case hr:k(C,M,K,ie);break;case vn:h(C,M,K,ie);break;case Nr:C==null&&b(M,K,ie,E);break;case Ce:H(C,M,K,ie,se,re,E,P,D);break;default:oe&1?L(C,M,K,ie,se,re,E,P,D):oe&6?de(C,M,K,ie,se,re,E,P,D):(oe&64||oe&128)&&V.process(C,M,K,ie,se,re,E,P,D,me)}pe!=null&&se?qo(pe,C&&C.ref,re,M||C,!M):pe==null&&C&&C.ref!=null&&qo(C.ref,null,re,C,!0)},k=(C,M,K,ie)=>{if(C==null)s(M.el=i(M.children),K,ie);else{const se=M.el=C.el;M.children!==C.children&&c(se,M.children)}},h=(C,M,K,ie)=>{C==null?s(M.el=u(M.children||""),K,ie):M.el=C.el},b=(C,M,K,ie)=>{[C.el,C.anchor]=g(C.children,M,K,ie,C.el,C.anchor)},T=({el:C,anchor:M},K,ie)=>{let se;for(;C&&C!==M;)se=p(C),s(C,K,ie),C=se;s(M,K,ie)},w=({el:C,anchor:M})=>{let K;for(;C&&C!==M;)K=p(C),o(C),C=K;o(M)},L=(C,M,K,ie,se,re,E,P,D)=>{if(M.type==="svg"?E="svg":M.type==="math"&&(E="mathml"),C==null)$(M,K,ie,se,re,E,P,D);else{const V=C.el&&C.el._isVueCE?C.el:null;try{V&&V._beginPatch(),N(C,M,se,re,E,P,D)}finally{V&&V._endPatch()}}},$=(C,M,K,ie,se,re,E,P)=>{let D,V;const{props:pe,shapeFlag:oe,transition:q,dirs:Y}=C;if(D=C.el=a(C.type,re,pe&&pe.is,pe),oe&8?d(D,C.children):oe&16&&I(C.children,D,null,ie,se,tl(C,re),E,P),Y&&Ts(C,null,ie,"created"),A(D,C,C.scopeId,E,ie),pe){for(const Se in pe)Se!=="value"&&!Do(Se)&&r(D,Se,null,pe[Se],re,ie);"value"in pe&&r(D,"value",null,pe.value,re),(V=pe.onVnodeBeforeMount)&&bn(V,ie,C)}Y&&Ts(C,null,ie,"beforeMount");const be=dg(se,q);be&&q.beforeEnter(D),s(D,M,K),((V=pe&&pe.onVnodeMounted)||be||Y)&&Bt(()=>{try{V&&bn(V,ie,C),be&&q.enter(D),Y&&Ts(C,null,ie,"mounted")}finally{}},se)},A=(C,M,K,ie,se)=>{if(K&&m(C,K),ie)for(let re=0;re<ie.length;re++)m(C,ie[re]);if(se){let re=se.subTree;if(M===re||wf(re.type)&&(re.ssContent===M||re.ssFallback===M)){const E=se.vnode;A(C,E,E.scopeId,E.slotScopeIds,se.parent)}}},I=(C,M,K,ie,se,re,E,P,D=0)=>{for(let V=D;V<C.length;V++){const pe=C[V]=P?jn(C[V]):On(C[V]);_(null,pe,M,K,ie,se,re,E,P)}},N=(C,M,K,ie,se,re,E)=>{const P=M.el=C.el;let{patchFlag:D,dynamicChildren:V,dirs:pe}=M;D|=C.patchFlag&16;const oe=C.props||We,q=M.props||We;let Y;if(K&&$s(K,!1),(Y=q.onVnodeBeforeUpdate)&&bn(Y,K,M,C),pe&&Ts(M,C,K,"beforeUpdate"),K&&$s(K,!0),V&&(!C.dynamicChildren||C.dynamicChildren.length!==V.length)&&(D=0,E=!1,V=null),(oe.innerHTML&&q.innerHTML==null||oe.textContent&&q.textContent==null)&&d(P,""),V?z(C.dynamicChildren,V,P,K,ie,tl(M,se),re):E||te(C,M,P,null,K,ie,tl(M,se),re,!1),D>0){if(D&16)X(P,oe,q,K,se);else if(D&2&&oe.class!==q.class&&r(P,"class",null,q.class,se),D&4&&r(P,"style",oe.style,q.style,se),D&8){const be=M.dynamicProps;for(let Se=0;Se<be.length;Se++){const De=be[Se],Be=oe[De],je=q[De];(je!==Be||De==="value")&&r(P,De,Be,je,se,K)}}D&1&&C.children!==M.children&&d(P,M.children)}else!E&&V==null&&X(P,oe,q,K,se);((Y=q.onVnodeUpdated)||pe)&&Bt(()=>{Y&&bn(Y,K,M,C),pe&&Ts(M,C,K,"updated")},ie)},z=(C,M,K,ie,se,re,E)=>{for(let P=0;P<M.length;P++){const D=C[P],V=M[P],pe=D.el&&(D.type===Ce||!to(D,V)||D.shapeFlag&198)?f(D.el):K;_(D,V,pe,null,ie,se,re,E,!0)}},X=(C,M,K,ie,se)=>{if(M!==K){if(M!==We)for(const re in M)!Do(re)&&!(re in K)&&r(C,re,M[re],null,se,ie);for(const re in K){if(Do(re))continue;const E=K[re],P=M[re];E!==P&&re!=="value"&&r(C,re,P,E,se,ie)}"value"in K&&r(C,"value",M.value,K.value,se)}},H=(C,M,K,ie,se,re,E,P,D)=>{const V=M.el=C?C.el:i(""),pe=M.anchor=C?C.anchor:i("");let{patchFlag:oe,dynamicChildren:q,slotScopeIds:Y}=M;Y&&(P=P?P.concat(Y):Y),C==null?(s(V,K,ie),s(pe,K,ie),I(M.children||[],K,pe,se,re,E,P,D)):oe>0&&oe&64&&q&&C.dynamicChildren&&C.dynamicChildren.length===q.length?(z(C.dynamicChildren,q,K,se,re,E,P),(M.key!=null||se&&M===se.subTree)&&Ti(C,M,!0)):te(C,M,K,pe,se,re,E,P,D)},de=(C,M,K,ie,se,re,E,P,D)=>{M.slotScopeIds=P,C==null?M.shapeFlag&512?se.ctx.activate(M,K,ie,E,D):ye(M,K,ie,se,re,E,D):J(C,M,D)},ye=(C,M,K,ie,se,re,E)=>{const P=C.component=yg(C,ie,se);if(Zd(C)&&(P.ctx.renderer=me),bg(P,!1,E),P.asyncDep){if(se&&se.registerDep(P,ce,E),!C.el){const D=P.subTree=v(vn);h(null,D,M,K),C.placeholder=D.el}}else ce(P,C,M,K,se,re,E)},J=(C,M,K)=>{const ie=M.component=C.component;if(tg(C,M,K))if(ie.asyncDep&&!ie.asyncResolved){j(ie,M,K);return}else ie.next=M,ie.update();else M.el=C.el,ie.vnode=M},ce=(C,M,K,ie,se,re,E)=>{const P=()=>{if(C.isMounted){let{next:oe,bu:q,u:Y,parent:be,vnode:Se}=C;{const Jt=bf(C);if(Jt){oe&&(oe.el=Se.el,j(C,oe,E)),Jt.asyncDep.then(()=>{Bt(()=>{C.isUnmounted||V()},se)});return}}let De=oe,Be;$s(C,!1),oe?(oe.el=Se.el,j(C,oe,E)):oe=Se,q&&Fr(q),(Be=oe.props&&oe.props.onVnodeBeforeUpdate)&&bn(Be,be,oe,Se),$s(C,!0);const je=Ou(C),Dt=C.subTree;C.subTree=je,_(Dt,je,f(Dt.el),Xe(Dt),C,se,re),oe.el=je.el,De===null&&ng(C,je.el),Y&&Bt(Y,se),(Be=oe.props&&oe.props.onVnodeUpdated)&&Bt(()=>bn(Be,be,oe,Se),se)}else{let oe;const{el:q,props:Y}=M,{bm:be,m:Se,parent:De,root:Be,type:je}=C,Dt=co(M);$s(C,!1),be&&Fr(be),!Dt&&(oe=Y&&Y.onVnodeBeforeMount)&&bn(oe,De,M),$s(C,!0);{Be.ce&&Be.ce._hasShadowRoot()&&Be.ce._injectChildStyle(je,C.parent?C.parent.type:void 0);const Jt=C.subTree=Ou(C);_(null,Jt,K,ie,C,se,re),M.el=Jt.el}if(Se&&Bt(Se,se),!Dt&&(oe=Y&&Y.onVnodeMounted)){const Jt=M;Bt(()=>bn(oe,De,Jt),se)}(M.shapeFlag&256||De&&co(De.vnode)&&De.vnode.shapeFlag&256)&&C.a&&Bt(C.a,se),C.isMounted=!0,M=K=ie=null}};C.scope.on();const D=C.effect=new xd(P);C.scope.off();const V=C.update=D.run.bind(D),pe=C.job=D.runIfDirty.bind(D);pe.i=C,pe.id=C.uid,D.scheduler=()=>Si(pe),$s(C,!0),V()},j=(C,M,K)=>{M.component=C;const ie=C.vnode.props;C.vnode=M,C.next=null,og(C,M.props,ie,K),ig(C,M.children,K),es(),bu(C),ts()},te=(C,M,K,ie,se,re,E,P,D=!1)=>{const V=C&&C.children,pe=C?C.shapeFlag:0,oe=M.children,{patchFlag:q,shapeFlag:Y}=M;if(q>0){if(q&128){fe(V,oe,K,ie,se,re,E,P,D);return}else if(q&256){ae(V,oe,K,ie,se,re,E,P,D);return}}Y&8?(pe&16&&Ie(V,se,re),oe!==V&&d(K,oe)):pe&16?Y&16?fe(V,oe,K,ie,se,re,E,P,D):Ie(V,se,re,!0):(pe&8&&d(K,""),Y&16&&I(oe,K,ie,se,re,E,P,D))},ae=(C,M,K,ie,se,re,E,P,D)=>{C=C||lo,M=M||lo;const V=C.length,pe=M.length,oe=Math.min(V,pe);let q;for(q=0;q<oe;q++){const Y=M[q]=D?jn(M[q]):On(M[q]);_(C[q],Y,K,null,se,re,E,P,D)}V>pe?Ie(C,se,re,!0,!1,oe):I(M,K,ie,se,re,E,P,D,oe)},fe=(C,M,K,ie,se,re,E,P,D)=>{let V=0;const pe=M.length;let oe=C.length-1,q=pe-1;for(;V<=oe&&V<=q;){const Y=C[V],be=M[V]=D?jn(M[V]):On(M[V]);if(to(Y,be))_(Y,be,K,null,se,re,E,P,D);else break;V++}for(;V<=oe&&V<=q;){const Y=C[oe],be=M[q]=D?jn(M[q]):On(M[q]);if(to(Y,be))_(Y,be,K,null,se,re,E,P,D);else break;oe--,q--}if(V>oe){if(V<=q){const Y=q+1,be=Y<pe?M[Y].el:ie;for(;V<=q;)_(null,M[V]=D?jn(M[V]):On(M[V]),K,be,se,re,E,P,D),V++}}else if(V>q)for(;V<=oe;)Te(C[V],se,re,!0),V++;else{const Y=V,be=V,Se=new Map;for(V=be;V<=q;V++){const Ft=M[V]=D?jn(M[V]):On(M[V]);Ft.key!=null&&Se.set(Ft.key,V)}let De,Be=0;const je=q-be+1;let Dt=!1,Jt=0;const Ps=new Array(je);for(V=0;V<je;V++)Ps[V]=0;for(V=Y;V<=oe;V++){const Ft=C[V];if(Be>=je){Te(Ft,se,re,!0);continue}let nn;if(Ft.key!=null)nn=Se.get(Ft.key);else for(De=be;De<=q;De++)if(Ps[De-be]===0&&to(Ft,M[De])){nn=De;break}nn===void 0?Te(Ft,se,re,!0):(Ps[nn-be]=V+1,nn>=Jt?Jt=nn:Dt=!0,_(Ft,M[nn],K,null,se,re,E,P,D),Be++)}const _r=Dt?fg(Ps):lo;for(De=_r.length-1,V=je-1;V>=0;V--){const Ft=be+V,nn=M[Ft],wr=M[Ft+1],W=Ft+1<pe?wr.el||_f(wr):ie;Ps[V]===0?_(null,nn,K,W,se,re,E,P,D):Dt&&(De<0||V!==_r[De]?Qe(nn,K,W,2):De--)}}},Qe=(C,M,K,ie,se=null)=>{const{el:re,type:E,transition:P,children:D,shapeFlag:V}=C;if(V&6){Qe(C.component.subTree,M,K,ie);return}if(V&128){C.suspense.move(M,K,ie);return}if(V&64){E.move(C,M,K,me);return}if(E===Ce){s(re,M,K);for(let oe=0;oe<D.length;oe++)Qe(D[oe],M,K,ie);s(C.anchor,M,K);return}if(E===Nr){T(C,M,K);return}if(ie!==2&&V&1&&P)if(ie===0)P.persisted&&!re[Cn]?s(re,M,K):(P.beforeEnter(re),s(re,M,K),Bt(()=>P.enter(re),se));else{const{leave:oe,delayLeave:q,afterLeave:Y}=P,be=()=>{C.ctx.isUnmounted?o(re):s(re,M,K)},Se=()=>{const De=re._isLeaving||!!re[Cn];re._isLeaving&&re[Cn](!0),P.persisted&&!De?be():oe(re,()=>{be(),Y&&Y()})};q?q(re,be,Se):Se()}else s(re,M,K)},Te=(C,M,K,ie=!1,se=!1)=>{const{type:re,props:E,ref:P,children:D,dynamicChildren:V,shapeFlag:pe,patchFlag:oe,dirs:q,cacheIndex:Y,memo:be}=C;if(oe===-2&&(se=!1),P!=null&&(es(),qo(P,null,K,C,!0),ts()),Y!=null&&(M.renderCache[Y]=void 0),pe&256){M.ctx.deactivate(C);return}const Se=pe&1&&q,De=!co(C);let Be;if(De&&(Be=E&&E.onVnodeBeforeUnmount)&&bn(Be,M,C),pe&6)Ye(C.component,K,ie);else{if(pe&128){C.suspense.unmount(K,ie);return}Se&&Ts(C,null,M,"beforeUnmount"),pe&64?C.type.remove(C,M,K,me,ie):V&&!V.hasOnce&&(re!==Ce||oe>0&&oe&64)?Ie(V,M,K,!1,!0):(re===Ce&&oe&384||!se&&pe&16)&&Ie(D,M,K),ie&&ht(C)}const je=be!=null&&Y==null;(De&&(Be=E&&E.onVnodeUnmounted)||Se||je)&&Bt(()=>{Be&&bn(Be,M,C),Se&&Ts(C,null,M,"unmounted"),je&&(C.el=null)},K)},ht=C=>{const{type:M,el:K,anchor:ie,transition:se}=C;if(M===Ce){pt(K,ie);return}if(M===Nr){w(C);return}const re=()=>{o(K),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(C.shapeFlag&1&&se&&!se.persisted){const{leave:E,delayLeave:P}=se,D=()=>E(K,re);P?P(C.el,re,D):D()}else re()},pt=(C,M)=>{let K;for(;C!==M;)K=p(C),o(C),C=K;o(M)},Ye=(C,M,K)=>{const{bum:ie,scope:se,job:re,subTree:E,um:P,m:D,a:V}=C;$u(D),$u(V),ie&&Fr(ie),se.stop(),re&&(re.flags|=8,Te(E,C,M,K)),P&&Bt(P,M),Bt(()=>{C.isUnmounted=!0},M)},Ie=(C,M,K,ie=!1,se=!1,re=0)=>{for(let E=re;E<C.length;E++)Te(C[E],M,K,ie,se)},Xe=C=>{if(C.shapeFlag&6)return Xe(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const M=p(C.anchor||C.el),K=M&&M[Xd];return K?p(K):M};let lt=!1;const qe=(C,M,K)=>{let ie;C==null?M._vnode&&(Te(M._vnode,null,null,!0),ie=M._vnode.component):_(M._vnode||null,C,M,null,null,null,K),M._vnode=C,lt||(lt=!0,bu(ie),Wd(),lt=!1)},me={p:_,um:Te,m:Qe,r:ht,mt:ye,mc:I,pc:te,pbc:z,n:Xe,o:e};return{render:qe,hydrate:void 0,createApp:Xh(qe)}}function tl({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 $s({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function dg(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ti(e,t,n=!1){const s=e.children,o=t.children;if(ke(s)&&ke(o))for(let r=0;r<s.length;r++){const a=s[r];let i=o[r];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=o[r]=jn(o[r]),i.el=a.el),!n&&i.patchFlag!==-2&&Ti(a,i)),i.type===hr&&(i.patchFlag===-1&&(i=o[r]=jn(i)),i.el=a.el),i.type===vn&&!i.el&&(i.el=a.el)}}function fg(e){const t=e.slice(),n=[0];let s,o,r,a,i;const u=e.length;for(s=0;s<u;s++){const c=e[s];if(c!==0){if(o=n[n.length-1],e[o]<c){t[s]=o,n.push(s);continue}for(r=0,a=n.length-1;r<a;)i=r+a>>1,e[n[i]]<c?r=i+1:a=i;c<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,a=n[r-1];r-- >0;)n[r]=a,a=t[a];return n}function bf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:bf(t)}function $u(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function _f(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?_f(t.subTree):null}const wf=e=>e.__isSuspense;function pg(e,t){t&&t.pendingBranch?ke(e)?t.effects.push(...e):t.effects.push(e):yh(e)}const Ce=Symbol.for("v-fgt"),hr=Symbol.for("v-txt"),vn=Symbol.for("v-cmt"),Nr=Symbol.for("v-stc"),Xn=[];let Ut=null;function x(e=!1){Xn.push(Ut=e?null:[])}function $i(){Xn.pop(),Ut=Xn[Xn.length-1]||null}let go=1;function zr(e,t=!1){go+=e,e<0&&Ut&&t&&(Ut.hasOnce=!0)}function xf(e){return e.dynamicChildren=go>0?Ut||lo:null,$i(),go>0&&Ut&&Ut.push(e),e}function Z(e,t,n,s,o,r){return xf(S(e,t,n,s,o,r,!0))}function R(e,t,n,s,o){return xf(v(e,t,n,s,o,!0))}function Xo(e){return e?e.__v_isVNode===!0:!1}function to(e,t){return e.type===t.type&&e.key===t.key}const kf=({key:e})=>e??null,qr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?rt(e)||ut(e)||Oe(e)?{i:Ot,r:e,k:t,f:!!n}:e:null);function S(e,t=null,n=null,s=0,o=null,r=e===Ce?0:1,a=!1,i=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&kf(t),ref:t&&qr(t),scopeId:zd,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:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ot};return i?(Gr(u,n),r&128&&e.normalize(u)):n&&(u.shapeFlag|=rt(n)?8:16),go>0&&!a&&Ut&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Ut.push(u),u}const v=mg;function mg(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===tf)&&(e=vn),Xo(e)){const i=bs(e,t,!0);return n&&Gr(i,n),go>0&&!r&&Ut&&(i.shapeFlag&6?Ut[Ut.indexOf(e)]=i:Ut.push(i)),i.patchFlag=-2,i}if(kg(e)&&(e=e.__vccOpts),t){t=Pt(t);let{class:i,style:u}=t;i&&!rt(i)&&(t.class=_e(i)),Je(u)&&(wa(u)&&!ke(u)&&(u=ft({},u)),t.style=hn(u))}const a=rt(e)?1:wf(e)?128:kh(e)?64:Je(e)?4:Oe(e)?2:0;return S(e,t,n,s,o,a,r,!0)}function Pt(e){return e?wa(e)||pf(e)?ft({},e):e:null}function bs(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:a,children:i,transition:u}=e,c=t?Ae(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&kf(c),ref:t&&t.ref?n&&r?ke(r)?r.concat(qr(t)):[r,qr(t)]:qr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&bs(e.ssContent),ssFallback:e.ssFallback&&bs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&s&&Go(d,u.clone(d)),d}function G(e=" ",t=0){return v(hr,null,e,t)}function hg(e,t){const n=v(Nr,null,e);return n.staticCount=t,n}function xe(e="",t=!1){return t?(x(),R(vn,null,e)):v(vn,null,e)}function On(e){return e==null||typeof e=="boolean"?v(vn):ke(e)?v(Ce,null,e.slice()):Xo(e)?jn(e):v(hr,null,String(e))}function jn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:bs(e)}function Gr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ke(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Gr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!pf(t)?t._ctx=Ot:o===3&&Ot&&(Ot.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Oe(t)){if(s&65){Gr(e,{default:t});return}t={default:t,_ctx:Ot},n=32}else t=String(t),s&64?(n=16,t=[G(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ae(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=_e([t.class,s.class]));else if(o==="style")t.style=hn([t.style,s.style]);else if(ca(o)){const r=t[o],a=s[o];a&&r!==a&&!(ke(r)&&r.includes(a))?t[o]=r?[].concat(r,a):a:a==null&&r==null&&!da(o)&&(t[o]=a)}else o!==""&&(t[o]=s[o])}return t}function bn(e,t,n,s=null){un(e,t,7,[n,s])}const gg=af();let vg=0;function yg(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||gg,r={uid:vg++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new wd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hf(s,o),emitsOptions:uf(s,o),emit:null,emitted:null,propsDefaults:We,inheritAttrs:s.inheritAttrs,ctx:We,data:We,props:We,attrs:We,slots:We,refs:We,setupState:We,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=Jh.bind(null,r),e.ce&&e.ce(r),r}let Lt=null;const Xt=()=>Lt||Ot;let Yr,Rl;{const e=ha(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(a=>a(r)):o[0](r)}};Yr=t("__VUE_INSTANCE_SETTERS__",n=>Lt=n),Rl=t("__VUE_SSR_SETTERS__",n=>Jo=n)}const gr=e=>{const t=Lt;return Yr(e),e.scope.on(),()=>{e.scope.off(),Yr(t)}},Iu=()=>{Lt&&Lt.scope.off(),Yr(null)};function Sf(e){return e.vnode.shapeFlag&4}let Jo=!1;function bg(e,t=!1,n=!1){t&&Rl(t);const{props:s,children:o}=e.vnode,r=Sf(e);sg(e,s,r,t),lg(e,o,n||t);const a=r?_g(e,t):void 0;return t&&Rl(!1),a}function _g(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Vh);const{setup:s}=n;if(s){es();const o=e.setupContext=s.length>1?Af(e):null,r=gr(e),a=dr(s,e,0,[e.props,o]),i=md(a);if(ts(),r(),(i||e.sp)&&!co(e)&&Qd(e),i){if(a.then(Iu,Iu),t)return a.then(u=>{Mu(e,u)}).catch(u=>{ka(u,e,0)});e.asyncDep=a}else Mu(e,a)}else Cf(e)}function Mu(e,t,n){Oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Je(t)&&(e.setupState=Bd(t)),Cf(e)}function Cf(e,t,n){const s=e.type;e.render||(e.render=s.render||Tn);{const o=gr(e);es();try{Hh(e)}finally{ts(),o()}}}const wg={get(e,t){return Mt(e,"get",""),e[t]}};function Af(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,wg),slots:e.slots,emit:e.emit,expose:t}}function Ea(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bd(Nd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Bo)return Bo[n](e)},has(t,n){return n in t||n in Bo}})):e.proxy}function xg(e,t=!0){return Oe(e)?e.displayName||e.name:e.name||t&&e.__name}function kg(e){return Oe(e)&&"__vccOpts"in e}const ee=(e,t)=>ph(e,t,Jo);function en(e,t,n){try{zr(-1);const s=arguments.length;return s===2?Je(t)&&!ke(t)?Xo(t)?v(e,null,[t]):v(e,t):v(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Xo(n)&&(n=[n]),v(e,t,n))}finally{zr(1)}}function Sg(e,t,n,s){const o=n[s];if(o&&Cg(o,e))return o;const r=t();return r.memo=e.slice(),r.cacheIndex=s,n[s]=r}function Cg(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s<n.length;s++)if(St(n[s],t[s]))return!1;return go>0&&Ut&&Ut.push(e),!0}const Ag="3.5.40";/**
14
+ * @vue/runtime-dom v3.5.40
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let Dl;const Lu=typeof window<"u"&&window.trustedTypes;if(Lu)try{Dl=Lu.createPolicy("vue",{createHTML:e=>e})}catch{}const Ef=Dl?e=>Dl.createHTML(e):e=>e,Eg="http://www.w3.org/2000/svg",Og="http://www.w3.org/1998/Math/MathML",Un=typeof document<"u"?document:null,Ru=Un&&Un.createElement("template"),Pg={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 o=t==="svg"?Un.createElementNS(Eg,e):t==="mathml"?Un.createElementNS(Og,e):n?Un.createElement(e,{is:n}):Un.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Un.createTextNode(e),createComment:e=>Un.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Un.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const a=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Ru.innerHTML=Ef(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=Ru.content;if(s==="svg"||s==="mathml"){const u=i.firstChild;for(;u.firstChild;)i.appendChild(u.firstChild);i.removeChild(u)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ds="transition",Ao="animation",vo=Symbol("_vtc"),Of={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Tg=ft({},Oh,Of),Is=(e,t=[])=>{ke(e)?e.forEach(n=>n(...t)):e&&e(...t)},Du=e=>e?ke(e)?e.some(t=>t.length>1):e.length>1:!1;function $g(e){const t={};for(const H in e)H in Of||(t[H]=e[H]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:u=r,appearActiveClass:c=a,appearToClass:d=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,g=Ig(o),_=g&&g[0],k=g&&g[1],{onBeforeEnter:h,onEnter:b,onEnterCancelled:T,onLeave:w,onLeaveCancelled:L,onBeforeAppear:$=h,onAppear:A=b,onAppearCancelled:I=T}=t,N=(H,de,ye,J)=>{H._enterCancelled=J,ms(H,de?d:i),ms(H,de?c:a),ye&&ye()},z=(H,de)=>{H._isLeaving=!1,ms(H,f),ms(H,m),ms(H,p),de&&de()},X=H=>(de,ye)=>{const J=H?A:b,ce=()=>N(de,H,ye);Is(J,[de,ce]),Fu(()=>{ms(de,H?u:r),kn(de,H?d:i),Du(J)||Nu(de,s,_,ce)})};return ft(t,{onBeforeEnter(H){Is(h,[H]),kn(H,r),kn(H,a)},onBeforeAppear(H){Is($,[H]),kn(H,u),kn(H,c)},onEnter:X(!1),onAppear:X(!0),onLeave(H,de){H._isLeaving=!0;const ye=()=>z(H,de);kn(H,f),H._enterCancelled?(kn(H,p),Fl(H)):(Fl(H),kn(H,p)),Fu(()=>{H._isLeaving&&(ms(H,f),kn(H,m),Du(w)||Nu(H,s,k,ye))}),Is(w,[H,ye])},onEnterCancelled(H){N(H,!1,void 0,!0),Is(T,[H])},onAppearCancelled(H){N(H,!0,void 0,!0),Is(I,[H])},onLeaveCancelled(H){z(H),Is(L,[H])}})}function Ig(e){if(e==null)return null;if(Je(e))return[nl(e.enter),nl(e.leave)];{const t=nl(e);return[t,t]}}function nl(e){return Im(e)}function kn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[vo]||(e[vo]=new Set)).add(t)}function ms(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[vo];n&&(n.delete(t),n.size||(e[vo]=void 0))}function Fu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Mg=0;function Nu(e,t,n,s){const o=e._endId=++Mg,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:a,timeout:i,propCount:u}=Pf(e,t);if(!a)return s();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,p),r()},p=m=>{m.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},i+1),e.addEventListener(c,p)}function Pf(e,t){const n=window.getComputedStyle(e),s=g=>(n[g]||"").split(", "),o=s(`${ds}Delay`),r=s(`${ds}Duration`),a=qu(o,r),i=s(`${Ao}Delay`),u=s(`${Ao}Duration`),c=qu(i,u);let d=null,f=0,p=0;t===ds?a>0&&(d=ds,f=a,p=r.length):t===Ao?c>0&&(d=Ao,f=c,p=u.length):(f=Math.max(a,c),d=f>0?a>c?ds:Ao:null,p=d?d===ds?r.length:u.length:0);const m=d===ds&&/\b(?:transform|all)(?:,|$)/.test(s(`${ds}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:m}}function qu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Bu(n)+Bu(e[s])))}function Bu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Fl(e){return(e?e.ownerDocument:document).body.offsetHeight}function Lg(e,t,n){const s=e[vo];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Xr=Symbol("_vod"),Ii=Symbol("_vsh"),Nl={name:"show",beforeMount(e,{value:t},{transition:n}){e[Xr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Eo(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Eo(e,!0),s.enter(e)):s.leave(e,()=>{Eo(e,!1)}):Eo(e,t))},beforeUnmount(e,{value:t}){Eo(e,t)}};function Eo(e,t){e.style.display=t?e[Xr]:"none",e[Ii]=!t}const Rg=Symbol(""),Dg=/(?:^|;)\s*display\s*:/;function Fg(e,t,n){const s=e.style,o=rt(n);let r=!1;if(n&&!o){if(t)if(rt(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();n[i]==null&&Ro(s,i,"")}else for(const a in t)n[a]==null&&Ro(s,a,"");for(const a in n){a==="display"&&(r=!0);const i=n[a];i!=null?qg(e,a,!rt(t)&&t?t[a]:void 0,i)||Ro(s,a,i):Ro(s,a,"")}}else if(o){if(t!==n){const a=s[Rg];a&&(n+=";"+a),s.cssText=n,r=Dg.test(n)}}else t&&e.removeAttribute("style");Xr in e&&(e[Xr]=r?s.display:"",e[Ii]&&(s.display="none"))}const Vu=/\s*!important$/;function Ro(e,t,n){if(ke(n))n.forEach(s=>Ro(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Ng(e,t);Vu.test(n)?e.setProperty(as(s),n.replace(Vu,""),"important"):e[s]=n}}const Uu=["Webkit","Moz","ms"],sl={};function Ng(e,t){const n=sl[t];if(n)return n;let s=At(t);if(s!=="filter"&&s in e)return sl[t]=s;s=ma(s);for(let o=0;o<Uu.length;o++){const r=Uu[o]+s;if(r in e)return sl[t]=r}return t}function qg(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&rt(s)&&n===s}const ju="http://www.w3.org/1999/xlink";function Hu(e,t,n,s,o,r=Nm(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ju,t.slice(6,t.length)):e.setAttributeNS(ju,t,n):n==null||r&&!yd(n)?e.removeAttribute(t):e.setAttribute(t,r?"":tn(n)?String(n):n)}function Wu(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ef(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const i=r==="OPTION"?e.getAttribute("value")||"":e.value,u=n==null?e.type==="checkbox"?"on":"":String(n);(i!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=yd(n):n==null&&i==="string"?(n="",a=!0):i==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(o||t)}function no(e,t,n,s){e.addEventListener(t,n,s)}function Bg(e,t,n,s){e.removeEventListener(t,n,s)}const Ku=Symbol("_vei");function Vg(e,t,n,s,o=null){const r=e[Ku]||(e[Ku]={}),a=r[t];if(s&&a)a.value=s;else{const[i,u]=Hg(t);if(s){const c=r[t]=zg(s,o);no(e,i,c,u)}else a&&(Bg(e,i,a,u),r[t]=void 0)}}const Ug=/(Once|Passive|Capture)$/,jg=/^on:?(?:Once|Passive|Capture)$/;function Hg(e){let t,n;for(;(n=e.match(Ug))&&!jg.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):as(e.slice(2)),t]}let ol=0;const Wg=Promise.resolve(),Kg=()=>ol||(Wg.then(()=>ol=0),ol=Date.now());function zg(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(ke(o)){const r=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{r.call(s),s._stopped=!0};const a=o.slice(),i=[s];for(let u=0;u<a.length&&!s._stopped;u++){const c=a[u];c&&un(c,t,5,i)}}else un(o,t,5,[s])};return n.value=e,n.attached=Kg(),n}const zu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gg=(e,t,n,s,o,r)=>{const a=o==="svg";t==="class"?Lg(e,s,a):t==="style"?Fg(e,n,s):ca(t)?da(t)||Vg(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Yg(e,t,s,a))?(Wu(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Hu(e,t,s,a,r,t!=="value")):e._isVueCE&&(Xg(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!rt(s)))?Wu(e,At(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Hu(e,t,s,a))};function Yg(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&zu(t)&&Oe(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return zu(t)&&rt(n)?!1:t in e}function Xg(e,t){const n=e._def.props;if(!n)return!1;const s=At(t);return Array.isArray(n)?n.some(o=>At(o)===s):Object.keys(n).some(o=>At(o)===s)}const Tf=new WeakMap,$f=new WeakMap,Jr=Symbol("_moveCb"),Gu=Symbol("_enterCb"),Jg=e=>(delete e.props.mode,e),Qg=Jg({name:"TransitionGroup",props:ft({},Tg,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Xt(),s=Eh();let o,r;return Ei(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!sv(o[0].el,n.vnode.el,a)){o=[];return}o.forEach(ev),o.forEach(tv);const i=o.filter(nv);Fl(n.vnode.el),i.forEach(u=>{const c=u.el,d=c.style;kn(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[Jr]=p=>{p&&p.target!==c||(!p||p.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[Jr]=null,ms(c,a))};c.addEventListener("transitionend",f)}),o=[]}),()=>{const a=He(e),i=$g(a);let u=a.tag||Ce;if(o=[],r)for(let c=0;c<r.length;c++){const d=r[c];d.el&&d.el instanceof Element&&!d.el[Ii]&&(o.push(d),Go(d,Tl(d,i,s,n)),Tf.set(d,If(d.el)))}r=t.default?Jd(t.default()):[];for(let c=0;c<r.length;c++){const d=r[c];d.key!=null&&Go(d,Tl(d,i,s,n))}return v(u,null,r)}}}),Zg=Qg;function ev(e){const t=e.el;t[Jr]&&t[Jr](),t[Gu]&&t[Gu]()}function tv(e){$f.set(e,If(e.el))}function nv(e){const t=Tf.get(e),n=$f.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const r=e.el,a=r.style,i=r.getBoundingClientRect();let u=1,c=1;return r.offsetWidth&&(u=i.width/r.offsetWidth),r.offsetHeight&&(c=i.height/r.offsetHeight),(!Number.isFinite(u)||u===0)&&(u=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(u-1)<.01&&(u=1),Math.abs(c-1)<.01&&(c=1),a.transform=a.webkitTransform=`translate(${s/u}px,${o/c}px)`,a.transitionDuration="0s",e}}function If(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function sv(e,t,n){const s=e.cloneNode(),o=e[vo];o&&o.forEach(i=>{i.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:a}=Pf(s);return r.removeChild(s),a}const Yu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ke(t)?n=>Fr(t,n):t};function ov(e){e.target.composing=!0}function Xu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rl=Symbol("_assign");function Ju(e,t,n){return t&&(e=e.trim()),n&&(e=vi(e)),e}const Mf={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[rl]=Yu(o);const r=s||o.props&&o.props.type==="number";no(e,t?"change":"input",a=>{a.target.composing||e[rl](Ju(e.value,n,r))}),(n||r)&&no(e,"change",()=>{e.value=Ju(e.value,n,r)}),t||(no(e,"compositionstart",ov),no(e,"compositionend",Xu),no(e,"change",Xu))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},a){if(e[rl]=Yu(a),e.composing)return;const i=(r||e.type==="number")&&!/^0\d/.test(e.value)?vi(e.value):e.value,u=t??"";if(i===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===u)||(e.value=u)}},rv=["ctrl","shift","alt","meta"],av={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)=>rv.some(n=>e[`${n}Key`]&&!t.includes(n))},ln=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...r)=>{for(let a=0;a<t.length;a++){const i=av[t[a]];if(i&&i(o,t))return}return e(o,...r)})},lv={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Qo=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const r=as(o.key);if(t.some(a=>a===r||lv[a]===r))return e(o)})},iv=ft({patchProp:Gg},Pg);let Qu;function uv(){return Qu||(Qu=ug(iv))}const cv=(...e)=>{const t=uv().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=fv(s);if(!o)return;const r=t._component;!Oe(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,dv(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function dv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function fv(e){return rt(e)?document.querySelector(e):e}/*!
18
+ * shared v11.4.8
19
+ * (c) 2026 kazuya kawaguchi
20
+ * Released under the MIT License.
21
+ */const Qr=typeof window<"u",xs=(e,t=!1)=>t?Symbol.for(e):Symbol(e),pv=(e,t,n)=>mv({l:e,k:t,s:n}),mv=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),gt=e=>typeof e=="number"&&isFinite(e),Lf=e=>Li(e)==="[object Date]",yo=e=>Li(e)==="[object RegExp]",Mi=e=>nt(e)&&Object.keys(e).length===0,vt=Object.assign,hv=Object.create,st=(e=null)=>hv(e);let Zu;const Ns=()=>Zu||(Zu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:st()),gv=Object.prototype.hasOwnProperty;function an(e,t){return gv.call(e,t)}const dt=Array.isArray,it=e=>typeof e=="function",he=e=>typeof e=="string",Ke=e=>typeof e=="boolean",ze=e=>e!==null&&typeof e=="object",vv=e=>ze(e)&&it(e.then)&&it(e.catch),Rf=Object.prototype.toString,Li=e=>Rf.call(e),nt=e=>Li(e)==="[object Object]",yv=e=>e==null?"":dt(e)||nt(e)&&e.toString===Rf?JSON.stringify(e,null,2):String(e);function Ri(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}function bv(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function ec(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function _v(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const wv=/^javascript:/i,xv=/^(?:href|src|action|formaction)$/i,kv=/&#(?:x([0-9a-f]+)|(\d+));?/gi,Sv=/&(?:Tab|NewLine);/g,Cv=/&colon;?/gi,Av=/[\u0000-\u0020\u007f-\u009f]/g,Ev=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,Ov=/(^|[\s"'<>/])on(\w+\s*=)/gi,Pv=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function Tv(e,t,n){const s=t||n;if(!s)return e;const o=Number.parseInt(s,t?16:10);return o<=127?String.fromCharCode(o):e}function Di(e){const t=e.replace(kv,Tv).replace(Sv,"").replace(Cv,":").replace(Av,"");return wv.test(t)}function $v(e){const t=/url\s*\(/gi;let n="",s=0,o;for(;(o=t.exec(e))!==null;){const r=o.index,a=t.lastIndex-1;let i=a+1,u=1,c=null;for(;i<e.length;i++){const p=e[i];if(c){p===c&&(c=null);continue}if(p==='"'||p==="'")c=p;else if(p==="(")u++;else if(p===")"&&(u--,u===0))break}if(u!==0)break;const d=e.slice(a+1,i).trim(),f=d.startsWith('"')&&d.endsWith('"')||d.startsWith("'")&&d.endsWith("'")?d.slice(1,-1).trim():d;n+=e.slice(s,r),n+=Di(f)?"url(about:blank)":e.slice(r,i+1),s=i+1}return n+e.slice(s)}function tc(e,t){if(xv.test(e)&&Di(t))return"about:blank";const n=e.toLowerCase()==="style"?$v(t):t;return _v(n)}function Iv(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(t,n,s)=>`${n}="${tc(n,s)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(t,n,s)=>`${n}='${tc(n,s)}'`),Ev.test(e)&&(e=e.replace(Ov,"$1&#111;n$2")),e=e.replace(Pv,(t,n,s,o)=>Di(o)?`${n}${s}about:blank`:t),e}const Er=e=>!ze(e)||dt(e);function Br(e,t){if(Er(e)||Er(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:o}=n.pop();Object.keys(s).forEach(r=>{r!=="__proto__"&&(ze(s[r])&&!ze(o[r])&&(o[r]=Array.isArray(s[r])?[]:st()),Er(o[r])||Er(s[r])?o[r]=s[r]:n.push({src:s[r],des:o[r]}))})}}/*!
22
+ * message-compiler v11.4.8
23
+ * (c) 2026 kazuya kawaguchi
24
+ * Released under the MIT License.
25
+ */function Mv(e,t,n){return{line:e,column:t,offset:n}}function ql(e,t,n){return{start:e,end:t}}const et={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Lv=17;function Oa(e,t,n={}){const{domain:s,messages:o,args:r}=n,a=e,i=new SyntaxError(String(a));return i.code=e,t&&(i.location=t),i.domain=s,i}function Rv(e){throw e}const _n=" ",Dv="\r",It=`
26
+ `,Fv="\u2028",Nv="\u2029";function qv(e){const t=e;let n=0,s=1,o=1,r=0;const a=A=>t[A]===Dv&&t[A+1]===It,i=A=>t[A]===It,u=A=>t[A]===Nv,c=A=>t[A]===Fv,d=A=>a(A)||i(A)||u(A)||c(A),f=()=>n,p=()=>s,m=()=>o,g=()=>r,_=A=>a(A)||u(A)||c(A)?It:t[A],k=()=>_(n),h=()=>_(n+r);function b(){return r=0,d(n)&&(s++,o=0),a(n)&&n++,n++,o++,t[n]}function T(){return a(n+r)&&r++,r++,t[n+r]}function w(){n=0,s=1,o=1,r=0}function L(A=0){r=A}function $(){const A=n+r;for(;A!==n;)b();r=0}return{index:f,line:p,column:m,peekOffset:g,charAt:_,currentChar:k,currentPeek:h,next:b,peek:T,reset:w,resetPeek:L,skipToPeek:$}}const Bn=void 0,Bv=".",nc="'",Vv="tokenizer";function Uv(e,t={}){const n=t.location!==!1,s=qv(e),o=()=>s.index(),r=()=>Mv(s.line(),s.column(),s.index()),a=r(),i=o(),u={currentType:13,offset:i,startLoc:a,endLoc:a,lastType:13,lastOffset:i,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>u,{onError:d}=t;function f(E,P,D,...V){const pe=c();if(P.column+=D,P.offset+=D,d){const oe=n?ql(pe.startLoc,P):null,q=Oa(E,oe,{domain:Vv,args:V});d(q)}}function p(E,P,D){E.endLoc=r(),E.currentType=P;const V={type:P};return n&&(V.loc=ql(E.startLoc,E.endLoc)),D!=null&&(V.value=D),V}const m=E=>p(E,13);function g(E,P){return E.currentChar()===P?(E.next(),P):(f(et.EXPECTED_TOKEN,r(),0,P),"")}function _(E){let P="";for(;E.currentPeek()===_n||E.currentPeek()===It;)P+=E.currentPeek(),E.peek();return P}function k(E){const P=_(E);return E.skipToPeek(),P}function h(E){if(E===Bn)return!1;const P=E.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P===95}function b(E){if(E===Bn)return!1;const P=E.charCodeAt(0);return P>=48&&P<=57}function T(E,P){const{currentType:D}=P;if(D!==2)return!1;_(E);const V=h(E.currentPeek());return E.resetPeek(),V}function w(E,P){const{currentType:D}=P;if(D!==2)return!1;_(E);const V=E.currentPeek()==="-"?E.peek():E.currentPeek(),pe=b(V);return E.resetPeek(),pe}function L(E,P){const{currentType:D}=P;if(D!==2)return!1;_(E);const V=E.currentPeek()===nc;return E.resetPeek(),V}function $(E,P){const{currentType:D}=P;if(D!==7)return!1;_(E);const V=E.currentPeek()===".";return E.resetPeek(),V}function A(E,P){const{currentType:D}=P;if(D!==8)return!1;_(E);const V=h(E.currentPeek());return E.resetPeek(),V}function I(E,P){const{currentType:D}=P;if(!(D===7||D===11))return!1;_(E);const V=E.currentPeek()===":";return E.resetPeek(),V}function N(E,P){const{currentType:D}=P;if(D!==9)return!1;const V=()=>{const oe=E.currentPeek();return oe==="{"?h(E.peek()):oe==="@"||oe==="|"||oe===":"||oe==="."||oe===_n||!oe?!1:oe===It?(E.peek(),V()):X(E,!1)},pe=V();return E.resetPeek(),pe}function z(E){_(E);const P=E.currentPeek()==="|";return E.resetPeek(),P}function X(E,P=!0){const D=(pe=!1,oe="")=>{const q=E.currentPeek();return q==="{"||q==="@"||!q?pe:q==="|"?!(oe===_n||oe===It):q===_n?(E.peek(),D(!0,_n)):q===It?(E.peek(),D(!0,It)):!0},V=D();return P&&E.resetPeek(),V}function H(E,P){const D=E.currentChar();return D===Bn?Bn:P(D)?(E.next(),D):null}function de(E){const P=E.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===95||P===36}function ye(E){return H(E,de)}function J(E){const P=E.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===95||P===36||P===45}function ce(E){return H(E,J)}function j(E){const P=E.charCodeAt(0);return P>=48&&P<=57}function te(E){return H(E,j)}function ae(E){const P=E.charCodeAt(0);return P>=48&&P<=57||P>=65&&P<=70||P>=97&&P<=102}function fe(E){return H(E,ae)}function Qe(E){let P="",D="";for(;P=te(E);)D+=P;return D}function Te(E){let P="";for(;;){const D=E.currentChar();if(D==="\\"){const V=E.peek();V==="{"||V==="}"||V==="@"||V==="|"||V==="\\"?(P+=D+V,E.next(),E.next()):(E.resetPeek(),P+=D,E.next())}else{if(D==="{"||D==="}"||D==="@"||D==="|"||!D)break;if(D===_n||D===It)if(X(E))P+=D,E.next();else{if(z(E))break;P+=D,E.next()}else P+=D,E.next()}}return P}function ht(E){k(E);let P="",D="";for(;P=ce(E);)D+=P;const V=E.currentChar();if(V&&V!=="}"&&V!==Bn&&V!==_n&&V!==It&&V!==" "){const pe=me(E);return f(et.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,D+pe),D+pe}return E.currentChar()===Bn&&f(et.UNTERMINATED_CLOSING_BRACE,r(),0),D}function pt(E){k(E);let P="";return E.currentChar()==="-"?(E.next(),P+=`-${Qe(E)}`):P+=Qe(E),E.currentChar()===Bn&&f(et.UNTERMINATED_CLOSING_BRACE,r(),0),P}function Ye(E){return E!==nc&&E!==It}function Ie(E){k(E),g(E,"'");let P="",D="";for(;P=H(E,Ye);)P==="\\"?D+=Xe(E):D+=P;const V=E.currentChar();return V===It||V===Bn?(f(et.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),V===It&&(E.next(),g(E,"'")),D):(g(E,"'"),D)}function Xe(E){const P=E.currentChar();switch(P){case"\\":case"'":return E.next(),`\\${P}`;case"u":return lt(E,P,4);case"U":return lt(E,P,6);default:return f(et.UNKNOWN_ESCAPE_SEQUENCE,r(),0,P),""}}function lt(E,P,D){g(E,P);let V="";for(let pe=0;pe<D;pe++){const oe=fe(E);if(!oe){f(et.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${P}${V}${E.currentChar()}`);break}V+=oe}return`\\${P}${V}`}function qe(E){return E!=="{"&&E!=="}"&&E!==_n&&E!==It}function me(E){k(E);let P="",D="";for(;P=H(E,qe);)D+=P;return D}function ne(E){let P="",D="";for(;P=ye(E);)D+=P;return D}function C(E){const P=D=>{const V=E.currentChar();return V==="{"||V==="@"||V==="|"||V==="("||V===")"||!V||V===_n?D:(D+=V,E.next(),P(D))};return P("")}function M(E){k(E);const P=g(E,"|");return k(E),P}function K(E,P){let D=null;switch(E.currentChar()){case"{":return P.braceNest>=1&&f(et.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),E.next(),D=p(P,2,"{"),k(E),P.braceNest++,D;case"}":return P.braceNest>0&&P.currentType===2&&f(et.EMPTY_PLACEHOLDER,r(),0),E.next(),D=p(P,3,"}"),P.braceNest--,P.braceNest>0&&k(E),P.inLinked&&P.braceNest===0&&(P.inLinked=!1),D;case"@":return P.braceNest>0&&f(et.UNTERMINATED_CLOSING_BRACE,r(),0),D=ie(E,P)||m(P),P.braceNest=0,D;default:{let pe=!0,oe=!0,q=!0;if(z(E))return P.braceNest>0&&f(et.UNTERMINATED_CLOSING_BRACE,r(),0),D=p(P,1,M(E)),P.braceNest=0,P.inLinked=!1,D;if(P.braceNest>0&&(P.currentType===4||P.currentType===5||P.currentType===6))return f(et.UNTERMINATED_CLOSING_BRACE,r(),0),P.braceNest=0,se(E,P);if(pe=T(E,P))return D=p(P,4,ht(E)),k(E),D;if(oe=w(E,P))return D=p(P,5,pt(E)),k(E),D;if(q=L(E,P))return D=p(P,6,Ie(E)),k(E),D;if(!pe&&!oe&&!q)return D=p(P,12,me(E)),f(et.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,D.value),k(E),D;break}}return D}function ie(E,P){const{currentType:D}=P;let V=null;const pe=E.currentChar();switch((D===7||D===8||D===11||D===9)&&(pe===It||pe===_n)&&f(et.INVALID_LINKED_FORMAT,r(),0),pe){case"@":return E.next(),V=p(P,7,"@"),P.inLinked=!0,V;case".":return k(E),E.next(),p(P,8,".");case":":return k(E),E.next(),p(P,9,":");default:return z(E)?(V=p(P,1,M(E)),P.braceNest=0,P.inLinked=!1,V):$(E,P)||I(E,P)?(k(E),ie(E,P)):A(E,P)?(k(E),p(P,11,ne(E))):N(E,P)?(k(E),pe==="{"?K(E,P)||V:p(P,10,C(E))):(D===7&&f(et.INVALID_LINKED_FORMAT,r(),0),P.braceNest=0,P.inLinked=!1,se(E,P))}}function se(E,P){let D={type:13};if(P.braceNest>0)return K(E,P)||m(P);if(P.inLinked)return ie(E,P)||m(P);switch(E.currentChar()){case"{":return K(E,P)||m(P);case"}":return f(et.UNBALANCED_CLOSING_BRACE,r(),0),E.next(),p(P,3,"}");case"@":return ie(E,P)||m(P);default:{if(z(E))return D=p(P,1,M(E)),P.braceNest=0,P.inLinked=!1,D;if(X(E))return p(P,0,Te(E));break}}return D}function re(){const{currentType:E,offset:P,startLoc:D,endLoc:V}=u;return u.lastType=E,u.lastOffset=P,u.lastStartLoc=D,u.lastEndLoc=V,u.offset=o(),u.startLoc=r(),s.currentChar()===Bn?p(u,13):se(s,u)}return{nextToken:re,currentOffset:o,currentPosition:r,context:c}}const jv="parser",Hv=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,Wv=/\\([\\@{}|])/g;function Kv(e,t){return t}function zv(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Gv(e={}){const t=e.location!==!1,{onError:n}=e;function s(h,b,T,w,...L){const $=h.currentPosition();if($.offset+=w,$.column+=w,n){const A=t?ql(T,$):null,I=Oa(b,A,{domain:jv,args:L});n(I)}}function o(h,b,T){const w={type:h};return t&&(w.start=b,w.end=b,w.loc={start:T,end:T}),w}function r(h,b,T,w){t&&(h.end=b,h.loc&&(h.loc.end=T))}function a(h,b){const T=h.context(),w=o(3,T.offset,T.startLoc);return w.value=b.replace(Wv,Kv),r(w,h.currentOffset(),h.currentPosition()),w}function i(h,b){const T=h.context(),{lastOffset:w,lastStartLoc:L}=T,$=o(5,w,L);return $.index=parseInt(b,10),h.nextToken(),r($,h.currentOffset(),h.currentPosition()),$}function u(h,b){const T=h.context(),{lastOffset:w,lastStartLoc:L}=T,$=o(4,w,L);return $.key=b,h.nextToken(),r($,h.currentOffset(),h.currentPosition()),$}function c(h,b){const T=h.context(),{lastOffset:w,lastStartLoc:L}=T,$=o(9,w,L);return $.value=b.replace(Hv,zv),h.nextToken(),r($,h.currentOffset(),h.currentPosition()),$}function d(h){const b=h.nextToken(),T=h.context(),{lastOffset:w,lastStartLoc:L}=T,$=o(8,w,L);return b.type!==11?(s(h,et.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),$.value="",r($,w,L),{nextConsumeToken:b,node:$}):(b.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,wn(b)),$.value=b.value||"",r($,h.currentOffset(),h.currentPosition()),{node:$})}function f(h,b){const T=h.context(),w=o(7,T.offset,T.startLoc);return w.value=b,r(w,h.currentOffset(),h.currentPosition()),w}function p(h){const b=h.context(),T=o(6,b.offset,b.startLoc);let w=h.nextToken();if(w.type===8){const L=d(h);T.modifier=L.node,w=L.nextConsumeToken||h.nextToken()}switch(w.type!==9&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(w)),w=h.nextToken(),w.type===2&&(w=h.nextToken()),w.type){case 10:w.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(w)),T.key=f(h,w.value||"");break;case 4:w.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(w)),T.key=u(h,w.value||"");break;case 5:w.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(w)),T.key=i(h,w.value||"");break;case 6:w.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(w)),T.key=c(h,w.value||"");break;default:{s(h,et.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const L=h.context(),$=o(7,L.offset,L.startLoc);return $.value="",r($,L.offset,L.startLoc),T.key=$,r(T,L.offset,L.startLoc),{nextConsumeToken:w,node:T}}}return r(T,h.currentOffset(),h.currentPosition()),{node:T}}function m(h){const b=h.context(),T=b.currentType===1?h.currentOffset():b.offset,w=b.currentType===1?b.endLoc:b.startLoc,L=o(2,T,w);L.items=[];let $=null;do{const N=$||h.nextToken();switch($=null,N.type){case 0:N.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(N)),L.items.push(a(h,N.value||""));break;case 5:N.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(N)),L.items.push(i(h,N.value||""));break;case 4:N.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(N)),L.items.push(u(h,N.value||""));break;case 6:N.value==null&&s(h,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(N)),L.items.push(c(h,N.value||""));break;case 7:{const z=p(h);L.items.push(z.node),$=z.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const A=b.currentType===1?b.lastOffset:h.currentOffset(),I=b.currentType===1?b.lastEndLoc:h.currentPosition();return r(L,A,I),L}function g(h,b,T,w){const L=h.context();let $=w.items.length===0;const A=o(1,b,T);A.cases=[],A.cases.push(w);do{const I=m(h);$||($=I.items.length===0),A.cases.push(I)}while(L.currentType!==13);return $&&s(h,et.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),r(A,h.currentOffset(),h.currentPosition()),A}function _(h){const b=h.context(),{offset:T,startLoc:w}=b,L=m(h);return b.currentType===13?L:g(h,T,w,L)}function k(h){const b=Uv(h,vt({},e)),T=b.context(),w=o(0,T.offset,T.startLoc);return t&&w.loc&&(w.loc.source=h),w.body=_(b),e.onCacheKey&&(w.cacheKey=e.onCacheKey(h)),T.currentType!==13&&s(b,et.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,h[T.offset]||""),r(w,b.currentOffset(),b.currentPosition()),w}return{parse:k}}function wn(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Yv(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function sc(e,t){for(let n=0;n<e.length;n++)Fi(e[n],t)}function Fi(e,t){switch(e.type){case 1:sc(e.cases,t),t.helper("plural");break;case 2:sc(e.items,t);break;case 6:{Fi(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Xv(e,t={}){const n=Yv(e);n.helper("normalize"),e.body&&Fi(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Jv(e){const t=e.body;return t.type===2?oc(t):t.cases.forEach(n=>oc(n)),e}function oc(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Ri(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function so(e){switch(e.t=e.type,e.type){case 0:{const t=e;so(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)so(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)so(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;so(t.key),t.k=t.key,delete t.key,t.modifier&&(so(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Qv(e,t){const{filename:n,breakLineCode:s,needIndent:o}=t,r=t.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:o,indentLevel:0};r&&e.loc&&(a.source=e.loc.source);const i=()=>a;function u(_,k){a.code+=_}function c(_,k=!0){const h=k?s:"";u(o?h+" ".repeat(_):h)}function d(_=!0){const k=++a.indentLevel;_&&c(k)}function f(_=!0){const k=--a.indentLevel;_&&c(k)}function p(){c(a.indentLevel)}return{context:i,push:u,indent:d,deindent:f,newline:p,helper:_=>`_${_}`,needIndent:()=>a.needIndent}}function Zv(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),bo(e,t.key),t.modifier?(e.push(", "),bo(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ey(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(bo(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function ty(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let r=0;r<o&&(bo(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function ny(e,t){t.body?bo(e,t.body):e.push("null")}function bo(e,t){const{helper:n}=e;switch(t.type){case 0:ny(e,t);break;case 1:ty(e,t);break;case 2:ey(e,t);break;case 6:Zv(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const sy=(e,t={})=>{const n=he(t.mode)?t.mode:"normal",s=he(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
27
+ `,r=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],i=Qv(e,{filename:s,breakLineCode:o,needIndent:r});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(r),a.length>0&&(i.push(`const { ${Ri(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),i.newline()),i.push("return "),bo(i,e),i.deindent(r),i.push("}"),delete e.helpers;const{code:u,map:c}=i.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function oy(e,t={}){const n=vt({},t),s=!!n.jit,o=!!n.minify,r=n.optimize==null?!0:n.optimize,i=Gv(n).parse(e);return s?(r&&Jv(i),o&&so(i),{ast:i,code:""}):(Xv(i,n),sy(i,n))}/*!
28
+ * core-base v11.4.8
29
+ * (c) 2026 kazuya kawaguchi
30
+ * Released under the MIT License.
31
+ */function ry(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ns().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ns().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function $n(e){return ze(e)&&Ni(e)===0&&(an(e,"b")||an(e,"body"))}const Df=["b","body"];function ay(e){return ks(e,Df)}const Ff=["c","cases"];function ly(e){return ks(e,Ff,[])}const Nf=["s","static"];function iy(e){return ks(e,Nf)}const qf=["i","items"];function uy(e){return ks(e,qf,[])}const Bf=["t","type"];function Ni(e){return ks(e,Bf)}const Vf=["v","value"];function Or(e,t){const n=ks(e,Vf);if(n!=null)return n;throw Zo(t)}const Uf=["m","modifier"];function cy(e){return ks(e,Uf)}const jf=["k","key"];function dy(e){const t=ks(e,jf);if(t)return t;throw Zo(6)}function ks(e,t,n){for(let s=0;s<t.length;s++){const o=t[s];if(an(e,o)&&e[o]!=null)return e[o]}return n}const Hf=[...Df,...Ff,...Nf,...qf,...jf,...Uf,...Vf,...Bf];function Zo(e){return new Error(`unhandled node type: ${e}`)}function al(e){return n=>fy(n,e)}function fy(e,t){const n=ay(t);if(n==null)throw Zo(0);if(Ni(n)===1){const r=ly(n);return e.plural(r.reduce((a,i)=>[...a,rc(e,i)],[]))}else return rc(e,n)}function rc(e,t){const n=iy(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=uy(t).reduce((o,r)=>[...o,Bl(e,r)],[]);return e.normalize(s)}}function Bl(e,t){const n=Ni(t);switch(n){case 3:return Or(t,n);case 9:return Or(t,n);case 4:{const s=t;if(an(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(an(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw Zo(n)}case 5:{const s=t;if(an(s,"i")&&gt(s.i))return e.interpolate(e.list(s.i));if(an(s,"index")&&gt(s.index))return e.interpolate(e.list(s.index));throw Zo(n)}case 6:{const s=t,o=cy(s),r=dy(s);return e.linked(Bl(e,r),o?Bl(e,o):void 0,e.type)}case 7:return Or(t,n);case 8:return Or(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const py=e=>e;let Pr=st();function my(e,t={}){let n=!1;const s=t.onError||Rv;return t.onError=o=>{n=!0,s(o)},{...oy(e,t),detectError:n}}function hy(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&he(e)){Ke(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||py)(e),o=Pr[s];if(o)return o;const{ast:r,detectError:a}=my(e,{...t,location:!1,jit:!0}),i=al(r);return a?i:Pr[s]=i}else{const n=e.cacheKey;if(n){const s=Pr[n];return s||(Pr[n]=al(e))}else return al(e)}}let er=null;function gy(e){er=e}function vy(e,t,n){er&&er.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const yy=by("function:translate");function by(e){return t=>er&&er.emit(e,t)}const zn={INVALID_ARGUMENT:Lv,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},_y=24;function Gn(e){return Oa(e,null,void 0)}function qi(e,t){return t.locale!=null?ac(t.locale):ac(e.locale)}let ll;function ac(e){if(he(e))return e;if(it(e)){if(e.resolvedOnce&&ll!=null)return ll;if(e.constructor.name==="Function"){const t=e();if(vv(t))throw Gn(zn.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ll=t}else throw Gn(zn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Gn(zn.NOT_SUPPORT_LOCALE_TYPE)}function wy(e,t,n){return[...new Set([n,...dt(t)?t:ze(t)?Object.keys(t):he(t)?[t]:[n]])]}function Vl(e,t,n){const s=he(n)?n:tr,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let a=[n];for(;dt(a);)a=lc(r,a,t);const i=dt(t)||!nt(t)?t:t.default?t.default:null;a=he(i)?[i]:i,dt(a)&&lc(r,a,!1),o.__localeChainCache.set(s,r)}return r}function lc(e,t,n){let s=!0;for(let o=0;o<t.length&&Ke(s);o++){const r=t[o];he(r)&&(s=xy(e,t[o],n))}return s}function xy(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=ky(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function ky(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(dt(n)||nt(n))&&n[o]&&(s=n[o])}return s}const Ss=[];Ss[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ss[1]={w:[1],".":[2],"[":[4],o:[7]};Ss[2]={w:[2],i:[3,0],0:[3,0]};Ss[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ss[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ss[5]={"'":[4,0],o:8,l:[5,0]};Ss[6]={'"':[4,0],o:8,l:[6,0]};const Sy=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Cy(e){return Sy.test(e)}function Ay(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Ey(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Oy(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Cy(t)?Ay(t):"*"+t}function Py(e){const t=[];let n=-1,s=0,o=0,r,a,i,u,c,d,f;const p=[];p[0]=()=>{a===void 0?a=i:a+=i},p[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},p[2]=()=>{p[0](),o++},p[3]=()=>{if(o>0)o--,s=4,p[0]();else{if(o=0,a===void 0||(a=Oy(a),a===!1))return!1;p[1]()}};function m(){const g=e[n+1];if(s===5&&g==="'"||s===6&&g==='"')return n++,i="\\"+g,p[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&m())){if(u=Ey(r),f=Ss[s],c=f[u]||f.l||8,c===8||(s=c[0],c[1]!==void 0&&(d=p[c[1]],d&&(i=r,d()===!1))))return;if(s===7)return t}}const ic=new Map;function Ty(e,t){return ze(e)?e[t]:null}function $y(e,t){if(!ze(e))return null;let n=ic.get(t);if(n||(n=Py(t),n&&ic.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const a=n[r];if(Hf.includes(a)&&$n(o)||!ze(o)||!an(o,a))return null;const i=o[a];if(i===void 0||it(o))return null;o=i,r++}return o}const Iy="11.4.8",Pa=-1,tr="en-US",Zr="",uc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function My(){return{upper:(e,t)=>t==="text"&&he(e)?e.toUpperCase():t==="vnode"&&ze(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&he(e)?e.toLowerCase():t==="vnode"&&ze(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&he(e)?uc(e):t==="vnode"&&ze(e)&&"__v_isVNode"in e?uc(e.children):e}}let Wf;function Ly(e){Wf=e}let Kf;function Ry(e){Kf=e}let zf;function Dy(e){zf=e}let Gf=null;const Fy=e=>{Gf=e},Ny=()=>Gf;let Yf=null;const cc=e=>{Yf=e},qy=()=>Yf;let dc=0;function By(e={}){const t=it(e.onWarn)?e.onWarn:bv,n=he(e.version)?e.version:Iy,s=he(e.locale)||it(e.locale)?e.locale:tr,o=it(s)?tr:s,r=dt(e.fallbackLocale)||nt(e.fallbackLocale)||he(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,a=nt(e.messages)?e.messages:il(o),i=nt(e.datetimeFormats)?e.datetimeFormats:il(o),u=nt(e.numberFormats)?e.numberFormats:il(o),c=vt(st(),e.modifiers,My()),d=e.pluralRules||st(),f=it(e.missing)?e.missing:null,p=Ke(e.missingWarn)||yo(e.missingWarn)?e.missingWarn:!0,m=Ke(e.fallbackWarn)||yo(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,_=!!e.unresolving,k=it(e.postTranslation)?e.postTranslation:null,h=nt(e.processor)?e.processor:null,b=Ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,w=it(e.messageCompiler)?e.messageCompiler:Wf,L=it(e.messageResolver)?e.messageResolver:Kf||Ty,$=it(e.localeFallbacker)?e.localeFallbacker:zf||wy,A=ze(e.fallbackContext)?e.fallbackContext:void 0,I=e,N=ze(I.__datetimeFormatters)?I.__datetimeFormatters:new Map,z=ze(I.__numberFormatters)?I.__numberFormatters:new Map,X=ze(I.__meta)?I.__meta:{};dc++;const H={version:n,cid:dc,locale:s,fallbackLocale:r,messages:a,modifiers:c,pluralRules:d,missing:f,missingWarn:p,fallbackWarn:m,fallbackFormat:g,unresolving:_,postTranslation:k,processor:h,warnHtmlMessage:b,escapeParameter:T,messageCompiler:w,messageResolver:L,localeFallbacker:$,fallbackContext:A,onWarn:t,__meta:X};return H.datetimeFormats=i,H.numberFormats=u,H.__datetimeFormatters=N,H.__numberFormatters=z,__INTLIFY_PROD_DEVTOOLS__&&vy(H,n,X),H}const il=e=>({[e]:st()});function Xf(e,t,n,s,o){const{missing:r,onWarn:a}=e;if(r!==null){const i=r(e,n,t,o);return he(i)?i:t}else return t}function Oo(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Vy(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Uy(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Vy(e,t[s]))return!0;return!1}function Jf(e,t,n,s,o,r,a){const{fallbackLocale:i,localeFallbacker:u,onWarn:c}=e,d=u(e,i,n);for(let f=0;f<d.length;f++){const p=d[f],m=(s[p]||{})[t];if(nt(m)&&he(p))return p;Xf(e,t,p,o,a)}return null}function Qf(e,t,n){let s=`${e}__${t}`;return nt(n)&&!Mi(n)&&(s=`${s}__${JSON.stringify(n)}`),s}function Zf(e,t,n){for(const s in n){const o=`${t}__${s}`;for(const r of e.keys())(r===o||r.startsWith(`${o}__`))&&e.delete(r)}}function ep(e,t,n,s){const[,o,r,a]=e;let i=n;return he(o)?t.key=o:nt(o)&&Object.keys(o).forEach(u=>{s.includes(u)?i[u]=o[u]:t[u]=o[u]}),he(r)?t.locale=r:nt(r)&&(i=r),nt(a)&&(i=a),i}function fc(e,...t){const{datetimeFormats:n,unresolving:s,onWarn:o}=e,{__datetimeFormatters:r}=e;if(!he(t[0])&&!Lf(t[0])&&!gt(t[0]))return Zr;const[a,i,u,c]=Ul(...t),d=Ke(u.missingWarn)?u.missingWarn:e.missingWarn,f=Ke(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=!!u.part,m=qi(e,u);if(!he(a)||a===""){const b=new Intl.DateTimeFormat(m.replace(/!/g,""),c);return p?b.formatToParts(i):b.format(i)}const g=Jf(e,a,m,n,d,f,"datetime format");if(!he(g))return s?Pa:a;const _=n[g][a],k=Qf(g,a,c);let h=r.get(k);return h||(h=new Intl.DateTimeFormat(g,vt({},_,c)),r.set(k,h)),p?h.formatToParts(i):h.format(i)}const tp=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ul(...e){const[t]=e,n=st(),s=st();let o;if(he(t)){const a=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw Gn(zn.INVALID_ISO_DATE_ARGUMENT);const i=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();o=new Date(i);try{o.toISOString()}catch{throw Gn(zn.INVALID_ISO_DATE_ARGUMENT)}}else if(Lf(t)){if(isNaN(t.getTime()))throw Gn(zn.INVALID_DATE_ARGUMENT);o=t}else if(gt(t))o=t;else throw Gn(zn.INVALID_ARGUMENT);const r=ep(e,n,s,tp);return[n.key||"",o,n,r]}function pc(e,t,n){Zf(e.__datetimeFormatters,t,n)}function mc(e,...t){const{numberFormats:n,unresolving:s,onWarn:o}=e,{__numberFormatters:r}=e;if(!gt(t[0]))return Zr;const[a,i,u,c]=jl(...t),d=Ke(u.missingWarn)?u.missingWarn:e.missingWarn,f=Ke(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=!!u.part,m=qi(e,u);if(!he(a)||a===""){const b=new Intl.NumberFormat(m.replace(/!/g,""),c);return p?b.formatToParts(i):b.format(i)}const g=Jf(e,a,m,n,d,f,"number format");if(!he(g))return s?Pa:a;const _=n[g][a],k=Qf(g,a,c);let h=r.get(k);return h||(h=new Intl.NumberFormat(g,vt({},_,c)),r.set(k,h)),p?h.formatToParts(i):h.format(i)}const np=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function jl(...e){const[t]=e,n=st(),s=st();if(!gt(t))throw Gn(zn.INVALID_ARGUMENT);const o=t,r=ep(e,n,s,np);return[n.key||"",o,n,r]}function hc(e,t,n){Zf(e.__numberFormatters,t,n)}const jy=e=>e,Hy=e=>"",Wy="text",Ky=e=>e.length===0?"":Ri(e),zy=yv;function ul(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function Gy(e){var n,s;const t=gt(e.pluralIndex)?e.pluralIndex:-1;return gt((n=e.named)==null?void 0:n.count)?e.named.count:gt((s=e.named)==null?void 0:s.n)?e.named.n:t}function Yy(e={}){var h,b,T,w;const t=e.locale,n=Gy(e),s=he(t)&&it((h=e.pluralRules)==null?void 0:h[t])?e.pluralRules[t]:ul,o=s===ul?void 0:ul,r=L=>L[s(n,L.length,o)],a=e.list||[],i=L=>a[L],u=e.named||st();gt(e.pluralIndex)&&(u.count||(u.count=e.pluralIndex),u.n||(u.n=e.pluralIndex));const c=L=>u[L];function d(L,$){const A=it(e.messages)?e.messages(L,!!$):ze(e.messages)?e.messages[L]:!1;return A||(e.parent?e.parent.message(L):Hy)}const f=L=>e.modifiers?e.modifiers[L]:jy,p=it((b=e.processor)==null?void 0:b.normalize)?e.processor.normalize:Ky,m=it((T=e.processor)==null?void 0:T.interpolate)?e.processor.interpolate:zy,g=he((w=e.processor)==null?void 0:w.type)?e.processor.type:Wy,k={list:i,named:c,plural:r,linked:(L,...$)=>{const[A,I]=$;let N="text",z="";$.length===1?ze(A)?(z=A.modifier||z,N=A.type||N):he(A)&&(z=A||z):$.length===2&&(he(A)&&(z=A||z),he(I)&&(N=I||N));const X=d(L,!0)(k),H=X===""||X===void 0?L:X,de=N==="vnode"&&dt(H)&&z?H[0]:H;return z?f(z)(de,N):de},message:d,type:g,interpolate:m,normalize:p,values:vt(st(),a,u)};return k}const gc=()=>"",rn=e=>it(e);function vc(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:a,messages:i}=e,[u,c]=Hl(...t),d=Ke(c.missingWarn)?c.missingWarn:e.missingWarn,f=Ke(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=Ke(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,g=he(c.default)||Ke(c.default)?Ke(c.default)?r?u:()=>u:c.default:n?r?u:()=>u:null,_=n||g!=null&&(he(g)||it(g)),k=qi(e,c);p&&Xy(c);let[h,b,T]=m?[u,k,i[k]||st()]:sp(e,u,k,a,f,d),w=h,L=u;if(!m&&!(he(w)||$n(w)||rn(w))&&_&&(w=g,L=w),!m&&(!(he(w)||$n(w)||rn(w))||!he(b)))return o?Pa:u;let $=!1;const A=()=>{$=!0},I=rn(w)?w:op(e,u,b,w,L,A);if($)return w;const N=Zy(e,b,T,c),z=Yy(N),X=Jy(e,I,z);let H=s?s(X,u):X;if(p&&he(H)&&(H=Iv(H)),__INTLIFY_PROD_DEVTOOLS__){const de={timestamp:Date.now(),key:he(u)?u:rn(w)?w.key:"",locale:b||(rn(w)?w.locale:""),format:he(w)?w:rn(w)?w.source:"",message:H};de.meta=vt({},e.__meta,Ny()||{}),yy(de)}return H}function Xy(e){dt(e.list)?e.list=e.list.map(t=>he(t)?ec(t):t):ze(e.named)&&Object.keys(e.named).forEach(t=>{he(e.named[t])&&(e.named[t]=ec(e.named[t]))})}function sp(e,t,n,s,o,r){const{messages:a,onWarn:i,messageResolver:u,localeFallbacker:c}=e,d=c(e,s,n);let f=st(),p,m=null;const g="translate";for(let _=0;_<d.length&&(p=d[_],f=a[p]||st(),(m=u(f,t))===null&&(m=f[t]),!(he(m)||$n(m)||rn(m)));_++)if(!Uy(p,d)){const k=Xf(e,t,p,r,g);k!==t&&(m=k)}return[m,p,f]}function op(e,t,n,s,o,r){const{messageCompiler:a,warnHtmlMessage:i}=e;if(rn(s)){const c=s;return c.locale=c.locale||n,c.key=c.key||t,c}if(a==null){const c=()=>s;return c.locale=n,c.key=t,c}const u=a(s,Qy(e,n,o,s,i,r));return u.locale=n,u.key=t,u.source=s,u}function Jy(e,t,n){return t(n)}function Hl(...e){const[t,n,s]=e,o=st();if(!he(t)&&!gt(t)&&!rn(t)&&!$n(t))throw Gn(zn.INVALID_ARGUMENT);const r=gt(t)?String(t):(rn(t),t);return gt(n)?o.plural=n:he(n)?o.default=n:nt(n)&&!Mi(n)?o.named=n:dt(n)&&(o.list=n),gt(s)?o.plural=s:he(s)?o.default=s:nt(s)&&vt(o,s),[r,o]}function Qy(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:a=>{throw r&&r(a),a},onCacheKey:a=>pv(t,n,a)}}function Zy(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:a,fallbackLocale:i,fallbackWarn:u,missingWarn:c,fallbackContext:d}=e,p={locale:t,modifiers:o,pluralRules:r,messages:(m,g)=>{let _=a(n,m);if(_==null&&(d||g)){const[k,,h]=sp(d||e,m,t,i,u,c);_=k??a(h,m)}if(he(_)||$n(_)){let k=!1;const b=op(e,m,t,_,m,()=>{k=!0});return k?gc:b}else return rn(_)?_:gc}};return e.processor&&(p.processor=e.processor),s.list&&(p.list=s.list),s.named&&(p.named=s.named),gt(s.plural)&&(p.pluralIndex=s.plural),p}ry();/*!
32
+ * vue-i18n v11.4.8
33
+ * (c) 2026 kazuya kawaguchi
34
+ * Released under the MIT License.
35
+ */const eb="11.4.8";function tb(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ns().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ns().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ns().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ns().__INTLIFY_PROD_DEVTOOLS__=!1)}const jt={UNEXPECTED_RETURN_TYPE:_y,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function zt(e,...t){return Oa(e,null,void 0)}const Wl=xs("__translateVNode"),Kl=xs("__datetimeParts"),zl=xs("__numberParts"),rp=xs("__setPluralRules"),ap=xs("__injectWithOption"),ro=xs("__dispose");function nr(e){if(!ze(e)||$n(e))return e;for(const t in e)if(an(e,t))if(!t.includes("."))ze(e[t])&&nr(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let a=0;a<s;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in o||(o[n[a]]=st()),!ze(o[n[a]])){r=!0;break}o=o[n[a]]}if(r||($n(o)?Hf.includes(n[s])||delete e[t]:(o[n[s]]=e[t],delete e[t])),!$n(o)){const a=o[n[s]];ze(a)&&nr(a)}}return e}function Bi(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,a=nt(n)?n:dt(s)?st():{[e]:st()};if(dt(s)&&s.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:c}=i;u?(a[u]=a[u]||st(),Br(c,a[u])):Br(c,a)}else he(i)&&Br(JSON.parse(i),a)}),o==null&&r)for(const i in a)an(a,i)&&nr(a[i]);return a}function lp(e){return e.type}function ip(e,t,n){let s=ze(t.messages)?t.messages:st();"__i18nGlobal"in n&&(s=Bi(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(ze(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(ze(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function yc(e){return v(hr,null,e,0)}function sr(){return Xt()}const bc="__INTLIFY_META__",_c=()=>[],nb=()=>!1;let wc=0;function xc(e){return(t,n,s,o)=>e(n,s,sr()||void 0,o)}const sb=()=>{const e=sr();let t=null;return e&&(t=lp(e)[bc])?{[bc]:t}:null};function ea(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,o=e.flatJson,r=Qr?F:xa;let a=Ke(e.inheritLocale)?e.inheritLocale:!0;const i=r(t&&a?t.locale.value:he(e.locale)?e.locale:tr),u=r(t&&a?t.fallbackLocale.value:he(e.fallbackLocale)||dt(e.fallbackLocale)||nt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),c=r(Bi(i.value,e)),d=r(nt(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),f=r(nt(e.numberFormats)?e.numberFormats:{[i.value]:{}});let p=t?t.missingWarn:Ke(e.missingWarn)||yo(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:Ke(e.fallbackWarn)||yo(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:Ke(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,k=it(e.missing)?e.missing:null,h=it(e.missing)?xc(e.missing):null,b=it(e.postTranslation)?e.postTranslation:null,T=t?t.warnHtmlMessage:Ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const L=t?t.modifiers:nt(e.modifiers)?e.modifiers:{};let $=e.pluralRules||t&&t.pluralRules,A;A=(()=>{s&&cc(null);const q={version:eb,locale:i.value,fallbackLocale:u.value,messages:c.value,modifiers:L,pluralRules:$,missing:h===null?void 0:h,missingWarn:p,fallbackWarn:m,fallbackFormat:_,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:T,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};q.datetimeFormats=d.value,q.numberFormats=f.value,q.__datetimeFormatters=nt(A)?A.__datetimeFormatters:void 0,q.__numberFormatters=nt(A)?A.__numberFormatters:void 0;const Y=By(q);return s&&cc(Y),Y})(),Oo(A,i.value,u.value);function N(){return[i.value,u.value,c.value,d.value,f.value]}const z=ee({get:()=>i.value,set:q=>{A.locale=q,i.value=q}}),X=ee({get:()=>u.value,set:q=>{A.fallbackLocale=q,u.value=q,Oo(A,i.value,q)}}),H=ee(()=>c.value),de=ee(()=>d.value),ye=ee(()=>f.value);function J(){return it(b)?b:null}function ce(q){b=q,A.postTranslation=q}function j(){return k}function te(q){q!==null&&(h=xc(q)),k=q,A.missing=h}const ae=(q,Y,be,Se,De,Be)=>{N();let je;try{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=t?qy():void 0),je=q(A)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=void 0)}if(be!=="translate exists"&&gt(je)&&je===Pa||be==="translate exists"&&!je){const[Dt,Jt]=Y();return t&&g?Se(t):De(Dt)}else{if(Be(je))return je;throw zt(jt.UNEXPECTED_RETURN_TYPE)}};function fe(...q){return ae(Y=>Reflect.apply(vc,null,[Y,...q]),()=>Hl(...q),"translate",Y=>Reflect.apply(Y.t,Y,[...q]),Y=>Y,Y=>he(Y))}function Qe(...q){const[Y,be,Se]=q;if(Se&&!ze(Se))throw zt(jt.INVALID_ARGUMENT);return fe(Y,be,vt({resolvedMessage:!0},Se||{}))}function Te(...q){return ae(Y=>Reflect.apply(fc,null,[Y,...q]),()=>Ul(...q),"datetime format",Y=>Reflect.apply(Y.d,Y,[...q]),()=>Zr,Y=>he(Y)||dt(Y))}function ht(...q){return ae(Y=>Reflect.apply(mc,null,[Y,...q]),()=>jl(...q),"number format",Y=>Reflect.apply(Y.n,Y,[...q]),()=>Zr,Y=>he(Y)||dt(Y))}function pt(q){return q.map(Y=>he(Y)||gt(Y)||Ke(Y)?yc(String(Y)):Y)}const Ie={normalize:pt,interpolate:q=>q,type:"vnode"};function Xe(...q){return ae(Y=>{let be;const Se=Y;try{Se.processor=Ie,be=Reflect.apply(vc,null,[Se,...q])}finally{Se.processor=null}return be},()=>Hl(...q),"translate",Y=>Y[Wl](...q),Y=>[yc(Y)],Y=>dt(Y))}function lt(...q){return ae(Y=>Reflect.apply(mc,null,[Y,...q]),()=>jl(...q),"number format",Y=>Y[zl](...q),_c,Y=>he(Y)||dt(Y))}function qe(...q){return ae(Y=>Reflect.apply(fc,null,[Y,...q]),()=>Ul(...q),"datetime format",Y=>Y[Kl](...q),_c,Y=>he(Y)||dt(Y))}function me(q){$=q,A.pluralRules=$}function ne(q,Y){return ae(()=>{if(!q)return!1;const be=he(Y)?Y:i.value,Se=he(Y)?[be]:Vl(A,u.value,be);for(let De=0;De<Se.length;De++){const Be=K(Se[De]);let je=A.messageResolver(Be,q);if(je===null&&(je=Be[q]),$n(je)||rn(je)||he(je))return!0}return!1},()=>[q],"translate exists",be=>Reflect.apply(be.te,be,[q,Y]),nb,be=>Ke(be))}function C(q){let Y=null;const be=Vl(A,u.value,i.value);for(let Se=0;Se<be.length;Se++){const De=c.value[be[Se]]||{},Be=A.messageResolver(De,q);if(Be!=null){Y=Be;break}}return Y}function M(q){const Y=C(q);return Y??(t?t.tm(q)||{}:{})}function K(q){return c.value[q]||{}}function ie(q,Y){if(o){const be={[q]:Y};for(const Se in be)an(be,Se)&&nr(be[Se]);Y=be[q]}c.value[q]=Y,A.messages=c.value}function se(q,Y){c.value[q]=c.value[q]||{};const be={[q]:Y};if(o)for(const Se in be)an(be,Se)&&nr(be[Se]);Y=be[q],Br(Y,c.value[q]),A.messages=c.value}function re(q){return d.value[q]||{}}function E(q,Y){d.value[q]=Y,A.datetimeFormats=d.value,pc(A,q,Y)}function P(q,Y){d.value[q]=vt(d.value[q]||{},Y),A.datetimeFormats=d.value,pc(A,q,Y)}function D(q){return f.value[q]||{}}function V(q,Y){f.value[q]=Y,A.numberFormats=f.value,hc(A,q,Y)}function pe(q,Y){f.value[q]=vt(f.value[q]||{},Y),A.numberFormats=f.value,hc(A,q,Y)}wc++,t&&Qr&&(Fe(t.locale,q=>{a&&(i.value=q,A.locale=q,Oo(A,i.value,u.value))}),Fe(t.fallbackLocale,q=>{a&&(u.value=q,A.fallbackLocale=q,Oo(A,i.value,u.value))}));const oe={id:wc,locale:z,fallbackLocale:X,get inheritLocale(){return a},set inheritLocale(q){a=q,q&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,Oo(A,i.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:H,get modifiers(){return L},get pluralRules(){return $||{}},get isGlobal(){return s},get missingWarn(){return p},set missingWarn(q){p=q,A.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(q){m=q,A.fallbackWarn=m},get fallbackRoot(){return g},set fallbackRoot(q){g=q},get fallbackFormat(){return _},set fallbackFormat(q){_=q,A.fallbackFormat=_},get warnHtmlMessage(){return T},set warnHtmlMessage(q){T=q,A.warnHtmlMessage=q},get escapeParameter(){return w},set escapeParameter(q){w=q,A.escapeParameter=q},t:fe,getLocaleMessage:K,setLocaleMessage:ie,mergeLocaleMessage:se,getPostTranslationHandler:J,setPostTranslationHandler:ce,getMissingHandler:j,setMissingHandler:te,[rp]:me};return oe.datetimeFormats=de,oe.numberFormats=ye,oe.rt=Qe,oe.te=ne,oe.tm=M,oe.d=Te,oe.n=ht,oe.getDateTimeFormat=re,oe.setDateTimeFormat=E,oe.mergeDateTimeFormat=P,oe.getNumberFormat=D,oe.setNumberFormat=V,oe.mergeNumberFormat=pe,oe[ap]=n,oe[Wl]=Xe,oe[Kl]=qe,oe[zl]=lt,oe}function ob(e){const t=he(e.locale)?e.locale:tr,n=he(e.fallbackLocale)||dt(e.fallbackLocale)||nt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=it(e.missing)?e.missing:void 0,o=Ke(e.silentTranslationWarn)||yo(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Ke(e.silentFallbackWarn)||yo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=Ke(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=nt(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,d=it(e.postTranslation)?e.postTranslation:void 0,f=he(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,m=Ke(e.sync)?e.sync:!0;let g=e.messages;if(nt(e.sharedMessages)){const L=e.sharedMessages;g=Object.keys(L).reduce((A,I)=>{const N=A[I]||(A[I]={});return vt(N,L[I]),A},g||{})}const{__i18n:_,__root:k,__injectWithOption:h}=e,b=e.datetimeFormats,T=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:w,datetimeFormats:b,numberFormats:T,missing:s,missingWarn:o,fallbackWarn:r,fallbackRoot:a,fallbackFormat:i,modifiers:u,pluralRules:c,postTranslation:d,warnHtmlMessage:f,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:m,__i18n:_,__root:k,__injectWithOption:h}}function Gl(e={}){const t=ea(ob(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(o){t.locale.value=o},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(o){t.fallbackLocale.value=o},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(o){t.setMissingHandler(o)},get silentTranslationWarn(){return Ke(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(o){t.missingWarn=Ke(o)?!o:o},get silentFallbackWarn(){return Ke(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(o){t.fallbackWarn=Ke(o)?!o:o},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(o){t.fallbackFormat=o},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(o){t.setPostTranslationHandler(o)},get sync(){return t.inheritLocale},set sync(o){t.inheritLocale=o},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){t.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(o){t.escapeParameter=o},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...o){return Reflect.apply(t.t,t,[...o])},rt(...o){return Reflect.apply(t.rt,t,[...o])},te(o,r){return t.te(o,r)},tm(o){return t.tm(o)},getLocaleMessage(o){return t.getLocaleMessage(o)},setLocaleMessage(o,r){t.setLocaleMessage(o,r)},mergeLocaleMessage(o,r){t.mergeLocaleMessage(o,r)},d(...o){return Reflect.apply(t.d,t,[...o])},getDateTimeFormat(o){return t.getDateTimeFormat(o)},setDateTimeFormat(o,r){t.setDateTimeFormat(o,r)},mergeDateTimeFormat(o,r){t.mergeDateTimeFormat(o,r)},n(...o){return Reflect.apply(t.n,t,[...o])},getNumberFormat(o){return t.getNumberFormat(o)},setNumberFormat(o,r){t.setNumberFormat(o,r)},mergeNumberFormat(o,r){t.mergeNumberFormat(o,r)}};return s.__extender=n,s}function rb(e,t,n){return{beforeCreate(){const s=sr();if(!s)throw zt(jt.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=kc(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Gl(r);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=kc(e,o);else{this.$i18n=Gl({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&ip(t,o,o),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$te=(r,a)=>this.$i18n.te(r,a),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=sr();if(!s)throw zt(jt.UNEXPECTED_ERROR);const o=this.$i18n;o&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o!=null&&o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n)}}}function kc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[rp](t.pluralizationRules||e.pluralizationRules);const n=Bi(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const Vi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ab({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Ce?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},st())}function up(){return Ce}const lb=Q({name:"i18n-t",props:vt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>gt(e)||!isNaN(e)}},Vi),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||Ht({useScope:e.scope,__useComponent:!0});return()=>{const r=()=>{const u=Object.keys(n).filter(f=>f[0]!=="_"),c=st();e.locale&&(c.locale=e.locale),e.plural!==void 0&&(c.plural=he(e.plural)?+e.plural:e.plural);const d=ab(t,u);return o[Wl](e.keypath,d,c)},a=vt(st(),s),i=he(e.tag)||ze(e.tag)?e.tag:up();return ze(i)?en(i,a,{default:r}):en(i,a,r())}}}),Sc=lb;function ib(e){return dt(e)&&!he(e[0])}function cp(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const a=()=>{const c={part:!0};let d=st();e.locale&&(c.locale=e.locale),he(e.format)?c.key=e.format:ze(e.format)&&(he(e.format.key)&&(c.key=e.format.key),d=Object.keys(e.format).reduce((m,g)=>n.includes(g)?vt(st(),m,{[g]:e.format[g]}):m,st()));const f=s(e.value,c,d);let p=[c.key];return dt(f)?p=f.map((m,g)=>{const _=o[m.type],k=_?_({[m.type]:m.value,index:g,parts:f}):[m.value];return ib(k)&&(k[0].key=`${m.type}-${g}`),k}):he(f)&&(p=[f]),p},i=vt(st(),r),u=he(e.tag)||ze(e.tag)?e.tag:up();return ze(u)?en(u,i,{default:a}):en(u,i,a())}}const ub=Q({name:"i18n-n",props:vt({value:{type:Number,required:!0},format:{type:[String,Object]}},Vi),setup(e,t){const n=e.i18n||Ht({useScope:e.scope,__useComponent:!0});return cp(e,t,np,(...s)=>n[zl](...s))}}),Cc=ub;function cb(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function db(e){const t=a=>{const{instance:i,value:u}=a;if(!i||!i.$)throw zt(jt.UNEXPECTED_ERROR);const c=cb(e,i.$),d=Ac(u);return[Reflect.apply(c.t,c,[...Ec(d)]),c]};return{created:(a,i)=>{const[u,c]=t(i);Qr&&(a.__i18nWatcher=Fe(c.locale,()=>{i.instance&&i.instance.$forceUpdate()})),a.__composer=c,a.textContent=u},unmounted:a=>{Qr&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:i})=>{if(a.__composer){const u=a.__composer,c=Ac(i);a.textContent=Reflect.apply(u.t,u,[...Ec(c)])}},getSSRProps:a=>{const[i]=t(a);return{textContent:i}}}}function Ac(e){if(he(e))return{path:e};if(nt(e)){if(!("path"in e))throw zt(jt.REQUIRED_VALUE,"path");return e}else throw zt(jt.INVALID_VALUE)}function Ec(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,a={},i=s||{};return he(n)&&(a.locale=n),gt(o)&&(a.plural=o),gt(r)&&(a.plural=r),[t,i,a]}function fb(e,t,...n){const s=nt(n[0])?n[0]:{};(Ke(s.globalInstall)?s.globalInstall:!0)&&([Sc.name,"I18nT"].forEach(r=>e.component(r,Sc)),[Cc.name,"I18nN"].forEach(r=>e.component(r,Cc)),[Tc.name,"I18nD"].forEach(r=>e.component(r,Tc))),e.directive("t",db(t))}const pb=xs("global-vue-i18n");function mb(e={}){const t=__VUE_I18N_LEGACY_API__&&Ke(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=Ke(e.globalInjection)?e.globalInjection:!0,s=new Map,[o,r]=hb(e,t),a=xs("");function i(f){return s.get(f)||null}function u(f,p){s.set(f,p)}function c(f){s.delete(f)}const d={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...p){if(f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,d),nt(p[0])){const _=p[0];d.__composerExtend=_.__composerExtend,d.__vueI18nExtend=_.__vueI18nExtend}let m=null;!t&&n&&(m=xb(f,d.global)),__VUE_I18N_FULL_INSTALL__&&fb(f,d,...p),__VUE_I18N_LEGACY_API__&&t&&f.mixin(rb(r,r.__composer,d));const g=f.unmount;f.unmount=()=>{m&&m(),d.dispose(),g()}},get global(){return r},dispose(){o.stop()},__instances:s,__getInstance:i,__setInstance:u,__deleteInstance:c};return d}function Ht(e={}){const t=sr();if(t==null)throw zt(jt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw zt(jt.NOT_INSTALLED);const n=gb(t),s=yb(n),o=lp(t),r=vb(e,o);if(r==="global")return ip(s,e,o),s;if(r==="parent"){let u=Oc(n,t,e.__useComponent);return u==null&&(u=s),u}if(r==="isolated"){if(n.mode!=="composition")throw zt(jt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const u=n,c=vt({},e),d=Oc(n,t);c.__root=d||s;const f=ea(c);return u.__composerExtend&&(f[ro]=u.__composerExtend(f)),ga()&&_i(()=>{const m=f[ro];m&&(m(),delete f[ro])}),f}const a=n;let i=a.__getInstance(t);if(i==null){const u=vt({},e);"__i18n"in o&&(u.__i18n=o.__i18n),s&&(u.__root=s),i=ea(u),a.__composerExtend&&(i[ro]=a.__composerExtend(i)),_b(a,t,i),a.__setInstance(t,i)}return i}function hb(e,t){const n=bi(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Gl(e)):n.run(()=>ea(e));if(s==null)throw zt(jt.UNEXPECTED_ERROR);return[n,s]}function gb(e){const t=js(e.isCE?pb:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw zt(e.isCE?jt.NOT_INSTALLED_WITH_PROVIDE:jt.UNEXPECTED_ERROR);return t}function vb(e,t){return Mi(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function yb(e){return e.mode==="composition"?e.global:e.global.__composer}function Oc(e,t,n=!1){let s=null;const o=t.root;let r=bb(t,n);for(;r!=null;){const a=e;if(e.mode==="composition")s=a.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const i=a.__getInstance(r);i!=null&&(s=i.__composer,n&&s&&!s[ap]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function bb(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _b(e,t,n){ct(()=>{},t),yn(()=>{const s=n;e.__deleteInstance(t);const o=s[ro];o&&(o(),delete s[ro])},t)}const wb=["locale","fallbackLocale","availableLocales"],Pc=["t","rt","d","n","tm","te"];function xb(e,t){const n=Object.create(null);return wb.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw zt(jt.UNEXPECTED_ERROR);const a=ut(r.value)?{get(){return r.value.value},set(i){r.value.value=i}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,a)}),e.config.globalProperties.$i18n=n,Pc.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw zt(jt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Pc.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}const kb=Q({name:"i18n-d",props:vt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Vi),setup(e,t){const n=e.i18n||Ht({useScope:e.scope,__useComponent:!0});return cp(e,t,tp,(...s)=>n[Kl](...s))}}),Tc=kb;tb();Ly(hy);Ry($y);Dy(Vl);if(__INTLIFY_PROD_DEVTOOLS__){const e=Ns();e.__INTLIFY__=!0,gy(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Ui="myapikey.creds";function ta(){const e=localStorage.getItem(Ui);if(!e)return null;try{const t=JSON.parse(e);if(t&&t.user&&t.pass)return{user:t.user,pass:t.pass}}catch{}return null}function dp(e,t){localStorage.setItem(Ui,JSON.stringify({user:e,pass:t}))}function cl(){localStorage.removeItem(Ui)}async function Ve(e,t,n){var i;const s=ta();if(!s)throw new Error("Not authenticated");const o=await fetch(t,{method:e,headers:{authorization:"Basic "+btoa(`${s.user}:${s.pass}`),...n?{"content-type":"application/json"}:{}},body:n?JSON.stringify(n):void 0}),r=await o.text();let a=null;try{a=r?JSON.parse(r):null}catch{}if(!o.ok){const u=((i=a==null?void 0:a.error)==null?void 0:i.message)??r??o.statusText;throw new Error(String(u))}return a}const Sb={common:{loading:"Loading…",dismiss:"Dismiss",confirm:"Confirm",cancel:"Cancel"},nav:{connect:"Usage",models:"Models",logs:"Recent calls",stats:"Stats",settings:"Settings"},app:{connecting:"Connecting…",toLight:"Switch to light",toDark:"Switch to dark",signOut:"Sign out"},login:{subtitle:"Sign in to manage your gateway",username:"Username",password:"Password",signIn:"Sign in",errInvalid:"Invalid username or password",errNetwork:"Can't reach the gateway — is it running?"},connect:{title:"Usage",desc:"Point any OpenAI- or Anthropic-compatible tool here — put the API key below into its 'API key' field.",baseUrlOpenai:"Base URL (OpenAI-compatible)",baseUrlAnthropic:"Base URL (Claude / Anthropic)",apiKey:"API Key",copy:"Copy",copied:"Copied",copyFailed:"Copy failed — select and copy manually",reveal:"Show",hide:"Hide",openaiTitle:"OpenAI-compatible (Cursor, Cline, OpenAI SDK)",anthropicTitle:"Anthropic / Claude Code",curlTitle:"Raw HTTP",responsesTitle:"OpenAI Responses (raw HTTP)",note:"This is the host's LAN IP; if your agent runs on a different network (VPN, container, etc.), use whichever address that machine can reach."},settings:{title:"Account",desc:"Manage your web login account (username + password).",loginPassword:"Login password",username:"Username",newPassword:"New password",newPasswordPh:"Leave blank to keep current",confirmPassword:"Confirm new password",confirmPh:"Re-enter new password",save:"Save",saving:"Saving…",saved:"Account updated",errUserShort:"Username must not be empty",errPassShort:"New password must be at least 8 characters",errPassMismatch:"New passwords don't match",apikey:{title:"API Key",desc:"Rotating invalidates the old key — tools already configured need the new one.",rotate:"Rotate key",rotating:"Rotating…",rotated:"API key rotated",rotateTitle:"Rotate API key",rotateDesc:"Generates a brand-new key; the current one stops working immediately. Any agent already configured (Cursor / Claude Code / etc.) must be updated with the new key to keep working.",rotateConfirm:"Rotate"},storage:{title:"Storage",desc:"Where the gateway keeps its config and call log on disk. To change it, set the MYAPIKEY_DATA_DIR env var or pass --data-dir, then restart.",dataDir:"Data directory",dataFile:"Config file",logsFile:"Call log"}},sources:{manage:"Manage sources",subtitle:"Connect and manage your AI service sources.",add:"Add source",edit:"Edit source",addHint:"Most backends don't implement /responses — enable only if yours does.",nameLabel:"Name",namePh:"openrouter",urlLabelOpenai:"OpenAI base URL",urlPhOpenai:"https://api.openai.com/v1",urlHintOpenai:"Include the version segment, e.g. /v1 or /api/v3 (gateway appends /chat/completions)",urlLabelAnthropic:"Anthropic base URL",urlPhAnthropic:"https://api.anthropic.com",urlHintAnthropic:"Exclude /v1 — the gateway appends /v1/messages",baseHelpToggle:"Why fill it this way?",baseHelpSplit:"A source can serve both formats, and they often live on different URLs (e.g. Ark: OpenAI at /api/coding/v3, Anthropic at /api/coding), so there's one base per format.",baseHelpOpenai:"Include the version segment — it varies by vendor (OpenAI /v1, Ark /api/v3) and the gateway can't guess. Paste the base URL from the backend's docs; the gateway appends /chat/completions.",baseHelpAnthropic:"Exclude /v1 — the Anthropic convention (Claude Code and Ark both append /v1/messages client-side). Fill https://api.anthropic.com or Ark's /api/coding; the gateway appends /v1/messages.",keyLabel:"API Key",keyPh:"sk-…",keyPhEdit:"Enter new key (leave blank to keep current)",currentKeyLabel:"current",formats:"Formats",responses:"Responses API",addBtn:"Add",saveBtn:"Save",cancel:"Cancel",remove:"Remove source",refresh:"Refresh",moreActions:"More actions",refreshModels:"Refresh models",editLabel:"Edit",deleteLabel:"Delete",refreshAll:"Refresh all",refreshing:"Scanning…",discoveredCount:"{n} models",notScanned:"Not scanned",notScannedHint:'Click "Refresh models" to scan this source.',noModelsFound:"No models found",noModelsHint:'Discovery returned no models — this source may not expose a /models list. Use "Add models" to enter names manually.',added:"Source added",updated:"Source updated",removed:'Removed "{name}"',refreshDone:'Refreshed "{name}"',refreshAllDone:"Refreshed all sources",refreshAllPartial:"Some sources failed to refresh: {failed}",refreshAllFailed:"Refresh failed — check that sources are reachable",removeAria:'Remove source "{name}"',errRequired:"name and key are required",errBaseUrl:"fill a base URL for each selected format",errFormat:"Pick at least one format",confirmRemove:'Remove source "{name}"? It will be unlinked from all models.',empty:"No sources yet — add one to connect an AI service."},models:{title:"Models",desc:"Routes to its sources by priority; falls over on 429 / 5xx / timeout.",searchPh:"Search models…",enabledSection:"Enabled",availableSection:"Available",availableDesc:"Discovered across all sources — enable one to make it callable.",openaiSection:"OpenAI · /chat/completions",anthropicSection:"Anthropic · /messages",responsesSection:"OpenAI · /responses",noneSection:"Enabled · no source",empty:"No sources yet.",emptyHint:"Add a source (OpenAI / OpenRouter / a local service) and it will auto-scan available models.",addSource:"Add source",manageSources:"Manage sources",enabled:"enabled",disabled:"disabled",primary:"primary",fallback:"fallback",offeredBy:"sources",noSources:"No sources linked — add one below.",noSourcesShort:"no sources linked",count:"{n} source(s)",enable:"Enable",enableAll:"Enable all",enableAllDone:"Enabled all available models",enableAllFailed:"Failed to enable models",enableAllPartial:"{failed} model(s) failed to enable",unsupported:"Unsupported",fmtOpenai:"OpenAI·Chat",fmtAnthropic:"Anthropic",fmtResponses:"OpenAI·Responses",fmtOpenaiShort:"Chat",fmtAnthropicShort:"Claude",fmtResponsesShort:"Responses",chipLegend:"Tap a format to toggle that route: ● enabled · ○ available · dimmed = no source offers it.",chipOn:"Enabled — click to turn off",chipOff:"Available — click to enable",chipNa:"No source offers this route",addToChain:"Add",addSourceToChain:"Add source",confirmRemove:'Remove "{name}" entirely?',enabledToast:'Enabled "{name}"',disabledToast:'Disabled "{name}"',removedToast:'Removed "{name}"',sourceAdded:"Source added to route",sourceRemoved:"Source removed from route",upstreamLabel:"Upstream model",upstreamPh:"same as name",upstreamHint:"Model name sent upstream to this source. Empty = forward the requested name unchanged.",mapSaved:"Upstream model updated",editUpstream:"Edit upstream model",removeSource:"Remove source",addSourceTitle:"Add source",addSourceDesc:"Attach a source to this model; optionally set the upstream model name sent to it.",addSourceNone:"No sources left to add — every source that serves this model's routes is already attached.",addSourceTargetsHint:"Will attach to:",addSourcePartial:"Some routes failed to add",removeAria:'Remove model "{name}"',moveUpAria:"Move up",moveDownAria:"Move down",expandAria:"Expand",collapseAria:"Collapse",removeModel:"Remove model",moreActions:"More actions",testModel:"Test",probeTesting:"Testing",probeOk:"Working",probeOkHint:"Last test passed (via {name})",probeFail:"Failing",probeFailHint:"Last test failed",delisted:"Possibly delisted",delistedHint:"This model isn't listed by any of its enabled sources — it may be delisted. Use Test to confirm.",removeSourceAria:'Remove source "{name}"',addModels:"Add models",addModelsDesc:"Bulk-add model names for a source with no /models endpoint.",addModelsSlotsHint:"Each model is enabled on every endpoint this source serves:",providerLabel:"Source",providerPh:"Select a source",newSourceOpt:"+ New source",addModelsNewHint:"Create a new source, then attach these models to it.",namesLabel:"Model names",addModelsNamesPh:"One per line, or comma / space separated, e.g. gpt-4o, claude-…",addModelsCount:"{n} model(s) will be added",addModelsBtn:"Add",addedToast:"Added {n} model(s)",addModelsFailed:"{n} failed to add"},logs:{title:"Recent calls",desc:"On-disk (logs.jsonl), last 200, auto-refreshed every 4s by default.",empty:"No calls yet.",noMatch:"No calls match the current filters.",live:"Live",refresh:"Refresh",pause:"Pause",resume:"Resume",col:{time:"Time",model:"Model",provider:"Source",format:"Format",status:"Status",latency:"Latency"},stream:"stream",filter:{title:"Filters",model:"Model",provider:"Source",status:"Status",all:"All",success:"Success",error:"Error",clear:"Clear filters",remove:"Remove {label}"},searchPh:"Search model or source…",summary:{total:"{n} calls",success:"{n} success",fail:"{n} failed",avgLatency:"avg {ms}ms"},detail:{time:"Time",latency:"Latency",stream:"Streaming",streamYes:"yes",streamNo:"no",error:"Error",errorNone:"None"},circuit:{stripTitle:"Sources in cooldown",badge:"Cooldown",remaining:"{s}s left",failures:"{n} consecutive failures",cooldown:"cooldown {s}s",reset:"Reset now",reasonUnknown:"transient failure"}},stats:{title:"Call stats",desc:"Call counts and latency broken down by time, model, source, and format. From the on-disk log (~90 days retained).",range:"Time range",ranges:{h24:"24h",d7:"7d",d30:"30d",d90:"90d",all:"All"},totals:{calls:"Calls",success:"Success",error:"Failed",errorRate:"Error rate",avgLatency:"Avg latency",p95:"P95 latency"},byModel:"By model",byProvider:"By source",byFormat:"By format",byDay:"Calls per day",peak:"Peak",callsAxis:"calls",col:{name:"Name",calls:"Calls",success:"Success",error:"Failed",errorRate:"Error rate",avgLatency:"Avg latency"},empty:"No calls in the selected range.",loading:"Loading…",refresh:"Refresh"}},Cb={common:{loading:"加载中…",dismiss:"关闭",confirm:"确认",cancel:"取消"},nav:{connect:"使用方式",models:"模型",logs:"最近调用",stats:"统计",settings:"设置"},app:{connecting:"连接中…",toLight:"切换到浅色",toDark:"切换到深色",signOut:"退出登录"},login:{subtitle:"登录以管理你的网关",username:"用户名",password:"密码",signIn:"登录",errInvalid:"用户名或密码错误",errNetwork:"无法连接到网关,请确认服务正在运行"},connect:{title:"使用方式",desc:"把任意兼容 OpenAI 或 Anthropic 的工具指向这里,把下面的 API Key 填进它的 api key 字段即可。",baseUrlOpenai:"Base URL(OpenAI 兼容)",baseUrlAnthropic:"Base URL(Claude / Anthropic)",apiKey:"API Key",copy:"复制",copied:"已复制",copyFailed:"复制失败,请手动选中复制",reveal:"显示",hide:"隐藏",openaiTitle:"兼容 OpenAI(Cursor / Cline / OpenAI SDK)",anthropicTitle:"Anthropic / Claude Code",curlTitle:"原始 HTTP",responsesTitle:"OpenAI Responses(原始 HTTP)",note:"上面是本机在局域网里的 IP;若 agent 跑在别的网络(VPN、容器等),请换成那台机器能访问到的地址。"},settings:{title:"账号",desc:"管理网页登录账号(用户名 + 登录密码)。",loginPassword:"登录密码",username:"用户名",newPassword:"新密码",newPasswordPh:"留空则保持当前密码",confirmPassword:"确认新密码",confirmPh:"再次输入新密码",save:"保存",saving:"保存中…",saved:"账号已更新",errUserShort:"用户名不能为空",errPassShort:"新密码至少 8 位",errPassMismatch:"两次输入的新密码不一致",apikey:{title:"API Key",desc:"轮换后旧密钥立即失效,已配好的工具需用新密钥重填。",rotate:"轮换密钥",rotating:"轮换中…",rotated:"API Key 已轮换",rotateTitle:"轮换 API Key",rotateDesc:"会生成一把全新密钥,当前密钥立即失效。已配好的 agent(Cursor / Claude Code 等)需要用新密钥重新配置才能继续调用。",rotateConfirm:"确认轮换"},storage:{title:"存储",desc:"网关在磁盘上保存配置与调用日志的位置。修改方式:设置环境变量 MYAPIKEY_DATA_DIR 或传入 --data-dir,然后重启。",dataDir:"数据目录",dataFile:"配置文件",logsFile:"调用日志"}},sources:{manage:"管理模型来源",subtitle:"接入并管理你的 AI 服务来源。",add:"添加模型来源",edit:"编辑模型来源",addHint:"/responses 多数后端未实现,仅在后端支持时勾选。",nameLabel:"名称",namePh:"openrouter",urlLabelOpenai:"OpenAI Base URL",urlPhOpenai:"https://api.openai.com/v1",urlHintOpenai:"含版本段,如 /v1 或 /api/v3(网关补 /chat/completions)",urlLabelAnthropic:"Anthropic Base URL",urlPhAnthropic:"https://api.anthropic.com",urlHintAnthropic:"不含 /v1,网关自动补 /v1/messages",baseHelpToggle:"为什么这么填?",baseHelpSplit:"一个来源可同时接入两种格式,而它们的后端地址常常不同(例如火山 Ark:OpenAI 是 /api/coding/v3、Anthropic 是 /api/coding),所以按格式分开填。",baseHelpOpenai:"含版本段。各家不同(OpenAI 是 /v1、火山 Ark 是 /api/v3),网关无法替你判断,所以直接粘后端文档的 Base URL;网关在后面补 /chat/completions。",baseHelpAnthropic:"不带 /v1。这是 Anthropic 生态的约定(Claude Code、Ark 都由客户端补 /v1/messages),所以填 https://api.anthropic.com 或 Ark 的 /api/coding,网关自动补 /v1/messages。",keyLabel:"API Key",keyPh:"sk-…",keyPhEdit:"输入新 Key(留空则保持不变)",currentKeyLabel:"当前",formats:"格式",responses:"支持 Responses",addBtn:"添加",saveBtn:"保存",cancel:"取消",remove:"移除来源",refresh:"刷新",moreActions:"更多操作",refreshModels:"刷新模型",editLabel:"编辑",deleteLabel:"删除",refreshAll:"刷新全部",refreshing:"扫描中…",discoveredCount:"{n} 个模型",notScanned:"未扫描",notScannedHint:"点击「刷新模型」扫描该来源。",noModelsFound:"未发现模型",noModelsHint:"扫描未返回模型——该来源可能不提供 /models 列表。可用「添加模型」手动填写名称。",added:"来源已添加",updated:"来源已更新",removed:"已移除「{name}」",refreshDone:"已刷新「{name}」",refreshAllDone:"已刷新所有来源",refreshAllPartial:"部分来源刷新失败:{failed}",refreshAllFailed:"刷新失败,请检查来源是否可达",removeAria:"移除来源「{name}」",errRequired:"名称和密钥为必填",errBaseUrl:"请为已选的每种格式填写 Base URL",errFormat:"请至少选择一种格式",confirmRemove:"确定移除来源「{name}」?它将从所有模型中解除关联。",empty:"还没有模型来源,添加一个来接入 AI 服务。"},models:{title:"模型",desc:"按优先级路由到各来源,遇 429 / 5xx / 超时自动降级。",searchPh:"搜索模型…",enabledSection:"已启用",availableSection:"可用模型",availableDesc:"来自所有来源的发现结果,启用后即可调用。",openaiSection:"OpenAI · /chat/completions",anthropicSection:"Anthropic · /messages",responsesSection:"OpenAI · /responses",noneSection:"已启用 · 无来源",empty:"还没有模型来源。",emptyHint:"添加一个来源(OpenAI / OpenRouter / 本地服务等),它会自动扫描可用模型。",addSource:"添加模型来源",manageSources:"管理模型来源",enabled:"已启用",disabled:"已禁用",primary:"主",fallback:"备",offeredBy:"来源",noSources:"尚未关联来源——从下方加入。",noSourcesShort:"未关联来源",count:"{n} 个来源",enable:"启用",enableAll:"全部启用",enableAllDone:"已启用全部可用模型",enableAllFailed:"启用模型失败",enableAllPartial:"{failed} 个模型启用失败",unsupported:"不支持",fmtOpenai:"OpenAI·Chat",fmtAnthropic:"Anthropic",fmtResponses:"OpenAI·Responses",fmtOpenaiShort:"Chat",fmtAnthropicShort:"Claude",fmtResponsesShort:"Responses",chipLegend:"点格式开关切换该路由:● 已启用 · ○ 可启用 · 灰显=无来源提供。",chipOn:"已启用 — 点击关闭",chipOff:"可启用 — 点击开启",chipNa:"无来源提供此路由",addToChain:"加入",addSourceToChain:"添加来源",confirmRemove:"确定完全移除「{name}」?",enabledToast:"已启用「{name}」",disabledToast:"已禁用「{name}」",removedToast:"已移除「{name}」",sourceAdded:"来源已加入路由",sourceRemoved:"来源已从路由移除",upstreamLabel:"上游模型",upstreamPh:"默认同名",upstreamHint:"发给该上游来源的模型名;留空 = 原样转发请求里的名字。",mapSaved:"上游模型已更新",editUpstream:"编辑上游模型",removeSource:"移除来源",addSourceTitle:"添加来源",addSourceDesc:"选一个来源挂到该模型;可指定发给它的上游模型名。",addSourceNone:"没有可添加的来源 —— 能服务该模型路由的来源都已挂上。",addSourceTargetsHint:"将挂到:",addSourcePartial:"部分路由添加失败",removeAria:"移除模型「{name}」",moveUpAria:"上移",moveDownAria:"下移",expandAria:"展开",collapseAria:"收起",removeModel:"移除模型",moreActions:"更多操作",testModel:"测试",probeTesting:"测试中",probeOk:"可用",probeOkHint:"最近测试通过(源:{name})",probeFail:"不可用",probeFailHint:"最近测试失败",delisted:"可能下架",delistedHint:"该模型已不在任何已启用源的模型列表中,可能已下架。可用「测试」确认。",removeSourceAria:"移除来源「{name}」",addModels:"添加模型",addModelsDesc:"为没有 /models 接口的来源手动批量添加模型名。",addModelsSlotsHint:"每个模型会挂到该来源的所有端点上:",providerLabel:"来源",providerPh:"选择来源",newSourceOpt:"+ 新建来源",addModelsNewHint:"先建一个新来源,再把这些模型挂到它上面。",namesLabel:"模型名",addModelsNamesPh:"每行一个,或用逗号 / 空格分隔,例如 gpt-4o, claude-…",addModelsCount:"将添加 {n} 个模型",addModelsBtn:"添加",addedToast:"已添加 {n} 个模型",addModelsFailed:"{n} 个添加失败"},logs:{title:"最近调用",desc:"落盘存储(logs.jsonl),最近 200 条,默认每 4 秒自动刷新。",empty:"暂无调用记录。",noMatch:"没有符合当前筛选条件的调用。",live:"实时",refresh:"刷新",pause:"暂停",resume:"继续",col:{time:"时间",model:"模型",provider:"来源",format:"格式",status:"状态",latency:"延迟"},stream:"流式",filter:{title:"筛选",model:"模型",provider:"来源",status:"状态",all:"全部",success:"成功",error:"失败",clear:"清除筛选",remove:"移除 {label}"},searchPh:"搜索模型或来源…",summary:{total:"{n} 次调用",success:"{n} 次成功",fail:"{n} 次失败",avgLatency:"平均 {ms}ms"},detail:{time:"时间",latency:"延迟",stream:"流式",streamYes:"是",streamNo:"否",error:"错误",errorNone:"无"},circuit:{stripTitle:"冷却中的来源",badge:"冷却",remaining:"剩 {s}s",failures:"连续失败 {n} 次",cooldown:"冷却 {s}s",reset:"立即重置",reasonUnknown:"临时错误"}},stats:{title:"调用统计",desc:"按时间段、模型、来源、格式汇总调用次数与延迟。数据来自落盘日志(保留约 90 天)。",range:"时间范围",ranges:{h24:"24 小时",d7:"7 天",d30:"30 天",d90:"90 天",all:"全部"},totals:{calls:"总调用",success:"成功",error:"失败",errorRate:"错误率",avgLatency:"平均延迟",p95:"P95 延迟"},byModel:"按模型",byProvider:"按来源",byFormat:"按格式",byDay:"每日调用",peak:"峰值",callsAxis:"次调用",col:{name:"名称",calls:"调用",success:"成功",error:"失败",errorRate:"错误率",avgLatency:"平均延迟"},empty:"所选范围内暂无调用记录。",loading:"加载中…",refresh:"刷新"}},fp="myapikey.locale";function Ab(){const e=localStorage.getItem(fp);return e==="en"||e==="zh"?e:(typeof navigator<"u"?navigator.language:"en").toLowerCase().startsWith("zh")?"zh":"en"}const pp=mb({legacy:!1,locale:Ab(),fallbackLocale:"en",messages:{en:Sb,zh:Cb}});function Eb(e){pp.global.locale.value=e,localStorage.setItem(fp,e)}const Wt={openai:{solid:"bg-emerald-500",text:"text-emerald-600 dark:text-emerald-400",soft:"bg-emerald-500/5",border:"border-emerald-500/30",chip:"bg-emerald-500/15 text-emerald-700 dark:text-emerald-300",badge:"border-transparent bg-emerald-500/15 text-emerald-600 dark:text-emerald-400"},anthropic:{solid:"bg-amber-500",text:"text-amber-600 dark:text-amber-400",soft:"bg-amber-500/5",border:"border-amber-500/30",chip:"bg-amber-500/15 text-amber-700 dark:text-amber-300",badge:"border-transparent bg-amber-500/15 text-amber-600 dark:text-amber-400"},responses:{solid:"bg-violet-500",text:"text-violet-600 dark:text-violet-400",soft:"bg-violet-500/5",border:"border-violet-500/30",chip:"bg-violet-500/15 text-violet-700 dark:text-violet-300",badge:"border-transparent bg-violet-500/15 text-violet-600 dark:text-violet-400"}},$c=[{solid:"bg-sky-500",badge:"border-transparent bg-sky-500/15 text-sky-600 dark:text-sky-400"},{solid:"bg-indigo-500",badge:"border-transparent bg-indigo-500/15 text-indigo-600 dark:text-indigo-400"},{solid:"bg-fuchsia-500",badge:"border-transparent bg-fuchsia-500/15 text-fuchsia-600 dark:text-fuchsia-400"},{solid:"bg-rose-500",badge:"border-transparent bg-rose-500/15 text-rose-600 dark:text-rose-400"},{solid:"bg-teal-500",badge:"border-transparent bg-teal-500/15 text-teal-600 dark:text-teal-400"},{solid:"bg-orange-500",badge:"border-transparent bg-orange-500/15 text-orange-600 dark:text-orange-400"},{solid:"bg-cyan-500",badge:"border-transparent bg-cyan-500/15 text-cyan-600 dark:text-cyan-400"},{solid:"bg-pink-500",badge:"border-transparent bg-pink-500/15 text-pink-600 dark:text-pink-400"}];function Yl(e){let t=5381;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);return $c[Math.abs(t)%$c.length]}const or=F([]);let Ob=1;function Pb(){return or}function mp(e){or.value=or.value.filter(t=>t.id!==e)}function $e(e,t="default",n=3500){const s=Ob++;or.value=[...or.value,{id:s,message:e,variant:t}],n>0&&window.setTimeout(()=>mp(s),n)}function hp(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=hp(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function gp(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=hp(e))&&(s&&(s+=" "),s+=t);return s}const Ic=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Mc=gp,vp=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return Mc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:r}=t,a=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],f=r==null?void 0:r[c];if(d===null)return null;const p=Ic(d)||Ic(f);return o[c][p]}),i=n&&Object.entries(n).reduce((c,d)=>{let[f,p]=d;return p===void 0||(c[f]=p),c},{}),u=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((c,d)=>{let{class:f,className:p,...m}=d;return Object.entries(m).every(g=>{let[_,k]=g;return Array.isArray(k)?k.includes({...r,...i}[_]):{...r,...i}[_]===k})?[...c,f,p]:c},[]);return Mc(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)},Tb=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},$b=(e,t)=>({classGroupId:e,validator:t}),yp=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),na="-",Lc=[],Ib="arbitrary..",Mb=e=>{const t=Rb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Lb(a);const i=a.split(na),u=i[0]===""&&i.length>1?1:0;return bp(i,u,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const u=s[a],c=n[a];return u?c?Tb(c,u):u:c||Lc}return n[a]||Lc}}},bp=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],r=n.nextPart.get(o);if(r){const c=bp(e,t+1,r);if(c)return c}const a=n.validators;if(a===null)return;const i=t===0?e.join(na):e.slice(t).join(na),u=a.length;for(let c=0;c<u;c++){const d=a[c];if(d.validator(i))return d.classGroupId}},Lb=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?Ib+s:void 0})(),Rb=e=>{const{theme:t,classGroups:n}=e;return Db(n,t)},Db=(e,t)=>{const n=yp();for(const s in e){const o=e[s];ji(o,n,s,t)}return n},ji=(e,t,n,s)=>{const o=e.length;for(let r=0;r<o;r++){const a=e[r];Fb(a,t,n,s)}},Fb=(e,t,n,s)=>{if(typeof e=="string"){Nb(e,t,n);return}if(typeof e=="function"){qb(e,t,n,s);return}Bb(e,t,n,s)},Nb=(e,t,n)=>{const s=e===""?t:_p(t,e);s.classGroupId=n},qb=(e,t,n,s)=>{if(Vb(e)){ji(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push($b(n,e))},Bb=(e,t,n,s)=>{const o=Object.entries(e),r=o.length;for(let a=0;a<r;a++){const[i,u]=o[a];ji(u,_p(t,i),n,s)}},_p=(e,t)=>{let n=e;const s=t.split(na),o=s.length;for(let r=0;r<o;r++){const a=s[r];let i=n.nextPart.get(a);i||(i=yp(),n.nextPart.set(a,i)),n=i}return n},Vb=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ub=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const o=(r,a)=>{n[r]=a,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(r){let a=n[r];if(a!==void 0)return a;if((a=s[r])!==void 0)return o(r,a),a},set(r,a){r in n?n[r]=a:o(r,a)}}},Xl="!",Rc=":",jb=[],Dc=(e,t,n,s,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:o}),Hb=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=o=>{const r=[];let a=0,i=0,u=0,c;const d=o.length;for(let _=0;_<d;_++){const k=o[_];if(a===0&&i===0){if(k===Rc){r.push(o.slice(u,_)),u=_+1;continue}if(k==="/"){c=_;continue}}k==="["?a++:k==="]"?a--:k==="("?i++:k===")"&&i--}const f=r.length===0?o:o.slice(u);let p=f,m=!1;f.endsWith(Xl)?(p=f.slice(0,-1),m=!0):f.startsWith(Xl)&&(p=f.slice(1),m=!0);const g=c&&c>u?c-u:void 0;return Dc(r,m,p,g)};if(t){const o=t+Rc,r=s;s=a=>a.startsWith(o)?r(a.slice(o.length)):Dc(jb,!1,a,void 0,!0)}if(n){const o=s;s=r=>n({className:r,parseClassName:o})}return s},Wb=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let o=[];for(let r=0;r<n.length;r++){const a=n[r],i=a[0]==="[",u=t.has(a);i||u?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(a)):o.push(a)}return o.length>0&&(o.sort(),s.push(...o)),s}},Kb=e=>({cache:Ub(e.cacheSize),parseClassName:Hb(e),sortModifiers:Wb(e),postfixLookupClassGroupIds:zb(e),...Mb(e)}),zb=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let s=0;s<n.length;s++)t[n[s]]=!0;return t},Gb=/\s+/,Yb=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:r,postfixLookupClassGroupIds:a}=t,i=[],u=e.trim().split(Gb);let c="";for(let d=u.length-1;d>=0;d-=1){const f=u[d],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:_,maybePostfixModifierPosition:k}=n(f);if(p){c=f+(c.length>0?" "+c:c);continue}let h=!!k,b;if(h){const A=_.substring(0,k);b=s(A);const I=b&&a[b]?s(_):void 0;I&&I!==b&&(b=I,h=!1)}else b=s(_);if(!b){if(!h){c=f+(c.length>0?" "+c:c);continue}if(b=s(_),!b){c=f+(c.length>0?" "+c:c);continue}h=!1}const T=m.length===0?"":m.length===1?m[0]:r(m).join(":"),w=g?T+Xl:T,L=w+b;if(i.indexOf(L)>-1)continue;i.push(L);const $=o(b,h);for(let A=0;A<$.length;++A){const I=$[A];i.push(w+I)}c=f+(c.length>0?" "+c:c)}return c},Xb=(...e)=>{let t=0,n,s,o="";for(;t<e.length;)(n=e[t++])&&(s=wp(n))&&(o&&(o+=" "),o+=s);return o},wp=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=wp(e[s]))&&(n&&(n+=" "),n+=t);return n},Jb=(e,...t)=>{let n,s,o,r;const a=u=>{const c=t.reduce((d,f)=>f(d),e());return n=Kb(c),s=n.cache.get,o=n.cache.set,r=i,i(u)},i=u=>{const c=s(u);if(c)return c;const d=Yb(u,n);return o(u,d),d};return r=a,(...u)=>r(Xb(...u))},Qb=[],yt=e=>{const t=n=>n[e]||Qb;return t.isThemeGetter=!0,t},xp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zb=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,e_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,t_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,n_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,s_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,o_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fs=e=>Zb.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),xn=e=>!!e&&Number.isInteger(Number(e)),dl=e=>e.endsWith("%")&&Le(e.slice(0,-1)),Vn=e=>e_.test(e),Sp=()=>!0,r_=e=>t_.test(e)&&!n_.test(e),Hi=()=>!1,a_=e=>s_.test(e),l_=e=>o_.test(e),i_=e=>!ge(e)&&!ve(e),u_=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),c_=e=>Cs(e,Ep,Hi),ge=e=>xp.test(e),Ms=e=>Cs(e,Op,r_),Fc=e=>Cs(e,y_,Le),d_=e=>Cs(e,Tp,Sp),f_=e=>Cs(e,Pp,Hi),Nc=e=>Cs(e,Cp,Hi),p_=e=>Cs(e,Ap,l_),Tr=e=>Cs(e,$p,a_),ve=e=>kp.test(e),Po=e=>zs(e,Op),m_=e=>zs(e,Pp),qc=e=>zs(e,Cp),h_=e=>zs(e,Ep),g_=e=>zs(e,Ap),$r=e=>zs(e,$p,!0),v_=e=>zs(e,Tp,!0),Cs=(e,t,n)=>{const s=xp.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},zs=(e,t,n=!1)=>{const s=kp.exec(e);return s?s[1]?t(s[1]):n:!1},Cp=e=>e==="position"||e==="percentage",Ap=e=>e==="image"||e==="url",Ep=e=>e==="length"||e==="size"||e==="bg-size",Op=e=>e==="length",y_=e=>e==="number",Pp=e=>e==="family-name",Tp=e=>e==="number"||e==="weight",$p=e=>e==="shadow",b_=()=>{const e=yt("color"),t=yt("font"),n=yt("text"),s=yt("font-weight"),o=yt("tracking"),r=yt("leading"),a=yt("breakpoint"),i=yt("container"),u=yt("spacing"),c=yt("radius"),d=yt("shadow"),f=yt("inset-shadow"),p=yt("text-shadow"),m=yt("drop-shadow"),g=yt("blur"),_=yt("perspective"),k=yt("aspect"),h=yt("ease"),b=yt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...w(),ve,ge],$=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],I=()=>[ve,ge,u],N=()=>[fs,"full","auto",...I()],z=()=>[xn,"none","subgrid",ve,ge],X=()=>["auto",{span:["full",xn,ve,ge]},xn,ve,ge],H=()=>[xn,"auto",ve,ge],de=()=>["auto","min","max","fr",ve,ge],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],ce=()=>["auto",...I()],j=()=>[fs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],te=()=>[fs,"screen","full","dvw","lvw","svw","min","max","fit",...I()],ae=()=>[fs,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],fe=()=>[e,ve,ge],Qe=()=>[...w(),qc,Nc,{position:[ve,ge]}],Te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ht=()=>["auto","cover","contain",h_,c_,{size:[ve,ge]}],pt=()=>[dl,Po,Ms],Ye=()=>["","none","full",c,ve,ge],Ie=()=>["",Le,Po,Ms],Xe=()=>["solid","dashed","dotted","double"],lt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],qe=()=>[Le,dl,qc,Nc],me=()=>["","none",g,ve,ge],ne=()=>["none",Le,ve,ge],C=()=>["none",Le,ve,ge],M=()=>[Le,ve,ge],K=()=>[fs,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Vn],breakpoint:[Vn],color:[Sp],container:[Vn],"drop-shadow":[Vn],ease:["in","out","in-out"],font:[i_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Vn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Vn],shadow:[Vn],spacing:["px",Le],text:[Vn],"text-shadow":[Vn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fs,ge,ve,k]}],container:["container"],"container-type":[{"@container":["","normal","size",ve,ge]}],"container-named":[u_],columns:[{columns:[Le,ge,ve,i]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[xn,"auto",ve,ge]}],basis:[{basis:[fs,"full","auto",i,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,fs,"auto","initial","none",ge]}],grow:[{grow:["",Le,ve,ge]}],shrink:[{shrink:["",Le,ve,ge]}],order:[{order:[xn,"first","last","none",ve,ge]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mbs:[{mbs:ce()}],mbe:[{mbe:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...te()]}],"min-inline-size":[{"min-inline":["auto",...te()]}],"max-inline-size":[{"max-inline":["none",...te()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[i,"screen",...j()]}],"min-w":[{"min-w":[i,"screen","none",...j()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Po,Ms]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,v_,d_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dl,ge]}],"font-family":[{font:[m_,f_,t]}],"font-features":[{"font-features":[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ve,ge]}],"line-clamp":[{"line-clamp":[Le,"none",ve,Fc]}],leading:[{leading:[r,...I()]}],"list-image":[{"list-image":["none",ve,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:fe()}],"text-color":[{text:fe()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",ve,Ms]}],"text-decoration-color":[{decoration:fe()}],"underline-offset":[{"underline-offset":[Le,"auto",ve,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"tab-size":[{tab:[xn,ve,ge]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Qe()}],"bg-repeat":[{bg:Te()}],"bg-size":[{bg:ht()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xn,ve,ge],radial:["",ve,ge],conic:[xn,ve,ge]},g_,p_]}],"bg-color":[{bg:fe()}],"gradient-from-pos":[{from:pt()}],"gradient-via-pos":[{via:pt()}],"gradient-to-pos":[{to:pt()}],"gradient-from":[{from:fe()}],"gradient-via":[{via:fe()}],"gradient-to":[{to:fe()}],rounded:[{rounded:Ye()}],"rounded-s":[{"rounded-s":Ye()}],"rounded-e":[{"rounded-e":Ye()}],"rounded-t":[{"rounded-t":Ye()}],"rounded-r":[{"rounded-r":Ye()}],"rounded-b":[{"rounded-b":Ye()}],"rounded-l":[{"rounded-l":Ye()}],"rounded-ss":[{"rounded-ss":Ye()}],"rounded-se":[{"rounded-se":Ye()}],"rounded-ee":[{"rounded-ee":Ye()}],"rounded-es":[{"rounded-es":Ye()}],"rounded-tl":[{"rounded-tl":Ye()}],"rounded-tr":[{"rounded-tr":Ye()}],"rounded-br":[{"rounded-br":Ye()}],"rounded-bl":[{"rounded-bl":Ye()}],"border-w":[{border:Ie()}],"border-w-x":[{"border-x":Ie()}],"border-w-y":[{"border-y":Ie()}],"border-w-s":[{"border-s":Ie()}],"border-w-e":[{"border-e":Ie()}],"border-w-bs":[{"border-bs":Ie()}],"border-w-be":[{"border-be":Ie()}],"border-w-t":[{"border-t":Ie()}],"border-w-r":[{"border-r":Ie()}],"border-w-b":[{"border-b":Ie()}],"border-w-l":[{"border-l":Ie()}],"divide-x":[{"divide-x":Ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Xe(),"hidden","none"]}],"divide-style":[{divide:[...Xe(),"hidden","none"]}],"border-color":[{border:fe()}],"border-color-x":[{"border-x":fe()}],"border-color-y":[{"border-y":fe()}],"border-color-s":[{"border-s":fe()}],"border-color-e":[{"border-e":fe()}],"border-color-bs":[{"border-bs":fe()}],"border-color-be":[{"border-be":fe()}],"border-color-t":[{"border-t":fe()}],"border-color-r":[{"border-r":fe()}],"border-color-b":[{"border-b":fe()}],"border-color-l":[{"border-l":fe()}],"divide-color":[{divide:fe()}],"outline-style":[{outline:[...Xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,ve,ge]}],"outline-w":[{outline:["",Le,Po,Ms]}],"outline-color":[{outline:fe()}],shadow:[{shadow:["","none",d,$r,Tr]}],"shadow-color":[{shadow:fe()}],"inset-shadow":[{"inset-shadow":["none",f,$r,Tr]}],"inset-shadow-color":[{"inset-shadow":fe()}],"ring-w":[{ring:Ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:fe()}],"ring-offset-w":[{"ring-offset":[Le,Ms]}],"ring-offset-color":[{"ring-offset":fe()}],"inset-ring-w":[{"inset-ring":Ie()}],"inset-ring-color":[{"inset-ring":fe()}],"text-shadow":[{"text-shadow":["none",p,$r,Tr]}],"text-shadow-color":[{"text-shadow":fe()}],opacity:[{opacity:[Le,ve,ge]}],"mix-blend":[{"mix-blend":[...lt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":lt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":qe()}],"mask-image-linear-to-pos":[{"mask-linear-to":qe()}],"mask-image-linear-from-color":[{"mask-linear-from":fe()}],"mask-image-linear-to-color":[{"mask-linear-to":fe()}],"mask-image-t-from-pos":[{"mask-t-from":qe()}],"mask-image-t-to-pos":[{"mask-t-to":qe()}],"mask-image-t-from-color":[{"mask-t-from":fe()}],"mask-image-t-to-color":[{"mask-t-to":fe()}],"mask-image-r-from-pos":[{"mask-r-from":qe()}],"mask-image-r-to-pos":[{"mask-r-to":qe()}],"mask-image-r-from-color":[{"mask-r-from":fe()}],"mask-image-r-to-color":[{"mask-r-to":fe()}],"mask-image-b-from-pos":[{"mask-b-from":qe()}],"mask-image-b-to-pos":[{"mask-b-to":qe()}],"mask-image-b-from-color":[{"mask-b-from":fe()}],"mask-image-b-to-color":[{"mask-b-to":fe()}],"mask-image-l-from-pos":[{"mask-l-from":qe()}],"mask-image-l-to-pos":[{"mask-l-to":qe()}],"mask-image-l-from-color":[{"mask-l-from":fe()}],"mask-image-l-to-color":[{"mask-l-to":fe()}],"mask-image-x-from-pos":[{"mask-x-from":qe()}],"mask-image-x-to-pos":[{"mask-x-to":qe()}],"mask-image-x-from-color":[{"mask-x-from":fe()}],"mask-image-x-to-color":[{"mask-x-to":fe()}],"mask-image-y-from-pos":[{"mask-y-from":qe()}],"mask-image-y-to-pos":[{"mask-y-to":qe()}],"mask-image-y-from-color":[{"mask-y-from":fe()}],"mask-image-y-to-color":[{"mask-y-to":fe()}],"mask-image-radial":[{"mask-radial":[ve,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":qe()}],"mask-image-radial-to-pos":[{"mask-radial-to":qe()}],"mask-image-radial-from-color":[{"mask-radial-from":fe()}],"mask-image-radial-to-color":[{"mask-radial-to":fe()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":qe()}],"mask-image-conic-to-pos":[{"mask-conic-to":qe()}],"mask-image-conic-from-color":[{"mask-conic-from":fe()}],"mask-image-conic-to-color":[{"mask-conic-to":fe()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Qe()}],"mask-repeat":[{mask:Te()}],"mask-size":[{mask:ht()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,ge]}],filter:[{filter:["","none",ve,ge]}],blur:[{blur:me()}],brightness:[{brightness:[Le,ve,ge]}],contrast:[{contrast:[Le,ve,ge]}],"drop-shadow":[{"drop-shadow":["","none",m,$r,Tr]}],"drop-shadow-color":[{"drop-shadow":fe()}],grayscale:[{grayscale:["",Le,ve,ge]}],"hue-rotate":[{"hue-rotate":[Le,ve,ge]}],invert:[{invert:["",Le,ve,ge]}],saturate:[{saturate:[Le,ve,ge]}],sepia:[{sepia:["",Le,ve,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,ge]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[Le,ve,ge]}],"backdrop-contrast":[{"backdrop-contrast":[Le,ve,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,ve,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,ve,ge]}],"backdrop-invert":[{"backdrop-invert":["",Le,ve,ge]}],"backdrop-opacity":[{"backdrop-opacity":[Le,ve,ge]}],"backdrop-saturate":[{"backdrop-saturate":[Le,ve,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,ve,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",ve,ge]}],ease:[{ease:["linear","initial",h,ve,ge]}],delay:[{delay:[Le,ve,ge]}],animate:[{animate:["none",b,ve,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ve,ge]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:C()}],"scale-x":[{"scale-x":C()}],"scale-y":[{"scale-y":C()}],"scale-z":[{"scale-z":C()}],"scale-3d":["scale-3d"],skew:[{skew:M()}],"skew-x":[{"skew-x":M()}],"skew-y":[{"skew-y":M()}],transform:[{transform:[ve,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],zoom:[{zoom:[xn,ve,ge]}],accent:[{accent:fe()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:fe()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve,ge]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":fe()}],"scrollbar-track-color":[{"scrollbar-track":fe()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve,ge]}],fill:[{fill:["none",...fe()]}],"stroke-w":[{stroke:[Le,Po,Ms,Fc]}],stroke:[{stroke:["none",...fe()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},__=Jb(b_);function Ge(...e){return __(gp(e))}const w_=["type","disabled"],Pe=Q({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},type:{},disabled:{type:Boolean}},setup(e){const t=e;return(n,s)=>(x(),Z("button",{type:t.type??"button",disabled:t.disabled,class:_e(l(Ge)(l(x_)({variant:t.variant,size:t.size}),t.class))},[ue(n.$slots,"default")],10,w_))}}),x_=vp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-150 hover:scale-[1.02] active:scale-[0.97] disabled:pointer-events-none disabled:opacity-50 disabled:hover:scale-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline hover:scale-100 active:scale-100"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),k_=["type","value","placeholder","autocomplete","disabled"],_t=Q({__name:"Input",props:{modelValue:{},class:{type:[Boolean,null,String,Object,Array]},type:{},placeholder:{},autocomplete:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t;return(o,r)=>(x(),Z("input",{type:n.type??"text",value:n.modelValue,placeholder:n.placeholder,autocomplete:n.autocomplete,disabled:n.disabled,onInput:r[0]||(r[0]=a=>s("update:modelValue",a.target.value)),class:_e(l(Ge)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,42,k_))}}),pn=Q({__name:"Card",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("div",{class:_e(l(Ge)("rounded-xl border bg-card text-card-foreground shadow",t.class))},[ue(n.$slots,"default")],2))}}),In=Q({__name:"CardHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("div",{class:_e(l(Ge)("flex flex-col space-y-1.5 p-6",t.class))},[ue(n.$slots,"default")],2))}}),Mn=Q({__name:"CardTitle",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("h3",{class:_e(l(Ge)("font-semibold leading-none tracking-tight",t.class))},[ue(n.$slots,"default")],2))}}),vs=Q({__name:"CardDescription",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("p",{class:_e(l(Ge)("text-sm text-muted-foreground",t.class))},[ue(n.$slots,"default")],2))}}),mn=Q({__name:"CardContent",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("div",{class:_e(l(Ge)("p-6 pt-0",t.class))},[ue(n.$slots,"default")],2))}}),kt=Q({__name:"Badge",props:{variant:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("span",{class:_e(l(Ge)(l(S_)({variant:t.variant}),t.class))},[ue(n.$slots,"default")],2))}}),S_=vp("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none",{variants:{variant:{default:"border-transparent bg-primary/15 text-primary",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive/15 text-destructive",outline:"text-foreground",muted:"border-transparent bg-muted text-muted-foreground",success:"border-transparent bg-emerald-500/15 text-emerald-500",warning:"border-transparent bg-amber-500/15 text-amber-600 dark:text-amber-400"}},defaultVariants:{variant:"default"}});function Bc(e){return typeof e=="string"?`'${e}'`:new C_().serialize(e)}const C_=function(){var t;class e{constructor(){mu(this,t,new Map)}compare(s,o){const r=typeof s,a=typeof o;return r==="string"&&a==="string"?s.localeCompare(o):r==="number"&&a==="number"?s-o:String.prototype.localeCompare.call(this.serialize(s,!0),this.serialize(o,!0))}serialize(s,o){if(s===null)return"null";switch(typeof s){case"string":return o?s:`'${s}'`;case"bigint":return`${s}n`;case"object":return this.$object(s);case"function":return this.$function(s)}return String(s)}serializeObject(s){const o=Object.prototype.toString.call(s);if(o!=="[object Object]")return this.serializeBuiltInType(o.length<10?`unknown:${o}`:o.slice(8,-1),s);const r=s.constructor,a=r===Object||r===void 0?"":r.name;if(a!==""&&globalThis[a]===r)return this.serializeBuiltInType(a,s);if(typeof s.toJSON=="function"){const i=s.toJSON();return a+(i!==null&&typeof i=="object"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(a,Object.entries(s))}serializeBuiltInType(s,o){const r=this["$"+s];if(r)return r.call(this,o);if(typeof(o==null?void 0:o.entries)=="function")return this.serializeObjectEntries(s,o.entries());throw new Error(`Cannot serialize ${s}`)}serializeObjectEntries(s,o){const r=Array.from(o).sort((i,u)=>this.compare(i[0],u[0]));let a=`${s}{`;for(let i=0;i<r.length;i++){const[u,c]=r[i];a+=`${this.serialize(u,!0)}:${this.serialize(c)}`,i<r.length-1&&(a+=",")}return a+"}"}$object(s){let o=ko(this,t).get(s);return o===void 0&&(ko(this,t).set(s,`#${ko(this,t).size}`),o=this.serializeObject(s),ko(this,t).set(s,o)),o}$function(s){const o=Function.prototype.toString.call(s);return o.slice(-15)==="[native code] }"?`${s.name||""}()[native]`:`${s.name}(${s.length})${o.replace(/\s*\n\s*/g,"")}`}$Array(s){let o="[";for(let r=0;r<s.length;r++)o+=this.serialize(s[r]),r<s.length-1&&(o+=",");return o+"]"}$Date(s){try{return`Date(${s.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(s){return`ArrayBuffer[${new Uint8Array(s).join(",")}]`}$Set(s){return`Set${this.$Array(Array.from(s).sort((o,r)=>this.compare(o,r)))}`}$Map(s){return this.serializeObjectEntries("Map",s.entries())}}t=new WeakMap;for(const n of["Error","RegExp","URL"])e.prototype["$"+n]=function(s){return`${n}(${s})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+n]=function(s){return`${n}[${s.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])e.prototype["$"+n]=function(s){return`${n}[${s.join("n,")}${s.length>0?"n":""}]`};return e}();function rr(e,t){return e===t||Bc(e)===Bc(t)}function Vc(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function Tt(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,s=Symbol(n);return[a=>{const i=js(s,a);if(i||i===null)return i;throw new Error(`Injection \`${s.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},a=>(Ci(s,a),a)]}function wt(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Wi(e,t,n){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),s.dispatchEvent(o)}function _o(e){return e==null}function Uc(e,t){return _o(e)?!1:Array.isArray(e)?e.some(n=>rr(n,t)):rr(e,t)}function Ki(e,t){return ga()?(_i(e,t),!0):!1}function A_(e){let t=!1,n;const s=bi(!0);return(...o)=>(t||(n=s.run(()=>e(...o)),t=!0),n)}const Ln=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const E_=e=>typeof e<"u",O_=Object.prototype.toString,P_=e=>O_.call(e)==="[object Object]",jc=T_();function T_(){var e,t,n;return Ln&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function fl(e){return Array.isArray(e)?e:[e]}function $_(e){return Xt()}function Ip(e){if(!Ln)return e;let t=0,n,s;const o=()=>{t-=1,s&&t<=0&&(s.stop(),n=void 0,s=void 0)};return(...r)=>(t+=1,s||(s=bi(!0),n=s.run(()=>e(...r))),Ki(o),n)}function I_(e){return Hs(ut(e)?new Proxy({},{get(t,n,s){return l(Reflect.get(e.value,n,s))},set(t,n,s){return ut(e.value[n])&&!ut(s)?e.value[n].value=s:e.value[n]=s,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function M_(e){return I_(ee(e))}function L_(e,...t){const n=t.flat(),s=n[0];return M_(()=>Object.fromEntries(typeof s=="function"?Object.entries(Yt(e)).filter(([o,r])=>!s(Rt(r),o)):Object.entries(Yt(e)).filter(o=>!n.includes(o[0]))))}function R_(e,t=1e4){return Vd((n,s)=>{let o=Rt(e),r;const a=()=>setTimeout(()=>{o=Rt(e),s()},Rt(t));return Ki(()=>{clearTimeout(r)}),{get(){return n(),o},set(i){o=i,s(),clearTimeout(r),r=a()}}})}function D_(e,t){$_()&&Ca(e,t)}function F_(e,t,n){return Fe(e,t,{...n,immediate:!0})}const Ta=Ln?window:void 0;function Rn(e){var t;const n=Rt(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function sa(...e){const t=(s,o,r,a)=>(s.addEventListener(o,r,a),()=>s.removeEventListener(o,r,a)),n=ee(()=>{const s=fl(Rt(e[0])).filter(o=>o!=null);return s.every(o=>typeof o!="string")?s:void 0});return F_(()=>{var s,o;return[(s=(o=n.value)===null||o===void 0?void 0:o.map(r=>Rn(r)))!==null&&s!==void 0?s:[Ta].filter(r=>r!=null),fl(Rt(n.value?e[1]:e[0])),fl(l(n.value?e[2]:e[1])),Rt(n.value?e[3]:e[2])]},([s,o,r,a],i,u)=>{if(!(s!=null&&s.length)||!(o!=null&&o.length)||!(r!=null&&r.length))return;const c=P_(a)?{...a}:a,d=s.flatMap(f=>o.flatMap(p=>r.map(m=>t(f,p,m,c))));u(()=>{d.forEach(f=>f())})},{flush:"post"})}function Mp(){const e=xa(!1),t=Xt();return t&&ct(()=>{e.value=!0},t),e}function N_(e){const t=Mp();return ee(()=>(t.value,!!e()))}function q_(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function B_(...e){let t,n,s={};e.length===3?(t=e[0],n=e[1],s=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],s=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=Ta,eventName:r="keydown",passive:a=!1,dedupe:i=!1}=s,u=q_(t);return sa(o,r,d=>{d.repeat&&Rt(i)||u(d)&&n(d)},a)}function V_(e){return JSON.parse(JSON.stringify(e))}function U_(e,t,n={}){const{window:s=Ta,...o}=n;let r;const a=N_(()=>s&&"ResizeObserver"in s),i=()=>{r&&(r.disconnect(),r=void 0)},u=Fe(ee(()=>{const d=Rt(e);return Array.isArray(d)?d.map(f=>Rn(f)):[Rn(d)]}),d=>{if(i(),a.value&&s){r=new ResizeObserver(t);for(const f of d)f&&r.observe(f,o)}},{immediate:!0,flush:"post"}),c=()=>{i(),u()};return Ki(c),{isSupported:a,stop:c}}function os(e,t,n,s={}){var o,r;const{clone:a=!1,passive:i=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=s,p=Xt(),m=n||(p==null?void 0:p.emit)||(p==null||(o=p.$emit)===null||o===void 0?void 0:o.bind(p))||(p==null||(r=p.proxy)===null||r===void 0||(r=r.$emit)===null||r===void 0?void 0:r.bind(p==null?void 0:p.proxy));let g=u;t||(t="modelValue"),g=g||`update:${t.toString()}`;const _=b=>a?typeof a=="function"?a(b):V_(b):b,k=()=>E_(e[t])?_(e[t]):d,h=b=>{f?f(b)&&m(g,b):m(g,b)};if(i){const b=F(k());let T=!1;return Fe(()=>e[t],w=>{T||(T=!0,b.value=_(w),mt(()=>T=!1))}),Fe(b,w=>{!T&&(w!==e[t]||c)&&h(w)},{deep:c}),b}else return ee({get(){return k()},set(b){h(b)}})}function zi(e){return e?e.flatMap(t=>t.type===Ce?zi(t.children):[t]):[]}const j_=["INPUT","TEXTAREA"];function Hc(e,t,n,s={}){if(!t||s.enableIgnoredElement&&j_.includes(t.nodeName))return null;const{arrowKeyOptions:o="both",attributeName:r="[data-reka-collection-item]",itemsArray:a=[],loop:i=!0,dir:u="ltr",preventScroll:c=!0,focus:d=!1}=s,[f,p,m,g,_,k]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],h=m||g,b=f||p;if(!_&&!k&&(!h&&!b||o==="vertical"&&b||o==="horizontal"&&h))return null;const T=n?Array.from(n.querySelectorAll(r)):a;if(!T.length)return null;c&&e.preventDefault();let w=null;return b||h?w=Lp(T,t,{goForward:h?g:u==="ltr"?f:p,loop:i}):_?w=T.at(0)||null:k&&(w=T.at(-1)||null),d&&(w==null||w.focus()),w}function Lp(e,t,n,s=e.includes(t)?e.length:e.length+1){if(--s===0)return null;const o=e.indexOf(t);let r;if(o===-1?r=n.goForward?0:e.length-1:r=n.goForward?o+1:o-1,!n.loop&&(r<0||r>=e.length))return null;const a=(r+e.length)%e.length,i=e[a];return i?i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false"?Lp(e,i,n,s):i:null}const[vr]=Tt("ConfigProvider");function pl(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Jl(e,t,n=".",s){if(!pl(t))return Jl(e,{},n,s);const o={...t};for(const r of Object.keys(e)){if(r==="__proto__"||r==="constructor")continue;const a=e[r];a!=null&&(s&&s(o,r,a,n)||(Array.isArray(a)&&Array.isArray(o[r])?o[r]=[...a,...o[r]]:pl(a)&&pl(o[r])?o[r]=Jl(a,o[r],(n?`${n}.`:"")+r.toString(),s):o[r]=a))}return o}function H_(e){return(...t)=>t.reduce((n,s)=>Jl(n,s,"",e),{})}const W_=H_(),K_=Ip(()=>{const e=F(new Map),t=F(),n=ee(()=>{for(const a of e.value.values())if(a)return!0;return!1}),s=vr({scrollBody:F(!0)});let o=null;const r=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",jc&&(o==null||o()),t.value=void 0};return Fe(n,(a,i)=>{var f;if(!Ln)return;if(!a){i&&r();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,c={padding:u,margin:0},d=(f=s.scrollBody)!=null&&f.value?typeof s.scrollBody.value=="object"?W_({padding:s.scrollBody.value.padding===!0?u:s.scrollBody.value.padding,margin:s.scrollBody.value.margin===!0?u:s.scrollBody.value.margin},c):c:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof d.padding=="number"?`${d.padding}px`:String(d.padding),document.body.style.marginRight=typeof d.margin=="number"?`${d.margin}px`:String(d.margin),document.documentElement.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),jc&&(o=sa(document,"touchmove",p=>z_(p),{passive:!1})),mt(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function $a(e){const t=Math.random().toString(36).substring(2,7),n=K_();n.value.set(t,e??!1);const s=ee({get:()=>n.value.get(t)??!1,set:o=>n.value.set(t,o)});return D_(()=>{n.value.delete(t)}),s}function Rp(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:Rp(n)}}function z_(e){const t=e||window.event,n=t.target;return n instanceof Element&&Rp(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function wo(e){const t=vr({dir:F("ltr")});return ee(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function yr(e){const t=Xt(),n=t==null?void 0:t.type.emits,s={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),n==null||n.forEach(o=>{s[Dr(At(o))]=(...r)=>e(o,...r)}),s}let ml=0;function Gi(){ss(e=>{if(!Ln)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Wc()),document.body.insertAdjacentElement("beforeend",t[1]??Wc()),ml++,e(()=>{ml===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),ml--})})}function Wc(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Dp(e){return ee(()=>{var t;return Rt(e)?!!((t=Rn(e))!=null&&t.closest("form")):!0})}function Ne(){const e=Xt(),t=F(),n=ee(()=>s());Ei(()=>{n.value!==s()&&ah(t)});function s(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Rn(t)}const o=Object.assign({},e.exposed),r={};for(const i in e.props)Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>e.props[i]});if(Object.keys(o).length>0)for(const i in o)Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>o[i]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=r;function a(i){if(t.value=i,!!i&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>i instanceof Element?i:i.$el}),!(i instanceof Element)&&!Object.hasOwn(i,"$el"))){const u=i.$.exposed,c=Object.assign({},r);for(const d in u)Object.defineProperty(c,d,{enumerable:!0,configurable:!0,get:()=>u[d]});e.exposed=c}}return{forwardRef:a,currentRef:t,currentElement:n}}function Ia(e){const t=Xt(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((o,r)=>{const a=(t==null?void 0:t.type.props[r]).default;return a!==void 0&&(o[r]=a),o},{}),s=dh(e);return ee(()=>{const o={},r=(t==null?void 0:t.vnode.props)??{};return Object.keys(r).forEach(a=>{o[At(a)]=r[a]}),Object.keys({...n,...o}).reduce((a,i)=>(s.value[i]!==void 0&&(a[i]=s.value[i]),a),{})})}function $t(e,t){const n=Ia(e),s=t?yr(t):{};return ee(()=>({...n.value,...s}))}function G_(){var t,n;const e=(n=(t=Xt())==null?void 0:t.vnode)==null?void 0:n.scopeId;return e?{[e]:""}:{}}var Y_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zs=new WeakMap,Ir=new WeakMap,Mr={},hl=0,Fp=function(e){return e&&(e.host||Fp(e.parentNode))},X_=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Fp(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},J_=function(e,t,n,s){var o=X_(t,Array.isArray(e)?e:[e]);Mr[n]||(Mr[n]=new WeakMap);var r=Mr[n],a=[],i=new Set,u=new Set(o),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))d(p);else try{var m=p.getAttribute(s),g=m!==null&&m!=="false",_=(Zs.get(p)||0)+1,k=(r.get(p)||0)+1;Zs.set(p,_),r.set(p,k),a.push(p),_===1&&g&&Ir.set(p,!0),k===1&&p.setAttribute(n,"true"),g||p.setAttribute(s,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return d(t),i.clear(),hl++,function(){a.forEach(function(f){var p=Zs.get(f)-1,m=r.get(f)-1;Zs.set(f,p),r.set(f,m),p||(Ir.has(f)||f.removeAttribute(s),Ir.delete(f)),m||f.removeAttribute(n)}),hl--,hl||(Zs=new WeakMap,Zs=new WeakMap,Ir=new WeakMap,Mr={})}},Q_=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),o=Y_(e);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),J_(s,o,n,"aria-hidden")):function(){return null}};function Ma(e){let t;Fe(()=>Rn(e),n=>{let s=!1;try{s=!!(n!=null&&n.closest("[popover]:not(:popover-open)"))}catch{}n&&!s?t=Q_(n):t&&t()}),yn(()=>{t&&t()})}function Dn(e,t="reka"){let n;const s=vr({useId:void 0});return s.useId?n=s.useId():n=Za==null?void 0:Za(),t?`${t}-${n}`:n}function Z_(e){const t=F(),n=ee(()=>{var r;return((r=t.value)==null?void 0:r.width)??0}),s=ee(()=>{var r;return((r=t.value)==null?void 0:r.height)??0});let o;return ct(()=>{const r=Rn(e);r?(t.value={width:r.offsetWidth,height:r.offsetHeight},o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let u,c;if("borderBoxSize"in i){const d=i.borderBoxSize,f=Array.isArray(d)?d[0]:d;u=f.inlineSize,c=f.blockSize}else u=r.offsetWidth,c=r.offsetHeight;t.value={width:u,height:c}}),o.observe(r,{box:"border-box"})):t.value=void 0}),yn(()=>{o==null||o.disconnect(),o=void 0}),{width:n,height:s}}function e1(e,t){const n=F(e);function s(r){return t[n.value][r]??n.value}return{state:n,dispatch:r=>{n.value=s(r)}}}function Yi(e){const t=R_("",1e3);return{search:t,handleTypeaheadSearch:(o,r)=>{t.value=t.value+o;{const a=wt(),i=r.map(p=>{var m,g;return{...p,textValue:((m=p.value)==null?void 0:m.textValue)??((g=p.ref.textContent)==null?void 0:g.trim())??""}}),u=i.find(p=>p.ref===a),c=i.map(p=>p.textValue),d=n1(c,t.value,u==null?void 0:u.textValue),f=i.find(p=>p.textValue===d);return f&&f.ref.focus(),f==null?void 0:f.ref}},resetTypeahead:()=>{t.value=""}}}function t1(e,t){return e.map((n,s)=>e[(t+s)%e.length])}function n1(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let a=t1(e,Math.max(r,0));o.length===1&&(a=a.filter(c=>c!==n));const u=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function s1(e,t){var k;const n=F({}),s=F("none"),o=F(e),r=e.value?"mounted":"unmounted";let a;const i=((k=t.value)==null?void 0:k.ownerDocument.defaultView)??Ta,{state:u,dispatch:c}=e1(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=h=>{var b;if(Ln){const T=new CustomEvent(h,{bubbles:!1,cancelable:!1});(b=t.value)==null||b.dispatchEvent(T)}};Fe(e,async(h,b)=>{var w;const T=b!==h;if(await mt(),T){const L=s.value,$=Lr(t.value);h?(c("MOUNT"),d("enter"),$==="none"&&d("after-enter")):$==="none"||$==="undefined"||((w=n.value)==null?void 0:w.display)==="none"?(c("UNMOUNT"),d("leave"),d("after-leave")):b&&L!==$?(c("ANIMATION_OUT"),d("leave")):(c("UNMOUNT"),d("after-leave"))}},{immediate:!0});const f=h=>{const b=Lr(t.value),T=b.includes(CSS.escape(h.animationName)),w=u.value==="mounted"?"enter":"leave";if(h.target===t.value&&T&&(d(`after-${w}`),c("ANIMATION_END"),!o.value)){const L=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",a=i==null?void 0:i.setTimeout(()=>{var $;(($=t.value)==null?void 0:$.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=L)})}h.target===t.value&&b==="none"&&c("ANIMATION_END")},p=h=>{h.target===t.value&&(s.value=Lr(t.value))},m=Fe(t,(h,b)=>{h?(n.value=getComputedStyle(h),h.addEventListener("animationstart",p),h.addEventListener("animationcancel",f),h.addEventListener("animationend",f)):(c("ANIMATION_END"),a!==void 0&&(i==null||i.clearTimeout(a)),b==null||b.removeEventListener("animationstart",p),b==null||b.removeEventListener("animationcancel",f),b==null||b.removeEventListener("animationend",f))},{immediate:!0}),g=Fe(u,()=>{const h=Lr(t.value);s.value=u.value==="mounted"?h:"none"});return yn(()=>{m(),g(),t.value&&(t.value.removeEventListener("animationstart",p),t.value.removeEventListener("animationcancel",f),t.value.removeEventListener("animationend",f)),a!==void 0&&(i==null||i.clearTimeout(a))}),{isPresent:ee(()=>["mounted","unmountSuspended"].includes(u.value))}}function Lr(e){return e&&getComputedStyle(e).animationName||"none"}var Gs=Q({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var c;const{present:s,forceMount:o}=Yt(e),r=F(),{isPresent:a}=s1(s,r);n({present:a});let i=t.default({present:a.value});i=zi(i||[]);const u=Xt();if(i&&(i==null?void 0:i.length)>1){const d=(c=u==null?void 0:u.parent)!=null&&c.type.name?`<${u.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${d}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>` - ${f}`).join(`
36
+ `)].join(`
37
+ `))}return()=>o.value||s.value||a.value?en(t.default({present:a.value})[0],{ref:d=>{const f=Rn(d);return typeof(f==null?void 0:f.hasAttribute)>"u"||(f!=null&&f.hasAttribute("data-reka-popper-content-wrapper")?r.value=f.firstElementChild:r.value=f),f}}):null}});const Ql=Q({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var u;if(!n.default)return null;const s=zi(n.default()),o=s.findIndex(c=>c.type!==vn);if(o===-1)return s;const r=s[o];(u=r.props)==null||delete u.ref;const a=r.props?Ae(t,r.props):t,i=bs({...r,props:{}},a);return s.length===1?i:(s[o]=i,s)}}}),o1=["area","img","input"],Ue=Q({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const s=e.asChild?"template":e.as;return typeof s=="string"&&o1.includes(s)?()=>en(s,t):s!=="template"?()=>en(e.as,t,{default:n.default}):()=>en(Ql,t,{default:n.default})}});function Zl(){const e=F(),t=ee(()=>{var n,s;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(s=e.value)==null?void 0:s.$el.nextElementSibling:Rn(e)});return{primitiveElement:e,currentElement:t}}const[is,r1]=Tt("DialogRoot");var a1=Q({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=os(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),r=F(),a=F(),{modal:i,unmountOnHide:u}=Yt(n);return r1({open:o,modal:i,unmountOnHide:u,openModal:()=>{o.value=!0},onOpenChange:c=>{o.value=c},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:r,contentElement:a}),(c,d)=>ue(c.$slots,"default",{open:l(o),close:()=>o.value=!1})}}),l1=a1,i1=Q({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Ne();const n=is();return(s,o)=>(x(),R(l(Ue),Ae(t,{type:s.as==="button"?"button":void 0,onClick:o[0]||(o[0]=r=>l(n).onOpenChange(!1))}),{default:y(()=>[ue(s.$slots,"default")]),_:3},16,["type"]))}}),u1=i1;const c1="dismissableLayer.pointerDownOutside",d1="dismissableLayer.focusOutside";function Np(e,t){if(!(t instanceof Element))return!1;const n=t.closest("[data-dismissable-layer]"),s=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),o=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(s===n||o.indexOf(s)<o.indexOf(n)))}function f1(e,t,n=!0){var a;const s=((a=t==null?void 0:t.value)==null?void 0:a.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=F(!1),r=F(()=>{});return ss(i=>{if(!Ln||!Rt(n))return;const u=async d=>{const f=d.target;if(!(!(t!=null&&t.value)||!f)){if(Np(t.value,f)){o.value=!1;return}if(d.target&&!o.value){let g=function(){Wi(c1,e,m)};var p=g;const m={originalEvent:d};d.pointerType==="touch"?(s.removeEventListener("click",r.value),r.value=g,s.addEventListener("click",r.value,{once:!0})):g()}else s.removeEventListener("click",r.value);o.value=!1}},c=window.setTimeout(()=>{s.addEventListener("pointerdown",u)},0);i(()=>{window.clearTimeout(c),s.removeEventListener("pointerdown",u),s.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>{Rt(n)&&(o.value=!0)}}}function p1(e,t,n=!0){var r;const s=((r=t==null?void 0:t.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=F(!1);return ss(a=>{if(!Ln||!Rt(n))return;const i=async u=>{if(!(t!=null&&t.value))return;await mt(),await mt();const c=u.target;!t.value||!c||Np(t.value,c)||u.target&&!o.value&&Wi(d1,e,{originalEvent:u})};s.addEventListener("focusin",i),a(()=>s.removeEventListener("focusin",i))}),{onFocusCapture:()=>{Rt(n)&&(o.value=!0)},onBlurCapture:()=>{Rt(n)&&(o.value=!1)}}}const Qt=Hs({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var m1=Q({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,s=t,{forwardRef:o,currentElement:r}=Ne(),a=ee(()=>{var m;return((m=r.value)==null?void 0:m.ownerDocument)??globalThis.document}),i=ee(()=>Qt.layersRoot),u=ee(()=>r.value?Array.from(i.value).indexOf(r.value):-1),c=ee(()=>Qt.layersWithOutsidePointerEventsDisabled.size>0),d=ee(()=>{const m=Array.from(i.value),[g]=[...Qt.layersWithOutsidePointerEventsDisabled].slice(-1),_=m.indexOf(g);return u.value>=_}),f=f1(async m=>{const g=[...Qt.branches].some(_=>_==null?void 0:_.contains(m.target));!n.present||!d.value||g||(s("pointerDownOutside",m),s("interactOutside",m),await mt(),m.defaultPrevented||s("dismiss"))},r),p=p1(m=>{const g=[...Qt.branches].some(_=>_==null?void 0:_.contains(m.target));!n.present||g||(s("focusOutside",m),s("interactOutside",m),m.defaultPrevented||s("dismiss"))},r);return B_("Escape",m=>{!n.present||!(u.value===i.value.size-1)||(s("escapeKeyDown",m),m.defaultPrevented||s("dismiss"))}),Fe([r,()=>n.disableOutsidePointerEvents,()=>n.present],([m,g,_],k,h)=>{!m||!_||g&&(Qt.layersWithOutsidePointerEventsDisabled.size===0&&(Qt.originalBodyPointerEvents=a.value.body.style.pointerEvents,a.value.body.style.pointerEvents="none"),Qt.layersWithOutsidePointerEventsDisabled.add(m),h(()=>{Qt.layersWithOutsidePointerEventsDisabled.delete(m),Qt.layersWithOutsidePointerEventsDisabled.size===0&&!_o(Qt.originalBodyPointerEvents)&&(a.value.body.style.pointerEvents=Qt.originalBodyPointerEvents)}))},{immediate:!0}),Fe([r,()=>n.present],([m,g],_,k)=>{!m||!g||(i.value.add(m),k(()=>{i.value.delete(m)}))},{immediate:!0}),ss(m=>{m(()=>{r.value&&(i.value.delete(r.value),Qt.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(m,g)=>(x(),R(l(Ue),{ref:l(o),"as-child":m.asChild,as:m.as,"data-dismissable-layer":"",style:hn({pointerEvents:c.value?d.value?"auto":"none":void 0}),onFocusCapture:l(p).onFocusCapture,onBlurCapture:l(p).onBlurCapture,onPointerdownCapture:l(f).onPointerDownCapture},{default:y(()=>[ue(m.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),La=m1;const h1=A_(()=>F([]));function g1(){const e=h1();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=Kc(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=Kc(e.value,t),(n=e.value[0])==null||n.resume()}}}function Kc(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}const gl="focusScope.autoFocusOnMount",vl="focusScope.autoFocusOnUnmount",zc={bubbles:!1,cancelable:!0};function v1(e,{select:t=!1}={}){const n=wt();for(const s of e)if(hs(s,{select:t}),wt()!==n)return!0}function y1(e){const t=qp(e),n=Gc(t,e),s=Gc(t.reverse(),e);return[n,s]}function qp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gc(e,t){for(const n of e)if(!b1(n,{upTo:t}))return n}function b1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _1(e){return e instanceof HTMLInputElement&&"select"in e}function hs(e,{select:t=!1}={}){if(e&&e.focus){const n=wt();e.focus({preventScroll:!0}),e!==n&&_1(e)&&t&&e.select()}}var w1=Q({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,s=t,{currentRef:o,currentElement:r}=Ne(),a=F(null),i=g1(),u=Hs({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});ss(f=>{if(!Ln)return;const p=r.value;if(!n.trapped)return;function m(h){if(u.paused||!p)return;const b=h.target;p.contains(b)?a.value=b:hs(a.value,{select:!0})}function g(h){if(u.paused||!p)return;const b=h.relatedTarget;b!==null&&(p.contains(b)||hs(a.value,{select:!0}))}function _(h){const b=a.value;if(b===null||!h.some(L=>L.removedNodes.length>0))return;p.contains(b)||hs(p)}document.addEventListener("focusin",m),document.addEventListener("focusout",g);const k=new MutationObserver(_);p&&k.observe(p,{childList:!0,subtree:!0}),f(()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),k.disconnect()})});function c(f,p){const m=new CustomEvent(gl,zc),g=_=>s("mountAutoFocus",_);f.addEventListener(gl,g),f.dispatchEvent(m),f.removeEventListener(gl,g),m.defaultPrevented||(v1(qp(f),{select:!0}),wt()===p&&hs(f))}ss(async f=>{const p=r.value;if(await mt(),!p)return;n.present!==!1&&i.add(u);const m=wt();!p.contains(m)&&n.present!==!1&&c(p,m),f(()=>{const _=new CustomEvent(vl,zc),k=h=>{s("unmountAutoFocus",h)};p.addEventListener(vl,k),p.dispatchEvent(_),p.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{_.defaultPrevented||hs(m??document.body,{select:!0}),p.removeEventListener(vl,k),i.remove(u),p.removeAttribute("data-focus-scope-unmounting")},0)})}),Fe(()=>n.present,async(f,p)=>{if(!Ln)return;if(f===!1&&p===!0){i.remove(u);return}if(f!==!0||p!==!1)return;i.add(u),await mt();const m=r.value;if(!m)return;const g=wt();m.contains(g)||c(m,g)});function d(f){if(!n.loop&&!n.trapped||u.paused)return;const p=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,m=wt();if(p&&m){const g=f.currentTarget,[_,k]=y1(g);_&&k?!f.shiftKey&&m===k?(f.preventDefault(),n.loop&&hs(_,{select:!0})):f.shiftKey&&m===_&&(f.preventDefault(),n.loop&&hs(k,{select:!0})):m===g&&f.preventDefault()}}return(f,p)=>(x(),R(l(Ue),{ref_key:"currentRef",ref:o,tabindex:"-1","as-child":f.asChild,as:f.as,onKeydown:d},{default:y(()=>[ue(f.$slots,"default")]),_:3},8,["as-child","as"]))}}),Ra=w1;const x1="menu.itemSelect",ei=["Enter"," "],k1=["ArrowDown","PageUp","Home"],Bp=["ArrowUp","PageDown","End"],S1=[...k1,...Bp];[...ei],[...ei];function Vp(e){return e?"open":"closed"}function ti(e){const t=wt();for(const n of e)if(n===t||(n.focus(),wt()!==t))return}function C1(e,t){const{x:n,y:s}=e;let o=!1;for(let r=0,a=t.length-1;r<t.length;a=r++){const i=t[r].x,u=t[r].y,c=t[a].x,d=t[a].y;u>s!=d>s&&n<(c-i)*(s-u)/(d-u)+i&&(o=!o)}return o}function A1(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return C1(n,t)}function oa(e){return e.pointerType==="mouse"}var E1=Q({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=is(),{forwardRef:r,currentElement:a}=Ne();return o.titleId||(o.titleId=Dn(void 0,"reka-dialog-title")),o.descriptionId||(o.descriptionId=Dn(void 0,"reka-dialog-description")),ct(()=>{o.contentElement=a,wt()!==document.body&&(o.triggerElement.value=wt())}),(i,u)=>(x(),R(l(Ra),{"as-child":"",loop:"",trapped:n.trapFocus,present:n.present,onMountAutoFocus:u[5]||(u[5]=c=>s("openAutoFocus",c)),onUnmountAutoFocus:u[6]||(u[6]=c=>s("closeAutoFocus",c))},{default:y(()=>[v(l(La),Ae({id:l(o).contentId,ref:l(r),as:i.as,"as-child":i.asChild,present:n.present,"disable-outside-pointer-events":i.disableOutsidePointerEvents,role:"dialog","aria-describedby":l(o).descriptionId,"aria-labelledby":l(o).titleId,"data-state":l(Vp)(l(o).open.value)},i.$attrs,{onDismiss:u[0]||(u[0]=c=>l(o).onOpenChange(!1)),onEscapeKeyDown:u[1]||(u[1]=c=>s("escapeKeyDown",c)),onFocusOutside:u[2]||(u[2]=c=>s("focusOutside",c)),onInteractOutside:u[3]||(u[3]=c=>s("interactOutside",c)),onPointerDownOutside:u[4]||(u[4]=c=>s("pointerDownOutside",c))}),{default:y(()=>[ue(i.$slots,"default")]),_:3},16,["id","as","as-child","present","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped","present"]))}}),Up=E1,O1=Q({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=is(),r=yr(s),{forwardRef:a,currentElement:i}=Ne(),u=ee(()=>n.present?i.value:void 0);Ma(u);const c=ee(()=>{const{present:d,...f}=n;return f});return Fe(()=>n.present,(d,f)=>{var p;!d&&f&&((p=o.triggerElement.value)==null||p.focus())}),(d,f)=>(x(),R(Up,Ae({...c.value,...l(r)},{ref:l(a),present:d.present,"trap-focus":l(o).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:f[0]||(f[0]=p=>{var m;p.defaultPrevented||(p.preventDefault(),(m=l(o).triggerElement.value)==null||m.focus())}),onPointerDownOutside:f[1]||(f[1]=p=>{const m=p.detail.originalEvent,g=m.button===0&&m.ctrlKey===!0;(m.button===2||g)&&p.preventDefault()}),onFocusOutside:f[2]||(f[2]=p=>{p.preventDefault()})}),{default:y(()=>[ue(d.$slots,"default")]),_:3},16,["present","trap-focus","disable-outside-pointer-events"]))}}),P1=O1,T1=Q({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=yr(t);Ne();const r=is(),a=F(!1),i=F(!1),u=ee(()=>{const{present:c,...d}=n;return d});return Fe(()=>n.present,(c,d)=>{var f;!c&&d&&(a.value||(f=r.triggerElement.value)==null||f.focus(),a.value=!1,i.value=!1)}),(c,d)=>(x(),R(Up,Ae({...u.value,...l(o)},{present:c.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=f=>{var p;f.defaultPrevented||(a.value||(p=l(r).triggerElement.value)==null||p.focus(),f.preventDefault()),a.value=!1,i.value=!1}),onInteractOutside:d[1]||(d[1]=f=>{var g;f.defaultPrevented||(a.value=!0,f.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const p=f.target;((g=l(r).triggerElement.value)==null?void 0:g.contains(p))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&i.value&&f.preventDefault()})}),{default:y(()=>[ue(c.$slots,"default")]),_:3},16,["present"]))}}),$1=T1,I1=Q({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=is(),r=yr(s),{forwardRef:a}=Ne();return(i,u)=>(x(),R(l(Gs),{present:i.forceMount||l(o).open.value,"force-mount":i.forceMount||!l(o).unmountOnHide.value},{default:y(({present:c})=>[l(o).modal.value?ho((x(),R(P1,Ae({key:0,ref:l(a),present:l(o).unmountOnHide.value||c},{...n,...l(r),...i.$attrs}),{default:y(()=>[ue(i.$slots,"default")]),_:2},1040,["present"])),[[Nl,l(o).unmountOnHide.value||c]]):ho((x(),R($1,Ae({key:1,ref:l(a),present:l(o).unmountOnHide.value||c},{...n,...l(r),...i.$attrs}),{default:y(()=>[ue(i.$slots,"default")]),_:2},1040,["present"])),[[Nl,l(o).unmountOnHide.value||c]])]),_:3},8,["present","force-mount"]))}}),M1=I1,L1=Q({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;Ne();const n=is();return(s,o)=>(x(),R(l(Ue),Ae(t,{id:l(n).descriptionId}),{default:y(()=>[ue(s.$slots,"default")]),_:3},16,["id"]))}}),R1=L1,D1=Q({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(e){const t=e,n=is(),s=$a(t.present);return Fe(()=>t.present,o=>s.value=o),Ne(),(o,r)=>(x(),R(l(Ue),{as:o.as,"as-child":o.asChild,"data-state":l(n).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:r[0]||(r[0]=ln(()=>{},["left","self","prevent"]))},{default:y(()=>[ue(o.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),F1=D1,N1=Q({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=is(),{forwardRef:n}=Ne();return(s,o)=>{var r;return(r=l(t))!=null&&r.modal.value?(x(),R(l(Gs),{key:0,present:s.forceMount||l(t).open.value,"force-mount":s.forceMount||!l(t).unmountOnHide.value},{default:y(({present:a})=>[ho(v(F1,Ae(s.$attrs,{ref:l(n),as:s.as,"as-child":s.asChild,present:l(t).unmountOnHide.value||a}),{default:y(()=>[ue(s.$slots,"default")]),_:2},1040,["as","as-child","present"]),[[Nl,l(t).unmountOnHide.value||a]])]),_:3},8,["present","force-mount"])):xe("v-if",!0)}}}),q1=N1,B1=Q({__name:"Teleport",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e,n=vr({}),s=ee(()=>{var r;return t.to??((r=n.teleportTo)==null?void 0:r.value)??"body"}),o=Mp();return(r,a)=>l(o)||r.forceMount?(x(),R(Ai,{key:0,to:s.value,disabled:r.disabled,defer:r.defer},[ue(r.$slots,"default")],8,["to","disabled","defer"])):xe("v-if",!0)}}),Da=B1,V1=Q({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,s)=>(x(),R(l(Da),Et(Pt(t)),{default:y(()=>[ue(n.$slots,"default")]),_:3},16))}}),U1=V1,j1=Q({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=is();return Ne(),(s,o)=>(x(),R(l(Ue),Ae(t,{id:l(n).titleId}),{default:y(()=>[ue(s.$slots,"default")]),_:3},16,["id"]))}}),H1=j1;const Yc="data-reka-collection-item";function As(e={}){const{key:t="",isProvider:n=!1}=e,s=`${t}CollectionProvider`;let o;n?(o={collectionRef:F(),itemMap:F(new Map)},Ci(s,o)):o=js(s);const r=(d=!1)=>{const f=o.collectionRef.value;if(!f)return[];const p=Array.from(f.querySelectorAll(`[${Yc}]`)),m=new Map(p.map((k,h)=>[k,h])),_=Array.from(o.itemMap.value.values()).sort((k,h)=>(m.get(k.ref)??-1)-(m.get(h.ref)??-1));return d?_:_.filter(k=>k.ref.dataset.disabled!=="")},a=Q({name:"CollectionSlot",inheritAttrs:!1,setup(d,{slots:f,attrs:p}){const{primitiveElement:m,currentElement:g}=Zl();return Fe(g,()=>{o.collectionRef.value=g.value}),()=>en(Ql,{ref:m,...p},f)}}),i=Q({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(d,{slots:f,attrs:p}){const{primitiveElement:m,currentElement:g}=Zl();return ss(_=>{if(g.value){const k=Nd(g.value);o.itemMap.value.set(k,{ref:g.value,value:d.value}),_(()=>o.itemMap.value.delete(k))}}),()=>en(Ql,{...p,[Yc]:"",ref:m},f)}}),u=ee(()=>Array.from(o.itemMap.value.values())),c=ee(()=>o.itemMap.value.size);return{getItems:r,reactiveItems:u,itemMapSize:c,CollectionSlot:a,CollectionItem:i}}var W1=Q({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(x(),R(l(Ue),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"||t.feature==="fully-hidden"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:y(()=>[ue(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),jp=W1,K1=Q({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:n,currentElement:s}=Zl(),o=ee(()=>t.checked??t.value);return Fe(o,(r,a)=>{if(!s.value)return;const i=s.value,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"value").set;if(d&&r!==a){const f=new Event("input",{bubbles:!0}),p=new Event("change",{bubbles:!0});d.call(i,r),i.dispatchEvent(f),i.dispatchEvent(p)}}),(r,a)=>(x(),R(jp,Ae({ref_key:"primitiveElement",ref:n},{...t,...r.$attrs},{as:"input"}),null,16))}}),Xc=K1,z1=Q({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,n=ee(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),s=ee(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((o,r)=>typeof o=="object"?Object.entries(o).map(([a,i])=>({name:`${t.name}[${r}][${a}]`,value:i})):{name:`${t.name}[${r}]`,value:o}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([o,r])=>({name:`${t.name}[${o}]`,value:r})):[]);return(o,r)=>(x(),Z(Ce,null,[xe(" We render single input if it's required "),n.value?(x(),R(Xc,Ae({key:o.name},{...t,...o.$attrs},{name:o.name,value:o.value}),null,16,["name","value"])):(x(!0),Z(Ce,{key:1},at(s.value,a=>(x(),R(Xc,Ae({key:a.name},{ref_for:!0},{...t,...o.$attrs},{name:a.name,value:a.value}),null,16,["name","value"]))),128))],2112))}}),G1=z1;const Y1="rovingFocusGroup.onEntryFocus",X1={bubbles:!1,cancelable:!0},J1={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Q1(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Z1(e,t,n){const s=Q1(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return J1[s]}function Hp(e,t=!1){const n=wt();for(const s of e)if(s===n||(s.focus({preventScroll:t}),wt()!==n))return}function e0(e,t){return e.map((n,s)=>e[(t+s)%e.length])}const[Wp,t0]=Tt("PopperRoot");var n0=Q({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=F();return t0({anchor:t,onAnchorChange:n=>t.value=n}),(n,s)=>ue(n.$slots,"default")}}),Xi=n0,s0=Q({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:s}=Ne(),o=Wp();return Gd(()=>{o.onAnchorChange(t.reference??s.value)}),(r,a)=>(x(),R(l(Ue),{ref:l(n),as:r.as,"as-child":r.asChild},{default:y(()=>[ue(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),Ji=s0;function o0(e){return e!==null}function r0(e){return{name:"transformOrigin",options:e,fn(t){var h,b,T;const{placement:n,rects:s,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,i=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[c,d]=ni(n),f={start:e.dir==="rtl"?"100%":"0%",center:"50%",end:e.dir==="rtl"?"0%":"100%"}[d],p={start:"0%",center:"50%",end:"100%"}[d],m=(((b=o.arrow)==null?void 0:b.x)??0)+i/2,g=(((T=o.arrow)==null?void 0:T.y)??0)+u/2;let _="",k="";return c==="bottom"?(_=a?f:`${m}px`,k=`${-u}px`):c==="top"?(_=a?f:`${m}px`,k=`${s.floating.height+u}px`):c==="right"?(_=`${-u}px`,k=a?p:`${g}px`):c==="left"&&(_=`${s.floating.width+u}px`,k=a?p:`${g}px`),{data:{x:_,y:k}}}}}function ni(e){const[t,n="center"]=e.split("-");return[t,n]}const a0=["top","right","bottom","left"],_s=Math.min,Jn=Math.max,ra=Math.round,Rr=Math.floor,Qn=e=>({x:e,y:e}),l0={left:"right",right:"left",bottom:"top",top:"bottom"};function Kp(e,t,n){return Jn(e,_s(t,n))}function rs(e,t){return typeof e=="function"?e(t):e}function ws(e){return e.split("-")[0]}function xo(e){return e.split("-")[1]}function Qi(e){return e==="x"?"y":"x"}function Zi(e){return e==="y"?"height":"width"}function Pn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function eu(e){return Qi(Pn(e))}function i0(e,t,n){n===void 0&&(n=!1);const s=xo(e),o=eu(e),r=Zi(o);let a=o==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(a=aa(a)),[a,aa(a)]}function u0(e){const t=aa(e);return[si(e),t,si(t)]}function si(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Jc=["left","right"],Qc=["right","left"],c0=["top","bottom"],d0=["bottom","top"];function f0(e,t,n){switch(e){case"top":case"bottom":return n?t?Qc:Jc:t?Jc:Qc;case"left":case"right":return t?c0:d0;default:return[]}}function p0(e,t,n,s){const o=xo(e);let r=f0(ws(e),n==="start",s);return o&&(r=r.map(a=>a+"-"+o),t&&(r=r.concat(r.map(si)))),r}function aa(e){const t=ws(e);return l0[t]+e.slice(t.length)}function m0(e){var t,n,s,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(s=e.bottom)!=null?s:0,left:(o=e.left)!=null?o:0}}function zp(e){return typeof e!="number"?m0(e):{top:e,right:e,bottom:e,left:e}}function la(e){const{x:t,y:n,width:s,height:o}=e;return{width:s,height:o,top:n,left:t,right:t+s,bottom:n+o,x:t,y:n}}function Zc(e,t,n){let{reference:s,floating:o}=e;const r=Pn(t),a=eu(t),i=Zi(a),u=ws(t),c=r==="y",d=s.x+s.width/2-o.width/2,f=s.y+s.height/2-o.height/2,p=s[i]/2-o[i]/2;let m;switch(u){case"top":m={x:d,y:s.y-o.height};break;case"bottom":m={x:d,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:f};break;case"left":m={x:s.x-o.width,y:f};break;default:m={x:s.x,y:s.y}}const g=xo(t);return g&&(m[a]+=p*(g==="end"?1:-1)*(n&&c?-1:1)),m}async function h0(e,t){var n;t===void 0&&(t={});const{x:s,y:o,platform:r,rects:a,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=rs(t,e),g=zp(m),k=i[p?f==="floating"?"reference":"floating":f],h=la(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(k)))==null||n?k:k.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:s,y:o,width:a.floating.width,height:a.floating.height}:a.reference,T=await(r.getOffsetParent==null?void 0:r.getOffsetParent(i.floating)),w=await(r.isElement==null?void 0:r.isElement(T))&&await(r.getScale==null?void 0:r.getScale(T))||{x:1,y:1},L=la(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:T,strategy:u}):b);return{top:(h.top-L.top+g.top)/w.y,bottom:(L.bottom-h.bottom+g.bottom)/w.y,left:(h.left-L.left+g.left)/w.x,right:(L.right-h.right+g.right)/w.x}}const g0=50,v0=async(e,t,n)=>{const{placement:s="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:h0},u=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Zc(c,s,u),p=s,m=0;const g={};for(let _=0;_<r.length;_++){const k=r[_];if(!k)continue;const{name:h,fn:b}=k,{x:T,y:w,data:L,reset:$}=await b({x:d,y:f,initialPlacement:s,placement:p,strategy:o,middlewareData:g,rects:c,platform:i,elements:{reference:e,floating:t}});d=T??d,f=w??f,g[h]={...g[h],...L},$&&m<g0&&(m++,typeof $=="object"&&($.placement&&(p=$.placement),$.rects&&(c=$.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):$.rects),{x:d,y:f}=Zc(c,p,u)),_=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:g}},y0=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:o,rects:r,platform:a,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=rs(e,t)||{};if(c==null)return{};const f=zp(d),p={x:n,y:s},m=eu(o),g=Zi(m),_=await a.getDimensions(c),k=m==="y",h=k?"top":"left",b=k?"bottom":"right",T=k?"clientHeight":"clientWidth",w=r.reference[g]+r.reference[m]-p[m]-r.floating[g],L=p[m]-r.reference[m],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let A=$?$[T]:0;(!A||!await(a.isElement==null?void 0:a.isElement($)))&&(A=i.floating[T]||r.floating[g]);const I=w/2-L/2,N=A/2-_[g]/2-1,z=_s(f[h],N),X=_s(f[b],N),H=A-_[g]-X,de=A/2-_[g]/2+I,ye=Kp(z,de,H),J=!u.arrow&&xo(o)!=null&&de!==ye&&r.reference[g]/2-(de<z?z:X)-_[g]/2<0,ce=J?de<z?de-z:de-H:0;return{[m]:p[m]+ce,data:{[m]:ye,centerOffset:de-ye-ce,...J&&{alignmentOffset:ce}},reset:J}}}),b0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:o,middlewareData:r,rects:a,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:_=!0,...k}=rs(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const h=ws(o),b=Pn(i),T=ws(i)===i,w=await(u.isRTL==null?void 0:u.isRTL(c.floating)),L=p||(T||!_?[aa(i)]:u0(i)),$=g!=="none";!p&&$&&L.push(...p0(i,_,g,w));const A=[i,...L],I=await u.detectOverflow(t,k),N=[];let z=((s=r.flip)==null?void 0:s.overflows)||[];if(d&&N.push(I[h]),f){const ye=i0(o,a,w);N.push(I[ye[0]],I[ye[1]])}if(z=[...z,{placement:o,overflows:N}],!N.every(ye=>ye<=0)){var X,H;const ye=(((X=r.flip)==null?void 0:X.index)||0)+1,J=A[ye];if(J&&(!(f==="alignment"?b!==Pn(J):!1)||z.every(te=>Pn(te.placement)===b?te.overflows[0]>0:!0)))return{data:{index:ye,overflows:z},reset:{placement:J}};let ce=(H=z.filter(j=>j.overflows[0]<=0).sort((j,te)=>j.overflows[1]-te.overflows[1])[0])==null?void 0:H.placement;if(!ce)switch(m){case"bestFit":{var de;const j=(de=z.filter(te=>{if($){const ae=Pn(te.placement);return ae===b||ae==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(ae=>ae>0).reduce((ae,fe)=>ae+fe,0)]).sort((te,ae)=>te[1]-ae[1])[0])==null?void 0:de[0];j&&(ce=j);break}case"initialPlacement":ce=i;break}if(o!==ce)return{reset:{placement:ce}}}return{}}}};function ed(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function td(e){return a0.some(t=>e[t]>=0)}const _0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:o="referenceHidden",...r}=rs(e,t);switch(o){case"referenceHidden":{const a=await s.detectOverflow(t,{...r,elementContext:"reference"}),i=ed(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:td(i)}}}case"escaped":{const a=await s.detectOverflow(t,{...r,altBoundary:!0}),i=ed(a,n.floating);return{data:{escapedOffsets:i,escaped:td(i)}}}default:return{}}}}},Gp=new Set(["left","top"]);async function w0(e,t){const{placement:n,platform:s,elements:o}=e,r=await(s.isRTL==null?void 0:s.isRTL(o.floating)),a=ws(n),i=xo(n),u=Pn(n)==="y",c=Gp.has(a)?-1:1,d=r&&u?-1:1,f=rs(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof g=="number"&&(m=i==="end"?g*-1:g),u?{x:m*d,y:p*c}:{x:p*c,y:m*d}}const x0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:o,y:r,placement:a,middlewareData:i}=t,u=await w0(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(s=i.arrow)!=null&&s.alignmentOffset?{}:{x:o+u.x,y:r+u.y,data:{...u,placement:a}}}}},k0=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:o,platform:r}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:u={fn:b=>{let{x:T,y:w}=b;return{x:T,y:w}}},...c}=rs(e,t),d={x:n,y:s},f=await r.detectOverflow(t,c),p=Pn(o),m=Qi(p);let g=d[m],_=d[p];const k=(b,T)=>Kp(T+f[b==="y"?"top":"left"],T,T-f[b==="y"?"bottom":"right"]);a&&(g=k(m,g)),i&&(_=k(p,_));const h=u.fn({...t,[m]:g,[p]:_});return{...h,data:{x:h.x-n,y:h.y-s,enabled:{[m]:a,[p]:i}}}}}},S0=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,s;const{x:o,y:r,placement:a,rects:i,middlewareData:u}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=rs(e,t),p={x:o,y:r},m=Pn(a),g=Qi(m);let _=p[g],k=p[m];const h=rs(c,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:(n=h.mainAxis)!=null?n:0,crossAxis:(s=h.crossAxis)!=null?s:0};if(d){const L=g==="y"?"height":"width",$=i.reference[g]-i.floating[L]+b.mainAxis,A=i.reference[g]+i.reference[L]-b.mainAxis;_<$?_=$:_>A&&(_=A)}if(f){var T,w;const L=g==="y"?"width":"height",$=Gp.has(ws(a)),A=i.reference[m]-i.floating[L]+($&&((T=u.offset)==null?void 0:T[m])||0)+($?0:b.crossAxis),I=i.reference[m]+i.reference[L]+($?0:((w=u.offset)==null?void 0:w[m])||0)-($?b.crossAxis:0);k<A?k=A:k>I&&(k=I)}return{[g]:_,[m]:k}}}},C0=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:s,platform:o,elements:r}=t,{apply:a=()=>{},...i}=rs(e,t),u=await o.detectOverflow(t,i),c=ws(n),d=xo(n),f=Pn(n)==="y",{width:p,height:m}=s.floating;let g,_;c==="top"||c==="bottom"?(g=c,_=d===(await(o.isRTL==null?void 0:o.isRTL(r.floating))?"start":"end")?"left":"right"):(_=c,g=d==="end"?"top":"bottom");const k=m-u.top-u.bottom,h=p-u.left-u.right,b=_s(m-u[g],k),T=_s(p-u[_],h),w=t.middlewareData.shift,L=!w;let $=b,A=T;w!=null&&w.enabled.x&&(A=h),w!=null&&w.enabled.y&&($=k),L&&!d&&(f?A=p-2*Jn(u.left,u.right):$=m-2*Jn(u.top,u.bottom)),await a({...t,availableWidth:A,availableHeight:$});const I=await o.getDimensions(r.floating);return p!==I.width||m!==I.height?{reset:{rects:!0}}:{}}}};function Fa(){return typeof window<"u"}function Ys(e){return tu(e)?(e.nodeName||"").toLowerCase():"#document"}function Gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function us(e){var t;return(t=(tu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tu(e){return Fa()?e instanceof Node||e instanceof Gt(e).Node:!1}function Fn(e){return Fa()?e instanceof Element||e instanceof Gt(e).Element:!1}function Es(e){return Fa()?e instanceof HTMLElement||e instanceof Gt(e).HTMLElement:!1}function nd(e){return!Fa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gt(e).ShadowRoot}function Na(e){const{overflow:t,overflowX:n,overflowY:s,display:o}=Nn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&o!=="inline"&&o!=="contents"}function A0(e){return/^(table|td|th)$/.test(Ys(e))}function qa(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const E0=/transform|translate|scale|rotate|perspective|filter/,O0=/paint|layout|strict|content/,Ls=e=>!!e&&e!=="none";let yl;function nu(e){const t=Fn(e)?Nn(e):e;return Ls(t.transform)||Ls(t.translate)||Ls(t.scale)||Ls(t.rotate)||Ls(t.perspective)||!su()&&(Ls(t.backdropFilter)||Ls(t.filter))||E0.test(t.willChange||"")||O0.test(t.contain||"")}function P0(e){let t=Ws(e);for(;Es(t)&&!ar(t);){if(nu(t))return t;if(qa(t))return null;t=Ws(t)}return null}function su(){return yl==null&&(yl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yl}function ar(e){return/^(html|body|#document)$/.test(Ys(e))}function Nn(e){return Gt(e).getComputedStyle(e)}function Ba(e){return Fn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ws(e){if(Ys(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nd(e)&&e.host||us(e);return nd(t)?t.host:t}function Yp(e){const t=Ws(e);return ar(t)?(e.ownerDocument||e).body:Es(t)&&Na(t)?t:Yp(t)}function lr(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Yp(e),r=o===((s=e.ownerDocument)==null?void 0:s.body),a=Gt(o);if(r){const i=oi(a);return t.concat(a,a.visualViewport||[],Na(o)?o:[],i&&n?lr(i):[])}else return t.concat(o,lr(o,[],n))}function oi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xp(e){const t=Nn(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const o=Es(e),r=o?e.offsetWidth:n,a=o?e.offsetHeight:s,i=ra(n)!==r||ra(s)!==a;return i&&(n=r,s=a),{width:n,height:s,$:i}}function ou(e){return Fn(e)?e:e.contextElement}function po(e){const t=ou(e);if(!Es(t))return Qn(1);const n=t.getBoundingClientRect(),{width:s,height:o,$:r}=Xp(t);let a=(r?ra(n.width):n.width)/s,i=(r?ra(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const T0=Qn(0);function Jp(e){const t=Gt(e);return!su()||!t.visualViewport?T0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $0(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Gt(e)}function Ks(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=ou(e);let a=Qn(1);t&&(s?Fn(s)&&(a=po(s)):a=po(e));const i=$0(r,n,s)?Jp(r):Qn(0);let u=(o.left+i.x)/a.x,c=(o.top+i.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(r&&s){const p=Gt(r),m=Fn(s)?Gt(s):s;let g=p,_=oi(g);for(;_&&m!==g;){const k=po(_),h=_.getBoundingClientRect(),b=Nn(_),T=h.left+(_.clientLeft+parseFloat(b.paddingLeft))*k.x,w=h.top+(_.clientTop+parseFloat(b.paddingTop))*k.y;u*=k.x,c*=k.y,d*=k.x,f*=k.y,u+=T,c+=w,g=Gt(_),_=oi(g)}}return la({width:d,height:f,x:u,y:c})}function Va(e,t){const n=Ba(e).scrollLeft;return t?t.left+n:Ks(us(e)).left+n}function Qp(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Va(e,n),o=n.top+t.scrollTop;return{x:s,y:o}}function I0(e){let{elements:t,rect:n,offsetParent:s,strategy:o}=e;const r=o==="fixed",a=us(s),i=t?qa(t.floating):!1;if(s===a||i&&r)return n;let u={scrollLeft:0,scrollTop:0},c=Qn(1);const d=Qn(0),f=Es(s);if((f||!r)&&((Ys(s)!=="body"||Na(a))&&(u=Ba(s)),f)){const m=Ks(s);c=po(s),d.x=m.x+s.clientLeft,d.y=m.y+s.clientTop}const p=a&&!f&&!r?Qp(a,u):Qn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-u.scrollTop*c.y+d.y+p.y}}function M0(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function L0(e){const t=Ba(e),n=e.ownerDocument.body,s=Jn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Jn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let r=-t.scrollLeft+Va(e);const a=-t.scrollTop;return Nn(n).direction==="rtl"&&(r+=Jn(e.clientWidth,n.clientWidth)-s),{width:s,height:o,x:r,y:a}}const R0=25;function D0(e,t,n){n===void 0&&(n="viewport");const s=n==="layoutViewport",o=Gt(e),r=us(e),a=o.visualViewport;let i=r.clientWidth,u=r.clientHeight,c=0,d=0;if(a){const p=!su()||t==="fixed";s?p||(c=-a.offsetLeft,d=-a.offsetTop):(i=a.width,u=a.height,p&&(c=a.offsetLeft,d=a.offsetTop))}if(Va(r)<=0){const p=r.ownerDocument,m=p.body,g=getComputedStyle(m),_=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,k=Math.abs(r.clientWidth-m.clientWidth-_),h=getComputedStyle(r).scrollbarGutter==="stable both-edges"?k/2:k;h<=R0&&(i-=h)}return{width:i,height:u,x:c,y:d}}function F0(e,t){const n=Ks(e,!0,t==="fixed"),s=n.top+e.clientTop,o=n.left+e.clientLeft,r=po(e),a=e.clientWidth*r.x,i=e.clientHeight*r.y,u=o*r.x,c=s*r.y;return{width:a,height:i,x:u,y:c}}function sd(e,t,n){let s;if(t==="viewport"||t==="layoutViewport")s=D0(e,n,t);else if(t==="document")s=L0(us(e));else if(Fn(t))s=F0(t,n);else{const o=Jp(e);s={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return la(s)}function N0(e,t){const n=t.get(e);if(n)return n;let s=lr(e,[],!1).filter(i=>Fn(i)&&Ys(i)!=="body"),o=null;const r=Nn(e).position==="fixed";let a=r?Ws(e):e;for(;Fn(a)&&!ar(a);){const i=Nn(a),u=nu(a),c=o?o.position:r?"fixed":"";!u&&(c==="fixed"||c==="absolute"&&i.position==="static")?s=s.filter(f=>f!==a):o=i,a=Ws(a)}return t.set(e,s),s}function q0(e){let{element:t,boundary:n,rootBoundary:s,strategy:o}=e;const a=[...n==="clippingAncestors"?qa(t)?[]:N0(t,this._c):[].concat(n),s],i=sd(t,a[0],o);let u=i.top,c=i.right,d=i.bottom,f=i.left;for(let p=1;p<a.length;p++){const m=sd(t,a[p],o);u=Jn(m.top,u),c=_s(m.right,c),d=_s(m.bottom,d),f=Jn(m.left,f)}return{width:c-f,height:d-u,x:f,y:u}}function B0(e){const{width:t,height:n}=Xp(e);return{width:t,height:n}}function V0(e,t,n){const s=Es(t),o=us(t),r=n==="fixed",a=Ks(e,!0,r,t);let i={scrollLeft:0,scrollTop:0};const u=Qn(0);if((s||!r)&&((Ys(t)!=="body"||Na(o))&&(i=Ba(t)),s)){const p=Ks(t,!0,r,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}!s&&o&&(u.x=Va(o));const c=o&&!s&&!r?Qp(o,i):Qn(0),d=a.left+i.scrollLeft-u.x-c.x,f=a.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:a.width,height:a.height}}function bl(e){return Nn(e).position==="static"}function od(e,t){if(!Es(e)||Nn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return us(e)===n&&(n=n.ownerDocument.body),n}function Zp(e,t){const n=Gt(e);if(qa(e))return n;if(!Es(e)){let o=Ws(e);for(;o&&!ar(o);){if(Fn(o)&&!bl(o))return o;o=Ws(o)}return n}let s=od(e,t);for(;s&&A0(s)&&bl(s);)s=od(s,t);return s&&ar(s)&&bl(s)&&!nu(s)?n:s||P0(e)||n}const U0=async function(e){const t=this.getOffsetParent||Zp,n=this.getDimensions,s=await n(e.floating);return{reference:V0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function j0(e){return Nn(e).direction==="rtl"}const H0={convertOffsetParentRelativeRectToViewportRelativeRect:I0,getDocumentElement:us,getClippingRect:q0,getOffsetParent:Zp,getElementRects:U0,getClientRects:M0,getDimensions:B0,getScale:po,isElement:Fn,isRTL:j0};function em(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function W0(e,t,n){let s=null,o;const r=us(e);function a(){var d;clearTimeout(o),(d=s)==null||d.disconnect(),s=null}function i(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),a();const p=e.getBoundingClientRect(),{left:m,top:g,width:_,height:k}=p;if(d||t(),!_||!k)return;const h=Rr(g),b=Rr(r.clientWidth-(m+_)),T=Rr(r.clientHeight-(g+k)),w=Rr(m),$={rootMargin:-h+"px "+-b+"px "+-T+"px "+-w+"px",threshold:Jn(0,_s(1,f))||1};let A=!0;function I(N){const z=N[0].intersectionRatio;if(!em(p,e.getBoundingClientRect()))return i();if(z!==f){if(!A)return i();z?i(!1,z):o=setTimeout(()=>{i(!1,1e-7)},1e3)}A=!1}try{s=new IntersectionObserver(I,{...$,root:r.ownerDocument})}catch{s=new IntersectionObserver(I,$)}s.observe(e)}const u=Gt(e),c=()=>i(n);return u.addEventListener("resize",c),i(!0),()=>{u.removeEventListener("resize",c),a()}}function K0(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=s,c=ou(e),d=o||r?[...c?lr(c):[],...t?lr(t):[]]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n),r&&h.addEventListener("resize",n)});const f=c&&i?W0(c,n,r):null;let p=-1,m=null;a&&(m=new ResizeObserver(h=>{let[b]=h;b&&b.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var T;(T=m)==null||T.observe(t)})),n()}),c&&!u&&m.observe(c),t&&m.observe(t));let g,_=u?Ks(e):null;u&&k();function k(){const h=Ks(e);_&&!em(_,h)&&n(),_=h,g=requestAnimationFrame(k)}return n(),()=>{var h;d.forEach(b=>{o&&b.removeEventListener("scroll",n),r&&b.removeEventListener("resize",n)}),f==null||f(),(h=m)==null||h.disconnect(),m=null,u&&cancelAnimationFrame(g)}}const z0=x0,G0=k0,rd=b0,Y0=C0,X0=_0,J0=y0,Q0=S0,Z0=(e,t,n)=>{const s=new Map,o=n??{},r={...H0,...o.platform,_c:s};return v0(e,t,{...o,platform:r})};function ew(e){return e!=null&&typeof e=="object"&&"$el"in e}function ri(e){if(ew(e)){const t=e.$el;return tu(t)&&Ys(t)==="#comment"?null:t}return e}function oo(e){return typeof e=="function"?e():l(e)}function tw(e){return{name:"arrow",options:e,fn(t){const n=ri(oo(e.element));return n==null?{}:J0({element:n,padding:e.padding}).fn(t)}}}function tm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ad(e,t){const n=tm(e);return Math.round(t*n)/n}function nw(e,t,n){n===void 0&&(n={});const s=n.whileElementsMounted,o=ee(()=>{var A;return(A=oo(n.open))!=null?A:!0}),r=ee(()=>oo(n.middleware)),a=ee(()=>{var A;return(A=oo(n.placement))!=null?A:"bottom"}),i=ee(()=>{var A;return(A=oo(n.strategy))!=null?A:"absolute"}),u=ee(()=>{var A;return(A=oo(n.transform))!=null?A:!0}),c=ee(()=>ri(e.value)),d=ee(()=>ri(t.value)),f=F(0),p=F(0),m=F(i.value),g=F(a.value),_=xa({}),k=F(!1),h=ee(()=>{const A={position:m.value,left:"0",top:"0"};if(!d.value)return A;const I=ad(d.value,f.value),N=ad(d.value,p.value);return u.value?{...A,transform:"translate("+I+"px, "+N+"px)",...tm(d.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:I+"px",top:N+"px"}});let b;function T(){if(c.value==null||d.value==null)return;const A=o.value;Z0(c.value,d.value,{middleware:r.value,placement:a.value,strategy:i.value}).then(I=>{f.value=I.x,p.value=I.y,m.value=I.strategy,g.value=I.placement,_.value=I.middlewareData,k.value=A!==!1})}function w(){typeof b=="function"&&(b(),b=void 0)}function L(){if(w(),s===void 0){T();return}if(c.value!=null&&d.value!=null){b=s(c.value,d.value,T);return}}function $(){o.value||(k.value=!1)}return Fe([r,a,i,o],T,{flush:"sync"}),Fe([c,d],L,{flush:"sync"}),Fe(o,$,{flush:"sync"}),ga()&&_i(w),{x:Qs(f),y:Qs(p),strategy:Qs(m),placement:Qs(g),middlewareData:Qs(_),isPositioned:Qs(k),floatingStyles:h,update:T}}const sw=["dir"],nm={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[AP,ow]=Tt("PopperContent");var rw=Q({inheritAttrs:!1,__name:"PopperContent",props:sf({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...nm}),emits:["placed"],setup(e,{emit:t}){const n=e,s=t,o=Wp(),{forwardRef:r,currentElement:a}=Ne(),i=wo(ee(()=>n.dir)),u=F(),c=F(),{width:d,height:f}=Z_(c),p=ee(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),m=ee(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),g=ee(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),_=ee(()=>({padding:m.value,boundary:g.value.filter(o0),altBoundary:g.value.length>0})),k=ee(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),h=ee(()=>[z0({mainAxis:n.sideOffset+f.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&rd({..._.value,...k.value}),n.avoidCollisions&&G0({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Q0():void 0,..._.value}),!n.prioritizePosition&&n.avoidCollisions&&rd({..._.value,...k.value}),Y0({..._.value,apply:({elements:de,rects:ye,availableWidth:J,availableHeight:ce})=>{const{width:j,height:te}=ye.reference,ae=de.floating.style;ae.setProperty("--reka-popper-available-width",`${J}px`),ae.setProperty("--reka-popper-available-height",`${ce}px`),ae.setProperty("--reka-popper-anchor-width",`${j}px`),ae.setProperty("--reka-popper-anchor-height",`${te}px`)}}),c.value&&tw({element:c.value,padding:n.arrowPadding}),r0({arrowWidth:d.value,arrowHeight:f.value,dir:i.value}),n.hideWhenDetached&&X0({strategy:"referenceHidden",..._.value})]),b=ee(()=>n.reference??o.anchor.value),{floatingStyles:T,placement:w,isPositioned:L,middlewareData:$}=nw(b,u,{strategy:n.positionStrategy,placement:p,whileElementsMounted:(...de)=>K0(...de,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:h}),A=ee(()=>ni(w.value)[0]),I=ee(()=>ni(w.value)[1]);Gd(()=>{L.value&&s("placed")});const N=ee(()=>{var ye;const de=((ye=$.value.arrow)==null?void 0:ye.centerOffset)!==0;return n.hideShiftedArrow&&de}),z=F("");ss(()=>{a.value&&(z.value=window.getComputedStyle(a.value).zIndex)});const X=ee(()=>{var de;return((de=$.value.arrow)==null?void 0:de.x)??0}),H=ee(()=>{var de;return((de=$.value.arrow)==null?void 0:de.y)??0});return ow({placedSide:A,onArrowChange:de=>c.value=de,arrowX:X,arrowY:H,shouldHideArrow:N}),(de,ye)=>{var J,ce,j;return x(),Z("div",{ref_key:"floatingRef",ref:u,"data-reka-popper-content-wrapper":"",dir:l(i),style:hn({...l(T),transform:l(L)?l(T).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z.value,"--reka-popper-transform-origin":[(J=l($).transformOrigin)==null?void 0:J.x,(ce=l($).transformOrigin)==null?void 0:ce.y].join(" "),...((j=l($).hide)==null?void 0:j.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[n.memoDependencies?Sg([n.asChild,n.as,A.value,I.value,l(L),...Object.values(de.$attrs),...n.memoDependencies],()=>(x(),R(l(Ue),Ae({key:0,ref:l(r)},de.$attrs,{"as-child":n.asChild,as:n.as,"data-side":A.value,"data-align":I.value,style:{animation:l(L)?void 0:"none"}}),{default:y(()=>[ue(de.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])),ye,0):(x(),R(l(Ue),Ae({key:1,ref:l(r)},de.$attrs,{"as-child":n.asChild,as:n.as,"data-side":A.value,"data-align":I.value,dir:l(i),style:{animation:l(L)?void 0:"none"}}),{default:y(()=>[ue(de.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","dir","style"]))],12,sw)}}}),ru=rw;function aw(e){const t=vr({nonce:F()});return ee(()=>{var n;return(e==null?void 0:e.value)||((n=t.nonce)==null?void 0:n.value)})}const[lw,iw]=Tt("RovingFocusGroup");var uw=Q({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const s=e,o=n,{loop:r,orientation:a,dir:i}=Yt(s),u=wo(i),c=os(s,"currentTabStopId",o,{defaultValue:s.defaultCurrentTabStopId,passive:s.currentTabStopId===void 0}),d=F(!1),f=F(!1),p=F(0),{getItems:m,CollectionSlot:g}=As({isProvider:!0});function _(h){const b=!f.value;if(h.currentTarget&&h.target===h.currentTarget&&b&&!d.value){const T=new CustomEvent(Y1,X1);if(h.currentTarget.dispatchEvent(T),o("entryFocus",T),!T.defaultPrevented){const w=m().map(N=>N.ref).filter(N=>N.dataset.disabled!==""),L=w.find(N=>N.getAttribute("data-active")===""),$=w.find(N=>N.getAttribute("data-highlighted")===""),A=w.find(N=>N.id===c.value),I=[L,$,A,...w].filter(Boolean);Hp(I,s.preventScrollOnEntryFocus)}}f.value=!1}function k(){setTimeout(()=>{f.value=!1},1)}return t({getItems:m}),iw({loop:r,dir:u,orientation:a,currentTabStopId:c,onItemFocus:h=>{c.value=h},onItemShiftTab:()=>{d.value=!0},onFocusableItemAdd:()=>{p.value++},onFocusableItemRemove:()=>{p.value--}}),(h,b)=>(x(),R(l(g),null,{default:y(()=>[v(l(Ue),{tabindex:d.value||p.value===0?-1:0,"data-orientation":l(a),as:h.as,"as-child":h.asChild,dir:l(u),style:{outline:"none"},onMousedown:b[0]||(b[0]=T=>f.value=!0),onMouseup:k,onFocus:_,onBlur:b[1]||(b[1]=T=>d.value=!1)},{default:y(()=>[ue(h.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),sm=uw,cw=Q({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=lw(),s=Dn(),o=ee(()=>t.tabStopId||s),r=ee(()=>n.currentTabStopId.value===o.value),{getItems:a,CollectionItem:i}=As();ct(()=>{t.focusable&&n.onFocusableItemAdd()}),yn(()=>{t.focusable&&n.onFocusableItemRemove()}),Fe(()=>t.focusable,(c,d)=>{c!==d&&(c?n.onFocusableItemAdd():n.onFocusableItemRemove())});function u(c){if(c.key==="Tab"&&c.shiftKey){n.onItemShiftTab();return}if(c.target!==c.currentTarget)return;const d=Z1(c,n.orientation.value,n.dir.value);if(d!==void 0){if(c.metaKey||c.ctrlKey||c.altKey||!t.allowShiftKey&&c.shiftKey)return;c.preventDefault();let f=[...a().map(p=>p.ref).filter(p=>p.dataset.disabled!=="")];if(d==="last")f.reverse();else if(d==="prev"||d==="next"){d==="prev"&&f.reverse();const p=f.indexOf(c.currentTarget);f=n.loop.value?e0(f,p+1):f.slice(p+1)}mt(()=>Hp(f))}}return(c,d)=>(x(),R(l(i),null,{default:y(()=>[v(l(Ue),{tabindex:r.value?0:-1,"data-orientation":l(n).orientation.value,"data-active":c.active?"":void 0,"data-disabled":c.focusable?void 0:"",as:c.as,"as-child":c.asChild,onMousedown:d[0]||(d[0]=f=>{c.focusable?l(n).onItemFocus(o.value):f.preventDefault()}),onFocus:d[1]||(d[1]=f=>l(n).onItemFocus(o.value)),onKeydown:u},{default:y(()=>[ue(c.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),om=cw;const[dw]=Tt("CheckboxGroupRoot");function au(e){return e==="indeterminate"}function rm(e){return au(e)?"indeterminate":e?"checked":"unchecked"}const[fw,pw]=Tt("CheckboxRoot");var mw=Q({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:"on"},id:{type:String,required:!1},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t,{forwardRef:o,currentElement:r}=Ne(),a=dw(null),i=os(n,"modelValue",s,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),u=ee(()=>(a==null?void 0:a.disabled.value)||n.disabled),c=ee(()=>rr(i.value,n.trueValue)),d=ee(()=>_o(a==null?void 0:a.modelValue.value)?i.value==="indeterminate"?"indeterminate":c.value:Uc(a.modelValue.value,n.value));function f(){if(_o(a==null?void 0:a.modelValue.value))i.value==="indeterminate"?i.value=n.trueValue:i.value=c.value?n.falseValue:n.trueValue;else{const k=[...a.modelValue.value||[]];if(Uc(k,n.value)){const h=k.findIndex(b=>rr(b,n.value));k.splice(h,1)}else k.push(n.value);a.modelValue.value=k}}const p=Dp(r),m=G_(),g=Uh(),_=ee(()=>{var k;if(!g["aria-label"])return n.id&&r.value?(k=document.querySelector(`[for="${n.id}"]`))==null?void 0:k.innerText:void 0});return pw({disabled:u,state:d}),(k,h)=>{var b,T;return x(),Z(Ce,null,[(x(),R(pr((b=l(a))!=null&&b.rovingFocus.value?l(om):l(Ue)),Ae({...k.$attrs,...l(m)},{id:k.id,ref:l(o),role:"checkbox","as-child":k.asChild,as:k.as,type:k.as==="button"?"button":void 0,"aria-checked":l(au)(d.value)?"mixed":d.value,"aria-required":k.required,"aria-label":k.$attrs["aria-label"]||_.value,"data-state":l(rm)(d.value),"data-disabled":u.value?"":void 0,disabled:u.value,focusable:(T=l(a))!=null&&T.rovingFocus.value?!u.value:void 0,onKeydown:Qo(ln(()=>{},["prevent"]),["enter"]),onClick:f}),{default:y(()=>[ue(k.$slots,"default",{modelValue:l(i),state:d.value})]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","focusable","onKeydown"])),l(p)&&k.name&&!l(a)?(x(),R(l(G1),Ae({key:0,type:"checkbox",checked:!!d.value,name:k.name,value:k.value,disabled:u.value,required:k.required},l(m)),null,16,["checked","name","value","disabled","required"])):xe("v-if",!0)],64)}}}),hw=mw,gw=Q({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const{forwardRef:t}=Ne(),n=fw();return(s,o)=>(x(),R(l(Gs),{present:s.forceMount||l(au)(l(n).state.value)||l(n).state.value===!0},{default:y(()=>[v(l(Ue),Ae({ref:l(t),"data-state":l(rm)(l(n).state.value),"data-disabled":l(n).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":s.asChild,as:s.as},s.$attrs),{default:y(()=>[ue(s.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),vw=gw,yw=Q({__name:"MenuAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,s)=>(x(),R(l(Ji),Et(Pt(t)),{default:y(()=>[ue(n.$slots,"default")]),_:3},16))}}),bw=yw;function _w(){const e=F(!1);return ct(()=>{sa("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),sa(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const ww=Ip(_w),[Ua,xw]=Tt(["MenuRoot","MenuSub"],"MenuContext"),[lu,kw]=Tt("MenuRoot");var Sw=Q({__name:"MenuRoot",props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,s=t,{modal:o,dir:r}=Yt(n),a=wo(r),i=os(n,"open",s),u=F(),c=ww();return xw({open:i,onOpenChange:d=>{i.value=d},content:u,onContentChange:d=>{u.value=d}}),kw({onClose:()=>{i.value=!1},isUsingKeyboardRef:c,dir:a,modal:o}),(d,f)=>(x(),R(l(Xi),null,{default:y(()=>[ue(d.$slots,"default")]),_:3}))}}),Cw=Sw;const[am,Aw]=Tt("MenuContent");var Ew=Q({__name:"MenuContentImpl",props:sf({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...nm}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,s=t,o=Ua(),r=lu(),{trapFocus:a,disableOutsidePointerEvents:i,loop:u}=Yt(n);Gi(),$a(i.value);const c=F(""),d=F(0),f=F(0),p=F(null),m=F("right"),g=F(0),_=F(null),k=F(),{forwardRef:h,currentElement:b}=Ne(),{handleTypeaheadSearch:T}=Yi(),w=F();function L(J){const ce=Hc(J,w.value||wt(),b.value,{loop:u.value,arrowKeyOptions:"vertical",dir:r==null?void 0:r.dir.value,focus:!1,attributeName:"[data-reka-collection-item]:not([data-disabled])"});ce&&(w.value=ce,ce.scrollIntoView({block:"nearest"}))}function $(){w.value&&w.value.click()}const A=F(),I=F();Fe(w,J=>{if(I.value&&(J===void 0||J!==I.value.trigger.value)){if(J===void 0)return;I.value.onOpenChange(!1),I.value=void 0}}),Fe(b,J=>{o.onContentChange(J)}),yn(()=>{window.clearTimeout(d.value)});function N(J){var j,te;return m.value===((j=p.value)==null?void 0:j.side)&&A1(J,(te=p.value)==null?void 0:te.area)}async function z(J){var ce;s("openAutoFocus",J),!J.defaultPrevented&&(J.preventDefault(),(ce=b.value)==null||ce.focus({preventScroll:!0}))}function X(J){var pt;if(J.defaultPrevented)return;const ce=J.target,j=ce.closest("[data-reka-menu-content]")===J.currentTarget,te=["input","textarea"].includes(ce.tagName.toLowerCase()),ae=J.ctrlKey||J.altKey||J.metaKey,fe=J.key.length===1,Qe=Hc(J,wt(),b.value,{loop:u.value,arrowKeyOptions:"vertical",dir:r==null?void 0:r.dir.value,focus:!0,attributeName:"[data-reka-collection-item]:not([data-disabled])"});if(Qe)return Qe==null?void 0:Qe.focus();if(J.code==="Space")return;const Te=((pt=k.value)==null?void 0:pt.getItems())??[];if(j&&(J.key==="Tab"&&r.modal.value&&J.preventDefault(),!ae&&fe&&!te&&T(J.key,Te)),J.target!==b.value||!S1.includes(J.key))return;J.preventDefault();const ht=[...Te.map(Ye=>Ye.ref)];Bp.includes(J.key)&&ht.reverse(),ti(ht)}function H(J){var ce,j;(j=(ce=J==null?void 0:J.currentTarget)==null?void 0:ce.contains)!=null&&j.call(ce,J.target)||(window.clearTimeout(d.value),c.value="")}function de(J){var te;if(!oa(J))return;const ce=J.target,j=g.value!==J.clientX;if((te=J==null?void 0:J.currentTarget)!=null&&te.contains(ce)&&j){const ae=J.clientX>g.value?"right":"left";m.value=ae,g.value=J.clientX}}function ye(J){oa(J)&&A.value&&A.value.focus()}return Aw({onItemEnter:J=>!!N(J),onItemLeave:J=>{var j,te;return N(J)?!0:(["INPUT","TEXTAREA"].includes(((j=wt())==null?void 0:j.tagName)||"")||(te=b.value)==null||te.focus(),_.value=null,!1)},onTriggerLeave:J=>!!N(J),searchRef:c,highlightedElement:w,onKeydownNavigation:L,onKeydownEnter:$,filterElement:A,onFilterElementChange:J=>{A.value=J},activeSubmenuContext:I,pointerGraceTimerRef:f,onPointerGraceIntentChange:J=>{p.value=J}}),(J,ce)=>(x(),R(l(Ra),{"as-child":"",trapped:l(a),onMountAutoFocus:z,onUnmountAutoFocus:ce[7]||(ce[7]=j=>s("closeAutoFocus",j))},{default:y(()=>[v(l(La),{"as-child":"","disable-outside-pointer-events":l(i),onEscapeKeyDown:ce[2]||(ce[2]=j=>s("escapeKeyDown",j)),onPointerDownOutside:ce[3]||(ce[3]=j=>s("pointerDownOutside",j)),onFocusOutside:ce[4]||(ce[4]=j=>s("focusOutside",j)),onInteractOutside:ce[5]||(ce[5]=j=>s("interactOutside",j)),onDismiss:ce[6]||(ce[6]=j=>s("dismiss"))},{default:y(()=>[v(l(sm),{ref_key:"rovingFocusGroupRef",ref:k,"current-tab-stop-id":_.value,"onUpdate:currentTabStopId":ce[0]||(ce[0]=j=>_.value=j),"as-child":"",orientation:"vertical",dir:l(r).dir.value,loop:l(u),onEntryFocus:ce[1]||(ce[1]=j=>{s("entryFocus",j),l(r).isUsingKeyboardRef.value||j.preventDefault()})},{default:y(()=>[v(l(ru),{ref:l(h),role:"menu",as:J.as,"as-child":J.asChild,"aria-orientation":"vertical","data-reka-menu-content":"","data-state":l(Vp)(l(o).open.value),dir:l(r).dir.value,side:J.side,"side-offset":J.sideOffset,align:J.align,"align-offset":J.alignOffset,"avoid-collisions":J.avoidCollisions,"collision-boundary":J.collisionBoundary,"collision-padding":J.collisionPadding,"arrow-padding":J.arrowPadding,"prioritize-position":J.prioritizePosition,"position-strategy":J.positionStrategy,"update-position-strategy":J.updatePositionStrategy,sticky:J.sticky,"hide-when-detached":J.hideWhenDetached,reference:J.reference,onKeydown:X,onBlur:H,onPointermove:de,onPointerenter:ye},{default:y(()=>[ue(J.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","position-strategy","update-position-strategy","sticky","hide-when-detached","reference"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),lm=Ew,Ow=Q({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=am(),{forwardRef:s,currentElement:o}=Ne(),{CollectionItem:r}=As(),a=F(!1),i=ee(()=>a.value||o.value!=null&&n.highlightedElement.value===o.value);async function u(d){var f;if(!(d.defaultPrevented||!oa(d))){if(t.disabled)n.onItemLeave(d);else if(!n.onItemEnter(d)){const m=d.currentTarget;n.highlightedElement.value=m,["INPUT","TEXTAREA"].includes(((f=wt())==null?void 0:f.tagName)||"")||m.focus({preventScroll:!0})}}}async function c(d){if(await mt(),d.defaultPrevented||!oa(d)||n.highlightedElement.value!==o.value)return;!n.onItemLeave(d)&&n.highlightedElement.value===o.value&&(n.highlightedElement.value=void 0)}return(d,f)=>(x(),R(l(r),{value:{textValue:d.textValue}},{default:y(()=>[v(l(Ue),Ae({ref:l(s),role:"menuitem",tabindex:"-1"},d.$attrs,{as:d.as,"as-child":d.asChild,"aria-disabled":d.disabled||void 0,"data-disabled":d.disabled?"":void 0,"data-highlighted":i.value?"":void 0,onPointermove:u,onPointerleave:c,onFocus:f[0]||(f[0]=async p=>{await mt(),!(p.defaultPrevented||d.disabled)&&(a.value=!0,l(n).highlightedElement.value=p.currentTarget)}),onBlur:f[1]||(f[1]=async p=>{await mt(),!p.defaultPrevented&&(a.value=!1)})}),{default:y(()=>[ue(d.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),Pw=Ow,Tw=Q({__name:"MenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,s=t,{forwardRef:o,currentElement:r}=Ne(),a=lu(),i=am(),u=F(!1);async function c(){const d=r.value;if(!n.disabled&&d){const f=new CustomEvent(x1,{bubbles:!0,cancelable:!0});s("select",f),await mt(),f.defaultPrevented?u.value=!1:a.onClose()}}return(d,f)=>(x(),R(Pw,Ae(n,{ref:l(o),onClick:c,onPointerdown:f[0]||(f[0]=()=>{u.value=!0}),onPointerup:f[1]||(f[1]=async p=>{var m;await mt(),!p.defaultPrevented&&(u.value||(m=p.currentTarget)==null||m.click())}),onKeydown:f[2]||(f[2]=async p=>{var g;const m=l(i).searchRef.value!=="";d.disabled||m&&p.key===" "||l(ei).includes(p.key)&&((g=p.currentTarget)==null||g.click(),p.preventDefault())})}),{default:y(()=>[ue(d.$slots,"default")]),_:3},16))}}),$w=Tw,Iw=Q({__name:"MenuRootContentModal",props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=$t(n,s),r=Ua(),{forwardRef:a,currentElement:i}=Ne();return Ma(i),(u,c)=>(x(),R(lm,Ae(l(o),{ref:l(a),"trap-focus":l(r).open.value,"disable-outside-pointer-events":l(r).open.value,"disable-outside-scroll":!0,onDismiss:c[0]||(c[0]=d=>l(r).onOpenChange(!1)),onFocusOutside:c[1]||(c[1]=ln(d=>s("focusOutside",d),["prevent"]))}),{default:y(()=>[ue(u.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),Mw=Iw,Lw=Q({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const o=$t(e,t),r=Ua();return(a,i)=>(x(),R(lm,Ae(l(o),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:i[0]||(i[0]=u=>l(r).onOpenChange(!1))}),{default:y(()=>[ue(a.$slots,"default")]),_:3},16))}}),Rw=Lw,Dw=Q({__name:"MenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const o=$t(e,t),r=Ua(),a=lu();return(i,u)=>(x(),R(l(Gs),{present:i.forceMount||l(r).open.value},{default:y(()=>[l(a).modal.value?(x(),R(Mw,Et(Ae({key:0},{...i.$attrs,...l(o)})),{default:y(()=>[ue(i.$slots,"default")]),_:3},16)):(x(),R(Rw,Et(Ae({key:1},{...i.$attrs,...l(o)})),{default:y(()=>[ue(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Fw=Dw,Nw=Q({__name:"MenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,s)=>(x(),R(l(Da),Et(Pt(t)),{default:y(()=>[ue(n.$slots,"default")]),_:3},16))}}),qw=Nw,Bw=Q({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,s)=>(x(),R(l(Ue),Ae(t,{role:"separator","aria-orientation":"horizontal"}),{default:y(()=>[ue(n.$slots,"default")]),_:3},16))}}),Vw=Bw;const[br,Uw]=Tt("PopoverRoot");var jw=Q({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,s=t,{modal:o}=Yt(n),r=os(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0});return Uw({contentId:"",triggerId:"",modal:o,open:r,onOpenChange:u=>{r.value=u},onOpenToggle:()=>{r.value=!r.value},triggerElement:F(),hasCustomAnchor:F(!1)}),(u,c)=>(x(),R(l(Xi),null,{default:y(()=>[ue(u.$slots,"default",{open:l(r),close:()=>r.value=!1})]),_:3}))}}),Hw=jw,Ww=Q({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=Ia(L_(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:r}=Ne(),a=br();return Gi(),(i,u)=>(x(),R(l(Ra),{"as-child":"",loop:"",trapped:i.trapFocus,onMountAutoFocus:u[5]||(u[5]=c=>s("openAutoFocus",c)),onUnmountAutoFocus:u[6]||(u[6]=c=>s("closeAutoFocus",c))},{default:y(()=>[v(l(La),{"as-child":"","disable-outside-pointer-events":i.disableOutsidePointerEvents,onPointerDownOutside:u[0]||(u[0]=c=>s("pointerDownOutside",c)),onInteractOutside:u[1]||(u[1]=c=>s("interactOutside",c)),onEscapeKeyDown:u[2]||(u[2]=c=>s("escapeKeyDown",c)),onFocusOutside:u[3]||(u[3]=c=>s("focusOutside",c)),onDismiss:u[4]||(u[4]=c=>l(a).onOpenChange(!1))},{default:y(()=>[v(l(ru),Ae(l(o),{id:l(a).contentId,ref:l(r),"data-state":l(a).open.value?"open":"closed","aria-labelledby":l(a).triggerId,style:{"--reka-popover-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-popover-content-available-width":"var(--reka-popper-available-width)","--reka-popover-content-available-height":"var(--reka-popper-available-height)","--reka-popover-trigger-width":"var(--reka-popper-anchor-width)","--reka-popover-trigger-height":"var(--reka-popper-anchor-height)"},role:"dialog"}),{default:y(()=>[ue(i.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),im=Ww,Kw=Q({__name:"PopoverContentModal",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=br(),r=F(!1);$a(!0);const a=$t(n,s),{forwardRef:i,currentElement:u}=Ne();return Ma(u),(c,d)=>(x(),R(im,Ae(l(a),{ref:l(i),"trap-focus":l(o).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:d[0]||(d[0]=ln(f=>{var p;s("closeAutoFocus",f),r.value||(p=l(o).triggerElement.value)==null||p.focus()},["prevent"])),onPointerDownOutside:d[1]||(d[1]=f=>{s("pointerDownOutside",f);const p=f.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,g=p.button===2||m;r.value=g}),onFocusOutside:d[2]||(d[2]=ln(()=>{},["prevent"]))}),{default:y(()=>[ue(c.$slots,"default")]),_:3},16,["trap-focus"]))}}),zw=Kw,Gw=Q({__name:"PopoverContentNonModal",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=br(),r=F(!1),a=F(!1),i=$t(n,s);return(u,c)=>(x(),R(im,Ae(l(i),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=d=>{var f;s("closeAutoFocus",d),d.defaultPrevented||(r.value||(f=l(o).triggerElement.value)==null||f.focus(),d.preventDefault()),r.value=!1,a.value=!1}),onInteractOutside:c[1]||(c[1]=async d=>{var m;s("interactOutside",d),d.defaultPrevented||(r.value=!0,d.detail.originalEvent.type==="pointerdown"&&(a.value=!0));const f=d.target;((m=l(o).triggerElement.value)==null?void 0:m.contains(f))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&a.value&&d.preventDefault()})}),{default:y(()=>[ue(u.$slots,"default")]),_:3},16))}}),Yw=Gw,Xw=Q({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=br(),r=$t(n,s),{forwardRef:a}=Ne();return o.contentId||(o.contentId=Dn(void 0,"reka-popover-content")),(i,u)=>(x(),R(l(Gs),{present:i.forceMount||l(o).open.value},{default:y(()=>[l(o).modal.value?(x(),R(zw,Ae({key:0},l(r),{ref:l(a)}),{default:y(()=>[ue(i.$slots,"default")]),_:3},16)):(x(),R(Yw,Ae({key:1},l(r),{ref:l(a)}),{default:y(()=>[ue(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Jw=Xw,Qw=Q({__name:"PopoverPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,s)=>(x(),R(l(Da),Et(Pt(t)),{default:y(()=>[ue(n.$slots,"default")]),_:3},16))}}),Zw=Qw,ex=Q({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=br(),{forwardRef:s,currentElement:o}=Ne();return n.triggerId||(n.triggerId=Dn(void 0,"reka-popover-trigger")),ct(()=>{n.triggerElement.value=o.value}),(r,a)=>(x(),R(pr(l(n).hasCustomAnchor.value?l(Ue):l(Ji)),{"as-child":""},{default:y(()=>[v(l(Ue),{id:l(n).triggerId,ref:l(s),type:r.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":l(n).open.value,"aria-controls":l(n).contentId,"data-state":l(n).open.value?"open":"closed",as:r.as,"as-child":t.asChild,onClick:l(n).onOpenToggle},{default:y(()=>[ue(r.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),tx=ex;const[um,nx]=Tt("DropdownMenuRoot");var sx=Q({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,s=t;Ne();const o=os(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0}),r=F(),{modal:a,dir:i}=Yt(n),u=wo(i);return nx({open:o,onOpenChange:c=>{o.value=c},onOpenToggle:()=>{o.value=!o.value},triggerId:"",triggerElement:r,contentId:"",modal:a,dir:u}),(c,d)=>(x(),R(l(Cw),{open:l(o),"onUpdate:open":d[0]||(d[0]=f=>ut(o)?o.value=f:null),dir:l(u),modal:l(a)},{default:y(()=>[ue(c.$slots,"default",{open:l(o)})]),_:3},8,["open","dir","modal"]))}}),ox=sx,rx=Q({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const o=$t(e,t);Ne();const r=um(),a=F(!1);function i(u){u.defaultPrevented||(a.value||setTimeout(()=>{var c;(c=r.triggerElement.value)==null||c.focus()},0),a.value=!1,u.preventDefault())}return r.contentId||(r.contentId=Dn(void 0,"reka-dropdown-menu-content")),(u,c)=>{var d;return x(),R(l(Fw),Ae(l(o),{id:l(r).contentId,"aria-labelledby":(d=l(r))==null?void 0:d.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-dropdown-menu-content-available-width":"var(--reka-popper-available-width)","--reka-dropdown-menu-content-available-height":"var(--reka-popper-available-height)","--reka-dropdown-menu-trigger-width":"var(--reka-popper-anchor-width)","--reka-dropdown-menu-trigger-height":"var(--reka-popper-anchor-height)"},onCloseAutoFocus:i,onInteractOutside:c[0]||(c[0]=f=>{var _;if(f.defaultPrevented)return;const p=f.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,g=p.button===2||m;(!l(r).modal.value||g)&&(a.value=!0),(_=l(r).triggerElement.value)!=null&&_.contains(f.target)&&f.preventDefault()})}),{default:y(()=>[ue(u.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),ax=rx,lx=Q({__name:"DropdownMenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,o=yr(t);return Ne(),(r,a)=>(x(),R(l($w),Et(Pt({...n,...l(o)})),{default:y(()=>[ue(r.$slots,"default")]),_:3},16))}}),ix=lx,ux=Q({__name:"DropdownMenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,s)=>(x(),R(l(qw),Et(Pt(t)),{default:y(()=>[ue(n.$slots,"default")]),_:3},16))}}),cx=ux,dx=Q({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ne(),(n,s)=>(x(),R(l(Vw),Et(Pt(t)),{default:y(()=>[ue(n.$slots,"default")]),_:3},16))}}),fx=dx,px=Q({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=um(),{forwardRef:s,currentElement:o}=Ne();return ct(()=>{n.triggerElement=o}),n.triggerId||(n.triggerId=Dn(void 0,"reka-dropdown-menu-trigger")),(r,a)=>(x(),R(l(bw),{"as-child":""},{default:y(()=>[v(l(Ue),{id:l(n).triggerId,ref:l(s),type:r.as==="button"?"button":void 0,"as-child":t.asChild,as:r.as,"aria-haspopup":"menu","aria-expanded":l(n).open.value,"aria-controls":l(n).open.value?l(n).contentId:void 0,"data-disabled":r.disabled?"":void 0,disabled:r.disabled,"data-state":l(n).open.value?"open":"closed",onClick:a[0]||(a[0]=async i=>{var u;!r.disabled&&i.button===0&&i.ctrlKey===!1&&((u=l(n))==null||u.onOpenToggle(),await mt(),l(n).open.value&&i.preventDefault())}),onKeydown:a[1]||(a[1]=Qo(i=>{r.disabled||(["Enter"," "].includes(i.key)&&l(n).onOpenToggle(),i.key==="ArrowDown"&&l(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())},["enter","space","arrow-down"]))},{default:y(()=>[ue(r.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),mx=px;const hx=[" ","Enter","ArrowUp","ArrowDown"],gx=[" ","Enter"],dn=10;function ir(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(s=>ai(s,t,n)):ai(e,t,n)}function ai(e,t,n){return e===void 0||t===void 0?!1:typeof e=="string"?e===t:typeof n=="function"?n(e,t):typeof n=="string"?(e==null?void 0:e[n])===(t==null?void 0:t[n]):rr(e,t)}function vx(e){return e==null||e===""||Array.isArray(e)&&e.length===0}const yx=["value"],[Os,cm]=Tt("SelectRoot");var bx=Q({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},nullableValue:{type:String,required:!1,default:""},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const n=e,s=t,{required:o,disabled:r,multiple:a,dir:i}=Yt(n),u=os(n,"modelValue",s,{defaultValue:n.defaultValue??(a.value?[]:void 0),passive:n.modelValue===void 0,deep:!0}),c=os(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0}),d=F(),f=F(),p=F({x:0,y:0}),m=ee(()=>{var w;return a.value&&Array.isArray(u.value)?((w=u.value)==null?void 0:w.length)===0:_o(u.value)});As({isProvider:!0});const g=wo(i),_=Dp(d),k=F(new Set),h=ee(()=>Array.from(k.value).map(w=>w.value).join(";"));function b(w){if(a.value){const L=Array.isArray(u.value)?[...u.value]:[],$=L.findIndex(A=>ai(A,w,n.by));$===-1?L.push(w):L.splice($,1),u.value=[...L]}else u.value=w}function T(w){return Array.from(k.value).find(L=>ir(w,L.value,n.by))}return cm({triggerElement:d,onTriggerChange:w=>{d.value=w},valueElement:f,onValueElementChange:w=>{f.value=w},contentId:"",modelValue:u,onValueChange:b,by:n.by,open:c,multiple:a,required:o,onOpenChange:w=>{c.value=w},dir:g,triggerPointerDownPosRef:p,disabled:r,isEmptyModelValue:m,optionsSet:k,onOptionAdd:w=>{const L=T(w.value);L&&k.value.delete(L),k.value.add(w)},onOptionRemove:w=>{const L=T(w.value);L&&k.value.delete(L)}}),(w,L)=>(x(),R(l(Xi),null,{default:y(()=>[ue(w.$slots,"default",{modelValue:l(u),open:l(c)}),l(_)&&w.name?(x(),R(xx,{key:h.value,"aria-hidden":"true",tabindex:"-1",multiple:l(a),required:l(o),name:w.name,autocomplete:w.autocomplete,disabled:l(r),value:l(u)},{default:y(()=>[l(_o)(l(u))?(x(),Z("option",{key:0,value:w.nullableValue},null,8,yx)):xe("v-if",!0),(x(!0),Z(Ce,null,at(Array.from(k.value),$=>(x(),Z("option",Ae({key:$.value??""},{ref_for:!0},$),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):xe("v-if",!0)]),_:3}))}}),_x=bx,wx=Q({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){const t=e,n=F(),s=Os();Fe(()=>t.value,(r,a)=>{const i=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(i,"value").set;if(r!==a&&c&&n.value){const d=new Event("change",{bubbles:!0});c.call(n.value,r),n.value.dispatchEvent(d)}});function o(r){s.onValueChange(r.target.value)}return(r,a)=>(x(),R(l(jp),{"as-child":""},{default:y(()=>[S("select",Ae({ref_key:"selectElement",ref:n},t,{onInput:o}),[ue(r.$slots,"default")],16)]),_:3}))}}),xx=wx,kx=Q({__name:"SelectPopperPosition",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:dn},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const n=Ia(e);return(s,o)=>(x(),R(l(ru),Ae(l(n),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:y(()=>[ue(s.$slots,"default")]),_:3},16))}}),Sx=kx;const Cx={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[ja,dm]=Tt("SelectContent");var Ax=Q({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,s=t,o=Os();Gi(),$a(n.bodyLock);const{CollectionSlot:r,getItems:a}=As(),i=F();Ma(i);const{search:u,handleTypeaheadSearch:c}=Yi(),d=F(),f=F(),p=F(),m=F(!1),g=F(!1),_=F(!1);function k(){f.value&&i.value&&ti([f.value,i.value])}Fe(m,()=>{k()});const{onOpenChange:h,triggerPointerDownPosRef:b}=o;ss($=>{if(!i.value)return;let A={x:0,y:0};const I=z=>{var X,H;A={x:Math.abs(Math.round(z.pageX)-(((X=b.value)==null?void 0:X.x)??0)),y:Math.abs(Math.round(z.pageY)-(((H=b.value)==null?void 0:H.y)??0))}},N=z=>{var X;z.pointerType!=="touch"&&(A.x<=10&&A.y<=10?z.preventDefault():(X=i.value)!=null&&X.contains(z.target)||h(!1),document.removeEventListener("pointermove",I),b.value=null)};b.value!==null&&(document.addEventListener("pointermove",I),document.addEventListener("pointerup",N,{capture:!0,once:!0})),$(()=>{document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",N,{capture:!0})})});function T($){const A=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!A&&$.key.length===1&&c($.key,a()),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let N=[...a().map(z=>z.ref)];if(["ArrowUp","End"].includes($.key)&&(N=N.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const z=$.target,X=N.indexOf(z);N=N.slice(X+1)}setTimeout(()=>ti(N)),$.preventDefault()}}const w=ee(()=>n.position==="popper"?n:{}),L=Ia(w.value);return dm({content:i,viewport:d,onViewportChange:$=>{d.value=$},itemRefCallback:($,A,I)=>{const N=!g.value&&!I,z=ir(o.modelValue.value,A,o.by);if(o.multiple.value){if(_.value)return;(z||N)&&(f.value=$,z&&(_.value=!0))}else(z||N)&&(f.value=$);N&&(g.value=!0)},selectedItem:f,selectedItemText:p,onItemLeave:()=>{var $;($=i.value)==null||$.focus()},itemTextRefCallback:($,A,I)=>{const N=!g.value&&!I;(ir(o.modelValue.value,A,o.by)||N)&&(p.value=$)},focusSelectedItem:k,position:n.position,isPositioned:m,searchRef:u}),($,A)=>(x(),R(l(r),null,{default:y(()=>[v(l(Ra),{"as-child":"",onMountAutoFocus:A[6]||(A[6]=ln(()=>{},["prevent"])),onUnmountAutoFocus:A[7]||(A[7]=I=>{var N;s("closeAutoFocus",I),!I.defaultPrevented&&((N=l(o).triggerElement.value)==null||N.focus({preventScroll:!0}),I.preventDefault())})},{default:y(()=>[v(l(La),{"as-child":"","disable-outside-pointer-events":$.disableOutsidePointerEvents,onFocusOutside:A[2]||(A[2]=ln(()=>{},["prevent"])),onDismiss:A[3]||(A[3]=I=>l(o).onOpenChange(!1)),onEscapeKeyDown:A[4]||(A[4]=I=>s("escapeKeyDown",I)),onPointerDownOutside:A[5]||(A[5]=I=>s("pointerDownOutside",I))},{default:y(()=>[(x(),R(pr($.position==="popper"?Sx:$x),Ae({...$.$attrs,...l(L)},{id:l(o).contentId,ref:I=>{if(!I)return;const N=l(Rn)(I);N!=null&&N.hasAttribute("data-reka-popper-content-wrapper")?i.value=N.firstElementChild:i.value=N},role:"listbox","data-state":l(o).open.value?"open":"closed",dir:l(o).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:A[0]||(A[0]=ln(()=>{},["prevent"])),onPlaced:A[1]||(A[1]=I=>m.value=!0),onKeydown:T}),{default:y(()=>[ue($.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),Ex=Ax;const[Ox,Px]=Tt("SelectItemAlignedPosition");var Tx=Q({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(e,{emit:t}){const n=e,s=t,{getItems:o}=As(),r=Os(),a=ja(),i=F(!1),u=F(!0),c=F(),{forwardRef:d,currentElement:f}=Ne(),{viewport:p,selectedItem:m,selectedItemText:g,focusSelectedItem:_}=a;function k(){if(r.triggerElement.value&&r.valueElement.value&&c.value&&f.value&&(p!=null&&p.value)&&(m!=null&&m.value)&&(g!=null&&g.value)){const T=r.triggerElement.value.getBoundingClientRect(),w=f.value.getBoundingClientRect(),L=r.valueElement.value.getBoundingClientRect(),$=g.value.getBoundingClientRect();if(r.dir.value!=="rtl"){const Xe=$.left-w.left,lt=L.left-Xe,qe=T.left-lt,me=T.width+qe,ne=Math.max(me,w.width),C=window.innerWidth-dn,M=Vc(lt,dn,Math.max(dn,C-ne));c.value.style.minWidth=`${me}px`,c.value.style.left=`${M}px`}else{const Xe=w.right-$.right,lt=window.innerWidth-L.right-Xe,qe=window.innerWidth-T.right-lt,me=T.width+qe,ne=Math.max(me,w.width),C=window.innerWidth-dn,M=Vc(lt,dn,Math.max(dn,C-ne));c.value.style.minWidth=`${me}px`,c.value.style.right=`${M}px`}const A=o().map(Xe=>Xe.ref),I=window.innerHeight-dn*2,N=p.value.scrollHeight,z=window.getComputedStyle(f.value),X=Number.parseInt(z.borderTopWidth,10),H=Number.parseInt(z.paddingTop,10),de=Number.parseInt(z.borderBottomWidth,10),ye=Number.parseInt(z.paddingBottom,10),J=X+H+N+ye+de,ce=Math.min(m.value.offsetHeight*5,J),j=window.getComputedStyle(p.value),te=Number.parseInt(j.paddingTop,10),ae=Number.parseInt(j.paddingBottom,10),fe=T.top+T.height/2-dn,Qe=I-fe,Te=m.value.offsetHeight/2,ht=m.value.offsetTop+Te,pt=X+H+ht,Ye=J-pt;if(pt<=fe){const Xe=m.value===A.at(-1);c.value.style.bottom="0px";const lt=f.value.clientHeight-p.value.offsetTop-p.value.offsetHeight,qe=Math.max(Qe,Te+(Xe?ae:0)+lt+de),me=pt+qe;c.value.style.height=`${me}px`}else{const Xe=m.value===A[0];c.value.style.top="0px";const qe=Math.max(fe,X+p.value.offsetTop+(Xe?te:0)+Te)+Ye;c.value.style.height=`${qe}px`,p.value.scrollTop=pt-fe+p.value.offsetTop}c.value.style.margin=`${dn}px 0`,c.value.style.minHeight=`${ce}px`,c.value.style.maxHeight=`${I}px`,s("placed"),requestAnimationFrame(()=>i.value=!0)}}const h=F("");ct(async()=>{await mt(),k(),f.value&&(h.value=window.getComputedStyle(f.value).zIndex)});function b(T){T&&u.value===!0&&(k(),_==null||_(),u.value=!1)}return U_(r.triggerElement,()=>{k()}),Px({contentWrapper:c,shouldExpandOnScrollRef:i,onScrollButtonChange:b}),(T,w)=>(x(),Z("div",{ref_key:"contentWrapperElement",ref:c,style:hn({display:"flex",flexDirection:"column",position:"fixed",zIndex:h.value})},[v(l(Ue),Ae({ref:l(d),style:{boxSizing:"border-box",maxHeight:"100%"}},{...T.$attrs,...n}),{default:y(()=>[ue(T.$slots,"default")]),_:3},16)],4))}}),$x=Tx,Ix=Q({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return cm(e.context),dm(Cx),(n,s)=>ue(n.$slots,"default")}}),Mx=Ix;const Lx={key:1};var Rx=Q({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=$t(n,t),r=Os(),a=F();ct(()=>{a.value=new DocumentFragment});const i=F(),u=ee(()=>n.forceMount||r.open.value),c=F(u.value);let d;function f(){d&&(clearTimeout(d),d=void 0)}return Fe(u,(p,m,g)=>{f(),d=setTimeout(()=>{c.value=u.value,d=void 0}),g(f)}),yn(f),(p,m)=>{var g;return u.value||c.value||(g=i.value)!=null&&g.present?(x(),R(l(Gs),{key:0,ref_key:"presenceRef",ref:i,present:u.value},{default:y(()=>[v(Ex,Et(Pt({...l(o),...p.$attrs})),{default:y(()=>[ue(p.$slots,"default")]),_:3},16)]),_:3},8,["present"])):a.value?(x(),Z("div",Lx,[(x(),R(Ai,{to:a.value},[v(Mx,{context:l(r)},{default:y(()=>[ue(p.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):xe("v-if",!0)}}}),Dx=Rx,Fx=Q({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(x(),R(l(Ue),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:y(()=>[ue(t.$slots,"default",{},()=>[n[0]||(n[0]=G("▼"))])]),_:3},8,["as","as-child"]))}}),Nx=Fx;const[fm,qx]=Tt("SelectItem");var Bx=Q({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,s=t,{disabled:o}=Yt(n),r=Os(),a=ja(),{forwardRef:i,currentElement:u}=Ne(),{CollectionItem:c}=As(),d=ee(()=>{var w;return ir((w=r.modelValue)==null?void 0:w.value,n.value,r.by)}),f=F(!1),p=F(n.textValue??""),m=Dn(void 0,"reka-select-item-text"),g="select.select";async function _(w){if(w.defaultPrevented)return;const L={originalEvent:w,value:n.value};Wi(g,k,L)}async function k(w){await mt(),s("select",w),!w.defaultPrevented&&(o.value||(r.onValueChange(n.value),r.multiple.value||r.onOpenChange(!1)))}async function h(w){var L,$;await mt(),!w.defaultPrevented&&(o.value?(L=a.onItemLeave)==null||L.call(a):($=w.currentTarget)==null||$.focus({preventScroll:!0}))}async function b(w){var L;await mt(),!w.defaultPrevented&&w.currentTarget===wt()&&((L=a.onItemLeave)==null||L.call(a))}async function T(w){var $;await mt(),!(w.defaultPrevented||(($=a.searchRef)==null?void 0:$.value)!==""&&w.key===" ")&&(gx.includes(w.key)&&_(w),w.key===" "&&w.preventDefault())}if(n.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return ct(()=>{u.value&&a.itemRefCallback(u.value,n.value,n.disabled)}),qx({value:n.value,disabled:o,textId:m,isSelected:d,onItemTextChange:w=>{p.value=((p.value||(w==null?void 0:w.textContent))??"").trim()}}),(w,L)=>(x(),R(l(c),{value:{textValue:p.value}},{default:y(()=>[v(l(Ue),{ref:l(i),role:"option","aria-labelledby":l(m),"data-highlighted":f.value?"":void 0,"aria-selected":d.value,"data-state":d.value?"checked":"unchecked","aria-disabled":l(o)||void 0,"data-disabled":l(o)?"":void 0,tabindex:l(o)?void 0:-1,as:w.as,"as-child":w.asChild,onFocus:L[0]||(L[0]=$=>f.value=!0),onBlur:L[1]||(L[1]=$=>f.value=!1),onPointerup:_,onPointerdown:L[2]||(L[2]=$=>{$.currentTarget.focus({preventScroll:!0})}),onTouchend:L[3]||(L[3]=ln(()=>{},["prevent","stop"])),onPointermove:h,onPointerleave:b,onKeydown:T},{default:y(()=>[ue(w.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),Vx=Bx,Ux=Q({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=fm();return(s,o)=>l(n).isSelected.value?(x(),R(l(Ue),Ae({key:0,"aria-hidden":"true"},t),{default:y(()=>[ue(s.$slots,"default")]),_:3},16)):xe("v-if",!0)}}),jx=Ux,Hx=Q({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=Os(),s=ja(),o=fm(),{forwardRef:r,currentElement:a}=Ne(),i=ee(()=>{var u,c;return{value:o.value,disabled:o.disabled.value,textContent:((u=a.value)==null?void 0:u.textContent)??((c=o.value)==null?void 0:c.toString())??""}});return ct(()=>{a.value&&(o.onItemTextChange(a.value),s.itemTextRefCallback(a.value,o.value,o.disabled.value),n.onOptionAdd(i.value))}),yn(()=>{n.onOptionRemove(i.value)}),(u,c)=>(x(),R(l(Ue),Ae({id:l(o).textId,ref:l(r)},{...t,...u.$attrs}),{default:y(()=>[ue(u.$slots,"default")]),_:3},16,["id"]))}}),Wx=Hx,Kx=Q({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,s)=>(x(),R(l(Da),Et(Pt(t)),{default:y(()=>[ue(n.$slots,"default")]),_:3},16))}}),zx=Kx,Gx=Q({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Os(),{forwardRef:s,currentElement:o}=Ne(),r=ee(()=>{var h;return((h=n.disabled)==null?void 0:h.value)||t.disabled});n.contentId||(n.contentId=Dn(void 0,"reka-select-content")),ct(()=>{n.onTriggerChange(o.value)});const{getItems:a}=As(),{search:i,handleTypeaheadSearch:u,resetTypeahead:c}=Yi();function d(){r.value||(n.onOpenChange(!0),c())}function f(h){d(),n.triggerPointerDownPosRef.value={x:Math.round(h.pageX),y:Math.round(h.pageY)}}function p(h){return h.button===0&&h.ctrlKey===!1}let m=!1;function g(h){if(h.pointerType==="touch")return h.preventDefault();const b=h.target;b.hasPointerCapture(h.pointerId)&&b.releasePointerCapture(h.pointerId),p(h)&&(f(h),m=!0)}function _(h){p(h)&&h.preventDefault()}function k(h){var b;m||(b=h.currentTarget)==null||b.focus(),m=!1}return(h,b)=>(x(),R(l(Ji),{"as-child":"",reference:h.reference},{default:y(()=>{var T,w,L,$;return[v(l(Ue),{ref:l(s),role:"combobox",type:h.as==="button"?"button":void 0,"aria-controls":l(n).contentId,"aria-expanded":l(n).open.value||!1,"aria-required":(T=l(n).required)==null?void 0:T.value,"aria-autocomplete":"none",disabled:r.value,dir:(w=l(n))==null?void 0:w.dir.value,"data-state":(L=l(n))!=null&&L.open.value?"open":"closed","data-disabled":r.value?"":void 0,"data-placeholder":l(vx)(($=l(n).modelValue)==null?void 0:$.value)?"":void 0,"as-child":h.asChild,as:h.as,onClick:k,onPointerdown:g,onMousedown:_,onPointerup:b[0]||(b[0]=ln(A=>{A.pointerType==="touch"&&f(A)},["prevent"])),onKeydown:b[1]||(b[1]=A=>{const I=l(i)!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&I&&A.key===" "||(l(u)(A.key,l(a)()),l(hx).includes(A.key)&&(d(),A.preventDefault()))})},{default:y(()=>[ue(h.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3},8,["reference"]))}}),Yx=Gx,Xx=Q({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{forwardRef:n,currentElement:s}=Ne(),o=Os();ct(()=>{o.valueElement=s});const r=ee(()=>{var d;let i=[];const u=Array.from(o.optionsSet.value),c=f=>u.find(p=>ir(f,p.value,o.by));return Array.isArray(o.modelValue.value)?i=o.modelValue.value.map(f=>{var p;return((p=c(f))==null?void 0:p.textContent)??""}):i=[((d=c(o.modelValue.value))==null?void 0:d.textContent)??""],i.filter(Boolean)}),a=ee(()=>r.value.length?r.value.join(", "):t.placeholder);return(i,u)=>(x(),R(l(Ue),{ref:l(n),as:i.as,"as-child":i.asChild,style:{pointerEvents:"none"},"data-placeholder":r.value.length?void 0:t.placeholder},{default:y(()=>[ue(i.$slots,"default",{selectedLabel:r.value,modelValue:l(o).modelValue.value},()=>[G(O(a.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),Jx=Xx,Qx=Q({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{nonce:n}=Yt(t),s=aw(n),o=ja(),r=o.position==="item-aligned"?Ox():void 0,{forwardRef:a,currentElement:i}=Ne();ct(()=>{o==null||o.onViewportChange(i.value)});const u=F(0);function c(d){const f=d.currentTarget,{shouldExpandOnScrollRef:p,contentWrapper:m}=r??{};if(p!=null&&p.value&&(m!=null&&m.value)){const g=Math.abs(u.value-f.scrollTop);if(g>0){const _=window.innerHeight-dn*2,k=Number.parseFloat(m.value.style.minHeight),h=Number.parseFloat(m.value.style.height),b=Math.max(k,h);if(b<_){const T=b+g,w=Math.min(_,T),L=T-w;m.value.style.height=`${w}px`,m.value.style.bottom==="0px"&&(f.scrollTop=L>0?L:0,m.value.style.justifyContent="flex-end")}}}u.value=f.scrollTop}return(d,f)=>(x(),Z(Ce,null,[v(l(Ue),Ae({ref:l(a),"data-reka-select-viewport":"",role:"presentation"},{...d.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:c}),{default:y(()=>[ue(d.$slots,"default")]),_:3},16),v(l(Ue),{as:"style",nonce:l(s)},{default:y(()=>f[0]||(f[0]=[G(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),Zx=Qx,ek=Q({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=["horizontal","vertical"];function s(i){return n.includes(i)}const o=ee(()=>s(t.orientation)?t.orientation:"horizontal"),r=ee(()=>o.value==="vertical"?t.orientation:void 0),a=ee(()=>t.decorative?{role:"none"}:{"aria-orientation":r.value,role:"separator"});return(i,u)=>(x(),R(l(Ue),Ae({as:i.as,"as-child":i.asChild,"data-orientation":o.value},a.value),{default:y(()=>[ue(i.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),tk=ek,nk=Q({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,s)=>(x(),R(tk,Et(Pt(t)),{default:y(()=>[ue(n.$slots,"default")]),_:3},16))}}),sk=nk;const[iu,ok]=Tt("TabsRoot");var rk=Q({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t,{orientation:o,unmountOnHide:r,dir:a}=Yt(n),i=wo(a);Ne();const u=os(n,"modelValue",s,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),c=F(),d=xa(new Set);return ok({modelValue:u,changeModelValue:f=>{u.value=f},orientation:o,dir:i,unmountOnHide:r,activationMode:n.activationMode,baseId:Dn(void 0,"reka-tabs"),tabsList:c,contentIds:d,registerContent:f=>{d.value=new Set([...d.value,f])},unregisterContent:f=>{const p=new Set(d.value);p.delete(f),d.value=p}}),(f,p)=>(x(),R(l(Ue),{dir:l(i),"data-orientation":l(o),"as-child":f.asChild,as:f.as},{default:y(()=>[ue(f.$slots,"default",{modelValue:l(u)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),ak=rk;function pm(e,t){return`${e}-trigger-${t}`}function mm(e,t){return`${e}-content-${t}`}var lk=Q({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n}=Ne(),s=iu(),o=ee(()=>pm(s.baseId,t.value)),r=ee(()=>mm(s.baseId,t.value)),a=ee(()=>t.value===s.modelValue.value),i=F(a.value);return ct(()=>{s.registerContent(t.value),requestAnimationFrame(()=>{i.value=!1})}),Ca(()=>{s.unregisterContent(t.value)}),(u,c)=>(x(),R(l(Gs),{present:u.forceMount||a.value,"force-mount":""},{default:y(({present:d})=>[v(l(Ue),{id:r.value,ref:l(n),"as-child":u.asChild,as:u.as,role:"tabpanel","data-state":a.value?"active":"inactive","data-orientation":l(s).orientation.value,"aria-labelledby":o.value,hidden:!d,tabindex:"0",style:hn({animationDuration:i.value?"0s":void 0})},{default:y(()=>[!l(s).unmountOnHide.value||d?ue(u.$slots,"default",{key:0}):xe("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),ik=lk,uk=Q({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:n}=Yt(t),{forwardRef:s,currentElement:o}=Ne(),r=iu();return r.tabsList=o,(a,i)=>(x(),R(l(sm),{"as-child":"",orientation:l(r).orientation.value,dir:l(r).dir.value,loop:l(n)},{default:y(()=>[v(l(Ue),{ref:l(s),role:"tablist","as-child":a.asChild,as:a.as,"aria-orientation":l(r).orientation.value},{default:y(()=>[ue(a.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),ck=uk,dk=Q({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:n}=Ne(),s=iu(),o=ee(()=>pm(s.baseId,t.value)),r=ee(()=>s.contentIds.value.has(t.value)?mm(s.baseId,t.value):void 0),a=ee(()=>t.value===s.modelValue.value);return(i,u)=>(x(),R(l(om),{"as-child":"",focusable:!i.disabled,active:a.value},{default:y(()=>[v(l(Ue),{id:o.value,ref:l(n),role:"tab",type:i.as==="button"?"button":void 0,as:i.as,"as-child":i.asChild,"aria-selected":a.value?"true":"false","aria-controls":r.value,"data-state":a.value?"active":"inactive",disabled:i.disabled,"data-disabled":i.disabled?"":void 0,"data-orientation":l(s).orientation.value,onMousedown:u[0]||(u[0]=ln(c=>{!i.disabled&&c.ctrlKey===!1?l(s).changeModelValue(i.value):c.preventDefault()},["left"])),onKeydown:u[1]||(u[1]=Qo(c=>l(s).changeModelValue(i.value),["enter","space"])),onFocus:u[2]||(u[2]=()=>{const c=l(s).activationMode!=="manual";!a.value&&!i.disabled&&c&&l(s).changeModelValue(i.value)})},{default:y(()=>[ue(i.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),fk=dk;const li=Q({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=$t(e,t);return(r,a)=>(x(),R(l(ox),Et(Pt(l(o))),{default:y(()=>[ue(r.$slots,"default")]),_:3},16))}}),ii=Q({__name:"DropdownMenuTrigger",setup(e){return(t,n)=>(x(),R(l(mx),{"as-child":""},{default:y(()=>[ue(t.$slots,"default")]),_:3}))}}),ui=Q({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},memoDependencies:{},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=ee(()=>{const{class:a,...i}=n;return i}),r=$t(o,s);return(a,i)=>(x(),R(l(cx),null,{default:y(()=>[v(l(ax),Ae(l(r),{class:l(Ge)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",n.class)}),{default:y(()=>[ue(a.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),qs=Q({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},inset:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const n=e,s=t,o=ee(()=>{const{class:a,inset:i,...u}=n;return u}),r=$t(o,s);return(a,i)=>(x(),R(l(ix),Ae(l(r),{"data-inset":e.inset?"":void 0,class:l(Ge)("relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",n.class)}),{default:y(()=>[ue(a.$slots,"default")]),_:3},16,["data-inset","class"]))}}),ci=Q({__name:"DropdownMenuSeparator",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),R(l(fx),{class:_e(l(Ge)("-mx-1 my-1 h-px bg-muted",t.class))},null,8,["class"]))}});/**
38
+ * @license lucide-vue-next v1.0.0 - ISC
39
+ *
40
+ * This source code is licensed under the ISC license.
41
+ * See the LICENSE file in the root directory of this source tree.
42
+ */const pk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
43
+ * @license lucide-vue-next v1.0.0 - ISC
44
+ *
45
+ * This source code is licensed under the ISC license.
46
+ * See the LICENSE file in the root directory of this source tree.
47
+ */const ld=e=>e==="";/**
48
+ * @license lucide-vue-next v1.0.0 - ISC
49
+ *
50
+ * This source code is licensed under the ISC license.
51
+ * See the LICENSE file in the root directory of this source tree.
52
+ */const mk=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/**
53
+ * @license lucide-vue-next v1.0.0 - ISC
54
+ *
55
+ * This source code is licensed under the ISC license.
56
+ * See the LICENSE file in the root directory of this source tree.
57
+ */const id=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
58
+ * @license lucide-vue-next v1.0.0 - ISC
59
+ *
60
+ * This source code is licensed under the ISC license.
61
+ * See the LICENSE file in the root directory of this source tree.
62
+ */const hk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase());/**
63
+ * @license lucide-vue-next v1.0.0 - ISC
64
+ *
65
+ * This source code is licensed under the ISC license.
66
+ * See the LICENSE file in the root directory of this source tree.
67
+ */const gk=e=>{const t=hk(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
68
+ * @license lucide-vue-next v1.0.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */var To={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
73
+ * @license lucide-vue-next v1.0.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const vk=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":s,strokeWidth:o,"stroke-width":r,size:a=To.width,color:i=To.stroke,...u},{slots:c})=>en("svg",{...To,...u,width:a,height:a,stroke:i,"stroke-width":ld(n)||ld(s)||n===!0||s===!0?Number(o||r||To["stroke-width"])*24/Number(a):o||r||To["stroke-width"],class:mk("lucide",u.class,...e?[`lucide-${id(gk(e))}-icon`,`lucide-${id(e)}`]:["lucide-icon"]),...!c.default&&!pk(u)&&{"aria-hidden":"true"}},[...t.map(d=>en(...d)),...c.default?[c.default()]:[]]);/**
78
+ * @license lucide-vue-next v1.0.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */const Re=(e,t)=>(n,{slots:s,attrs:o})=>en(vk,{...o,...n,iconNode:t,name:e},s);/**
83
+ * @license lucide-vue-next v1.0.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const hm=Re("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
88
+ * @license lucide-vue-next v1.0.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const gm=Re("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
93
+ * @license lucide-vue-next v1.0.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const Yn=Re("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
98
+ * @license lucide-vue-next v1.0.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const Ha=Re("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
103
+ * @license lucide-vue-next v1.0.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const vm=Re("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
108
+ * @license lucide-vue-next v1.0.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const yk=Re("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
113
+ * @license lucide-vue-next v1.0.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const bk=Re("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
118
+ * @license lucide-vue-next v1.0.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const Bs=Re("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
123
+ * @license lucide-vue-next v1.0.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const ym=Re("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);/**
128
+ * @license lucide-vue-next v1.0.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const di=Re("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
133
+ * @license lucide-vue-next v1.0.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */const ia=Re("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
138
+ * @license lucide-vue-next v1.0.0 - ISC
139
+ *
140
+ * This source code is licensed under the ISC license.
141
+ * See the LICENSE file in the root directory of this source tree.
142
+ */const ua=Re("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
143
+ * @license lucide-vue-next v1.0.0 - ISC
144
+ *
145
+ * This source code is licensed under the ISC license.
146
+ * See the LICENSE file in the root directory of this source tree.
147
+ */const _k=Re("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);/**
148
+ * @license lucide-vue-next v1.0.0 - ISC
149
+ *
150
+ * This source code is licensed under the ISC license.
151
+ * See the LICENSE file in the root directory of this source tree.
152
+ */const wk=Re("hard-drive",[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]]);/**
153
+ * @license lucide-vue-next v1.0.0 - ISC
154
+ *
155
+ * This source code is licensed under the ISC license.
156
+ * See the LICENSE file in the root directory of this source tree.
157
+ */const bm=Re("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
158
+ * @license lucide-vue-next v1.0.0 - ISC
159
+ *
160
+ * This source code is licensed under the ISC license.
161
+ * See the LICENSE file in the root directory of this source tree.
162
+ */const xk=Re("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
163
+ * @license lucide-vue-next v1.0.0 - ISC
164
+ *
165
+ * This source code is licensed under the ISC license.
166
+ * See the LICENSE file in the root directory of this source tree.
167
+ */const kk=Re("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
168
+ * @license lucide-vue-next v1.0.0 - ISC
169
+ *
170
+ * This source code is licensed under the ISC license.
171
+ * See the LICENSE file in the root directory of this source tree.
172
+ */const Ct=Re("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
173
+ * @license lucide-vue-next v1.0.0 - ISC
174
+ *
175
+ * This source code is licensed under the ISC license.
176
+ * See the LICENSE file in the root directory of this source tree.
177
+ */const Sk=Re("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);/**
178
+ * @license lucide-vue-next v1.0.0 - ISC
179
+ *
180
+ * This source code is licensed under the ISC license.
181
+ * See the LICENSE file in the root directory of this source tree.
182
+ */const Ck=Re("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
183
+ * @license lucide-vue-next v1.0.0 - ISC
184
+ *
185
+ * This source code is licensed under the ISC license.
186
+ * See the LICENSE file in the root directory of this source tree.
187
+ */const Ak=Re("move-down",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);/**
188
+ * @license lucide-vue-next v1.0.0 - ISC
189
+ *
190
+ * This source code is licensed under the ISC license.
191
+ * See the LICENSE file in the root directory of this source tree.
192
+ */const Ek=Re("move-up",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);/**
193
+ * @license lucide-vue-next v1.0.0 - ISC
194
+ *
195
+ * This source code is licensed under the ISC license.
196
+ * See the LICENSE file in the root directory of this source tree.
197
+ */const Ok=Re("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);/**
198
+ * @license lucide-vue-next v1.0.0 - ISC
199
+ *
200
+ * This source code is licensed under the ISC license.
201
+ * See the LICENSE file in the root directory of this source tree.
202
+ */const _m=Re("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
203
+ * @license lucide-vue-next v1.0.0 - ISC
204
+ *
205
+ * This source code is licensed under the ISC license.
206
+ * See the LICENSE file in the root directory of this source tree.
207
+ */const Pk=Re("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);/**
208
+ * @license lucide-vue-next v1.0.0 - ISC
209
+ *
210
+ * This source code is licensed under the ISC license.
211
+ * See the LICENSE file in the root directory of this source tree.
212
+ */const wm=Re("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]);/**
213
+ * @license lucide-vue-next v1.0.0 - ISC
214
+ *
215
+ * This source code is licensed under the ISC license.
216
+ * See the LICENSE file in the root directory of this source tree.
217
+ */const Zn=Re("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
218
+ * @license lucide-vue-next v1.0.0 - ISC
219
+ *
220
+ * This source code is licensed under the ISC license.
221
+ * See the LICENSE file in the root directory of this source tree.
222
+ */const ur=Re("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
223
+ * @license lucide-vue-next v1.0.0 - ISC
224
+ *
225
+ * This source code is licensed under the ISC license.
226
+ * See the LICENSE file in the root directory of this source tree.
227
+ */const Tk=Re("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
228
+ * @license lucide-vue-next v1.0.0 - ISC
229
+ *
230
+ * This source code is licensed under the ISC license.
231
+ * See the LICENSE file in the root directory of this source tree.
232
+ */const xm=Re("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
233
+ * @license lucide-vue-next v1.0.0 - ISC
234
+ *
235
+ * This source code is licensed under the ISC license.
236
+ * See the LICENSE file in the root directory of this source tree.
237
+ */const fi=Re("server-cog",[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]]);/**
238
+ * @license lucide-vue-next v1.0.0 - ISC
239
+ *
240
+ * This source code is licensed under the ISC license.
241
+ * See the LICENSE file in the root directory of this source tree.
242
+ */const $k=Re("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
243
+ * @license lucide-vue-next v1.0.0 - ISC
244
+ *
245
+ * This source code is licensed under the ISC license.
246
+ * See the LICENSE file in the root directory of this source tree.
247
+ */const Ik=Re("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
248
+ * @license lucide-vue-next v1.0.0 - ISC
249
+ *
250
+ * This source code is licensed under the ISC license.
251
+ * See the LICENSE file in the root directory of this source tree.
252
+ */const _l=Re("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
253
+ * @license lucide-vue-next v1.0.0 - ISC
254
+ *
255
+ * This source code is licensed under the ISC license.
256
+ * See the LICENSE file in the root directory of this source tree.
257
+ */const pi=Re("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/**
258
+ * @license lucide-vue-next v1.0.0 - ISC
259
+ *
260
+ * This source code is licensed under the ISC license.
261
+ * See the LICENSE file in the root directory of this source tree.
262
+ */const Mk=Re("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
263
+ * @license lucide-vue-next v1.0.0 - ISC
264
+ *
265
+ * This source code is licensed under the ISC license.
266
+ * See the LICENSE file in the root directory of this source tree.
267
+ */const Lk=Re("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
268
+ * @license lucide-vue-next v1.0.0 - ISC
269
+ *
270
+ * This source code is licensed under the ISC license.
271
+ * See the LICENSE file in the root directory of this source tree.
272
+ */const uu=Re("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
273
+ * @license lucide-vue-next v1.0.0 - ISC
274
+ *
275
+ * This source code is licensed under the ISC license.
276
+ * See the LICENSE file in the root directory of this source tree.
277
+ */const wl=Re("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Wa=Q({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=$t(e,t);return(r,a)=>(x(),R(l(l1),Et(Pt(l(o))),{default:y(()=>[ue(r.$slots,"default")]),_:3},16))}}),Ka=Q({__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=ee(()=>{const{class:a,...i}=n;return i}),r=$t(o,s);return(a,i)=>(x(),R(l(U1),null,{default:y(()=>[v(l(q1),{class:"fixed inset-0 z-50 bg-black/80"}),v(l(M1),Ae(l(r),{class:l(Ge)("fixed left-[50%] top-[50%] z-50 grid max-h-[90vh] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 overflow-y-auto border bg-background p-6 shadow-lg sm:rounded-lg",n.class)}),{default:y(()=>[ue(a.$slots,"default"),v(l(u1),{class:"absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background"},{default:y(()=>[v(l(uu),{class:"h-4 w-4"}),i[0]||(i[0]=S("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),za=Q({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),R(l(H1),{class:_e(l(Ge)("text-lg font-semibold leading-none tracking-tight",t.class))},{default:y(()=>[ue(n.$slots,"default")]),_:3},8,["class"]))}}),Ga=Q({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),R(l(R1),{class:_e(l(Ge)("text-sm text-muted-foreground",t.class))},{default:y(()=>[ue(n.$slots,"default")]),_:3},8,["class"]))}}),Hn=Q({__name:"Checkbox",props:ys({class:{type:[Boolean,null,String,Object,Array]},id:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=mr(e,"modelValue");return(s,o)=>(x(),R(l(hw),{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=r=>n.value=r),id:t.id,class:_e(l(Ge)("peer h-4 w-4 shrink-0 cursor-pointer rounded-[4px] border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t.class))},{default:y(()=>[v(l(vw),{class:"flex h-full w-full items-center justify-center text-current"},{default:y(()=>[v(l(Yn),{class:"h-3.5 w-3.5"})]),_:1})]),_:1},8,["modelValue","id","class"]))}}),mi=Q({__name:"Separator",props:{class:{type:[Boolean,null,String,Object,Array]},orientation:{}},setup(e){const t=e;return(n,s)=>(x(),R(l(sk),{orientation:t.orientation??"horizontal",class:_e(l(Ge)("shrink-0 bg-border",t.orientation==="vertical"?"h-full w-px":"h-px w-full",t.class))},null,8,["orientation","class"]))}}),Rk={class:"flex gap-3 pr-8"},Dk={key:0,class:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-destructive/15 text-destructive"},Fk={class:"min-w-0 flex-1 space-y-1.5"},Nk={class:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"},cu=Q({__name:"ConfirmDialog",props:ys({title:{},description:{},confirmText:{default:""},cancelText:{default:""},variant:{default:"default"},loading:{type:Boolean,default:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:ys(["confirm"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=mr(e,"open"),o=t;return(r,a)=>(x(),R(l(Wa),{open:s.value,"onUpdate:open":a[2]||(a[2]=i=>s.value=i)},{default:y(()=>[v(l(Ka),{class:"max-w-sm"},{default:y(()=>[S("div",Rk,[e.variant==="destructive"?(x(),Z("span",Dk,[v(l(Mk),{class:"h-4 w-4"})])):xe("",!0),S("div",Fk,[v(l(za),{class:"text-base leading-tight"},{default:y(()=>[G(O(e.title),1)]),_:1}),e.description?(x(),R(l(Ga),{key:0},{default:y(()=>[G(O(e.description),1)]),_:1})):xe("",!0)])]),S("div",Nk,[v(l(Pe),{variant:"outline",disabled:e.loading,onClick:a[0]||(a[0]=i=>s.value=!1)},{default:y(()=>[G(O(e.cancelText||l(n)("common.cancel")),1)]),_:1},8,["disabled"]),v(l(Pe),{variant:e.variant,disabled:e.loading,onClick:a[1]||(a[1]=i=>o("confirm"))},{default:y(()=>[e.loading?(x(),R(l(Ct),{key:0,class:"h-4 w-4 animate-spin"})):xe("",!0),G(" "+O(e.confirmText||l(n)("common.confirm")),1)]),_:1},8,["variant","disabled"])])]),_:1})]),_:1},8,["open"]))}}),qk={class:"flex items-center gap-2 pr-8"},Bk={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},Vk={class:"min-w-0"},Uk={key:0,class:"py-4 text-center text-sm text-muted-foreground"},jk={key:1,class:"py-4 text-center text-sm text-destructive"},Hk={class:"space-y-1"},Wk={key:0,class:"space-y-1.5 rounded-md border bg-muted/30 p-3 text-xs leading-relaxed text-muted-foreground"},Kk={key:3,class:"space-y-3 rounded-lg border bg-muted/30 p-4"},zk={class:"space-y-1.5"},Gk={class:"text-xs font-medium text-muted-foreground"},Yk={class:"space-y-1.5"},Xk={class:"text-xs font-medium text-muted-foreground"},Jk={class:"space-y-3 rounded-md border bg-background/50 p-3"},Qk={class:"space-y-2"},Zk={class:"flex items-center gap-2.5"},eS={class:"flex items-center gap-2.5 pl-7"},tS={class:"flex items-center gap-2.5"},nS={class:"text-xs text-muted-foreground"},sS={key:0,class:"space-y-1.5"},oS={class:"text-xs font-medium text-muted-foreground"},rS={class:"text-xs text-muted-foreground"},aS={key:1,class:"space-y-1.5"},lS={class:"text-xs font-medium text-muted-foreground"},iS={class:"text-xs text-muted-foreground"},uS={class:"space-y-1.5"},cS={class:"text-xs font-medium text-muted-foreground"},dS={key:2,class:"text-sm text-destructive"},fS={class:"flex justify-end gap-2"},pS={key:4,class:"space-y-2"},mS={key:0,class:"flex items-center gap-3"},hS={class:"min-w-0 flex-1"},gS={class:"flex items-center gap-2"},vS={class:"truncate font-medium"},yS={key:0,class:"mt-0.5 truncate font-mono text-xs text-muted-foreground"},bS={key:1,class:"mt-0.5 truncate font-mono text-xs text-muted-foreground"},_S={key:1,class:"space-y-3"},wS={class:"space-y-1.5"},xS={class:"text-xs font-medium text-muted-foreground"},kS={class:"space-y-1.5"},SS={class:"text-xs font-medium text-muted-foreground"},CS={class:"space-y-3 rounded-md border bg-background/50 p-3"},AS={class:"space-y-2"},ES={class:"flex items-center gap-2.5"},OS={class:"flex items-center gap-2.5 pl-7"},PS={class:"flex items-center gap-2.5"},TS={key:0,class:"space-y-1.5"},$S={class:"text-xs font-medium text-muted-foreground"},IS={class:"text-xs text-muted-foreground"},MS={key:1,class:"space-y-1.5"},LS={class:"text-xs font-medium text-muted-foreground"},RS={class:"text-xs text-muted-foreground"},DS={class:"space-y-1.5"},FS={class:"flex items-center justify-between"},NS={class:"text-xs font-medium text-muted-foreground"},qS={key:0,class:"text-xs text-muted-foreground"},BS={class:"flex justify-end gap-2"},VS=Q({__name:"SourcesDialog",props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:ys(["changed"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=mr(e,"open"),o=t,r=F([]),a=F(!1),i=F(""),u=F(""),c=F(""),d=F(""),f=F(""),p=F(!0),m=F(!1),g=F(!1),_=F(!1),k=F(""),h=F(!1),b=F(!1),T=F(null),w=F(""),L=F(""),$=F(""),A=F(""),I=F(!0),N=F(!1),z=F(!1),X=F(!1),H=F({}),de=F(null),ye=F(!1),J=F(!1);async function ce(){a.value=!0,i.value="";try{const me=await Ve("GET","/admin/providers");r.value=me.providers}catch(me){i.value=me.message}finally{a.value=!1}}Fe(s,me=>{me&&ce()});function j(me,ne){const C=me==="new"?p:I,M=me==="new"?m:N;if(ne==="openai"){if(C.value&&!M.value)return;C.value=!C.value}else{if(M.value&&!C.value)return;M.value=!M.value}}function te(me){const ne=[];return(me==="new"?p:I).value&&ne.push("openai"),(me==="new"?m:N).value&&ne.push("anthropic"),ne}async function ae(){if(_.value)return;k.value="";const me=te("new");if(!u.value||!f.value){k.value=n("sources.errRequired");return}if(!me.length){k.value=n("sources.errFormat");return}if(p.value&&!c.value||m.value&&!d.value){k.value=n("sources.errBaseUrl");return}_.value=!0;try{const ne=await Ve("POST","/admin/providers",{name:u.value,baseUrlOpenai:c.value,baseUrlAnthropic:d.value,apiKey:f.value,formats:me,supportsResponses:p.value&&g.value});r.value=[...r.value,ne.provider],u.value=f.value="",c.value=d.value="",g.value=!1,h.value=!1,$e(n("sources.added"),"success"),o("changed")}catch(ne){$e(ne.message,"error")}finally{_.value=!1}}function fe(me){T.value=me.id,w.value=me.name,L.value=me.baseUrlOpenai,$.value=me.baseUrlAnthropic,A.value="",I.value=me.formats.includes("openai"),N.value=me.formats.includes("anthropic"),z.value=!!me.supportsResponses}function Qe(){T.value=null}async function Te(me){if(X.value)return;const ne=te("edit");if(!w.value){$e(n("sources.errRequired"),"error");return}if(!ne.length){$e(n("sources.errFormat"),"error");return}if(I.value&&!L.value||N.value&&!$.value){$e(n("sources.errBaseUrl"),"error");return}X.value=!0;try{const C={name:w.value,baseUrlOpenai:L.value,baseUrlAnthropic:$.value,formats:ne,supportsResponses:I.value&&z.value};A.value&&(C.apiKey=A.value);const M=await Ve("PUT",`/admin/providers/${me.id}`,C);r.value=r.value.map(K=>K.id===me.id?M.provider:K),T.value=null,$e(n("sources.updated"),"success"),o("changed")}catch(C){$e(C.message,"error")}finally{X.value=!1}}async function ht(me){H.value[me.id]=!0;try{const ne=await Ve("POST",`/admin/providers/${me.id}/discover`);r.value=r.value.map(C=>C.id===me.id?{...C,discoveredModels:ne.models}:C),$e(n("sources.refreshDone",{name:me.name}),ne.models.length?"success":"default"),o("changed")}catch(ne){$e(ne.message,"error")}finally{H.value[me.id]=!1}}function pt(me){de.value=me,ye.value=!0}async function Ye(){const me=de.value;if(!(!me||J.value)){J.value=!0;try{await Ve("DELETE",`/admin/providers/${me.id}`),r.value=r.value.filter(ne=>ne.id!==me.id),$e(n("sources.removed",{name:me.name}),"success"),o("changed"),ye.value=!1}catch(ne){$e(ne.message,"error")}finally{J.value=!1}}}function Ie(me){var ne;return((ne=me.discoveredModels)==null?void 0:ne.length)??0}function Xe(me){return Ie(me)>0?"found":me.discoveredAt?"empty":"never"}function lt(me){const ne=Xe(me);return ne==="found"?n("sources.discoveredCount",{n:Ie(me)}):n(ne==="empty"?"sources.noModelsFound":"sources.notScanned")}function qe(me){const ne=Xe(me);return ne==="empty"?n("sources.noModelsHint"):ne==="never"?n("sources.notScannedHint"):""}return(me,ne)=>(x(),Z(Ce,null,[v(l(Wa),{open:s.value,"onUpdate:open":ne[17]||(ne[17]=C=>s.value=C)},{default:y(()=>[v(l(Ka),{class:"max-w-xl"},{default:y(()=>[S("div",qk,[S("span",Bk,[v(l(fi),{class:"h-4 w-4"})]),S("div",Vk,[v(l(za),{class:"text-base"},{default:y(()=>[G(O(l(n)("sources.manage")),1)]),_:1}),v(l(Ga),null,{default:y(()=>[G(O(l(n)("sources.subtitle")),1)]),_:1})])]),a.value?(x(),Z("p",Uk,O(l(n)("common.loading")),1)):i.value?(x(),Z("p",jk,O(i.value),1)):xe("",!0),S("div",Hk,[S("button",{type:"button",class:"inline-flex items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground",onClick:ne[0]||(ne[0]=C=>b.value=!b.value)},[v(l(bm),{class:"h-3.5 w-3.5"}),G(" "+O(l(n)("sources.baseHelpToggle"))+" ",1),v(l(Ha),{class:_e(["h-3.5 w-3.5 transition-transform",{"rotate-180":b.value}])},null,8,["class"])]),b.value?(x(),Z("div",Wk,[S("p",null,O(l(n)("sources.baseHelpSplit")),1),S("p",null,[ne[19]||(ne[19]=S("span",{class:"font-medium text-foreground"},"openai",-1)),G(" — "+O(l(n)("sources.baseHelpOpenai")),1)]),S("p",null,[ne[20]||(ne[20]=S("span",{class:"font-medium text-foreground"},"anthropic",-1)),G(" — "+O(l(n)("sources.baseHelpAnthropic")),1)])])):xe("",!0)]),!h.value&&r.value.length?(x(),R(l(Pe),{key:2,variant:"outline",class:"w-full justify-center",onClick:ne[1]||(ne[1]=C=>h.value=!0)},{default:y(()=>[v(l(Zn),{class:"h-4 w-4"}),G(O(l(n)("sources.add")),1)]),_:1})):(x(),Z("div",Kk,[S("div",zk,[S("label",Gk,O(l(n)("sources.nameLabel")),1),v(l(_t),{modelValue:u.value,"onUpdate:modelValue":ne[2]||(ne[2]=C=>u.value=C),placeholder:l(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])]),S("div",Yk,[S("label",Xk,O(l(n)("sources.formats")),1),S("div",Jk,[S("div",Qk,[S("div",Zk,[v(l(Hn),{"model-value":p.value,disabled:p.value&&!m.value,"aria-label":"openai","onUpdate:modelValue":ne[3]||(ne[3]=C=>j("new","openai"))},null,8,["model-value","disabled"]),ne[21]||(ne[21]=S("span",{class:"text-sm font-medium leading-none"},"openai",-1)),ne[22]||(ne[22]=S("span",{class:"text-xs text-muted-foreground"},"/chat/completions",-1))]),S("div",eS,[v(l(Hn),{modelValue:g.value,"onUpdate:modelValue":ne[4]||(ne[4]=C=>g.value=C),disabled:!p.value,"aria-label":l(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:_e(["text-sm leading-none",p.value?"":"text-muted-foreground"])},O(l(n)("sources.responses")),3),ne[23]||(ne[23]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),v(l(mi)),S("div",tS,[v(l(Hn),{"model-value":m.value,disabled:m.value&&!p.value,"aria-label":"anthropic","onUpdate:modelValue":ne[5]||(ne[5]=C=>j("new","anthropic"))},null,8,["model-value","disabled"]),ne[24]||(ne[24]=S("span",{class:"text-sm font-medium leading-none"},"anthropic",-1)),ne[25]||(ne[25]=S("span",{class:"text-xs text-muted-foreground"},"/messages",-1))])]),S("p",nS,O(l(n)("sources.addHint")),1)]),p.value?(x(),Z("div",sS,[S("label",oS,O(l(n)("sources.urlLabelOpenai")),1),v(l(_t),{modelValue:c.value,"onUpdate:modelValue":ne[6]||(ne[6]=C=>c.value=C),placeholder:l(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",rS,O(l(n)("sources.urlHintOpenai")),1)])):xe("",!0),m.value?(x(),Z("div",aS,[S("label",lS,O(l(n)("sources.urlLabelAnthropic")),1),v(l(_t),{modelValue:d.value,"onUpdate:modelValue":ne[7]||(ne[7]=C=>d.value=C),placeholder:l(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",iS,O(l(n)("sources.urlHintAnthropic")),1)])):xe("",!0),S("div",uS,[S("label",cS,O(l(n)("sources.keyLabel")),1),v(l(_t),{modelValue:f.value,"onUpdate:modelValue":ne[8]||(ne[8]=C=>f.value=C),type:"password",placeholder:l(n)("sources.keyPh"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])]),k.value?(x(),Z("p",dS,O(k.value),1)):xe("",!0),S("div",fS,[r.value.length?(x(),R(l(Pe),{key:0,variant:"ghost",size:"sm",onClick:ne[9]||(ne[9]=C=>h.value=!1)},{default:y(()=>[G(O(l(n)("sources.cancel")),1)]),_:1})):xe("",!0),v(l(Pe),{size:"sm",disabled:_.value,onClick:ae},{default:y(()=>[_.value?(x(),R(l(Ct),{key:0,class:"h-4 w-4 animate-spin"})):(x(),R(l(Zn),{key:1,class:"h-4 w-4"})),G(O(l(n)("sources.addBtn")),1)]),_:1},8,["disabled"])])])),r.value.length?(x(),Z("div",pS,[(x(!0),Z(Ce,null,at(r.value,C=>(x(),Z("div",{key:C.id,class:"rounded-lg border p-3"},[T.value!==C.id?(x(),Z("div",mS,[S("div",hS,[S("div",gS,[S("span",vS,O(C.name),1),(x(!0),Z(Ce,null,at(C.formats,M=>(x(),R(l(kt),{key:M,variant:"secondary"},{default:y(()=>[G(O(M),1)]),_:2},1024))),128)),v(l(kt),{variant:"muted",title:qe(C)},{default:y(()=>[G(O(lt(C)),1)]),_:2},1032,["title"])]),C.formats.includes("openai")?(x(),Z("div",yS,[ne[26]||(ne[26]=S("span",{class:"opacity-60"},"openai ·",-1)),G(" "+O(C.baseUrlOpenai),1)])):xe("",!0),C.formats.includes("anthropic")?(x(),Z("div",bS,[ne[27]||(ne[27]=S("span",{class:"opacity-60"},"anthropic ·",-1)),G(" "+O(C.baseUrlAnthropic),1)])):xe("",!0)]),v(l(li),null,{default:y(()=>[v(l(ii),null,{default:y(()=>[v(l(Pe),{variant:"ghost",size:"icon",class:"h-8 w-8","aria-label":l(n)("sources.moreActions")},{default:y(()=>[v(l(di),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),v(l(ui),{align:"end"},{default:y(()=>[v(l(qs),{disabled:H.value[C.id],onSelect:M=>ht(C)},{default:y(()=>[H.value[C.id]?(x(),R(l(Ct),{key:0,class:"animate-spin"})):(x(),R(l(ur),{key:1})),G(" "+O(l(n)("sources.refreshModels")),1)]),_:2},1032,["disabled","onSelect"]),v(l(qs),{onSelect:M=>fe(C)},{default:y(()=>[v(l(_m)),G(" "+O(l(n)("sources.editLabel")),1)]),_:1},8,["onSelect"]),v(l(ci)),v(l(qs),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:M=>pt(C)},{default:y(()=>[v(l(pi)),G(" "+O(l(n)("sources.deleteLabel")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)])):(x(),Z("div",_S,[S("div",wS,[S("label",xS,O(l(n)("sources.nameLabel")),1),v(l(_t),{modelValue:w.value,"onUpdate:modelValue":ne[10]||(ne[10]=M=>w.value=M),placeholder:l(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])]),S("div",kS,[S("label",SS,O(l(n)("sources.formats")),1),S("div",CS,[S("div",AS,[S("div",ES,[v(l(Hn),{"model-value":I.value,disabled:I.value&&!N.value,"aria-label":"openai","onUpdate:modelValue":ne[11]||(ne[11]=M=>j("edit","openai"))},null,8,["model-value","disabled"]),ne[28]||(ne[28]=S("span",{class:"text-sm font-medium leading-none"},"openai",-1)),ne[29]||(ne[29]=S("span",{class:"text-xs text-muted-foreground"},"/chat/completions",-1))]),S("div",OS,[v(l(Hn),{modelValue:z.value,"onUpdate:modelValue":ne[12]||(ne[12]=M=>z.value=M),disabled:!I.value,"aria-label":l(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:_e(["text-sm leading-none",I.value?"":"text-muted-foreground"])},O(l(n)("sources.responses")),3),ne[30]||(ne[30]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),v(l(mi)),S("div",PS,[v(l(Hn),{"model-value":N.value,disabled:N.value&&!I.value,"aria-label":"anthropic","onUpdate:modelValue":ne[13]||(ne[13]=M=>j("edit","anthropic"))},null,8,["model-value","disabled"]),ne[31]||(ne[31]=S("span",{class:"text-sm font-medium leading-none"},"anthropic",-1)),ne[32]||(ne[32]=S("span",{class:"text-xs text-muted-foreground"},"/messages",-1))])])]),I.value?(x(),Z("div",TS,[S("label",$S,O(l(n)("sources.urlLabelOpenai")),1),v(l(_t),{modelValue:L.value,"onUpdate:modelValue":ne[14]||(ne[14]=M=>L.value=M),placeholder:l(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",IS,O(l(n)("sources.urlHintOpenai")),1)])):xe("",!0),N.value?(x(),Z("div",MS,[S("label",LS,O(l(n)("sources.urlLabelAnthropic")),1),v(l(_t),{modelValue:$.value,"onUpdate:modelValue":ne[15]||(ne[15]=M=>$.value=M),placeholder:l(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",RS,O(l(n)("sources.urlHintAnthropic")),1)])):xe("",!0),S("div",DS,[S("div",FS,[S("label",NS,O(l(n)("sources.keyLabel")),1),C.apiKey?(x(),Z("span",qS,O(l(n)("sources.currentKeyLabel"))+": "+O(C.apiKey),1)):xe("",!0)]),v(l(_t),{modelValue:A.value,"onUpdate:modelValue":ne[16]||(ne[16]=M=>A.value=M),type:"password",placeholder:l(n)("sources.keyPhEdit"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])]),S("div",BS,[v(l(Pe),{variant:"ghost",size:"sm",onClick:Qe},{default:y(()=>[G(O(l(n)("sources.cancel")),1)]),_:1}),v(l(Pe),{size:"sm",disabled:X.value,onClick:M=>Te(C)},{default:y(()=>[X.value?(x(),R(l(Ct),{key:0,class:"h-4 w-4 animate-spin"})):xe("",!0),G(O(l(n)("sources.saveBtn")),1)]),_:1},8,["disabled","onClick"])])]))]))),128))])):xe("",!0)]),_:1})]),_:1},8,["open"]),v(cu,{open:ye.value,"onUpdate:open":ne[18]||(ne[18]=C=>ye.value=C),variant:"destructive",title:l(n)("sources.remove"),description:de.value?l(n)("sources.confirmRemove",{name:de.value.name}):"","confirm-text":l(n)("sources.remove"),loading:J.value,onConfirm:Ye},null,8,["open","title","description","confirm-text","loading"])],64))}}),Vo=Q({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},nullableValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const o=$t(e,t);return(r,a)=>(x(),R(l(_x),Et(Pt(l(o))),{default:y(()=>[ue(r.$slots,"default")]),_:3},16))}}),Uo=Q({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=ee(()=>{const{class:s,...o}=t;return o});return(s,o)=>(x(),R(l(Yx),Ae(n.value,{class:l(Ge)("flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t.class)}),{default:y(()=>[ue(s.$slots,"default"),v(l(Nx),{"as-child":""},{default:y(()=>[v(l(Ha),{class:"h-4 w-4 opacity-50"})]),_:1})]),_:3},16,["class"]))}}),jo=Q({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,s)=>(x(),R(l(Jx),Et(Pt(t)),{default:y(()=>[ue(n.$slots,"default")]),_:3},16))}}),Ho=Q({__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},memoDependencies:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},dir:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,s=t,o=ee(()=>{const{class:a,...i}=n;return i}),r=$t(o,s);return(a,i)=>(x(),R(l(zx),null,{default:y(()=>[v(l(Dx),Ae(l(r),{class:l(Ge)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md",n.position==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:translate-x-1 data-[side=right]:-translate-x-1 data-[side=top]:-translate-y-1",n.class)}),{default:y(()=>[v(l(Zx),{class:_e(l(Ge)("p-1",n.position==="popper"&&"w-full min-w-[var(--reka-select-trigger-width)]"))},{default:y(()=>[ue(a.$slots,"default")]),_:3},8,["class"])]),_:3},16,["class"])]),_:3}))}}),US={class:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},An=Q({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,n=ee(()=>{const{class:s,...o}=t;return o});return(s,o)=>(x(),R(l(Vx),Ae(n.value,{class:l(Ge)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t.class)}),{default:y(()=>[S("span",US,[v(l(jx),null,{default:y(()=>[v(l(Yn),{class:"h-4 w-4"})]),_:1})]),v(l(Wx),null,{default:y(()=>[ue(s.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),jS={class:"flex items-center gap-2 pr-8"},HS={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},WS={class:"min-w-0"},KS={class:"space-y-3"},zS={class:"space-y-1.5"},GS={class:"text-xs font-medium text-muted-foreground"},YS={class:"text-xs text-muted-foreground"},XS={class:"font-medium text-foreground"},JS={key:0,class:"space-y-3 rounded-lg border bg-muted/30 p-4"},QS={class:"text-xs text-muted-foreground"},ZS={class:"space-y-1.5"},eC={class:"text-xs font-medium text-muted-foreground"},tC={class:"space-y-1.5"},nC={class:"text-xs font-medium text-muted-foreground"},sC={class:"space-y-2 rounded-md border bg-background/50 p-3"},oC={class:"space-y-2"},rC={class:"flex items-center gap-2.5"},aC={class:"flex items-center gap-2.5 pl-7"},lC={class:"flex items-center gap-2.5"},iC={key:0,class:"space-y-1.5"},uC={class:"text-xs font-medium text-muted-foreground"},cC={class:"text-xs text-muted-foreground"},dC={key:1,class:"space-y-1.5"},fC={class:"text-xs font-medium text-muted-foreground"},pC={class:"text-xs text-muted-foreground"},mC={class:"space-y-1.5"},hC={class:"text-xs font-medium text-muted-foreground"},gC={key:2,class:"text-sm text-destructive"},vC={class:"space-y-1.5"},yC={class:"text-xs font-medium text-muted-foreground"},bC=["placeholder"],_C={key:0,class:"text-xs text-muted-foreground"},wC={class:"flex justify-end gap-2"},xl="__new__",xC=Q({__name:"AddModelsDialog",props:ys({providers:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:ys(["changed"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=e,o=mr(e,"open"),r=t,a=F(""),i=F(""),u=F(!1),c=F(""),d=F(""),f=F(""),p=F(""),m=F(!0),g=F(!1),_=F(!1),k=F("");Fe(o,z=>{z&&(a.value=s.providers.length?s.providers[0].id:xl,i.value="",c.value=p.value="",d.value=f.value="",m.value=!0,g.value=!1,_.value=!1,k.value="")});const h=ee(()=>a.value===xl);function b(z){const X=[...z.formats];return z.supportsResponses&&!X.includes("responses")&&X.push("responses"),X}const T=ee(()=>{if(h.value)return b({formats:L(),supportsResponses:m.value&&_.value});const z=s.providers.find(X=>X.id===a.value);return z?b(z):[]});function w(z){if(z==="openai"){if(m.value&&!g.value)return;m.value=!m.value}else{if(g.value&&!m.value)return;g.value=!g.value}}function L(){const z=[];return m.value&&z.push("openai"),g.value&&z.push("anthropic"),z}function $(){return!c.value.trim()||!p.value?n("sources.errRequired"):L().length?m.value&&!d.value.trim()||g.value&&!f.value.trim()?n("sources.errBaseUrl"):"":n("sources.errFormat")}const A=ee(()=>{const z=new Set,X=[];for(const H of i.value.split(/[\s,;]+/)){const de=H.trim();de&&!z.has(de)&&(z.add(de),X.push(de))}return X}),I=ee(()=>!!a.value&&A.value.length>0&&!u.value);async function N(){if(I.value){if(h.value){const z=$();if(z){k.value=z;return}}u.value=!0;try{let z=a.value,X=[],H=!1;if(h.value){const j=await Ve("POST","/admin/providers",{name:c.value.trim(),baseUrlOpenai:d.value,baseUrlAnthropic:f.value,apiKey:p.value,formats:L(),supportsResponses:m.value&&_.value});z=j.provider.id,a.value=z,X=b(j.provider),H=!0,$e(n("sources.added"),"success")}else{const j=s.providers.find(te=>te.id===z);X=j?b(j):[]}const de=[];for(const j of A.value)for(const te of X)de.push({name:j,slot:te});const ye=await Promise.allSettled(de.map(j=>Ve("POST","/admin/models",{name:j.name,format:j.slot,providers:[z]}))),J=new Set;let ce=0;ye.forEach((j,te)=>{j.status==="fulfilled"?J.add(de[te].name):ce++}),J.size&&$e(n("models.addedToast",{n:J.size}),"success"),ce&&$e(n("models.addModelsFailed",{n:ce}),"error"),(H||J.size)&&r("changed"),J.size&&(o.value=!1)}finally{u.value=!1}}}return(z,X)=>(x(),R(l(Wa),{open:o.value,"onUpdate:open":X[10]||(X[10]=H=>o.value=H)},{default:y(()=>[v(l(Ka),{class:_e(h.value?"max-w-lg":"max-w-md")},{default:y(()=>[S("div",jS,[S("span",HS,[v(l(Zn),{class:"h-4 w-4"})]),S("div",WS,[v(l(za),{class:"text-base"},{default:y(()=>[G(O(l(n)("models.addModels")),1)]),_:1}),v(l(Ga),null,{default:y(()=>[G(O(l(n)("models.addModelsDesc")),1)]),_:1})])]),S("div",KS,[S("div",zS,[S("label",GS,O(l(n)("models.providerLabel")),1),v(l(Vo),{modelValue:a.value,"onUpdate:modelValue":X[0]||(X[0]=H=>a.value=H)},{default:y(()=>[v(l(Uo),null,{default:y(()=>[v(l(jo),{placeholder:l(n)("models.providerPh")},null,8,["placeholder"])]),_:1}),v(l(Ho),null,{default:y(()=>[v(l(An),{value:xl},{default:y(()=>[G(O(l(n)("models.newSourceOpt")),1)]),_:1}),(x(!0),Z(Ce,null,at(e.providers,H=>(x(),R(l(An),{key:H.id,value:H.id},{default:y(()=>[G(O(H.name),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"]),S("p",YS,[G(O(l(n)("models.addModelsSlotsHint"))+" ",1),S("span",XS,O(T.value.join(" / ")||"—"),1)])]),h.value?(x(),Z("div",JS,[S("p",QS,O(l(n)("models.addModelsNewHint")),1),S("div",ZS,[S("label",eC,O(l(n)("sources.nameLabel")),1),v(l(_t),{modelValue:c.value,"onUpdate:modelValue":X[1]||(X[1]=H=>c.value=H),placeholder:l(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])]),S("div",tC,[S("label",nC,O(l(n)("sources.formats")),1),S("div",sC,[S("div",oC,[S("div",rC,[v(l(Hn),{"model-value":m.value,disabled:m.value&&!g.value,"aria-label":"openai","onUpdate:modelValue":X[2]||(X[2]=H=>w("openai"))},null,8,["model-value","disabled"]),X[11]||(X[11]=S("span",{class:"text-sm font-medium leading-none"},"openai",-1)),X[12]||(X[12]=S("span",{class:"text-xs text-muted-foreground"},"/chat/completions",-1))]),S("div",aC,[v(l(Hn),{modelValue:_.value,"onUpdate:modelValue":X[3]||(X[3]=H=>_.value=H),disabled:!m.value,"aria-label":l(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:_e(["text-sm leading-none",m.value?"":"text-muted-foreground"])},O(l(n)("sources.responses")),3),X[13]||(X[13]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),v(l(mi)),S("div",lC,[v(l(Hn),{"model-value":g.value,disabled:g.value&&!m.value,"aria-label":"anthropic","onUpdate:modelValue":X[4]||(X[4]=H=>w("anthropic"))},null,8,["model-value","disabled"]),X[14]||(X[14]=S("span",{class:"text-sm font-medium leading-none"},"anthropic",-1)),X[15]||(X[15]=S("span",{class:"text-xs text-muted-foreground"},"/messages",-1))])])]),m.value?(x(),Z("div",iC,[S("label",uC,O(l(n)("sources.urlLabelOpenai")),1),v(l(_t),{modelValue:d.value,"onUpdate:modelValue":X[5]||(X[5]=H=>d.value=H),placeholder:l(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",cC,O(l(n)("sources.urlHintOpenai")),1)])):xe("",!0),g.value?(x(),Z("div",dC,[S("label",fC,O(l(n)("sources.urlLabelAnthropic")),1),v(l(_t),{modelValue:f.value,"onUpdate:modelValue":X[6]||(X[6]=H=>f.value=H),placeholder:l(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",pC,O(l(n)("sources.urlHintAnthropic")),1)])):xe("",!0),S("div",mC,[S("label",hC,O(l(n)("sources.keyLabel")),1),v(l(_t),{modelValue:p.value,"onUpdate:modelValue":X[7]||(X[7]=H=>p.value=H),type:"password",placeholder:l(n)("sources.keyPh"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])]),k.value?(x(),Z("p",gC,O(k.value),1)):xe("",!0)])):xe("",!0),S("div",vC,[S("label",yC,O(l(n)("models.namesLabel")),1),ho(S("textarea",{"onUpdate:modelValue":X[8]||(X[8]=H=>i.value=H),placeholder:l(n)("models.addModelsNamesPh"),rows:"6",spellcheck:"false",class:"flex w-full resize-y rounded-md border border-input bg-transparent px-3 py-2 font-mono text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50"},null,8,bC),[[Mf,i.value]]),A.value.length?(x(),Z("p",_C,O(l(n)("models.addModelsCount",{n:A.value.length})),1)):xe("",!0)]),S("div",wC,[v(l(Pe),{variant:"outline",disabled:u.value,onClick:X[9]||(X[9]=H=>o.value=!1)},{default:y(()=>[G(O(l(n)("common.cancel")),1)]),_:1},8,["disabled"]),v(l(Pe),{disabled:!I.value,onClick:N},{default:y(()=>[u.value?(x(),R(l(Ct),{key:0,class:"h-4 w-4 animate-spin"})):(x(),R(l(Zn),{key:1,class:"h-4 w-4"})),G(" "+O(l(n)("models.addModelsBtn")),1)]),_:1},8,["disabled"])])])]),_:1},8,["class"])]),_:1},8,["open"]))}}),kC={class:"flex items-center gap-2 pr-8"},SC={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},CC={class:"min-w-0"},AC={class:"space-y-3"},EC={key:0,class:"rounded-md bg-muted/40 px-3 py-6 text-center text-sm text-muted-foreground"},OC={class:"space-y-1.5"},PC={class:"text-xs font-medium text-muted-foreground"},TC={key:0,class:"text-xs text-muted-foreground"},$C={class:"font-medium text-foreground"},IC={class:"space-y-1.5"},MC={class:"text-xs font-medium text-muted-foreground"},LC=["placeholder","title"],RC={class:"text-xs text-muted-foreground"},DC={class:"flex justify-end gap-2"},FC=Q({__name:"AddSourceDialog",props:ys({modelName:{},providers:{},enabledFormats:{},chainByFormat:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:ys(["added"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=e,o=mr(e,"open"),r=t,a=encodeURIComponent,i=F(""),u=F(""),c=F(!1);function d(h,b){return b==="responses"?!!h.supportsResponses:h.formats.includes(b)}function f(h){const b=s.providers.find(T=>T.id===h);return b?s.enabledFormats.filter(T=>d(b,T)&&!(s.chainByFormat[T]??[]).includes(h)):[]}const p=ee(()=>s.providers.filter(h=>s.enabledFormats.some(b=>d(h,b)&&!(s.chainByFormat[b]??[]).includes(h.id))).sort((h,b)=>h.name.localeCompare(b.name))),m={openai:"models.fmtOpenaiShort",anthropic:"models.fmtAnthropicShort",responses:"models.fmtResponsesShort"},g=ee(()=>i.value?f(i.value).map(h=>n(m[h]??h)):[]),_=ee(()=>!!i.value&&!c.value);Fe(o,h=>{var b;h&&(i.value=((b=p.value[0])==null?void 0:b.id)??"",u.value="")});async function k(){if(!_.value)return;const h=i.value,b=s.providers.find(L=>L.id===h);if(!h||!b)return;const T=f(h),w=u.value.trim();c.value=!0;try{let $=(await Promise.allSettled(T.map(A=>Ve("POST",`/admin/models/${a(s.modelName)}/providers`,{format:A,providerId:h})))).filter(A=>A.status==="rejected").length;if(w){const A=s.enabledFormats.filter(N=>d(b,N)),I=await Promise.allSettled(A.map(N=>Ve("PUT",`/admin/models/${a(s.modelName)}/map`,{format:N,providerId:h,model:w})));$+=I.filter(N=>N.status==="rejected").length}$?$e(n("models.addSourcePartial"),"error"):$e(n("models.sourceAdded"),"success"),r("added"),o.value=!1}catch(L){$e(L.message,"error")}finally{c.value=!1}}return(h,b)=>(x(),R(l(Wa),{open:o.value,"onUpdate:open":b[3]||(b[3]=T=>o.value=T)},{default:y(()=>[v(l(Ka),{class:"max-w-md"},{default:y(()=>[S("div",kC,[S("span",SC,[v(l(Zn),{class:"h-4 w-4"})]),S("div",CC,[v(l(za),{class:"text-base"},{default:y(()=>[G(O(l(n)("models.addSourceTitle")),1)]),_:1}),v(l(Ga),null,{default:y(()=>[G(O(l(n)("models.addSourceDesc")),1)]),_:1})])]),S("div",AC,[p.value.length?(x(),Z(Ce,{key:1},[S("div",OC,[S("label",PC,O(l(n)("models.providerLabel")),1),v(l(Vo),{modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=T=>i.value=T)},{default:y(()=>[v(l(Uo),null,{default:y(()=>[v(l(jo),{placeholder:l(n)("models.providerPh")},null,8,["placeholder"])]),_:1}),v(l(Ho),null,{default:y(()=>[(x(!0),Z(Ce,null,at(p.value,T=>(x(),R(l(An),{key:T.id,value:T.id},{default:y(()=>[G(O(T.name),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"]),g.value.length?(x(),Z("p",TC,[G(O(l(n)("models.addSourceTargetsHint"))+" ",1),S("span",$C,O(g.value.join(" / ")),1)])):xe("",!0)]),S("div",IC,[S("label",MC,O(l(n)("models.upstreamLabel")),1),ho(S("input",{"onUpdate:modelValue":b[1]||(b[1]=T=>u.value=T),type:"text",placeholder:l(n)("models.upstreamPh"),title:l(n)("models.upstreamHint"),spellcheck:"false",class:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 font-mono text-sm shadow-sm transition-colors placeholder:font-sans placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background"},null,8,LC),[[Mf,u.value]]),S("p",RC,O(l(n)("models.upstreamHint")),1)])],64)):(x(),Z("div",EC,O(l(n)("models.addSourceNone")),1)),S("div",DC,[v(l(Pe),{variant:"outline",disabled:c.value,onClick:b[2]||(b[2]=T=>o.value=!1)},{default:y(()=>[G(O(l(n)("common.cancel")),1)]),_:1},8,["disabled"]),v(l(Pe),{disabled:!_.value||!p.value.length,onClick:k},{default:y(()=>[c.value?(x(),R(l(Ct),{key:0,class:"h-4 w-4 animate-spin"})):(x(),R(l(Zn),{key:1,class:"h-4 w-4"})),G(" "+O(l(n)("models.addToChain")),1)]),_:1},8,["disabled"])])])]),_:1})]),_:1},8,["open"]))}}),NC={class:"space-y-4"},qC={class:"flex h-11 w-11 items-center justify-center rounded-xl bg-primary/15 text-primary"},BC={class:"space-y-1"},VC={class:"font-medium"},UC={class:"max-w-sm text-sm text-muted-foreground"},jC={class:"flex flex-wrap items-center gap-2"},HC={class:"relative min-w-[180px] flex-1"},WC={class:"text-xs text-muted-foreground"},KC={key:0,class:"py-6 text-center text-sm text-muted-foreground"},zC={key:1,class:"py-6 text-center text-sm text-destructive"},GC={key:0,class:"relative overflow-hidden rounded-lg border border-border/60 bg-card"},YC={class:"flex items-center gap-2.5 border-b border-border/60 bg-muted/30 px-3 py-2"},XC={class:"text-sm font-semibold"},JC={class:"ml-auto inline-flex items-center rounded-md bg-primary/15 px-1.5 py-0.5 text-xs font-medium tabular-nums text-primary"},QC={class:"divide-y divide-border"},ZC={class:"flex items-center gap-3"},eA=["aria-expanded","aria-label","onClick"],tA={class:"flex min-w-0 flex-1 flex-col items-start"},nA={class:"flex w-full items-center gap-2"},sA={class:"truncate font-mono text-sm font-medium"},oA={class:"w-full truncate text-xs text-muted-foreground"},rA={class:"flex shrink-0 items-center gap-1.5"},aA=["disabled","title","aria-label","onClick"],lA={key:0,class:"mt-2 space-y-3 rounded-md border bg-muted/30 p-2"},iA={class:"flex items-center gap-2 px-1"},uA={class:"text-xs font-semibold"},cA={class:"font-mono text-[11px] text-muted-foreground"},dA={class:"ml-auto flex items-center gap-1.5"},fA={key:0,class:"flex items-start gap-2 rounded bg-muted px-2 py-1.5 text-xs text-muted-foreground"},pA={class:"shrink-0 font-medium"},mA={key:1,class:"px-1 py-1 text-xs text-muted-foreground"},hA={class:"w-4 shrink-0 text-right text-xs text-muted-foreground"},gA={class:"flex items-center gap-1.5 text-sm"},vA={key:2,class:"flex items-center gap-1"},yA=["value","placeholder","aria-label","title","onInput","onKeyup","onBlur"],bA=["title","onClick"],_A={class:"ml-auto flex items-center gap-0.5 opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100"},wA={key:0,class:"flex justify-center pt-1"},xA={class:"relative overflow-hidden rounded-lg border border-border/60 bg-card"},kA={class:"flex items-center gap-2.5 border-b border-border/60 bg-muted/30 px-3 py-2"},SA={class:"text-sm font-semibold"},CA={class:"ml-auto inline-flex items-center rounded-md bg-muted px-1.5 py-0.5 text-xs font-medium tabular-nums text-muted-foreground"},AA={key:0,class:"divide-y divide-border"},EA={key:0,class:"py-3 text-center text-xs text-muted-foreground"},OA={class:"flex min-w-0 items-center gap-2"},PA={class:"truncate font-mono text-sm"},TA={class:"hidden gap-1 sm:flex"},$A={class:"flex shrink-0 items-center gap-1.5"},IA=["disabled","title","aria-label","onClick"],MA=Q({__name:"Models",setup(e){const{t}=Ht(),n=["openai","anthropic","responses"],s=F([]),o=F([]),r=F(""),a=F(!1),i=F(""),u=F(!0),c=F(new Set),d=F(!1),f=F(!1),p=F(!1),m=F(!1),g=F({}),_=F({}),k=F({}),h=F({}),b=F({}),T=F({}),w=F(""),L=F(null),$=F(!1),A={mounted:W=>W.focus()},I=F(null),N=F(!1),z=encodeURIComponent;async function X(){a.value=!0,r.value="";try{const[W,U]=await Promise.all([Ve("GET","/admin/models"),Ve("GET","/admin/providers")]);s.value=W.models,o.value=U.providers}catch(W){r.value=W.message}finally{a.value=!1}}const H=ee(()=>new Map(o.value.map(W=>[W.id,W]))),de=ee(()=>{const W=new Map;for(const U of o.value)for(const le of U.discoveredModels??[]){const B=W.get(le);B?B.push(U.id):W.set(le,[U.id])}return W}),ye=ee(()=>{const W=new Set;for(const le of o.value)for(const B of le.discoveredModels??[])W.add(B);for(const le of s.value)W.add(le.name);const U=le=>({enabled:(le==null?void 0:le.enabled)??!1,chain:((le==null?void 0:le.providers)??[]).map(B=>({id:B.id,name:B.name,model:B.model}))});return[...W].map(le=>{const B=s.value.find(Me=>Me.name===le),we=(de.value.get(le)??[]).map(Me=>H.value.get(Me)).filter(Me=>!!Me).map(Me=>({id:Me.id,name:Me.name,formats:Me.formats,supportsResponses:Me.supportsResponses}));return{name:le,openai:U(B==null?void 0:B.openai),anthropic:U(B==null?void 0:B.anthropic),responses:U(B==null?void 0:B.responses),offering:we}})});function J(W){return n.filter(U=>W[U].enabled)}function ce(W){return n.filter(U=>W.offering.some(le=>Ye(le,U)))}function j(W){return ce(W).filter(U=>!W[U].enabled)}function te(W,U){return W[U].enabled?"enabled":ce(W).includes(U)?"enableable":"unsupported"}function ae(W,U){return W.offering.filter(le=>Ye(le,U)).map(le=>le.id)}const fe=ee(()=>{const W=i.value.trim().toLowerCase();return ye.value.filter(U=>!W||U.name.toLowerCase().includes(W))}),Qe=ee(()=>fe.value.filter(W=>W.openai.enabled||W.anthropic.enabled||W.responses.enabled)),Te=ee(()=>fe.value.filter(W=>!(W.openai.enabled||W.anthropic.enabled||W.responses.enabled)&&ce(W).length>0));function ht(W){const U=J(W);return o.value.filter(le=>U.some(B=>Ye(le,B)&&!W[B].chain.some(we=>we.id===le.id)))}function pt(W){const U={};for(const le of n)U[le]=W[le].chain.map(B=>B.id);return U}function Ye(W,U){return U==="responses"?!!W.supportsResponses:W.formats.includes(U)}const Ie={openai:{key:"models.fmtOpenai",chip:"models.fmtOpenaiShort",endpoint:"/chat/completions"},anthropic:{key:"models.fmtAnthropic",chip:"models.fmtAnthropicShort",endpoint:"/messages"},responses:{key:"models.fmtResponses",chip:"models.fmtResponsesShort",endpoint:"/responses"}};function Xe(W){return c.value.has(W)}function lt(W){const U=new Set(c.value);U.has(W)?U.delete(W):U.add(W),c.value=U}function qe(W){return W.length?W.map(U=>U.name).join(" → "):t("models.noSourcesShort")}function me(W){return J(W).map(U=>`${t(Ie[U].chip)}: ${qe(W[U].chain)}`).join(" · ")}function ne(W){const U=H.value.get(W);if(!U)return[];const le=U.formats.filter(B=>B==="openai"||B==="anthropic");return U.supportsResponses&&le.push("responses"),le}function C(W,U){const le=W[U].chain;if(!le.length)return!1;const B=we=>{var Me;return((Me=H.value.get(we))==null?void 0:Me.discoveredModels)??[]};return!le.some(we=>B(we.id).includes(we.model??W.name))&&le.some(we=>B(we.id).length>0)}function M(W){return J(W).some(U=>C(W,U))}function K(W){let U=!1,le=null,B=null;for(const we of J(W)){const Me=`${W.name}:${we}`;h.value[Me]&&(U=!0);const Ze=b.value[Me];Ze!=null&&Ze.ok&&!le?le=Ze:Ze&&!Ze.ok&&!B&&(B=Ze)}return U?{state:"testing"}:le?{state:"ok",provider:le.provider}:B?{state:"fail",status:B.status,error:B.error}:null}function ie(W,U){const le=te(W,U);return le==="enabled"?`border-transparent ${Wt[U].solid} text-white shadow-sm`:le==="enableable"?"border-dashed border-input text-muted-foreground hover:bg-accent hover:text-accent-foreground":"border-transparent text-muted-foreground/40"}function se(W,U){const le=te(W,U);return le==="enabled"?`${t(Ie[U].key)} · ${t("models.chipOn")}`:le==="enableable"?`${t(Ie[U].key)} · ${t("models.chipOff")}`:`${t(Ie[U].key)} · ${t("models.chipNa")}`}async function re(W,U){W[U].enabled?await D(W,U):await E(W,U)}async function E(W,U){const le=`${W.name}:${U}`;_.value[le]=!0;const B=W.offering.filter(Ze=>Ye(Ze,U)),we=B.map(Ze=>({id:Ze.id,name:Ze.name})),Me=s.value.find(Ze=>Ze.name===W.name);if(Me){Me[U].enabled=!0;for(const Ze of we)Me[U].providers.find(cn=>cn.id===Ze.id)||Me[U].providers.push(Ze)}else s.value.push({name:W.name,openai:{enabled:U==="openai",providers:U==="openai"?we:[]},anthropic:{enabled:U==="anthropic",providers:U==="anthropic"?we:[]},responses:{enabled:U==="responses",providers:U==="responses"?we:[]}});try{await Ve("POST","/admin/models",{name:W.name,format:U,providers:B.map(Ze=>Ze.id)}),$e(t("models.enabledToast",{name:`${W.name} [${U}]`}),"success")}catch(Ze){await X(),$e(Ze.message,"error")}finally{_.value[le]=!1}}async function P(){if(f.value)return;f.value=!0;const W=[];for(const B of Te.value)for(const we of j(B))W.push({name:B.name,fmt:we,providers:ae(B,we)});for(const B of W)_.value[`${B.name}:${B.fmt}`]=!0;const U=await Promise.allSettled(W.map(B=>Ve("POST","/admin/models",{name:B.name,format:B.fmt,providers:B.providers})));for(const B of W)_.value[`${B.name}:${B.fmt}`]=!1;if(await X(),f.value=!1,!W.length)return;const le=U.filter(B=>B.status==="rejected").length;le?le===W.length?$e(t("models.enableAllFailed"),"error"):$e(t("models.enableAllPartial",{failed:le}),"error"):$e(t("models.enableAllDone"),"success")}async function D(W,U){const le=s.value.find(B=>B.name===W.name);le&&(le[U].enabled=!1);try{await Ve("POST",`/admin/models/${z(W.name)}/disable`,{format:U}),$e(t("models.disabledToast",{name:`${W.name} [${U}]`}),"success")}catch(B){await X(),$e(B.message,"error")}}function V(W){I.value=W,N.value=!0}async function pe(W,U){const le=`${W.name}:${U}`;if(!h.value[le]){h.value[le]=!0;try{const B=await Ve("POST",`/admin/models/${z(W.name)}/test?format=${U}`);b.value[le]=B.result}catch(B){b.value[le]={ok:!1,status:0,format:U,error:B.message}}finally{h.value[le]=!1}}}async function oe(W){const U=J(W);U.length&&await Promise.all(U.map(le=>pe(W,le)))}async function q(){const W=I.value;if(W){g.value[W.name]=!0;try{await Ve("DELETE",`/admin/models/${z(W.name)}`),s.value=s.value.filter(U=>U.name!==W.name),$e(t("models.removedToast",{name:W.name}),"success"),N.value=!1}catch(U){$e(U.message,"error")}finally{g.value[W.name]=!1}}}async function Y(W,U,le){const B=s.value.find(Me=>Me.name===W.name);if(!B)return;const we=B[le].providers.slice();B[le].providers=U.map(Me=>we.find(Ze=>Ze.id===Me)).filter(Boolean);try{await Ve("PUT",`/admin/models/${z(W.name)}/priority`,{format:le,providers:U})}catch(Me){B[le].providers=we,$e(Me.message,"error")}}function be(W,U,le){if(U===0)return;const B=W[le].chain.map(we=>we.id);[B[U-1],B[U]]=[B[U],B[U-1]],Y(W,B,le)}function Se(W,U,le){const B=W[le].chain.map(we=>we.id);U>=B.length-1||([B[U+1],B[U]]=[B[U],B[U+1]],Y(W,B,le))}function De(W){L.value=W,$.value=!0}function Be(W,U,le){return`${W.name}:${U}:${le.id}`}function je(W,U,le){return w.value===Be(W,U,le)}function Dt(W,U,le){const B=Be(W,U,le);T.value[B]=le.model??"",w.value=B}function Jt(W,U,le){return T.value[Be(W,U,le)]??""}function Ps(W,U,le,B){T.value[Be(W,U,le)]=B}async function _r(W,U,le){const B=Be(W,U,le);w.value="";const we=(T.value[B]??"").trim(),Me=(le.model??"").trim();if(we===Me)return;const Ze=s.value.find(cn=>cn.name===W.name);if(Ze){const cn=Ze[U].providers.findIndex(xr=>xr.id===le.id);cn>=0&&(Ze[U].providers[cn].model=we||void 0)}T.value[B]=we;try{await Ve("PUT",`/admin/models/${z(W.name)}/map`,{format:U,providerId:le.id,model:we}),$e(t("models.mapSaved"),"success")}catch(cn){await X(),$e(cn.message,"error")}}function Ft(W,U,le,B){T.value[Be(W,U,le)]=le.model??"",B.blur()}async function nn(W,U,le){const B=`${W.name}:${U}:${le}`;if(k.value[B])return;k.value[B]=!0;const we=s.value.find(Me=>Me.name===W.name);we&&(we[le].providers=we[le].providers.filter(Me=>Me.id!==U));try{await Ve("DELETE",`/admin/models/${z(W.name)}/providers/${U}?format=${le}`),$e(t("models.sourceRemoved"),"success")}catch(Me){await X(),$e(Me.message,"error")}finally{k.value[B]=!1}}async function wr(){if(d.value||!o.value.length)return;d.value=!0;const W=o.value,U=await Promise.allSettled(W.map(B=>Ve("POST",`/admin/providers/${B.id}/discover`)));await X();const le=U.map((B,we)=>B.status==="rejected"?W[we].name:null).filter(B=>!!B);le.length?le.length===W.length?$e(t("sources.refreshAllFailed"),"error"):$e(t("sources.refreshAllPartial",{failed:le.join("、")}),"error"):$e(t("sources.refreshAllDone"),"success"),d.value=!1}return ct(X),(W,U)=>{var le;return x(),Z("div",NC,[!a.value&&!o.value.length?(x(),R(l(pn),{key:0},{default:y(()=>[v(l(mn),{class:"flex flex-col items-center gap-3 py-12 text-center"},{default:y(()=>[S("span",qC,[v(l(fi),{class:"h-5 w-5"})]),S("div",BC,[S("div",VC,O(l(t)("models.empty")),1),S("p",UC,O(l(t)("models.emptyHint")),1)]),v(l(Pe),{onClick:U[0]||(U[0]=B=>p.value=!0)},{default:y(()=>[v(l(Zn),{class:"h-4 w-4"}),G(O(l(t)("models.addSource")),1)]),_:1})]),_:1})]),_:1})):(x(),R(l(pn),{key:1},{default:y(()=>[v(l(In),null,{default:y(()=>[v(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(l(ym),{class:"h-4 w-4 text-primary"}),G(" "+O(l(t)("models.title")),1)]),_:1}),v(l(vs),null,{default:y(()=>[G(O(l(t)("models.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-4"},{default:y(()=>[S("div",jC,[S("div",HC,[v(l(xm),{class:"absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),v(l(_t),{modelValue:i.value,"onUpdate:modelValue":U[1]||(U[1]=B=>i.value=B),placeholder:l(t)("models.searchPh"),class:"pl-8"},null,8,["modelValue","placeholder"])]),v(l(Pe),{size:"sm",onClick:U[2]||(U[2]=B=>m.value=!0)},{default:y(()=>[v(l(Zn),{class:"h-4 w-4"}),G(O(l(t)("models.addModels")),1)]),_:1}),v(l(Pe),{variant:"outline",size:"sm",disabled:d.value,onClick:wr},{default:y(()=>[d.value?(x(),R(l(Ct),{key:0,class:"h-4 w-4 animate-spin"})):(x(),R(l(ur),{key:1,class:"h-4 w-4"})),G(O(l(t)("sources.refreshAll")),1)]),_:1},8,["disabled"]),v(l(Pe),{variant:"outline",size:"sm",onClick:U[3]||(U[3]=B=>p.value=!0)},{default:y(()=>[v(l(fi),{class:"h-4 w-4"}),G(O(l(t)("models.manageSources")),1)]),_:1})]),S("p",WC,O(l(t)("models.chipLegend")),1),a.value?(x(),Z("p",KC,O(l(t)("common.loading")),1)):r.value?(x(),Z("p",zC,O(r.value),1)):(x(),Z(Ce,{key:2},[Qe.value.length?(x(),Z("section",GC,[U[13]||(U[13]=S("div",{class:"pointer-events-none absolute inset-y-0 left-0 w-1 bg-primary","aria-hidden":"true"},null,-1)),S("div",YC,[U[10]||(U[10]=S("span",{class:"h-2 w-2 shrink-0 rounded-full bg-primary"},null,-1)),S("span",XC,O(l(t)("models.enabledSection")),1),S("span",JC,O(Qe.value.length),1)]),S("div",QC,[(x(!0),Z(Ce,null,at(Qe.value,B=>{var we,Me,Ze,cn,xr;return x(),Z("div",{key:B.name,class:"px-3 py-2.5"},[S("div",ZC,[S("button",{type:"button",class:"flex min-w-0 flex-1 items-center gap-2 text-left","aria-expanded":Xe(B.name),"aria-label":Xe(B.name)?l(t)("models.collapseAria"):l(t)("models.expandAria"),onClick:Ee=>lt(B.name)},[v(l(vm),{class:_e(["h-4 w-4 shrink-0 text-muted-foreground transition-transform",{"rotate-90":Xe(B.name)}])},null,8,["class"]),S("span",tA,[S("span",nA,[S("span",sA,O(B.name),1),((we=K(B))==null?void 0:we.state)==="testing"?(x(),R(l(kt),{key:0,variant:"muted",class:"gap-1"},{default:y(()=>[v(l(Ct),{class:"h-3 w-3 animate-spin"}),G(O(l(t)("models.probeTesting")),1)]),_:1})):((Me=K(B))==null?void 0:Me.state)==="ok"?(x(),R(l(kt),{key:1,variant:"success",title:l(t)("models.probeOkHint",{name:((Ze=K(B))==null?void 0:Ze.provider)??""})},{default:y(()=>[G(O(l(t)("models.probeOk")),1)]),_:1},8,["title"])):((cn=K(B))==null?void 0:cn.state)==="fail"?(x(),R(l(kt),{key:2,variant:"destructive",title:((xr=K(B))==null?void 0:xr.error)||l(t)("models.probeFailHint")},{default:y(()=>{var Ee;return[G(O(l(t)("models.probeFail"))+" · "+O(((Ee=K(B))==null?void 0:Ee.status)||"?"),1)]}),_:2},1032,["title"])):M(B)?(x(),R(l(kt),{key:3,variant:"secondary",title:l(t)("models.delistedHint")},{default:y(()=>[G(O(l(t)("models.delisted")),1)]),_:1},8,["title"])):xe("",!0)]),S("span",oA,O(me(B)),1)])],8,eA),S("div",rA,[(x(),Z(Ce,null,at(n,Ee=>S("button",{key:Ee,type:"button",disabled:te(B,Ee)==="unsupported"||_.value[`${B.name}:${Ee}`],title:se(B,Ee),"aria-label":se(B,Ee),class:_e(["inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium transition-colors disabled:cursor-not-allowed",ie(B,Ee)]),onClick:cs=>re(B,Ee)},[_.value[`${B.name}:${Ee}`]?(x(),R(l(Ct),{key:0,class:"h-3 w-3 animate-spin"})):(x(),Z("span",{key:1,class:_e(["rounded-full",te(B,Ee)==="enabled"?"h-1.5 w-1.5 bg-current":te(B,Ee)==="enableable"?"h-1.5 w-1.5 border border-current":"h-1.5 w-1.5"])},null,2)),G(" "+O(l(t)(Ie[Ee].chip)),1)],10,aA)),64))]),v(l(li),null,{default:y(()=>[v(l(ii),null,{default:y(()=>[v(l(Pe),{variant:"ghost",size:"icon",class:"h-8 w-8 shrink-0 text-muted-foreground","aria-label":l(t)("models.moreActions")},{default:y(()=>[v(l(di),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),v(l(ui),{align:"end"},{default:y(()=>{var Ee;return[v(l(qs),{disabled:((Ee=K(B))==null?void 0:Ee.state)==="testing"||!J(B).length,onSelect:cs=>oe(B)},{default:y(()=>{var cs;return[((cs=K(B))==null?void 0:cs.state)==="testing"?(x(),R(l(Ct),{key:0,class:"animate-spin"})):(x(),R(l(wl),{key:1})),G(" "+O(l(t)("models.testModel")),1)]}),_:2},1032,["disabled","onSelect"]),v(l(ci)),v(l(qs),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:cs=>V(B)},{default:y(()=>[v(l(pi)),G(" "+O(l(t)("models.removeModel")),1)]),_:1},8,["onSelect"])]}),_:2},1024)]),_:2},1024)]),Xe(B.name)?(x(),Z("div",lA,[(x(!0),Z(Ce,null,at(J(B),Ee=>{var cs,du,fu;return x(),Z("div",{key:Ee,class:"space-y-1"},[S("div",iA,[S("span",{class:_e(["h-2 w-2 rounded-full",l(Wt)[Ee].solid])},null,2),S("span",uA,O(l(t)(Ie[Ee].key)),1),S("span",cA,O(Ie[Ee].endpoint),1),S("div",dA,[(cs=b.value[`${B.name}:${Ee}`])!=null&&cs.ok?(x(),R(l(kt),{key:0,variant:"success",title:l(t)("models.probeOkHint",{name:((du=b.value[`${B.name}:${Ee}`])==null?void 0:du.provider)??""})},{default:y(()=>[G(O(l(t)("models.probeOk")),1)]),_:1},8,["title"])):b.value[`${B.name}:${Ee}`]?(x(),R(l(kt),{key:1,variant:"destructive",title:((fu=b.value[`${B.name}:${Ee}`])==null?void 0:fu.error)||l(t)("models.probeFailHint")},{default:y(()=>{var xt;return[G(O(l(t)("models.probeFail"))+" · "+O(((xt=b.value[`${B.name}:${Ee}`])==null?void 0:xt.status)||"?"),1)]}),_:2},1032,["title"])):xe("",!0),v(l(Pe),{variant:"ghost",size:"sm",class:"h-6 gap-1 px-2 text-xs",disabled:h.value[`${B.name}:${Ee}`],onClick:xt=>pe(B,Ee)},{default:y(()=>[h.value[`${B.name}:${Ee}`]?(x(),R(l(Ct),{key:0,class:"h-3 w-3 animate-spin"})):(x(),R(l(wl),{key:1,class:"h-3 w-3"})),G(" "+O(l(t)("models.testModel")),1)]),_:2},1032,["disabled","onClick"])])]),C(B,Ee)&&!b.value[`${B.name}:${Ee}`]?(x(),Z("div",fA,[S("span",pA,O(l(t)("models.delisted")),1),S("span",null,O(l(t)("models.delistedHint")),1)])):xe("",!0),B[Ee].chain.length?xe("",!0):(x(),Z("div",mA,O(l(t)("models.noSources")),1)),(x(!0),Z(Ce,null,at(B[Ee].chain,(xt,Xs)=>(x(),Z("div",{key:xt.id,class:"group flex items-center gap-2 rounded px-1 py-1 hover:bg-muted/40"},[S("span",hA,O(Xs+1)+".",1),S("span",gA,[S("span",{class:_e(["h-1.5 w-1.5 rounded-full",l(Yl)(xt.id).solid])},null,2),G(" "+O(xt.name),1)]),(x(!0),Z(Ce,null,at(ne(xt.id),Nt=>(x(),R(l(kt),{key:Nt,variant:"secondary",class:_e(l(Wt)[Nt].badge)},{default:y(()=>[G(O(l(t)(Ie[Nt].chip)),1)]),_:2},1032,["class"]))),128)),Xs===0?(x(),R(l(kt),{key:0,variant:"default"},{default:y(()=>[G(O(l(t)("models.primary")),1)]),_:1})):(x(),R(l(kt),{key:1,variant:"muted"},{default:y(()=>[G(O(l(t)("models.fallback")),1)]),_:1})),je(B,Ee,xt)?(x(),Z("div",vA,[U[11]||(U[11]=S("span",{class:"text-xs text-muted-foreground"},"→",-1)),ho(S("input",{type:"text",value:Jt(B,Ee,xt),placeholder:l(t)("models.upstreamPh"),"aria-label":l(t)("models.upstreamLabel"),title:l(t)("models.upstreamHint"),spellcheck:"false",class:"h-6 w-40 rounded-md border border-input bg-background px-2 font-mono text-xs shadow-sm transition-colors placeholder:font-sans placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",onInput:Nt=>Ps(B,Ee,xt,Nt.target.value),onKeyup:[U[4]||(U[4]=Qo(Nt=>Nt.target.blur(),["enter"])),Qo(Nt=>Ft(B,Ee,xt,Nt.target),["esc"])],onBlur:Nt=>_r(B,Ee,xt)},null,40,yA),[[A]])])):xt.model?(x(),Z("button",{key:3,type:"button",title:l(t)("models.upstreamHint"),class:"inline-flex items-center gap-1 rounded border border-transparent px-1.5 py-0.5 font-mono text-xs text-muted-foreground transition-colors hover:border-border hover:bg-background hover:text-foreground",onClick:Nt=>Dt(B,Ee,xt)},[U[12]||(U[12]=S("span",null,"→",-1)),G(O(xt.model),1)],8,bA)):xe("",!0),S("div",_A,[v(l(Pe),{variant:"ghost",size:"icon",class:"h-7 w-7",disabled:Xs===0,"aria-label":l(t)("models.moveUpAria"),onClick:Nt=>be(B,Xs,Ee)},{default:y(()=>[v(l(Ek),{class:"h-4 w-4"})]),_:1},8,["disabled","aria-label","onClick"]),v(l(Pe),{variant:"ghost",size:"icon",class:"h-7 w-7",disabled:Xs===B[Ee].chain.length-1,"aria-label":l(t)("models.moveDownAria"),onClick:Nt=>Se(B,Xs,Ee)},{default:y(()=>[v(l(Ak),{class:"h-4 w-4"})]),_:1},8,["disabled","aria-label","onClick"]),v(l(li),null,{default:y(()=>[v(l(ii),null,{default:y(()=>[v(l(Pe),{variant:"ghost",size:"icon",class:"h-7 w-7 text-muted-foreground","aria-label":l(t)("models.moreActions")},{default:y(()=>[v(l(di),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),v(l(ui),{align:"end"},{default:y(()=>[v(l(qs),{onSelect:Nt=>Dt(B,Ee,xt)},{default:y(()=>[v(l(_m),{class:"h-4 w-4"}),G(" "+O(l(t)("models.editUpstream")),1)]),_:1},8,["onSelect"]),v(l(ci)),v(l(qs),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:Nt=>nn(B,xt.id,Ee)},{default:y(()=>[v(l(pi),{class:"h-4 w-4"}),G(" "+O(l(t)("models.removeSource")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)])]))),128))])}),128)),ht(B).length?(x(),Z("div",wA,[v(l(Pe),{variant:"outline",size:"sm",class:"h-7 gap-1 border-dashed text-muted-foreground",onClick:Ee=>De(B)},{default:y(()=>[v(l(Zn),{class:"h-3.5 w-3.5"}),G(" "+O(l(t)("models.addSourceToChain")),1)]),_:1},8,["onClick"])])):xe("",!0)])):xe("",!0)])}),128))])])):xe("",!0),S("section",xA,[U[15]||(U[15]=S("div",{class:"pointer-events-none absolute inset-y-0 left-0 w-1 bg-muted-foreground/40","aria-hidden":"true"},null,-1)),S("div",kA,[S("button",{type:"button",class:"flex min-w-0 flex-1 items-center gap-2.5 rounded px-1 py-0.5 text-left hover:bg-muted/50",onClick:U[5]||(U[5]=B=>u.value=!u.value)},[v(l(Ha),{class:_e(["h-4 w-4 shrink-0 text-muted-foreground transition-transform",{"-rotate-90":!u.value}])},null,8,["class"]),U[14]||(U[14]=S("span",{class:"h-2 w-2 shrink-0 rounded-full bg-muted-foreground/40"},null,-1)),S("span",SA,O(l(t)("models.availableSection")),1),S("span",CA,O(Te.value.length),1)]),Te.value.length?(x(),R(l(Pe),{key:0,size:"sm",variant:"secondary",class:"h-7 gap-1.5 px-2.5",disabled:f.value,onClick:P},{default:y(()=>[f.value?(x(),R(l(Ct),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),R(l(wl),{key:1,class:"h-3.5 w-3.5"})),G(" "+O(l(t)("models.enableAll")),1)]),_:1},8,["disabled"])):xe("",!0)]),u.value?(x(),Z("div",AA,[Te.value.length?xe("",!0):(x(),Z("p",EA,O(l(t)("models.availableDesc")),1)),(x(!0),Z(Ce,null,at(Te.value,B=>(x(),Z("div",{key:B.name,class:"flex items-center justify-between gap-2 px-3 py-2"},[S("div",OA,[S("span",PA,O(B.name),1),S("div",TA,[(x(!0),Z(Ce,null,at(B.offering,we=>(x(),R(l(kt),{key:we.id,variant:"secondary",class:_e(l(Yl)(we.id).badge)},{default:y(()=>[G(O(we.name),1)]),_:2},1032,["class"]))),128))])]),S("div",$A,[(x(),Z(Ce,null,at(n,we=>S("button",{key:we,type:"button",disabled:te(B,we)==="unsupported"||_.value[`${B.name}:${we}`],title:se(B,we),"aria-label":se(B,we),class:_e(["inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium transition-colors disabled:cursor-not-allowed",ie(B,we)]),onClick:Me=>re(B,we)},[_.value[`${B.name}:${we}`]?(x(),R(l(Ct),{key:0,class:"h-3 w-3 animate-spin"})):(x(),Z("span",{key:1,class:_e(["rounded-full",te(B,we)==="enabled"?"h-1.5 w-1.5 bg-current":te(B,we)==="enableable"?"h-1.5 w-1.5 border border-current":"h-1.5 w-1.5"])},null,2)),G(" "+O(l(t)(Ie[we].chip)),1)],10,IA)),64))])]))),128))])):xe("",!0)])],64))]),_:1})]),_:1})),v(VS,{open:p.value,"onUpdate:open":U[6]||(U[6]=B=>p.value=B),onChanged:X},null,8,["open"]),v(xC,{open:m.value,"onUpdate:open":U[7]||(U[7]=B=>m.value=B),providers:o.value,onChanged:X},null,8,["open","providers"]),v(FC,{open:$.value,"onUpdate:open":U[8]||(U[8]=B=>$.value=B),"model-name":((le=L.value)==null?void 0:le.name)??"",providers:o.value,"enabled-formats":L.value?J(L.value):[],"chain-by-format":L.value?pt(L.value):{},onAdded:X},null,8,["open","model-name","providers","enabled-formats","chain-by-format"]),v(cu,{open:N.value,"onUpdate:open":U[9]||(U[9]=B=>N.value=B),variant:"destructive",title:l(t)("models.removeModel"),description:I.value?l(t)("models.confirmRemove",{name:I.value.name}):"","confirm-text":l(t)("models.removeModel"),loading:I.value?!!g.value[I.value.name]:!1,onConfirm:q},null,8,["open","title","description","confirm-text","loading"])])}}}),LA={class:"relative w-full overflow-auto"},km=Q({__name:"Table",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("div",LA,[S("table",{class:_e(l(Ge)("w-full caption-bottom text-sm",t.class))},[ue(n.$slots,"default")],2)]))}}),Sm=Q({__name:"TableHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("thead",{class:_e(l(Ge)("[&_tr]:border-b",t.class))},[ue(n.$slots,"default")],2))}}),Cm=Q({__name:"TableBody",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("tbody",{class:_e(l(Ge)("[&_tr:last-child]:border-0",t.class))},[ue(n.$slots,"default")],2))}}),ao=Q({__name:"TableRow",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("tr",{class:_e(l(Ge)("border-b transition-colors hover:bg-muted/40 data-[state=selected]:bg-muted",t.class))},[ue(n.$slots,"default")],2))}}),on=Q({__name:"TableHead",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("th",{class:_e(l(Ge)("h-10 px-3 text-left align-middle text-xs font-medium uppercase tracking-wide text-muted-foreground [&:has([role=checkbox])]:pr-0",t.class))},[ue(n.$slots,"default")],2))}}),Kt=Q({__name:"TableCell",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Z("td",{class:_e(l(Ge)("p-3 align-middle [&:has([role=checkbox])]:pr-0",t.class))},[ue(n.$slots,"default")],2))}}),RA=Q({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=$t(e,t);return(r,a)=>(x(),R(l(Hw),Et(Pt(l(o))),{default:y(()=>[ue(r.$slots,"default")]),_:3},16))}}),DA=Q({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,s)=>(x(),R(l(tx),Et(Pt(t)),{default:y(()=>[ue(n.$slots,"default")]),_:3},16))}}),FA=Q({__name:"PopoverContent",props:{forceMount:{type:Boolean},memoDependencies:{},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},dir:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=ee(()=>{const{class:a,...i}=n;return i}),r=$t(o,s);return(a,i)=>(x(),R(l(Zw),null,{default:y(()=>[v(l(Jw),Ae(l(r),{class:l(Ge)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",n.class)}),{default:y(()=>[ue(a.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),NA={class:"flex items-center justify-between gap-2"},qA={class:"flex gap-1"},BA={class:"sr-only"},VA={class:"flex flex-wrap items-center gap-2"},UA={class:"relative flex-1 sm:max-w-sm"},jA={key:0,class:"inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground"},HA={class:"space-y-2.5"},WA={class:"flex items-center justify-between"},KA={class:"text-xs font-medium"},zA={class:"space-y-2"},GA={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},YA={class:"text-xs text-muted-foreground"},XA={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},JA={class:"text-xs text-muted-foreground"},QA={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},ZA={class:"text-xs text-muted-foreground"},eE={key:0,class:"flex flex-wrap items-center gap-1.5"},tE={class:"text-muted-foreground"},nE={class:"font-medium"},sE=["aria-label","onClick"],oE={class:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground"},rE={class:"text-emerald-600 dark:text-emerald-500"},aE={class:"text-destructive"},lE={key:1,class:"space-y-2 rounded-lg border border-amber-500/30 bg-amber-500/5 p-3"},iE={class:"flex items-center gap-1.5 text-xs font-medium text-amber-700 dark:text-amber-400"},uE={class:"space-y-1.5"},cE={class:"font-medium"},dE={class:"break-all text-muted-foreground"},fE={key:2,class:"py-6 text-center text-sm text-muted-foreground"},pE={key:3,class:"py-6 text-center text-sm text-muted-foreground"},mE={key:4,class:"overflow-x-auto"},hE={class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},gE={class:"font-mono text-muted-foreground"},vE={class:"font-medium"},yE={class:"text-muted-foreground"},bE={class:"text-muted-foreground"},_E={class:"break-all text-muted-foreground"},wE={class:"inline-flex items-center gap-1.5"},xE={class:"grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 px-2 py-2 text-xs sm:grid-cols-[auto_1fr_auto_1fr]"},kE={class:"text-muted-foreground"},SE={class:"font-mono"},CE={class:"text-muted-foreground"},AE={class:"font-mono"},EE={class:"text-muted-foreground"},OE={class:"text-muted-foreground"},PE={class:"break-all font-mono"},ud="myapikey.logs.filters",TE=Q({__name:"Logs",setup(e){const{t}=Ht(),n=F([]),s=F(!0),o=F(!1),r=F([]),a=F("all"),i=F("all"),u=F("all"),c=F(""),d=F(new Set),f=F(!1);try{const j=JSON.parse(localStorage.getItem(ud)||"null");j&&(typeof j.model=="string"&&(a.value=j.model),typeof j.provider=="string"&&(i.value=j.provider),(j.status==="success"||j.status==="error")&&(u.value=j.status),typeof j.query=="string"&&(c.value=j.query))}catch{}Fe([a,i,u,c],()=>{try{localStorage.setItem(ud,JSON.stringify({model:a.value,provider:i.value,status:u.value,query:c.value}))}catch{}});let p;async function m(){o.value=!0;try{const[j,te]=await Promise.all([Ve("GET","/admin/logs").catch(()=>null),Ve("GET","/admin/circuit").catch(()=>null)]);j&&(n.value=j.logs),te&&(r.value=te.providers.filter(ae=>ae.state==="cooling"))}finally{o.value=!1}}async function g(j){await Ve("POST",`/admin/circuit/${j}/reset`).catch(()=>{}),await m()}function _(){k(),p=window.setInterval(m,4e3)}function k(){p&&(clearInterval(p),p=void 0)}function h(){s.value=!s.value,s.value?(m(),_()):k()}function b(j){return j>=200&&j<300?"success":j>=400?"destructive":"muted"}function T(j){var te;return((te=Wt[j])==null?void 0:te.badge)??""}function w(j){return j<1e3?`${j}ms`:`${(j/1e3).toFixed(1)}s`}function L(j){return new Date(j).toLocaleTimeString()}function $(j){return new Date(j).toLocaleString()}function A(j){return`${j.ts}-${j.model}-${j.provider}-${j.status}-${j.kind??"call"}`}function I(j){return d.value.has(A(j))}function N(j){const te=new Set(d.value),ae=A(j);te.has(ae)?te.delete(ae):te.add(ae),d.value=te}const z=ee(()=>[...new Set(n.value.map(j=>j.model))].sort()),X=ee(()=>[...new Set(n.value.map(j=>j.provider))].sort()),H=ee(()=>{const j=c.value.trim().toLowerCase();return n.value.filter(te=>!(a.value!=="all"&&te.model!==a.value||i.value!=="all"&&te.provider!==i.value||u.value==="success"&&!(te.status>=200&&te.status<300)||u.value==="error"&&te.status<400||j&&!(te.model.toLowerCase().includes(j)||te.provider.toLowerCase().includes(j))))}),de=ee(()=>{const j=H.value.filter(Te=>Te.kind!=="cooldown"),te=j.length,ae=j.filter(Te=>Te.status>=200&&Te.status<300).length,fe=j.filter(Te=>Te.status>=400).length,Qe=te?Math.round(j.reduce((Te,ht)=>Te+ht.ms,0)/te):0;return{total:te,success:ae,fail:fe,avgMs:Qe}}),ye=ee(()=>(a.value!=="all"?1:0)+(i.value!=="all"?1:0)+(u.value!=="all"?1:0)),J=ee(()=>{const j=[];return a.value!=="all"&&j.push({key:"model",label:t("logs.filter.model"),value:a.value,clear:()=>a.value="all"}),i.value!=="all"&&j.push({key:"provider",label:t("logs.filter.provider"),value:i.value,clear:()=>i.value="all"}),u.value!=="all"&&j.push({key:"status",label:t("logs.filter.status"),value:u.value==="success"?t("logs.filter.success"):t("logs.filter.error"),clear:()=>u.value="all"}),j});function ce(){a.value="all",i.value="all",u.value="all"}return ct(()=>{m(),_()}),yn(k),(j,te)=>(x(),R(l(pn),null,{default:y(()=>[v(l(In),null,{default:y(()=>[S("div",NA,[v(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(l(hm),{class:"h-4 w-4 text-primary"}),G(" "+O(l(t)("logs.title"))+" ",1),s.value?(x(),R(l(kt),{key:0,variant:"success",class:"gap-1.5"},{default:y(()=>[te[5]||(te[5]=S("span",{class:"relative flex h-1.5 w-1.5"},[S("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-current opacity-75"}),S("span",{class:"relative inline-flex h-1.5 w-1.5 rounded-full bg-current"})],-1)),G(" "+O(l(t)("logs.live")),1)]),_:1})):xe("",!0)]),_:1}),S("div",qA,[v(l(Pe),{variant:"outline",size:"sm",disabled:o.value,onClick:m},{default:y(()=>[o.value?(x(),R(l(Ct),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),R(l(ur),{key:1,class:"h-3.5 w-3.5"})),S("span",BA,O(l(t)("logs.refresh")),1)]),_:1},8,["disabled"]),v(l(Pe),{variant:"outline",size:"sm","aria-pressed":s.value,onClick:h},{default:y(()=>[s.value?(x(),R(l(Ok),{key:0,class:"h-3.5 w-3.5"})):(x(),R(l(Pk),{key:1,class:"h-3.5 w-3.5"})),G(" "+O(s.value?l(t)("logs.pause"):l(t)("logs.resume")),1)]),_:1},8,["aria-pressed"])])]),v(l(vs),null,{default:y(()=>[G(O(l(t)("logs.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-3"},{default:y(()=>[S("div",VA,[S("div",UA,[v(l(xm),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),v(l(_t),{modelValue:c.value,"onUpdate:modelValue":te[0]||(te[0]=ae=>c.value=ae),placeholder:l(t)("logs.searchPh"),class:"h-8 pl-8"},null,8,["modelValue","placeholder"])]),v(l(RA),{open:f.value,"onUpdate:open":te[4]||(te[4]=ae=>f.value=ae)},{default:y(()=>[v(l(DA),{"as-child":""},{default:y(()=>[v(l(Pe),{variant:"outline",size:"sm",class:"h-8 gap-1.5"},{default:y(()=>[v(l(_k),{class:"h-3.5 w-3.5"}),G(" "+O(l(t)("logs.filter.title"))+" ",1),ye.value?(x(),Z("span",jA,O(ye.value),1)):xe("",!0)]),_:1})]),_:1}),v(l(FA),{align:"start",class:"w-72 p-3"},{default:y(()=>[S("div",HA,[S("div",WA,[S("span",KA,O(l(t)("logs.filter.title")),1),ye.value?(x(),Z("button",{key:0,type:"button",class:"text-xs text-primary hover:underline",onClick:ce},O(l(t)("logs.filter.clear")),1)):xe("",!0)]),S("div",zA,[S("div",GA,[S("span",YA,O(l(t)("logs.filter.model")),1),v(l(Vo),{modelValue:a.value,"onUpdate:modelValue":te[1]||(te[1]=ae=>a.value=ae)},{default:y(()=>[v(l(Uo),{class:"h-8 w-full"},{default:y(()=>[v(l(jo),{placeholder:l(t)("logs.filter.model")},null,8,["placeholder"])]),_:1}),v(l(Ho),null,{default:y(()=>[v(l(An),{value:"all"},{default:y(()=>[G(O(l(t)("logs.filter.all")),1)]),_:1}),(x(!0),Z(Ce,null,at(z.value,ae=>(x(),R(l(An),{key:ae,value:ae},{default:y(()=>[G(O(ae),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])]),S("div",XA,[S("span",JA,O(l(t)("logs.filter.provider")),1),v(l(Vo),{modelValue:i.value,"onUpdate:modelValue":te[2]||(te[2]=ae=>i.value=ae)},{default:y(()=>[v(l(Uo),{class:"h-8 w-full"},{default:y(()=>[v(l(jo),{placeholder:l(t)("logs.filter.provider")},null,8,["placeholder"])]),_:1}),v(l(Ho),null,{default:y(()=>[v(l(An),{value:"all"},{default:y(()=>[G(O(l(t)("logs.filter.all")),1)]),_:1}),(x(!0),Z(Ce,null,at(X.value,ae=>(x(),R(l(An),{key:ae,value:ae},{default:y(()=>[G(O(ae),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])]),S("div",QA,[S("span",ZA,O(l(t)("logs.filter.status")),1),v(l(Vo),{modelValue:u.value,"onUpdate:modelValue":te[3]||(te[3]=ae=>u.value=ae)},{default:y(()=>[v(l(Uo),{class:"h-8 w-full"},{default:y(()=>[v(l(jo),{placeholder:l(t)("logs.filter.status")},null,8,["placeholder"])]),_:1}),v(l(Ho),null,{default:y(()=>[v(l(An),{value:"all"},{default:y(()=>[G(O(l(t)("logs.filter.all")),1)]),_:1}),v(l(An),{value:"success"},{default:y(()=>[G(O(l(t)("logs.filter.success")),1)]),_:1}),v(l(An),{value:"error"},{default:y(()=>[G(O(l(t)("logs.filter.error")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"])])])])]),_:1})]),_:1},8,["open"])]),J.value.length?(x(),Z("div",eE,[(x(!0),Z(Ce,null,at(J.value,ae=>(x(),Z("span",{key:ae.key,class:"inline-flex items-center gap-1 rounded-full border border-input bg-muted/40 py-0.5 pl-2.5 pr-1 text-xs"},[S("span",tE,O(ae.label)+":",1),S("span",nE,O(ae.value),1),S("button",{type:"button",class:"rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground","aria-label":l(t)("logs.filter.remove",{label:ae.label}),onClick:ae.clear},[v(l(uu),{class:"h-3 w-3"})],8,sE)]))),128)),S("button",{type:"button",class:"text-xs text-muted-foreground hover:text-foreground",onClick:ce},O(l(t)("logs.filter.clear")),1)])):xe("",!0),S("div",oE,[S("span",null,O(l(t)("logs.summary.total",{n:de.value.total})),1),S("span",rE,O(l(t)("logs.summary.success",{n:de.value.success})),1),S("span",aE,O(l(t)("logs.summary.fail",{n:de.value.fail})),1),S("span",null,O(l(t)("logs.summary.avgLatency",{ms:de.value.avgMs})),1)]),r.value.length?(x(),Z("div",lE,[S("div",iE,[v(l(_l),{class:"h-4 w-4"}),G(" "+O(l(t)("logs.circuit.stripTitle")),1)]),S("ul",uE,[(x(!0),Z(Ce,null,at(r.value,ae=>(x(),Z("li",{key:ae.id,class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},[S("span",cE,O(ae.name),1),v(l(kt),{variant:"warning",class:"gap-1 whitespace-nowrap"},{default:y(()=>[v(l(_l),{class:"h-3 w-3"}),G(" "+O(l(t)("logs.circuit.remaining",{s:ae.secondsLeft})),1)]),_:2},1024),S("span",dE,O(ae.lastReason||l(t)("logs.circuit.reasonUnknown")),1),v(l(Pe),{variant:"outline",size:"sm",class:"ml-auto h-6 gap-1",onClick:fe=>g(ae.id)},{default:y(()=>[v(l(ur),{class:"h-3 w-3"}),G(" "+O(l(t)("logs.circuit.reset")),1)]),_:1},8,["onClick"])]))),128))])])):xe("",!0),n.value.length?H.value.length?(x(),Z("div",mE,[v(l(km),null,{default:y(()=>[v(l(Sm),null,{default:y(()=>[v(l(ao),null,{default:y(()=>[v(l(on),{class:"w-8"}),v(l(on),null,{default:y(()=>[G(O(l(t)("logs.col.time")),1)]),_:1}),v(l(on),null,{default:y(()=>[G(O(l(t)("logs.col.model")),1)]),_:1}),v(l(on),null,{default:y(()=>[G(O(l(t)("logs.col.provider")),1)]),_:1}),v(l(on),null,{default:y(()=>[G(O(l(t)("logs.col.format")),1)]),_:1}),v(l(on),{class:"text-right"},{default:y(()=>[G(O(l(t)("logs.col.latency")),1)]),_:1}),v(l(on),{class:"text-right"},{default:y(()=>[G(O(l(t)("logs.col.status")),1)]),_:1})]),_:1})]),_:1}),v(l(Cm),null,{default:y(()=>[(x(!0),Z(Ce,null,at(H.value,ae=>(x(),Z(Ce,{key:A(ae)},[ae.kind==="cooldown"?(x(),R(l(ao),{key:0,class:"bg-amber-500/5 hover:bg-amber-500/10"},{default:y(()=>[v(l(Kt),{colspan:"7",class:"py-2"},{default:y(()=>[S("div",hE,[S("span",gE,O(L(ae.ts)),1),v(l(kt),{variant:"warning",class:"gap-1 whitespace-nowrap"},{default:y(()=>[v(l(_l),{class:"h-3 w-3"}),G(" "+O(l(t)("logs.circuit.badge")),1)]),_:1}),S("span",vE,O(ae.provider),1),S("span",yE,O(l(t)("logs.circuit.failures",{n:ae.fails})),1),S("span",bE,O(l(t)("logs.circuit.cooldown",{s:Math.round((ae.cooldownMs??0)/1e3)})),1),S("span",_E,O(ae.error||l(t)("logs.circuit.reasonUnknown")),1)])]),_:2},1024)]),_:2},1024)):(x(),Z(Ce,{key:1},[v(l(ao),{class:"cursor-pointer hover:bg-muted/50",onClick:fe=>N(ae)},{default:y(()=>[v(l(Kt),{class:"w-8 text-muted-foreground"},{default:y(()=>[(x(),R(pr(I(ae)?l(Ha):l(vm)),{class:"h-3.5 w-3.5"}))]),_:2},1024),v(l(Kt),{class:"font-mono text-xs text-muted-foreground",title:$(ae.ts)},{default:y(()=>[G(O(L(ae.ts)),1)]),_:2},1032,["title"]),v(l(Kt),{class:"font-mono text-xs"},{default:y(()=>[G(O(ae.model),1)]),_:2},1024),v(l(Kt),{class:"text-sm"},{default:y(()=>[G(O(ae.provider),1)]),_:2},1024),v(l(Kt),null,{default:y(()=>[S("span",wE,[v(l(kt),{variant:"outline",class:_e(T(ae.format))},{default:y(()=>[G(O(ae.format),1)]),_:2},1032,["class"]),ae.stream?(x(),R(l(kt),{key:0,variant:"muted",class:"text-[10px]"},{default:y(()=>[G(O(l(t)("logs.stream")),1)]),_:1})):xe("",!0)])]),_:2},1024),v(l(Kt),{class:"text-right font-mono text-xs text-muted-foreground"},{default:y(()=>[G(O(w(ae.ms)),1)]),_:2},1024),v(l(Kt),{class:"text-right"},{default:y(()=>[v(l(kt),{variant:b(ae.status),class:"font-mono"},{default:y(()=>[G(O(ae.status),1)]),_:2},1032,["variant"])]),_:2},1024)]),_:2},1032,["onClick"]),I(ae)?(x(),R(l(ao),{key:0,class:"hover:bg-transparent"},{default:y(()=>[v(l(Kt),{colspan:"7",class:"bg-muted/30"},{default:y(()=>[S("dl",xE,[S("dt",kE,O(l(t)("logs.detail.time")),1),S("dd",SE,O($(ae.ts)),1),S("dt",CE,O(l(t)("logs.detail.latency")),1),S("dd",AE,O(w(ae.ms)),1),S("dt",EE,O(l(t)("logs.detail.stream")),1),S("dd",null,O(ae.stream?l(t)("logs.detail.streamYes"):l(t)("logs.detail.streamNo")),1),S("dt",OE,O(l(t)("logs.detail.error")),1),S("dd",PE,O(ae.error||l(t)("logs.detail.errorNone")),1)])]),_:2},1024)]),_:2},1024)):xe("",!0)],64))],64))),128))]),_:1})]),_:1})])):(x(),Z("p",pE,O(l(t)("logs.noMatch")),1)):(x(),Z("p",fE,O(l(t)("logs.empty")),1))]),_:1})]),_:1}))}}),$E={key:0,class:"py-4 text-center text-xs text-muted-foreground"},IE={class:"flex items-center gap-1.5"},ME={class:"truncate font-mono text-xs"},LE={class:"flex items-center gap-2"},RE={class:"h-1.5 w-full max-w-[120px] overflow-hidden rounded-full bg-muted"},DE={class:"font-mono text-xs tabular-nums"},kl=Q({__name:"StatsBreakdown",props:{title:{},buckets:{},max:{},kind:{}},setup(e){const{t}=Ht();function n(r){return r<1e3?`${r}ms`:`${(r/1e3).toFixed(1)}s`}function s(r,a){return a?Math.round(r/a*100):0}function o(r){var a;return(a=Wt[r])==null?void 0:a.solid}return(r,a)=>(x(),R(l(pn),null,{default:y(()=>[v(l(In),{class:"pb-2"},{default:y(()=>[v(l(Mn),{class:"text-sm"},{default:y(()=>[G(O(e.title),1)]),_:1})]),_:1}),v(l(mn),null,{default:y(()=>[e.buckets.length?(x(),R(l(km),{key:1},{default:y(()=>[v(l(Sm),null,{default:y(()=>[v(l(ao),null,{default:y(()=>[v(l(on),null,{default:y(()=>[G(O(l(t)("stats.col.name")),1)]),_:1}),v(l(on),{class:"w-1/3"},{default:y(()=>[G(O(l(t)("stats.col.calls")),1)]),_:1}),v(l(on),{class:"text-right"},{default:y(()=>[G(O(l(t)("stats.col.success")),1)]),_:1}),v(l(on),{class:"text-right"},{default:y(()=>[G(O(l(t)("stats.col.error")),1)]),_:1}),v(l(on),{class:"text-right"},{default:y(()=>[G(O(l(t)("stats.col.avgLatency")),1)]),_:1})]),_:1})]),_:1}),v(l(Cm),null,{default:y(()=>[(x(!0),Z(Ce,null,at(e.buckets,i=>(x(),R(l(ao),{key:i.key},{default:y(()=>[v(l(Kt),{class:"py-1.5"},{default:y(()=>[S("div",IE,[e.kind==="format"&&o(i.key)?(x(),Z("span",{key:0,class:_e(["h-2 w-2 shrink-0 rounded-full",o(i.key)])},null,2)):e.kind==="provider"&&i.id?(x(),Z("span",{key:1,class:_e(["h-2 w-2 shrink-0 rounded-full",l(Yl)(i.id).solid])},null,2)):xe("",!0),S("span",ME,O(i.key),1)])]),_:2},1024),v(l(Kt),{class:"py-1.5"},{default:y(()=>[S("div",LE,[S("div",RE,[S("div",{class:"h-full rounded-full bg-primary/50",style:hn({width:s(i.calls,e.max)+"%"})},null,4)]),S("span",DE,O(i.calls),1)])]),_:2},1024),v(l(Kt),{class:"py-1.5 text-right font-mono text-xs text-emerald-600 dark:text-emerald-400"},{default:y(()=>[G(O(i.success),1)]),_:2},1024),v(l(Kt),{class:_e(["py-1.5 text-right font-mono text-xs",i.error?"text-destructive":"text-muted-foreground"])},{default:y(()=>[G(O(i.error),1)]),_:2},1032,["class"]),v(l(Kt),{class:"py-1.5 text-right font-mono text-xs text-muted-foreground"},{default:y(()=>[G(O(n(i.avgMs)),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):(x(),Z("p",$E,O(l(t)("stats.empty")),1))]),_:1})]),_:1}))}}),FE={class:"flex flex-wrap items-center justify-between gap-2"},NE={class:"flex items-center gap-2"},qE={class:"inline-flex rounded-md border bg-muted/30 p-0.5"},BE=["onClick"],VE={class:"sr-only"},UE={key:0,class:"flex items-center justify-center gap-2 py-10 text-sm text-muted-foreground"},jE={key:1,class:"py-10 text-center text-sm text-muted-foreground"},HE={class:"grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-6"},WE={class:"rounded-lg border bg-muted/20 p-3"},KE={class:"text-xs text-muted-foreground"},zE={class:"mt-1 font-mono text-xl tabular-nums"},GE={class:"rounded-lg border bg-muted/20 p-3"},YE={class:"text-xs text-muted-foreground"},XE={class:"mt-1 font-mono text-xl tabular-nums text-emerald-600 dark:text-emerald-400"},JE={class:"rounded-lg border bg-muted/20 p-3"},QE={class:"text-xs text-muted-foreground"},ZE={class:"mt-1 font-mono text-xl tabular-nums text-destructive"},eO={class:"rounded-lg border bg-muted/20 p-3"},tO={class:"text-xs text-muted-foreground"},nO={class:"mt-1 font-mono text-xl tabular-nums"},sO={class:"rounded-lg border bg-muted/20 p-3"},oO={class:"text-xs text-muted-foreground"},rO={class:"mt-1 font-mono text-xl tabular-nums"},aO={class:"rounded-lg border bg-muted/20 p-3"},lO={class:"text-xs text-muted-foreground"},iO={class:"mt-1 font-mono text-xl tabular-nums"},uO={class:"mb-2 flex items-center justify-between gap-2"},cO={class:"text-sm font-medium"},dO={key:0,class:"text-[11px] text-muted-foreground"},fO={class:"font-mono tabular-nums text-foreground"},pO={class:"rounded-lg border p-3"},mO={class:"relative pt-9"},hO={class:"flex h-40 gap-px"},gO={class:"pointer-events-none absolute bottom-full left-1/2 z-20 mb-1 hidden -translate-x-1/2 whitespace-nowrap rounded-md border bg-background px-2 py-1 text-center text-xs shadow-md group-hover:block"},vO={class:"font-medium"},yO={class:"font-mono tabular-nums"},bO={class:"text-[10px]"},_O={class:"text-emerald-600 dark:text-emerald-400"},wO={class:"text-destructive"},xO={class:"mt-1.5 flex justify-between text-[10px] text-muted-foreground"},kO={class:"grid gap-4 lg:grid-cols-2"},SO={class:"lg:col-span-2"},cd=160,CO=Q({__name:"Stats",setup(e){const{t}=Ht(),n=[{v:"24h",key:"h24"},{v:"7d",key:"d7"},{v:"30d",key:"d30"},{v:"90d",key:"d90"},{v:"all",key:"all"}],s=F(localStorage.getItem("myapikey.stats.range")||"7d");n.some(g=>g.v===s.value)||(s.value="7d"),Fe(s,g=>{try{localStorage.setItem("myapikey.stats.range",g)}catch{}});const o=F(null),r=F(!1);async function a(){r.value=!0;try{o.value=await Ve("GET",`/admin/stats?range=${s.value}`)}catch{o.value=null}finally{r.value=!1}}Fe(s,a),ct(a);function i(g){return g<1e3?`${g}ms`:`${(g/1e3).toFixed(1)}s`}function u(g){if(!g)return"0%";const _=Math.round(g*1e3)/10;return(_%1===0?_.toFixed(0):_.toFixed(1))+"%"}function c(g){const[_,k,h]=g.split("-").map(Number);return new Date(_,k-1,h).toLocaleDateString(void 0,{month:"short",day:"numeric"})}const d=ee(()=>{var g;return((g=o.value)==null?void 0:g.byDay.reduce((_,k)=>Math.max(_,k.calls),0))??0});function f(g){const _=d.value||1,k=g.calls/_*cd,h=g.error/_*cd;return{success:Math.max(0,Math.round(k-h)),error:Math.round(h)}}function p(g){return g.reduce((_,k)=>Math.max(_,k.calls),0)||1}const m=ee(()=>!!o.value&&o.value.totals.calls>0);return(g,_)=>(x(),R(l(pn),null,{default:y(()=>[v(l(In),null,{default:y(()=>[S("div",FE,[v(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(l(gm),{class:"h-4 w-4 text-primary"}),G(" "+O(l(t)("stats.title")),1)]),_:1}),S("div",NE,[S("div",qE,[(x(),Z(Ce,null,at(n,k=>S("button",{key:k.v,type:"button",class:_e(["rounded-sm px-2.5 py-1 text-xs transition-colors",s.value===k.v?"bg-background font-medium shadow-sm":"text-muted-foreground hover:text-foreground"]),onClick:h=>s.value=k.v},O(l(t)(`stats.ranges.${k.key}`)),11,BE)),64))]),v(l(Pe),{variant:"outline",size:"sm",disabled:r.value,onClick:a},{default:y(()=>[r.value?(x(),R(l(Ct),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),R(l(ur),{key:1,class:"h-3.5 w-3.5"})),S("span",VE,O(l(t)("stats.refresh")),1)]),_:1},8,["disabled"])])]),v(l(vs),null,{default:y(()=>[G(O(l(t)("stats.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-5"},{default:y(()=>[r.value&&!o.value?(x(),Z("div",UE,[v(l(Ct),{class:"h-4 w-4 animate-spin"}),G(" "+O(l(t)("stats.loading")),1)])):m.value?o.value?(x(),Z(Ce,{key:2},[S("div",HE,[S("div",WE,[S("div",KE,O(l(t)("stats.totals.calls")),1),S("div",zE,O(o.value.totals.calls),1)]),S("div",GE,[S("div",YE,O(l(t)("stats.totals.success")),1),S("div",XE,O(o.value.totals.success),1)]),S("div",JE,[S("div",QE,O(l(t)("stats.totals.error")),1),S("div",ZE,O(o.value.totals.error),1)]),S("div",eO,[S("div",tO,O(l(t)("stats.totals.errorRate")),1),S("div",nO,O(u(o.value.totals.errorRate)),1)]),S("div",sO,[S("div",oO,O(l(t)("stats.totals.avgLatency")),1),S("div",rO,O(i(o.value.totals.avgMs)),1)]),S("div",aO,[S("div",lO,O(l(t)("stats.totals.p95")),1),S("div",iO,O(i(o.value.totals.p95Ms)),1)])]),S("div",null,[S("div",uO,[S("div",cO,O(l(t)("stats.byDay")),1),d.value?(x(),Z("div",dO,[G(O(l(t)("stats.peak"))+" ",1),S("span",fO,O(d.value),1)])):xe("",!0)]),S("div",pO,[S("div",mO,[S("div",hO,[(x(!0),Z(Ce,null,at(o.value.byDay,k=>(x(),Z("div",{key:k.day,class:"group relative flex min-w-0 flex-1 cursor-default flex-col justify-end"},[S("div",{style:hn({height:f(k).success+"px"}),class:"w-full rounded-t-sm bg-emerald-500/70 transition-colors group-hover:bg-emerald-500"},null,4),S("div",{style:hn({height:f(k).error+"px"}),class:_e(["w-full transition-colors group-hover:bg-destructive",f(k).error?"bg-destructive/70":""])},null,6),S("div",gO,[S("div",vO,O(c(k.day)),1),S("div",yO,O(k.calls)+" "+O(l(t)("stats.callsAxis")),1),S("div",bO,[S("span",_O,O(k.success),1),_[0]||(_[0]=S("span",{class:"text-muted-foreground"}," / ",-1)),S("span",wO,O(k.error),1)])])]))),128))])]),S("div",xO,[S("span",null,O(o.value.byDay.length?c(o.value.byDay[0].day):""),1),S("span",null,O(o.value.byDay.length?c(o.value.byDay[o.value.byDay.length-1].day):""),1)])])]),S("div",kO,[S("div",SO,[v(kl,{title:l(t)("stats.byModel"),buckets:o.value.byModel,max:p(o.value.byModel),kind:"model"},null,8,["title","buckets","max"])]),v(kl,{title:l(t)("stats.byProvider"),buckets:o.value.byProvider,max:p(o.value.byProvider),kind:"provider"},null,8,["title","buckets","max"]),v(kl,{title:l(t)("stats.byFormat"),buckets:o.value.byFormat,max:p(o.value.byFormat),kind:"format"},null,8,["title","buckets","max"])])],64)):xe("",!0):(x(),Z("div",jE,O(l(t)("stats.empty")),1))]),_:1})]),_:1}))}});async function Am(e){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(e),!0}catch{}try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();const n=document.execCommand("copy");return document.body.removeChild(t),n}catch{return!1}}const AO={class:"space-y-4"},EO={class:"space-y-2"},OO={class:"min-w-0"},PO={class:"mt-0.5 truncate font-mono text-sm"},TO={class:"min-w-0"},$O={class:"mt-0.5 truncate font-mono text-sm"},IO={class:"text-xs text-muted-foreground"},MO={class:"flex items-center justify-between gap-3 rounded-lg border border-primary/40 bg-primary/5 p-3"},LO={class:"min-w-0"},RO={class:"text-xs font-medium text-primary"},DO={class:"truncate font-mono text-sm"},FO={class:"flex items-center gap-1"},NO={class:"overflow-x-auto rounded-md border bg-muted/40 p-3 font-mono text-xs leading-relaxed"},qO=Q({__name:"Connect",setup(e){const{t}=Ht(),n={openai:"openai",anthropic:"anthropic",responses:"responses",curl:null};function s(m){const g=n[m];return g?Wt[g]:null}const o=F(null),r=F(null),a=F(""),i=F(!1),u=ee(()=>{const m=window.location.hostname;if((m==="localhost"||m==="127.0.0.1")&&r.value){const g=window.location.port;return`${window.location.protocol}//${r.value}${g?":"+g:""}`}return window.location.origin}),c=ee(()=>`${u.value}/v1`);async function d(){o.value=(await Ve("GET","/admin/api-key")).apiKey,r.value=(await Ve("GET","/admin/connection")).lanIp}async function f(m,g){await Am(g)?(a.value=m,setTimeout(()=>{a.value===m&&(a.value="")},1500)):$e(t("connect.copyFailed"),"error")}const p=ee(()=>[{key:"openai",title:t("connect.openaiTitle"),text:`export OPENAI_BASE_URL=${c.value}
278
+ export OPENAI_API_KEY=${o.value??""}`},{key:"anthropic",title:t("connect.anthropicTitle"),text:`export ANTHROPIC_BASE_URL=${u.value}
279
+ export ANTHROPIC_API_KEY=${o.value??""}`},{key:"curl",title:t("connect.curlTitle"),text:`curl ${c.value}/chat/completions \\
280
+ -H "Authorization: Bearer ${o.value??""}" \\
281
+ -H "Content-Type: application/json" \\
282
+ -d '{"model":"<model>","messages":[{"role":"user","content":"hi"}]}'`},{key:"responses",title:t("connect.responsesTitle"),text:`curl ${c.value}/responses \\
283
+ -H "Authorization: Bearer ${o.value??""}" \\
284
+ -H "Content-Type: application/json" \\
285
+ -d '{"model":"<model>","input":"hi"}'`}]);return ct(d),(m,g)=>(x(),Z("div",AO,[v(l(pn),null,{default:y(()=>[v(l(In),null,{default:y(()=>[v(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(l(wm),{class:"h-4 w-4 text-primary"}),G(" "+O(l(t)("connect.title")),1)]),_:1}),v(l(vs),null,{default:y(()=>[G(O(l(t)("connect.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-3"},{default:y(()=>[S("div",EO,[S("div",{class:_e(["flex items-center justify-between gap-3 rounded-lg border p-3",[l(Wt).openai.border,l(Wt).openai.soft]])},[S("div",OO,[S("div",{class:_e(["flex items-center gap-1.5 text-xs font-medium",l(Wt).openai.text])},[S("span",{class:_e(["h-1.5 w-1.5 rounded-full",l(Wt).openai.solid])},null,2),G(" "+O(l(t)("connect.baseUrlOpenai")),1)],2),S("div",PO,O(c.value),1)]),v(l(Pe),{variant:"outline",size:"sm",onClick:g[0]||(g[0]=_=>f("url-openai",c.value))},{default:y(()=>[a.value==="url-openai"?(x(),R(l(Yn),{key:0,class:"h-4 w-4"})):(x(),R(l(Bs),{key:1,class:"h-4 w-4"})),G(" "+O(a.value==="url-openai"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})],2),S("div",{class:_e(["flex items-center justify-between gap-3 rounded-lg border p-3",[l(Wt).anthropic.border,l(Wt).anthropic.soft]])},[S("div",TO,[S("div",{class:_e(["flex items-center gap-1.5 text-xs font-medium",l(Wt).anthropic.text])},[S("span",{class:_e(["h-1.5 w-1.5 rounded-full",l(Wt).anthropic.solid])},null,2),G(" "+O(l(t)("connect.baseUrlAnthropic")),1)],2),S("div",$O,O(u.value),1)]),v(l(Pe),{variant:"outline",size:"sm",onClick:g[1]||(g[1]=_=>f("url-anthropic",u.value))},{default:y(()=>[a.value==="url-anthropic"?(x(),R(l(Yn),{key:0,class:"h-4 w-4"})):(x(),R(l(Bs),{key:1,class:"h-4 w-4"})),G(" "+O(a.value==="url-anthropic"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})],2)]),S("p",IO,O(l(t)("connect.note")),1),S("div",MO,[S("div",LO,[S("div",RO,O(l(t)("connect.apiKey")),1),S("div",DO,O(o.value?i.value?o.value:"•".repeat(Math.min(o.value.length,24)):"…"),1)]),S("div",FO,[v(l(Pe),{variant:"ghost",size:"icon",title:i.value?l(t)("connect.hide"):l(t)("connect.reveal"),"aria-label":i.value?l(t)("connect.hide"):l(t)("connect.reveal"),onClick:g[2]||(g[2]=_=>i.value=!i.value)},{default:y(()=>[i.value?(x(),R(l(ia),{key:0,class:"h-4 w-4"})):(x(),R(l(ua),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),v(l(Pe),{variant:"outline",size:"sm",onClick:g[3]||(g[3]=_=>f("key",o.value??""))},{default:y(()=>[a.value==="key"?(x(),R(l(Yn),{key:0,class:"h-4 w-4"})):(x(),R(l(Bs),{key:1,class:"h-4 w-4"})),G(" "+O(a.value==="key"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})])])]),_:1})]),_:1}),(x(!0),Z(Ce,null,at(p.value,_=>(x(),R(l(pn),{key:_.key},{default:y(()=>[v(l(In),{class:"flex flex-row items-center justify-between space-y-0"},{default:y(()=>[v(l(Mn),{class:"flex items-center gap-2 text-sm font-medium"},{default:y(()=>{var k;return[s(_.key)?(x(),Z("span",{key:0,class:_e(["h-1.5 w-1.5 rounded-full",(k=s(_.key))==null?void 0:k.solid])},null,2)):xe("",!0),G(" "+O(_.title),1)]}),_:2},1024),v(l(Pe),{variant:"ghost",size:"sm",onClick:k=>f(_.key,_.text)},{default:y(()=>[a.value===_.key?(x(),R(l(Yn),{key:0,class:"h-4 w-4"})):(x(),R(l(Bs),{key:1,class:"h-4 w-4"})),G(" "+O(a.value===_.key?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:2},1032,["onClick"])]),_:2},1024),v(l(mn),null,{default:y(()=>[S("pre",NO,O(_.text),1)]),_:2},1024)]),_:2},1024))),128))]))}}),BO=["for"],Fs=Q({__name:"Label",props:{class:{type:[Boolean,null,String,Object,Array]},for:{}},setup(e){const t=e;return(n,s)=>(x(),Z("label",{for:t.for,class:_e(l(Ge)("text-sm font-medium leading-none text-foreground",t.class))},[ue(n.$slots,"default")],10,BO))}}),VO={class:"max-w-xl space-y-4"},UO={class:"space-y-1.5"},jO={class:"flex items-center justify-between gap-3 rounded-lg border p-3"},HO={class:"min-w-0 truncate font-mono text-sm"},WO={class:"flex items-center gap-1"},KO={class:"space-y-3"},zO={class:"space-y-1.5"},GO={class:"space-y-1.5"},YO={class:"space-y-1.5"},XO={key:0,class:"text-sm text-destructive"},JO={class:"flex justify-end"},QO={class:"flex items-center justify-between gap-3 rounded-lg border border-primary/40 bg-primary/5 p-3"},ZO={class:"min-w-0 truncate font-mono text-sm"},eP={class:"flex items-center gap-1"},tP={class:"flex justify-end"},nP={class:"flex items-center justify-between gap-3 rounded-lg border p-3"},sP={class:"min-w-0 truncate font-mono text-sm"},oP=Q({__name:"Settings",setup(e){const{t}=Ht(),n=F(null),s=F(""),o=F(""),r=F(""),a=F(!1),i=F(!1),u=F(""),c=F(null),d=F(!1),f=F(!1),p=F(!1),m=F(null),g=F(""),_=ee(()=>{var $;return(($=n.value)==null?void 0:$.password)??""}),k=ee(()=>{const $=m.value;return $?[{key:"datadir",label:t("settings.storage.dataDir"),value:$.dataDir},{key:"datafile",label:t("settings.storage.dataFile"),value:$.dataFile},{key:"logsfile",label:t("settings.storage.logsFile"),value:$.logsFile}]:[]});async function h(){try{const[$,A,I]=await Promise.all([Ve("GET","/admin/account"),Ve("GET","/admin/api-key"),Ve("GET","/admin/storage")]);n.value=$,s.value=$.username,c.value=A.apiKey,m.value=I}catch($){$e($.message,"error")}}async function b($,A){await Am(A)?(g.value=$,setTimeout(()=>{g.value===$&&(g.value="")},1500)):$e(t("connect.copyFailed"),"error")}function T(){if(!s.value.trim())return t("settings.errUserShort");if(o.value){if(o.value.length<8)return t("settings.errPassShort");if(o.value!==r.value)return t("settings.errPassMismatch")}return null}async function w(){var I,N;if(i.value)return;u.value="";const $=T();if($){u.value=$;return}i.value=!0;const A={username:s.value.trim()};o.value&&(A.password=o.value);try{await Ve("PUT","/admin/account",A);const z=o.value||((I=n.value)==null?void 0:I.password)||((N=ta())==null?void 0:N.pass)||"",X=s.value.trim();dp(X,z),n.value={username:X,password:z},o.value="",r.value="",$e(t("settings.saved"),"success")}catch(z){u.value=z.message}finally{i.value=!1}}async function L(){if(!f.value){f.value=!0;try{const $=await Ve("POST","/admin/api-key/rotate");c.value=$.apiKey,$e(t("settings.apikey.rotated"),"success"),p.value=!1}catch($){$e($.message,"error")}finally{f.value=!1}}}return ct(h),($,A)=>(x(),Z("div",VO,[v(l(pn),null,{default:y(()=>[v(l(In),null,{default:y(()=>[v(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(l(Lk),{class:"h-4 w-4 text-primary"}),G(O(l(t)("settings.title")),1)]),_:1}),v(l(vs),null,{default:y(()=>[G(O(l(t)("settings.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-4"},{default:y(()=>[S("div",UO,[v(l(Fs),null,{default:y(()=>[G(O(l(t)("settings.loginPassword")),1)]),_:1}),S("div",jO,[S("div",HO,O(n.value?a.value?_.value:"•".repeat(Math.min(_.value.length,24)):"…"),1),S("div",WO,[v(l(Pe),{variant:"ghost",size:"icon",title:a.value?l(t)("connect.hide"):l(t)("connect.reveal"),"aria-label":a.value?l(t)("connect.hide"):l(t)("connect.reveal"),onClick:A[0]||(A[0]=I=>a.value=!a.value)},{default:y(()=>[a.value?(x(),R(l(ia),{key:0,class:"h-4 w-4"})):(x(),R(l(ua),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),v(l(Pe),{variant:"outline",size:"sm",onClick:A[1]||(A[1]=I=>b("pass",_.value))},{default:y(()=>[g.value==="pass"?(x(),R(l(Yn),{key:0,class:"h-4 w-4"})):(x(),R(l(Bs),{key:1,class:"h-4 w-4"})),G(" "+O(g.value==="pass"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})])])]),S("div",KO,[S("div",zO,[v(l(Fs),{for:"username"},{default:y(()=>[G(O(l(t)("settings.username")),1)]),_:1}),v(l(_t),{id:"username",modelValue:s.value,"onUpdate:modelValue":A[2]||(A[2]=I=>s.value=I),autocomplete:"username"},null,8,["modelValue"])]),S("div",GO,[v(l(Fs),{for:"newpass"},{default:y(()=>[G(O(l(t)("settings.newPassword")),1)]),_:1}),v(l(_t),{id:"newpass",modelValue:o.value,"onUpdate:modelValue":A[3]||(A[3]=I=>o.value=I),type:"password",placeholder:l(t)("settings.newPasswordPh"),autocomplete:"new-password"},null,8,["modelValue","placeholder"])]),S("div",YO,[v(l(Fs),{for:"confirmpass"},{default:y(()=>[G(O(l(t)("settings.confirmPassword")),1)]),_:1}),v(l(_t),{id:"confirmpass",modelValue:r.value,"onUpdate:modelValue":A[4]||(A[4]=I=>r.value=I),type:"password",placeholder:l(t)("settings.confirmPh"),autocomplete:"new-password"},null,8,["modelValue","placeholder"])]),u.value?(x(),Z("p",XO,O(u.value),1)):xe("",!0),S("div",JO,[v(l(Pe),{disabled:i.value,onClick:w},{default:y(()=>[i.value?(x(),R(l(Ct),{key:0,class:"h-4 w-4 animate-spin"})):xe("",!0),G(" "+O(i.value?l(t)("settings.saving"):l(t)("settings.save")),1)]),_:1},8,["disabled"])])])]),_:1})]),_:1}),v(l(pn),null,{default:y(()=>[v(l(In),null,{default:y(()=>[v(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(l(xk),{class:"h-4 w-4 text-primary"}),G(O(l(t)("settings.apikey.title")),1)]),_:1}),v(l(vs),null,{default:y(()=>[G(O(l(t)("settings.apikey.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-3"},{default:y(()=>[S("div",QO,[S("div",ZO,O(c.value?d.value?c.value:"•".repeat(Math.min(c.value.length,24)):"…"),1),S("div",eP,[v(l(Pe),{variant:"ghost",size:"icon",title:d.value?l(t)("connect.hide"):l(t)("connect.reveal"),"aria-label":d.value?l(t)("connect.hide"):l(t)("connect.reveal"),onClick:A[5]||(A[5]=I=>d.value=!d.value)},{default:y(()=>[d.value?(x(),R(l(ia),{key:0,class:"h-4 w-4"})):(x(),R(l(ua),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),v(l(Pe),{variant:"outline",size:"sm",onClick:A[6]||(A[6]=I=>b("apikey",c.value??""))},{default:y(()=>[g.value==="apikey"?(x(),R(l(Yn),{key:0,class:"h-4 w-4"})):(x(),R(l(Bs),{key:1,class:"h-4 w-4"})),G(" "+O(g.value==="apikey"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})])]),S("div",tP,[v(l(Pe),{variant:"outline",disabled:f.value,onClick:A[7]||(A[7]=I=>p.value=!0)},{default:y(()=>[v(l(Tk),{class:"h-4 w-4"}),G(" "+O(l(t)("settings.apikey.rotate")),1)]),_:1},8,["disabled"])])]),_:1})]),_:1}),v(l(pn),null,{default:y(()=>[v(l(In),null,{default:y(()=>[v(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(l(wk),{class:"h-4 w-4 text-primary"}),G(O(l(t)("settings.storage.title")),1)]),_:1}),v(l(vs),null,{default:y(()=>[G(O(l(t)("settings.storage.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-3"},{default:y(()=>[(x(!0),Z(Ce,null,at(k.value,I=>(x(),Z("div",{key:I.key,class:"space-y-1.5"},[v(l(Fs),null,{default:y(()=>[G(O(I.label),1)]),_:2},1024),S("div",nP,[S("div",sP,O(I.value),1),v(l(Pe),{variant:"outline",size:"sm",onClick:N=>b(I.key,I.value)},{default:y(()=>[g.value===I.key?(x(),R(l(Yn),{key:0,class:"h-4 w-4"})):(x(),R(l(Bs),{key:1,class:"h-4 w-4"})),G(" "+O(g.value===I.key?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:2},1032,["onClick"])])]))),128))]),_:1})]),_:1}),v(cu,{open:p.value,"onUpdate:open":A[8]||(A[8]=I=>p.value=I),variant:"destructive",title:l(t)("settings.apikey.rotateTitle"),description:l(t)("settings.apikey.rotateDesc"),"confirm-text":l(t)("settings.apikey.rotateConfirm"),loading:f.value,onConfirm:L},null,8,["open","title","description","confirm-text","loading"])]))}}),rP=["width","height"],dd=Q({__name:"Logo",props:{size:{default:28}},setup(e){return(t,n)=>(x(),Z("svg",{width:e.size,height:e.size,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"MyAPIKey"},[...n[0]||(n[0]=[hg('<defs><linearGradient id="myapikey-logo" x1="0" y1="0" x2="40" y2="40" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#f59e0b"></stop><stop offset="0.33" stop-color="#f97316"></stop><stop offset="0.67" stop-color="#ef4444"></stop><stop offset="1" stop-color="#ec4899"></stop></linearGradient></defs><rect width="40" height="40" rx="10" fill="url(#myapikey-logo)"></rect><g stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="14" cy="16.5" r="4.6"></circle><path d="M19.6 16.5 H31.5 M26.5 16.5 V20.8 M31.5 16.5 V19.5"></path></g><path d="M6 28 Q9.5 25 13 28 T20 28 T27 28 T34 28" stroke="#fff" stroke-width="2.8" stroke-linecap="round" opacity="0.9"></path>',4)])],8,rP))}}),aP=Q({__name:"Tabs",props:{class:{type:[Boolean,null,String,Object,Array]},defaultValue:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t;return(o,r)=>(x(),R(l(ak),{"default-value":n.defaultValue,"model-value":n.modelValue,"onUpdate:modelValue":r[0]||(r[0]=a=>s("update:modelValue",a)),class:_e(l(Ge)(n.class))},{default:y(()=>[ue(o.$slots,"default")]),_:3},8,["default-value","model-value","class"]))}}),lP=Q({__name:"TabsList",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),R(l(ck),{class:_e(l(Ge)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t.class))},{default:y(()=>[ue(n.$slots,"default")]),_:3},8,["class"]))}}),$o=Q({__name:"TabsTrigger",props:{value:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),R(l(fk),{value:t.value,class:_e(l(Ge)("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t.class))},{default:y(()=>[ue(n.$slots,"default")]),_:3},8,["value","class"]))}}),Io=Q({__name:"TabsContent",props:{value:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),R(l(ik),{value:t.value,tabindex:"-1",class:_e(l(Ge)("mt-4 ring-offset-background focus-visible:outline-none",t.class))},{default:y(()=>[ue(n.$slots,"default")]),_:3},8,["value","class"]))}}),iP={class:"pointer-events-none fixed inset-x-0 bottom-0 z-50 flex flex-col items-center gap-2 p-4 sm:items-end"},uP={class:"flex-1 text-sm"},cP=["aria-label","onClick"],dP=Q({__name:"Toaster",setup(e){const{t}=Ht(),n=Pb(),s={success:bk,error:yk,default:bm};return(o,r)=>(x(),R(Ai,{to:"body"},[S("div",iP,[v(Zg,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","leave-active-class":"transition duration-150 ease-in absolute","leave-to-class":"opacity-0 translate-y-2 sm:translate-y-0 sm:translate-x-2"},{default:y(()=>[(x(!0),Z(Ce,null,at(l(n),a=>(x(),Z("div",{key:a.id,class:_e(["pointer-events-auto flex w-full max-w-sm items-start gap-2.5 rounded-lg border p-3 shadow-lg backdrop-blur",a.variant==="error"?"border-destructive/40 bg-destructive/10 text-destructive":a.variant==="success"?"border-emerald-500/40 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400":"border-border bg-popover/95 text-popover-foreground"]),role:"status","aria-live":"polite"},[(x(),R(pr(s[a.variant]),{class:"mt-0.5 h-4 w-4 shrink-0"})),S("p",uP,O(a.message),1),S("button",{class:"shrink-0 rounded-sm opacity-60 transition-opacity hover:opacity-100","aria-label":l(t)("common.dismiss"),onClick:i=>l(mp)(a.id)},[v(l(uu),{class:"h-4 w-4"})],8,cP)],2))),128))]),_:1})])]))}}),fP={key:0,class:"flex min-h-screen items-center justify-center text-muted-foreground"},pP={key:1,class:"flex min-h-screen items-center justify-center p-4"},mP={class:"space-y-1.5"},hP={class:"space-y-1.5"},gP={class:"relative"},vP={key:0,class:"text-sm text-destructive"},yP={key:2,class:"min-h-screen"},bP={class:"sticky top-0 z-10 border-b bg-background/80 backdrop-blur"},_P={class:"mx-auto flex h-14 max-w-5xl items-center justify-between px-4"},wP={class:"flex items-center gap-2 font-semibold tracking-tight"},xP={class:"flex items-center gap-1"},kP={class:"mx-auto max-w-5xl px-4 py-6"},SP=Q({__name:"App",setup(e){const{t,locale:n}=Ht(),s=F(!1),o=F(""),r=F(""),a=F(""),i=F(!0),u=F(!1),c=F(!1),d=F(!0);function f(h){d.value=h,document.documentElement.classList.toggle("dark",h),localStorage.setItem("myapikey.theme",h?"dark":"light")}function p(){f(!d.value)}function m(){Eb(n.value==="zh"?"en":"zh")}const g=ee(()=>n.value==="zh"?"English":"中文");async function _(){if(!u.value){a.value="",u.value=!0,dp(o.value,r.value);try{await Ve("GET","/admin/providers"),s.value=!0}catch(h){const b=h.message;a.value=/fetch|network/i.test(b)?t("login.errNetwork"):t("login.errInvalid"),cl()}finally{u.value=!1}}}function k(){cl(),s.value=!1,o.value="",r.value=""}return ct(async()=>{const h=localStorage.getItem("myapikey.theme");if(f(h?h==="dark":!0),ta())try{await Ve("GET","/admin/providers"),s.value=!0,o.value=ta().user}catch{cl()}i.value=!1}),(h,b)=>(x(),Z(Ce,null,[i.value?(x(),Z("div",fP,O(l(t)("app.connecting")),1)):s.value?(x(),Z("div",yP,[S("header",bP,[S("div",_P,[S("div",wP,[v(dd,{size:26}),b[4]||(b[4]=G(" MyAPIKey ",-1))]),S("div",xP,[v(l(Pe),{variant:"ghost",size:"sm",title:g.value,onClick:m},{default:y(()=>[v(l(kk),{class:"h-4 w-4"}),G(O(g.value),1)]),_:1},8,["title"]),v(l(Pe),{variant:"ghost",size:"icon",title:d.value?l(t)("app.toLight"):l(t)("app.toDark"),onClick:p},{default:y(()=>[d.value?(x(),R(l(Ik),{key:0,class:"h-4 w-4"})):(x(),R(l(Ck),{key:1,class:"h-4 w-4"}))]),_:1},8,["title"]),v(l(Pe),{variant:"ghost",size:"sm",onClick:k},{default:y(()=>[v(l(Sk),{class:"h-4 w-4"}),G(O(l(t)("app.signOut")),1)]),_:1})])])]),S("main",kP,[v(l(aP),{"default-value":"connect"},{default:y(()=>[v(l(lP),{class:"mb-2"},{default:y(()=>[v(l($o),{value:"connect"},{default:y(()=>[v(l(wm),{class:"h-4 w-4"}),G(O(l(t)("nav.connect")),1)]),_:1}),v(l($o),{value:"models"},{default:y(()=>[v(l(ym),{class:"h-4 w-4"}),G(O(l(t)("nav.models")),1)]),_:1}),v(l($o),{value:"logs"},{default:y(()=>[v(l(hm),{class:"h-4 w-4"}),G(O(l(t)("nav.logs")),1)]),_:1}),v(l($o),{value:"stats"},{default:y(()=>[v(l(gm),{class:"h-4 w-4"}),G(O(l(t)("nav.stats")),1)]),_:1}),v(l($o),{value:"settings"},{default:y(()=>[v(l($k),{class:"h-4 w-4"}),G(O(l(t)("nav.settings")),1)]),_:1})]),_:1}),v(l(Io),{value:"connect"},{default:y(()=>[v(qO)]),_:1}),v(l(Io),{value:"models"},{default:y(()=>[v(MA)]),_:1}),v(l(Io),{value:"logs"},{default:y(()=>[v(TE)]),_:1}),v(l(Io),{value:"stats"},{default:y(()=>[v(CO)]),_:1}),v(l(Io),{value:"settings"},{default:y(()=>[v(oP)]),_:1})]),_:1})])])):(x(),Z("div",pP,[v(l(pn),{class:"w-full max-w-sm"},{default:y(()=>[v(l(In),{class:"space-y-3 text-center"},{default:y(()=>[v(dd,{size:44,class:"mx-auto"}),v(l(Mn),{class:"text-xl"},{default:y(()=>[...b[3]||(b[3]=[G("MyAPIKey",-1)])]),_:1}),v(l(vs),null,{default:y(()=>[G(O(l(t)("login.subtitle")),1)]),_:1})]),_:1}),v(l(mn),null,{default:y(()=>[S("form",{class:"space-y-3",onSubmit:ln(_,["prevent"])},[S("div",mP,[v(l(Fs),{for:"u"},{default:y(()=>[G(O(l(t)("login.username")),1)]),_:1}),v(l(_t),{id:"u",modelValue:o.value,"onUpdate:modelValue":b[0]||(b[0]=T=>o.value=T),autocomplete:"username",autofocus:""},null,8,["modelValue"])]),S("div",hP,[v(l(Fs),{for:"p"},{default:y(()=>[G(O(l(t)("login.password")),1)]),_:1}),S("div",gP,[v(l(_t),{id:"p",modelValue:r.value,"onUpdate:modelValue":b[1]||(b[1]=T=>r.value=T),type:c.value?"text":"password",autocomplete:"current-password",class:"pr-9"},null,8,["modelValue","type"]),v(l(Pe),{type:"button",variant:"ghost",size:"icon",class:"absolute right-1 top-1 h-7 w-7 text-muted-foreground",title:c.value?l(t)("connect.hide"):l(t)("connect.reveal"),"aria-label":c.value?l(t)("connect.hide"):l(t)("connect.reveal"),tabindex:"-1",onClick:b[2]||(b[2]=T=>c.value=!c.value)},{default:y(()=>[c.value?(x(),R(l(ia),{key:0,class:"h-4 w-4"})):(x(),R(l(ua),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"])])]),v(l(Pe),{type:"submit",class:"w-full",disabled:u.value},{default:y(()=>[u.value?(x(),R(l(Ct),{key:0,class:"h-4 w-4 animate-spin"})):xe("",!0),G(" "+O(u.value?l(t)("common.loading"):l(t)("login.signIn")),1)]),_:1},8,["disabled"]),a.value?(x(),Z("p",vP,O(a.value),1)):xe("",!0)],32)]),_:1})]),_:1})])),v(dP)],64))}});cv(SP).use(pp).mount("#app");