myapikey 0.2.0 → 0.3.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.
- package/package.json +1 -1
- package/packages/web/dist/assets/index-CCZx1TIp.js +290 -0
- package/packages/web/dist/assets/index-HG56nCKJ.css +1 -0
- package/packages/web/dist/index.html +2 -2
- package/packages/web/dist/assets/index-DbWj0oao.css +0 -1
- package/packages/web/dist/assets/index-Dihwbrfs.js +0 -290
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
var Su=e=>{throw TypeError(e)};var Jm=(e,t,n)=>t.has(e)||Su("Cannot "+n);var Eo=(e,t,n)=>(Jm(e,t,"read from private field"),n?n.call(e):t.get(e)),Cu=(e,t,n)=>t.has(e)?Su("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 xi(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const We={},fo=[],Tn=()=>{},kd=()=>!1,va=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ga=e=>e.startsWith("onUpdate:"),vt=Object.assign,ki=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Qm=Object.prototype.hasOwnProperty,et=(e,t)=>Qm.call(e,t),Se=Array.isArray,po=e=>mr(e)==="[object Map]",Sd=e=>mr(e)==="[object Set]",Au=e=>mr(e)==="[object Date]",Te=e=>typeof e=="function",it=e=>typeof e=="string",nn=e=>typeof e=="symbol",Je=e=>e!==null&&typeof e=="object",Cd=e=>(Je(e)||Te(e))&&Te(e.then)&&Te(e.catch),Ad=Object.prototype.toString,mr=e=>Ad.call(e),Zm=e=>mr(e).slice(8,-1),Ed=e=>mr(e)==="[object Object]",ya=e=>it(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Bo=xi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ba=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},eh=/-\w/g,Et=ba(e=>e.replace(eh,t=>t.slice(1).toUpperCase())),th=/\B([A-Z])/g,ls=ba(e=>e.replace(th,"-$1").toLowerCase()),_a=ba(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ur=ba(e=>e?`on${_a(e)}`:""),At=(e,t)=>!Object.is(e,t),Hr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Od=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Si=e=>{const t=parseFloat(e);return isNaN(t)?e:t},nh=e=>{const t=it(e)?Number(e):NaN;return isNaN(t)?e:t};let Eu;const wa=()=>Eu||(Eu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hn(e){if(Se(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=it(s)?ah(s):hn(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(it(e)||Je(e))return e}const sh=/;(?![^(]*\))/g,oh=/:([^]+)/,rh=/\/\*[^]*?\*\//g;function ah(e){const t={};return e.replace(rh,"").split(sh).forEach(n=>{if(n){const s=n.split(oh);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function xe(e){let t="";if(it(e))t=e;else if(Se(e))for(let n=0;n<e.length;n++){const s=xe(e[n]);s&&(t+=s+" ")}else if(Je(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ot(e){if(!e)return null;let{class:t,style:n}=e;return t&&!it(t)&&(e.class=xe(t)),n&&(e.style=hn(n)),e}const lh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ih=xi(lh);function Pd(e){return!!e||e===""}function uh(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Ci(e[s],t[s]);return n}function Ci(e,t){if(e===t)return!0;let n=Au(e),s=Au(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=nn(e),s=nn(t),n||s)return e===t;if(n=Se(e),s=Se(t),n||s)return n&&s?uh(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||!Ci(e[a],t[a]))return!1}}return String(e)===String(t)}const Td=e=>!!(e&&e.__v_isRef===!0),E=e=>it(e)?e:e==null?"":Se(e)||Je(e)&&(e.toString===Ad||!Te(e.toString))?Td(e)?E(e.value):JSON.stringify(e,$d,2):String(e),$d=(e,t)=>Td(t)?$d(e,t.value):po(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[nl(s,r)+" =>"]=o,n),{})}:Sd(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>nl(n))}:nn(t)?nl(t):Je(t)&&!Se(t)&&!Ed(t)?String(t):t,nl=(e,t="")=>{var n;return nn(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 St;class Id{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&&St&&(St.active?(this.parent=St,this.index=(St.scopes||(St.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=St;try{return St=this,t()}finally{St=n}}}on(){++this._on===1&&(this.prevScope=St,St=this)}off(){if(this._on>0&&--this._on===0){if(St===this)St=this.prevScope;else{let t=St;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 Ai(e){return new Id(e)}function xa(){return St}function Ei(e,t=!1){St&&St.cleanups.push(e)}let lt;const sl=new WeakSet;class Md{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,St&&(St.active?St.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,sl.has(this)&&(sl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ld(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ou(this),Dd(this);const t=lt,n=fn;lt=this,fn=!0;try{return this.fn()}finally{Nd(this),lt=t,fn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ti(t);this.deps=this.depsTail=void 0,Ou(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?sl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Tl(this)&&this.run()}get dirty(){return Tl(this)}}let Rd=0,Vo,Uo;function Ld(e,t=!1){if(e.flags|=8,t){e.next=Uo,Uo=e;return}e.next=Vo,Vo=e}function Oi(){Rd++}function Pi(){if(--Rd>0)return;if(Uo){let t=Uo;for(Uo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Vo;){let t=Vo;for(Vo=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 Dd(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Nd(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),Ti(s),ch(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Tl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Fd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Fd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Xo)||(e.globalVersion=Xo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Tl(e))))return;e.flags|=2;const t=e.dep,n=lt,s=fn;lt=e,fn=!0;try{Dd(e);const o=e.fn(e._value);(t.version===0||At(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{lt=n,fn=s,Nd(e),e.flags&=-3}}function Ti(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)Ti(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ch(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 qd=[];function ts(){qd.push(fn),fn=!1}function ns(){const e=qd.pop();fn=e===void 0?!0:e}function Ou(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=lt;lt=void 0;try{t()}finally{lt=n}}}let Xo=0;class dh{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 ka{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(!lt||!fn||lt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==lt)n=this.activeLink=new dh(lt,this),lt.deps?(n.prevDep=lt.depsTail,lt.depsTail.nextDep=n,lt.depsTail=n):lt.deps=lt.depsTail=n,Bd(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=lt.depsTail,n.nextDep=void 0,lt.depsTail.nextDep=n,lt.depsTail=n,lt.deps===n&&(lt.deps=s)}return n}trigger(t){this.version++,Xo++,this.notify(t)}notify(t){Oi();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Pi()}}}function Bd(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)Bd(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const zr=new WeakMap,Hs=Symbol(""),$l=Symbol(""),Jo=Symbol("");function Rt(e,t,n){if(fn&<){let s=zr.get(e);s||zr.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new ka),o.map=s,o.key=n),o.track()}}function Kn(e,t,n,s,o,r){const a=zr.get(e);if(!a){Xo++;return}const i=u=>{u&&u.trigger()};if(Oi(),t==="clear")a.forEach(i);else{const u=Se(e),c=u&&ya(n);if(u&&n==="length"){const d=Number(s);a.forEach((f,p)=>{(p==="length"||p===Jo||!nn(p)&&p>=d)&&i(f)})}else switch((n!==void 0||a.has(void 0))&&i(a.get(n)),c&&i(a.get(Jo)),t){case"add":u?c&&i(a.get("length")):(i(a.get(Hs)),po(e)&&i(a.get($l)));break;case"delete":u||(i(a.get(Hs)),po(e)&&i(a.get($l)));break;case"set":po(e)&&i(a.get(Hs));break}}Pi()}function fh(e,t){const n=zr.get(e);return n&&n.get(t)}function to(e){const t=je(e);return t===e?t:(Rt(t,"iterate",Jo),en(e)?t:t.map(vn))}function Sa(e){return Rt(e=je(e),"iterate",Jo),e}function En(e,t){return ss(e)?yo(js(e)?vn(t):t):vn(t)}const ph={__proto__:null,[Symbol.iterator](){return ol(this,Symbol.iterator,e=>En(this,e))},concat(...e){return to(this).concat(...e.map(t=>Se(t)?to(t):t))},entries(){return ol(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 rl(this,"includes",e)},indexOf(...e){return rl(this,"indexOf",e)},join(e){return to(this).join(e)},lastIndexOf(...e){return rl(this,"lastIndexOf",e)},map(e,t){return qn(this,"map",e,t,void 0,arguments)},pop(){return Oo(this,"pop")},push(...e){return Oo(this,"push",e)},reduce(e,...t){return Pu(this,"reduce",e,t)},reduceRight(e,...t){return Pu(this,"reduceRight",e,t)},shift(){return Oo(this,"shift")},some(e,t){return qn(this,"some",e,t,void 0,arguments)},splice(...e){return Oo(this,"splice",e)},toReversed(){return to(this).toReversed()},toSorted(e){return to(this).toSorted(e)},toSpliced(...e){return to(this).toSpliced(...e)},unshift(...e){return Oo(this,"unshift",e)},values(){return ol(this,"values",e=>En(this,e))}};function ol(e,t,n){const s=Sa(e),o=s[t]();return s!==e&&!en(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const mh=Array.prototype;function qn(e,t,n,s,o,r){const a=Sa(e),i=a!==e&&!en(e),u=a[t];if(u!==mh[t]){const f=u.apply(e,r);return i?vn(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 Pu(e,t,n,s){const o=Sa(e),r=o!==e&&!en(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 rl(e,t,n){const s=je(e);Rt(s,"iterate",Jo);const o=s[t](...n);return(o===-1||o===!1)&&Ea(n[0])?(n[0]=je(n[0]),s[t](...n)):o}function Oo(e,t,n=[]){ts(),Oi();const s=je(e)[t].apply(e,n);return Pi(),ns(),s}const hh=xi("__proto__,__v_isRef,__isVue"),Vd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(nn));function vh(e){nn(e)||(e=String(e));const t=je(this);return Rt(t,"has",e),t.hasOwnProperty(e)}class Ud{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?Gd:zd:r?Kd:Wd).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=Se(t);if(!o){let u;if(a&&(u=ph[n]))return u;if(n==="hasOwnProperty")return vh}const i=Reflect.get(t,n,pt(t)?t:s);if((nn(n)?Vd.has(n):hh(n))||(o||Rt(t,"get",n),r))return i;if(pt(i)){const u=a&&ya(n)?i:i.value;return o&&Je(u)?Ml(u):u}return Je(i)?o?Ml(i):Ks(i):i}}class Hd extends Ud{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];const a=Se(t)&&ya(n);if(!this._isShallow){const c=ss(r);if(!en(s)&&!ss(s)&&(r=je(r),s=je(s)),!a&&pt(r)&&!pt(s))return c||(r.value=s),!0}const i=a?Number(n)<t.length:et(t,n),u=Reflect.set(t,n,s,pt(t)?t:o);return t===je(o)&&u&&(i?At(s,r)&&Kn(t,"set",n,s):Kn(t,"add",n,s)),u}deleteProperty(t,n){const s=et(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Kn(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!nn(n)||!Vd.has(n))&&Rt(t,"has",n),s}ownKeys(t){return Rt(t,"iterate",Se(t)?"length":Hs),Reflect.ownKeys(t)}}class jd extends Ud{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const gh=new Hd,yh=new jd,bh=new Hd(!0),_h=new jd(!0),Il=e=>e,Or=e=>Reflect.getPrototypeOf(e);function wh(e,t,n){return function(...s){const o=this.__v_raw,r=je(o),a=po(r),i=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,c=o[e](...s),d=n?Il:t?yo:vn;return!t&&Rt(r,"iterate",u?$l:Hs),vt(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 Pr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xh(e,t){const n={get(o){const r=this.__v_raw,a=je(r),i=je(o);e||(At(o,i)&&Rt(a,"get",o),Rt(a,"get",i));const{has:u}=Or(a),c=t?Il:e?yo:vn;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&&Rt(je(o),"iterate",Hs),o.size},has(o){const r=this.__v_raw,a=je(r),i=je(o);return e||(At(o,i)&&Rt(a,"has",o),Rt(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=je(i),c=t?Il:e?yo:vn;return!e&&Rt(u,"iterate",Hs),i.forEach((d,f)=>o.call(r,c(d),c(f),a))}};return vt(n,e?{add:Pr("add"),set:Pr("set"),delete:Pr("delete"),clear:Pr("clear")}:{add(o){const r=je(this),a=Or(r),i=je(o),u=!t&&!en(o)&&!ss(o)?i:o;return a.has.call(r,u)||At(o,u)&&a.has.call(r,o)||At(i,u)&&a.has.call(r,i)||(r.add(u),Kn(r,"add",u,u)),this},set(o,r){!t&&!en(r)&&!ss(r)&&(r=je(r));const a=je(this),{has:i,get:u}=Or(a);let c=i.call(a,o);c||(o=je(o),c=i.call(a,o));const d=u.call(a,o);return a.set(o,r),c?At(r,d)&&Kn(a,"set",o,r):Kn(a,"add",o,r),this},delete(o){const r=je(this),{has:a,get:i}=Or(r);let u=a.call(r,o);u||(o=je(o),u=a.call(r,o)),i&&i.call(r,o);const c=r.delete(o);return u&&Kn(r,"delete",o,void 0),c},clear(){const o=je(this),r=o.size!==0,a=o.clear();return r&&Kn(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=wh(o,e,t)}),n}function Ca(e,t){const n=xh(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(et(n,o)&&o in s?n:s,o,r)}const kh={get:Ca(!1,!1)},Sh={get:Ca(!1,!0)},Ch={get:Ca(!0,!1)},Ah={get:Ca(!0,!0)},Wd=new WeakMap,Kd=new WeakMap,zd=new WeakMap,Gd=new WeakMap;function Eh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ks(e){return ss(e)?e:Aa(e,!1,gh,kh,Wd)}function Oh(e){return Aa(e,!1,bh,Sh,Kd)}function Ml(e){return Aa(e,!0,yh,Ch,zd)}function no(e){return Aa(e,!0,_h,Ah,Gd)}function Aa(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=Eh(Zm(e));if(a===0)return e;const i=new Proxy(e,a===2?s:n);return o.set(e,i),i}function js(e){return ss(e)?js(e.__v_raw):!!(e&&e.__v_isReactive)}function ss(e){return!!(e&&e.__v_isReadonly)}function en(e){return!!(e&&e.__v_isShallow)}function Ea(e){return e?!!e.__v_raw:!1}function je(e){const t=e&&e.__v_raw;return t?je(t):e}function Yd(e){return!et(e,"__v_skip")&&Object.isExtensible(e)&&Od(e,"__v_skip",!0),e}const vn=e=>Je(e)?Ks(e):e,yo=e=>Je(e)?Ml(e):e;function pt(e){return e?e.__v_isRef===!0:!1}function D(e){return Xd(e,!1)}function Oa(e){return Xd(e,!0)}function Xd(e,t){return pt(e)?e:new Ph(e,t)}class Ph{constructor(t,n){this.dep=new ka,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:je(t),this._value=n?t:vn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||en(t)||ss(t);t=s?t:je(t),At(t,n)&&(this._rawValue=t,this._value=s?t:vn(t),this.dep.trigger())}}function Th(e){e.dep&&e.dep.trigger()}function l(e){return pt(e)?e.value:e}function Dt(e){return Te(e)?e():l(e)}const $h={get:(e,t,n)=>t==="__v_raw"?e:l(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return pt(o)&&!pt(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Jd(e){return js(e)?e:new Proxy(e,$h)}class Ih{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ka,{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 Qd(e){return new Ih(e)}function Yt(e){const t=Se(e)?new Array(e.length):{};for(const n in e)t[n]=Zd(e,n);return t}class Mh{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=nn(n)?n:String(n),this._raw=je(t);let o=!0,r=t;if(!Se(t)||nn(this._key)||!ya(this._key))do o=!Ea(r)||en(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&&pt(this._raw[this._key])){const n=this._object[this._key];if(pt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return fh(this._raw,this._key)}}class Rh{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 Lh(e,t,n){return pt(e)?e:Te(e)?new Rh(e):Je(e)&&arguments.length>1?Zd(e,t,n):D(e)}function Zd(e,t,n){return new Mh(e,t,n)}class Dh{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ka(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Xo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&<!==this)return Ld(this,!0),!0}get value(){const t=this.dep.track();return Fd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Nh(e,t,n=!1){let s,o;return Te(e)?s=e:(s=e.get,o=e.set),new Dh(s,o,n)}const Tr={},Gr=new WeakMap;let Ns;function Fh(e,t=!1,n=Ns){if(n){let s=Gr.get(n);s||Gr.set(n,s=[]),s.push(e)}}function qh(e,t,n=We){const{immediate:s,deep:o,once:r,scheduler:a,augmentJob:i,call:u}=n,c=k=>o?k:en(k)||o===!1||o===0?zn(k,1):zn(k);let d,f,p,m,g=!1,w=!1;if(pt(e)?(f=()=>e.value,g=en(e)):js(e)?(f=()=>c(e),g=!0):Se(e)?(w=!0,g=e.some(k=>js(k)||en(k)),f=()=>e.map(k=>{if(pt(k))return k.value;if(js(k))return c(k);if(Te(k))return u?u(k,2):k()})):Te(e)?t?f=u?()=>u(e,2):e:f=()=>{if(p){ts();try{p()}finally{ns()}}const k=Ns;Ns=d;try{return u?u(e,3,[m]):e(m)}finally{Ns=k}}:f=Tn,t&&o){const k=f,R=o===!0?1/0:o;f=()=>zn(k(),R)}const C=xa(),h=()=>{d.stop(),C&&C.active&&ki(C.effects,d)};if(r&&t){const k=t;t=(...R)=>{const I=k(...R);return h(),I}}let b=w?new Array(e.length).fill(Tr):Tr;const $=k=>{if(!(!(d.flags&1)||!d.dirty&&!k))if(t){const R=d.run();if(k||o||g||(w?R.some((I,A)=>At(I,b[A])):At(R,b))){p&&p();const I=Ns;Ns=d;try{const A=[R,b===Tr?void 0:w&&b[0]===Tr?[]:b,m];b=R,u?u(t,3,A):t(...A)}finally{Ns=I}}}else d.run()};return i&&i($),d=new Md(f),d.scheduler=a?()=>a($,!1):$,m=k=>Fh(k,!1,d),p=d.onStop=()=>{const k=Gr.get(d);if(k){if(u)u(k,4);else for(const R of k)R();Gr.delete(d)}},t?s?$(!0):b=d.run():a?a($.bind(null,!0),!0):d.run(),h.pause=d.pause.bind(d),h.resume=d.resume.bind(d),h.stop=h,h}function zn(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--,pt(e))zn(e.value,t,n);else if(Se(e))for(let s=0;s<e.length;s++)zn(e[s],t,n);else if(Sd(e)||po(e))e.forEach(s=>{zn(s,t,n)});else if(Ed(e)){for(const s in e)zn(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&zn(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 hr(e,t,n,s){try{return s?e(...s):e()}catch(o){Pa(o,t,n)}}function un(e,t,n,s){if(Te(e)){const o=hr(e,t,n,s);return o&&Cd(o)&&o.catch(r=>{Pa(r,t,n)}),o}if(Se(e)){const o=[];for(let r=0;r<e.length;r++)o.push(un(e[r],t,n,s));return o}}function Pa(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){ts(),hr(r,null,10,[e,u,c]),ns();return}}Bh(e,n,o,s,a)}function Bh(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Bt=[];let Sn=-1;const mo=[];let gs=null,oo=0;const ef=Promise.resolve();let Yr=null;function yt(e){const t=Yr||ef;return e?t.then(this?e.bind(this):e):t}function Vh(e){let t=Sn+1,n=Bt.length;for(;t<n;){const s=t+n>>>1,o=Bt[s],r=Qo(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function $i(e){if(!(e.flags&1)){const t=Qo(e),n=Bt[Bt.length-1];!n||!(e.flags&2)&&t>=Qo(n)?Bt.push(e):Bt.splice(Vh(t),0,e),e.flags|=1,tf()}}function tf(){Yr||(Yr=ef.then(sf))}function Uh(e){Se(e)?mo.push(...e):gs&&e.id===-1?gs.splice(oo+1,0,e):e.flags&1||(mo.push(e),e.flags|=1),tf()}function Tu(e,t,n=Sn+1){for(;n<Bt.length;n++){const s=Bt[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Bt.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function nf(e){if(mo.length){const t=[...new Set(mo)].sort((n,s)=>Qo(n)-Qo(s));if(mo.length=0,gs){gs.push(...t);return}for(gs=t,oo=0;oo<gs.length;oo++){const n=gs[oo];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}gs=null,oo=0}}const Qo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function sf(e){try{for(Sn=0;Sn<Bt.length;Sn++){const t=Bt[Sn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),hr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Sn<Bt.length;Sn++){const t=Bt[Sn];t&&(t.flags&=-2)}Sn=-1,Bt.length=0,nf(),Yr=null,(Bt.length||mo.length)&&sf()}}let Pt=null,of=null;function Xr(e){const t=Pt;return Pt=e,of=e&&e.type.__scopeId||null,t}function y(e,t=Pt,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Zr(-1);const r=Xr(t),a=Jn.length;let i;try{i=e(...o)}finally{for(let u=Jn.length;u>a;u--)Fi();Xr(r),s._d&&Zr(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function zs(e,t){if(Pt===null)return e;const n=Ma(Pt),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,a,i,u=We]=t[o];r&&(Te(r)&&(r={mounted:r,updated:r}),r.deep&&zn(a),s.push({dir:r,instance:n,value:a,oldValue:void 0,arg:i,modifiers:u}))}return e}function Is(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&&(ts(),un(u,n,8,[e.el,i,e,t]),ns())}}function Ii(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 Ws(e,t,n=!1){const s=Xt();if(s||vo){let o=vo?vo._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&&Te(t)?t.call(s&&s.proxy):t}}const Hh=Symbol.for("v-scx"),jh=()=>Ws(Hh);function os(e,t){return vr(e,null,t)}function rf(e,t){return vr(e,null,{flush:"post"})}function Wh(e,t){return vr(e,null,{flush:"sync"})}function De(e,t,n){return vr(e,t,n)}function vr(e,t,n=We){const{immediate:s,deep:o,flush:r,once:a}=n,i=vt({},n),u=t&&s||!t&&r!=="post";let c;if(nr){if(r==="sync"){const m=jh();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,w)=>un(m,d,g,w);let f=!1;r==="post"?i.scheduler=m=>{qt(m,d&&d.suspense)}:r!=="sync"&&(f=!0,i.scheduler=(m,g)=>{g?m():$i(m)}),i.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};const p=qh(e,t,i);return nr&&(c?c.push(p):u&&p()),p}function Kh(e,t,n){const s=this.proxy,o=it(e)?e.includes(".")?af(s,e):()=>s[e]:e.bind(s,s);let r;Te(t)?r=t:(r=t.handler,n=t);const a=_r(this),i=vr(o,r.bind(s),n);return a(),i}function af(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 ms=new WeakMap,lf=Symbol("_vte"),zh=e=>e.__isTeleport,Fs=e=>e&&(e.disabled||e.disabled===""),Gh=e=>e&&(e.defer||e.defer===""),$u=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Iu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Rl=(e,t)=>{const n=e&&e.to;return it(n)?t?t(n):null:n},Yh={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:w,createComment:C,parentNode:h}}=c,b=Fs(t.props);let{dynamicChildren:$}=t;const k=(A,M,B)=>{A.shapeFlag&16&&d(A.children,M,B,o,r,a,i,u)},R=(A=t)=>{const M=Fs(A.props),B=A.target=Rl(A.props,g),K=Ll(B,A,w,m);B&&(a!=="svg"&&$u(B)?a="svg":a!=="mathml"&&Iu(B)&&(a="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(B),M||(k(A,B,K),No(A,!1)))},I=A=>{const M=()=>{if(ms.get(A)===M){if(ms.delete(A),Fs(A.props)){const B=h(A.el)||n;k(A,B,A.anchor),No(A,!0)}R(A)}};ms.set(A,M),qt(M,r)};if(e==null){const A=t.el=w(""),M=t.anchor=w("");if(m(A,n,s),m(M,n,s),Gh(t.props)||r&&r.pendingBranch){I(t);return}b&&(k(t,n,M),No(t,!0)),R()}else{t.el=e.el;const A=t.anchor=e.anchor,M=ms.get(e);if(M){M.flags|=8,ms.delete(e),I(t);return}t.targetStart=e.targetStart;const B=t.target=e.target,K=t.targetAnchor=e.targetAnchor,X=Fs(e.props),W=X?n:B,ue=X?A:K;if(a==="svg"||$u(B)?a="svg":(a==="mathml"||Iu(B))&&(a="mathml"),$?(p(e.dynamicChildren,$,W,o,r,a,i),Ni(e,t,!0)):u||f(e,t,W,ue,o,r,a,i,!1),b)X?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$r(t,n,A,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const he=Rl(t.props,g);he&&(t.target=he,$r(t,he,null,c,0))}else X&&$r(t,B,K,c,1);No(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=Fs(p),g=r||!m,w=ms.get(e);if(w&&(w.flags|=8,ms.delete(e)),f&&(o(c),o(d)),r&&o(u),!w&&(m||f)&&a&16)for(let C=0;C<i.length;C++){const h=i[C];s(h,t,n,g,!!h.dynamicChildren)}},move:$r,hydrate:Xh};function $r(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),!ms.has(e)&&(!f||Fs(d))&&u&16)for(let p=0;p<c.length;p++)o(c[p],t,n,2);f&&s(i,t,n)}function Xh(e,t,n,s,o,r,{o:{nextSibling:a,parentNode:i,querySelector:u,insert:c,createText:d}},f){function p(C,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,C._lpa=t.targetAnchor&&a(t.targetAnchor);break}}b=a(b)}}function m(C,h){h.anchor=f(a(C),h,i(C),n,s,o,r)}const g=t.target=Rl(t.props,u),w=Fs(t.props);if(g){const C=g._lpa||g.firstChild;t.shapeFlag&16&&(w?(m(e,t),p(g,C),t.targetAnchor||Ll(g,t,d,c,i(e)===g?e:null)):(t.anchor=a(e),p(g,C),t.targetAnchor||Ll(g,t,d,c),f(C&&a(C),t,g,n,s,o,r))),No(t,w)}else w&&t.shapeFlag&16&&(m(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const Mi=Yh;function No(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 Ll(e,t,n,s,o=null){const r=t.targetStart=n(""),a=t.targetAnchor=n("");return r[lf]=a,e&&(s(r,e,o),s(a,e,o)),a}const Cn=Symbol("_leaveCb"),Po=Symbol("_enterCb");function Jh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mt(()=>{e.isMounted=!0}),$a(()=>{e.isUnmounting=!0}),e}const sn=[Function,Array],Qh={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 Zh(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 Dl(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:w,onBeforeAppear:C,onAppear:h,onAfterAppear:b,onAppearCancelled:$}=t,k=String(e.key),R=Zh(n,e),I=(B,K)=>{B&&un(B,s,9,K)},A=(B,K)=>{const X=K[1];I(B,K),Se(B)?B.every(W=>W.length<=1)&&X():B.length<=1&&X()},M={mode:a,persisted:i,beforeEnter(B){let K=u;if(!n.isMounted)if(r)K=C||u;else return;B[Cn]&&B[Cn](!0);const X=R[k];X&&ro(e,X)&&X.el[Cn]&&X.el[Cn](),I(K,[B])},enter(B){if(R[k]===e)return;let K=c,X=d,W=f;if(!n.isMounted)if(r)K=h||c,X=b||d,W=$||f;else return;let ue=!1;B[Po]=J=>{ue||(ue=!0,J?I(W,[B]):I(X,[B]),M.delayedLeave&&M.delayedLeave(),B[Po]=void 0)};const he=B[Po].bind(null,!1);K?A(K,[B,he]):he()},leave(B,K){const X=String(e.key);if(B[Po]&&B[Po](!0),n.isUnmounting)return K();I(p,[B]);let W=!1;B[Cn]=he=>{W||(W=!0,K(),he?I(w,[B]):I(g,[B]),B[Cn]=void 0,R[X]===e&&delete R[X])};const ue=B[Cn].bind(null,!1);R[X]=e,m?A(m,[B,ue]):ue()},clone(B){const K=Dl(B,t,n,s,o);return o&&o(K),K}};return M}function Zo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Zo(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 uf(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===Ae?(a.patchFlag&128&&o++,s=s.concat(uf(a.children,t,i))):(t||a.type!==gn)&&s.push(i!=null?_s(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 Te(e)?vt({name:e.name},t,{setup:e}):e}function al(){const e=Xt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function cf(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Mu(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Jr=new WeakMap;function Ho(e,t,n,s,o=!1){if(Se(e)){e.forEach((w,C)=>Ho(w,t&&(Se(t)?t[C]:t),n,s,o));return}if(ho(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Ho(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?Ma(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=je(f),m=f===We?kd:w=>Mu(d,w)?!1:et(p,w),g=(w,C)=>!(C&&Mu(d,C));if(c!=null&&c!==u){if(Ru(t),it(c))d[c]=null,m(c)&&(f[c]=null);else if(pt(c)){const w=t;g(c,w.k)&&(c.value=null),w.k&&(d[w.k]=null)}}if(Te(u))hr(u,i,12,[a,d]);else{const w=it(u),C=pt(u);if(w||C){const h=()=>{if(e.f){const b=w?m(u)?f[u]:d[u]:g()||!e.k?u.value:d[e.k];if(o)Se(b)&&ki(b,r);else if(Se(b))b.includes(r)||b.push(r);else if(w)d[u]=[r],m(u)&&(f[u]=d[u]);else{const $=[r];g(u,e.k)&&(u.value=$),e.k&&(d[e.k]=$)}}else w?(d[u]=a,m(u)&&(f[u]=a)):C&&(g(u,e.k)&&(u.value=a),e.k&&(d[e.k]=a))};if(a){const b=()=>{h(),Jr.delete(e)};b.id=-1,Jr.set(e,b),qt(b,n)}else Ru(e),h()}}}function Ru(e){const t=Jr.get(e);t&&(t.flags|=8,Jr.delete(e))}wa().requestIdleCallback;wa().cancelIdleCallback;const ho=e=>!!e.type.__asyncLoader,df=e=>e.type.__isKeepAlive;function ev(e,t){ff(e,"a",t)}function tv(e,t){ff(e,"da",t)}function ff(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(Ta(t,s,n),n){let o=n.parent;for(;o&&o.parent;)df(o.parent.vnode)&&nv(s,t,n,o),o=o.parent}}function nv(e,t,n,s){const o=Ta(t,e,s,!0);yn(()=>{ki(s[t],o)},n)}function Ta(e,t,n=Lt,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...a)=>{ts();const i=_r(n),u=un(t,n,e,a);return i(),ns(),u});return s?o.unshift(r):o.push(r),r}}const is=e=>(t,n=Lt)=>{(!nr||e==="sp")&&Ta(e,(...s)=>t(...s),n)},sv=is("bm"),mt=is("m"),ov=is("bu"),Ri=is("u"),$a=is("bum"),yn=is("um"),rv=is("sp"),av=is("rtg"),lv=is("rtc");function iv(e,t=Lt){Ta("ec",e,t)}const uv="components",pf=Symbol.for("v-ndc");function gr(e){return it(e)?cv(uv,e,!1)||e:e||pf}function cv(e,t,n=!0,s=!1){const o=Pt||Lt;if(o){const r=o.type;{const i=Kv(r,!1);if(i&&(i===t||i===Et(t)||i===_a(Et(t))))return r}const a=Lu(o[e]||r[e],t)||Lu(o.appContext[e],t);return!a&&s?r:a}}function Lu(e,t){return e&&(e[t]||e[Et(t)]||e[_a(Et(t))])}function ct(e,t,n,s){let o;const r=n&&n[s],a=Se(e);if(a||it(e)){const i=a&&js(e);let u=!1,c=!1;i&&(u=!en(e),c=ss(e),e=Sa(e)),o=new Array(e.length);for(let d=0,f=e.length;d<f;d++)o[d]=t(u?c?yo(vn(e[d])):vn(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 ie(e,t,n={},s,o,r){if(Pt.ce||Pt.parent&&ho(Pt.parent)&&Pt.parent.ce){const c=r!=null&&n.key==null?vt({},n,{key:r}):n,d=Object.keys(c).length>0;return t!=="default"&&(c.name=t),x(),N(Ae,null,[v("slot",c,s&&s())],d?-2:64)}let a=e[t];a&&a._c&&(a._d=!1);const i=Jn.length;x();let u;try{const c=a&&mf(a(n)),d=n.key||r||c&&c.key;u=N(Ae,{key:(d&&!nn(d)?d:`_${t}`)+(!c&&s?"_fb":"")},c||(s?s():[]),c&&e._===1?64:-2)}catch(c){for(let d=Jn.length;d>i;d--)Fi();throw c}finally{a&&a._c&&(a._d=!0)}return!o&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function mf(e){return e.some(t=>tr(t)?!(t.type===gn||t.type===Ae&&!mf(t.children)):!0)?e:null}const Nl=e=>e?Lf(e)?Ma(e):Nl(e.parent):null,jo=vt(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=>Nl(e.parent),$root:e=>Nl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gf(e),$forceUpdate:e=>e.f||(e.f=()=>{$i(e.update)}),$nextTick:e=>e.n||(e.n=yt.bind(e.proxy)),$watch:e=>Kh.bind(e)}),ll=(e,t)=>e!==We&&!e.__isScriptSetup&&et(e,t),dv={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(ll(s,t))return a[t]=1,s[t];if(o!==We&&et(o,t))return a[t]=2,o[t];if(et(r,t))return a[t]=3,r[t];if(n!==We&&et(n,t))return a[t]=4,n[t];Fl&&(a[t]=0)}}const c=jo[t];let d,f;if(c)return t==="$attrs"&&Rt(e.attrs,"get",""),c(e);if((d=i.__cssModules)&&(d=d[t]))return d;if(n!==We&&et(n,t))return a[t]=4,n[t];if(f=u.config.globalProperties,et(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return ll(o,t)?(o[t]=n,!0):s!==We&&et(s,t)?(s[t]=n,!0):et(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]!=="$"&&et(e,i)||ll(t,i)||et(r,i)||et(s,i)||et(jo,i)||et(o.config.globalProperties,i)||(u=a.__cssModules)&&u[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:et(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fv(){return pv().attrs}function pv(e){const t=Xt();return t.setupContext||(t.setupContext=Nf(t))}function er(e){return Se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function hf(e,t){const n=er(e);for(const s in t){if(s.startsWith("__skip"))continue;let o=n[s];o?Se(o)||Te(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 bs(e,t){return!e||!t?e||t:Se(e)&&Se(t)?e.concat(t):vt({},er(e),er(t))}let Fl=!0;function mv(e){const t=gf(e),n=e.proxy,s=e.ctx;Fl=!1,t.beforeCreate&&Du(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:w,deactivated:C,beforeDestroy:h,beforeUnmount:b,destroyed:$,unmounted:k,render:R,renderTracked:I,renderTriggered:A,errorCaptured:M,serverPrefetch:B,expose:K,inheritAttrs:X,components:W,directives:ue,filters:he}=t;if(c&&hv(c,s,null),a)for(const re in a){const fe=a[re];Te(fe)&&(s[re]=fe.bind(n))}if(o){const re=o.call(n,n);Je(re)&&(e.data=Ks(re))}if(Fl=!0,r)for(const re in r){const fe=r[re],ae=Te(fe)?fe.bind(n,n):Te(fe.get)?fe.get.bind(n,n):Tn,Z=!Te(fe)&&Te(fe.set)?fe.set.bind(n):Tn,de=te({get:ae,set:Z});Object.defineProperty(s,re,{enumerable:!0,configurable:!0,get:()=>de.value,set:Be=>de.value=Be})}if(i)for(const re in i)vf(i[re],s,n,re);if(u){const re=Te(u)?u.call(n):u;Reflect.ownKeys(re).forEach(fe=>{Ii(fe,re[fe])})}d&&Du(d,e,"c");function ce(re,fe){Se(fe)?fe.forEach(ae=>re(ae.bind(n))):fe&&re(fe.bind(n))}if(ce(sv,f),ce(mt,p),ce(ov,m),ce(Ri,g),ce(ev,w),ce(tv,C),ce(iv,M),ce(lv,I),ce(av,A),ce($a,b),ce(yn,k),ce(rv,B),Se(K))if(K.length){const re=e.exposed||(e.exposed={});K.forEach(fe=>{Object.defineProperty(re,fe,{get:()=>n[fe],set:ae=>n[fe]=ae,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===Tn&&(e.render=R),X!=null&&(e.inheritAttrs=X),W&&(e.components=W),ue&&(e.directives=ue),B&&cf(e)}function hv(e,t,n=Tn){Se(e)&&(e=ql(e));for(const s in e){const o=e[s];let r;Je(o)?"default"in o?r=Ws(o.from||s,o.default,!0):r=Ws(o.from||s):r=Ws(o),pt(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:a=>r.value=a}):t[s]=r}}function Du(e,t,n){un(Se(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vf(e,t,n,s){let o=s.includes(".")?af(n,s):()=>n[s];if(it(e)){const r=t[e];Te(r)&&De(o,r)}else if(Te(e))De(o,e.bind(n));else if(Je(e))if(Se(e))e.forEach(r=>vf(r,t,n,s));else{const r=Te(e.handler)?e.handler.bind(n):t[e.handler];Te(r)&&De(o,r,e)}}function gf(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=>Qr(u,c,a,!0)),Qr(u,t,a)),Je(t)&&r.set(t,u),u}function Qr(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Qr(e,r,n,!0),o&&o.forEach(a=>Qr(e,a,n,!0));for(const a in t)if(!(s&&a==="expose")){const i=vv[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const vv={data:Nu,props:Fu,emits:Fu,methods:Fo,computed:Fo,beforeCreate:Ft,created:Ft,beforeMount:Ft,mounted:Ft,beforeUpdate:Ft,updated:Ft,beforeDestroy:Ft,beforeUnmount:Ft,destroyed:Ft,unmounted:Ft,activated:Ft,deactivated:Ft,errorCaptured:Ft,serverPrefetch:Ft,components:Fo,directives:Fo,watch:yv,provide:Nu,inject:gv};function Nu(e,t){return t?e?function(){return vt(Te(e)?e.call(this,this):e,Te(t)?t.call(this,this):t)}:t:e}function gv(e,t){return Fo(ql(e),ql(t))}function ql(e){if(Se(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ft(e,t){return e?[...new Set([].concat(e,t))]:t}function Fo(e,t){return e?vt(Object.create(null),e,t):t}function Fu(e,t){return e?Se(e)&&Se(t)?[...new Set([...e,...t])]:vt(Object.create(null),er(e),er(t??{})):t}function yv(e,t){if(!e)return t;if(!t)return e;const n=vt(Object.create(null),e);for(const s in t)n[s]=Ft(e[s],t[s]);return n}function yf(){return{app:null,config:{isNativeTag:kd,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 bv=0;function _v(e,t){return function(s,o=null){Te(s)||(s=vt({},s)),o!=null&&!Je(o)&&(o=null);const r=yf(),a=new WeakSet,i=[];let u=!1;const c=r.app={_uid:bv++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:Xv,get config(){return r.config},set config(d){},use(d,...f){return a.has(d)||(d&&Te(d.install)?(a.add(d),d.install(c,...f)):Te(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,Ma(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=vo;vo=c;try{return d()}finally{vo=f}}};return c}}let vo=null;function yr(e,t,n=We){const s=Xt(),o=Et(t),r=ls(t),a=bf(e,o),i=Qd((u,c)=>{let d,f=We,p;return Wh(()=>{const m=e[o];At(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(!At(g,d)&&!(f!==We&&At(m,f)))return;const w=s.vnode.props,C=!!(w&&(t in w||o in w||r in w)&&(`onUpdate:${t}`in w||`onUpdate:${o}`in w||`onUpdate:${r}`in w));C||(d=m,c()),s.emit(`update:${t}`,g),At(m,f)&&(At(m,g)&&!At(g,p)||C&&f!==We&&!At(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 bf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Et(t)}Modifiers`]||e[`${ls(t)}Modifiers`];function wv(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||We;let o=n;const r=t.startsWith("update:"),a=r&&bf(s,t.slice(7));a&&(a.trim&&(o=n.map(d=>it(d)?d.trim():d)),a.number&&(o=n.map(Si)));let i,u=s[i=Ur(t)]||s[i=Ur(Et(t))];!u&&r&&(u=s[i=Ur(ls(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 xv=new WeakMap;function _f(e,t,n=!1){const s=n?xv:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let a={},i=!1;if(!Te(e)){const u=c=>{const d=_f(c,t,!0);d&&(i=!0,vt(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):(Se(r)?r.forEach(u=>a[u]=null):vt(a,r),Je(e)&&s.set(e,a),a)}function Ia(e,t){return!e||!va(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),et(e,t[0].toLowerCase()+t.slice(1))||et(e,ls(t))||et(e,t))}function qu(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:w}=e,C=Xr(e);let h,b;try{if(n.shapeFlag&4){const k=o||s,R=k;h=On(c.call(R,k,d,f,m,p,g)),b=i}else{const k=t;h=On(k.length>1?k(f,{attrs:i,slots:a,emit:u}):k(f,null)),b=t.props?i:kv(i)}}catch(k){Jn.length=0,Pa(k,e,1),h=v(gn)}let $=h;if(b&&w!==!1){const k=Object.keys(b),{shapeFlag:R}=$;k.length&&R&7&&(r&&k.some(ga)&&(b=Sv(b,r)),$=_s($,b,!1,!0))}return n.dirs&&($=_s($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&Zo($,n.transition),h=$,Xr(C),h}const kv=e=>{let t;for(const n in e)(n==="class"||n==="style"||va(n))&&((t||(t={}))[n]=e[n]);return t},Sv=(e,t)=>{const n={};for(const s in e)(!ga(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Cv(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?Bu(s,a,c):!!a;if(u&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const p=d[f];if(wf(a,s,p)&&!Ia(c,p))return!0}}}else return(o||i)&&(!i||!i.$stable)?!0:s===a?!1:s?a?Bu(s,a,c):!0:!!a;return!1}function Bu(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(wf(t,e,r)&&!Ia(n,r))return!0}return!1}function wf(e,t,n){const s=e[n],o=t[n];return n==="style"&&Je(s)&&Je(o)?!Ci(s,o):s!==o}function Av({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 xf={},kf=()=>Object.create(xf),Sf=e=>Object.getPrototypeOf(e)===xf;function Ev(e,t,n,s=!1){const o={},r=kf();e.propsDefaults=Object.create(null),Cf(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 Ov(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:a}}=e,i=je(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(Ia(e.emitsOptions,p))continue;const m=t[p];if(u)if(et(r,p))m!==r[p]&&(r[p]=m,c=!0);else{const g=Et(p);o[g]=Bl(u,i,g,m,e,!1)}else m!==r[p]&&(r[p]=m,c=!0)}}}else{Cf(e,t,o,r)&&(c=!0);let d;for(const f in i)(!t||!et(t,f)&&((d=ls(f))===f||!et(t,d)))&&(u?n&&(n[f]!==void 0||n[d]!==void 0)&&(o[f]=Bl(u,i,f,void 0,e,!0)):delete o[f]);if(r!==i)for(const f in r)(!t||!et(t,f))&&(delete r[f],c=!0)}c&&Kn(e.attrs,"set","")}function Cf(e,t,n,s){const[o,r]=e.propsOptions;let a=!1,i;if(t)for(let u in t){if(Bo(u))continue;const c=t[u];let d;o&&et(o,d=Et(u))?!r||!r.includes(d)?n[d]=c:(i||(i={}))[d]=c:Ia(e.emitsOptions,u)||(!(u in s)||c!==s[u])&&(s[u]=c,a=!0)}if(r){const u=je(n),c=i||We;for(let d=0;d<r.length;d++){const f=r[d];n[f]=Bl(o,u,f,c[f],e,!et(c,f))}}return a}function Bl(e,t,n,s,o,r){const a=e[n];if(a!=null){const i=et(a,"default");if(i&&s===void 0){const u=a.default;if(a.type!==Function&&!a.skipFactory&&Te(u)){const{propsDefaults:c}=o;if(n in c)s=c[n];else{const d=_r(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===ls(n))&&(s=!0))}return s}const Pv=new WeakMap;function Af(e,t,n=!1){const s=n?Pv:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,a={},i=[];let u=!1;if(!Te(e)){const d=f=>{u=!0;const[p,m]=Af(f,t,!0);vt(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,fo),fo;if(Se(r))for(let d=0;d<r.length;d++){const f=Et(r[d]);Vu(f)&&(a[f]=We)}else if(r)for(const d in r){const f=Et(d);if(Vu(f)){const p=r[d],m=a[f]=Se(p)||Te(p)?{type:p}:vt({},p),g=m.type;let w=!1,C=!0;if(Se(g))for(let h=0;h<g.length;++h){const b=g[h],$=Te(b)&&b.name;if($==="Boolean"){w=!0;break}else $==="String"&&(C=!1)}else w=Te(g)&&g.name==="Boolean";m[0]=w,m[1]=C,(w||et(m,"default"))&&i.push(f)}}const c=[a,i];return Je(e)&&s.set(e,c),c}function Vu(e){return e[0]!=="$"&&!Bo(e)}const Li=e=>e==="_"||e==="_ctx"||e==="$stable",Di=e=>Se(e)?e.map(On):[On(e)],Tv=(e,t,n)=>{if(t._n)return t;const s=y((...o)=>Di(t(...o)),n);return s._c=!1,s},Ef=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Li(o))continue;const r=e[o];if(Te(r))t[o]=Tv(o,r,s);else if(r!=null){const a=Di(r);t[o]=()=>a}}},Of=(e,t)=>{const n=Di(t);e.slots.default=()=>n},Pf=(e,t,n)=>{for(const s in t)(n||!Li(s))&&(e[s]=t[s])},$v=(e,t,n)=>{const s=e.slots=kf();if(e.vnode.shapeFlag&32){const o=t._;o?(Pf(s,t,n),n&&Od(s,"_",o,!0)):Ef(t,s)}else t&&Of(e,t)},Iv=(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:Pf(o,t,n):(r=!t.$stable,Ef(t,o)),a=t}else t&&(Of(e,t),a={default:1});if(r)for(const i in o)!Li(i)&&a[i]==null&&delete o[i]},qt=Nv;function Mv(e){return Rv(e)}function Rv(e,t){const n=wa();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,w=(_,T,j,le=null,se=null,ne=null,O=void 0,P=null,V=!!T.dynamicChildren)=>{if(_===T)return;_&&!ro(_,T)&&(le=qe(_),Be(_,se,ne,!0),_=null),T.patchFlag===-2&&(V=!1,T.dynamicChildren=null);const{type:H,ref:pe,shapeFlag:oe}=T;switch(H){case br:C(_,T,j,le);break;case gn:h(_,T,j,le);break;case jr:_==null&&b(T,j,le,O);break;case Ae:W(_,T,j,le,se,ne,O,P,V);break;default:oe&1?R(_,T,j,le,se,ne,O,P,V):oe&6?ue(_,T,j,le,se,ne,O,P,V):(oe&64||oe&128)&&H.process(_,T,j,le,se,ne,O,P,V,ut)}pe!=null&&se?Ho(pe,_&&_.ref,ne,T||_,!T):pe==null&&_&&_.ref!=null&&Ho(_.ref,null,ne,_,!0)},C=(_,T,j,le)=>{if(_==null)s(T.el=i(T.children),j,le);else{const se=T.el=_.el;T.children!==_.children&&c(se,T.children)}},h=(_,T,j,le)=>{_==null?s(T.el=u(T.children||""),j,le):T.el=_.el},b=(_,T,j,le)=>{[_.el,_.anchor]=g(_.children,T,j,le,_.el,_.anchor)},$=({el:_,anchor:T},j,le)=>{let se;for(;_&&_!==T;)se=p(_),s(_,j,le),_=se;s(T,j,le)},k=({el:_,anchor:T})=>{let j;for(;_&&_!==T;)j=p(_),o(_),_=j;o(T)},R=(_,T,j,le,se,ne,O,P,V)=>{if(T.type==="svg"?O="svg":T.type==="math"&&(O="mathml"),_==null)I(T,j,le,se,ne,O,P,V);else{const H=_.el&&_.el._isVueCE?_.el:null;try{H&&H._beginPatch(),B(_,T,se,ne,O,P,V)}finally{H&&H._endPatch()}}},I=(_,T,j,le,se,ne,O,P)=>{let V,H;const{props:pe,shapeFlag:oe,transition:F,dirs:G}=_;if(V=_.el=a(_.type,ne,pe&&pe.is,pe),oe&8?d(V,_.children):oe&16&&M(_.children,V,null,le,se,il(_,ne),O,P),G&&Is(_,null,le,"created"),A(V,_,_.scopeId,O,le),pe){for(const Ce in pe)Ce!=="value"&&!Bo(Ce)&&r(V,Ce,null,pe[Ce],ne,le);"value"in pe&&r(V,"value",null,pe.value,ne),(H=pe.onVnodeBeforeMount)&&bn(H,le,_)}G&&Is(_,null,le,"beforeMount");const ye=Lv(se,F);ye&&F.beforeEnter(V),s(V,T,j),((H=pe&&pe.onVnodeMounted)||ye||G)&&qt(()=>{try{H&&bn(H,le,_),ye&&F.enter(V),G&&Is(_,null,le,"mounted")}finally{}},se)},A=(_,T,j,le,se)=>{if(j&&m(_,j),le)for(let ne=0;ne<le.length;ne++)m(_,le[ne]);if(se){let ne=se.subTree;if(T===ne||If(ne.type)&&(ne.ssContent===T||ne.ssFallback===T)){const O=se.vnode;A(_,O,O.scopeId,O.slotScopeIds,se.parent)}}},M=(_,T,j,le,se,ne,O,P,V=0)=>{for(let H=V;H<_.length;H++){const pe=_[H]=P?Hn(_[H]):On(_[H]);w(null,pe,T,j,le,se,ne,O,P)}},B=(_,T,j,le,se,ne,O)=>{const P=T.el=_.el;let{patchFlag:V,dynamicChildren:H,dirs:pe}=T;V|=_.patchFlag&16;const oe=_.props||We,F=T.props||We;let G;if(j&&Ms(j,!1),(G=F.onVnodeBeforeUpdate)&&bn(G,j,T,_),pe&&Is(T,_,j,"beforeUpdate"),j&&Ms(j,!0),H&&(!_.dynamicChildren||_.dynamicChildren.length!==H.length)&&(V=0,O=!1,H=null),(oe.innerHTML&&F.innerHTML==null||oe.textContent&&F.textContent==null)&&d(P,""),H?K(_.dynamicChildren,H,P,j,le,il(T,se),ne):O||fe(_,T,P,null,j,le,il(T,se),ne,!1),V>0){if(V&16)X(P,oe,F,j,se);else if(V&2&&oe.class!==F.class&&r(P,"class",null,F.class,se),V&4&&r(P,"style",oe.style,F.style,se),V&8){const ye=T.dynamicProps;for(let Ce=0;Ce<ye.length;Ce++){const Le=ye[Ce],Qe=oe[Le],He=F[Le];(He!==Qe||Le==="value")&&r(P,Le,Qe,He,se,j)}}V&1&&_.children!==T.children&&d(P,T.children)}else!O&&H==null&&X(P,oe,F,j,se);((G=F.onVnodeUpdated)||pe)&&qt(()=>{G&&bn(G,j,T,_),pe&&Is(T,_,j,"updated")},le)},K=(_,T,j,le,se,ne,O)=>{for(let P=0;P<T.length;P++){const V=_[P],H=T[P],pe=V.el&&(V.type===Ae||!ro(V,H)||V.shapeFlag&198)?f(V.el):j;w(V,H,pe,null,le,se,ne,O,!0)}},X=(_,T,j,le,se)=>{if(T!==j){if(T!==We)for(const ne in T)!Bo(ne)&&!(ne in j)&&r(_,ne,T[ne],null,se,le);for(const ne in j){if(Bo(ne))continue;const O=j[ne],P=T[ne];O!==P&&ne!=="value"&&r(_,ne,P,O,se,le)}"value"in j&&r(_,"value",T.value,j.value,se)}},W=(_,T,j,le,se,ne,O,P,V)=>{const H=T.el=_?_.el:i(""),pe=T.anchor=_?_.anchor:i("");let{patchFlag:oe,dynamicChildren:F,slotScopeIds:G}=T;G&&(P=P?P.concat(G):G),_==null?(s(H,j,le),s(pe,j,le),M(T.children||[],j,pe,se,ne,O,P,V)):oe>0&&oe&64&&F&&_.dynamicChildren&&_.dynamicChildren.length===F.length?(K(_.dynamicChildren,F,j,se,ne,O,P),(T.key!=null||se&&T===se.subTree)&&Ni(_,T,!0)):fe(_,T,j,pe,se,ne,O,P,V)},ue=(_,T,j,le,se,ne,O,P,V)=>{T.slotScopeIds=P,_==null?T.shapeFlag&512?se.ctx.activate(T,j,le,O,V):he(T,j,le,se,ne,O,V):J(_,T,V)},he=(_,T,j,le,se,ne,O)=>{const P=_.component=Uv(_,le,se);if(df(_)&&(P.ctx.renderer=ut),Hv(P,!1,O),P.asyncDep){if(se&&se.registerDep(P,ce,O),!_.el){const V=P.subTree=v(gn);h(null,V,T,j),_.placeholder=V.el}}else ce(P,_,T,j,se,ne,O)},J=(_,T,j)=>{const le=T.component=_.component;if(Cv(_,T,j))if(le.asyncDep&&!le.asyncResolved){re(le,T,j);return}else le.next=T,le.update();else T.el=_.el,le.vnode=T},ce=(_,T,j,le,se,ne,O)=>{const P=()=>{if(_.isMounted){let{next:oe,bu:F,u:G,parent:ye,vnode:Ce}=_;{const Wt=Tf(_);if(Wt){oe&&(oe.el=Ce.el,re(_,oe,O)),Wt.asyncDep.then(()=>{qt(()=>{_.isUnmounted||H()},se)});return}}let Le=oe,Qe;Ms(_,!1),oe?(oe.el=Ce.el,re(_,oe,O)):oe=Ce,F&&Hr(F),(Qe=oe.props&&oe.props.onVnodeBeforeUpdate)&&bn(Qe,ye,oe,Ce),Ms(_,!0);const He=qu(_),jt=_.subTree;_.subTree=He,w(jt,He,f(jt.el),qe(jt),_,se,ne),oe.el=He.el,Le===null&&Av(_,He.el),G&&qt(G,se),(Qe=oe.props&&oe.props.onVnodeUpdated)&&qt(()=>bn(Qe,ye,oe,Ce),se)}else{let oe;const{el:F,props:G}=T,{bm:ye,m:Ce,parent:Le,root:Qe,type:He}=_,jt=ho(T);Ms(_,!1),ye&&Hr(ye),!jt&&(oe=G&&G.onVnodeBeforeMount)&&bn(oe,Le,T),Ms(_,!0);{Qe.ce&&Qe.ce._hasShadowRoot()&&Qe.ce._injectChildStyle(He,_.parent?_.parent.type:void 0);const Wt=_.subTree=qu(_);w(null,Wt,j,le,_,se,ne),T.el=Wt.el}if(Ce&&qt(Ce,se),!jt&&(oe=G&&G.onVnodeMounted)){const Wt=T;qt(()=>bn(oe,Le,Wt),se)}(T.shapeFlag&256||Le&&ho(Le.vnode)&&Le.vnode.shapeFlag&256)&&_.a&&qt(_.a,se),_.isMounted=!0,T=j=le=null}};_.scope.on();const V=_.effect=new Md(P);_.scope.off();const H=_.update=V.run.bind(V),pe=_.job=V.runIfDirty.bind(V);pe.i=_,pe.id=_.uid,V.scheduler=()=>$i(pe),Ms(_,!0),H()},re=(_,T,j)=>{T.component=_;const le=_.vnode.props;_.vnode=T,_.next=null,Ov(_,T.props,le,j),Iv(_,T.children,j),ts(),Tu(_),ns()},fe=(_,T,j,le,se,ne,O,P,V=!1)=>{const H=_&&_.children,pe=_?_.shapeFlag:0,oe=T.children,{patchFlag:F,shapeFlag:G}=T;if(F>0){if(F&128){Z(H,oe,j,le,se,ne,O,P,V);return}else if(F&256){ae(H,oe,j,le,se,ne,O,P,V);return}}G&8?(pe&16&&Ye(H,se,ne),oe!==H&&d(j,oe)):pe&16?G&16?Z(H,oe,j,le,se,ne,O,P,V):Ye(H,se,ne,!0):(pe&8&&d(j,""),G&16&&M(oe,j,le,se,ne,O,P,V))},ae=(_,T,j,le,se,ne,O,P,V)=>{_=_||fo,T=T||fo;const H=_.length,pe=T.length,oe=Math.min(H,pe);let F;for(F=0;F<oe;F++){const G=T[F]=V?Hn(T[F]):On(T[F]);w(_[F],G,j,null,se,ne,O,P,V)}H>pe?Ye(_,se,ne,!0,!1,oe):M(T,j,le,se,ne,O,P,V,oe)},Z=(_,T,j,le,se,ne,O,P,V)=>{let H=0;const pe=T.length;let oe=_.length-1,F=pe-1;for(;H<=oe&&H<=F;){const G=_[H],ye=T[H]=V?Hn(T[H]):On(T[H]);if(ro(G,ye))w(G,ye,j,null,se,ne,O,P,V);else break;H++}for(;H<=oe&&H<=F;){const G=_[oe],ye=T[F]=V?Hn(T[F]):On(T[F]);if(ro(G,ye))w(G,ye,j,null,se,ne,O,P,V);else break;oe--,F--}if(H>oe){if(H<=F){const G=F+1,ye=G<pe?T[G].el:le;for(;H<=F;)w(null,T[H]=V?Hn(T[H]):On(T[H]),j,ye,se,ne,O,P,V),H++}}else if(H>F)for(;H<=oe;)Be(_[H],se,ne,!0),H++;else{const G=H,ye=H,Ce=new Map;for(H=ye;H<=F;H++){const Nt=T[H]=V?Hn(T[H]):On(T[H]);Nt.key!=null&&Ce.set(Nt.key,H)}let Le,Qe=0;const He=F-ye+1;let jt=!1,Wt=0;const Ts=new Array(He);for(H=0;H<He;H++)Ts[H]=0;for(H=G;H<=oe;H++){const Nt=_[H];if(Qe>=He){Be(Nt,se,ne,!0);continue}let Jt;if(Nt.key!=null)Jt=Ce.get(Nt.key);else for(Le=ye;Le<=F;Le++)if(Ts[Le-ye]===0&&ro(Nt,T[Le])){Jt=Le;break}Jt===void 0?Be(Nt,se,ne,!0):(Ts[Jt-ye]=H+1,Jt>=Wt?Wt=Jt:jt=!0,w(Nt,T[Jt],j,null,se,ne,O,P,V),Qe++)}const Sr=jt?Dv(Ts):fo;for(Le=Sr.length-1,H=He-1;H>=0;H--){const Nt=ye+H,Jt=T[Nt],Cr=T[Nt+1],Ar=Nt+1<pe?Cr.el||$f(Cr):le;Ts[H]===0?w(null,Jt,j,Ar,se,ne,O,P,V):jt&&(Le<0||H!==Sr[Le]?de(Jt,j,Ar,2):Le--)}}},de=(_,T,j,le,se=null)=>{const{el:ne,type:O,transition:P,children:V,shapeFlag:H}=_;if(H&6){de(_.component.subTree,T,j,le);return}if(H&128){_.suspense.move(T,j,le);return}if(H&64){O.move(_,T,j,ut);return}if(O===Ae){s(ne,T,j);for(let oe=0;oe<V.length;oe++)de(V[oe],T,j,le);s(_.anchor,T,j);return}if(O===jr){$(_,T,j);return}if(le!==2&&H&1&&P)if(le===0)P.persisted&&!ne[Cn]?s(ne,T,j):(P.beforeEnter(ne),s(ne,T,j),qt(()=>P.enter(ne),se));else{const{leave:oe,delayLeave:F,afterLeave:G}=P,ye=()=>{_.ctx.isUnmounted?o(ne):s(ne,T,j)},Ce=()=>{const Le=ne._isLeaving||!!ne[Cn];ne._isLeaving&&ne[Cn](!0),P.persisted&&!Le?ye():oe(ne,()=>{ye(),G&&G()})};F?F(ne,ye,Ce):Ce()}else s(ne,T,j)},Be=(_,T,j,le=!1,se=!1)=>{const{type:ne,props:O,ref:P,children:V,dynamicChildren:H,shapeFlag:pe,patchFlag:oe,dirs:F,cacheIndex:G,memo:ye}=_;if(oe===-2&&(se=!1),P!=null&&(ts(),Ho(P,null,j,_,!0),ns()),G!=null&&(T.renderCache[G]=void 0),pe&256){T.ctx.deactivate(_);return}const Ce=pe&1&&F,Le=!ho(_);let Qe;if(Le&&(Qe=O&&O.onVnodeBeforeUnmount)&&bn(Qe,T,_),pe&6)nt(_.component,j,le);else{if(pe&128){_.suspense.unmount(j,le);return}Ce&&Is(_,null,T,"beforeUnmount"),pe&64?_.type.remove(_,T,j,ut,le):H&&!H.hasOnce&&(ne!==Ae||oe>0&&oe&64)?Ye(H,T,j,!1,!0):(ne===Ae&&oe&384||!se&&pe&16)&&Ye(V,T,j),le&&rt(_)}const He=ye!=null&&G==null;(Le&&(Qe=O&&O.onVnodeUnmounted)||Ce||He)&&qt(()=>{Qe&&bn(Qe,T,_),Ce&&Is(_,null,T,"unmounted"),He&&(_.el=null)},j)},rt=_=>{const{type:T,el:j,anchor:le,transition:se}=_;if(T===Ae){at(j,le);return}if(T===jr){k(_);return}const ne=()=>{o(j),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(_.shapeFlag&1&&se&&!se.persisted){const{leave:O,delayLeave:P}=se,V=()=>O(j,ne);P?P(_.el,ne,V):V()}else ne()},at=(_,T)=>{let j;for(;_!==T;)j=p(_),o(_),_=j;o(T)},nt=(_,T,j)=>{const{bum:le,scope:se,job:ne,subTree:O,um:P,m:V,a:H}=_;Uu(V),Uu(H),le&&Hr(le),se.stop(),ne&&(ne.flags|=8,Be(O,_,T,j)),P&&qt(P,T),qt(()=>{_.isUnmounted=!0},T)},Ye=(_,T,j,le=!1,se=!1,ne=0)=>{for(let O=ne;O<_.length;O++)Be(_[O],T,j,le,se)},qe=_=>{if(_.shapeFlag&6)return qe(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const T=p(_.anchor||_.el),j=T&&T[lf];return j?p(j):T};let ot=!1;const Ie=(_,T,j)=>{let le;_==null?T._vnode&&(Be(T._vnode,null,null,!0),le=T._vnode.component):w(T._vnode||null,_,T,null,null,null,j),T._vnode=_,ot||(ot=!0,Tu(le),nf(),ot=!1)},ut={p:w,um:Be,m:de,r:rt,mt:he,mc:M,pc:fe,pbc:K,n:qe,o:e};return{render:Ie,hydrate:void 0,createApp:_v(Ie)}}function il({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 Ms({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Lv(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ni(e,t,n=!1){const s=e.children,o=t.children;if(Se(s)&&Se(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]=Hn(o[r]),i.el=a.el),!n&&i.patchFlag!==-2&&Ni(a,i)),i.type===br&&(i.patchFlag===-1&&(i=o[r]=Hn(i)),i.el=a.el),i.type===gn&&!i.el&&(i.el=a.el)}}function Dv(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 Tf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Tf(t)}function Uu(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 If=e=>e.__isSuspense;function Nv(e,t){t&&t.pendingBranch?Se(e)?t.effects.push(...e):t.effects.push(e):Uh(e)}const Ae=Symbol.for("v-fgt"),br=Symbol.for("v-txt"),gn=Symbol.for("v-cmt"),jr=Symbol.for("v-stc"),Jn=[];let Vt=null;function x(e=!1){Jn.push(Vt=e?null:[])}function Fi(){Jn.pop(),Vt=Jn[Jn.length-1]||null}let bo=1;function Zr(e,t=!1){bo+=e,e<0&&Vt&&t&&(Vt.hasOnce=!0)}function Mf(e){return e.dynamicChildren=bo>0?Vt||fo:null,Fi(),bo>0&&Vt&&Vt.push(e),e}function Y(e,t,n,s,o,r){return Mf(S(e,t,n,s,o,r,!0))}function N(e,t,n,s,o){return Mf(v(e,t,n,s,o,!0))}function tr(e){return e?e.__v_isVNode===!0:!1}function ro(e,t){return e.type===t.type&&e.key===t.key}const Rf=({key:e})=>e??null,Wr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?it(e)||pt(e)||Te(e)?{i:Pt,r:e,k:t,f:!!n}:e:null);function S(e,t=null,n=null,s=0,o=null,r=e===Ae?0:1,a=!1,i=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rf(t),ref:t&&Wr(t),scopeId:of,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:Pt};return i?(ea(u,n),r&128&&e.normalize(u)):n&&(u.shapeFlag|=it(n)?8:16),bo>0&&!a&&Vt&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Vt.push(u),u}const v=Fv;function Fv(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===pf)&&(e=gn),tr(e)){const i=_s(e,t,!0);return n&&ea(i,n),bo>0&&!r&&Vt&&(i.shapeFlag&6?Vt[Vt.indexOf(e)]=i:Vt.push(i)),i.patchFlag=-2,i}if(zv(e)&&(e=e.__vccOpts),t){t=Tt(t);let{class:i,style:u}=t;i&&!it(i)&&(t.class=xe(i)),Je(u)&&(Ea(u)&&!Se(u)&&(u=vt({},u)),t.style=hn(u))}const a=it(e)?1:If(e)?128:zh(e)?64:Je(e)?4:Te(e)?2:0;return S(e,t,n,s,o,a,r,!0)}function Tt(e){return e?Ea(e)||Sf(e)?vt({},e):e:null}function _s(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:a,children:i,transition:u}=e,c=t?Oe(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Rf(c),ref:t&&t.ref?n&&r?Se(r)?r.concat(Wr(t)):[r,Wr(t)]:Wr(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!==Ae?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&&_s(e.ssContent),ssFallback:e.ssFallback&&_s(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&s&&Zo(d,u.clone(d)),d}function z(e=" ",t=0){return v(br,null,e,t)}function qv(e,t){const n=v(jr,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(x(),N(gn,null,e)):v(gn,null,e)}function On(e){return e==null||typeof e=="boolean"?v(gn):Se(e)?v(Ae,null,e.slice()):tr(e)?Hn(e):v(br,null,String(e))}function Hn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_s(e)}function ea(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Se(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),ea(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Sf(t)?t._ctx=Pt:o===3&&Pt&&(Pt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Te(t)){if(s&65){ea(e,{default:t});return}t={default:t,_ctx:Pt},n=32}else t=String(t),s&64?(n=16,t=[z(t)]):n=8;e.children=t,e.shapeFlag|=n}function Oe(...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=xe([t.class,s.class]));else if(o==="style")t.style=hn([t.style,s.style]);else if(va(o)){const r=t[o],a=s[o];a&&r!==a&&!(Se(r)&&r.includes(a))?t[o]=r?[].concat(r,a):a:a==null&&r==null&&!ga(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 Bv=yf();let Vv=0;function Uv(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Bv,r={uid:Vv++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Id(!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:Af(s,o),emitsOptions:_f(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=wv.bind(null,r),e.ce&&e.ce(r),r}let Lt=null;const Xt=()=>Lt||Pt;let ta,Vl;{const e=wa(),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)}};ta=t("__VUE_INSTANCE_SETTERS__",n=>Lt=n),Vl=t("__VUE_SSR_SETTERS__",n=>nr=n)}const _r=e=>{const t=Lt;return ta(e),e.scope.on(),()=>{e.scope.off(),ta(t)}},Hu=()=>{Lt&&Lt.scope.off(),ta(null)};function Lf(e){return e.vnode.shapeFlag&4}let nr=!1;function Hv(e,t=!1,n=!1){t&&Vl(t);const{props:s,children:o}=e.vnode,r=Lf(e);Ev(e,s,r,t),$v(e,o,n||t);const a=r?jv(e,t):void 0;return t&&Vl(!1),a}function jv(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,dv);const{setup:s}=n;if(s){ts();const o=e.setupContext=s.length>1?Nf(e):null,r=_r(e),a=hr(s,e,0,[e.props,o]),i=Cd(a);if(ns(),r(),(i||e.sp)&&!ho(e)&&cf(e),i){if(a.then(Hu,Hu),t)return a.then(u=>{ju(e,u)}).catch(u=>{Pa(u,e,0)});e.asyncDep=a}else ju(e,a)}else Df(e)}function ju(e,t,n){Te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Je(t)&&(e.setupState=Jd(t)),Df(e)}function Df(e,t,n){const s=e.type;e.render||(e.render=s.render||Tn);{const o=_r(e);ts();try{mv(e)}finally{ns(),o()}}}const Wv={get(e,t){return Rt(e,"get",""),e[t]}};function Nf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Wv),slots:e.slots,emit:e.emit,expose:t}}function Ma(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Jd(Yd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in jo)return jo[n](e)},has(t,n){return n in t||n in jo}})):e.proxy}function Kv(e,t=!0){return Te(e)?e.displayName||e.name:e.name||t&&e.__name}function zv(e){return Te(e)&&"__vccOpts"in e}const te=(e,t)=>Nh(e,t,nr);function tn(e,t,n){try{Zr(-1);const s=arguments.length;return s===2?Je(t)&&!Se(t)?tr(t)?v(e,null,[t]):v(e,t):v(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&tr(n)&&(n=[n]),v(e,t,n))}finally{Zr(1)}}function Gv(e,t,n,s){const o=n[s];if(o&&Yv(o,e))return o;const r=t();return r.memo=e.slice(),r.cacheIndex=s,n[s]=r}function Yv(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s<n.length;s++)if(At(n[s],t[s]))return!1;return bo>0&&Vt&&Vt.push(e),!0}const Xv="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 Ul;const Wu=typeof window<"u"&&window.trustedTypes;if(Wu)try{Ul=Wu.createPolicy("vue",{createHTML:e=>e})}catch{}const Ff=Ul?e=>Ul.createHTML(e):e=>e,Jv="http://www.w3.org/2000/svg",Qv="http://www.w3.org/1998/Math/MathML",Un=typeof document<"u"?document:null,Ku=Un&&Un.createElement("template"),Zv={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(Jv,e):t==="mathml"?Un.createElementNS(Qv,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{Ku.innerHTML=Ff(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=Ku.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]}},fs="transition",To="animation",_o=Symbol("_vtc"),qf={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},eg=vt({},Qh,qf),Rs=(e,t=[])=>{Se(e)?e.forEach(n=>n(...t)):e&&e(...t)},zu=e=>e?Se(e)?e.some(t=>t.length>1):e.length>1:!1;function tg(e){const t={};for(const W in e)W in qf||(t[W]=e[W]);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=ng(o),w=g&&g[0],C=g&&g[1],{onBeforeEnter:h,onEnter:b,onEnterCancelled:$,onLeave:k,onLeaveCancelled:R,onBeforeAppear:I=h,onAppear:A=b,onAppearCancelled:M=$}=t,B=(W,ue,he,J)=>{W._enterCancelled=J,hs(W,ue?d:i),hs(W,ue?c:a),he&&he()},K=(W,ue)=>{W._isLeaving=!1,hs(W,f),hs(W,m),hs(W,p),ue&&ue()},X=W=>(ue,he)=>{const J=W?A:b,ce=()=>B(ue,W,he);Rs(J,[ue,ce]),Gu(()=>{hs(ue,W?u:r),kn(ue,W?d:i),zu(J)||Yu(ue,s,w,ce)})};return vt(t,{onBeforeEnter(W){Rs(h,[W]),kn(W,r),kn(W,a)},onBeforeAppear(W){Rs(I,[W]),kn(W,u),kn(W,c)},onEnter:X(!1),onAppear:X(!0),onLeave(W,ue){W._isLeaving=!0;const he=()=>K(W,ue);kn(W,f),W._enterCancelled?(kn(W,p),Hl(W)):(Hl(W),kn(W,p)),Gu(()=>{W._isLeaving&&(hs(W,f),kn(W,m),zu(k)||Yu(W,s,C,he))}),Rs(k,[W,he])},onEnterCancelled(W){B(W,!1,void 0,!0),Rs($,[W])},onAppearCancelled(W){B(W,!0,void 0,!0),Rs(M,[W])},onLeaveCancelled(W){K(W),Rs(R,[W])}})}function ng(e){if(e==null)return null;if(Je(e))return[ul(e.enter),ul(e.leave)];{const t=ul(e);return[t,t]}}function ul(e){return nh(e)}function kn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[_o]||(e[_o]=new Set)).add(t)}function hs(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[_o];n&&(n.delete(t),n.size||(e[_o]=void 0))}function Gu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let sg=0;function Yu(e,t,n,s){const o=e._endId=++sg,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:a,timeout:i,propCount:u}=Bf(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 Bf(e,t){const n=window.getComputedStyle(e),s=g=>(n[g]||"").split(", "),o=s(`${fs}Delay`),r=s(`${fs}Duration`),a=Xu(o,r),i=s(`${To}Delay`),u=s(`${To}Duration`),c=Xu(i,u);let d=null,f=0,p=0;t===fs?a>0&&(d=fs,f=a,p=r.length):t===To?c>0&&(d=To,f=c,p=u.length):(f=Math.max(a,c),d=f>0?a>c?fs:To:null,p=d?d===fs?r.length:u.length:0);const m=d===fs&&/\b(?:transform|all)(?:,|$)/.test(s(`${fs}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:m}}function Xu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Ju(n)+Ju(e[s])))}function Ju(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Hl(e){return(e?e.ownerDocument:document).body.offsetHeight}function og(e,t,n){const s=e[_o];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const na=Symbol("_vod"),qi=Symbol("_vsh"),jl={name:"show",beforeMount(e,{value:t},{transition:n}){e[na]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):$o(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),$o(e,!0),s.enter(e)):s.leave(e,()=>{$o(e,!1)}):$o(e,t))},beforeUnmount(e,{value:t}){$o(e,t)}};function $o(e,t){e.style.display=t?e[na]:"none",e[qi]=!t}const rg=Symbol(""),ag=/(?:^|;)\s*display\s*:/;function lg(e,t,n){const s=e.style,o=it(n);let r=!1;if(n&&!o){if(t)if(it(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();n[i]==null&&qo(s,i,"")}else for(const a in t)n[a]==null&&qo(s,a,"");for(const a in n){a==="display"&&(r=!0);const i=n[a];i!=null?ug(e,a,!it(t)&&t?t[a]:void 0,i)||qo(s,a,i):qo(s,a,"")}}else if(o){if(t!==n){const a=s[rg];a&&(n+=";"+a),s.cssText=n,r=ag.test(n)}}else t&&e.removeAttribute("style");na in e&&(e[na]=r?s.display:"",e[qi]&&(s.display="none"))}const Qu=/\s*!important$/;function qo(e,t,n){if(Se(n))n.forEach(s=>qo(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ig(e,t);Qu.test(n)?e.setProperty(ls(s),n.replace(Qu,""),"important"):e[s]=n}}const Zu=["Webkit","Moz","ms"],cl={};function ig(e,t){const n=cl[t];if(n)return n;let s=Et(t);if(s!=="filter"&&s in e)return cl[t]=s;s=_a(s);for(let o=0;o<Zu.length;o++){const r=Zu[o]+s;if(r in e)return cl[t]=r}return t}function ug(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&it(s)&&n===s}const ec="http://www.w3.org/1999/xlink";function tc(e,t,n,s,o,r=ih(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ec,t.slice(6,t.length)):e.setAttributeNS(ec,t,n):n==null||r&&!Pd(n)?e.removeAttribute(t):e.setAttribute(t,r?"":nn(n)?String(n):n)}function nc(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ff(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=Pd(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 ao(e,t,n,s){e.addEventListener(t,n,s)}function cg(e,t,n,s){e.removeEventListener(t,n,s)}const sc=Symbol("_vei");function dg(e,t,n,s,o=null){const r=e[sc]||(e[sc]={}),a=r[t];if(s&&a)a.value=s;else{const[i,u]=mg(t);if(s){const c=r[t]=gg(s,o);ao(e,i,c,u)}else a&&(cg(e,i,a,u),r[t]=void 0)}}const fg=/(Once|Passive|Capture)$/,pg=/^on:?(?:Once|Passive|Capture)$/;function mg(e){let t,n;for(;(n=e.match(fg))&&!pg.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):ls(e.slice(2)),t]}let dl=0;const hg=Promise.resolve(),vg=()=>dl||(hg.then(()=>dl=0),dl=Date.now());function gg(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(Se(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=vg(),n}const oc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,yg=(e,t,n,s,o,r)=>{const a=o==="svg";t==="class"?og(e,s,a):t==="style"?lg(e,n,s):va(t)?ga(t)||dg(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bg(e,t,s,a))?(nc(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&tc(e,t,s,a,r,t!=="value")):e._isVueCE&&(_g(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!it(s)))?nc(e,Et(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),tc(e,t,s,a))};function bg(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&oc(t)&&Te(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 oc(t)&&it(n)?!1:t in e}function _g(e,t){const n=e._def.props;if(!n)return!1;const s=Et(t);return Array.isArray(n)?n.some(o=>Et(o)===s):Object.keys(n).some(o=>Et(o)===s)}const Vf=new WeakMap,Uf=new WeakMap,sa=Symbol("_moveCb"),rc=Symbol("_enterCb"),wg=e=>(delete e.props.mode,e),xg=wg({name:"TransitionGroup",props:vt({},eg,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Xt(),s=Jh();let o,r;return Ri(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!Eg(o[0].el,n.vnode.el,a)){o=[];return}o.forEach(Sg),o.forEach(Cg);const i=o.filter(Ag);Hl(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[sa]=p=>{p&&p.target!==c||(!p||p.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[sa]=null,hs(c,a))};c.addEventListener("transitionend",f)}),o=[]}),()=>{const a=je(e),i=tg(a);let u=a.tag||Ae;if(o=[],r)for(let c=0;c<r.length;c++){const d=r[c];d.el&&d.el instanceof Element&&!d.el[qi]&&(o.push(d),Zo(d,Dl(d,i,s,n)),Vf.set(d,Hf(d.el)))}r=t.default?uf(t.default()):[];for(let c=0;c<r.length;c++){const d=r[c];d.key!=null&&Zo(d,Dl(d,i,s,n))}return v(u,null,r)}}}),kg=xg;function Sg(e){const t=e.el;t[sa]&&t[sa](),t[rc]&&t[rc]()}function Cg(e){Uf.set(e,Hf(e.el))}function Ag(e){const t=Vf.get(e),n=Uf.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 Hf(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Eg(e,t,n){const s=e.cloneNode(),o=e[_o];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}=Bf(s);return r.removeChild(s),a}const ac=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Se(t)?n=>Hr(t,n):t};function Og(e){e.target.composing=!0}function lc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const fl=Symbol("_assign");function ic(e,t,n){return t&&(e=e.trim()),n&&(e=Si(e)),e}const jf={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[fl]=ac(o);const r=s||o.props&&o.props.type==="number";ao(e,t?"change":"input",a=>{a.target.composing||e[fl](ic(e.value,n,r))}),(n||r)&&ao(e,"change",()=>{e.value=ic(e.value,n,r)}),t||(ao(e,"compositionstart",Og),ao(e,"compositionend",lc),ao(e,"change",lc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},a){if(e[fl]=ac(a),e.composing)return;const i=(r||e.type==="number")&&!/^0\d/.test(e.value)?Si(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)}},Pg=["ctrl","shift","alt","meta"],Tg={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)=>Pg.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=Tg[t[a]];if(i&&i(o,t))return}return e(o,...r)})},$g={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Bs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const r=ls(o.key);if(t.some(a=>a===r||$g[a]===r))return e(o)})},Ig=vt({patchProp:yg},Zv);let uc;function Mg(){return uc||(uc=Mv(Ig))}const Rg=(...e)=>{const t=Mg().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Dg(s);if(!o)return;const r=t._component;!Te(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,Lg(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function Lg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Dg(e){return it(e)?document.querySelector(e):e}/*!
|
|
18
|
+
* shared v11.4.8
|
|
19
|
+
* (c) 2026 kazuya kawaguchi
|
|
20
|
+
* Released under the MIT License.
|
|
21
|
+
*/const oa=typeof window<"u",ks=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ng=(e,t,n)=>Fg({l:e,k:t,s:n}),Fg=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),wt=e=>typeof e=="number"&&isFinite(e),Wf=e=>Vi(e)==="[object Date]",wo=e=>Vi(e)==="[object RegExp]",Bi=e=>tt(e)&&Object.keys(e).length===0,xt=Object.assign,qg=Object.create,st=(e=null)=>qg(e);let cc;const Vs=()=>cc||(cc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:st()),Bg=Object.prototype.hasOwnProperty;function an(e,t){return Bg.call(e,t)}const ht=Array.isArray,ft=e=>typeof e=="function",ge=e=>typeof e=="string",Ke=e=>typeof e=="boolean",ze=e=>e!==null&&typeof e=="object",Vg=e=>ze(e)&&ft(e.then)&&ft(e.catch),Kf=Object.prototype.toString,Vi=e=>Kf.call(e),tt=e=>Vi(e)==="[object Object]",Ug=e=>e==null?"":ht(e)||tt(e)&&e.toString===Kf?JSON.stringify(e,null,2):String(e);function Ui(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}function Hg(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function dc(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function jg(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}const Wg=/^javascript:/i,Kg=/^(?:href|src|action|formaction)$/i,zg=/&#(?:x([0-9a-f]+)|(\d+));?/gi,Gg=/&(?:Tab|NewLine);/g,Yg=/:?/gi,Xg=/[\u0000-\u0020\u007f-\u009f]/g,Jg=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,Qg=/(^|[\s"'<>/])on(\w+\s*=)/gi,Zg=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function ey(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 Hi(e){const t=e.replace(zg,ey).replace(Gg,"").replace(Yg,":").replace(Xg,"");return Wg.test(t)}function ty(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+=Hi(f)?"url(about:blank)":e.slice(r,i+1),s=i+1}return n+e.slice(s)}function fc(e,t){if(Kg.test(e)&&Hi(t))return"about:blank";const n=e.toLowerCase()==="style"?ty(t):t;return jg(n)}function ny(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(t,n,s)=>`${n}="${fc(n,s)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(t,n,s)=>`${n}='${fc(n,s)}'`),Jg.test(e)&&(e=e.replace(Qg,"$1on$2")),e=e.replace(Zg,(t,n,s,o)=>Hi(o)?`${n}${s}about:blank`:t),e}const Ir=e=>!ze(e)||ht(e);function Kr(e,t){if(Ir(e)||Ir(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()),Ir(o[r])||Ir(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 sy(e,t,n){return{line:e,column:t,offset:n}}function Wl(e,t,n){return{start:e,end:t}}const Ze={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},oy=17;function Ra(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 ry(e){throw e}const _n=" ",ay="\r",Mt=`
|
|
26
|
+
`,ly="\u2028",iy="\u2029";function uy(e){const t=e;let n=0,s=1,o=1,r=0;const a=A=>t[A]===ay&&t[A+1]===Mt,i=A=>t[A]===Mt,u=A=>t[A]===iy,c=A=>t[A]===ly,d=A=>a(A)||i(A)||u(A)||c(A),f=()=>n,p=()=>s,m=()=>o,g=()=>r,w=A=>a(A)||u(A)||c(A)?Mt:t[A],C=()=>w(n),h=()=>w(n+r);function b(){return r=0,d(n)&&(s++,o=0),a(n)&&n++,n++,o++,t[n]}function $(){return a(n+r)&&r++,r++,t[n+r]}function k(){n=0,s=1,o=1,r=0}function R(A=0){r=A}function I(){const A=n+r;for(;A!==n;)b();r=0}return{index:f,line:p,column:m,peekOffset:g,charAt:w,currentChar:C,currentPeek:h,next:b,peek:$,reset:k,resetPeek:R,skipToPeek:I}}const Bn=void 0,cy=".",pc="'",dy="tokenizer";function fy(e,t={}){const n=t.location!==!1,s=uy(e),o=()=>s.index(),r=()=>sy(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(O,P,V,...H){const pe=c();if(P.column+=V,P.offset+=V,d){const oe=n?Wl(pe.startLoc,P):null,F=Ra(O,oe,{domain:dy,args:H});d(F)}}function p(O,P,V){O.endLoc=r(),O.currentType=P;const H={type:P};return n&&(H.loc=Wl(O.startLoc,O.endLoc)),V!=null&&(H.value=V),H}const m=O=>p(O,13);function g(O,P){return O.currentChar()===P?(O.next(),P):(f(Ze.EXPECTED_TOKEN,r(),0,P),"")}function w(O){let P="";for(;O.currentPeek()===_n||O.currentPeek()===Mt;)P+=O.currentPeek(),O.peek();return P}function C(O){const P=w(O);return O.skipToPeek(),P}function h(O){if(O===Bn)return!1;const P=O.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P===95}function b(O){if(O===Bn)return!1;const P=O.charCodeAt(0);return P>=48&&P<=57}function $(O,P){const{currentType:V}=P;if(V!==2)return!1;w(O);const H=h(O.currentPeek());return O.resetPeek(),H}function k(O,P){const{currentType:V}=P;if(V!==2)return!1;w(O);const H=O.currentPeek()==="-"?O.peek():O.currentPeek(),pe=b(H);return O.resetPeek(),pe}function R(O,P){const{currentType:V}=P;if(V!==2)return!1;w(O);const H=O.currentPeek()===pc;return O.resetPeek(),H}function I(O,P){const{currentType:V}=P;if(V!==7)return!1;w(O);const H=O.currentPeek()===".";return O.resetPeek(),H}function A(O,P){const{currentType:V}=P;if(V!==8)return!1;w(O);const H=h(O.currentPeek());return O.resetPeek(),H}function M(O,P){const{currentType:V}=P;if(!(V===7||V===11))return!1;w(O);const H=O.currentPeek()===":";return O.resetPeek(),H}function B(O,P){const{currentType:V}=P;if(V!==9)return!1;const H=()=>{const oe=O.currentPeek();return oe==="{"?h(O.peek()):oe==="@"||oe==="|"||oe===":"||oe==="."||oe===_n||!oe?!1:oe===Mt?(O.peek(),H()):X(O,!1)},pe=H();return O.resetPeek(),pe}function K(O){w(O);const P=O.currentPeek()==="|";return O.resetPeek(),P}function X(O,P=!0){const V=(pe=!1,oe="")=>{const F=O.currentPeek();return F==="{"||F==="@"||!F?pe:F==="|"?!(oe===_n||oe===Mt):F===_n?(O.peek(),V(!0,_n)):F===Mt?(O.peek(),V(!0,Mt)):!0},H=V();return P&&O.resetPeek(),H}function W(O,P){const V=O.currentChar();return V===Bn?Bn:P(V)?(O.next(),V):null}function ue(O){const P=O.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===95||P===36}function he(O){return W(O,ue)}function J(O){const P=O.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===95||P===36||P===45}function ce(O){return W(O,J)}function re(O){const P=O.charCodeAt(0);return P>=48&&P<=57}function fe(O){return W(O,re)}function ae(O){const P=O.charCodeAt(0);return P>=48&&P<=57||P>=65&&P<=70||P>=97&&P<=102}function Z(O){return W(O,ae)}function de(O){let P="",V="";for(;P=fe(O);)V+=P;return V}function Be(O){let P="";for(;;){const V=O.currentChar();if(V==="\\"){const H=O.peek();H==="{"||H==="}"||H==="@"||H==="|"||H==="\\"?(P+=V+H,O.next(),O.next()):(O.resetPeek(),P+=V,O.next())}else{if(V==="{"||V==="}"||V==="@"||V==="|"||!V)break;if(V===_n||V===Mt)if(X(O))P+=V,O.next();else{if(K(O))break;P+=V,O.next()}else P+=V,O.next()}}return P}function rt(O){C(O);let P="",V="";for(;P=ce(O);)V+=P;const H=O.currentChar();if(H&&H!=="}"&&H!==Bn&&H!==_n&&H!==Mt&&H!==" "){const pe=ut(O);return f(Ze.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,V+pe),V+pe}return O.currentChar()===Bn&&f(Ze.UNTERMINATED_CLOSING_BRACE,r(),0),V}function at(O){C(O);let P="";return O.currentChar()==="-"?(O.next(),P+=`-${de(O)}`):P+=de(O),O.currentChar()===Bn&&f(Ze.UNTERMINATED_CLOSING_BRACE,r(),0),P}function nt(O){return O!==pc&&O!==Mt}function Ye(O){C(O),g(O,"'");let P="",V="";for(;P=W(O,nt);)P==="\\"?V+=qe(O):V+=P;const H=O.currentChar();return H===Mt||H===Bn?(f(Ze.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),H===Mt&&(O.next(),g(O,"'")),V):(g(O,"'"),V)}function qe(O){const P=O.currentChar();switch(P){case"\\":case"'":return O.next(),`\\${P}`;case"u":return ot(O,P,4);case"U":return ot(O,P,6);default:return f(Ze.UNKNOWN_ESCAPE_SEQUENCE,r(),0,P),""}}function ot(O,P,V){g(O,P);let H="";for(let pe=0;pe<V;pe++){const oe=Z(O);if(!oe){f(Ze.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${P}${H}${O.currentChar()}`);break}H+=oe}return`\\${P}${H}`}function Ie(O){return O!=="{"&&O!=="}"&&O!==_n&&O!==Mt}function ut(O){C(O);let P="",V="";for(;P=W(O,Ie);)V+=P;return V}function me(O){let P="",V="";for(;P=he(O);)V+=P;return V}function _(O){const P=V=>{const H=O.currentChar();return H==="{"||H==="@"||H==="|"||H==="("||H===")"||!H||H===_n?V:(V+=H,O.next(),P(V))};return P("")}function T(O){C(O);const P=g(O,"|");return C(O),P}function j(O,P){let V=null;switch(O.currentChar()){case"{":return P.braceNest>=1&&f(Ze.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),O.next(),V=p(P,2,"{"),C(O),P.braceNest++,V;case"}":return P.braceNest>0&&P.currentType===2&&f(Ze.EMPTY_PLACEHOLDER,r(),0),O.next(),V=p(P,3,"}"),P.braceNest--,P.braceNest>0&&C(O),P.inLinked&&P.braceNest===0&&(P.inLinked=!1),V;case"@":return P.braceNest>0&&f(Ze.UNTERMINATED_CLOSING_BRACE,r(),0),V=le(O,P)||m(P),P.braceNest=0,V;default:{let pe=!0,oe=!0,F=!0;if(K(O))return P.braceNest>0&&f(Ze.UNTERMINATED_CLOSING_BRACE,r(),0),V=p(P,1,T(O)),P.braceNest=0,P.inLinked=!1,V;if(P.braceNest>0&&(P.currentType===4||P.currentType===5||P.currentType===6))return f(Ze.UNTERMINATED_CLOSING_BRACE,r(),0),P.braceNest=0,se(O,P);if(pe=$(O,P))return V=p(P,4,rt(O)),C(O),V;if(oe=k(O,P))return V=p(P,5,at(O)),C(O),V;if(F=R(O,P))return V=p(P,6,Ye(O)),C(O),V;if(!pe&&!oe&&!F)return V=p(P,12,ut(O)),f(Ze.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,V.value),C(O),V;break}}return V}function le(O,P){const{currentType:V}=P;let H=null;const pe=O.currentChar();switch((V===7||V===8||V===11||V===9)&&(pe===Mt||pe===_n)&&f(Ze.INVALID_LINKED_FORMAT,r(),0),pe){case"@":return O.next(),H=p(P,7,"@"),P.inLinked=!0,H;case".":return C(O),O.next(),p(P,8,".");case":":return C(O),O.next(),p(P,9,":");default:return K(O)?(H=p(P,1,T(O)),P.braceNest=0,P.inLinked=!1,H):I(O,P)||M(O,P)?(C(O),le(O,P)):A(O,P)?(C(O),p(P,11,me(O))):B(O,P)?(C(O),pe==="{"?j(O,P)||H:p(P,10,_(O))):(V===7&&f(Ze.INVALID_LINKED_FORMAT,r(),0),P.braceNest=0,P.inLinked=!1,se(O,P))}}function se(O,P){let V={type:13};if(P.braceNest>0)return j(O,P)||m(P);if(P.inLinked)return le(O,P)||m(P);switch(O.currentChar()){case"{":return j(O,P)||m(P);case"}":return f(Ze.UNBALANCED_CLOSING_BRACE,r(),0),O.next(),p(P,3,"}");case"@":return le(O,P)||m(P);default:{if(K(O))return V=p(P,1,T(O)),P.braceNest=0,P.inLinked=!1,V;if(X(O))return p(P,0,Be(O));break}}return V}function ne(){const{currentType:O,offset:P,startLoc:V,endLoc:H}=u;return u.lastType=O,u.lastOffset=P,u.lastStartLoc=V,u.lastEndLoc=H,u.offset=o(),u.startLoc=r(),s.currentChar()===Bn?p(u,13):se(s,u)}return{nextToken:ne,currentOffset:o,currentPosition:r,context:c}}const py="parser",my=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,hy=/\\([\\@{}|])/g;function vy(e,t){return t}function gy(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 yy(e={}){const t=e.location!==!1,{onError:n}=e;function s(h,b,$,k,...R){const I=h.currentPosition();if(I.offset+=k,I.column+=k,n){const A=t?Wl($,I):null,M=Ra(b,A,{domain:py,args:R});n(M)}}function o(h,b,$){const k={type:h};return t&&(k.start=b,k.end=b,k.loc={start:$,end:$}),k}function r(h,b,$,k){t&&(h.end=b,h.loc&&(h.loc.end=$))}function a(h,b){const $=h.context(),k=o(3,$.offset,$.startLoc);return k.value=b.replace(hy,vy),r(k,h.currentOffset(),h.currentPosition()),k}function i(h,b){const $=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=o(5,k,R);return I.index=parseInt(b,10),h.nextToken(),r(I,h.currentOffset(),h.currentPosition()),I}function u(h,b){const $=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=o(4,k,R);return I.key=b,h.nextToken(),r(I,h.currentOffset(),h.currentPosition()),I}function c(h,b){const $=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=o(9,k,R);return I.value=b.replace(my,gy),h.nextToken(),r(I,h.currentOffset(),h.currentPosition()),I}function d(h){const b=h.nextToken(),$=h.context(),{lastOffset:k,lastStartLoc:R}=$,I=o(8,k,R);return b.type!==11?(s(h,Ze.UNEXPECTED_EMPTY_LINKED_MODIFIER,$.lastStartLoc,0),I.value="",r(I,k,R),{nextConsumeToken:b,node:I}):(b.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,wn(b)),I.value=b.value||"",r(I,h.currentOffset(),h.currentPosition()),{node:I})}function f(h,b){const $=h.context(),k=o(7,$.offset,$.startLoc);return k.value=b,r(k,h.currentOffset(),h.currentPosition()),k}function p(h){const b=h.context(),$=o(6,b.offset,b.startLoc);let k=h.nextToken();if(k.type===8){const R=d(h);$.modifier=R.node,k=R.nextConsumeToken||h.nextToken()}switch(k.type!==9&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(k)),k=h.nextToken(),k.type===2&&(k=h.nextToken()),k.type){case 10:k.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(k)),$.key=f(h,k.value||"");break;case 4:k.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(k)),$.key=u(h,k.value||"");break;case 5:k.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(k)),$.key=i(h,k.value||"");break;case 6:k.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(k)),$.key=c(h,k.value||"");break;default:{s(h,Ze.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const R=h.context(),I=o(7,R.offset,R.startLoc);return I.value="",r(I,R.offset,R.startLoc),$.key=I,r($,R.offset,R.startLoc),{nextConsumeToken:k,node:$}}}return r($,h.currentOffset(),h.currentPosition()),{node:$}}function m(h){const b=h.context(),$=b.currentType===1?h.currentOffset():b.offset,k=b.currentType===1?b.endLoc:b.startLoc,R=o(2,$,k);R.items=[];let I=null;do{const B=I||h.nextToken();switch(I=null,B.type){case 0:B.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(B)),R.items.push(a(h,B.value||""));break;case 5:B.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(B)),R.items.push(i(h,B.value||""));break;case 4:B.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(B)),R.items.push(u(h,B.value||""));break;case 6:B.value==null&&s(h,Ze.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,wn(B)),R.items.push(c(h,B.value||""));break;case 7:{const K=p(h);R.items.push(K.node),I=K.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const A=b.currentType===1?b.lastOffset:h.currentOffset(),M=b.currentType===1?b.lastEndLoc:h.currentPosition();return r(R,A,M),R}function g(h,b,$,k){const R=h.context();let I=k.items.length===0;const A=o(1,b,$);A.cases=[],A.cases.push(k);do{const M=m(h);I||(I=M.items.length===0),A.cases.push(M)}while(R.currentType!==13);return I&&s(h,Ze.MUST_HAVE_MESSAGES_IN_PLURAL,$,0),r(A,h.currentOffset(),h.currentPosition()),A}function w(h){const b=h.context(),{offset:$,startLoc:k}=b,R=m(h);return b.currentType===13?R:g(h,$,k,R)}function C(h){const b=fy(h,xt({},e)),$=b.context(),k=o(0,$.offset,$.startLoc);return t&&k.loc&&(k.loc.source=h),k.body=w(b),e.onCacheKey&&(k.cacheKey=e.onCacheKey(h)),$.currentType!==13&&s(b,Ze.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,h[$.offset]||""),r(k,b.currentOffset(),b.currentPosition()),k}return{parse:C}}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 by(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function mc(e,t){for(let n=0;n<e.length;n++)ji(e[n],t)}function ji(e,t){switch(e.type){case 1:mc(e.cases,t),t.helper("plural");break;case 2:mc(e.items,t);break;case 6:{ji(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 _y(e,t={}){const n=by(e);n.helper("normalize"),e.body&&ji(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function wy(e){const t=e.body;return t.type===2?hc(t):t.cases.forEach(n=>hc(n)),e}function hc(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=Ui(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 lo(e){switch(e.t=e.type,e.type){case 0:{const t=e;lo(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++)lo(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++)lo(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;lo(t.key),t.k=t.key,delete t.key,t.modifier&&(lo(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 xy(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(w,C){a.code+=w}function c(w,C=!0){const h=C?s:"";u(o?h+" ".repeat(w):h)}function d(w=!0){const C=++a.indentLevel;w&&c(C)}function f(w=!0){const C=--a.indentLevel;w&&c(C)}function p(){c(a.indentLevel)}return{context:i,push:u,indent:d,deindent:f,newline:p,helper:w=>`_${w}`,needIndent:()=>a.needIndent}}function ky(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),xo(e,t.key),t.modifier?(e.push(", "),xo(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Sy(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&&(xo(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Cy(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&&(xo(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Ay(e,t){t.body?xo(e,t.body):e.push("null")}function xo(e,t){const{helper:n}=e;switch(t.type){case 0:Ay(e,t);break;case 1:Cy(e,t);break;case 2:Sy(e,t);break;case 6:ky(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 Ey=(e,t={})=>{const n=ge(t.mode)?t.mode:"normal",s=ge(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=xy(e,{filename:s,breakLineCode:o,needIndent:r});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(r),a.length>0&&(i.push(`const { ${Ui(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),i.newline()),i.push("return "),xo(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=xt({},t),s=!!n.jit,o=!!n.minify,r=n.optimize==null?!0:n.optimize,i=yy(n).parse(e);return s?(r&&wy(i),o&&lo(i),{ast:i,code:""}):(_y(i,n),Ey(i,n))}/*!
|
|
28
|
+
* core-base v11.4.8
|
|
29
|
+
* (c) 2026 kazuya kawaguchi
|
|
30
|
+
* Released under the MIT License.
|
|
31
|
+
*/function Py(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vs().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Vs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function $n(e){return ze(e)&&Wi(e)===0&&(an(e,"b")||an(e,"body"))}const zf=["b","body"];function Ty(e){return Ss(e,zf)}const Gf=["c","cases"];function $y(e){return Ss(e,Gf,[])}const Yf=["s","static"];function Iy(e){return Ss(e,Yf)}const Xf=["i","items"];function My(e){return Ss(e,Xf,[])}const Jf=["t","type"];function Wi(e){return Ss(e,Jf)}const Qf=["v","value"];function Mr(e,t){const n=Ss(e,Qf);if(n!=null)return n;throw sr(t)}const Zf=["m","modifier"];function Ry(e){return Ss(e,Zf)}const ep=["k","key"];function Ly(e){const t=Ss(e,ep);if(t)return t;throw sr(6)}function Ss(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 tp=[...zf,...Gf,...Yf,...Xf,...ep,...Zf,...Qf,...Jf];function sr(e){return new Error(`unhandled node type: ${e}`)}function pl(e){return n=>Dy(n,e)}function Dy(e,t){const n=Ty(t);if(n==null)throw sr(0);if(Wi(n)===1){const r=$y(n);return e.plural(r.reduce((a,i)=>[...a,vc(e,i)],[]))}else return vc(e,n)}function vc(e,t){const n=Iy(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=My(t).reduce((o,r)=>[...o,Kl(e,r)],[]);return e.normalize(s)}}function Kl(e,t){const n=Wi(t);switch(n){case 3:return Mr(t,n);case 9:return Mr(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 sr(n)}case 5:{const s=t;if(an(s,"i")&&wt(s.i))return e.interpolate(e.list(s.i));if(an(s,"index")&&wt(s.index))return e.interpolate(e.list(s.index));throw sr(n)}case 6:{const s=t,o=Ry(s),r=Ly(s);return e.linked(Kl(e,r),o?Kl(e,o):void 0,e.type)}case 7:return Mr(t,n);case 8:return Mr(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Ny=e=>e;let Rr=st();function Fy(e,t={}){let n=!1;const s=t.onError||ry;return t.onError=o=>{n=!0,s(o)},{...Oy(e,t),detectError:n}}function qy(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ge(e)){Ke(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||Ny)(e),o=Rr[s];if(o)return o;const{ast:r,detectError:a}=Fy(e,{...t,location:!1,jit:!0}),i=pl(r);return a?i:Rr[s]=i}else{const n=e.cacheKey;if(n){const s=Rr[n];return s||(Rr[n]=pl(e))}else return pl(e)}}let or=null;function By(e){or=e}function Vy(e,t,n){or&&or.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Uy=Hy("function:translate");function Hy(e){return t=>or&&or.emit(e,t)}const Gn={INVALID_ARGUMENT:oy,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},jy=24;function Yn(e){return Ra(e,null,void 0)}function Ki(e,t){return t.locale!=null?gc(t.locale):gc(e.locale)}let ml;function gc(e){if(ge(e))return e;if(ft(e)){if(e.resolvedOnce&&ml!=null)return ml;if(e.constructor.name==="Function"){const t=e();if(Vg(t))throw Yn(Gn.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ml=t}else throw Yn(Gn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Yn(Gn.NOT_SUPPORT_LOCALE_TYPE)}function Wy(e,t,n){return[...new Set([n,...ht(t)?t:ze(t)?Object.keys(t):ge(t)?[t]:[n]])]}function zl(e,t,n){const s=ge(n)?n:rr,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let a=[n];for(;ht(a);)a=yc(r,a,t);const i=ht(t)||!tt(t)?t:t.default?t.default:null;a=ge(i)?[i]:i,ht(a)&&yc(r,a,!1),o.__localeChainCache.set(s,r)}return r}function yc(e,t,n){let s=!0;for(let o=0;o<t.length&&Ke(s);o++){const r=t[o];ge(r)&&(s=Ky(e,t[o],n))}return s}function Ky(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=zy(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function zy(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),(ht(n)||tt(n))&&n[o]&&(s=n[o])}return s}const Cs=[];Cs[0]={w:[0],i:[3,0],"[":[4],o:[7]};Cs[1]={w:[1],".":[2],"[":[4],o:[7]};Cs[2]={w:[2],i:[3,0],0:[3,0]};Cs[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Cs[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Cs[5]={"'":[4,0],o:8,l:[5,0]};Cs[6]={'"':[4,0],o:8,l:[6,0]};const Gy=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Yy(e){return Gy.test(e)}function Xy(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 Jy(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 Qy(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Yy(t)?Xy(t):"*"+t}function Zy(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=Qy(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=Jy(r),f=Cs[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 bc=new Map;function eb(e,t){return ze(e)?e[t]:null}function tb(e,t){if(!ze(e))return null;let n=bc.get(t);if(n||(n=Zy(t),n&&bc.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const a=n[r];if(tp.includes(a)&&$n(o)||!ze(o)||!an(o,a))return null;const i=o[a];if(i===void 0||ft(o))return null;o=i,r++}return o}const nb="11.4.8",La=-1,rr="en-US",ra="",_c=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function sb(){return{upper:(e,t)=>t==="text"&&ge(e)?e.toUpperCase():t==="vnode"&&ze(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&ge(e)?e.toLowerCase():t==="vnode"&&ze(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&ge(e)?_c(e):t==="vnode"&&ze(e)&&"__v_isVNode"in e?_c(e.children):e}}let np;function ob(e){np=e}let sp;function rb(e){sp=e}let op;function ab(e){op=e}let rp=null;const lb=e=>{rp=e},ib=()=>rp;let ap=null;const wc=e=>{ap=e},ub=()=>ap;let xc=0;function cb(e={}){const t=ft(e.onWarn)?e.onWarn:Hg,n=ge(e.version)?e.version:nb,s=ge(e.locale)||ft(e.locale)?e.locale:rr,o=ft(s)?rr:s,r=ht(e.fallbackLocale)||tt(e.fallbackLocale)||ge(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,a=tt(e.messages)?e.messages:hl(o),i=tt(e.datetimeFormats)?e.datetimeFormats:hl(o),u=tt(e.numberFormats)?e.numberFormats:hl(o),c=xt(st(),e.modifiers,sb()),d=e.pluralRules||st(),f=ft(e.missing)?e.missing:null,p=Ke(e.missingWarn)||wo(e.missingWarn)?e.missingWarn:!0,m=Ke(e.fallbackWarn)||wo(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,w=!!e.unresolving,C=ft(e.postTranslation)?e.postTranslation:null,h=tt(e.processor)?e.processor:null,b=Ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,$=!!e.escapeParameter,k=ft(e.messageCompiler)?e.messageCompiler:np,R=ft(e.messageResolver)?e.messageResolver:sp||eb,I=ft(e.localeFallbacker)?e.localeFallbacker:op||Wy,A=ze(e.fallbackContext)?e.fallbackContext:void 0,M=e,B=ze(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,K=ze(M.__numberFormatters)?M.__numberFormatters:new Map,X=ze(M.__meta)?M.__meta:{};xc++;const W={version:n,cid:xc,locale:s,fallbackLocale:r,messages:a,modifiers:c,pluralRules:d,missing:f,missingWarn:p,fallbackWarn:m,fallbackFormat:g,unresolving:w,postTranslation:C,processor:h,warnHtmlMessage:b,escapeParameter:$,messageCompiler:k,messageResolver:R,localeFallbacker:I,fallbackContext:A,onWarn:t,__meta:X};return W.datetimeFormats=i,W.numberFormats=u,W.__datetimeFormatters=B,W.__numberFormatters=K,__INTLIFY_PROD_DEVTOOLS__&&Vy(W,n,X),W}const hl=e=>({[e]:st()});function lp(e,t,n,s,o){const{missing:r,onWarn:a}=e;if(r!==null){const i=r(e,n,t,o);return ge(i)?i:t}else return t}function Io(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function db(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function fb(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(db(e,t[s]))return!0;return!1}function ip(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(tt(m)&&ge(p))return p;lp(e,t,p,o,a)}return null}function up(e,t,n){let s=`${e}__${t}`;return tt(n)&&!Bi(n)&&(s=`${s}__${JSON.stringify(n)}`),s}function cp(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 dp(e,t,n,s){const[,o,r,a]=e;let i=n;return ge(o)?t.key=o:tt(o)&&Object.keys(o).forEach(u=>{s.includes(u)?i[u]=o[u]:t[u]=o[u]}),ge(r)?t.locale=r:tt(r)&&(i=r),tt(a)&&(i=a),i}function kc(e,...t){const{datetimeFormats:n,unresolving:s,onWarn:o}=e,{__datetimeFormatters:r}=e;if(!ge(t[0])&&!Wf(t[0])&&!wt(t[0]))return ra;const[a,i,u,c]=Gl(...t),d=Ke(u.missingWarn)?u.missingWarn:e.missingWarn,f=Ke(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=!!u.part,m=Ki(e,u);if(!ge(a)||a===""){const b=new Intl.DateTimeFormat(m.replace(/!/g,""),c);return p?b.formatToParts(i):b.format(i)}const g=ip(e,a,m,n,d,f,"datetime format");if(!ge(g))return s?La:a;const w=n[g][a],C=up(g,a,c);let h=r.get(C);return h||(h=new Intl.DateTimeFormat(g,xt({},w,c)),r.set(C,h)),p?h.formatToParts(i):h.format(i)}const fp=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Gl(...e){const[t]=e,n=st(),s=st();let o;if(ge(t)){const a=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw Yn(Gn.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 Yn(Gn.INVALID_ISO_DATE_ARGUMENT)}}else if(Wf(t)){if(isNaN(t.getTime()))throw Yn(Gn.INVALID_DATE_ARGUMENT);o=t}else if(wt(t))o=t;else throw Yn(Gn.INVALID_ARGUMENT);const r=dp(e,n,s,fp);return[n.key||"",o,n,r]}function Sc(e,t,n){cp(e.__datetimeFormatters,t,n)}function Cc(e,...t){const{numberFormats:n,unresolving:s,onWarn:o}=e,{__numberFormatters:r}=e;if(!wt(t[0]))return ra;const[a,i,u,c]=Yl(...t),d=Ke(u.missingWarn)?u.missingWarn:e.missingWarn,f=Ke(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=!!u.part,m=Ki(e,u);if(!ge(a)||a===""){const b=new Intl.NumberFormat(m.replace(/!/g,""),c);return p?b.formatToParts(i):b.format(i)}const g=ip(e,a,m,n,d,f,"number format");if(!ge(g))return s?La:a;const w=n[g][a],C=up(g,a,c);let h=r.get(C);return h||(h=new Intl.NumberFormat(g,xt({},w,c)),r.set(C,h)),p?h.formatToParts(i):h.format(i)}const pp=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Yl(...e){const[t]=e,n=st(),s=st();if(!wt(t))throw Yn(Gn.INVALID_ARGUMENT);const o=t,r=dp(e,n,s,pp);return[n.key||"",o,n,r]}function Ac(e,t,n){cp(e.__numberFormatters,t,n)}const pb=e=>e,mb=e=>"",hb="text",vb=e=>e.length===0?"":Ui(e),gb=Ug;function vl(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function yb(e){var n,s;const t=wt(e.pluralIndex)?e.pluralIndex:-1;return wt((n=e.named)==null?void 0:n.count)?e.named.count:wt((s=e.named)==null?void 0:s.n)?e.named.n:t}function bb(e={}){var h,b,$,k;const t=e.locale,n=yb(e),s=ge(t)&&ft((h=e.pluralRules)==null?void 0:h[t])?e.pluralRules[t]:vl,o=s===vl?void 0:vl,r=R=>R[s(n,R.length,o)],a=e.list||[],i=R=>a[R],u=e.named||st();wt(e.pluralIndex)&&(u.count||(u.count=e.pluralIndex),u.n||(u.n=e.pluralIndex));const c=R=>u[R];function d(R,I){const A=ft(e.messages)?e.messages(R,!!I):ze(e.messages)?e.messages[R]:!1;return A||(e.parent?e.parent.message(R):mb)}const f=R=>e.modifiers?e.modifiers[R]:pb,p=ft((b=e.processor)==null?void 0:b.normalize)?e.processor.normalize:vb,m=ft(($=e.processor)==null?void 0:$.interpolate)?e.processor.interpolate:gb,g=ge((k=e.processor)==null?void 0:k.type)?e.processor.type:hb,C={list:i,named:c,plural:r,linked:(R,...I)=>{const[A,M]=I;let B="text",K="";I.length===1?ze(A)?(K=A.modifier||K,B=A.type||B):ge(A)&&(K=A||K):I.length===2&&(ge(A)&&(K=A||K),ge(M)&&(B=M||B));const X=d(R,!0)(C),W=X===""||X===void 0?R:X,ue=B==="vnode"&&ht(W)&&K?W[0]:W;return K?f(K)(ue,B):ue},message:d,type:g,interpolate:m,normalize:p,values:xt(st(),a,u)};return C}const Ec=()=>"",rn=e=>ft(e);function Oc(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:a,messages:i}=e,[u,c]=Xl(...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=ge(c.default)||Ke(c.default)?Ke(c.default)?r?u:()=>u:c.default:n?r?u:()=>u:null,w=n||g!=null&&(ge(g)||ft(g)),C=Ki(e,c);p&&_b(c);let[h,b,$]=m?[u,C,i[C]||st()]:mp(e,u,C,a,f,d),k=h,R=u;if(!m&&!(ge(k)||$n(k)||rn(k))&&w&&(k=g,R=k),!m&&(!(ge(k)||$n(k)||rn(k))||!ge(b)))return o?La:u;let I=!1;const A=()=>{I=!0},M=rn(k)?k:hp(e,u,b,k,R,A);if(I)return k;const B=kb(e,b,$,c),K=bb(B),X=wb(e,M,K);let W=s?s(X,u):X;if(p&&ge(W)&&(W=ny(W)),__INTLIFY_PROD_DEVTOOLS__){const ue={timestamp:Date.now(),key:ge(u)?u:rn(k)?k.key:"",locale:b||(rn(k)?k.locale:""),format:ge(k)?k:rn(k)?k.source:"",message:W};ue.meta=xt({},e.__meta,ib()||{}),Uy(ue)}return W}function _b(e){ht(e.list)?e.list=e.list.map(t=>ge(t)?dc(t):t):ze(e.named)&&Object.keys(e.named).forEach(t=>{ge(e.named[t])&&(e.named[t]=dc(e.named[t]))})}function mp(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 w=0;w<d.length&&(p=d[w],f=a[p]||st(),(m=u(f,t))===null&&(m=f[t]),!(ge(m)||$n(m)||rn(m)));w++)if(!fb(p,d)){const C=lp(e,t,p,r,g);C!==t&&(m=C)}return[m,p,f]}function hp(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,xb(e,n,o,s,i,r));return u.locale=n,u.key=t,u.source=s,u}function wb(e,t,n){return t(n)}function Xl(...e){const[t,n,s]=e,o=st();if(!ge(t)&&!wt(t)&&!rn(t)&&!$n(t))throw Yn(Gn.INVALID_ARGUMENT);const r=wt(t)?String(t):(rn(t),t);return wt(n)?o.plural=n:ge(n)?o.default=n:tt(n)&&!Bi(n)?o.named=n:ht(n)&&(o.list=n),wt(s)?o.plural=s:ge(s)?o.default=s:tt(s)&&xt(o,s),[r,o]}function xb(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:a=>{throw r&&r(a),a},onCacheKey:a=>Ng(t,n,a)}}function kb(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 w=a(n,m);if(w==null&&(d||g)){const[C,,h]=mp(d||e,m,t,i,u,c);w=C??a(h,m)}if(ge(w)||$n(w)){let C=!1;const b=hp(e,m,t,w,m,()=>{C=!0});return C?Ec:b}else return rn(w)?w:Ec}};return e.processor&&(p.processor=e.processor),s.list&&(p.list=s.list),s.named&&(p.named=s.named),wt(s.plural)&&(p.pluralIndex=s.plural),p}Py();/*!
|
|
32
|
+
* vue-i18n v11.4.8
|
|
33
|
+
* (c) 2026 kazuya kawaguchi
|
|
34
|
+
* Released under the MIT License.
|
|
35
|
+
*/const Sb="11.4.8";function Cb(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Vs().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Vs().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Vs().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Vs().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ut={UNEXPECTED_RETURN_TYPE:jy,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 Ra(e,null,void 0)}const Jl=ks("__translateVNode"),Ql=ks("__datetimeParts"),Zl=ks("__numberParts"),vp=ks("__setPluralRules"),gp=ks("__injectWithOption"),uo=ks("__dispose");function ar(e){if(!ze(e)||$n(e))return e;for(const t in e)if(an(e,t))if(!t.includes("."))ze(e[t])&&ar(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)?tp.includes(n[s])||delete e[t]:(o[n[s]]=e[t],delete e[t])),!$n(o)){const a=o[n[s]];ze(a)&&ar(a)}}return e}function zi(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,a=tt(n)?n:ht(s)?st():{[e]:st()};if(ht(s)&&s.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:c}=i;u?(a[u]=a[u]||st(),Kr(c,a[u])):Kr(c,a)}else ge(i)&&Kr(JSON.parse(i),a)}),o==null&&r)for(const i in a)an(a,i)&&ar(a[i]);return a}function yp(e){return e.type}function bp(e,t,n){let s=ze(t.messages)?t.messages:st();"__i18nGlobal"in n&&(s=zi(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 Pc(e){return v(br,null,e,0)}function lr(){return Xt()}const Tc="__INTLIFY_META__",$c=()=>[],Ab=()=>!1;let Ic=0;function Mc(e){return(t,n,s,o)=>e(n,s,lr()||void 0,o)}const Eb=()=>{const e=lr();let t=null;return e&&(t=yp(e)[Tc])?{[Tc]:t}:null};function aa(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,o=e.flatJson,r=oa?D:Oa;let a=Ke(e.inheritLocale)?e.inheritLocale:!0;const i=r(t&&a?t.locale.value:ge(e.locale)?e.locale:rr),u=r(t&&a?t.fallbackLocale.value:ge(e.fallbackLocale)||ht(e.fallbackLocale)||tt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),c=r(zi(i.value,e)),d=r(tt(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),f=r(tt(e.numberFormats)?e.numberFormats:{[i.value]:{}});let p=t?t.missingWarn:Ke(e.missingWarn)||wo(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:Ke(e.fallbackWarn)||wo(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:Ke(e.fallbackRoot)?e.fallbackRoot:!0,w=!!e.fallbackFormat,C=ft(e.missing)?e.missing:null,h=ft(e.missing)?Mc(e.missing):null,b=ft(e.postTranslation)?e.postTranslation:null,$=t?t.warnHtmlMessage:Ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter;const R=t?t.modifiers:tt(e.modifiers)?e.modifiers:{};let I=e.pluralRules||t&&t.pluralRules,A;A=(()=>{s&&wc(null);const F={version:Sb,locale:i.value,fallbackLocale:u.value,messages:c.value,modifiers:R,pluralRules:I,missing:h===null?void 0:h,missingWarn:p,fallbackWarn:m,fallbackFormat:w,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:$,escapeParameter:k,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};F.datetimeFormats=d.value,F.numberFormats=f.value,F.__datetimeFormatters=tt(A)?A.__datetimeFormatters:void 0,F.__numberFormatters=tt(A)?A.__numberFormatters:void 0;const G=cb(F);return s&&wc(G),G})(),Io(A,i.value,u.value);function B(){return[i.value,u.value,c.value,d.value,f.value]}const K=te({get:()=>i.value,set:F=>{A.locale=F,i.value=F}}),X=te({get:()=>u.value,set:F=>{A.fallbackLocale=F,u.value=F,Io(A,i.value,F)}}),W=te(()=>c.value),ue=te(()=>d.value),he=te(()=>f.value);function J(){return ft(b)?b:null}function ce(F){b=F,A.postTranslation=F}function re(){return C}function fe(F){F!==null&&(h=Mc(F)),C=F,A.missing=h}const ae=(F,G,ye,Ce,Le,Qe)=>{B();let He;try{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=t?ub():void 0),He=F(A)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=void 0)}if(ye!=="translate exists"&&wt(He)&&He===La||ye==="translate exists"&&!He){const[jt,Wt]=G();return t&&g?Ce(t):Le(jt)}else{if(Qe(He))return He;throw zt(Ut.UNEXPECTED_RETURN_TYPE)}};function Z(...F){return ae(G=>Reflect.apply(Oc,null,[G,...F]),()=>Xl(...F),"translate",G=>Reflect.apply(G.t,G,[...F]),G=>G,G=>ge(G))}function de(...F){const[G,ye,Ce]=F;if(Ce&&!ze(Ce))throw zt(Ut.INVALID_ARGUMENT);return Z(G,ye,xt({resolvedMessage:!0},Ce||{}))}function Be(...F){return ae(G=>Reflect.apply(kc,null,[G,...F]),()=>Gl(...F),"datetime format",G=>Reflect.apply(G.d,G,[...F]),()=>ra,G=>ge(G)||ht(G))}function rt(...F){return ae(G=>Reflect.apply(Cc,null,[G,...F]),()=>Yl(...F),"number format",G=>Reflect.apply(G.n,G,[...F]),()=>ra,G=>ge(G)||ht(G))}function at(F){return F.map(G=>ge(G)||wt(G)||Ke(G)?Pc(String(G)):G)}const Ye={normalize:at,interpolate:F=>F,type:"vnode"};function qe(...F){return ae(G=>{let ye;const Ce=G;try{Ce.processor=Ye,ye=Reflect.apply(Oc,null,[Ce,...F])}finally{Ce.processor=null}return ye},()=>Xl(...F),"translate",G=>G[Jl](...F),G=>[Pc(G)],G=>ht(G))}function ot(...F){return ae(G=>Reflect.apply(Cc,null,[G,...F]),()=>Yl(...F),"number format",G=>G[Zl](...F),$c,G=>ge(G)||ht(G))}function Ie(...F){return ae(G=>Reflect.apply(kc,null,[G,...F]),()=>Gl(...F),"datetime format",G=>G[Ql](...F),$c,G=>ge(G)||ht(G))}function ut(F){I=F,A.pluralRules=I}function me(F,G){return ae(()=>{if(!F)return!1;const ye=ge(G)?G:i.value,Ce=ge(G)?[ye]:zl(A,u.value,ye);for(let Le=0;Le<Ce.length;Le++){const Qe=j(Ce[Le]);let He=A.messageResolver(Qe,F);if(He===null&&(He=Qe[F]),$n(He)||rn(He)||ge(He))return!0}return!1},()=>[F],"translate exists",ye=>Reflect.apply(ye.te,ye,[F,G]),Ab,ye=>Ke(ye))}function _(F){let G=null;const ye=zl(A,u.value,i.value);for(let Ce=0;Ce<ye.length;Ce++){const Le=c.value[ye[Ce]]||{},Qe=A.messageResolver(Le,F);if(Qe!=null){G=Qe;break}}return G}function T(F){const G=_(F);return G??(t?t.tm(F)||{}:{})}function j(F){return c.value[F]||{}}function le(F,G){if(o){const ye={[F]:G};for(const Ce in ye)an(ye,Ce)&&ar(ye[Ce]);G=ye[F]}c.value[F]=G,A.messages=c.value}function se(F,G){c.value[F]=c.value[F]||{};const ye={[F]:G};if(o)for(const Ce in ye)an(ye,Ce)&&ar(ye[Ce]);G=ye[F],Kr(G,c.value[F]),A.messages=c.value}function ne(F){return d.value[F]||{}}function O(F,G){d.value[F]=G,A.datetimeFormats=d.value,Sc(A,F,G)}function P(F,G){d.value[F]=xt(d.value[F]||{},G),A.datetimeFormats=d.value,Sc(A,F,G)}function V(F){return f.value[F]||{}}function H(F,G){f.value[F]=G,A.numberFormats=f.value,Ac(A,F,G)}function pe(F,G){f.value[F]=xt(f.value[F]||{},G),A.numberFormats=f.value,Ac(A,F,G)}Ic++,t&&oa&&(De(t.locale,F=>{a&&(i.value=F,A.locale=F,Io(A,i.value,u.value))}),De(t.fallbackLocale,F=>{a&&(u.value=F,A.fallbackLocale=F,Io(A,i.value,u.value))}));const oe={id:Ic,locale:K,fallbackLocale:X,get inheritLocale(){return a},set inheritLocale(F){a=F,F&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,Io(A,i.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:W,get modifiers(){return R},get pluralRules(){return I||{}},get isGlobal(){return s},get missingWarn(){return p},set missingWarn(F){p=F,A.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(F){m=F,A.fallbackWarn=m},get fallbackRoot(){return g},set fallbackRoot(F){g=F},get fallbackFormat(){return w},set fallbackFormat(F){w=F,A.fallbackFormat=w},get warnHtmlMessage(){return $},set warnHtmlMessage(F){$=F,A.warnHtmlMessage=F},get escapeParameter(){return k},set escapeParameter(F){k=F,A.escapeParameter=F},t:Z,getLocaleMessage:j,setLocaleMessage:le,mergeLocaleMessage:se,getPostTranslationHandler:J,setPostTranslationHandler:ce,getMissingHandler:re,setMissingHandler:fe,[vp]:ut};return oe.datetimeFormats=ue,oe.numberFormats=he,oe.rt=de,oe.te=me,oe.tm=T,oe.d=Be,oe.n=rt,oe.getDateTimeFormat=ne,oe.setDateTimeFormat=O,oe.mergeDateTimeFormat=P,oe.getNumberFormat=V,oe.setNumberFormat=H,oe.mergeNumberFormat=pe,oe[gp]=n,oe[Jl]=qe,oe[Ql]=Ie,oe[Zl]=ot,oe}function Ob(e){const t=ge(e.locale)?e.locale:rr,n=ge(e.fallbackLocale)||ht(e.fallbackLocale)||tt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=ft(e.missing)?e.missing:void 0,o=Ke(e.silentTranslationWarn)||wo(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Ke(e.silentFallbackWarn)||wo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=Ke(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=tt(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,d=ft(e.postTranslation)?e.postTranslation:void 0,f=ge(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,m=Ke(e.sync)?e.sync:!0;let g=e.messages;if(tt(e.sharedMessages)){const R=e.sharedMessages;g=Object.keys(R).reduce((A,M)=>{const B=A[M]||(A[M]={});return xt(B,R[M]),A},g||{})}const{__i18n:w,__root:C,__injectWithOption:h}=e,b=e.datetimeFormats,$=e.numberFormats,k=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:k,datetimeFormats:b,numberFormats:$,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:w,__root:C,__injectWithOption:h}}function ei(e={}){const t=aa(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 Pb(e,t,n){return{beforeCreate(){const s=lr();if(!s)throw zt(Ut.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=Rc(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=ei(r);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Rc(e,o);else{this.$i18n=ei({__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&&bp(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=lr();if(!s)throw zt(Ut.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 Rc(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[vp](t.pluralizationRules||e.pluralizationRules);const n=zi(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 Gi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Tb({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Ae?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},st())}function _p(){return Ae}const $b=Q({name:"i18n-t",props:xt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>wt(e)||!isNaN(e)}},Gi),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=ge(e.plural)?+e.plural:e.plural);const d=Tb(t,u);return o[Jl](e.keypath,d,c)},a=xt(st(),s),i=ge(e.tag)||ze(e.tag)?e.tag:_p();return ze(i)?tn(i,a,{default:r}):tn(i,a,r())}}}),Lc=$b;function Ib(e){return ht(e)&&!ge(e[0])}function wp(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),ge(e.format)?c.key=e.format:ze(e.format)&&(ge(e.format.key)&&(c.key=e.format.key),d=Object.keys(e.format).reduce((m,g)=>n.includes(g)?xt(st(),m,{[g]:e.format[g]}):m,st()));const f=s(e.value,c,d);let p=[c.key];return ht(f)?p=f.map((m,g)=>{const w=o[m.type],C=w?w({[m.type]:m.value,index:g,parts:f}):[m.value];return Ib(C)&&(C[0].key=`${m.type}-${g}`),C}):ge(f)&&(p=[f]),p},i=xt(st(),r),u=ge(e.tag)||ze(e.tag)?e.tag:_p();return ze(u)?tn(u,i,{default:a}):tn(u,i,a())}}const Mb=Q({name:"i18n-n",props:xt({value:{type:Number,required:!0},format:{type:[String,Object]}},Gi),setup(e,t){const n=e.i18n||Ht({useScope:e.scope,__useComponent:!0});return wp(e,t,pp,(...s)=>n[Zl](...s))}}),Dc=Mb;function Rb(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 Lb(e){const t=a=>{const{instance:i,value:u}=a;if(!i||!i.$)throw zt(Ut.UNEXPECTED_ERROR);const c=Rb(e,i.$),d=Nc(u);return[Reflect.apply(c.t,c,[...Fc(d)]),c]};return{created:(a,i)=>{const[u,c]=t(i);oa&&(a.__i18nWatcher=De(c.locale,()=>{i.instance&&i.instance.$forceUpdate()})),a.__composer=c,a.textContent=u},unmounted:a=>{oa&&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=Nc(i);a.textContent=Reflect.apply(u.t,u,[...Fc(c)])}},getSSRProps:a=>{const[i]=t(a);return{textContent:i}}}}function Nc(e){if(ge(e))return{path:e};if(tt(e)){if(!("path"in e))throw zt(Ut.REQUIRED_VALUE,"path");return e}else throw zt(Ut.INVALID_VALUE)}function Fc(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,a={},i=s||{};return ge(n)&&(a.locale=n),wt(o)&&(a.plural=o),wt(r)&&(a.plural=r),[t,i,a]}function Db(e,t,...n){const s=tt(n[0])?n[0]:{};(Ke(s.globalInstall)?s.globalInstall:!0)&&([Lc.name,"I18nT"].forEach(r=>e.component(r,Lc)),[Dc.name,"I18nN"].forEach(r=>e.component(r,Dc)),[Vc.name,"I18nD"].forEach(r=>e.component(r,Vc))),e.directive("t",Lb(t))}const Nb=ks("global-vue-i18n");function Fb(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]=qb(e,t),a=ks("");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),tt(p[0])){const w=p[0];d.__composerExtend=w.__composerExtend,d.__vueI18nExtend=w.__vueI18nExtend}let m=null;!t&&n&&(m=Kb(f,d.global)),__VUE_I18N_FULL_INSTALL__&&Db(f,d,...p),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Pb(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=lr();if(t==null)throw zt(Ut.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw zt(Ut.NOT_INSTALLED);const n=Bb(t),s=Ub(n),o=yp(t),r=Vb(e,o);if(r==="global")return bp(s,e,o),s;if(r==="parent"){let u=qc(n,t,e.__useComponent);return u==null&&(u=s),u}if(r==="isolated"){if(n.mode!=="composition")throw zt(Ut.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const u=n,c=xt({},e),d=qc(n,t);c.__root=d||s;const f=aa(c);return u.__composerExtend&&(f[uo]=u.__composerExtend(f)),xa()&&Ei(()=>{const m=f[uo];m&&(m(),delete f[uo])}),f}const a=n;let i=a.__getInstance(t);if(i==null){const u=xt({},e);"__i18n"in o&&(u.__i18n=o.__i18n),s&&(u.__root=s),i=aa(u),a.__composerExtend&&(i[uo]=a.__composerExtend(i)),jb(a,t,i),a.__setInstance(t,i)}return i}function qb(e,t){const n=Ai(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>ei(e)):n.run(()=>aa(e));if(s==null)throw zt(Ut.UNEXPECTED_ERROR);return[n,s]}function Bb(e){const t=Ws(e.isCE?Nb:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw zt(e.isCE?Ut.NOT_INSTALLED_WITH_PROVIDE:Ut.UNEXPECTED_ERROR);return t}function Vb(e,t){return Bi(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Ub(e){return e.mode==="composition"?e.global:e.global.__composer}function qc(e,t,n=!1){let s=null;const o=t.root;let r=Hb(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[gp]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function Hb(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function jb(e,t,n){mt(()=>{},t),yn(()=>{const s=n;e.__deleteInstance(t);const o=s[uo];o&&(o(),delete s[uo])},t)}const Wb=["locale","fallbackLocale","availableLocales"],Bc=["t","rt","d","n","tm","te"];function Kb(e,t){const n=Object.create(null);return Wb.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw zt(Ut.UNEXPECTED_ERROR);const a=pt(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,Bc.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw zt(Ut.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Bc.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}const zb=Q({name:"i18n-d",props:xt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Gi),setup(e,t){const n=e.i18n||Ht({useScope:e.scope,__useComponent:!0});return wp(e,t,fp,(...s)=>n[Ql](...s))}}),Vc=zb;Cb();ob(qy);rb(tb);ab(zl);if(__INTLIFY_PROD_DEVTOOLS__){const e=Vs();e.__INTLIFY__=!0,By(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Yi="myapikey.creds";function la(){const e=localStorage.getItem(Yi);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 xp(e,t){localStorage.setItem(Yi,JSON.stringify({user:e,pass:t}))}function gl(){localStorage.removeItem(Yi)}async function Fe(e,t,n){var i;const s=la();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 Gb={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",rpmLabel:"Rate limit (RPM)",rpmPh:"unlimited",rpmHint:"Max requests/min to forward here before overflowing to the next source. Leaves a free/limited key some headroom instead of racing its cap. Blank = no pacing.",rpmBadge:"{n} rpm",rpmBadgeHint:"Paced to {n} requests/min — calls past that overflow to the next source. (Source-wide: applies to every model using this source.)",rpmSaved:"Rate limit set to {n}/min",rpmCleared:"Rate limit removed (unlimited)",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.",availableAllFiltered:"No chat models to enable ({n} non-chat hidden by filter).",filterChatOnly:"Chat models only",filterInclude:"Include non-chat",filterChatHint:"{n} non-chat models hidden (embeddings/audio/image…). Click to show all.",filterAllHint:"Showing all models. Click to keep chat models only.",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",testSource:"Test this source",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:{window:"last {n} calls",errorRate:"error rate {pct}%",avgLatency:"recent avg {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"},pacing:{stripTitle:"Sources at their rate limit",at:"{used}/{cap} rpm",reason:"pacing — overflowing to the next source"}},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"}},Yb={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:"当前",rpmLabel:"速率限制 (RPM)",rpmPh:"不限",rpmHint:"每分钟最多向此来源转发多少次,超出即溢出到下一个来源。给免费/有限额度的 Key 留点余量,而不是顶满它自身的上限。留空 = 不限速。",rpmBadge:"{n} rpm",rpmBadgeHint:"限制为每分钟 {n} 次,超出的请求会切换到下一个来源。(来源级:对该来源的所有模型生效。)",rpmSaved:"速率限制已设为 {n}/分钟",rpmCleared:"已取消速率限制(不限)",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:"来自所有来源的发现结果,启用后即可调用。",availableAllFiltered:"没有可启用的对话模型(还有 {n} 个非对话模型被隐藏)。",filterChatOnly:"仅对话模型",filterInclude:"含非对话模型",filterChatHint:"已隐藏 {n} 个非对话模型(嵌入/音频/图像等),点击显示全部。",filterAllHint:"当前显示全部模型,点击仅保留对话模型。",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:"测试",testSource:"测试此来源",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:{window:"近 {n} 次调用",errorRate:"错误率 {pct}%",avgLatency:"近期均值 {ms}"},detail:{time:"时间",latency:"延迟",stream:"流式",streamYes:"是",streamNo:"否",error:"错误",errorNone:"无"},circuit:{stripTitle:"冷却中的来源",badge:"冷却",remaining:"剩 {s}s",failures:"连续失败 {n} 次",cooldown:"冷却 {s}s",reset:"立即重置",reasonUnknown:"临时错误"},pacing:{stripTitle:"已达速率上限的来源",at:"{used}/{cap} rpm",reason:"限速中 —— 超出部分切换到下一个来源"}},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:"刷新"}},kp="myapikey.locale";function Xb(){const e=localStorage.getItem(kp);return e==="en"||e==="zh"?e:(typeof navigator<"u"?navigator.language:"en").toLowerCase().startsWith("zh")?"zh":"en"}const Sp=Fb({legacy:!1,locale:Xb(),fallbackLocale:"en",messages:{en:Gb,zh:Yb}});function Jb(e){Sp.global.locale.value=e,localStorage.setItem(kp,e)}const Zt={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"}},Uc=[{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 ti(e){let t=5381;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);return Uc[Math.abs(t)%Uc.length]}const ir=D([]);let Qb=1;function Zb(){return ir}function Cp(e){ir.value=ir.value.filter(t=>t.id!==e)}function $e(e,t="default",n=3500){const s=Qb++;ir.value=[...ir.value,{id:s,message:e,variant:t}],n>0&&window.setTimeout(()=>Cp(s),n)}function Ap(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=Ap(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Ep(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ap(e))&&(s&&(s+=" "),s+=t);return s}const Hc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jc=Ep,Op=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return jc(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=Hc(d)||Hc(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[w,C]=g;return Array.isArray(C)?C.includes({...r,...i}[w]):{...r,...i}[w]===C})?[...c,f,p]:c},[]);return jc(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)},e_=(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},t_=(e,t)=>({classGroupId:e,validator:t}),Pp=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ia="-",Wc=[],n_="arbitrary..",s_=e=>{const t=r_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return o_(a);const i=a.split(ia),u=i[0]===""&&i.length>1?1:0;return Tp(i,u,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const u=s[a],c=n[a];return u?c?e_(c,u):u:c||Wc}return n[a]||Wc}}},Tp=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],r=n.nextPart.get(o);if(r){const c=Tp(e,t+1,r);if(c)return c}const a=n.validators;if(a===null)return;const i=t===0?e.join(ia):e.slice(t).join(ia),u=a.length;for(let c=0;c<u;c++){const d=a[c];if(d.validator(i))return d.classGroupId}},o_=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?n_+s:void 0})(),r_=e=>{const{theme:t,classGroups:n}=e;return a_(n,t)},a_=(e,t)=>{const n=Pp();for(const s in e){const o=e[s];Xi(o,n,s,t)}return n},Xi=(e,t,n,s)=>{const o=e.length;for(let r=0;r<o;r++){const a=e[r];l_(a,t,n,s)}},l_=(e,t,n,s)=>{if(typeof e=="string"){i_(e,t,n);return}if(typeof e=="function"){u_(e,t,n,s);return}c_(e,t,n,s)},i_=(e,t,n)=>{const s=e===""?t:$p(t,e);s.classGroupId=n},u_=(e,t,n,s)=>{if(d_(e)){Xi(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(t_(n,e))},c_=(e,t,n,s)=>{const o=Object.entries(e),r=o.length;for(let a=0;a<r;a++){const[i,u]=o[a];Xi(u,$p(t,i),n,s)}},$p=(e,t)=>{let n=e;const s=t.split(ia),o=s.length;for(let r=0;r<o;r++){const a=s[r];let i=n.nextPart.get(a);i||(i=Pp(),n.nextPart.set(a,i)),n=i}return n},d_=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,f_=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)}}},ni="!",Kc=":",p_=[],zc=(e,t,n,s,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:o}),m_=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 w=0;w<d;w++){const C=o[w];if(a===0&&i===0){if(C===Kc){r.push(o.slice(u,w)),u=w+1;continue}if(C==="/"){c=w;continue}}C==="["?a++:C==="]"?a--:C==="("?i++:C===")"&&i--}const f=r.length===0?o:o.slice(u);let p=f,m=!1;f.endsWith(ni)?(p=f.slice(0,-1),m=!0):f.startsWith(ni)&&(p=f.slice(1),m=!0);const g=c&&c>u?c-u:void 0;return zc(r,m,p,g)};if(t){const o=t+Kc,r=s;s=a=>a.startsWith(o)?r(a.slice(o.length)):zc(p_,!1,a,void 0,!0)}if(n){const o=s;s=r=>n({className:r,parseClassName:o})}return s},h_=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}},v_=e=>({cache:f_(e.cacheSize),parseClassName:m_(e),sortModifiers:h_(e),postfixLookupClassGroupIds:g_(e),...s_(e)}),g_=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},y_=/\s+/,b_=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:r,postfixLookupClassGroupIds:a}=t,i=[],u=e.trim().split(y_);let c="";for(let d=u.length-1;d>=0;d-=1){const f=u[d],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:w,maybePostfixModifierPosition:C}=n(f);if(p){c=f+(c.length>0?" "+c:c);continue}let h=!!C,b;if(h){const A=w.substring(0,C);b=s(A);const M=b&&a[b]?s(w):void 0;M&&M!==b&&(b=M,h=!1)}else b=s(w);if(!b){if(!h){c=f+(c.length>0?" "+c:c);continue}if(b=s(w),!b){c=f+(c.length>0?" "+c:c);continue}h=!1}const $=m.length===0?"":m.length===1?m[0]:r(m).join(":"),k=g?$+ni:$,R=k+b;if(i.indexOf(R)>-1)continue;i.push(R);const I=o(b,h);for(let A=0;A<I.length;++A){const M=I[A];i.push(k+M)}c=f+(c.length>0?" "+c:c)}return c},__=(...e)=>{let t=0,n,s,o="";for(;t<e.length;)(n=e[t++])&&(s=Ip(n))&&(o&&(o+=" "),o+=s);return o},Ip=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Ip(e[s]))&&(n&&(n+=" "),n+=t);return n},w_=(e,...t)=>{let n,s,o,r;const a=u=>{const c=t.reduce((d,f)=>f(d),e());return n=v_(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=b_(u,n);return o(u,d),d};return r=a,(...u)=>r(__(...u))},x_=[],kt=e=>{const t=n=>n[e]||x_;return t.isThemeGetter=!0,t},Mp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,k_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,S_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C_=/\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$/,A_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,E_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,O_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ps=e=>k_.test(e),Re=e=>!!e&&!Number.isNaN(Number(e)),xn=e=>!!e&&Number.isInteger(Number(e)),yl=e=>e.endsWith("%")&&Re(e.slice(0,-1)),Vn=e=>S_.test(e),Lp=()=>!0,P_=e=>C_.test(e)&&!A_.test(e),Ji=()=>!1,T_=e=>E_.test(e),$_=e=>O_.test(e),I_=e=>!be(e)&&!_e(e),M_=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)),R_=e=>As(e,Fp,Ji),be=e=>Mp.test(e),Ls=e=>As(e,qp,P_),Gc=e=>As(e,U_,Re),L_=e=>As(e,Vp,Lp),D_=e=>As(e,Bp,Ji),Yc=e=>As(e,Dp,Ji),N_=e=>As(e,Np,$_),Lr=e=>As(e,Up,T_),_e=e=>Rp.test(e),Mo=e=>Xs(e,qp),F_=e=>Xs(e,Bp),Xc=e=>Xs(e,Dp),q_=e=>Xs(e,Fp),B_=e=>Xs(e,Np),Dr=e=>Xs(e,Up,!0),V_=e=>Xs(e,Vp,!0),As=(e,t,n)=>{const s=Mp.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},Xs=(e,t,n=!1)=>{const s=Rp.exec(e);return s?s[1]?t(s[1]):n:!1},Dp=e=>e==="position"||e==="percentage",Np=e=>e==="image"||e==="url",Fp=e=>e==="length"||e==="size"||e==="bg-size",qp=e=>e==="length",U_=e=>e==="number",Bp=e=>e==="family-name",Vp=e=>e==="number"||e==="weight",Up=e=>e==="shadow",H_=()=>{const e=kt("color"),t=kt("font"),n=kt("text"),s=kt("font-weight"),o=kt("tracking"),r=kt("leading"),a=kt("breakpoint"),i=kt("container"),u=kt("spacing"),c=kt("radius"),d=kt("shadow"),f=kt("inset-shadow"),p=kt("text-shadow"),m=kt("drop-shadow"),g=kt("blur"),w=kt("perspective"),C=kt("aspect"),h=kt("ease"),b=kt("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...k(),_e,be],I=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],M=()=>[_e,be,u],B=()=>[ps,"full","auto",...M()],K=()=>[xn,"none","subgrid",_e,be],X=()=>["auto",{span:["full",xn,_e,be]},xn,_e,be],W=()=>[xn,"auto",_e,be],ue=()=>["auto","min","max","fr",_e,be],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],ce=()=>["auto",...M()],re=()=>[ps,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],fe=()=>[ps,"screen","full","dvw","lvw","svw","min","max","fit",...M()],ae=()=>[ps,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],Z=()=>[e,_e,be],de=()=>[...k(),Xc,Yc,{position:[_e,be]}],Be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],rt=()=>["auto","cover","contain",q_,R_,{size:[_e,be]}],at=()=>[yl,Mo,Ls],nt=()=>["","none","full",c,_e,be],Ye=()=>["",Re,Mo,Ls],qe=()=>["solid","dashed","dotted","double"],ot=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ie=()=>[Re,yl,Xc,Yc],ut=()=>["","none",g,_e,be],me=()=>["none",Re,_e,be],_=()=>["none",Re,_e,be],T=()=>[Re,_e,be],j=()=>[ps,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Vn],breakpoint:[Vn],color:[Lp],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",Re],text:[Vn],"text-shadow":[Vn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ps,be,_e,C]}],container:["container"],"container-type":[{"@container":["","normal","size",_e,be]}],"container-named":[M_],columns:[{columns:[Re,be,_e,i]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:R()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[xn,"auto",_e,be]}],basis:[{basis:[ps,"full","auto",i,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,ps,"auto","initial","none",be]}],grow:[{grow:["",Re,_e,be]}],shrink:[{shrink:["",Re,_e,be]}],order:[{order:[xn,"first","last","none",_e,be]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],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":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],"inline-size":[{inline:["auto",...fe()]}],"min-inline-size":[{"min-inline":["auto",...fe()]}],"max-inline-size":[{"max-inline":["none",...fe()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[i,"screen",...re()]}],"min-w":[{"min-w":[i,"screen","none",...re()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,Mo,Ls]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,V_,L_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yl,be]}],"font-family":[{font:[F_,D_,t]}],"font-features":[{"font-features":[be]}],"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,_e,be]}],"line-clamp":[{"line-clamp":[Re,"none",_e,Gc]}],leading:[{leading:[r,...M()]}],"list-image":[{"list-image":["none",_e,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_e,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...qe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",_e,Ls]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[Re,"auto",_e,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[xn,_e,be]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e,be]}],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",_e,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:Be()}],"bg-size":[{bg:rt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xn,_e,be],radial:["",_e,be],conic:[xn,_e,be]},B_,N_]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:at()}],"gradient-via-pos":[{via:at()}],"gradient-to-pos":[{to:at()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:nt()}],"rounded-s":[{"rounded-s":nt()}],"rounded-e":[{"rounded-e":nt()}],"rounded-t":[{"rounded-t":nt()}],"rounded-r":[{"rounded-r":nt()}],"rounded-b":[{"rounded-b":nt()}],"rounded-l":[{"rounded-l":nt()}],"rounded-ss":[{"rounded-ss":nt()}],"rounded-se":[{"rounded-se":nt()}],"rounded-ee":[{"rounded-ee":nt()}],"rounded-es":[{"rounded-es":nt()}],"rounded-tl":[{"rounded-tl":nt()}],"rounded-tr":[{"rounded-tr":nt()}],"rounded-br":[{"rounded-br":nt()}],"rounded-bl":[{"rounded-bl":nt()}],"border-w":[{border:Ye()}],"border-w-x":[{"border-x":Ye()}],"border-w-y":[{"border-y":Ye()}],"border-w-s":[{"border-s":Ye()}],"border-w-e":[{"border-e":Ye()}],"border-w-bs":[{"border-bs":Ye()}],"border-w-be":[{"border-be":Ye()}],"border-w-t":[{"border-t":Ye()}],"border-w-r":[{"border-r":Ye()}],"border-w-b":[{"border-b":Ye()}],"border-w-l":[{"border-l":Ye()}],"divide-x":[{"divide-x":Ye()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ye()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...qe(),"hidden","none"]}],"divide-style":[{divide:[...qe(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-bs":[{"border-bs":Z()}],"border-color-be":[{"border-be":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...qe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,_e,be]}],"outline-w":[{outline:["",Re,Mo,Ls]}],"outline-color":[{outline:Z()}],shadow:[{shadow:["","none",d,Dr,Lr]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",f,Dr,Lr]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:Ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[Re,Ls]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":Ye()}],"inset-ring-color":[{"inset-ring":Z()}],"text-shadow":[{"text-shadow":["none",p,Dr,Lr]}],"text-shadow-color":[{"text-shadow":Z()}],opacity:[{opacity:[Re,_e,be]}],"mix-blend":[{"mix-blend":[...ot(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ot()}],"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":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ie()}],"mask-image-linear-from-color":[{"mask-linear-from":Z()}],"mask-image-linear-to-color":[{"mask-linear-to":Z()}],"mask-image-t-from-pos":[{"mask-t-from":Ie()}],"mask-image-t-to-pos":[{"mask-t-to":Ie()}],"mask-image-t-from-color":[{"mask-t-from":Z()}],"mask-image-t-to-color":[{"mask-t-to":Z()}],"mask-image-r-from-pos":[{"mask-r-from":Ie()}],"mask-image-r-to-pos":[{"mask-r-to":Ie()}],"mask-image-r-from-color":[{"mask-r-from":Z()}],"mask-image-r-to-color":[{"mask-r-to":Z()}],"mask-image-b-from-pos":[{"mask-b-from":Ie()}],"mask-image-b-to-pos":[{"mask-b-to":Ie()}],"mask-image-b-from-color":[{"mask-b-from":Z()}],"mask-image-b-to-color":[{"mask-b-to":Z()}],"mask-image-l-from-pos":[{"mask-l-from":Ie()}],"mask-image-l-to-pos":[{"mask-l-to":Ie()}],"mask-image-l-from-color":[{"mask-l-from":Z()}],"mask-image-l-to-color":[{"mask-l-to":Z()}],"mask-image-x-from-pos":[{"mask-x-from":Ie()}],"mask-image-x-to-pos":[{"mask-x-to":Ie()}],"mask-image-x-from-color":[{"mask-x-from":Z()}],"mask-image-x-to-color":[{"mask-x-to":Z()}],"mask-image-y-from-pos":[{"mask-y-from":Ie()}],"mask-image-y-to-pos":[{"mask-y-to":Ie()}],"mask-image-y-from-color":[{"mask-y-from":Z()}],"mask-image-y-to-color":[{"mask-y-to":Z()}],"mask-image-radial":[{"mask-radial":[_e,be]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ie()}],"mask-image-radial-from-color":[{"mask-radial-from":Z()}],"mask-image-radial-to-color":[{"mask-radial-to":Z()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ie()}],"mask-image-conic-from-color":[{"mask-conic-from":Z()}],"mask-image-conic-to-color":[{"mask-conic-to":Z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:Be()}],"mask-size":[{mask:rt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_e,be]}],filter:[{filter:["","none",_e,be]}],blur:[{blur:ut()}],brightness:[{brightness:[Re,_e,be]}],contrast:[{contrast:[Re,_e,be]}],"drop-shadow":[{"drop-shadow":["","none",m,Dr,Lr]}],"drop-shadow-color":[{"drop-shadow":Z()}],grayscale:[{grayscale:["",Re,_e,be]}],"hue-rotate":[{"hue-rotate":[Re,_e,be]}],invert:[{invert:["",Re,_e,be]}],saturate:[{saturate:[Re,_e,be]}],sepia:[{sepia:["",Re,_e,be]}],"backdrop-filter":[{"backdrop-filter":["","none",_e,be]}],"backdrop-blur":[{"backdrop-blur":ut()}],"backdrop-brightness":[{"backdrop-brightness":[Re,_e,be]}],"backdrop-contrast":[{"backdrop-contrast":[Re,_e,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,_e,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,_e,be]}],"backdrop-invert":[{"backdrop-invert":["",Re,_e,be]}],"backdrop-opacity":[{"backdrop-opacity":[Re,_e,be]}],"backdrop-saturate":[{"backdrop-saturate":[Re,_e,be]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,_e,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_e,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",_e,be]}],ease:[{ease:["linear","initial",h,_e,be]}],delay:[{delay:[Re,_e,be]}],animate:[{animate:["none",b,_e,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,_e,be]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:T()}],"skew-x":[{"skew-x":T()}],"skew-y":[{"skew-y":T()}],transform:[{transform:[_e,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:j()}],"translate-x":[{"translate-x":j()}],"translate-y":[{"translate-y":j()}],"translate-z":[{"translate-z":j()}],"translate-none":["translate-none"],zoom:[{zoom:[xn,_e,be]}],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}],"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",_e,be]}],"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":Z()}],"scrollbar-track-color":[{"scrollbar-track":Z()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",_e,be]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[Re,Mo,Ls,Gc]}],stroke:[{stroke:["none",...Z()]}],"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"]}},j_=w_(H_);function Ge(...e){return j_(Ep(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(),Y("button",{type:t.type??"button",disabled:t.disabled,class:xe(l(Ge)(l(K_)({variant:t.variant,size:t.size}),t.class))},[ie(n.$slots,"default")],10,W_))}}),K_=Op("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"}}),z_=["type","value","placeholder","autocomplete","disabled"],bt=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(),Y("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:xe(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,z_))}}),pn=Q({__name:"Card",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Y("div",{class:xe(l(Ge)("rounded-xl border bg-card text-card-foreground shadow",t.class))},[ie(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(),Y("div",{class:xe(l(Ge)("flex flex-col space-y-1.5 p-6",t.class))},[ie(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(),Y("h3",{class:xe(l(Ge)("font-semibold leading-none tracking-tight",t.class))},[ie(n.$slots,"default")],2))}}),ys=Q({__name:"CardDescription",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Y("p",{class:xe(l(Ge)("text-sm text-muted-foreground",t.class))},[ie(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(),Y("div",{class:xe(l(Ge)("p-6 pt-0",t.class))},[ie(n.$slots,"default")],2))}}),gt=Q({__name:"Badge",props:{variant:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Y("span",{class:xe(l(Ge)(l(G_)({variant:t.variant}),t.class))},[ie(n.$slots,"default")],2))}}),G_=Op("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 Jc(e){return typeof e=="string"?`'${e}'`:new Y_().serialize(e)}const Y_=function(){var t;class e{constructor(){Cu(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=Eo(this,t).get(s);return o===void 0&&(Eo(this,t).set(s,`#${Eo(this,t).size}`),o=this.serializeObject(s),Eo(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 ur(e,t){return e===t||Jc(e)===Jc(t)}function Qc(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function $t(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,s=Symbol(n);return[a=>{const i=Ws(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=>(Ii(s,a),a)]}function Ct(){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 Qi(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 ko(e){return e==null}function Zc(e,t){return ko(e)?!1:Array.isArray(e)?e.some(n=>ur(n,t)):ur(e,t)}function Zi(e,t){return xa()?(Ei(e,t),!0):!1}function X_(e){let t=!1,n;const s=Ai(!0);return(...o)=>(t||(n=s.run(()=>e(...o)),t=!0),n)}const Rn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const J_=e=>typeof e<"u",Q_=Object.prototype.toString,Z_=e=>Q_.call(e)==="[object Object]",ed=e1();function e1(){var e,t,n;return Rn&&!!(!((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 bl(e){return Array.isArray(e)?e:[e]}function t1(e){return Xt()}function Hp(e){if(!Rn)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=Ai(!0),n=s.run(()=>e(...r))),Zi(o),n)}function n1(e){return Ks(pt(e)?new Proxy({},{get(t,n,s){return l(Reflect.get(e.value,n,s))},set(t,n,s){return pt(e.value[n])&&!pt(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 s1(e){return n1(te(e))}function o1(e,...t){const n=t.flat(),s=n[0];return s1(()=>Object.fromEntries(typeof s=="function"?Object.entries(Yt(e)).filter(([o,r])=>!s(Dt(r),o)):Object.entries(Yt(e)).filter(o=>!n.includes(o[0]))))}function r1(e,t=1e4){return Qd((n,s)=>{let o=Dt(e),r;const a=()=>setTimeout(()=>{o=Dt(e),s()},Dt(t));return Zi(()=>{clearTimeout(r)}),{get(){return n(),o},set(i){o=i,s(),clearTimeout(r),r=a()}}})}function a1(e,t){t1()&&$a(e,t)}function l1(e,t,n){return De(e,t,{...n,immediate:!0})}const Da=Rn?window:void 0;function Ln(e){var t;const n=Dt(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function ua(...e){const t=(s,o,r,a)=>(s.addEventListener(o,r,a),()=>s.removeEventListener(o,r,a)),n=te(()=>{const s=bl(Dt(e[0])).filter(o=>o!=null);return s.every(o=>typeof o!="string")?s:void 0});return l1(()=>{var s,o;return[(s=(o=n.value)===null||o===void 0?void 0:o.map(r=>Ln(r)))!==null&&s!==void 0?s:[Da].filter(r=>r!=null),bl(Dt(n.value?e[1]:e[0])),bl(l(n.value?e[2]:e[1])),Dt(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=Z_(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 jp(){const e=Oa(!1),t=Xt();return t&&mt(()=>{e.value=!0},t),e}function i1(e){const t=jp();return te(()=>(t.value,!!e()))}function u1(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function c1(...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=Da,eventName:r="keydown",passive:a=!1,dedupe:i=!1}=s,u=u1(t);return ua(o,r,d=>{d.repeat&&Dt(i)||u(d)&&n(d)},a)}function d1(e){return JSON.parse(JSON.stringify(e))}function f1(e,t,n={}){const{window:s=Da,...o}=n;let r;const a=i1(()=>s&&"ResizeObserver"in s),i=()=>{r&&(r.disconnect(),r=void 0)},u=De(te(()=>{const d=Dt(e);return Array.isArray(d)?d.map(f=>Ln(f)):[Ln(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 Zi(c),{isSupported:a,stop:c}}function rs(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 w=b=>a?typeof a=="function"?a(b):d1(b):b,C=()=>J_(e[t])?w(e[t]):d,h=b=>{f?f(b)&&m(g,b):m(g,b)};if(i){const b=D(C());let $=!1;return De(()=>e[t],k=>{$||($=!0,b.value=w(k),yt(()=>$=!1))}),De(b,k=>{!$&&(k!==e[t]||c)&&h(k)},{deep:c}),b}else return te({get(){return C()},set(b){h(b)}})}function eu(e){return e?e.flatMap(t=>t.type===Ae?eu(t.children):[t]):[]}const p1=["INPUT","TEXTAREA"];function td(e,t,n,s={}){if(!t||s.enableIgnoredElement&&p1.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,w,C]=[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(!w&&!C&&(!h&&!b||o==="vertical"&&b||o==="horizontal"&&h))return null;const $=n?Array.from(n.querySelectorAll(r)):a;if(!$.length)return null;c&&e.preventDefault();let k=null;return b||h?k=Wp($,t,{goForward:h?g:u==="ltr"?f:p,loop:i}):w?k=$.at(0)||null:C&&(k=$.at(-1)||null),d&&(k==null||k.focus()),k}function Wp(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"?Wp(e,i,n,s):i:null}const[wr]=$t("ConfigProvider");function _l(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 si(e,t,n=".",s){if(!_l(t))return si(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]]:_l(a)&&_l(o[r])?o[r]=si(a,o[r],(n?`${n}.`:"")+r.toString(),s):o[r]=a))}return o}function m1(e){return(...t)=>t.reduce((n,s)=>si(n,s,"",e),{})}const h1=m1(),v1=Hp(()=>{const e=D(new Map),t=D(),n=te(()=>{for(const a of e.value.values())if(a)return!0;return!1}),s=wr({scrollBody:D(!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??"",ed&&(o==null||o()),t.value=void 0};return De(n,(a,i)=>{var f;if(!Rn)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"?h1({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"),ed&&(o=ua(document,"touchmove",p=>g1(p),{passive:!1})),yt(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function Na(e){const t=Math.random().toString(36).substring(2,7),n=v1();n.value.set(t,e??!1);const s=te({get:()=>n.value.get(t)??!1,set:o=>n.value.set(t,o)});return a1(()=>{n.value.delete(t)}),s}function Kp(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:Kp(n)}}function g1(e){const t=e||window.event,n=t.target;return n instanceof Element&&Kp(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function So(e){const t=wr({dir:D("ltr")});return te(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function xr(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[Ur(Et(o))]=(...r)=>e(o,...r)}),s}let wl=0;function tu(){os(e=>{if(!Rn)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??nd()),document.body.insertAdjacentElement("beforeend",t[1]??nd()),wl++,e(()=>{wl===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),wl--})})}function nd(){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 zp(e){return te(()=>{var t;return Dt(e)?!!((t=Ln(e))!=null&&t.closest("form")):!0})}function Ne(){const e=Xt(),t=D(),n=te(()=>s());Ri(()=>{n.value!==s()&&Th(t)});function s(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Ln(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 Fa(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=Lh(e);return te(()=>{const o={},r=(t==null?void 0:t.vnode.props)??{};return Object.keys(r).forEach(a=>{o[Et(a)]=r[a]}),Object.keys({...n,...o}).reduce((a,i)=>(s.value[i]!==void 0&&(a[i]=s.value[i]),a),{})})}function It(e,t){const n=Fa(e),s=t?xr(t):{};return te(()=>({...n.value,...s}))}function y1(){var t,n;const e=(n=(t=Xt())==null?void 0:t.vnode)==null?void 0:n.scopeId;return e?{[e]:""}:{}}var b1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},so=new WeakMap,Nr=new WeakMap,Fr={},xl=0,Gp=function(e){return e&&(e.host||Gp(e.parentNode))},_1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Gp(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})},w1=function(e,t,n,s){var o=_1(t,Array.isArray(e)?e:[e]);Fr[n]||(Fr[n]=new WeakMap);var r=Fr[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",w=(so.get(p)||0)+1,C=(r.get(p)||0)+1;so.set(p,w),r.set(p,C),a.push(p),w===1&&g&&Nr.set(p,!0),C===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(),xl++,function(){a.forEach(function(f){var p=so.get(f)-1,m=r.get(f)-1;so.set(f,p),r.set(f,m),p||(Nr.has(f)||f.removeAttribute(s),Nr.delete(f)),m||f.removeAttribute(n)}),xl--,xl||(so=new WeakMap,so=new WeakMap,Nr=new WeakMap,Fr={})}},x1=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),o=b1(e);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),w1(s,o,n,"aria-hidden")):function(){return null}};function qa(e){let t;De(()=>Ln(e),n=>{let s=!1;try{s=!!(n!=null&&n.closest("[popover]:not(:popover-open)"))}catch{}n&&!s?t=x1(n):t&&t()}),yn(()=>{t&&t()})}function Dn(e,t="reka"){let n;const s=wr({useId:void 0});return s.useId?n=s.useId():n=al==null?void 0:al(),t?`${t}-${n}`:n}function k1(e){const t=D(),n=te(()=>{var r;return((r=t.value)==null?void 0:r.width)??0}),s=te(()=>{var r;return((r=t.value)==null?void 0:r.height)??0});let o;return mt(()=>{const r=Ln(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 S1(e,t){const n=D(e);function s(r){return t[n.value][r]??n.value}return{state:n,dispatch:r=>{n.value=s(r)}}}function nu(e){const t=r1("",1e3);return{search:t,handleTypeaheadSearch:(o,r)=>{t.value=t.value+o;{const a=Ct(),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=A1(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 C1(e,t){return e.map((n,s)=>e[(t+s)%e.length])}function A1(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=C1(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 E1(e,t){var C;const n=D({}),s=D("none"),o=D(e),r=e.value?"mounted":"unmounted";let a;const i=((C=t.value)==null?void 0:C.ownerDocument.defaultView)??Da,{state:u,dispatch:c}=S1(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=h=>{var b;if(Rn){const $=new CustomEvent(h,{bubbles:!1,cancelable:!1});(b=t.value)==null||b.dispatchEvent($)}};De(e,async(h,b)=>{var k;const $=b!==h;if(await yt(),$){const R=s.value,I=qr(t.value);h?(c("MOUNT"),d("enter"),I==="none"&&d("after-enter")):I==="none"||I==="undefined"||((k=n.value)==null?void 0:k.display)==="none"?(c("UNMOUNT"),d("leave"),d("after-leave")):b&&R!==I?(c("ANIMATION_OUT"),d("leave")):(c("UNMOUNT"),d("after-leave"))}},{immediate:!0});const f=h=>{const b=qr(t.value),$=b.includes(CSS.escape(h.animationName)),k=u.value==="mounted"?"enter":"leave";if(h.target===t.value&&$&&(d(`after-${k}`),c("ANIMATION_END"),!o.value)){const R=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",a=i==null?void 0:i.setTimeout(()=>{var I;((I=t.value)==null?void 0:I.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=R)})}h.target===t.value&&b==="none"&&c("ANIMATION_END")},p=h=>{h.target===t.value&&(s.value=qr(t.value))},m=De(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=De(u,()=>{const h=qr(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:te(()=>["mounted","unmountSuspended"].includes(u.value))}}function qr(e){return e&&getComputedStyle(e).animationName||"none"}var Js=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=D(),{isPresent:a}=E1(s,r);n({present:a});let i=t.default({present:a.value});i=eu(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?tn(t.default({present:a.value})[0],{ref:d=>{const f=Ln(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 oi=Q({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var u;if(!n.default)return null;const s=eu(n.default()),o=s.findIndex(c=>c.type!==gn);if(o===-1)return s;const r=s[o];(u=r.props)==null||delete u.ref;const a=r.props?Oe(t,r.props):t,i=_s({...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)?()=>tn(s,t):s!=="template"?()=>tn(e.as,t,{default:n.default}):()=>tn(oi,t,{default:n.default})}});function ri(){const e=D(),t=te(()=>{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:Ln(e)});return{primitiveElement:e,currentElement:t}}const[us,P1]=$t("DialogRoot");var T1=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=rs(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),r=D(),a=D(),{modal:i,unmountOnHide:u}=Yt(n);return P1({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)=>ie(c.$slots,"default",{open:l(o),close:()=>o.value=!1})}}),$1=T1,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=us();return(s,o)=>(x(),N(l(Ue),Oe(t,{type:s.as==="button"?"button":void 0,onClick:o[0]||(o[0]=r=>l(n).onOpenChange(!1))}),{default:y(()=>[ie(s.$slots,"default")]),_:3},16,["type"]))}}),M1=I1;const R1="dismissableLayer.pointerDownOutside",L1="dismissableLayer.focusOutside";function Yp(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 D1(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=D(!1),r=D(()=>{});return os(i=>{if(!Rn||!Dt(n))return;const u=async d=>{const f=d.target;if(!(!(t!=null&&t.value)||!f)){if(Yp(t.value,f)){o.value=!1;return}if(d.target&&!o.value){let g=function(){Qi(R1,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:()=>{Dt(n)&&(o.value=!0)}}}function N1(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=D(!1);return os(a=>{if(!Rn||!Dt(n))return;const i=async u=>{if(!(t!=null&&t.value))return;await yt(),await yt();const c=u.target;!t.value||!c||Yp(t.value,c)||u.target&&!o.value&&Qi(L1,e,{originalEvent:u})};s.addEventListener("focusin",i),a(()=>s.removeEventListener("focusin",i))}),{onFocusCapture:()=>{Dt(n)&&(o.value=!0)},onBlurCapture:()=>{Dt(n)&&(o.value=!1)}}}const Qt=Ks({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var F1=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=te(()=>{var m;return((m=r.value)==null?void 0:m.ownerDocument)??globalThis.document}),i=te(()=>Qt.layersRoot),u=te(()=>r.value?Array.from(i.value).indexOf(r.value):-1),c=te(()=>Qt.layersWithOutsidePointerEventsDisabled.size>0),d=te(()=>{const m=Array.from(i.value),[g]=[...Qt.layersWithOutsidePointerEventsDisabled].slice(-1),w=m.indexOf(g);return u.value>=w}),f=D1(async m=>{const g=[...Qt.branches].some(w=>w==null?void 0:w.contains(m.target));!n.present||!d.value||g||(s("pointerDownOutside",m),s("interactOutside",m),await yt(),m.defaultPrevented||s("dismiss"))},r),p=N1(m=>{const g=[...Qt.branches].some(w=>w==null?void 0:w.contains(m.target));!n.present||g||(s("focusOutside",m),s("interactOutside",m),m.defaultPrevented||s("dismiss"))},r);return c1("Escape",m=>{!n.present||!(u.value===i.value.size-1)||(s("escapeKeyDown",m),m.defaultPrevented||s("dismiss"))}),De([r,()=>n.disableOutsidePointerEvents,()=>n.present],([m,g,w],C,h)=>{!m||!w||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&&!ko(Qt.originalBodyPointerEvents)&&(a.value.body.style.pointerEvents=Qt.originalBodyPointerEvents)}))},{immediate:!0}),De([r,()=>n.present],([m,g],w,C)=>{!m||!g||(i.value.add(m),C(()=>{i.value.delete(m)}))},{immediate:!0}),os(m=>{m(()=>{r.value&&(i.value.delete(r.value),Qt.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(m,g)=>(x(),N(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(()=>[ie(m.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Ba=F1;const q1=X_(()=>D([]));function B1(){const e=q1();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=sd(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=sd(e.value,t),(n=e.value[0])==null||n.resume()}}}function sd(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}const kl="focusScope.autoFocusOnMount",Sl="focusScope.autoFocusOnUnmount",od={bubbles:!1,cancelable:!0};function V1(e,{select:t=!1}={}){const n=Ct();for(const s of e)if(vs(s,{select:t}),Ct()!==n)return!0}function U1(e){const t=Xp(e),n=rd(t,e),s=rd(t.reverse(),e);return[n,s]}function Xp(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 rd(e,t){for(const n of e)if(!H1(n,{upTo:t}))return n}function H1(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 j1(e){return e instanceof HTMLInputElement&&"select"in e}function vs(e,{select:t=!1}={}){if(e&&e.focus){const n=Ct();e.focus({preventScroll:!0}),e!==n&&j1(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=D(null),i=B1(),u=Ks({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});os(f=>{if(!Rn)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:vs(a.value,{select:!0})}function g(h){if(u.paused||!p)return;const b=h.relatedTarget;b!==null&&(p.contains(b)||vs(a.value,{select:!0}))}function w(h){const b=a.value;if(b===null||!h.some(R=>R.removedNodes.length>0))return;p.contains(b)||vs(p)}document.addEventListener("focusin",m),document.addEventListener("focusout",g);const C=new MutationObserver(w);p&&C.observe(p,{childList:!0,subtree:!0}),f(()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),C.disconnect()})});function c(f,p){const m=new CustomEvent(kl,od),g=w=>s("mountAutoFocus",w);f.addEventListener(kl,g),f.dispatchEvent(m),f.removeEventListener(kl,g),m.defaultPrevented||(V1(Xp(f),{select:!0}),Ct()===p&&vs(f))}os(async f=>{const p=r.value;if(await yt(),!p)return;n.present!==!1&&i.add(u);const m=Ct();!p.contains(m)&&n.present!==!1&&c(p,m),f(()=>{const w=new CustomEvent(Sl,od),C=h=>{s("unmountAutoFocus",h)};p.addEventListener(Sl,C),p.dispatchEvent(w),p.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{w.defaultPrevented||vs(m??document.body,{select:!0}),p.removeEventListener(Sl,C),i.remove(u),p.removeAttribute("data-focus-scope-unmounting")},0)})}),De(()=>n.present,async(f,p)=>{if(!Rn)return;if(f===!1&&p===!0){i.remove(u);return}if(f!==!0||p!==!1)return;i.add(u),await yt();const m=r.value;if(!m)return;const g=Ct();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=Ct();if(p&&m){const g=f.currentTarget,[w,C]=U1(g);w&&C?!f.shiftKey&&m===C?(f.preventDefault(),n.loop&&vs(w,{select:!0})):f.shiftKey&&m===w&&(f.preventDefault(),n.loop&&vs(C,{select:!0})):m===g&&f.preventDefault()}}return(f,p)=>(x(),N(l(Ue),{ref_key:"currentRef",ref:o,tabindex:"-1","as-child":f.asChild,as:f.as,onKeydown:d},{default:y(()=>[ie(f.$slots,"default")]),_:3},8,["as-child","as"]))}}),Va=W1;const K1="menu.itemSelect",ai=["Enter"," "],z1=["ArrowDown","PageUp","Home"],Jp=["ArrowUp","PageDown","End"],G1=[...z1,...Jp];[...ai],[...ai];function Qp(e){return e?"open":"closed"}function li(e){const t=Ct();for(const n of e)if(n===t||(n.focus(),Ct()!==t))return}function Y1(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 X1(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Y1(n,t)}function ca(e){return e.pointerType==="mouse"}var J1=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=us(),{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")),mt(()=>{o.contentElement=a,Ct()!==document.body&&(o.triggerElement.value=Ct())}),(i,u)=>(x(),N(l(Va),{"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(Ba),Oe({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(Qp)(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(()=>[ie(i.$slots,"default")]),_:3},16,["id","as","as-child","present","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped","present"]))}}),Zp=J1,Q1=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=us(),r=xr(s),{forwardRef:a,currentElement:i}=Ne(),u=te(()=>n.present?i.value:void 0);qa(u);const c=te(()=>{const{present:d,...f}=n;return f});return De(()=>n.present,(d,f)=>{var p;!d&&f&&((p=o.triggerElement.value)==null||p.focus())}),(d,f)=>(x(),N(Zp,Oe({...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(()=>[ie(d.$slots,"default")]),_:3},16,["present","trap-focus","disable-outside-pointer-events"]))}}),Z1=Q1,e0=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=xr(t);Ne();const r=us(),a=D(!1),i=D(!1),u=te(()=>{const{present:c,...d}=n;return d});return De(()=>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(),N(Zp,Oe({...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(()=>[ie(c.$slots,"default")]),_:3},16,["present"]))}}),t0=e0,n0=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=us(),r=xr(s),{forwardRef:a}=Ne();return(i,u)=>(x(),N(l(Js),{present:i.forceMount||l(o).open.value,"force-mount":i.forceMount||!l(o).unmountOnHide.value},{default:y(({present:c})=>[l(o).modal.value?zs((x(),N(Z1,Oe({key:0,ref:l(a),present:l(o).unmountOnHide.value||c},{...n,...l(r),...i.$attrs}),{default:y(()=>[ie(i.$slots,"default")]),_:2},1040,["present"])),[[jl,l(o).unmountOnHide.value||c]]):zs((x(),N(t0,Oe({key:1,ref:l(a),present:l(o).unmountOnHide.value||c},{...n,...l(r),...i.$attrs}),{default:y(()=>[ie(i.$slots,"default")]),_:2},1040,["present"])),[[jl,l(o).unmountOnHide.value||c]])]),_:3},8,["present","force-mount"]))}}),s0=n0,o0=Q({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;Ne();const n=us();return(s,o)=>(x(),N(l(Ue),Oe(t,{id:l(n).descriptionId}),{default:y(()=>[ie(s.$slots,"default")]),_:3},16,["id"]))}}),r0=o0,a0=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=us(),s=Na(t.present);return De(()=>t.present,o=>s.value=o),Ne(),(o,r)=>(x(),N(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(()=>[ie(o.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),l0=a0,i0=Q({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=us(),{forwardRef:n}=Ne();return(s,o)=>{var r;return(r=l(t))!=null&&r.modal.value?(x(),N(l(Js),{key:0,present:s.forceMount||l(t).open.value,"force-mount":s.forceMount||!l(t).unmountOnHide.value},{default:y(({present:a})=>[zs(v(l0,Oe(s.$attrs,{ref:l(n),as:s.as,"as-child":s.asChild,present:l(t).unmountOnHide.value||a}),{default:y(()=>[ie(s.$slots,"default")]),_:2},1040,["as","as-child","present"]),[[jl,l(t).unmountOnHide.value||a]])]),_:3},8,["present","force-mount"])):we("v-if",!0)}}}),u0=i0,c0=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=wr({}),s=te(()=>{var r;return t.to??((r=n.teleportTo)==null?void 0:r.value)??"body"}),o=jp();return(r,a)=>l(o)||r.forceMount?(x(),N(Mi,{key:0,to:s.value,disabled:r.disabled,defer:r.defer},[ie(r.$slots,"default")],8,["to","disabled","defer"])):we("v-if",!0)}}),Ua=c0,d0=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(),N(l(Ua),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),f0=d0,p0=Q({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=us();return Ne(),(s,o)=>(x(),N(l(Ue),Oe(t,{id:l(n).titleId}),{default:y(()=>[ie(s.$slots,"default")]),_:3},16,["id"]))}}),m0=p0;const ad="data-reka-collection-item";function Es(e={}){const{key:t="",isProvider:n=!1}=e,s=`${t}CollectionProvider`;let o;n?(o={collectionRef:D(),itemMap:D(new Map)},Ii(s,o)):o=Ws(s);const r=(d=!1)=>{const f=o.collectionRef.value;if(!f)return[];const p=Array.from(f.querySelectorAll(`[${ad}]`)),m=new Map(p.map((C,h)=>[C,h])),w=Array.from(o.itemMap.value.values()).sort((C,h)=>(m.get(C.ref)??-1)-(m.get(h.ref)??-1));return d?w:w.filter(C=>C.ref.dataset.disabled!=="")},a=Q({name:"CollectionSlot",inheritAttrs:!1,setup(d,{slots:f,attrs:p}){const{primitiveElement:m,currentElement:g}=ri();return De(g,()=>{o.collectionRef.value=g.value}),()=>tn(oi,{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}=ri();return os(w=>{if(g.value){const C=Yd(g.value);o.itemMap.value.set(C,{ref:g.value,value:d.value}),w(()=>o.itemMap.value.delete(C))}}),()=>tn(oi,{...p,[ad]:"",ref:m},f)}}),u=te(()=>Array.from(o.itemMap.value.values())),c=te(()=>o.itemMap.value.size);return{getItems:r,reactiveItems:u,itemMapSize:c,CollectionSlot:a,CollectionItem:i}}var h0=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(),N(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(()=>[ie(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),em=h0,v0=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}=ri(),o=te(()=>t.checked??t.value);return De(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(),N(em,Oe({ref_key:"primitiveElement",ref:n},{...t,...r.$attrs},{as:"input"}),null,16))}}),ld=v0,g0=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=te(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),s=te(()=>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(),Y(Ae,null,[we(" We render single input if it's required "),n.value?(x(),N(ld,Oe({key:o.name},{...t,...o.$attrs},{name:o.name,value:o.value}),null,16,["name","value"])):(x(!0),Y(Ae,{key:1},ct(s.value,a=>(x(),N(ld,Oe({key:a.name},{ref_for:!0},{...t,...o.$attrs},{name:a.name,value:a.value}),null,16,["name","value"]))),128))],2112))}}),y0=g0;const b0="rovingFocusGroup.onEntryFocus",_0={bubbles:!1,cancelable:!0},w0={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function x0(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function k0(e,t,n){const s=x0(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return w0[s]}function tm(e,t=!1){const n=Ct();for(const s of e)if(s===n||(s.focus({preventScroll:t}),Ct()!==n))return}function S0(e,t){return e.map((n,s)=>e[(t+s)%e.length])}const[nm,C0]=$t("PopperRoot");var A0=Q({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=D();return C0({anchor:t,onAnchorChange:n=>t.value=n}),(n,s)=>ie(n.$slots,"default")}}),su=A0,E0=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=nm();return rf(()=>{o.onAnchorChange(t.reference??s.value)}),(r,a)=>(x(),N(l(Ue),{ref:l(n),as:r.as,"as-child":r.asChild},{default:y(()=>[ie(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),ou=E0;function O0(e){return e!==null}function P0(e){return{name:"transformOrigin",options:e,fn(t){var h,b,$;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]=ii(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=((($=o.arrow)==null?void 0:$.y)??0)+u/2;let w="",C="";return c==="bottom"?(w=a?f:`${m}px`,C=`${-u}px`):c==="top"?(w=a?f:`${m}px`,C=`${s.floating.height+u}px`):c==="right"?(w=`${-u}px`,C=a?p:`${g}px`):c==="left"&&(w=`${s.floating.width+u}px`,C=a?p:`${g}px`),{data:{x:w,y:C}}}}}function ii(e){const[t,n="center"]=e.split("-");return[t,n]}const T0=["top","right","bottom","left"],ws=Math.min,Qn=Math.max,da=Math.round,Br=Math.floor,Zn=e=>({x:e,y:e}),$0={left:"right",right:"left",bottom:"top",top:"bottom"};function sm(e,t,n){return Qn(e,ws(t,n))}function as(e,t){return typeof e=="function"?e(t):e}function xs(e){return e.split("-")[0]}function Co(e){return e.split("-")[1]}function ru(e){return e==="x"?"y":"x"}function au(e){return e==="y"?"height":"width"}function Pn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function lu(e){return ru(Pn(e))}function I0(e,t,n){n===void 0&&(n=!1);const s=Co(e),o=lu(e),r=au(o);let a=o==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(a=fa(a)),[a,fa(a)]}function M0(e){const t=fa(e);return[ui(e),t,ui(t)]}function ui(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const id=["left","right"],ud=["right","left"],R0=["top","bottom"],L0=["bottom","top"];function D0(e,t,n){switch(e){case"top":case"bottom":return n?t?ud:id:t?id:ud;case"left":case"right":return t?R0:L0;default:return[]}}function N0(e,t,n,s){const o=Co(e);let r=D0(xs(e),n==="start",s);return o&&(r=r.map(a=>a+"-"+o),t&&(r=r.concat(r.map(ui)))),r}function fa(e){const t=xs(e);return $0[t]+e.slice(t.length)}function F0(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 om(e){return typeof e!="number"?F0(e):{top:e,right:e,bottom:e,left:e}}function pa(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 cd(e,t,n){let{reference:s,floating:o}=e;const r=Pn(t),a=lu(t),i=au(a),u=xs(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=Co(t);return g&&(m[a]+=p*(g==="end"?1:-1)*(n&&c?-1:1)),m}async function q0(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}=as(t,e),g=om(m),C=i[p?f==="floating"?"reference":"floating":f],h=pa(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(C)))==null||n?C:C.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,$=await(r.getOffsetParent==null?void 0:r.getOffsetParent(i.floating)),k=await(r.isElement==null?void 0:r.isElement($))&&await(r.getScale==null?void 0:r.getScale($))||{x:1,y:1},R=pa(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:$,strategy:u}):b);return{top:(h.top-R.top+g.top)/k.y,bottom:(R.bottom-h.bottom+g.bottom)/k.y,left:(h.left-R.left+g.left)/k.x,right:(R.right-h.right+g.right)/k.x}}const B0=50,V0=async(e,t,n)=>{const{placement:s="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:q0},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}=cd(c,s,u),p=s,m=0;const g={};for(let w=0;w<r.length;w++){const C=r[w];if(!C)continue;const{name:h,fn:b}=C,{x:$,y:k,data:R,reset:I}=await b({x:d,y:f,initialPlacement:s,placement:p,strategy:o,middlewareData:g,rects:c,platform:i,elements:{reference:e,floating:t}});d=$??d,f=k??f,g[h]={...g[h],...R},I&&m<B0&&(m++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(c=I.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:d,y:f}=cd(c,p,u)),w=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:g}},U0=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}=as(e,t)||{};if(c==null)return{};const f=om(d),p={x:n,y:s},m=lu(o),g=au(m),w=await a.getDimensions(c),C=m==="y",h=C?"top":"left",b=C?"bottom":"right",$=C?"clientHeight":"clientWidth",k=r.reference[g]+r.reference[m]-p[m]-r.floating[g],R=p[m]-r.reference[m],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let A=I?I[$]:0;(!A||!await(a.isElement==null?void 0:a.isElement(I)))&&(A=i.floating[$]||r.floating[g]);const M=k/2-R/2,B=A/2-w[g]/2-1,K=ws(f[h],B),X=ws(f[b],B),W=A-w[g]-X,ue=A/2-w[g]/2+M,he=sm(K,ue,W),J=!u.arrow&&Co(o)!=null&&ue!==he&&r.reference[g]/2-(ue<K?K:X)-w[g]/2<0,ce=J?ue<K?ue-K:ue-W:0;return{[m]:p[m]+ce,data:{[m]:he,centerOffset:ue-he-ce,...J&&{alignmentOffset:ce}},reset:J}}}),H0=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:w=!0,...C}=as(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const h=xs(o),b=Pn(i),$=xs(i)===i,k=await(u.isRTL==null?void 0:u.isRTL(c.floating)),R=p||($||!w?[fa(i)]:M0(i)),I=g!=="none";!p&&I&&R.push(...N0(i,w,g,k));const A=[i,...R],M=await u.detectOverflow(t,C),B=[];let K=((s=r.flip)==null?void 0:s.overflows)||[];if(d&&B.push(M[h]),f){const he=I0(o,a,k);B.push(M[he[0]],M[he[1]])}if(K=[...K,{placement:o,overflows:B}],!B.every(he=>he<=0)){var X,W;const he=(((X=r.flip)==null?void 0:X.index)||0)+1,J=A[he];if(J&&(!(f==="alignment"?b!==Pn(J):!1)||K.every(fe=>Pn(fe.placement)===b?fe.overflows[0]>0:!0)))return{data:{index:he,overflows:K},reset:{placement:J}};let ce=(W=K.filter(re=>re.overflows[0]<=0).sort((re,fe)=>re.overflows[1]-fe.overflows[1])[0])==null?void 0:W.placement;if(!ce)switch(m){case"bestFit":{var ue;const re=(ue=K.filter(fe=>{if(I){const ae=Pn(fe.placement);return ae===b||ae==="y"}return!0}).map(fe=>[fe.placement,fe.overflows.filter(ae=>ae>0).reduce((ae,Z)=>ae+Z,0)]).sort((fe,ae)=>fe[1]-ae[1])[0])==null?void 0:ue[0];re&&(ce=re);break}case"initialPlacement":ce=i;break}if(o!==ce)return{reset:{placement:ce}}}return{}}}};function dd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fd(e){return T0.some(t=>e[t]>=0)}const j0=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:s}=t,{strategy:o="referenceHidden",...r}=as(e,t);switch(o){case"referenceHidden":{const a=await s.detectOverflow(t,{...r,elementContext:"reference"}),i=dd(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:fd(i)}}}case"escaped":{const a=await s.detectOverflow(t,{...r,altBoundary:!0}),i=dd(a,n.floating);return{data:{escapedOffsets:i,escaped:fd(i)}}}default:return{}}}}},rm=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=xs(n),i=Co(n),u=Pn(n)==="y",c=rm.has(a)?-1:1,d=r&&u?-1:1,f=as(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 K0=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}}}}},z0=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:$,y:k}=b;return{x:$,y:k}}},...c}=as(e,t),d={x:n,y:s},f=await r.detectOverflow(t,c),p=Pn(o),m=ru(p);let g=d[m],w=d[p];const C=(b,$)=>sm($+f[b==="y"?"top":"left"],$,$-f[b==="y"?"bottom":"right"]);a&&(g=C(m,g)),i&&(w=C(p,w));const h=u.fn({...t,[m]:g,[p]:w});return{...h,data:{x:h.x-n,y:h.y-s,enabled:{[m]:a,[p]:i}}}}}},G0=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}=as(e,t),p={x:o,y:r},m=Pn(a),g=ru(m);let w=p[g],C=p[m];const h=as(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 R=g==="y"?"height":"width",I=i.reference[g]-i.floating[R]+b.mainAxis,A=i.reference[g]+i.reference[R]-b.mainAxis;w<I?w=I:w>A&&(w=A)}if(f){var $,k;const R=g==="y"?"width":"height",I=rm.has(xs(a)),A=i.reference[m]-i.floating[R]+(I&&(($=u.offset)==null?void 0:$[m])||0)+(I?0:b.crossAxis),M=i.reference[m]+i.reference[R]+(I?0:((k=u.offset)==null?void 0:k[m])||0)-(I?b.crossAxis:0);C<A?C=A:C>M&&(C=M)}return{[g]:w,[m]:C}}}},Y0=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}=as(e,t),u=await o.detectOverflow(t,i),c=xs(n),d=Co(n),f=Pn(n)==="y",{width:p,height:m}=s.floating;let g,w;c==="top"||c==="bottom"?(g=c,w=d===(await(o.isRTL==null?void 0:o.isRTL(r.floating))?"start":"end")?"left":"right"):(w=c,g=d==="end"?"top":"bottom");const C=m-u.top-u.bottom,h=p-u.left-u.right,b=ws(m-u[g],C),$=ws(p-u[w],h),k=t.middlewareData.shift,R=!k;let I=b,A=$;k!=null&&k.enabled.x&&(A=h),k!=null&&k.enabled.y&&(I=C),R&&!d&&(f?A=p-2*Qn(u.left,u.right):I=m-2*Qn(u.top,u.bottom)),await a({...t,availableWidth:A,availableHeight:I});const M=await o.getDimensions(r.floating);return p!==M.width||m!==M.height?{reset:{rects:!0}}:{}}}};function Ha(){return typeof window<"u"}function Qs(e){return iu(e)?(e.nodeName||"").toLowerCase():"#document"}function Gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cs(e){var t;return(t=(iu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function iu(e){return Ha()?e instanceof Node||e instanceof Gt(e).Node:!1}function Nn(e){return Ha()?e instanceof Element||e instanceof Gt(e).Element:!1}function Os(e){return Ha()?e instanceof HTMLElement||e instanceof Gt(e).HTMLElement:!1}function pd(e){return!Ha()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gt(e).ShadowRoot}function ja(e){const{overflow:t,overflowX:n,overflowY:s,display:o}=Fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&o!=="inline"&&o!=="contents"}function X0(e){return/^(table|td|th)$/.test(Qs(e))}function Wa(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const J0=/transform|translate|scale|rotate|perspective|filter/,Q0=/paint|layout|strict|content/,Ds=e=>!!e&&e!=="none";let Cl;function uu(e){const t=Nn(e)?Fn(e):e;return Ds(t.transform)||Ds(t.translate)||Ds(t.scale)||Ds(t.rotate)||Ds(t.perspective)||!cu()&&(Ds(t.backdropFilter)||Ds(t.filter))||J0.test(t.willChange||"")||Q0.test(t.contain||"")}function Z0(e){let t=Gs(e);for(;Os(t)&&!cr(t);){if(uu(t))return t;if(Wa(t))return null;t=Gs(t)}return null}function cu(){return Cl==null&&(Cl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cl}function cr(e){return/^(html|body|#document)$/.test(Qs(e))}function Fn(e){return Gt(e).getComputedStyle(e)}function Ka(e){return Nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gs(e){if(Qs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pd(e)&&e.host||cs(e);return pd(t)?t.host:t}function am(e){const t=Gs(e);return cr(t)?(e.ownerDocument||e).body:Os(t)&&ja(t)?t:am(t)}function dr(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=am(e),r=o===((s=e.ownerDocument)==null?void 0:s.body),a=Gt(o);if(r){const i=ci(a);return t.concat(a,a.visualViewport||[],ja(o)?o:[],i&&n?dr(i):[])}else return t.concat(o,dr(o,[],n))}function ci(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lm(e){const t=Fn(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const o=Os(e),r=o?e.offsetWidth:n,a=o?e.offsetHeight:s,i=da(n)!==r||da(s)!==a;return i&&(n=r,s=a),{width:n,height:s,$:i}}function du(e){return Nn(e)?e:e.contextElement}function go(e){const t=du(e);if(!Os(t))return Zn(1);const n=t.getBoundingClientRect(),{width:s,height:o,$:r}=lm(t);let a=(r?da(n.width):n.width)/s,i=(r?da(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const ew=Zn(0);function im(e){const t=Gt(e);return!cu()||!t.visualViewport?ew:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tw(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Gt(e)}function Ys(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=du(e);let a=Zn(1);t&&(s?Nn(s)&&(a=go(s)):a=go(e));const i=tw(r,n,s)?im(r):Zn(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=Nn(s)?Gt(s):s;let g=p,w=ci(g);for(;w&&m!==g;){const C=go(w),h=w.getBoundingClientRect(),b=Fn(w),$=h.left+(w.clientLeft+parseFloat(b.paddingLeft))*C.x,k=h.top+(w.clientTop+parseFloat(b.paddingTop))*C.y;u*=C.x,c*=C.y,d*=C.x,f*=C.y,u+=$,c+=k,g=Gt(w),w=ci(g)}}return pa({width:d,height:f,x:u,y:c})}function za(e,t){const n=Ka(e).scrollLeft;return t?t.left+n:Ys(cs(e)).left+n}function um(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-za(e,n),o=n.top+t.scrollTop;return{x:s,y:o}}function nw(e){let{elements:t,rect:n,offsetParent:s,strategy:o}=e;const r=o==="fixed",a=cs(s),i=t?Wa(t.floating):!1;if(s===a||i&&r)return n;let u={scrollLeft:0,scrollTop:0},c=Zn(1);const d=Zn(0),f=Os(s);if((f||!r)&&((Qs(s)!=="body"||ja(a))&&(u=Ka(s)),f)){const m=Ys(s);c=go(s),d.x=m.x+s.clientLeft,d.y=m.y+s.clientTop}const p=a&&!f&&!r?um(a,u):Zn(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 sw(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ow(e){const t=Ka(e),n=e.ownerDocument.body,s=Qn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Qn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let r=-t.scrollLeft+za(e);const a=-t.scrollTop;return Fn(n).direction==="rtl"&&(r+=Qn(e.clientWidth,n.clientWidth)-s),{width:s,height:o,x:r,y:a}}const rw=25;function aw(e,t,n){n===void 0&&(n="viewport");const s=n==="layoutViewport",o=Gt(e),r=cs(e),a=o.visualViewport;let i=r.clientWidth,u=r.clientHeight,c=0,d=0;if(a){const p=!cu()||t==="fixed";s?p||(c=-a.offsetLeft,d=-a.offsetTop):(i=a.width,u=a.height,p&&(c=a.offsetLeft,d=a.offsetTop))}if(za(r)<=0){const p=r.ownerDocument,m=p.body,g=getComputedStyle(m),w=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,C=Math.abs(r.clientWidth-m.clientWidth-w),h=getComputedStyle(r).scrollbarGutter==="stable both-edges"?C/2:C;h<=rw&&(i-=h)}return{width:i,height:u,x:c,y:d}}function lw(e,t){const n=Ys(e,!0,t==="fixed"),s=n.top+e.clientTop,o=n.left+e.clientLeft,r=go(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 md(e,t,n){let s;if(t==="viewport"||t==="layoutViewport")s=aw(e,n,t);else if(t==="document")s=ow(cs(e));else if(Nn(t))s=lw(t,n);else{const o=im(e);s={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return pa(s)}function iw(e,t){const n=t.get(e);if(n)return n;let s=dr(e,[],!1).filter(i=>Nn(i)&&Qs(i)!=="body"),o=null;const r=Fn(e).position==="fixed";let a=r?Gs(e):e;for(;Nn(a)&&!cr(a);){const i=Fn(a),u=uu(a),c=o?o.position:r?"fixed":"";!u&&(c==="fixed"||c==="absolute"&&i.position==="static")?s=s.filter(f=>f!==a):o=i,a=Gs(a)}return t.set(e,s),s}function uw(e){let{element:t,boundary:n,rootBoundary:s,strategy:o}=e;const a=[...n==="clippingAncestors"?Wa(t)?[]:iw(t,this._c):[].concat(n),s],i=md(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=md(t,a[p],o);u=Qn(m.top,u),c=ws(m.right,c),d=ws(m.bottom,d),f=Qn(m.left,f)}return{width:c-f,height:d-u,x:f,y:u}}function cw(e){const{width:t,height:n}=lm(e);return{width:t,height:n}}function dw(e,t,n){const s=Os(t),o=cs(t),r=n==="fixed",a=Ys(e,!0,r,t);let i={scrollLeft:0,scrollTop:0};const u=Zn(0);if((s||!r)&&((Qs(t)!=="body"||ja(o))&&(i=Ka(t)),s)){const p=Ys(t,!0,r,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}!s&&o&&(u.x=za(o));const c=o&&!s&&!r?um(o,i):Zn(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 Al(e){return Fn(e).position==="static"}function hd(e,t){if(!Os(e)||Fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return cs(e)===n&&(n=n.ownerDocument.body),n}function cm(e,t){const n=Gt(e);if(Wa(e))return n;if(!Os(e)){let o=Gs(e);for(;o&&!cr(o);){if(Nn(o)&&!Al(o))return o;o=Gs(o)}return n}let s=hd(e,t);for(;s&&X0(s)&&Al(s);)s=hd(s,t);return s&&cr(s)&&Al(s)&&!uu(s)?n:s||Z0(e)||n}const fw=async function(e){const t=this.getOffsetParent||cm,n=this.getDimensions,s=await n(e.floating);return{reference:dw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function pw(e){return Fn(e).direction==="rtl"}const mw={convertOffsetParentRelativeRectToViewportRelativeRect:nw,getDocumentElement:cs,getClippingRect:uw,getOffsetParent:cm,getElementRects:fw,getClientRects:sw,getDimensions:cw,getScale:go,isElement:Nn,isRTL:pw};function dm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hw(e,t,n){let s=null,o;const r=cs(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:w,height:C}=p;if(d||t(),!w||!C)return;const h=Br(g),b=Br(r.clientWidth-(m+w)),$=Br(r.clientHeight-(g+C)),k=Br(m),I={rootMargin:-h+"px "+-b+"px "+-$+"px "+-k+"px",threshold:Qn(0,ws(1,f))||1};let A=!0;function M(B){const K=B[0].intersectionRatio;if(!dm(p,e.getBoundingClientRect()))return i();if(K!==f){if(!A)return i();K?i(!1,K):o=setTimeout(()=>{i(!1,1e-7)},1e3)}A=!1}try{s=new IntersectionObserver(M,{...I,root:r.ownerDocument})}catch{s=new IntersectionObserver(M,I)}s.observe(e)}const u=Gt(e),c=()=>i(n);return u.addEventListener("resize",c),i(!0),()=>{u.removeEventListener("resize",c),a()}}function vw(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=du(e),d=o||r?[...c?dr(c):[],...t?dr(t):[]]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n),r&&h.addEventListener("resize",n)});const f=c&&i?hw(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 $;($=m)==null||$.observe(t)})),n()}),c&&!u&&m.observe(c),t&&m.observe(t));let g,w=u?Ys(e):null;u&&C();function C(){const h=Ys(e);w&&!dm(w,h)&&n(),w=h,g=requestAnimationFrame(C)}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 gw=K0,yw=z0,vd=H0,bw=Y0,_w=j0,ww=U0,xw=G0,kw=(e,t,n)=>{const s=new Map,o=n??{},r={...mw,...o.platform,_c:s};return V0(e,t,{...o,platform:r})};function Sw(e){return e!=null&&typeof e=="object"&&"$el"in e}function di(e){if(Sw(e)){const t=e.$el;return iu(t)&&Qs(t)==="#comment"?null:t}return e}function io(e){return typeof e=="function"?e():l(e)}function Cw(e){return{name:"arrow",options:e,fn(t){const n=di(io(e.element));return n==null?{}:ww({element:n,padding:e.padding}).fn(t)}}}function fm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gd(e,t){const n=fm(e);return Math.round(t*n)/n}function Aw(e,t,n){n===void 0&&(n={});const s=n.whileElementsMounted,o=te(()=>{var A;return(A=io(n.open))!=null?A:!0}),r=te(()=>io(n.middleware)),a=te(()=>{var A;return(A=io(n.placement))!=null?A:"bottom"}),i=te(()=>{var A;return(A=io(n.strategy))!=null?A:"absolute"}),u=te(()=>{var A;return(A=io(n.transform))!=null?A:!0}),c=te(()=>di(e.value)),d=te(()=>di(t.value)),f=D(0),p=D(0),m=D(i.value),g=D(a.value),w=Oa({}),C=D(!1),h=te(()=>{const A={position:m.value,left:"0",top:"0"};if(!d.value)return A;const M=gd(d.value,f.value),B=gd(d.value,p.value);return u.value?{...A,transform:"translate("+M+"px, "+B+"px)",...fm(d.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:M+"px",top:B+"px"}});let b;function $(){if(c.value==null||d.value==null)return;const A=o.value;kw(c.value,d.value,{middleware:r.value,placement:a.value,strategy:i.value}).then(M=>{f.value=M.x,p.value=M.y,m.value=M.strategy,g.value=M.placement,w.value=M.middlewareData,C.value=A!==!1})}function k(){typeof b=="function"&&(b(),b=void 0)}function R(){if(k(),s===void 0){$();return}if(c.value!=null&&d.value!=null){b=s(c.value,d.value,$);return}}function I(){o.value||(C.value=!1)}return De([r,a,i,o],$,{flush:"sync"}),De([c,d],R,{flush:"sync"}),De(o,I,{flush:"sync"}),xa()&&Ei(k),{x:no(f),y:no(p),strategy:no(m),placement:no(g),middlewareData:no(w),isPositioned:no(C),floatingStyles:h,update:$}}const Ew=["dir"],pm={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},[uT,Ow]=$t("PopperContent");var Pw=Q({inheritAttrs:!1,__name:"PopperContent",props:hf({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}},{...pm}),emits:["placed"],setup(e,{emit:t}){const n=e,s=t,o=nm(),{forwardRef:r,currentElement:a}=Ne(),i=So(te(()=>n.dir)),u=D(),c=D(),{width:d,height:f}=k1(c),p=te(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),m=te(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),g=te(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),w=te(()=>({padding:m.value,boundary:g.value.filter(O0),altBoundary:g.value.length>0})),C=te(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),h=te(()=>[gw({mainAxis:n.sideOffset+f.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&vd({...w.value,...C.value}),n.avoidCollisions&&yw({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?xw():void 0,...w.value}),!n.prioritizePosition&&n.avoidCollisions&&vd({...w.value,...C.value}),bw({...w.value,apply:({elements:ue,rects:he,availableWidth:J,availableHeight:ce})=>{const{width:re,height:fe}=he.reference,ae=ue.floating.style;ae.setProperty("--reka-popper-available-width",`${J}px`),ae.setProperty("--reka-popper-available-height",`${ce}px`),ae.setProperty("--reka-popper-anchor-width",`${re}px`),ae.setProperty("--reka-popper-anchor-height",`${fe}px`)}}),c.value&&Cw({element:c.value,padding:n.arrowPadding}),P0({arrowWidth:d.value,arrowHeight:f.value,dir:i.value}),n.hideWhenDetached&&_w({strategy:"referenceHidden",...w.value})]),b=te(()=>n.reference??o.anchor.value),{floatingStyles:$,placement:k,isPositioned:R,middlewareData:I}=Aw(b,u,{strategy:n.positionStrategy,placement:p,whileElementsMounted:(...ue)=>vw(...ue,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:h}),A=te(()=>ii(k.value)[0]),M=te(()=>ii(k.value)[1]);rf(()=>{R.value&&s("placed")});const B=te(()=>{var he;const ue=((he=I.value.arrow)==null?void 0:he.centerOffset)!==0;return n.hideShiftedArrow&&ue}),K=D("");os(()=>{a.value&&(K.value=window.getComputedStyle(a.value).zIndex)});const X=te(()=>{var ue;return((ue=I.value.arrow)==null?void 0:ue.x)??0}),W=te(()=>{var ue;return((ue=I.value.arrow)==null?void 0:ue.y)??0});return Ow({placedSide:A,onArrowChange:ue=>c.value=ue,arrowX:X,arrowY:W,shouldHideArrow:B}),(ue,he)=>{var J,ce,re;return x(),Y("div",{ref_key:"floatingRef",ref:u,"data-reka-popper-content-wrapper":"",dir:l(i),style:hn({...l($),transform:l(R)?l($).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K.value,"--reka-popper-transform-origin":[(J=l(I).transformOrigin)==null?void 0:J.x,(ce=l(I).transformOrigin)==null?void 0:ce.y].join(" "),...((re=l(I).hide)==null?void 0:re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[n.memoDependencies?Gv([n.asChild,n.as,A.value,M.value,l(R),...Object.values(ue.$attrs),...n.memoDependencies],()=>(x(),N(l(Ue),Oe({key:0,ref:l(r)},ue.$attrs,{"as-child":n.asChild,as:n.as,"data-side":A.value,"data-align":M.value,style:{animation:l(R)?void 0:"none"}}),{default:y(()=>[ie(ue.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])),he,0):(x(),N(l(Ue),Oe({key:1,ref:l(r)},ue.$attrs,{"as-child":n.asChild,as:n.as,"data-side":A.value,"data-align":M.value,dir:l(i),style:{animation:l(R)?void 0:"none"}}),{default:y(()=>[ie(ue.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","dir","style"]))],12,Ew)}}}),fu=Pw;function Tw(e){const t=wr({nonce:D()});return te(()=>{var n;return(e==null?void 0:e.value)||((n=t.nonce)==null?void 0:n.value)})}const[$w,Iw]=$t("RovingFocusGroup");var Mw=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=So(i),c=rs(s,"currentTabStopId",o,{defaultValue:s.defaultCurrentTabStopId,passive:s.currentTabStopId===void 0}),d=D(!1),f=D(!1),p=D(0),{getItems:m,CollectionSlot:g}=Es({isProvider:!0});function w(h){const b=!f.value;if(h.currentTarget&&h.target===h.currentTarget&&b&&!d.value){const $=new CustomEvent(b0,_0);if(h.currentTarget.dispatchEvent($),o("entryFocus",$),!$.defaultPrevented){const k=m().map(B=>B.ref).filter(B=>B.dataset.disabled!==""),R=k.find(B=>B.getAttribute("data-active")===""),I=k.find(B=>B.getAttribute("data-highlighted")===""),A=k.find(B=>B.id===c.value),M=[R,I,A,...k].filter(Boolean);tm(M,s.preventScrollOnEntryFocus)}}f.value=!1}function C(){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(),N(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]=$=>f.value=!0),onMouseup:C,onFocus:w,onBlur:b[1]||(b[1]=$=>d.value=!1)},{default:y(()=>[ie(h.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),mm=Mw,Rw=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=$w(),s=Dn(),o=te(()=>t.tabStopId||s),r=te(()=>n.currentTabStopId.value===o.value),{getItems:a,CollectionItem:i}=Es();mt(()=>{t.focusable&&n.onFocusableItemAdd()}),yn(()=>{t.focusable&&n.onFocusableItemRemove()}),De(()=>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=k0(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?S0(f,p+1):f.slice(p+1)}yt(()=>tm(f))}}return(c,d)=>(x(),N(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(()=>[ie(c.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),hm=Rw;const[Lw]=$t("CheckboxGroupRoot");function pu(e){return e==="indeterminate"}function vm(e){return pu(e)?"indeterminate":e?"checked":"unchecked"}const[Dw,Nw]=$t("CheckboxRoot");var Fw=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=Lw(null),i=rs(n,"modelValue",s,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),u=te(()=>(a==null?void 0:a.disabled.value)||n.disabled),c=te(()=>ur(i.value,n.trueValue)),d=te(()=>ko(a==null?void 0:a.modelValue.value)?i.value==="indeterminate"?"indeterminate":c.value:Zc(a.modelValue.value,n.value));function f(){if(ko(a==null?void 0:a.modelValue.value))i.value==="indeterminate"?i.value=n.trueValue:i.value=c.value?n.falseValue:n.trueValue;else{const C=[...a.modelValue.value||[]];if(Zc(C,n.value)){const h=C.findIndex(b=>ur(b,n.value));C.splice(h,1)}else C.push(n.value);a.modelValue.value=C}}const p=zp(r),m=y1(),g=fv(),w=te(()=>{var C;if(!g["aria-label"])return n.id&&r.value?(C=document.querySelector(`[for="${n.id}"]`))==null?void 0:C.innerText:void 0});return Nw({disabled:u,state:d}),(C,h)=>{var b,$;return x(),Y(Ae,null,[(x(),N(gr((b=l(a))!=null&&b.rovingFocus.value?l(hm):l(Ue)),Oe({...C.$attrs,...l(m)},{id:C.id,ref:l(o),role:"checkbox","as-child":C.asChild,as:C.as,type:C.as==="button"?"button":void 0,"aria-checked":l(pu)(d.value)?"mixed":d.value,"aria-required":C.required,"aria-label":C.$attrs["aria-label"]||w.value,"data-state":l(vm)(d.value),"data-disabled":u.value?"":void 0,disabled:u.value,focusable:($=l(a))!=null&&$.rovingFocus.value?!u.value:void 0,onKeydown:Bs(ln(()=>{},["prevent"]),["enter"]),onClick:f}),{default:y(()=>[ie(C.$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)&&C.name&&!l(a)?(x(),N(l(y0),Oe({key:0,type:"checkbox",checked:!!d.value,name:C.name,value:C.value,disabled:u.value,required:C.required},l(m)),null,16,["checked","name","value","disabled","required"])):we("v-if",!0)],64)}}}),qw=Fw,Bw=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=Dw();return(s,o)=>(x(),N(l(Js),{present:s.forceMount||l(pu)(l(n).state.value)||l(n).state.value===!0},{default:y(()=>[v(l(Ue),Oe({ref:l(t),"data-state":l(vm)(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(()=>[ie(s.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),Vw=Bw,Uw=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(),N(l(ou),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Hw=Uw;function jw(){const e=D(!1);return mt(()=>{ua("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),ua(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const Ww=Hp(jw),[Ga,Kw]=$t(["MenuRoot","MenuSub"],"MenuContext"),[mu,zw]=$t("MenuRoot");var Gw=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=So(r),i=rs(n,"open",s),u=D(),c=Ww();return Kw({open:i,onOpenChange:d=>{i.value=d},content:u,onContentChange:d=>{u.value=d}}),zw({onClose:()=>{i.value=!1},isUsingKeyboardRef:c,dir:a,modal:o}),(d,f)=>(x(),N(l(su),null,{default:y(()=>[ie(d.$slots,"default")]),_:3}))}}),Yw=Gw;const[gm,Xw]=$t("MenuContent");var Jw=Q({__name:"MenuContentImpl",props:hf({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}},{...pm}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,s=t,o=Ga(),r=mu(),{trapFocus:a,disableOutsidePointerEvents:i,loop:u}=Yt(n);tu(),Na(i.value);const c=D(""),d=D(0),f=D(0),p=D(null),m=D("right"),g=D(0),w=D(null),C=D(),{forwardRef:h,currentElement:b}=Ne(),{handleTypeaheadSearch:$}=nu(),k=D();function R(J){const ce=td(J,k.value||Ct(),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&&(k.value=ce,ce.scrollIntoView({block:"nearest"}))}function I(){k.value&&k.value.click()}const A=D(),M=D();De(k,J=>{if(M.value&&(J===void 0||J!==M.value.trigger.value)){if(J===void 0)return;M.value.onOpenChange(!1),M.value=void 0}}),De(b,J=>{o.onContentChange(J)}),yn(()=>{window.clearTimeout(d.value)});function B(J){var re,fe;return m.value===((re=p.value)==null?void 0:re.side)&&X1(J,(fe=p.value)==null?void 0:fe.area)}async function K(J){var ce;s("openAutoFocus",J),!J.defaultPrevented&&(J.preventDefault(),(ce=b.value)==null||ce.focus({preventScroll:!0}))}function X(J){var at;if(J.defaultPrevented)return;const ce=J.target,re=ce.closest("[data-reka-menu-content]")===J.currentTarget,fe=["input","textarea"].includes(ce.tagName.toLowerCase()),ae=J.ctrlKey||J.altKey||J.metaKey,Z=J.key.length===1,de=td(J,Ct(),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(de)return de==null?void 0:de.focus();if(J.code==="Space")return;const Be=((at=C.value)==null?void 0:at.getItems())??[];if(re&&(J.key==="Tab"&&r.modal.value&&J.preventDefault(),!ae&&Z&&!fe&&$(J.key,Be)),J.target!==b.value||!G1.includes(J.key))return;J.preventDefault();const rt=[...Be.map(nt=>nt.ref)];Jp.includes(J.key)&&rt.reverse(),li(rt)}function W(J){var ce,re;(re=(ce=J==null?void 0:J.currentTarget)==null?void 0:ce.contains)!=null&&re.call(ce,J.target)||(window.clearTimeout(d.value),c.value="")}function ue(J){var fe;if(!ca(J))return;const ce=J.target,re=g.value!==J.clientX;if((fe=J==null?void 0:J.currentTarget)!=null&&fe.contains(ce)&&re){const ae=J.clientX>g.value?"right":"left";m.value=ae,g.value=J.clientX}}function he(J){ca(J)&&A.value&&A.value.focus()}return Xw({onItemEnter:J=>!!B(J),onItemLeave:J=>{var re,fe;return B(J)?!0:(["INPUT","TEXTAREA"].includes(((re=Ct())==null?void 0:re.tagName)||"")||(fe=b.value)==null||fe.focus(),w.value=null,!1)},onTriggerLeave:J=>!!B(J),searchRef:c,highlightedElement:k,onKeydownNavigation:R,onKeydownEnter:I,filterElement:A,onFilterElementChange:J=>{A.value=J},activeSubmenuContext:M,pointerGraceTimerRef:f,onPointerGraceIntentChange:J=>{p.value=J}}),(J,ce)=>(x(),N(l(Va),{"as-child":"",trapped:l(a),onMountAutoFocus:K,onUnmountAutoFocus:ce[7]||(ce[7]=re=>s("closeAutoFocus",re))},{default:y(()=>[v(l(Ba),{"as-child":"","disable-outside-pointer-events":l(i),onEscapeKeyDown:ce[2]||(ce[2]=re=>s("escapeKeyDown",re)),onPointerDownOutside:ce[3]||(ce[3]=re=>s("pointerDownOutside",re)),onFocusOutside:ce[4]||(ce[4]=re=>s("focusOutside",re)),onInteractOutside:ce[5]||(ce[5]=re=>s("interactOutside",re)),onDismiss:ce[6]||(ce[6]=re=>s("dismiss"))},{default:y(()=>[v(l(mm),{ref_key:"rovingFocusGroupRef",ref:C,"current-tab-stop-id":w.value,"onUpdate:currentTabStopId":ce[0]||(ce[0]=re=>w.value=re),"as-child":"",orientation:"vertical",dir:l(r).dir.value,loop:l(u),onEntryFocus:ce[1]||(ce[1]=re=>{s("entryFocus",re),l(r).isUsingKeyboardRef.value||re.preventDefault()})},{default:y(()=>[v(l(fu),{ref:l(h),role:"menu",as:J.as,"as-child":J.asChild,"aria-orientation":"vertical","data-reka-menu-content":"","data-state":l(Qp)(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:W,onPointermove:ue,onPointerenter:he},{default:y(()=>[ie(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"]))}}),ym=Jw,Qw=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=gm(),{forwardRef:s,currentElement:o}=Ne(),{CollectionItem:r}=Es(),a=D(!1),i=te(()=>a.value||o.value!=null&&n.highlightedElement.value===o.value);async function u(d){var f;if(!(d.defaultPrevented||!ca(d))){if(t.disabled)n.onItemLeave(d);else if(!n.onItemEnter(d)){const m=d.currentTarget;n.highlightedElement.value=m,["INPUT","TEXTAREA"].includes(((f=Ct())==null?void 0:f.tagName)||"")||m.focus({preventScroll:!0})}}}async function c(d){if(await yt(),d.defaultPrevented||!ca(d)||n.highlightedElement.value!==o.value)return;!n.onItemLeave(d)&&n.highlightedElement.value===o.value&&(n.highlightedElement.value=void 0)}return(d,f)=>(x(),N(l(r),{value:{textValue:d.textValue}},{default:y(()=>[v(l(Ue),Oe({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 yt(),!(p.defaultPrevented||d.disabled)&&(a.value=!0,l(n).highlightedElement.value=p.currentTarget)}),onBlur:f[1]||(f[1]=async p=>{await yt(),!p.defaultPrevented&&(a.value=!1)})}),{default:y(()=>[ie(d.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),Zw=Qw,ex=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=mu(),i=gm(),u=D(!1);async function c(){const d=r.value;if(!n.disabled&&d){const f=new CustomEvent(K1,{bubbles:!0,cancelable:!0});s("select",f),await yt(),f.defaultPrevented?u.value=!1:a.onClose()}}return(d,f)=>(x(),N(Zw,Oe(n,{ref:l(o),onClick:c,onPointerdown:f[0]||(f[0]=()=>{u.value=!0}),onPointerup:f[1]||(f[1]=async p=>{var m;await yt(),!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(ai).includes(p.key)&&((g=p.currentTarget)==null||g.click(),p.preventDefault())})}),{default:y(()=>[ie(d.$slots,"default")]),_:3},16))}}),tx=ex,nx=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=It(n,s),r=Ga(),{forwardRef:a,currentElement:i}=Ne();return qa(i),(u,c)=>(x(),N(ym,Oe(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(()=>[ie(u.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),sx=nx,ox=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=It(e,t),r=Ga();return(a,i)=>(x(),N(ym,Oe(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(()=>[ie(a.$slots,"default")]),_:3},16))}}),rx=ox,ax=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=It(e,t),r=Ga(),a=mu();return(i,u)=>(x(),N(l(Js),{present:i.forceMount||l(r).open.value},{default:y(()=>[l(a).modal.value?(x(),N(sx,Ot(Oe({key:0},{...i.$attrs,...l(o)})),{default:y(()=>[ie(i.$slots,"default")]),_:3},16)):(x(),N(rx,Ot(Oe({key:1},{...i.$attrs,...l(o)})),{default:y(()=>[ie(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),lx=ax,ix=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(),N(l(Ua),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),ux=ix,cx=Q({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,s)=>(x(),N(l(Ue),Oe(t,{role:"separator","aria-orientation":"horizontal"}),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),dx=cx;const[kr,fx]=$t("PopoverRoot");var px=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=rs(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0});return fx({contentId:"",triggerId:"",modal:o,open:r,onOpenChange:u=>{r.value=u},onOpenToggle:()=>{r.value=!r.value},triggerElement:D(),hasCustomAnchor:D(!1)}),(u,c)=>(x(),N(l(su),null,{default:y(()=>[ie(u.$slots,"default",{open:l(r),close:()=>r.value=!1})]),_:3}))}}),mx=px,hx=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=Fa(o1(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:r}=Ne(),a=kr();return tu(),(i,u)=>(x(),N(l(Va),{"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(Ba),{"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(fu),Oe(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(()=>[ie(i.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),bm=hx,vx=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=kr(),r=D(!1);Na(!0);const a=It(n,s),{forwardRef:i,currentElement:u}=Ne();return qa(u),(c,d)=>(x(),N(bm,Oe(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(()=>[ie(c.$slots,"default")]),_:3},16,["trap-focus"]))}}),gx=vx,yx=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=kr(),r=D(!1),a=D(!1),i=It(n,s);return(u,c)=>(x(),N(bm,Oe(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(()=>[ie(u.$slots,"default")]),_:3},16))}}),bx=yx,_x=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=kr(),r=It(n,s),{forwardRef:a}=Ne();return o.contentId||(o.contentId=Dn(void 0,"reka-popover-content")),(i,u)=>(x(),N(l(Js),{present:i.forceMount||l(o).open.value},{default:y(()=>[l(o).modal.value?(x(),N(gx,Oe({key:0},l(r),{ref:l(a)}),{default:y(()=>[ie(i.$slots,"default")]),_:3},16)):(x(),N(bx,Oe({key:1},l(r),{ref:l(a)}),{default:y(()=>[ie(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),wx=_x,xx=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(),N(l(Ua),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),kx=xx,Sx=Q({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=kr(),{forwardRef:s,currentElement:o}=Ne();return n.triggerId||(n.triggerId=Dn(void 0,"reka-popover-trigger")),mt(()=>{n.triggerElement.value=o.value}),(r,a)=>(x(),N(gr(l(n).hasCustomAnchor.value?l(Ue):l(ou)),{"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(()=>[ie(r.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),Cx=Sx;const[_m,Ax]=$t("DropdownMenuRoot");var Ex=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=rs(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0}),r=D(),{modal:a,dir:i}=Yt(n),u=So(i);return Ax({open:o,onOpenChange:c=>{o.value=c},onOpenToggle:()=>{o.value=!o.value},triggerId:"",triggerElement:r,contentId:"",modal:a,dir:u}),(c,d)=>(x(),N(l(Yw),{open:l(o),"onUpdate:open":d[0]||(d[0]=f=>pt(o)?o.value=f:null),dir:l(u),modal:l(a)},{default:y(()=>[ie(c.$slots,"default",{open:l(o)})]),_:3},8,["open","dir","modal"]))}}),Ox=Ex,Px=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=It(e,t);Ne();const r=_m(),a=D(!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(),N(l(lx),Oe(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 w;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),(w=l(r).triggerElement.value)!=null&&w.contains(f.target)&&f.preventDefault()})}),{default:y(()=>[ie(u.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),Tx=Px,$x=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=xr(t);return Ne(),(r,a)=>(x(),N(l(tx),Ot(Tt({...n,...l(o)})),{default:y(()=>[ie(r.$slots,"default")]),_:3},16))}}),Ix=$x,Mx=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(),N(l(ux),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Rx=Mx,Lx=Q({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Ne(),(n,s)=>(x(),N(l(dx),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Dx=Lx,Nx=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=_m(),{forwardRef:s,currentElement:o}=Ne();return mt(()=>{n.triggerElement=o}),n.triggerId||(n.triggerId=Dn(void 0,"reka-dropdown-menu-trigger")),(r,a)=>(x(),N(l(Hw),{"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 yt(),l(n).open.value&&i.preventDefault())}),onKeydown:a[1]||(a[1]=Bs(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(()=>[ie(r.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),Fx=Nx;const qx=[" ","Enter","ArrowUp","ArrowDown"],Bx=[" ","Enter"],dn=10;function fr(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(s=>fi(s,t,n)):fi(e,t,n)}function fi(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]):ur(e,t)}function Vx(e){return e==null||e===""||Array.isArray(e)&&e.length===0}const Ux=["value"],[Ps,wm]=$t("SelectRoot");var Hx=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=rs(n,"modelValue",s,{defaultValue:n.defaultValue??(a.value?[]:void 0),passive:n.modelValue===void 0,deep:!0}),c=rs(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0}),d=D(),f=D(),p=D({x:0,y:0}),m=te(()=>{var k;return a.value&&Array.isArray(u.value)?((k=u.value)==null?void 0:k.length)===0:ko(u.value)});Es({isProvider:!0});const g=So(i),w=zp(d),C=D(new Set),h=te(()=>Array.from(C.value).map(k=>k.value).join(";"));function b(k){if(a.value){const R=Array.isArray(u.value)?[...u.value]:[],I=R.findIndex(A=>fi(A,k,n.by));I===-1?R.push(k):R.splice(I,1),u.value=[...R]}else u.value=k}function $(k){return Array.from(C.value).find(R=>fr(k,R.value,n.by))}return wm({triggerElement:d,onTriggerChange:k=>{d.value=k},valueElement:f,onValueElementChange:k=>{f.value=k},contentId:"",modelValue:u,onValueChange:b,by:n.by,open:c,multiple:a,required:o,onOpenChange:k=>{c.value=k},dir:g,triggerPointerDownPosRef:p,disabled:r,isEmptyModelValue:m,optionsSet:C,onOptionAdd:k=>{const R=$(k.value);R&&C.value.delete(R),C.value.add(k)},onOptionRemove:k=>{const R=$(k.value);R&&C.value.delete(R)}}),(k,R)=>(x(),N(l(su),null,{default:y(()=>[ie(k.$slots,"default",{modelValue:l(u),open:l(c)}),l(w)&&k.name?(x(),N(Kx,{key:h.value,"aria-hidden":"true",tabindex:"-1",multiple:l(a),required:l(o),name:k.name,autocomplete:k.autocomplete,disabled:l(r),value:l(u)},{default:y(()=>[l(ko)(l(u))?(x(),Y("option",{key:0,value:k.nullableValue},null,8,Ux)):we("v-if",!0),(x(!0),Y(Ae,null,ct(Array.from(C.value),I=>(x(),Y("option",Oe({key:I.value??""},{ref_for:!0},I),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):we("v-if",!0)]),_:3}))}}),jx=Hx,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=D(),s=Ps();De(()=>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(),N(l(em),{"as-child":""},{default:y(()=>[S("select",Oe({ref_key:"selectElement",ref:n},t,{onInput:o}),[ie(r.$slots,"default")],16)]),_:3}))}}),Kx=Wx,zx=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=Fa(e);return(s,o)=>(x(),N(l(fu),Oe(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(()=>[ie(s.$slots,"default")]),_:3},16))}}),Gx=zx;const Yx={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Ya,xm]=$t("SelectContent");var Xx=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=Ps();tu(),Na(n.bodyLock);const{CollectionSlot:r,getItems:a}=Es(),i=D();qa(i);const{search:u,handleTypeaheadSearch:c}=nu(),d=D(),f=D(),p=D(),m=D(!1),g=D(!1),w=D(!1);function C(){f.value&&i.value&&li([f.value,i.value])}De(m,()=>{C()});const{onOpenChange:h,triggerPointerDownPosRef:b}=o;os(I=>{if(!i.value)return;let A={x:0,y:0};const M=K=>{var X,W;A={x:Math.abs(Math.round(K.pageX)-(((X=b.value)==null?void 0:X.x)??0)),y:Math.abs(Math.round(K.pageY)-(((W=b.value)==null?void 0:W.y)??0))}},B=K=>{var X;K.pointerType!=="touch"&&(A.x<=10&&A.y<=10?K.preventDefault():(X=i.value)!=null&&X.contains(K.target)||h(!1),document.removeEventListener("pointermove",M),b.value=null)};b.value!==null&&(document.addEventListener("pointermove",M),document.addEventListener("pointerup",B,{capture:!0,once:!0})),I(()=>{document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",B,{capture:!0})})});function $(I){const A=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!A&&I.key.length===1&&c(I.key,a()),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let B=[...a().map(K=>K.ref)];if(["ArrowUp","End"].includes(I.key)&&(B=B.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const K=I.target,X=B.indexOf(K);B=B.slice(X+1)}setTimeout(()=>li(B)),I.preventDefault()}}const k=te(()=>n.position==="popper"?n:{}),R=Fa(k.value);return xm({content:i,viewport:d,onViewportChange:I=>{d.value=I},itemRefCallback:(I,A,M)=>{const B=!g.value&&!M,K=fr(o.modelValue.value,A,o.by);if(o.multiple.value){if(w.value)return;(K||B)&&(f.value=I,K&&(w.value=!0))}else(K||B)&&(f.value=I);B&&(g.value=!0)},selectedItem:f,selectedItemText:p,onItemLeave:()=>{var I;(I=i.value)==null||I.focus()},itemTextRefCallback:(I,A,M)=>{const B=!g.value&&!M;(fr(o.modelValue.value,A,o.by)||B)&&(p.value=I)},focusSelectedItem:C,position:n.position,isPositioned:m,searchRef:u}),(I,A)=>(x(),N(l(r),null,{default:y(()=>[v(l(Va),{"as-child":"",onMountAutoFocus:A[6]||(A[6]=ln(()=>{},["prevent"])),onUnmountAutoFocus:A[7]||(A[7]=M=>{var B;s("closeAutoFocus",M),!M.defaultPrevented&&((B=l(o).triggerElement.value)==null||B.focus({preventScroll:!0}),M.preventDefault())})},{default:y(()=>[v(l(Ba),{"as-child":"","disable-outside-pointer-events":I.disableOutsidePointerEvents,onFocusOutside:A[2]||(A[2]=ln(()=>{},["prevent"])),onDismiss:A[3]||(A[3]=M=>l(o).onOpenChange(!1)),onEscapeKeyDown:A[4]||(A[4]=M=>s("escapeKeyDown",M)),onPointerDownOutside:A[5]||(A[5]=M=>s("pointerDownOutside",M))},{default:y(()=>[(x(),N(gr(I.position==="popper"?Gx:tk),Oe({...I.$attrs,...l(R)},{id:l(o).contentId,ref:M=>{if(!M)return;const B=l(Ln)(M);B!=null&&B.hasAttribute("data-reka-popper-content-wrapper")?i.value=B.firstElementChild:i.value=B},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]=M=>m.value=!0),onKeydown:$}),{default:y(()=>[ie(I.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),Jx=Xx;const[Qx,Zx]=$t("SelectItemAlignedPosition");var ek=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}=Es(),r=Ps(),a=Ya(),i=D(!1),u=D(!0),c=D(),{forwardRef:d,currentElement:f}=Ne(),{viewport:p,selectedItem:m,selectedItemText:g,focusSelectedItem:w}=a;function C(){if(r.triggerElement.value&&r.valueElement.value&&c.value&&f.value&&(p!=null&&p.value)&&(m!=null&&m.value)&&(g!=null&&g.value)){const $=r.triggerElement.value.getBoundingClientRect(),k=f.value.getBoundingClientRect(),R=r.valueElement.value.getBoundingClientRect(),I=g.value.getBoundingClientRect();if(r.dir.value!=="rtl"){const qe=I.left-k.left,ot=R.left-qe,Ie=$.left-ot,ut=$.width+Ie,me=Math.max(ut,k.width),_=window.innerWidth-dn,T=Qc(ot,dn,Math.max(dn,_-me));c.value.style.minWidth=`${ut}px`,c.value.style.left=`${T}px`}else{const qe=k.right-I.right,ot=window.innerWidth-R.right-qe,Ie=window.innerWidth-$.right-ot,ut=$.width+Ie,me=Math.max(ut,k.width),_=window.innerWidth-dn,T=Qc(ot,dn,Math.max(dn,_-me));c.value.style.minWidth=`${ut}px`,c.value.style.right=`${T}px`}const A=o().map(qe=>qe.ref),M=window.innerHeight-dn*2,B=p.value.scrollHeight,K=window.getComputedStyle(f.value),X=Number.parseInt(K.borderTopWidth,10),W=Number.parseInt(K.paddingTop,10),ue=Number.parseInt(K.borderBottomWidth,10),he=Number.parseInt(K.paddingBottom,10),J=X+W+B+he+ue,ce=Math.min(m.value.offsetHeight*5,J),re=window.getComputedStyle(p.value),fe=Number.parseInt(re.paddingTop,10),ae=Number.parseInt(re.paddingBottom,10),Z=$.top+$.height/2-dn,de=M-Z,Be=m.value.offsetHeight/2,rt=m.value.offsetTop+Be,at=X+W+rt,nt=J-at;if(at<=Z){const qe=m.value===A.at(-1);c.value.style.bottom="0px";const ot=f.value.clientHeight-p.value.offsetTop-p.value.offsetHeight,Ie=Math.max(de,Be+(qe?ae:0)+ot+ue),ut=at+Ie;c.value.style.height=`${ut}px`}else{const qe=m.value===A[0];c.value.style.top="0px";const Ie=Math.max(Z,X+p.value.offsetTop+(qe?fe:0)+Be)+nt;c.value.style.height=`${Ie}px`,p.value.scrollTop=at-Z+p.value.offsetTop}c.value.style.margin=`${dn}px 0`,c.value.style.minHeight=`${ce}px`,c.value.style.maxHeight=`${M}px`,s("placed"),requestAnimationFrame(()=>i.value=!0)}}const h=D("");mt(async()=>{await yt(),C(),f.value&&(h.value=window.getComputedStyle(f.value).zIndex)});function b($){$&&u.value===!0&&(C(),w==null||w(),u.value=!1)}return f1(r.triggerElement,()=>{C()}),Zx({contentWrapper:c,shouldExpandOnScrollRef:i,onScrollButtonChange:b}),($,k)=>(x(),Y("div",{ref_key:"contentWrapperElement",ref:c,style:hn({display:"flex",flexDirection:"column",position:"fixed",zIndex:h.value})},[v(l(Ue),Oe({ref:l(d),style:{boxSizing:"border-box",maxHeight:"100%"}},{...$.$attrs,...n}),{default:y(()=>[ie($.$slots,"default")]),_:3},16)],4))}}),tk=ek,nk=Q({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return wm(e.context),xm(Yx),(n,s)=>ie(n.$slots,"default")}}),sk=nk;const ok={key:1};var rk=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=It(n,t),r=Ps(),a=D();mt(()=>{a.value=new DocumentFragment});const i=D(),u=te(()=>n.forceMount||r.open.value),c=D(u.value);let d;function f(){d&&(clearTimeout(d),d=void 0)}return De(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(),N(l(Js),{key:0,ref_key:"presenceRef",ref:i,present:u.value},{default:y(()=>[v(Jx,Ot(Tt({...l(o),...p.$attrs})),{default:y(()=>[ie(p.$slots,"default")]),_:3},16)]),_:3},8,["present"])):a.value?(x(),Y("div",ok,[(x(),N(Mi,{to:a.value},[v(sk,{context:l(r)},{default:y(()=>[ie(p.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):we("v-if",!0)}}}),ak=rk,lk=Q({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(x(),N(l(Ue),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:y(()=>[ie(t.$slots,"default",{},()=>[n[0]||(n[0]=z("▼"))])]),_:3},8,["as","as-child"]))}}),ik=lk;const[km,uk]=$t("SelectItem");var ck=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=Ps(),a=Ya(),{forwardRef:i,currentElement:u}=Ne(),{CollectionItem:c}=Es(),d=te(()=>{var k;return fr((k=r.modelValue)==null?void 0:k.value,n.value,r.by)}),f=D(!1),p=D(n.textValue??""),m=Dn(void 0,"reka-select-item-text"),g="select.select";async function w(k){if(k.defaultPrevented)return;const R={originalEvent:k,value:n.value};Qi(g,C,R)}async function C(k){await yt(),s("select",k),!k.defaultPrevented&&(o.value||(r.onValueChange(n.value),r.multiple.value||r.onOpenChange(!1)))}async function h(k){var R,I;await yt(),!k.defaultPrevented&&(o.value?(R=a.onItemLeave)==null||R.call(a):(I=k.currentTarget)==null||I.focus({preventScroll:!0}))}async function b(k){var R;await yt(),!k.defaultPrevented&&k.currentTarget===Ct()&&((R=a.onItemLeave)==null||R.call(a))}async function $(k){var I;await yt(),!(k.defaultPrevented||((I=a.searchRef)==null?void 0:I.value)!==""&&k.key===" ")&&(Bx.includes(k.key)&&w(k),k.key===" "&&k.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 mt(()=>{u.value&&a.itemRefCallback(u.value,n.value,n.disabled)}),uk({value:n.value,disabled:o,textId:m,isSelected:d,onItemTextChange:k=>{p.value=((p.value||(k==null?void 0:k.textContent))??"").trim()}}),(k,R)=>(x(),N(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:k.as,"as-child":k.asChild,onFocus:R[0]||(R[0]=I=>f.value=!0),onBlur:R[1]||(R[1]=I=>f.value=!1),onPointerup:w,onPointerdown:R[2]||(R[2]=I=>{I.currentTarget.focus({preventScroll:!0})}),onTouchend:R[3]||(R[3]=ln(()=>{},["prevent","stop"])),onPointermove:h,onPointerleave:b,onKeydown:$},{default:y(()=>[ie(k.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),dk=ck,fk=Q({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=km();return(s,o)=>l(n).isSelected.value?(x(),N(l(Ue),Oe({key:0,"aria-hidden":"true"},t),{default:y(()=>[ie(s.$slots,"default")]),_:3},16)):we("v-if",!0)}}),pk=fk,mk=Q({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=Ps(),s=Ya(),o=km(),{forwardRef:r,currentElement:a}=Ne(),i=te(()=>{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 mt(()=>{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(),N(l(Ue),Oe({id:l(o).textId,ref:l(r)},{...t,...u.$attrs}),{default:y(()=>[ie(u.$slots,"default")]),_:3},16,["id"]))}}),hk=mk,vk=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(),N(l(Ua),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),gk=vk,yk=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=Ps(),{forwardRef:s,currentElement:o}=Ne(),r=te(()=>{var h;return((h=n.disabled)==null?void 0:h.value)||t.disabled});n.contentId||(n.contentId=Dn(void 0,"reka-select-content")),mt(()=>{n.onTriggerChange(o.value)});const{getItems:a}=Es(),{search:i,handleTypeaheadSearch:u,resetTypeahead:c}=nu();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 w(h){p(h)&&h.preventDefault()}function C(h){var b;m||(b=h.currentTarget)==null||b.focus(),m=!1}return(h,b)=>(x(),N(l(ou),{"as-child":"",reference:h.reference},{default:y(()=>{var $,k,R,I;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":($=l(n).required)==null?void 0:$.value,"aria-autocomplete":"none",disabled:r.value,dir:(k=l(n))==null?void 0:k.dir.value,"data-state":(R=l(n))!=null&&R.open.value?"open":"closed","data-disabled":r.value?"":void 0,"data-placeholder":l(Vx)((I=l(n).modelValue)==null?void 0:I.value)?"":void 0,"as-child":h.asChild,as:h.as,onClick:C,onPointerdown:g,onMousedown:w,onPointerup:b[0]||(b[0]=ln(A=>{A.pointerType==="touch"&&f(A)},["prevent"])),onKeydown:b[1]||(b[1]=A=>{const M=l(i)!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&M&&A.key===" "||(l(u)(A.key,l(a)()),l(qx).includes(A.key)&&(d(),A.preventDefault()))})},{default:y(()=>[ie(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"]))}}),bk=yk,_k=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=Ps();mt(()=>{o.valueElement=s});const r=te(()=>{var d;let i=[];const u=Array.from(o.optionsSet.value),c=f=>u.find(p=>fr(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=te(()=>r.value.length?r.value.join(", "):t.placeholder);return(i,u)=>(x(),N(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(()=>[ie(i.$slots,"default",{selectedLabel:r.value,modelValue:l(o).modelValue.value},()=>[z(E(a.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),wk=_k,xk=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=Tw(n),o=Ya(),r=o.position==="item-aligned"?Qx():void 0,{forwardRef:a,currentElement:i}=Ne();mt(()=>{o==null||o.onViewportChange(i.value)});const u=D(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 w=window.innerHeight-dn*2,C=Number.parseFloat(m.value.style.minHeight),h=Number.parseFloat(m.value.style.height),b=Math.max(C,h);if(b<w){const $=b+g,k=Math.min(w,$),R=$-k;m.value.style.height=`${k}px`,m.value.style.bottom==="0px"&&(f.scrollTop=R>0?R:0,m.value.style.justifyContent="flex-end")}}}u.value=f.scrollTop}return(d,f)=>(x(),Y(Ae,null,[v(l(Ue),Oe({ref:l(a),"data-reka-select-viewport":"",role:"presentation"},{...d.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:c}),{default:y(()=>[ie(d.$slots,"default")]),_:3},16),v(l(Ue),{as:"style",nonce:l(s)},{default:y(()=>f[0]||(f[0]=[z(" /* 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))}}),kk=xk,Sk=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=te(()=>s(t.orientation)?t.orientation:"horizontal"),r=te(()=>o.value==="vertical"?t.orientation:void 0),a=te(()=>t.decorative?{role:"none"}:{"aria-orientation":r.value,role:"separator"});return(i,u)=>(x(),N(l(Ue),Oe({as:i.as,"as-child":i.asChild,"data-orientation":o.value},a.value),{default:y(()=>[ie(i.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),Ck=Sk,Ak=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(),N(Ck,Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Ek=Ak;const[hu,Ok]=$t("TabsRoot");var Pk=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=So(a);Ne();const u=rs(n,"modelValue",s,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),c=D(),d=Oa(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(),N(l(Ue),{dir:l(i),"data-orientation":l(o),"as-child":f.asChild,as:f.as},{default:y(()=>[ie(f.$slots,"default",{modelValue:l(u)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),Tk=Pk;function Sm(e,t){return`${e}-trigger-${t}`}function Cm(e,t){return`${e}-content-${t}`}var $k=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=hu(),o=te(()=>Sm(s.baseId,t.value)),r=te(()=>Cm(s.baseId,t.value)),a=te(()=>t.value===s.modelValue.value),i=D(a.value);return mt(()=>{s.registerContent(t.value),requestAnimationFrame(()=>{i.value=!1})}),$a(()=>{s.unregisterContent(t.value)}),(u,c)=>(x(),N(l(Js),{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?ie(u.$slots,"default",{key:0}):we("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),Ik=$k,Mk=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=hu();return r.tabsList=o,(a,i)=>(x(),N(l(mm),{"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(()=>[ie(a.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),Rk=Mk,Lk=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=hu(),o=te(()=>Sm(s.baseId,t.value)),r=te(()=>s.contentIds.value.has(t.value)?Cm(s.baseId,t.value):void 0),a=te(()=>t.value===s.modelValue.value);return(i,u)=>(x(),N(l(hm),{"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]=Bs(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(()=>[ie(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"]))}}),Dk=Lk;const pi=Q({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=It(e,t);return(r,a)=>(x(),N(l(Ox),Ot(Tt(l(o))),{default:y(()=>[ie(r.$slots,"default")]),_:3},16))}}),mi=Q({__name:"DropdownMenuTrigger",setup(e){return(t,n)=>(x(),N(l(Fx),{"as-child":""},{default:y(()=>[ie(t.$slots,"default")]),_:3}))}}),hi=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=te(()=>{const{class:a,...i}=n;return i}),r=It(o,s);return(a,i)=>(x(),N(l(Rx),null,{default:y(()=>[v(l(Tx),Oe(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(()=>[ie(a.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),jn=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=te(()=>{const{class:a,inset:i,...u}=n;return u}),r=It(o,s);return(a,i)=>(x(),N(l(Ix),Oe(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(()=>[ie(a.$slots,"default")]),_:3},16,["data-inset","class"]))}}),vi=Q({__name:"DropdownMenuSeparator",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),N(l(Dx),{class:xe(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 Nk=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 yd=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 Fk=(...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 bd=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 qk=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 Bk=e=>{const t=qk(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 Ro={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=Ro.width,color:i=Ro.stroke,...u},{slots:c})=>tn("svg",{...Ro,...u,width:a,height:a,stroke:i,"stroke-width":yd(n)||yd(s)||n===!0||s===!0?Number(o||r||Ro["stroke-width"])*24/Number(a):o||r||Ro["stroke-width"],class:Fk("lucide",u.class,...e?[`lucide-${bd(Bk(e))}-icon`,`lucide-${bd(e)}`]:["lucide-icon"]),...!c.default&&!Nk(u)&&{"aria-hidden":"true"}},[...t.map(d=>tn(...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 Me=(e,t)=>(n,{slots:s,attrs:o})=>tn(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 Am=Me("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 Em=Me("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 Xn=Me("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 Xa=Me("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 gi=Me("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 Uk=Me("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 Hk=Me("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 Us=Me("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 Om=Me("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 yi=Me("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 ma=Me("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 ha=Me("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 Pm=Me("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 Wo=Me("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
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 jk=Me("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"}]]);/**
|
|
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 Tm=Me("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
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 Wk=Me("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"}]]);/**
|
|
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 Kk=Me("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"}]]);/**
|
|
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 _t=Me("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
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 zk=Me("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"}]]);/**
|
|
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 Gk=Me("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"}]]);/**
|
|
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 Yk=Me("move-down",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["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 Xk=Me("move-up",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);/**
|
|
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 Jk=Me("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"}]]);/**
|
|
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 $m=Me("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"}]]);/**
|
|
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 Qk=Me("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"}]]);/**
|
|
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 Im=Me("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"}]]);/**
|
|
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 es=Me("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
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 pr=Me("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"}]]);/**
|
|
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 Zk=Me("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"}]]);/**
|
|
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 Mm=Me("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
|
|
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 bi=Me("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"}]]);/**
|
|
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 eS=Me("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"}]]);/**
|
|
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 tS=Me("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"}]]);/**
|
|
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 El=Me("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"}]]);/**
|
|
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 _i=Me("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"}]]);/**
|
|
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 nS=Me("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"}]]);/**
|
|
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 sS=Me("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"}]]);/**
|
|
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 vu=Me("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
278
|
+
* @license lucide-vue-next v1.0.0 - ISC
|
|
279
|
+
*
|
|
280
|
+
* This source code is licensed under the ISC license.
|
|
281
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
282
|
+
*/const Vr=Me("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"}]]),Ja=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=It(e,t);return(r,a)=>(x(),N(l($1),Ot(Tt(l(o))),{default:y(()=>[ie(r.$slots,"default")]),_:3},16))}}),Qa=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=te(()=>{const{class:a,...i}=n;return i}),r=It(o,s);return(a,i)=>(x(),N(l(f0),null,{default:y(()=>[v(l(u0),{class:"fixed inset-0 z-50 bg-black/80"}),v(l(s0),Oe(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(()=>[ie(a.$slots,"default"),v(l(M1),{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(vu),{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(),N(l(m0),{class:xe(l(Ge)("text-lg font-semibold leading-none tracking-tight",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["class"]))}}),el=Q({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),N(l(r0),{class:xe(l(Ge)("text-sm text-muted-foreground",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["class"]))}}),Wn=Q({__name:"Checkbox",props:bs({class:{type:[Boolean,null,String,Object,Array]},id:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=yr(e,"modelValue");return(s,o)=>(x(),N(l(qw),{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=r=>n.value=r),id:t.id,class:xe(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(Xn),{class:"h-3.5 w-3.5"})]),_:1})]),_:1},8,["modelValue","id","class"]))}}),wi=Q({__name:"Separator",props:{class:{type:[Boolean,null,String,Object,Array]},orientation:{}},setup(e){const t=e;return(n,s)=>(x(),N(l(Ek),{orientation:t.orientation??"horizontal",class:xe(l(Ge)("shrink-0 bg-border",t.orientation==="vertical"?"h-full w-px":"h-px w-full",t.class))},null,8,["orientation","class"]))}}),oS={class:"flex gap-3 pr-8"},rS={key:0,class:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-destructive/15 text-destructive"},aS={class:"min-w-0 flex-1 space-y-1.5"},lS={class:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"},gu=Q({__name:"ConfirmDialog",props:bs({title:{},description:{},confirmText:{default:""},cancelText:{default:""},variant:{default:"default"},loading:{type:Boolean,default:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:bs(["confirm"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=yr(e,"open"),o=t;return(r,a)=>(x(),N(l(Ja),{open:s.value,"onUpdate:open":a[2]||(a[2]=i=>s.value=i)},{default:y(()=>[v(l(Qa),{class:"max-w-sm"},{default:y(()=>[S("div",oS,[e.variant==="destructive"?(x(),Y("span",rS,[v(l(nS),{class:"h-4 w-4"})])):we("",!0),S("div",aS,[v(l(Za),{class:"text-base leading-tight"},{default:y(()=>[z(E(e.title),1)]),_:1}),e.description?(x(),N(l(el),{key:0},{default:y(()=>[z(E(e.description),1)]),_:1})):we("",!0)])]),S("div",lS,[v(l(Pe),{variant:"outline",disabled:e.loading,onClick:a[0]||(a[0]=i=>s.value=!1)},{default:y(()=>[z(E(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(),N(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),z(" "+E(e.confirmText||l(n)("common.confirm")),1)]),_:1},8,["variant","disabled"])])]),_:1})]),_:1},8,["open"]))}}),iS={class:"flex items-center gap-2 pr-8"},uS={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},cS={class:"min-w-0"},dS={key:0,class:"py-4 text-center text-sm text-muted-foreground"},fS={key:1,class:"py-4 text-center text-sm text-destructive"},pS={class:"space-y-1"},mS={key:0,class:"space-y-1.5 rounded-md border bg-muted/30 p-3 text-xs leading-relaxed text-muted-foreground"},hS={key:3,class:"space-y-3 rounded-lg border bg-muted/30 p-4"},vS={class:"space-y-1.5"},gS={class:"text-xs font-medium text-muted-foreground"},yS={class:"space-y-1.5"},bS={class:"text-xs font-medium text-muted-foreground"},_S={class:"space-y-3 rounded-md border bg-background/50 p-3"},wS={class:"space-y-2"},xS={class:"flex items-center gap-2.5"},kS={class:"flex items-center gap-2.5 pl-7"},SS={class:"flex items-center gap-2.5"},CS={class:"text-xs text-muted-foreground"},AS={key:0,class:"space-y-1.5"},ES={class:"text-xs font-medium text-muted-foreground"},OS={class:"text-xs text-muted-foreground"},PS={key:1,class:"space-y-1.5"},TS={class:"text-xs font-medium text-muted-foreground"},$S={class:"text-xs text-muted-foreground"},IS={class:"space-y-1.5"},MS={class:"text-xs font-medium text-muted-foreground"},RS={key:2,class:"text-sm text-destructive"},LS={class:"flex justify-end gap-2"},DS={key:4,class:"space-y-2"},NS={key:0,class:"flex items-center gap-3"},FS={class:"min-w-0 flex-1"},qS={class:"flex items-center gap-2"},BS={class:"truncate font-medium"},VS={key:0,class:"mt-0.5 truncate font-mono text-xs text-muted-foreground"},US={key:1,class:"mt-0.5 truncate font-mono text-xs text-muted-foreground"},HS={key:1,class:"space-y-3"},jS={class:"space-y-1.5"},WS={class:"text-xs font-medium text-muted-foreground"},KS={class:"space-y-1.5"},zS={class:"text-xs font-medium text-muted-foreground"},GS={class:"space-y-3 rounded-md border bg-background/50 p-3"},YS={class:"space-y-2"},XS={class:"flex items-center gap-2.5"},JS={class:"flex items-center gap-2.5 pl-7"},QS={class:"flex items-center gap-2.5"},ZS={key:0,class:"space-y-1.5"},eC={class:"text-xs font-medium text-muted-foreground"},tC={class:"text-xs text-muted-foreground"},nC={key:1,class:"space-y-1.5"},sC={class:"text-xs font-medium text-muted-foreground"},oC={class:"text-xs text-muted-foreground"},rC={class:"space-y-1.5"},aC={class:"flex items-center justify-between"},lC={class:"text-xs font-medium text-muted-foreground"},iC={key:0,class:"text-xs text-muted-foreground"},uC={class:"space-y-1.5"},cC={class:"text-xs font-medium text-muted-foreground"},dC={class:"text-xs text-muted-foreground"},fC={class:"flex justify-end gap-2"},pC=Q({__name:"SourcesDialog",props:{open:{type:Boolean,default:!1},openModifiers:{}},emits:bs(["changed"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=yr(e,"open"),o=t,r=D([]),a=D(!1),i=D(""),u=D(""),c=D(""),d=D(""),f=D(""),p=D(!0),m=D(!1),g=D(!1),w=D(!1),C=D(""),h=D(!1),b=D(!1),$=D(null),k=D(""),R=D(""),I=D(""),A=D(""),M=D(""),B=D(!0),K=D(!1),X=D(!1),W=D(!1),ue=D({}),he=D(null),J=D(!1),ce=D(!1);async function re(){a.value=!0,i.value="";try{const me=await Fe("GET","/admin/providers");r.value=me.providers}catch(me){i.value=me.message}finally{a.value=!1}}De(s,me=>{me&&re()});function fe(me,_){const T=me==="new"?p:B,j=me==="new"?m:K;if(_==="openai"){if(T.value&&!j.value)return;T.value=!T.value}else{if(j.value&&!T.value)return;j.value=!j.value}}function ae(me){const _=[];return(me==="new"?p:B).value&&_.push("openai"),(me==="new"?m:K).value&&_.push("anthropic"),_}async function Z(){if(w.value)return;C.value="";const me=ae("new");if(!u.value||!f.value){C.value=n("sources.errRequired");return}if(!me.length){C.value=n("sources.errFormat");return}if(p.value&&!c.value||m.value&&!d.value){C.value=n("sources.errBaseUrl");return}w.value=!0;try{const _=await Fe("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,_.provider],u.value=f.value="",c.value=d.value="",g.value=!1,h.value=!1,$e(n("sources.added"),"success"),o("changed")}catch(_){$e(_.message,"error")}finally{w.value=!1}}function de(me){$.value=me.id,k.value=me.name,R.value=me.baseUrlOpenai,I.value=me.baseUrlAnthropic,A.value="",M.value=me.rpm?String(me.rpm):"",B.value=me.formats.includes("openai"),K.value=me.formats.includes("anthropic"),X.value=!!me.supportsResponses}function Be(){$.value=null}async function rt(me){if(W.value)return;const _=ae("edit");if(!k.value){$e(n("sources.errRequired"),"error");return}if(!_.length){$e(n("sources.errFormat"),"error");return}if(B.value&&!R.value||K.value&&!I.value){$e(n("sources.errBaseUrl"),"error");return}W.value=!0;try{const T={name:k.value,baseUrlOpenai:R.value,baseUrlAnthropic:I.value,formats:_,supportsResponses:B.value&&X.value,rpm:Number(M.value)||0};A.value&&(T.apiKey=A.value);const j=await Fe("PUT",`/admin/providers/${me.id}`,T);r.value=r.value.map(le=>le.id===me.id?j.provider:le),$.value=null,$e(n("sources.updated"),"success"),o("changed")}catch(T){$e(T.message,"error")}finally{W.value=!1}}async function at(me){ue.value[me.id]=!0;try{const _=await Fe("POST",`/admin/providers/${me.id}/discover`);r.value=r.value.map(T=>T.id===me.id?{...T,discoveredModels:_.models}:T),$e(n("sources.refreshDone",{name:me.name}),_.models.length?"success":"default"),o("changed")}catch(_){$e(_.message,"error")}finally{ue.value[me.id]=!1}}function nt(me){he.value=me,J.value=!0}async function Ye(){const me=he.value;if(!(!me||ce.value)){ce.value=!0;try{await Fe("DELETE",`/admin/providers/${me.id}`),r.value=r.value.filter(_=>_.id!==me.id),$e(n("sources.removed",{name:me.name}),"success"),o("changed"),J.value=!1}catch(_){$e(_.message,"error")}finally{ce.value=!1}}}function qe(me){var _;return((_=me.discoveredModels)==null?void 0:_.length)??0}function ot(me){return qe(me)>0?"found":me.discoveredAt?"empty":"never"}function Ie(me){const _=ot(me);return _==="found"?n("sources.discoveredCount",{n:qe(me)}):n(_==="empty"?"sources.noModelsFound":"sources.notScanned")}function ut(me){const _=ot(me);return _==="empty"?n("sources.noModelsHint"):_==="never"?n("sources.notScannedHint"):""}return(me,_)=>(x(),Y(Ae,null,[v(l(Ja),{open:s.value,"onUpdate:open":_[18]||(_[18]=T=>s.value=T)},{default:y(()=>[v(l(Qa),{class:"max-w-xl"},{default:y(()=>[S("div",iS,[S("span",uS,[v(l(bi),{class:"h-4 w-4"})]),S("div",cS,[v(l(Za),{class:"text-base"},{default:y(()=>[z(E(l(n)("sources.manage")),1)]),_:1}),v(l(el),null,{default:y(()=>[z(E(l(n)("sources.subtitle")),1)]),_:1})])]),a.value?(x(),Y("p",dS,E(l(n)("common.loading")),1)):i.value?(x(),Y("p",fS,E(i.value),1)):we("",!0),S("div",pS,[S("button",{type:"button",class:"inline-flex items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground",onClick:_[0]||(_[0]=T=>b.value=!b.value)},[v(l(Tm),{class:"h-3.5 w-3.5"}),z(" "+E(l(n)("sources.baseHelpToggle"))+" ",1),v(l(Xa),{class:xe(["h-3.5 w-3.5 transition-transform",{"rotate-180":b.value}])},null,8,["class"])]),b.value?(x(),Y("div",mS,[S("p",null,E(l(n)("sources.baseHelpSplit")),1),S("p",null,[_[20]||(_[20]=S("span",{class:"font-medium text-foreground"},"openai",-1)),z(" — "+E(l(n)("sources.baseHelpOpenai")),1)]),S("p",null,[_[21]||(_[21]=S("span",{class:"font-medium text-foreground"},"anthropic",-1)),z(" — "+E(l(n)("sources.baseHelpAnthropic")),1)])])):we("",!0)]),!h.value&&r.value.length?(x(),N(l(Pe),{key:2,variant:"outline",class:"w-full justify-center",onClick:_[1]||(_[1]=T=>h.value=!0)},{default:y(()=>[v(l(es),{class:"h-4 w-4"}),z(E(l(n)("sources.add")),1)]),_:1})):(x(),Y("div",hS,[S("div",vS,[S("label",gS,E(l(n)("sources.nameLabel")),1),v(l(bt),{modelValue:u.value,"onUpdate:modelValue":_[2]||(_[2]=T=>u.value=T),placeholder:l(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])]),S("div",yS,[S("label",bS,E(l(n)("sources.formats")),1),S("div",_S,[S("div",wS,[S("div",xS,[v(l(Wn),{"model-value":p.value,disabled:p.value&&!m.value,"aria-label":"openai","onUpdate:modelValue":_[3]||(_[3]=T=>fe("new","openai"))},null,8,["model-value","disabled"]),_[22]||(_[22]=S("span",{class:"text-sm font-medium leading-none"},"openai",-1)),_[23]||(_[23]=S("span",{class:"text-xs text-muted-foreground"},"/chat/completions",-1))]),S("div",kS,[v(l(Wn),{modelValue:g.value,"onUpdate:modelValue":_[4]||(_[4]=T=>g.value=T),disabled:!p.value,"aria-label":l(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:xe(["text-sm leading-none",p.value?"":"text-muted-foreground"])},E(l(n)("sources.responses")),3),_[24]||(_[24]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),v(l(wi)),S("div",SS,[v(l(Wn),{"model-value":m.value,disabled:m.value&&!p.value,"aria-label":"anthropic","onUpdate:modelValue":_[5]||(_[5]=T=>fe("new","anthropic"))},null,8,["model-value","disabled"]),_[25]||(_[25]=S("span",{class:"text-sm font-medium leading-none"},"anthropic",-1)),_[26]||(_[26]=S("span",{class:"text-xs text-muted-foreground"},"/messages",-1))])]),S("p",CS,E(l(n)("sources.addHint")),1)]),p.value?(x(),Y("div",AS,[S("label",ES,E(l(n)("sources.urlLabelOpenai")),1),v(l(bt),{modelValue:c.value,"onUpdate:modelValue":_[6]||(_[6]=T=>c.value=T),placeholder:l(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",OS,E(l(n)("sources.urlHintOpenai")),1)])):we("",!0),m.value?(x(),Y("div",PS,[S("label",TS,E(l(n)("sources.urlLabelAnthropic")),1),v(l(bt),{modelValue:d.value,"onUpdate:modelValue":_[7]||(_[7]=T=>d.value=T),placeholder:l(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",$S,E(l(n)("sources.urlHintAnthropic")),1)])):we("",!0),S("div",IS,[S("label",MS,E(l(n)("sources.keyLabel")),1),v(l(bt),{modelValue:f.value,"onUpdate:modelValue":_[8]||(_[8]=T=>f.value=T),type:"password",placeholder:l(n)("sources.keyPh"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])]),C.value?(x(),Y("p",RS,E(C.value),1)):we("",!0),S("div",LS,[r.value.length?(x(),N(l(Pe),{key:0,variant:"ghost",size:"sm",onClick:_[9]||(_[9]=T=>h.value=!1)},{default:y(()=>[z(E(l(n)("sources.cancel")),1)]),_:1})):we("",!0),v(l(Pe),{size:"sm",disabled:w.value,onClick:Z},{default:y(()=>[w.value?(x(),N(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):(x(),N(l(es),{key:1,class:"h-4 w-4"})),z(E(l(n)("sources.addBtn")),1)]),_:1},8,["disabled"])])])),r.value.length?(x(),Y("div",DS,[(x(!0),Y(Ae,null,ct(r.value,T=>(x(),Y("div",{key:T.id,class:"rounded-lg border p-3"},[$.value!==T.id?(x(),Y("div",NS,[S("div",FS,[S("div",qS,[S("span",BS,E(T.name),1),(x(!0),Y(Ae,null,ct(T.formats,j=>(x(),N(l(gt),{key:j,variant:"secondary"},{default:y(()=>[z(E(j),1)]),_:2},1024))),128)),T.rpm?(x(),N(l(gt),{key:0,variant:"outline",title:l(n)("sources.rpmBadgeHint")},{default:y(()=>[z(E(l(n)("sources.rpmBadge",{n:T.rpm})),1)]),_:2},1032,["title"])):we("",!0),v(l(gt),{variant:"muted",title:ut(T)},{default:y(()=>[z(E(Ie(T)),1)]),_:2},1032,["title"])]),T.formats.includes("openai")?(x(),Y("div",VS,[_[27]||(_[27]=S("span",{class:"opacity-60"},"openai ·",-1)),z(" "+E(T.baseUrlOpenai),1)])):we("",!0),T.formats.includes("anthropic")?(x(),Y("div",US,[_[28]||(_[28]=S("span",{class:"opacity-60"},"anthropic ·",-1)),z(" "+E(T.baseUrlAnthropic),1)])):we("",!0)]),v(l(pi),null,{default:y(()=>[v(l(mi),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(yi),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),v(l(hi),{align:"end"},{default:y(()=>[v(l(jn),{disabled:ue.value[T.id],onSelect:j=>at(T)},{default:y(()=>[ue.value[T.id]?(x(),N(l(_t),{key:0,class:"animate-spin"})):(x(),N(l(pr),{key:1})),z(" "+E(l(n)("sources.refreshModels")),1)]),_:2},1032,["disabled","onSelect"]),v(l(jn),{onSelect:j=>de(T)},{default:y(()=>[v(l($m)),z(" "+E(l(n)("sources.editLabel")),1)]),_:1},8,["onSelect"]),v(l(vi)),v(l(jn),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:j=>nt(T)},{default:y(()=>[v(l(_i)),z(" "+E(l(n)("sources.deleteLabel")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)])):(x(),Y("div",HS,[S("div",jS,[S("label",WS,E(l(n)("sources.nameLabel")),1),v(l(bt),{modelValue:k.value,"onUpdate:modelValue":_[10]||(_[10]=j=>k.value=j),placeholder:l(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])]),S("div",KS,[S("label",zS,E(l(n)("sources.formats")),1),S("div",GS,[S("div",YS,[S("div",XS,[v(l(Wn),{"model-value":B.value,disabled:B.value&&!K.value,"aria-label":"openai","onUpdate:modelValue":_[11]||(_[11]=j=>fe("edit","openai"))},null,8,["model-value","disabled"]),_[29]||(_[29]=S("span",{class:"text-sm font-medium leading-none"},"openai",-1)),_[30]||(_[30]=S("span",{class:"text-xs text-muted-foreground"},"/chat/completions",-1))]),S("div",JS,[v(l(Wn),{modelValue:X.value,"onUpdate:modelValue":_[12]||(_[12]=j=>X.value=j),disabled:!B.value,"aria-label":l(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:xe(["text-sm leading-none",B.value?"":"text-muted-foreground"])},E(l(n)("sources.responses")),3),_[31]||(_[31]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),v(l(wi)),S("div",QS,[v(l(Wn),{"model-value":K.value,disabled:K.value&&!B.value,"aria-label":"anthropic","onUpdate:modelValue":_[13]||(_[13]=j=>fe("edit","anthropic"))},null,8,["model-value","disabled"]),_[32]||(_[32]=S("span",{class:"text-sm font-medium leading-none"},"anthropic",-1)),_[33]||(_[33]=S("span",{class:"text-xs text-muted-foreground"},"/messages",-1))])])]),B.value?(x(),Y("div",ZS,[S("label",eC,E(l(n)("sources.urlLabelOpenai")),1),v(l(bt),{modelValue:R.value,"onUpdate:modelValue":_[14]||(_[14]=j=>R.value=j),placeholder:l(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",tC,E(l(n)("sources.urlHintOpenai")),1)])):we("",!0),K.value?(x(),Y("div",nC,[S("label",sC,E(l(n)("sources.urlLabelAnthropic")),1),v(l(bt),{modelValue:I.value,"onUpdate:modelValue":_[15]||(_[15]=j=>I.value=j),placeholder:l(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",oC,E(l(n)("sources.urlHintAnthropic")),1)])):we("",!0),S("div",rC,[S("div",aC,[S("label",lC,E(l(n)("sources.keyLabel")),1),T.apiKey?(x(),Y("span",iC,E(l(n)("sources.currentKeyLabel"))+": "+E(T.apiKey),1)):we("",!0)]),v(l(bt),{modelValue:A.value,"onUpdate:modelValue":_[16]||(_[16]=j=>A.value=j),type:"password",placeholder:l(n)("sources.keyPhEdit"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])]),S("div",uC,[S("label",cC,E(l(n)("sources.rpmLabel")),1),v(l(bt),{modelValue:M.value,"onUpdate:modelValue":_[17]||(_[17]=j=>M.value=j),type:"number",min:"0",inputmode:"numeric",placeholder:l(n)("sources.rpmPh"),"aria-label":"rpm"},null,8,["modelValue","placeholder"]),S("p",dC,E(l(n)("sources.rpmHint")),1)]),S("div",fC,[v(l(Pe),{variant:"ghost",size:"sm",onClick:Be},{default:y(()=>[z(E(l(n)("sources.cancel")),1)]),_:1}),v(l(Pe),{size:"sm",disabled:W.value,onClick:j=>rt(T)},{default:y(()=>[W.value?(x(),N(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),z(E(l(n)("sources.saveBtn")),1)]),_:1},8,["disabled","onClick"])])]))]))),128))])):we("",!0)]),_:1})]),_:1},8,["open"]),v(gu,{open:J.value,"onUpdate:open":_[19]||(_[19]=T=>J.value=T),variant:"destructive",title:l(n)("sources.remove"),description:he.value?l(n)("sources.confirmRemove",{name:he.value.name}):"","confirm-text":l(n)("sources.remove"),loading:ce.value,onConfirm:Ye},null,8,["open","title","description","confirm-text","loading"])],64))}}),Ko=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=It(e,t);return(r,a)=>(x(),N(l(jx),Ot(Tt(l(o))),{default:y(()=>[ie(r.$slots,"default")]),_:3},16))}}),zo=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=te(()=>{const{class:s,...o}=t;return o});return(s,o)=>(x(),N(l(bk),Oe(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(()=>[ie(s.$slots,"default"),v(l(ik),{"as-child":""},{default:y(()=>[v(l(Xa),{class:"h-4 w-4 opacity-50"})]),_:1})]),_:3},16,["class"]))}}),Go=Q({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,s)=>(x(),N(l(wk),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),Yo=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=te(()=>{const{class:a,...i}=n;return i}),r=It(o,s);return(a,i)=>(x(),N(l(gk),null,{default:y(()=>[v(l(ak),Oe(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(kk),{class:xe(l(Ge)("p-1",n.position==="popper"&&"w-full min-w-[var(--reka-select-trigger-width)]"))},{default:y(()=>[ie(a.$slots,"default")]),_:3},8,["class"])]),_:3},16,["class"])]),_:3}))}}),mC={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=te(()=>{const{class:s,...o}=t;return o});return(s,o)=>(x(),N(l(dk),Oe(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",mC,[v(l(pk),null,{default:y(()=>[v(l(Xn),{class:"h-4 w-4"})]),_:1})]),v(l(hk),null,{default:y(()=>[ie(s.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),hC={class:"flex items-center gap-2 pr-8"},vC={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},gC={class:"min-w-0"},yC={class:"space-y-3"},bC={class:"space-y-1.5"},_C={class:"text-xs font-medium text-muted-foreground"},wC={class:"text-xs text-muted-foreground"},xC={class:"font-medium text-foreground"},kC={key:0,class:"space-y-3 rounded-lg border bg-muted/30 p-4"},SC={class:"text-xs text-muted-foreground"},CC={class:"space-y-1.5"},AC={class:"text-xs font-medium text-muted-foreground"},EC={class:"space-y-1.5"},OC={class:"text-xs font-medium text-muted-foreground"},PC={class:"space-y-2 rounded-md border bg-background/50 p-3"},TC={class:"space-y-2"},$C={class:"flex items-center gap-2.5"},IC={class:"flex items-center gap-2.5 pl-7"},MC={class:"flex items-center gap-2.5"},RC={key:0,class:"space-y-1.5"},LC={class:"text-xs font-medium text-muted-foreground"},DC={class:"text-xs text-muted-foreground"},NC={key:1,class:"space-y-1.5"},FC={class:"text-xs font-medium text-muted-foreground"},qC={class:"text-xs text-muted-foreground"},BC={class:"space-y-1.5"},VC={class:"text-xs font-medium text-muted-foreground"},UC={key:2,class:"text-sm text-destructive"},HC={class:"space-y-1.5"},jC={class:"text-xs font-medium text-muted-foreground"},WC=["placeholder"],KC={key:0,class:"text-xs text-muted-foreground"},zC={class:"flex justify-end gap-2"},Ol="__new__",GC=Q({__name:"AddModelsDialog",props:bs({providers:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:bs(["changed"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=e,o=yr(e,"open"),r=t,a=D(""),i=D(""),u=D(!1),c=D(""),d=D(""),f=D(""),p=D(""),m=D(!0),g=D(!1),w=D(!1),C=D("");De(o,K=>{K&&(a.value=s.providers.length?s.providers[0].id:Ol,i.value="",c.value=p.value="",d.value=f.value="",m.value=!0,g.value=!1,w.value=!1,C.value="")});const h=te(()=>a.value===Ol);function b(K){const X=[...K.formats];return K.supportsResponses&&!X.includes("responses")&&X.push("responses"),X}const $=te(()=>{if(h.value)return b({formats:R(),supportsResponses:m.value&&w.value});const K=s.providers.find(X=>X.id===a.value);return K?b(K):[]});function k(K){if(K==="openai"){if(m.value&&!g.value)return;m.value=!m.value}else{if(g.value&&!m.value)return;g.value=!g.value}}function R(){const K=[];return m.value&&K.push("openai"),g.value&&K.push("anthropic"),K}function I(){return!c.value.trim()||!p.value?n("sources.errRequired"):R().length?m.value&&!d.value.trim()||g.value&&!f.value.trim()?n("sources.errBaseUrl"):"":n("sources.errFormat")}const A=te(()=>{const K=new Set,X=[];for(const W of i.value.split(/[\s,;]+/)){const ue=W.trim();ue&&!K.has(ue)&&(K.add(ue),X.push(ue))}return X}),M=te(()=>!!a.value&&A.value.length>0&&!u.value);async function B(){if(M.value){if(h.value){const K=I();if(K){C.value=K;return}}u.value=!0;try{let K=a.value,X=[],W=!1;if(h.value){const re=await Fe("POST","/admin/providers",{name:c.value.trim(),baseUrlOpenai:d.value,baseUrlAnthropic:f.value,apiKey:p.value,formats:R(),supportsResponses:m.value&&w.value});K=re.provider.id,a.value=K,X=b(re.provider),W=!0,$e(n("sources.added"),"success")}else{const re=s.providers.find(fe=>fe.id===K);X=re?b(re):[]}const ue=[];for(const re of A.value)for(const fe of X)ue.push({name:re,slot:fe});const he=await Promise.allSettled(ue.map(re=>Fe("POST","/admin/models",{name:re.name,format:re.slot,providers:[K]}))),J=new Set;let ce=0;he.forEach((re,fe)=>{re.status==="fulfilled"?J.add(ue[fe].name):ce++}),J.size&&$e(n("models.addedToast",{n:J.size}),"success"),ce&&$e(n("models.addModelsFailed",{n:ce}),"error"),(W||J.size)&&r("changed"),J.size&&(o.value=!1)}finally{u.value=!1}}}return(K,X)=>(x(),N(l(Ja),{open:o.value,"onUpdate:open":X[10]||(X[10]=W=>o.value=W)},{default:y(()=>[v(l(Qa),{class:xe(h.value?"max-w-lg":"max-w-md")},{default:y(()=>[S("div",hC,[S("span",vC,[v(l(es),{class:"h-4 w-4"})]),S("div",gC,[v(l(Za),{class:"text-base"},{default:y(()=>[z(E(l(n)("models.addModels")),1)]),_:1}),v(l(el),null,{default:y(()=>[z(E(l(n)("models.addModelsDesc")),1)]),_:1})])]),S("div",yC,[S("div",bC,[S("label",_C,E(l(n)("models.providerLabel")),1),v(l(Ko),{modelValue:a.value,"onUpdate:modelValue":X[0]||(X[0]=W=>a.value=W)},{default:y(()=>[v(l(zo),null,{default:y(()=>[v(l(Go),{placeholder:l(n)("models.providerPh")},null,8,["placeholder"])]),_:1}),v(l(Yo),null,{default:y(()=>[v(l(An),{value:Ol},{default:y(()=>[z(E(l(n)("models.newSourceOpt")),1)]),_:1}),(x(!0),Y(Ae,null,ct(e.providers,W=>(x(),N(l(An),{key:W.id,value:W.id},{default:y(()=>[z(E(W.name),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"]),S("p",wC,[z(E(l(n)("models.addModelsSlotsHint"))+" ",1),S("span",xC,E($.value.join(" / ")||"—"),1)])]),h.value?(x(),Y("div",kC,[S("p",SC,E(l(n)("models.addModelsNewHint")),1),S("div",CC,[S("label",AC,E(l(n)("sources.nameLabel")),1),v(l(bt),{modelValue:c.value,"onUpdate:modelValue":X[1]||(X[1]=W=>c.value=W),placeholder:l(n)("sources.namePh"),autocomplete:"off","aria-label":"name"},null,8,["modelValue","placeholder"])]),S("div",EC,[S("label",OC,E(l(n)("sources.formats")),1),S("div",PC,[S("div",TC,[S("div",$C,[v(l(Wn),{"model-value":m.value,disabled:m.value&&!g.value,"aria-label":"openai","onUpdate:modelValue":X[2]||(X[2]=W=>k("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",IC,[v(l(Wn),{modelValue:w.value,"onUpdate:modelValue":X[3]||(X[3]=W=>w.value=W),disabled:!m.value,"aria-label":l(n)("sources.responses")},null,8,["modelValue","disabled","aria-label"]),S("span",{class:xe(["text-sm leading-none",m.value?"":"text-muted-foreground"])},E(l(n)("sources.responses")),3),X[13]||(X[13]=S("span",{class:"text-xs text-muted-foreground"},"/responses",-1))])]),v(l(wi)),S("div",MC,[v(l(Wn),{"model-value":g.value,disabled:g.value&&!m.value,"aria-label":"anthropic","onUpdate:modelValue":X[4]||(X[4]=W=>k("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(),Y("div",RC,[S("label",LC,E(l(n)("sources.urlLabelOpenai")),1),v(l(bt),{modelValue:d.value,"onUpdate:modelValue":X[5]||(X[5]=W=>d.value=W),placeholder:l(n)("sources.urlPhOpenai"),autocomplete:"off","aria-label":"openai base url"},null,8,["modelValue","placeholder"]),S("p",DC,E(l(n)("sources.urlHintOpenai")),1)])):we("",!0),g.value?(x(),Y("div",NC,[S("label",FC,E(l(n)("sources.urlLabelAnthropic")),1),v(l(bt),{modelValue:f.value,"onUpdate:modelValue":X[6]||(X[6]=W=>f.value=W),placeholder:l(n)("sources.urlPhAnthropic"),autocomplete:"off","aria-label":"anthropic base url"},null,8,["modelValue","placeholder"]),S("p",qC,E(l(n)("sources.urlHintAnthropic")),1)])):we("",!0),S("div",BC,[S("label",VC,E(l(n)("sources.keyLabel")),1),v(l(bt),{modelValue:p.value,"onUpdate:modelValue":X[7]||(X[7]=W=>p.value=W),type:"password",placeholder:l(n)("sources.keyPh"),autocomplete:"new-password","aria-label":"api key"},null,8,["modelValue","placeholder"])]),C.value?(x(),Y("p",UC,E(C.value),1)):we("",!0)])):we("",!0),S("div",HC,[S("label",jC,E(l(n)("models.namesLabel")),1),zs(S("textarea",{"onUpdate:modelValue":X[8]||(X[8]=W=>i.value=W),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,WC),[[jf,i.value]]),A.value.length?(x(),Y("p",KC,E(l(n)("models.addModelsCount",{n:A.value.length})),1)):we("",!0)]),S("div",zC,[v(l(Pe),{variant:"outline",disabled:u.value,onClick:X[9]||(X[9]=W=>o.value=!1)},{default:y(()=>[z(E(l(n)("common.cancel")),1)]),_:1},8,["disabled"]),v(l(Pe),{disabled:!M.value,onClick:B},{default:y(()=>[u.value?(x(),N(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):(x(),N(l(es),{key:1,class:"h-4 w-4"})),z(" "+E(l(n)("models.addModelsBtn")),1)]),_:1},8,["disabled"])])])]),_:1},8,["class"])]),_:1},8,["open"]))}}),YC={class:"flex items-center gap-2 pr-8"},XC={class:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary"},JC={class:"min-w-0"},QC={class:"space-y-3"},ZC={key:0,class:"rounded-md bg-muted/40 px-3 py-6 text-center text-sm text-muted-foreground"},eA={class:"space-y-1.5"},tA={class:"text-xs font-medium text-muted-foreground"},nA={key:0,class:"text-xs text-muted-foreground"},sA={class:"font-medium text-foreground"},oA={class:"space-y-1.5"},rA={class:"text-xs font-medium text-muted-foreground"},aA=["placeholder","title"],lA={class:"text-xs text-muted-foreground"},iA={class:"flex justify-end gap-2"},uA=Q({__name:"AddSourceDialog",props:bs({modelName:{},providers:{},enabledFormats:{},chainByFormat:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:bs(["added"],["update:open"]),setup(e,{emit:t}){const{t:n}=Ht(),s=e,o=yr(e,"open"),r=t,a=encodeURIComponent,i=D(""),u=D(""),c=D(!1);function d(h,b){return b==="responses"?!!h.supportsResponses:h.formats.includes(b)}function f(h){const b=s.providers.find($=>$.id===h);return b?s.enabledFormats.filter($=>d(b,$)&&!(s.chainByFormat[$]??[]).includes(h)):[]}const p=te(()=>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=te(()=>i.value?f(i.value).map(h=>n(m[h]??h)):[]),w=te(()=>!!i.value&&!c.value);De(o,h=>{var b;h&&(i.value=((b=p.value[0])==null?void 0:b.id)??"",u.value="")});async function C(){if(!w.value)return;const h=i.value,b=s.providers.find(R=>R.id===h);if(!h||!b)return;const $=f(h),k=u.value.trim();c.value=!0;try{let I=(await Promise.allSettled($.map(A=>Fe("POST",`/admin/models/${a(s.modelName)}/providers`,{format:A,providerId:h})))).filter(A=>A.status==="rejected").length;if(k){const A=s.enabledFormats.filter(B=>d(b,B)),M=await Promise.allSettled(A.map(B=>Fe("PUT",`/admin/models/${a(s.modelName)}/map`,{format:B,providerId:h,model:k})));I+=M.filter(B=>B.status==="rejected").length}I?$e(n("models.addSourcePartial"),"error"):$e(n("models.sourceAdded"),"success"),r("added"),o.value=!1}catch(R){$e(R.message,"error")}finally{c.value=!1}}return(h,b)=>(x(),N(l(Ja),{open:o.value,"onUpdate:open":b[3]||(b[3]=$=>o.value=$)},{default:y(()=>[v(l(Qa),{class:"max-w-md"},{default:y(()=>[S("div",YC,[S("span",XC,[v(l(es),{class:"h-4 w-4"})]),S("div",JC,[v(l(Za),{class:"text-base"},{default:y(()=>[z(E(l(n)("models.addSourceTitle")),1)]),_:1}),v(l(el),null,{default:y(()=>[z(E(l(n)("models.addSourceDesc")),1)]),_:1})])]),S("div",QC,[p.value.length?(x(),Y(Ae,{key:1},[S("div",eA,[S("label",tA,E(l(n)("models.providerLabel")),1),v(l(Ko),{modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=$=>i.value=$)},{default:y(()=>[v(l(zo),null,{default:y(()=>[v(l(Go),{placeholder:l(n)("models.providerPh")},null,8,["placeholder"])]),_:1}),v(l(Yo),null,{default:y(()=>[(x(!0),Y(Ae,null,ct(p.value,$=>(x(),N(l(An),{key:$.id,value:$.id},{default:y(()=>[z(E($.name),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"]),g.value.length?(x(),Y("p",nA,[z(E(l(n)("models.addSourceTargetsHint"))+" ",1),S("span",sA,E(g.value.join(" / ")),1)])):we("",!0)]),S("div",oA,[S("label",rA,E(l(n)("models.upstreamLabel")),1),zs(S("input",{"onUpdate:modelValue":b[1]||(b[1]=$=>u.value=$),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,aA),[[jf,u.value]]),S("p",lA,E(l(n)("models.upstreamHint")),1)])],64)):(x(),Y("div",ZC,E(l(n)("models.addSourceNone")),1)),S("div",iA,[v(l(Pe),{variant:"outline",disabled:c.value,onClick:b[2]||(b[2]=$=>o.value=!1)},{default:y(()=>[z(E(l(n)("common.cancel")),1)]),_:1},8,["disabled"]),v(l(Pe),{disabled:!w.value||!p.value.length,onClick:C},{default:y(()=>[c.value?(x(),N(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):(x(),N(l(es),{key:1,class:"h-4 w-4"})),z(" "+E(l(n)("models.addToChain")),1)]),_:1},8,["disabled"])])])]),_:1})]),_:1},8,["open"]))}}),cA={class:"space-y-4"},dA={class:"flex h-11 w-11 items-center justify-center rounded-xl bg-primary/15 text-primary"},fA={class:"space-y-1"},pA={class:"font-medium"},mA={class:"max-w-sm text-sm text-muted-foreground"},hA={class:"flex flex-wrap items-center gap-2"},vA={class:"relative min-w-[180px] flex-1"},gA={class:"text-xs text-muted-foreground"},yA={key:0,class:"py-6 text-center text-sm text-muted-foreground"},bA={key:1,class:"py-6 text-center text-sm text-destructive"},_A={key:0,class:"relative overflow-hidden rounded-lg border border-border/60 bg-card"},wA={class:"flex items-center gap-2.5 border-b border-border/60 bg-muted/30 px-3 py-2"},xA={class:"text-sm font-semibold"},kA={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"},SA={class:"divide-y divide-border"},CA={class:"flex items-center gap-3"},AA=["aria-expanded","aria-label","onClick"],EA={class:"flex min-w-0 flex-1 flex-col items-start"},OA={class:"flex w-full items-center gap-2"},PA={class:"truncate font-mono text-sm font-medium"},TA={class:"w-full truncate text-xs text-muted-foreground"},$A={class:"flex shrink-0 items-center gap-1.5"},IA=["disabled","title","aria-label","onClick"],MA={key:0,class:"mt-2 space-y-3 rounded-md border bg-muted/30 p-2"},RA={class:"flex items-center gap-2 px-1"},LA={class:"text-xs font-semibold"},DA={class:"font-mono text-[11px] text-muted-foreground"},NA={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"},qA={class:"shrink-0 font-medium"},BA={key:1,class:"px-1 py-1 text-xs text-muted-foreground"},VA={class:"w-4 shrink-0 text-right text-xs text-muted-foreground"},UA={class:"flex items-center gap-1.5 text-sm"},HA={key:2,class:"flex items-center gap-1"},jA=["value","placeholder","aria-label","title","onKeyup","onBlur"],WA=["title","onClick"],KA={key:7,class:"flex items-center gap-1"},zA=["value","placeholder","aria-label","title","onInput","onKeyup","onBlur"],GA=["title","onClick"],YA={class:"ml-auto flex items-center gap-0.5 opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100"},XA={key:0,class:"flex justify-center pt-1"},JA={class:"relative overflow-hidden rounded-lg border border-border/60 bg-card"},QA={class:"flex items-center gap-2.5 border-b border-border/60 bg-muted/30 px-3 py-2"},ZA={class:"text-sm font-semibold"},eE={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"},tE={key:0},nE={key:0,class:"py-3 text-center text-xs text-muted-foreground"},sE={key:1,class:"divide-y divide-border"},oE=["aria-expanded","aria-label","onClick"],rE={class:"text-sm font-medium"},aE={class:"inline-flex items-center rounded-md bg-muted px-1.5 py-0.5 text-xs font-medium tabular-nums text-muted-foreground"},lE={key:0,class:"divide-y divide-border/50 bg-muted/10"},iE={class:"flex min-w-0 items-center gap-2"},uE={class:"truncate font-mono text-sm"},cE={class:"flex shrink-0 items-center gap-1.5"},dE=["disabled","title","aria-label","onClick"],fE=8,pE=Q({__name:"Models",setup(e){const{t}=Ht(),n=["openai","anthropic","responses"],s=D([]),o=D([]),r=D(""),a=D(!1),i=D(""),u=D(!0),c=D(new Set),d=D(!1),f=D(!1),p=D(!1),m=D(!1),g=D({}),w=D({}),C=D({}),h=D({}),b=D({}),$=D({}),k=D({}),R=D({}),I=D(""),A=D(null),M=D(!1),B={mounted:U=>U.focus()},K=D(null),X=D(!1),W=encodeURIComponent;async function ue(){a.value=!0,r.value="";try{const[U,q]=await Promise.all([Fe("GET","/admin/models"),Fe("GET","/admin/providers")]);s.value=U.models,o.value=q.providers}catch(U){r.value=U.message}finally{a.value=!1}}const he=te(()=>new Map(o.value.map(U=>[U.id,U]))),J=te(()=>{const U=new Map;for(const q of o.value)for(const ee of q.discoveredModels??[]){const L=U.get(ee);L?L.push(q.id):U.set(ee,[q.id])}return U}),ce=te(()=>{const U=new Set;for(const ee of o.value)for(const L of ee.discoveredModels??[])U.add(L);for(const ee of s.value)U.add(ee.name);const q=ee=>({enabled:(ee==null?void 0:ee.enabled)??!1,chain:((ee==null?void 0:ee.providers)??[]).map(L=>({id:L.id,name:L.name,model:L.model}))});return[...U].map(ee=>{const L=s.value.find(Ee=>Ee.name===ee),ve=(J.value.get(ee)??[]).map(Ee=>he.value.get(Ee)).filter(Ee=>!!Ee).map(Ee=>({id:Ee.id,name:Ee.name,formats:Ee.formats,supportsResponses:Ee.supportsResponses}));return{name:ee,openai:q(L==null?void 0:L.openai),anthropic:q(L==null?void 0:L.anthropic),responses:q(L==null?void 0:L.responses),offering:ve}})});function re(U){return n.filter(q=>U[q].enabled)}function fe(U){return n.filter(q=>U.offering.some(ee=>se(ee,q)))}function ae(U){return fe(U).filter(q=>!U[q].enabled)}function Z(U,q){return U[q].enabled?"enabled":fe(U).includes(q)?"enableable":"unsupported"}function de(U,q){return U.offering.filter(ee=>se(ee,q)).map(ee=>ee.id)}const Be=te(()=>{const U=i.value.trim().toLowerCase();return ce.value.filter(q=>!U||q.name.toLowerCase().includes(U))}),rt=te(()=>Be.value.filter(U=>U.openai.enabled||U.anthropic.enabled||U.responses.enabled)),at=te(()=>Be.value.filter(U=>!(U.openai.enabled||U.anthropic.enabled||U.responses.enabled)&&fe(U).length>0)),nt=["embed","whisper","tts","dall-e","dall_e","image","moderation","audio","transcribe","rerank","realtime","sora"];function Ye(U){const q=U.toLowerCase();return nt.some(ee=>q.includes(ee))}const qe=D(!0),ot=te(()=>at.value.filter(U=>Ye(U.name)).length),Ie=te(()=>qe.value?at.value.filter(U=>!Ye(U.name)):at.value),ut=te(()=>{const U=[];for(const q of o.value){const ee=Ie.value.filter(L=>L.offering.some(ve=>ve.id===q.id)).sort((L,ve)=>L.name.localeCompare(ve.name));ee.length&&U.push({source:q,rows:ee})}return U}),me=D({});function _(U,q){return i.value.trim()?!0:U in me.value?me.value[U]:q<=fE}function T(U,q){i.value.trim()||(me.value={...me.value,[U]:!_(U,q)})}function j(U){const q=re(U);return o.value.filter(ee=>q.some(L=>se(ee,L)&&!U[L].chain.some(ve=>ve.id===ee.id)))}function le(U){const q={};for(const ee of n)q[ee]=U[ee].chain.map(L=>L.id);return q}function se(U,q){return q==="responses"?!!U.supportsResponses:U.formats.includes(q)}const ne={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 O(U){return c.value.has(U)}function P(U){const q=new Set(c.value);q.has(U)?q.delete(U):q.add(U),c.value=q}function V(U){return U.length?U.map(q=>q.name).join(" → "):t("models.noSourcesShort")}function H(U){return re(U).map(q=>`${t(ne[q].chip)}: ${V(U[q].chain)}`).join(" · ")}function pe(U,q){const ee=U[q].chain;if(!ee.length)return!1;const L=ve=>{var Ee;return((Ee=he.value.get(ve))==null?void 0:Ee.discoveredModels)??[]};return!ee.some(ve=>L(ve.id).includes(ve.model??U.name))&&ee.some(ve=>L(ve.id).length>0)}function oe(U){return re(U).some(q=>pe(U,q))}function F(U){let q=!1,ee=null,L=null;for(const ve of re(U)){const Ee=`${U.name}:${ve}`;h.value[Ee]&&(q=!0);const Xe=k.value[Ee];Xe!=null&&Xe.ok&&!ee?ee=Xe:Xe&&!Xe.ok&&!L&&(L=Xe)}return q?{state:"testing"}:ee?{state:"ok",provider:ee.provider}:L?{state:"fail",status:L.status,error:L.error}:null}function G(U,q){const ee=Z(U,q);return ee==="enabled"?`border-transparent ${Zt[q].solid} text-white shadow-sm`:ee==="enableable"?"border-dashed border-input text-muted-foreground hover:bg-accent hover:text-accent-foreground":"border-transparent text-muted-foreground/40"}function ye(U,q){const ee=Z(U,q);return ee==="enabled"?`${t(ne[q].key)} · ${t("models.chipOn")}`:ee==="enableable"?`${t(ne[q].key)} · ${t("models.chipOff")}`:`${t(ne[q].key)} · ${t("models.chipNa")}`}async function Ce(U,q){U[q].enabled?await He(U,q):await Le(U,q)}async function Le(U,q){const ee=`${U.name}:${q}`;w.value[ee]=!0;const L=U.offering.filter(Xe=>se(Xe,q)),ve=L.map(Xe=>({id:Xe.id,name:Xe.name})),Ee=s.value.find(Xe=>Xe.name===U.name);if(Ee){Ee[q].enabled=!0;for(const Xe of ve)Ee[q].providers.find(cn=>cn.id===Xe.id)||Ee[q].providers.push(Xe)}else s.value.push({name:U.name,openai:{enabled:q==="openai",providers:q==="openai"?ve:[]},anthropic:{enabled:q==="anthropic",providers:q==="anthropic"?ve:[]},responses:{enabled:q==="responses",providers:q==="responses"?ve:[]}});try{await Fe("POST","/admin/models",{name:U.name,format:q,providers:L.map(Xe=>Xe.id)}),$e(t("models.enabledToast",{name:`${U.name} [${q}]`}),"success")}catch(Xe){await ue(),$e(Xe.message,"error")}finally{w.value[ee]=!1}}async function Qe(){if(f.value)return;f.value=!0;const U=[];for(const L of Ie.value)for(const ve of ae(L))U.push({name:L.name,fmt:ve,providers:de(L,ve)});for(const L of U)w.value[`${L.name}:${L.fmt}`]=!0;const q=await Promise.allSettled(U.map(L=>Fe("POST","/admin/models",{name:L.name,format:L.fmt,providers:L.providers})));for(const L of U)w.value[`${L.name}:${L.fmt}`]=!1;if(await ue(),f.value=!1,!U.length)return;const ee=q.filter(L=>L.status==="rejected").length;ee?ee===U.length?$e(t("models.enableAllFailed"),"error"):$e(t("models.enableAllPartial",{failed:ee}),"error"):$e(t("models.enableAllDone"),"success")}async function He(U,q){const ee=s.value.find(L=>L.name===U.name);ee&&(ee[q].enabled=!1);try{await Fe("POST",`/admin/models/${W(U.name)}/disable`,{format:q}),$e(t("models.disabledToast",{name:`${U.name} [${q}]`}),"success")}catch(L){await ue(),$e(L.message,"error")}}function jt(U){K.value=U,X.value=!0}async function Wt(U,q){const ee=`${U.name}:${q}`;if(!h.value[ee]){h.value[ee]=!0;try{const L=await Fe("POST",`/admin/models/${W(U.name)}/test?format=${q}`);k.value[ee]=L.result}catch(L){k.value[ee]={ok:!1,status:0,format:q,error:L.message}}finally{h.value[ee]=!1}}}async function Ts(U){const q=re(U);q.length&&await Promise.all(q.map(ee=>Wt(U,ee)))}async function Sr(U,q,ee){const L=`${U.name}:${q}:${ee.id}`;if(!b.value[L]){b.value[L]=!0;try{const ve=await Fe("POST",`/admin/models/${W(U.name)}/providers/${W(ee.id)}/test?format=${q}`);$.value[L]=ve.result}catch(ve){$.value[L]={ok:!1,status:0,format:q,error:ve.message}}finally{b.value[L]=!1}}}async function Nt(){const U=K.value;if(U){g.value[U.name]=!0;try{await Fe("DELETE",`/admin/models/${W(U.name)}`),s.value=s.value.filter(q=>q.name!==U.name),$e(t("models.removedToast",{name:U.name}),"success"),X.value=!1}catch(q){$e(q.message,"error")}finally{g.value[U.name]=!1}}}async function Jt(U,q,ee){const L=s.value.find(Ee=>Ee.name===U.name);if(!L)return;const ve=L[ee].providers.slice();L[ee].providers=q.map(Ee=>ve.find(Xe=>Xe.id===Ee)).filter(Boolean);try{await Fe("PUT",`/admin/models/${W(U.name)}/priority`,{format:ee,providers:q})}catch(Ee){L[ee].providers=ve,$e(Ee.message,"error")}}function Cr(U,q,ee){if(q===0)return;const L=U[ee].chain.map(ve=>ve.id);[L[q-1],L[q]]=[L[q],L[q-1]],Jt(U,L,ee)}function Ar(U,q,ee){const L=U[ee].chain.map(ve=>ve.id);q>=L.length-1||([L[q+1],L[q]]=[L[q],L[q+1]],Jt(U,L,ee))}function Fm(U){A.value=U,M.value=!0}function Zs(U,q,ee){return`${U.name}:${q}:${ee.id}`}function qm(U,q,ee){return I.value===Zs(U,q,ee)}function yu(U,q,ee){const L=Zs(U,q,ee);R.value[L]=ee.model??"",I.value=L}function Bm(U,q,ee){return R.value[Zs(U,q,ee)]??""}function Vm(U,q,ee,L){R.value[Zs(U,q,ee)]=L}async function Um(U,q,ee){const L=Zs(U,q,ee);I.value="";const ve=(R.value[L]??"").trim(),Ee=(ee.model??"").trim();if(ve===Ee)return;const Xe=s.value.find(cn=>cn.name===U.name);if(Xe){const cn=Xe[q].providers.findIndex(Er=>Er.id===ee.id);cn>=0&&(Xe[q].providers[cn].model=ve||void 0)}R.value[L]=ve;try{await Fe("PUT",`/admin/models/${W(U.name)}/map`,{format:q,providerId:ee.id,model:ve}),$e(t("models.mapSaved"),"success")}catch(cn){await ue(),$e(cn.message,"error")}}function Hm(U,q,ee,L){R.value[Zs(U,q,ee)]=ee.model??"",L.blur()}const tl=D(""),Ao=D("");function $s(U){var q;return((q=he.value.get(U))==null?void 0:q.rpm)??0}function jm(U){return tl.value===U.id}function bu(U){tl.value=U.id,Ao.value=$s(U.id)?String($s(U.id)):""}function Wm(U){Ao.value=U}async function Km(U,q){const ee=he.value.get(U);ee&&await Fe("PUT",`/admin/providers/${U}`,{name:ee.name,baseUrlOpenai:ee.baseUrlOpenai,baseUrlAnthropic:ee.baseUrlAnthropic,formats:ee.formats,supportsResponses:ee.supportsResponses??!1,rpm:q})}async function zm(U){const q=U.id;tl.value="";const ee=Number(Ao.value),L=Number.isFinite(ee)&&ee>0?Math.floor(ee):0;if(L!==$s(q))try{await Km(q,L),o.value=o.value.map(ve=>ve.id===q?{...ve,rpm:L}:ve),$e(L?t("sources.rpmSaved",{n:L}):t("sources.rpmCleared"),L?"success":"default")}catch(ve){$e(ve.message,"error")}}function Gm(U,q){Ao.value=$s(U.id)?String($s(U.id)):"",q.blur()}async function Ym(U,q,ee){const L=`${U.name}:${q}:${ee}`;if(C.value[L])return;C.value[L]=!0;const ve=s.value.find(Ee=>Ee.name===U.name);ve&&(ve[ee].providers=ve[ee].providers.filter(Ee=>Ee.id!==q));try{await Fe("DELETE",`/admin/models/${W(U.name)}/providers/${q}?format=${ee}`),$e(t("models.sourceRemoved"),"success")}catch(Ee){await ue(),$e(Ee.message,"error")}finally{C.value[L]=!1}}async function Xm(){if(d.value||!o.value.length)return;d.value=!0;const U=o.value,q=await Promise.allSettled(U.map(L=>Fe("POST",`/admin/providers/${L.id}/discover`)));await ue();const ee=q.map((L,ve)=>L.status==="rejected"?U[ve].name:null).filter(L=>!!L);ee.length?ee.length===U.length?$e(t("sources.refreshAllFailed"),"error"):$e(t("sources.refreshAllPartial",{failed:ee.join("、")}),"error"):$e(t("sources.refreshAllDone"),"success"),d.value=!1}return mt(ue),(U,q)=>{var ee;return x(),Y("div",cA,[!a.value&&!o.value.length?(x(),N(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",dA,[v(l(bi),{class:"h-5 w-5"})]),S("div",fA,[S("div",pA,E(l(t)("models.empty")),1),S("p",mA,E(l(t)("models.emptyHint")),1)]),v(l(Pe),{onClick:q[0]||(q[0]=L=>p.value=!0)},{default:y(()=>[v(l(es),{class:"h-4 w-4"}),z(E(l(t)("models.addSource")),1)]),_:1})]),_:1})]),_:1})):(x(),N(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(Om),{class:"h-4 w-4 text-primary"}),z(" "+E(l(t)("models.title")),1)]),_:1}),v(l(ys),null,{default:y(()=>[z(E(l(t)("models.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-4"},{default:y(()=>[S("div",hA,[S("div",vA,[v(l(Mm),{class:"absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),v(l(bt),{modelValue:i.value,"onUpdate:modelValue":q[1]||(q[1]=L=>i.value=L),placeholder:l(t)("models.searchPh"),class:"pl-8"},null,8,["modelValue","placeholder"])]),v(l(Pe),{size:"sm",onClick:q[2]||(q[2]=L=>m.value=!0)},{default:y(()=>[v(l(es),{class:"h-4 w-4"}),z(E(l(t)("models.addModels")),1)]),_:1}),v(l(Pe),{variant:"outline",size:"sm",onClick:q[3]||(q[3]=L=>p.value=!0)},{default:y(()=>[v(l(bi),{class:"h-4 w-4"}),z(E(l(t)("models.manageSources")),1)]),_:1})]),S("p",gA,E(l(t)("models.chipLegend")),1),a.value?(x(),Y("p",yA,E(l(t)("common.loading")),1)):r.value?(x(),Y("p",bA,E(r.value),1)):(x(),Y(Ae,{key:2},[rt.value.length?(x(),Y("section",_A,[q[16]||(q[16]=S("div",{class:"pointer-events-none absolute inset-y-0 left-0 w-1 bg-primary","aria-hidden":"true"},null,-1)),S("div",wA,[q[13]||(q[13]=S("span",{class:"h-2 w-2 shrink-0 rounded-full bg-primary"},null,-1)),S("span",xA,E(l(t)("models.enabledSection")),1),S("span",kA,E(rt.value.length),1)]),S("div",SA,[(x(!0),Y(Ae,null,ct(rt.value,L=>{var ve,Ee,Xe,cn,Er;return x(),Y("div",{key:L.name,class:"px-3 py-2.5"},[S("div",CA,[S("button",{type:"button",class:"flex min-w-0 flex-1 items-center gap-2 text-left","aria-expanded":O(L.name),"aria-label":O(L.name)?l(t)("models.collapseAria"):l(t)("models.expandAria"),onClick:ke=>P(L.name)},[v(l(gi),{class:xe(["h-4 w-4 shrink-0 text-muted-foreground transition-transform",{"rotate-90":O(L.name)}])},null,8,["class"]),S("span",EA,[S("span",OA,[S("span",PA,E(L.name),1),((ve=F(L))==null?void 0:ve.state)==="testing"?(x(),N(l(gt),{key:0,variant:"muted",class:"gap-1"},{default:y(()=>[v(l(_t),{class:"h-3 w-3 animate-spin"}),z(E(l(t)("models.probeTesting")),1)]),_:1})):((Ee=F(L))==null?void 0:Ee.state)==="ok"?(x(),N(l(gt),{key:1,variant:"success",title:l(t)("models.probeOkHint",{name:((Xe=F(L))==null?void 0:Xe.provider)??""})},{default:y(()=>[z(E(l(t)("models.probeOk")),1)]),_:1},8,["title"])):((cn=F(L))==null?void 0:cn.state)==="fail"?(x(),N(l(gt),{key:2,variant:"destructive",title:((Er=F(L))==null?void 0:Er.error)||l(t)("models.probeFailHint")},{default:y(()=>{var ke;return[z(E(l(t)("models.probeFail"))+" · "+E(((ke=F(L))==null?void 0:ke.status)||"?"),1)]}),_:2},1032,["title"])):oe(L)?(x(),N(l(gt),{key:3,variant:"secondary",title:l(t)("models.delistedHint")},{default:y(()=>[z(E(l(t)("models.delisted")),1)]),_:1},8,["title"])):we("",!0)]),S("span",TA,E(H(L)),1)])],8,AA),S("div",$A,[(x(),Y(Ae,null,ct(n,ke=>S("button",{key:ke,type:"button",disabled:Z(L,ke)==="unsupported"||w.value[`${L.name}:${ke}`],title:ye(L,ke),"aria-label":ye(L,ke),class:xe(["inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium transition-colors disabled:cursor-not-allowed",G(L,ke)]),onClick:ds=>Ce(L,ke)},[w.value[`${L.name}:${ke}`]?(x(),N(l(_t),{key:0,class:"h-3 w-3 animate-spin"})):(x(),Y("span",{key:1,class:xe(["rounded-full",Z(L,ke)==="enabled"?"h-1.5 w-1.5 bg-current":Z(L,ke)==="enableable"?"h-1.5 w-1.5 border border-current":"h-1.5 w-1.5"])},null,2)),z(" "+E(l(t)(ne[ke].chip)),1)],10,IA)),64))]),v(l(pi),null,{default:y(()=>[v(l(mi),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(yi),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),v(l(hi),{align:"end"},{default:y(()=>{var ke;return[v(l(jn),{disabled:((ke=F(L))==null?void 0:ke.state)==="testing"||!re(L).length,onSelect:ds=>Ts(L)},{default:y(()=>{var ds;return[((ds=F(L))==null?void 0:ds.state)==="testing"?(x(),N(l(_t),{key:0,class:"animate-spin"})):(x(),N(l(Vr),{key:1})),z(" "+E(l(t)("models.testModel")),1)]}),_:2},1032,["disabled","onSelect"]),v(l(vi)),v(l(jn),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:ds=>jt(L)},{default:y(()=>[v(l(_i)),z(" "+E(l(t)("models.removeModel")),1)]),_:1},8,["onSelect"])]}),_:2},1024)]),_:2},1024)]),O(L.name)?(x(),Y("div",MA,[(x(!0),Y(Ae,null,ct(re(L),ke=>{var ds,_u,wu;return x(),Y("div",{key:ke,class:"space-y-1"},[S("div",RA,[S("span",{class:xe(["h-2 w-2 rounded-full",l(Zt)[ke].solid])},null,2),S("span",LA,E(l(t)(ne[ke].key)),1),S("span",DA,E(ne[ke].endpoint),1),S("div",NA,[(ds=k.value[`${L.name}:${ke}`])!=null&&ds.ok?(x(),N(l(gt),{key:0,variant:"success",title:l(t)("models.probeOkHint",{name:((_u=k.value[`${L.name}:${ke}`])==null?void 0:_u.provider)??""})},{default:y(()=>[z(E(l(t)("models.probeOk")),1)]),_:1},8,["title"])):k.value[`${L.name}:${ke}`]?(x(),N(l(gt),{key:1,variant:"destructive",title:((wu=k.value[`${L.name}:${ke}`])==null?void 0:wu.error)||l(t)("models.probeFailHint")},{default:y(()=>{var Ve;return[z(E(l(t)("models.probeFail"))+" · "+E(((Ve=k.value[`${L.name}:${ke}`])==null?void 0:Ve.status)||"?"),1)]}),_:2},1032,["title"])):we("",!0),v(l(Pe),{variant:"ghost",size:"sm",class:"h-6 gap-1 px-2 text-xs",disabled:h.value[`${L.name}:${ke}`],onClick:Ve=>Wt(L,ke)},{default:y(()=>[h.value[`${L.name}:${ke}`]?(x(),N(l(_t),{key:0,class:"h-3 w-3 animate-spin"})):(x(),N(l(Vr),{key:1,class:"h-3 w-3"})),z(" "+E(l(t)("models.testModel")),1)]),_:2},1032,["disabled","onClick"])])]),pe(L,ke)&&!k.value[`${L.name}:${ke}`]?(x(),Y("div",FA,[S("span",qA,E(l(t)("models.delisted")),1),S("span",null,E(l(t)("models.delistedHint")),1)])):we("",!0),L[ke].chain.length?we("",!0):(x(),Y("div",BA,E(l(t)("models.noSources")),1)),(x(!0),Y(Ae,null,ct(L[ke].chain,(Ve,eo)=>{var xu,ku;return x(),Y("div",{key:Ve.id,class:"group flex items-center gap-2 rounded px-1 py-1 hover:bg-muted/40"},[S("span",VA,E(eo+1)+".",1),S("span",UA,[S("span",{class:xe(["h-1.5 w-1.5 rounded-full",l(ti)(Ve.id).solid])},null,2),z(" "+E(Ve.name),1)]),eo===0?(x(),N(l(gt),{key:0,variant:"default"},{default:y(()=>[z(E(l(t)("models.primary")),1)]),_:1})):(x(),N(l(gt),{key:1,variant:"muted"},{default:y(()=>[z(E(l(t)("models.fallback")),1)]),_:1})),jm(Ve)?(x(),Y("span",HA,[v(l(Wo),{class:"h-3 w-3 text-muted-foreground"}),zs(S("input",{type:"number",min:"0",inputmode:"numeric",value:Ao.value,placeholder:l(t)("sources.rpmPh"),"aria-label":l(t)("sources.rpmLabel"),title:l(t)("sources.rpmHint"),class:"h-6 w-16 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:q[4]||(q[4]=dt=>Wm(dt.target.value)),onKeyup:[q[5]||(q[5]=Bs(dt=>dt.target.blur(),["enter"])),Bs(dt=>Gm(Ve,dt.target),["esc"])],onBlur:dt=>zm(Ve)},null,40,jA),[[B]])])):$s(Ve.id)>0?(x(),Y("button",{key:3,type:"button",title:l(t)("sources.rpmBadgeHint"),class:"inline-flex items-center gap-1 rounded-full border border-input bg-background px-2 py-0.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:dt=>bu(Ve)},[v(l(Wo),{class:"h-3 w-3"}),z(" "+E(l(t)("sources.rpmBadge",{n:$s(Ve.id)})),1)],8,WA)):we("",!0),b.value[`${L.name}:${ke}:${Ve.id}`]?(x(),N(l(gt),{key:4,variant:"muted",class:"gap-1"},{default:y(()=>[v(l(_t),{class:"h-3 w-3 animate-spin"}),z(E(l(t)("models.probeTesting")),1)]),_:1})):(xu=$.value[`${L.name}:${ke}:${Ve.id}`])!=null&&xu.ok?(x(),N(l(gt),{key:5,variant:"success",title:l(t)("models.probeOkHint",{name:Ve.name})},{default:y(()=>[z(E(l(t)("models.probeOk")),1)]),_:1},8,["title"])):$.value[`${L.name}:${ke}:${Ve.id}`]?(x(),N(l(gt),{key:6,variant:"destructive",title:((ku=$.value[`${L.name}:${ke}:${Ve.id}`])==null?void 0:ku.error)||l(t)("models.probeFailHint")},{default:y(()=>{var dt;return[z(E(l(t)("models.probeFail"))+" · "+E(((dt=$.value[`${L.name}:${ke}:${Ve.id}`])==null?void 0:dt.status)||"?"),1)]}),_:2},1032,["title"])):we("",!0),qm(L,ke,Ve)?(x(),Y("div",KA,[q[14]||(q[14]=S("span",{class:"text-xs text-muted-foreground"},"→",-1)),zs(S("input",{type:"text",value:Bm(L,ke,Ve),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:dt=>Vm(L,ke,Ve,dt.target.value),onKeyup:[q[6]||(q[6]=Bs(dt=>dt.target.blur(),["enter"])),Bs(dt=>Hm(L,ke,Ve,dt.target),["esc"])],onBlur:dt=>Um(L,ke,Ve)},null,40,zA),[[B]])])):Ve.model?(x(),Y("button",{key:8,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:dt=>yu(L,ke,Ve)},[q[15]||(q[15]=S("span",null,"→",-1)),z(E(Ve.model),1)],8,GA)):we("",!0),S("div",YA,[v(l(Pe),{variant:"ghost",size:"icon",class:"h-7 w-7",disabled:eo===0,"aria-label":l(t)("models.moveUpAria"),onClick:dt=>Cr(L,eo,ke)},{default:y(()=>[v(l(Xk),{class:"h-4 w-4"})]),_:1},8,["disabled","aria-label","onClick"]),v(l(Pe),{variant:"ghost",size:"icon",class:"h-7 w-7",disabled:eo===L[ke].chain.length-1,"aria-label":l(t)("models.moveDownAria"),onClick:dt=>Ar(L,eo,ke)},{default:y(()=>[v(l(Yk),{class:"h-4 w-4"})]),_:1},8,["disabled","aria-label","onClick"]),v(l(pi),null,{default:y(()=>[v(l(mi),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(yi),{class:"h-4 w-4"})]),_:1},8,["aria-label"])]),_:1}),v(l(hi),{align:"end"},{default:y(()=>[v(l(jn),{disabled:b.value[`${L.name}:${ke}:${Ve.id}`],onSelect:dt=>Sr(L,ke,Ve)},{default:y(()=>[b.value[`${L.name}:${ke}:${Ve.id}`]?(x(),N(l(_t),{key:0,class:"animate-spin"})):(x(),N(l(Vr),{key:1})),z(" "+E(l(t)("models.testSource")),1)]),_:2},1032,["disabled","onSelect"]),v(l(jn),{onSelect:dt=>yu(L,ke,Ve)},{default:y(()=>[v(l($m),{class:"h-4 w-4"}),z(" "+E(l(t)("models.editUpstream")),1)]),_:1},8,["onSelect"]),v(l(jn),{onSelect:dt=>bu(Ve)},{default:y(()=>[v(l(Wo),{class:"h-4 w-4"}),z(" "+E(l(t)("sources.rpmLabel")),1)]),_:1},8,["onSelect"]),v(l(vi)),v(l(jn),{class:"text-destructive focus:bg-destructive/10 focus:text-destructive",onSelect:dt=>Ym(L,Ve.id,ke)},{default:y(()=>[v(l(_i),{class:"h-4 w-4"}),z(" "+E(l(t)("models.removeSource")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)])])}),128))])}),128)),j(L).length?(x(),Y("div",XA,[v(l(Pe),{variant:"outline",size:"sm",class:"h-7 gap-1 border-dashed text-muted-foreground",onClick:ke=>Fm(L)},{default:y(()=>[v(l(es),{class:"h-3.5 w-3.5"}),z(" "+E(l(t)("models.addSourceToChain")),1)]),_:1},8,["onClick"])])):we("",!0)])):we("",!0)])}),128))])])):we("",!0),S("section",JA,[q[18]||(q[18]=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",QA,[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:q[7]||(q[7]=L=>u.value=!u.value)},[v(l(Xa),{class:xe(["h-4 w-4 shrink-0 text-muted-foreground transition-transform",{"-rotate-90":!u.value}])},null,8,["class"]),q[17]||(q[17]=S("span",{class:"h-2 w-2 shrink-0 rounded-full bg-muted-foreground/40"},null,-1)),S("span",ZA,E(l(t)("models.availableSection")),1),S("span",eE,E(Ie.value.length),1)]),ot.value>0?(x(),N(l(Pe),{key:0,variant:"ghost",size:"sm",class:xe(["h-7 gap-1.5 px-2.5",qe.value?"bg-accent text-accent-foreground":"text-muted-foreground"]),title:qe.value?l(t)("models.filterChatHint",{n:ot.value}):l(t)("models.filterAllHint"),onClick:q[8]||(q[8]=L=>qe.value=!qe.value)},{default:y(()=>[v(l(Pm),{class:"h-3.5 w-3.5"}),z(" "+E(qe.value?l(t)("models.filterChatOnly"):l(t)("models.filterInclude")),1)]),_:1},8,["class","title"])):we("",!0),v(l(Pe),{variant:"ghost",size:"sm",class:"h-7 gap-1.5 px-2.5",disabled:d.value,title:l(t)("sources.refreshAll"),onClick:Xm},{default:y(()=>[d.value?(x(),N(l(_t),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),N(l(pr),{key:1,class:"h-3.5 w-3.5"})),z(" "+E(l(t)("sources.refreshAll")),1)]),_:1},8,["disabled","title"]),Ie.value.length?(x(),N(l(Pe),{key:1,size:"sm",variant:"secondary",class:"h-7 gap-1.5 px-2.5",disabled:f.value,onClick:Qe},{default:y(()=>[f.value?(x(),N(l(_t),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),N(l(Vr),{key:1,class:"h-3.5 w-3.5"})),z(" "+E(l(t)("models.enableAll")),1)]),_:1},8,["disabled"])):we("",!0)]),u.value?(x(),Y("div",tE,[Ie.value.length?(x(),Y("div",sE,[(x(!0),Y(Ae,null,ct(ut.value,L=>(x(),Y("div",{key:L.source.id},[S("button",{type:"button",class:"flex w-full items-center gap-2 px-3 py-2 text-left hover:bg-muted/40","aria-expanded":_(L.source.id,L.rows.length),"aria-label":L.source.name,onClick:ve=>T(L.source.id,L.rows.length)},[v(l(gi),{class:xe(["h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform",{"rotate-90":_(L.source.id,L.rows.length)}])},null,8,["class"]),S("span",{class:xe(["h-1.5 w-1.5 shrink-0 rounded-full",l(ti)(L.source.id).solid])},null,2),S("span",rE,E(L.source.name),1),S("span",aE,E(L.rows.length),1)],8,oE),_(L.source.id,L.rows.length)?(x(),Y("div",lE,[(x(!0),Y(Ae,null,ct(L.rows,ve=>(x(),Y("div",{key:ve.name,class:"flex items-center justify-between gap-2 px-3 py-2 pl-9"},[S("div",iE,[S("span",uE,E(ve.name),1)]),S("div",cE,[(x(),Y(Ae,null,ct(n,Ee=>S("button",{key:Ee,type:"button",disabled:Z(ve,Ee)==="unsupported"||w.value[`${ve.name}:${Ee}`],title:ye(ve,Ee),"aria-label":ye(ve,Ee),class:xe(["inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium transition-colors disabled:cursor-not-allowed",G(ve,Ee)]),onClick:Xe=>Ce(ve,Ee)},[w.value[`${ve.name}:${Ee}`]?(x(),N(l(_t),{key:0,class:"h-3 w-3 animate-spin"})):(x(),Y("span",{key:1,class:xe(["rounded-full",Z(ve,Ee)==="enabled"?"h-1.5 w-1.5 bg-current":Z(ve,Ee)==="enableable"?"h-1.5 w-1.5 border border-current":"h-1.5 w-1.5"])},null,2)),z(" "+E(l(t)(ne[Ee].chip)),1)],10,dE)),64))])]))),128))])):we("",!0)]))),128))])):(x(),Y("p",nE,E(qe.value&&at.value.length?l(t)("models.availableAllFiltered",{n:ot.value}):l(t)("models.availableDesc")),1))])):we("",!0)])],64))]),_:1})]),_:1})),v(pC,{open:p.value,"onUpdate:open":q[9]||(q[9]=L=>p.value=L),onChanged:ue},null,8,["open"]),v(GC,{open:m.value,"onUpdate:open":q[10]||(q[10]=L=>m.value=L),providers:o.value,onChanged:ue},null,8,["open","providers"]),v(uA,{open:M.value,"onUpdate:open":q[11]||(q[11]=L=>M.value=L),"model-name":((ee=A.value)==null?void 0:ee.name)??"",providers:o.value,"enabled-formats":A.value?re(A.value):[],"chain-by-format":A.value?le(A.value):{},onAdded:ue},null,8,["open","model-name","providers","enabled-formats","chain-by-format"]),v(gu,{open:X.value,"onUpdate:open":q[12]||(q[12]=L=>X.value=L),variant:"destructive",title:l(t)("models.removeModel"),description:K.value?l(t)("models.confirmRemove",{name:K.value.name}):"","confirm-text":l(t)("models.removeModel"),loading:K.value?!!g.value[K.value.name]:!1,onConfirm:Nt},null,8,["open","title","description","confirm-text","loading"])])}}}),mE={class:"relative w-full overflow-auto"},Rm=Q({__name:"Table",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Y("div",mE,[S("table",{class:xe(l(Ge)("w-full caption-bottom text-sm",t.class))},[ie(n.$slots,"default")],2)]))}}),Lm=Q({__name:"TableHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Y("thead",{class:xe(l(Ge)("[&_tr]:border-b",t.class))},[ie(n.$slots,"default")],2))}}),Dm=Q({__name:"TableBody",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Y("tbody",{class:xe(l(Ge)("[&_tr:last-child]:border-0",t.class))},[ie(n.$slots,"default")],2))}}),co=Q({__name:"TableRow",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),Y("tr",{class:xe(l(Ge)("border-b transition-colors hover:bg-muted/40 data-[state=selected]:bg-muted",t.class))},[ie(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(),Y("th",{class:xe(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))},[ie(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(),Y("td",{class:xe(l(Ge)("p-3 align-middle [&:has([role=checkbox])]:pr-0",t.class))},[ie(n.$slots,"default")],2))}}),hE=Q({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=It(e,t);return(r,a)=>(x(),N(l(mx),Ot(Tt(l(o))),{default:y(()=>[ie(r.$slots,"default")]),_:3},16))}}),vE=Q({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,s)=>(x(),N(l(Cx),Ot(Tt(t)),{default:y(()=>[ie(n.$slots,"default")]),_:3},16))}}),gE=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=te(()=>{const{class:a,...i}=n;return i}),r=It(o,s);return(a,i)=>(x(),N(l(kx),null,{default:y(()=>[v(l(wx),Oe(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(()=>[ie(a.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),yE={class:"flex items-center justify-between gap-2"},bE={class:"flex gap-1"},_E={class:"sr-only"},wE={class:"flex flex-wrap items-center gap-2"},xE={class:"relative flex-1 sm:max-w-sm"},kE={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"},SE={class:"space-y-2.5"},CE={class:"flex items-center justify-between"},AE={class:"text-xs font-medium"},EE={class:"space-y-2"},OE={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},PE={class:"text-xs text-muted-foreground"},TE={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},$E={class:"text-xs text-muted-foreground"},IE={class:"grid grid-cols-[3.5rem_1fr] items-center gap-2"},ME={class:"text-xs text-muted-foreground"},RE={key:0,class:"flex flex-wrap items-center gap-1.5"},LE={class:"text-muted-foreground"},DE={class:"font-medium"},NE=["aria-label","onClick"],FE={class:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground"},qE={key:1,class:"space-y-2 rounded-lg border border-amber-500/30 bg-amber-500/5 p-3"},BE={class:"flex items-center gap-1.5 text-xs font-medium text-amber-700 dark:text-amber-400"},VE={class:"space-y-1.5"},UE={class:"font-medium"},HE={class:"break-all text-muted-foreground"},jE={key:2,class:"space-y-2 rounded-lg border border-orange-500/30 bg-orange-500/5 p-3"},WE={class:"flex items-center gap-1.5 text-xs font-medium text-orange-700 dark:text-orange-400"},KE={class:"space-y-1.5"},zE={class:"font-medium"},GE={class:"text-muted-foreground"},YE={key:3,class:"py-6 text-center text-sm text-muted-foreground"},XE={key:4,class:"py-6 text-center text-sm text-muted-foreground"},JE={key:5,class:"overflow-x-auto"},QE={class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},ZE={class:"font-mono text-muted-foreground"},eO={class:"font-medium"},tO={class:"text-muted-foreground"},nO={class:"text-muted-foreground"},sO={class:"break-all text-muted-foreground"},oO={class:"inline-flex items-center gap-1.5"},rO={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]"},aO={class:"text-muted-foreground"},lO={class:"font-mono"},iO={class:"text-muted-foreground"},uO={class:"font-mono"},cO={class:"text-muted-foreground"},dO={class:"text-muted-foreground"},fO={class:"break-all font-mono"},_d="myapikey.logs.filters",pO=Q({__name:"Logs",setup(e){const{t}=Ht(),n=D([]),s=D(!0),o=D(!1),r=D([]),a=D([]),i=D("all"),u=D("all"),c=D("all"),d=D(""),f=D(new Set),p=D(!1);try{const ae=JSON.parse(localStorage.getItem(_d)||"null");ae&&(typeof ae.model=="string"&&(i.value=ae.model),typeof ae.provider=="string"&&(u.value=ae.provider),(ae.status==="success"||ae.status==="error")&&(c.value=ae.status),typeof ae.query=="string"&&(d.value=ae.query))}catch{}De([i,u,c,d],()=>{try{localStorage.setItem(_d,JSON.stringify({model:i.value,provider:u.value,status:c.value,query:d.value}))}catch{}});let m;async function g(){o.value=!0;try{const[ae,Z]=await Promise.all([Fe("GET","/admin/logs").catch(()=>null),Fe("GET","/admin/circuit").catch(()=>null)]);ae&&(n.value=ae.logs),Z&&(r.value=Z.providers.filter(de=>de.state==="cooling"),a.value=Z.providers.filter(de=>de.rpm>0&&de.rpmUsed>=de.rpm&&de.state!=="cooling"))}finally{o.value=!1}}async function w(ae){await Fe("POST",`/admin/circuit/${ae}/reset`).catch(()=>{}),await g()}function C(){h(),m=window.setInterval(g,4e3)}function h(){m&&(clearInterval(m),m=void 0)}function b(){s.value=!s.value,s.value?(g(),C()):h()}function $(ae){return ae>=200&&ae<300?"success":ae>=400?"destructive":"muted"}function k(ae){var Z;return((Z=Zt[ae])==null?void 0:Z.badge)??""}function R(ae){return ae<1e3?`${ae}ms`:`${(ae/1e3).toFixed(1)}s`}function I(ae){if(ae<=0)return"0";const Z=Math.round(ae*1e3)/10;return Number.isInteger(Z)?String(Z):Z.toFixed(1)}function A(ae){return new Date(ae).toLocaleTimeString()}function M(ae){return new Date(ae).toLocaleString()}function B(ae){return`${ae.ts}-${ae.model}-${ae.provider}-${ae.status}-${ae.kind??"call"}`}function K(ae){return f.value.has(B(ae))}function X(ae){const Z=new Set(f.value),de=B(ae);Z.has(de)?Z.delete(de):Z.add(de),f.value=Z}const W=te(()=>[...new Set(n.value.map(ae=>ae.model))].sort()),ue=te(()=>[...new Set(n.value.map(ae=>ae.provider))].sort()),he=te(()=>{const ae=d.value.trim().toLowerCase();return n.value.filter(Z=>!(i.value!=="all"&&Z.model!==i.value||u.value!=="all"&&Z.provider!==u.value||c.value==="success"&&!(Z.status>=200&&Z.status<300)||c.value==="error"&&Z.status<400||ae&&!(Z.model.toLowerCase().includes(ae)||Z.provider.toLowerCase().includes(ae))))}),J=te(()=>{const ae=he.value.filter(rt=>rt.kind!=="cooldown"),Z=ae.length,de=ae.filter(rt=>rt.status>=400).length,Be=Z?Math.round(ae.reduce((rt,at)=>rt+at.ms,0)/Z):0;return{total:Z,fail:de,avgMs:Be,errorRateStr:I(Z?de/Z:0)}}),ce=te(()=>(i.value!=="all"?1:0)+(u.value!=="all"?1:0)+(c.value!=="all"?1:0)),re=te(()=>{const ae=[];return i.value!=="all"&&ae.push({key:"model",label:t("logs.filter.model"),value:i.value,clear:()=>i.value="all"}),u.value!=="all"&&ae.push({key:"provider",label:t("logs.filter.provider"),value:u.value,clear:()=>u.value="all"}),c.value!=="all"&&ae.push({key:"status",label:t("logs.filter.status"),value:c.value==="success"?t("logs.filter.success"):t("logs.filter.error"),clear:()=>c.value="all"}),ae});function fe(){i.value="all",u.value="all",c.value="all"}return mt(()=>{g(),C()}),yn(h),(ae,Z)=>(x(),N(l(pn),null,{default:y(()=>[v(l(In),null,{default:y(()=>[S("div",yE,[v(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(l(Am),{class:"h-4 w-4 text-primary"}),z(" "+E(l(t)("logs.title"))+" ",1),s.value?(x(),N(l(gt),{key:0,variant:"success",class:"gap-1.5"},{default:y(()=>[Z[5]||(Z[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)),z(" "+E(l(t)("logs.live")),1)]),_:1})):we("",!0)]),_:1}),S("div",bE,[v(l(Pe),{variant:"outline",size:"sm",disabled:o.value,onClick:g},{default:y(()=>[o.value?(x(),N(l(_t),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),N(l(pr),{key:1,class:"h-3.5 w-3.5"})),S("span",_E,E(l(t)("logs.refresh")),1)]),_:1},8,["disabled"]),v(l(Pe),{variant:"outline",size:"sm","aria-pressed":s.value,onClick:b},{default:y(()=>[s.value?(x(),N(l(Jk),{key:0,class:"h-3.5 w-3.5"})):(x(),N(l(Qk),{key:1,class:"h-3.5 w-3.5"})),z(" "+E(s.value?l(t)("logs.pause"):l(t)("logs.resume")),1)]),_:1},8,["aria-pressed"])])]),v(l(ys),null,{default:y(()=>[z(E(l(t)("logs.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-3"},{default:y(()=>[S("div",wE,[S("div",xE,[v(l(Mm),{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(bt),{modelValue:d.value,"onUpdate:modelValue":Z[0]||(Z[0]=de=>d.value=de),placeholder:l(t)("logs.searchPh"),class:"h-8 pl-8"},null,8,["modelValue","placeholder"])]),v(l(hE),{open:p.value,"onUpdate:open":Z[4]||(Z[4]=de=>p.value=de)},{default:y(()=>[v(l(vE),{"as-child":""},{default:y(()=>[v(l(Pe),{variant:"outline",size:"sm",class:"h-8 gap-1.5"},{default:y(()=>[v(l(Pm),{class:"h-3.5 w-3.5"}),z(" "+E(l(t)("logs.filter.title"))+" ",1),ce.value?(x(),Y("span",kE,E(ce.value),1)):we("",!0)]),_:1})]),_:1}),v(l(gE),{align:"start",class:"w-72 p-3"},{default:y(()=>[S("div",SE,[S("div",CE,[S("span",AE,E(l(t)("logs.filter.title")),1),ce.value?(x(),Y("button",{key:0,type:"button",class:"text-xs text-primary hover:underline",onClick:fe},E(l(t)("logs.filter.clear")),1)):we("",!0)]),S("div",EE,[S("div",OE,[S("span",PE,E(l(t)("logs.filter.model")),1),v(l(Ko),{modelValue:i.value,"onUpdate:modelValue":Z[1]||(Z[1]=de=>i.value=de)},{default:y(()=>[v(l(zo),{class:"h-8 w-full"},{default:y(()=>[v(l(Go),{placeholder:l(t)("logs.filter.model")},null,8,["placeholder"])]),_:1}),v(l(Yo),null,{default:y(()=>[v(l(An),{value:"all"},{default:y(()=>[z(E(l(t)("logs.filter.all")),1)]),_:1}),(x(!0),Y(Ae,null,ct(W.value,de=>(x(),N(l(An),{key:de,value:de},{default:y(()=>[z(E(de),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])]),S("div",TE,[S("span",$E,E(l(t)("logs.filter.provider")),1),v(l(Ko),{modelValue:u.value,"onUpdate:modelValue":Z[2]||(Z[2]=de=>u.value=de)},{default:y(()=>[v(l(zo),{class:"h-8 w-full"},{default:y(()=>[v(l(Go),{placeholder:l(t)("logs.filter.provider")},null,8,["placeholder"])]),_:1}),v(l(Yo),null,{default:y(()=>[v(l(An),{value:"all"},{default:y(()=>[z(E(l(t)("logs.filter.all")),1)]),_:1}),(x(!0),Y(Ae,null,ct(ue.value,de=>(x(),N(l(An),{key:de,value:de},{default:y(()=>[z(E(de),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])]),S("div",IE,[S("span",ME,E(l(t)("logs.filter.status")),1),v(l(Ko),{modelValue:c.value,"onUpdate:modelValue":Z[3]||(Z[3]=de=>c.value=de)},{default:y(()=>[v(l(zo),{class:"h-8 w-full"},{default:y(()=>[v(l(Go),{placeholder:l(t)("logs.filter.status")},null,8,["placeholder"])]),_:1}),v(l(Yo),null,{default:y(()=>[v(l(An),{value:"all"},{default:y(()=>[z(E(l(t)("logs.filter.all")),1)]),_:1}),v(l(An),{value:"success"},{default:y(()=>[z(E(l(t)("logs.filter.success")),1)]),_:1}),v(l(An),{value:"error"},{default:y(()=>[z(E(l(t)("logs.filter.error")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"])])])])]),_:1})]),_:1},8,["open"])]),re.value.length?(x(),Y("div",RE,[(x(!0),Y(Ae,null,ct(re.value,de=>(x(),Y("span",{key:de.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",LE,E(de.label)+":",1),S("span",DE,E(de.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:de.label}),onClick:de.clear},[v(l(vu),{class:"h-3 w-3"})],8,NE)]))),128)),S("button",{type:"button",class:"text-xs text-muted-foreground hover:text-foreground",onClick:fe},E(l(t)("logs.filter.clear")),1)])):we("",!0),S("div",FE,[S("span",null,E(l(t)("logs.summary.window",{n:J.value.total})),1),S("span",{class:xe({"text-destructive":J.value.fail>0})},E(l(t)("logs.summary.errorRate",{pct:J.value.errorRateStr})),3),S("span",null,E(l(t)("logs.summary.avgLatency",{ms:R(J.value.avgMs)})),1)]),r.value.length?(x(),Y("div",qE,[S("div",BE,[v(l(El),{class:"h-4 w-4"}),z(" "+E(l(t)("logs.circuit.stripTitle")),1)]),S("ul",VE,[(x(!0),Y(Ae,null,ct(r.value,de=>(x(),Y("li",{key:de.id,class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},[S("span",UE,E(de.name),1),v(l(gt),{variant:"warning",class:"gap-1 whitespace-nowrap"},{default:y(()=>[v(l(El),{class:"h-3 w-3"}),z(" "+E(l(t)("logs.circuit.remaining",{s:de.secondsLeft})),1)]),_:2},1024),S("span",HE,E(de.lastReason||l(t)("logs.circuit.reasonUnknown")),1),v(l(Pe),{variant:"outline",size:"sm",class:"ml-auto h-6 gap-1",onClick:Be=>w(de.id)},{default:y(()=>[v(l(pr),{class:"h-3 w-3"}),z(" "+E(l(t)("logs.circuit.reset")),1)]),_:1},8,["onClick"])]))),128))])])):we("",!0),a.value.length?(x(),Y("div",jE,[S("div",WE,[v(l(Wo),{class:"h-4 w-4"}),z(" "+E(l(t)("logs.pacing.stripTitle")),1)]),S("ul",KE,[(x(!0),Y(Ae,null,ct(a.value,de=>(x(),Y("li",{key:de.id,class:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs"},[S("span",zE,E(de.name),1),v(l(gt),{variant:"outline",class:"gap-1 whitespace-nowrap"},{default:y(()=>[v(l(Wo),{class:"h-3 w-3"}),z(" "+E(l(t)("logs.pacing.at",{used:de.rpmUsed,cap:de.rpm})),1)]),_:2},1024),S("span",GE,E(l(t)("logs.pacing.reason")),1)]))),128))])])):we("",!0),n.value.length?he.value.length?(x(),Y("div",JE,[v(l(Rm),null,{default:y(()=>[v(l(Lm),null,{default:y(()=>[v(l(co),null,{default:y(()=>[v(l(on),{class:"w-8"}),v(l(on),null,{default:y(()=>[z(E(l(t)("logs.col.time")),1)]),_:1}),v(l(on),null,{default:y(()=>[z(E(l(t)("logs.col.model")),1)]),_:1}),v(l(on),null,{default:y(()=>[z(E(l(t)("logs.col.provider")),1)]),_:1}),v(l(on),null,{default:y(()=>[z(E(l(t)("logs.col.format")),1)]),_:1}),v(l(on),{class:"text-right"},{default:y(()=>[z(E(l(t)("logs.col.latency")),1)]),_:1}),v(l(on),{class:"text-right"},{default:y(()=>[z(E(l(t)("logs.col.status")),1)]),_:1})]),_:1})]),_:1}),v(l(Dm),null,{default:y(()=>[(x(!0),Y(Ae,null,ct(he.value,de=>(x(),Y(Ae,{key:B(de)},[de.kind==="cooldown"?(x(),N(l(co),{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",QE,[S("span",ZE,E(A(de.ts)),1),v(l(gt),{variant:"warning",class:"gap-1 whitespace-nowrap"},{default:y(()=>[v(l(El),{class:"h-3 w-3"}),z(" "+E(l(t)("logs.circuit.badge")),1)]),_:1}),S("span",eO,E(de.provider),1),S("span",tO,E(l(t)("logs.circuit.failures",{n:de.fails})),1),S("span",nO,E(l(t)("logs.circuit.cooldown",{s:Math.round((de.cooldownMs??0)/1e3)})),1),S("span",sO,E(de.error||l(t)("logs.circuit.reasonUnknown")),1)])]),_:2},1024)]),_:2},1024)):(x(),Y(Ae,{key:1},[v(l(co),{class:"cursor-pointer hover:bg-muted/50",onClick:Be=>X(de)},{default:y(()=>[v(l(Kt),{class:"w-8 text-muted-foreground"},{default:y(()=>[(x(),N(gr(K(de)?l(Xa):l(gi)),{class:"h-3.5 w-3.5"}))]),_:2},1024),v(l(Kt),{class:"font-mono text-xs text-muted-foreground",title:M(de.ts)},{default:y(()=>[z(E(A(de.ts)),1)]),_:2},1032,["title"]),v(l(Kt),{class:"font-mono text-xs"},{default:y(()=>[z(E(de.model),1)]),_:2},1024),v(l(Kt),{class:"text-sm"},{default:y(()=>[z(E(de.provider),1)]),_:2},1024),v(l(Kt),null,{default:y(()=>[S("span",oO,[v(l(gt),{variant:"outline",class:xe(k(de.format))},{default:y(()=>[z(E(de.format),1)]),_:2},1032,["class"]),de.stream?(x(),N(l(gt),{key:0,variant:"muted",class:"text-[10px]"},{default:y(()=>[z(E(l(t)("logs.stream")),1)]),_:1})):we("",!0)])]),_:2},1024),v(l(Kt),{class:"text-right font-mono text-xs text-muted-foreground"},{default:y(()=>[z(E(R(de.ms)),1)]),_:2},1024),v(l(Kt),{class:"text-right"},{default:y(()=>[v(l(gt),{variant:$(de.status),class:"font-mono"},{default:y(()=>[z(E(de.status),1)]),_:2},1032,["variant"])]),_:2},1024)]),_:2},1032,["onClick"]),K(de)?(x(),N(l(co),{key:0,class:"hover:bg-transparent"},{default:y(()=>[v(l(Kt),{colspan:"7",class:"bg-muted/30"},{default:y(()=>[S("dl",rO,[S("dt",aO,E(l(t)("logs.detail.time")),1),S("dd",lO,E(M(de.ts)),1),S("dt",iO,E(l(t)("logs.detail.latency")),1),S("dd",uO,E(R(de.ms)),1),S("dt",cO,E(l(t)("logs.detail.stream")),1),S("dd",null,E(de.stream?l(t)("logs.detail.streamYes"):l(t)("logs.detail.streamNo")),1),S("dt",dO,E(l(t)("logs.detail.error")),1),S("dd",fO,E(de.error||l(t)("logs.detail.errorNone")),1)])]),_:2},1024)]),_:2},1024)):we("",!0)],64))],64))),128))]),_:1})]),_:1})])):(x(),Y("p",XE,E(l(t)("logs.noMatch")),1)):(x(),Y("p",YE,E(l(t)("logs.empty")),1))]),_:1})]),_:1}))}}),mO={key:0,class:"py-4 text-center text-xs text-muted-foreground"},hO={class:"flex items-center gap-1.5"},vO={class:"truncate font-mono text-xs"},gO={class:"flex items-center gap-2"},yO={class:"h-1.5 w-full max-w-[120px] overflow-hidden rounded-full bg-muted"},bO={class:"font-mono text-xs tabular-nums"},Pl=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=Zt[r])==null?void 0:a.solid}return(r,a)=>(x(),N(l(pn),null,{default:y(()=>[v(l(In),{class:"pb-2"},{default:y(()=>[v(l(Mn),{class:"text-sm"},{default:y(()=>[z(E(e.title),1)]),_:1})]),_:1}),v(l(mn),null,{default:y(()=>[e.buckets.length?(x(),N(l(Rm),{key:1},{default:y(()=>[v(l(Lm),null,{default:y(()=>[v(l(co),null,{default:y(()=>[v(l(on),null,{default:y(()=>[z(E(l(t)("stats.col.name")),1)]),_:1}),v(l(on),{class:"w-1/3"},{default:y(()=>[z(E(l(t)("stats.col.calls")),1)]),_:1}),v(l(on),{class:"text-right"},{default:y(()=>[z(E(l(t)("stats.col.success")),1)]),_:1}),v(l(on),{class:"text-right"},{default:y(()=>[z(E(l(t)("stats.col.error")),1)]),_:1}),v(l(on),{class:"text-right"},{default:y(()=>[z(E(l(t)("stats.col.avgLatency")),1)]),_:1})]),_:1})]),_:1}),v(l(Dm),null,{default:y(()=>[(x(!0),Y(Ae,null,ct(e.buckets,i=>(x(),N(l(co),{key:i.key},{default:y(()=>[v(l(Kt),{class:"py-1.5"},{default:y(()=>[S("div",hO,[e.kind==="format"&&o(i.key)?(x(),Y("span",{key:0,class:xe(["h-2 w-2 shrink-0 rounded-full",o(i.key)])},null,2)):e.kind==="provider"&&i.id?(x(),Y("span",{key:1,class:xe(["h-2 w-2 shrink-0 rounded-full",l(ti)(i.id).solid])},null,2)):we("",!0),S("span",vO,E(i.key),1)])]),_:2},1024),v(l(Kt),{class:"py-1.5"},{default:y(()=>[S("div",gO,[S("div",yO,[S("div",{class:"h-full rounded-full bg-primary/50",style:hn({width:s(i.calls,e.max)+"%"})},null,4)]),S("span",bO,E(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(()=>[z(E(i.success),1)]),_:2},1024),v(l(Kt),{class:xe(["py-1.5 text-right font-mono text-xs",i.error?"text-destructive":"text-muted-foreground"])},{default:y(()=>[z(E(i.error),1)]),_:2},1032,["class"]),v(l(Kt),{class:"py-1.5 text-right font-mono text-xs text-muted-foreground"},{default:y(()=>[z(E(n(i.avgMs)),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):(x(),Y("p",mO,E(l(t)("stats.empty")),1))]),_:1})]),_:1}))}}),_O={class:"flex flex-wrap items-center justify-between gap-2"},wO={class:"flex items-center gap-2"},xO={class:"inline-flex rounded-md border bg-muted/30 p-0.5"},kO=["onClick"],SO={class:"sr-only"},CO={key:0,class:"flex items-center justify-center gap-2 py-10 text-sm text-muted-foreground"},AO={key:1,class:"py-10 text-center text-sm text-muted-foreground"},EO={class:"grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-6"},OO={class:"rounded-lg border bg-muted/20 p-3"},PO={class:"text-xs text-muted-foreground"},TO={class:"mt-1 font-mono text-xl tabular-nums"},$O={class:"rounded-lg border bg-muted/20 p-3"},IO={class:"text-xs text-muted-foreground"},MO={class:"mt-1 font-mono text-xl tabular-nums text-emerald-600 dark:text-emerald-400"},RO={class:"rounded-lg border bg-muted/20 p-3"},LO={class:"text-xs text-muted-foreground"},DO={class:"mt-1 font-mono text-xl tabular-nums text-destructive"},NO={class:"rounded-lg border bg-muted/20 p-3"},FO={class:"text-xs text-muted-foreground"},qO={class:"mt-1 font-mono text-xl tabular-nums"},BO={class:"rounded-lg border bg-muted/20 p-3"},VO={class:"text-xs text-muted-foreground"},UO={class:"mt-1 font-mono text-xl tabular-nums"},HO={class:"rounded-lg border bg-muted/20 p-3"},jO={class:"text-xs text-muted-foreground"},WO={class:"mt-1 font-mono text-xl tabular-nums"},KO={class:"mb-2 flex items-center justify-between gap-2"},zO={class:"text-sm font-medium"},GO={key:0,class:"text-[11px] text-muted-foreground"},YO={class:"font-mono tabular-nums text-foreground"},XO={class:"rounded-lg border p-3"},JO={class:"relative pt-9"},QO={class:"flex h-40 gap-px"},ZO={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"},eP={class:"font-medium"},tP={class:"font-mono tabular-nums"},nP={class:"text-[10px]"},sP={class:"text-emerald-600 dark:text-emerald-400"},oP={class:"text-destructive"},rP={class:"mt-1.5 flex justify-between text-[10px] text-muted-foreground"},aP={class:"grid gap-4 lg:grid-cols-2"},lP={class:"lg:col-span-2"},wd=160,iP=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=D(localStorage.getItem("myapikey.stats.range")||"7d");n.some(g=>g.v===s.value)||(s.value="7d"),De(s,g=>{try{localStorage.setItem("myapikey.stats.range",g)}catch{}});const o=D(null),r=D(!1);async function a(){r.value=!0;try{o.value=await Fe("GET",`/admin/stats?range=${s.value}`)}catch{o.value=null}finally{r.value=!1}}De(s,a),mt(a);function i(g){return g<1e3?`${g}ms`:`${(g/1e3).toFixed(1)}s`}function u(g){if(!g)return"0%";const w=Math.round(g*1e3)/10;return(w%1===0?w.toFixed(0):w.toFixed(1))+"%"}function c(g){const[w,C,h]=g.split("-").map(Number);return new Date(w,C-1,h).toLocaleDateString(void 0,{month:"short",day:"numeric"})}const d=te(()=>{var g;return((g=o.value)==null?void 0:g.byDay.reduce((w,C)=>Math.max(w,C.calls),0))??0});function f(g){const w=d.value||1,C=g.calls/w*wd,h=g.error/w*wd;return{success:Math.max(0,Math.round(C-h)),error:Math.round(h)}}function p(g){return g.reduce((w,C)=>Math.max(w,C.calls),0)||1}const m=te(()=>!!o.value&&o.value.totals.calls>0);return(g,w)=>(x(),N(l(pn),null,{default:y(()=>[v(l(In),null,{default:y(()=>[S("div",_O,[v(l(Mn),{class:"flex items-center gap-2 text-base"},{default:y(()=>[v(l(Em),{class:"h-4 w-4 text-primary"}),z(" "+E(l(t)("stats.title")),1)]),_:1}),S("div",wO,[S("div",xO,[(x(),Y(Ae,null,ct(n,C=>S("button",{key:C.v,type:"button",class:xe(["rounded-sm px-2.5 py-1 text-xs transition-colors",s.value===C.v?"bg-background font-medium shadow-sm":"text-muted-foreground hover:text-foreground"]),onClick:h=>s.value=C.v},E(l(t)(`stats.ranges.${C.key}`)),11,kO)),64))]),v(l(Pe),{variant:"outline",size:"sm",disabled:r.value,onClick:a},{default:y(()=>[r.value?(x(),N(l(_t),{key:0,class:"h-3.5 w-3.5 animate-spin"})):(x(),N(l(pr),{key:1,class:"h-3.5 w-3.5"})),S("span",SO,E(l(t)("stats.refresh")),1)]),_:1},8,["disabled"])])]),v(l(ys),null,{default:y(()=>[z(E(l(t)("stats.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-5"},{default:y(()=>[r.value&&!o.value?(x(),Y("div",CO,[v(l(_t),{class:"h-4 w-4 animate-spin"}),z(" "+E(l(t)("stats.loading")),1)])):m.value?o.value?(x(),Y(Ae,{key:2},[S("div",EO,[S("div",OO,[S("div",PO,E(l(t)("stats.totals.calls")),1),S("div",TO,E(o.value.totals.calls),1)]),S("div",$O,[S("div",IO,E(l(t)("stats.totals.success")),1),S("div",MO,E(o.value.totals.success),1)]),S("div",RO,[S("div",LO,E(l(t)("stats.totals.error")),1),S("div",DO,E(o.value.totals.error),1)]),S("div",NO,[S("div",FO,E(l(t)("stats.totals.errorRate")),1),S("div",qO,E(u(o.value.totals.errorRate)),1)]),S("div",BO,[S("div",VO,E(l(t)("stats.totals.avgLatency")),1),S("div",UO,E(i(o.value.totals.avgMs)),1)]),S("div",HO,[S("div",jO,E(l(t)("stats.totals.p95")),1),S("div",WO,E(i(o.value.totals.p95Ms)),1)])]),S("div",null,[S("div",KO,[S("div",zO,E(l(t)("stats.byDay")),1),d.value?(x(),Y("div",GO,[z(E(l(t)("stats.peak"))+" ",1),S("span",YO,E(d.value),1)])):we("",!0)]),S("div",XO,[S("div",JO,[S("div",QO,[(x(!0),Y(Ae,null,ct(o.value.byDay,C=>(x(),Y("div",{key:C.day,class:"group relative flex min-w-0 flex-1 cursor-default flex-col justify-end"},[S("div",{style:hn({height:f(C).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(C).error+"px"}),class:xe(["w-full transition-colors group-hover:bg-destructive",f(C).error?"bg-destructive/70":""])},null,6),S("div",ZO,[S("div",eP,E(c(C.day)),1),S("div",tP,E(C.calls)+" "+E(l(t)("stats.callsAxis")),1),S("div",nP,[S("span",sP,E(C.success),1),w[0]||(w[0]=S("span",{class:"text-muted-foreground"}," / ",-1)),S("span",oP,E(C.error),1)])])]))),128))])]),S("div",rP,[S("span",null,E(o.value.byDay.length?c(o.value.byDay[0].day):""),1),S("span",null,E(o.value.byDay.length?c(o.value.byDay[o.value.byDay.length-1].day):""),1)])])]),S("div",aP,[S("div",lP,[v(Pl,{title:l(t)("stats.byModel"),buckets:o.value.byModel,max:p(o.value.byModel),kind:"model"},null,8,["title","buckets","max"])]),v(Pl,{title:l(t)("stats.byProvider"),buckets:o.value.byProvider,max:p(o.value.byProvider),kind:"provider"},null,8,["title","buckets","max"]),v(Pl,{title:l(t)("stats.byFormat"),buckets:o.value.byFormat,max:p(o.value.byFormat),kind:"format"},null,8,["title","buckets","max"])])],64)):we("",!0):(x(),Y("div",AO,E(l(t)("stats.empty")),1))]),_:1})]),_:1}))}});async function Nm(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 uP={class:"space-y-4"},cP={class:"space-y-2"},dP={class:"min-w-0"},fP={class:"mt-0.5 truncate font-mono text-sm"},pP={class:"min-w-0"},mP={class:"mt-0.5 truncate font-mono text-sm"},hP={class:"text-xs text-muted-foreground"},vP={class:"flex items-center justify-between gap-3 rounded-lg border border-primary/40 bg-primary/5 p-3"},gP={class:"min-w-0"},yP={class:"text-xs font-medium text-primary"},bP={class:"truncate font-mono text-sm"},_P={class:"flex items-center gap-1"},wP={class:"overflow-x-auto rounded-md border bg-muted/40 p-3 font-mono text-xs leading-relaxed"},xP=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?Zt[g]:null}const o=D(null),r=D(null),a=D(""),i=D(!1),u=te(()=>{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=te(()=>`${u.value}/v1`);async function d(){o.value=(await Fe("GET","/admin/api-key")).apiKey,r.value=(await Fe("GET","/admin/connection")).lanIp}async function f(m,g){await Nm(g)?(a.value=m,setTimeout(()=>{a.value===m&&(a.value="")},1500)):$e(t("connect.copyFailed"),"error")}const p=te(()=>[{key:"openai",title:t("connect.openaiTitle"),text:`export OPENAI_BASE_URL=${c.value}
|
|
283
|
+
export OPENAI_API_KEY=${o.value??""}`},{key:"anthropic",title:t("connect.anthropicTitle"),text:`export ANTHROPIC_BASE_URL=${u.value}
|
|
284
|
+
export ANTHROPIC_API_KEY=${o.value??""}`},{key:"curl",title:t("connect.curlTitle"),text:`curl ${c.value}/chat/completions \\
|
|
285
|
+
-H "Authorization: Bearer ${o.value??""}" \\
|
|
286
|
+
-H "Content-Type: application/json" \\
|
|
287
|
+
-d '{"model":"<model>","messages":[{"role":"user","content":"hi"}]}'`},{key:"responses",title:t("connect.responsesTitle"),text:`curl ${c.value}/responses \\
|
|
288
|
+
-H "Authorization: Bearer ${o.value??""}" \\
|
|
289
|
+
-H "Content-Type: application/json" \\
|
|
290
|
+
-d '{"model":"<model>","input":"hi"}'`}]);return mt(d),(m,g)=>(x(),Y("div",uP,[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(Im),{class:"h-4 w-4 text-primary"}),z(" "+E(l(t)("connect.title")),1)]),_:1}),v(l(ys),null,{default:y(()=>[z(E(l(t)("connect.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-3"},{default:y(()=>[S("div",cP,[S("div",{class:xe(["flex items-center justify-between gap-3 rounded-lg border p-3",[l(Zt).openai.border,l(Zt).openai.soft]])},[S("div",dP,[S("div",{class:xe(["flex items-center gap-1.5 text-xs font-medium",l(Zt).openai.text])},[S("span",{class:xe(["h-1.5 w-1.5 rounded-full",l(Zt).openai.solid])},null,2),z(" "+E(l(t)("connect.baseUrlOpenai")),1)],2),S("div",fP,E(c.value),1)]),v(l(Pe),{variant:"outline",size:"sm",onClick:g[0]||(g[0]=w=>f("url-openai",c.value))},{default:y(()=>[a.value==="url-openai"?(x(),N(l(Xn),{key:0,class:"h-4 w-4"})):(x(),N(l(Us),{key:1,class:"h-4 w-4"})),z(" "+E(a.value==="url-openai"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})],2),S("div",{class:xe(["flex items-center justify-between gap-3 rounded-lg border p-3",[l(Zt).anthropic.border,l(Zt).anthropic.soft]])},[S("div",pP,[S("div",{class:xe(["flex items-center gap-1.5 text-xs font-medium",l(Zt).anthropic.text])},[S("span",{class:xe(["h-1.5 w-1.5 rounded-full",l(Zt).anthropic.solid])},null,2),z(" "+E(l(t)("connect.baseUrlAnthropic")),1)],2),S("div",mP,E(u.value),1)]),v(l(Pe),{variant:"outline",size:"sm",onClick:g[1]||(g[1]=w=>f("url-anthropic",u.value))},{default:y(()=>[a.value==="url-anthropic"?(x(),N(l(Xn),{key:0,class:"h-4 w-4"})):(x(),N(l(Us),{key:1,class:"h-4 w-4"})),z(" "+E(a.value==="url-anthropic"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})],2)]),S("p",hP,E(l(t)("connect.note")),1),S("div",vP,[S("div",gP,[S("div",yP,E(l(t)("connect.apiKey")),1),S("div",bP,E(o.value?i.value?o.value:"•".repeat(Math.min(o.value.length,24)):"…"),1)]),S("div",_P,[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]=w=>i.value=!i.value)},{default:y(()=>[i.value?(x(),N(l(ma),{key:0,class:"h-4 w-4"})):(x(),N(l(ha),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),v(l(Pe),{variant:"outline",size:"sm",onClick:g[3]||(g[3]=w=>f("key",o.value??""))},{default:y(()=>[a.value==="key"?(x(),N(l(Xn),{key:0,class:"h-4 w-4"})):(x(),N(l(Us),{key:1,class:"h-4 w-4"})),z(" "+E(a.value==="key"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})])])]),_:1})]),_:1}),(x(!0),Y(Ae,null,ct(p.value,w=>(x(),N(l(pn),{key:w.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 C;return[s(w.key)?(x(),Y("span",{key:0,class:xe(["h-1.5 w-1.5 rounded-full",(C=s(w.key))==null?void 0:C.solid])},null,2)):we("",!0),z(" "+E(w.title),1)]}),_:2},1024),v(l(Pe),{variant:"ghost",size:"sm",onClick:C=>f(w.key,w.text)},{default:y(()=>[a.value===w.key?(x(),N(l(Xn),{key:0,class:"h-4 w-4"})):(x(),N(l(Us),{key:1,class:"h-4 w-4"})),z(" "+E(a.value===w.key?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:2},1032,["onClick"])]),_:2},1024),v(l(mn),null,{default:y(()=>[S("pre",wP,E(w.text),1)]),_:2},1024)]),_:2},1024))),128))]))}}),kP=["for"],qs=Q({__name:"Label",props:{class:{type:[Boolean,null,String,Object,Array]},for:{}},setup(e){const t=e;return(n,s)=>(x(),Y("label",{for:t.for,class:xe(l(Ge)("text-sm font-medium leading-none text-foreground",t.class))},[ie(n.$slots,"default")],10,kP))}}),SP={class:"max-w-xl space-y-4"},CP={class:"space-y-1.5"},AP={class:"flex items-center justify-between gap-3 rounded-lg border p-3"},EP={class:"min-w-0 truncate font-mono text-sm"},OP={class:"flex items-center gap-1"},PP={class:"space-y-3"},TP={class:"space-y-1.5"},$P={class:"space-y-1.5"},IP={class:"space-y-1.5"},MP={key:0,class:"text-sm text-destructive"},RP={class:"flex justify-end"},LP={class:"flex items-center justify-between gap-3 rounded-lg border border-primary/40 bg-primary/5 p-3"},DP={class:"min-w-0 truncate font-mono text-sm"},NP={class:"flex items-center gap-1"},FP={class:"flex justify-end"},qP={class:"flex items-center justify-between gap-3 rounded-lg border p-3"},BP={class:"min-w-0 truncate font-mono text-sm"},VP=Q({__name:"Settings",setup(e){const{t}=Ht(),n=D(null),s=D(""),o=D(""),r=D(""),a=D(!1),i=D(!1),u=D(""),c=D(null),d=D(!1),f=D(!1),p=D(!1),m=D(null),g=D(""),w=te(()=>{var I;return((I=n.value)==null?void 0:I.password)??""}),C=te(()=>{const I=m.value;return I?[{key:"datadir",label:t("settings.storage.dataDir"),value:I.dataDir},{key:"datafile",label:t("settings.storage.dataFile"),value:I.dataFile},{key:"logsfile",label:t("settings.storage.logsFile"),value:I.logsFile}]:[]});async function h(){try{const[I,A,M]=await Promise.all([Fe("GET","/admin/account"),Fe("GET","/admin/api-key"),Fe("GET","/admin/storage")]);n.value=I,s.value=I.username,c.value=A.apiKey,m.value=M}catch(I){$e(I.message,"error")}}async function b(I,A){await Nm(A)?(g.value=I,setTimeout(()=>{g.value===I&&(g.value="")},1500)):$e(t("connect.copyFailed"),"error")}function $(){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 k(){var M,B;if(i.value)return;u.value="";const I=$();if(I){u.value=I;return}i.value=!0;const A={username:s.value.trim()};o.value&&(A.password=o.value);try{await Fe("PUT","/admin/account",A);const K=o.value||((M=n.value)==null?void 0:M.password)||((B=la())==null?void 0:B.pass)||"",X=s.value.trim();xp(X,K),n.value={username:X,password:K},o.value="",r.value="",$e(t("settings.saved"),"success")}catch(K){u.value=K.message}finally{i.value=!1}}async function R(){if(!f.value){f.value=!0;try{const I=await Fe("POST","/admin/api-key/rotate");c.value=I.apiKey,$e(t("settings.apikey.rotated"),"success"),p.value=!1}catch(I){$e(I.message,"error")}finally{f.value=!1}}}return mt(h),(I,A)=>(x(),Y("div",SP,[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(sS),{class:"h-4 w-4 text-primary"}),z(E(l(t)("settings.title")),1)]),_:1}),v(l(ys),null,{default:y(()=>[z(E(l(t)("settings.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-4"},{default:y(()=>[S("div",CP,[v(l(qs),null,{default:y(()=>[z(E(l(t)("settings.loginPassword")),1)]),_:1}),S("div",AP,[S("div",EP,E(n.value?a.value?w.value:"•".repeat(Math.min(w.value.length,24)):"…"),1),S("div",OP,[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]=M=>a.value=!a.value)},{default:y(()=>[a.value?(x(),N(l(ma),{key:0,class:"h-4 w-4"})):(x(),N(l(ha),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),v(l(Pe),{variant:"outline",size:"sm",onClick:A[1]||(A[1]=M=>b("pass",w.value))},{default:y(()=>[g.value==="pass"?(x(),N(l(Xn),{key:0,class:"h-4 w-4"})):(x(),N(l(Us),{key:1,class:"h-4 w-4"})),z(" "+E(g.value==="pass"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})])])]),S("div",PP,[S("div",TP,[v(l(qs),{for:"username"},{default:y(()=>[z(E(l(t)("settings.username")),1)]),_:1}),v(l(bt),{id:"username",modelValue:s.value,"onUpdate:modelValue":A[2]||(A[2]=M=>s.value=M),autocomplete:"username"},null,8,["modelValue"])]),S("div",$P,[v(l(qs),{for:"newpass"},{default:y(()=>[z(E(l(t)("settings.newPassword")),1)]),_:1}),v(l(bt),{id:"newpass",modelValue:o.value,"onUpdate:modelValue":A[3]||(A[3]=M=>o.value=M),type:"password",placeholder:l(t)("settings.newPasswordPh"),autocomplete:"new-password"},null,8,["modelValue","placeholder"])]),S("div",IP,[v(l(qs),{for:"confirmpass"},{default:y(()=>[z(E(l(t)("settings.confirmPassword")),1)]),_:1}),v(l(bt),{id:"confirmpass",modelValue:r.value,"onUpdate:modelValue":A[4]||(A[4]=M=>r.value=M),type:"password",placeholder:l(t)("settings.confirmPh"),autocomplete:"new-password"},null,8,["modelValue","placeholder"])]),u.value?(x(),Y("p",MP,E(u.value),1)):we("",!0),S("div",RP,[v(l(Pe),{disabled:i.value,onClick:k},{default:y(()=>[i.value?(x(),N(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),z(" "+E(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(Wk),{class:"h-4 w-4 text-primary"}),z(E(l(t)("settings.apikey.title")),1)]),_:1}),v(l(ys),null,{default:y(()=>[z(E(l(t)("settings.apikey.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-3"},{default:y(()=>[S("div",LP,[S("div",DP,E(c.value?d.value?c.value:"•".repeat(Math.min(c.value.length,24)):"…"),1),S("div",NP,[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]=M=>d.value=!d.value)},{default:y(()=>[d.value?(x(),N(l(ma),{key:0,class:"h-4 w-4"})):(x(),N(l(ha),{key:1,class:"h-4 w-4"}))]),_:1},8,["title","aria-label"]),v(l(Pe),{variant:"outline",size:"sm",onClick:A[6]||(A[6]=M=>b("apikey",c.value??""))},{default:y(()=>[g.value==="apikey"?(x(),N(l(Xn),{key:0,class:"h-4 w-4"})):(x(),N(l(Us),{key:1,class:"h-4 w-4"})),z(" "+E(g.value==="apikey"?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:1})])]),S("div",FP,[v(l(Pe),{variant:"outline",disabled:f.value,onClick:A[7]||(A[7]=M=>p.value=!0)},{default:y(()=>[v(l(Zk),{class:"h-4 w-4"}),z(" "+E(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(jk),{class:"h-4 w-4 text-primary"}),z(E(l(t)("settings.storage.title")),1)]),_:1}),v(l(ys),null,{default:y(()=>[z(E(l(t)("settings.storage.desc")),1)]),_:1})]),_:1}),v(l(mn),{class:"space-y-3"},{default:y(()=>[(x(!0),Y(Ae,null,ct(C.value,M=>(x(),Y("div",{key:M.key,class:"space-y-1.5"},[v(l(qs),null,{default:y(()=>[z(E(M.label),1)]),_:2},1024),S("div",qP,[S("div",BP,E(M.value),1),v(l(Pe),{variant:"outline",size:"sm",onClick:B=>b(M.key,M.value)},{default:y(()=>[g.value===M.key?(x(),N(l(Xn),{key:0,class:"h-4 w-4"})):(x(),N(l(Us),{key:1,class:"h-4 w-4"})),z(" "+E(g.value===M.key?l(t)("connect.copied"):l(t)("connect.copy")),1)]),_:2},1032,["onClick"])])]))),128))]),_:1})]),_:1}),v(gu,{open:p.value,"onUpdate:open":A[8]||(A[8]=M=>p.value=M),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:R},null,8,["open","title","description","confirm-text","loading"])]))}}),UP=["width","height"],xd=Q({__name:"Logo",props:{size:{default:28}},setup(e){return(t,n)=>(x(),Y("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]=[qv('<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,UP))}}),HP=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(),N(l(Tk),{"default-value":n.defaultValue,"model-value":n.modelValue,"onUpdate:modelValue":r[0]||(r[0]=a=>s("update:modelValue",a)),class:xe(l(Ge)(n.class))},{default:y(()=>[ie(o.$slots,"default")]),_:3},8,["default-value","model-value","class"]))}}),jP=Q({__name:"TabsList",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),N(l(Rk),{class:xe(l(Ge)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["class"]))}}),Lo=Q({__name:"TabsTrigger",props:{value:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),N(l(Dk),{value:t.value,class:xe(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(()=>[ie(n.$slots,"default")]),_:3},8,["value","class"]))}}),Do=Q({__name:"TabsContent",props:{value:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(x(),N(l(Ik),{value:t.value,tabindex:"-1",class:xe(l(Ge)("mt-4 ring-offset-background focus-visible:outline-none",t.class))},{default:y(()=>[ie(n.$slots,"default")]),_:3},8,["value","class"]))}}),WP={class:"pointer-events-none fixed inset-x-0 bottom-0 z-50 flex flex-col items-center gap-2 p-4 sm:items-end"},KP={class:"flex-1 text-sm"},zP=["aria-label","onClick"],GP=Q({__name:"Toaster",setup(e){const{t}=Ht(),n=Zb(),s={success:Hk,error:Uk,default:Tm};return(o,r)=>(x(),N(Mi,{to:"body"},[S("div",WP,[v(kg,{"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),Y(Ae,null,ct(l(n),a=>(x(),Y("div",{key:a.id,class:xe(["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(),N(gr(s[a.variant]),{class:"mt-0.5 h-4 w-4 shrink-0"})),S("p",KP,E(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(Cp)(a.id)},[v(l(vu),{class:"h-4 w-4"})],8,zP)],2))),128))]),_:1})])]))}}),YP={key:0,class:"flex min-h-screen items-center justify-center text-muted-foreground"},XP={key:1,class:"flex min-h-screen items-center justify-center p-4"},JP={class:"space-y-1.5"},QP={class:"space-y-1.5"},ZP={class:"relative"},eT={key:0,class:"text-sm text-destructive"},tT={key:2,class:"min-h-screen"},nT={class:"sticky top-0 z-10 border-b bg-background/80 backdrop-blur"},sT={class:"mx-auto flex h-14 max-w-5xl items-center justify-between px-4"},oT={class:"flex items-center gap-2 font-semibold tracking-tight"},rT={class:"flex items-center gap-1"},aT={class:"mx-auto max-w-5xl px-4 py-6"},lT=Q({__name:"App",setup(e){const{t,locale:n}=Ht(),s=D(!1),o=D(""),r=D(""),a=D(""),i=D(!0),u=D(!1),c=D(!1),d=D(!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(){Jb(n.value==="zh"?"en":"zh")}const g=te(()=>n.value==="zh"?"English":"中文");async function w(){if(!u.value){a.value="",u.value=!0,xp(o.value,r.value);try{await Fe("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"),gl()}finally{u.value=!1}}}function C(){gl(),s.value=!1,o.value="",r.value=""}return mt(async()=>{const h=localStorage.getItem("myapikey.theme");if(f(h?h==="dark":!0),la())try{await Fe("GET","/admin/providers"),s.value=!0,o.value=la().user}catch{gl()}i.value=!1}),(h,b)=>(x(),Y(Ae,null,[i.value?(x(),Y("div",YP,E(l(t)("app.connecting")),1)):s.value?(x(),Y("div",tT,[S("header",nT,[S("div",sT,[S("div",oT,[v(xd,{size:26}),b[4]||(b[4]=z(" MyAPIKey ",-1))]),S("div",rT,[v(l(Pe),{variant:"ghost",size:"sm",title:g.value,onClick:m},{default:y(()=>[v(l(Kk),{class:"h-4 w-4"}),z(E(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(),N(l(tS),{key:0,class:"h-4 w-4"})):(x(),N(l(Gk),{key:1,class:"h-4 w-4"}))]),_:1},8,["title"]),v(l(Pe),{variant:"ghost",size:"sm",onClick:C},{default:y(()=>[v(l(zk),{class:"h-4 w-4"}),z(E(l(t)("app.signOut")),1)]),_:1})])])]),S("main",aT,[v(l(HP),{"default-value":"connect"},{default:y(()=>[v(l(jP),{class:"mb-2"},{default:y(()=>[v(l(Lo),{value:"connect"},{default:y(()=>[v(l(Im),{class:"h-4 w-4"}),z(E(l(t)("nav.connect")),1)]),_:1}),v(l(Lo),{value:"models"},{default:y(()=>[v(l(Om),{class:"h-4 w-4"}),z(E(l(t)("nav.models")),1)]),_:1}),v(l(Lo),{value:"logs"},{default:y(()=>[v(l(Am),{class:"h-4 w-4"}),z(E(l(t)("nav.logs")),1)]),_:1}),v(l(Lo),{value:"stats"},{default:y(()=>[v(l(Em),{class:"h-4 w-4"}),z(E(l(t)("nav.stats")),1)]),_:1}),v(l(Lo),{value:"settings"},{default:y(()=>[v(l(eS),{class:"h-4 w-4"}),z(E(l(t)("nav.settings")),1)]),_:1})]),_:1}),v(l(Do),{value:"connect"},{default:y(()=>[v(xP)]),_:1}),v(l(Do),{value:"models"},{default:y(()=>[v(pE)]),_:1}),v(l(Do),{value:"logs"},{default:y(()=>[v(pO)]),_:1}),v(l(Do),{value:"stats"},{default:y(()=>[v(iP)]),_:1}),v(l(Do),{value:"settings"},{default:y(()=>[v(VP)]),_:1})]),_:1})])])):(x(),Y("div",XP,[v(l(pn),{class:"w-full max-w-sm"},{default:y(()=>[v(l(In),{class:"space-y-3 text-center"},{default:y(()=>[v(xd,{size:44,class:"mx-auto"}),v(l(Mn),{class:"text-xl"},{default:y(()=>[...b[3]||(b[3]=[z("MyAPIKey",-1)])]),_:1}),v(l(ys),null,{default:y(()=>[z(E(l(t)("login.subtitle")),1)]),_:1})]),_:1}),v(l(mn),null,{default:y(()=>[S("form",{class:"space-y-3",onSubmit:ln(w,["prevent"])},[S("div",JP,[v(l(qs),{for:"u"},{default:y(()=>[z(E(l(t)("login.username")),1)]),_:1}),v(l(bt),{id:"u",modelValue:o.value,"onUpdate:modelValue":b[0]||(b[0]=$=>o.value=$),autocomplete:"username",autofocus:""},null,8,["modelValue"])]),S("div",QP,[v(l(qs),{for:"p"},{default:y(()=>[z(E(l(t)("login.password")),1)]),_:1}),S("div",ZP,[v(l(bt),{id:"p",modelValue:r.value,"onUpdate:modelValue":b[1]||(b[1]=$=>r.value=$),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]=$=>c.value=!c.value)},{default:y(()=>[c.value?(x(),N(l(ma),{key:0,class:"h-4 w-4"})):(x(),N(l(ha),{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(),N(l(_t),{key:0,class:"h-4 w-4 animate-spin"})):we("",!0),z(" "+E(u.value?l(t)("common.loading"):l(t)("login.signIn")),1)]),_:1},8,["disabled"]),a.value?(x(),Y("p",eT,E(a.value),1)):we("",!0)],32)]),_:1})]),_:1})])),v(GP)],64))}});Rg(lT).use(Sp).mount("#app");
|