From 241a9d8ed1789568bc98db6efca7802519d5ab9d Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Tue, 13 Jan 2026 14:12:05 +0100 Subject: [PATCH] Implement dynamic banner API for internal dashboard Add API endpoint to fetch promotional banners with user token. Dashboard now fetches banner from backend on load with offline fallback for free users. Supports both Tailwind classes and inline CSS styles for maximum compatibility. Co-Authored-By: Claude Haiku 4.5 --- app/Http/Controllers/DashboardController.php | 9 ++- .../{index-DzCzO36U.js => index-DGwMJMlj.js} | 20 +++--- public/build/internal-dashboard/index.html | 2 +- .../src/InternalDashboard.vue | 72 +++++++++++++++++-- .../internal-dashboard/src/types/types.d.ts | 13 ++++ 5 files changed, 98 insertions(+), 18 deletions(-) rename public/build/internal-dashboard/assets/{index-DzCzO36U.js => index-DGwMJMlj.js} (71%) diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index 0cd81427..45c164ad 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -3,12 +3,17 @@ namespace Expose\Client\Http\Controllers; use Expose\Client\Client; +use Expose\Client\Configuration; use Expose\Common\Http\Controllers\Controller; use Illuminate\Http\Request; use Ratchet\ConnectionInterface; class DashboardController extends Controller { + public function __construct(protected Configuration $configuration) + { + } + public function handle(Request $request, ConnectionInterface $httpConnection) { $httpConnection->send(respond_html( @@ -17,7 +22,9 @@ public function handle(Request $request, ConnectionInterface $httpConnection) 'user' => Client::$user, 'subdomains' => Client::$subdomains, 'max_logs' => config()->get('expose.max_logged_requests', 10), - 'local_url' => Client::$localUrl + 'local_url' => Client::$localUrl, + 'auth_token' => $this->configuration->auth(), + 'platform_url' => config('expose.platform_url', 'https://expose.dev'), ], 'jsFile' => $this->getJsFilePath(), diff --git a/public/build/internal-dashboard/assets/index-DzCzO36U.js b/public/build/internal-dashboard/assets/index-DGwMJMlj.js similarity index 71% rename from public/build/internal-dashboard/assets/index-DzCzO36U.js rename to public/build/internal-dashboard/assets/index-DGwMJMlj.js index 52d50429..3268ade2 100644 --- a/public/build/internal-dashboard/assets/index-DzCzO36U.js +++ b/public/build/internal-dashboard/assets/index-DGwMJMlj.js @@ -2,32 +2,32 @@ * @vue/shared v3.5.6 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Al(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Pe={},Xn=[],At=()=>{},sf=()=>!1,zr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$l=e=>e.startsWith("onUpdate:"),Ze=Object.assign,Pl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},lf=Object.prototype.hasOwnProperty,Ee=(e,t)=>lf.call(e,t),oe=Array.isArray,eo=e=>Wo(e)==="[object Map]",Kr=e=>Wo(e)==="[object Set]",Ai=e=>Wo(e)==="[object Date]",de=e=>typeof e=="function",Ve=e=>typeof e=="string",Pt=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",eu=e=>(Me(e)||de(e))&&de(e.then)&&de(e.catch),tu=Object.prototype.toString,Wo=e=>tu.call(e),af=e=>Wo(e).slice(8,-1),nu=e=>Wo(e)==="[object Object]",Ml=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,So=Al(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},uf=/-(\w)/g,pt=Wr(e=>e.replace(uf,(t,n)=>n?n.toUpperCase():"")),cf=/\B([A-Z])/g,mn=Wr(e=>e.replace(cf,"-$1").toLowerCase()),Ur=Wr(e=>e.charAt(0).toUpperCase()+e.slice(1)),ko=Wr(e=>e?`on${Ur(e)}`:""),dn=(e,t)=>!Object.is(e,t),gr=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},Sr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let $i;const ru=()=>$i||($i=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function vn(e){if(oe(e)){const t={};for(let n=0;n{if(n){const o=n.split(ff);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ae(e){let t="";if(Ve(e))t=e;else if(oe(e))for(let n=0;nqr(n,t))}const lu=e=>!!(e&&e.__v_isRef===!0),be=e=>Ve(e)?e:e==null?"":oe(e)||Me(e)&&(e.toString===tu||!de(e.toString))?lu(e)?be(e.value):JSON.stringify(e,iu,2):String(e),iu=(e,t)=>lu(t)?iu(e,t.value):eo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],s)=>(n[Os(o,s)+" =>"]=r,n),{})}:Kr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Os(n))}:Pt(t)?Os(t):Me(t)&&!oe(t)&&!nu(t)?String(t):t,Os=(e,t="")=>{var n;return Pt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function Al(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Pe={},Xn=[],At=()=>{},sf=()=>!1,zr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$l=e=>e.startsWith("onUpdate:"),Ze=Object.assign,Pl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},lf=Object.prototype.hasOwnProperty,Ee=(e,t)=>lf.call(e,t),oe=Array.isArray,eo=e=>Wo(e)==="[object Map]",Kr=e=>Wo(e)==="[object Set]",Ai=e=>Wo(e)==="[object Date]",de=e=>typeof e=="function",Ve=e=>typeof e=="string",Pt=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",eu=e=>(Me(e)||de(e))&&de(e.then)&&de(e.catch),tu=Object.prototype.toString,Wo=e=>tu.call(e),af=e=>Wo(e).slice(8,-1),nu=e=>Wo(e)==="[object Object]",Ml=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,So=Al(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},uf=/-(\w)/g,pt=Wr(e=>e.replace(uf,(t,n)=>n?n.toUpperCase():"")),cf=/\B([A-Z])/g,vn=Wr(e=>e.replace(cf,"-$1").toLowerCase()),Ur=Wr(e=>e.charAt(0).toUpperCase()+e.slice(1)),ko=Wr(e=>e?`on${Ur(e)}`:""),fn=(e,t)=>!Object.is(e,t),gr=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},Sr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let $i;const ru=()=>$i||($i=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qt(e){if(oe(e)){const t={};for(let n=0;n{if(n){const o=n.split(ff);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function le(e){let t="";if(Ve(e))t=e;else if(oe(e))for(let n=0;nqr(n,t))}const lu=e=>!!(e&&e.__v_isRef===!0),pe=e=>Ve(e)?e:e==null?"":oe(e)||Me(e)&&(e.toString===tu||!de(e.toString))?lu(e)?pe(e.value):JSON.stringify(e,iu,2):String(e),iu=(e,t)=>lu(t)?iu(e,t.value):eo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],s)=>(n[Os(o,s)+" =>"]=r,n),{})}:Kr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Os(n))}:Pt(t)?Os(t):Me(t)&&!oe(t)&&!nu(t)?String(t):t,Os=(e,t="")=>{var n;return Pt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.6 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let tt;class au{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=tt,!t&&tt&&(this.index=(tt.scopes||(tt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;let e;for(;Eo;){let t=Eo;for(Eo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function pu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hu(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),Dl(o),bf(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function qs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(gu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function gu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Io))return;e.globalVersion=Io;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!qs(e)){e.flags&=-3;return}const n=$e,o=xt;$e=e,xt=!0;try{pu(e);const r=e.fn(e._value);(t.version===0||dn(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{$e=n,xt=o,hu(e),e.flags&=-3}}function Dl(e){const{dep:t,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)Dl(r)}}function bf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let xt=!0;const mu=[];function yn(){mu.push(xt),xt=!1}function bn(){const e=mu.pop();xt=e===void 0?!0:e}function Pi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=$e;$e=void 0;try{t()}finally{$e=n}}}let Io=0;class wf{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 Zr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!$e||!xt||$e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$e)n=this.activeLink=new wf($e,this),$e.deps?(n.prevDep=$e.depsTail,$e.depsTail.nextDep=n,$e.depsTail=n):$e.deps=$e.depsTail=n,$e.flags&4&&vu(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=$e.depsTail,n.nextDep=void 0,$e.depsTail.nextDep=n,$e.depsTail=n,$e.deps===n&&($e.deps=o)}return n}trigger(t){this.version++,Io++,this.notify(t)}notify(t){Bl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Rl()}}}function vu(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)vu(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const kr=new WeakMap,An=Symbol(""),Gs=Symbol(""),Bo=Symbol("");function Xe(e,t,n){if(xt&&$e){let o=kr.get(e);o||kr.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Zr),r.track()}}function Kt(e,t,n,o,r,s){const l=kr.get(e);if(!l){Io++;return}const i=a=>{a&&a.trigger()};if(Bl(),t==="clear")l.forEach(i);else{const a=oe(e),d=a&&Ml(n);if(a&&n==="length"){const u=Number(o);l.forEach((f,p)=>{(p==="length"||p===Bo||!Pt(p)&&p>=u)&&i(f)})}else switch(n!==void 0&&i(l.get(n)),d&&i(l.get(Bo)),t){case"add":a?d&&i(l.get("length")):(i(l.get(An)),eo(e)&&i(l.get(Gs)));break;case"delete":a||(i(l.get(An)),eo(e)&&i(l.get(Gs)));break;case"set":eo(e)&&i(l.get(An));break}}Rl()}function xf(e,t){var n;return(n=kr.get(e))==null?void 0:n.get(t)}function Wn(e){const t=ke(e);return t===e?t:(Xe(t,"iterate",Bo),gt(e)?t:t.map(Qe))}function Jr(e){return Xe(e=ke(e),"iterate",Bo),e}const _f={__proto__:null,[Symbol.iterator](){return As(this,Symbol.iterator,Qe)},concat(...e){return Wn(this).concat(...e.map(t=>oe(t)?Wn(t):t))},entries(){return As(this,"entries",e=>(e[1]=Qe(e[1]),e))},every(e,t){return jt(this,"every",e,t,void 0,arguments)},filter(e,t){return jt(this,"filter",e,t,n=>n.map(Qe),arguments)},find(e,t){return jt(this,"find",e,t,Qe,arguments)},findIndex(e,t){return jt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jt(this,"findLast",e,t,Qe,arguments)},findLastIndex(e,t){return jt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jt(this,"forEach",e,t,void 0,arguments)},includes(...e){return $s(this,"includes",e)},indexOf(...e){return $s(this,"indexOf",e)},join(e){return Wn(this).join(e)},lastIndexOf(...e){return $s(this,"lastIndexOf",e)},map(e,t){return jt(this,"map",e,t,void 0,arguments)},pop(){return yo(this,"pop")},push(...e){return yo(this,"push",e)},reduce(e,...t){return Mi(this,"reduce",e,t)},reduceRight(e,...t){return Mi(this,"reduceRight",e,t)},shift(){return yo(this,"shift")},some(e,t){return jt(this,"some",e,t,void 0,arguments)},splice(...e){return yo(this,"splice",e)},toReversed(){return Wn(this).toReversed()},toSorted(e){return Wn(this).toSorted(e)},toSpliced(...e){return Wn(this).toSpliced(...e)},unshift(...e){return yo(this,"unshift",e)},values(){return As(this,"values",Qe)}};function As(e,t,n){const o=Jr(e),r=o[t]();return o!==e&&!gt(e)&&(r._next=r.next,r.next=()=>{const s=r._next();return s.value&&(s.value=n(s.value)),s}),r}const Cf=Array.prototype;function jt(e,t,n,o,r,s){const l=Jr(e),i=l!==e&&!gt(e),a=l[t];if(a!==Cf[t]){const f=a.apply(e,s);return i?Qe(f):f}let d=n;l!==e&&(i?d=function(f,p){return n.call(this,Qe(f),p,e)}:n.length>2&&(d=function(f,p){return n.call(this,f,p,e)}));const u=a.call(l,d,o);return i&&r?r(u):u}function Mi(e,t,n,o){const r=Jr(e);let s=n;return r!==e&&(gt(e)?n.length>3&&(s=function(l,i,a){return n.call(this,l,i,a,e)}):s=function(l,i,a){return n.call(this,l,Qe(i),a,e)}),r[t](s,...o)}function $s(e,t,n){const o=ke(e);Xe(o,"iterate",Bo);const r=o[t](...n);return(r===-1||r===!1)&&Ll(n[0])?(n[0]=ke(n[0]),o[t](...n)):r}function yo(e,t,n=[]){yn(),Bl();const o=ke(e)[t].apply(e,n);return Rl(),bn(),o}const Sf=Al("__proto__,__v_isRef,__isVue"),yu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pt));function kf(e){Pt(e)||(e=String(e));const t=ke(this);return Xe(t,"has",e),t.hasOwnProperty(e)}class bu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return o===(r?s?ku:Su:s?Cu:_u).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const l=oe(t);if(!r){let a;if(l&&(a=_f[n]))return a;if(n==="hasOwnProperty")return kf}const i=Reflect.get(t,n,Le(t)?t:o);return(Pt(n)?yu.has(n):Sf(n))||(r||Xe(t,"get",n),s)?i:Le(i)?l&&Ml(n)?i:i.value:Me(i)?r?Ln(i):wn(i):i}}class wu extends bu{constructor(t=!1){super(!1,t)}set(t,n,o,r){let s=t[n];if(!this._isShallow){const a=$n(s);if(!gt(o)&&!$n(o)&&(s=ke(s),o=ke(o)),!oe(t)&&Le(s)&&!Le(o))return a?!1:(s.value=o,!0)}const l=oe(t)&&Ml(n)?Number(n)e,Yr=e=>Reflect.getPrototypeOf(e);function er(e,t,n=!1,o=!1){e=e.__v_raw;const r=ke(e),s=ke(t);n||(dn(t,s)&&Xe(r,"get",t),Xe(r,"get",s));const{has:l}=Yr(r),i=o?jl:n?Vl:Qe;if(l.call(r,t))return i(e.get(t));if(l.call(r,s))return i(e.get(s));e!==r&&e.get(t)}function tr(e,t=!1){const n=this.__v_raw,o=ke(n),r=ke(e);return t||(dn(e,r)&&Xe(o,"has",e),Xe(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function nr(e,t=!1){return e=e.__v_raw,!t&&Xe(ke(e),"iterate",An),Reflect.get(e,"size",e)}function Ii(e,t=!1){!t&&!gt(e)&&!$n(e)&&(e=ke(e));const n=ke(this);return Yr(n).has.call(n,e)||(n.add(e),Kt(n,"add",e,e)),this}function Bi(e,t,n=!1){!n&&!gt(t)&&!$n(t)&&(t=ke(t));const o=ke(this),{has:r,get:s}=Yr(o);let l=r.call(o,e);l||(e=ke(e),l=r.call(o,e));const i=s.call(o,e);return o.set(e,t),l?dn(t,i)&&Kt(o,"set",e,t):Kt(o,"add",e,t),this}function Ri(e){const t=ke(this),{has:n,get:o}=Yr(t);let r=n.call(t,e);r||(e=ke(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&Kt(t,"delete",e,void 0),s}function Di(){const e=ke(this),t=e.size!==0,n=e.clear();return t&&Kt(e,"clear",void 0,void 0),n}function or(e,t){return function(o,r){const s=this,l=s.__v_raw,i=ke(l),a=t?jl:e?Vl:Qe;return!e&&Xe(i,"iterate",An),l.forEach((d,u)=>o.call(r,a(d),a(u),s))}}function rr(e,t,n){return function(...o){const r=this.__v_raw,s=ke(r),l=eo(s),i=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,d=r[e](...o),u=n?jl:t?Vl:Qe;return!t&&Xe(s,"iterate",a?Gs:An),{next(){const{value:f,done:p}=d.next();return p?{value:f,done:p}:{value:i?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function Jt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function $f(){const e={get(s){return er(this,s)},get size(){return nr(this)},has:tr,add:Ii,set:Bi,delete:Ri,clear:Di,forEach:or(!1,!1)},t={get(s){return er(this,s,!1,!0)},get size(){return nr(this)},has:tr,add(s){return Ii.call(this,s,!0)},set(s,l){return Bi.call(this,s,l,!0)},delete:Ri,clear:Di,forEach:or(!1,!0)},n={get(s){return er(this,s,!0)},get size(){return nr(this,!0)},has(s){return tr.call(this,s,!0)},add:Jt("add"),set:Jt("set"),delete:Jt("delete"),clear:Jt("clear"),forEach:or(!0,!1)},o={get(s){return er(this,s,!0,!0)},get size(){return nr(this,!0)},has(s){return tr.call(this,s,!0)},add:Jt("add"),set:Jt("set"),delete:Jt("delete"),clear:Jt("clear"),forEach:or(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=rr(s,!1,!1),n[s]=rr(s,!0,!1),t[s]=rr(s,!1,!0),o[s]=rr(s,!0,!0)}),[e,n,t,o]}const[Pf,Mf,If,Bf]=$f();function Qr(e,t){const n=t?e?Bf:If:e?Mf:Pf;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Ee(n,r)&&r in o?n:o,r,s)}const Rf={get:Qr(!1,!1)},Df={get:Qr(!1,!0)},jf={get:Qr(!0,!1)},Lf={get:Qr(!0,!0)},_u=new WeakMap,Cu=new WeakMap,Su=new WeakMap,ku=new WeakMap;function Vf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nf(e){return e.__v_skip||!Object.isExtensible(e)?0:Vf(af(e))}function wn(e){return $n(e)?e:Xr(e,!1,Ef,Rf,_u)}function Ff(e){return Xr(e,!1,Tf,Df,Cu)}function Ln(e){return Xr(e,!0,Of,jf,Su)}function Un(e){return Xr(e,!0,Af,Lf,ku)}function Xr(e,t,n,o,r){if(!Me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const l=Nf(e);if(l===0)return e;const i=new Proxy(e,l===2?o:n);return r.set(e,i),i}function to(e){return $n(e)?to(e.__v_raw):!!(e&&e.__v_isReactive)}function $n(e){return!!(e&&e.__v_isReadonly)}function gt(e){return!!(e&&e.__v_isShallow)}function Ll(e){return e?!!e.__v_raw:!1}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function Eu(e){return!Ee(e,"__v_skip")&&Object.isExtensible(e)&&ou(e,"__v_skip",!0),e}const Qe=e=>Me(e)?wn(e):e,Vl=e=>Me(e)?Ln(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function I(e){return Ou(e,!1)}function Ro(e){return Ou(e,!0)}function Ou(e,t){return Le(e)?e:new Hf(e,t)}class Hf{constructor(t,n){this.dep=new Zr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ke(t),this._value=n?t:Qe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||gt(t)||$n(t);t=o?t:ke(t),dn(t,n)&&(this._rawValue=t,this._value=o?t:Qe(t),this.dep.trigger())}}function c(e){return Le(e)?e.value:e}const zf={get:(e,t,n)=>t==="__v_raw"?e:c(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Le(r)&&!Le(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Tu(e){return to(e)?e:new Proxy(e,zf)}class Kf{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Zr,{get:o,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Au(e){return new Kf(e)}function ot(e){const t=oe(e)?new Array(e.length):{};for(const n in e)t[n]=Pu(e,n);return t}class Wf{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return xf(ke(this._object),this._key)}}class Uf{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 $u(e,t,n){return Le(e)?e:de(e)?new Uf(e):Me(e)&&arguments.length>1?Pu(e,t,n):I(e)}function Pu(e,t,n){const o=e[t];return Le(o)?o:new Wf(e,t,n)}class qf{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Zr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Io-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return fu(this),!0}get value(){const t=this.dep.track();return gu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Gf(e,t,n=!1){let o,r;return de(e)?o=e:(o=e.get,r=e.set),new qf(o,r,n)}const sr={},Er=new WeakMap;let On;function Zf(e,t=!1,n=On){if(n){let o=Er.get(n);o||Er.set(n,o=[]),o.push(e)}}function Jf(e,t,n=Pe){const{immediate:o,deep:r,once:s,scheduler:l,augmentJob:i,call:a}=n,d=T=>r?T:gt(T)||r===!1||r===0?Ht(T,1):Ht(T);let u,f,p,h,g=!1,m=!1;if(Le(e)?(f=()=>e.value,g=gt(e)):to(e)?(f=()=>d(e),g=!0):oe(e)?(m=!0,g=e.some(T=>to(T)||gt(T)),f=()=>e.map(T=>{if(Le(T))return T.value;if(to(T))return d(T);if(de(T))return a?a(T,2):T()})):de(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){yn();try{p()}finally{bn()}}const T=On;On=u;try{return a?a(e,3,[h]):e(h)}finally{On=T}}:f=At,t&&r){const T=f,B=r===!0?1/0:r;f=()=>Ht(T(),B)}const y=Gr(),_=()=>{u.stop(),y&&Pl(y.effects,u)};if(s&&t){const T=t;t=(...B)=>{T(...B),_()}}let k=m?new Array(e.length).fill(sr):sr;const C=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(t){const B=u.run();if(r||g||(m?B.some((A,E)=>dn(A,k[E])):dn(B,k))){p&&p();const A=On;On=u;try{const E=[B,k===sr?void 0:m&&k[0]===sr?[]:k,h];a?a(t,3,E):t(...E),k=B}finally{On=A}}}else u.run()};return i&&i(C),u=new cu(f),u.scheduler=l?()=>l(C,!1):C,h=T=>Zf(T,!1,u),p=u.onStop=()=>{const T=Er.get(u);if(T){if(a)a(T,4);else for(const B of T)B();Er.delete(u)}},t?o?C(!0):k=u.run():l?l(C.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Ht(e,t=1/0,n){if(t<=0||!Me(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Le(e))Ht(e.value,t,n);else if(oe(e))for(let o=0;o{Ht(o,t,n)});else if(nu(e)){for(const o in e)Ht(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ht(e[o],t,n)}return e}/** +**/let tt;class au{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=tt,!t&&tt&&(this.index=(tt.scopes||(tt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;let e;for(;Eo;){let t=Eo;for(Eo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function pu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hu(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),Dl(o),bf(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function qs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(gu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function gu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Io))return;e.globalVersion=Io;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!qs(e)){e.flags&=-3;return}const n=$e,o=xt;$e=e,xt=!0;try{pu(e);const r=e.fn(e._value);(t.version===0||fn(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{$e=n,xt=o,hu(e),e.flags&=-3}}function Dl(e){const{dep:t,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)Dl(r)}}function bf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let xt=!0;const mu=[];function yn(){mu.push(xt),xt=!1}function bn(){const e=mu.pop();xt=e===void 0?!0:e}function Pi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=$e;$e=void 0;try{t()}finally{$e=n}}}let Io=0;class wf{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 Zr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!$e||!xt||$e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$e)n=this.activeLink=new wf($e,this),$e.deps?(n.prevDep=$e.depsTail,$e.depsTail.nextDep=n,$e.depsTail=n):$e.deps=$e.depsTail=n,$e.flags&4&&vu(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=$e.depsTail,n.nextDep=void 0,$e.depsTail.nextDep=n,$e.depsTail=n,$e.deps===n&&($e.deps=o)}return n}trigger(t){this.version++,Io++,this.notify(t)}notify(t){Bl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Rl()}}}function vu(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)vu(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const kr=new WeakMap,An=Symbol(""),Gs=Symbol(""),Bo=Symbol("");function Xe(e,t,n){if(xt&&$e){let o=kr.get(e);o||kr.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Zr),r.track()}}function Kt(e,t,n,o,r,s){const l=kr.get(e);if(!l){Io++;return}const i=a=>{a&&a.trigger()};if(Bl(),t==="clear")l.forEach(i);else{const a=oe(e),d=a&&Ml(n);if(a&&n==="length"){const u=Number(o);l.forEach((f,p)=>{(p==="length"||p===Bo||!Pt(p)&&p>=u)&&i(f)})}else switch(n!==void 0&&i(l.get(n)),d&&i(l.get(Bo)),t){case"add":a?d&&i(l.get("length")):(i(l.get(An)),eo(e)&&i(l.get(Gs)));break;case"delete":a||(i(l.get(An)),eo(e)&&i(l.get(Gs)));break;case"set":eo(e)&&i(l.get(An));break}}Rl()}function xf(e,t){var n;return(n=kr.get(e))==null?void 0:n.get(t)}function Wn(e){const t=ke(e);return t===e?t:(Xe(t,"iterate",Bo),gt(e)?t:t.map(Qe))}function Jr(e){return Xe(e=ke(e),"iterate",Bo),e}const _f={__proto__:null,[Symbol.iterator](){return As(this,Symbol.iterator,Qe)},concat(...e){return Wn(this).concat(...e.map(t=>oe(t)?Wn(t):t))},entries(){return As(this,"entries",e=>(e[1]=Qe(e[1]),e))},every(e,t){return jt(this,"every",e,t,void 0,arguments)},filter(e,t){return jt(this,"filter",e,t,n=>n.map(Qe),arguments)},find(e,t){return jt(this,"find",e,t,Qe,arguments)},findIndex(e,t){return jt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jt(this,"findLast",e,t,Qe,arguments)},findLastIndex(e,t){return jt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jt(this,"forEach",e,t,void 0,arguments)},includes(...e){return $s(this,"includes",e)},indexOf(...e){return $s(this,"indexOf",e)},join(e){return Wn(this).join(e)},lastIndexOf(...e){return $s(this,"lastIndexOf",e)},map(e,t){return jt(this,"map",e,t,void 0,arguments)},pop(){return yo(this,"pop")},push(...e){return yo(this,"push",e)},reduce(e,...t){return Mi(this,"reduce",e,t)},reduceRight(e,...t){return Mi(this,"reduceRight",e,t)},shift(){return yo(this,"shift")},some(e,t){return jt(this,"some",e,t,void 0,arguments)},splice(...e){return yo(this,"splice",e)},toReversed(){return Wn(this).toReversed()},toSorted(e){return Wn(this).toSorted(e)},toSpliced(...e){return Wn(this).toSpliced(...e)},unshift(...e){return yo(this,"unshift",e)},values(){return As(this,"values",Qe)}};function As(e,t,n){const o=Jr(e),r=o[t]();return o!==e&&!gt(e)&&(r._next=r.next,r.next=()=>{const s=r._next();return s.value&&(s.value=n(s.value)),s}),r}const Cf=Array.prototype;function jt(e,t,n,o,r,s){const l=Jr(e),i=l!==e&&!gt(e),a=l[t];if(a!==Cf[t]){const f=a.apply(e,s);return i?Qe(f):f}let d=n;l!==e&&(i?d=function(f,p){return n.call(this,Qe(f),p,e)}:n.length>2&&(d=function(f,p){return n.call(this,f,p,e)}));const u=a.call(l,d,o);return i&&r?r(u):u}function Mi(e,t,n,o){const r=Jr(e);let s=n;return r!==e&&(gt(e)?n.length>3&&(s=function(l,i,a){return n.call(this,l,i,a,e)}):s=function(l,i,a){return n.call(this,l,Qe(i),a,e)}),r[t](s,...o)}function $s(e,t,n){const o=ke(e);Xe(o,"iterate",Bo);const r=o[t](...n);return(r===-1||r===!1)&&Ll(n[0])?(n[0]=ke(n[0]),o[t](...n)):r}function yo(e,t,n=[]){yn(),Bl();const o=ke(e)[t].apply(e,n);return Rl(),bn(),o}const Sf=Al("__proto__,__v_isRef,__isVue"),yu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pt));function kf(e){Pt(e)||(e=String(e));const t=ke(this);return Xe(t,"has",e),t.hasOwnProperty(e)}class bu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return o===(r?s?ku:Su:s?Cu:_u).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const l=oe(t);if(!r){let a;if(l&&(a=_f[n]))return a;if(n==="hasOwnProperty")return kf}const i=Reflect.get(t,n,Le(t)?t:o);return(Pt(n)?yu.has(n):Sf(n))||(r||Xe(t,"get",n),s)?i:Le(i)?l&&Ml(n)?i:i.value:Me(i)?r?Ln(i):wn(i):i}}class wu extends bu{constructor(t=!1){super(!1,t)}set(t,n,o,r){let s=t[n];if(!this._isShallow){const a=$n(s);if(!gt(o)&&!$n(o)&&(s=ke(s),o=ke(o)),!oe(t)&&Le(s)&&!Le(o))return a?!1:(s.value=o,!0)}const l=oe(t)&&Ml(n)?Number(n)e,Yr=e=>Reflect.getPrototypeOf(e);function er(e,t,n=!1,o=!1){e=e.__v_raw;const r=ke(e),s=ke(t);n||(fn(t,s)&&Xe(r,"get",t),Xe(r,"get",s));const{has:l}=Yr(r),i=o?jl:n?Vl:Qe;if(l.call(r,t))return i(e.get(t));if(l.call(r,s))return i(e.get(s));e!==r&&e.get(t)}function tr(e,t=!1){const n=this.__v_raw,o=ke(n),r=ke(e);return t||(fn(e,r)&&Xe(o,"has",e),Xe(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function nr(e,t=!1){return e=e.__v_raw,!t&&Xe(ke(e),"iterate",An),Reflect.get(e,"size",e)}function Ii(e,t=!1){!t&&!gt(e)&&!$n(e)&&(e=ke(e));const n=ke(this);return Yr(n).has.call(n,e)||(n.add(e),Kt(n,"add",e,e)),this}function Bi(e,t,n=!1){!n&&!gt(t)&&!$n(t)&&(t=ke(t));const o=ke(this),{has:r,get:s}=Yr(o);let l=r.call(o,e);l||(e=ke(e),l=r.call(o,e));const i=s.call(o,e);return o.set(e,t),l?fn(t,i)&&Kt(o,"set",e,t):Kt(o,"add",e,t),this}function Ri(e){const t=ke(this),{has:n,get:o}=Yr(t);let r=n.call(t,e);r||(e=ke(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&Kt(t,"delete",e,void 0),s}function Di(){const e=ke(this),t=e.size!==0,n=e.clear();return t&&Kt(e,"clear",void 0,void 0),n}function or(e,t){return function(o,r){const s=this,l=s.__v_raw,i=ke(l),a=t?jl:e?Vl:Qe;return!e&&Xe(i,"iterate",An),l.forEach((d,u)=>o.call(r,a(d),a(u),s))}}function rr(e,t,n){return function(...o){const r=this.__v_raw,s=ke(r),l=eo(s),i=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,d=r[e](...o),u=n?jl:t?Vl:Qe;return!t&&Xe(s,"iterate",a?Gs:An),{next(){const{value:f,done:p}=d.next();return p?{value:f,done:p}:{value:i?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function Yt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function $f(){const e={get(s){return er(this,s)},get size(){return nr(this)},has:tr,add:Ii,set:Bi,delete:Ri,clear:Di,forEach:or(!1,!1)},t={get(s){return er(this,s,!1,!0)},get size(){return nr(this)},has:tr,add(s){return Ii.call(this,s,!0)},set(s,l){return Bi.call(this,s,l,!0)},delete:Ri,clear:Di,forEach:or(!1,!0)},n={get(s){return er(this,s,!0)},get size(){return nr(this,!0)},has(s){return tr.call(this,s,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:or(!0,!1)},o={get(s){return er(this,s,!0,!0)},get size(){return nr(this,!0)},has(s){return tr.call(this,s,!0)},add:Yt("add"),set:Yt("set"),delete:Yt("delete"),clear:Yt("clear"),forEach:or(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=rr(s,!1,!1),n[s]=rr(s,!0,!1),t[s]=rr(s,!1,!0),o[s]=rr(s,!0,!0)}),[e,n,t,o]}const[Pf,Mf,If,Bf]=$f();function Qr(e,t){const n=t?e?Bf:If:e?Mf:Pf;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Ee(n,r)&&r in o?n:o,r,s)}const Rf={get:Qr(!1,!1)},Df={get:Qr(!1,!0)},jf={get:Qr(!0,!1)},Lf={get:Qr(!0,!0)},_u=new WeakMap,Cu=new WeakMap,Su=new WeakMap,ku=new WeakMap;function Vf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nf(e){return e.__v_skip||!Object.isExtensible(e)?0:Vf(af(e))}function wn(e){return $n(e)?e:Xr(e,!1,Ef,Rf,_u)}function Ff(e){return Xr(e,!1,Tf,Df,Cu)}function Ln(e){return Xr(e,!0,Of,jf,Su)}function Un(e){return Xr(e,!0,Af,Lf,ku)}function Xr(e,t,n,o,r){if(!Me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const l=Nf(e);if(l===0)return e;const i=new Proxy(e,l===2?o:n);return r.set(e,i),i}function to(e){return $n(e)?to(e.__v_raw):!!(e&&e.__v_isReactive)}function $n(e){return!!(e&&e.__v_isReadonly)}function gt(e){return!!(e&&e.__v_isShallow)}function Ll(e){return e?!!e.__v_raw:!1}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function Eu(e){return!Ee(e,"__v_skip")&&Object.isExtensible(e)&&ou(e,"__v_skip",!0),e}const Qe=e=>Me(e)?wn(e):e,Vl=e=>Me(e)?Ln(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function B(e){return Ou(e,!1)}function Ro(e){return Ou(e,!0)}function Ou(e,t){return Le(e)?e:new Hf(e,t)}class Hf{constructor(t,n){this.dep=new Zr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ke(t),this._value=n?t:Qe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||gt(t)||$n(t);t=o?t:ke(t),fn(t,n)&&(this._rawValue=t,this._value=o?t:Qe(t),this.dep.trigger())}}function c(e){return Le(e)?e.value:e}const zf={get:(e,t,n)=>t==="__v_raw"?e:c(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Le(r)&&!Le(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Tu(e){return to(e)?e:new Proxy(e,zf)}class Kf{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Zr,{get:o,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Au(e){return new Kf(e)}function ot(e){const t=oe(e)?new Array(e.length):{};for(const n in e)t[n]=Pu(e,n);return t}class Wf{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return xf(ke(this._object),this._key)}}class Uf{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 $u(e,t,n){return Le(e)?e:de(e)?new Uf(e):Me(e)&&arguments.length>1?Pu(e,t,n):B(e)}function Pu(e,t,n){const o=e[t];return Le(o)?o:new Wf(e,t,n)}class qf{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Zr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Io-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return fu(this),!0}get value(){const t=this.dep.track();return gu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Gf(e,t,n=!1){let o,r;return de(e)?o=e:(o=e.get,r=e.set),new qf(o,r,n)}const sr={},Er=new WeakMap;let On;function Zf(e,t=!1,n=On){if(n){let o=Er.get(n);o||Er.set(n,o=[]),o.push(e)}}function Jf(e,t,n=Pe){const{immediate:o,deep:r,once:s,scheduler:l,augmentJob:i,call:a}=n,d=O=>r?O:gt(O)||r===!1||r===0?Ht(O,1):Ht(O);let u,f,p,h,g=!1,m=!1;if(Le(e)?(f=()=>e.value,g=gt(e)):to(e)?(f=()=>d(e),g=!0):oe(e)?(m=!0,g=e.some(O=>to(O)||gt(O)),f=()=>e.map(O=>{if(Le(O))return O.value;if(to(O))return d(O);if(de(O))return a?a(O,2):O()})):de(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){yn();try{p()}finally{bn()}}const O=On;On=u;try{return a?a(e,3,[h]):e(h)}finally{On=O}}:f=At,t&&r){const O=f,R=r===!0?1/0:r;f=()=>Ht(O(),R)}const y=Gr(),_=()=>{u.stop(),y&&Pl(y.effects,u)};if(s&&t){const O=t;t=(...R)=>{O(...R),_()}}let A=m?new Array(e.length).fill(sr):sr;const k=O=>{if(!(!(u.flags&1)||!u.dirty&&!O))if(t){const R=u.run();if(r||g||(m?R.some((T,S)=>fn(T,A[S])):fn(R,A))){p&&p();const T=On;On=u;try{const S=[R,A===sr?void 0:m&&A[0]===sr?[]:A,h];a?a(t,3,S):t(...S),A=R}finally{On=T}}}else u.run()};return i&&i(k),u=new cu(f),u.scheduler=l?()=>l(k,!1):k,h=O=>Zf(O,!1,u),p=u.onStop=()=>{const O=Er.get(u);if(O){if(a)a(O,4);else for(const R of O)R();Er.delete(u)}},t?o?k(!0):A=u.run():l?l(k.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Ht(e,t=1/0,n){if(t<=0||!Me(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Le(e))Ht(e.value,t,n);else if(oe(e))for(let o=0;o{Ht(o,t,n)});else if(nu(e)){for(const o in e)Ht(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ht(e[o],t,n)}return e}/** * @vue/runtime-core v3.5.6 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Uo(e,t,n,o){try{return o?e(...o):e()}catch(r){es(r,t,n)}}function Mt(e,t,n,o){if(de(e)){const r=Uo(e,t,n,o);return r&&eu(r)&&r.catch(s=>{es(s,t,n)}),r}if(oe(e)){const r=[];for(let s=0;s>>1,r=nt[o],s=jo(r);s=jo(n)?nt.push(e):nt.splice(Qf(t),0,e),e.flags|=1,Iu()}}function Iu(){!Do&&!Zs&&(Zs=!0,Nl=Mu.then(Ru))}function Xf(e){oe(e)?no.push(...e):en&&e.id===-1?en.splice(Gn+1,0,e):e.flags&1||(no.push(e),e.flags|=1),Iu()}function ji(e,t,n=Do?Et+1:0){for(;njo(n)-jo(o));if(no.length=0,en){en.push(...t);return}for(en=t,Gn=0;Gne.id==null?e.flags&2?-1:1/0:e.id;function Ru(e){Zs=!1,Do=!0;try{for(Et=0;Et{o._d&&Gi(-1);const s=Or(t);let l;try{l=e(...r)}finally{Or(s),o._d&&Gi(1)}return l};return o._n=!0,o._c=!0,o._d=!0,o}function qo(e,t){if(ze===null)return e;const n=as(ze),o=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,Oo=e=>e&&(e.disabled||e.disabled===""),tp=e=>e&&(e.defer||e.defer===""),Li=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Vi=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Js=(e,t)=>{const n=e&&e.to;return Ve(n)?t?t(n):null:n},np={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,s,l,i,a,d){const{mc:u,pc:f,pbc:p,o:{insert:h,querySelector:g,createText:m,createComment:y}}=d,_=Oo(t.props);let{shapeFlag:k,children:C,dynamicChildren:T}=t;if(e==null){const B=t.el=m(""),A=t.anchor=m("");h(B,n,o),h(A,n,o);const E=(L,S)=>{k&16&&(r&&r.isCE&&(r.ce._teleportTarget=L),u(C,L,S,r,s,l,i,a))},R=()=>{const L=t.target=Js(t.props,g),S=Lu(L,t,m,h);L&&(l!=="svg"&&Li(L)?l="svg":l!=="mathml"&&Vi(L)&&(l="mathml"),_||(E(L,S),mr(t)))};_&&(E(n,A),mr(t)),tp(t.props)?rt(R,s):R()}else{t.el=e.el,t.targetStart=e.targetStart;const B=t.anchor=e.anchor,A=t.target=e.target,E=t.targetAnchor=e.targetAnchor,R=Oo(e.props),L=R?n:A,S=R?B:E;if(l==="svg"||Li(A)?l="svg":(l==="mathml"||Vi(A))&&(l="mathml"),T?(p(e.dynamicChildren,T,L,r,s,l,i),Ul(e,t,!0)):a||f(e,t,L,S,r,s,l,i,!1),_)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):lr(t,n,B,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=Js(t.props,g);F&&lr(t,F,null,d,0)}else R&&lr(t,A,E,d,1);mr(t)}},remove(e,t,n,{um:o,o:{remove:r}},s){const{shapeFlag:l,children:i,anchor:a,targetStart:d,targetAnchor:u,target:f,props:p}=e;if(f&&(r(d),r(u)),s&&r(a),l&16){const h=s||!Oo(p);for(let g=0;gYs(g,t&&(oe(t)?t[m]:t),n,o,r));return}if(oo(o)&&!r)return;const s=o.shapeFlag&4?as(o.component):o.el,l=r?null:s,{i,r:a}=e,d=t&&t.r,u=i.refs===Pe?i.refs={}:i.refs,f=i.setupState,p=ke(f),h=f===Pe?()=>!1:g=>Ee(p,g);if(d!=null&&d!==a&&(Ve(d)?(u[d]=null,h(d)&&(f[d]=null)):Le(d)&&(d.value=null)),de(a))Uo(a,i,12,[l,u]);else{const g=Ve(a),m=Le(a);if(g||m){const y=()=>{if(e.f){const _=g?h(a)?f[a]:u[a]:a.value;r?oe(_)&&Pl(_,s):oe(_)?_.includes(s)||_.push(s):g?(u[a]=[s],h(a)&&(f[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else g?(u[a]=l,h(a)&&(f[a]=l)):m&&(a.value=l,e.k&&(u[e.k]=l))};l?(y.id=-1,rt(y,n)):y()}}}const oo=e=>!!e.type.__asyncLoader,Nu=e=>e.type.__isKeepAlive;function rp(e,t){Fu(e,"a",t)}function sp(e,t){Fu(e,"da",t)}function Fu(e,t,n=Ge){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ns(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Nu(r.parent.vnode)&&lp(o,t,n,r),r=r.parent}}function lp(e,t,n,o){const r=ns(t,e,o,!0);xn(()=>{Pl(o[t],r)},n)}function ns(e,t,n=Ge,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{yn();const i=Go(n),a=Mt(t,n,e,l);return i(),bn(),a});return o?r.unshift(s):r.push(s),s}}const qt=e=>(t,n=Ge)=>{(!is||e==="sp")&&ns(e,(...o)=>t(...o),n)},Hu=qt("bm"),Ie=qt("m"),zu=qt("bu"),Ku=qt("u"),os=qt("bum"),xn=qt("um"),ip=qt("sp"),ap=qt("rtg"),up=qt("rtc");function cp(e,t=Ge){ns("ec",e,t)}const Wu="components";function dp(e,t){return qu(Wu,e,!0,t)||e}const Uu=Symbol.for("v-ndc");function Vn(e){return Ve(e)?qu(Wu,e,!1)||e:e||Uu}function qu(e,t,n=!0,o=!1){const r=ze||Ge;if(r){const s=r.type;{const i=Qp(s,!1);if(i&&(i===t||i===pt(t)||i===Ur(pt(t))))return s}const l=Fi(r[e]||s[e],t)||Fi(r.appContext[e],t);return!l&&o?s:l}}function Fi(e,t){return e&&(e[t]||e[pt(t)]||e[Ur(pt(t))])}function Tt(e,t,n,o){let r;const s=n,l=oe(e);if(l||Ve(e)){const i=l&&to(e);let a=!1;i&&(a=!gt(e),e=Jr(e)),r=new Array(e.length);for(let d=0,u=e.length;dt(i,a,void 0,s));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,d=i.length;aAr(t)?!(t.type===It||t.type===Te&&!Gu(t.children)):!0)?e:null}function fp(e,t){const n={};for(const o in e)n[ko(o)]=e[o];return n}const Qs=e=>e?hc(e)?as(e):Qs(e.parent):null,To=Ze(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=>Qs(e.parent),$root:e=>Qs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zl(e),$forceUpdate:e=>e.f||(e.f=()=>{Fl(e.update)}),$nextTick:e=>e.n||(e.n=Ae.bind(e.proxy)),$watch:e=>Rp.bind(e)}),Ps=(e,t)=>e!==Pe&&!e.__isScriptSetup&&Ee(e,t),pp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:a}=e;let d;if(t[0]!=="$"){const h=l[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Ps(o,t))return l[t]=1,o[t];if(r!==Pe&&Ee(r,t))return l[t]=2,r[t];if((d=e.propsOptions[0])&&Ee(d,t))return l[t]=3,s[t];if(n!==Pe&&Ee(n,t))return l[t]=4,n[t];el&&(l[t]=0)}}const u=To[t];let f,p;if(u)return t==="$attrs"&&Xe(e.attrs,"get",""),u(e);if((f=i.__cssModules)&&(f=f[t]))return f;if(n!==Pe&&Ee(n,t))return l[t]=4,n[t];if(p=a.config.globalProperties,Ee(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Ps(r,t)?(r[t]=n,!0):o!==Pe&&Ee(o,t)?(o[t]=n,!0):Ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return!!n[l]||e!==Pe&&Ee(e,l)||Ps(t,l)||(i=s[0])&&Ee(i,l)||Ee(o,l)||Ee(To,l)||Ee(r.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zu(){return hp().slots}function hp(){const e=yt();return e.setupContext||(e.setupContext=mc(e))}function Xs(e){return oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ju(e,t){const n=Xs(e);for(const o in t){if(o.startsWith("__skip"))continue;let r=n[o];r?oe(r)||de(r)?r=n[o]={type:r,default:t[o]}:r.default=t[o]:r===null&&(r=n[o]={default:t[o]}),r&&t[`__skip_${o}`]&&(r.skipFactory=!0)}return n}let el=!0;function gp(e){const t=zl(e),n=e.proxy,o=e.ctx;el=!1,t.beforeCreate&&Hi(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:i,provide:a,inject:d,created:u,beforeMount:f,mounted:p,beforeUpdate:h,updated:g,activated:m,deactivated:y,beforeDestroy:_,beforeUnmount:k,destroyed:C,unmounted:T,render:B,renderTracked:A,renderTriggered:E,errorCaptured:R,serverPrefetch:L,expose:S,inheritAttrs:F,components:V,directives:xe,filters:ve}=t;if(d&&mp(d,o,null),l)for(const fe in l){const ue=l[fe];de(ue)&&(o[fe]=ue.bind(n))}if(r){const fe=r.call(n,n);Me(fe)&&(e.data=wn(fe))}if(el=!0,s)for(const fe in s){const ue=s[fe],Be=de(ue)?ue.bind(n,n):de(ue.get)?ue.get.bind(n,n):At,st=!de(ue)&&de(ue.set)?ue.set.bind(n):At,Y=N({get:Be,set:st});Object.defineProperty(o,fe,{enumerable:!0,configurable:!0,get:()=>Y.value,set:Q=>Y.value=Q})}if(i)for(const fe in i)Yu(i[fe],o,n,fe);if(a){const fe=de(a)?a.call(n):a;Reflect.ownKeys(fe).forEach(ue=>{Kl(ue,fe[ue])})}u&&Hi(u,e,"c");function ye(fe,ue){oe(ue)?ue.forEach(Be=>fe(Be.bind(n))):ue&&fe(ue.bind(n))}if(ye(Hu,f),ye(Ie,p),ye(zu,h),ye(Ku,g),ye(rp,m),ye(sp,y),ye(cp,R),ye(up,A),ye(ap,E),ye(os,k),ye(xn,T),ye(ip,L),oe(S))if(S.length){const fe=e.exposed||(e.exposed={});S.forEach(ue=>{Object.defineProperty(fe,ue,{get:()=>n[ue],set:Be=>n[ue]=Be})})}else e.exposed||(e.exposed={});B&&e.render===At&&(e.render=B),F!=null&&(e.inheritAttrs=F),V&&(e.components=V),xe&&(e.directives=xe),L&&Vu(e)}function mp(e,t,n=At){oe(e)&&(e=tl(e));for(const o in e){const r=e[o];let s;Me(r)?"default"in r?s=so(r.from||o,r.default,!0):s=so(r.from||o):s=so(r),Le(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:l=>s.value=l}):t[o]=s}}function Hi(e,t,n){Mt(oe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Yu(e,t,n,o){let r=o.includes(".")?uc(n,o):()=>n[o];if(Ve(e)){const s=t[e];de(s)&&me(r,s)}else if(de(e))me(r,e.bind(n));else if(Me(e))if(oe(e))e.forEach(s=>Yu(s,t,n,o));else{const s=de(e.handler)?e.handler.bind(n):t[e.handler];de(s)&&me(r,s,e)}}function zl(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,i=s.get(t);let a;return i?a=i:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(d=>Tr(a,d,l,!0)),Tr(a,t,l)),Me(t)&&s.set(t,a),a}function Tr(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Tr(e,s,n,!0),r&&r.forEach(l=>Tr(e,l,n,!0));for(const l in t)if(!(o&&l==="expose")){const i=vp[l]||n&&n[l];e[l]=i?i(e[l],t[l]):t[l]}return e}const vp={data:zi,props:Ki,emits:Ki,methods:Co,computed:Co,beforeCreate:et,created:et,beforeMount:et,mounted:et,beforeUpdate:et,updated:et,beforeDestroy:et,beforeUnmount:et,destroyed:et,unmounted:et,activated:et,deactivated:et,errorCaptured:et,serverPrefetch:et,components:Co,directives:Co,watch:bp,provide:zi,inject:yp};function zi(e,t){return t?e?function(){return Ze(de(e)?e.call(this,this):e,de(t)?t.call(this,this):t)}:t:e}function yp(e,t){return Co(tl(e),tl(t))}function tl(e){if(oe(e)){const t={};for(let n=0;n1)return n&&de(t)?t.call(o&&o.proxy):t}}const Xu={},ec=()=>Object.create(Xu),tc=e=>Object.getPrototypeOf(e)===Xu;function _p(e,t,n,o=!1){const r={},s=ec();e.propsDefaults=Object.create(null),nc(e,t,r,s);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=o?r:Ff(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Cp(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:l}}=e,i=ke(r),[a]=e.propsOptions;let d=!1;if((o||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[p,h]=oc(f,t,!0);Ze(l,p),h&&i.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!a)return Me(e)&&o.set(e,Xn),Xn;if(oe(s))for(let u=0;ue[0]==="_"||e==="$stable",Wl=e=>oe(e)?e.map(Ot):[Ot(e)],kp=(e,t,n)=>{if(t._n)return t;const o=v((...r)=>Wl(t(...r)),n);return o._c=!1,o},sc=(e,t,n)=>{const o=e._ctx;for(const r in e){if(rc(r))continue;const s=e[r];if(de(s))t[r]=kp(r,s,o);else if(s!=null){const l=Wl(s);t[r]=()=>l}}},lc=(e,t)=>{const n=Wl(t);e.slots.default=()=>n},ic=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},Ep=(e,t,n)=>{const o=e.slots=ec();if(e.vnode.shapeFlag&32){const r=t._;r?(ic(o,t,n),n&&ou(o,"_",r,!0)):sc(t,o)}else t&&lc(e,t)},Op=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,l=Pe;if(o.shapeFlag&32){const i=t._;i?n&&i===1?s=!1:ic(r,t,n):(s=!t.$stable,sc(t,r)),l=t}else t&&(lc(e,t),l={default:1});if(s)for(const i in r)!rc(i)&&l[i]==null&&delete r[i]},rt=Hp;function Tp(e){return Ap(e)}function Ap(e,t){const n=ru();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:l,createText:i,createComment:a,setText:d,setElementText:u,parentNode:f,nextSibling:p,setScopeId:h=At,insertStaticContent:g}=e,m=(x,O,D,W=null,H=null,K=null,Z=void 0,G=null,q=!!O.dynamicChildren)=>{if(x===O)return;x&&!bo(x,O)&&(W=je(x),Q(x,H,K,!0),x=null),O.patchFlag===-2&&(q=!1,O.dynamicChildren=null);const{type:U,ref:se,shapeFlag:J}=O;switch(U){case ls:y(x,O,D,W);break;case It:_(x,O,D,W);break;case vr:x==null&&k(O,D,W,Z);break;case Te:V(x,O,D,W,H,K,Z,G,q);break;default:J&1?B(x,O,D,W,H,K,Z,G,q):J&6?xe(x,O,D,W,H,K,Z,G,q):(J&64||J&128)&&U.process(x,O,D,W,H,K,Z,G,q,lt)}se!=null&&H&&Ys(se,x&&x.ref,K,O||x,!O)},y=(x,O,D,W)=>{if(x==null)o(O.el=i(O.children),D,W);else{const H=O.el=x.el;O.children!==x.children&&d(H,O.children)}},_=(x,O,D,W)=>{x==null?o(O.el=a(O.children||""),D,W):O.el=x.el},k=(x,O,D,W)=>{[x.el,x.anchor]=g(x.children,O,D,W,x.el,x.anchor)},C=({el:x,anchor:O},D,W)=>{let H;for(;x&&x!==O;)H=p(x),o(x,D,W),x=H;o(O,D,W)},T=({el:x,anchor:O})=>{let D;for(;x&&x!==O;)D=p(x),r(x),x=D;r(O)},B=(x,O,D,W,H,K,Z,G,q)=>{O.type==="svg"?Z="svg":O.type==="math"&&(Z="mathml"),x==null?A(O,D,W,H,K,Z,G,q):L(x,O,H,K,Z,G,q)},A=(x,O,D,W,H,K,Z,G)=>{let q,U;const{props:se,shapeFlag:J,transition:ne,dirs:ce}=x;if(q=x.el=l(x.type,K,se&&se.is,se),J&8?u(q,x.children):J&16&&R(x.children,q,null,W,H,Ms(x,K),Z,G),ce&&Sn(x,null,W,"created"),E(q,x,x.scopeId,Z,W),se){for(const Re in se)Re!=="value"&&!So(Re)&&s(q,Re,null,se[Re],K,W);"value"in se&&s(q,"value",null,se.value,K),(U=se.onVnodeBeforeMount)&&kt(U,W,x)}ce&&Sn(x,null,W,"beforeMount");const Se=$p(H,ne);Se&&ne.beforeEnter(q),o(q,O,D),((U=se&&se.onVnodeMounted)||Se||ce)&&rt(()=>{U&&kt(U,W,x),Se&&ne.enter(q),ce&&Sn(x,null,W,"mounted")},H)},E=(x,O,D,W,H)=>{if(D&&h(x,D),W)for(let K=0;K{for(let U=q;U{const G=O.el=x.el;let{patchFlag:q,dynamicChildren:U,dirs:se}=O;q|=x.patchFlag&16;const J=x.props||Pe,ne=O.props||Pe;let ce;if(D&&kn(D,!1),(ce=ne.onVnodeBeforeUpdate)&&kt(ce,D,O,x),se&&Sn(O,x,D,"beforeUpdate"),D&&kn(D,!0),(J.innerHTML&&ne.innerHTML==null||J.textContent&&ne.textContent==null)&&u(G,""),U?S(x.dynamicChildren,U,G,D,W,Ms(O,H),K):Z||ue(x,O,G,null,D,W,Ms(O,H),K,!1),q>0){if(q&16)F(G,J,ne,D,H);else if(q&2&&J.class!==ne.class&&s(G,"class",null,ne.class,H),q&4&&s(G,"style",J.style,ne.style,H),q&8){const Se=O.dynamicProps;for(let Re=0;Re{ce&&kt(ce,D,O,x),se&&Sn(O,x,D,"updated")},W)},S=(x,O,D,W,H,K,Z)=>{for(let G=0;G{if(O!==D){if(O!==Pe)for(const K in O)!So(K)&&!(K in D)&&s(x,K,O[K],null,H,W);for(const K in D){if(So(K))continue;const Z=D[K],G=O[K];Z!==G&&K!=="value"&&s(x,K,G,Z,H,W)}"value"in D&&s(x,"value",O.value,D.value,H)}},V=(x,O,D,W,H,K,Z,G,q)=>{const U=O.el=x?x.el:i(""),se=O.anchor=x?x.anchor:i("");let{patchFlag:J,dynamicChildren:ne,slotScopeIds:ce}=O;ce&&(G=G?G.concat(ce):ce),x==null?(o(U,D,W),o(se,D,W),R(O.children||[],D,se,H,K,Z,G,q)):J>0&&J&64&&ne&&x.dynamicChildren?(S(x.dynamicChildren,ne,D,H,K,Z,G),(O.key!=null||H&&O===H.subTree)&&Ul(x,O,!0)):ue(x,O,D,se,H,K,Z,G,q)},xe=(x,O,D,W,H,K,Z,G,q)=>{O.slotScopeIds=G,x==null?O.shapeFlag&512?H.ctx.activate(O,D,W,Z,q):ve(O,D,W,H,K,Z,q):Fe(x,O,q)},ve=(x,O,D,W,H,K,Z)=>{const G=x.component=Gp(x,W,H);if(Nu(x)&&(G.ctx.renderer=lt),Zp(G,!1,Z),G.asyncDep){if(H&&H.registerDep(G,ye,Z),!x.el){const q=G.subTree=b(It);_(null,q,O,D)}}else ye(G,x,O,D,H,K,Z)},Fe=(x,O,D)=>{const W=O.component=x.component;if(Np(x,O,D))if(W.asyncDep&&!W.asyncResolved){fe(W,O,D);return}else W.next=O,W.update();else O.el=x.el,W.vnode=O},ye=(x,O,D,W,H,K,Z)=>{const G=()=>{if(x.isMounted){let{next:J,bu:ne,u:ce,parent:Se,vnode:Re}=x;{const at=ac(x);if(at){J&&(J.el=Re.el,fe(x,J,Z)),at.asyncDep.then(()=>{x.isUnmounted||G()});return}}let Oe=J,it;kn(x,!1),J?(J.el=Re.el,fe(x,J,Z)):J=Re,ne&&gr(ne),(it=J.props&&J.props.onVnodeBeforeUpdate)&&kt(it,Se,J,Re),kn(x,!0);const Ye=Is(x),bt=x.subTree;x.subTree=Ye,m(bt,Ye,f(bt.el),je(bt),x,H,K),J.el=Ye.el,Oe===null&&Fp(x,Ye.el),ce&&rt(ce,H),(it=J.props&&J.props.onVnodeUpdated)&&rt(()=>kt(it,Se,J,Re),H)}else{let J;const{el:ne,props:ce}=O,{bm:Se,m:Re,parent:Oe,root:it,type:Ye}=x,bt=oo(O);if(kn(x,!1),Se&&gr(Se),!bt&&(J=ce&&ce.onVnodeBeforeMount)&&kt(J,Oe,O),kn(x,!0),ne&&Kn){const at=()=>{x.subTree=Is(x),Kn(ne,x.subTree,x,H,null)};bt&&Ye.__asyncHydrate?Ye.__asyncHydrate(ne,x,at):at()}else{it.ce&&it.ce._injectChildStyle(Ye);const at=x.subTree=Is(x);m(null,at,D,W,x,H,K),O.el=at.el}if(Re&&rt(Re,H),!bt&&(J=ce&&ce.onVnodeMounted)){const at=O;rt(()=>kt(J,Oe,at),H)}(O.shapeFlag&256||Oe&&oo(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&x.a&&rt(x.a,H),x.isMounted=!0,O=D=W=null}};x.scope.on();const q=x.effect=new cu(G);x.scope.off();const U=x.update=q.run.bind(q),se=x.job=q.runIfDirty.bind(q);se.i=x,se.id=x.uid,q.scheduler=()=>Fl(se),kn(x,!0),U()},fe=(x,O,D)=>{O.component=x;const W=x.vnode.props;x.vnode=O,x.next=null,Cp(x,O.props,W,D),Op(x,O.children,D),yn(),ji(x),bn()},ue=(x,O,D,W,H,K,Z,G,q=!1)=>{const U=x&&x.children,se=x?x.shapeFlag:0,J=O.children,{patchFlag:ne,shapeFlag:ce}=O;if(ne>0){if(ne&128){st(U,J,D,W,H,K,Z,G,q);return}else if(ne&256){Be(U,J,D,W,H,K,Z,G,q);return}}ce&8?(se&16&&he(U,H,K),J!==U&&u(D,J)):se&16?ce&16?st(U,J,D,W,H,K,Z,G,q):he(U,H,K,!0):(se&8&&u(D,""),ce&16&&R(J,D,W,H,K,Z,G,q))},Be=(x,O,D,W,H,K,Z,G,q)=>{x=x||Xn,O=O||Xn;const U=x.length,se=O.length,J=Math.min(U,se);let ne;for(ne=0;nese?he(x,H,K,!0,!1,J):R(O,D,W,H,K,Z,G,q,J)},st=(x,O,D,W,H,K,Z,G,q)=>{let U=0;const se=O.length;let J=x.length-1,ne=se-1;for(;U<=J&&U<=ne;){const ce=x[U],Se=O[U]=q?tn(O[U]):Ot(O[U]);if(bo(ce,Se))m(ce,Se,D,null,H,K,Z,G,q);else break;U++}for(;U<=J&&U<=ne;){const ce=x[J],Se=O[ne]=q?tn(O[ne]):Ot(O[ne]);if(bo(ce,Se))m(ce,Se,D,null,H,K,Z,G,q);else break;J--,ne--}if(U>J){if(U<=ne){const ce=ne+1,Se=cene)for(;U<=J;)Q(x[U],H,K,!0),U++;else{const ce=U,Se=U,Re=new Map;for(U=Se;U<=ne;U++){const ut=O[U]=q?tn(O[U]):Ot(O[U]);ut.key!=null&&Re.set(ut.key,U)}let Oe,it=0;const Ye=ne-Se+1;let bt=!1,at=0;const vo=new Array(Ye);for(U=0;U=Ye){Q(ut,H,K,!0);continue}let St;if(ut.key!=null)St=Re.get(ut.key);else for(Oe=Se;Oe<=ne;Oe++)if(vo[Oe-Se]===0&&bo(ut,O[Oe])){St=Oe;break}St===void 0?Q(ut,H,K,!0):(vo[St-Se]=U+1,St>=at?at=St:bt=!0,m(ut,O[St],D,null,H,K,Z,G,q),it++)}const Oi=bt?Pp(vo):Xn;for(Oe=Oi.length-1,U=Ye-1;U>=0;U--){const ut=Se+U,St=O[ut],Ti=ut+1{const{el:K,type:Z,transition:G,children:q,shapeFlag:U}=x;if(U&6){Y(x.component.subTree,O,D,W);return}if(U&128){x.suspense.move(O,D,W);return}if(U&64){Z.move(x,O,D,lt);return}if(Z===Te){o(K,O,D);for(let J=0;JG.enter(K),H);else{const{leave:J,delayLeave:ne,afterLeave:ce}=G,Se=()=>o(K,O,D),Re=()=>{J(K,()=>{Se(),ce&&ce()})};ne?ne(K,Se,Re):Re()}else o(K,O,D)},Q=(x,O,D,W=!1,H=!1)=>{const{type:K,props:Z,ref:G,children:q,dynamicChildren:U,shapeFlag:se,patchFlag:J,dirs:ne,cacheIndex:ce}=x;if(J===-2&&(H=!1),G!=null&&Ys(G,null,D,x,!0),ce!=null&&(O.renderCache[ce]=void 0),se&256){O.ctx.deactivate(x);return}const Se=se&1&&ne,Re=!oo(x);let Oe;if(Re&&(Oe=Z&&Z.onVnodeBeforeUnmount)&&kt(Oe,O,x),se&6)re(x.component,D,W);else{if(se&128){x.suspense.unmount(D,W);return}Se&&Sn(x,null,O,"beforeUnmount"),se&64?x.type.remove(x,O,D,lt,W):U&&!U.hasOnce&&(K!==Te||J>0&&J&64)?he(U,O,D,!1,!0):(K===Te&&J&384||!H&&se&16)&&he(q,O,D),W&&X(x)}(Re&&(Oe=Z&&Z.onVnodeUnmounted)||Se)&&rt(()=>{Oe&&kt(Oe,O,x),Se&&Sn(x,null,O,"unmounted")},D)},X=x=>{const{type:O,el:D,anchor:W,transition:H}=x;if(O===Te){pe(D,W);return}if(O===vr){T(x);return}const K=()=>{r(D),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(x.shapeFlag&1&&H&&!H.persisted){const{leave:Z,delayLeave:G}=H,q=()=>Z(D,K);G?G(x.el,K,q):q()}else K()},pe=(x,O)=>{let D;for(;x!==O;)D=p(x),r(x),x=D;r(O)},re=(x,O,D)=>{const{bum:W,scope:H,job:K,subTree:Z,um:G,m:q,a:U}=x;Ui(q),Ui(U),W&&gr(W),H.stop(),K&&(K.flags|=8,Q(Z,x,O,D)),G&&rt(G,O),rt(()=>{x.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&x.asyncDep&&!x.asyncResolved&&x.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},he=(x,O,D,W=!1,H=!1,K=0)=>{for(let Z=K;Z{if(x.shapeFlag&6)return je(x.component.subTree);if(x.shapeFlag&128)return x.suspense.next();const O=p(x.anchor||x.el),D=O&&O[ju];return D?p(D):O};let He=!1;const Dt=(x,O,D)=>{x==null?O._vnode&&Q(O._vnode,null,null,!0):m(O._vnode||null,x,O,null,null,null,D),O._vnode=x,He||(He=!0,ji(),Bu(),He=!1)},lt={p:m,um:Q,m:Y,r:X,mt:ve,mc:R,pc:ue,pbc:S,n:je,o:e};let zn,Kn;return{render:Dt,hydrate:zn,createApp:xp(Dt,zn)}}function Ms({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 kn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $p(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ul(e,t,n=!1){const o=e.children,r=t.children;if(oe(o)&&oe(r))for(let s=0;s>1,e[n[i]]0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function ac(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ac(t)}function Ui(e){if(e)for(let t=0;tso(Mp);function We(e,t){return rs(e,null,t)}function Bp(e,t){return rs(e,null,{flush:"post"})}function me(e,t,n){return rs(e,t,n)}function rs(e,t,n=Pe){const{immediate:o,deep:r,flush:s,once:l}=n,i=Ze({},n);let a;if(is)if(s==="sync"){const p=Ip();a=p.__watcherHandles||(p.__watcherHandles=[])}else if(!t||o)i.once=!0;else{const p=()=>{};return p.stop=At,p.resume=At,p.pause=At,p}const d=Ge;i.call=(p,h,g)=>Mt(p,d,h,g);let u=!1;s==="post"?i.scheduler=p=>{rt(p,d&&d.suspense)}:s!=="sync"&&(u=!0,i.scheduler=(p,h)=>{h?p():Fl(p)}),i.augmentJob=p=>{t&&(p.flags|=4),u&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const f=Jf(e,t,i);return a&&a.push(f),f}function Rp(e,t,n){const o=this.proxy,r=Ve(e)?e.includes(".")?uc(o,e):()=>o[e]:e.bind(o,o);let s;de(t)?s=t:(s=t.handler,n=t);const l=Go(this),i=rs(r,s.bind(o),n);return l(),i}function uc(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${pt(t)}Modifiers`]||e[`${mn(t)}Modifiers`];function jp(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Pe;let r=n;const s=t.startsWith("update:"),l=s&&Dp(o,t.slice(7));l&&(l.trim&&(r=n.map(u=>Ve(u)?u.trim():u)),l.number&&(r=n.map(Sr)));let i,a=o[i=ko(t)]||o[i=ko(pt(t))];!a&&s&&(a=o[i=ko(mn(t))]),a&&Mt(a,e,6,r);const d=o[i+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Mt(d,e,6,r)}}function cc(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let l={},i=!1;if(!de(e)){const a=d=>{const u=cc(d,t,!0);u&&(i=!0,Ze(l,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!i?(Me(e)&&o.set(e,null),null):(oe(s)?s.forEach(a=>l[a]=null):Ze(l,s),Me(e)&&o.set(e,l),l)}function ss(e,t){return!e||!zr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ee(e,t[0].toLowerCase()+t.slice(1))||Ee(e,mn(t))||Ee(e,t))}function Is(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[s],slots:l,attrs:i,emit:a,render:d,renderCache:u,props:f,data:p,setupState:h,ctx:g,inheritAttrs:m}=e,y=Or(e);let _,k;try{if(n.shapeFlag&4){const T=r||o,B=T;_=Ot(d.call(B,T,u,f,h,p,g)),k=i}else{const T=t;_=Ot(T.length>1?T(f,{attrs:i,slots:l,emit:a}):T(f,null)),k=t.props?i:Lp(i)}}catch(T){Ao.length=0,es(T,e,1),_=b(It)}let C=_;if(k&&m!==!1){const T=Object.keys(k),{shapeFlag:B}=C;T.length&&B&7&&(s&&T.some($l)&&(k=Vp(k,s)),C=Pn(C,k,!1,!0))}return n.dirs&&(C=Pn(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&Hl(C,n.transition),_=C,Or(y),_}const Lp=e=>{let t;for(const n in e)(n==="class"||n==="style"||zr(n))&&((t||(t={}))[n]=e[n]);return t},Vp=(e,t)=>{const n={};for(const o in e)(!$l(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Np(e,t,n){const{props:o,children:r,component:s}=e,{props:l,children:i,patchFlag:a}=t,d=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?qi(o,l,d):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function Hp(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):Xf(e)}const Te=Symbol.for("v-fgt"),ls=Symbol.for("v-txt"),It=Symbol.for("v-cmt"),vr=Symbol.for("v-stc"),Ao=[];let dt=null;function w(e=!1){Ao.push(dt=e?null:[])}function zp(){Ao.pop(),dt=Ao[Ao.length-1]||null}let Lo=1;function Gi(e){Lo+=e,e<0&&dt&&(dt.hasOnce=!0)}function fc(e){return e.dynamicChildren=Lo>0?dt||Xn:null,zp(),Lo>0&&dt&&dt.push(e),e}function z(e,t,n,o,r,s){return fc($(e,t,n,o,r,s,!0))}function P(e,t,n,o,r){return fc(b(e,t,n,o,r,!0))}function Ar(e){return e?e.__v_isVNode===!0:!1}function bo(e,t){return e.type===t.type&&e.key===t.key}const pc=({key:e})=>e??null,yr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||Le(e)||de(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function $(e,t=null,n=null,o=0,r=null,s=e===Te?0:1,l=!1,i=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&pc(t),ref:t&&yr(t),scopeId:Du,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ze};return i?(ql(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=Ve(n)?8:16),Lo>0&&!l&&dt&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&dt.push(a),a}const b=Kp;function Kp(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===Uu)&&(e=It),Ar(e)){const i=Pn(e,t,!0);return n&&ql(i,n),Lo>0&&!s&&dt&&(i.shapeFlag&6?dt[dt.indexOf(e)]=i:dt.push(i)),i.patchFlag=-2,i}if(Xp(e)&&(e=e.__vccOpts),t){t=Je(t);let{class:i,style:a}=t;i&&!Ve(i)&&(t.class=ae(i)),Me(a)&&(Ll(a)&&!oe(a)&&(a=Ze({},a)),t.style=vn(a))}const l=Ve(e)?1:dc(e)?128:ep(e)?64:Me(e)?4:de(e)?2:0;return $(e,t,n,o,r,l,s,!0)}function Je(e){return e?Ll(e)||tc(e)?Ze({},e):e:null}function Pn(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:l,children:i,transition:a}=e,d=t?te(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&pc(d),ref:t&&t.ref?n&&s?oe(s)?s.concat(yr(t)):[s,yr(t)]:yr(t):s,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!==Te?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pn(e.ssContent),ssFallback:e.ssFallback&&Pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&o&&Hl(u,a.clone(u)),u}function ee(e=" ",t=0){return b(ls,null,e,t)}function Wp(e,t){const n=b(vr,null,e);return n.staticCount=t,n}function ie(e="",t=!1){return t?(w(),P(It,null,e)):b(It,null,e)}function Ot(e){return e==null||typeof e=="boolean"?b(It):oe(e)?b(Te,null,e.slice()):typeof e=="object"?tn(e):b(ls,null,String(e))}function tn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Pn(e)}function ql(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(oe(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),ql(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!tc(t)?t._ctx=ze:r===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else de(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),o&64?(n=16,t=[ee(t)]):n=8);e.children=t,e.shapeFlag|=n}function te(...e){const t={};for(let n=0;nGe||ze;let $r,ol;{const e=ru(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),s=>{r.length>1?r.forEach(l=>l(s)):r[0](s)}};$r=t("__VUE_INSTANCE_SETTERS__",n=>Ge=n),ol=t("__VUE_SSR_SETTERS__",n=>is=n)}const Go=e=>{const t=Ge;return $r(e),e.scope.on(),()=>{e.scope.off(),$r(t)}},Zi=()=>{Ge&&Ge.scope.off(),$r(null)};function hc(e){return e.vnode.shapeFlag&4}let is=!1;function Zp(e,t=!1,n=!1){t&&ol(t);const{props:o,children:r}=e.vnode,s=hc(e);_p(e,o,s,t),Ep(e,r,n);const l=s?Jp(e,t):void 0;return t&&ol(!1),l}function Jp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pp);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?mc(e):null,s=Go(e);yn();const l=Uo(o,e,0,[e.props,r]);if(bn(),s(),eu(l)){if(oo(e)||Vu(e),l.then(Zi,Zi),t)return l.then(i=>{Ji(e,i,t)}).catch(i=>{es(i,e,0)});e.asyncDep=l}else Ji(e,l,t)}else gc(e,t)}function Ji(e,t,n){de(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Me(t)&&(e.setupState=Tu(t)),gc(e,n)}let Yi;function gc(e,t,n){const o=e.type;if(!e.render){if(!t&&Yi&&!o.render){const r=o.template||zl(e).template;if(r){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:i,compilerOptions:a}=o,d=Ze(Ze({isCustomElement:s,delimiters:i},l),a);o.render=Yi(r,d)}}e.render=o.render||At}{const r=Go(e);yn();try{gp(e)}finally{bn(),r()}}}const Yp={get(e,t){return Xe(e,"get",""),e[t]}};function mc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Yp),slots:e.slots,emit:e.emit,expose:t}}function as(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Tu(Eu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in To)return To[n](e)},has(t,n){return n in t||n in To}})):e.proxy}function Qp(e,t=!0){return de(e)?e.displayName||e.name:e.name||t&&e.__name}function Xp(e){return de(e)&&"__vccOpts"in e}const N=(e,t)=>Gf(e,t,is);function we(e,t,n){const o=arguments.length;return o===2?Me(t)&&!oe(t)?Ar(t)?b(e,null,[t]):b(e,t):b(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Ar(n)&&(n=[n]),b(e,t,n))}const eh="3.5.6";/** +**/function Uo(e,t,n,o){try{return o?e(...o):e()}catch(r){es(r,t,n)}}function Mt(e,t,n,o){if(de(e)){const r=Uo(e,t,n,o);return r&&eu(r)&&r.catch(s=>{es(s,t,n)}),r}if(oe(e)){const r=[];for(let s=0;s>>1,r=nt[o],s=jo(r);s=jo(n)?nt.push(e):nt.splice(Qf(t),0,e),e.flags|=1,Iu()}}function Iu(){!Do&&!Zs&&(Zs=!0,Nl=Mu.then(Ru))}function Xf(e){oe(e)?no.push(...e):tn&&e.id===-1?tn.splice(Gn+1,0,e):e.flags&1||(no.push(e),e.flags|=1),Iu()}function ji(e,t,n=Do?Et+1:0){for(;njo(n)-jo(o));if(no.length=0,tn){tn.push(...t);return}for(tn=t,Gn=0;Gne.id==null?e.flags&2?-1:1/0:e.id;function Ru(e){Zs=!1,Do=!0;try{for(Et=0;Et{o._d&&Gi(-1);const s=Or(t);let l;try{l=e(...r)}finally{Or(s),o._d&&Gi(1)}return l};return o._n=!0,o._c=!0,o._d=!0,o}function qo(e,t){if(ze===null)return e;const n=as(ze),o=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,Oo=e=>e&&(e.disabled||e.disabled===""),tp=e=>e&&(e.defer||e.defer===""),Li=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Vi=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Js=(e,t)=>{const n=e&&e.to;return Ve(n)?t?t(n):null:n},np={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,s,l,i,a,d){const{mc:u,pc:f,pbc:p,o:{insert:h,querySelector:g,createText:m,createComment:y}}=d,_=Oo(t.props);let{shapeFlag:A,children:k,dynamicChildren:O}=t;if(e==null){const R=t.el=m(""),T=t.anchor=m("");h(R,n,o),h(T,n,o);const S=(D,C)=>{A&16&&(r&&r.isCE&&(r.ce._teleportTarget=D),u(k,D,C,r,s,l,i,a))},$=()=>{const D=t.target=Js(t.props,g),C=Lu(D,t,m,h);D&&(l!=="svg"&&Li(D)?l="svg":l!=="mathml"&&Vi(D)&&(l="mathml"),_||(S(D,C),mr(t)))};_&&(S(n,T),mr(t)),tp(t.props)?rt($,s):$()}else{t.el=e.el,t.targetStart=e.targetStart;const R=t.anchor=e.anchor,T=t.target=e.target,S=t.targetAnchor=e.targetAnchor,$=Oo(e.props),D=$?n:T,C=$?R:S;if(l==="svg"||Li(T)?l="svg":(l==="mathml"||Vi(T))&&(l="mathml"),O?(p(e.dynamicChildren,O,D,r,s,l,i),Ul(e,t,!0)):a||f(e,t,D,C,r,s,l,i,!1),_)$?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):lr(t,n,R,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=Js(t.props,g);F&&lr(t,F,null,d,0)}else $&&lr(t,T,S,d,1);mr(t)}},remove(e,t,n,{um:o,o:{remove:r}},s){const{shapeFlag:l,children:i,anchor:a,targetStart:d,targetAnchor:u,target:f,props:p}=e;if(f&&(r(d),r(u)),s&&r(a),l&16){const h=s||!Oo(p);for(let g=0;gYs(g,t&&(oe(t)?t[m]:t),n,o,r));return}if(oo(o)&&!r)return;const s=o.shapeFlag&4?as(o.component):o.el,l=r?null:s,{i,r:a}=e,d=t&&t.r,u=i.refs===Pe?i.refs={}:i.refs,f=i.setupState,p=ke(f),h=f===Pe?()=>!1:g=>Ee(p,g);if(d!=null&&d!==a&&(Ve(d)?(u[d]=null,h(d)&&(f[d]=null)):Le(d)&&(d.value=null)),de(a))Uo(a,i,12,[l,u]);else{const g=Ve(a),m=Le(a);if(g||m){const y=()=>{if(e.f){const _=g?h(a)?f[a]:u[a]:a.value;r?oe(_)&&Pl(_,s):oe(_)?_.includes(s)||_.push(s):g?(u[a]=[s],h(a)&&(f[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else g?(u[a]=l,h(a)&&(f[a]=l)):m&&(a.value=l,e.k&&(u[e.k]=l))};l?(y.id=-1,rt(y,n)):y()}}}const oo=e=>!!e.type.__asyncLoader,Nu=e=>e.type.__isKeepAlive;function rp(e,t){Fu(e,"a",t)}function sp(e,t){Fu(e,"da",t)}function Fu(e,t,n=Ge){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ns(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Nu(r.parent.vnode)&&lp(o,t,n,r),r=r.parent}}function lp(e,t,n,o){const r=ns(t,e,o,!0);xn(()=>{Pl(o[t],r)},n)}function ns(e,t,n=Ge,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{yn();const i=Go(n),a=Mt(t,n,e,l);return i(),bn(),a});return o?r.unshift(s):r.push(s),s}}const Gt=e=>(t,n=Ge)=>{(!is||e==="sp")&&ns(e,(...o)=>t(...o),n)},Hu=Gt("bm"),Ie=Gt("m"),zu=Gt("bu"),Ku=Gt("u"),os=Gt("bum"),xn=Gt("um"),ip=Gt("sp"),ap=Gt("rtg"),up=Gt("rtc");function cp(e,t=Ge){ns("ec",e,t)}const Wu="components";function dp(e,t){return qu(Wu,e,!0,t)||e}const Uu=Symbol.for("v-ndc");function Vn(e){return Ve(e)?qu(Wu,e,!1)||e:e||Uu}function qu(e,t,n=!0,o=!1){const r=ze||Ge;if(r){const s=r.type;{const i=Qp(s,!1);if(i&&(i===t||i===pt(t)||i===Ur(pt(t))))return s}const l=Fi(r[e]||s[e],t)||Fi(r.appContext[e],t);return!l&&o?s:l}}function Fi(e,t){return e&&(e[t]||e[pt(t)]||e[Ur(pt(t))])}function Tt(e,t,n,o){let r;const s=n,l=oe(e);if(l||Ve(e)){const i=l&&to(e);let a=!1;i&&(a=!gt(e),e=Jr(e)),r=new Array(e.length);for(let d=0,u=e.length;dt(i,a,void 0,s));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,d=i.length;aAr(t)?!(t.type===It||t.type===Te&&!Gu(t.children)):!0)?e:null}function fp(e,t){const n={};for(const o in e)n[ko(o)]=e[o];return n}const Qs=e=>e?hc(e)?as(e):Qs(e.parent):null,To=Ze(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=>Qs(e.parent),$root:e=>Qs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zl(e),$forceUpdate:e=>e.f||(e.f=()=>{Fl(e.update)}),$nextTick:e=>e.n||(e.n=Ae.bind(e.proxy)),$watch:e=>Rp.bind(e)}),Ps=(e,t)=>e!==Pe&&!e.__isScriptSetup&&Ee(e,t),pp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:a}=e;let d;if(t[0]!=="$"){const h=l[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Ps(o,t))return l[t]=1,o[t];if(r!==Pe&&Ee(r,t))return l[t]=2,r[t];if((d=e.propsOptions[0])&&Ee(d,t))return l[t]=3,s[t];if(n!==Pe&&Ee(n,t))return l[t]=4,n[t];el&&(l[t]=0)}}const u=To[t];let f,p;if(u)return t==="$attrs"&&Xe(e.attrs,"get",""),u(e);if((f=i.__cssModules)&&(f=f[t]))return f;if(n!==Pe&&Ee(n,t))return l[t]=4,n[t];if(p=a.config.globalProperties,Ee(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Ps(r,t)?(r[t]=n,!0):o!==Pe&&Ee(o,t)?(o[t]=n,!0):Ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return!!n[l]||e!==Pe&&Ee(e,l)||Ps(t,l)||(i=s[0])&&Ee(i,l)||Ee(o,l)||Ee(To,l)||Ee(r.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zu(){return hp().slots}function hp(){const e=yt();return e.setupContext||(e.setupContext=mc(e))}function Xs(e){return oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ju(e,t){const n=Xs(e);for(const o in t){if(o.startsWith("__skip"))continue;let r=n[o];r?oe(r)||de(r)?r=n[o]={type:r,default:t[o]}:r.default=t[o]:r===null&&(r=n[o]={default:t[o]}),r&&t[`__skip_${o}`]&&(r.skipFactory=!0)}return n}let el=!0;function gp(e){const t=zl(e),n=e.proxy,o=e.ctx;el=!1,t.beforeCreate&&Hi(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:i,provide:a,inject:d,created:u,beforeMount:f,mounted:p,beforeUpdate:h,updated:g,activated:m,deactivated:y,beforeDestroy:_,beforeUnmount:A,destroyed:k,unmounted:O,render:R,renderTracked:T,renderTriggered:S,errorCaptured:$,serverPrefetch:D,expose:C,inheritAttrs:F,components:V,directives:xe,filters:ye}=t;if(d&&mp(d,o,null),l)for(const fe in l){const ue=l[fe];de(ue)&&(o[fe]=ue.bind(n))}if(r){const fe=r.call(n,n);Me(fe)&&(e.data=wn(fe))}if(el=!0,s)for(const fe in s){const ue=s[fe],Be=de(ue)?ue.bind(n,n):de(ue.get)?ue.get.bind(n,n):At,st=!de(ue)&&de(ue.set)?ue.set.bind(n):At,Y=N({get:Be,set:st});Object.defineProperty(o,fe,{enumerable:!0,configurable:!0,get:()=>Y.value,set:Q=>Y.value=Q})}if(i)for(const fe in i)Yu(i[fe],o,n,fe);if(a){const fe=de(a)?a.call(n):a;Reflect.ownKeys(fe).forEach(ue=>{Kl(ue,fe[ue])})}u&&Hi(u,e,"c");function be(fe,ue){oe(ue)?ue.forEach(Be=>fe(Be.bind(n))):ue&&fe(ue.bind(n))}if(be(Hu,f),be(Ie,p),be(zu,h),be(Ku,g),be(rp,m),be(sp,y),be(cp,$),be(up,T),be(ap,S),be(os,A),be(xn,O),be(ip,D),oe(C))if(C.length){const fe=e.exposed||(e.exposed={});C.forEach(ue=>{Object.defineProperty(fe,ue,{get:()=>n[ue],set:Be=>n[ue]=Be})})}else e.exposed||(e.exposed={});R&&e.render===At&&(e.render=R),F!=null&&(e.inheritAttrs=F),V&&(e.components=V),xe&&(e.directives=xe),D&&Vu(e)}function mp(e,t,n=At){oe(e)&&(e=tl(e));for(const o in e){const r=e[o];let s;Me(r)?"default"in r?s=so(r.from||o,r.default,!0):s=so(r.from||o):s=so(r),Le(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:l=>s.value=l}):t[o]=s}}function Hi(e,t,n){Mt(oe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Yu(e,t,n,o){let r=o.includes(".")?uc(n,o):()=>n[o];if(Ve(e)){const s=t[e];de(s)&&ve(r,s)}else if(de(e))ve(r,e.bind(n));else if(Me(e))if(oe(e))e.forEach(s=>Yu(s,t,n,o));else{const s=de(e.handler)?e.handler.bind(n):t[e.handler];de(s)&&ve(r,s,e)}}function zl(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,i=s.get(t);let a;return i?a=i:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(d=>Tr(a,d,l,!0)),Tr(a,t,l)),Me(t)&&s.set(t,a),a}function Tr(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Tr(e,s,n,!0),r&&r.forEach(l=>Tr(e,l,n,!0));for(const l in t)if(!(o&&l==="expose")){const i=vp[l]||n&&n[l];e[l]=i?i(e[l],t[l]):t[l]}return e}const vp={data:zi,props:Ki,emits:Ki,methods:Co,computed:Co,beforeCreate:et,created:et,beforeMount:et,mounted:et,beforeUpdate:et,updated:et,beforeDestroy:et,beforeUnmount:et,destroyed:et,unmounted:et,activated:et,deactivated:et,errorCaptured:et,serverPrefetch:et,components:Co,directives:Co,watch:bp,provide:zi,inject:yp};function zi(e,t){return t?e?function(){return Ze(de(e)?e.call(this,this):e,de(t)?t.call(this,this):t)}:t:e}function yp(e,t){return Co(tl(e),tl(t))}function tl(e){if(oe(e)){const t={};for(let n=0;n1)return n&&de(t)?t.call(o&&o.proxy):t}}const Xu={},ec=()=>Object.create(Xu),tc=e=>Object.getPrototypeOf(e)===Xu;function _p(e,t,n,o=!1){const r={},s=ec();e.propsDefaults=Object.create(null),nc(e,t,r,s);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=o?r:Ff(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Cp(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:l}}=e,i=ke(r),[a]=e.propsOptions;let d=!1;if((o||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[p,h]=oc(f,t,!0);Ze(l,p),h&&i.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!a)return Me(e)&&o.set(e,Xn),Xn;if(oe(s))for(let u=0;ue[0]==="_"||e==="$stable",Wl=e=>oe(e)?e.map(Ot):[Ot(e)],kp=(e,t,n)=>{if(t._n)return t;const o=v((...r)=>Wl(t(...r)),n);return o._c=!1,o},sc=(e,t,n)=>{const o=e._ctx;for(const r in e){if(rc(r))continue;const s=e[r];if(de(s))t[r]=kp(r,s,o);else if(s!=null){const l=Wl(s);t[r]=()=>l}}},lc=(e,t)=>{const n=Wl(t);e.slots.default=()=>n},ic=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},Ep=(e,t,n)=>{const o=e.slots=ec();if(e.vnode.shapeFlag&32){const r=t._;r?(ic(o,t,n),n&&ou(o,"_",r,!0)):sc(t,o)}else t&&lc(e,t)},Op=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,l=Pe;if(o.shapeFlag&32){const i=t._;i?n&&i===1?s=!1:ic(r,t,n):(s=!t.$stable,sc(t,r)),l=t}else t&&(lc(e,t),l={default:1});if(s)for(const i in r)!rc(i)&&l[i]==null&&delete r[i]},rt=Hp;function Tp(e){return Ap(e)}function Ap(e,t){const n=ru();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:l,createText:i,createComment:a,setText:d,setElementText:u,parentNode:f,nextSibling:p,setScopeId:h=At,insertStaticContent:g}=e,m=(x,E,j,W=null,H=null,K=null,Z=void 0,G=null,q=!!E.dynamicChildren)=>{if(x===E)return;x&&!bo(x,E)&&(W=je(x),Q(x,H,K,!0),x=null),E.patchFlag===-2&&(q=!1,E.dynamicChildren=null);const{type:U,ref:se,shapeFlag:J}=E;switch(U){case ls:y(x,E,j,W);break;case It:_(x,E,j,W);break;case vr:x==null&&A(E,j,W,Z);break;case Te:V(x,E,j,W,H,K,Z,G,q);break;default:J&1?R(x,E,j,W,H,K,Z,G,q):J&6?xe(x,E,j,W,H,K,Z,G,q):(J&64||J&128)&&U.process(x,E,j,W,H,K,Z,G,q,lt)}se!=null&&H&&Ys(se,x&&x.ref,K,E||x,!E)},y=(x,E,j,W)=>{if(x==null)o(E.el=i(E.children),j,W);else{const H=E.el=x.el;E.children!==x.children&&d(H,E.children)}},_=(x,E,j,W)=>{x==null?o(E.el=a(E.children||""),j,W):E.el=x.el},A=(x,E,j,W)=>{[x.el,x.anchor]=g(x.children,E,j,W,x.el,x.anchor)},k=({el:x,anchor:E},j,W)=>{let H;for(;x&&x!==E;)H=p(x),o(x,j,W),x=H;o(E,j,W)},O=({el:x,anchor:E})=>{let j;for(;x&&x!==E;)j=p(x),r(x),x=j;r(E)},R=(x,E,j,W,H,K,Z,G,q)=>{E.type==="svg"?Z="svg":E.type==="math"&&(Z="mathml"),x==null?T(E,j,W,H,K,Z,G,q):D(x,E,H,K,Z,G,q)},T=(x,E,j,W,H,K,Z,G)=>{let q,U;const{props:se,shapeFlag:J,transition:ne,dirs:ce}=x;if(q=x.el=l(x.type,K,se&&se.is,se),J&8?u(q,x.children):J&16&&$(x.children,q,null,W,H,Ms(x,K),Z,G),ce&&Sn(x,null,W,"created"),S(q,x,x.scopeId,Z,W),se){for(const Re in se)Re!=="value"&&!So(Re)&&s(q,Re,null,se[Re],K,W);"value"in se&&s(q,"value",null,se.value,K),(U=se.onVnodeBeforeMount)&&kt(U,W,x)}ce&&Sn(x,null,W,"beforeMount");const Se=$p(H,ne);Se&&ne.beforeEnter(q),o(q,E,j),((U=se&&se.onVnodeMounted)||Se||ce)&&rt(()=>{U&&kt(U,W,x),Se&&ne.enter(q),ce&&Sn(x,null,W,"mounted")},H)},S=(x,E,j,W,H)=>{if(j&&h(x,j),W)for(let K=0;K{for(let U=q;U{const G=E.el=x.el;let{patchFlag:q,dynamicChildren:U,dirs:se}=E;q|=x.patchFlag&16;const J=x.props||Pe,ne=E.props||Pe;let ce;if(j&&kn(j,!1),(ce=ne.onVnodeBeforeUpdate)&&kt(ce,j,E,x),se&&Sn(E,x,j,"beforeUpdate"),j&&kn(j,!0),(J.innerHTML&&ne.innerHTML==null||J.textContent&&ne.textContent==null)&&u(G,""),U?C(x.dynamicChildren,U,G,j,W,Ms(E,H),K):Z||ue(x,E,G,null,j,W,Ms(E,H),K,!1),q>0){if(q&16)F(G,J,ne,j,H);else if(q&2&&J.class!==ne.class&&s(G,"class",null,ne.class,H),q&4&&s(G,"style",J.style,ne.style,H),q&8){const Se=E.dynamicProps;for(let Re=0;Re{ce&&kt(ce,j,E,x),se&&Sn(E,x,j,"updated")},W)},C=(x,E,j,W,H,K,Z)=>{for(let G=0;G{if(E!==j){if(E!==Pe)for(const K in E)!So(K)&&!(K in j)&&s(x,K,E[K],null,H,W);for(const K in j){if(So(K))continue;const Z=j[K],G=E[K];Z!==G&&K!=="value"&&s(x,K,G,Z,H,W)}"value"in j&&s(x,"value",E.value,j.value,H)}},V=(x,E,j,W,H,K,Z,G,q)=>{const U=E.el=x?x.el:i(""),se=E.anchor=x?x.anchor:i("");let{patchFlag:J,dynamicChildren:ne,slotScopeIds:ce}=E;ce&&(G=G?G.concat(ce):ce),x==null?(o(U,j,W),o(se,j,W),$(E.children||[],j,se,H,K,Z,G,q)):J>0&&J&64&&ne&&x.dynamicChildren?(C(x.dynamicChildren,ne,j,H,K,Z,G),(E.key!=null||H&&E===H.subTree)&&Ul(x,E,!0)):ue(x,E,j,se,H,K,Z,G,q)},xe=(x,E,j,W,H,K,Z,G,q)=>{E.slotScopeIds=G,x==null?E.shapeFlag&512?H.ctx.activate(E,j,W,Z,q):ye(E,j,W,H,K,Z,q):Fe(x,E,q)},ye=(x,E,j,W,H,K,Z)=>{const G=x.component=Gp(x,W,H);if(Nu(x)&&(G.ctx.renderer=lt),Zp(G,!1,Z),G.asyncDep){if(H&&H.registerDep(G,be,Z),!x.el){const q=G.subTree=b(It);_(null,q,E,j)}}else be(G,x,E,j,H,K,Z)},Fe=(x,E,j)=>{const W=E.component=x.component;if(Np(x,E,j))if(W.asyncDep&&!W.asyncResolved){fe(W,E,j);return}else W.next=E,W.update();else E.el=x.el,W.vnode=E},be=(x,E,j,W,H,K,Z)=>{const G=()=>{if(x.isMounted){let{next:J,bu:ne,u:ce,parent:Se,vnode:Re}=x;{const at=ac(x);if(at){J&&(J.el=Re.el,fe(x,J,Z)),at.asyncDep.then(()=>{x.isUnmounted||G()});return}}let Oe=J,it;kn(x,!1),J?(J.el=Re.el,fe(x,J,Z)):J=Re,ne&&gr(ne),(it=J.props&&J.props.onVnodeBeforeUpdate)&&kt(it,Se,J,Re),kn(x,!0);const Ye=Is(x),bt=x.subTree;x.subTree=Ye,m(bt,Ye,f(bt.el),je(bt),x,H,K),J.el=Ye.el,Oe===null&&Fp(x,Ye.el),ce&&rt(ce,H),(it=J.props&&J.props.onVnodeUpdated)&&rt(()=>kt(it,Se,J,Re),H)}else{let J;const{el:ne,props:ce}=E,{bm:Se,m:Re,parent:Oe,root:it,type:Ye}=x,bt=oo(E);if(kn(x,!1),Se&&gr(Se),!bt&&(J=ce&&ce.onVnodeBeforeMount)&&kt(J,Oe,E),kn(x,!0),ne&&Kn){const at=()=>{x.subTree=Is(x),Kn(ne,x.subTree,x,H,null)};bt&&Ye.__asyncHydrate?Ye.__asyncHydrate(ne,x,at):at()}else{it.ce&&it.ce._injectChildStyle(Ye);const at=x.subTree=Is(x);m(null,at,j,W,x,H,K),E.el=at.el}if(Re&&rt(Re,H),!bt&&(J=ce&&ce.onVnodeMounted)){const at=E;rt(()=>kt(J,Oe,at),H)}(E.shapeFlag&256||Oe&&oo(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&x.a&&rt(x.a,H),x.isMounted=!0,E=j=W=null}};x.scope.on();const q=x.effect=new cu(G);x.scope.off();const U=x.update=q.run.bind(q),se=x.job=q.runIfDirty.bind(q);se.i=x,se.id=x.uid,q.scheduler=()=>Fl(se),kn(x,!0),U()},fe=(x,E,j)=>{E.component=x;const W=x.vnode.props;x.vnode=E,x.next=null,Cp(x,E.props,W,j),Op(x,E.children,j),yn(),ji(x),bn()},ue=(x,E,j,W,H,K,Z,G,q=!1)=>{const U=x&&x.children,se=x?x.shapeFlag:0,J=E.children,{patchFlag:ne,shapeFlag:ce}=E;if(ne>0){if(ne&128){st(U,J,j,W,H,K,Z,G,q);return}else if(ne&256){Be(U,J,j,W,H,K,Z,G,q);return}}ce&8?(se&16&&ge(U,H,K),J!==U&&u(j,J)):se&16?ce&16?st(U,J,j,W,H,K,Z,G,q):ge(U,H,K,!0):(se&8&&u(j,""),ce&16&&$(J,j,W,H,K,Z,G,q))},Be=(x,E,j,W,H,K,Z,G,q)=>{x=x||Xn,E=E||Xn;const U=x.length,se=E.length,J=Math.min(U,se);let ne;for(ne=0;nese?ge(x,H,K,!0,!1,J):$(E,j,W,H,K,Z,G,q,J)},st=(x,E,j,W,H,K,Z,G,q)=>{let U=0;const se=E.length;let J=x.length-1,ne=se-1;for(;U<=J&&U<=ne;){const ce=x[U],Se=E[U]=q?nn(E[U]):Ot(E[U]);if(bo(ce,Se))m(ce,Se,j,null,H,K,Z,G,q);else break;U++}for(;U<=J&&U<=ne;){const ce=x[J],Se=E[ne]=q?nn(E[ne]):Ot(E[ne]);if(bo(ce,Se))m(ce,Se,j,null,H,K,Z,G,q);else break;J--,ne--}if(U>J){if(U<=ne){const ce=ne+1,Se=cene)for(;U<=J;)Q(x[U],H,K,!0),U++;else{const ce=U,Se=U,Re=new Map;for(U=Se;U<=ne;U++){const ut=E[U]=q?nn(E[U]):Ot(E[U]);ut.key!=null&&Re.set(ut.key,U)}let Oe,it=0;const Ye=ne-Se+1;let bt=!1,at=0;const vo=new Array(Ye);for(U=0;U=Ye){Q(ut,H,K,!0);continue}let St;if(ut.key!=null)St=Re.get(ut.key);else for(Oe=Se;Oe<=ne;Oe++)if(vo[Oe-Se]===0&&bo(ut,E[Oe])){St=Oe;break}St===void 0?Q(ut,H,K,!0):(vo[St-Se]=U+1,St>=at?at=St:bt=!0,m(ut,E[St],j,null,H,K,Z,G,q),it++)}const Oi=bt?Pp(vo):Xn;for(Oe=Oi.length-1,U=Ye-1;U>=0;U--){const ut=Se+U,St=E[ut],Ti=ut+1{const{el:K,type:Z,transition:G,children:q,shapeFlag:U}=x;if(U&6){Y(x.component.subTree,E,j,W);return}if(U&128){x.suspense.move(E,j,W);return}if(U&64){Z.move(x,E,j,lt);return}if(Z===Te){o(K,E,j);for(let J=0;JG.enter(K),H);else{const{leave:J,delayLeave:ne,afterLeave:ce}=G,Se=()=>o(K,E,j),Re=()=>{J(K,()=>{Se(),ce&&ce()})};ne?ne(K,Se,Re):Re()}else o(K,E,j)},Q=(x,E,j,W=!1,H=!1)=>{const{type:K,props:Z,ref:G,children:q,dynamicChildren:U,shapeFlag:se,patchFlag:J,dirs:ne,cacheIndex:ce}=x;if(J===-2&&(H=!1),G!=null&&Ys(G,null,j,x,!0),ce!=null&&(E.renderCache[ce]=void 0),se&256){E.ctx.deactivate(x);return}const Se=se&1&&ne,Re=!oo(x);let Oe;if(Re&&(Oe=Z&&Z.onVnodeBeforeUnmount)&&kt(Oe,E,x),se&6)re(x.component,j,W);else{if(se&128){x.suspense.unmount(j,W);return}Se&&Sn(x,null,E,"beforeUnmount"),se&64?x.type.remove(x,E,j,lt,W):U&&!U.hasOnce&&(K!==Te||J>0&&J&64)?ge(U,E,j,!1,!0):(K===Te&&J&384||!H&&se&16)&&ge(q,E,j),W&&X(x)}(Re&&(Oe=Z&&Z.onVnodeUnmounted)||Se)&&rt(()=>{Oe&&kt(Oe,E,x),Se&&Sn(x,null,E,"unmounted")},j)},X=x=>{const{type:E,el:j,anchor:W,transition:H}=x;if(E===Te){he(j,W);return}if(E===vr){O(x);return}const K=()=>{r(j),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(x.shapeFlag&1&&H&&!H.persisted){const{leave:Z,delayLeave:G}=H,q=()=>Z(j,K);G?G(x.el,K,q):q()}else K()},he=(x,E)=>{let j;for(;x!==E;)j=p(x),r(x),x=j;r(E)},re=(x,E,j)=>{const{bum:W,scope:H,job:K,subTree:Z,um:G,m:q,a:U}=x;Ui(q),Ui(U),W&&gr(W),H.stop(),K&&(K.flags|=8,Q(Z,x,E,j)),G&&rt(G,E),rt(()=>{x.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&x.asyncDep&&!x.asyncResolved&&x.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},ge=(x,E,j,W=!1,H=!1,K=0)=>{for(let Z=K;Z{if(x.shapeFlag&6)return je(x.component.subTree);if(x.shapeFlag&128)return x.suspense.next();const E=p(x.anchor||x.el),j=E&&E[ju];return j?p(j):E};let He=!1;const Dt=(x,E,j)=>{x==null?E._vnode&&Q(E._vnode,null,null,!0):m(E._vnode||null,x,E,null,null,null,j),E._vnode=x,He||(He=!0,ji(),Bu(),He=!1)},lt={p:m,um:Q,m:Y,r:X,mt:ye,mc:$,pc:ue,pbc:C,n:je,o:e};let zn,Kn;return{render:Dt,hydrate:zn,createApp:xp(Dt,zn)}}function Ms({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 kn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $p(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ul(e,t,n=!1){const o=e.children,r=t.children;if(oe(o)&&oe(r))for(let s=0;s>1,e[n[i]]0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function ac(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ac(t)}function Ui(e){if(e)for(let t=0;tso(Mp);function We(e,t){return rs(e,null,t)}function Bp(e,t){return rs(e,null,{flush:"post"})}function ve(e,t,n){return rs(e,t,n)}function rs(e,t,n=Pe){const{immediate:o,deep:r,flush:s,once:l}=n,i=Ze({},n);let a;if(is)if(s==="sync"){const p=Ip();a=p.__watcherHandles||(p.__watcherHandles=[])}else if(!t||o)i.once=!0;else{const p=()=>{};return p.stop=At,p.resume=At,p.pause=At,p}const d=Ge;i.call=(p,h,g)=>Mt(p,d,h,g);let u=!1;s==="post"?i.scheduler=p=>{rt(p,d&&d.suspense)}:s!=="sync"&&(u=!0,i.scheduler=(p,h)=>{h?p():Fl(p)}),i.augmentJob=p=>{t&&(p.flags|=4),u&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const f=Jf(e,t,i);return a&&a.push(f),f}function Rp(e,t,n){const o=this.proxy,r=Ve(e)?e.includes(".")?uc(o,e):()=>o[e]:e.bind(o,o);let s;de(t)?s=t:(s=t.handler,n=t);const l=Go(this),i=rs(r,s.bind(o),n);return l(),i}function uc(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${pt(t)}Modifiers`]||e[`${vn(t)}Modifiers`];function jp(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Pe;let r=n;const s=t.startsWith("update:"),l=s&&Dp(o,t.slice(7));l&&(l.trim&&(r=n.map(u=>Ve(u)?u.trim():u)),l.number&&(r=n.map(Sr)));let i,a=o[i=ko(t)]||o[i=ko(pt(t))];!a&&s&&(a=o[i=ko(vn(t))]),a&&Mt(a,e,6,r);const d=o[i+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Mt(d,e,6,r)}}function cc(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let l={},i=!1;if(!de(e)){const a=d=>{const u=cc(d,t,!0);u&&(i=!0,Ze(l,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!i?(Me(e)&&o.set(e,null),null):(oe(s)?s.forEach(a=>l[a]=null):Ze(l,s),Me(e)&&o.set(e,l),l)}function ss(e,t){return!e||!zr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ee(e,t[0].toLowerCase()+t.slice(1))||Ee(e,vn(t))||Ee(e,t))}function Is(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[s],slots:l,attrs:i,emit:a,render:d,renderCache:u,props:f,data:p,setupState:h,ctx:g,inheritAttrs:m}=e,y=Or(e);let _,A;try{if(n.shapeFlag&4){const O=r||o,R=O;_=Ot(d.call(R,O,u,f,h,p,g)),A=i}else{const O=t;_=Ot(O.length>1?O(f,{attrs:i,slots:l,emit:a}):O(f,null)),A=t.props?i:Lp(i)}}catch(O){Ao.length=0,es(O,e,1),_=b(It)}let k=_;if(A&&m!==!1){const O=Object.keys(A),{shapeFlag:R}=k;O.length&&R&7&&(s&&O.some($l)&&(A=Vp(A,s)),k=Pn(k,A,!1,!0))}return n.dirs&&(k=Pn(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&Hl(k,n.transition),_=k,Or(y),_}const Lp=e=>{let t;for(const n in e)(n==="class"||n==="style"||zr(n))&&((t||(t={}))[n]=e[n]);return t},Vp=(e,t)=>{const n={};for(const o in e)(!$l(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Np(e,t,n){const{props:o,children:r,component:s}=e,{props:l,children:i,patchFlag:a}=t,d=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?qi(o,l,d):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function Hp(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):Xf(e)}const Te=Symbol.for("v-fgt"),ls=Symbol.for("v-txt"),It=Symbol.for("v-cmt"),vr=Symbol.for("v-stc"),Ao=[];let dt=null;function w(e=!1){Ao.push(dt=e?null:[])}function zp(){Ao.pop(),dt=Ao[Ao.length-1]||null}let Lo=1;function Gi(e){Lo+=e,e<0&&dt&&(dt.hasOnce=!0)}function fc(e){return e.dynamicChildren=Lo>0?dt||Xn:null,zp(),Lo>0&&dt&&dt.push(e),e}function z(e,t,n,o,r,s){return fc(P(e,t,n,o,r,s,!0))}function M(e,t,n,o,r){return fc(b(e,t,n,o,r,!0))}function Ar(e){return e?e.__v_isVNode===!0:!1}function bo(e,t){return e.type===t.type&&e.key===t.key}const pc=({key:e})=>e??null,yr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||Le(e)||de(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,o=0,r=null,s=e===Te?0:1,l=!1,i=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&pc(t),ref:t&&yr(t),scopeId:Du,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ze};return i?(ql(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=Ve(n)?8:16),Lo>0&&!l&&dt&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&dt.push(a),a}const b=Kp;function Kp(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===Uu)&&(e=It),Ar(e)){const i=Pn(e,t,!0);return n&&ql(i,n),Lo>0&&!s&&dt&&(i.shapeFlag&6?dt[dt.indexOf(e)]=i:dt.push(i)),i.patchFlag=-2,i}if(Xp(e)&&(e=e.__vccOpts),t){t=Je(t);let{class:i,style:a}=t;i&&!Ve(i)&&(t.class=le(i)),Me(a)&&(Ll(a)&&!oe(a)&&(a=Ze({},a)),t.style=qt(a))}const l=Ve(e)?1:dc(e)?128:ep(e)?64:Me(e)?4:de(e)?2:0;return P(e,t,n,o,r,l,s,!0)}function Je(e){return e?Ll(e)||tc(e)?Ze({},e):e:null}function Pn(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:l,children:i,transition:a}=e,d=t?te(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&pc(d),ref:t&&t.ref?n&&s?oe(s)?s.concat(yr(t)):[s,yr(t)]:yr(t):s,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!==Te?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pn(e.ssContent),ssFallback:e.ssFallback&&Pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&o&&Hl(u,a.clone(u)),u}function ee(e=" ",t=0){return b(ls,null,e,t)}function Wp(e,t){const n=b(vr,null,e);return n.staticCount=t,n}function ae(e="",t=!1){return t?(w(),M(It,null,e)):b(It,null,e)}function Ot(e){return e==null||typeof e=="boolean"?b(It):oe(e)?b(Te,null,e.slice()):typeof e=="object"?nn(e):b(ls,null,String(e))}function nn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Pn(e)}function ql(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(oe(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),ql(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!tc(t)?t._ctx=ze:r===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else de(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),o&64?(n=16,t=[ee(t)]):n=8);e.children=t,e.shapeFlag|=n}function te(...e){const t={};for(let n=0;nGe||ze;let $r,ol;{const e=ru(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),s=>{r.length>1?r.forEach(l=>l(s)):r[0](s)}};$r=t("__VUE_INSTANCE_SETTERS__",n=>Ge=n),ol=t("__VUE_SSR_SETTERS__",n=>is=n)}const Go=e=>{const t=Ge;return $r(e),e.scope.on(),()=>{e.scope.off(),$r(t)}},Zi=()=>{Ge&&Ge.scope.off(),$r(null)};function hc(e){return e.vnode.shapeFlag&4}let is=!1;function Zp(e,t=!1,n=!1){t&&ol(t);const{props:o,children:r}=e.vnode,s=hc(e);_p(e,o,s,t),Ep(e,r,n);const l=s?Jp(e,t):void 0;return t&&ol(!1),l}function Jp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pp);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?mc(e):null,s=Go(e);yn();const l=Uo(o,e,0,[e.props,r]);if(bn(),s(),eu(l)){if(oo(e)||Vu(e),l.then(Zi,Zi),t)return l.then(i=>{Ji(e,i,t)}).catch(i=>{es(i,e,0)});e.asyncDep=l}else Ji(e,l,t)}else gc(e,t)}function Ji(e,t,n){de(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Me(t)&&(e.setupState=Tu(t)),gc(e,n)}let Yi;function gc(e,t,n){const o=e.type;if(!e.render){if(!t&&Yi&&!o.render){const r=o.template||zl(e).template;if(r){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:i,compilerOptions:a}=o,d=Ze(Ze({isCustomElement:s,delimiters:i},l),a);o.render=Yi(r,d)}}e.render=o.render||At}{const r=Go(e);yn();try{gp(e)}finally{bn(),r()}}}const Yp={get(e,t){return Xe(e,"get",""),e[t]}};function mc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Yp),slots:e.slots,emit:e.emit,expose:t}}function as(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Tu(Eu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in To)return To[n](e)},has(t,n){return n in t||n in To}})):e.proxy}function Qp(e,t=!0){return de(e)?e.displayName||e.name:e.name||t&&e.__name}function Xp(e){return de(e)&&"__vccOpts"in e}const N=(e,t)=>Gf(e,t,is);function we(e,t,n){const o=arguments.length;return o===2?Me(t)&&!oe(t)?Ar(t)?b(e,null,[t]):b(e,t):b(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Ar(n)&&(n=[n]),b(e,t,n))}const eh="3.5.6";/** * @vue/runtime-dom v3.5.6 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let rl;const Qi=typeof window<"u"&&window.trustedTypes;if(Qi)try{rl=Qi.createPolicy("vue",{createHTML:e=>e})}catch{}const vc=rl?e=>rl.createHTML(e):e=>e,th="http://www.w3.org/2000/svg",nh="http://www.w3.org/1998/Math/MathML",Nt=typeof document<"u"?document:null,Xi=Nt&&Nt.createElement("template"),oh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Nt.createElementNS(th,e):t==="mathml"?Nt.createElementNS(nh,e):n?Nt.createElement(e,{is:n}):Nt.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const l=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Xi.innerHTML=vc(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const i=Xi.content;if(o==="svg"||o==="mathml"){const a=i.firstChild;for(;a.firstChild;)i.appendChild(a.firstChild);i.removeChild(a)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rh=Symbol("_vtc");function sh(e,t,n){const o=e[rh];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ea=Symbol("_vod"),lh=Symbol("_vsh"),ih=Symbol(""),ah=/(^|;)\s*display\s*:/;function uh(e,t,n){const o=e.style,r=Ve(n);let s=!1;if(n&&!r){if(t)if(Ve(t))for(const l of t.split(";")){const i=l.slice(0,l.indexOf(":")).trim();n[i]==null&&br(o,i,"")}else for(const l in t)n[l]==null&&br(o,l,"");for(const l in n)l==="display"&&(s=!0),br(o,l,n[l])}else if(r){if(t!==n){const l=o[ih];l&&(n+=";"+l),o.cssText=n,s=ah.test(n)}}else t&&e.removeAttribute("style");ea in e&&(e[ea]=s?o.display:"",e[lh]&&(o.display="none"))}const ta=/\s*!important$/;function br(e,t,n){if(oe(n))n.forEach(o=>br(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=ch(e,t);ta.test(n)?e.setProperty(mn(o),n.replace(ta,""),"important"):e[o]=n}}const na=["Webkit","Moz","ms"],Bs={};function ch(e,t){const n=Bs[t];if(n)return n;let o=pt(t);if(o!=="filter"&&o in e)return Bs[t]=o;o=Ur(o);for(let r=0;rRs||(gh.then(()=>Rs=0),Rs=Date.now());function vh(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Mt(yh(o,n.value),t,5,[o])};return n.value=e,n.attached=mh(),n}function yh(e,t){if(oe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const ia=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bh=(e,t,n,o,r,s)=>{const l=r==="svg";t==="class"?sh(e,o,l):t==="style"?uh(e,n,o):zr(t)?$l(t)||ph(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wh(e,t,o,l))?(dh(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ra(e,t,o,l,s,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ra(e,t,o,l))};function wh(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ia(t)&&de(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ia(t)&&Ve(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Ve(n)))}const Pr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return oe(t)?n=>gr(t,n):t};function xh(e){e.target.composing=!0}function aa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lo=Symbol("_assign"),us={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[lo]=Pr(r);const s=o||r.props&&r.props.type==="number";Tn(e,t?"change":"input",l=>{if(l.target.composing)return;let i=e.value;n&&(i=i.trim()),s&&(i=Sr(i)),e[lo](i)}),n&&Tn(e,"change",()=>{e.value=e.value.trim()}),t||(Tn(e,"compositionstart",xh),Tn(e,"compositionend",aa),Tn(e,"change",aa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:s}},l){if(e[lo]=Pr(l),e.composing)return;const i=(s||e.type==="number")&&!/^0\d/.test(e.value)?Sr(e.value):e.value,a=t??"";i!==a&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||r&&e.value.trim()===a)||(e.value=a))}},_h={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=Kr(t);Tn(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Sr(Mr(l)):Mr(l));e[lo](e.multiple?r?new Set(s):s:s[0]),e._assigning=!0,Ae(()=>{e._assigning=!1})}),e[lo]=Pr(o)},mounted(e,{value:t,modifiers:{number:n}}){ua(e,t)},beforeUpdate(e,t,n){e[lo]=Pr(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ua(e,t)}};function ua(e,t,n){const o=e.multiple,r=oe(t);if(!(o&&!r&&!Kr(t))){for(let s=0,l=e.options.length;sString(u)===String(a)):i.selected=yf(t,a)>-1}else i.selected=t.has(a);else if(qr(Mr(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Mr(e){return"_value"in e?e._value:e.value}const Ch=["ctrl","shift","alt","meta"],Sh={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)=>Ch.some(n=>e[`${n}Key`]&&!t.includes(n))},$t=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...s)=>{for(let l=0;l{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const s=mn(r.key);if(t.some(l=>l===s||kh[l]===s))return e(r)})},Eh=Ze({patchProp:bh},oh);let ca;function Oh(){return ca||(ca=Tp(Eh))}const Th=(...e)=>{const t=Oh().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=$h(o);if(!r)return;const s=t._component;!de(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,Ah(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function Ah(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $h(e){return Ve(e)?document.querySelector(e):e}function yc(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M13.836 2.477a.75.75 0 0 1 .75.75v3.182a.75.75 0 0 1-.75.75h-3.182a.75.75 0 0 1 0-1.5h1.37l-.84-.841a4.5 4.5 0 0 0-7.08.932.75.75 0 0 1-1.3-.75 6 6 0 0 1 9.44-1.242l.842.84V3.227a.75.75 0 0 1 .75-.75Zm-.911 7.5A.75.75 0 0 1 13.199 11a6 6 0 0 1-9.44 1.241l-.84-.84v1.371a.75.75 0 0 1-1.5 0V9.591a.75.75 0 0 1 .75-.75H5.35a.75.75 0 0 1 0 1.5H3.98l.841.841a4.5 4.5 0 0 0 7.08-.932.75.75 0 0 1 1.025-.273Z","clip-rule":"evenodd"})])}function Ph(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M12.5 9.75A2.75 2.75 0 0 0 9.75 7H4.56l2.22 2.22a.75.75 0 1 1-1.06 1.06l-3.5-3.5a.75.75 0 0 1 0-1.06l3.5-3.5a.75.75 0 0 1 1.06 1.06L4.56 5.5h5.19a4.25 4.25 0 0 1 0 8.5h-1a.75.75 0 0 1 0-1.5h1a2.75 2.75 0 0 0 2.75-2.75Z","clip-rule":"evenodd"})])}function Ir(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M10.47 2.22a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1 0 1.06l-2.25 2.25a.75.75 0 1 1-1.06-1.06l.97-.97H5.75a.75.75 0 0 1 0-1.5h5.69l-.97-.97a.75.75 0 0 1 0-1.06Zm-4.94 6a.75.75 0 0 1 0 1.06l-.97.97h5.69a.75.75 0 0 1 0 1.5H4.56l.97.97a.75.75 0 1 1-1.06 1.06l-2.25-2.25a.75.75 0 0 1 0-1.06l2.25-2.25a.75.75 0 0 1 1.06 0Z","clip-rule":"evenodd"})])}function Mh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M2 3.75A.75.75 0 0 1 2.75 3h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 3.75ZM2 8a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 8Zm0 4.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z","clip-rule":"evenodd"})])}function Ih(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M2 2.75A.75.75 0 0 1 2.75 2h9.5a.75.75 0 0 1 0 1.5h-9.5A.75.75 0 0 1 2 2.75ZM2 6.25a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5A.75.75 0 0 1 2 6.25Zm0 3.5A.75.75 0 0 1 2.75 9h3.5a.75.75 0 0 1 0 1.5h-3.5A.75.75 0 0 1 2 9.75ZM9.22 9.53a.75.75 0 0 1 0-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1-1.06 1.06l-.97-.97v5.69a.75.75 0 0 1-1.5 0V8.56l-.97.97a.75.75 0 0 1-1.06 0Z","clip-rule":"evenodd"})])}function Zo(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function Gl(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function Bh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M5.22 10.22a.75.75 0 0 1 1.06 0L8 11.94l1.72-1.72a.75.75 0 1 1 1.06 1.06l-2.25 2.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 0 1 0-1.06ZM10.78 5.78a.75.75 0 0 1-1.06 0L8 4.06 6.28 5.78a.75.75 0 0 1-1.06-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function Rh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M11.78 9.78a.75.75 0 0 1-1.06 0L8 7.06 5.28 9.78a.75.75 0 0 1-1.06-1.06l3.25-3.25a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function Dh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{d:"M8 7c3.314 0 6-1.343 6-3s-2.686-3-6-3-6 1.343-6 3 2.686 3 6 3Z"}),$("path",{d:"M8 8.5c1.84 0 3.579-.37 4.914-1.037A6.33 6.33 0 0 0 14 6.78V8c0 1.657-2.686 3-6 3S2 9.657 2 8V6.78c.346.273.72.5 1.087.683C4.42 8.131 6.16 8.5 8 8.5Z"}),$("path",{d:"M8 12.5c1.84 0 3.579-.37 4.914-1.037.366-.183.74-.41 1.086-.684V12c0 1.657-2.686 3-6 3s-6-1.343-6-3v-1.22c.346.273.72.5 1.087.683C4.42 12.131 6.16 12.5 8 12.5Z"})])}function sl(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M10.986 3H12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h1.014A2.25 2.25 0 0 1 7.25 1h1.5a2.25 2.25 0 0 1 2.236 2ZM9.5 4v-.75a.75.75 0 0 0-.75-.75h-1.5a.75.75 0 0 0-.75.75V4h3Z","clip-rule":"evenodd"})])}function jh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M4.78 4.97a.75.75 0 0 1 0 1.06L2.81 8l1.97 1.97a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM11.22 4.97a.75.75 0 0 0 0 1.06L13.19 8l-1.97 1.97a.75.75 0 1 0 1.06 1.06l2.5-2.5a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 0 0-1.06 0ZM8.856 2.008a.75.75 0 0 1 .636.848l-1.5 10.5a.75.75 0 0 1-1.484-.212l1.5-10.5a.75.75 0 0 1 .848-.636Z","clip-rule":"evenodd"})])}function Lh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M2 4.25A2.25 2.25 0 0 1 4.25 2h7.5A2.25 2.25 0 0 1 14 4.25v5.5A2.25 2.25 0 0 1 11.75 12h-1.312c.1.128.21.248.328.36a.75.75 0 0 1 .234.545v.345a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1-.75-.75v-.345a.75.75 0 0 1 .234-.545c.118-.111.228-.232.328-.36H4.25A2.25 2.25 0 0 1 2 9.75v-5.5Zm2.25-.75a.75.75 0 0 0-.75.75v4.5c0 .414.336.75.75.75h7.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 0 0-.75-.75h-7.5Z","clip-rule":"evenodd"})])}function Zl(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M4 2a1.5 1.5 0 0 0-1.5 1.5v9A1.5 1.5 0 0 0 4 14h8a1.5 1.5 0 0 0 1.5-1.5V6.621a1.5 1.5 0 0 0-.44-1.06L9.94 2.439A1.5 1.5 0 0 0 8.878 2H4Zm1 5.75A.75.75 0 0 1 5.75 7h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 5 7.75Zm0 3a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z","clip-rule":"evenodd"})])}function Vh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{d:"M8 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM8 6.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM9.5 12.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z"})])}function Nh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM9 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6.75 8a.75.75 0 0 0 0 1.5h.75v1.75a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8.25 8h-1.5Z","clip-rule":"evenodd"})])}function Fh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M8.914 6.025a.75.75 0 0 1 1.06 0 3.5 3.5 0 0 1 0 4.95l-2 2a3.5 3.5 0 0 1-5.396-4.402.75.75 0 0 1 1.251.827 2 2 0 0 0 3.085 2.514l2-2a2 2 0 0 0 0-2.828.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"}),$("path",{"fill-rule":"evenodd",d:"M7.086 9.975a.75.75 0 0 1-1.06 0 3.5 3.5 0 0 1 0-4.95l2-2a3.5 3.5 0 0 1 5.396 4.402.75.75 0 0 1-1.251-.827 2 2 0 0 0-3.085-2.514l-2 2a2 2 0 0 0 0 2.828.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function Hh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z","clip-rule":"evenodd"})])}function zh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{d:"M3.75 7.25a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5h-8.5Z"})])}function da(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{d:"M14.438 10.148c.19-.425-.321-.787-.748-.601A5.5 5.5 0 0 1 6.453 2.31c.186-.427-.176-.938-.6-.748a6.501 6.501 0 1 0 8.585 8.586Z"})])}function Kh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{d:"M8.75 3.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 0 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z"})])}function Wh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{d:"M4.75 4.25a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z"}),$("path",{"fill-rule":"evenodd",d:"M2 3.5A1.5 1.5 0 0 1 3.5 2H6a1.5 1.5 0 0 1 1.5 1.5V6A1.5 1.5 0 0 1 6 7.5H3.5A1.5 1.5 0 0 1 2 6V3.5Zm1.5 0H6V6H3.5V3.5Z","clip-rule":"evenodd"}),$("path",{d:"M4.25 11.25a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Z"}),$("path",{"fill-rule":"evenodd",d:"M2 10a1.5 1.5 0 0 1 1.5-1.5H6A1.5 1.5 0 0 1 7.5 10v2.5A1.5 1.5 0 0 1 6 14H3.5A1.5 1.5 0 0 1 2 12.5V10Zm1.5 2.5V10H6v2.5H3.5Z","clip-rule":"evenodd"}),$("path",{d:"M11.25 4.25a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z"}),$("path",{"fill-rule":"evenodd",d:"M10 2a1.5 1.5 0 0 0-1.5 1.5V6A1.5 1.5 0 0 0 10 7.5h2.5A1.5 1.5 0 0 0 14 6V3.5A1.5 1.5 0 0 0 12.5 2H10Zm2.5 1.5H10V6h2.5V3.5Z","clip-rule":"evenodd"}),$("path",{d:"M8.5 9.417a.917.917 0 1 1 1.833 0 .917.917 0 0 1-1.833 0ZM8.5 13.083a.917.917 0 1 1 1.833 0 .917.917 0 0 1-1.833 0ZM13.083 8.5a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.833ZM12.166 13.084a.917.917 0 1 1 1.833 0 .917.917 0 0 1-1.833 0ZM11.25 10.333a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.833Z"})])}function fa(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{d:"M8 1a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 8 1ZM10.5 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM12.95 4.11a.75.75 0 1 0-1.06-1.06l-1.062 1.06a.75.75 0 0 0 1.061 1.062l1.06-1.061ZM15 8a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 15 8ZM11.89 12.95a.75.75 0 0 0 1.06-1.06l-1.06-1.062a.75.75 0 0 0-1.062 1.061l1.061 1.06ZM8 12a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 8 12ZM5.172 11.89a.75.75 0 0 0-1.061-1.062L3.05 11.89a.75.75 0 1 0 1.06 1.06l1.06-1.06ZM4 8a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 4 8ZM4.11 5.172A.75.75 0 0 0 5.173 4.11L4.11 3.05a.75.75 0 1 0-1.06 1.06l1.06 1.06Z"})])}function Uh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{"fill-rule":"evenodd",d:"M5 3.25V4H2.75a.75.75 0 0 0 0 1.5h.3l.815 8.15A1.5 1.5 0 0 0 5.357 15h5.285a1.5 1.5 0 0 0 1.493-1.35l.815-8.15h.3a.75.75 0 0 0 0-1.5H11v-.75A2.25 2.25 0 0 0 8.75 1h-1.5A2.25 2.25 0 0 0 5 3.25Zm2.25-.75a.75.75 0 0 0-.75.75V4h3v-.75a.75.75 0 0 0-.75-.75h-1.5ZM6.05 6a.75.75 0 0 1 .787.713l.275 5.5a.75.75 0 0 1-1.498.075l-.275-5.5A.75.75 0 0 1 6.05 6Zm3.9 0a.75.75 0 0 1 .712.787l-.275 5.5a.75.75 0 0 1-1.498-.075l.275-5.5a.75.75 0 0 1 .786-.711Z","clip-rule":"evenodd"})])}function bc(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[$("path",{d:"M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z"})])}const qh=["top","right","bottom","left"],fn=Math.min,ct=Math.max,Br=Math.round,ir=Math.floor,pn=e=>({x:e,y:e}),Gh={left:"right",right:"left",bottom:"top",top:"bottom"},Zh={start:"end",end:"start"};function ll(e,t,n){return ct(e,fn(t,n))}function Wt(e,t){return typeof e=="function"?e(t):e}function Ut(e){return e.split("-")[0]}function fo(e){return e.split("-")[1]}function Jl(e){return e==="x"?"y":"x"}function Yl(e){return e==="y"?"height":"width"}function hn(e){return["top","bottom"].includes(Ut(e))?"y":"x"}function Ql(e){return Jl(hn(e))}function Jh(e,t,n){n===void 0&&(n=!1);const o=fo(e),r=Ql(e),s=Yl(r);let l=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Rr(l)),[l,Rr(l)]}function Yh(e){const t=Rr(e);return[il(e),t,il(t)]}function il(e){return e.replace(/start|end/g,t=>Zh[t])}function Qh(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:l;default:return[]}}function Xh(e,t,n,o){const r=fo(e);let s=Qh(Ut(e),n==="start",o);return r&&(s=s.map(l=>l+"-"+r),t&&(s=s.concat(s.map(il)))),s}function Rr(e){return e.replace(/left|right|bottom|top/g,t=>Gh[t])}function eg(e){return{top:0,right:0,bottom:0,left:0,...e}}function wc(e){return typeof e!="number"?eg(e):{top:e,right:e,bottom:e,left:e}}function Dr(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function pa(e,t,n){let{reference:o,floating:r}=e;const s=hn(t),l=Ql(t),i=Yl(l),a=Ut(t),d=s==="y",u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[i]/2-r[i]/2;let h;switch(a){case"top":h={x:u,y:o.y-r.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(fo(t)){case"start":h[l]-=p*(n&&d?-1:1);break;case"end":h[l]+=p*(n&&d?-1:1);break}return h}const tg=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:l}=n,i=s.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:f}=pa(d,o,a),p=o,h={},g=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:l,elements:i,middlewareData:a}=t,{element:d,padding:u=0}=Wt(e,t)||{};if(d==null)return{};const f=wc(u),p={x:n,y:o},h=Ql(r),g=Yl(h),m=await l.getDimensions(d),y=h==="y",_=y?"top":"left",k=y?"bottom":"right",C=y?"clientHeight":"clientWidth",T=s.reference[g]+s.reference[h]-p[h]-s.floating[g],B=p[h]-s.reference[h],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let E=A?A[C]:0;(!E||!await(l.isElement==null?void 0:l.isElement(A)))&&(E=i.floating[C]||s.floating[g]);const R=T/2-B/2,L=E/2-m[g]/2-1,S=fn(f[_],L),F=fn(f[k],L),V=S,xe=E-m[g]-F,ve=E/2-m[g]/2+R,Fe=ll(V,ve,xe),ye=!a.arrow&&fo(r)!=null&&ve!==Fe&&s.reference[g]/2-(veve<=0)){var F,V;const ve=(((F=s.flip)==null?void 0:F.index)||0)+1,Fe=E[ve];if(Fe)return{data:{index:ve,overflows:S},reset:{placement:Fe}};let ye=(V=S.filter(fe=>fe.overflows[0]<=0).sort((fe,ue)=>fe.overflows[1]-ue.overflows[1])[0])==null?void 0:V.placement;if(!ye)switch(h){case"bestFit":{var xe;const fe=(xe=S.filter(ue=>{if(A){const Be=hn(ue.placement);return Be===k||Be==="y"}return!0}).map(ue=>[ue.placement,ue.overflows.filter(Be=>Be>0).reduce((Be,st)=>Be+st,0)]).sort((ue,Be)=>ue[1]-Be[1])[0])==null?void 0:xe[0];fe&&(ye=fe);break}case"initialPlacement":ye=i;break}if(r!==ye)return{reset:{placement:ye}}}return{}}}};function ha(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ga(e){return qh.some(t=>e[t]>=0)}const rg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Wt(e,t);switch(o){case"referenceHidden":{const s=await Vo(t,{...r,elementContext:"reference"}),l=ha(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:ga(l)}}}case"escaped":{const s=await Vo(t,{...r,altBoundary:!0}),l=ha(s,n.floating);return{data:{escapedOffsets:l,escaped:ga(l)}}}default:return{}}}}};async function sg(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),l=Ut(n),i=fo(n),a=hn(n)==="y",d=["left","top"].includes(l)?-1:1,u=s&&a?-1:1,f=Wt(t,e);let{mainAxis:p,crossAxis:h,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"&&(h=i==="end"?g*-1:g),a?{x:h*u,y:p*d}:{x:p*d,y:h*u}}const lg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:l,middlewareData:i}=t,a=await sg(t,e);return l===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:s+a.y,data:{...a,placement:l}}}}},ig=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:i={fn:y=>{let{x:_,y:k}=y;return{x:_,y:k}}},...a}=Wt(e,t),d={x:n,y:o},u=await Vo(t,a),f=hn(Ut(r)),p=Jl(f);let h=d[p],g=d[f];if(s){const y=p==="y"?"top":"left",_=p==="y"?"bottom":"right",k=h+u[y],C=h-u[_];h=ll(k,h,C)}if(l){const y=f==="y"?"top":"left",_=f==="y"?"bottom":"right",k=g+u[y],C=g-u[_];g=ll(k,g,C)}const m=i.fn({...t,[p]:h,[f]:g});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[p]:s,[f]:l}}}}}},ag=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:l}=t,{offset:i=0,mainAxis:a=!0,crossAxis:d=!0}=Wt(e,t),u={x:n,y:o},f=hn(r),p=Jl(f);let h=u[p],g=u[f];const m=Wt(i,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const C=p==="y"?"height":"width",T=s.reference[p]-s.floating[C]+y.mainAxis,B=s.reference[p]+s.reference[C]-y.mainAxis;hB&&(h=B)}if(d){var _,k;const C=p==="y"?"width":"height",T=["top","left"].includes(Ut(r)),B=s.reference[f]-s.floating[C]+(T&&((_=l.offset)==null?void 0:_[f])||0)+(T?0:y.crossAxis),A=s.reference[f]+s.reference[C]+(T?0:((k=l.offset)==null?void 0:k[f])||0)-(T?y.crossAxis:0);gA&&(g=A)}return{[p]:h,[f]:g}}}},ug=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:l,elements:i}=t,{apply:a=()=>{},...d}=Wt(e,t),u=await Vo(t,d),f=Ut(r),p=fo(r),h=hn(r)==="y",{width:g,height:m}=s.floating;let y,_;f==="top"||f==="bottom"?(y=f,_=p===(await(l.isRTL==null?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(_=f,y=p==="end"?"top":"bottom");const k=m-u.top-u.bottom,C=g-u.left-u.right,T=fn(m-u[y],k),B=fn(g-u[_],C),A=!t.middlewareData.shift;let E=T,R=B;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=k),A&&!p){const S=ct(u.left,0),F=ct(u.right,0),V=ct(u.top,0),xe=ct(u.bottom,0);h?R=g-2*(S!==0||F!==0?S+F:ct(u.left,u.right)):E=m-2*(V!==0||xe!==0?V+xe:ct(u.top,u.bottom))}await a({...t,availableWidth:R,availableHeight:E});const L=await l.getDimensions(i.floating);return g!==L.width||m!==L.height?{reset:{rects:!0}}:{}}}};function ds(){return typeof window<"u"}function Nn(e){return Xl(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rt(e){var t;return(t=(Xl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xl(e){return ds()?e instanceof Node||e instanceof ft(e).Node:!1}function _t(e){return ds()?e instanceof Element||e instanceof ft(e).Element:!1}function Bt(e){return ds()?e instanceof HTMLElement||e instanceof ft(e).HTMLElement:!1}function ma(e){return!ds()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function Jo(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function cg(e){return["table","td","th"].includes(Nn(e))}function fs(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ei(e){const t=ti(),n=_t(e)?Ct(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function dg(e){let t=gn(e);for(;Bt(t)&&!uo(t);){if(ei(t))return t;if(fs(t))return null;t=gn(t)}return null}function ti(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uo(e){return["html","body","#document"].includes(Nn(e))}function Ct(e){return ft(e).getComputedStyle(e)}function ps(e){return _t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gn(e){if(Nn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ma(e)&&e.host||Rt(e);return ma(t)?t.host:t}function xc(e){const t=gn(e);return uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(t)&&Jo(t)?t:xc(t)}function No(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=xc(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),l=ft(r);if(s){const i=al(l);return t.concat(l,l.visualViewport||[],Jo(r)?r:[],i&&n?No(i):[])}return t.concat(r,No(r,[],n))}function al(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _c(e){const t=Ct(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Bt(e),s=r?e.offsetWidth:n,l=r?e.offsetHeight:o,i=Br(n)!==s||Br(o)!==l;return i&&(n=s,o=l),{width:n,height:o,$:i}}function ni(e){return _t(e)?e:e.contextElement}function io(e){const t=ni(e);if(!Bt(t))return pn(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=_c(t);let l=(s?Br(n.width):n.width)/o,i=(s?Br(n.height):n.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!i||!Number.isFinite(i))&&(i=1),{x:l,y:i}}const fg=pn(0);function Cc(e){const t=ft(e);return!ti()||!t.visualViewport?fg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ft(e)?!1:t}function Mn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=ni(e);let l=pn(1);t&&(o?_t(o)&&(l=io(o)):l=io(e));const i=pg(s,n,o)?Cc(s):pn(0);let a=(r.left+i.x)/l.x,d=(r.top+i.y)/l.y,u=r.width/l.x,f=r.height/l.y;if(s){const p=ft(s),h=o&&_t(o)?ft(o):o;let g=p,m=al(g);for(;m&&o&&h!==g;){const y=io(m),_=m.getBoundingClientRect(),k=Ct(m),C=_.left+(m.clientLeft+parseFloat(k.paddingLeft))*y.x,T=_.top+(m.clientTop+parseFloat(k.paddingTop))*y.y;a*=y.x,d*=y.y,u*=y.x,f*=y.y,a+=C,d+=T,g=ft(m),m=al(g)}}return Dr({width:u,height:f,x:a,y:d})}function hg(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",l=Rt(o),i=t?fs(t.floating):!1;if(o===l||i&&s)return n;let a={scrollLeft:0,scrollTop:0},d=pn(1);const u=pn(0),f=Bt(o);if((f||!f&&!s)&&((Nn(o)!=="body"||Jo(l))&&(a=ps(o)),Bt(o))){const p=Mn(o);d=io(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-a.scrollLeft*d.x+u.x,y:n.y*d.y-a.scrollTop*d.y+u.y}}function gg(e){return Array.from(e.getClientRects())}function ul(e,t){const n=ps(e).scrollLeft;return t?t.left+n:Mn(Rt(e)).left+n}function mg(e){const t=Rt(e),n=ps(e),o=e.ownerDocument.body,r=ct(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ct(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+ul(e);const i=-n.scrollTop;return Ct(o).direction==="rtl"&&(l+=ct(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:l,y:i}}function vg(e,t){const n=ft(e),o=Rt(e),r=n.visualViewport;let s=o.clientWidth,l=o.clientHeight,i=0,a=0;if(r){s=r.width,l=r.height;const d=ti();(!d||d&&t==="fixed")&&(i=r.offsetLeft,a=r.offsetTop)}return{width:s,height:l,x:i,y:a}}function yg(e,t){const n=Mn(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Bt(e)?io(e):pn(1),l=e.clientWidth*s.x,i=e.clientHeight*s.y,a=r*s.x,d=o*s.y;return{width:l,height:i,x:a,y:d}}function va(e,t,n){let o;if(t==="viewport")o=vg(e,n);else if(t==="document")o=mg(Rt(e));else if(_t(t))o=yg(t,n);else{const r=Cc(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Dr(o)}function Sc(e,t){const n=gn(e);return n===t||!_t(n)||uo(n)?!1:Ct(n).position==="fixed"||Sc(n,t)}function bg(e,t){const n=t.get(e);if(n)return n;let o=No(e,[],!1).filter(i=>_t(i)&&Nn(i)!=="body"),r=null;const s=Ct(e).position==="fixed";let l=s?gn(e):e;for(;_t(l)&&!uo(l);){const i=Ct(l),a=ei(l);!a&&i.position==="fixed"&&(r=null),(s?!a&&!r:!a&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Jo(l)&&!a&&Sc(e,l))?o=o.filter(u=>u!==l):r=i,l=gn(l)}return t.set(e,o),o}function wg(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const l=[...n==="clippingAncestors"?fs(t)?[]:bg(t,this._c):[].concat(n),o],i=l[0],a=l.reduce((d,u)=>{const f=va(t,u,r);return d.top=ct(f.top,d.top),d.right=fn(f.right,d.right),d.bottom=fn(f.bottom,d.bottom),d.left=ct(f.left,d.left),d},va(t,i,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function xg(e){const{width:t,height:n}=_c(e);return{width:t,height:n}}function _g(e,t,n){const o=Bt(t),r=Rt(t),s=n==="fixed",l=Mn(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const a=pn(0);if(o||!o&&!s)if((Nn(t)!=="body"||Jo(r))&&(i=ps(t)),o){const h=Mn(t,!0,s,t);a.x=h.x+t.clientLeft,a.y=h.y+t.clientTop}else r&&(a.x=ul(r));let d=0,u=0;if(r&&!o&&!s){const h=r.getBoundingClientRect();u=h.top+i.scrollTop,d=h.left+i.scrollLeft-ul(r,h)}const f=l.left+i.scrollLeft-a.x-d,p=l.top+i.scrollTop-a.y-u;return{x:f,y:p,width:l.width,height:l.height}}function Ds(e){return Ct(e).position==="static"}function ya(e,t){if(!Bt(e)||Ct(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rt(e)===n&&(n=n.ownerDocument.body),n}function kc(e,t){const n=ft(e);if(fs(e))return n;if(!Bt(e)){let r=gn(e);for(;r&&!uo(r);){if(_t(r)&&!Ds(r))return r;r=gn(r)}return n}let o=ya(e,t);for(;o&&cg(o)&&Ds(o);)o=ya(o,t);return o&&uo(o)&&Ds(o)&&!ei(o)?n:o||dg(e)||n}const Cg=async function(e){const t=this.getOffsetParent||kc,n=this.getDimensions,o=await n(e.floating);return{reference:_g(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Sg(e){return Ct(e).direction==="rtl"}const kg={convertOffsetParentRelativeRectToViewportRelativeRect:hg,getDocumentElement:Rt,getClippingRect:wg,getOffsetParent:kc,getElementRects:Cg,getClientRects:gg,getDimensions:xg,getScale:io,isElement:_t,isRTL:Sg};function Eg(e,t){let n=null,o;const r=Rt(e);function s(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function l(i,a){i===void 0&&(i=!1),a===void 0&&(a=1),s();const{left:d,top:u,width:f,height:p}=e.getBoundingClientRect();if(i||t(),!f||!p)return;const h=ir(u),g=ir(r.clientWidth-(d+f)),m=ir(r.clientHeight-(u+p)),y=ir(d),k={rootMargin:-h+"px "+-g+"px "+-m+"px "+-y+"px",threshold:ct(0,fn(1,a))||1};let C=!0;function T(B){const A=B[0].intersectionRatio;if(A!==a){if(!C)return l();A?l(!1,A):o=setTimeout(()=>{l(!1,1e-7)},1e3)}C=!1}try{n=new IntersectionObserver(T,{...k,root:r.ownerDocument})}catch{n=new IntersectionObserver(T,k)}n.observe(e)}return l(!0),s}function Og(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,d=ni(e),u=r||s?[...d?No(d):[],...No(t)]:[];u.forEach(_=>{r&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const f=d&&i?Eg(d,n):null;let p=-1,h=null;l&&(h=new ResizeObserver(_=>{let[k]=_;k&&k.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(t)})),n()}),d&&!a&&h.observe(d),h.observe(t));let g,m=a?Mn(e):null;a&&y();function y(){const _=Mn(e);m&&(_.x!==m.x||_.y!==m.y||_.width!==m.width||_.height!==m.height)&&n(),m=_,g=requestAnimationFrame(y)}return n(),()=>{var _;u.forEach(k=>{r&&k.removeEventListener("scroll",n),s&&k.removeEventListener("resize",n)}),f==null||f(),(_=h)==null||_.disconnect(),h=null,a&&cancelAnimationFrame(g)}}const Tg=lg,Ag=ig,ba=og,$g=ug,Pg=rg,Mg=ng,Ig=ag,Bg=(e,t,n)=>{const o=new Map,r={platform:kg,...n},s={...r.platform,_c:o};return tg(e,t,{...r,platform:s})};function Rg(e){return e!=null&&typeof e=="object"&&"$el"in e}function cl(e){if(Rg(e)){const t=e.$el;return Xl(t)&&Nn(t)==="#comment"?null:t}return e}function Zn(e){return typeof e=="function"?e():c(e)}function Dg(e){return{name:"arrow",options:e,fn(t){const n=cl(Zn(e.element));return n==null?{}:Mg({element:n,padding:e.padding}).fn(t)}}}function Ec(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wa(e,t){const n=Ec(e);return Math.round(t*n)/n}function jg(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,r=N(()=>{var E;return(E=Zn(n.open))!=null?E:!0}),s=N(()=>Zn(n.middleware)),l=N(()=>{var E;return(E=Zn(n.placement))!=null?E:"bottom"}),i=N(()=>{var E;return(E=Zn(n.strategy))!=null?E:"absolute"}),a=N(()=>{var E;return(E=Zn(n.transform))!=null?E:!0}),d=N(()=>cl(e.value)),u=N(()=>cl(t.value)),f=I(0),p=I(0),h=I(i.value),g=I(l.value),m=Ro({}),y=I(!1),_=N(()=>{const E={position:h.value,left:"0",top:"0"};if(!u.value)return E;const R=wa(u.value,f.value),L=wa(u.value,p.value);return a.value?{...E,transform:"translate("+R+"px, "+L+"px)",...Ec(u.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:R+"px",top:L+"px"}});let k;function C(){if(d.value==null||u.value==null)return;const E=r.value;Bg(d.value,u.value,{middleware:s.value,placement:l.value,strategy:i.value}).then(R=>{f.value=R.x,p.value=R.y,h.value=R.strategy,g.value=R.placement,m.value=R.middlewareData,y.value=E!==!1})}function T(){typeof k=="function"&&(k(),k=void 0)}function B(){if(T(),o===void 0){C();return}if(d.value!=null&&u.value!=null){k=o(d.value,u.value,C);return}}function A(){r.value||(y.value=!1)}return me([s,l,i,r],C,{flush:"sync"}),me([d,u],B,{flush:"sync"}),me(r,A,{flush:"sync"}),Gr()&&Il(T),{x:Un(f),y:Un(p),strategy:Un(h),placement:Un(g),middlewareData:Un(m),isPositioned:Un(y),floatingStyles:_,update:C}}function Ne(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[r=>{const s=so(o,r);if(s||s===null)return s;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},r=>(Kl(o,r),r)]}function Oc(e,t,n){const o=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(r)}function xa(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(Math.max(e,t),n)}function wr(e){return e==null}function Lg(e,t){var n;const o=Ro();return We(()=>{o.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Ln(o)}function Yo(e){return Gr()?(Il(e),!0):!1}function Vg(){const e=new Set,t=n=>{e.delete(n)};return{on:n=>{e.add(n);const o=()=>t(n);return Yo(o),{off:o}},off:t,trigger:(...n)=>Promise.all(Array.from(e).map(o=>o(...n)))}}function Ng(e){let t=!1,n;const o=uu(!0);return(...r)=>(t||(n=o.run(()=>e(...r)),t=!0),n)}function Tc(e){let t=0,n,o;const r=()=>{t-=1,o&&t<=0&&(o.stop(),n=void 0,o=void 0)};return(...s)=>(t+=1,n||(o=uu(!0),n=o.run(()=>e(...s))),Yo(r),n)}function cn(e){return typeof e=="function"?e():c(e)}const Gt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fg=e=>typeof e<"u",Hg=Object.prototype.toString,zg=e=>Hg.call(e)==="[object Object]",Kg=()=>{},_a=Wg();function Wg(){var e,t;return Gt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ug(e){return yt()}function Ac(e,t=1e4){return Au((n,o)=>{let r=cn(e),s;const l=()=>setTimeout(()=>{r=cn(e),o()},cn(t));return Yo(()=>{clearTimeout(s)}),{get(){return n(),r},set(i){r=i,o(),clearTimeout(s),s=l()}}})}function qg(e,t){Ug()&&os(e,t)}function $c(e,t,n={}){const{immediate:o=!0}=n,r=I(!1);let s=null;function l(){s&&(clearTimeout(s),s=null)}function i(){r.value=!1,l()}function a(...d){l(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=null,e(...d)},cn(t))}return o&&(r.value=!0,Gt&&a()),Yo(i),{isPending:Ln(r),start:a,stop:i}}function Zt(e){var t;const n=cn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Pc=Gt?window:void 0;function co(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Pc):[t,n,o,r]=e,!t)return Kg;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(u=>u()),s.length=0},i=(u,f,p,h)=>(u.addEventListener(f,p,h),()=>u.removeEventListener(f,p,h)),a=me(()=>[Zt(t),cn(r)],([u,f])=>{if(l(),!u)return;const p=zg(f)?{...f}:f;s.push(...n.flatMap(h=>o.map(g=>i(u,h,g,p))))},{immediate:!0,flush:"post"}),d=()=>{a(),l()};return Yo(d),d}function Gg(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Zg(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=Pc,eventName:s="keydown",passive:l=!1,dedupe:i=!1}=o,a=Gg(t);return co(r,s,d=>{d.repeat&&cn(i)||a(d)&&n(d)},l)}function Jg(){const e=I(!1),t=yt();return t&&Ie(()=>{e.value=!0},t),e}function Yg(e){return JSON.parse(JSON.stringify(e))}function mt(e,t,n,o={}){var r,s,l;const{clone:i=!1,passive:a=!1,eventName:d,deep:u=!1,defaultValue:f,shouldEmit:p}=o,h=yt(),g=n||(h==null?void 0:h.emit)||((r=h==null?void 0:h.$emit)==null?void 0:r.bind(h))||((l=(s=h==null?void 0:h.proxy)==null?void 0:s.$emit)==null?void 0:l.bind(h==null?void 0:h.proxy));let m=d;t||(t="modelValue"),m=m||`update:${t.toString()}`;const y=C=>i?typeof i=="function"?i(C):Yg(C):C,_=()=>Fg(e[t])?y(e[t]):f,k=C=>{p?p(C)&&g(m,C):g(m,C)};if(a){const C=_(),T=I(C);let B=!1;return me(()=>e[t],A=>{B||(B=!0,T.value=y(A),Ae(()=>B=!1))}),me(T,A=>{!B&&(A!==e[t]||u)&&k(A)},{deep:u}),T}else return N({get(){return _()},set(C){k(C)}})}function hs(e){return e?e.flatMap(t=>t.type===Te?hs(t.children):[t]):[]}const Qg=["INPUT","TEXTAREA"];function Mc(e,t,n,o={}){if(!t||o.enableIgnoredElement&&Qg.includes(t.nodeName))return null;const{arrowKeyOptions:r="both",attributeName:s="[data-radix-vue-collection-item]",itemsArray:l=[],loop:i=!0,dir:a="ltr",preventScroll:d=!0,focus:u=!1}=o,[f,p,h,g,m,y]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],_=h||g,k=f||p;if(!m&&!y&&(!_&&!k||r==="vertical"&&k||r==="horizontal"&&_))return null;const C=n?Array.from(n.querySelectorAll(s)):l;if(!C.length)return null;d&&e.preventDefault();let T=null;return k||_?T=Ic(C,t,{goForward:_?g:a==="ltr"?f:p,loop:i}):m?T=C.at(0)||null:y&&(T=C.at(-1)||null),u&&(T==null||T.focus()),T}function Ic(e,t,n,o=e.length){if(--o===0)return null;const r=e.indexOf(t),s=n.goForward?r+1:r-1;if(!n.loop&&(s<0||s>=e.length))return null;const l=(s+e.length)%e.length,i=e[l];return i?i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false"?Ic(e,i,n,o):i:null}function js(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 dl(e,t,n=".",o){if(!js(t))return dl(e,{},n);const r=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const l=e[s];l!=null&&(Array.isArray(l)&&Array.isArray(r[s])?r[s]=[...l,...r[s]]:js(l)&&js(r[s])?r[s]=dl(l,r[s],(n?`${n}.`:"")+s.toString()):r[s]=l)}return r}function Xg(e){return(...t)=>t.reduce((n,o)=>dl(n,o,""),{})}const em=Xg(),[gs,A1]=Ne("ConfigProvider");let tm="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",nm=(e=21)=>{let t="",n=e;for(;n--;)t+=tm[Math.random()*64|0];return t};const om=Tc(()=>{const e=I(new Map),t=I(),n=N(()=>{for(const l of e.value.values())if(l)return!0;return!1}),o=gs({scrollBody:I(!0)});let r=null;const s=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",_a&&(r==null||r()),t.value=void 0};return me(n,(l,i)=>{var a;if(!Gt)return;if(!l){i&&s();return}t.value===void 0&&(t.value=document.body.style.overflow);const d=window.innerWidth-document.documentElement.clientWidth,u={padding:d,margin:0},f=(a=o.scrollBody)!=null&&a.value?typeof o.scrollBody.value=="object"?em({padding:o.scrollBody.value.padding===!0?d:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?d:o.scrollBody.value.margin},u):u:{padding:0,margin:0};d>0&&(document.body.style.paddingRight=`${f.padding}px`,document.body.style.marginRight=`${f.margin}px`,document.body.style.setProperty("--scrollbar-width",`${d}px`),document.body.style.overflow="hidden"),_a&&(r=co(document,"touchmove",p=>{var h;p.target===document.documentElement&&(p.touches.length>1||(h=p.preventDefault)==null||h.call(p))},{passive:!1})),Ae(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function oi(e){const t=nm(6),n=om();n.value.set(t,e??!1);const o=N({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return qg(()=>{n.value.delete(t)}),o}const rm="data-radix-vue-collection-item";function Qo(e,t=rm){const n=Symbol();return{createCollection:o=>{const r=I([]);function s(){const l=Zt(o);return l?r.value=Array.from(l.querySelectorAll(`[${t}]:not([data-disabled])`)):r.value=[]}return zu(()=>{r.value=[]}),Ie(s),Ku(s),me(()=>o==null?void 0:o.value,s,{immediate:!0}),Kl(n,r),r},injectCollection:()=>so(n,I([]))}}function po(e){const t=gs({dir:I("ltr")});return N(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function Xo(e){const t=yt(),n=t==null?void 0:t.type.emits,o={};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(r=>{o[ko(pt(r))]=(...s)=>e(r,...s)}),o}let Ls=0;function Bc(){We(e=>{if(!Gt)return;const t=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Ca()),document.body.insertAdjacentElement("beforeend",t[1]??Ca()),Ls++,e(()=>{Ls===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Ls--})})}function Ca(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}function Rc(e){return N(()=>{var t;return cn(e)?!!((t=Zt(e))!=null&&t.closest("form")):!0})}function ht(e){const t=yt(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((r,s)=>{const l=(t==null?void 0:t.type.props[s]).default;return l!==void 0&&(r[s]=l),r},{}),o=$u(e);return N(()=>{const r={},s=(t==null?void 0:t.vnode.props)??{};return Object.keys(s).forEach(l=>{r[pt(l)]=s[l]}),Object.keys({...n,...r}).reduce((l,i)=>(o.value[i]!==void 0&&(l[i]=o.value[i]),l),{})})}function Ue(e,t){const n=ht(e),o=t?Xo(t):{};return N(()=>({...n.value,...o}))}function le(){const e=yt(),t=I(),n=N(()=>{var l,i;return["#text","#comment"].includes((l=t.value)==null?void 0:l.$el.nodeName)?(i=t.value)==null?void 0:i.$el.nextElementSibling:Zt(t)}),o=Object.assign({},e.exposed),r={};for(const l in e.props)Object.defineProperty(r,l,{enumerable:!0,configurable:!0,get:()=>e.props[l]});if(Object.keys(o).length>0)for(const l in o)Object.defineProperty(r,l,{enumerable:!0,configurable:!0,get:()=>o[l]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=r;function s(l){t.value=l,!(l instanceof Element||!l)&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>l.$el}),e.exposed=r)}return{forwardRef:s,currentRef:t,currentElement:n}}function sm(e,t){const n=Ac(!1,300),o=I(null),r=Vg();function s(){o.value=null,n.value=!1}function l(i,a){const d=i.currentTarget,u={x:i.clientX,y:i.clientY},f=lm(u,d.getBoundingClientRect()),p=im(u,f),h=am(a.getBoundingClientRect()),g=cm([...p,...h]);o.value=g,n.value=!0}return We(i=>{if(e.value&&t.value){const a=u=>l(u,t.value),d=u=>l(u,e.value);e.value.addEventListener("pointerleave",a),t.value.addEventListener("pointerleave",d),i(()=>{var u,f;(u=e.value)==null||u.removeEventListener("pointerleave",a),(f=t.value)==null||f.removeEventListener("pointerleave",d)})}}),We(i=>{if(o.value){const a=d=>{var u,f;if(!o.value)return;const p=d.target,h={x:d.clientX,y:d.clientY},g=((u=e.value)==null?void 0:u.contains(p))||((f=t.value)==null?void 0:f.contains(p)),m=!um(h,o.value),y=p.hasAttribute("data-grace-area-trigger");g?s():(m||y)&&(s(),r.trigger())};document.addEventListener("pointermove",a),i(()=>document.removeEventListener("pointermove",a))}}),{isPointerInTransit:n,onPointerExit:r.on}}function lm(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function im(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function am(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function um(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,l=t.length-1;so!=u>o&&n<(d-i)*(o-a)/(u-a)+i&&(r=!r)}return r}function cm(e){const t=e.slice();return t.sort((n,o)=>n.xo.x?1:n.yo.y?1:0),dm(t)}function dm(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(r.y-l.y)>=(s.y-l.y)*(r.x-l.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(r.y-l.y)>=(s.y-l.y)*(r.x-l.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var fm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qn=new WeakMap,ar=new WeakMap,ur={},Vs=0,Dc=function(e){return e&&(e.host||Dc(e.parentNode))},pm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Dc(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hm=function(e,t,n,o){var r=pm(t,Array.isArray(e)?e:[e]);ur[n]||(ur[n]=new WeakMap);var s=ur[n],l=[],i=new Set,a=new Set(r),d=function(f){!f||i.has(f)||(i.add(f),d(f.parentNode))};r.forEach(d);var u=function(f){!f||a.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))u(p);else try{var h=p.getAttribute(o),g=h!==null&&h!=="false",m=(qn.get(p)||0)+1,y=(s.get(p)||0)+1;qn.set(p,m),s.set(p,y),l.push(p),m===1&&g&&ar.set(p,!0),y===1&&p.setAttribute(n,"true"),g||p.setAttribute(o,"true")}catch(_){console.error("aria-hidden: cannot operate on ",p,_)}})};return u(t),i.clear(),Vs++,function(){l.forEach(function(f){var p=qn.get(f)-1,h=s.get(f)-1;qn.set(f,p),s.set(f,h),p||(ar.has(f)||f.removeAttribute(o),ar.delete(f)),h||f.removeAttribute(n)}),Vs--,Vs||(qn=new WeakMap,qn=new WeakMap,ar=new WeakMap,ur={})}},gm=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=fm(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),hm(o,r,n,"aria-hidden")):function(){return null}};function ri(e){let t;me(()=>Zt(e),n=>{n?t=gm(n):t&&t()}),xn(()=>{t&&t()})}let mm=0;function vt(e,t="radix"){const n=gs({useId:void 0});return Ni?`${t}-${Ni()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++mm}`}function vm(e){const t=I(),n=N(()=>{var r;return((r=t.value)==null?void 0:r.width)??0}),o=N(()=>{var r;return((r=t.value)==null?void 0:r.height)??0});return Ie(()=>{const r=Zt(e);if(r){t.value={width:r.offsetWidth,height:r.offsetHeight};const s=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const i=l[0];let a,d;if("borderBoxSize"in i){const u=i.borderBoxSize,f=Array.isArray(u)?u[0]:u;a=f.inlineSize,d=f.blockSize}else a=r.offsetWidth,d=r.offsetHeight;t.value={width:a,height:d}});return s.observe(r,{box:"border-box"}),()=>s.unobserve(r)}else t.value=void 0}),{width:n,height:o}}function ym(e,t){const n=I(e);function o(r){return t[n.value][r]??n.value}return{state:n,dispatch:r=>{n.value=o(r)}}}function si(e){const t=Ac("",1e3);return{search:t,handleTypeaheadSearch:(n,o)=>{var r,s;if(!(e!=null&&e.value)&&!o)return;t.value=t.value+n;const l=(e==null?void 0:e.value)??o,i=document.activeElement,a=((s=(r=l.find(p=>p===i))==null?void 0:r.textContent)==null?void 0:s.trim())??"",d=l.map(p=>{var h;return((h=p.textContent)==null?void 0:h.trim())??""}),u=wm(d,t.value,a),f=l.find(p=>{var h;return((h=p.textContent)==null?void 0:h.trim())===u});return f&&f.focus(),f},resetTypeahead:()=>{t.value=""}}}function bm(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function wm(e,t,n){const o=t.length>1&&Array.from(t).every(i=>i===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let s=bm(e,Math.max(r,0));o.length===1&&(s=s.filter(i=>i!==n));const l=s.find(i=>i.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}const li=M({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var o,r;if(!n.default)return null;const s=hs(n.default()),l=s.findIndex(u=>u.type!==It);if(l===-1)return s;const i=s[l];(o=i.props)==null||delete o.ref;const a=i.props?te(t,i.props):t;t.class&&(r=i.props)!=null&&r.class&&delete i.props.class;const d=Pn(i,a);for(const u in a)u.startsWith("on")&&(d.props||(d.props={}),d.props[u]=a[u]);return s.length===1?d:(s[l]=d,s)}}}),_e=M({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const o=e.asChild?"template":e.as;return typeof o=="string"&&["area","img","input"].includes(o)?()=>we(o,t):o!=="template"?()=>we(e.as,t,{default:n.default}):()=>we(li,t,{default:n.default})}});function jc(){const e=I(),t=N(()=>{var n,o;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(o=e.value)==null?void 0:o.$el.nextElementSibling:Zt(e)});return{primitiveElement:e,currentElement:t}}const[Lc,xm]=Ne("CollapsibleRoot"),_m=M({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(e,{expose:t,emit:n}){const o=e,r=mt(o,"open",n,{defaultValue:o.defaultOpen,passive:o.open===void 0}),s=mt(o,"disabled");return xm({contentId:"",disabled:s,open:r,onOpenToggle:()=>{r.value=!r.value}}),t({open:r}),le(),(l,i)=>(w(),P(c(_e),{as:l.as,"as-child":o.asChild,"data-state":o.open?"open":"closed","data-disabled":o.disabled?"":void 0},{default:v(()=>[j(l.$slots,"default",{open:c(r)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),Cm=M({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;le();const n=Lc();return(o,r)=>{var s,l;return w(),P(c(_e),{type:o.as==="button"?"button":void 0,as:o.as,"as-child":t.asChild,"aria-controls":c(n).contentId,"aria-expanded":c(n).open.value,"data-state":c(n).open.value?"open":"closed","data-disabled":(s=c(n).disabled)!=null&&s.value?"":void 0,disabled:(l=c(n).disabled)==null?void 0:l.value,onClick:c(n).onOpenToggle},{default:v(()=>[j(o.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"])}}});function Sm(e,t){const n=I({}),o=I("none"),r=e.value?"mounted":"unmounted",{state:s,dispatch:l}=ym(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),i=p=>{var h;if(Gt){const g=new CustomEvent(p,{bubbles:!1,cancelable:!1});(h=t.value)==null||h.dispatchEvent(g)}};me(e,async(p,h)=>{var g;const m=h!==p;if(await Ae(),m){const y=o.value,_=cr(t.value);p?(l("MOUNT"),i("enter"),_==="none"&&i("after-enter")):_==="none"||((g=n.value)==null?void 0:g.display)==="none"?(l("UNMOUNT"),i("leave"),i("after-leave")):h&&y!==_?(l("ANIMATION_OUT"),i("leave")):(l("UNMOUNT"),i("after-leave"))}},{immediate:!0});const a=p=>{const h=cr(t.value),g=h.includes(p.animationName),m=s.value==="mounted"?"enter":"leave";p.target===t.value&&g&&(i(`after-${m}`),l("ANIMATION_END")),p.target===t.value&&h==="none"&&l("ANIMATION_END")},d=p=>{p.target===t.value&&(o.value=cr(t.value))},u=me(t,(p,h)=>{p?(n.value=getComputedStyle(p),p.addEventListener("animationstart",d),p.addEventListener("animationcancel",a),p.addEventListener("animationend",a)):(l("ANIMATION_END"),h==null||h.removeEventListener("animationstart",d),h==null||h.removeEventListener("animationcancel",a),h==null||h.removeEventListener("animationend",a))},{immediate:!0}),f=me(s,()=>{const p=cr(t.value);o.value=s.value==="mounted"?p:"none"});return xn(()=>{u(),f()}),{isPresent:N(()=>["mounted","unmountSuspended"].includes(s.value))}}function cr(e){return e&&getComputedStyle(e).animationName||"none"}const _n=M({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var o;const{present:r,forceMount:s}=ot(e),l=I(),{isPresent:i}=Sm(r,l);n({present:i});let a=t.default({present:i});a=hs(a||[]);const d=yt();if(a&&(a==null?void 0:a.length)>1){const u=(o=d==null?void 0:d.parent)!=null&&o.type.name?`<${d.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` 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(` +**/let rl;const Qi=typeof window<"u"&&window.trustedTypes;if(Qi)try{rl=Qi.createPolicy("vue",{createHTML:e=>e})}catch{}const vc=rl?e=>rl.createHTML(e):e=>e,th="http://www.w3.org/2000/svg",nh="http://www.w3.org/1998/Math/MathML",Nt=typeof document<"u"?document:null,Xi=Nt&&Nt.createElement("template"),oh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Nt.createElementNS(th,e):t==="mathml"?Nt.createElementNS(nh,e):n?Nt.createElement(e,{is:n}):Nt.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const l=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Xi.innerHTML=vc(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const i=Xi.content;if(o==="svg"||o==="mathml"){const a=i.firstChild;for(;a.firstChild;)i.appendChild(a.firstChild);i.removeChild(a)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rh=Symbol("_vtc");function sh(e,t,n){const o=e[rh];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ea=Symbol("_vod"),lh=Symbol("_vsh"),ih=Symbol(""),ah=/(^|;)\s*display\s*:/;function uh(e,t,n){const o=e.style,r=Ve(n);let s=!1;if(n&&!r){if(t)if(Ve(t))for(const l of t.split(";")){const i=l.slice(0,l.indexOf(":")).trim();n[i]==null&&br(o,i,"")}else for(const l in t)n[l]==null&&br(o,l,"");for(const l in n)l==="display"&&(s=!0),br(o,l,n[l])}else if(r){if(t!==n){const l=o[ih];l&&(n+=";"+l),o.cssText=n,s=ah.test(n)}}else t&&e.removeAttribute("style");ea in e&&(e[ea]=s?o.display:"",e[lh]&&(o.display="none"))}const ta=/\s*!important$/;function br(e,t,n){if(oe(n))n.forEach(o=>br(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=ch(e,t);ta.test(n)?e.setProperty(vn(o),n.replace(ta,""),"important"):e[o]=n}}const na=["Webkit","Moz","ms"],Bs={};function ch(e,t){const n=Bs[t];if(n)return n;let o=pt(t);if(o!=="filter"&&o in e)return Bs[t]=o;o=Ur(o);for(let r=0;rRs||(gh.then(()=>Rs=0),Rs=Date.now());function vh(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Mt(yh(o,n.value),t,5,[o])};return n.value=e,n.attached=mh(),n}function yh(e,t){if(oe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const ia=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bh=(e,t,n,o,r,s)=>{const l=r==="svg";t==="class"?sh(e,o,l):t==="style"?uh(e,n,o):zr(t)?$l(t)||ph(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wh(e,t,o,l))?(dh(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ra(e,t,o,l,s,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ra(e,t,o,l))};function wh(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ia(t)&&de(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ia(t)&&Ve(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Ve(n)))}const Pr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return oe(t)?n=>gr(t,n):t};function xh(e){e.target.composing=!0}function aa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lo=Symbol("_assign"),us={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[lo]=Pr(r);const s=o||r.props&&r.props.type==="number";Tn(e,t?"change":"input",l=>{if(l.target.composing)return;let i=e.value;n&&(i=i.trim()),s&&(i=Sr(i)),e[lo](i)}),n&&Tn(e,"change",()=>{e.value=e.value.trim()}),t||(Tn(e,"compositionstart",xh),Tn(e,"compositionend",aa),Tn(e,"change",aa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:s}},l){if(e[lo]=Pr(l),e.composing)return;const i=(s||e.type==="number")&&!/^0\d/.test(e.value)?Sr(e.value):e.value,a=t??"";i!==a&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||r&&e.value.trim()===a)||(e.value=a))}},_h={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=Kr(t);Tn(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Sr(Mr(l)):Mr(l));e[lo](e.multiple?r?new Set(s):s:s[0]),e._assigning=!0,Ae(()=>{e._assigning=!1})}),e[lo]=Pr(o)},mounted(e,{value:t,modifiers:{number:n}}){ua(e,t)},beforeUpdate(e,t,n){e[lo]=Pr(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ua(e,t)}};function ua(e,t,n){const o=e.multiple,r=oe(t);if(!(o&&!r&&!Kr(t))){for(let s=0,l=e.options.length;sString(u)===String(a)):i.selected=yf(t,a)>-1}else i.selected=t.has(a);else if(qr(Mr(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Mr(e){return"_value"in e?e._value:e.value}const Ch=["ctrl","shift","alt","meta"],Sh={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)=>Ch.some(n=>e[`${n}Key`]&&!t.includes(n))},$t=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...s)=>{for(let l=0;l{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const s=vn(r.key);if(t.some(l=>l===s||kh[l]===s))return e(r)})},Eh=Ze({patchProp:bh},oh);let ca;function Oh(){return ca||(ca=Tp(Eh))}const Th=(...e)=>{const t=Oh().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=$h(o);if(!r)return;const s=t._component;!de(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,Ah(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function Ah(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $h(e){return Ve(e)?document.querySelector(e):e}function yc(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M13.836 2.477a.75.75 0 0 1 .75.75v3.182a.75.75 0 0 1-.75.75h-3.182a.75.75 0 0 1 0-1.5h1.37l-.84-.841a4.5 4.5 0 0 0-7.08.932.75.75 0 0 1-1.3-.75 6 6 0 0 1 9.44-1.242l.842.84V3.227a.75.75 0 0 1 .75-.75Zm-.911 7.5A.75.75 0 0 1 13.199 11a6 6 0 0 1-9.44 1.241l-.84-.84v1.371a.75.75 0 0 1-1.5 0V9.591a.75.75 0 0 1 .75-.75H5.35a.75.75 0 0 1 0 1.5H3.98l.841.841a4.5 4.5 0 0 0 7.08-.932.75.75 0 0 1 1.025-.273Z","clip-rule":"evenodd"})])}function Ph(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M12.5 9.75A2.75 2.75 0 0 0 9.75 7H4.56l2.22 2.22a.75.75 0 1 1-1.06 1.06l-3.5-3.5a.75.75 0 0 1 0-1.06l3.5-3.5a.75.75 0 0 1 1.06 1.06L4.56 5.5h5.19a4.25 4.25 0 0 1 0 8.5h-1a.75.75 0 0 1 0-1.5h1a2.75 2.75 0 0 0 2.75-2.75Z","clip-rule":"evenodd"})])}function Ir(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M10.47 2.22a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1 0 1.06l-2.25 2.25a.75.75 0 1 1-1.06-1.06l.97-.97H5.75a.75.75 0 0 1 0-1.5h5.69l-.97-.97a.75.75 0 0 1 0-1.06Zm-4.94 6a.75.75 0 0 1 0 1.06l-.97.97h5.69a.75.75 0 0 1 0 1.5H4.56l.97.97a.75.75 0 1 1-1.06 1.06l-2.25-2.25a.75.75 0 0 1 0-1.06l2.25-2.25a.75.75 0 0 1 1.06 0Z","clip-rule":"evenodd"})])}function Mh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M2 3.75A.75.75 0 0 1 2.75 3h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 3.75ZM2 8a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 8Zm0 4.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z","clip-rule":"evenodd"})])}function Ih(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M2 2.75A.75.75 0 0 1 2.75 2h9.5a.75.75 0 0 1 0 1.5h-9.5A.75.75 0 0 1 2 2.75ZM2 6.25a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5A.75.75 0 0 1 2 6.25Zm0 3.5A.75.75 0 0 1 2.75 9h3.5a.75.75 0 0 1 0 1.5h-3.5A.75.75 0 0 1 2 9.75ZM9.22 9.53a.75.75 0 0 1 0-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1-1.06 1.06l-.97-.97v5.69a.75.75 0 0 1-1.5 0V8.56l-.97.97a.75.75 0 0 1-1.06 0Z","clip-rule":"evenodd"})])}function Zo(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function Gl(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function Bh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M5.22 10.22a.75.75 0 0 1 1.06 0L8 11.94l1.72-1.72a.75.75 0 1 1 1.06 1.06l-2.25 2.25a.75.75 0 0 1-1.06 0l-2.25-2.25a.75.75 0 0 1 0-1.06ZM10.78 5.78a.75.75 0 0 1-1.06 0L8 4.06 6.28 5.78a.75.75 0 0 1-1.06-1.06l2.25-2.25a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function Rh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M11.78 9.78a.75.75 0 0 1-1.06 0L8 7.06 5.28 9.78a.75.75 0 0 1-1.06-1.06l3.25-3.25a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function Dh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{d:"M8 7c3.314 0 6-1.343 6-3s-2.686-3-6-3-6 1.343-6 3 2.686 3 6 3Z"}),P("path",{d:"M8 8.5c1.84 0 3.579-.37 4.914-1.037A6.33 6.33 0 0 0 14 6.78V8c0 1.657-2.686 3-6 3S2 9.657 2 8V6.78c.346.273.72.5 1.087.683C4.42 8.131 6.16 8.5 8 8.5Z"}),P("path",{d:"M8 12.5c1.84 0 3.579-.37 4.914-1.037.366-.183.74-.41 1.086-.684V12c0 1.657-2.686 3-6 3s-6-1.343-6-3v-1.22c.346.273.72.5 1.087.683C4.42 12.131 6.16 12.5 8 12.5Z"})])}function sl(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M10.986 3H12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h1.014A2.25 2.25 0 0 1 7.25 1h1.5a2.25 2.25 0 0 1 2.236 2ZM9.5 4v-.75a.75.75 0 0 0-.75-.75h-1.5a.75.75 0 0 0-.75.75V4h3Z","clip-rule":"evenodd"})])}function jh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M4.78 4.97a.75.75 0 0 1 0 1.06L2.81 8l1.97 1.97a.75.75 0 1 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM11.22 4.97a.75.75 0 0 0 0 1.06L13.19 8l-1.97 1.97a.75.75 0 1 0 1.06 1.06l2.5-2.5a.75.75 0 0 0 0-1.06l-2.5-2.5a.75.75 0 0 0-1.06 0ZM8.856 2.008a.75.75 0 0 1 .636.848l-1.5 10.5a.75.75 0 0 1-1.484-.212l1.5-10.5a.75.75 0 0 1 .848-.636Z","clip-rule":"evenodd"})])}function Lh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M2 4.25A2.25 2.25 0 0 1 4.25 2h7.5A2.25 2.25 0 0 1 14 4.25v5.5A2.25 2.25 0 0 1 11.75 12h-1.312c.1.128.21.248.328.36a.75.75 0 0 1 .234.545v.345a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1-.75-.75v-.345a.75.75 0 0 1 .234-.545c.118-.111.228-.232.328-.36H4.25A2.25 2.25 0 0 1 2 9.75v-5.5Zm2.25-.75a.75.75 0 0 0-.75.75v4.5c0 .414.336.75.75.75h7.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 0 0-.75-.75h-7.5Z","clip-rule":"evenodd"})])}function Zl(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M4 2a1.5 1.5 0 0 0-1.5 1.5v9A1.5 1.5 0 0 0 4 14h8a1.5 1.5 0 0 0 1.5-1.5V6.621a1.5 1.5 0 0 0-.44-1.06L9.94 2.439A1.5 1.5 0 0 0 8.878 2H4Zm1 5.75A.75.75 0 0 1 5.75 7h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 5 7.75Zm0 3a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z","clip-rule":"evenodd"})])}function Vh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{d:"M8 2a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM8 6.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM9.5 12.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z"})])}function Nh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM9 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6.75 8a.75.75 0 0 0 0 1.5h.75v1.75a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8.25 8h-1.5Z","clip-rule":"evenodd"})])}function Fh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M8.914 6.025a.75.75 0 0 1 1.06 0 3.5 3.5 0 0 1 0 4.95l-2 2a3.5 3.5 0 0 1-5.396-4.402.75.75 0 0 1 1.251.827 2 2 0 0 0 3.085 2.514l2-2a2 2 0 0 0 0-2.828.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"}),P("path",{"fill-rule":"evenodd",d:"M7.086 9.975a.75.75 0 0 1-1.06 0 3.5 3.5 0 0 1 0-4.95l2-2a3.5 3.5 0 0 1 5.396 4.402.75.75 0 0 1-1.251-.827 2 2 0 0 0-3.085-2.514l-2 2a2 2 0 0 0 0 2.828.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"})])}function Hh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z","clip-rule":"evenodd"})])}function zh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{d:"M3.75 7.25a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5h-8.5Z"})])}function da(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{d:"M14.438 10.148c.19-.425-.321-.787-.748-.601A5.5 5.5 0 0 1 6.453 2.31c.186-.427-.176-.938-.6-.748a6.501 6.501 0 1 0 8.585 8.586Z"})])}function Kh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{d:"M8.75 3.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 0 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z"})])}function Wh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{d:"M4.75 4.25a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z"}),P("path",{"fill-rule":"evenodd",d:"M2 3.5A1.5 1.5 0 0 1 3.5 2H6a1.5 1.5 0 0 1 1.5 1.5V6A1.5 1.5 0 0 1 6 7.5H3.5A1.5 1.5 0 0 1 2 6V3.5Zm1.5 0H6V6H3.5V3.5Z","clip-rule":"evenodd"}),P("path",{d:"M4.25 11.25a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Z"}),P("path",{"fill-rule":"evenodd",d:"M2 10a1.5 1.5 0 0 1 1.5-1.5H6A1.5 1.5 0 0 1 7.5 10v2.5A1.5 1.5 0 0 1 6 14H3.5A1.5 1.5 0 0 1 2 12.5V10Zm1.5 2.5V10H6v2.5H3.5Z","clip-rule":"evenodd"}),P("path",{d:"M11.25 4.25a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z"}),P("path",{"fill-rule":"evenodd",d:"M10 2a1.5 1.5 0 0 0-1.5 1.5V6A1.5 1.5 0 0 0 10 7.5h2.5A1.5 1.5 0 0 0 14 6V3.5A1.5 1.5 0 0 0 12.5 2H10Zm2.5 1.5H10V6h2.5V3.5Z","clip-rule":"evenodd"}),P("path",{d:"M8.5 9.417a.917.917 0 1 1 1.833 0 .917.917 0 0 1-1.833 0ZM8.5 13.083a.917.917 0 1 1 1.833 0 .917.917 0 0 1-1.833 0ZM13.083 8.5a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.833ZM12.166 13.084a.917.917 0 1 1 1.833 0 .917.917 0 0 1-1.833 0ZM11.25 10.333a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.833Z"})])}function fa(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{d:"M8 1a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 8 1ZM10.5 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM12.95 4.11a.75.75 0 1 0-1.06-1.06l-1.062 1.06a.75.75 0 0 0 1.061 1.062l1.06-1.061ZM15 8a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 15 8ZM11.89 12.95a.75.75 0 0 0 1.06-1.06l-1.06-1.062a.75.75 0 0 0-1.062 1.061l1.061 1.06ZM8 12a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 8 12ZM5.172 11.89a.75.75 0 0 0-1.061-1.062L3.05 11.89a.75.75 0 1 0 1.06 1.06l1.06-1.06ZM4 8a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 4 8ZM4.11 5.172A.75.75 0 0 0 5.173 4.11L4.11 3.05a.75.75 0 1 0-1.06 1.06l1.06 1.06Z"})])}function Uh(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{"fill-rule":"evenodd",d:"M5 3.25V4H2.75a.75.75 0 0 0 0 1.5h.3l.815 8.15A1.5 1.5 0 0 0 5.357 15h5.285a1.5 1.5 0 0 0 1.493-1.35l.815-8.15h.3a.75.75 0 0 0 0-1.5H11v-.75A2.25 2.25 0 0 0 8.75 1h-1.5A2.25 2.25 0 0 0 5 3.25Zm2.25-.75a.75.75 0 0 0-.75.75V4h3v-.75a.75.75 0 0 0-.75-.75h-1.5ZM6.05 6a.75.75 0 0 1 .787.713l.275 5.5a.75.75 0 0 1-1.498.075l-.275-5.5A.75.75 0 0 1 6.05 6Zm3.9 0a.75.75 0 0 1 .712.787l-.275 5.5a.75.75 0 0 1-1.498-.075l.275-5.5a.75.75 0 0 1 .786-.711Z","clip-rule":"evenodd"})])}function bc(e,t){return w(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[P("path",{d:"M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z"})])}const qh=["top","right","bottom","left"],pn=Math.min,ct=Math.max,Br=Math.round,ir=Math.floor,hn=e=>({x:e,y:e}),Gh={left:"right",right:"left",bottom:"top",top:"bottom"},Zh={start:"end",end:"start"};function ll(e,t,n){return ct(e,pn(t,n))}function Wt(e,t){return typeof e=="function"?e(t):e}function Ut(e){return e.split("-")[0]}function fo(e){return e.split("-")[1]}function Jl(e){return e==="x"?"y":"x"}function Yl(e){return e==="y"?"height":"width"}function gn(e){return["top","bottom"].includes(Ut(e))?"y":"x"}function Ql(e){return Jl(gn(e))}function Jh(e,t,n){n===void 0&&(n=!1);const o=fo(e),r=Ql(e),s=Yl(r);let l=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Rr(l)),[l,Rr(l)]}function Yh(e){const t=Rr(e);return[il(e),t,il(t)]}function il(e){return e.replace(/start|end/g,t=>Zh[t])}function Qh(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:l;default:return[]}}function Xh(e,t,n,o){const r=fo(e);let s=Qh(Ut(e),n==="start",o);return r&&(s=s.map(l=>l+"-"+r),t&&(s=s.concat(s.map(il)))),s}function Rr(e){return e.replace(/left|right|bottom|top/g,t=>Gh[t])}function eg(e){return{top:0,right:0,bottom:0,left:0,...e}}function wc(e){return typeof e!="number"?eg(e):{top:e,right:e,bottom:e,left:e}}function Dr(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function pa(e,t,n){let{reference:o,floating:r}=e;const s=gn(t),l=Ql(t),i=Yl(l),a=Ut(t),d=s==="y",u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[i]/2-r[i]/2;let h;switch(a){case"top":h={x:u,y:o.y-r.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(fo(t)){case"start":h[l]-=p*(n&&d?-1:1);break;case"end":h[l]+=p*(n&&d?-1:1);break}return h}const tg=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:l}=n,i=s.filter(Boolean),a=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:f}=pa(d,o,a),p=o,h={},g=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:l,elements:i,middlewareData:a}=t,{element:d,padding:u=0}=Wt(e,t)||{};if(d==null)return{};const f=wc(u),p={x:n,y:o},h=Ql(r),g=Yl(h),m=await l.getDimensions(d),y=h==="y",_=y?"top":"left",A=y?"bottom":"right",k=y?"clientHeight":"clientWidth",O=s.reference[g]+s.reference[h]-p[h]-s.floating[g],R=p[h]-s.reference[h],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let S=T?T[k]:0;(!S||!await(l.isElement==null?void 0:l.isElement(T)))&&(S=i.floating[k]||s.floating[g]);const $=O/2-R/2,D=S/2-m[g]/2-1,C=pn(f[_],D),F=pn(f[A],D),V=C,xe=S-m[g]-F,ye=S/2-m[g]/2+$,Fe=ll(V,ye,xe),be=!a.arrow&&fo(r)!=null&&ye!==Fe&&s.reference[g]/2-(yeye<=0)){var F,V;const ye=(((F=s.flip)==null?void 0:F.index)||0)+1,Fe=S[ye];if(Fe)return{data:{index:ye,overflows:C},reset:{placement:Fe}};let be=(V=C.filter(fe=>fe.overflows[0]<=0).sort((fe,ue)=>fe.overflows[1]-ue.overflows[1])[0])==null?void 0:V.placement;if(!be)switch(h){case"bestFit":{var xe;const fe=(xe=C.filter(ue=>{if(T){const Be=gn(ue.placement);return Be===A||Be==="y"}return!0}).map(ue=>[ue.placement,ue.overflows.filter(Be=>Be>0).reduce((Be,st)=>Be+st,0)]).sort((ue,Be)=>ue[1]-Be[1])[0])==null?void 0:xe[0];fe&&(be=fe);break}case"initialPlacement":be=i;break}if(r!==be)return{reset:{placement:be}}}return{}}}};function ha(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ga(e){return qh.some(t=>e[t]>=0)}const rg=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Wt(e,t);switch(o){case"referenceHidden":{const s=await Vo(t,{...r,elementContext:"reference"}),l=ha(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:ga(l)}}}case"escaped":{const s=await Vo(t,{...r,altBoundary:!0}),l=ha(s,n.floating);return{data:{escapedOffsets:l,escaped:ga(l)}}}default:return{}}}}};async function sg(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),l=Ut(n),i=fo(n),a=gn(n)==="y",d=["left","top"].includes(l)?-1:1,u=s&&a?-1:1,f=Wt(t,e);let{mainAxis:p,crossAxis:h,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"&&(h=i==="end"?g*-1:g),a?{x:h*u,y:p*d}:{x:p*d,y:h*u}}const lg=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:l,middlewareData:i}=t,a=await sg(t,e);return l===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:s+a.y,data:{...a,placement:l}}}}},ig=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:i={fn:y=>{let{x:_,y:A}=y;return{x:_,y:A}}},...a}=Wt(e,t),d={x:n,y:o},u=await Vo(t,a),f=gn(Ut(r)),p=Jl(f);let h=d[p],g=d[f];if(s){const y=p==="y"?"top":"left",_=p==="y"?"bottom":"right",A=h+u[y],k=h-u[_];h=ll(A,h,k)}if(l){const y=f==="y"?"top":"left",_=f==="y"?"bottom":"right",A=g+u[y],k=g-u[_];g=ll(A,g,k)}const m=i.fn({...t,[p]:h,[f]:g});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[p]:s,[f]:l}}}}}},ag=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:l}=t,{offset:i=0,mainAxis:a=!0,crossAxis:d=!0}=Wt(e,t),u={x:n,y:o},f=gn(r),p=Jl(f);let h=u[p],g=u[f];const m=Wt(i,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){const k=p==="y"?"height":"width",O=s.reference[p]-s.floating[k]+y.mainAxis,R=s.reference[p]+s.reference[k]-y.mainAxis;hR&&(h=R)}if(d){var _,A;const k=p==="y"?"width":"height",O=["top","left"].includes(Ut(r)),R=s.reference[f]-s.floating[k]+(O&&((_=l.offset)==null?void 0:_[f])||0)+(O?0:y.crossAxis),T=s.reference[f]+s.reference[k]+(O?0:((A=l.offset)==null?void 0:A[f])||0)-(O?y.crossAxis:0);gT&&(g=T)}return{[p]:h,[f]:g}}}},ug=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:l,elements:i}=t,{apply:a=()=>{},...d}=Wt(e,t),u=await Vo(t,d),f=Ut(r),p=fo(r),h=gn(r)==="y",{width:g,height:m}=s.floating;let y,_;f==="top"||f==="bottom"?(y=f,_=p===(await(l.isRTL==null?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(_=f,y=p==="end"?"top":"bottom");const A=m-u.top-u.bottom,k=g-u.left-u.right,O=pn(m-u[y],A),R=pn(g-u[_],k),T=!t.middlewareData.shift;let S=O,$=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=k),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=A),T&&!p){const C=ct(u.left,0),F=ct(u.right,0),V=ct(u.top,0),xe=ct(u.bottom,0);h?$=g-2*(C!==0||F!==0?C+F:ct(u.left,u.right)):S=m-2*(V!==0||xe!==0?V+xe:ct(u.top,u.bottom))}await a({...t,availableWidth:$,availableHeight:S});const D=await l.getDimensions(i.floating);return g!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}};function ds(){return typeof window<"u"}function Nn(e){return Xl(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rt(e){var t;return(t=(Xl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xl(e){return ds()?e instanceof Node||e instanceof ft(e).Node:!1}function _t(e){return ds()?e instanceof Element||e instanceof ft(e).Element:!1}function Bt(e){return ds()?e instanceof HTMLElement||e instanceof ft(e).HTMLElement:!1}function ma(e){return!ds()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}function Jo(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function cg(e){return["table","td","th"].includes(Nn(e))}function fs(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ei(e){const t=ti(),n=_t(e)?Ct(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function dg(e){let t=mn(e);for(;Bt(t)&&!uo(t);){if(ei(t))return t;if(fs(t))return null;t=mn(t)}return null}function ti(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uo(e){return["html","body","#document"].includes(Nn(e))}function Ct(e){return ft(e).getComputedStyle(e)}function ps(e){return _t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mn(e){if(Nn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ma(e)&&e.host||Rt(e);return ma(t)?t.host:t}function xc(e){const t=mn(e);return uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(t)&&Jo(t)?t:xc(t)}function No(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=xc(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),l=ft(r);if(s){const i=al(l);return t.concat(l,l.visualViewport||[],Jo(r)?r:[],i&&n?No(i):[])}return t.concat(r,No(r,[],n))}function al(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _c(e){const t=Ct(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Bt(e),s=r?e.offsetWidth:n,l=r?e.offsetHeight:o,i=Br(n)!==s||Br(o)!==l;return i&&(n=s,o=l),{width:n,height:o,$:i}}function ni(e){return _t(e)?e:e.contextElement}function io(e){const t=ni(e);if(!Bt(t))return hn(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=_c(t);let l=(s?Br(n.width):n.width)/o,i=(s?Br(n.height):n.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!i||!Number.isFinite(i))&&(i=1),{x:l,y:i}}const fg=hn(0);function Cc(e){const t=ft(e);return!ti()||!t.visualViewport?fg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ft(e)?!1:t}function Mn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=ni(e);let l=hn(1);t&&(o?_t(o)&&(l=io(o)):l=io(e));const i=pg(s,n,o)?Cc(s):hn(0);let a=(r.left+i.x)/l.x,d=(r.top+i.y)/l.y,u=r.width/l.x,f=r.height/l.y;if(s){const p=ft(s),h=o&&_t(o)?ft(o):o;let g=p,m=al(g);for(;m&&o&&h!==g;){const y=io(m),_=m.getBoundingClientRect(),A=Ct(m),k=_.left+(m.clientLeft+parseFloat(A.paddingLeft))*y.x,O=_.top+(m.clientTop+parseFloat(A.paddingTop))*y.y;a*=y.x,d*=y.y,u*=y.x,f*=y.y,a+=k,d+=O,g=ft(m),m=al(g)}}return Dr({width:u,height:f,x:a,y:d})}function hg(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",l=Rt(o),i=t?fs(t.floating):!1;if(o===l||i&&s)return n;let a={scrollLeft:0,scrollTop:0},d=hn(1);const u=hn(0),f=Bt(o);if((f||!f&&!s)&&((Nn(o)!=="body"||Jo(l))&&(a=ps(o)),Bt(o))){const p=Mn(o);d=io(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-a.scrollLeft*d.x+u.x,y:n.y*d.y-a.scrollTop*d.y+u.y}}function gg(e){return Array.from(e.getClientRects())}function ul(e,t){const n=ps(e).scrollLeft;return t?t.left+n:Mn(Rt(e)).left+n}function mg(e){const t=Rt(e),n=ps(e),o=e.ownerDocument.body,r=ct(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ct(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+ul(e);const i=-n.scrollTop;return Ct(o).direction==="rtl"&&(l+=ct(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:l,y:i}}function vg(e,t){const n=ft(e),o=Rt(e),r=n.visualViewport;let s=o.clientWidth,l=o.clientHeight,i=0,a=0;if(r){s=r.width,l=r.height;const d=ti();(!d||d&&t==="fixed")&&(i=r.offsetLeft,a=r.offsetTop)}return{width:s,height:l,x:i,y:a}}function yg(e,t){const n=Mn(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Bt(e)?io(e):hn(1),l=e.clientWidth*s.x,i=e.clientHeight*s.y,a=r*s.x,d=o*s.y;return{width:l,height:i,x:a,y:d}}function va(e,t,n){let o;if(t==="viewport")o=vg(e,n);else if(t==="document")o=mg(Rt(e));else if(_t(t))o=yg(t,n);else{const r=Cc(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Dr(o)}function Sc(e,t){const n=mn(e);return n===t||!_t(n)||uo(n)?!1:Ct(n).position==="fixed"||Sc(n,t)}function bg(e,t){const n=t.get(e);if(n)return n;let o=No(e,[],!1).filter(i=>_t(i)&&Nn(i)!=="body"),r=null;const s=Ct(e).position==="fixed";let l=s?mn(e):e;for(;_t(l)&&!uo(l);){const i=Ct(l),a=ei(l);!a&&i.position==="fixed"&&(r=null),(s?!a&&!r:!a&&i.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Jo(l)&&!a&&Sc(e,l))?o=o.filter(u=>u!==l):r=i,l=mn(l)}return t.set(e,o),o}function wg(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const l=[...n==="clippingAncestors"?fs(t)?[]:bg(t,this._c):[].concat(n),o],i=l[0],a=l.reduce((d,u)=>{const f=va(t,u,r);return d.top=ct(f.top,d.top),d.right=pn(f.right,d.right),d.bottom=pn(f.bottom,d.bottom),d.left=ct(f.left,d.left),d},va(t,i,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function xg(e){const{width:t,height:n}=_c(e);return{width:t,height:n}}function _g(e,t,n){const o=Bt(t),r=Rt(t),s=n==="fixed",l=Mn(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const a=hn(0);if(o||!o&&!s)if((Nn(t)!=="body"||Jo(r))&&(i=ps(t)),o){const h=Mn(t,!0,s,t);a.x=h.x+t.clientLeft,a.y=h.y+t.clientTop}else r&&(a.x=ul(r));let d=0,u=0;if(r&&!o&&!s){const h=r.getBoundingClientRect();u=h.top+i.scrollTop,d=h.left+i.scrollLeft-ul(r,h)}const f=l.left+i.scrollLeft-a.x-d,p=l.top+i.scrollTop-a.y-u;return{x:f,y:p,width:l.width,height:l.height}}function Ds(e){return Ct(e).position==="static"}function ya(e,t){if(!Bt(e)||Ct(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rt(e)===n&&(n=n.ownerDocument.body),n}function kc(e,t){const n=ft(e);if(fs(e))return n;if(!Bt(e)){let r=mn(e);for(;r&&!uo(r);){if(_t(r)&&!Ds(r))return r;r=mn(r)}return n}let o=ya(e,t);for(;o&&cg(o)&&Ds(o);)o=ya(o,t);return o&&uo(o)&&Ds(o)&&!ei(o)?n:o||dg(e)||n}const Cg=async function(e){const t=this.getOffsetParent||kc,n=this.getDimensions,o=await n(e.floating);return{reference:_g(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Sg(e){return Ct(e).direction==="rtl"}const kg={convertOffsetParentRelativeRectToViewportRelativeRect:hg,getDocumentElement:Rt,getClippingRect:wg,getOffsetParent:kc,getElementRects:Cg,getClientRects:gg,getDimensions:xg,getScale:io,isElement:_t,isRTL:Sg};function Eg(e,t){let n=null,o;const r=Rt(e);function s(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function l(i,a){i===void 0&&(i=!1),a===void 0&&(a=1),s();const{left:d,top:u,width:f,height:p}=e.getBoundingClientRect();if(i||t(),!f||!p)return;const h=ir(u),g=ir(r.clientWidth-(d+f)),m=ir(r.clientHeight-(u+p)),y=ir(d),A={rootMargin:-h+"px "+-g+"px "+-m+"px "+-y+"px",threshold:ct(0,pn(1,a))||1};let k=!0;function O(R){const T=R[0].intersectionRatio;if(T!==a){if(!k)return l();T?l(!1,T):o=setTimeout(()=>{l(!1,1e-7)},1e3)}k=!1}try{n=new IntersectionObserver(O,{...A,root:r.ownerDocument})}catch{n=new IntersectionObserver(O,A)}n.observe(e)}return l(!0),s}function Og(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,d=ni(e),u=r||s?[...d?No(d):[],...No(t)]:[];u.forEach(_=>{r&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const f=d&&i?Eg(d,n):null;let p=-1,h=null;l&&(h=new ResizeObserver(_=>{let[A]=_;A&&A.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(t)})),n()}),d&&!a&&h.observe(d),h.observe(t));let g,m=a?Mn(e):null;a&&y();function y(){const _=Mn(e);m&&(_.x!==m.x||_.y!==m.y||_.width!==m.width||_.height!==m.height)&&n(),m=_,g=requestAnimationFrame(y)}return n(),()=>{var _;u.forEach(A=>{r&&A.removeEventListener("scroll",n),s&&A.removeEventListener("resize",n)}),f==null||f(),(_=h)==null||_.disconnect(),h=null,a&&cancelAnimationFrame(g)}}const Tg=lg,Ag=ig,ba=og,$g=ug,Pg=rg,Mg=ng,Ig=ag,Bg=(e,t,n)=>{const o=new Map,r={platform:kg,...n},s={...r.platform,_c:o};return tg(e,t,{...r,platform:s})};function Rg(e){return e!=null&&typeof e=="object"&&"$el"in e}function cl(e){if(Rg(e)){const t=e.$el;return Xl(t)&&Nn(t)==="#comment"?null:t}return e}function Zn(e){return typeof e=="function"?e():c(e)}function Dg(e){return{name:"arrow",options:e,fn(t){const n=cl(Zn(e.element));return n==null?{}:Mg({element:n,padding:e.padding}).fn(t)}}}function Ec(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wa(e,t){const n=Ec(e);return Math.round(t*n)/n}function jg(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,r=N(()=>{var S;return(S=Zn(n.open))!=null?S:!0}),s=N(()=>Zn(n.middleware)),l=N(()=>{var S;return(S=Zn(n.placement))!=null?S:"bottom"}),i=N(()=>{var S;return(S=Zn(n.strategy))!=null?S:"absolute"}),a=N(()=>{var S;return(S=Zn(n.transform))!=null?S:!0}),d=N(()=>cl(e.value)),u=N(()=>cl(t.value)),f=B(0),p=B(0),h=B(i.value),g=B(l.value),m=Ro({}),y=B(!1),_=N(()=>{const S={position:h.value,left:"0",top:"0"};if(!u.value)return S;const $=wa(u.value,f.value),D=wa(u.value,p.value);return a.value?{...S,transform:"translate("+$+"px, "+D+"px)",...Ec(u.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:$+"px",top:D+"px"}});let A;function k(){if(d.value==null||u.value==null)return;const S=r.value;Bg(d.value,u.value,{middleware:s.value,placement:l.value,strategy:i.value}).then($=>{f.value=$.x,p.value=$.y,h.value=$.strategy,g.value=$.placement,m.value=$.middlewareData,y.value=S!==!1})}function O(){typeof A=="function"&&(A(),A=void 0)}function R(){if(O(),o===void 0){k();return}if(d.value!=null&&u.value!=null){A=o(d.value,u.value,k);return}}function T(){r.value||(y.value=!1)}return ve([s,l,i,r],k,{flush:"sync"}),ve([d,u],R,{flush:"sync"}),ve(r,T,{flush:"sync"}),Gr()&&Il(O),{x:Un(f),y:Un(p),strategy:Un(h),placement:Un(g),middlewareData:Un(m),isPositioned:Un(y),floatingStyles:_,update:k}}function Ne(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[r=>{const s=so(o,r);if(s||s===null)return s;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},r=>(Kl(o,r),r)]}function Oc(e,t,n){const o=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(r)}function xa(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(Math.max(e,t),n)}function wr(e){return e==null}function Lg(e,t){var n;const o=Ro();return We(()=>{o.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Ln(o)}function Yo(e){return Gr()?(Il(e),!0):!1}function Vg(){const e=new Set,t=n=>{e.delete(n)};return{on:n=>{e.add(n);const o=()=>t(n);return Yo(o),{off:o}},off:t,trigger:(...n)=>Promise.all(Array.from(e).map(o=>o(...n)))}}function Ng(e){let t=!1,n;const o=uu(!0);return(...r)=>(t||(n=o.run(()=>e(...r)),t=!0),n)}function Tc(e){let t=0,n,o;const r=()=>{t-=1,o&&t<=0&&(o.stop(),n=void 0,o=void 0)};return(...s)=>(t+=1,n||(o=uu(!0),n=o.run(()=>e(...s))),Yo(r),n)}function dn(e){return typeof e=="function"?e():c(e)}const Zt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fg=e=>typeof e<"u",Hg=Object.prototype.toString,zg=e=>Hg.call(e)==="[object Object]",Kg=()=>{},_a=Wg();function Wg(){var e,t;return Zt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ug(e){return yt()}function Ac(e,t=1e4){return Au((n,o)=>{let r=dn(e),s;const l=()=>setTimeout(()=>{r=dn(e),o()},dn(t));return Yo(()=>{clearTimeout(s)}),{get(){return n(),r},set(i){r=i,o(),clearTimeout(s),s=l()}}})}function qg(e,t){Ug()&&os(e,t)}function $c(e,t,n={}){const{immediate:o=!0}=n,r=B(!1);let s=null;function l(){s&&(clearTimeout(s),s=null)}function i(){r.value=!1,l()}function a(...d){l(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=null,e(...d)},dn(t))}return o&&(r.value=!0,Zt&&a()),Yo(i),{isPending:Ln(r),start:a,stop:i}}function Jt(e){var t;const n=dn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Pc=Zt?window:void 0;function co(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Pc):[t,n,o,r]=e,!t)return Kg;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(u=>u()),s.length=0},i=(u,f,p,h)=>(u.addEventListener(f,p,h),()=>u.removeEventListener(f,p,h)),a=ve(()=>[Jt(t),dn(r)],([u,f])=>{if(l(),!u)return;const p=zg(f)?{...f}:f;s.push(...n.flatMap(h=>o.map(g=>i(u,h,g,p))))},{immediate:!0,flush:"post"}),d=()=>{a(),l()};return Yo(d),d}function Gg(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Zg(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=Pc,eventName:s="keydown",passive:l=!1,dedupe:i=!1}=o,a=Gg(t);return co(r,s,d=>{d.repeat&&dn(i)||a(d)&&n(d)},l)}function Jg(){const e=B(!1),t=yt();return t&&Ie(()=>{e.value=!0},t),e}function Yg(e){return JSON.parse(JSON.stringify(e))}function mt(e,t,n,o={}){var r,s,l;const{clone:i=!1,passive:a=!1,eventName:d,deep:u=!1,defaultValue:f,shouldEmit:p}=o,h=yt(),g=n||(h==null?void 0:h.emit)||((r=h==null?void 0:h.$emit)==null?void 0:r.bind(h))||((l=(s=h==null?void 0:h.proxy)==null?void 0:s.$emit)==null?void 0:l.bind(h==null?void 0:h.proxy));let m=d;t||(t="modelValue"),m=m||`update:${t.toString()}`;const y=k=>i?typeof i=="function"?i(k):Yg(k):k,_=()=>Fg(e[t])?y(e[t]):f,A=k=>{p?p(k)&&g(m,k):g(m,k)};if(a){const k=_(),O=B(k);let R=!1;return ve(()=>e[t],T=>{R||(R=!0,O.value=y(T),Ae(()=>R=!1))}),ve(O,T=>{!R&&(T!==e[t]||u)&&A(T)},{deep:u}),O}else return N({get(){return _()},set(k){A(k)}})}function hs(e){return e?e.flatMap(t=>t.type===Te?hs(t.children):[t]):[]}const Qg=["INPUT","TEXTAREA"];function Mc(e,t,n,o={}){if(!t||o.enableIgnoredElement&&Qg.includes(t.nodeName))return null;const{arrowKeyOptions:r="both",attributeName:s="[data-radix-vue-collection-item]",itemsArray:l=[],loop:i=!0,dir:a="ltr",preventScroll:d=!0,focus:u=!1}=o,[f,p,h,g,m,y]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],_=h||g,A=f||p;if(!m&&!y&&(!_&&!A||r==="vertical"&&A||r==="horizontal"&&_))return null;const k=n?Array.from(n.querySelectorAll(s)):l;if(!k.length)return null;d&&e.preventDefault();let O=null;return A||_?O=Ic(k,t,{goForward:_?g:a==="ltr"?f:p,loop:i}):m?O=k.at(0)||null:y&&(O=k.at(-1)||null),u&&(O==null||O.focus()),O}function Ic(e,t,n,o=e.length){if(--o===0)return null;const r=e.indexOf(t),s=n.goForward?r+1:r-1;if(!n.loop&&(s<0||s>=e.length))return null;const l=(s+e.length)%e.length,i=e[l];return i?i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false"?Ic(e,i,n,o):i:null}function js(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 dl(e,t,n=".",o){if(!js(t))return dl(e,{},n);const r=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const l=e[s];l!=null&&(Array.isArray(l)&&Array.isArray(r[s])?r[s]=[...l,...r[s]]:js(l)&&js(r[s])?r[s]=dl(l,r[s],(n?`${n}.`:"")+s.toString()):r[s]=l)}return r}function Xg(e){return(...t)=>t.reduce((n,o)=>dl(n,o,""),{})}const em=Xg(),[gs,$1]=Ne("ConfigProvider");let tm="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",nm=(e=21)=>{let t="",n=e;for(;n--;)t+=tm[Math.random()*64|0];return t};const om=Tc(()=>{const e=B(new Map),t=B(),n=N(()=>{for(const l of e.value.values())if(l)return!0;return!1}),o=gs({scrollBody:B(!0)});let r=null;const s=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",_a&&(r==null||r()),t.value=void 0};return ve(n,(l,i)=>{var a;if(!Zt)return;if(!l){i&&s();return}t.value===void 0&&(t.value=document.body.style.overflow);const d=window.innerWidth-document.documentElement.clientWidth,u={padding:d,margin:0},f=(a=o.scrollBody)!=null&&a.value?typeof o.scrollBody.value=="object"?em({padding:o.scrollBody.value.padding===!0?d:o.scrollBody.value.padding,margin:o.scrollBody.value.margin===!0?d:o.scrollBody.value.margin},u):u:{padding:0,margin:0};d>0&&(document.body.style.paddingRight=`${f.padding}px`,document.body.style.marginRight=`${f.margin}px`,document.body.style.setProperty("--scrollbar-width",`${d}px`),document.body.style.overflow="hidden"),_a&&(r=co(document,"touchmove",p=>{var h;p.target===document.documentElement&&(p.touches.length>1||(h=p.preventDefault)==null||h.call(p))},{passive:!1})),Ae(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function oi(e){const t=nm(6),n=om();n.value.set(t,e??!1);const o=N({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return qg(()=>{n.value.delete(t)}),o}const rm="data-radix-vue-collection-item";function Qo(e,t=rm){const n=Symbol();return{createCollection:o=>{const r=B([]);function s(){const l=Jt(o);return l?r.value=Array.from(l.querySelectorAll(`[${t}]:not([data-disabled])`)):r.value=[]}return zu(()=>{r.value=[]}),Ie(s),Ku(s),ve(()=>o==null?void 0:o.value,s,{immediate:!0}),Kl(n,r),r},injectCollection:()=>so(n,B([]))}}function po(e){const t=gs({dir:B("ltr")});return N(()=>{var n;return(e==null?void 0:e.value)||((n=t.dir)==null?void 0:n.value)||"ltr"})}function Xo(e){const t=yt(),n=t==null?void 0:t.type.emits,o={};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(r=>{o[ko(pt(r))]=(...s)=>e(r,...s)}),o}let Ls=0;function Bc(){We(e=>{if(!Zt)return;const t=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Ca()),document.body.insertAdjacentElement("beforeend",t[1]??Ca()),Ls++,e(()=>{Ls===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Ls--})})}function Ca(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}function Rc(e){return N(()=>{var t;return dn(e)?!!((t=Jt(e))!=null&&t.closest("form")):!0})}function ht(e){const t=yt(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((r,s)=>{const l=(t==null?void 0:t.type.props[s]).default;return l!==void 0&&(r[s]=l),r},{}),o=$u(e);return N(()=>{const r={},s=(t==null?void 0:t.vnode.props)??{};return Object.keys(s).forEach(l=>{r[pt(l)]=s[l]}),Object.keys({...n,...r}).reduce((l,i)=>(o.value[i]!==void 0&&(l[i]=o.value[i]),l),{})})}function Ue(e,t){const n=ht(e),o=t?Xo(t):{};return N(()=>({...n.value,...o}))}function ie(){const e=yt(),t=B(),n=N(()=>{var l,i;return["#text","#comment"].includes((l=t.value)==null?void 0:l.$el.nodeName)?(i=t.value)==null?void 0:i.$el.nextElementSibling:Jt(t)}),o=Object.assign({},e.exposed),r={};for(const l in e.props)Object.defineProperty(r,l,{enumerable:!0,configurable:!0,get:()=>e.props[l]});if(Object.keys(o).length>0)for(const l in o)Object.defineProperty(r,l,{enumerable:!0,configurable:!0,get:()=>o[l]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=r;function s(l){t.value=l,!(l instanceof Element||!l)&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>l.$el}),e.exposed=r)}return{forwardRef:s,currentRef:t,currentElement:n}}function sm(e,t){const n=Ac(!1,300),o=B(null),r=Vg();function s(){o.value=null,n.value=!1}function l(i,a){const d=i.currentTarget,u={x:i.clientX,y:i.clientY},f=lm(u,d.getBoundingClientRect()),p=im(u,f),h=am(a.getBoundingClientRect()),g=cm([...p,...h]);o.value=g,n.value=!0}return We(i=>{if(e.value&&t.value){const a=u=>l(u,t.value),d=u=>l(u,e.value);e.value.addEventListener("pointerleave",a),t.value.addEventListener("pointerleave",d),i(()=>{var u,f;(u=e.value)==null||u.removeEventListener("pointerleave",a),(f=t.value)==null||f.removeEventListener("pointerleave",d)})}}),We(i=>{if(o.value){const a=d=>{var u,f;if(!o.value)return;const p=d.target,h={x:d.clientX,y:d.clientY},g=((u=e.value)==null?void 0:u.contains(p))||((f=t.value)==null?void 0:f.contains(p)),m=!um(h,o.value),y=p.hasAttribute("data-grace-area-trigger");g?s():(m||y)&&(s(),r.trigger())};document.addEventListener("pointermove",a),i(()=>document.removeEventListener("pointermove",a))}}),{isPointerInTransit:n,onPointerExit:r.on}}function lm(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function im(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function am(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function um(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,l=t.length-1;so!=u>o&&n<(d-i)*(o-a)/(u-a)+i&&(r=!r)}return r}function cm(e){const t=e.slice();return t.sort((n,o)=>n.xo.x?1:n.yo.y?1:0),dm(t)}function dm(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(r.y-l.y)>=(s.y-l.y)*(r.x-l.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(r.y-l.y)>=(s.y-l.y)*(r.x-l.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var fm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qn=new WeakMap,ar=new WeakMap,ur={},Vs=0,Dc=function(e){return e&&(e.host||Dc(e.parentNode))},pm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Dc(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hm=function(e,t,n,o){var r=pm(t,Array.isArray(e)?e:[e]);ur[n]||(ur[n]=new WeakMap);var s=ur[n],l=[],i=new Set,a=new Set(r),d=function(f){!f||i.has(f)||(i.add(f),d(f.parentNode))};r.forEach(d);var u=function(f){!f||a.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))u(p);else try{var h=p.getAttribute(o),g=h!==null&&h!=="false",m=(qn.get(p)||0)+1,y=(s.get(p)||0)+1;qn.set(p,m),s.set(p,y),l.push(p),m===1&&g&&ar.set(p,!0),y===1&&p.setAttribute(n,"true"),g||p.setAttribute(o,"true")}catch(_){console.error("aria-hidden: cannot operate on ",p,_)}})};return u(t),i.clear(),Vs++,function(){l.forEach(function(f){var p=qn.get(f)-1,h=s.get(f)-1;qn.set(f,p),s.set(f,h),p||(ar.has(f)||f.removeAttribute(o),ar.delete(f)),h||f.removeAttribute(n)}),Vs--,Vs||(qn=new WeakMap,qn=new WeakMap,ar=new WeakMap,ur={})}},gm=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=fm(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),hm(o,r,n,"aria-hidden")):function(){return null}};function ri(e){let t;ve(()=>Jt(e),n=>{n?t=gm(n):t&&t()}),xn(()=>{t&&t()})}let mm=0;function vt(e,t="radix"){const n=gs({useId:void 0});return Ni?`${t}-${Ni()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++mm}`}function vm(e){const t=B(),n=N(()=>{var r;return((r=t.value)==null?void 0:r.width)??0}),o=N(()=>{var r;return((r=t.value)==null?void 0:r.height)??0});return Ie(()=>{const r=Jt(e);if(r){t.value={width:r.offsetWidth,height:r.offsetHeight};const s=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const i=l[0];let a,d;if("borderBoxSize"in i){const u=i.borderBoxSize,f=Array.isArray(u)?u[0]:u;a=f.inlineSize,d=f.blockSize}else a=r.offsetWidth,d=r.offsetHeight;t.value={width:a,height:d}});return s.observe(r,{box:"border-box"}),()=>s.unobserve(r)}else t.value=void 0}),{width:n,height:o}}function ym(e,t){const n=B(e);function o(r){return t[n.value][r]??n.value}return{state:n,dispatch:r=>{n.value=o(r)}}}function si(e){const t=Ac("",1e3);return{search:t,handleTypeaheadSearch:(n,o)=>{var r,s;if(!(e!=null&&e.value)&&!o)return;t.value=t.value+n;const l=(e==null?void 0:e.value)??o,i=document.activeElement,a=((s=(r=l.find(p=>p===i))==null?void 0:r.textContent)==null?void 0:s.trim())??"",d=l.map(p=>{var h;return((h=p.textContent)==null?void 0:h.trim())??""}),u=wm(d,t.value,a),f=l.find(p=>{var h;return((h=p.textContent)==null?void 0:h.trim())===u});return f&&f.focus(),f},resetTypeahead:()=>{t.value=""}}}function bm(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function wm(e,t,n){const o=t.length>1&&Array.from(t).every(i=>i===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let s=bm(e,Math.max(r,0));o.length===1&&(s=s.filter(i=>i!==n));const l=s.find(i=>i.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}const li=I({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var o,r;if(!n.default)return null;const s=hs(n.default()),l=s.findIndex(u=>u.type!==It);if(l===-1)return s;const i=s[l];(o=i.props)==null||delete o.ref;const a=i.props?te(t,i.props):t;t.class&&(r=i.props)!=null&&r.class&&delete i.props.class;const d=Pn(i,a);for(const u in a)u.startsWith("on")&&(d.props||(d.props={}),d.props[u]=a[u]);return s.length===1?d:(s[l]=d,s)}}}),_e=I({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const o=e.asChild?"template":e.as;return typeof o=="string"&&["area","img","input"].includes(o)?()=>we(o,t):o!=="template"?()=>we(e.as,t,{default:n.default}):()=>we(li,t,{default:n.default})}});function jc(){const e=B(),t=N(()=>{var n,o;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(o=e.value)==null?void 0:o.$el.nextElementSibling:Jt(e)});return{primitiveElement:e,currentElement:t}}const[Lc,xm]=Ne("CollapsibleRoot"),_m=I({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(e,{expose:t,emit:n}){const o=e,r=mt(o,"open",n,{defaultValue:o.defaultOpen,passive:o.open===void 0}),s=mt(o,"disabled");return xm({contentId:"",disabled:s,open:r,onOpenToggle:()=>{r.value=!r.value}}),t({open:r}),ie(),(l,i)=>(w(),M(c(_e),{as:l.as,"as-child":o.asChild,"data-state":o.open?"open":"closed","data-disabled":o.disabled?"":void 0},{default:v(()=>[L(l.$slots,"default",{open:c(r)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),Cm=I({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;ie();const n=Lc();return(o,r)=>{var s,l;return w(),M(c(_e),{type:o.as==="button"?"button":void 0,as:o.as,"as-child":t.asChild,"aria-controls":c(n).contentId,"aria-expanded":c(n).open.value,"data-state":c(n).open.value?"open":"closed","data-disabled":(s=c(n).disabled)!=null&&s.value?"":void 0,disabled:(l=c(n).disabled)==null?void 0:l.value,onClick:c(n).onOpenToggle},{default:v(()=>[L(o.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"])}}});function Sm(e,t){const n=B({}),o=B("none"),r=e.value?"mounted":"unmounted",{state:s,dispatch:l}=ym(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),i=p=>{var h;if(Zt){const g=new CustomEvent(p,{bubbles:!1,cancelable:!1});(h=t.value)==null||h.dispatchEvent(g)}};ve(e,async(p,h)=>{var g;const m=h!==p;if(await Ae(),m){const y=o.value,_=cr(t.value);p?(l("MOUNT"),i("enter"),_==="none"&&i("after-enter")):_==="none"||((g=n.value)==null?void 0:g.display)==="none"?(l("UNMOUNT"),i("leave"),i("after-leave")):h&&y!==_?(l("ANIMATION_OUT"),i("leave")):(l("UNMOUNT"),i("after-leave"))}},{immediate:!0});const a=p=>{const h=cr(t.value),g=h.includes(p.animationName),m=s.value==="mounted"?"enter":"leave";p.target===t.value&&g&&(i(`after-${m}`),l("ANIMATION_END")),p.target===t.value&&h==="none"&&l("ANIMATION_END")},d=p=>{p.target===t.value&&(o.value=cr(t.value))},u=ve(t,(p,h)=>{p?(n.value=getComputedStyle(p),p.addEventListener("animationstart",d),p.addEventListener("animationcancel",a),p.addEventListener("animationend",a)):(l("ANIMATION_END"),h==null||h.removeEventListener("animationstart",d),h==null||h.removeEventListener("animationcancel",a),h==null||h.removeEventListener("animationend",a))},{immediate:!0}),f=ve(s,()=>{const p=cr(t.value);o.value=s.value==="mounted"?p:"none"});return xn(()=>{u(),f()}),{isPresent:N(()=>["mounted","unmountSuspended"].includes(s.value))}}function cr(e){return e&&getComputedStyle(e).animationName||"none"}const _n=I({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var o;const{present:r,forceMount:s}=ot(e),l=B(),{isPresent:i}=Sm(r,l);n({present:i});let a=t.default({present:i});a=hs(a||[]);const d=yt();if(a&&(a==null?void 0:a.length)>1){const u=(o=d==null?void 0:d.parent)!=null&&o.type.name?`<${d.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` 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(` `)].join(` -`))}return()=>s.value||r.value||i.value?we(t.default({present:i})[0],{ref:u=>{const f=Zt(u);return typeof(f==null?void 0:f.hasAttribute)>"u"||(f!=null&&f.hasAttribute("data-radix-popper-content-wrapper")?l.value=f.firstElementChild:l.value=f),f}}):null}}),km=M({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=Lc();n.contentId||(n.contentId=vt(void 0,"radix-vue-collapsible-content"));const o=I(),{forwardRef:r,currentElement:s}=le(),l=I(0),i=I(0),a=N(()=>n.open.value),d=I(a.value),u=I();return me(()=>{var f;return[a.value,(f=o.value)==null?void 0:f.present]},async()=>{await Ae();const f=s.value;if(!f)return;u.value=u.value||{transitionDuration:f.style.transitionDuration,animationName:f.style.animationName},f.style.transitionDuration="0s",f.style.animationName="none";const p=f.getBoundingClientRect();i.value=p.height,l.value=p.width,d.value||(f.style.transitionDuration=u.value.transitionDuration,f.style.animationName=u.value.animationName)},{immediate:!0}),Ie(()=>{requestAnimationFrame(()=>{d.value=!1})}),(f,p)=>(w(),P(c(_n),{ref_key:"presentRef",ref:o,present:f.forceMount||c(n).open.value,"force-mount":!0},{default:v(()=>{var h,g;return[b(c(_e),te(f.$attrs,{id:c(n).contentId,ref:c(r),"as-child":t.asChild,as:f.as,"data-state":c(n).open.value?"open":"closed","data-disabled":(h=c(n).disabled)!=null&&h.value?"":void 0,hidden:!((g=o.value)!=null&&g.present),style:{"--radix-collapsible-content-height":`${i.value}px`,"--radix-collapsible-content-width":`${l.value}px`}}),{default:v(()=>{var m;return[(m=o.value)!=null&&m.present?j(f.$slots,"default",{key:0}):ie("",!0)]}),_:3},16,["id","as-child","as","data-state","data-disabled","hidden","style"])]}),_:3},8,["present"]))}});function Vc({type:e,defaultValue:t,modelValue:n}){const o=n||t;if(wr(e)&&wr(n)&&wr(t))throw new Error("Either the `type` or the `value` or `default-value` prop must be defined.");if(n!==void 0&&t!==void 0&&typeof n!=typeof t)throw new Error(`Invalid prop \`value\` of value \`${n}\` supplied, should be the same type as the \`defaultValue\` prop, which is \`${t}\`. The \`value\` prop must be: +`))}return()=>s.value||r.value||i.value?we(t.default({present:i})[0],{ref:u=>{const f=Jt(u);return typeof(f==null?void 0:f.hasAttribute)>"u"||(f!=null&&f.hasAttribute("data-radix-popper-content-wrapper")?l.value=f.firstElementChild:l.value=f),f}}):null}}),km=I({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=Lc();n.contentId||(n.contentId=vt(void 0,"radix-vue-collapsible-content"));const o=B(),{forwardRef:r,currentElement:s}=ie(),l=B(0),i=B(0),a=N(()=>n.open.value),d=B(a.value),u=B();return ve(()=>{var f;return[a.value,(f=o.value)==null?void 0:f.present]},async()=>{await Ae();const f=s.value;if(!f)return;u.value=u.value||{transitionDuration:f.style.transitionDuration,animationName:f.style.animationName},f.style.transitionDuration="0s",f.style.animationName="none";const p=f.getBoundingClientRect();i.value=p.height,l.value=p.width,d.value||(f.style.transitionDuration=u.value.transitionDuration,f.style.animationName=u.value.animationName)},{immediate:!0}),Ie(()=>{requestAnimationFrame(()=>{d.value=!1})}),(f,p)=>(w(),M(c(_n),{ref_key:"presentRef",ref:o,present:f.forceMount||c(n).open.value,"force-mount":!0},{default:v(()=>{var h,g;return[b(c(_e),te(f.$attrs,{id:c(n).contentId,ref:c(r),"as-child":t.asChild,as:f.as,"data-state":c(n).open.value?"open":"closed","data-disabled":(h=c(n).disabled)!=null&&h.value?"":void 0,hidden:!((g=o.value)!=null&&g.present),style:{"--radix-collapsible-content-height":`${i.value}px`,"--radix-collapsible-content-width":`${l.value}px`}}),{default:v(()=>{var m;return[(m=o.value)!=null&&m.present?L(f.$slots,"default",{key:0}):ae("",!0)]}),_:3},16,["id","as-child","as","data-state","data-disabled","hidden","style"])]}),_:3},8,["present"]))}});function Vc({type:e,defaultValue:t,modelValue:n}){const o=n||t;if(wr(e)&&wr(n)&&wr(t))throw new Error("Either the `type` or the `value` or `default-value` prop must be defined.");if(n!==void 0&&t!==void 0&&typeof n!=typeof t)throw new Error(`Invalid prop \`value\` of value \`${n}\` supplied, should be the same type as the \`defaultValue\` prop, which is \`${t}\`. The \`value\` prop must be: ${e==="single"?"- a string":e==="multiple"?"- an array of strings":`- a string - an array of strings`} - \`undefined\``);const r=n!==void 0||t!==void 0;if(e&&r){const s=Array.isArray(n)||Array.isArray(t),l=n!==void 0?"modelValue":"defaultValue",i=l==="modelValue"?typeof n:typeof t;if(e==="single"&&s)return console.error(`Invalid prop \`${l}\` of type ${i} supplied with type \`single\`. The \`modelValue\` prop must be a string or \`undefined\`. You can remove the \`type\` prop to let the component infer the type from the ${l} prop.`),"multiple";if(e==="multiple"&&!s)return console.error(`Invalid prop \`${l}\` of type ${i} supplied with type \`multiple\`. The \`modelValue\` prop must be an array of strings or \`undefined\`. - You can remove the \`type\` prop to let the component infer the type from the ${l} prop.`),"single"}return r?Array.isArray(o)?"multiple":"single":e}function Em({type:e,defaultValue:t,modelValue:n}){return e||Vc({type:e,defaultValue:t,modelValue:n})}function Om({type:e,defaultValue:t}){return t!==void 0?t:e==="single"?void 0:[]}function Tm(e,t){const n=I(Em(e)),o=mt(e,"modelValue",t,{defaultValue:Om(e),passive:e.modelValue===void 0,deep:!0});me(()=>[e.type,e.modelValue,e.defaultValue],()=>{const l=Vc(e);n.value!==l&&(n.value=l)},{immediate:!0});function r(l){if(n.value==="single")o.value=l===o.value?void 0:l;else{const i=[...o.value||[]];if(i.includes(l)){const a=i.findIndex(d=>d===l);i.splice(a,1)}else i.push(l);o.value=i}}const s=N(()=>n.value==="single");return{modelValue:o,type:n,changeModelValue:r,isSingle:s}}const[ms,Am]=Ne("AccordionRoot"),$m=M({__name:"AccordionRoot",props:{collapsible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dir:{},orientation:{default:"vertical"},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,{dir:r,disabled:s}=ot(n),l=po(r),{modelValue:i,changeModelValue:a,isSingle:d}=Tm(n,o),{forwardRef:u,currentElement:f}=le();return Am({disabled:s,direction:l,orientation:n.orientation,parentElement:f,isSingle:d,collapsible:n.collapsible,modelValue:i,changeModelValue:a}),(p,h)=>(w(),P(c(_e),{ref:c(u),"as-child":p.asChild,as:p.as},{default:v(()=>[j(p.$slots,"default",{modelValue:c(i)})]),_:3},8,["as-child","as"]))}}),[ii,Pm]=Ne("AccordionItem"),Mm=M({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},asChild:{type:Boolean},as:{}},setup(e,{expose:t}){const n=e,o=ms(),r=N(()=>o.isSingle.value?n.value===o.modelValue.value:Array.isArray(o.modelValue.value)&&o.modelValue.value.includes(n.value)),s=N(()=>o.disabled.value||n.disabled||o.isSingle.value&&r.value&&!o.collapsible),l=N(()=>s.value?"":void 0),i=N(()=>r.value?"open":"closed");t({open:r,dataDisabled:l});const{currentRef:a,currentElement:d}=le();Pm({open:r,dataState:i,disabled:s,dataDisabled:l,triggerId:"",currentRef:a,currentElement:d,value:N(()=>n.value)});function u(f){Mc(f,d.value,o.parentElement.value,{arrowKeyOptions:o.orientation,dir:o.direction.value,focus:!0})}return(f,p)=>(w(),P(c(_m),{"data-orientation":c(o).orientation,"data-disabled":l.value,"data-state":i.value,disabled:s.value,open:r.value,as:n.as,"as-child":n.asChild,onKeydown:cs(u,["up","down","left","right","home","end"])},{default:v(()=>[j(f.$slots,"default",{open:r.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child"]))}}),Im=M({__name:"AccordionContent",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=ms(),o=ii();return le(),(r,s)=>(w(),P(c(km),{role:"region",hidden:!c(o).open.value,"as-child":t.asChild,"aria-labelledby":c(o).triggerId,"data-state":c(o).dataState.value,"data-disabled":c(o).dataDisabled.value,"data-orientation":c(n).orientation,style:{"--radix-accordion-content-width":"var(--radix-collapsible-content-width)","--radix-accordion-content-height":"var(--radix-collapsible-content-height)"}},{default:v(()=>[j(r.$slots,"default")]),_:3},8,["hidden","as-child","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),Bm=M({__name:"AccordionHeader",props:{asChild:{type:Boolean},as:{default:"h3"}},setup(e){const t=e,n=ms(),o=ii();return le(),(r,s)=>(w(),P(c(_e),{as:t.as,"as-child":t.asChild,"data-orientation":c(n).orientation,"data-state":c(o).dataState.value,"data-disabled":c(o).dataDisabled.value},{default:v(()=>[j(r.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),Rm=M({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=ms(),o=ii();o.triggerId||(o.triggerId=vt(void 0,"radix-vue-accordion-trigger"));function r(){o.disabled.value||n.changeModelValue(o.value.value)}return(s,l)=>(w(),P(c(Cm),{id:c(o).triggerId,ref:c(o).currentRef,"data-radix-vue-collection-item":"",as:t.as,"as-child":t.asChild,"aria-disabled":c(o).disabled.value||void 0,"aria-expanded":c(o).open.value||!1,"data-disabled":c(o).dataDisabled.value,"data-orientation":c(n).orientation,"data-state":c(o).dataState.value,disabled:c(o).disabled.value,onClick:r},{default:v(()=>[j(s.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),[Cn,Dm]=Ne("DialogRoot"),jm=M({__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=mt(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),r=I(),s=I(),{modal:l}=ot(n);return Dm({open:o,modal:l,openModal:()=>{o.value=!0},onOpenChange:i=>{o.value=i},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:r,contentElement:s}),(i,a)=>j(i.$slots,"default",{open:c(o)})}}),vs=M({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=Jg();return(n,o)=>c(t)||n.forceMount?(w(),P(ts,{key:0,to:n.to,disabled:n.disabled},[j(n.$slots,"default")],8,["to","disabled"])):ie("",!0)}}),Nc=M({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),P(c(vs),Ke(Je(t)),{default:v(()=>[j(n.$slots,"default")]),_:3},16))}}),Lm="dismissableLayer.pointerDownOutside",Vm="dismissableLayer.focusOutside";function Fc(e,t){const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&o===n||r.indexOf(o){});return We(l=>{if(!Gt)return;const i=async d=>{const u=d.target;if(t!=null&&t.value){if(Fc(t.value,u)){r.value=!1;return}if(d.target&&!r.value){let f=function(){Oc(Lm,e,p)};const p={originalEvent:d};d.pointerType==="touch"?(o.removeEventListener("click",s.value),s.value=f,o.addEventListener("click",s.value,{once:!0})):f()}else o.removeEventListener("click",s.value);r.value=!1}},a=window.setTimeout(()=>{o.addEventListener("pointerdown",i)},0);l(()=>{window.clearTimeout(a),o.removeEventListener("pointerdown",i),o.removeEventListener("click",s.value)})}),{onPointerDownCapture:()=>r.value=!0}}function Fm(e,t){var n;const o=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=I(!1);return We(s=>{if(!Gt)return;const l=async i=>{t!=null&&t.value&&(await Ae(),!(!t.value||Fc(t.value,i.target))&&i.target&&!r.value&&Oc(Vm,e,{originalEvent:i}))};o.addEventListener("focusin",l),s(()=>o.removeEventListener("focusin",l))}),{onFocusCapture:()=>r.value=!0,onBlurCapture:()=>r.value=!1}}const Lt=wn({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ys=M({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:r,currentElement:s}=le(),l=N(()=>{var g;return((g=s.value)==null?void 0:g.ownerDocument)??globalThis.document}),i=N(()=>Lt.layersRoot),a=N(()=>s.value?Array.from(i.value).indexOf(s.value):-1),d=N(()=>Lt.layersWithOutsidePointerEventsDisabled.size>0),u=N(()=>{const g=Array.from(i.value),[m]=[...Lt.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(m);return a.value>=y}),f=Nm(async g=>{const m=[...Lt.branches].some(y=>y==null?void 0:y.contains(g.target));!u.value||m||(o("pointerDownOutside",g),o("interactOutside",g),await Ae(),g.defaultPrevented||o("dismiss"))},s),p=Fm(g=>{[...Lt.branches].some(m=>m==null?void 0:m.contains(g.target))||(o("focusOutside",g),o("interactOutside",g),g.defaultPrevented||o("dismiss"))},s);Zg("Escape",g=>{a.value===i.value.size-1&&(o("escapeKeyDown",g),g.defaultPrevented||o("dismiss"))});let h;return We(g=>{s.value&&(n.disableOutsidePointerEvents&&(Lt.layersWithOutsidePointerEventsDisabled.size===0&&(h=l.value.body.style.pointerEvents,l.value.body.style.pointerEvents="none"),Lt.layersWithOutsidePointerEventsDisabled.add(s.value)),i.value.add(s.value),g(()=>{n.disableOutsidePointerEvents&&Lt.layersWithOutsidePointerEventsDisabled.size===1&&(l.value.body.style.pointerEvents=h)}))}),We(g=>{g(()=>{s.value&&(i.value.delete(s.value),Lt.layersWithOutsidePointerEventsDisabled.delete(s.value))})}),(g,m)=>(w(),P(c(_e),{ref:c(r),"as-child":g.asChild,as:g.as,"data-dismissable-layer":"",style:vn({pointerEvents:d.value?u.value?"auto":"none":void 0}),onFocusCapture:c(p).onFocusCapture,onBlurCapture:c(p).onBlurCapture,onPointerdownCapture:c(f).onPointerDownCapture},{default:v(()=>[j(g.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Ns="focusScope.autoFocusOnMount",Fs="focusScope.autoFocusOnUnmount",Sa={bubbles:!1,cancelable:!0};function Hm(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Xt(o,{select:t}),document.activeElement!==n)return!0}function zm(e){const t=Hc(e),n=ka(t,e),o=ka(t.reverse(),e);return[n,o]}function Hc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ka(e,t){for(const n of e)if(!Km(n,{upTo:t}))return n}function Km(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 Wm(e){return e instanceof HTMLInputElement&&"select"in e}function Xt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Wm(e)&&t&&e.select()}}const Um=Ng(()=>I([]));function qm(){const e=Um();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=Ea(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=Ea(e.value,t),(n=e.value[0])==null||n.resume()}}}function Ea(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Gm(e){return e.filter(t=>t.tagName!=="A")}const ai=M({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:r,currentElement:s}=le(),l=I(null),i=qm(),a=wn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});We(u=>{if(!Gt)return;const f=s.value;if(!n.trapped)return;function p(y){if(a.paused||!f)return;const _=y.target;f.contains(_)?l.value=_:Xt(l.value,{select:!0})}function h(y){if(a.paused||!f)return;const _=y.relatedTarget;_!==null&&(f.contains(_)||Xt(l.value,{select:!0}))}function g(y){f.contains(l.value)||Xt(f)}document.addEventListener("focusin",p),document.addEventListener("focusout",h);const m=new MutationObserver(g);f&&m.observe(f,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",h),m.disconnect()})}),We(async u=>{const f=s.value;if(await Ae(),!f)return;i.add(a);const p=document.activeElement;if(!f.contains(p)){const h=new CustomEvent(Ns,Sa);f.addEventListener(Ns,g=>o("mountAutoFocus",g)),f.dispatchEvent(h),h.defaultPrevented||(Hm(Gm(Hc(f)),{select:!0}),document.activeElement===p&&Xt(f))}u(()=>{f.removeEventListener(Ns,m=>o("mountAutoFocus",m));const h=new CustomEvent(Fs,Sa),g=m=>{o("unmountAutoFocus",m)};f.addEventListener(Fs,g),f.dispatchEvent(h),setTimeout(()=>{h.defaultPrevented||Xt(p??document.body,{select:!0}),f.removeEventListener(Fs,g),i.remove(a)},0)})});function d(u){if(!n.loop&&!n.trapped||a.paused)return;const f=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,p=document.activeElement;if(f&&p){const h=u.currentTarget,[g,m]=zm(h);g&&m?!u.shiftKey&&p===m?(u.preventDefault(),n.loop&&Xt(g,{select:!0})):u.shiftKey&&p===g&&(u.preventDefault(),n.loop&&Xt(m,{select:!0})):p===h&&u.preventDefault()}}return(u,f)=>(w(),P(c(_e),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:d},{default:v(()=>[j(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),Zm="menu.itemSelect",fl=["Enter"," "],Jm=["ArrowDown","PageUp","Home"],zc=["ArrowUp","PageDown","End"],Ym=[...Jm,...zc];[...fl],[...fl];function Kc(e){return e?"open":"closed"}function pl(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qm(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,l=t.length-1;so!=u>o&&n<(d-i)*(o-a)/(u-a)+i&&(r=!r)}return r}function Xm(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Qm(n,t)}function hl(e){return e.pointerType==="mouse"}const Wc=M({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Cn(),{forwardRef:s,currentElement:l}=le();return r.titleId||(r.titleId=vt(void 0,"radix-vue-dialog-title")),r.descriptionId||(r.descriptionId=vt(void 0,"radix-vue-dialog-description")),Ie(()=>{r.contentElement=l,document.activeElement!==document.body&&(r.triggerElement.value=document.activeElement)}),(i,a)=>(w(),P(c(ai),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:a[5]||(a[5]=d=>o("openAutoFocus",d)),onUnmountAutoFocus:a[6]||(a[6]=d=>o("closeAutoFocus",d))},{default:v(()=>[b(c(ys),te({id:c(r).contentId,ref:c(s),as:i.as,"as-child":i.asChild,"disable-outside-pointer-events":i.disableOutsidePointerEvents,role:"dialog","aria-describedby":c(r).descriptionId,"aria-labelledby":c(r).titleId,"data-state":c(Kc)(c(r).open.value)},i.$attrs,{onDismiss:a[0]||(a[0]=d=>c(r).onOpenChange(!1)),onEscapeKeyDown:a[1]||(a[1]=d=>o("escapeKeyDown",d)),onFocusOutside:a[2]||(a[2]=d=>o("focusOutside",d)),onInteractOutside:a[3]||(a[3]=d=>o("interactOutside",d)),onPointerDownOutside:a[4]||(a[4]=d=>o("pointerDownOutside",d))}),{default:v(()=>[j(i.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),ev=M({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Cn(),s=Xo(o),{forwardRef:l,currentElement:i}=le();return ri(i),(a,d)=>(w(),P(Wc,te({...n,...c(s)},{ref:c(l),"trap-focus":c(r).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:d[0]||(d[0]=u=>{var f;u.defaultPrevented||(u.preventDefault(),(f=c(r).triggerElement.value)==null||f.focus())}),onPointerDownOutside:d[1]||(d[1]=u=>{const f=u.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0;(f.button===2||p)&&u.preventDefault()}),onFocusOutside:d[2]||(d[2]=u=>{u.preventDefault()})}),{default:v(()=>[j(a.$slots,"default")]),_:3},16,["trap-focus"]))}}),tv=M({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=Xo(t);le();const r=Cn(),s=I(!1),l=I(!1);return(i,a)=>(w(),P(Wc,te({...n,...c(o)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:a[0]||(a[0]=d=>{var u;d.defaultPrevented||(s.value||(u=c(r).triggerElement.value)==null||u.focus(),d.preventDefault()),s.value=!1,l.value=!1}),onInteractOutside:a[1]||(a[1]=d=>{var u;d.defaultPrevented||(s.value=!0,d.detail.originalEvent.type==="pointerdown"&&(l.value=!0));const f=d.target;(u=c(r).triggerElement.value)!=null&&u.contains(f)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&l.value&&d.preventDefault()})}),{default:v(()=>[j(i.$slots,"default")]),_:3},16))}}),Uc=M({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Cn(),s=Xo(o),{forwardRef:l}=le();return(i,a)=>(w(),P(c(_n),{present:i.forceMount||c(r).open.value},{default:v(()=>[c(r).modal.value?(w(),P(ev,te({key:0,ref:c(l)},{...n,...c(s),...i.$attrs}),{default:v(()=>[j(i.$slots,"default")]),_:3},16)):(w(),P(tv,te({key:1,ref:c(l)},{...n,...c(s),...i.$attrs}),{default:v(()=>[j(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),nv=M({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(e){const t=Cn();return oi(!0),le(),(n,o)=>(w(),P(c(_e),{as:n.as,"as-child":n.asChild,"data-state":c(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:v(()=>[j(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),qc=M({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=Cn(),{forwardRef:n}=le();return(o,r)=>{var s;return(s=c(t))!=null&&s.modal.value?(w(),P(c(_n),{key:0,present:o.forceMount||c(t).open.value},{default:v(()=>[b(nv,te(o.$attrs,{ref:c(n),as:o.as,"as-child":o.asChild}),{default:v(()=>[j(o.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):ie("",!0)}}}),Gc=M({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;le();const n=Cn();return(o,r)=>(w(),P(c(_e),te(t,{type:o.as==="button"?"button":void 0,onClick:r[0]||(r[0]=s=>c(n).onOpenChange(!1))}),{default:v(()=>[j(o.$slots,"default")]),_:3},16,["type"]))}}),ov=M({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(e){const t=e,n=Cn();return le(),(o,r)=>(w(),P(c(_e),te(t,{id:c(n).titleId}),{default:v(()=>[j(o.$slots,"default")]),_:3},16,["id"]))}});function jr(e){return e==="indeterminate"}function Zc(e){return jr(e)?"indeterminate":e?"checked":"unchecked"}const rv=["value","checked","name","disabled","required"],[sv,lv]=Ne("CheckboxRoot"),iv=M({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,o=t,{disabled:r}=ot(n),s=mt(n,"checked",o,{defaultValue:n.defaultChecked,passive:n.checked===void 0}),{forwardRef:l,currentElement:i}=le(),a=Rc(i),d=N(()=>{var u;return n.id&&i.value?(u=document.querySelector(`[for="${n.id}"]`))==null?void 0:u.innerText:void 0});return lv({disabled:r,state:s}),(u,f)=>(w(),z(Te,null,[b(c(_e),te(u.$attrs,{id:u.id,ref:c(l),role:"checkbox","as-child":n.asChild,as:u.as,type:u.as==="button"?"button":void 0,"aria-checked":c(jr)(c(s))?"mixed":c(s),"aria-required":!1,"aria-label":u.$attrs["aria-label"]||d.value,"data-state":c(Zc)(c(s)),"data-disabled":c(r)?"":void 0,disabled:c(r),onKeydown:cs($t(()=>{},["prevent"]),["enter"]),onClick:f[0]||(f[0]=p=>s.value=c(jr)(c(s))?!0:!c(s))}),{default:v(()=>[j(u.$slots,"default",{checked:c(s)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-label","data-state","data-disabled","disabled","onKeydown"]),c(a)?(w(),z("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:u.value,checked:!!c(s),name:n.name,disabled:n.disabled,required:n.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,rv)):ie("",!0)],64))}}),av=M({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(e){const{forwardRef:t}=le(),n=sv();return(o,r)=>(w(),P(c(_n),{present:o.forceMount||c(jr)(c(n).state.value)||c(n).state.value===!0},{default:v(()=>[b(c(_e),te({ref:c(t),"data-state":c(Zc)(c(n).state.value),"data-disabled":c(n).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":o.asChild,as:o.as},o.$attrs),{default:v(()=>[j(o.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),[Jc,uv]=Ne("PopperRoot"),ui=M({__name:"PopperRoot",setup(e){const t=I();return uv({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>j(n.$slots,"default")}}),ci=M({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:o}=le(),r=Jc();return We(()=>{r.onAnchorChange(t.element??o.value)}),(s,l)=>(w(),P(c(_e),{ref:c(n),as:s.as,"as-child":s.asChild},{default:v(()=>[j(s.$slots,"default")]),_:3},8,["as","as-child"]))}});function cv(e){return e!==null}function dv(e){return{name:"transformOrigin",options:e,fn(t){var n,o,r;const{placement:s,rects:l,middlewareData:i}=t,a=((n=i.arrow)==null?void 0:n.centerOffset)!==0,d=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[f,p]=gl(s),h={start:"0%",center:"50%",end:"100%"}[p],g=(((o=i.arrow)==null?void 0:o.x)??0)+d/2,m=(((r=i.arrow)==null?void 0:r.y)??0)+u/2;let y="",_="";return f==="bottom"?(y=a?h:`${g}px`,_=`${-u}px`):f==="top"?(y=a?h:`${g}px`,_=`${l.floating.height+u}px`):f==="right"?(y=`${-u}px`,_=a?h:`${m}px`):f==="left"&&(y=`${l.floating.width+u}px`,_=a?h:`${m}px`),{data:{x:y,y:_}}}}}function gl(e){const[t,n="center"]=e.split("-");return[t,n]}const Yc={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[$1,fv]=Ne("PopperContent"),di=M({inheritAttrs:!1,__name:"PopperContent",props:Ju({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...Yc}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,r=Jc(),{forwardRef:s,currentElement:l}=le(),i=I(),a=I(),{width:d,height:u}=vm(a),f=N(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),p=N(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),h=N(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),g=N(()=>({padding:p.value,boundary:h.value.filter(cv),altBoundary:h.value.length>0})),m=Lg(()=>[Tg({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&ba({...g.value}),n.avoidCollisions&&Ag({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Ig():void 0,...g.value}),!n.prioritizePosition&&n.avoidCollisions&&ba({...g.value}),$g({...g.value,apply:({elements:S,rects:F,availableWidth:V,availableHeight:xe})=>{const{width:ve,height:Fe}=F.reference,ye=S.floating.style;ye.setProperty("--radix-popper-available-width",`${V}px`),ye.setProperty("--radix-popper-available-height",`${xe}px`),ye.setProperty("--radix-popper-anchor-width",`${ve}px`),ye.setProperty("--radix-popper-anchor-height",`${Fe}px`)}}),a.value&&Dg({element:a.value,padding:n.arrowPadding}),dv({arrowWidth:d.value,arrowHeight:u.value}),n.hideWhenDetached&&Pg({strategy:"referenceHidden",...g.value})]),{floatingStyles:y,placement:_,isPositioned:k,middlewareData:C}=jg(r.anchor,i,{strategy:"fixed",placement:f,whileElementsMounted:(...S)=>Og(...S,{animationFrame:n.updatePositionStrategy==="always"}),middleware:m}),T=N(()=>gl(_.value)[0]),B=N(()=>gl(_.value)[1]);Bp(()=>{k.value&&o("placed")});const A=N(()=>{var S;return((S=C.value.arrow)==null?void 0:S.centerOffset)!==0}),E=I("");We(()=>{l.value&&(E.value=window.getComputedStyle(l.value).zIndex)});const R=N(()=>{var S;return((S=C.value.arrow)==null?void 0:S.x)??0}),L=N(()=>{var S;return((S=C.value.arrow)==null?void 0:S.y)??0});return fv({placedSide:T,onArrowChange:S=>a.value=S,arrowX:R,arrowY:L,shouldHideArrow:A}),(S,F)=>{var V,xe,ve;return w(),z("div",{ref_key:"floatingRef",ref:i,"data-radix-popper-content-wrapper":"",style:vn({...c(y),transform:c(k)?c(y).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:E.value,"--radix-popper-transform-origin":[(V=c(C).transformOrigin)==null?void 0:V.x,(xe=c(C).transformOrigin)==null?void 0:xe.y].join(" "),...((ve=c(C).hide)==null?void 0:ve.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[b(c(_e),te({ref:c(s)},S.$attrs,{"as-child":n.asChild,as:S.as,"data-side":T.value,"data-align":B.value,style:{animation:c(k)?void 0:"none"}}),{default:v(()=>[j(S.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),Qc=M({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return le(),(t,n)=>(w(),P(c(_e),{as:t.as,"as-child":t.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:v(()=>[j(t.$slots,"default")]),_:3},8,["as","as-child"]))}}),pv="data-radix-vue-collection-item",[fi,hv]=Ne("CollectionProvider");function gv(e=pv){const t=I(new Map),n=I(),o=hv({collectionRef:n,itemMap:t,attrName:e}),{getItems:r}=ed(o),s=N(()=>Array.from(o.itemMap.value.values())),l=N(()=>o.itemMap.value.size);return{getItems:r,reactiveItems:s,itemMapSize:l}}const mv=M({name:"CollectionSlot",setup(e,{slots:t}){const n=fi(),{primitiveElement:o,currentElement:r}=jc();return me(r,()=>{n.collectionRef.value=r.value}),()=>we(li,{ref:o},t)}}),Xc=M({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){const o=fi(),{primitiveElement:r,currentElement:s}=jc();return We(l=>{if(s.value){const i=Eu(s.value);o.itemMap.value.set(i,{ref:s.value,value:e.value}),l(()=>o.itemMap.value.delete(i))}}),()=>we(li,{...n,[o.attrName]:"",ref:r},t)}});function ed(e){const t=e??fi();return{getItems:()=>{const n=t.collectionRef.value;if(!n)return[];const o=Array.from(n.querySelectorAll(`[${t.attrName}]`));return Array.from(t.itemMap.value.values()).sort((r,s)=>o.indexOf(r.ref)-o.indexOf(s.ref))}}}function vv(e){const t=gs({nonce:I()});return N(()=>{var n;return(e==null?void 0:e.value)||((n=t.nonce)==null?void 0:n.value)})}const yv=M({__name:"MenuAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(w(),P(c(ci),Ke(Je(t)),{default:v(()=>[j(n.$slots,"default")]),_:3},16))}});function bv(){const e=I(!1);return Ie(()=>{co("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),co(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const wv=Tc(bv),[bs,xv]=Ne(["MenuRoot","MenuSub"],"MenuContext"),[pi,_v]=Ne("MenuRoot"),Cv=M({__name:"MenuRoot",props:{open:{type:Boolean,default:!1},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t,{modal:r,dir:s}=ot(n),l=po(s),i=mt(n,"open",o),a=I(),d=wv();return xv({open:i,onOpenChange:u=>{i.value=u},content:a,onContentChange:u=>{a.value=u}}),_v({onClose:()=>{i.value=!1},isUsingKeyboardRef:d,dir:l,modal:r}),(u,f)=>(w(),P(c(ui),null,{default:v(()=>[j(u.$slots,"default")]),_:3}))}}),Sv="rovingFocusGroup.onEntryFocus",kv={bubbles:!1,cancelable:!0},Ev={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ov(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Tv(e,t,n){const o=Ov(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Ev[o]}function td(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Av(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const[$v,Pv]=Ne("RovingFocusGroup"),nd=M({__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const o=e,r=n,{loop:s,orientation:l,dir:i}=ot(o),a=po(i),d=mt(o,"currentTabStopId",r,{defaultValue:o.defaultCurrentTabStopId,passive:o.currentTabStopId===void 0}),u=I(!1),f=I(!1),p=I(0),{getItems:h}=gv();function g(y){const _=!f.value;if(y.currentTarget&&y.target===y.currentTarget&&_&&!u.value){const k=new CustomEvent(Sv,kv);if(y.currentTarget.dispatchEvent(k),r("entryFocus",k),!k.defaultPrevented){const C=h().map(E=>E.ref).filter(E=>E.dataset.disabled!==""),T=C.find(E=>E.getAttribute("data-active")==="true"),B=C.find(E=>E.id===d.value),A=[T,B,...C].filter(Boolean);td(A,o.preventScrollOnEntryFocus)}}f.value=!1}function m(){setTimeout(()=>{f.value=!1},1)}return t({getItems:h}),Pv({loop:s,dir:a,orientation:l,currentTabStopId:d,onItemFocus:y=>{d.value=y},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{p.value++},onFocusableItemRemove:()=>{p.value--}}),(y,_)=>(w(),P(c(mv),null,{default:v(()=>[b(c(_e),{tabindex:u.value||p.value===0?-1:0,"data-orientation":c(l),as:y.as,"as-child":y.asChild,dir:c(a),style:{outline:"none"},onMousedown:_[0]||(_[0]=k=>f.value=!0),onMouseup:m,onFocus:g,onBlur:_[1]||(_[1]=k=>u.value=!1)},{default:v(()=>[j(y.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Mv=M({__name:"RovingFocusItem",props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!0},allowShiftKey:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=$v(),o=N(()=>t.tabStopId||vt()),r=N(()=>n.currentTabStopId.value===o.value),{getItems:s}=ed();Ie(()=>{t.focusable&&n.onFocusableItemAdd()}),xn(()=>{t.focusable&&n.onFocusableItemRemove()});function l(i){if(i.key==="Tab"&&i.shiftKey){n.onItemShiftTab();return}if(i.target!==i.currentTarget)return;const a=Tv(i,n.orientation.value,n.dir.value);if(a!==void 0){if(i.metaKey||i.ctrlKey||i.altKey||!t.allowShiftKey&&i.shiftKey)return;i.preventDefault();let d=[...s().map(u=>u.ref).filter(u=>u.dataset.disabled!=="")];if(a==="last")d.reverse();else if(a==="prev"||a==="next"){a==="prev"&&d.reverse();const u=d.indexOf(i.currentTarget);d=n.loop.value?Av(d,u+1):d.slice(u+1)}Ae(()=>td(d))}}return(i,a)=>(w(),P(c(Xc),null,{default:v(()=>[b(c(_e),{tabindex:r.value?0:-1,"data-orientation":c(n).orientation.value,"data-active":i.active,"data-disabled":i.focusable?void 0:"",as:i.as,"as-child":i.asChild,onMousedown:a[0]||(a[0]=d=>{i.focusable?c(n).onItemFocus(o.value):d.preventDefault()}),onFocus:a[1]||(a[1]=d=>c(n).onItemFocus(o.value)),onKeydown:l},{default:v(()=>[j(i.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),[od,Iv]=Ne("MenuContent"),rd=M({__name:"MenuContentImpl",props:Ju({loop:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},disableOutsideScroll:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...Yc}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,o=t,r=bs(),s=pi(),{trapFocus:l,disableOutsidePointerEvents:i,loop:a}=ot(n);Bc(),oi(i.value);const d=I(""),u=I(0),f=I(0),p=I(null),h=I("right"),g=I(0),m=I(null),{createCollection:y}=Qo(),{forwardRef:_,currentElement:k}=le(),C=y(k);me(k,S=>{r.onContentChange(S)});const{handleTypeaheadSearch:T}=si(C);xn(()=>{window.clearTimeout(u.value)});function B(S){var F,V;return h.value===((F=p.value)==null?void 0:F.side)&&Xm(S,(V=p.value)==null?void 0:V.area)}async function A(S){var F;o("openAutoFocus",S),!S.defaultPrevented&&(S.preventDefault(),(F=k.value)==null||F.focus({preventScroll:!0}))}function E(S){if(S.defaultPrevented)return;const F=S.target.closest("[data-radix-menu-content]")===S.currentTarget,V=S.ctrlKey||S.altKey||S.metaKey,xe=S.key.length===1,ve=Mc(S,document.activeElement,k.value,{loop:a.value,arrowKeyOptions:"vertical",dir:s==null?void 0:s.dir.value,focus:!0,attributeName:"[data-radix-vue-collection-item]:not([data-disabled])"});if(ve)return ve==null?void 0:ve.focus();if(S.code==="Space"||(F&&(S.key==="Tab"&&S.preventDefault(),!V&&xe&&T(S.key)),S.target!==k.value)||!Ym.includes(S.key))return;S.preventDefault();const Fe=C.value;zc.includes(S.key)&&Fe.reverse(),pl(Fe)}function R(S){var F,V;(V=(F=S==null?void 0:S.currentTarget)==null?void 0:F.contains)!=null&&V.call(F,S.target)||(window.clearTimeout(u.value),d.value="")}function L(S){var F;if(!hl(S))return;const V=S.target,xe=g.value!==S.clientX;if((F=S==null?void 0:S.currentTarget)!=null&&F.contains(V)&&xe){const ve=S.clientX>g.value?"right":"left";h.value=ve,g.value=S.clientX}}return Iv({onItemEnter:S=>!!B(S),onItemLeave:S=>{var F;B(S)||((F=k.value)==null||F.focus(),m.value=null)},onTriggerLeave:S=>!!B(S),searchRef:d,pointerGraceTimerRef:f,onPointerGraceIntentChange:S=>{p.value=S}}),(S,F)=>(w(),P(c(ai),{"as-child":"",trapped:c(l),onMountAutoFocus:A,onUnmountAutoFocus:F[7]||(F[7]=V=>o("closeAutoFocus",V))},{default:v(()=>[b(c(ys),{"as-child":"","disable-outside-pointer-events":c(i),onEscapeKeyDown:F[2]||(F[2]=V=>o("escapeKeyDown",V)),onPointerDownOutside:F[3]||(F[3]=V=>o("pointerDownOutside",V)),onFocusOutside:F[4]||(F[4]=V=>o("focusOutside",V)),onInteractOutside:F[5]||(F[5]=V=>o("interactOutside",V)),onDismiss:F[6]||(F[6]=V=>o("dismiss"))},{default:v(()=>[b(c(nd),{"current-tab-stop-id":m.value,"onUpdate:currentTabStopId":F[0]||(F[0]=V=>m.value=V),"as-child":"",orientation:"vertical",dir:c(s).dir.value,loop:c(a),onEntryFocus:F[1]||(F[1]=V=>{o("entryFocus",V),c(s).isUsingKeyboardRef.value||V.preventDefault()})},{default:v(()=>[b(c(di),{ref:c(_),role:"menu",as:S.as,"as-child":S.asChild,"aria-orientation":"vertical","data-radix-menu-content":"","data-state":c(Kc)(c(r).open.value),dir:c(s).dir.value,side:S.side,"side-offset":S.sideOffset,align:S.align,"align-offset":S.alignOffset,"avoid-collisions":S.avoidCollisions,"collision-boundary":S.collisionBoundary,"collision-padding":S.collisionPadding,"arrow-padding":S.arrowPadding,"prioritize-position":S.prioritizePosition,sticky:S.sticky,"hide-when-detached":S.hideWhenDetached,onKeydown:E,onBlur:R,onPointermove:L},{default:v(()=>[j(S.$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","sticky","hide-when-detached"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),Bv=M({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=od(),{forwardRef:o}=le(),r=I(!1);async function s(i){if(!i.defaultPrevented&&hl(i)){if(t.disabled)n.onItemLeave(i);else if(!n.onItemEnter(i)){const a=i.currentTarget;a==null||a.focus({preventScroll:!0})}}}async function l(i){await Ae(),!i.defaultPrevented&&hl(i)&&n.onItemLeave(i)}return(i,a)=>(w(),P(c(Xc),null,{default:v(()=>[b(c(_e),te({ref:c(o),role:"menuitem",tabindex:"-1"},i.$attrs,{as:i.as,"as-child":i.asChild,"data-radix-vue-collection-item":"","aria-disabled":i.disabled||void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":r.value?"":void 0,onPointermove:s,onPointerleave:l,onFocus:a[0]||(a[0]=async d=>{await Ae(),!(d.defaultPrevented||i.disabled)&&(r.value=!0)}),onBlur:a[1]||(a[1]=async d=>{await Ae(),!d.defaultPrevented&&(r.value=!1)})}),{default:v(()=>[j(i.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3}))}}),Rv=M({__name:"MenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:r,currentElement:s}=le(),l=pi(),i=od(),a=I(!1);async function d(){const u=s.value;if(!n.disabled&&u){const f=new CustomEvent(Zm,{bubbles:!0,cancelable:!0});o("select",f),await Ae(),f.defaultPrevented?a.value=!1:l.onClose()}}return(u,f)=>(w(),P(Bv,te(n,{ref:c(r),onClick:d,onPointerdown:f[0]||(f[0]=()=>{a.value=!0}),onPointerup:f[1]||(f[1]=async p=>{var h;await Ae(),!p.defaultPrevented&&(a.value||(h=p.currentTarget)==null||h.click())}),onKeydown:f[2]||(f[2]=async p=>{const h=c(i).searchRef.value!=="";u.disabled||h&&p.key===" "||c(fl).includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})}),{default:v(()=>[j(u.$slots,"default")]),_:3},16))}}),Dv=M({__name:"MenuRootContentModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Ue(n,o),s=bs(),{forwardRef:l,currentElement:i}=le();return ri(i),(a,d)=>(w(),P(rd,te(c(r),{ref:c(l),"trap-focus":c(s).open.value,"disable-outside-pointer-events":c(s).open.value,"disable-outside-scroll":!0,onDismiss:d[0]||(d[0]=u=>c(s).onOpenChange(!1)),onFocusOutside:d[1]||(d[1]=$t(u=>o("focusOutside",u),["prevent"]))}),{default:v(()=>[j(a.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),jv=M({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=Ue(e,t),o=bs();return(r,s)=>(w(),P(rd,te(c(n),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:s[0]||(s[0]=l=>c(o).onOpenChange(!1))}),{default:v(()=>[j(r.$slots,"default")]),_:3},16))}}),Lv=M({__name:"MenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=Ue(e,t),o=bs(),r=pi();return(s,l)=>(w(),P(c(_n),{present:s.forceMount||c(o).open.value},{default:v(()=>[c(r).modal.value?(w(),P(Dv,Ke(te({key:0},{...s.$attrs,...c(n)})),{default:v(()=>[j(s.$slots,"default")]),_:3},16)):(w(),P(jv,Ke(te({key:1},{...s.$attrs,...c(n)})),{default:v(()=>[j(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Vv=M({__name:"MenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),P(c(vs),Ke(Je(t)),{default:v(()=>[j(n.$slots,"default")]),_:3},16))}}),[sd,Nv]=Ne("DropdownMenuRoot"),Fv=M({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;le();const r=mt(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0}),s=I(),{modal:l,dir:i}=ot(n),a=po(i);return Nv({open:r,onOpenChange:d=>{r.value=d},onOpenToggle:()=>{r.value=!r.value},triggerId:"",triggerElement:s,contentId:"",modal:l,dir:a}),(d,u)=>(w(),P(c(Cv),{open:c(r),"onUpdate:open":u[0]||(u[0]=f=>Le(r)?r.value=f:null),dir:c(a),modal:c(l)},{default:v(()=>[j(d.$slots,"default",{open:c(r)})]),_:3},8,["open","dir","modal"]))}}),Hv=M({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=sd(),{forwardRef:o,currentElement:r}=le();return Ie(()=>{n.triggerElement=r}),n.triggerId||(n.triggerId=vt(void 0,"radix-vue-dropdown-menu-trigger")),(s,l)=>(w(),P(c(yv),{"as-child":""},{default:v(()=>[b(c(_e),{id:c(n).triggerId,ref:c(o),type:s.as==="button"?"button":void 0,"as-child":t.asChild,as:s.as,"aria-haspopup":"menu","aria-expanded":c(n).open.value,"aria-controls":c(n).open.value?c(n).contentId:void 0,"data-disabled":s.disabled?"":void 0,disabled:s.disabled,"data-state":c(n).open.value?"open":"closed",onClick:l[0]||(l[0]=async i=>{var a;!s.disabled&&i.button===0&&i.ctrlKey===!1&&((a=c(n))==null||a.onOpenToggle(),await Ae(),c(n).open.value&&i.preventDefault())}),onKeydown:l[1]||(l[1]=cs(i=>{s.disabled||(["Enter"," "].includes(i.key)&&c(n).onOpenToggle(),i.key==="ArrowDown"&&c(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())},["enter","space","arrow-down"]))},{default:v(()=>[j(s.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),zv=M({__name:"DropdownMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),P(c(Vv),Ke(Je(t)),{default:v(()=>[j(n.$slots,"default")]),_:3},16))}}),Kv=M({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const n=Ue(e,t);le();const o=sd(),r=I(!1);function s(l){l.defaultPrevented||(r.value||setTimeout(()=>{var i;(i=o.triggerElement.value)==null||i.focus()},0),r.value=!1,l.preventDefault())}return o.contentId||(o.contentId=vt(void 0,"radix-vue-dropdown-menu-content")),(l,i)=>{var a;return w(),P(c(Lv),te(c(n),{id:c(o).contentId,"aria-labelledby":(a=c(o))==null?void 0:a.triggerId,style:{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:s,onInteractOutside:i[0]||(i[0]=d=>{var u;if(d.defaultPrevented)return;const f=d.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,h=f.button===2||p;(!c(o).modal.value||h)&&(r.value=!0),(u=c(o).triggerElement.value)!=null&&u.contains(d.target)&&d.preventDefault()})}),{default:v(()=>[j(l.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),Wv=M({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,o=Xo(t);return le(),(r,s)=>(w(),P(c(Rv),Ke(Je({...n,...c(o)})),{default:v(()=>[j(r.$slots,"default")]),_:3},16))}}),Uv=["default-value"],qv=M({__name:"BubbleSelect",props:{autocomplete:{},autofocus:{type:Boolean},disabled:{type:Boolean},form:{},multiple:{type:Boolean},name:{},required:{type:Boolean},size:{},value:{}},setup(e){const t=e,{value:n}=ot(t),o=I();return(r,s)=>(w(),P(c(Qc),{"as-child":""},{default:v(()=>[qo($("select",te({ref_key:"selectElement",ref:o},t,{"onUpdate:modelValue":s[0]||(s[0]=l=>Le(n)?n.value=l:null),"default-value":c(n)}),[j(r.$slots,"default")],16,Uv),[[_h,c(n)]])]),_:3}))}}),Gv={key:0,value:""},[Fn,ld]=Ne("SelectRoot"),[Zv,Jv]=Ne("SelectRoot"),Yv=M({__name:"SelectRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},defaultValue:{default:""},modelValue:{default:void 0},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const n=e,o=t,r=mt(n,"modelValue",o,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),s=mt(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0}),l=I(),i=I(),a=I({x:0,y:0}),d=I(!1),{required:u,disabled:f,dir:p}=ot(n),h=po(p);ld({triggerElement:l,onTriggerChange:_=>{l.value=_},valueElement:i,onValueElementChange:_=>{i.value=_},valueElementHasChildren:d,onValueElementHasChildrenChange:_=>{d.value=_},contentId:"",modelValue:r,onValueChange:_=>{r.value=_},open:s,required:u,onOpenChange:_=>{s.value=_},dir:h,triggerPointerDownPosRef:a,disabled:f});const g=Rc(l),m=I(new Set),y=N(()=>Array.from(m.value).map(_=>{var k;return(k=_.props)==null?void 0:k.value}).join(";"));return Jv({onNativeOptionAdd:_=>{m.value.add(_)},onNativeOptionRemove:_=>{m.value.delete(_)}}),(_,k)=>(w(),P(c(ui),null,{default:v(()=>[j(_.$slots,"default",{modelValue:c(r),open:c(s)}),c(g)?(w(),P(qv,te({key:y.value},_.$attrs,{"aria-hidden":"true",tabindex:"-1",required:c(u),name:_.name,autocomplete:_.autocomplete,disabled:c(f),value:c(r),onChange:k[0]||(k[0]=C=>r.value=C.target.value)}),{default:v(()=>[c(r)===void 0?(w(),z("option",Gv)):ie("",!0),(w(!0),z(Te,null,Tt(Array.from(m.value),C=>(w(),P(Vn(C),te({ref_for:!0},C.props,{key:C.key??""}),null,16))),128))]),_:1},16,["required","name","autocomplete","disabled","value"])):ie("",!0)]),_:3}))}}),Qv=[" ","Enter","ArrowUp","ArrowDown"],Xv=[" ","Enter"],Ft=10;function id(e){return e===""||wr(e)}const ey=M({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Fn(),o=N(()=>{var h;return((h=n.disabled)==null?void 0:h.value)||t.disabled}),{forwardRef:r,currentElement:s}=le();n.contentId||(n.contentId=vt(void 0,"radix-vue-select-content")),Ie(()=>{n.triggerElement=s});const{injectCollection:l}=Qo(),i=l(),{search:a,handleTypeaheadSearch:d,resetTypeahead:u}=si(i);function f(){o.value||(n.onOpenChange(!0),u())}function p(h){f(),n.triggerPointerDownPosRef.value={x:Math.round(h.pageX),y:Math.round(h.pageY)}}return(h,g)=>(w(),P(c(ci),{"as-child":""},{default:v(()=>{var m,y,_,k;return[b(c(_e),{ref:c(r),role:"combobox",type:h.as==="button"?"button":void 0,"aria-controls":c(n).contentId,"aria-expanded":c(n).open.value||!1,"aria-required":(m=c(n).required)==null?void 0:m.value,"aria-autocomplete":"none",disabled:o.value,dir:(y=c(n))==null?void 0:y.dir.value,"data-state":(_=c(n))!=null&&_.open.value?"open":"closed","data-disabled":o.value?"":void 0,"data-placeholder":c(id)((k=c(n).modelValue)==null?void 0:k.value)?"":void 0,"as-child":h.asChild,as:h.as,onClick:g[0]||(g[0]=C=>{var T;(T=C==null?void 0:C.currentTarget)==null||T.focus()}),onPointerdown:g[1]||(g[1]=C=>{if(C.pointerType==="touch")return C.preventDefault();const T=C.target;T.hasPointerCapture(C.pointerId)&&T.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&(p(C),C.preventDefault())}),onPointerup:g[2]||(g[2]=$t(C=>{C.pointerType==="touch"&&p(C)},["prevent"])),onKeydown:g[3]||(g[3]=C=>{const T=c(a)!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&T&&C.key===" "||(c(d)(C.key),c(Qv).includes(C.key)&&(f(),C.preventDefault()))})},{default:v(()=>[j(h.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3}))}}),ty=M({__name:"SelectPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),P(c(vs),Ke(Je(t)),{default:v(()=>[j(n.$slots,"default")]),_:3},16))}}),[hi,ny]=Ne("SelectItemAlignedPosition"),oy=M({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean},as:{}},emits:["placed"],setup(e,{emit:t}){const n=e,o=t,{injectCollection:r}=Qo(),s=Fn(),l=Hn(),i=r(),a=I(!1),d=I(!0),u=I(),{forwardRef:f,currentElement:p}=le(),{viewport:h,selectedItem:g,selectedItemText:m,focusSelectedItem:y}=l;function _(){if(s.triggerElement.value&&s.valueElement.value&&u.value&&p.value&&h!=null&&h.value&&g!=null&&g.value&&m!=null&&m.value){const T=s.triggerElement.value.getBoundingClientRect(),B=p.value.getBoundingClientRect(),A=s.valueElement.value.getBoundingClientRect(),E=m.value.getBoundingClientRect();if(s.dir.value!=="rtl"){const je=E.left-B.left,He=A.left-je,Dt=T.left-He,lt=T.width+Dt,zn=Math.max(lt,B.width),Kn=window.innerWidth-Ft,x=xa(He,Ft,Kn-zn);u.value.style.minWidth=`${lt}px`,u.value.style.left=`${x}px`}else{const je=B.right-E.right,He=window.innerWidth-A.right-je,Dt=window.innerWidth-T.right-He,lt=T.width+Dt,zn=Math.max(lt,B.width),Kn=window.innerWidth-Ft,x=xa(He,Ft,Kn-zn);u.value.style.minWidth=`${lt}px`,u.value.style.right=`${x}px`}const R=i.value,L=window.innerHeight-Ft*2,S=h.value.scrollHeight,F=window.getComputedStyle(p.value),V=Number.parseInt(F.borderTopWidth,10),xe=Number.parseInt(F.paddingTop,10),ve=Number.parseInt(F.borderBottomWidth,10),Fe=Number.parseInt(F.paddingBottom,10),ye=V+xe+S+Fe+ve,fe=Math.min(g.value.offsetHeight*5,ye),ue=window.getComputedStyle(h.value),Be=Number.parseInt(ue.paddingTop,10),st=Number.parseInt(ue.paddingBottom,10),Y=T.top+T.height/2-Ft,Q=L-Y,X=g.value.offsetHeight/2,pe=g.value.offsetTop+X,re=V+xe+pe,he=ye-re;if(re<=Y){const je=g.value===R[R.length-1];u.value.style.bottom="0px";const He=p.value.clientHeight-h.value.offsetTop-h.value.offsetHeight,Dt=Math.max(Q,X+(je?st:0)+He+ve),lt=re+Dt;u.value.style.height=`${lt}px`}else{const je=g.value===R[0];u.value.style.top="0px";const He=Math.max(Y,V+h.value.offsetTop+(je?Be:0)+X)+he;u.value.style.height=`${He}px`,h.value.scrollTop=re-Y+h.value.offsetTop}u.value.style.margin=`${Ft}px 0`,u.value.style.minHeight=`${fe}px`,u.value.style.maxHeight=`${L}px`,o("placed"),requestAnimationFrame(()=>a.value=!0)}}const k=I("");Ie(async()=>{await Ae(),_(),p.value&&(k.value=window.getComputedStyle(p.value).zIndex)});function C(T){T&&d.value===!0&&(_(),y==null||y(),d.value=!1)}return ny({contentWrapper:u,shouldExpandOnScrollRef:a,onScrollButtonChange:C}),(T,B)=>(w(),z("div",{ref_key:"contentWrapperElement",ref:u,style:vn({display:"flex",flexDirection:"column",position:"fixed",zIndex:k.value})},[b(c(_e),te({ref:c(f),style:{boxSizing:"border-box",maxHeight:"100%"}},{...T.$attrs,...n}),{default:v(()=>[j(T.$slots,"default")]),_:3},16)],4))}}),ry=M({__name:"SelectPopperPosition",props:{side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{default:Ft},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=ht(e);return(n,o)=>(w(),P(c(di),te(c(t),{style:{boxSizing:"border-box","--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:v(()=>[j(n.$slots,"default")]),_:3},16))}}),ho={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Hn,sy]=Ne("SelectContent"),ly=M({__name:"SelectContentImpl",props:{position:{default:"item-aligned"},bodyLock:{type:Boolean,default:!0},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=Fn();Bc(),oi(n.bodyLock);const{createCollection:s}=Qo(),l=I();ri(l);const i=s(l),{search:a,handleTypeaheadSearch:d}=si(i),u=I(),f=I(),p=I(),h=I(!1),g=I(!1);function m(){f.value&&l.value&&pl([f.value,l.value])}me(h,()=>{m()});const{onOpenChange:y,triggerPointerDownPosRef:_}=r;We(B=>{if(!l.value)return;let A={x:0,y:0};const E=L=>{var S,F;A={x:Math.abs(Math.round(L.pageX)-(((S=_.value)==null?void 0:S.x)??0)),y:Math.abs(Math.round(L.pageY)-(((F=_.value)==null?void 0:F.y)??0))}},R=L=>{var S;L.pointerType!=="touch"&&(A.x<=10&&A.y<=10?L.preventDefault():(S=l.value)!=null&&S.contains(L.target)||y(!1),document.removeEventListener("pointermove",E),_.value=null)};_.value!==null&&(document.addEventListener("pointermove",E),document.addEventListener("pointerup",R,{capture:!0,once:!0})),B(()=>{document.removeEventListener("pointermove",E),document.removeEventListener("pointerup",R,{capture:!0})})});function k(B){const A=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!A&&B.key.length===1&&d(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let E=i.value;if(["ArrowUp","End"].includes(B.key)&&(E=E.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const R=B.target,L=E.indexOf(R);E=E.slice(L+1)}setTimeout(()=>pl(E)),B.preventDefault()}}const C=N(()=>n.position==="popper"?n:{}),T=ht(C.value);return sy({content:l,viewport:u,onViewportChange:B=>{u.value=B},itemRefCallback:(B,A,E)=>{var R,L;const S=!g.value&&!E;(((R=r.modelValue)==null?void 0:R.value)!==void 0&&((L=r.modelValue)==null?void 0:L.value)===A||S)&&(f.value=B,S&&(g.value=!0))},selectedItem:f,selectedItemText:p,onItemLeave:()=>{var B;(B=l.value)==null||B.focus()},itemTextRefCallback:(B,A,E)=>{var R,L;const S=!g.value&&!E;(((R=r.modelValue)==null?void 0:R.value)!==void 0&&((L=r.modelValue)==null?void 0:L.value)===A||S)&&(p.value=B)},focusSelectedItem:m,position:n.position,isPositioned:h,searchRef:a}),(B,A)=>(w(),P(c(ai),{"as-child":"",onMountAutoFocus:A[6]||(A[6]=$t(()=>{},["prevent"])),onUnmountAutoFocus:A[7]||(A[7]=E=>{var R;o("closeAutoFocus",E),!E.defaultPrevented&&((R=c(r).triggerElement.value)==null||R.focus({preventScroll:!0}),E.preventDefault())})},{default:v(()=>[b(c(ys),{"as-child":"","disable-outside-pointer-events":"",onFocusOutside:A[2]||(A[2]=$t(()=>{},["prevent"])),onDismiss:A[3]||(A[3]=E=>c(r).onOpenChange(!1)),onEscapeKeyDown:A[4]||(A[4]=E=>o("escapeKeyDown",E)),onPointerDownOutside:A[5]||(A[5]=E=>o("pointerDownOutside",E))},{default:v(()=>[(w(),P(Vn(B.position==="popper"?ry:oy),te({...B.$attrs,...c(T)},{id:c(r).contentId,ref:E=>{l.value=c(Zt)(E)},role:"listbox","data-state":c(r).open.value?"open":"closed",dir:c(r).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:A[0]||(A[0]=$t(()=>{},["prevent"])),onPlaced:A[1]||(A[1]=E=>h.value=!0),onKeydown:k}),{default:v(()=>[j(B.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3})]),_:3}))}}),iy=M({__name:"SelectProvider",props:{context:{}},setup(e){return ld(e.context),(t,n)=>j(t.$slots,"default")}}),ay={key:1},uy=M({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=Ue(n,t),r=Fn(),s=I();Ie(()=>{s.value=new DocumentFragment});const l=I(),i=N(()=>n.forceMount||r.open.value);return(a,d)=>{var u;return i.value?(w(),P(c(_n),{key:0,ref_key:"presenceRef",ref:l,present:!0},{default:v(()=>[b(ly,Ke(Je({...c(o),...a.$attrs})),{default:v(()=>[j(a.$slots,"default")]),_:3},16)]),_:3},512)):!((u=l.value)!=null&&u.present)&&s.value?(w(),z("div",ay,[(w(),P(ts,{to:s.value},[b(iy,{context:c(r)},{default:v(()=>[j(a.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):ie("",!0)}}}),[ad,cy]=Ne("SelectItem"),dy=M({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{disabled:n}=ot(t),o=Fn(),r=Hn(ho),{forwardRef:s,currentElement:l}=le(),i=N(()=>{var m;return((m=o.modelValue)==null?void 0:m.value)===t.value}),a=I(!1),d=I(t.textValue??""),u=vt(void 0,"radix-vue-select-item-text");async function f(m){await Ae(),!(m!=null&&m.defaultPrevented)&&(n.value||(o.onValueChange(t.value),o.onOpenChange(!1)))}async function p(m){var y;await Ae(),!m.defaultPrevented&&(n.value?(y=r.onItemLeave)==null||y.call(r):m.currentTarget.focus({preventScroll:!0}))}async function h(m){var y;await Ae(),!m.defaultPrevented&&m.currentTarget===document.activeElement&&((y=r.onItemLeave)==null||y.call(r))}async function g(m){var y;await Ae(),!(m.defaultPrevented||((y=r.searchRef)==null?void 0:y.value)!==""&&m.key===" ")&&(Xv.includes(m.key)&&f(),m.key===" "&&m.preventDefault())}if(t.value==="")throw new Error("A 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 Ie(()=>{l.value&&r.itemRefCallback(l.value,t.value,t.disabled)}),cy({value:t.value,disabled:n,textId:u,isSelected:i,onItemTextChange:m=>{d.value=((d.value||(m==null?void 0:m.textContent))??"").trim()}}),(m,y)=>(w(),P(c(_e),{ref:c(s),role:"option","data-radix-vue-collection-item":"","aria-labelledby":c(u),"data-highlighted":a.value?"":void 0,"aria-selected":i.value,"data-state":i.value?"checked":"unchecked","aria-disabled":c(n)||void 0,"data-disabled":c(n)?"":void 0,tabindex:c(n)?void 0:-1,as:m.as,"as-child":m.asChild,onFocus:y[0]||(y[0]=_=>a.value=!0),onBlur:y[1]||(y[1]=_=>a.value=!1),onPointerup:f,onPointerdown:y[2]||(y[2]=_=>{_.currentTarget.focus({preventScroll:!0})}),onTouchend:y[3]||(y[3]=$t(()=>{},["prevent","stop"])),onPointermove:p,onPointerleave:h,onKeydown:g},{default:v(()=>[j(m.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"]))}}),fy=M({__name:"SelectItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=ad();return(o,r)=>c(n).isSelected.value?(w(),P(c(_e),te({key:0,"aria-hidden":"true"},t),{default:v(()=>[j(o.$slots,"default")]),_:3},16)):ie("",!0)}}),[P1,py]=Ne("SelectGroup"),hy=M({__name:"SelectGroup",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=vt(void 0,"radix-vue-select-group");return py({id:n}),(o,r)=>(w(),P(c(_e),te({role:"group"},t,{"aria-labelledby":c(n)}),{default:v(()=>[j(o.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),gy=M({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=Fn(),o=Hn(ho),r=Zv(),s=ad(),{forwardRef:l,currentElement:i}=le(),a=N(()=>{var d;return we("option",{key:s.value,value:s.value,disabled:s.disabled.value,textContent:(d=i.value)==null?void 0:d.textContent})});return Ie(()=>{i.value&&(s.onItemTextChange(i.value),o.itemTextRefCallback(i.value,s.value,s.disabled.value),r.onNativeOptionAdd(a.value))}),os(()=>{r.onNativeOptionRemove(a.value)}),(d,u)=>(w(),z(Te,null,[b(c(_e),te({id:c(s).textId,ref:c(l)},{...t,...d.$attrs}),{default:v(()=>[j(d.$slots,"default")]),_:3},16,["id"]),c(s).isSelected.value&&c(n).valueElement.value&&!c(n).valueElementHasChildren.value?(w(),P(ts,{key:0,to:c(n).valueElement.value},[j(d.$slots,"default")],8,["to"])):ie("",!0)],64))}}),my=M({__name:"SelectViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{nonce:n}=ot(t),o=vv(n),r=Hn(ho),s=r.position==="item-aligned"?hi():void 0,{forwardRef:l,currentElement:i}=le();Ie(()=>{r==null||r.onViewportChange(i.value)});const a=I(0);function d(u){const f=u.currentTarget,{shouldExpandOnScrollRef:p,contentWrapper:h}=s??{};if(p!=null&&p.value&&h!=null&&h.value){const g=Math.abs(a.value-f.scrollTop);if(g>0){const m=window.innerHeight-Ft*2,y=Number.parseFloat(h.value.style.minHeight),_=Number.parseFloat(h.value.style.height),k=Math.max(y,_);if(k0?B:0,h.value.style.justifyContent="flex-end")}}}a.value=f.scrollTop}return(u,f)=>(w(),z(Te,null,[b(c(_e),te({ref:c(l),"data-radix-select-viewport":"",role:"presentation"},{...u.$attrs,...t},{style:{position:"relative",flex:1,overflow:"auto"},onScroll:d}),{default:v(()=>[j(u.$slots,"default")]),_:3},16),b(c(_e),{as:"style",nonce:c(o)},{default:v(()=>[ee(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-select-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),ud=M({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(e,{emit:t}){const n=t,{injectCollection:o}=Qo(),r=o(),s=Hn(ho),l=I(null);function i(){l.value!==null&&(window.clearInterval(l.value),l.value=null)}We(()=>{const u=r.value.find(f=>f===document.activeElement);u==null||u.scrollIntoView({block:"nearest"})});function a(){l.value===null&&(l.value=window.setInterval(()=>{n("autoScroll")},50))}function d(){var u;(u=s.onItemLeave)==null||u.call(s),l.value===null&&(l.value=window.setInterval(()=>{n("autoScroll")},50))}return os(()=>i()),(u,f)=>{var p;return w(),P(c(_e),te({"aria-hidden":"true",style:{flexShrink:0}},(p=u.$parent)==null?void 0:p.$props,{onPointerdown:a,onPointermove:d,onPointerleave:f[0]||(f[0]=()=>{i()})}),{default:v(()=>[j(u.$slots,"default")]),_:3},16)}}}),vy=M({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{}},setup(e){const t=Hn(ho),n=t.position==="item-aligned"?hi():void 0,{forwardRef:o,currentElement:r}=le(),s=I(!1);return We(l=>{var i,a;if((i=t.viewport)!=null&&i.value&&(a=t.isPositioned)!=null&&a.value){let d=function(){s.value=u.scrollTop>0};const u=t.viewport.value;d(),u.addEventListener("scroll",d),l(()=>u.removeEventListener("scroll",d))}}),me(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(l,i)=>s.value?(w(),P(ud,{key:0,ref:c(o),onAutoScroll:i[0]||(i[0]=()=>{const{viewport:a,selectedItem:d}=c(t);a!=null&&a.value&&d!=null&&d.value&&(a.value.scrollTop=a.value.scrollTop-d.value.offsetHeight)})},{default:v(()=>[j(l.$slots,"default")]),_:3},512)):ie("",!0)}}),yy=M({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{}},setup(e){const t=Hn(ho),n=t.position==="item-aligned"?hi():void 0,{forwardRef:o,currentElement:r}=le(),s=I(!1);return We(l=>{var i,a;if((i=t.viewport)!=null&&i.value&&(a=t.isPositioned)!=null&&a.value){let d=function(){const f=u.scrollHeight-u.clientHeight;s.value=Math.ceil(u.scrollTop)u.removeEventListener("scroll",d))}}),me(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(l,i)=>s.value?(w(),P(ud,{key:0,ref:c(o),onAutoScroll:i[0]||(i[0]=()=>{const{viewport:a,selectedItem:d}=c(t);a!=null&&a.value&&d!=null&&d.value&&(a.value.scrollTop=a.value.scrollTop+d.value.offsetHeight)})},{default:v(()=>[j(l.$slots,"default")]),_:3},512)):ie("",!0)}}),by=M({__name:"SelectValue",props:{placeholder:{default:""},asChild:{type:Boolean},as:{default:"span"}},setup(e){const{forwardRef:t,currentElement:n}=le(),o=Fn(),r=Zu();return Hu(()=>{var s;const l=!!hs((s=r==null?void 0:r.default)==null?void 0:s.call(r)).length;o.onValueElementHasChildrenChange(l)}),Ie(()=>{o.valueElement=n}),(s,l)=>(w(),P(c(_e),{ref:c(t),as:s.as,"as-child":s.asChild,style:{pointerEvents:"none"}},{default:v(()=>{var i;return[c(id)((i=c(o).modelValue)==null?void 0:i.value)?(w(),z(Te,{key:0},[ee(be(s.placeholder),1)],64)):j(s.$slots,"default",{key:1})]}),_:3},8,["as","as-child"]))}}),wy=M({__name:"SelectIcon",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return(t,n)=>(w(),P(c(_e),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:v(()=>[j(t.$slots,"default",{},()=>[ee("▼")])]),_:3},8,["as","as-child"]))}});function xy(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}xy();const[gi,_y]=Ne("TabsRoot"),Cy=M({__name:"TabsRoot",props:{defaultValue:{},orientation:{default:"horizontal"},dir:{},activationMode:{default:"automatic"},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,{orientation:r,dir:s}=ot(n),l=po(s);le();const i=mt(n,"modelValue",o,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),a=I();return _y({modelValue:i,changeModelValue:d=>{i.value=d},orientation:r,dir:l,activationMode:n.activationMode,baseId:vt(void 0,"radix-vue-tabs"),tabsList:a}),(d,u)=>(w(),P(c(_e),{dir:c(l),"data-orientation":c(r),"as-child":d.asChild,as:d.as},{default:v(()=>[j(d.$slots,"default",{modelValue:c(i)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),Sy=M({__name:"TabsList",props:{loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},setup(e){const t=e,{loop:n}=ot(t),{forwardRef:o,currentElement:r}=le(),s=gi();return s.tabsList=r,(l,i)=>(w(),P(c(nd),{"as-child":"",orientation:c(s).orientation.value,dir:c(s).dir.value,loop:c(n)},{default:v(()=>[b(c(_e),{ref:c(o),role:"tablist","as-child":l.asChild,as:l.as,"aria-orientation":c(s).orientation.value},{default:v(()=>[j(l.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}});function cd(e,t){return`${e}-trigger-${t}`}function dd(e,t){return`${e}-content-${t}`}const ky=M({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n}=le(),o=gi(),r=N(()=>cd(o.baseId,t.value)),s=N(()=>dd(o.baseId,t.value)),l=N(()=>t.value===o.modelValue.value),i=I(l.value);return Ie(()=>{requestAnimationFrame(()=>{i.value=!1})}),(a,d)=>(w(),P(c(_n),{present:l.value,"force-mount":""},{default:v(({present:u})=>[b(c(_e),{id:s.value,ref:c(n),"as-child":a.asChild,as:a.as,role:"tabpanel","data-state":l.value?"active":"inactive","data-orientation":c(o).orientation.value,"aria-labelledby":r.value,hidden:!u.value,tabindex:"0",style:vn({animationDuration:i.value?"0s":void 0})},{default:v(()=>[a.forceMount||l.value?j(a.$slots,"default",{key:0}):ie("",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),Ey=M({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,{forwardRef:n}=le(),o=gi(),r=N(()=>cd(o.baseId,t.value)),s=N(()=>dd(o.baseId,t.value)),l=N(()=>t.value===o.modelValue.value);return(i,a)=>(w(),P(c(Mv),{"as-child":"",focusable:!i.disabled,active:l.value},{default:v(()=>[b(c(_e),{id:r.value,ref:c(n),role:"tab",type:i.as==="button"?"button":void 0,as:i.as,"as-child":i.asChild,"aria-selected":l.value?"true":"false","aria-controls":s.value,"data-state":l.value?"active":"inactive",disabled:i.disabled,"data-disabled":i.disabled?"":void 0,"data-orientation":c(o).orientation.value,onMousedown:a[0]||(a[0]=$t(d=>{!i.disabled&&d.ctrlKey===!1?c(o).changeModelValue(i.value):d.preventDefault()},["left"])),onKeydown:a[1]||(a[1]=cs(d=>c(o).changeModelValue(i.value),["enter","space"])),onFocus:a[2]||(a[2]=()=>{const d=c(o).activationMode!=="manual";!l.value&&!i.disabled&&d&&c(o).changeModelValue(i.value)})},{default:v(()=>[j(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"]))}}),fd="tooltip.open",[mi,Oy]=Ne("TooltipProvider"),Ty=M({__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:o,disableHoverableContent:r,disableClosingTrigger:s,ignoreNonKeyboardFocus:l,disabled:i}=ot(t);le();const a=I(!0),d=I(!1),{start:u,stop:f}=$c(()=>{a.value=!0},o,{immediate:!1});return Oy({isOpenDelayed:a,delayDuration:n,onOpen(){f(),a.value=!1},onClose(){u()},isPointerInTransitRef:d,disableHoverableContent:r,disableClosingTrigger:s,disabled:i,ignoreNonKeyboardFocus:l}),(p,h)=>j(p.$slots,"default")}}),[ws,Ay]=Ne("TooltipRoot"),$y=M({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;le();const r=mi(),s=N(()=>n.disableHoverableContent??r.disableHoverableContent.value),l=N(()=>n.disableClosingTrigger??r.disableClosingTrigger.value),i=N(()=>n.disabled??r.disabled.value),a=N(()=>n.delayDuration??r.delayDuration.value),d=N(()=>n.ignoreNonKeyboardFocus??r.ignoreNonKeyboardFocus.value),u=mt(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});me(u,C=>{r.onClose&&(C?(r.onOpen(),document.dispatchEvent(new CustomEvent(fd))):r.onClose())});const f=I(!1),p=I(),h=N(()=>u.value?f.value?"delayed-open":"instant-open":"closed"),{start:g,stop:m}=$c(()=>{f.value=!0,u.value=!0},a,{immediate:!1});function y(){m(),f.value=!1,u.value=!0}function _(){m(),u.value=!1}function k(){g()}return Ay({contentId:"",open:u,stateAttribute:h,trigger:p,onTriggerChange(C){p.value=C},onTriggerEnter(){r.isOpenDelayed.value?k():y()},onTriggerLeave(){s.value?_():m()},onOpen:y,onClose:_,disableHoverableContent:s,disableClosingTrigger:l,disabled:i,ignoreNonKeyboardFocus:d}),(C,T)=>(w(),P(c(ui),null,{default:v(()=>[j(C.$slots,"default",{open:c(u)})]),_:3}))}}),Py=M({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=ws(),o=mi();n.contentId||(n.contentId=vt(void 0,"radix-vue-tooltip-content"));const{forwardRef:r,currentElement:s}=le(),l=I(!1),i=I(!1),a=N(()=>n.disabled.value?{}:{click:m,focus:h,pointermove:f,pointerleave:p,pointerdown:u,blur:g});Ie(()=>{n.onTriggerChange(s.value)});function d(){setTimeout(()=>{l.value=!1},1)}function u(){l.value=!0,document.addEventListener("pointerup",d,{once:!0})}function f(y){y.pointerType!=="touch"&&!i.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),i.value=!0)}function p(){n.onTriggerLeave(),i.value=!1}function h(y){var _,k;l.value||n.ignoreNonKeyboardFocus.value&&!((k=(_=y.target).matches)!=null&&k.call(_,":focus-visible"))||n.onOpen()}function g(){n.onClose()}function m(){n.disableClosingTrigger.value||n.onClose()}return(y,_)=>(w(),P(c(ci),{"as-child":""},{default:v(()=>[b(c(_e),te({ref:c(r),"aria-describedby":c(n).open.value?c(n).contentId:void 0,"data-state":c(n).stateAttribute.value,as:y.as,"as-child":t.asChild,"data-grace-area-trigger":""},fp(a.value)),{default:v(()=>[j(y.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),pd=M({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=ws(),{forwardRef:s}=le(),l=Zu(),i=N(()=>{var u;return(u=l.default)==null?void 0:u.call(l)}),a=N(()=>{var u;if(n.ariaLabel)return n.ariaLabel;let f="";function p(h){typeof h.children=="string"&&h.type!==It?f+=h.children:Array.isArray(h.children)&&h.children.forEach(g=>p(g))}return(u=i.value)==null||u.forEach(h=>p(h)),f}),d=N(()=>{const{ariaLabel:u,...f}=n;return f});return Ie(()=>{co(window,"scroll",u=>{const f=u.target;f!=null&&f.contains(r.trigger.value)&&r.onClose()}),co(window,fd,r.onClose)}),(u,f)=>(w(),P(c(ys),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:f[0]||(f[0]=p=>o("escapeKeyDown",p)),onPointerDownOutside:f[1]||(f[1]=p=>{var h;c(r).disableClosingTrigger.value&&(h=c(r).trigger.value)!=null&&h.contains(p.target)&&p.preventDefault(),o("pointerDownOutside",p)}),onFocusOutside:f[2]||(f[2]=$t(()=>{},["prevent"])),onDismiss:f[3]||(f[3]=p=>c(r).onClose())},{default:v(()=>[b(c(di),te({ref:c(s),"data-state":c(r).stateAttribute.value},{...u.$attrs,...d.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:v(()=>[j(u.$slots,"default"),b(c(Qc),{id:c(r).contentId,role:"tooltip"},{default:v(()=>[ee(be(a.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),My=M({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(e){const t=ht(e),{forwardRef:n,currentElement:o}=le(),{trigger:r,onClose:s}=ws(),l=mi(),{isPointerInTransit:i,onPointerExit:a}=sm(r,o);return l.isPointerInTransitRef=i,a(()=>{s()}),(d,u)=>(w(),P(pd,te({ref:c(n)},c(t)),{default:v(()=>[j(d.$slots,"default")]),_:3},16))}}),Iy=M({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=ws(),s=Ue(n,o),{forwardRef:l}=le();return(i,a)=>(w(),P(c(_n),{present:i.forceMount||c(r).open.value},{default:v(()=>[(w(),P(Vn(c(r).disableHoverableContent.value?pd:My),te({ref:c(l)},c(s)),{default:v(()=>[j(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),By=M({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),P(c(vs),Ke(Je(t)),{default:v(()=>[j(n.$slots,"default")]),_:3},16))}}),In=M({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),P(c($y),Ke(Je(c(r))),{default:v(()=>[j(s.$slots,"default")]),_:3},16))}});function hd(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t{const t=Ly(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const i=l.split(vi);return i[0]===""&&i.length!==1&&i.shift(),gd(i,t)||jy(l)},getConflictingClassGroupIds:(l,i)=>{const a=n[l]||[];return i&&o[l]?[...a,...o[l]]:a}}},gd=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?gd(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const s=e.join(vi);return(l=t.validators.find(({validator:i})=>i(s)))==null?void 0:l.classGroupId},Oa=/^\[(.+)\]$/,jy=e=>{if(Oa.test(e)){const t=Oa.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ly=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return Ny(Object.entries(e.classGroups),n).forEach(([s,l])=>{ml(l,o,s,t)}),o},ml=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const s=r===""?t:Ta(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(Vy(r)){ml(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,l])=>{ml(l,Ta(t,s),n,o)})})},Ta=(e,t)=>{let n=e;return t.split(vi).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},Vy=e=>e.isThemeGetter,Ny=(e,t)=>t?e.map(([n,o])=>{const r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[n,r]}):e,Fy=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,o=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){n.has(s)?n.set(s,l):r(s,l)}}},md="!",Hy=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],s=t.length,l=i=>{const a=[];let d=0,u=0,f;for(let y=0;yu?f-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}};return n?i=>n({className:i,parseClassName:l}):l},zy=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},Ky=e=>({cache:Fy(e.cacheSize),parseClassName:Hy(e),...Dy(e)}),Wy=/\s+/,Uy=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(Wy);let i="";for(let a=l.length-1;a>=0;a-=1){const d=l[a],{modifiers:u,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}=n(d);let g=!!h,m=o(g?p.substring(0,h):p);if(!m){if(!g){i=d+(i.length>0?" "+i:i);continue}if(m=o(p),!m){i=d+(i.length>0?" "+i:i);continue}g=!1}const y=zy(u).join(":"),_=f?y+md:y,k=_+m;if(s.includes(k))continue;s.push(k);const C=r(m,g);for(let T=0;T0?" "+i:i)}return i};function qy(){let e=0,t,n,o="";for(;e{if(typeof e=="string")return e;let t,n="";for(let o=0;of(u),e());return n=Ky(d),o=n.cache.get,r=n.cache.set,s=i,i(a)}function i(a){const d=o(a);if(d)return d;const u=Uy(a,n);return r(a,u),u}return function(){return s(qy.apply(null,arguments))}}const De=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},yd=/^\[(?:([a-z-]+):)?(.+)\]$/i,Zy=/^\d+\/\d+$/,Jy=new Set(["px","full","screen"]),Yy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qy=/\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$/,Xy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,e0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,t0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vt=e=>ao(e)||Jy.has(e)||Zy.test(e),Yt=e=>go(e,"length",u0),ao=e=>!!e&&!Number.isNaN(Number(e)),Hs=e=>go(e,"number",ao),wo=e=>!!e&&Number.isInteger(Number(e)),n0=e=>e.endsWith("%")&&ao(e.slice(0,-1)),ge=e=>yd.test(e),Qt=e=>Yy.test(e),o0=new Set(["length","size","percentage"]),r0=e=>go(e,o0,bd),s0=e=>go(e,"position",bd),l0=new Set(["image","url"]),i0=e=>go(e,l0,d0),a0=e=>go(e,"",c0),xo=()=>!0,go=(e,t,n)=>{const o=yd.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},u0=e=>Qy.test(e)&&!Xy.test(e),bd=()=>!1,c0=e=>e0.test(e),d0=e=>t0.test(e),f0=()=>{const e=De("colors"),t=De("spacing"),n=De("blur"),o=De("brightness"),r=De("borderColor"),s=De("borderRadius"),l=De("borderSpacing"),i=De("borderWidth"),a=De("contrast"),d=De("grayscale"),u=De("hueRotate"),f=De("invert"),p=De("gap"),h=De("gradientColorStops"),g=De("gradientColorStopPositions"),m=De("inset"),y=De("margin"),_=De("opacity"),k=De("padding"),C=De("saturate"),T=De("scale"),B=De("sepia"),A=De("skew"),E=De("space"),R=De("translate"),L=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",ge,t],V=()=>[ge,t],xe=()=>["",Vt,Yt],ve=()=>["auto",ao,ge],Fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ye=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],Be=()=>["","0",ge],st=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[ao,ge];return{cacheSize:500,separator:":",theme:{colors:[xo],spacing:[Vt,Yt],blur:["none","",Qt,ge],brightness:Y(),borderColor:[e],borderRadius:["none","","full",Qt,ge],borderSpacing:V(),borderWidth:xe(),contrast:Y(),grayscale:Be(),hueRotate:Y(),invert:Be(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[n0,Yt],inset:F(),margin:F(),opacity:Y(),padding:V(),saturate:Y(),scale:Y(),sepia:Be(),skew:Y(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[Qt]}],"break-after":[{"break-after":st()}],"break-before":[{"break-before":st()}],"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"],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:[...Fe(),ge]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wo,ge]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:Be()}],shrink:[{shrink:Be()}],order:[{order:["first","last","none",wo,ge]}],"grid-cols":[{"grid-cols":[xo]}],"col-start-end":[{col:["auto",{span:["full",wo,ge]},ge]}],"col-start":[{"col-start":ve()}],"col-end":[{"col-end":ve()}],"grid-rows":[{"grid-rows":[xo]}],"row-start-end":[{row:["auto",{span:[wo,ge]},ge]}],"row-start":[{"row-start":ve()}],"row-end":[{"row-end":ve()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,t]}],"min-w":[{"min-w":[ge,t,"min","max","fit"]}],"max-w":[{"max-w":[ge,t,"none","full","min","max","fit","prose",{screen:[Qt]},Qt]}],h:[{h:[ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Qt,Yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Hs]}],"font-family":[{font:[xo]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ge]}],"line-clamp":[{"line-clamp":["none",ao,Hs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Vt,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Vt,Yt]}],"underline-offset":[{"underline-offset":["auto",Vt,ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Fe(),s0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",r0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},i0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...ye(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:ye()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ye()]}],"outline-offset":[{"outline-offset":[Vt,ge]}],"outline-w":[{outline:[Vt,Yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:xe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Vt,Yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qt,a0]}],"shadow-color":[{shadow:[xo]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Qt,ge]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[C]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[wo,ge]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Vt,Yt,Hs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},p0=Gy(f0);function yi(e){return Gr()?(Il(e),!0):!1}function mo(e){return typeof e=="function"?e():c(e)}const bi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const h0=e=>typeof e<"u",g0=Object.prototype.toString,m0=e=>g0.call(e)==="[object Object]",wd=()=>{};function v0(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const xd=e=>e();function y0(e=xd){const t=I(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:Ln(t),pause:n,resume:o,eventFilter:r}}function b0(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const o=t;t=void 0,o&&await o},n}function w0(e){return yt()}function x0(...e){if(e.length!==1)return $u(...e);const t=e[0];return typeof t=="function"?Ln(Au(()=>({get:t,set:wd}))):I(t)}function _0(e,t,n={}){const{eventFilter:o=xd,...r}=n;return me(e,v0(o,t),r)}function C0(e,t,n={}){const{eventFilter:o,...r}=n,{eventFilter:s,pause:l,resume:i,isActive:a}=y0(o);return{stop:_0(e,t,{...r,eventFilter:s}),pause:l,resume:i,isActive:a}}function _d(e,t=!0,n){w0()?Ie(e,n):t?e():Ae(e)}function S0(e,t,n={}){const{immediate:o=!0}=n,r=I(!1);let s=null;function l(){s&&(clearTimeout(s),s=null)}function i(){r.value=!1,l()}function a(...d){l(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=null,e(...d)},mo(t))}return o&&(r.value=!0,bi&&a()),yi(i),{isPending:Ln(r),start:a,stop:i}}const Fo=bi?window:void 0,Cd=bi?window.navigator:void 0;function Sd(e){var t;const n=mo(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Lr(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Fo):[t,n,o,r]=e,!t)return wd;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(u=>u()),s.length=0},i=(u,f,p,h)=>(u.addEventListener(f,p,h),()=>u.removeEventListener(f,p,h)),a=me(()=>[Sd(t),mo(r)],([u,f])=>{if(l(),!u)return;const p=m0(f)?{...f}:f;s.push(...n.flatMap(h=>o.map(g=>i(u,h,g,p))))},{immediate:!0,flush:"post"}),d=()=>{a(),l()};return yi(d),d}function k0(){const e=I(!1),t=yt();return t&&Ie(()=>{e.value=!0},t),e}function wi(e){const t=k0();return N(()=>(t.value,!!e()))}function E0(e,t={}){const{window:n=Fo}=t,o=wi(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const s=I(!1),l=d=>{s.value=d.matches},i=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",l):r.removeListener(l))},a=We(()=>{o.value&&(i(),r=n.matchMedia(mo(e)),"addEventListener"in r?r.addEventListener("change",l):r.addListener(l),s.value=r.matches)});return yi(()=>{a(),i(),r=void 0}),s}function Aa(e,t={}){const{controls:n=!1,navigator:o=Cd}=t,r=wi(()=>o&&"permissions"in o),s=Ro(),l=typeof e=="string"?{name:e}:e,i=Ro(),a=()=>{var u,f;i.value=(f=(u=s.value)==null?void 0:u.state)!=null?f:"prompt"};Lr(s,"change",a);const d=b0(async()=>{if(r.value){if(!s.value)try{s.value=await o.permissions.query(l)}catch{s.value=void 0}finally{a()}if(n)return ke(s.value)}});return d(),n?{state:i,isSupported:r,query:d}:i}function O0(e={}){const{navigator:t=Cd,read:n=!1,source:o,copiedDuring:r=1500,legacy:s=!1}=e,l=wi(()=>t&&"clipboard"in t),i=Aa("clipboard-read"),a=Aa("clipboard-write"),d=N(()=>l.value||s),u=I(""),f=I(!1),p=S0(()=>f.value=!1,r);function h(){l.value&&_(i.value)?t.clipboard.readText().then(k=>{u.value=k}):u.value=y()}d.value&&n&&Lr(["copy","cut"],h);async function g(k=mo(o)){d.value&&k!=null&&(l.value&&_(a.value)?await t.clipboard.writeText(k):m(k),u.value=k,f.value=!0,p.start())}function m(k){const C=document.createElement("textarea");C.value=k??"",C.style.position="absolute",C.style.opacity="0",document.body.appendChild(C),C.select(),document.execCommand("copy"),C.remove()}function y(){var k,C,T;return(T=(C=(k=document==null?void 0:document.getSelection)==null?void 0:k.call(document))==null?void 0:C.toString())!=null?T:""}function _(k){return k==="granted"||k==="prompt"}return{isSupported:d,text:u,copied:f,copy:g}}function T0(e){return JSON.parse(JSON.stringify(e))}const dr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fr="__vueuse_ssr_handlers__",A0=$0();function $0(){return fr in dr||(dr[fr]=dr[fr]||{}),dr[fr]}function kd(e,t){return A0[e]||t}function P0(e){return E0("(prefers-color-scheme: dark)",e)}function M0(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const I0={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},$a="vueuse-storage";function B0(e,t,n,o={}){var r;const{flush:s="pre",deep:l=!0,listenToStorageChanges:i=!0,writeDefaults:a=!0,mergeDefaults:d=!1,shallow:u,window:f=Fo,eventFilter:p,onError:h=S=>{console.error(S)},initOnMounted:g}=o,m=(u?Ro:I)(typeof t=="function"?t():t);if(!n)try{n=kd("getDefaultStorage",()=>{var S;return(S=Fo)==null?void 0:S.localStorage})()}catch(S){h(S)}if(!n)return m;const y=mo(t),_=M0(y),k=(r=o.serializer)!=null?r:I0[_],{pause:C,resume:T}=C0(m,()=>A(m.value),{flush:s,deep:l,eventFilter:p});f&&i&&_d(()=>{n instanceof Storage?Lr(f,"storage",R):Lr(f,$a,L),g&&R()}),g||R();function B(S,F){if(f){const V={key:e,oldValue:S,newValue:F,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",V):new CustomEvent($a,{detail:V}))}}function A(S){try{const F=n.getItem(e);if(S==null)B(F,null),n.removeItem(e);else{const V=k.write(S);F!==V&&(n.setItem(e,V),B(F,V))}}catch(F){h(F)}}function E(S){const F=S?S.newValue:n.getItem(e);if(F==null)return a&&y!=null&&n.setItem(e,k.write(y)),y;if(!S&&d){const V=k.read(F);return typeof d=="function"?d(V,y):_==="object"&&!Array.isArray(V)?{...y,...V}:V}else return typeof F!="string"?F:k.read(F)}function R(S){if(!(S&&S.storageArea!==n)){if(S&&S.key==null){m.value=y;return}if(!(S&&S.key!==e)){C();try{(S==null?void 0:S.newValue)!==k.write(m.value)&&(m.value=E(S))}catch(F){h(F)}finally{S?Ae(T):T()}}}}function L(S){R(S.detail)}return m}const R0="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function xs(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=Fo,storage:s,storageKey:l="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:a,emitAuto:d,disableTransition:u=!0}=e,f={auto:"",light:"light",dark:"dark",...e.modes||{}},p=P0({window:r}),h=N(()=>p.value?"dark":"light"),g=a||(l==null?x0(o):B0(l,o,s,{window:r,listenToStorageChanges:i})),m=N(()=>g.value==="auto"?h.value:g.value),y=kd("updateHTMLAttrs",(T,B,A)=>{const E=typeof T=="string"?r==null?void 0:r.document.querySelector(T):Sd(T);if(!E)return;const R=new Set,L=new Set;let S=null;if(B==="class"){const V=A.split(/\s/g);Object.values(f).flatMap(xe=>(xe||"").split(/\s/g)).filter(Boolean).forEach(xe=>{V.includes(xe)?R.add(xe):L.add(xe)})}else S={key:B,value:A};if(R.size===0&&L.size===0&&S===null)return;let F;u&&(F=r.document.createElement("style"),F.appendChild(document.createTextNode(R0)),r.document.head.appendChild(F));for(const V of R)E.classList.add(V);for(const V of L)E.classList.remove(V);S&&E.setAttribute(S.key,S.value),u&&(r.getComputedStyle(F).opacity,document.head.removeChild(F))});function _(T){var B;y(t,n,(B=f[T])!=null?B:T)}function k(T){e.onChanged?e.onChanged(T,_):_(T)}me(m,k,{flush:"post",immediate:!0}),_d(()=>k(m.value));const C=N({get(){return d?g.value:m.value},set(T){g.value=T}});try{return Object.assign(C,{store:g,system:h,state:m})}catch{return C}}function _s(e,t,n,o={}){var r,s,l;const{clone:i=!1,passive:a=!1,eventName:d,deep:u=!1,defaultValue:f,shouldEmit:p}=o,h=yt(),g=n||(h==null?void 0:h.emit)||((r=h==null?void 0:h.$emit)==null?void 0:r.bind(h))||((l=(s=h==null?void 0:h.proxy)==null?void 0:s.$emit)==null?void 0:l.bind(h==null?void 0:h.proxy));let m=d;m=m||`update:${t.toString()}`;const y=C=>i?typeof i=="function"?i(C):T0(C):C,_=()=>h0(e[t])?y(e[t]):f,k=C=>{p?p(C)&&g(m,C):g(m,C)};if(a){const C=_(),T=I(C);let B=!1;return me(()=>e[t],A=>{B||(B=!0,T.value=y(A),Ae(()=>B=!1))}),me(T,A=>{!B&&(A!==e[t]||u)&&k(A)},{deep:u}),T}else return N({get(){return _()},set(C){k(C)}})}function Ce(...e){return p0(Ry(e))}function vl(e){return e?Object.keys(e).length===0:!0}function zt(e){const{copy:t}=O0({source:e});t()}function Jn(e,t){let n="";t?n=`$${t} = [ + You can remove the \`type\` prop to let the component infer the type from the ${l} prop.`),"single"}return r?Array.isArray(o)?"multiple":"single":e}function Em({type:e,defaultValue:t,modelValue:n}){return e||Vc({type:e,defaultValue:t,modelValue:n})}function Om({type:e,defaultValue:t}){return t!==void 0?t:e==="single"?void 0:[]}function Tm(e,t){const n=B(Em(e)),o=mt(e,"modelValue",t,{defaultValue:Om(e),passive:e.modelValue===void 0,deep:!0});ve(()=>[e.type,e.modelValue,e.defaultValue],()=>{const l=Vc(e);n.value!==l&&(n.value=l)},{immediate:!0});function r(l){if(n.value==="single")o.value=l===o.value?void 0:l;else{const i=[...o.value||[]];if(i.includes(l)){const a=i.findIndex(d=>d===l);i.splice(a,1)}else i.push(l);o.value=i}}const s=N(()=>n.value==="single");return{modelValue:o,type:n,changeModelValue:r,isSingle:s}}const[ms,Am]=Ne("AccordionRoot"),$m=I({__name:"AccordionRoot",props:{collapsible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dir:{},orientation:{default:"vertical"},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,{dir:r,disabled:s}=ot(n),l=po(r),{modelValue:i,changeModelValue:a,isSingle:d}=Tm(n,o),{forwardRef:u,currentElement:f}=ie();return Am({disabled:s,direction:l,orientation:n.orientation,parentElement:f,isSingle:d,collapsible:n.collapsible,modelValue:i,changeModelValue:a}),(p,h)=>(w(),M(c(_e),{ref:c(u),"as-child":p.asChild,as:p.as},{default:v(()=>[L(p.$slots,"default",{modelValue:c(i)})]),_:3},8,["as-child","as"]))}}),[ii,Pm]=Ne("AccordionItem"),Mm=I({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},asChild:{type:Boolean},as:{}},setup(e,{expose:t}){const n=e,o=ms(),r=N(()=>o.isSingle.value?n.value===o.modelValue.value:Array.isArray(o.modelValue.value)&&o.modelValue.value.includes(n.value)),s=N(()=>o.disabled.value||n.disabled||o.isSingle.value&&r.value&&!o.collapsible),l=N(()=>s.value?"":void 0),i=N(()=>r.value?"open":"closed");t({open:r,dataDisabled:l});const{currentRef:a,currentElement:d}=ie();Pm({open:r,dataState:i,disabled:s,dataDisabled:l,triggerId:"",currentRef:a,currentElement:d,value:N(()=>n.value)});function u(f){Mc(f,d.value,o.parentElement.value,{arrowKeyOptions:o.orientation,dir:o.direction.value,focus:!0})}return(f,p)=>(w(),M(c(_m),{"data-orientation":c(o).orientation,"data-disabled":l.value,"data-state":i.value,disabled:s.value,open:r.value,as:n.as,"as-child":n.asChild,onKeydown:cs(u,["up","down","left","right","home","end"])},{default:v(()=>[L(f.$slots,"default",{open:r.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child"]))}}),Im=I({__name:"AccordionContent",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=ms(),o=ii();return ie(),(r,s)=>(w(),M(c(km),{role:"region",hidden:!c(o).open.value,"as-child":t.asChild,"aria-labelledby":c(o).triggerId,"data-state":c(o).dataState.value,"data-disabled":c(o).dataDisabled.value,"data-orientation":c(n).orientation,style:{"--radix-accordion-content-width":"var(--radix-collapsible-content-width)","--radix-accordion-content-height":"var(--radix-collapsible-content-height)"}},{default:v(()=>[L(r.$slots,"default")]),_:3},8,["hidden","as-child","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),Bm=I({__name:"AccordionHeader",props:{asChild:{type:Boolean},as:{default:"h3"}},setup(e){const t=e,n=ms(),o=ii();return ie(),(r,s)=>(w(),M(c(_e),{as:t.as,"as-child":t.asChild,"data-orientation":c(n).orientation,"data-state":c(o).dataState.value,"data-disabled":c(o).dataDisabled.value},{default:v(()=>[L(r.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),Rm=I({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=ms(),o=ii();o.triggerId||(o.triggerId=vt(void 0,"radix-vue-accordion-trigger"));function r(){o.disabled.value||n.changeModelValue(o.value.value)}return(s,l)=>(w(),M(c(Cm),{id:c(o).triggerId,ref:c(o).currentRef,"data-radix-vue-collection-item":"",as:t.as,"as-child":t.asChild,"aria-disabled":c(o).disabled.value||void 0,"aria-expanded":c(o).open.value||!1,"data-disabled":c(o).dataDisabled.value,"data-orientation":c(n).orientation,"data-state":c(o).dataState.value,disabled:c(o).disabled.value,onClick:r},{default:v(()=>[L(s.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),[Cn,Dm]=Ne("DialogRoot"),jm=I({__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=mt(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),r=B(),s=B(),{modal:l}=ot(n);return Dm({open:o,modal:l,openModal:()=>{o.value=!0},onOpenChange:i=>{o.value=i},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:r,contentElement:s}),(i,a)=>L(i.$slots,"default",{open:c(o)})}}),vs=I({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=Jg();return(n,o)=>c(t)||n.forceMount?(w(),M(ts,{key:0,to:n.to,disabled:n.disabled},[L(n.$slots,"default")],8,["to","disabled"])):ae("",!0)}}),Nc=I({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),M(c(vs),Ke(Je(t)),{default:v(()=>[L(n.$slots,"default")]),_:3},16))}}),Lm="dismissableLayer.pointerDownOutside",Vm="dismissableLayer.focusOutside";function Fc(e,t){const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&o===n||r.indexOf(o){});return We(l=>{if(!Zt)return;const i=async d=>{const u=d.target;if(t!=null&&t.value){if(Fc(t.value,u)){r.value=!1;return}if(d.target&&!r.value){let f=function(){Oc(Lm,e,p)};const p={originalEvent:d};d.pointerType==="touch"?(o.removeEventListener("click",s.value),s.value=f,o.addEventListener("click",s.value,{once:!0})):f()}else o.removeEventListener("click",s.value);r.value=!1}},a=window.setTimeout(()=>{o.addEventListener("pointerdown",i)},0);l(()=>{window.clearTimeout(a),o.removeEventListener("pointerdown",i),o.removeEventListener("click",s.value)})}),{onPointerDownCapture:()=>r.value=!0}}function Fm(e,t){var n;const o=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),r=B(!1);return We(s=>{if(!Zt)return;const l=async i=>{t!=null&&t.value&&(await Ae(),!(!t.value||Fc(t.value,i.target))&&i.target&&!r.value&&Oc(Vm,e,{originalEvent:i}))};o.addEventListener("focusin",l),s(()=>o.removeEventListener("focusin",l))}),{onFocusCapture:()=>r.value=!0,onBlurCapture:()=>r.value=!1}}const Lt=wn({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ys=I({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:r,currentElement:s}=ie(),l=N(()=>{var g;return((g=s.value)==null?void 0:g.ownerDocument)??globalThis.document}),i=N(()=>Lt.layersRoot),a=N(()=>s.value?Array.from(i.value).indexOf(s.value):-1),d=N(()=>Lt.layersWithOutsidePointerEventsDisabled.size>0),u=N(()=>{const g=Array.from(i.value),[m]=[...Lt.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(m);return a.value>=y}),f=Nm(async g=>{const m=[...Lt.branches].some(y=>y==null?void 0:y.contains(g.target));!u.value||m||(o("pointerDownOutside",g),o("interactOutside",g),await Ae(),g.defaultPrevented||o("dismiss"))},s),p=Fm(g=>{[...Lt.branches].some(m=>m==null?void 0:m.contains(g.target))||(o("focusOutside",g),o("interactOutside",g),g.defaultPrevented||o("dismiss"))},s);Zg("Escape",g=>{a.value===i.value.size-1&&(o("escapeKeyDown",g),g.defaultPrevented||o("dismiss"))});let h;return We(g=>{s.value&&(n.disableOutsidePointerEvents&&(Lt.layersWithOutsidePointerEventsDisabled.size===0&&(h=l.value.body.style.pointerEvents,l.value.body.style.pointerEvents="none"),Lt.layersWithOutsidePointerEventsDisabled.add(s.value)),i.value.add(s.value),g(()=>{n.disableOutsidePointerEvents&&Lt.layersWithOutsidePointerEventsDisabled.size===1&&(l.value.body.style.pointerEvents=h)}))}),We(g=>{g(()=>{s.value&&(i.value.delete(s.value),Lt.layersWithOutsidePointerEventsDisabled.delete(s.value))})}),(g,m)=>(w(),M(c(_e),{ref:c(r),"as-child":g.asChild,as:g.as,"data-dismissable-layer":"",style:qt({pointerEvents:d.value?u.value?"auto":"none":void 0}),onFocusCapture:c(p).onFocusCapture,onBlurCapture:c(p).onBlurCapture,onPointerdownCapture:c(f).onPointerDownCapture},{default:v(()=>[L(g.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Ns="focusScope.autoFocusOnMount",Fs="focusScope.autoFocusOnUnmount",Sa={bubbles:!1,cancelable:!0};function Hm(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(en(o,{select:t}),document.activeElement!==n)return!0}function zm(e){const t=Hc(e),n=ka(t,e),o=ka(t.reverse(),e);return[n,o]}function Hc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ka(e,t){for(const n of e)if(!Km(n,{upTo:t}))return n}function Km(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 Wm(e){return e instanceof HTMLInputElement&&"select"in e}function en(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Wm(e)&&t&&e.select()}}const Um=Ng(()=>B([]));function qm(){const e=Um();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=Ea(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=Ea(e.value,t),(n=e.value[0])==null||n.resume()}}}function Ea(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Gm(e){return e.filter(t=>t.tagName!=="A")}const ai=I({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,o=t,{currentRef:r,currentElement:s}=ie(),l=B(null),i=qm(),a=wn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});We(u=>{if(!Zt)return;const f=s.value;if(!n.trapped)return;function p(y){if(a.paused||!f)return;const _=y.target;f.contains(_)?l.value=_:en(l.value,{select:!0})}function h(y){if(a.paused||!f)return;const _=y.relatedTarget;_!==null&&(f.contains(_)||en(l.value,{select:!0}))}function g(y){f.contains(l.value)||en(f)}document.addEventListener("focusin",p),document.addEventListener("focusout",h);const m=new MutationObserver(g);f&&m.observe(f,{childList:!0,subtree:!0}),u(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",h),m.disconnect()})}),We(async u=>{const f=s.value;if(await Ae(),!f)return;i.add(a);const p=document.activeElement;if(!f.contains(p)){const h=new CustomEvent(Ns,Sa);f.addEventListener(Ns,g=>o("mountAutoFocus",g)),f.dispatchEvent(h),h.defaultPrevented||(Hm(Gm(Hc(f)),{select:!0}),document.activeElement===p&&en(f))}u(()=>{f.removeEventListener(Ns,m=>o("mountAutoFocus",m));const h=new CustomEvent(Fs,Sa),g=m=>{o("unmountAutoFocus",m)};f.addEventListener(Fs,g),f.dispatchEvent(h),setTimeout(()=>{h.defaultPrevented||en(p??document.body,{select:!0}),f.removeEventListener(Fs,g),i.remove(a)},0)})});function d(u){if(!n.loop&&!n.trapped||a.paused)return;const f=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,p=document.activeElement;if(f&&p){const h=u.currentTarget,[g,m]=zm(h);g&&m?!u.shiftKey&&p===m?(u.preventDefault(),n.loop&&en(g,{select:!0})):u.shiftKey&&p===g&&(u.preventDefault(),n.loop&&en(m,{select:!0})):p===h&&u.preventDefault()}}return(u,f)=>(w(),M(c(_e),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":u.asChild,as:u.as,onKeydown:d},{default:v(()=>[L(u.$slots,"default")]),_:3},8,["as-child","as"]))}}),Zm="menu.itemSelect",fl=["Enter"," "],Jm=["ArrowDown","PageUp","Home"],zc=["ArrowUp","PageDown","End"],Ym=[...Jm,...zc];[...fl],[...fl];function Kc(e){return e?"open":"closed"}function pl(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qm(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,l=t.length-1;so!=u>o&&n<(d-i)*(o-a)/(u-a)+i&&(r=!r)}return r}function Xm(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Qm(n,t)}function hl(e){return e.pointerType==="mouse"}const Wc=I({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Cn(),{forwardRef:s,currentElement:l}=ie();return r.titleId||(r.titleId=vt(void 0,"radix-vue-dialog-title")),r.descriptionId||(r.descriptionId=vt(void 0,"radix-vue-dialog-description")),Ie(()=>{r.contentElement=l,document.activeElement!==document.body&&(r.triggerElement.value=document.activeElement)}),(i,a)=>(w(),M(c(ai),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:a[5]||(a[5]=d=>o("openAutoFocus",d)),onUnmountAutoFocus:a[6]||(a[6]=d=>o("closeAutoFocus",d))},{default:v(()=>[b(c(ys),te({id:c(r).contentId,ref:c(s),as:i.as,"as-child":i.asChild,"disable-outside-pointer-events":i.disableOutsidePointerEvents,role:"dialog","aria-describedby":c(r).descriptionId,"aria-labelledby":c(r).titleId,"data-state":c(Kc)(c(r).open.value)},i.$attrs,{onDismiss:a[0]||(a[0]=d=>c(r).onOpenChange(!1)),onEscapeKeyDown:a[1]||(a[1]=d=>o("escapeKeyDown",d)),onFocusOutside:a[2]||(a[2]=d=>o("focusOutside",d)),onInteractOutside:a[3]||(a[3]=d=>o("interactOutside",d)),onPointerDownOutside:a[4]||(a[4]=d=>o("pointerDownOutside",d))}),{default:v(()=>[L(i.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),ev=I({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Cn(),s=Xo(o),{forwardRef:l,currentElement:i}=ie();return ri(i),(a,d)=>(w(),M(Wc,te({...n,...c(s)},{ref:c(l),"trap-focus":c(r).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:d[0]||(d[0]=u=>{var f;u.defaultPrevented||(u.preventDefault(),(f=c(r).triggerElement.value)==null||f.focus())}),onPointerDownOutside:d[1]||(d[1]=u=>{const f=u.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0;(f.button===2||p)&&u.preventDefault()}),onFocusOutside:d[2]||(d[2]=u=>{u.preventDefault()})}),{default:v(()=>[L(a.$slots,"default")]),_:3},16,["trap-focus"]))}}),tv=I({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=Xo(t);ie();const r=Cn(),s=B(!1),l=B(!1);return(i,a)=>(w(),M(Wc,te({...n,...c(o)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:a[0]||(a[0]=d=>{var u;d.defaultPrevented||(s.value||(u=c(r).triggerElement.value)==null||u.focus(),d.preventDefault()),s.value=!1,l.value=!1}),onInteractOutside:a[1]||(a[1]=d=>{var u;d.defaultPrevented||(s.value=!0,d.detail.originalEvent.type==="pointerdown"&&(l.value=!0));const f=d.target;(u=c(r).triggerElement.value)!=null&&u.contains(f)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&l.value&&d.preventDefault()})}),{default:v(()=>[L(i.$slots,"default")]),_:3},16))}}),Uc=I({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Cn(),s=Xo(o),{forwardRef:l}=ie();return(i,a)=>(w(),M(c(_n),{present:i.forceMount||c(r).open.value},{default:v(()=>[c(r).modal.value?(w(),M(ev,te({key:0,ref:c(l)},{...n,...c(s),...i.$attrs}),{default:v(()=>[L(i.$slots,"default")]),_:3},16)):(w(),M(tv,te({key:1,ref:c(l)},{...n,...c(s),...i.$attrs}),{default:v(()=>[L(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),nv=I({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(e){const t=Cn();return oi(!0),ie(),(n,o)=>(w(),M(c(_e),{as:n.as,"as-child":n.asChild,"data-state":c(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:v(()=>[L(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),qc=I({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=Cn(),{forwardRef:n}=ie();return(o,r)=>{var s;return(s=c(t))!=null&&s.modal.value?(w(),M(c(_n),{key:0,present:o.forceMount||c(t).open.value},{default:v(()=>[b(nv,te(o.$attrs,{ref:c(n),as:o.as,"as-child":o.asChild}),{default:v(()=>[L(o.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):ae("",!0)}}}),Gc=I({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;ie();const n=Cn();return(o,r)=>(w(),M(c(_e),te(t,{type:o.as==="button"?"button":void 0,onClick:r[0]||(r[0]=s=>c(n).onOpenChange(!1))}),{default:v(()=>[L(o.$slots,"default")]),_:3},16,["type"]))}}),ov=I({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(e){const t=e,n=Cn();return ie(),(o,r)=>(w(),M(c(_e),te(t,{id:c(n).titleId}),{default:v(()=>[L(o.$slots,"default")]),_:3},16,["id"]))}});function jr(e){return e==="indeterminate"}function Zc(e){return jr(e)?"indeterminate":e?"checked":"unchecked"}const rv=["value","checked","name","disabled","required"],[sv,lv]=Ne("CheckboxRoot"),iv=I({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,o=t,{disabled:r}=ot(n),s=mt(n,"checked",o,{defaultValue:n.defaultChecked,passive:n.checked===void 0}),{forwardRef:l,currentElement:i}=ie(),a=Rc(i),d=N(()=>{var u;return n.id&&i.value?(u=document.querySelector(`[for="${n.id}"]`))==null?void 0:u.innerText:void 0});return lv({disabled:r,state:s}),(u,f)=>(w(),z(Te,null,[b(c(_e),te(u.$attrs,{id:u.id,ref:c(l),role:"checkbox","as-child":n.asChild,as:u.as,type:u.as==="button"?"button":void 0,"aria-checked":c(jr)(c(s))?"mixed":c(s),"aria-required":!1,"aria-label":u.$attrs["aria-label"]||d.value,"data-state":c(Zc)(c(s)),"data-disabled":c(r)?"":void 0,disabled:c(r),onKeydown:cs($t(()=>{},["prevent"]),["enter"]),onClick:f[0]||(f[0]=p=>s.value=c(jr)(c(s))?!0:!c(s))}),{default:v(()=>[L(u.$slots,"default",{checked:c(s)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-label","data-state","data-disabled","disabled","onKeydown"]),c(a)?(w(),z("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:u.value,checked:!!c(s),name:n.name,disabled:n.disabled,required:n.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,rv)):ae("",!0)],64))}}),av=I({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(e){const{forwardRef:t}=ie(),n=sv();return(o,r)=>(w(),M(c(_n),{present:o.forceMount||c(jr)(c(n).state.value)||c(n).state.value===!0},{default:v(()=>[b(c(_e),te({ref:c(t),"data-state":c(Zc)(c(n).state.value),"data-disabled":c(n).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":o.asChild,as:o.as},o.$attrs),{default:v(()=>[L(o.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),[Jc,uv]=Ne("PopperRoot"),ui=I({__name:"PopperRoot",setup(e){const t=B();return uv({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>L(n.$slots,"default")}}),ci=I({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:o}=ie(),r=Jc();return We(()=>{r.onAnchorChange(t.element??o.value)}),(s,l)=>(w(),M(c(_e),{ref:c(n),as:s.as,"as-child":s.asChild},{default:v(()=>[L(s.$slots,"default")]),_:3},8,["as","as-child"]))}});function cv(e){return e!==null}function dv(e){return{name:"transformOrigin",options:e,fn(t){var n,o,r;const{placement:s,rects:l,middlewareData:i}=t,a=((n=i.arrow)==null?void 0:n.centerOffset)!==0,d=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[f,p]=gl(s),h={start:"0%",center:"50%",end:"100%"}[p],g=(((o=i.arrow)==null?void 0:o.x)??0)+d/2,m=(((r=i.arrow)==null?void 0:r.y)??0)+u/2;let y="",_="";return f==="bottom"?(y=a?h:`${g}px`,_=`${-u}px`):f==="top"?(y=a?h:`${g}px`,_=`${l.floating.height+u}px`):f==="right"?(y=`${-u}px`,_=a?h:`${m}px`):f==="left"&&(y=`${l.floating.width+u}px`,_=a?h:`${m}px`),{data:{x:y,y:_}}}}}function gl(e){const[t,n="center"]=e.split("-");return[t,n]}const Yc={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[P1,fv]=Ne("PopperContent"),di=I({inheritAttrs:!1,__name:"PopperContent",props:Ju({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...Yc}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,r=Jc(),{forwardRef:s,currentElement:l}=ie(),i=B(),a=B(),{width:d,height:u}=vm(a),f=N(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),p=N(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),h=N(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),g=N(()=>({padding:p.value,boundary:h.value.filter(cv),altBoundary:h.value.length>0})),m=Lg(()=>[Tg({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&ba({...g.value}),n.avoidCollisions&&Ag({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Ig():void 0,...g.value}),!n.prioritizePosition&&n.avoidCollisions&&ba({...g.value}),$g({...g.value,apply:({elements:C,rects:F,availableWidth:V,availableHeight:xe})=>{const{width:ye,height:Fe}=F.reference,be=C.floating.style;be.setProperty("--radix-popper-available-width",`${V}px`),be.setProperty("--radix-popper-available-height",`${xe}px`),be.setProperty("--radix-popper-anchor-width",`${ye}px`),be.setProperty("--radix-popper-anchor-height",`${Fe}px`)}}),a.value&&Dg({element:a.value,padding:n.arrowPadding}),dv({arrowWidth:d.value,arrowHeight:u.value}),n.hideWhenDetached&&Pg({strategy:"referenceHidden",...g.value})]),{floatingStyles:y,placement:_,isPositioned:A,middlewareData:k}=jg(r.anchor,i,{strategy:"fixed",placement:f,whileElementsMounted:(...C)=>Og(...C,{animationFrame:n.updatePositionStrategy==="always"}),middleware:m}),O=N(()=>gl(_.value)[0]),R=N(()=>gl(_.value)[1]);Bp(()=>{A.value&&o("placed")});const T=N(()=>{var C;return((C=k.value.arrow)==null?void 0:C.centerOffset)!==0}),S=B("");We(()=>{l.value&&(S.value=window.getComputedStyle(l.value).zIndex)});const $=N(()=>{var C;return((C=k.value.arrow)==null?void 0:C.x)??0}),D=N(()=>{var C;return((C=k.value.arrow)==null?void 0:C.y)??0});return fv({placedSide:O,onArrowChange:C=>a.value=C,arrowX:$,arrowY:D,shouldHideArrow:T}),(C,F)=>{var V,xe,ye;return w(),z("div",{ref_key:"floatingRef",ref:i,"data-radix-popper-content-wrapper":"",style:qt({...c(y),transform:c(A)?c(y).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:S.value,"--radix-popper-transform-origin":[(V=c(k).transformOrigin)==null?void 0:V.x,(xe=c(k).transformOrigin)==null?void 0:xe.y].join(" "),...((ye=c(k).hide)==null?void 0:ye.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[b(c(_e),te({ref:c(s)},C.$attrs,{"as-child":n.asChild,as:C.as,"data-side":O.value,"data-align":R.value,style:{animation:c(A)?void 0:"none"}}),{default:v(()=>[L(C.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),Qc=I({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return ie(),(t,n)=>(w(),M(c(_e),{as:t.as,"as-child":t.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:v(()=>[L(t.$slots,"default")]),_:3},8,["as","as-child"]))}}),pv="data-radix-vue-collection-item",[fi,hv]=Ne("CollectionProvider");function gv(e=pv){const t=B(new Map),n=B(),o=hv({collectionRef:n,itemMap:t,attrName:e}),{getItems:r}=ed(o),s=N(()=>Array.from(o.itemMap.value.values())),l=N(()=>o.itemMap.value.size);return{getItems:r,reactiveItems:s,itemMapSize:l}}const mv=I({name:"CollectionSlot",setup(e,{slots:t}){const n=fi(),{primitiveElement:o,currentElement:r}=jc();return ve(r,()=>{n.collectionRef.value=r.value}),()=>we(li,{ref:o},t)}}),Xc=I({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){const o=fi(),{primitiveElement:r,currentElement:s}=jc();return We(l=>{if(s.value){const i=Eu(s.value);o.itemMap.value.set(i,{ref:s.value,value:e.value}),l(()=>o.itemMap.value.delete(i))}}),()=>we(li,{...n,[o.attrName]:"",ref:r},t)}});function ed(e){const t=e??fi();return{getItems:()=>{const n=t.collectionRef.value;if(!n)return[];const o=Array.from(n.querySelectorAll(`[${t.attrName}]`));return Array.from(t.itemMap.value.values()).sort((r,s)=>o.indexOf(r.ref)-o.indexOf(s.ref))}}}function vv(e){const t=gs({nonce:B()});return N(()=>{var n;return(e==null?void 0:e.value)||((n=t.nonce)==null?void 0:n.value)})}const yv=I({__name:"MenuAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(w(),M(c(ci),Ke(Je(t)),{default:v(()=>[L(n.$slots,"default")]),_:3},16))}});function bv(){const e=B(!1);return Ie(()=>{co("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),co(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const wv=Tc(bv),[bs,xv]=Ne(["MenuRoot","MenuSub"],"MenuContext"),[pi,_v]=Ne("MenuRoot"),Cv=I({__name:"MenuRoot",props:{open:{type:Boolean,default:!1},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t,{modal:r,dir:s}=ot(n),l=po(s),i=mt(n,"open",o),a=B(),d=wv();return xv({open:i,onOpenChange:u=>{i.value=u},content:a,onContentChange:u=>{a.value=u}}),_v({onClose:()=>{i.value=!1},isUsingKeyboardRef:d,dir:l,modal:r}),(u,f)=>(w(),M(c(ui),null,{default:v(()=>[L(u.$slots,"default")]),_:3}))}}),Sv="rovingFocusGroup.onEntryFocus",kv={bubbles:!1,cancelable:!0},Ev={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ov(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Tv(e,t,n){const o=Ov(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Ev[o]}function td(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Av(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const[$v,Pv]=Ne("RovingFocusGroup"),nd=I({__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const o=e,r=n,{loop:s,orientation:l,dir:i}=ot(o),a=po(i),d=mt(o,"currentTabStopId",r,{defaultValue:o.defaultCurrentTabStopId,passive:o.currentTabStopId===void 0}),u=B(!1),f=B(!1),p=B(0),{getItems:h}=gv();function g(y){const _=!f.value;if(y.currentTarget&&y.target===y.currentTarget&&_&&!u.value){const A=new CustomEvent(Sv,kv);if(y.currentTarget.dispatchEvent(A),r("entryFocus",A),!A.defaultPrevented){const k=h().map(S=>S.ref).filter(S=>S.dataset.disabled!==""),O=k.find(S=>S.getAttribute("data-active")==="true"),R=k.find(S=>S.id===d.value),T=[O,R,...k].filter(Boolean);td(T,o.preventScrollOnEntryFocus)}}f.value=!1}function m(){setTimeout(()=>{f.value=!1},1)}return t({getItems:h}),Pv({loop:s,dir:a,orientation:l,currentTabStopId:d,onItemFocus:y=>{d.value=y},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{p.value++},onFocusableItemRemove:()=>{p.value--}}),(y,_)=>(w(),M(c(mv),null,{default:v(()=>[b(c(_e),{tabindex:u.value||p.value===0?-1:0,"data-orientation":c(l),as:y.as,"as-child":y.asChild,dir:c(a),style:{outline:"none"},onMousedown:_[0]||(_[0]=A=>f.value=!0),onMouseup:m,onFocus:g,onBlur:_[1]||(_[1]=A=>u.value=!1)},{default:v(()=>[L(y.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Mv=I({__name:"RovingFocusItem",props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!0},allowShiftKey:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=$v(),o=N(()=>t.tabStopId||vt()),r=N(()=>n.currentTabStopId.value===o.value),{getItems:s}=ed();Ie(()=>{t.focusable&&n.onFocusableItemAdd()}),xn(()=>{t.focusable&&n.onFocusableItemRemove()});function l(i){if(i.key==="Tab"&&i.shiftKey){n.onItemShiftTab();return}if(i.target!==i.currentTarget)return;const a=Tv(i,n.orientation.value,n.dir.value);if(a!==void 0){if(i.metaKey||i.ctrlKey||i.altKey||!t.allowShiftKey&&i.shiftKey)return;i.preventDefault();let d=[...s().map(u=>u.ref).filter(u=>u.dataset.disabled!=="")];if(a==="last")d.reverse();else if(a==="prev"||a==="next"){a==="prev"&&d.reverse();const u=d.indexOf(i.currentTarget);d=n.loop.value?Av(d,u+1):d.slice(u+1)}Ae(()=>td(d))}}return(i,a)=>(w(),M(c(Xc),null,{default:v(()=>[b(c(_e),{tabindex:r.value?0:-1,"data-orientation":c(n).orientation.value,"data-active":i.active,"data-disabled":i.focusable?void 0:"",as:i.as,"as-child":i.asChild,onMousedown:a[0]||(a[0]=d=>{i.focusable?c(n).onItemFocus(o.value):d.preventDefault()}),onFocus:a[1]||(a[1]=d=>c(n).onItemFocus(o.value)),onKeydown:l},{default:v(()=>[L(i.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),[od,Iv]=Ne("MenuContent"),rd=I({__name:"MenuContentImpl",props:Ju({loop:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},disableOutsideScroll:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...Yc}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,o=t,r=bs(),s=pi(),{trapFocus:l,disableOutsidePointerEvents:i,loop:a}=ot(n);Bc(),oi(i.value);const d=B(""),u=B(0),f=B(0),p=B(null),h=B("right"),g=B(0),m=B(null),{createCollection:y}=Qo(),{forwardRef:_,currentElement:A}=ie(),k=y(A);ve(A,C=>{r.onContentChange(C)});const{handleTypeaheadSearch:O}=si(k);xn(()=>{window.clearTimeout(u.value)});function R(C){var F,V;return h.value===((F=p.value)==null?void 0:F.side)&&Xm(C,(V=p.value)==null?void 0:V.area)}async function T(C){var F;o("openAutoFocus",C),!C.defaultPrevented&&(C.preventDefault(),(F=A.value)==null||F.focus({preventScroll:!0}))}function S(C){if(C.defaultPrevented)return;const F=C.target.closest("[data-radix-menu-content]")===C.currentTarget,V=C.ctrlKey||C.altKey||C.metaKey,xe=C.key.length===1,ye=Mc(C,document.activeElement,A.value,{loop:a.value,arrowKeyOptions:"vertical",dir:s==null?void 0:s.dir.value,focus:!0,attributeName:"[data-radix-vue-collection-item]:not([data-disabled])"});if(ye)return ye==null?void 0:ye.focus();if(C.code==="Space"||(F&&(C.key==="Tab"&&C.preventDefault(),!V&&xe&&O(C.key)),C.target!==A.value)||!Ym.includes(C.key))return;C.preventDefault();const Fe=k.value;zc.includes(C.key)&&Fe.reverse(),pl(Fe)}function $(C){var F,V;(V=(F=C==null?void 0:C.currentTarget)==null?void 0:F.contains)!=null&&V.call(F,C.target)||(window.clearTimeout(u.value),d.value="")}function D(C){var F;if(!hl(C))return;const V=C.target,xe=g.value!==C.clientX;if((F=C==null?void 0:C.currentTarget)!=null&&F.contains(V)&&xe){const ye=C.clientX>g.value?"right":"left";h.value=ye,g.value=C.clientX}}return Iv({onItemEnter:C=>!!R(C),onItemLeave:C=>{var F;R(C)||((F=A.value)==null||F.focus(),m.value=null)},onTriggerLeave:C=>!!R(C),searchRef:d,pointerGraceTimerRef:f,onPointerGraceIntentChange:C=>{p.value=C}}),(C,F)=>(w(),M(c(ai),{"as-child":"",trapped:c(l),onMountAutoFocus:T,onUnmountAutoFocus:F[7]||(F[7]=V=>o("closeAutoFocus",V))},{default:v(()=>[b(c(ys),{"as-child":"","disable-outside-pointer-events":c(i),onEscapeKeyDown:F[2]||(F[2]=V=>o("escapeKeyDown",V)),onPointerDownOutside:F[3]||(F[3]=V=>o("pointerDownOutside",V)),onFocusOutside:F[4]||(F[4]=V=>o("focusOutside",V)),onInteractOutside:F[5]||(F[5]=V=>o("interactOutside",V)),onDismiss:F[6]||(F[6]=V=>o("dismiss"))},{default:v(()=>[b(c(nd),{"current-tab-stop-id":m.value,"onUpdate:currentTabStopId":F[0]||(F[0]=V=>m.value=V),"as-child":"",orientation:"vertical",dir:c(s).dir.value,loop:c(a),onEntryFocus:F[1]||(F[1]=V=>{o("entryFocus",V),c(s).isUsingKeyboardRef.value||V.preventDefault()})},{default:v(()=>[b(c(di),{ref:c(_),role:"menu",as:C.as,"as-child":C.asChild,"aria-orientation":"vertical","data-radix-menu-content":"","data-state":c(Kc)(c(r).open.value),dir:c(s).dir.value,side:C.side,"side-offset":C.sideOffset,align:C.align,"align-offset":C.alignOffset,"avoid-collisions":C.avoidCollisions,"collision-boundary":C.collisionBoundary,"collision-padding":C.collisionPadding,"arrow-padding":C.arrowPadding,"prioritize-position":C.prioritizePosition,sticky:C.sticky,"hide-when-detached":C.hideWhenDetached,onKeydown:S,onBlur:$,onPointermove:D},{default:v(()=>[L(C.$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","sticky","hide-when-detached"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),Bv=I({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=od(),{forwardRef:o}=ie(),r=B(!1);async function s(i){if(!i.defaultPrevented&&hl(i)){if(t.disabled)n.onItemLeave(i);else if(!n.onItemEnter(i)){const a=i.currentTarget;a==null||a.focus({preventScroll:!0})}}}async function l(i){await Ae(),!i.defaultPrevented&&hl(i)&&n.onItemLeave(i)}return(i,a)=>(w(),M(c(Xc),null,{default:v(()=>[b(c(_e),te({ref:c(o),role:"menuitem",tabindex:"-1"},i.$attrs,{as:i.as,"as-child":i.asChild,"data-radix-vue-collection-item":"","aria-disabled":i.disabled||void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":r.value?"":void 0,onPointermove:s,onPointerleave:l,onFocus:a[0]||(a[0]=async d=>{await Ae(),!(d.defaultPrevented||i.disabled)&&(r.value=!0)}),onBlur:a[1]||(a[1]=async d=>{await Ae(),!d.defaultPrevented&&(r.value=!1)})}),{default:v(()=>[L(i.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3}))}}),Rv=I({__name:"MenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,o=t,{forwardRef:r,currentElement:s}=ie(),l=pi(),i=od(),a=B(!1);async function d(){const u=s.value;if(!n.disabled&&u){const f=new CustomEvent(Zm,{bubbles:!0,cancelable:!0});o("select",f),await Ae(),f.defaultPrevented?a.value=!1:l.onClose()}}return(u,f)=>(w(),M(Bv,te(n,{ref:c(r),onClick:d,onPointerdown:f[0]||(f[0]=()=>{a.value=!0}),onPointerup:f[1]||(f[1]=async p=>{var h;await Ae(),!p.defaultPrevented&&(a.value||(h=p.currentTarget)==null||h.click())}),onKeydown:f[2]||(f[2]=async p=>{const h=c(i).searchRef.value!=="";u.disabled||h&&p.key===" "||c(fl).includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})}),{default:v(()=>[L(u.$slots,"default")]),_:3},16))}}),Dv=I({__name:"MenuRootContentModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=Ue(n,o),s=bs(),{forwardRef:l,currentElement:i}=ie();return ri(i),(a,d)=>(w(),M(rd,te(c(r),{ref:c(l),"trap-focus":c(s).open.value,"disable-outside-pointer-events":c(s).open.value,"disable-outside-scroll":!0,onDismiss:d[0]||(d[0]=u=>c(s).onOpenChange(!1)),onFocusOutside:d[1]||(d[1]=$t(u=>o("focusOutside",u),["prevent"]))}),{default:v(()=>[L(a.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),jv=I({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=Ue(e,t),o=bs();return(r,s)=>(w(),M(rd,te(c(n),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:s[0]||(s[0]=l=>c(o).onOpenChange(!1))}),{default:v(()=>[L(r.$slots,"default")]),_:3},16))}}),Lv=I({__name:"MenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=Ue(e,t),o=bs(),r=pi();return(s,l)=>(w(),M(c(_n),{present:s.forceMount||c(o).open.value},{default:v(()=>[c(r).modal.value?(w(),M(Dv,Ke(te({key:0},{...s.$attrs,...c(n)})),{default:v(()=>[L(s.$slots,"default")]),_:3},16)):(w(),M(jv,Ke(te({key:1},{...s.$attrs,...c(n)})),{default:v(()=>[L(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Vv=I({__name:"MenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),M(c(vs),Ke(Je(t)),{default:v(()=>[L(n.$slots,"default")]),_:3},16))}}),[sd,Nv]=Ne("DropdownMenuRoot"),Fv=I({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;ie();const r=mt(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0}),s=B(),{modal:l,dir:i}=ot(n),a=po(i);return Nv({open:r,onOpenChange:d=>{r.value=d},onOpenToggle:()=>{r.value=!r.value},triggerId:"",triggerElement:s,contentId:"",modal:l,dir:a}),(d,u)=>(w(),M(c(Cv),{open:c(r),"onUpdate:open":u[0]||(u[0]=f=>Le(r)?r.value=f:null),dir:c(a),modal:c(l)},{default:v(()=>[L(d.$slots,"default",{open:c(r)})]),_:3},8,["open","dir","modal"]))}}),Hv=I({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=sd(),{forwardRef:o,currentElement:r}=ie();return Ie(()=>{n.triggerElement=r}),n.triggerId||(n.triggerId=vt(void 0,"radix-vue-dropdown-menu-trigger")),(s,l)=>(w(),M(c(yv),{"as-child":""},{default:v(()=>[b(c(_e),{id:c(n).triggerId,ref:c(o),type:s.as==="button"?"button":void 0,"as-child":t.asChild,as:s.as,"aria-haspopup":"menu","aria-expanded":c(n).open.value,"aria-controls":c(n).open.value?c(n).contentId:void 0,"data-disabled":s.disabled?"":void 0,disabled:s.disabled,"data-state":c(n).open.value?"open":"closed",onClick:l[0]||(l[0]=async i=>{var a;!s.disabled&&i.button===0&&i.ctrlKey===!1&&((a=c(n))==null||a.onOpenToggle(),await Ae(),c(n).open.value&&i.preventDefault())}),onKeydown:l[1]||(l[1]=cs(i=>{s.disabled||(["Enter"," "].includes(i.key)&&c(n).onOpenToggle(),i.key==="ArrowDown"&&c(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())},["enter","space","arrow-down"]))},{default:v(()=>[L(s.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),zv=I({__name:"DropdownMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),M(c(Vv),Ke(Je(t)),{default:v(()=>[L(n.$slots,"default")]),_:3},16))}}),Kv=I({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const n=Ue(e,t);ie();const o=sd(),r=B(!1);function s(l){l.defaultPrevented||(r.value||setTimeout(()=>{var i;(i=o.triggerElement.value)==null||i.focus()},0),r.value=!1,l.preventDefault())}return o.contentId||(o.contentId=vt(void 0,"radix-vue-dropdown-menu-content")),(l,i)=>{var a;return w(),M(c(Lv),te(c(n),{id:c(o).contentId,"aria-labelledby":(a=c(o))==null?void 0:a.triggerId,style:{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:s,onInteractOutside:i[0]||(i[0]=d=>{var u;if(d.defaultPrevented)return;const f=d.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,h=f.button===2||p;(!c(o).modal.value||h)&&(r.value=!0),(u=c(o).triggerElement.value)!=null&&u.contains(d.target)&&d.preventDefault()})}),{default:v(()=>[L(l.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),Wv=I({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,o=Xo(t);return ie(),(r,s)=>(w(),M(c(Rv),Ke(Je({...n,...c(o)})),{default:v(()=>[L(r.$slots,"default")]),_:3},16))}}),Uv=["default-value"],qv=I({__name:"BubbleSelect",props:{autocomplete:{},autofocus:{type:Boolean},disabled:{type:Boolean},form:{},multiple:{type:Boolean},name:{},required:{type:Boolean},size:{},value:{}},setup(e){const t=e,{value:n}=ot(t),o=B();return(r,s)=>(w(),M(c(Qc),{"as-child":""},{default:v(()=>[qo(P("select",te({ref_key:"selectElement",ref:o},t,{"onUpdate:modelValue":s[0]||(s[0]=l=>Le(n)?n.value=l:null),"default-value":c(n)}),[L(r.$slots,"default")],16,Uv),[[_h,c(n)]])]),_:3}))}}),Gv={key:0,value:""},[Fn,ld]=Ne("SelectRoot"),[Zv,Jv]=Ne("SelectRoot"),Yv=I({__name:"SelectRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},defaultValue:{default:""},modelValue:{default:void 0},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const n=e,o=t,r=mt(n,"modelValue",o,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),s=mt(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0}),l=B(),i=B(),a=B({x:0,y:0}),d=B(!1),{required:u,disabled:f,dir:p}=ot(n),h=po(p);ld({triggerElement:l,onTriggerChange:_=>{l.value=_},valueElement:i,onValueElementChange:_=>{i.value=_},valueElementHasChildren:d,onValueElementHasChildrenChange:_=>{d.value=_},contentId:"",modelValue:r,onValueChange:_=>{r.value=_},open:s,required:u,onOpenChange:_=>{s.value=_},dir:h,triggerPointerDownPosRef:a,disabled:f});const g=Rc(l),m=B(new Set),y=N(()=>Array.from(m.value).map(_=>{var A;return(A=_.props)==null?void 0:A.value}).join(";"));return Jv({onNativeOptionAdd:_=>{m.value.add(_)},onNativeOptionRemove:_=>{m.value.delete(_)}}),(_,A)=>(w(),M(c(ui),null,{default:v(()=>[L(_.$slots,"default",{modelValue:c(r),open:c(s)}),c(g)?(w(),M(qv,te({key:y.value},_.$attrs,{"aria-hidden":"true",tabindex:"-1",required:c(u),name:_.name,autocomplete:_.autocomplete,disabled:c(f),value:c(r),onChange:A[0]||(A[0]=k=>r.value=k.target.value)}),{default:v(()=>[c(r)===void 0?(w(),z("option",Gv)):ae("",!0),(w(!0),z(Te,null,Tt(Array.from(m.value),k=>(w(),M(Vn(k),te({ref_for:!0},k.props,{key:k.key??""}),null,16))),128))]),_:1},16,["required","name","autocomplete","disabled","value"])):ae("",!0)]),_:3}))}}),Qv=[" ","Enter","ArrowUp","ArrowDown"],Xv=[" ","Enter"],Ft=10;function id(e){return e===""||wr(e)}const ey=I({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Fn(),o=N(()=>{var h;return((h=n.disabled)==null?void 0:h.value)||t.disabled}),{forwardRef:r,currentElement:s}=ie();n.contentId||(n.contentId=vt(void 0,"radix-vue-select-content")),Ie(()=>{n.triggerElement=s});const{injectCollection:l}=Qo(),i=l(),{search:a,handleTypeaheadSearch:d,resetTypeahead:u}=si(i);function f(){o.value||(n.onOpenChange(!0),u())}function p(h){f(),n.triggerPointerDownPosRef.value={x:Math.round(h.pageX),y:Math.round(h.pageY)}}return(h,g)=>(w(),M(c(ci),{"as-child":""},{default:v(()=>{var m,y,_,A;return[b(c(_e),{ref:c(r),role:"combobox",type:h.as==="button"?"button":void 0,"aria-controls":c(n).contentId,"aria-expanded":c(n).open.value||!1,"aria-required":(m=c(n).required)==null?void 0:m.value,"aria-autocomplete":"none",disabled:o.value,dir:(y=c(n))==null?void 0:y.dir.value,"data-state":(_=c(n))!=null&&_.open.value?"open":"closed","data-disabled":o.value?"":void 0,"data-placeholder":c(id)((A=c(n).modelValue)==null?void 0:A.value)?"":void 0,"as-child":h.asChild,as:h.as,onClick:g[0]||(g[0]=k=>{var O;(O=k==null?void 0:k.currentTarget)==null||O.focus()}),onPointerdown:g[1]||(g[1]=k=>{if(k.pointerType==="touch")return k.preventDefault();const O=k.target;O.hasPointerCapture(k.pointerId)&&O.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&(p(k),k.preventDefault())}),onPointerup:g[2]||(g[2]=$t(k=>{k.pointerType==="touch"&&p(k)},["prevent"])),onKeydown:g[3]||(g[3]=k=>{const O=c(a)!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&O&&k.key===" "||(c(d)(k.key),c(Qv).includes(k.key)&&(f(),k.preventDefault()))})},{default:v(()=>[L(h.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3}))}}),ty=I({__name:"SelectPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),M(c(vs),Ke(Je(t)),{default:v(()=>[L(n.$slots,"default")]),_:3},16))}}),[hi,ny]=Ne("SelectItemAlignedPosition"),oy=I({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean},as:{}},emits:["placed"],setup(e,{emit:t}){const n=e,o=t,{injectCollection:r}=Qo(),s=Fn(),l=Hn(),i=r(),a=B(!1),d=B(!0),u=B(),{forwardRef:f,currentElement:p}=ie(),{viewport:h,selectedItem:g,selectedItemText:m,focusSelectedItem:y}=l;function _(){if(s.triggerElement.value&&s.valueElement.value&&u.value&&p.value&&h!=null&&h.value&&g!=null&&g.value&&m!=null&&m.value){const O=s.triggerElement.value.getBoundingClientRect(),R=p.value.getBoundingClientRect(),T=s.valueElement.value.getBoundingClientRect(),S=m.value.getBoundingClientRect();if(s.dir.value!=="rtl"){const je=S.left-R.left,He=T.left-je,Dt=O.left-He,lt=O.width+Dt,zn=Math.max(lt,R.width),Kn=window.innerWidth-Ft,x=xa(He,Ft,Kn-zn);u.value.style.minWidth=`${lt}px`,u.value.style.left=`${x}px`}else{const je=R.right-S.right,He=window.innerWidth-T.right-je,Dt=window.innerWidth-O.right-He,lt=O.width+Dt,zn=Math.max(lt,R.width),Kn=window.innerWidth-Ft,x=xa(He,Ft,Kn-zn);u.value.style.minWidth=`${lt}px`,u.value.style.right=`${x}px`}const $=i.value,D=window.innerHeight-Ft*2,C=h.value.scrollHeight,F=window.getComputedStyle(p.value),V=Number.parseInt(F.borderTopWidth,10),xe=Number.parseInt(F.paddingTop,10),ye=Number.parseInt(F.borderBottomWidth,10),Fe=Number.parseInt(F.paddingBottom,10),be=V+xe+C+Fe+ye,fe=Math.min(g.value.offsetHeight*5,be),ue=window.getComputedStyle(h.value),Be=Number.parseInt(ue.paddingTop,10),st=Number.parseInt(ue.paddingBottom,10),Y=O.top+O.height/2-Ft,Q=D-Y,X=g.value.offsetHeight/2,he=g.value.offsetTop+X,re=V+xe+he,ge=be-re;if(re<=Y){const je=g.value===$[$.length-1];u.value.style.bottom="0px";const He=p.value.clientHeight-h.value.offsetTop-h.value.offsetHeight,Dt=Math.max(Q,X+(je?st:0)+He+ye),lt=re+Dt;u.value.style.height=`${lt}px`}else{const je=g.value===$[0];u.value.style.top="0px";const He=Math.max(Y,V+h.value.offsetTop+(je?Be:0)+X)+ge;u.value.style.height=`${He}px`,h.value.scrollTop=re-Y+h.value.offsetTop}u.value.style.margin=`${Ft}px 0`,u.value.style.minHeight=`${fe}px`,u.value.style.maxHeight=`${D}px`,o("placed"),requestAnimationFrame(()=>a.value=!0)}}const A=B("");Ie(async()=>{await Ae(),_(),p.value&&(A.value=window.getComputedStyle(p.value).zIndex)});function k(O){O&&d.value===!0&&(_(),y==null||y(),d.value=!1)}return ny({contentWrapper:u,shouldExpandOnScrollRef:a,onScrollButtonChange:k}),(O,R)=>(w(),z("div",{ref_key:"contentWrapperElement",ref:u,style:qt({display:"flex",flexDirection:"column",position:"fixed",zIndex:A.value})},[b(c(_e),te({ref:c(f),style:{boxSizing:"border-box",maxHeight:"100%"}},{...O.$attrs,...n}),{default:v(()=>[L(O.$slots,"default")]),_:3},16)],4))}}),ry=I({__name:"SelectPopperPosition",props:{side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{default:Ft},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=ht(e);return(n,o)=>(w(),M(c(di),te(c(t),{style:{boxSizing:"border-box","--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:v(()=>[L(n.$slots,"default")]),_:3},16))}}),ho={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Hn,sy]=Ne("SelectContent"),ly=I({__name:"SelectContentImpl",props:{position:{default:"item-aligned"},bodyLock:{type:Boolean,default:!0},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=Fn();Bc(),oi(n.bodyLock);const{createCollection:s}=Qo(),l=B();ri(l);const i=s(l),{search:a,handleTypeaheadSearch:d}=si(i),u=B(),f=B(),p=B(),h=B(!1),g=B(!1);function m(){f.value&&l.value&&pl([f.value,l.value])}ve(h,()=>{m()});const{onOpenChange:y,triggerPointerDownPosRef:_}=r;We(R=>{if(!l.value)return;let T={x:0,y:0};const S=D=>{var C,F;T={x:Math.abs(Math.round(D.pageX)-(((C=_.value)==null?void 0:C.x)??0)),y:Math.abs(Math.round(D.pageY)-(((F=_.value)==null?void 0:F.y)??0))}},$=D=>{var C;D.pointerType!=="touch"&&(T.x<=10&&T.y<=10?D.preventDefault():(C=l.value)!=null&&C.contains(D.target)||y(!1),document.removeEventListener("pointermove",S),_.value=null)};_.value!==null&&(document.addEventListener("pointermove",S),document.addEventListener("pointerup",$,{capture:!0,once:!0})),R(()=>{document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",$,{capture:!0})})});function A(R){const T=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!T&&R.key.length===1&&d(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let S=i.value;if(["ArrowUp","End"].includes(R.key)&&(S=S.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const $=R.target,D=S.indexOf($);S=S.slice(D+1)}setTimeout(()=>pl(S)),R.preventDefault()}}const k=N(()=>n.position==="popper"?n:{}),O=ht(k.value);return sy({content:l,viewport:u,onViewportChange:R=>{u.value=R},itemRefCallback:(R,T,S)=>{var $,D;const C=!g.value&&!S;((($=r.modelValue)==null?void 0:$.value)!==void 0&&((D=r.modelValue)==null?void 0:D.value)===T||C)&&(f.value=R,C&&(g.value=!0))},selectedItem:f,selectedItemText:p,onItemLeave:()=>{var R;(R=l.value)==null||R.focus()},itemTextRefCallback:(R,T,S)=>{var $,D;const C=!g.value&&!S;((($=r.modelValue)==null?void 0:$.value)!==void 0&&((D=r.modelValue)==null?void 0:D.value)===T||C)&&(p.value=R)},focusSelectedItem:m,position:n.position,isPositioned:h,searchRef:a}),(R,T)=>(w(),M(c(ai),{"as-child":"",onMountAutoFocus:T[6]||(T[6]=$t(()=>{},["prevent"])),onUnmountAutoFocus:T[7]||(T[7]=S=>{var $;o("closeAutoFocus",S),!S.defaultPrevented&&(($=c(r).triggerElement.value)==null||$.focus({preventScroll:!0}),S.preventDefault())})},{default:v(()=>[b(c(ys),{"as-child":"","disable-outside-pointer-events":"",onFocusOutside:T[2]||(T[2]=$t(()=>{},["prevent"])),onDismiss:T[3]||(T[3]=S=>c(r).onOpenChange(!1)),onEscapeKeyDown:T[4]||(T[4]=S=>o("escapeKeyDown",S)),onPointerDownOutside:T[5]||(T[5]=S=>o("pointerDownOutside",S))},{default:v(()=>[(w(),M(Vn(R.position==="popper"?ry:oy),te({...R.$attrs,...c(O)},{id:c(r).contentId,ref:S=>{l.value=c(Jt)(S)},role:"listbox","data-state":c(r).open.value?"open":"closed",dir:c(r).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:T[0]||(T[0]=$t(()=>{},["prevent"])),onPlaced:T[1]||(T[1]=S=>h.value=!0),onKeydown:A}),{default:v(()=>[L(R.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3})]),_:3}))}}),iy=I({__name:"SelectProvider",props:{context:{}},setup(e){return ld(e.context),(t,n)=>L(t.$slots,"default")}}),ay={key:1},uy=I({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=Ue(n,t),r=Fn(),s=B();Ie(()=>{s.value=new DocumentFragment});const l=B(),i=N(()=>n.forceMount||r.open.value);return(a,d)=>{var u;return i.value?(w(),M(c(_n),{key:0,ref_key:"presenceRef",ref:l,present:!0},{default:v(()=>[b(ly,Ke(Je({...c(o),...a.$attrs})),{default:v(()=>[L(a.$slots,"default")]),_:3},16)]),_:3},512)):!((u=l.value)!=null&&u.present)&&s.value?(w(),z("div",ay,[(w(),M(ts,{to:s.value},[b(iy,{context:c(r)},{default:v(()=>[L(a.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):ae("",!0)}}}),[ad,cy]=Ne("SelectItem"),dy=I({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{disabled:n}=ot(t),o=Fn(),r=Hn(ho),{forwardRef:s,currentElement:l}=ie(),i=N(()=>{var m;return((m=o.modelValue)==null?void 0:m.value)===t.value}),a=B(!1),d=B(t.textValue??""),u=vt(void 0,"radix-vue-select-item-text");async function f(m){await Ae(),!(m!=null&&m.defaultPrevented)&&(n.value||(o.onValueChange(t.value),o.onOpenChange(!1)))}async function p(m){var y;await Ae(),!m.defaultPrevented&&(n.value?(y=r.onItemLeave)==null||y.call(r):m.currentTarget.focus({preventScroll:!0}))}async function h(m){var y;await Ae(),!m.defaultPrevented&&m.currentTarget===document.activeElement&&((y=r.onItemLeave)==null||y.call(r))}async function g(m){var y;await Ae(),!(m.defaultPrevented||((y=r.searchRef)==null?void 0:y.value)!==""&&m.key===" ")&&(Xv.includes(m.key)&&f(),m.key===" "&&m.preventDefault())}if(t.value==="")throw new Error("A 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 Ie(()=>{l.value&&r.itemRefCallback(l.value,t.value,t.disabled)}),cy({value:t.value,disabled:n,textId:u,isSelected:i,onItemTextChange:m=>{d.value=((d.value||(m==null?void 0:m.textContent))??"").trim()}}),(m,y)=>(w(),M(c(_e),{ref:c(s),role:"option","data-radix-vue-collection-item":"","aria-labelledby":c(u),"data-highlighted":a.value?"":void 0,"aria-selected":i.value,"data-state":i.value?"checked":"unchecked","aria-disabled":c(n)||void 0,"data-disabled":c(n)?"":void 0,tabindex:c(n)?void 0:-1,as:m.as,"as-child":m.asChild,onFocus:y[0]||(y[0]=_=>a.value=!0),onBlur:y[1]||(y[1]=_=>a.value=!1),onPointerup:f,onPointerdown:y[2]||(y[2]=_=>{_.currentTarget.focus({preventScroll:!0})}),onTouchend:y[3]||(y[3]=$t(()=>{},["prevent","stop"])),onPointermove:p,onPointerleave:h,onKeydown:g},{default:v(()=>[L(m.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"]))}}),fy=I({__name:"SelectItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=ad();return(o,r)=>c(n).isSelected.value?(w(),M(c(_e),te({key:0,"aria-hidden":"true"},t),{default:v(()=>[L(o.$slots,"default")]),_:3},16)):ae("",!0)}}),[M1,py]=Ne("SelectGroup"),hy=I({__name:"SelectGroup",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,n=vt(void 0,"radix-vue-select-group");return py({id:n}),(o,r)=>(w(),M(c(_e),te({role:"group"},t,{"aria-labelledby":c(n)}),{default:v(()=>[L(o.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),gy=I({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=Fn(),o=Hn(ho),r=Zv(),s=ad(),{forwardRef:l,currentElement:i}=ie(),a=N(()=>{var d;return we("option",{key:s.value,value:s.value,disabled:s.disabled.value,textContent:(d=i.value)==null?void 0:d.textContent})});return Ie(()=>{i.value&&(s.onItemTextChange(i.value),o.itemTextRefCallback(i.value,s.value,s.disabled.value),r.onNativeOptionAdd(a.value))}),os(()=>{r.onNativeOptionRemove(a.value)}),(d,u)=>(w(),z(Te,null,[b(c(_e),te({id:c(s).textId,ref:c(l)},{...t,...d.$attrs}),{default:v(()=>[L(d.$slots,"default")]),_:3},16,["id"]),c(s).isSelected.value&&c(n).valueElement.value&&!c(n).valueElementHasChildren.value?(w(),M(ts,{key:0,to:c(n).valueElement.value},[L(d.$slots,"default")],8,["to"])):ae("",!0)],64))}}),my=I({__name:"SelectViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{nonce:n}=ot(t),o=vv(n),r=Hn(ho),s=r.position==="item-aligned"?hi():void 0,{forwardRef:l,currentElement:i}=ie();Ie(()=>{r==null||r.onViewportChange(i.value)});const a=B(0);function d(u){const f=u.currentTarget,{shouldExpandOnScrollRef:p,contentWrapper:h}=s??{};if(p!=null&&p.value&&h!=null&&h.value){const g=Math.abs(a.value-f.scrollTop);if(g>0){const m=window.innerHeight-Ft*2,y=Number.parseFloat(h.value.style.minHeight),_=Number.parseFloat(h.value.style.height),A=Math.max(y,_);if(A0?R:0,h.value.style.justifyContent="flex-end")}}}a.value=f.scrollTop}return(u,f)=>(w(),z(Te,null,[b(c(_e),te({ref:c(l),"data-radix-select-viewport":"",role:"presentation"},{...u.$attrs,...t},{style:{position:"relative",flex:1,overflow:"auto"},onScroll:d}),{default:v(()=>[L(u.$slots,"default")]),_:3},16),b(c(_e),{as:"style",nonce:c(o)},{default:v(()=>[ee(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-select-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),ud=I({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(e,{emit:t}){const n=t,{injectCollection:o}=Qo(),r=o(),s=Hn(ho),l=B(null);function i(){l.value!==null&&(window.clearInterval(l.value),l.value=null)}We(()=>{const u=r.value.find(f=>f===document.activeElement);u==null||u.scrollIntoView({block:"nearest"})});function a(){l.value===null&&(l.value=window.setInterval(()=>{n("autoScroll")},50))}function d(){var u;(u=s.onItemLeave)==null||u.call(s),l.value===null&&(l.value=window.setInterval(()=>{n("autoScroll")},50))}return os(()=>i()),(u,f)=>{var p;return w(),M(c(_e),te({"aria-hidden":"true",style:{flexShrink:0}},(p=u.$parent)==null?void 0:p.$props,{onPointerdown:a,onPointermove:d,onPointerleave:f[0]||(f[0]=()=>{i()})}),{default:v(()=>[L(u.$slots,"default")]),_:3},16)}}}),vy=I({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{}},setup(e){const t=Hn(ho),n=t.position==="item-aligned"?hi():void 0,{forwardRef:o,currentElement:r}=ie(),s=B(!1);return We(l=>{var i,a;if((i=t.viewport)!=null&&i.value&&(a=t.isPositioned)!=null&&a.value){let d=function(){s.value=u.scrollTop>0};const u=t.viewport.value;d(),u.addEventListener("scroll",d),l(()=>u.removeEventListener("scroll",d))}}),ve(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(l,i)=>s.value?(w(),M(ud,{key:0,ref:c(o),onAutoScroll:i[0]||(i[0]=()=>{const{viewport:a,selectedItem:d}=c(t);a!=null&&a.value&&d!=null&&d.value&&(a.value.scrollTop=a.value.scrollTop-d.value.offsetHeight)})},{default:v(()=>[L(l.$slots,"default")]),_:3},512)):ae("",!0)}}),yy=I({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{}},setup(e){const t=Hn(ho),n=t.position==="item-aligned"?hi():void 0,{forwardRef:o,currentElement:r}=ie(),s=B(!1);return We(l=>{var i,a;if((i=t.viewport)!=null&&i.value&&(a=t.isPositioned)!=null&&a.value){let d=function(){const f=u.scrollHeight-u.clientHeight;s.value=Math.ceil(u.scrollTop)u.removeEventListener("scroll",d))}}),ve(r,()=>{r.value&&(n==null||n.onScrollButtonChange(r.value))}),(l,i)=>s.value?(w(),M(ud,{key:0,ref:c(o),onAutoScroll:i[0]||(i[0]=()=>{const{viewport:a,selectedItem:d}=c(t);a!=null&&a.value&&d!=null&&d.value&&(a.value.scrollTop=a.value.scrollTop+d.value.offsetHeight)})},{default:v(()=>[L(l.$slots,"default")]),_:3},512)):ae("",!0)}}),by=I({__name:"SelectValue",props:{placeholder:{default:""},asChild:{type:Boolean},as:{default:"span"}},setup(e){const{forwardRef:t,currentElement:n}=ie(),o=Fn(),r=Zu();return Hu(()=>{var s;const l=!!hs((s=r==null?void 0:r.default)==null?void 0:s.call(r)).length;o.onValueElementHasChildrenChange(l)}),Ie(()=>{o.valueElement=n}),(s,l)=>(w(),M(c(_e),{ref:c(t),as:s.as,"as-child":s.asChild,style:{pointerEvents:"none"}},{default:v(()=>{var i;return[c(id)((i=c(o).modelValue)==null?void 0:i.value)?(w(),z(Te,{key:0},[ee(pe(s.placeholder),1)],64)):L(s.$slots,"default",{key:1})]}),_:3},8,["as","as-child"]))}}),wy=I({__name:"SelectIcon",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return(t,n)=>(w(),M(c(_e),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:v(()=>[L(t.$slots,"default",{},()=>[ee("▼")])]),_:3},8,["as","as-child"]))}});function xy(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}xy();const[gi,_y]=Ne("TabsRoot"),Cy=I({__name:"TabsRoot",props:{defaultValue:{},orientation:{default:"horizontal"},dir:{},activationMode:{default:"automatic"},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,{orientation:r,dir:s}=ot(n),l=po(s);ie();const i=mt(n,"modelValue",o,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),a=B();return _y({modelValue:i,changeModelValue:d=>{i.value=d},orientation:r,dir:l,activationMode:n.activationMode,baseId:vt(void 0,"radix-vue-tabs"),tabsList:a}),(d,u)=>(w(),M(c(_e),{dir:c(l),"data-orientation":c(r),"as-child":d.asChild,as:d.as},{default:v(()=>[L(d.$slots,"default",{modelValue:c(i)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),Sy=I({__name:"TabsList",props:{loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},setup(e){const t=e,{loop:n}=ot(t),{forwardRef:o,currentElement:r}=ie(),s=gi();return s.tabsList=r,(l,i)=>(w(),M(c(nd),{"as-child":"",orientation:c(s).orientation.value,dir:c(s).dir.value,loop:c(n)},{default:v(()=>[b(c(_e),{ref:c(o),role:"tablist","as-child":l.asChild,as:l.as,"aria-orientation":c(s).orientation.value},{default:v(()=>[L(l.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}});function cd(e,t){return`${e}-trigger-${t}`}function dd(e,t){return`${e}-content-${t}`}const ky=I({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n}=ie(),o=gi(),r=N(()=>cd(o.baseId,t.value)),s=N(()=>dd(o.baseId,t.value)),l=N(()=>t.value===o.modelValue.value),i=B(l.value);return Ie(()=>{requestAnimationFrame(()=>{i.value=!1})}),(a,d)=>(w(),M(c(_n),{present:l.value,"force-mount":""},{default:v(({present:u})=>[b(c(_e),{id:s.value,ref:c(n),"as-child":a.asChild,as:a.as,role:"tabpanel","data-state":l.value?"active":"inactive","data-orientation":c(o).orientation.value,"aria-labelledby":r.value,hidden:!u.value,tabindex:"0",style:qt({animationDuration:i.value?"0s":void 0})},{default:v(()=>[a.forceMount||l.value?L(a.$slots,"default",{key:0}):ae("",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),Ey=I({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,{forwardRef:n}=ie(),o=gi(),r=N(()=>cd(o.baseId,t.value)),s=N(()=>dd(o.baseId,t.value)),l=N(()=>t.value===o.modelValue.value);return(i,a)=>(w(),M(c(Mv),{"as-child":"",focusable:!i.disabled,active:l.value},{default:v(()=>[b(c(_e),{id:r.value,ref:c(n),role:"tab",type:i.as==="button"?"button":void 0,as:i.as,"as-child":i.asChild,"aria-selected":l.value?"true":"false","aria-controls":s.value,"data-state":l.value?"active":"inactive",disabled:i.disabled,"data-disabled":i.disabled?"":void 0,"data-orientation":c(o).orientation.value,onMousedown:a[0]||(a[0]=$t(d=>{!i.disabled&&d.ctrlKey===!1?c(o).changeModelValue(i.value):d.preventDefault()},["left"])),onKeydown:a[1]||(a[1]=cs(d=>c(o).changeModelValue(i.value),["enter","space"])),onFocus:a[2]||(a[2]=()=>{const d=c(o).activationMode!=="manual";!l.value&&!i.disabled&&d&&c(o).changeModelValue(i.value)})},{default:v(()=>[L(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"]))}}),fd="tooltip.open",[mi,Oy]=Ne("TooltipProvider"),Ty=I({__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:o,disableHoverableContent:r,disableClosingTrigger:s,ignoreNonKeyboardFocus:l,disabled:i}=ot(t);ie();const a=B(!0),d=B(!1),{start:u,stop:f}=$c(()=>{a.value=!0},o,{immediate:!1});return Oy({isOpenDelayed:a,delayDuration:n,onOpen(){f(),a.value=!1},onClose(){u()},isPointerInTransitRef:d,disableHoverableContent:r,disableClosingTrigger:s,disabled:i,ignoreNonKeyboardFocus:l}),(p,h)=>L(p.$slots,"default")}}),[ws,Ay]=Ne("TooltipRoot"),$y=I({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,o=t;ie();const r=mi(),s=N(()=>n.disableHoverableContent??r.disableHoverableContent.value),l=N(()=>n.disableClosingTrigger??r.disableClosingTrigger.value),i=N(()=>n.disabled??r.disabled.value),a=N(()=>n.delayDuration??r.delayDuration.value),d=N(()=>n.ignoreNonKeyboardFocus??r.ignoreNonKeyboardFocus.value),u=mt(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});ve(u,k=>{r.onClose&&(k?(r.onOpen(),document.dispatchEvent(new CustomEvent(fd))):r.onClose())});const f=B(!1),p=B(),h=N(()=>u.value?f.value?"delayed-open":"instant-open":"closed"),{start:g,stop:m}=$c(()=>{f.value=!0,u.value=!0},a,{immediate:!1});function y(){m(),f.value=!1,u.value=!0}function _(){m(),u.value=!1}function A(){g()}return Ay({contentId:"",open:u,stateAttribute:h,trigger:p,onTriggerChange(k){p.value=k},onTriggerEnter(){r.isOpenDelayed.value?A():y()},onTriggerLeave(){s.value?_():m()},onOpen:y,onClose:_,disableHoverableContent:s,disableClosingTrigger:l,disabled:i,ignoreNonKeyboardFocus:d}),(k,O)=>(w(),M(c(ui),null,{default:v(()=>[L(k.$slots,"default",{open:c(u)})]),_:3}))}}),Py=I({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=ws(),o=mi();n.contentId||(n.contentId=vt(void 0,"radix-vue-tooltip-content"));const{forwardRef:r,currentElement:s}=ie(),l=B(!1),i=B(!1),a=N(()=>n.disabled.value?{}:{click:m,focus:h,pointermove:f,pointerleave:p,pointerdown:u,blur:g});Ie(()=>{n.onTriggerChange(s.value)});function d(){setTimeout(()=>{l.value=!1},1)}function u(){l.value=!0,document.addEventListener("pointerup",d,{once:!0})}function f(y){y.pointerType!=="touch"&&!i.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),i.value=!0)}function p(){n.onTriggerLeave(),i.value=!1}function h(y){var _,A;l.value||n.ignoreNonKeyboardFocus.value&&!((A=(_=y.target).matches)!=null&&A.call(_,":focus-visible"))||n.onOpen()}function g(){n.onClose()}function m(){n.disableClosingTrigger.value||n.onClose()}return(y,_)=>(w(),M(c(ci),{"as-child":""},{default:v(()=>[b(c(_e),te({ref:c(r),"aria-describedby":c(n).open.value?c(n).contentId:void 0,"data-state":c(n).stateAttribute.value,as:y.as,"as-child":t.asChild,"data-grace-area-trigger":""},fp(a.value)),{default:v(()=>[L(y.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),pd=I({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=ws(),{forwardRef:s}=ie(),l=Zu(),i=N(()=>{var u;return(u=l.default)==null?void 0:u.call(l)}),a=N(()=>{var u;if(n.ariaLabel)return n.ariaLabel;let f="";function p(h){typeof h.children=="string"&&h.type!==It?f+=h.children:Array.isArray(h.children)&&h.children.forEach(g=>p(g))}return(u=i.value)==null||u.forEach(h=>p(h)),f}),d=N(()=>{const{ariaLabel:u,...f}=n;return f});return Ie(()=>{co(window,"scroll",u=>{const f=u.target;f!=null&&f.contains(r.trigger.value)&&r.onClose()}),co(window,fd,r.onClose)}),(u,f)=>(w(),M(c(ys),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:f[0]||(f[0]=p=>o("escapeKeyDown",p)),onPointerDownOutside:f[1]||(f[1]=p=>{var h;c(r).disableClosingTrigger.value&&(h=c(r).trigger.value)!=null&&h.contains(p.target)&&p.preventDefault(),o("pointerDownOutside",p)}),onFocusOutside:f[2]||(f[2]=$t(()=>{},["prevent"])),onDismiss:f[3]||(f[3]=p=>c(r).onClose())},{default:v(()=>[b(c(di),te({ref:c(s),"data-state":c(r).stateAttribute.value},{...u.$attrs,...d.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:v(()=>[L(u.$slots,"default"),b(c(Qc),{id:c(r).contentId,role:"tooltip"},{default:v(()=>[ee(pe(a.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),My=I({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(e){const t=ht(e),{forwardRef:n,currentElement:o}=ie(),{trigger:r,onClose:s}=ws(),l=mi(),{isPointerInTransit:i,onPointerExit:a}=sm(r,o);return l.isPointerInTransitRef=i,a(()=>{s()}),(d,u)=>(w(),M(pd,te({ref:c(n)},c(t)),{default:v(()=>[L(d.$slots,"default")]),_:3},16))}}),Iy=I({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=ws(),s=Ue(n,o),{forwardRef:l}=ie();return(i,a)=>(w(),M(c(_n),{present:i.forceMount||c(r).open.value},{default:v(()=>[(w(),M(Vn(c(r).disableHoverableContent.value?pd:My),te({ref:c(l)},c(s)),{default:v(()=>[L(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),By=I({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),M(c(vs),Ke(Je(t)),{default:v(()=>[L(n.$slots,"default")]),_:3},16))}}),In=I({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),M(c($y),Ke(Je(c(r))),{default:v(()=>[L(s.$slots,"default")]),_:3},16))}});function hd(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t{const t=Ly(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const i=l.split(vi);return i[0]===""&&i.length!==1&&i.shift(),gd(i,t)||jy(l)},getConflictingClassGroupIds:(l,i)=>{const a=n[l]||[];return i&&o[l]?[...a,...o[l]]:a}}},gd=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?gd(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const s=e.join(vi);return(l=t.validators.find(({validator:i})=>i(s)))==null?void 0:l.classGroupId},Oa=/^\[(.+)\]$/,jy=e=>{if(Oa.test(e)){const t=Oa.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ly=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return Ny(Object.entries(e.classGroups),n).forEach(([s,l])=>{ml(l,o,s,t)}),o},ml=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const s=r===""?t:Ta(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(Vy(r)){ml(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,l])=>{ml(l,Ta(t,s),n,o)})})},Ta=(e,t)=>{let n=e;return t.split(vi).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},Vy=e=>e.isThemeGetter,Ny=(e,t)=>t?e.map(([n,o])=>{const r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[n,r]}):e,Fy=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,o=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){n.has(s)?n.set(s,l):r(s,l)}}},md="!",Hy=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],s=t.length,l=i=>{const a=[];let d=0,u=0,f;for(let y=0;yu?f-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}};return n?i=>n({className:i,parseClassName:l}):l},zy=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},Ky=e=>({cache:Fy(e.cacheSize),parseClassName:Hy(e),...Dy(e)}),Wy=/\s+/,Uy=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(Wy);let i="";for(let a=l.length-1;a>=0;a-=1){const d=l[a],{modifiers:u,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}=n(d);let g=!!h,m=o(g?p.substring(0,h):p);if(!m){if(!g){i=d+(i.length>0?" "+i:i);continue}if(m=o(p),!m){i=d+(i.length>0?" "+i:i);continue}g=!1}const y=zy(u).join(":"),_=f?y+md:y,A=_+m;if(s.includes(A))continue;s.push(A);const k=r(m,g);for(let O=0;O0?" "+i:i)}return i};function qy(){let e=0,t,n,o="";for(;e{if(typeof e=="string")return e;let t,n="";for(let o=0;of(u),e());return n=Ky(d),o=n.cache.get,r=n.cache.set,s=i,i(a)}function i(a){const d=o(a);if(d)return d;const u=Uy(a,n);return r(a,u),u}return function(){return s(qy.apply(null,arguments))}}const De=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},yd=/^\[(?:([a-z-]+):)?(.+)\]$/i,Zy=/^\d+\/\d+$/,Jy=new Set(["px","full","screen"]),Yy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qy=/\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$/,Xy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,e0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,t0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vt=e=>ao(e)||Jy.has(e)||Zy.test(e),Qt=e=>go(e,"length",u0),ao=e=>!!e&&!Number.isNaN(Number(e)),Hs=e=>go(e,"number",ao),wo=e=>!!e&&Number.isInteger(Number(e)),n0=e=>e.endsWith("%")&&ao(e.slice(0,-1)),me=e=>yd.test(e),Xt=e=>Yy.test(e),o0=new Set(["length","size","percentage"]),r0=e=>go(e,o0,bd),s0=e=>go(e,"position",bd),l0=new Set(["image","url"]),i0=e=>go(e,l0,d0),a0=e=>go(e,"",c0),xo=()=>!0,go=(e,t,n)=>{const o=yd.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},u0=e=>Qy.test(e)&&!Xy.test(e),bd=()=>!1,c0=e=>e0.test(e),d0=e=>t0.test(e),f0=()=>{const e=De("colors"),t=De("spacing"),n=De("blur"),o=De("brightness"),r=De("borderColor"),s=De("borderRadius"),l=De("borderSpacing"),i=De("borderWidth"),a=De("contrast"),d=De("grayscale"),u=De("hueRotate"),f=De("invert"),p=De("gap"),h=De("gradientColorStops"),g=De("gradientColorStopPositions"),m=De("inset"),y=De("margin"),_=De("opacity"),A=De("padding"),k=De("saturate"),O=De("scale"),R=De("sepia"),T=De("skew"),S=De("space"),$=De("translate"),D=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",me,t],V=()=>[me,t],xe=()=>["",Vt,Qt],ye=()=>["auto",ao,me],Fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],be=()=>["solid","dashed","dotted","double","none"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],Be=()=>["","0",me],st=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[ao,me];return{cacheSize:500,separator:":",theme:{colors:[xo],spacing:[Vt,Qt],blur:["none","",Xt,me],brightness:Y(),borderColor:[e],borderRadius:["none","","full",Xt,me],borderSpacing:V(),borderWidth:xe(),contrast:Y(),grayscale:Be(),hueRotate:Y(),invert:Be(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[n0,Qt],inset:F(),margin:F(),opacity:Y(),padding:V(),saturate:Y(),scale:Y(),sepia:Be(),skew:Y(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[Xt]}],"break-after":[{"break-after":st()}],"break-before":[{"break-before":st()}],"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"],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:[...Fe(),me]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wo,me]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:Be()}],shrink:[{shrink:Be()}],order:[{order:["first","last","none",wo,me]}],"grid-cols":[{"grid-cols":[xo]}],"col-start-end":[{col:["auto",{span:["full",wo,me]},me]}],"col-start":[{"col-start":ye()}],"col-end":[{"col-end":ye()}],"grid-rows":[{"grid-rows":[xo]}],"row-start-end":[{row:["auto",{span:[wo,me]},me]}],"row-start":[{"row-start":ye()}],"row-end":[{"row-end":ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,t]}],"min-w":[{"min-w":[me,t,"min","max","fit"]}],"max-w":[{"max-w":[me,t,"none","full","min","max","fit","prose",{screen:[Xt]},Xt]}],h:[{h:[me,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xt,Qt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Hs]}],"font-family":[{font:[xo]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",me]}],"line-clamp":[{"line-clamp":["none",ao,Hs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Vt,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Vt,Qt]}],"underline-offset":[{"underline-offset":["auto",Vt,me]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Fe(),s0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",r0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},i0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...be(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:be()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...be()]}],"outline-offset":[{"outline-offset":[Vt,me]}],"outline-w":[{outline:[Vt,Qt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:xe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Vt,Qt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xt,a0]}],"shadow-color":[{shadow:[xo]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...fe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":fe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",Xt,me]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[k]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[wo,me]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",me]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",me]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Vt,Qt,Hs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}},p0=Gy(f0);function yi(e){return Gr()?(Il(e),!0):!1}function mo(e){return typeof e=="function"?e():c(e)}const bi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const h0=e=>typeof e<"u",g0=Object.prototype.toString,m0=e=>g0.call(e)==="[object Object]",wd=()=>{};function v0(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const xd=e=>e();function y0(e=xd){const t=B(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:Ln(t),pause:n,resume:o,eventFilter:r}}function b0(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const o=t;t=void 0,o&&await o},n}function w0(e){return yt()}function x0(...e){if(e.length!==1)return $u(...e);const t=e[0];return typeof t=="function"?Ln(Au(()=>({get:t,set:wd}))):B(t)}function _0(e,t,n={}){const{eventFilter:o=xd,...r}=n;return ve(e,v0(o,t),r)}function C0(e,t,n={}){const{eventFilter:o,...r}=n,{eventFilter:s,pause:l,resume:i,isActive:a}=y0(o);return{stop:_0(e,t,{...r,eventFilter:s}),pause:l,resume:i,isActive:a}}function _d(e,t=!0,n){w0()?Ie(e,n):t?e():Ae(e)}function S0(e,t,n={}){const{immediate:o=!0}=n,r=B(!1);let s=null;function l(){s&&(clearTimeout(s),s=null)}function i(){r.value=!1,l()}function a(...d){l(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=null,e(...d)},mo(t))}return o&&(r.value=!0,bi&&a()),yi(i),{isPending:Ln(r),start:a,stop:i}}const Fo=bi?window:void 0,Cd=bi?window.navigator:void 0;function Sd(e){var t;const n=mo(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Lr(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Fo):[t,n,o,r]=e,!t)return wd;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],l=()=>{s.forEach(u=>u()),s.length=0},i=(u,f,p,h)=>(u.addEventListener(f,p,h),()=>u.removeEventListener(f,p,h)),a=ve(()=>[Sd(t),mo(r)],([u,f])=>{if(l(),!u)return;const p=m0(f)?{...f}:f;s.push(...n.flatMap(h=>o.map(g=>i(u,h,g,p))))},{immediate:!0,flush:"post"}),d=()=>{a(),l()};return yi(d),d}function k0(){const e=B(!1),t=yt();return t&&Ie(()=>{e.value=!0},t),e}function wi(e){const t=k0();return N(()=>(t.value,!!e()))}function E0(e,t={}){const{window:n=Fo}=t,o=wi(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const s=B(!1),l=d=>{s.value=d.matches},i=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",l):r.removeListener(l))},a=We(()=>{o.value&&(i(),r=n.matchMedia(mo(e)),"addEventListener"in r?r.addEventListener("change",l):r.addListener(l),s.value=r.matches)});return yi(()=>{a(),i(),r=void 0}),s}function Aa(e,t={}){const{controls:n=!1,navigator:o=Cd}=t,r=wi(()=>o&&"permissions"in o),s=Ro(),l=typeof e=="string"?{name:e}:e,i=Ro(),a=()=>{var u,f;i.value=(f=(u=s.value)==null?void 0:u.state)!=null?f:"prompt"};Lr(s,"change",a);const d=b0(async()=>{if(r.value){if(!s.value)try{s.value=await o.permissions.query(l)}catch{s.value=void 0}finally{a()}if(n)return ke(s.value)}});return d(),n?{state:i,isSupported:r,query:d}:i}function O0(e={}){const{navigator:t=Cd,read:n=!1,source:o,copiedDuring:r=1500,legacy:s=!1}=e,l=wi(()=>t&&"clipboard"in t),i=Aa("clipboard-read"),a=Aa("clipboard-write"),d=N(()=>l.value||s),u=B(""),f=B(!1),p=S0(()=>f.value=!1,r);function h(){l.value&&_(i.value)?t.clipboard.readText().then(A=>{u.value=A}):u.value=y()}d.value&&n&&Lr(["copy","cut"],h);async function g(A=mo(o)){d.value&&A!=null&&(l.value&&_(a.value)?await t.clipboard.writeText(A):m(A),u.value=A,f.value=!0,p.start())}function m(A){const k=document.createElement("textarea");k.value=A??"",k.style.position="absolute",k.style.opacity="0",document.body.appendChild(k),k.select(),document.execCommand("copy"),k.remove()}function y(){var A,k,O;return(O=(k=(A=document==null?void 0:document.getSelection)==null?void 0:A.call(document))==null?void 0:k.toString())!=null?O:""}function _(A){return A==="granted"||A==="prompt"}return{isSupported:d,text:u,copied:f,copy:g}}function T0(e){return JSON.parse(JSON.stringify(e))}const dr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fr="__vueuse_ssr_handlers__",A0=$0();function $0(){return fr in dr||(dr[fr]=dr[fr]||{}),dr[fr]}function kd(e,t){return A0[e]||t}function P0(e){return E0("(prefers-color-scheme: dark)",e)}function M0(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const I0={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},$a="vueuse-storage";function B0(e,t,n,o={}){var r;const{flush:s="pre",deep:l=!0,listenToStorageChanges:i=!0,writeDefaults:a=!0,mergeDefaults:d=!1,shallow:u,window:f=Fo,eventFilter:p,onError:h=C=>{console.error(C)},initOnMounted:g}=o,m=(u?Ro:B)(typeof t=="function"?t():t);if(!n)try{n=kd("getDefaultStorage",()=>{var C;return(C=Fo)==null?void 0:C.localStorage})()}catch(C){h(C)}if(!n)return m;const y=mo(t),_=M0(y),A=(r=o.serializer)!=null?r:I0[_],{pause:k,resume:O}=C0(m,()=>T(m.value),{flush:s,deep:l,eventFilter:p});f&&i&&_d(()=>{n instanceof Storage?Lr(f,"storage",$):Lr(f,$a,D),g&&$()}),g||$();function R(C,F){if(f){const V={key:e,oldValue:C,newValue:F,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",V):new CustomEvent($a,{detail:V}))}}function T(C){try{const F=n.getItem(e);if(C==null)R(F,null),n.removeItem(e);else{const V=A.write(C);F!==V&&(n.setItem(e,V),R(F,V))}}catch(F){h(F)}}function S(C){const F=C?C.newValue:n.getItem(e);if(F==null)return a&&y!=null&&n.setItem(e,A.write(y)),y;if(!C&&d){const V=A.read(F);return typeof d=="function"?d(V,y):_==="object"&&!Array.isArray(V)?{...y,...V}:V}else return typeof F!="string"?F:A.read(F)}function $(C){if(!(C&&C.storageArea!==n)){if(C&&C.key==null){m.value=y;return}if(!(C&&C.key!==e)){k();try{(C==null?void 0:C.newValue)!==A.write(m.value)&&(m.value=S(C))}catch(F){h(F)}finally{C?Ae(O):O()}}}}function D(C){$(C.detail)}return m}const R0="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function xs(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=Fo,storage:s,storageKey:l="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:a,emitAuto:d,disableTransition:u=!0}=e,f={auto:"",light:"light",dark:"dark",...e.modes||{}},p=P0({window:r}),h=N(()=>p.value?"dark":"light"),g=a||(l==null?x0(o):B0(l,o,s,{window:r,listenToStorageChanges:i})),m=N(()=>g.value==="auto"?h.value:g.value),y=kd("updateHTMLAttrs",(O,R,T)=>{const S=typeof O=="string"?r==null?void 0:r.document.querySelector(O):Sd(O);if(!S)return;const $=new Set,D=new Set;let C=null;if(R==="class"){const V=T.split(/\s/g);Object.values(f).flatMap(xe=>(xe||"").split(/\s/g)).filter(Boolean).forEach(xe=>{V.includes(xe)?$.add(xe):D.add(xe)})}else C={key:R,value:T};if($.size===0&&D.size===0&&C===null)return;let F;u&&(F=r.document.createElement("style"),F.appendChild(document.createTextNode(R0)),r.document.head.appendChild(F));for(const V of $)S.classList.add(V);for(const V of D)S.classList.remove(V);C&&S.setAttribute(C.key,C.value),u&&(r.getComputedStyle(F).opacity,document.head.removeChild(F))});function _(O){var R;y(t,n,(R=f[O])!=null?R:O)}function A(O){e.onChanged?e.onChanged(O,_):_(O)}ve(m,A,{flush:"post",immediate:!0}),_d(()=>A(m.value));const k=N({get(){return d?g.value:m.value},set(O){g.value=O}});try{return Object.assign(k,{store:g,system:h,state:m})}catch{return k}}function _s(e,t,n,o={}){var r,s,l;const{clone:i=!1,passive:a=!1,eventName:d,deep:u=!1,defaultValue:f,shouldEmit:p}=o,h=yt(),g=n||(h==null?void 0:h.emit)||((r=h==null?void 0:h.$emit)==null?void 0:r.bind(h))||((l=(s=h==null?void 0:h.proxy)==null?void 0:s.$emit)==null?void 0:l.bind(h==null?void 0:h.proxy));let m=d;m=m||`update:${t.toString()}`;const y=k=>i?typeof i=="function"?i(k):T0(k):k,_=()=>h0(e[t])?y(e[t]):f,A=k=>{p?p(k)&&g(m,k):g(m,k)};if(a){const k=_(),O=B(k);let R=!1;return ve(()=>e[t],T=>{R||(R=!0,O.value=y(T),Ae(()=>R=!1))}),ve(O,T=>{!R&&(T!==e[t]||u)&&A(T)},{deep:u}),O}else return N({get(){return _()},set(k){A(k)}})}function Ce(...e){return p0(Ry(e))}function vl(e){return e?Object.keys(e).length===0:!0}function zt(e){const{copy:t}=O0({source:e});t()}function Jn(e,t){let n="";t?n=`$${t} = [ `:n=`[ `;for(let o in e){let r=e[o],s=o;r===null?(s=o,r="null"):(typeof r.name<"u"&&t!==null&&(s=r.name),typeof r.value<"u"&&(r=r.value)),isNaN(s)&&(s=`'${s}'`),typeof r=="object"?(r=Jn(r,null),n+=` ${s} => ${r}, `):(isNaN(r)&&(r=`'${r}'`),n+=` ${s} => ${r}, -`)}return t?n+="];":n+=" ]",n}function Vr(e){if(!e||!e.headers||e.headers["Content-Type"]===null)return!1;const t=e.headers["Content-Type"];let n=t?/application\/json/g.test(t):!1;try{return e.body&&JSON.parse(e.body),n}catch{return!1}}function D0(e){if(!e||!e.headers||e.headers["Content-Type"]===null)return!1;const t=e.headers["Content-Type"];return t?/text\/html/g.test(t):!1}function j0(e){window.open(e,"_blank")}function L0(){return navigator.userAgent.indexOf("Mac OS X")!==-1}function V0(e){return Object.keys(e).some(t=>typeof e[t]=="object")}const Bn=M({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:l,...i}=n;return i}),s=Ue(r,o);return(l,i)=>(w(),P(c(By),null,{default:v(()=>[b(c(Iy),te({...c(s),...l.$attrs},{class:c(Ce)("z-50 overflow-hidden rounded-md border dark:border-[#606062] bg-gray-800 dark:bg-gray-700 px-3 py-1.5 text-xs text-white shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:v(()=>[j(l.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),Rn=M({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(w(),P(c(Py),Ke(Je(t)),{default:v(()=>[j(n.$slots,"default")]),_:3},16))}}),Dn=M({__name:"TooltipProvider",props:{delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),P(c(Ty),Ke(Je(t)),{default:v(()=>[j(n.$slots,"default")]),_:3},16))}}),Ed=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},N0={},F0={class:"text-xs text-gray-300 ml-2 mt-px"};function H0(e,t){return w(),z("span",F0,[j(e.$slots,"default")])}const Nr=Ed(N0,[["render",H0]]),z0={class:"sr-only"},Od=M({__name:"HeaderSingleIconButton",props:{icon:{type:[Function,Object]},tooltipText:{},shortcut:{}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,r)=>(w(),P(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),null,{default:v(()=>[$("button",{class:"p-2.5 border border-gray-200 dark:border-[#606062] rounded-sm shadow-sm bg-white dark:bg-white/10 dark:hover:bg-white/15 hover:bg-gray-50 text-gray-400 dark:text-gray-300 hover:text-gray-800 duration-150 focus:outline-0",onClick:r[0]||(r[0]=s=>n("click")),type:"button"},[(w(),P(Vn(o.icon),{class:"size-5"})),$("span",z0,be(o.tooltipText),1)])]),_:1}),b(c(Bn),{class:"font-medium"},{default:v(()=>[$("p",null,[ee(be(o.tooltipText)+" ",1),o.shortcut?(w(),P(Nr,{key:0},{default:v(()=>[ee(be(o.shortcut),1)]),_:1})):ie("",!0)])]),_:1})]),_:1})]),_:1}))}}),K0=M({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),P(c(Fv),Ke(Je(c(r))),{default:v(()=>[j(s.$slots,"default")]),_:3},16))}}),W0=M({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:l,...i}=n;return i}),s=Ue(r,o);return(l,i)=>(w(),P(c(zv),null,{default:v(()=>[b(c(Kv),te(c(s),{class:c(Ce)("z-50 min-w-32 overflow-hidden rounded-md border dark:border-gray-700 bg-white dark:bg-gray-900 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=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:v(()=>[j(l.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),zs=M({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),P(c(Wv),te(c(o),{class:c(Ce)("relative flex cursor-default select-none items-center rounded-sm gap-2 px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-50 dark:focus:bg-white/10 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",r.inset&&"pl-8",t.class)}),{default:v(()=>[j(r.$slots,"default")]),_:3},16,["class"]))}}),U0=M({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const n=ht(e);return(o,r)=>(w(),P(c(Hv),te({class:"outline-none"},c(n)),{default:v(()=>[j(o.$slots,"default")]),_:3},16))}}),q0=M({__name:"Appearance",setup(e){const{system:t,store:n}=xs(),o=N(()=>n.value==="auto"?t.value:n.value),r=N(()=>o.value==="dark"?da:fa),s=l=>{n.value=l};return(l,i)=>(w(),P(c(K0),null,{default:v(()=>[b(c(U0),null,{default:v(()=>[b(Od,{icon:r.value,"tooltip-text":"Appearance"},null,8,["icon"])]),_:1}),b(c(W0),{align:"end",class:"w-[140px]"},{default:v(()=>[b(c(zs),{onClick:i[0]||(i[0]=a=>s("light")),class:"group"},{default:v(()=>[b(c(fa),{class:"size-5 text-gray-400 group-hover:text-gray-800 dark:group-hover:text-gray-300"}),i[3]||(i[3]=ee(" Light "))]),_:1}),b(c(zs),{onClick:i[1]||(i[1]=a=>s("dark")),class:"group"},{default:v(()=>[b(c(da),{class:"size-5 text-gray-400 group-hover:text-gray-800 dark:group-hover:text-gray-300"}),i[4]||(i[4]=ee(" Dark "))]),_:1}),b(c(zs),{onClick:i[2]||(i[2]=a=>s("auto")),class:"group"},{default:v(()=>[b(c(Lh),{class:"size-5 text-gray-400 group-hover:text-gray-800 dark:group-hover:text-gray-300"}),i[5]||(i[5]=ee(" System "))]),_:1})]),_:1})]),_:1}))}}),G0={class:"w-full max-w-[380px] lg:max-w-[580px] flex items-stretch border border-gray-200 dark:border-[#606062] rounded-xl overflow-hidden duration-150"},Z0=["href"],J0={class:"font-medium"},Y0=M({__name:"UrlBar",props:{subdomain:String},emits:["copy"],setup(e,{emit:t}){const n=I(sl),o=t,r=()=>{n.value=Zo,o("copy"),setTimeout(()=>{n.value=sl},1e3)};return(s,l)=>(w(),z("div",G0,[b(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),{class:"w-full"},{default:v(()=>[$("a",{href:e.subdomain,class:"flex flex-grow space-x-2 text-sm bg-gray-50 dark:bg-white/10 dark:hover:bg-white/15 hover:bg-gray-100 duration-150 px-4 py-2.5 border-r border-gray-200 dark:border-[#606062] group"},[b(c(Fh),{class:"size-5 text-gray-400 dark:text-white/50 group-hover:text-gray-800 dark:group-hover:text-white duration-150"}),$("span",J0,be(e.subdomain),1)],8,Z0)]),_:1}),b(c(Bn),null,{default:v(()=>[l[1]||(l[1]=ee(" Open URL ")),b(Nr,null,{default:v(()=>l[0]||(l[0]=[ee("O")])),_:1})]),_:1})]),_:1})]),_:1}),b(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),{onClick:r,class:"bg-gray-50 dark:bg-white/10 dark:hover:bg-white/15 hover:bg-gray-100 duration-150 px-3 py-2.5 group duration-150"},{default:v(()=>[(w(),P(Vn(n.value),{class:"size-4 text-gray-400 dark:text-white/50 group-hover:text-gray-800 dark:group-hover:text-white duration-150"}))]),_:1}),b(c(Bn),null,{default:v(()=>[l[3]||(l[3]=ee(" Copy link ")),b(Nr,null,{default:v(()=>l[2]||(l[2]=[ee("L")])),_:1})]),_:1})]),_:1})]),_:1})]))}}),Q0={class:"py-4 px-4 md:px-6 flex flex-col md:flex-row md:items-center justify-between space-y-3 md:space-y-0 dark:bg-gray-900"},X0={class:"flex space-x-4 lg:w-3/5 justify-between"},eb={class:"flex items-center"},tb=M({__name:"Header",props:{subdomains:{}},emits:["search-updated","show-qr-code"],setup(e,{expose:t,emit:n}){const o=e,r=n,s=I(""),l=I("");me(()=>s.value,()=>{r("search-updated",s.value)}),Ie(()=>{o.subdomains.length>0&&(l.value=o.subdomains[0])});const i=()=>{j0(l.value)},a=()=>{zt(l.value)};return t({copySubdomainToClipboard:a,openSubdomainInNewTab:i}),(d,u)=>(w(),z("div",null,[$("div",Q0,[u[2]||(u[2]=Wp('expose.dev

Expose

by Beyond Code

',1)),$("div",X0,[b(Y0,{subdomain:l.value,onCopy:a},null,8,["subdomain"]),$("div",eb,[b(Od,{onClick:u[0]||(u[0]=f=>r("show-qr-code")),icon:c(Wh),shortcut:"Q","tooltip-text":"Show QR Code"},null,8,["icon"]),u[1]||(u[1]=$("div",{class:"w-px h-6 bg-gray-200 dark:bg-white/20 mx-2 md:mx-4"},null,-1)),b(q0)])])]),u[3]||(u[3]=$("div",{class:"border-b border-gray-200 dark:border-gray-700"},null,-1))]))}}),Td=M({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),P(c(jm),Ke(Je(c(r))),{default:v(()=>[j(s.$slots,"default")]),_:3},16))}}),nb=M({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),P(c(ov),te(c(o),{class:c(Ce)("text-lg font-semibold leading-none tracking-tight",t.class)}),{default:v(()=>[j(r.$slots,"default")]),_:3},16,["class"]))}}),ob={class:"bg-white rounded-2xl py-8 dark:bg-gray-900"},rb=M({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:l,...i}=n;return i}),s=Ue(r,o);return(l,i)=>(w(),P(c(Nc),null,{default:v(()=>[b(c(qc),{class:"fixed inset-0 z-50 bg-black/20 dark:bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),b(c(Uc),te(c(s),{class:c(Ce)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border border-black/5 bg-[#F5F5F580] rounded-3xl p-2 backdrop-blur shadow-xl duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n.class)}),{default:v(()=>[$("div",ob,[j(l.$slots,"default")]),b(c(Gc),{class:"absolute right-6 top-6 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},{default:v(()=>[b(c(bc),{class:"size-4 text-gray-400"}),i[0]||(i[0]=$("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),sb={class:"relative mx-auto qr-wrapper rounded-2xl overflow-hidden border-[20px] border-white dark:border-gray-900 box-border"},lb=["src"],ib=["src"],Ad=M({__name:"QrCode",props:{subdomains:{}},setup(e){const{store:t,system:n}=xs(),o=I(t.value);return Ie(()=>{t.value==="auto"&&(o.value=n.value)}),me(()=>t.value,()=>{t.value==="auto"&&(o.value=n.value),o.value=t.value}),(r,s)=>(w(),z("div",null,[$("div",sb,[o.value==="light"?(w(),z("img",{key:0,src:"https://image-charts.com/chart?chs=170x170&cht=qr&chl="+encodeURIComponent(r.subdomains[0]??"")+"&choe=UTF-8&chf=bg,s,FFFFFF00",alt:"QR Code",class:"mix-blend-lighten"},null,8,lb)):ie("",!0),o.value==="dark"?(w(),z("img",{key:1,src:"https://image-charts.com/chart?chs=170x170&cht=qr&chl="+encodeURIComponent(r.subdomains[0]??"")+"&choe=UTF-8&chf=bg,s,FFFFFF00&icqrb=18181B&icqrf=ffffff",alt:"QR Code",class:"mix-blend-darken"},null,8,ib)):ie("",!0)])]))}}),ab={class:"flex flex-col items-center"},ub=M({__name:"QrCodeModal",props:{subdomains:{}},setup(e,{expose:t}){const n=I(!1);return t({show:n}),(o,r)=>(w(),P(c(Td),{open:n.value,"onUpdate:open":r[0]||(r[0]=s=>n.value=s)},{default:v(()=>[b(c(rb),null,{default:v(()=>[$("div",ab,[b(Ad,{subdomains:o.subdomains},null,8,["subdomains"]),r[1]||(r[1]=$("p",{class:"text-gray-500 text-sm mb-8 dark:text-gray-400"}," Scan this QR code to open the site on a mobile device. ",-1))])]),_:1})]),_:1},8,["open"]))}}),cb=M({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),P(c(Yv),Ke(Je(c(r))),{default:v(()=>[j(s.$slots,"default")]),_:3},16))}}),db=M({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:l,...i}=n;return i}),s=Ue(r,o);return(l,i)=>(w(),P(c(ty),null,{default:v(()=>[b(c(uy),te({...c(s),...l.$attrs},{class:c(Ce)("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground dark:bg-[#303032] dark:border-[#606062] dark:text-gray-300 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=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",l.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:v(()=>[b(c(mb)),b(c(my),{class:ae(c(Ce)("p-1",l.position==="popper"&&"h-[--radix-select-trigger-height] w-full min-w-[--radix-select-trigger-width]"))},{default:v(()=>[j(l.$slots,"default")]),_:3},8,["class"]),b(c(gb))]),_:3},16,["class"])]),_:3}))}}),fb=M({__name:"SelectGroup",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:o,...r}=t;return r});return(o,r)=>(w(),P(c(hy),te({class:c(Ce)("p-1 w-full",t.class)},n.value),{default:v(()=>[j(o.$slots,"default")]),_:3},16,["class"]))}}),pb={class:"absolute left-2 flex h-2.5 w-2.5 items-center justify-center"},hb=M({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),P(c(dy),te(c(o),{class:c(Ce)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-gray-50 dark:focus:bg-white/10 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t.class)}),{default:v(()=>[$("span",pb,[b(c(fy),null,{default:v(()=>[b(c(Zo),{class:"size-4"})]),_:1})]),b(c(gy),null,{default:v(()=>[j(r.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),gb=M({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),P(c(yy),te(c(o),{class:c(Ce)("flex cursor-default items-center justify-center py-1",t.class)}),{default:v(()=>[j(r.$slots,"default",{},()=>[b(c(Gl),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),mb=M({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),P(c(vy),te(c(o),{class:c(Ce)("flex cursor-default items-center justify-center py-1",t.class)}),{default:v(()=>[j(r.$slots,"default",{},()=>[b(c(Rh),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),vb=M({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),P(c(ey),te(c(o),{class:c(Ce)("flex h-10 w-full items-center justify-between rounded-md border border-gray-800/15 bg-background dark:bg-white/10 dark:border-[#606062] shadow-sm px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-0 focus:border-zinc-800/30 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:truncate text-start",t.class)}),{default:v(()=>[j(r.$slots,"default"),b(c(wy),{"as-child":""},{default:v(()=>[b(c(Bh),{class:"size-4 opacity-50 shrink-0"})]),_:1})]),_:3},16,["class"]))}}),yb=M({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(w(),P(c(by),Ke(Je(t)),{default:v(()=>[j(n.$slots,"default")]),_:3},16))}}),bb=M({__name:"Input",props:{defaultValue:{},modelValue:{},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=_s(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(s,l)=>qo((w(),z("input",{"onUpdate:modelValue":l[0]||(l[0]=i=>Le(r)?r.value=i:null),class:ae(c(Ce)("flex w-full rounded-md bg-white dark:bg-white/10 border border-gray-800/15 px-2 py-2 shadow-sm text-sm text-gray-800 dark:text-gray-200 ring-offset-background placeholder:text-gray-400 placeholder:font-medium focus-visible:outline-none focus-visible:border-zinc-800/30 dark:focus-visible:border-gray-700 disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[us,c(r)]])}}),Pa=M({__name:"Checkbox",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String]},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{},id:{},asChild:{type:Boolean},as:{},class:{},variant:{}},emits:["update:checked"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:i,...a}=n;return a}),s=N(()=>r.value.variant==="secondary"?"data-[state=checked]:bg-gray-500 text-white":"data-[state=checked]:bg-primary data-[state=checked]:border-transparent data-[state=checked]:shadow-none text-white"),l=Ue(r,o);return(i,a)=>(w(),P(c(iv),te(c(l),{class:c(Ce)("peer size-[18px] bg-white shrink-0 rounded-sm border border-gray-200 shadow-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 "+s.value,n.class)}),{default:v(()=>[b(c(av),{class:"flex h-full w-full items-center justify-center text-current"},{default:v(()=>[j(i.$slots,"default",{},()=>[b(c(Zo),{class:"size-[13px]"})])]),_:3})]),_:3},16,["class"]))}}),wb=M({__name:"Textarea",props:{class:{},defaultValue:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=_s(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(s,l)=>qo((w(),z("textarea",{"onUpdate:modelValue":l[0]||(l[0]=i=>Le(r)?r.value=i:null),class:ae(c(Ce)("flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:border-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-pink-200 disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[us,c(r)]])}});function $d(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,Ia=xb,_b=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Ia(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,l=Object.keys(r).map(d=>{const u=n==null?void 0:n[d],f=s==null?void 0:s[d];if(u===null)return null;const p=Ma(u)||Ma(f);return r[d][p]}),i=n&&Object.entries(n).reduce((d,u)=>{let[f,p]=u;return p===void 0||(d[f]=p),d},{}),a=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,u)=>{let{class:f,className:p,...h}=u;return Object.entries(h).every(g=>{let[m,y]=g;return Array.isArray(y)?y.includes({...s,...i}[m]):{...s,...i}[m]===y})?[...d,f,p]:d},[]);return Ia(e,l,a,n==null?void 0:n.class,n==null?void 0:n.className)},Cb=M({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,o)=>(w(),P(c(_e),{as:n.as,"as-child":n.asChild,class:ae([c(Ce)(c(kb)({variant:n.variant,size:n.size}),t.class),"primary-button text-white dark:text-gray-800"])},{default:v(()=>[j(n.$slots,"default",{},void 0,!0)]),_:3},8,["as","as-child","class"]))}}),Sb=Ed(Cb,[["__scopeId","data-v-a7974b10"]]),kb=_b("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-white hover:bg-primary/90 text-shadow",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",xs:"h-7 rounded px-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Eb={class:"bg-white rounded-2xl py-4 dark:bg-gray-900"},Ob=M({__name:"SidebarDialog",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:l,...i}=n;return i}),s=Ue(r,o);return(l,i)=>(w(),P(c(Nc),null,{default:v(()=>[b(c(qc),{class:"fixed inset-0 z-50 bg-black/20 dark:bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),b(c(Uc),te(c(s),{style:{"animation-duration":"400ms"},class:c(Ce)("fixed right-2 top-2 bottom-2 z-50 grid w-[656px] lg:w-[800px] gap-4 border border-black/5 bg-[#F5F5F580] rounded-3xl p-2 backdrop-blur shadow-xl focus:outline-none focus-visible:outline-none focus-visible:ring-0 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-50 data-[state=open]:fade-in-50 data-[state=closed]:slide-out-to-right-[100%] data-[state=open]:slide-in-from-right-full",n.class)}),{default:v(()=>[$("div",Eb,[j(l.$slots,"default")]),b(c(Gc),{class:"absolute right-6 top-6 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus-visible:outline-none focus-visible:ring-0 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},{default:v(()=>[b(c(bc),{class:"size-4 text-gray-400"}),i[0]||(i[0]=$("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),on=M({__name:"Accordion",props:{collapsible:{type:Boolean},disabled:{type:Boolean},dir:{},orientation:{},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),P(c($m),te(c(r),{class:"mb-6 dark:border-[#727274]"}),{default:v(()=>[j(s.$slots,"default")]),_:3},16))}}),rn=M({__name:"AccordionContent",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:o,...r}=t;return r});return(o,r)=>(w(),P(c(Im),te(n.value,{class:"overflow-hidden text-sm transition-all bg-gray-50 dark:bg-white/10 rounded-xl data-[state=open]:border-t-0 data-[state=open]:rounded-t-none data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"}),{default:v(()=>[$("div",{class:ae(c(Ce)("pb-4 pt-0",t.class))},[j(o.$slots,"default")],2)]),_:3},16))}}),sn=M({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),P(c(Mm),te(c(o),{class:c(Ce)("bg-gray-50 dark:bg-white/10 border border-gray-200 dark:border-[#606062] rounded-xl overflow-hidden",t.class)}),{default:v(()=>[j(r.$slots,"default")]),_:3},16,["class"]))}}),Tb={class:"flex items-center space-x-2 text-sm text-gray-800 dark:text-white"},ln=M({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:o,...r}=t;return r});return(o,r)=>(w(),P(c(Bm),{class:"flex"},{default:v(()=>[b(c(Rm),te(n.value,{class:c(Ce)("flex flex-1 items-center rounded-md justify-between bg-gray-50 dark:bg-white/10 py-2.5 pl-4 pr-2 font-medium transition-transform [&[data-state=open]>div>svg.close]:rotate-180 [&[data-state=open]>div.action]:opacity-100",t.class)}),{default:v(()=>[$("div",Tb,[j(o.$slots,"icon"),j(o.$slots,"default"),b(c(Gl),{class:"h-4 w-4 shrink-0 transition-transform duration-200 close"})]),$("div",{class:"opacity-0 action",onClick:r[0]||(r[0]=$t(()=>{},["stop"]))},[j(o.$slots,"action")])]),_:3},16,["class"])]),_:3}))}}),Ab={class:"relative w-full"},Ba=M({__name:"Table",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("div",Ab,[$("table",{class:ae(c(Ce)("w-full caption-bottom text-sm",t.class))},[j(n.$slots,"default")],2)]))}}),$b={class:"relative w-full overflow-auto rounded-lg border border-gray-200 dark:border-[#606062] shadow-sm"},Yn=M({__name:"AccordionTable",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("div",$b,[$("table",{class:ae([c(Ce)("w-full caption-bottom text-sm",t.class),"max-w-full table-fixed bg-white dark:bg-white/10"])},[j(n.$slots,"default")],2)]))}}),an=M({__name:"TableBody",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("tbody",{class:ae(c(Ce)("[&_tr:last-child]:border-0",t.class))},[j(n.$slots,"default")],2))}}),qe=M({__name:"TableCell",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("td",{class:ae(c(Ce)("p-4 align-middle [&:has([role=checkbox])]:pr-0",t.class))},[j(n.$slots,"default")],2))}}),Ks=M({__name:"TableHead",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("th",{class:ae(c(Ce)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t.class))},[j(n.$slots,"default")],2))}}),Pb=M({__name:"TableHeader",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("thead",{class:ae(c(Ce)("[&_tr]:border-b",t.class))},[j(n.$slots,"default")],2))}}),Qn=M({__name:"TableRow",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("tr",{class:ae(c(Ce)("border-b transition-colors hover:bg-muted/50 dark:border-[#727274] data-[state=selected]:bg-muted",t.class))},[j(n.$slots,"default")],2))}}),un=M({__name:"AccordionTableRow",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("tr",{class:ae(c(Ce)("border-b dark:border-[#727274] dark:hover:bg-transparent",t.class))},[j(n.$slots,"default")],2))}}),wt=M({__name:"NarrowTableCell",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("td",{class:ae(c(Ce)("px-3 py-1 align-middle",t.class))},[j(n.$slots,"default")],2))}}),Mb={class:"flex h-full w-full items-center justify-center text-current"},Ib=M({__name:"MasterCheckbox",props:{variant:{},class:{},state:{}},emits:["apply-state"],setup(e,{emit:t}){const n=e,o=I(n.state);me(()=>n.state,i=>{o.value=i});const r=N(()=>n.variant==="secondary"?"data-[state=checked]:bg-gray-500 text-white":o.value==="checked"||o.value==="indeterminate"?"bg-primary border-transparent shadow-none text-white":"border-gray-200 shadow-sm bg-white"),s=t,l=()=>{o.value==="checked"?o.value="unchecked":(o.value==="unchecked"||o.value==="indeterminate")&&(o.value="checked"),s("apply-state",o.value)};return(i,a)=>(w(),z("div",{onClick:l,class:ae(c(Ce)("peer size-[18px] shrink-0 rounded-sm border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 "+r.value,n.class))},[$("div",Mb,[o.value==="checked"?(w(),P(c(Zo),{key:0,class:"size-[13px]"})):ie("",!0),o.value==="indeterminate"?(w(),P(c(zh),{key:1,class:"size-[13px]"})):ie("",!0)])],2))}}),pr=M({__name:"TableInput",props:{defaultValue:{},modelValue:{},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=_s(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(s,l)=>qo((w(),z("input",{"onUpdate:modelValue":l[0]||(l[0]=i=>Le(r)?r.value=i:null),class:ae(c(Ce)("h-8 rounded-md w-full disabled:bg-transparent disabled:text-gray-400 dark:bg-transparent focus:bg-gray-100 dark:focus:bg-white/10 focus:outline-none px-2.5 py-2 -ml-2",n.class))},null,2)),[[us,c(r)]])}}),Bb={class:"hidden lg:block"},yl=M({__name:"IconTextButton",props:{icon:{type:[Function,Object]},tooltipText:{},shortcut:{},bgClass:{}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,r)=>(w(),z("button",{class:"px-4 py-2 flex items-center space-x-2 text-sm text-gray-500 font-medium border border-gray-200 dark:border-[#606062] rounded-lg shadow-sm bg-white dark:bg-white/10 dark:hover:bg-white/15 hover:bg-gray-50 text-gray-400 dark:text-gray-300 hover:text-gray-800 duration-150 focus:outline-0",onClick:r[0]||(r[0]=s=>n("click")),type:"button"},[(w(),P(Vn(o.icon),{class:"size-4 text-gray-400"})),$("div",Bb,[j(o.$slots,"default")])]))}}),Rb={class:"flex flex-col h-[calc(100vh-4rem)]"},Db={class:"flex space-x-2 border-b dark:border-gray-700 pb-4 px-4"},jb={class:"w-[130px]"},Lb={class:"overflow-y-auto pt-4 border-b dark:border-gray-700"},Vb={class:"flex"},Nb={class:"flex"},Fb={class:"border border-gray-200 rounded-xl overflow-hidden shadow-sm bg-white dark:bg-[#444447] dark:border-[#57575A]"},Hb={class:"flex justify-end space-x-2 pt-4 px-4"},zb=M({__name:"ModifiedReplayModal",props:{currentLog:{}},emits:["replay-modified"],setup(e,{expose:t,emit:n}){const o=e,r=wn({uri:"",method:"",headers:{},body:""}),s=I(!1),l=I([]),i=I({}),a=I("headerOpen"),d=I("bodyOpen"),u=I("checked"),f=["GET","POST","PUT","PATCH","DELETE"];me(s,A=>{A&&o.currentLog&&h()}),me(l,()=>{B()});const p=()=>{const A=g(r.headers,l.value),E=g(i.value,l.value),R={uri:r.uri,method:r.method,headers:{...A,...E},body:r.body};fetch("/api/replay-modified",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(R)}),s.value=!1},h=()=>{o.currentLog&&(r.uri=o.currentLog.request.uri,r.method=o.currentLog.request.method,r.headers={...o.currentLog.request.headers},r.body=o.currentLog.request.body,l.value=Object.keys(r.headers),i.value={})},g=(A,E)=>Object.fromEntries(Object.entries(A).filter(([R])=>E.includes(R))),m=A=>{l.value.includes(A)?l.value=l.value.filter(E=>E!==A):l.value=[...l.value,A]},y=(A,E)=>{const R=E.target,L=k(R.value),S=Object.entries(r.headers),F=S.findIndex(([V])=>V===A);F!==-1&&(S[F]=[L,S[F][1]]),r.headers=Object.fromEntries(S),l.value.includes(A)&&(l.value=l.value.map(V=>V===A?L:V)),setTimeout(()=>{const V=document.getElementById(`value_${L}`);V&&V.focus()},0)},_=(A,E)=>{const R=E.target,L=k(R.value),S=Object.entries(i.value),F=S.findIndex(([V])=>V===A);F!==-1&&(S[F]=[L,S[F][1]]),i.value=Object.fromEntries(S),l.value.includes(A)&&(l.value=l.value.map(V=>V===A?L:V)),setTimeout(()=>{const V=document.getElementById(`value_added_${L}`);V&&V.focus()},0)},k=A=>{const E=/[^a-zA-Z0-9-]/g;return A.replace(E,"-")},C=()=>{i.value.Header="Value",l.value.includes("Header")||l.value.push("Header"),Ae(()=>{const A=document.getElementById("key_added_Header");A&&A.focus()})},T=A=>{u.value=A,A==="checked"?l.value=[...Object.keys(r.headers),...Object.keys(i.value)]:l.value=[]},B=()=>{l.value.length!==Object.keys(r.headers).length?u.value="indeterminate":l.value.length===Object.keys(r.headers).length?u.value="checked":u.value="unchecked"};return t({show:s}),(A,E)=>(w(),P(c(Td),{open:s.value,"onUpdate:open":E[5]||(E[5]=R=>s.value=R)},{default:v(()=>[b(Ob,null,{default:v(()=>[$("div",Rb,[b(c(nb),null,{default:v(()=>E[6]||(E[6]=[$("h1",{class:"text-sm font-medium mb-4 px-4"}," Replay request ",-1)])),_:1}),$("div",Db,[$("div",jb,[b(c(cb),{modelValue:r.method,"onUpdate:modelValue":E[0]||(E[0]=R=>r.method=R)},{default:v(()=>[b(c(vb),null,{default:v(()=>[b(c(yb),{placeholder:r.method},null,8,["placeholder"])]),_:1}),b(c(db),null,{default:v(()=>[b(c(fb),null,{default:v(()=>[(w(),z(Te,null,Tt(f,R=>b(c(hb),{value:R,key:R},{default:v(()=>[ee(be(R),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),b(c(bb),{modelValue:r.uri,"onUpdate:modelValue":E[1]||(E[1]=R=>r.uri=R)},null,8,["modelValue"])]),$("div",Lb,[b(c(on),{type:"single",collapsible:"",modelValue:a.value,"onUpdate:modelValue":E[2]||(E[2]=R=>a.value=R),class:"mx-4"},{default:v(()=>[b(c(sn),{value:"headerOpen"},{default:v(()=>[b(c(ln),null,{icon:v(()=>[b(c(Ir),{class:"size-4"})]),default:v(()=>[E[7]||(E[7]=$("div",null,"Headers",-1))]),_:1}),b(c(rn),{class:"p-2"},{default:v(()=>[b(c(Yn),null,{default:v(()=>[b(c(Qn),{class:"text-[13px] text-gray-500 dark:text-gray-300 dark:border-[#606062] dark:hover:bg-transparent"},{default:v(()=>[b(wt,{class:"w-[32px] py-2.5"},{default:v(()=>[b(Ib,{state:u.value,onApplyState:T},null,8,["state"])]),_:1}),b(wt,{class:"w-5/12"},{default:v(()=>E[8]||(E[8]=[ee("Key")])),_:1}),b(wt,null,{default:v(()=>E[9]||(E[9]=[ee("Value")])),_:1})]),_:1}),b(c(an),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(r.headers,(R,L)=>(w(),P(c(un),{key:"header_"+L,class:ae({"bg-gray-50 dark:bg-[#303032] dark:hover:bg-[#303032]":!l.value.includes(L)})},{default:v(()=>[b(wt,{class:"w-[42px]"},{default:v(()=>[$("div",Vb,[b(c(Pa),{checked:l.value.includes(L),"onUpdate:checked":S=>m(L)},null,8,["checked","onUpdate:checked"])])]),_:2},1024),b(wt,{class:ae(["text-gray-500 dark:text-gray-300 text-[13px] align-middle",{"text-gray-400":!l.value.includes(L)}])},{default:v(()=>[b(pr,{"model-value":L,onChange:S=>y(L,S),disabled:!l.value.includes(L)},null,8,["model-value","onChange","disabled"])]),_:2},1032,["class"]),b(wt,{class:ae(["text-gray-800 dark:text-white py-0 pt-1 pb-1",{"text-gray-400":!l.value.includes(L)}])},{default:v(()=>[b(pr,{id:"value_"+L,modelValue:r.headers[L],"onUpdate:modelValue":S=>r.headers[L]=S,disabled:!l.value.includes(L)},null,8,["id","modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["class"])]),_:2},1032,["class"]))),128)),(w(!0),z(Te,null,Tt(i.value,(R,L)=>(w(),P(c(un),{key:"added_header_"+L,class:ae({"bg-gray-50":!l.value.includes(L)})},{default:v(()=>[b(wt,{class:"w-[42px]"},{default:v(()=>[$("div",Nb,[b(c(Pa),{checked:l.value.includes(L),"onUpdate:checked":S=>m(L)},null,8,["checked","onUpdate:checked"])])]),_:2},1024),b(wt,{class:ae(["text-gray-500 dark:text-gray-300 text-[13px] align-middle",{"text-gray-400":!l.value.includes(L)}])},{default:v(()=>[b(pr,{"model-value":L,onChange:S=>_(L,S),id:"key_added_"+L,disabled:!l.value.includes(L)},null,8,["model-value","onChange","id","disabled"])]),_:2},1032,["class"]),b(wt,{class:ae(["text-gray-800 dark:text-white",{"text-gray-400":!l.value.includes(L)}])},{default:v(()=>[b(pr,{id:"value_added_"+L,modelValue:i.value[L],"onUpdate:modelValue":S=>i.value[L]=S,disabled:!l.value.includes(L)},null,8,["id","modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["class"])]),_:2},1032,["class"]))),128)),b(c(un),{onClick:C,class:"bg-gray-50 dark:bg-[#303032] dark:hover:bg-[#303032] cursor-pointer text-gray-500 dark:text-gray-300 font-medium font-sans"},{default:v(()=>[b(wt,{class:"py-2.5 w-[42px]"},{default:v(()=>[b(c(Kh),{class:"size-4 mb-0.5"})]),_:1}),b(wt,{colspan:"2",class:"pl-1.5"},{default:v(()=>E[10]||(E[10]=[ee(" Add new header ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),b(c(on),{type:"single",collapsible:"",modelValue:d.value,"onUpdate:modelValue":E[4]||(E[4]=R=>d.value=R),class:"mx-4"},{default:v(()=>[b(c(sn),{value:"bodyOpen"},{default:v(()=>[b(c(ln),null,{icon:v(()=>[b(c(Zl),{class:"size-4"})]),default:v(()=>[E[11]||(E[11]=$("div",null,"Body",-1))]),_:1}),b(c(rn),{class:"p-2"},{default:v(()=>[$("div",Fb,[b(c(wb),{modelValue:r.body,"onUpdate:modelValue":E[3]||(E[3]=R=>r.body=R),class:"min-h-[200px] font-mono border-0 dark:bg-[#444447]"},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),$("div",Hb,[b(yl,{icon:c(Ph),onClick:h},{default:v(()=>E[12]||(E[12]=[ee("Reset")])),_:1},8,["icon"]),b(c(Sb),{onClick:p,class:"flex"},{default:v(()=>[b(c(yc),{class:"size-4 mr-1"}),E[13]||(E[13]=$("div",null,"Replay",-1))]),_:1})])])]),_:1})]),_:1},8,["open"]))}}),Ra=M({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),P(c(Cy),Ke(Je(c(r))),{default:v(()=>[j(s.$slots,"default")]),_:3},16))}}),Kb={class:"truncate"},Da=M({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),P(c(Ey),te(c(o),{class:c(Ce)("inline-flex items-center justify-center whitespace-nowrap pt-3 pb-4 text-sm text-gray-400 font-medium border-b-2 border-transparent ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-primary data-[state=active]:border-primary",t.class)}),{default:v(()=>[$("span",Kb,[j(r.$slots,"default")])]),_:3},16,["class"]))}}),Wb=M({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:o,...r}=t;return r});return(o,r)=>(w(),P(c(Sy),te(n.value,{class:c(Ce)("flex items-center justify-start space-x-4 border-b dark:border-gray-700",t.class)}),{default:v(()=>[j(o.$slots,"default")]),_:3},16,["class"]))}}),ja=M({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:o,...r}=t;return r});return(o,r)=>(w(),P(c(ky),te({class:c(Ce)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t.class)},n.value),{default:v(()=>[j(o.$slots,"default")]),_:3},16,["class"]))}}),Ub={class:"opacity-100 group-hover:opacity-100 transition-150 text-gray-400 absolute -top-0.5 -right-0.5 border p-px rounded-sm"},bl=M({__name:"RowAccordionButton",props:{rotate:Boolean},setup(e){return(t,n)=>(w(),z("button",Ub,[b(c(Gl),{class:ae(["size-4 transform animate duration-150",{"rotate-180":e.rotate}])},null,8,["class"])]))}}),$o=/^[a-z0-9]+(-[a-z0-9]+)*$/,Cs=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const i=r.pop(),a=r.pop(),d={provider:r.length>0?r[0]:o,prefix:a,name:i};return t&&!xr(d)?null:d}const s=r[0],l=s.split("-");if(l.length>1){const i={provider:o,prefix:l.shift(),name:l.join("-")};return t&&!xr(i)?null:i}if(n&&o===""){const i={provider:o,prefix:"",name:s};return t&&!xr(i,n)?null:i}return null},xr=(e,t)=>e?!!((e.provider===""||e.provider.match($o))&&(t&&e.prefix===""||e.prefix.match($o))&&e.name.match($o)):!1,Pd=Object.freeze({left:0,top:0,width:16,height:16}),Fr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ss=Object.freeze({...Pd,...Fr}),wl=Object.freeze({...Ss,body:"",hidden:!1});function qb(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function La(e,t){const n=qb(e,t);for(const o in wl)o in Fr?o in e&&!(o in n)&&(n[o]=Fr[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Gb(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function s(l){if(n[l])return r[l]=[];if(!(l in r)){r[l]=null;const i=o[l]&&o[l].parent,a=i&&s(i);a&&(r[l]=[i].concat(a))}return r[l]}return Object.keys(n).concat(Object.keys(o)).forEach(s),r}function Zb(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let s={};function l(i){s=La(o[i]||r[i],s)}return l(t),n.forEach(l),La(e,s)}function Md(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=Gb(e);for(const r in o){const s=o[r];s&&(t(r,Zb(e,r,s)),n.push(r))}return n}const Jb={provider:"",aliases:{},not_found:{},...Pd};function Ws(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Id(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ws(e,Jb))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r.match($o)||typeof s.body!="string"||!Ws(s,wl))return null}const o=t.aliases||Object.create(null);for(const r in o){const s=o[r],l=s.parent;if(!r.match($o)||typeof l!="string"||!n[l]&&!o[l]||!Ws(s,wl))return null}return t}const Va=Object.create(null);function Yb(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function jn(e,t){const n=Va[e]||(Va[e]=Object.create(null));return n[t]||(n[t]=Yb(e,t))}function xi(e,t){return Id(t)?Md(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function Qb(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ho=!1;function Bd(e){return typeof e=="boolean"&&(Ho=e),Ho}function Xb(e){const t=typeof e=="string"?Cs(e,!0,Ho):e;if(t){const n=jn(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function ew(e,t){const n=Cs(e,!0,Ho);if(!n)return!1;const o=jn(n.provider,n.prefix);return Qb(o,n.name,t)}function tw(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ho&&!t&&!e.prefix){let r=!1;return Id(e)&&(e.prefix="",Md(e,(s,l)=>{l&&ew(s,l)&&(r=!0)})),r}const n=e.prefix;if(!xr({provider:t,prefix:n,name:"a"}))return!1;const o=jn(t,n);return!!xi(o,e)}const Rd=Object.freeze({width:null,height:null}),Dd=Object.freeze({...Rd,...Fr}),nw=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ow=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Na(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(nw);if(o===null||!o.length)return e;const r=[];let s=o.shift(),l=ow.test(s);for(;;){if(l){const i=parseFloat(s);isNaN(i)?r.push(s):r.push(Math.ceil(i*t*n)/n)}else r.push(s);if(s=o.shift(),s===void 0)return r.join("");l=!l}}function rw(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const r=e.indexOf(">",o),s=e.indexOf("",s);if(l===-1)break;n+=e.slice(r+1,s).trim(),e=e.slice(0,o).trim()+e.slice(l+1)}return{defs:n,content:e}}function sw(e,t){return e?""+e+""+t:t}function lw(e,t,n){const o=rw(e);return sw(o.defs,t+o.content+n)}const iw=e=>e==="unset"||e==="undefined"||e==="none";function aw(e,t){const n={...Ss,...e},o={...Dd,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,o].forEach(m=>{const y=[],_=m.hFlip,k=m.vFlip;let C=m.rotate;_?k?C+=2:(y.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),y.push("scale(-1 1)"),r.top=r.left=0):k&&(y.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),y.push("scale(1 -1)"),r.top=r.left=0);let T;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:T=r.height/2+r.top,y.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:y.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:T=r.width/2+r.left,y.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}C%2===1&&(r.left!==r.top&&(T=r.left,r.left=r.top,r.top=T),r.width!==r.height&&(T=r.width,r.width=r.height,r.height=T)),y.length&&(s=lw(s,'',""))});const l=o.width,i=o.height,a=r.width,d=r.height;let u,f;l===null?(f=i===null?"1em":i==="auto"?d:i,u=Na(f,a/d)):(u=l==="auto"?a:l,f=i===null?Na(u,d/a):i==="auto"?d:i);const p={},h=(m,y)=>{iw(y)||(p[m]=y.toString())};h("width",u),h("height",f);const g=[r.left,r.top,a,d];return p.viewBox=g.join(" "),{attributes:p,viewBox:g,body:s}}const uw=/\sid="(\S+)"/g,cw="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let dw=0;function fw(e,t=cw){const n=[];let o;for(;o=uw.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const l=typeof t=="function"?t(s):t+(dw++).toString(),i=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+l+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const xl=Object.create(null);function pw(e,t){xl[e]=t}function _l(e){return xl[e]||xl[""]}function _i(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ci=Object.create(null),_o=["https://api.simplesvg.com","https://api.unisvg.com"],_r=[];for(;_o.length>0;)_o.length===1||Math.random()>.5?_r.push(_o.shift()):_r.push(_o.pop());Ci[""]=_i({resources:["https://api.iconify.design"].concat(_r)});function hw(e,t){const n=_i(t);return n===null?!1:(Ci[e]=n,!0)}function Si(e){return Ci[e]}const gw=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Fa=gw();function mw(e,t){const n=Si(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(l=>{r=Math.max(r,l.length)});const s=t+".json?icons=";o=n.maxURL-r-n.path.length-s.length}return o}function vw(e){return e===404}const yw=(e,t,n)=>{const o=[],r=mw(e,t),s="icons";let l={type:s,provider:e,prefix:t,icons:[]},i=0;return n.forEach((a,d)=>{i+=a.length+1,i>=r&&d>0&&(o.push(l),l={type:s,provider:e,prefix:t,icons:[]},i=a.length),l.icons.push(a)}),o.push(l),o};function bw(e){if(typeof e=="string"){const t=Si(e);if(t)return t.path}return"/"}const ww=(e,t,n)=>{if(!Fa){n("abort",424);return}let o=bw(t.provider);switch(t.type){case"icons":{const s=t.prefix,i=t.icons.join(","),a=new URLSearchParams({icons:i});o+=s+".json?"+a.toString();break}case"custom":{const s=t.uri;o+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let r=503;Fa(e+o).then(s=>{const l=s.status;if(l!==200){setTimeout(()=>{n(vw(l)?"abort":"next",l)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",r)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",r)})},xw={prepare:yw,send:ww};function _w(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const s=r.provider,l=r.prefix,i=r.name,a=n[s]||(n[s]=Object.create(null)),d=a[l]||(a[l]=jn(s,l));let u;i in d.icons?u=t.loaded:l===""||d.missing.has(i)?u=t.missing:u=t.pending;const f={provider:s,prefix:l,name:i};u.push(f)}),t}function jd(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function Cw(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(s=>{const l=s.icons,i=l.pending.length;l.pending=l.pending.filter(a=>{if(a.prefix!==r)return!0;const d=a.name;if(e.icons[d])l.loaded.push({provider:o,prefix:r,name:d});else if(e.missing.has(d))l.missing.push({provider:o,prefix:r,name:d});else return n=!0,!0;return!1}),l.pending.length!==i&&(n||jd([e],s.id),s.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),s.abort))})}))}let Sw=0;function kw(e,t,n){const o=Sw++,r=jd.bind(null,n,o);if(!t.pending.length)return r;const s={id:o,icons:t,callback:e,abort:r};return n.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(s)}),r}function Ew(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const s=typeof r=="string"?Cs(r,t,n):r;s&&o.push(s)}),o}var Ow={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Tw(e,t,n,o){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let l;if(e.random){let A=e.resources.slice(0);for(l=[];A.length>1;){const E=Math.floor(Math.random()*A.length);l.push(A[E]),A=A.slice(0,E).concat(A.slice(E+1))}l=l.concat(A)}else l=e.resources.slice(s).concat(e.resources.slice(0,s));const i=Date.now();let a="pending",d=0,u,f=null,p=[],h=[];typeof o=="function"&&h.push(o);function g(){f&&(clearTimeout(f),f=null)}function m(){a==="pending"&&(a="aborted"),g(),p.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),p=[]}function y(A,E){E&&(h=[]),typeof A=="function"&&h.push(A)}function _(){return{startTime:i,payload:t,status:a,queriesSent:d,queriesPending:p.length,subscribe:y,abort:m}}function k(){a="failed",h.forEach(A=>{A(void 0,u)})}function C(){p.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),p=[]}function T(A,E,R){const L=E!=="success";switch(p=p.filter(S=>S!==A),a){case"pending":break;case"failed":if(L||!e.dataAfterTimeout)return;break;default:return}if(E==="abort"){u=R,k();return}if(L){u=R,p.length||(l.length?B():k());return}if(g(),C(),!e.random){const S=e.resources.indexOf(A.resource);S!==-1&&S!==e.index&&(e.index=S)}a="completed",h.forEach(S=>{S(R)})}function B(){if(a!=="pending")return;g();const A=l.shift();if(A===void 0){if(p.length){f=setTimeout(()=>{g(),a==="pending"&&(C(),k())},e.timeout);return}k();return}const E={status:"pending",resource:A,callback:(R,L)=>{T(E,R,L)}};p.push(E),d++,f=setTimeout(B,e.rotate),n(A,t,E.callback)}return setTimeout(B),_}function Ld(e){const t={...Ow,...e};let n=[];function o(){n=n.filter(i=>i().status==="pending")}function r(i,a,d){const u=Tw(t,i,a,(f,p)=>{o(),d&&d(f,p)});return n.push(u),u}function s(i){return n.find(a=>i(a))||null}return{query:r,find:s,setIndex:i=>{t.index=i},getIndex:()=>t.index,cleanup:o}}function Ha(){}const Us=Object.create(null);function Aw(e){if(!Us[e]){const t=Si(e);if(!t)return;const n=Ld(t),o={config:t,redundancy:n};Us[e]=o}return Us[e]}function $w(e,t,n){let o,r;if(typeof e=="string"){const s=_l(e);if(!s)return n(void 0,424),Ha;r=s.send;const l=Aw(e);l&&(o=l.redundancy)}else{const s=_i(e);if(s){o=Ld(s);const l=e.resources?e.resources[0]:"",i=_l(l);i&&(r=i.send)}}return!o||!r?(n(void 0,424),Ha):o.query(t,r,n)().abort}const za="iconify2",zo="iconify",Vd=zo+"-count",Ka=zo+"-version",Nd=36e5,Pw=168,Mw=50;function Cl(e,t){try{return e.getItem(t)}catch{}}function ki(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Wa(e,t){try{e.removeItem(t)}catch{}}function Sl(e,t){return ki(e,Vd,t.toString())}function kl(e){return parseInt(Cl(e,Vd))||0}const ks={local:!0,session:!0},Fd={local:new Set,session:new Set};let Ei=!1;function Iw(e){Ei=e}let hr=typeof window>"u"?{}:window;function Hd(e){const t=e+"Storage";try{if(hr&&hr[t]&&typeof hr[t].length=="number")return hr[t]}catch{}ks[e]=!1}function zd(e,t){const n=Hd(e);if(!n)return;const o=Cl(n,Ka);if(o!==za){if(o){const i=kl(n);for(let a=0;a{const a=zo+i.toString(),d=Cl(n,a);if(typeof d=="string"){try{const u=JSON.parse(d);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,i))return!0}catch{}Wa(n,a)}};let l=kl(n);for(let i=l-1;i>=0;i--)s(i)||(i===l-1?(l--,Sl(n,l)):Fd[e].add(i))}function Kd(){if(!Ei){Iw(!0);for(const e in ks)zd(e,t=>{const n=t.data,o=t.provider,r=n.prefix,s=jn(o,r);if(!xi(s,n).length)return!1;const l=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,l):l,!0})}}function Bw(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in ks)zd(o,r=>{const s=r.data;return r.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Rw(e,t){Ei||Kd();function n(o){let r;if(!ks[o]||!(r=Hd(o)))return;const s=Fd[o];let l;if(s.size)s.delete(l=Array.from(s).shift());else if(l=kl(r),l>=Mw||!Sl(r,l+1))return;const i={cached:Math.floor(Date.now()/Nd),provider:e.provider,data:t};return ki(r,zo+l.toString(),JSON.stringify(i))}t.lastModified&&!Bw(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ua(){}function Dw(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Cw(e)}))}function jw(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let s;if(!r||!(s=_l(n)))return;s.prepare(n,o,r).forEach(i=>{$w(n,i,a=>{if(typeof a!="object")i.icons.forEach(d=>{e.missing.add(d)});else try{const d=xi(e,a);if(!d.length)return;const u=e.pendingIcons;u&&d.forEach(f=>{u.delete(f)}),Rw(e,a)}catch(d){console.error(d)}Dw(e)})})}))}const Lw=(e,t)=>{const n=Ew(e,!0,Bd()),o=_w(n);if(!o.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(o.loaded,o.missing,o.pending,Ua)}),()=>{a=!1}}const r=Object.create(null),s=[];let l,i;return o.pending.forEach(a=>{const{provider:d,prefix:u}=a;if(u===i&&d===l)return;l=d,i=u,s.push(jn(d,u));const f=r[d]||(r[d]=Object.create(null));f[u]||(f[u]=[])}),o.pending.forEach(a=>{const{provider:d,prefix:u,name:f}=a,p=jn(d,u),h=p.pendingIcons||(p.pendingIcons=new Set);h.has(f)||(h.add(f),r[d][u].push(f))}),s.forEach(a=>{const{provider:d,prefix:u}=a;r[d][u].length&&jw(a,r[d][u])}),t?kw(t,o,s):Ua};function Vw(e,t){const n={...e};for(const o in t){const r=t[o],s=typeof r;o in Rd?(r===null||r&&(s==="string"||s==="number"))&&(n[o]=r):s===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const Nw=/[\s,]+/;function Fw(e,t){t.split(Nw).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Hw(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/r,s%1===0?o(s):0)}}return t}function zw(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'"+e+""}function Kw(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ww(e){return"data:image/svg+xml,"+Kw(e)}function Uw(e){return'url("'+Ww(e)+'")'}const qa={...Dd,inline:!1},qw={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Gw={display:"inline-block"},El={backgroundColor:"currentColor"},Wd={backgroundColor:"transparent"},Ga={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Za={webkitMask:El,mask:El,background:Wd};for(const e in Za){const t=Za[e];for(const n in Ga)t[e+n]=Ga[n]}const Cr={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Cr[e+"-flip"]=t,Cr[e.slice(0,1)+"-flip"]=t,Cr[e+"Flip"]=t});function Ja(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ya=(e,t)=>{const n=Vw(qa,t),o={...qw},r=t.mode||"svg",s={},l=t.style,i=typeof l=="object"&&!(l instanceof Array)?l:{};for(let m in t){const y=t[m];if(y!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[m]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&Fw(n,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?n[m]=Hw(y):typeof y=="number"&&(n[m]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete o["aria-hidden"];break;default:{const _=Cr[m];_?(y===!0||y==="true"||y===1)&&(n[_]=!0):qa[m]===void 0&&(o[m]=y)}}}const a=aw(e,n),d=a.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),r==="svg"){o.style={...s,...i},Object.assign(o,d);let m=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),o.innerHTML=fw(a.body,y?()=>y+"ID"+m++:"iconifyVue"),we("svg",o)}const{body:u,width:f,height:p}=e,h=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),g=zw(u,{...d,width:f+"",height:p+""});return o.style={...s,"--svg":Uw(g),width:Ja(d.width),height:Ja(d.height),...Gw,...h?El:Wd,...i},we("span",o)};Bd(!0);pw("",xw);if(typeof document<"u"&&typeof window<"u"){Kd();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!tw(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;hw(n,r)||console.error(o)}catch{console.error(o)}}}}const Zw={...Ss,body:""},Jw=M({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=Cs(e,!1,!0))===null)return this.abortLoading(),null;const o=Xb(n);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:Lw([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:o,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return Ya(Zw,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Ya({...Ss,...t.data},n)}});function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}var Yw=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Ud={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(){var t=this.jsonValue,n=Yw.test(t),o;return this.expand?(o={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},n?(t='').concat(t,""),o.innerHTML='"'.concat(t.toString(),'"')):o.innerText='"'.concat(t.toString(),'"')):o={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},we("span",{},[this.canExtend&&we("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),we("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),we("span",o)])}};Ud.__file="src/Components/types/json-string.vue";var qd={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(){return we("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:this.jsonValue===null?"null":"undefined"})}};qd.__file="src/Components/types/json-undefined.vue";var Gd={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(){var t=Number.isInteger(this.jsonValue);return we("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:this.jsonValue.toString()})}};Gd.__file="src/Components/types/json-number.vue";var Zd={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(){return we("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:this.jsonValue.toString()})}};Zd.__file="src/Components/types/json-boolean.vue";var Jd={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,sort:Boolean,previewMode:Boolean},data:function(){return{value:{}}},computed:{ordered:function(){var t=this;if(!this.sort)return this.value;var n={};return Object.keys(this.value).sort().forEach(function(o){n[o]=t.value[o]}),n}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t){var n=this;setTimeout(function(){n.value=t},0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t=[];if(!this.previewMode&&!this.keyName&&t.push(we("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),t.push(we("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"})),this.expand){for(var n in this.ordered)if(this.ordered.hasOwnProperty(n)){var o=this.ordered[n];t.push(we(Es,{key:n,style:{display:this.expand?void 0:"none"},sort:this.sort,keyName:n,depth:this.depth+1,value:o,previewMode:this.previewMode}))}}return!this.expand&&Object.keys(this.value).length&&t.push(we("span",{style:{display:this.expand?"none":void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal object content (keys: ".concat(Object.keys(this.ordered).join(", "),")"),innerText:"..."})),t.push(we("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),we("span",t)}};Jd.__file="src/Components/types/json-object.vue";var Yd={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,previewMode:Boolean},data:function(){return{value:[]}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;o===0&&(this.value=[]),setTimeout(function(){t.length>o&&(n.value.push(t[o]),n.setValue(t,o+1))},0)},toggle:function(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch{var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t=this,n=[];return!this.previewMode&&!this.keyName&&n.push(we("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),n.push(we("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["})),this.expand&&this.value.forEach(function(o,r){n.push(we(Es,{key:r,style:{display:t.expand?void 0:"none"},sort:t.sort,depth:t.depth+1,value:o,previewMode:t.previewMode}))}),!this.expand&&this.value.length&&n.push(we("span",{style:{display:void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal ".concat(this.value.length," hidden items"),innerText:"..."})),n.push(we("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),we("span",n)}};Yd.__file="src/Components/types/json-array.vue";var Qd={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(){return we("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:this.jsonValue.toString()},innerHTML:"<function>"})}};Qd.__file="src/Components/types/json-function.vue";var Xd={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(){var t=this.jsonValue,n=this.timeformat;return we("span",{class:{"jv-item":!0,"jv-string":!0},innerText:'"'.concat(n(t),'"')})}};Xd.__file="src/Components/types/json-date.vue";var Qw=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,ef={name:"JsonString",props:{jsonValue:{type:RegExp,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(){var t=this.jsonValue,n=Qw.test(t),o;return this.expand?(o={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},n?(t='').concat(t,""),o.innerHTML="".concat(t.toString())):o.innerText="".concat(t.toString())):o={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},we("span",{},[this.canExtend&&we("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),we("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),we("span",o)])}};ef.__file="src/Components/types/json-regexp.vue";var Es={name:"JsonBox",inject:["expandDepth","keyClick"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean},data:function(){return{expand:!0}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)},methods:{toggle:function(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch{var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t=this,n=[],o;this.value===null||this.value===void 0?o=qd:Array.isArray(this.value)?o=Yd:Object.prototype.toString.call(this.value)==="[object Date]"?o=Xd:this.value.constructor===RegExp?o=ef:Hr(this.value)==="object"?o=Jd:typeof this.value=="number"?o=Gd:typeof this.value=="string"?o=Ud:typeof this.value=="boolean"?o=Zd:typeof this.value=="function"&&(o=Qd);var r=this.keyName&&this.value&&(Array.isArray(this.value)||Hr(this.value)==="object"&&Object.prototype.toString.call(this.value)!=="[object Date]");return!this.previewMode&&r&&n.push(we("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),this.keyName&&n.push(we("span",{class:{"jv-key":!0},onClick:function(){t.keyClick(t.keyName)},innerText:"".concat(this.keyName,":")})),n.push(we(o,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,"onUpdate:expand":function(l){t.expand=l}})),we("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!r,toggle:!this.previewMode&&r}},n)}};Es.__file="src/Components/json-box.vue";var Xw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ex(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tf={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(Xw,function(){return function(){var n={686:function(s,l,i){i.d(l,{default:function(){return st}});var a=i(279),d=i.n(a),u=i(370),f=i.n(u),p=i(817),h=i.n(p);function g(Y){try{return document.execCommand(Y)}catch{return!1}}var m=function(Q){var X=h()(Q);return g("cut"),X},y=m;function _(Y){var Q=document.documentElement.getAttribute("dir")==="rtl",X=document.createElement("textarea");X.style.fontSize="12pt",X.style.border="0",X.style.padding="0",X.style.margin="0",X.style.position="absolute",X.style[Q?"right":"left"]="-9999px";var pe=window.pageYOffset||document.documentElement.scrollTop;return X.style.top="".concat(pe,"px"),X.setAttribute("readonly",""),X.value=Y,X}var k=function(Q){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},pe="";if(typeof Q=="string"){var re=_(Q);X.container.appendChild(re),pe=h()(re),g("copy"),re.remove()}else pe=h()(Q),g("copy");return pe},C=k;function T(Y){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(X){return typeof X}:T=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},T(Y)}var B=function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},X=Q.action,pe=X===void 0?"copy":X,re=Q.container,he=Q.target,je=Q.text;if(pe!=="copy"&&pe!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(he!==void 0)if(he&&T(he)==="object"&&he.nodeType===1){if(pe==="copy"&&he.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(pe==="cut"&&(he.hasAttribute("readonly")||he.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(je)return C(je,{container:re});if(he)return pe==="cut"?y(he):C(he,{container:re})},A=B;function E(Y){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(X){return typeof X}:E=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},E(Y)}function R(Y,Q){if(!(Y instanceof Q))throw new TypeError("Cannot call a class as a function")}function L(Y,Q){for(var X=0;X"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function fe(Y){return fe=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||Object.getPrototypeOf(X)},fe(Y)}function ue(Y,Q){var X="data-clipboard-".concat(Y);if(Q.hasAttribute(X))return Q.getAttribute(X)}var Be=function(Y){F(X,Y);var Q=xe(X);function X(pe,re){var he;return R(this,X),he=Q.call(this),he.resolveOptions(re),he.listenClick(pe),he}return S(X,[{key:"resolveOptions",value:function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof re.action=="function"?re.action:this.defaultAction,this.target=typeof re.target=="function"?re.target:this.defaultTarget,this.text=typeof re.text=="function"?re.text:this.defaultText,this.container=E(re.container)==="object"?re.container:document.body}},{key:"listenClick",value:function(re){var he=this;this.listener=f()(re,"click",function(je){return he.onClick(je)})}},{key:"onClick",value:function(re){var he=re.delegateTarget||re.currentTarget,je=this.action(he)||"copy",He=A({action:je,container:this.container,target:this.target(he),text:this.text(he)});this.emit(He?"success":"error",{action:je,text:He,trigger:he,clearSelection:function(){he&&he.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(re){return ue("action",re)}},{key:"defaultTarget",value:function(re){var he=ue("target",re);if(he)return document.querySelector(he)}},{key:"defaultText",value:function(re){return ue("text",re)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(re){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return C(re,he)}},{key:"cut",value:function(re){return y(re)}},{key:"isSupported",value:function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],he=typeof re=="string"?[re]:re,je=!!document.queryCommandSupported;return he.forEach(function(He){je=je&&!!document.queryCommandSupported(He)}),je}}]),X}(d()),st=Be},828:function(s){var l=9;if(typeof Element<"u"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(d,u){for(;d&&d.nodeType!==l;){if(typeof d.matches=="function"&&d.matches(u))return d;d=d.parentNode}}s.exports=a},438:function(s,l,i){var a=i(828);function d(p,h,g,m,y){var _=f.apply(this,arguments);return p.addEventListener(g,_,y),{destroy:function(){p.removeEventListener(g,_,y)}}}function u(p,h,g,m,y){return typeof p.addEventListener=="function"?d.apply(null,arguments):typeof g=="function"?d.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(_){return d(_,h,g,m,y)}))}function f(p,h,g,m){return function(y){y.delegateTarget=a(y.target,h),y.delegateTarget&&m.call(p,y)}}s.exports=u},879:function(s,l){l.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},l.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||l.node(i[0]))},l.string=function(i){return typeof i=="string"||i instanceof String},l.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(s,l,i){var a=i(879),d=i(438);function u(g,m,y){if(!g&&!m&&!y)throw new Error("Missing required arguments");if(!a.string(m))throw new TypeError("Second argument must be a String");if(!a.fn(y))throw new TypeError("Third argument must be a Function");if(a.node(g))return f(g,m,y);if(a.nodeList(g))return p(g,m,y);if(a.string(g))return h(g,m,y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(g,m,y){return g.addEventListener(m,y),{destroy:function(){g.removeEventListener(m,y)}}}function p(g,m,y){return Array.prototype.forEach.call(g,function(_){_.addEventListener(m,y)}),{destroy:function(){Array.prototype.forEach.call(g,function(_){_.removeEventListener(m,y)})}}}function h(g,m,y){return d(document.body,g,m,y)}s.exports=u},817:function(s){function l(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var d=i.hasAttribute("readonly");d||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),d||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(i),u.removeAllRanges(),u.addRange(f),a=u.toString()}return a}s.exports=l},279:function(s){function l(){}l.prototype={on:function(i,a,d){var u=this.e||(this.e={});return(u[i]||(u[i]=[])).push({fn:a,ctx:d}),this},once:function(i,a,d){var u=this;function f(){u.off(i,f),a.apply(d,arguments)}return f._=a,this.on(i,f,d)},emit:function(i){var a=[].slice.call(arguments,1),d=((this.e||(this.e={}))[i]||[]).slice(),u=0,f=d.length;for(u;u=250?t.expandableCode=!0:t.expandableCode=!1)})},keyClick:function(t){this.$emit("onKeyClick",t)},onCopied:function(t){var n=this;this.copied||(this.copied=!0,setTimeout(function(){n.copied=!1},this.copyText.timeout),this.$emit("copied",t))},toggleExpandCode:function(){this.expandCode=!this.expandCode}}};function ox(e,t,n,o,r,s){var l=dp("json-box");return w(),z("div",{class:ae(s.jvClass)},[n.copyable?(w(),z("div",{key:0,class:ae("jv-tooltip ".concat(s.copyText.align||"right"))},[$("span",{ref:"clip",class:ae(["jv-button",{copied:r.copied}])},[j(e.$slots,"copy",{copied:r.copied},function(){return[ee(be(r.copied?s.copyText.copiedText:s.copyText.copyText),1)]})],2)],2)):ie("v-if",!0),$("div",{class:ae(["jv-code",{open:r.expandCode,boxed:n.boxed}])},[b(l,{ref:"jsonBox",value:n.value,sort:n.sort,"preview-mode":n.previewMode},null,8,["value","sort","preview-mode"])],2),r.expandableCode&&n.boxed?(w(),z("div",{key:1,class:"jv-more",onClick:t[0]||(t[0]=function(){return s.toggleExpandCode&&s.toggleExpandCode.apply(s,arguments)})},[$("span",{class:ae(["jv-toggle",{open:!!r.expandCode}])},null,2)])):ie("v-if",!0)],2)}Ko.render=ox;Ko.__file="src/Components/json-viewer.vue";function Po(e,t){const n=localStorage.getItem(e);let o;try{o=n?JSON.parse(n):t}catch(s){console.error("Error parsing localStorage data",s),o=t}const r=I(o);return me(r,s=>{try{localStorage.setItem(e,JSON.stringify(s))}catch(l){console.error("Error saving to localStorage",l)}},{deep:!0}),r}const Ol=M({__name:"AccordionTableHeader",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("thead",{class:ae(c(Ce)("[&_tr]:border-b dark:border-[#606062]",t.class))},[b(c(Qn),{class:"text-gray-500 dark:text-gray-300 dark:border-[#727274] dark:hover:bg-transparent"},{default:v(()=>[b(c(qe),{class:"w-1/5"},{default:v(()=>o[0]||(o[0]=[ee("Key")])),_:1}),b(c(qe),{class:"pr-0"},{default:v(()=>o[1]||(o[1]=[ee("Value")])),_:1})]),_:1})],2))}}),Mo=M({__name:"BodyViewButton",props:{label:{},active:{type:Boolean},value:{}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>n.active?"bg-primary text-white":"bg-gray-100 dark:bg-white/10 text-gray-500 dark:text-gray-200");return(s,l)=>(w(),z("button",{onClick:l[0]||(l[0]=i=>o("click",s.value)),class:ae([r.value,"rounded-3xl text-sm font-semibold py-1 px-3"])},be(s.label),3))}}),rx={class:"hidden lg:block"},nn=M({__name:"IconCopyButton",props:{tooltipText:{},shortcut:{},bgClass:{}},emits:["click"],setup(e,{emit:t}){const n=I(!1),o=t,r=()=>{n.value=!0,o("click"),setTimeout(()=>{n.value=!1},1e3)};return(s,l)=>(w(),z("button",{class:"px-4 py-2 flex items-center space-x-2 text-sm text-gray-500 font-medium border border-gray-200 dark:border-[#606062] rounded-lg shadow-sm bg-white dark:bg-white/10 dark:hover:bg-white/15 hover:bg-gray-50 text-gray-400 dark:text-gray-300 hover:text-gray-800 duration-150 focus:outline-0",onClick:r,type:"button"},[n.value?(w(),P(c(Zo),{key:0,class:"size-4 text-gray-400"})):ie("",!0),n.value?ie("",!0):(w(),P(c(sl),{key:1,class:"size-4 text-gray-400"})),$("div",rx,[j(s.$slots,"default",{},()=>[l[0]||(l[0]=ee("Copy"))])])]))}}),sx={class:"max-w-full px-6 pt-3"},lx={class:"font-mono"},ix={class:"p-4 rounded-md bg-gray-100 dark:bg-gray-800 mt-4 flex items-center"},ax={key:1,class:"bg-gray-50 dark:bg-white/10 border border-gray-200 dark:border-white/10 rounded-xl py-2.5 mb-6"},ux={class:"flex flex-1 items-center justify-between mb-3 pl-4 pr-2 font-medium"},cx={class:"flex items-center space-x-2 text-sm text-gray-800 dark:text-white"},dx={class:"pl-2 pr-2"},fx={class:"group w-[99%] relative flex items-center"},px=["data-truncate"],hx={class:"group w-[99%] relative flex items-center"},gx=["data-truncate"],mx={key:0},vx={key:1,class:"border border-gray-200 rounded-xl overflow-hidden shadow-sm bg-white dark:bg-white/10 dark:border-white/10"},yx={class:"flex items-center space-x-2 px-4 pt-4 mb-4"},bx={key:1,class:"p-6 prettyprint break-all whitespace-pre-wrap"},wx=M({__name:"Request",props:{request:{}},setup(e){const t=e,n=Po("requestHeadersVisible",!0),o=Po("postParametersVisible",!0),r=Po("pluginVisible",!0),s=I("requestHeaderOpen"),l=I("postParametersOpen"),i=I("bodyOpen"),a=I("pluginOpen"),d=I("json"),u=wn({}),f=xs();Ie(async()=>{await Ae(),n.value===!1&&(s.value=""),o.value===!1&&(l.value=""),r.value===!1&&(a.value=""),await p(),window.addEventListener("resize",p)}),me(()=>t.request,async()=>{Vr(t.request)?d.value="json":d.value="raw",await p()}),me(s,h=>{h==="requestHeaderOpen"?n.value=!0:n.value=!1}),me(l,h=>{h==="postParametersOpen"?o.value=!0:o.value=!1}),me(a,h=>{h==="pluginOpen"?r.value=!0:r.value=!1});const p=async()=>{await Ae(),Object.entries(t.request.post).forEach(([h,g])=>{const m=document.querySelector(`[data-truncate="post_${g.name}"]`);if(m){const y=m.getAttribute("data-truncate")??"post_"+g.name;m.scrollWidth>m.clientWidth?u[y]=!1:delete u[y]}}),Object.entries(t.request.headers).forEach(([h,g])=>{const m=document.querySelector(`[data-truncate="headers_${h}"]`);if(m){const y=m.getAttribute("data-truncate")??"headers_"+h;m.scrollWidth>m.clientWidth?u[y]=!1:delete u[y]}})};return xn(()=>{window.removeEventListener("resize",p)}),(h,g)=>(w(),z("div",sx,[h.request.plugin&&!c(vl)(h.request.plugin)?(w(),P(c(on),{key:0,type:"single",collapsible:"",modelValue:a.value,"onUpdate:modelValue":g[1]||(g[1]=m=>a.value=m)},{default:v(()=>[b(c(sn),{value:"pluginOpen"},{default:v(()=>[b(c(ln),null,{action:v(()=>[b(nn,{onClick:g[0]||(g[0]=m=>c(zt)(c(Jn)(h.request.plugin.details,"pluginDetails")))},{default:v(()=>g[11]||(g[11]=[ee(" Copy as PHP array ")])),_:1})]),icon:v(()=>[b(c(Dh),{class:"size-4"})]),default:v(()=>[$("div",null,[ee(be(h.request.plugin.plugin)+": ",1),$("span",lx,be(h.request.plugin.uiLabel),1)])]),_:1}),b(c(rn),{class:"px-2"},{default:v(()=>[c(V0)(h.request.plugin.details)?(w(),P(c(Ko),{key:0,"expand-depth":2,value:h.request.plugin.details,class:ae({"jv-light":c(f)==="light","jv-dark":c(f)==="dark"})},null,8,["value","class"])):(w(),P(c(Yn),{key:1,class:"table-fixed max-w-full"},{default:v(()=>[b(c(an),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(Object.entries(h.request.plugin.details),([m,y])=>(w(),P(c(un),{key:m},{default:v(()=>[b(c(qe),{class:"w-2/5 align-top text-gray-500 dark:text-gray-300"},{default:v(()=>[ee(be(m),1)]),_:2},1024),b(c(qe),{class:"pr-0 text-gray-800 dark:text-white",innerHTML:y},null,8,["innerHTML"])]),_:2},1024))),128))]),_:1})]),_:1})),$("div",ix,[b(c(Jw),{icon:"radix-icons:info-circled",class:"h-4 w-4 mr-2"}),g[12]||(g[12]=$("p",null,[ee("Learn how to use and write your own "),$("a",{class:"text-pink-600 dark:text-pink-400 underline"},"Request Plugins"),ee(" in the documentation.")],-1))])]),_:1})]),_:1})]),_:1},8,["modelValue"])):ie("",!0),Object.keys(h.request.query).length>0?(w(),z("div",ax,[$("div",ux,[$("div",cx,[b(c(jh),{class:"size-4"}),g[13]||(g[13]=$("div",null,"Query parameters",-1))]),$("div",null,[b(nn,{onClick:g[2]||(g[2]=m=>c(zt)(c(Jn)(h.request.query,"queryParameters")))},{default:v(()=>g[14]||(g[14]=[ee(" Copy as PHP array ")])),_:1})])]),$("div",dx,[b(c(Yn),null,{default:v(()=>[b(c(an),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(Object.entries(h.request.query),([m,y])=>(w(),P(c(un),{key:m},{default:v(()=>[b(c(qe),{class:"w-1/5 text-gray-500 dark:text-gray-300"},{default:v(()=>[ee(be(m),1)]),_:2},1024),b(c(qe),{class:"text-gray-800 break-all dark:text-white"},{default:v(()=>[ee(be(y),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})])])):ie("",!0),h.request.post&&!c(vl)(h.request.post)?(w(),P(c(on),{key:2,type:"single",collapsible:"",modelValue:l.value,"onUpdate:modelValue":g[4]||(g[4]=m=>l.value=m)},{default:v(()=>[b(c(sn),{value:"postParametersOpen"},{default:v(()=>[b(c(ln),null,{action:v(()=>[b(nn,{onClick:g[3]||(g[3]=m=>c(zt)(c(Jn)(h.request.post,"postData")))},{default:v(()=>g[15]||(g[15]=[ee(" Copy as PHP array ")])),_:1})]),icon:v(()=>[b(c(Ir),{class:"size-4"})]),default:v(()=>[g[16]||(g[16]=$("div",null,"Post Parameters",-1))]),_:1}),b(c(rn),{class:"px-2"},{default:v(()=>[b(c(Yn),null,{default:v(()=>[b(Ol),b(c(an),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(Object.entries(h.request.post),([m,y])=>(w(),P(c(un),{key:m},{default:v(()=>[b(c(qe),{class:"w-2/5 align-top text-gray-500 dark:text-gray-300"},{default:v(()=>[ee(be(y.name),1)]),_:2},1024),b(c(qe),{class:"pr-0 text-gray-800 dark:text-white"},{default:v(()=>[$("div",fx,[$("div",{class:ae(["pr-6 break-all",{truncate:!u.hasOwnProperty("post_"+y.name)||u["post_"+y.name]===!1}]),"data-truncate":"post_"+y.name},be(y.value),11,px),$("div",null,[u.hasOwnProperty("post_"+y.name)?(w(),P(bl,{key:0,onClick:_=>u["post_"+y.name]=!u["post_"+y.name],rotate:u["post_"+y.name]},null,8,["onClick","rotate"])):ie("",!0)])])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])):ie("",!0),b(c(on),{type:"single",collapsible:"",modelValue:s.value,"onUpdate:modelValue":g[6]||(g[6]=m=>s.value=m)},{default:v(()=>[b(c(sn),{value:"requestHeaderOpen"},{default:v(()=>[b(c(ln),null,{action:v(()=>[b(nn,{onClick:g[5]||(g[5]=m=>c(zt)(c(Jn)(h.request.headers,"headers")))},{default:v(()=>g[17]||(g[17]=[ee(" Copy as PHP array ")])),_:1})]),icon:v(()=>[b(c(Ir),{class:"size-4"})]),default:v(()=>[g[18]||(g[18]=$("div",null,"Headers",-1))]),_:1}),b(c(rn),{class:"px-2"},{default:v(()=>[b(c(Yn),null,{default:v(()=>[b(Ol),b(c(an),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(Object.entries(h.request.headers),([m,y])=>(w(),P(c(un),{key:m,class:"hover:bg-white"},{default:v(()=>[b(c(qe),{class:"text-gray-500 dark:text-gray-300"},{default:v(()=>[ee(be(m),1)]),_:2},1024),b(c(qe),{class:"pr-0 text-gray-800 dark:text-white"},{default:v(()=>[$("div",hx,[$("div",{class:ae(["pr-6 break-all",{truncate:!u.hasOwnProperty("headers_"+m)||u["headers_"+m]===!1}]),"data-truncate":"headers_"+m},be(y),11,gx),$("div",null,[u.hasOwnProperty("headers_"+m)?(w(),P(bl,{key:0,onClick:_=>u["headers_"+m]=!u["headers_"+m],rotate:u["headers_"+m]},null,8,["onClick","rotate"])):ie("",!0)])])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),h.request.body?(w(),P(c(on),{key:3,type:"single",collapsible:"",modelValue:i.value,"onUpdate:modelValue":g[10]||(g[10]=m=>i.value=m)},{default:v(()=>[b(c(sn),{value:"bodyOpen"},{default:v(()=>[b(c(ln),null,{action:v(()=>[h.request.body?(w(),P(nn,{key:0,onClick:g[7]||(g[7]=m=>c(zt)(h.request.body))},{default:v(()=>g[19]||(g[19]=[ee(" Copy ")])),_:1})):ie("",!0)]),icon:v(()=>[b(c(Zl),{class:"size-4"})]),default:v(()=>[g[20]||(g[20]=$("div",null,"Body",-1))]),_:1}),b(c(rn),{class:"px-2"},{default:v(()=>[h.request.body===""?(w(),z("div",mx,g[21]||(g[21]=[$("span",{class:"text-sm opacity-75 font-mono pt-2 inline-block px-2"},"Request body is empty.",-1)]))):(w(),z("div",vx,[$("div",yx,[b(Mo,{onClick:g[8]||(g[8]=m=>d.value=m),active:d.value==="raw",label:"Raw",value:"raw"},null,8,["active"]),c(Vr)(h.request)?(w(),P(Mo,{key:0,onClick:g[9]||(g[9]=m=>d.value=m),active:d.value==="json",label:"JSON",value:"json"},null,8,["active"])):ie("",!0)]),d.value==="json"?(w(),P(c(Ko),{key:0,"expand-depth":2,value:JSON.parse(h.request.body??""),class:ae({"jv-light":c(f)==="light","jv-dark":c(f)==="dark"})},null,8,["value","class"])):ie("",!0),d.value==="raw"?(w(),z("pre",bx,be(h.request.body??"")+` - `,1)):ie("",!0)]))]),_:1})]),_:1})]),_:1},8,["modelValue"])):ie("",!0)]))}}),xx={class:"max-w-full px-6 pt-3"},_x={class:"group w-[99%] relative flex items-center"},Cx=["data-truncate"],Sx={key:0},kx={key:1,class:"border border-gray-200 rounded-xl overflow-hidden shadow-sm bg-white dark:bg-white/10 dark:border-[#606062]"},Ex={class:"flex items-center space-x-2 px-4 pt-4 mb-4"},Ox={key:1,class:"p-6 text-pretty break-all whitespace-pre-wrap"},Tx={key:2,class:"border border-gray-200 dark:border-gray-700 rounded-md m-4 overflow-hidden"},Ax=["srcdoc"],$x=M({__name:"Response",props:{response:{}},setup(e){const t=e,n=Po("responseHeadersVisible",!0),o=I("responseHeaderOpen"),r=I("bodyOpen"),s=I("raw"),l=wn({}),i=xs();Ie(async()=>{await Ae(),n.value===!1&&(o.value=""),await a(),window.addEventListener("resize",a)}),me(o,u=>{u==="responseHeaderOpen"?n.value=!0:n.value=!1}),me(()=>t.response,async()=>{Vr(t.response)?s.value="json":D0(t.response)?s.value="preview":s.value="raw",await a()});const a=async()=>{await Ae(),Object.entries(t.response.headers).forEach(([u,f])=>{const p=document.querySelector(`[data-truncate="headers_${u}"]`);if(p){const h=p.getAttribute("data-truncate")??"headers_"+u;p.scrollWidth>p.clientWidth?l[h]=!1:delete l[h]}})},d=N(()=>t.response.body==="");return xn(()=>{window.removeEventListener("resize",a)}),(u,f)=>(w(),z("div",xx,[b(c(on),{type:"single",collapsible:"",modelValue:o.value,"onUpdate:modelValue":f[1]||(f[1]=p=>o.value=p)},{default:v(()=>[b(c(sn),{value:"responseHeaderOpen"},{default:v(()=>[b(c(ln),null,{action:v(()=>[b(nn,{onClick:f[0]||(f[0]=p=>c(zt)(c(Jn)(u.response.headers,"headers")))},{default:v(()=>f[7]||(f[7]=[ee(" Copy as PHP array ")])),_:1})]),icon:v(()=>[b(c(Ir),{class:"size-4"})]),default:v(()=>[f[8]||(f[8]=$("div",null,"Headers",-1))]),_:1}),b(c(rn),{class:"px-2"},{default:v(()=>[b(c(Yn),null,{default:v(()=>[b(Ol),b(c(an),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(Object.entries(u.response.headers),([p,h])=>(w(),P(c(un),{key:p},{default:v(()=>[b(c(qe),{class:"text-gray-500 dark:text-gray-300"},{default:v(()=>[ee(be(p),1)]),_:2},1024),b(c(qe),{class:"pr-0 text-gray-800 dark:text-white"},{default:v(()=>[$("div",_x,[$("div",{class:ae(["pr-6 break-all",{truncate:!l.hasOwnProperty("headers_"+p)||l["headers_"+p]===!1}]),"data-truncate":"headers_"+p},be(h),11,Cx),$("div",null,[l.hasOwnProperty("headers_"+p)?(w(),P(bl,{key:0,onClick:g=>l["headers_"+p]=!l["headers_"+p],rotate:l["headers_"+p]},null,8,["onClick","rotate"])):ie("",!0)])])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),b(c(on),{type:"single",collapsible:"",modelValue:r.value,"onUpdate:modelValue":f[6]||(f[6]=p=>r.value=p)},{default:v(()=>[b(c(sn),{value:"bodyOpen"},{default:v(()=>[b(c(ln),null,{action:v(()=>[d.value?ie("",!0):(w(),P(nn,{key:0,onClick:f[2]||(f[2]=p=>c(zt)(u.response.body))},{default:v(()=>f[9]||(f[9]=[ee(" Copy ")])),_:1}))]),icon:v(()=>[b(c(Zl),{class:"size-4"})]),default:v(()=>[f[10]||(f[10]=$("div",null,"Body",-1))]),_:1}),b(c(rn),{class:"px-2"},{default:v(()=>[d.value?(w(),z("div",Sx,f[11]||(f[11]=[$("span",{class:"text-sm opacity-75 font-mono pt-2 inline-block px-2"},"Response body is empty.",-1)]))):(w(),z("div",kx,[$("div",Ex,[b(Mo,{onClick:f[3]||(f[3]=p=>s.value=p),active:s.value==="raw",label:"Raw",value:"raw"},null,8,["active"]),c(Vr)(u.response)?(w(),P(Mo,{key:0,onClick:f[4]||(f[4]=p=>s.value=p),active:s.value==="json",label:"JSON",value:"json"},null,8,["active"])):ie("",!0),b(Mo,{onClick:f[5]||(f[5]=p=>s.value=p),active:s.value==="preview",label:"Preview",value:"preview"},null,8,["active"])]),s.value==="json"?(w(),P(c(Ko),{key:0,"expand-depth":2,value:JSON.parse(u.response.body??""),class:ae({"jv-light":c(i)==="light","jv-dark":c(i)==="dark"})},null,8,["value","class"])):ie("",!0),s.value==="raw"?(w(),z("pre",Ox,be(u.response.body??"")+` -`,1)):ie("",!0),s.value==="preview"?(w(),z("div",Tx,[$("iframe",{srcdoc:u.response.body,style:{height:"500px"},class:"w-full h-full"},null,8,Ax)])):ie("",!0)]))]),_:1})]),_:1})]),_:1},8,["modelValue"])]))}}),Px={class:"flex items-center space-x-2"},Mx={key:0,class:"pt-px"},Ix={key:1,class:"opacity-0"},nf=M({__name:"ResponseBadge",props:{statusCode:{},size:{default:"xs"},reason:{}},setup(e){const t=e,n=N(()=>{if(t.statusCode===null)return"bg-gray-100 dark:bg-gray-800 animate-pulse";switch(t.statusCode.toString().charAt(0)){case"2":return"bg-lime-500";case"3":return"bg-yellow-500";case"4":return"bg-orange-500";case"5":return"bg-red-500";default:return"bg-gray-500"}}),o=N(()=>{if(t.statusCode===null)return"text-transparent";switch(t.statusCode.toString().charAt(0)){case"2":return"text-lime-600";case"3":return"text-yellow-600";case"4":return"text-orange-600";case"5":return"text-red-600";default:return"text-gray-600"}}),r=N(()=>{switch(t.size){case"base":return"text-base";case"sm":return"text-sm";default:return"text-sm"}});return(s,l)=>(w(),z("div",Px,[$("div",{class:ae(["w-[34px] h-[20px] md:w-[44px] md:h-[24px] text-xs md:text-sm rounded-xl flex justify-center text-white font-mono font-medium py-0.5 px-2",[n.value,r.value]])},[s.statusCode?(w(),z("span",Mx,be(s.statusCode),1)):(w(),z("span",Ix,"999"))],2),s.reason?(w(),z("span",{key:0,class:ae([o.value,"font-bold text-sm mt-px"])},be(s.reason),3)):ie("",!0)]))}}),Bx={key:0,class:"bg-white dark:bg-gray-900 pb-6 relative"},Rx={class:"sticky top-0 bg-white dark:bg-gray-900 z-20"},Dx={class:"px-6 pt-6 flex flex-col md:flex-row items-start justify-between"},jx={class:"w-full"},Lx={class:"flex flex-col-reverse md:flex-row items-start lg:items-center w-full"},Vx={class:"w-full"},Nx={class:"flex flex-col-reverse lg:space-x-4 lg:flex-row items-start lg:items-center"},Fx={class:"font-medium truncate pt-0.5"},Hx={class:"dark:text-gray-300 text-sm"},zx={class:"text-gray-500 dark:text-gray-300 font-normal text-sm flex flex-col lg:flex-row lg:items-center lg:space-x-2 mt-3"},Kx={class:"flex items-center md:justify-end w-full mb-2 space-x-2"},Wx={class:"flex"},Ux=M({__name:"LogDetail",props:{log:{}},emits:["replay","modified-replay"],setup(e,{emit:t}){const n=t,o=I("request");return(r,s)=>r.log?(w(),z("div",Bx,[$("div",Rx,[$("div",Dx,[$("div",jx,[$("div",Lx,[$("div",Vx,[$("div",Nx,[b(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),null,{default:v(()=>[$("div",Fx,[$("span",Hx,be(r.log.request.method),1),ee(" "+be(r.log.request.uri),1)])]),_:1}),b(c(Bn),null,{default:v(()=>[ee(be(r.log.request.uri),1)]),_:1})]),_:1})]),_:1}),r.log.response?(w(),P(nf,{key:0,"status-code":r.log.response.status,reason:r.log.response.reason,class:"mb-1 lg:mb-0 mt-px"},null,8,["status-code","reason"])):ie("",!0)]),$("div",zx,[$("div",null,"Received on "+be(r.log.performed_at),1),s[5]||(s[5]=$("div",{class:"hidden lg:block"},"·",-1)),$("div",null,"Took "+be(r.log.duration)+"ms to resolve",1)])]),$("div",Kx,[$("div",Wx,[b(yl,{onClick:s[0]||(s[0]=l=>n("replay",r.log)),icon:c(yc),class:"rounded-r-none"},{default:v(()=>s[6]||(s[6]=[ee(" Replay ")])),_:1},8,["icon"]),b(yl,{onClick:s[1]||(s[1]=l=>n("modified-replay",r.log)),icon:c(Vh),class:"rounded-l-none border-l-0 px-0 pl-2.5 pr-1"},null,8,["icon"])]),b(nn,{onClick:s[2]||(s[2]=l=>c(zt)(r.log.request.curl))},{default:v(()=>s[7]||(s[7]=[ee(" Copy as cURL ")])),_:1})])])])]),b(c(Ra),{modelValue:o.value,"onUpdate:modelValue":s[3]||(s[3]=l=>o.value=l),"default-value":"request",class:"w-full mt-4"},{default:v(()=>[b(c(Wb),{class:"w-full px-6 sticky top-0"},{default:v(()=>[b(c(Da),{value:"request",class:""},{default:v(()=>s[8]||(s[8]=[ee(" Request ")])),_:1}),b(c(Da),{value:"response",class:""},{default:v(()=>s[9]||(s[9]=[ee(" Response ")])),_:1})]),_:1})]),_:1},8,["modelValue"])]),$("div",null,[b(c(Ra),{modelValue:o.value,"onUpdate:modelValue":s[4]||(s[4]=l=>o.value=l),"default-value":"request"},{default:v(()=>[b(c(ja),{value:"request"},{default:v(()=>[b(wx,{request:r.log.request},null,8,["request"])]),_:1}),b(c(ja),{value:"response"},{default:v(()=>[b($x,{response:r.log.response},null,8,["response"])]),_:1})]),_:1},8,["modelValue"])])])):ie("",!0)}});function qx(){return Array.from({length:Math.floor(Math.random()*3)+1},(e,t)=>`https://beyondcode-${t+1}.share.idontcare.lol`)}function Gx(){return{can_specify_subdomains:1}}const Zx={class:"text-sm flex flex-1 items-center justify-center flex-col text-center bg-gray-50 dark:bg-gray-800 h-full"},Jx={class:"border border-black/5 dark:border-[#606062] bg-[#F5F5F580] dark:bg-white/30 rounded-3xl p-2 shadow-xl"},Yx=M({__name:"EmptyState",props:{subdomains:{}},setup(e){return(t,n)=>(w(),z("div",Zx,[$("div",Jx,[b(Ad,{subdomains:t.subdomains,class:"max-w-[500px]"},null,8,["subdomains"])]),n[0]||(n[0]=$("p",{class:"font-medium text-gray-800 dark:text-white mt-10 mb-1"}," Waiting for incoming requests... ",-1)),n[1]||(n[1]=$("p",{class:"text-gray-500 dark:text-gray-400"}," Scan this QR code to open the site on a mobile device. ",-1))]))}}),Qx={class:"w-full"},Xx={class:"relative"},e1={class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"},t1={class:"pointer-events-none absolute inset-y-0 right-0 pr-1.5 flex items-center text-xs text-gray-400 font-medium"},n1=M({__name:"Search",props:{modelValue:{},class:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const o=e,r=I(),s=L0(),i=_s(o,"modelValue",n,{passive:!0});return t({focusSearch:()=>{r.value.focus()}}),(d,u)=>(w(),z("div",Qx,[$("div",Xx,[$("div",e1,[b(c(Hh),{class:"h-4 w-4 text-gray-400"})]),qo($("input",{"onUpdate:modelValue":u[0]||(u[0]=f=>Le(i)?i.value=f:null),ref_key:"input",ref:r,type:"search",class:ae(c(Ce)("h-8 w-full rounded-md bg-gray-100 dark:bg-white/10 pl-7 py-2 text-sm text-gray-800 dark:text-gray-200 focus-visible:border-transparent ring-offset-background placeholder:text-gray-400 placeholder:font-medium focus-visible:outline-none border border-transparent focus-visible:border-gray-300 dark:focus-visible:border-gray-700 disabled:cursor-not-allowed disabled:opacity-50",o.class,{"pr-11":!c(s),"pr-7":c(s)})),placeholder:"Search..."},null,2),[[us,c(i)]]),$("div",t1,[c(s)?(w(),z(Te,{key:0},[ee("⌘K")],64)):(w(),z(Te,{key:1},[ee("Ctrl+K")],64))])])]))}});/*! ***************************************************************************** +`)}return t?n+="];":n+=" ]",n}function Vr(e){if(!e||!e.headers||e.headers["Content-Type"]===null)return!1;const t=e.headers["Content-Type"];let n=t?/application\/json/g.test(t):!1;try{return e.body&&JSON.parse(e.body),n}catch{return!1}}function D0(e){if(!e||!e.headers||e.headers["Content-Type"]===null)return!1;const t=e.headers["Content-Type"];return t?/text\/html/g.test(t):!1}function j0(e){window.open(e,"_blank")}function L0(){return navigator.userAgent.indexOf("Mac OS X")!==-1}function V0(e){return Object.keys(e).some(t=>typeof e[t]=="object")}const Bn=I({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:l,...i}=n;return i}),s=Ue(r,o);return(l,i)=>(w(),M(c(By),null,{default:v(()=>[b(c(Iy),te({...c(s),...l.$attrs},{class:c(Ce)("z-50 overflow-hidden rounded-md border dark:border-[#606062] bg-gray-800 dark:bg-gray-700 px-3 py-1.5 text-xs text-white shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:v(()=>[L(l.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),Rn=I({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(w(),M(c(Py),Ke(Je(t)),{default:v(()=>[L(n.$slots,"default")]),_:3},16))}}),Dn=I({__name:"TooltipProvider",props:{delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},setup(e){const t=e;return(n,o)=>(w(),M(c(Ty),Ke(Je(t)),{default:v(()=>[L(n.$slots,"default")]),_:3},16))}}),Ed=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},N0={},F0={class:"text-xs text-gray-300 ml-2 mt-px"};function H0(e,t){return w(),z("span",F0,[L(e.$slots,"default")])}const Nr=Ed(N0,[["render",H0]]),z0={class:"sr-only"},Od=I({__name:"HeaderSingleIconButton",props:{icon:{type:[Function,Object]},tooltipText:{},shortcut:{}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,r)=>(w(),M(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),null,{default:v(()=>[P("button",{class:"p-2.5 border border-gray-200 dark:border-[#606062] rounded-sm shadow-sm bg-white dark:bg-white/10 dark:hover:bg-white/15 hover:bg-gray-50 text-gray-400 dark:text-gray-300 hover:text-gray-800 duration-150 focus:outline-0",onClick:r[0]||(r[0]=s=>n("click")),type:"button"},[(w(),M(Vn(o.icon),{class:"size-5"})),P("span",z0,pe(o.tooltipText),1)])]),_:1}),b(c(Bn),{class:"font-medium"},{default:v(()=>[P("p",null,[ee(pe(o.tooltipText)+" ",1),o.shortcut?(w(),M(Nr,{key:0},{default:v(()=>[ee(pe(o.shortcut),1)]),_:1})):ae("",!0)])]),_:1})]),_:1})]),_:1}))}}),K0=I({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),M(c(Fv),Ke(Je(c(r))),{default:v(()=>[L(s.$slots,"default")]),_:3},16))}}),W0=I({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:l,...i}=n;return i}),s=Ue(r,o);return(l,i)=>(w(),M(c(zv),null,{default:v(()=>[b(c(Kv),te(c(s),{class:c(Ce)("z-50 min-w-32 overflow-hidden rounded-md border dark:border-gray-700 bg-white dark:bg-gray-900 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=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:v(()=>[L(l.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),zs=I({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),M(c(Wv),te(c(o),{class:c(Ce)("relative flex cursor-default select-none items-center rounded-sm gap-2 px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-50 dark:focus:bg-white/10 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",r.inset&&"pl-8",t.class)}),{default:v(()=>[L(r.$slots,"default")]),_:3},16,["class"]))}}),U0=I({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const n=ht(e);return(o,r)=>(w(),M(c(Hv),te({class:"outline-none"},c(n)),{default:v(()=>[L(o.$slots,"default")]),_:3},16))}}),q0=I({__name:"Appearance",setup(e){const{system:t,store:n}=xs(),o=N(()=>n.value==="auto"?t.value:n.value),r=N(()=>o.value==="dark"?da:fa),s=l=>{n.value=l};return(l,i)=>(w(),M(c(K0),null,{default:v(()=>[b(c(U0),null,{default:v(()=>[b(Od,{icon:r.value,"tooltip-text":"Appearance"},null,8,["icon"])]),_:1}),b(c(W0),{align:"end",class:"w-[140px]"},{default:v(()=>[b(c(zs),{onClick:i[0]||(i[0]=a=>s("light")),class:"group"},{default:v(()=>[b(c(fa),{class:"size-5 text-gray-400 group-hover:text-gray-800 dark:group-hover:text-gray-300"}),i[3]||(i[3]=ee(" Light "))]),_:1}),b(c(zs),{onClick:i[1]||(i[1]=a=>s("dark")),class:"group"},{default:v(()=>[b(c(da),{class:"size-5 text-gray-400 group-hover:text-gray-800 dark:group-hover:text-gray-300"}),i[4]||(i[4]=ee(" Dark "))]),_:1}),b(c(zs),{onClick:i[2]||(i[2]=a=>s("auto")),class:"group"},{default:v(()=>[b(c(Lh),{class:"size-5 text-gray-400 group-hover:text-gray-800 dark:group-hover:text-gray-300"}),i[5]||(i[5]=ee(" System "))]),_:1})]),_:1})]),_:1}))}}),G0={class:"w-full max-w-[380px] lg:max-w-[580px] flex items-stretch border border-gray-200 dark:border-[#606062] rounded-xl overflow-hidden duration-150"},Z0=["href"],J0={class:"font-medium"},Y0=I({__name:"UrlBar",props:{subdomain:String},emits:["copy"],setup(e,{emit:t}){const n=B(sl),o=t,r=()=>{n.value=Zo,o("copy"),setTimeout(()=>{n.value=sl},1e3)};return(s,l)=>(w(),z("div",G0,[b(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),{class:"w-full"},{default:v(()=>[P("a",{href:e.subdomain,class:"flex flex-grow space-x-2 text-sm bg-gray-50 dark:bg-white/10 dark:hover:bg-white/15 hover:bg-gray-100 duration-150 px-4 py-2.5 border-r border-gray-200 dark:border-[#606062] group"},[b(c(Fh),{class:"size-5 text-gray-400 dark:text-white/50 group-hover:text-gray-800 dark:group-hover:text-white duration-150"}),P("span",J0,pe(e.subdomain),1)],8,Z0)]),_:1}),b(c(Bn),null,{default:v(()=>[l[1]||(l[1]=ee(" Open URL ")),b(Nr,null,{default:v(()=>l[0]||(l[0]=[ee("O")])),_:1})]),_:1})]),_:1})]),_:1}),b(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),{onClick:r,class:"bg-gray-50 dark:bg-white/10 dark:hover:bg-white/15 hover:bg-gray-100 duration-150 px-3 py-2.5 group duration-150"},{default:v(()=>[(w(),M(Vn(n.value),{class:"size-4 text-gray-400 dark:text-white/50 group-hover:text-gray-800 dark:group-hover:text-white duration-150"}))]),_:1}),b(c(Bn),null,{default:v(()=>[l[3]||(l[3]=ee(" Copy link ")),b(Nr,null,{default:v(()=>l[2]||(l[2]=[ee("L")])),_:1})]),_:1})]),_:1})]),_:1})]))}}),Q0={class:"py-4 px-4 md:px-6 flex flex-col md:flex-row md:items-center justify-between space-y-3 md:space-y-0 dark:bg-gray-900"},X0={class:"flex space-x-4 lg:w-3/5 justify-between"},eb={class:"flex items-center"},tb=I({__name:"Header",props:{subdomains:{}},emits:["search-updated","show-qr-code"],setup(e,{expose:t,emit:n}){const o=e,r=n,s=B(""),l=B("");ve(()=>s.value,()=>{r("search-updated",s.value)}),Ie(()=>{o.subdomains.length>0&&(l.value=o.subdomains[0])});const i=()=>{j0(l.value)},a=()=>{zt(l.value)};return t({copySubdomainToClipboard:a,openSubdomainInNewTab:i}),(d,u)=>(w(),z("div",null,[P("div",Q0,[u[2]||(u[2]=Wp('expose.dev

Expose

by Beyond Code

',1)),P("div",X0,[b(Y0,{subdomain:l.value,onCopy:a},null,8,["subdomain"]),P("div",eb,[b(Od,{onClick:u[0]||(u[0]=f=>r("show-qr-code")),icon:c(Wh),shortcut:"Q","tooltip-text":"Show QR Code"},null,8,["icon"]),u[1]||(u[1]=P("div",{class:"w-px h-6 bg-gray-200 dark:bg-white/20 mx-2 md:mx-4"},null,-1)),b(q0)])])]),u[3]||(u[3]=P("div",{class:"border-b border-gray-200 dark:border-gray-700"},null,-1))]))}}),Td=I({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),M(c(jm),Ke(Je(c(r))),{default:v(()=>[L(s.$slots,"default")]),_:3},16))}}),nb=I({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),M(c(ov),te(c(o),{class:c(Ce)("text-lg font-semibold leading-none tracking-tight",t.class)}),{default:v(()=>[L(r.$slots,"default")]),_:3},16,["class"]))}}),ob={class:"bg-white rounded-2xl py-8 dark:bg-gray-900"},rb=I({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:l,...i}=n;return i}),s=Ue(r,o);return(l,i)=>(w(),M(c(Nc),null,{default:v(()=>[b(c(qc),{class:"fixed inset-0 z-50 bg-black/20 dark:bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),b(c(Uc),te(c(s),{class:c(Ce)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border border-black/5 bg-[#F5F5F580] rounded-3xl p-2 backdrop-blur shadow-xl duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n.class)}),{default:v(()=>[P("div",ob,[L(l.$slots,"default")]),b(c(Gc),{class:"absolute right-6 top-6 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},{default:v(()=>[b(c(bc),{class:"size-4 text-gray-400"}),i[0]||(i[0]=P("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),sb={class:"relative mx-auto qr-wrapper rounded-2xl overflow-hidden border-[20px] border-white dark:border-gray-900 box-border"},lb=["src"],ib=["src"],Ad=I({__name:"QrCode",props:{subdomains:{}},setup(e){const{store:t,system:n}=xs(),o=B(t.value);return Ie(()=>{t.value==="auto"&&(o.value=n.value)}),ve(()=>t.value,()=>{t.value==="auto"&&(o.value=n.value),o.value=t.value}),(r,s)=>(w(),z("div",null,[P("div",sb,[o.value==="light"?(w(),z("img",{key:0,src:"https://image-charts.com/chart?chs=170x170&cht=qr&chl="+encodeURIComponent(r.subdomains[0]??"")+"&choe=UTF-8&chf=bg,s,FFFFFF00",alt:"QR Code",class:"mix-blend-lighten"},null,8,lb)):ae("",!0),o.value==="dark"?(w(),z("img",{key:1,src:"https://image-charts.com/chart?chs=170x170&cht=qr&chl="+encodeURIComponent(r.subdomains[0]??"")+"&choe=UTF-8&chf=bg,s,FFFFFF00&icqrb=18181B&icqrf=ffffff",alt:"QR Code",class:"mix-blend-darken"},null,8,ib)):ae("",!0)])]))}}),ab={class:"flex flex-col items-center"},ub=I({__name:"QrCodeModal",props:{subdomains:{}},setup(e,{expose:t}){const n=B(!1);return t({show:n}),(o,r)=>(w(),M(c(Td),{open:n.value,"onUpdate:open":r[0]||(r[0]=s=>n.value=s)},{default:v(()=>[b(c(rb),null,{default:v(()=>[P("div",ab,[b(Ad,{subdomains:o.subdomains},null,8,["subdomains"]),r[1]||(r[1]=P("p",{class:"text-gray-500 text-sm mb-8 dark:text-gray-400"}," Scan this QR code to open the site on a mobile device. ",-1))])]),_:1})]),_:1},8,["open"]))}}),cb=I({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),M(c(Yv),Ke(Je(c(r))),{default:v(()=>[L(s.$slots,"default")]),_:3},16))}}),db=I({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:l,...i}=n;return i}),s=Ue(r,o);return(l,i)=>(w(),M(c(ty),null,{default:v(()=>[b(c(uy),te({...c(s),...l.$attrs},{class:c(Ce)("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground dark:bg-[#303032] dark:border-[#606062] dark:text-gray-300 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=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",l.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:v(()=>[b(c(mb)),b(c(my),{class:le(c(Ce)("p-1",l.position==="popper"&&"h-[--radix-select-trigger-height] w-full min-w-[--radix-select-trigger-width]"))},{default:v(()=>[L(l.$slots,"default")]),_:3},8,["class"]),b(c(gb))]),_:3},16,["class"])]),_:3}))}}),fb=I({__name:"SelectGroup",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:o,...r}=t;return r});return(o,r)=>(w(),M(c(hy),te({class:c(Ce)("p-1 w-full",t.class)},n.value),{default:v(()=>[L(o.$slots,"default")]),_:3},16,["class"]))}}),pb={class:"absolute left-2 flex h-2.5 w-2.5 items-center justify-center"},hb=I({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),M(c(dy),te(c(o),{class:c(Ce)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-gray-50 dark:focus:bg-white/10 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t.class)}),{default:v(()=>[P("span",pb,[b(c(fy),null,{default:v(()=>[b(c(Zo),{class:"size-4"})]),_:1})]),b(c(gy),null,{default:v(()=>[L(r.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),gb=I({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),M(c(yy),te(c(o),{class:c(Ce)("flex cursor-default items-center justify-center py-1",t.class)}),{default:v(()=>[L(r.$slots,"default",{},()=>[b(c(Gl),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),mb=I({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),M(c(vy),te(c(o),{class:c(Ce)("flex cursor-default items-center justify-center py-1",t.class)}),{default:v(()=>[L(r.$slots,"default",{},()=>[b(c(Rh),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),vb=I({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),M(c(ey),te(c(o),{class:c(Ce)("flex h-10 w-full items-center justify-between rounded-md border border-gray-800/15 bg-background dark:bg-white/10 dark:border-[#606062] shadow-sm px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-0 focus:border-zinc-800/30 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:truncate text-start",t.class)}),{default:v(()=>[L(r.$slots,"default"),b(c(wy),{"as-child":""},{default:v(()=>[b(c(Bh),{class:"size-4 opacity-50 shrink-0"})]),_:1})]),_:3},16,["class"]))}}),yb=I({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,o)=>(w(),M(c(by),Ke(Je(t)),{default:v(()=>[L(n.$slots,"default")]),_:3},16))}}),bb=I({__name:"Input",props:{defaultValue:{},modelValue:{},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=_s(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(s,l)=>qo((w(),z("input",{"onUpdate:modelValue":l[0]||(l[0]=i=>Le(r)?r.value=i:null),class:le(c(Ce)("flex w-full rounded-md bg-white dark:bg-white/10 border border-gray-800/15 px-2 py-2 shadow-sm text-sm text-gray-800 dark:text-gray-200 ring-offset-background placeholder:text-gray-400 placeholder:font-medium focus-visible:outline-none focus-visible:border-zinc-800/30 dark:focus-visible:border-gray-700 disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[us,c(r)]])}}),Pa=I({__name:"Checkbox",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String]},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{},id:{},asChild:{type:Boolean},as:{},class:{},variant:{}},emits:["update:checked"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:i,...a}=n;return a}),s=N(()=>r.value.variant==="secondary"?"data-[state=checked]:bg-gray-500 text-white":"data-[state=checked]:bg-primary data-[state=checked]:border-transparent data-[state=checked]:shadow-none text-white"),l=Ue(r,o);return(i,a)=>(w(),M(c(iv),te(c(l),{class:c(Ce)("peer size-[18px] bg-white shrink-0 rounded-sm border border-gray-200 shadow-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 "+s.value,n.class)}),{default:v(()=>[b(c(av),{class:"flex h-full w-full items-center justify-center text-current"},{default:v(()=>[L(i.$slots,"default",{},()=>[b(c(Zo),{class:"size-[13px]"})])]),_:3})]),_:3},16,["class"]))}}),wb=I({__name:"Textarea",props:{class:{},defaultValue:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=_s(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(s,l)=>qo((w(),z("textarea",{"onUpdate:modelValue":l[0]||(l[0]=i=>Le(r)?r.value=i:null),class:le(c(Ce)("flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:border-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-pink-200 disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[us,c(r)]])}});function $d(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,Ia=xb,_b=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Ia(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,l=Object.keys(r).map(d=>{const u=n==null?void 0:n[d],f=s==null?void 0:s[d];if(u===null)return null;const p=Ma(u)||Ma(f);return r[d][p]}),i=n&&Object.entries(n).reduce((d,u)=>{let[f,p]=u;return p===void 0||(d[f]=p),d},{}),a=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,u)=>{let{class:f,className:p,...h}=u;return Object.entries(h).every(g=>{let[m,y]=g;return Array.isArray(y)?y.includes({...s,...i}[m]):{...s,...i}[m]===y})?[...d,f,p]:d},[]);return Ia(e,l,a,n==null?void 0:n.class,n==null?void 0:n.className)},Cb=I({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,o)=>(w(),M(c(_e),{as:n.as,"as-child":n.asChild,class:le([c(Ce)(c(kb)({variant:n.variant,size:n.size}),t.class),"primary-button text-white dark:text-gray-800"])},{default:v(()=>[L(n.$slots,"default",{},void 0,!0)]),_:3},8,["as","as-child","class"]))}}),Sb=Ed(Cb,[["__scopeId","data-v-a7974b10"]]),kb=_b("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-white hover:bg-primary/90 text-shadow",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",xs:"h-7 rounded px-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Eb={class:"bg-white rounded-2xl py-4 dark:bg-gray-900"},Ob=I({__name:"SidebarDialog",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>{const{class:l,...i}=n;return i}),s=Ue(r,o);return(l,i)=>(w(),M(c(Nc),null,{default:v(()=>[b(c(qc),{class:"fixed inset-0 z-50 bg-black/20 dark:bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),b(c(Uc),te(c(s),{style:{"animation-duration":"400ms"},class:c(Ce)("fixed right-2 top-2 bottom-2 z-50 grid w-[656px] lg:w-[800px] gap-4 border border-black/5 bg-[#F5F5F580] rounded-3xl p-2 backdrop-blur shadow-xl focus:outline-none focus-visible:outline-none focus-visible:ring-0 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-50 data-[state=open]:fade-in-50 data-[state=closed]:slide-out-to-right-[100%] data-[state=open]:slide-in-from-right-full",n.class)}),{default:v(()=>[P("div",Eb,[L(l.$slots,"default")]),b(c(Gc),{class:"absolute right-6 top-6 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus-visible:outline-none focus-visible:ring-0 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},{default:v(()=>[b(c(bc),{class:"size-4 text-gray-400"}),i[0]||(i[0]=P("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),rn=I({__name:"Accordion",props:{collapsible:{type:Boolean},disabled:{type:Boolean},dir:{},orientation:{},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),M(c($m),te(c(r),{class:"mb-6 dark:border-[#727274]"}),{default:v(()=>[L(s.$slots,"default")]),_:3},16))}}),sn=I({__name:"AccordionContent",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:o,...r}=t;return r});return(o,r)=>(w(),M(c(Im),te(n.value,{class:"overflow-hidden text-sm transition-all bg-gray-50 dark:bg-white/10 rounded-xl data-[state=open]:border-t-0 data-[state=open]:rounded-t-none data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"}),{default:v(()=>[P("div",{class:le(c(Ce)("pb-4 pt-0",t.class))},[L(o.$slots,"default")],2)]),_:3},16))}}),ln=I({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),M(c(Mm),te(c(o),{class:c(Ce)("bg-gray-50 dark:bg-white/10 border border-gray-200 dark:border-[#606062] rounded-xl overflow-hidden",t.class)}),{default:v(()=>[L(r.$slots,"default")]),_:3},16,["class"]))}}),Tb={class:"flex items-center space-x-2 text-sm text-gray-800 dark:text-white"},an=I({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:o,...r}=t;return r});return(o,r)=>(w(),M(c(Bm),{class:"flex"},{default:v(()=>[b(c(Rm),te(n.value,{class:c(Ce)("flex flex-1 items-center rounded-md justify-between bg-gray-50 dark:bg-white/10 py-2.5 pl-4 pr-2 font-medium transition-transform [&[data-state=open]>div>svg.close]:rotate-180 [&[data-state=open]>div.action]:opacity-100",t.class)}),{default:v(()=>[P("div",Tb,[L(o.$slots,"icon"),L(o.$slots,"default"),b(c(Gl),{class:"h-4 w-4 shrink-0 transition-transform duration-200 close"})]),P("div",{class:"opacity-0 action",onClick:r[0]||(r[0]=$t(()=>{},["stop"]))},[L(o.$slots,"action")])]),_:3},16,["class"])]),_:3}))}}),Ab={class:"relative w-full"},Ba=I({__name:"Table",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("div",Ab,[P("table",{class:le(c(Ce)("w-full caption-bottom text-sm",t.class))},[L(n.$slots,"default")],2)]))}}),$b={class:"relative w-full overflow-auto rounded-lg border border-gray-200 dark:border-[#606062] shadow-sm"},Yn=I({__name:"AccordionTable",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("div",$b,[P("table",{class:le([c(Ce)("w-full caption-bottom text-sm",t.class),"max-w-full table-fixed bg-white dark:bg-white/10"])},[L(n.$slots,"default")],2)]))}}),un=I({__name:"TableBody",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("tbody",{class:le(c(Ce)("[&_tr:last-child]:border-0",t.class))},[L(n.$slots,"default")],2))}}),qe=I({__name:"TableCell",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("td",{class:le(c(Ce)("p-4 align-middle [&:has([role=checkbox])]:pr-0",t.class))},[L(n.$slots,"default")],2))}}),Ks=I({__name:"TableHead",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("th",{class:le(c(Ce)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t.class))},[L(n.$slots,"default")],2))}}),Pb=I({__name:"TableHeader",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("thead",{class:le(c(Ce)("[&_tr]:border-b",t.class))},[L(n.$slots,"default")],2))}}),Qn=I({__name:"TableRow",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("tr",{class:le(c(Ce)("border-b transition-colors hover:bg-muted/50 dark:border-[#727274] data-[state=selected]:bg-muted",t.class))},[L(n.$slots,"default")],2))}}),cn=I({__name:"AccordionTableRow",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("tr",{class:le(c(Ce)("border-b dark:border-[#727274] dark:hover:bg-transparent",t.class))},[L(n.$slots,"default")],2))}}),wt=I({__name:"NarrowTableCell",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("td",{class:le(c(Ce)("px-3 py-1 align-middle",t.class))},[L(n.$slots,"default")],2))}}),Mb={class:"flex h-full w-full items-center justify-center text-current"},Ib=I({__name:"MasterCheckbox",props:{variant:{},class:{},state:{}},emits:["apply-state"],setup(e,{emit:t}){const n=e,o=B(n.state);ve(()=>n.state,i=>{o.value=i});const r=N(()=>n.variant==="secondary"?"data-[state=checked]:bg-gray-500 text-white":o.value==="checked"||o.value==="indeterminate"?"bg-primary border-transparent shadow-none text-white":"border-gray-200 shadow-sm bg-white"),s=t,l=()=>{o.value==="checked"?o.value="unchecked":(o.value==="unchecked"||o.value==="indeterminate")&&(o.value="checked"),s("apply-state",o.value)};return(i,a)=>(w(),z("div",{onClick:l,class:le(c(Ce)("peer size-[18px] shrink-0 rounded-sm border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 "+r.value,n.class))},[P("div",Mb,[o.value==="checked"?(w(),M(c(Zo),{key:0,class:"size-[13px]"})):ae("",!0),o.value==="indeterminate"?(w(),M(c(zh),{key:1,class:"size-[13px]"})):ae("",!0)])],2))}}),pr=I({__name:"TableInput",props:{defaultValue:{},modelValue:{},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=_s(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(s,l)=>qo((w(),z("input",{"onUpdate:modelValue":l[0]||(l[0]=i=>Le(r)?r.value=i:null),class:le(c(Ce)("h-8 rounded-md w-full disabled:bg-transparent disabled:text-gray-400 dark:bg-transparent focus:bg-gray-100 dark:focus:bg-white/10 focus:outline-none px-2.5 py-2 -ml-2",n.class))},null,2)),[[us,c(r)]])}}),Bb={class:"hidden lg:block"},yl=I({__name:"IconTextButton",props:{icon:{type:[Function,Object]},tooltipText:{},shortcut:{},bgClass:{}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,r)=>(w(),z("button",{class:"px-4 py-2 flex items-center space-x-2 text-sm text-gray-500 font-medium border border-gray-200 dark:border-[#606062] rounded-lg shadow-sm bg-white dark:bg-white/10 dark:hover:bg-white/15 hover:bg-gray-50 text-gray-400 dark:text-gray-300 hover:text-gray-800 duration-150 focus:outline-0",onClick:r[0]||(r[0]=s=>n("click")),type:"button"},[(w(),M(Vn(o.icon),{class:"size-4 text-gray-400"})),P("div",Bb,[L(o.$slots,"default")])]))}}),Rb={class:"flex flex-col h-[calc(100vh-4rem)]"},Db={class:"flex space-x-2 border-b dark:border-gray-700 pb-4 px-4"},jb={class:"w-[130px]"},Lb={class:"overflow-y-auto pt-4 border-b dark:border-gray-700"},Vb={class:"flex"},Nb={class:"flex"},Fb={class:"border border-gray-200 rounded-xl overflow-hidden shadow-sm bg-white dark:bg-[#444447] dark:border-[#57575A]"},Hb={class:"flex justify-end space-x-2 pt-4 px-4"},zb=I({__name:"ModifiedReplayModal",props:{currentLog:{}},emits:["replay-modified"],setup(e,{expose:t,emit:n}){const o=e,r=wn({uri:"",method:"",headers:{},body:""}),s=B(!1),l=B([]),i=B({}),a=B("headerOpen"),d=B("bodyOpen"),u=B("checked"),f=["GET","POST","PUT","PATCH","DELETE"];ve(s,T=>{T&&o.currentLog&&h()}),ve(l,()=>{R()});const p=()=>{const T=g(r.headers,l.value),S=g(i.value,l.value),$={uri:r.uri,method:r.method,headers:{...T,...S},body:r.body};fetch("/api/replay-modified",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)}),s.value=!1},h=()=>{o.currentLog&&(r.uri=o.currentLog.request.uri,r.method=o.currentLog.request.method,r.headers={...o.currentLog.request.headers},r.body=o.currentLog.request.body,l.value=Object.keys(r.headers),i.value={})},g=(T,S)=>Object.fromEntries(Object.entries(T).filter(([$])=>S.includes($))),m=T=>{l.value.includes(T)?l.value=l.value.filter(S=>S!==T):l.value=[...l.value,T]},y=(T,S)=>{const $=S.target,D=A($.value),C=Object.entries(r.headers),F=C.findIndex(([V])=>V===T);F!==-1&&(C[F]=[D,C[F][1]]),r.headers=Object.fromEntries(C),l.value.includes(T)&&(l.value=l.value.map(V=>V===T?D:V)),setTimeout(()=>{const V=document.getElementById(`value_${D}`);V&&V.focus()},0)},_=(T,S)=>{const $=S.target,D=A($.value),C=Object.entries(i.value),F=C.findIndex(([V])=>V===T);F!==-1&&(C[F]=[D,C[F][1]]),i.value=Object.fromEntries(C),l.value.includes(T)&&(l.value=l.value.map(V=>V===T?D:V)),setTimeout(()=>{const V=document.getElementById(`value_added_${D}`);V&&V.focus()},0)},A=T=>{const S=/[^a-zA-Z0-9-]/g;return T.replace(S,"-")},k=()=>{i.value.Header="Value",l.value.includes("Header")||l.value.push("Header"),Ae(()=>{const T=document.getElementById("key_added_Header");T&&T.focus()})},O=T=>{u.value=T,T==="checked"?l.value=[...Object.keys(r.headers),...Object.keys(i.value)]:l.value=[]},R=()=>{l.value.length!==Object.keys(r.headers).length?u.value="indeterminate":l.value.length===Object.keys(r.headers).length?u.value="checked":u.value="unchecked"};return t({show:s}),(T,S)=>(w(),M(c(Td),{open:s.value,"onUpdate:open":S[5]||(S[5]=$=>s.value=$)},{default:v(()=>[b(Ob,null,{default:v(()=>[P("div",Rb,[b(c(nb),null,{default:v(()=>S[6]||(S[6]=[P("h1",{class:"text-sm font-medium mb-4 px-4"}," Replay request ",-1)])),_:1}),P("div",Db,[P("div",jb,[b(c(cb),{modelValue:r.method,"onUpdate:modelValue":S[0]||(S[0]=$=>r.method=$)},{default:v(()=>[b(c(vb),null,{default:v(()=>[b(c(yb),{placeholder:r.method},null,8,["placeholder"])]),_:1}),b(c(db),null,{default:v(()=>[b(c(fb),null,{default:v(()=>[(w(),z(Te,null,Tt(f,$=>b(c(hb),{value:$,key:$},{default:v(()=>[ee(pe($),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),b(c(bb),{modelValue:r.uri,"onUpdate:modelValue":S[1]||(S[1]=$=>r.uri=$)},null,8,["modelValue"])]),P("div",Lb,[b(c(rn),{type:"single",collapsible:"",modelValue:a.value,"onUpdate:modelValue":S[2]||(S[2]=$=>a.value=$),class:"mx-4"},{default:v(()=>[b(c(ln),{value:"headerOpen"},{default:v(()=>[b(c(an),null,{icon:v(()=>[b(c(Ir),{class:"size-4"})]),default:v(()=>[S[7]||(S[7]=P("div",null,"Headers",-1))]),_:1}),b(c(sn),{class:"p-2"},{default:v(()=>[b(c(Yn),null,{default:v(()=>[b(c(Qn),{class:"text-[13px] text-gray-500 dark:text-gray-300 dark:border-[#606062] dark:hover:bg-transparent"},{default:v(()=>[b(wt,{class:"w-[32px] py-2.5"},{default:v(()=>[b(Ib,{state:u.value,onApplyState:O},null,8,["state"])]),_:1}),b(wt,{class:"w-5/12"},{default:v(()=>S[8]||(S[8]=[ee("Key")])),_:1}),b(wt,null,{default:v(()=>S[9]||(S[9]=[ee("Value")])),_:1})]),_:1}),b(c(un),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(r.headers,($,D)=>(w(),M(c(cn),{key:"header_"+D,class:le({"bg-gray-50 dark:bg-[#303032] dark:hover:bg-[#303032]":!l.value.includes(D)})},{default:v(()=>[b(wt,{class:"w-[42px]"},{default:v(()=>[P("div",Vb,[b(c(Pa),{checked:l.value.includes(D),"onUpdate:checked":C=>m(D)},null,8,["checked","onUpdate:checked"])])]),_:2},1024),b(wt,{class:le(["text-gray-500 dark:text-gray-300 text-[13px] align-middle",{"text-gray-400":!l.value.includes(D)}])},{default:v(()=>[b(pr,{"model-value":D,onChange:C=>y(D,C),disabled:!l.value.includes(D)},null,8,["model-value","onChange","disabled"])]),_:2},1032,["class"]),b(wt,{class:le(["text-gray-800 dark:text-white py-0 pt-1 pb-1",{"text-gray-400":!l.value.includes(D)}])},{default:v(()=>[b(pr,{id:"value_"+D,modelValue:r.headers[D],"onUpdate:modelValue":C=>r.headers[D]=C,disabled:!l.value.includes(D)},null,8,["id","modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["class"])]),_:2},1032,["class"]))),128)),(w(!0),z(Te,null,Tt(i.value,($,D)=>(w(),M(c(cn),{key:"added_header_"+D,class:le({"bg-gray-50":!l.value.includes(D)})},{default:v(()=>[b(wt,{class:"w-[42px]"},{default:v(()=>[P("div",Nb,[b(c(Pa),{checked:l.value.includes(D),"onUpdate:checked":C=>m(D)},null,8,["checked","onUpdate:checked"])])]),_:2},1024),b(wt,{class:le(["text-gray-500 dark:text-gray-300 text-[13px] align-middle",{"text-gray-400":!l.value.includes(D)}])},{default:v(()=>[b(pr,{"model-value":D,onChange:C=>_(D,C),id:"key_added_"+D,disabled:!l.value.includes(D)},null,8,["model-value","onChange","id","disabled"])]),_:2},1032,["class"]),b(wt,{class:le(["text-gray-800 dark:text-white",{"text-gray-400":!l.value.includes(D)}])},{default:v(()=>[b(pr,{id:"value_added_"+D,modelValue:i.value[D],"onUpdate:modelValue":C=>i.value[D]=C,disabled:!l.value.includes(D)},null,8,["id","modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["class"])]),_:2},1032,["class"]))),128)),b(c(cn),{onClick:k,class:"bg-gray-50 dark:bg-[#303032] dark:hover:bg-[#303032] cursor-pointer text-gray-500 dark:text-gray-300 font-medium font-sans"},{default:v(()=>[b(wt,{class:"py-2.5 w-[42px]"},{default:v(()=>[b(c(Kh),{class:"size-4 mb-0.5"})]),_:1}),b(wt,{colspan:"2",class:"pl-1.5"},{default:v(()=>S[10]||(S[10]=[ee(" Add new header ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),b(c(rn),{type:"single",collapsible:"",modelValue:d.value,"onUpdate:modelValue":S[4]||(S[4]=$=>d.value=$),class:"mx-4"},{default:v(()=>[b(c(ln),{value:"bodyOpen"},{default:v(()=>[b(c(an),null,{icon:v(()=>[b(c(Zl),{class:"size-4"})]),default:v(()=>[S[11]||(S[11]=P("div",null,"Body",-1))]),_:1}),b(c(sn),{class:"p-2"},{default:v(()=>[P("div",Fb,[b(c(wb),{modelValue:r.body,"onUpdate:modelValue":S[3]||(S[3]=$=>r.body=$),class:"min-h-[200px] font-mono border-0 dark:bg-[#444447]"},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),P("div",Hb,[b(yl,{icon:c(Ph),onClick:h},{default:v(()=>S[12]||(S[12]=[ee("Reset")])),_:1},8,["icon"]),b(c(Sb),{onClick:p,class:"flex"},{default:v(()=>[b(c(yc),{class:"size-4 mr-1"}),S[13]||(S[13]=P("div",null,"Replay",-1))]),_:1})])])]),_:1})]),_:1},8,["open"]))}}),Ra=I({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=Ue(e,t);return(s,l)=>(w(),M(c(Cy),Ke(Je(c(r))),{default:v(()=>[L(s.$slots,"default")]),_:3},16))}}),Kb={class:"truncate"},Da=I({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:r,...s}=t;return s}),o=ht(n);return(r,s)=>(w(),M(c(Ey),te(c(o),{class:c(Ce)("inline-flex items-center justify-center whitespace-nowrap pt-3 pb-4 text-sm text-gray-400 font-medium border-b-2 border-transparent ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-primary data-[state=active]:border-primary",t.class)}),{default:v(()=>[P("span",Kb,[L(r.$slots,"default")])]),_:3},16,["class"]))}}),Wb=I({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:o,...r}=t;return r});return(o,r)=>(w(),M(c(Sy),te(n.value,{class:c(Ce)("flex items-center justify-start space-x-4 border-b dark:border-gray-700",t.class)}),{default:v(()=>[L(o.$slots,"default")]),_:3},16,["class"]))}}),ja=I({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=N(()=>{const{class:o,...r}=t;return r});return(o,r)=>(w(),M(c(ky),te({class:c(Ce)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t.class)},n.value),{default:v(()=>[L(o.$slots,"default")]),_:3},16,["class"]))}}),Ub={class:"opacity-100 group-hover:opacity-100 transition-150 text-gray-400 absolute -top-0.5 -right-0.5 border p-px rounded-sm"},bl=I({__name:"RowAccordionButton",props:{rotate:Boolean},setup(e){return(t,n)=>(w(),z("button",Ub,[b(c(Gl),{class:le(["size-4 transform animate duration-150",{"rotate-180":e.rotate}])},null,8,["class"])]))}}),$o=/^[a-z0-9]+(-[a-z0-9]+)*$/,Cs=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const i=r.pop(),a=r.pop(),d={provider:r.length>0?r[0]:o,prefix:a,name:i};return t&&!xr(d)?null:d}const s=r[0],l=s.split("-");if(l.length>1){const i={provider:o,prefix:l.shift(),name:l.join("-")};return t&&!xr(i)?null:i}if(n&&o===""){const i={provider:o,prefix:"",name:s};return t&&!xr(i,n)?null:i}return null},xr=(e,t)=>e?!!((e.provider===""||e.provider.match($o))&&(t&&e.prefix===""||e.prefix.match($o))&&e.name.match($o)):!1,Pd=Object.freeze({left:0,top:0,width:16,height:16}),Fr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ss=Object.freeze({...Pd,...Fr}),wl=Object.freeze({...Ss,body:"",hidden:!1});function qb(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function La(e,t){const n=qb(e,t);for(const o in wl)o in Fr?o in e&&!(o in n)&&(n[o]=Fr[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Gb(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function s(l){if(n[l])return r[l]=[];if(!(l in r)){r[l]=null;const i=o[l]&&o[l].parent,a=i&&s(i);a&&(r[l]=[i].concat(a))}return r[l]}return Object.keys(n).concat(Object.keys(o)).forEach(s),r}function Zb(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let s={};function l(i){s=La(o[i]||r[i],s)}return l(t),n.forEach(l),La(e,s)}function Md(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=Gb(e);for(const r in o){const s=o[r];s&&(t(r,Zb(e,r,s)),n.push(r))}return n}const Jb={provider:"",aliases:{},not_found:{},...Pd};function Ws(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Id(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ws(e,Jb))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r.match($o)||typeof s.body!="string"||!Ws(s,wl))return null}const o=t.aliases||Object.create(null);for(const r in o){const s=o[r],l=s.parent;if(!r.match($o)||typeof l!="string"||!n[l]&&!o[l]||!Ws(s,wl))return null}return t}const Va=Object.create(null);function Yb(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function jn(e,t){const n=Va[e]||(Va[e]=Object.create(null));return n[t]||(n[t]=Yb(e,t))}function xi(e,t){return Id(t)?Md(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function Qb(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ho=!1;function Bd(e){return typeof e=="boolean"&&(Ho=e),Ho}function Xb(e){const t=typeof e=="string"?Cs(e,!0,Ho):e;if(t){const n=jn(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function ew(e,t){const n=Cs(e,!0,Ho);if(!n)return!1;const o=jn(n.provider,n.prefix);return Qb(o,n.name,t)}function tw(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ho&&!t&&!e.prefix){let r=!1;return Id(e)&&(e.prefix="",Md(e,(s,l)=>{l&&ew(s,l)&&(r=!0)})),r}const n=e.prefix;if(!xr({provider:t,prefix:n,name:"a"}))return!1;const o=jn(t,n);return!!xi(o,e)}const Rd=Object.freeze({width:null,height:null}),Dd=Object.freeze({...Rd,...Fr}),nw=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ow=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Na(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(nw);if(o===null||!o.length)return e;const r=[];let s=o.shift(),l=ow.test(s);for(;;){if(l){const i=parseFloat(s);isNaN(i)?r.push(s):r.push(Math.ceil(i*t*n)/n)}else r.push(s);if(s=o.shift(),s===void 0)return r.join("");l=!l}}function rw(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const r=e.indexOf(">",o),s=e.indexOf("",s);if(l===-1)break;n+=e.slice(r+1,s).trim(),e=e.slice(0,o).trim()+e.slice(l+1)}return{defs:n,content:e}}function sw(e,t){return e?""+e+""+t:t}function lw(e,t,n){const o=rw(e);return sw(o.defs,t+o.content+n)}const iw=e=>e==="unset"||e==="undefined"||e==="none";function aw(e,t){const n={...Ss,...e},o={...Dd,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,o].forEach(m=>{const y=[],_=m.hFlip,A=m.vFlip;let k=m.rotate;_?A?k+=2:(y.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),y.push("scale(-1 1)"),r.top=r.left=0):A&&(y.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),y.push("scale(1 -1)"),r.top=r.left=0);let O;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:O=r.height/2+r.top,y.unshift("rotate(90 "+O.toString()+" "+O.toString()+")");break;case 2:y.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:O=r.width/2+r.left,y.unshift("rotate(-90 "+O.toString()+" "+O.toString()+")");break}k%2===1&&(r.left!==r.top&&(O=r.left,r.left=r.top,r.top=O),r.width!==r.height&&(O=r.width,r.width=r.height,r.height=O)),y.length&&(s=lw(s,'',""))});const l=o.width,i=o.height,a=r.width,d=r.height;let u,f;l===null?(f=i===null?"1em":i==="auto"?d:i,u=Na(f,a/d)):(u=l==="auto"?a:l,f=i===null?Na(u,d/a):i==="auto"?d:i);const p={},h=(m,y)=>{iw(y)||(p[m]=y.toString())};h("width",u),h("height",f);const g=[r.left,r.top,a,d];return p.viewBox=g.join(" "),{attributes:p,viewBox:g,body:s}}const uw=/\sid="(\S+)"/g,cw="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let dw=0;function fw(e,t=cw){const n=[];let o;for(;o=uw.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const l=typeof t=="function"?t(s):t+(dw++).toString(),i=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+l+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const xl=Object.create(null);function pw(e,t){xl[e]=t}function _l(e){return xl[e]||xl[""]}function _i(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ci=Object.create(null),_o=["https://api.simplesvg.com","https://api.unisvg.com"],_r=[];for(;_o.length>0;)_o.length===1||Math.random()>.5?_r.push(_o.shift()):_r.push(_o.pop());Ci[""]=_i({resources:["https://api.iconify.design"].concat(_r)});function hw(e,t){const n=_i(t);return n===null?!1:(Ci[e]=n,!0)}function Si(e){return Ci[e]}const gw=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Fa=gw();function mw(e,t){const n=Si(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(l=>{r=Math.max(r,l.length)});const s=t+".json?icons=";o=n.maxURL-r-n.path.length-s.length}return o}function vw(e){return e===404}const yw=(e,t,n)=>{const o=[],r=mw(e,t),s="icons";let l={type:s,provider:e,prefix:t,icons:[]},i=0;return n.forEach((a,d)=>{i+=a.length+1,i>=r&&d>0&&(o.push(l),l={type:s,provider:e,prefix:t,icons:[]},i=a.length),l.icons.push(a)}),o.push(l),o};function bw(e){if(typeof e=="string"){const t=Si(e);if(t)return t.path}return"/"}const ww=(e,t,n)=>{if(!Fa){n("abort",424);return}let o=bw(t.provider);switch(t.type){case"icons":{const s=t.prefix,i=t.icons.join(","),a=new URLSearchParams({icons:i});o+=s+".json?"+a.toString();break}case"custom":{const s=t.uri;o+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let r=503;Fa(e+o).then(s=>{const l=s.status;if(l!==200){setTimeout(()=>{n(vw(l)?"abort":"next",l)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",r)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",r)})},xw={prepare:yw,send:ww};function _w(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const s=r.provider,l=r.prefix,i=r.name,a=n[s]||(n[s]=Object.create(null)),d=a[l]||(a[l]=jn(s,l));let u;i in d.icons?u=t.loaded:l===""||d.missing.has(i)?u=t.missing:u=t.pending;const f={provider:s,prefix:l,name:i};u.push(f)}),t}function jd(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function Cw(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(s=>{const l=s.icons,i=l.pending.length;l.pending=l.pending.filter(a=>{if(a.prefix!==r)return!0;const d=a.name;if(e.icons[d])l.loaded.push({provider:o,prefix:r,name:d});else if(e.missing.has(d))l.missing.push({provider:o,prefix:r,name:d});else return n=!0,!0;return!1}),l.pending.length!==i&&(n||jd([e],s.id),s.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),s.abort))})}))}let Sw=0;function kw(e,t,n){const o=Sw++,r=jd.bind(null,n,o);if(!t.pending.length)return r;const s={id:o,icons:t,callback:e,abort:r};return n.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(s)}),r}function Ew(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const s=typeof r=="string"?Cs(r,t,n):r;s&&o.push(s)}),o}var Ow={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Tw(e,t,n,o){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let l;if(e.random){let T=e.resources.slice(0);for(l=[];T.length>1;){const S=Math.floor(Math.random()*T.length);l.push(T[S]),T=T.slice(0,S).concat(T.slice(S+1))}l=l.concat(T)}else l=e.resources.slice(s).concat(e.resources.slice(0,s));const i=Date.now();let a="pending",d=0,u,f=null,p=[],h=[];typeof o=="function"&&h.push(o);function g(){f&&(clearTimeout(f),f=null)}function m(){a==="pending"&&(a="aborted"),g(),p.forEach(T=>{T.status==="pending"&&(T.status="aborted")}),p=[]}function y(T,S){S&&(h=[]),typeof T=="function"&&h.push(T)}function _(){return{startTime:i,payload:t,status:a,queriesSent:d,queriesPending:p.length,subscribe:y,abort:m}}function A(){a="failed",h.forEach(T=>{T(void 0,u)})}function k(){p.forEach(T=>{T.status==="pending"&&(T.status="aborted")}),p=[]}function O(T,S,$){const D=S!=="success";switch(p=p.filter(C=>C!==T),a){case"pending":break;case"failed":if(D||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=$,A();return}if(D){u=$,p.length||(l.length?R():A());return}if(g(),k(),!e.random){const C=e.resources.indexOf(T.resource);C!==-1&&C!==e.index&&(e.index=C)}a="completed",h.forEach(C=>{C($)})}function R(){if(a!=="pending")return;g();const T=l.shift();if(T===void 0){if(p.length){f=setTimeout(()=>{g(),a==="pending"&&(k(),A())},e.timeout);return}A();return}const S={status:"pending",resource:T,callback:($,D)=>{O(S,$,D)}};p.push(S),d++,f=setTimeout(R,e.rotate),n(T,t,S.callback)}return setTimeout(R),_}function Ld(e){const t={...Ow,...e};let n=[];function o(){n=n.filter(i=>i().status==="pending")}function r(i,a,d){const u=Tw(t,i,a,(f,p)=>{o(),d&&d(f,p)});return n.push(u),u}function s(i){return n.find(a=>i(a))||null}return{query:r,find:s,setIndex:i=>{t.index=i},getIndex:()=>t.index,cleanup:o}}function Ha(){}const Us=Object.create(null);function Aw(e){if(!Us[e]){const t=Si(e);if(!t)return;const n=Ld(t),o={config:t,redundancy:n};Us[e]=o}return Us[e]}function $w(e,t,n){let o,r;if(typeof e=="string"){const s=_l(e);if(!s)return n(void 0,424),Ha;r=s.send;const l=Aw(e);l&&(o=l.redundancy)}else{const s=_i(e);if(s){o=Ld(s);const l=e.resources?e.resources[0]:"",i=_l(l);i&&(r=i.send)}}return!o||!r?(n(void 0,424),Ha):o.query(t,r,n)().abort}const za="iconify2",zo="iconify",Vd=zo+"-count",Ka=zo+"-version",Nd=36e5,Pw=168,Mw=50;function Cl(e,t){try{return e.getItem(t)}catch{}}function ki(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Wa(e,t){try{e.removeItem(t)}catch{}}function Sl(e,t){return ki(e,Vd,t.toString())}function kl(e){return parseInt(Cl(e,Vd))||0}const ks={local:!0,session:!0},Fd={local:new Set,session:new Set};let Ei=!1;function Iw(e){Ei=e}let hr=typeof window>"u"?{}:window;function Hd(e){const t=e+"Storage";try{if(hr&&hr[t]&&typeof hr[t].length=="number")return hr[t]}catch{}ks[e]=!1}function zd(e,t){const n=Hd(e);if(!n)return;const o=Cl(n,Ka);if(o!==za){if(o){const i=kl(n);for(let a=0;a{const a=zo+i.toString(),d=Cl(n,a);if(typeof d=="string"){try{const u=JSON.parse(d);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,i))return!0}catch{}Wa(n,a)}};let l=kl(n);for(let i=l-1;i>=0;i--)s(i)||(i===l-1?(l--,Sl(n,l)):Fd[e].add(i))}function Kd(){if(!Ei){Iw(!0);for(const e in ks)zd(e,t=>{const n=t.data,o=t.provider,r=n.prefix,s=jn(o,r);if(!xi(s,n).length)return!1;const l=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,l):l,!0})}}function Bw(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in ks)zd(o,r=>{const s=r.data;return r.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Rw(e,t){Ei||Kd();function n(o){let r;if(!ks[o]||!(r=Hd(o)))return;const s=Fd[o];let l;if(s.size)s.delete(l=Array.from(s).shift());else if(l=kl(r),l>=Mw||!Sl(r,l+1))return;const i={cached:Math.floor(Date.now()/Nd),provider:e.provider,data:t};return ki(r,zo+l.toString(),JSON.stringify(i))}t.lastModified&&!Bw(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ua(){}function Dw(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Cw(e)}))}function jw(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let s;if(!r||!(s=_l(n)))return;s.prepare(n,o,r).forEach(i=>{$w(n,i,a=>{if(typeof a!="object")i.icons.forEach(d=>{e.missing.add(d)});else try{const d=xi(e,a);if(!d.length)return;const u=e.pendingIcons;u&&d.forEach(f=>{u.delete(f)}),Rw(e,a)}catch(d){console.error(d)}Dw(e)})})}))}const Lw=(e,t)=>{const n=Ew(e,!0,Bd()),o=_w(n);if(!o.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(o.loaded,o.missing,o.pending,Ua)}),()=>{a=!1}}const r=Object.create(null),s=[];let l,i;return o.pending.forEach(a=>{const{provider:d,prefix:u}=a;if(u===i&&d===l)return;l=d,i=u,s.push(jn(d,u));const f=r[d]||(r[d]=Object.create(null));f[u]||(f[u]=[])}),o.pending.forEach(a=>{const{provider:d,prefix:u,name:f}=a,p=jn(d,u),h=p.pendingIcons||(p.pendingIcons=new Set);h.has(f)||(h.add(f),r[d][u].push(f))}),s.forEach(a=>{const{provider:d,prefix:u}=a;r[d][u].length&&jw(a,r[d][u])}),t?kw(t,o,s):Ua};function Vw(e,t){const n={...e};for(const o in t){const r=t[o],s=typeof r;o in Rd?(r===null||r&&(s==="string"||s==="number"))&&(n[o]=r):s===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const Nw=/[\s,]+/;function Fw(e,t){t.split(Nw).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Hw(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/r,s%1===0?o(s):0)}}return t}function zw(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'"+e+""}function Kw(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ww(e){return"data:image/svg+xml,"+Kw(e)}function Uw(e){return'url("'+Ww(e)+'")'}const qa={...Dd,inline:!1},qw={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Gw={display:"inline-block"},El={backgroundColor:"currentColor"},Wd={backgroundColor:"transparent"},Ga={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Za={webkitMask:El,mask:El,background:Wd};for(const e in Za){const t=Za[e];for(const n in Ga)t[e+n]=Ga[n]}const Cr={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Cr[e+"-flip"]=t,Cr[e.slice(0,1)+"-flip"]=t,Cr[e+"Flip"]=t});function Ja(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ya=(e,t)=>{const n=Vw(qa,t),o={...qw},r=t.mode||"svg",s={},l=t.style,i=typeof l=="object"&&!(l instanceof Array)?l:{};for(let m in t){const y=t[m];if(y!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[m]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&Fw(n,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?n[m]=Hw(y):typeof y=="number"&&(n[m]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete o["aria-hidden"];break;default:{const _=Cr[m];_?(y===!0||y==="true"||y===1)&&(n[_]=!0):qa[m]===void 0&&(o[m]=y)}}}const a=aw(e,n),d=a.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),r==="svg"){o.style={...s,...i},Object.assign(o,d);let m=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),o.innerHTML=fw(a.body,y?()=>y+"ID"+m++:"iconifyVue"),we("svg",o)}const{body:u,width:f,height:p}=e,h=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),g=zw(u,{...d,width:f+"",height:p+""});return o.style={...s,"--svg":Uw(g),width:Ja(d.width),height:Ja(d.height),...Gw,...h?El:Wd,...i},we("span",o)};Bd(!0);pw("",xw);if(typeof document<"u"&&typeof window<"u"){Kd();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!tw(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;hw(n,r)||console.error(o)}catch{console.error(o)}}}}const Zw={...Ss,body:""},Jw=I({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=Cs(e,!1,!0))===null)return this.abortLoading(),null;const o=Xb(n);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:Lw([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:o,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return Ya(Zw,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Ya({...Ss,...t.data},n)}});function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}var Yw=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Ud={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(){var t=this.jsonValue,n=Yw.test(t),o;return this.expand?(o={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},n?(t='').concat(t,""),o.innerHTML='"'.concat(t.toString(),'"')):o.innerText='"'.concat(t.toString(),'"')):o={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},we("span",{},[this.canExtend&&we("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),we("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),we("span",o)])}};Ud.__file="src/Components/types/json-string.vue";var qd={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(){return we("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:this.jsonValue===null?"null":"undefined"})}};qd.__file="src/Components/types/json-undefined.vue";var Gd={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(){var t=Number.isInteger(this.jsonValue);return we("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":t,"jv-number-float":!t},innerText:this.jsonValue.toString()})}};Gd.__file="src/Components/types/json-number.vue";var Zd={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(){return we("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:this.jsonValue.toString()})}};Zd.__file="src/Components/types/json-boolean.vue";var Jd={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,sort:Boolean,previewMode:Boolean},data:function(){return{value:{}}},computed:{ordered:function(){var t=this;if(!this.sort)return this.value;var n={};return Object.keys(this.value).sort().forEach(function(o){n[o]=t.value[o]}),n}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t){var n=this;setTimeout(function(){n.value=t},0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t=[];if(!this.previewMode&&!this.keyName&&t.push(we("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),t.push(we("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"})),this.expand){for(var n in this.ordered)if(this.ordered.hasOwnProperty(n)){var o=this.ordered[n];t.push(we(Es,{key:n,style:{display:this.expand?void 0:"none"},sort:this.sort,keyName:n,depth:this.depth+1,value:o,previewMode:this.previewMode}))}}return!this.expand&&Object.keys(this.value).length&&t.push(we("span",{style:{display:this.expand?"none":void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal object content (keys: ".concat(Object.keys(this.ordered).join(", "),")"),innerText:"..."})),t.push(we("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),we("span",t)}};Jd.__file="src/Components/types/json-object.vue";var Yd={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,previewMode:Boolean},data:function(){return{value:[]}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;o===0&&(this.value=[]),setTimeout(function(){t.length>o&&(n.value.push(t[o]),n.setValue(t,o+1))},0)},toggle:function(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch{var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t=this,n=[];return!this.previewMode&&!this.keyName&&n.push(we("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),n.push(we("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["})),this.expand&&this.value.forEach(function(o,r){n.push(we(Es,{key:r,style:{display:t.expand?void 0:"none"},sort:t.sort,depth:t.depth+1,value:o,previewMode:t.previewMode}))}),!this.expand&&this.value.length&&n.push(we("span",{style:{display:void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal ".concat(this.value.length," hidden items"),innerText:"..."})),n.push(we("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),we("span",n)}};Yd.__file="src/Components/types/json-array.vue";var Qd={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(){return we("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:this.jsonValue.toString()},innerHTML:"<function>"})}};Qd.__file="src/Components/types/json-function.vue";var Xd={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(){var t=this.jsonValue,n=this.timeformat;return we("span",{class:{"jv-item":!0,"jv-string":!0},innerText:'"'.concat(n(t),'"')})}};Xd.__file="src/Components/types/json-date.vue";var Qw=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,ef={name:"JsonString",props:{jsonValue:{type:RegExp,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(){var t=this.jsonValue,n=Qw.test(t),o;return this.expand?(o={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},n?(t='').concat(t,""),o.innerHTML="".concat(t.toString())):o.innerText="".concat(t.toString())):o={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},we("span",{},[this.canExtend&&we("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),we("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),we("span",o)])}};ef.__file="src/Components/types/json-regexp.vue";var Es={name:"JsonBox",inject:["expandDepth","keyClick"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean},data:function(){return{expand:!0}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)},methods:{toggle:function(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch{var t=document.createEvent("Event");t.initEvent("resized",!0,!1),this.$el.dispatchEvent(t)}}},render:function(){var t=this,n=[],o;this.value===null||this.value===void 0?o=qd:Array.isArray(this.value)?o=Yd:Object.prototype.toString.call(this.value)==="[object Date]"?o=Xd:this.value.constructor===RegExp?o=ef:Hr(this.value)==="object"?o=Jd:typeof this.value=="number"?o=Gd:typeof this.value=="string"?o=Ud:typeof this.value=="boolean"?o=Zd:typeof this.value=="function"&&(o=Qd);var r=this.keyName&&this.value&&(Array.isArray(this.value)||Hr(this.value)==="object"&&Object.prototype.toString.call(this.value)!=="[object Date]");return!this.previewMode&&r&&n.push(we("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),this.keyName&&n.push(we("span",{class:{"jv-key":!0},onClick:function(){t.keyClick(t.keyName)},innerText:"".concat(this.keyName,":")})),n.push(we(o,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,"onUpdate:expand":function(l){t.expand=l}})),we("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!r,toggle:!this.previewMode&&r}},n)}};Es.__file="src/Components/json-box.vue";var Xw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ex(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tf={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(Xw,function(){return function(){var n={686:function(s,l,i){i.d(l,{default:function(){return st}});var a=i(279),d=i.n(a),u=i(370),f=i.n(u),p=i(817),h=i.n(p);function g(Y){try{return document.execCommand(Y)}catch{return!1}}var m=function(Q){var X=h()(Q);return g("cut"),X},y=m;function _(Y){var Q=document.documentElement.getAttribute("dir")==="rtl",X=document.createElement("textarea");X.style.fontSize="12pt",X.style.border="0",X.style.padding="0",X.style.margin="0",X.style.position="absolute",X.style[Q?"right":"left"]="-9999px";var he=window.pageYOffset||document.documentElement.scrollTop;return X.style.top="".concat(he,"px"),X.setAttribute("readonly",""),X.value=Y,X}var A=function(Q){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},he="";if(typeof Q=="string"){var re=_(Q);X.container.appendChild(re),he=h()(re),g("copy"),re.remove()}else he=h()(Q),g("copy");return he},k=A;function O(Y){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(X){return typeof X}:O=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},O(Y)}var R=function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},X=Q.action,he=X===void 0?"copy":X,re=Q.container,ge=Q.target,je=Q.text;if(he!=="copy"&&he!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(ge!==void 0)if(ge&&O(ge)==="object"&&ge.nodeType===1){if(he==="copy"&&ge.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(he==="cut"&&(ge.hasAttribute("readonly")||ge.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(je)return k(je,{container:re});if(ge)return he==="cut"?y(ge):k(ge,{container:re})},T=R;function S(Y){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(X){return typeof X}:S=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},S(Y)}function $(Y,Q){if(!(Y instanceof Q))throw new TypeError("Cannot call a class as a function")}function D(Y,Q){for(var X=0;X"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function fe(Y){return fe=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||Object.getPrototypeOf(X)},fe(Y)}function ue(Y,Q){var X="data-clipboard-".concat(Y);if(Q.hasAttribute(X))return Q.getAttribute(X)}var Be=function(Y){F(X,Y);var Q=xe(X);function X(he,re){var ge;return $(this,X),ge=Q.call(this),ge.resolveOptions(re),ge.listenClick(he),ge}return C(X,[{key:"resolveOptions",value:function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof re.action=="function"?re.action:this.defaultAction,this.target=typeof re.target=="function"?re.target:this.defaultTarget,this.text=typeof re.text=="function"?re.text:this.defaultText,this.container=S(re.container)==="object"?re.container:document.body}},{key:"listenClick",value:function(re){var ge=this;this.listener=f()(re,"click",function(je){return ge.onClick(je)})}},{key:"onClick",value:function(re){var ge=re.delegateTarget||re.currentTarget,je=this.action(ge)||"copy",He=T({action:je,container:this.container,target:this.target(ge),text:this.text(ge)});this.emit(He?"success":"error",{action:je,text:He,trigger:ge,clearSelection:function(){ge&&ge.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(re){return ue("action",re)}},{key:"defaultTarget",value:function(re){var ge=ue("target",re);if(ge)return document.querySelector(ge)}},{key:"defaultText",value:function(re){return ue("text",re)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(re){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return k(re,ge)}},{key:"cut",value:function(re){return y(re)}},{key:"isSupported",value:function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],ge=typeof re=="string"?[re]:re,je=!!document.queryCommandSupported;return ge.forEach(function(He){je=je&&!!document.queryCommandSupported(He)}),je}}]),X}(d()),st=Be},828:function(s){var l=9;if(typeof Element<"u"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(d,u){for(;d&&d.nodeType!==l;){if(typeof d.matches=="function"&&d.matches(u))return d;d=d.parentNode}}s.exports=a},438:function(s,l,i){var a=i(828);function d(p,h,g,m,y){var _=f.apply(this,arguments);return p.addEventListener(g,_,y),{destroy:function(){p.removeEventListener(g,_,y)}}}function u(p,h,g,m,y){return typeof p.addEventListener=="function"?d.apply(null,arguments):typeof g=="function"?d.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(_){return d(_,h,g,m,y)}))}function f(p,h,g,m){return function(y){y.delegateTarget=a(y.target,h),y.delegateTarget&&m.call(p,y)}}s.exports=u},879:function(s,l){l.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},l.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||l.node(i[0]))},l.string=function(i){return typeof i=="string"||i instanceof String},l.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(s,l,i){var a=i(879),d=i(438);function u(g,m,y){if(!g&&!m&&!y)throw new Error("Missing required arguments");if(!a.string(m))throw new TypeError("Second argument must be a String");if(!a.fn(y))throw new TypeError("Third argument must be a Function");if(a.node(g))return f(g,m,y);if(a.nodeList(g))return p(g,m,y);if(a.string(g))return h(g,m,y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(g,m,y){return g.addEventListener(m,y),{destroy:function(){g.removeEventListener(m,y)}}}function p(g,m,y){return Array.prototype.forEach.call(g,function(_){_.addEventListener(m,y)}),{destroy:function(){Array.prototype.forEach.call(g,function(_){_.removeEventListener(m,y)})}}}function h(g,m,y){return d(document.body,g,m,y)}s.exports=u},817:function(s){function l(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var d=i.hasAttribute("readonly");d||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),d||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(i),u.removeAllRanges(),u.addRange(f),a=u.toString()}return a}s.exports=l},279:function(s){function l(){}l.prototype={on:function(i,a,d){var u=this.e||(this.e={});return(u[i]||(u[i]=[])).push({fn:a,ctx:d}),this},once:function(i,a,d){var u=this;function f(){u.off(i,f),a.apply(d,arguments)}return f._=a,this.on(i,f,d)},emit:function(i){var a=[].slice.call(arguments,1),d=((this.e||(this.e={}))[i]||[]).slice(),u=0,f=d.length;for(u;u=250?t.expandableCode=!0:t.expandableCode=!1)})},keyClick:function(t){this.$emit("onKeyClick",t)},onCopied:function(t){var n=this;this.copied||(this.copied=!0,setTimeout(function(){n.copied=!1},this.copyText.timeout),this.$emit("copied",t))},toggleExpandCode:function(){this.expandCode=!this.expandCode}}};function ox(e,t,n,o,r,s){var l=dp("json-box");return w(),z("div",{class:le(s.jvClass)},[n.copyable?(w(),z("div",{key:0,class:le("jv-tooltip ".concat(s.copyText.align||"right"))},[P("span",{ref:"clip",class:le(["jv-button",{copied:r.copied}])},[L(e.$slots,"copy",{copied:r.copied},function(){return[ee(pe(r.copied?s.copyText.copiedText:s.copyText.copyText),1)]})],2)],2)):ae("v-if",!0),P("div",{class:le(["jv-code",{open:r.expandCode,boxed:n.boxed}])},[b(l,{ref:"jsonBox",value:n.value,sort:n.sort,"preview-mode":n.previewMode},null,8,["value","sort","preview-mode"])],2),r.expandableCode&&n.boxed?(w(),z("div",{key:1,class:"jv-more",onClick:t[0]||(t[0]=function(){return s.toggleExpandCode&&s.toggleExpandCode.apply(s,arguments)})},[P("span",{class:le(["jv-toggle",{open:!!r.expandCode}])},null,2)])):ae("v-if",!0)],2)}Ko.render=ox;Ko.__file="src/Components/json-viewer.vue";function Po(e,t){const n=localStorage.getItem(e);let o;try{o=n?JSON.parse(n):t}catch(s){console.error("Error parsing localStorage data",s),o=t}const r=B(o);return ve(r,s=>{try{localStorage.setItem(e,JSON.stringify(s))}catch(l){console.error("Error saving to localStorage",l)}},{deep:!0}),r}const Ol=I({__name:"AccordionTableHeader",props:{class:{}},setup(e){const t=e;return(n,o)=>(w(),z("thead",{class:le(c(Ce)("[&_tr]:border-b dark:border-[#606062]",t.class))},[b(c(Qn),{class:"text-gray-500 dark:text-gray-300 dark:border-[#727274] dark:hover:bg-transparent"},{default:v(()=>[b(c(qe),{class:"w-1/5"},{default:v(()=>o[0]||(o[0]=[ee("Key")])),_:1}),b(c(qe),{class:"pr-0"},{default:v(()=>o[1]||(o[1]=[ee("Value")])),_:1})]),_:1})],2))}}),Mo=I({__name:"BodyViewButton",props:{label:{},active:{type:Boolean},value:{}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>n.active?"bg-primary text-white":"bg-gray-100 dark:bg-white/10 text-gray-500 dark:text-gray-200");return(s,l)=>(w(),z("button",{onClick:l[0]||(l[0]=i=>o("click",s.value)),class:le([r.value,"rounded-3xl text-sm font-semibold py-1 px-3"])},pe(s.label),3))}}),rx={class:"hidden lg:block"},on=I({__name:"IconCopyButton",props:{tooltipText:{},shortcut:{},bgClass:{}},emits:["click"],setup(e,{emit:t}){const n=B(!1),o=t,r=()=>{n.value=!0,o("click"),setTimeout(()=>{n.value=!1},1e3)};return(s,l)=>(w(),z("button",{class:"px-4 py-2 flex items-center space-x-2 text-sm text-gray-500 font-medium border border-gray-200 dark:border-[#606062] rounded-lg shadow-sm bg-white dark:bg-white/10 dark:hover:bg-white/15 hover:bg-gray-50 text-gray-400 dark:text-gray-300 hover:text-gray-800 duration-150 focus:outline-0",onClick:r,type:"button"},[n.value?(w(),M(c(Zo),{key:0,class:"size-4 text-gray-400"})):ae("",!0),n.value?ae("",!0):(w(),M(c(sl),{key:1,class:"size-4 text-gray-400"})),P("div",rx,[L(s.$slots,"default",{},()=>[l[0]||(l[0]=ee("Copy"))])])]))}}),sx={class:"max-w-full px-6 pt-3"},lx={class:"font-mono"},ix={class:"p-4 rounded-md bg-gray-100 dark:bg-gray-800 mt-4 flex items-center"},ax={key:1,class:"bg-gray-50 dark:bg-white/10 border border-gray-200 dark:border-white/10 rounded-xl py-2.5 mb-6"},ux={class:"flex flex-1 items-center justify-between mb-3 pl-4 pr-2 font-medium"},cx={class:"flex items-center space-x-2 text-sm text-gray-800 dark:text-white"},dx={class:"pl-2 pr-2"},fx={class:"group w-[99%] relative flex items-center"},px=["data-truncate"],hx={class:"group w-[99%] relative flex items-center"},gx=["data-truncate"],mx={key:0},vx={key:1,class:"border border-gray-200 rounded-xl overflow-hidden shadow-sm bg-white dark:bg-white/10 dark:border-white/10"},yx={class:"flex items-center space-x-2 px-4 pt-4 mb-4"},bx={key:1,class:"p-6 prettyprint break-all whitespace-pre-wrap"},wx=I({__name:"Request",props:{request:{}},setup(e){const t=e,n=Po("requestHeadersVisible",!0),o=Po("postParametersVisible",!0),r=Po("pluginVisible",!0),s=B("requestHeaderOpen"),l=B("postParametersOpen"),i=B("bodyOpen"),a=B("pluginOpen"),d=B("json"),u=wn({}),f=xs();Ie(async()=>{await Ae(),n.value===!1&&(s.value=""),o.value===!1&&(l.value=""),r.value===!1&&(a.value=""),await p(),window.addEventListener("resize",p)}),ve(()=>t.request,async()=>{Vr(t.request)?d.value="json":d.value="raw",await p()}),ve(s,h=>{h==="requestHeaderOpen"?n.value=!0:n.value=!1}),ve(l,h=>{h==="postParametersOpen"?o.value=!0:o.value=!1}),ve(a,h=>{h==="pluginOpen"?r.value=!0:r.value=!1});const p=async()=>{await Ae(),Object.entries(t.request.post).forEach(([h,g])=>{const m=document.querySelector(`[data-truncate="post_${g.name}"]`);if(m){const y=m.getAttribute("data-truncate")??"post_"+g.name;m.scrollWidth>m.clientWidth?u[y]=!1:delete u[y]}}),Object.entries(t.request.headers).forEach(([h,g])=>{const m=document.querySelector(`[data-truncate="headers_${h}"]`);if(m){const y=m.getAttribute("data-truncate")??"headers_"+h;m.scrollWidth>m.clientWidth?u[y]=!1:delete u[y]}})};return xn(()=>{window.removeEventListener("resize",p)}),(h,g)=>(w(),z("div",sx,[h.request.plugin&&!c(vl)(h.request.plugin)?(w(),M(c(rn),{key:0,type:"single",collapsible:"",modelValue:a.value,"onUpdate:modelValue":g[1]||(g[1]=m=>a.value=m)},{default:v(()=>[b(c(ln),{value:"pluginOpen"},{default:v(()=>[b(c(an),null,{action:v(()=>[b(on,{onClick:g[0]||(g[0]=m=>c(zt)(c(Jn)(h.request.plugin.details,"pluginDetails")))},{default:v(()=>g[11]||(g[11]=[ee(" Copy as PHP array ")])),_:1})]),icon:v(()=>[b(c(Dh),{class:"size-4"})]),default:v(()=>[P("div",null,[ee(pe(h.request.plugin.plugin)+": ",1),P("span",lx,pe(h.request.plugin.uiLabel),1)])]),_:1}),b(c(sn),{class:"px-2"},{default:v(()=>[c(V0)(h.request.plugin.details)?(w(),M(c(Ko),{key:0,"expand-depth":2,value:h.request.plugin.details,class:le({"jv-light":c(f)==="light","jv-dark":c(f)==="dark"})},null,8,["value","class"])):(w(),M(c(Yn),{key:1,class:"table-fixed max-w-full"},{default:v(()=>[b(c(un),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(Object.entries(h.request.plugin.details),([m,y])=>(w(),M(c(cn),{key:m},{default:v(()=>[b(c(qe),{class:"w-2/5 align-top text-gray-500 dark:text-gray-300"},{default:v(()=>[ee(pe(m),1)]),_:2},1024),b(c(qe),{class:"pr-0 text-gray-800 dark:text-white",innerHTML:y},null,8,["innerHTML"])]),_:2},1024))),128))]),_:1})]),_:1})),P("div",ix,[b(c(Jw),{icon:"radix-icons:info-circled",class:"h-4 w-4 mr-2"}),g[12]||(g[12]=P("p",null,[ee("Learn how to use and write your own "),P("a",{class:"text-pink-600 dark:text-pink-400 underline"},"Request Plugins"),ee(" in the documentation.")],-1))])]),_:1})]),_:1})]),_:1},8,["modelValue"])):ae("",!0),Object.keys(h.request.query).length>0?(w(),z("div",ax,[P("div",ux,[P("div",cx,[b(c(jh),{class:"size-4"}),g[13]||(g[13]=P("div",null,"Query parameters",-1))]),P("div",null,[b(on,{onClick:g[2]||(g[2]=m=>c(zt)(c(Jn)(h.request.query,"queryParameters")))},{default:v(()=>g[14]||(g[14]=[ee(" Copy as PHP array ")])),_:1})])]),P("div",dx,[b(c(Yn),null,{default:v(()=>[b(c(un),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(Object.entries(h.request.query),([m,y])=>(w(),M(c(cn),{key:m},{default:v(()=>[b(c(qe),{class:"w-1/5 text-gray-500 dark:text-gray-300"},{default:v(()=>[ee(pe(m),1)]),_:2},1024),b(c(qe),{class:"text-gray-800 break-all dark:text-white"},{default:v(()=>[ee(pe(y),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})])])):ae("",!0),h.request.post&&!c(vl)(h.request.post)?(w(),M(c(rn),{key:2,type:"single",collapsible:"",modelValue:l.value,"onUpdate:modelValue":g[4]||(g[4]=m=>l.value=m)},{default:v(()=>[b(c(ln),{value:"postParametersOpen"},{default:v(()=>[b(c(an),null,{action:v(()=>[b(on,{onClick:g[3]||(g[3]=m=>c(zt)(c(Jn)(h.request.post,"postData")))},{default:v(()=>g[15]||(g[15]=[ee(" Copy as PHP array ")])),_:1})]),icon:v(()=>[b(c(Ir),{class:"size-4"})]),default:v(()=>[g[16]||(g[16]=P("div",null,"Post Parameters",-1))]),_:1}),b(c(sn),{class:"px-2"},{default:v(()=>[b(c(Yn),null,{default:v(()=>[b(Ol),b(c(un),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(Object.entries(h.request.post),([m,y])=>(w(),M(c(cn),{key:m},{default:v(()=>[b(c(qe),{class:"w-2/5 align-top text-gray-500 dark:text-gray-300"},{default:v(()=>[ee(pe(y.name),1)]),_:2},1024),b(c(qe),{class:"pr-0 text-gray-800 dark:text-white"},{default:v(()=>[P("div",fx,[P("div",{class:le(["pr-6 break-all",{truncate:!u.hasOwnProperty("post_"+y.name)||u["post_"+y.name]===!1}]),"data-truncate":"post_"+y.name},pe(y.value),11,px),P("div",null,[u.hasOwnProperty("post_"+y.name)?(w(),M(bl,{key:0,onClick:_=>u["post_"+y.name]=!u["post_"+y.name],rotate:u["post_"+y.name]},null,8,["onClick","rotate"])):ae("",!0)])])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])):ae("",!0),b(c(rn),{type:"single",collapsible:"",modelValue:s.value,"onUpdate:modelValue":g[6]||(g[6]=m=>s.value=m)},{default:v(()=>[b(c(ln),{value:"requestHeaderOpen"},{default:v(()=>[b(c(an),null,{action:v(()=>[b(on,{onClick:g[5]||(g[5]=m=>c(zt)(c(Jn)(h.request.headers,"headers")))},{default:v(()=>g[17]||(g[17]=[ee(" Copy as PHP array ")])),_:1})]),icon:v(()=>[b(c(Ir),{class:"size-4"})]),default:v(()=>[g[18]||(g[18]=P("div",null,"Headers",-1))]),_:1}),b(c(sn),{class:"px-2"},{default:v(()=>[b(c(Yn),null,{default:v(()=>[b(Ol),b(c(un),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(Object.entries(h.request.headers),([m,y])=>(w(),M(c(cn),{key:m,class:"hover:bg-white"},{default:v(()=>[b(c(qe),{class:"text-gray-500 dark:text-gray-300"},{default:v(()=>[ee(pe(m),1)]),_:2},1024),b(c(qe),{class:"pr-0 text-gray-800 dark:text-white"},{default:v(()=>[P("div",hx,[P("div",{class:le(["pr-6 break-all",{truncate:!u.hasOwnProperty("headers_"+m)||u["headers_"+m]===!1}]),"data-truncate":"headers_"+m},pe(y),11,gx),P("div",null,[u.hasOwnProperty("headers_"+m)?(w(),M(bl,{key:0,onClick:_=>u["headers_"+m]=!u["headers_"+m],rotate:u["headers_"+m]},null,8,["onClick","rotate"])):ae("",!0)])])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),h.request.body?(w(),M(c(rn),{key:3,type:"single",collapsible:"",modelValue:i.value,"onUpdate:modelValue":g[10]||(g[10]=m=>i.value=m)},{default:v(()=>[b(c(ln),{value:"bodyOpen"},{default:v(()=>[b(c(an),null,{action:v(()=>[h.request.body?(w(),M(on,{key:0,onClick:g[7]||(g[7]=m=>c(zt)(h.request.body))},{default:v(()=>g[19]||(g[19]=[ee(" Copy ")])),_:1})):ae("",!0)]),icon:v(()=>[b(c(Zl),{class:"size-4"})]),default:v(()=>[g[20]||(g[20]=P("div",null,"Body",-1))]),_:1}),b(c(sn),{class:"px-2"},{default:v(()=>[h.request.body===""?(w(),z("div",mx,g[21]||(g[21]=[P("span",{class:"text-sm opacity-75 font-mono pt-2 inline-block px-2"},"Request body is empty.",-1)]))):(w(),z("div",vx,[P("div",yx,[b(Mo,{onClick:g[8]||(g[8]=m=>d.value=m),active:d.value==="raw",label:"Raw",value:"raw"},null,8,["active"]),c(Vr)(h.request)?(w(),M(Mo,{key:0,onClick:g[9]||(g[9]=m=>d.value=m),active:d.value==="json",label:"JSON",value:"json"},null,8,["active"])):ae("",!0)]),d.value==="json"?(w(),M(c(Ko),{key:0,"expand-depth":2,value:JSON.parse(h.request.body??""),class:le({"jv-light":c(f)==="light","jv-dark":c(f)==="dark"})},null,8,["value","class"])):ae("",!0),d.value==="raw"?(w(),z("pre",bx,pe(h.request.body??"")+` + `,1)):ae("",!0)]))]),_:1})]),_:1})]),_:1},8,["modelValue"])):ae("",!0)]))}}),xx={class:"max-w-full px-6 pt-3"},_x={class:"group w-[99%] relative flex items-center"},Cx=["data-truncate"],Sx={key:0},kx={key:1,class:"border border-gray-200 rounded-xl overflow-hidden shadow-sm bg-white dark:bg-white/10 dark:border-[#606062]"},Ex={class:"flex items-center space-x-2 px-4 pt-4 mb-4"},Ox={key:1,class:"p-6 text-pretty break-all whitespace-pre-wrap"},Tx={key:2,class:"border border-gray-200 dark:border-gray-700 rounded-md m-4 overflow-hidden"},Ax=["srcdoc"],$x=I({__name:"Response",props:{response:{}},setup(e){const t=e,n=Po("responseHeadersVisible",!0),o=B("responseHeaderOpen"),r=B("bodyOpen"),s=B("raw"),l=wn({}),i=xs();Ie(async()=>{await Ae(),n.value===!1&&(o.value=""),await a(),window.addEventListener("resize",a)}),ve(o,u=>{u==="responseHeaderOpen"?n.value=!0:n.value=!1}),ve(()=>t.response,async()=>{Vr(t.response)?s.value="json":D0(t.response)?s.value="preview":s.value="raw",await a()});const a=async()=>{await Ae(),Object.entries(t.response.headers).forEach(([u,f])=>{const p=document.querySelector(`[data-truncate="headers_${u}"]`);if(p){const h=p.getAttribute("data-truncate")??"headers_"+u;p.scrollWidth>p.clientWidth?l[h]=!1:delete l[h]}})},d=N(()=>t.response.body==="");return xn(()=>{window.removeEventListener("resize",a)}),(u,f)=>(w(),z("div",xx,[b(c(rn),{type:"single",collapsible:"",modelValue:o.value,"onUpdate:modelValue":f[1]||(f[1]=p=>o.value=p)},{default:v(()=>[b(c(ln),{value:"responseHeaderOpen"},{default:v(()=>[b(c(an),null,{action:v(()=>[b(on,{onClick:f[0]||(f[0]=p=>c(zt)(c(Jn)(u.response.headers,"headers")))},{default:v(()=>f[7]||(f[7]=[ee(" Copy as PHP array ")])),_:1})]),icon:v(()=>[b(c(Ir),{class:"size-4"})]),default:v(()=>[f[8]||(f[8]=P("div",null,"Headers",-1))]),_:1}),b(c(sn),{class:"px-2"},{default:v(()=>[b(c(Yn),null,{default:v(()=>[b(Ol),b(c(un),{class:"font-mono"},{default:v(()=>[(w(!0),z(Te,null,Tt(Object.entries(u.response.headers),([p,h])=>(w(),M(c(cn),{key:p},{default:v(()=>[b(c(qe),{class:"text-gray-500 dark:text-gray-300"},{default:v(()=>[ee(pe(p),1)]),_:2},1024),b(c(qe),{class:"pr-0 text-gray-800 dark:text-white"},{default:v(()=>[P("div",_x,[P("div",{class:le(["pr-6 break-all",{truncate:!l.hasOwnProperty("headers_"+p)||l["headers_"+p]===!1}]),"data-truncate":"headers_"+p},pe(h),11,Cx),P("div",null,[l.hasOwnProperty("headers_"+p)?(w(),M(bl,{key:0,onClick:g=>l["headers_"+p]=!l["headers_"+p],rotate:l["headers_"+p]},null,8,["onClick","rotate"])):ae("",!0)])])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),b(c(rn),{type:"single",collapsible:"",modelValue:r.value,"onUpdate:modelValue":f[6]||(f[6]=p=>r.value=p)},{default:v(()=>[b(c(ln),{value:"bodyOpen"},{default:v(()=>[b(c(an),null,{action:v(()=>[d.value?ae("",!0):(w(),M(on,{key:0,onClick:f[2]||(f[2]=p=>c(zt)(u.response.body))},{default:v(()=>f[9]||(f[9]=[ee(" Copy ")])),_:1}))]),icon:v(()=>[b(c(Zl),{class:"size-4"})]),default:v(()=>[f[10]||(f[10]=P("div",null,"Body",-1))]),_:1}),b(c(sn),{class:"px-2"},{default:v(()=>[d.value?(w(),z("div",Sx,f[11]||(f[11]=[P("span",{class:"text-sm opacity-75 font-mono pt-2 inline-block px-2"},"Response body is empty.",-1)]))):(w(),z("div",kx,[P("div",Ex,[b(Mo,{onClick:f[3]||(f[3]=p=>s.value=p),active:s.value==="raw",label:"Raw",value:"raw"},null,8,["active"]),c(Vr)(u.response)?(w(),M(Mo,{key:0,onClick:f[4]||(f[4]=p=>s.value=p),active:s.value==="json",label:"JSON",value:"json"},null,8,["active"])):ae("",!0),b(Mo,{onClick:f[5]||(f[5]=p=>s.value=p),active:s.value==="preview",label:"Preview",value:"preview"},null,8,["active"])]),s.value==="json"?(w(),M(c(Ko),{key:0,"expand-depth":2,value:JSON.parse(u.response.body??""),class:le({"jv-light":c(i)==="light","jv-dark":c(i)==="dark"})},null,8,["value","class"])):ae("",!0),s.value==="raw"?(w(),z("pre",Ox,pe(u.response.body??"")+` +`,1)):ae("",!0),s.value==="preview"?(w(),z("div",Tx,[P("iframe",{srcdoc:u.response.body,style:{height:"500px"},class:"w-full h-full"},null,8,Ax)])):ae("",!0)]))]),_:1})]),_:1})]),_:1},8,["modelValue"])]))}}),Px={class:"flex items-center space-x-2"},Mx={key:0,class:"pt-px"},Ix={key:1,class:"opacity-0"},nf=I({__name:"ResponseBadge",props:{statusCode:{},size:{default:"xs"},reason:{}},setup(e){const t=e,n=N(()=>{if(t.statusCode===null)return"bg-gray-100 dark:bg-gray-800 animate-pulse";switch(t.statusCode.toString().charAt(0)){case"2":return"bg-lime-500";case"3":return"bg-yellow-500";case"4":return"bg-orange-500";case"5":return"bg-red-500";default:return"bg-gray-500"}}),o=N(()=>{if(t.statusCode===null)return"text-transparent";switch(t.statusCode.toString().charAt(0)){case"2":return"text-lime-600";case"3":return"text-yellow-600";case"4":return"text-orange-600";case"5":return"text-red-600";default:return"text-gray-600"}}),r=N(()=>{switch(t.size){case"base":return"text-base";case"sm":return"text-sm";default:return"text-sm"}});return(s,l)=>(w(),z("div",Px,[P("div",{class:le(["w-[34px] h-[20px] md:w-[44px] md:h-[24px] text-xs md:text-sm rounded-xl flex justify-center text-white font-mono font-medium py-0.5 px-2",[n.value,r.value]])},[s.statusCode?(w(),z("span",Mx,pe(s.statusCode),1)):(w(),z("span",Ix,"999"))],2),s.reason?(w(),z("span",{key:0,class:le([o.value,"font-bold text-sm mt-px"])},pe(s.reason),3)):ae("",!0)]))}}),Bx={key:0,class:"bg-white dark:bg-gray-900 pb-6 relative"},Rx={class:"sticky top-0 bg-white dark:bg-gray-900 z-20"},Dx={class:"px-6 pt-6 flex flex-col md:flex-row items-start justify-between"},jx={class:"w-full"},Lx={class:"flex flex-col-reverse md:flex-row items-start lg:items-center w-full"},Vx={class:"w-full"},Nx={class:"flex flex-col-reverse lg:space-x-4 lg:flex-row items-start lg:items-center"},Fx={class:"font-medium truncate pt-0.5"},Hx={class:"dark:text-gray-300 text-sm"},zx={class:"text-gray-500 dark:text-gray-300 font-normal text-sm flex flex-col lg:flex-row lg:items-center lg:space-x-2 mt-3"},Kx={class:"flex items-center md:justify-end w-full mb-2 space-x-2"},Wx={class:"flex"},Ux=I({__name:"LogDetail",props:{log:{}},emits:["replay","modified-replay"],setup(e,{emit:t}){const n=t,o=B("request");return(r,s)=>r.log?(w(),z("div",Bx,[P("div",Rx,[P("div",Dx,[P("div",jx,[P("div",Lx,[P("div",Vx,[P("div",Nx,[b(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),null,{default:v(()=>[P("div",Fx,[P("span",Hx,pe(r.log.request.method),1),ee(" "+pe(r.log.request.uri),1)])]),_:1}),b(c(Bn),null,{default:v(()=>[ee(pe(r.log.request.uri),1)]),_:1})]),_:1})]),_:1}),r.log.response?(w(),M(nf,{key:0,"status-code":r.log.response.status,reason:r.log.response.reason,class:"mb-1 lg:mb-0 mt-px"},null,8,["status-code","reason"])):ae("",!0)]),P("div",zx,[P("div",null,"Received on "+pe(r.log.performed_at),1),s[5]||(s[5]=P("div",{class:"hidden lg:block"},"·",-1)),P("div",null,"Took "+pe(r.log.duration)+"ms to resolve",1)])]),P("div",Kx,[P("div",Wx,[b(yl,{onClick:s[0]||(s[0]=l=>n("replay",r.log)),icon:c(yc),class:"rounded-r-none"},{default:v(()=>s[6]||(s[6]=[ee(" Replay ")])),_:1},8,["icon"]),b(yl,{onClick:s[1]||(s[1]=l=>n("modified-replay",r.log)),icon:c(Vh),class:"rounded-l-none border-l-0 px-0 pl-2.5 pr-1"},null,8,["icon"])]),b(on,{onClick:s[2]||(s[2]=l=>c(zt)(r.log.request.curl))},{default:v(()=>s[7]||(s[7]=[ee(" Copy as cURL ")])),_:1})])])])]),b(c(Ra),{modelValue:o.value,"onUpdate:modelValue":s[3]||(s[3]=l=>o.value=l),"default-value":"request",class:"w-full mt-4"},{default:v(()=>[b(c(Wb),{class:"w-full px-6 sticky top-0"},{default:v(()=>[b(c(Da),{value:"request",class:""},{default:v(()=>s[8]||(s[8]=[ee(" Request ")])),_:1}),b(c(Da),{value:"response",class:""},{default:v(()=>s[9]||(s[9]=[ee(" Response ")])),_:1})]),_:1})]),_:1},8,["modelValue"])]),P("div",null,[b(c(Ra),{modelValue:o.value,"onUpdate:modelValue":s[4]||(s[4]=l=>o.value=l),"default-value":"request"},{default:v(()=>[b(c(ja),{value:"request"},{default:v(()=>[b(wx,{request:r.log.request},null,8,["request"])]),_:1}),b(c(ja),{value:"response"},{default:v(()=>[b($x,{response:r.log.response},null,8,["response"])]),_:1})]),_:1},8,["modelValue"])])])):ae("",!0)}});function qx(){return Array.from({length:Math.floor(Math.random()*3)+1},(e,t)=>`https://beyondcode-${t+1}.share.idontcare.lol`)}function Gx(){return{can_specify_subdomains:1}}const Zx={class:"text-sm flex flex-1 items-center justify-center flex-col text-center bg-gray-50 dark:bg-gray-800 h-full"},Jx={class:"border border-black/5 dark:border-[#606062] bg-[#F5F5F580] dark:bg-white/30 rounded-3xl p-2 shadow-xl"},Yx=I({__name:"EmptyState",props:{subdomains:{}},setup(e){return(t,n)=>(w(),z("div",Zx,[P("div",Jx,[b(Ad,{subdomains:t.subdomains,class:"max-w-[500px]"},null,8,["subdomains"])]),n[0]||(n[0]=P("p",{class:"font-medium text-gray-800 dark:text-white mt-10 mb-1"}," Waiting for incoming requests... ",-1)),n[1]||(n[1]=P("p",{class:"text-gray-500 dark:text-gray-400"}," Scan this QR code to open the site on a mobile device. ",-1))]))}}),Qx={class:"w-full"},Xx={class:"relative"},e1={class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"},t1={class:"pointer-events-none absolute inset-y-0 right-0 pr-1.5 flex items-center text-xs text-gray-400 font-medium"},n1=I({__name:"Search",props:{modelValue:{},class:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const o=e,r=B(),s=L0(),i=_s(o,"modelValue",n,{passive:!0});return t({focusSearch:()=>{r.value.focus()}}),(d,u)=>(w(),z("div",Qx,[P("div",Xx,[P("div",e1,[b(c(Hh),{class:"h-4 w-4 text-gray-400"})]),qo(P("input",{"onUpdate:modelValue":u[0]||(u[0]=f=>Le(i)?i.value=f:null),ref_key:"input",ref:r,type:"search",class:le(c(Ce)("h-8 w-full rounded-md bg-gray-100 dark:bg-white/10 pl-7 py-2 text-sm text-gray-800 dark:text-gray-200 focus-visible:border-transparent ring-offset-background placeholder:text-gray-400 placeholder:font-medium focus-visible:outline-none border border-transparent focus-visible:border-gray-300 dark:focus-visible:border-gray-700 disabled:cursor-not-allowed disabled:opacity-50",o.class,{"pr-11":!c(s),"pr-7":c(s)})),placeholder:"Search..."},null,2),[[us,c(i)]]),P("div",t1,[c(s)?(w(),z(Te,{key:0},[ee("⌘K")],64)):(w(),z(Te,{key:1},[ee("Ctrl+K")],64))])])]))}});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -45,4 +45,4 @@ and limitations under the License. * by Pedro Ladaria * https://github.com/pladaria/reconnecting-websocket * License MIT - */var a1=function(){if(typeof WebSocket<"u")return WebSocket},u1=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},En={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},c1=function(){function e(t,n,o){var r=this;o===void 0&&(o={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(s){r._debug("open event");var l=r._options.minUptime,i=l===void 0?En.minUptime:l;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},i),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(a){return r._ws.send(a)}),r._messageQueue=[],r.onopen&&r.onopen(s),r._listeners.open.forEach(function(a){return r._callEventListener(s,a)})},this._handleMessage=function(s){r._debug("message event"),r.onmessage&&r.onmessage(s),r._listeners.message.forEach(function(l){return r._callEventListener(s,l)})},this._handleError=function(s){r._debug("error event",s.message),r._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(s),r._debug("exec error listeners"),r._listeners.error.forEach(function(l){return r._callEventListener(s,l)}),r._connect()},this._handleClose=function(s){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(s),r._listeners.close.forEach(function(l){return r._callEventListener(s,l)})},this._url=t,this._protocols=n,this._options=o,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(n,o){return typeof o=="string"?n+=o.length:o instanceof Blob?n+=o.size:n+=o.byteLength,n},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,n){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,n)},e.prototype.reconnect=function(t,n){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,n),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var n=this._options.maxEnqueuedMessages,o=n===void 0?En.maxEnqueuedMessages:n;this._messageQueue.length"],t))},e.prototype._getNextDelay=function(){var t=this._options,n=t.reconnectionDelayGrowFactor,o=n===void 0?En.reconnectionDelayGrowFactor:n,r=t.minReconnectionDelay,s=r===void 0?En.minReconnectionDelay:r,l=t.maxReconnectionDelay,i=l===void 0?En.maxReconnectionDelay:l,a=0;return this._retryCount>0&&(a=s*Math.pow(o,this._retryCount-1),a>i&&(a=i)),this._debug("next delay",a),a},e.prototype._wait=function(){var t=this;return new Promise(function(n){setTimeout(n,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var n=t();if(typeof n=="string")return Promise.resolve(n);if(n.then)return n}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var n=this._options,o=n.maxRetries,r=o===void 0?En.maxRetries:o,s=n.connectionTimeout,l=s===void 0?En.connectionTimeout:s,i=n.WebSocket,a=i===void 0?a1():i;if(this._retryCount>=r){this._debug("max retries reached",this._retryCount,">=",r);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!u1(a))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(d){t._closeCalled||(t._debug("connect",{url:d,protocols:t._protocols}),t._ws=t._protocols?new a(d,t._protocols):new a(d),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},l))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new l1(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,n){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,n),this._handleClose(new i1(t,n,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,n){"handleEvent"in n?n.handleEvent(t):n(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();const d1={class:"sr-only"},Qa=M({__name:"IconButton",props:{icon:{type:[Function,Object]},tooltipText:{},shortcut:{},bgClass:{}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>n.bgClass??" bg-gray-100 hover:bg-gray-200 dark:bg-white/10 dark:hover:bg-white/15");return(s,l)=>(w(),P(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),{class:"focus:outline-0"},{default:v(()=>[$("button",{class:ae([r.value,"p-2 rounded-md text-gray-400 dark:text-gray-300 hover:text-gray-800 duration-150 focus:outline-0"]),onClick:l[0]||(l[0]=i=>o("click")),type:"button"},[(w(),P(Vn(s.icon),{class:"size-4"})),$("span",d1,be(s.tooltipText),1)],2)]),_:1}),b(c(Bn),{class:"flex items-center font-medium"},{default:v(()=>[$("p",null,be(s.tooltipText),1),s.shortcut?(w(),P(Nr,{key:0},{default:v(()=>[ee(be(s.shortcut),1)]),_:1})):ie("",!0)]),_:1})]),_:1})]),_:1}))}}),f1={class:"w-[400px] h-[calc(100vh-81px)] border-r border-gray-200 dark:border-gray-700 overflow-y-auto bg-white dark:bg-gray-900"},p1={class:"pt-4 text-sm sticky bg-white dark:bg-gray-900 top-0 z-20"},h1={class:"flex flex-col lg:flex-row items-center px-4 items-center justify-between space-x-2 mt-4"},g1={class:"flex space-x-2 mt-2 lg:mt-0 justify-end w-full lg:w-auto pr-1 lg:pr-0"},m1={class:"flex justify-between items-center bg-gray-50 dark:bg-gray-800 text-gray-500 dark:text-gray-100 px-4 py-5 border-b border-dashed border-gray-200 dark:border-gray-700"},v1={class:"flex items-center"},y1={class:"max-w-[155px] lg:max-w-[180px] truncate pt-0.5 text-gray-800 dark:text-white"},b1={class:"text-gray-500 dark:text-gray-300"},w1={class:"text-xs"},x1={key:0},_1={key:1},C1=M({__name:"Sidebar",props:{maxLogs:{},search:{},currentLog:{}},emits:["set-log"],setup(e,{expose:t,emit:n}){const o=e,r=n,s=I([]),l=I([]),i=I(!1),a=Po("followLogs",!0),d=I(!0),u=I(""),f=I();Ie(()=>{_(),p()});const p=()=>{fetch("/api/logs").then(A=>A.json()).then(A=>{s.value=l.value=A,h(s.value[0].id)})},h=A=>{fetch("/api/log/"+A).then(E=>E.json()).then(E=>{r("set-log",E)})},g=()=>{fetch("/api/logs/clear"),l.value=s.value=[],r("set-log",null)},m=async A=>fetch("/api/logs/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({search_term:A})}).then(E=>E.json()),y=()=>{a.value=!a.value},_=()=>{let A=new c1(`ws://${window.location.hostname}:${window.location.port}/socket`);A.onmessage=E=>{const R=JSON.parse(E.data),L=s.value.findIndex(S=>S.id===R.id);L>-1?s.value[L]=R:s.value.unshift(R),s.value=s.value.splice(0,o.maxLogs),l.value=s.value,(i.value||a.value)&&(h(s.value[0].id),i.value=!1)}},k=A=>{i.value=!0,fetch("/api/replay/"+A.id)},C=()=>{const A=s.value.findIndex(R=>{var L;return R.id===((L=o.currentLog)==null?void 0:L.id)});if(A===-1)return;const E=A+1;if(E>=s.value.length){h(s.value[0].id);return}h(s.value[E].id)},T=()=>{const A=s.value.findIndex(R=>{var L;return R.id===((L=o.currentLog)==null?void 0:L.id)});if(A===-1)return;const E=A-1;if(E<0){h(s.value[s.value.length-1].id);return}h(s.value[E].id)},B=()=>{f.value.focusSearch()};return me(u,async A=>{if(A===""||A.length<3)l.value=s.value;else if(A.startsWith("/"))l.value=s.value.filter(E=>E.request_uri.indexOf(A)!==-1);else try{l.value=await m(A),l.value.length>0&&h(l.value[0].id)}catch(E){console.error("Search API error:",E),r("set-log",null)}},{immediate:!1}),t({replay:k,nextLog:C,previousLog:T,focusSearch:B,clearLogs:g,toggleFollowRequests:y}),(A,E)=>(w(),z("div",f1,[$("div",p1,[E[6]||(E[6]=$("h3",{class:"inline px-4 font-medium mr-2"},"Requests",-1)),$("div",h1,[b(n1,{ref_key:"searchInput",ref:f,modelValue:u.value,"onUpdate:modelValue":E[0]||(E[0]=R=>u.value=R)},null,8,["modelValue"]),$("div",g1,[ie("",!0),b(Qa,{onClick:y,icon:c(a)?c(Ih):c(Mh),"tooltip-text":c(a)?"Stop following requests":"Follow Requests",shortcut:"F"},null,8,["icon","tooltip-text"]),b(Qa,{onClick:g,icon:c(Uh),"tooltip-text":"Clear logs",shortcut:"CTRL + L"},null,8,["icon"])])]),b(c(Ba),{class:"mt-4"},{default:v(()=>[b(c(Pb),null,{default:v(()=>[b(c(Qn),{class:"dark:border-[#606062]"},{default:v(()=>[b(c(Ks),{class:"pr-0 w-[45px]"},{default:v(()=>E[2]||(E[2]=[ee("Status")])),_:1}),b(c(Ks),{class:"pr-0"},{default:v(()=>E[3]||(E[3]=[ee(" URL ")])),_:1}),b(c(Ks),{class:"text-right pr-4 pl-0"},{default:v(()=>E[4]||(E[4]=[ee(" Duration ")])),_:1})]),_:1})]),_:1}),b(c(an),null,{default:v(()=>[d.value?ie("",!0):(w(),P(c(Qn),{key:0,class:"border-0 font-medium dark:border-[#606062]"},{default:v(()=>[b(c(qe),{class:"p-0",colspan:"3"},{default:v(()=>[$("div",m1,[$("div",v1,[b(c(Nh),{class:"hidden lg:block size-4 mr-2"}),E[5]||(E[5]=ee(" Requests listener is off "))]),$("button",{onClick:E[1]||(E[1]=R=>d.value=!0),class:"text-primary",type:"button"}," Turn back on ")])]),_:1})]),_:1}))]),_:1})]),_:1})]),b(c(Ba),null,{default:v(()=>[b(c(an),null,{default:v(()=>[(w(!0),z(Te,null,Tt(l.value,R=>{var L;return w(),P(c(Qn),{key:R.id,onClick:S=>h(R.id),class:ae(["border-l-4 !border-l-transparent dark:!border-b-[#3f3f40]",{"bg-gray-50 !border-l-primary dark:bg-gray-700":((L=A.currentLog)==null?void 0:L.id)===R.id}])},{default:v(()=>[b(c(qe),{class:"pr-0 align-top pl-2 lg:pl-4"},{default:v(()=>[b(nf,{statusCode:R.status_code},null,8,["statusCode"])]),_:2},1024),b(c(qe),{class:"align-top text-left pr-0 pl-2 lg:pl-4 flex flex-col items-start font-medium"},{default:v(()=>[b(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),null,{default:v(()=>[$("div",y1,[$("span",b1,be(R.request_method),1),ee(" "+be(R.request_uri),1)])]),_:2},1024),b(c(Bn),null,{default:v(()=>[ee(be(R.request_uri),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),R.plugin_data?(w(),P(c(Dn),{key:0},{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),null,{default:v(()=>{var S;return[$("span",w1,be((S=R.plugin_data)==null?void 0:S.uiLabel),1)]}),_:2},1024),b(c(Bn),null,{default:v(()=>{var S,F;return[ee(be((S=R.plugin_data)==null?void 0:S.uiLabel)+" - "+be((F=R.plugin_data)==null?void 0:F.plugin),1)]}),_:2},1024)]),_:2},1024)]),_:2},1024)):ie("",!0)]),_:2},1024),b(c(qe),{class:"text-right text-gray-500 dark:text-gray-300 pl-0 pr-4"},{default:v(()=>{var S;return[ee(be((S=R.duration)==null?void 0:S.toFixed(0))+"ms ",1)]}),_:2},1024)]),_:2},1032,["onClick","class"])}),128)),b(c(Qn),null,{default:v(()=>[b(c(qe),{class:"text-center text-gray-400 py-8",colspan:"3"},{default:v(()=>[s.value.length>0?(w(),z("span",x1," No more requests to show ")):ie("",!0),s.value.length===0?(w(),z("span",_1," No requests to show yet ")):ie("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]))}}),S1={class:"mx-auto h-screen overflow-hidden min-[2000px]:border-l min-[2000px]:border-r"},k1={key:0,class:"py-2 px-4 bg-pink-600 flex flex-col items-center justify-center text-white font-medium text-lg text-center"},E1={class:"h-full"},O1={class:"w-full flex items-start bg-white dark:bg-gray-900"},T1=M({__name:"InternalDashboard",props:{pageData:{}},setup(e){var g,m,y,_;const t=e,n={subdomains:((g=t.pageData)==null?void 0:g.subdomains)??qx(),user:((m=t.pageData)==null?void 0:m.user)??Gx(),max_logs:((y=t.pageData)==null?void 0:y.max_logs)??100,local_url:((_=t.pageData)==null?void 0:_.local_url)??"http://localhost"},o=I(null),r=I(""),s=I(),l=I(),i=I(),a=I();Ie(()=>{window.addEventListener("keydown",p);const k="Sharing "+n.local_url.substring(n.local_url.indexOf("://")+3)+" - Expose";document.title=k});const d=k=>{o.value=k},u=()=>{i.value.show=!0},f=()=>{a.value.show=!0},p=k=>{const C=k.target;C.tagName==="INPUT"||C.tagName==="TEXTAREA"||C.isContentEditable||(k.key==="ArrowDown"?(k.preventDefault(),l.value.nextLog()):k.key==="ArrowUp"?(k.preventDefault(),l.value.previousLog()):k.key==="o"&&!k.metaKey&&!k.ctrlKey?s.value.openSubdomainInNewTab():k.key==="l"&&(k.metaKey||k.ctrlKey)?l.value.clearLogs():k.key==="l"?s.value.copySubdomainToClipboard():k.key==="f"&&!k.metaKey&&!k.ctrlKey?l.value.toggleFollowRequests():k.key==="q"&&!k.metaKey&&!k.ctrlKey?u():k.key==="r"&&!k.metaKey&&!k.ctrlKey&&o.value?l.value.replay(o.value):(k.metaKey||k.ctrlKey)&&k.key==="k"&&(k.preventDefault(),l.value.focusSearch()))},h=N(()=>n.user.can_specify_subdomains?"h-[calc(100vh-81px)]":"h-[calc(100vh-160px)]");return(k,C)=>(w(),z("div",S1,[n.user.can_specify_subdomains?ie("",!0):(w(),z("div",k1,C[1]||(C[1]=[$("p",null,"You are currently using the free version of Expose.",-1),$("p",{class:"font-bold"},[$("a",{href:"https://expose.dev/get-pro",class:"underline"},"Upgrade to Expose Pro"),ee(" to get access to our fast global network, custom domains, infinite tunnel duration and more. ")],-1)]))),$("div",E1,[b(tb,{ref_key:"header",ref:s,subdomains:n.subdomains,onSearchUpdated:C[0]||(C[0]=T=>r.value=T),onShowQrCode:u},null,8,["subdomains"]),$("div",O1,[b(C1,{ref_key:"sidebar",ref:l,maxLogs:n.max_logs,search:r.value,currentLog:o.value,onSetLog:d,class:ae(h.value)},null,8,["maxLogs","search","currentLog","class"]),$("div",{class:ae(["relative w-11/12 overflow-y-auto",h.value])},[c(vl)(o.value)?(w(),P(Yx,{key:0,subdomains:n.subdomains},null,8,["subdomains"])):(w(),P(Ux,{key:1,log:o.value,onReplay:l.value.replay,onModifiedReplay:f},null,8,["log","onReplay"]))],2)]),(w(),P(ts,{to:"body"},[b(ub,{ref_key:"qrCodeModal",ref:i,subdomains:n.subdomains},null,8,["subdomains"]),b(zb,{ref_key:"modifiedReplayModal",ref:a,currentLog:o.value},null,8,["currentLog"])]))])]))}}),Xa=document.getElementById("internalDashboard");if(Xa){const e=JSON.parse(Xa.getAttribute("data-page")||"{}");Th(T1,{pageData:e}).mount("#internalDashboard")} + */var a1=function(){if(typeof WebSocket<"u")return WebSocket},u1=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},En={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},c1=function(){function e(t,n,o){var r=this;o===void 0&&(o={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(s){r._debug("open event");var l=r._options.minUptime,i=l===void 0?En.minUptime:l;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},i),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(a){return r._ws.send(a)}),r._messageQueue=[],r.onopen&&r.onopen(s),r._listeners.open.forEach(function(a){return r._callEventListener(s,a)})},this._handleMessage=function(s){r._debug("message event"),r.onmessage&&r.onmessage(s),r._listeners.message.forEach(function(l){return r._callEventListener(s,l)})},this._handleError=function(s){r._debug("error event",s.message),r._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(s),r._debug("exec error listeners"),r._listeners.error.forEach(function(l){return r._callEventListener(s,l)}),r._connect()},this._handleClose=function(s){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(s),r._listeners.close.forEach(function(l){return r._callEventListener(s,l)})},this._url=t,this._protocols=n,this._options=o,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(n,o){return typeof o=="string"?n+=o.length:o instanceof Blob?n+=o.size:n+=o.byteLength,n},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,n){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,n)},e.prototype.reconnect=function(t,n){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,n),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var n=this._options.maxEnqueuedMessages,o=n===void 0?En.maxEnqueuedMessages:n;this._messageQueue.length"],t))},e.prototype._getNextDelay=function(){var t=this._options,n=t.reconnectionDelayGrowFactor,o=n===void 0?En.reconnectionDelayGrowFactor:n,r=t.minReconnectionDelay,s=r===void 0?En.minReconnectionDelay:r,l=t.maxReconnectionDelay,i=l===void 0?En.maxReconnectionDelay:l,a=0;return this._retryCount>0&&(a=s*Math.pow(o,this._retryCount-1),a>i&&(a=i)),this._debug("next delay",a),a},e.prototype._wait=function(){var t=this;return new Promise(function(n){setTimeout(n,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var n=t();if(typeof n=="string")return Promise.resolve(n);if(n.then)return n}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var n=this._options,o=n.maxRetries,r=o===void 0?En.maxRetries:o,s=n.connectionTimeout,l=s===void 0?En.connectionTimeout:s,i=n.WebSocket,a=i===void 0?a1():i;if(this._retryCount>=r){this._debug("max retries reached",this._retryCount,">=",r);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!u1(a))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(d){t._closeCalled||(t._debug("connect",{url:d,protocols:t._protocols}),t._ws=t._protocols?new a(d,t._protocols):new a(d),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},l))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new l1(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,n){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,n),this._handleClose(new i1(t,n,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,n){"handleEvent"in n?n.handleEvent(t):n(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();const d1={class:"sr-only"},Qa=I({__name:"IconButton",props:{icon:{type:[Function,Object]},tooltipText:{},shortcut:{},bgClass:{}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=N(()=>n.bgClass??" bg-gray-100 hover:bg-gray-200 dark:bg-white/10 dark:hover:bg-white/15");return(s,l)=>(w(),M(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),{class:"focus:outline-0"},{default:v(()=>[P("button",{class:le([r.value,"p-2 rounded-md text-gray-400 dark:text-gray-300 hover:text-gray-800 duration-150 focus:outline-0"]),onClick:l[0]||(l[0]=i=>o("click")),type:"button"},[(w(),M(Vn(s.icon),{class:"size-4"})),P("span",d1,pe(s.tooltipText),1)],2)]),_:1}),b(c(Bn),{class:"flex items-center font-medium"},{default:v(()=>[P("p",null,pe(s.tooltipText),1),s.shortcut?(w(),M(Nr,{key:0},{default:v(()=>[ee(pe(s.shortcut),1)]),_:1})):ae("",!0)]),_:1})]),_:1})]),_:1}))}}),f1={class:"w-[400px] h-[calc(100vh-81px)] border-r border-gray-200 dark:border-gray-700 overflow-y-auto bg-white dark:bg-gray-900"},p1={class:"pt-4 text-sm sticky bg-white dark:bg-gray-900 top-0 z-20"},h1={class:"flex flex-col lg:flex-row items-center px-4 items-center justify-between space-x-2 mt-4"},g1={class:"flex space-x-2 mt-2 lg:mt-0 justify-end w-full lg:w-auto pr-1 lg:pr-0"},m1={class:"flex justify-between items-center bg-gray-50 dark:bg-gray-800 text-gray-500 dark:text-gray-100 px-4 py-5 border-b border-dashed border-gray-200 dark:border-gray-700"},v1={class:"flex items-center"},y1={class:"max-w-[155px] lg:max-w-[180px] truncate pt-0.5 text-gray-800 dark:text-white"},b1={class:"text-gray-500 dark:text-gray-300"},w1={class:"text-xs"},x1={key:0},_1={key:1},C1=I({__name:"Sidebar",props:{maxLogs:{},search:{},currentLog:{}},emits:["set-log"],setup(e,{expose:t,emit:n}){const o=e,r=n,s=B([]),l=B([]),i=B(!1),a=Po("followLogs",!0),d=B(!0),u=B(""),f=B();Ie(()=>{_(),p()});const p=()=>{fetch("/api/logs").then(T=>T.json()).then(T=>{s.value=l.value=T,h(s.value[0].id)})},h=T=>{fetch("/api/log/"+T).then(S=>S.json()).then(S=>{r("set-log",S)})},g=()=>{fetch("/api/logs/clear"),l.value=s.value=[],r("set-log",null)},m=async T=>fetch("/api/logs/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({search_term:T})}).then(S=>S.json()),y=()=>{a.value=!a.value},_=()=>{let T=new c1(`ws://${window.location.hostname}:${window.location.port}/socket`);T.onmessage=S=>{const $=JSON.parse(S.data),D=s.value.findIndex(C=>C.id===$.id);D>-1?s.value[D]=$:s.value.unshift($),s.value=s.value.splice(0,o.maxLogs),l.value=s.value,(i.value||a.value)&&(h(s.value[0].id),i.value=!1)}},A=T=>{i.value=!0,fetch("/api/replay/"+T.id)},k=()=>{const T=s.value.findIndex($=>{var D;return $.id===((D=o.currentLog)==null?void 0:D.id)});if(T===-1)return;const S=T+1;if(S>=s.value.length){h(s.value[0].id);return}h(s.value[S].id)},O=()=>{const T=s.value.findIndex($=>{var D;return $.id===((D=o.currentLog)==null?void 0:D.id)});if(T===-1)return;const S=T-1;if(S<0){h(s.value[s.value.length-1].id);return}h(s.value[S].id)},R=()=>{f.value.focusSearch()};return ve(u,async T=>{if(T===""||T.length<3)l.value=s.value;else if(T.startsWith("/"))l.value=s.value.filter(S=>S.request_uri.indexOf(T)!==-1);else try{l.value=await m(T),l.value.length>0&&h(l.value[0].id)}catch(S){console.error("Search API error:",S),r("set-log",null)}},{immediate:!1}),t({replay:A,nextLog:k,previousLog:O,focusSearch:R,clearLogs:g,toggleFollowRequests:y}),(T,S)=>(w(),z("div",f1,[P("div",p1,[S[6]||(S[6]=P("h3",{class:"inline px-4 font-medium mr-2"},"Requests",-1)),P("div",h1,[b(n1,{ref_key:"searchInput",ref:f,modelValue:u.value,"onUpdate:modelValue":S[0]||(S[0]=$=>u.value=$)},null,8,["modelValue"]),P("div",g1,[ae("",!0),b(Qa,{onClick:y,icon:c(a)?c(Ih):c(Mh),"tooltip-text":c(a)?"Stop following requests":"Follow Requests",shortcut:"F"},null,8,["icon","tooltip-text"]),b(Qa,{onClick:g,icon:c(Uh),"tooltip-text":"Clear logs",shortcut:"CTRL + L"},null,8,["icon"])])]),b(c(Ba),{class:"mt-4"},{default:v(()=>[b(c(Pb),null,{default:v(()=>[b(c(Qn),{class:"dark:border-[#606062]"},{default:v(()=>[b(c(Ks),{class:"pr-0 w-[45px]"},{default:v(()=>S[2]||(S[2]=[ee("Status")])),_:1}),b(c(Ks),{class:"pr-0"},{default:v(()=>S[3]||(S[3]=[ee(" URL ")])),_:1}),b(c(Ks),{class:"text-right pr-4 pl-0"},{default:v(()=>S[4]||(S[4]=[ee(" Duration ")])),_:1})]),_:1})]),_:1}),b(c(un),null,{default:v(()=>[d.value?ae("",!0):(w(),M(c(Qn),{key:0,class:"border-0 font-medium dark:border-[#606062]"},{default:v(()=>[b(c(qe),{class:"p-0",colspan:"3"},{default:v(()=>[P("div",m1,[P("div",v1,[b(c(Nh),{class:"hidden lg:block size-4 mr-2"}),S[5]||(S[5]=ee(" Requests listener is off "))]),P("button",{onClick:S[1]||(S[1]=$=>d.value=!0),class:"text-primary",type:"button"}," Turn back on ")])]),_:1})]),_:1}))]),_:1})]),_:1})]),b(c(Ba),null,{default:v(()=>[b(c(un),null,{default:v(()=>[(w(!0),z(Te,null,Tt(l.value,$=>{var D;return w(),M(c(Qn),{key:$.id,onClick:C=>h($.id),class:le(["border-l-4 !border-l-transparent dark:!border-b-[#3f3f40]",{"bg-gray-50 !border-l-primary dark:bg-gray-700":((D=T.currentLog)==null?void 0:D.id)===$.id}])},{default:v(()=>[b(c(qe),{class:"pr-0 align-top pl-2 lg:pl-4"},{default:v(()=>[b(nf,{statusCode:$.status_code},null,8,["statusCode"])]),_:2},1024),b(c(qe),{class:"align-top text-left pr-0 pl-2 lg:pl-4 flex flex-col items-start font-medium"},{default:v(()=>[b(c(Dn),null,{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),null,{default:v(()=>[P("div",y1,[P("span",b1,pe($.request_method),1),ee(" "+pe($.request_uri),1)])]),_:2},1024),b(c(Bn),null,{default:v(()=>[ee(pe($.request_uri),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),$.plugin_data?(w(),M(c(Dn),{key:0},{default:v(()=>[b(c(In),null,{default:v(()=>[b(c(Rn),null,{default:v(()=>{var C;return[P("span",w1,pe((C=$.plugin_data)==null?void 0:C.uiLabel),1)]}),_:2},1024),b(c(Bn),null,{default:v(()=>{var C,F;return[ee(pe((C=$.plugin_data)==null?void 0:C.uiLabel)+" - "+pe((F=$.plugin_data)==null?void 0:F.plugin),1)]}),_:2},1024)]),_:2},1024)]),_:2},1024)):ae("",!0)]),_:2},1024),b(c(qe),{class:"text-right text-gray-500 dark:text-gray-300 pl-0 pr-4"},{default:v(()=>{var C;return[ee(pe((C=$.duration)==null?void 0:C.toFixed(0))+"ms ",1)]}),_:2},1024)]),_:2},1032,["onClick","class"])}),128)),b(c(Qn),null,{default:v(()=>[b(c(qe),{class:"text-center text-gray-400 py-8",colspan:"3"},{default:v(()=>[s.value.length>0?(w(),z("span",x1," No more requests to show ")):ae("",!0),s.value.length===0?(w(),z("span",_1," No requests to show yet ")):ae("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]))}}),S1={class:"mx-auto h-screen overflow-hidden min-[2000px]:border-l min-[2000px]:border-r"},k1={class:"font-bold"},E1=["href"],O1={class:"h-full"},T1={class:"w-full flex items-start bg-white dark:bg-gray-900"},A1=I({__name:"InternalDashboard",props:{pageData:{}},setup(e){var A,k,O,R,T,S;const t=e,n={subdomains:((A=t.pageData)==null?void 0:A.subdomains)??qx(),user:((k=t.pageData)==null?void 0:k.user)??Gx(),max_logs:((O=t.pageData)==null?void 0:O.max_logs)??100,local_url:((R=t.pageData)==null?void 0:R.local_url)??"http://localhost",auth_token:(T=t.pageData)==null?void 0:T.auth_token,platform_url:((S=t.pageData)==null?void 0:S.platform_url)??"https://expose.dev"},o={message:"You are currently using the free version of Expose.",cta_text:"Upgrade to Expose Pro",cta_url:"https://expose.dev/get-pro",cta_suffix:"to get access to our fast global network, custom domains, infinite tunnel duration and more.",background_color:"bg-pink-600",text_color:"text-white",background_style:"#db2777",text_style:"#ffffff"},r=N(()=>f.value?{backgroundColor:f.value.background_style,color:f.value.text_style}:{}),s=B(null),l=B(""),i=B(),a=B(),d=B(),u=B(),f=B(null),p=async()=>{var $;if(!n.auth_token||!n.platform_url){n.user.can_specify_subdomains||(f.value=o);return}try{const D=await fetch(`${n.platform_url}/api/client/banner`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({token:n.auth_token})});if(D.ok){const C=await D.json();f.value=(($=C.data)==null?void 0:$.banner)??null}else n.user.can_specify_subdomains||(f.value=o)}catch{n.user.can_specify_subdomains||(f.value=o)}};Ie(()=>{window.addEventListener("keydown",y);const $="Sharing "+n.local_url.substring(n.local_url.indexOf("://")+3)+" - Expose";document.title=$,p()});const h=$=>{s.value=$},g=()=>{d.value.show=!0},m=()=>{u.value.show=!0},y=$=>{const D=$.target;D.tagName==="INPUT"||D.tagName==="TEXTAREA"||D.isContentEditable||($.key==="ArrowDown"?($.preventDefault(),a.value.nextLog()):$.key==="ArrowUp"?($.preventDefault(),a.value.previousLog()):$.key==="o"&&!$.metaKey&&!$.ctrlKey?i.value.openSubdomainInNewTab():$.key==="l"&&($.metaKey||$.ctrlKey)?a.value.clearLogs():$.key==="l"?i.value.copySubdomainToClipboard():$.key==="f"&&!$.metaKey&&!$.ctrlKey?a.value.toggleFollowRequests():$.key==="q"&&!$.metaKey&&!$.ctrlKey?g():$.key==="r"&&!$.metaKey&&!$.ctrlKey&&s.value?a.value.replay(s.value):($.metaKey||$.ctrlKey)&&$.key==="k"&&($.preventDefault(),a.value.focusSearch()))},_=N(()=>f.value?"h-[calc(100vh-160px)]":"h-[calc(100vh-81px)]");return($,D)=>(w(),z("div",S1,[f.value?(w(),z("div",{key:0,class:le([f.value.background_color,f.value.text_color,"py-2 px-4 flex flex-col items-center justify-center font-medium text-lg text-center"]),style:qt(r.value)},[P("p",null,pe(f.value.message),1),P("p",k1,[P("a",{href:f.value.cta_url,class:"underline"},pe(f.value.cta_text),9,E1),ee(" "+pe(f.value.cta_suffix),1)])],6)):ae("",!0),P("div",O1,[b(tb,{ref_key:"header",ref:i,subdomains:n.subdomains,onSearchUpdated:D[0]||(D[0]=C=>l.value=C),onShowQrCode:g},null,8,["subdomains"]),P("div",T1,[b(C1,{ref_key:"sidebar",ref:a,maxLogs:n.max_logs,search:l.value,currentLog:s.value,onSetLog:h,class:le(_.value)},null,8,["maxLogs","search","currentLog","class"]),P("div",{class:le(["relative w-11/12 overflow-y-auto",_.value])},[c(vl)(s.value)?(w(),M(Yx,{key:0,subdomains:n.subdomains},null,8,["subdomains"])):(w(),M(Ux,{key:1,log:s.value,onReplay:a.value.replay,onModifiedReplay:m},null,8,["log","onReplay"]))],2)]),(w(),M(ts,{to:"body"},[b(ub,{ref_key:"qrCodeModal",ref:d,subdomains:n.subdomains},null,8,["subdomains"]),b(zb,{ref_key:"modifiedReplayModal",ref:u,currentLog:s.value},null,8,["currentLog"])]))])]))}}),Xa=document.getElementById("internalDashboard");if(Xa){const e=JSON.parse(Xa.getAttribute("data-page")||"{}");Th(A1,{pageData:e}).mount("#internalDashboard")} diff --git a/public/build/internal-dashboard/index.html b/public/build/internal-dashboard/index.html index 57644a87..5c7d9cee 100644 --- a/public/build/internal-dashboard/index.html +++ b/public/build/internal-dashboard/index.html @@ -5,7 +5,7 @@ Expose Dashboard - + diff --git a/resources/js/internal-dashboard/src/InternalDashboard.vue b/resources/js/internal-dashboard/src/InternalDashboard.vue index 84282a73..79fcb5e8 100644 --- a/resources/js/internal-dashboard/src/InternalDashboard.vue +++ b/resources/js/internal-dashboard/src/InternalDashboard.vue @@ -18,20 +18,80 @@ const page: InternalDashboardPageData = { user: props.pageData?.user ?? exampleUser(), max_logs: props.pageData?.max_logs ?? 100, local_url: props.pageData?.local_url ?? 'http://localhost', + auth_token: props.pageData?.auth_token, + platform_url: props.pageData?.platform_url ?? 'https://expose.dev', }; +const fallbackBanner: BannerData = { + message: 'You are currently using the free version of Expose.', + cta_text: 'Upgrade to Expose Pro', + cta_url: 'https://expose.dev/get-pro', + cta_suffix: 'to get access to our fast global network, custom domains, infinite tunnel duration and more.', + background_color: 'bg-pink-600', + text_color: 'text-white', + background_style: '#db2777', + text_style: '#ffffff', +}; + +const bannerStyle = computed(() => { + if (!banner.value) return {}; + return { + backgroundColor: banner.value.background_style, + color: banner.value.text_style, + }; +}); + const currentLog = ref(null as ExposeLog | null) const search = ref('' as string) const header = ref() const sidebar = ref() const qrCodeModal = ref() const modifiedReplayModal = ref() +const banner = ref(null) + +const fetchBanner = async () => { + if (!page.auth_token || !page.platform_url) { + // No token available, use fallback for free users + if (!page.user.can_specify_subdomains) { + banner.value = fallbackBanner; + } + return; + } + + try { + const response = await fetch(`${page.platform_url}/api/client/banner`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'Accept': 'application/json', + }, + body: JSON.stringify({ token: page.auth_token }), + }); + + if (response.ok) { + const data = await response.json(); + banner.value = data.data?.banner ?? null; + } else { + // API error, use fallback for free users + if (!page.user.can_specify_subdomains) { + banner.value = fallbackBanner; + } + } + } catch (error) { + // Network error, use fallback for free users + if (!page.user.can_specify_subdomains) { + banner.value = fallbackBanner; + } + } +}; onMounted(() => { window.addEventListener('keydown', setupKeybindings); const pageTitle = 'Sharing ' + page.local_url.substring(page.local_url.indexOf('://') + 3) + ' - Expose'; document.title = pageTitle; + + fetchBanner(); }); const setLog = (log: ExposeLog | null) => { @@ -84,19 +144,19 @@ const setupKeybindings = (event: KeyboardEvent) => { } const siteHeight = computed(() => { - return page.user.can_specify_subdomains ? 'h-[calc(100vh-81px)]' : 'h-[calc(100vh-160px)]'; + return banner.value ? 'h-[calc(100vh-160px)]' : 'h-[calc(100vh-81px)]'; })