diff --git "a/assets/index-CZ9ROQo_.js" "b/assets/index-CZ9ROQo_.js" new file mode 100644--- /dev/null +++ "b/assets/index-CZ9ROQo_.js" @@ -0,0 +1,3 @@ +import{h as O,g as P,G as wt,w as X,ah as Ct,ai as At,c1 as me,e as g,d as S,E as Ot,p as $,x as H,o as k,y as T,m as $e,b as V,bQ as ce,c2 as Kt,c3 as Et,c4 as Dt,c5 as Xt,bW as ye,c6 as Pt,bT as qt,bv as Le,c7 as at,bS as _e,af as ee,C as Jt,c8 as Qt,ab as Zt,bP as Tt,b_ as _t,D as U,bM as en,c as ue,n as Me,bR as tn,br as nn,c9 as kt,ca as on,cb as rn,cc as sn,b$ as ln,H as an,bx as ke,a as x,cd as cn,ce as un,bU as dn,i as fn,bE as pn,v as mn,bw as vn,A as Ve,z as De,bH as hn,B as gn,by as ct,cf as yn}from"./index-DdKO3wSp.js";import{_ as ut}from"./Collapsable.vue_vue_type_script_setup_true_lang-BwUs5KAP.js";import{n as dt}from"./Stage.vue_vue_type_style_index_0_scoped_cad77b27_lang-DBRF19vp.js";import{b as ft}from"./route-block-B_A1xBdJ.js";import"./TransitionVertical.vue_vue_type_script_setup_true_lang-DIDtgUjA.js";const bn=["top","right","bottom","left"],se=Math.min,W=Math.max,Be=Math.round,Pe=Math.floor,q=e=>({x:e,y:e}),xn={left:"right",right:"left",bottom:"top",top:"bottom"},wn={start:"end",end:"start"};function Ue(e,t,n){return W(e,se(t,n))}function te(e,t){return typeof e=="function"?e(t):e}function ne(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function Je(e){return e==="x"?"y":"x"}function Qe(e){return e==="y"?"height":"width"}function le(e){return["top","bottom"].includes(ne(e))?"y":"x"}function Ze(e){return Je(le(e))}function Cn(e,t,n){n===void 0&&(n=!1);const o=be(e),i=Ze(e),r=Qe(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Re(s)),[s,Re(s)]}function An(e){const t=Re(e);return[Ge(e),t,Ge(t)]}function Ge(e){return e.replace(/start|end/g,t=>wn[t])}function On(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function En(e,t,n,o){const i=be(e);let r=On(ne(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(Ge)))),r}function Re(e){return e.replace(/left|right|bottom|top/g,t=>xn[t])}function Dn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bt(e){return typeof e!="number"?Dn(e):{top:e,right:e,bottom:e,left:e}}function Se(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function pt(e,t,n){let{reference:o,floating:i}=e;const r=le(t),s=Ze(t),l=Qe(s),d=ne(t),c=r==="y",a=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[l]/2-i[l]/2;let f;switch(d){case"top":f={x:a,y:o.y-i.height};break;case"bottom":f={x:a,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:u};break;case"left":f={x:o.x-i.width,y:u};break;default:f={x:o.x,y:o.y}}switch(be(t)){case"start":f[s]-=p*(n&&c?-1:1);break;case"end":f[s]+=p*(n&&c?-1:1);break}return f}const Pn=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:a,y:u}=pt(c,o,d),p=o,f={},m=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:d}=t,{element:c,padding:a=0}=te(e,t)||{};if(c==null)return{};const u=Bt(a),p={x:n,y:o},f=Ze(i),m=Qe(f),y=await s.getDimensions(c),v=f==="y",h=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",A=r.reference[m]+r.reference[f]-p[f]-r.floating[m],C=p[f]-r.reference[f],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let E=_?_[b]:0;(!E||!await(s.isElement==null?void 0:s.isElement(_)))&&(E=l.floating[b]||r.floating[m]);const B=A/2-C/2,L=E/2-y[m]/2-1,D=se(u[h],L),j=se(u[w],L),M=D,F=E-y[m]-j,R=E/2-y[m]/2+B,oe=Ue(M,R,F),N=!d.arrow&&be(i)!=null&&R!==oe&&r.reference[m]/2-(RR<=0)){var j,M;const R=(((j=r.flip)==null?void 0:j.index)||0)+1,oe=E[R];if(oe)return{data:{index:R,overflows:D},reset:{placement:oe}};let N=(M=D.filter(K=>K.overflows[0]<=0).sort((K,ie)=>K.overflows[1]-ie.overflows[1])[0])==null?void 0:M.placement;if(!N)switch(f){case"bestFit":{var F;const K=(F=D.filter(ie=>{if(_){const re=le(ie.placement);return re===w||re==="y"}return!0}).map(ie=>[ie.placement,ie.overflows.filter(re=>re>0).reduce((re,Yt)=>re+Yt,0)]).sort((ie,re)=>ie[1]-re[1])[0])==null?void 0:F[0];K&&(N=K);break}case"initialPlacement":N=l;break}if(i!==N)return{reset:{placement:N}}}return{}}}};function mt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vt(e){return bn.some(t=>e[t]>=0)}const kn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=te(e,t);switch(o){case"referenceHidden":{const r=await we(t,{...i,elementContext:"reference"}),s=mt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:vt(s)}}}case"escaped":{const r=await we(t,{...i,altBoundary:!0}),s=mt(r,n.floating);return{data:{escapedOffsets:s,escaped:vt(s)}}}default:return{}}}}};async function Bn(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=ne(n),l=be(n),d=le(n)==="y",c=["left","top"].includes(s)?-1:1,a=r&&d?-1:1,u=te(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof m=="number"&&(f=l==="end"?m*-1:m),d?{x:f*a,y:p*c}:{x:p*c,y:f*a}}const Rn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:s,middlewareData:l}=t,d=await Bn(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+d.x,y:r+d.y,data:{...d,placement:s}}}}},Sn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:v=>{let{x:h,y:w}=v;return{x:h,y:w}}},...d}=te(e,t),c={x:n,y:o},a=await we(t,d),u=le(ne(i)),p=Je(u);let f=c[p],m=c[u];if(r){const v=p==="y"?"top":"left",h=p==="y"?"bottom":"right",w=f+a[v],b=f-a[h];f=Ue(w,f,b)}if(s){const v=u==="y"?"top":"left",h=u==="y"?"bottom":"right",w=m+a[v],b=m-a[h];m=Ue(w,m,b)}const y=l.fn({...t,[p]:f,[u]:m});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[p]:r,[u]:s}}}}}},$n=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=t,{offset:l=0,mainAxis:d=!0,crossAxis:c=!0}=te(e,t),a={x:n,y:o},u=le(i),p=Je(u);let f=a[p],m=a[u];const y=te(l,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(d){const b=p==="y"?"height":"width",A=r.reference[p]-r.floating[b]+v.mainAxis,C=r.reference[p]+r.reference[b]-v.mainAxis;fC&&(f=C)}if(c){var h,w;const b=p==="y"?"width":"height",A=["top","left"].includes(ne(i)),C=r.reference[u]-r.floating[b]+(A&&((h=s.offset)==null?void 0:h[u])||0)+(A?0:v.crossAxis),_=r.reference[u]+r.reference[b]+(A?0:((w=s.offset)==null?void 0:w[u])||0)-(A?v.crossAxis:0);m_&&(m=_)}return{[p]:f,[u]:m}}}},Ln=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:r,platform:s,elements:l}=t,{apply:d=()=>{},...c}=te(e,t),a=await we(t,c),u=ne(i),p=be(i),f=le(i)==="y",{width:m,height:y}=r.floating;let v,h;u==="top"||u==="bottom"?(v=u,h=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(h=u,v=p==="end"?"top":"bottom");const w=y-a.top-a.bottom,b=m-a.left-a.right,A=se(y-a[v],w),C=se(m-a[h],b),_=!t.middlewareData.shift;let E=A,B=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=w),_&&!p){const D=W(a.left,0),j=W(a.right,0),M=W(a.top,0),F=W(a.bottom,0);f?B=m-2*(D!==0||j!==0?D+j:W(a.left,a.right)):E=y-2*(M!==0||F!==0?M+F:W(a.top,a.bottom))}await d({...t,availableWidth:B,availableHeight:E});const L=await s.getDimensions(l.floating);return m!==L.width||y!==L.height?{reset:{rects:!0}}:{}}}};function Ne(){return typeof window<"u"}function pe(e){return et(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Q(e){var t;return(t=(et(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function et(e){return Ne()?e instanceof Node||e instanceof z(e).Node:!1}function G(e){return Ne()?e instanceof Element||e instanceof z(e).Element:!1}function J(e){return Ne()?e instanceof HTMLElement||e instanceof z(e).HTMLElement:!1}function ht(e){return!Ne()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}function Ae(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Mn(e){return["table","td","th"].includes(pe(e))}function He(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function tt(e){const t=nt(),n=G(e)?Y(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Nn(e){let t=ae(e);for(;J(t)&&!ge(t);){if(tt(t))return t;if(He(t))return null;t=ae(t)}return null}function nt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ge(e){return["html","body","#document"].includes(pe(e))}function Y(e){return z(e).getComputedStyle(e)}function Fe(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ae(e){if(pe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ht(e)&&e.host||Q(e);return ht(t)?t.host:t}function Rt(e){const t=ae(e);return ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:J(t)&&Ae(t)?t:Rt(t)}function Ce(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Rt(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),s=z(i);if(r){const l=Ye(s);return t.concat(s,s.visualViewport||[],Ae(i)?i:[],l&&n?Ce(l):[])}return t.concat(i,Ce(i,[],n))}function Ye(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function St(e){const t=Y(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=J(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,l=Be(n)!==r||Be(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function ot(e){return G(e)?e:e.contextElement}function he(e){const t=ot(e);if(!J(t))return q(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=St(t);let s=(r?Be(n.width):n.width)/o,l=(r?Be(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Hn=q(0);function $t(e){const t=z(e);return!nt()||!t.visualViewport?Hn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function fe(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=ot(e);let s=q(1);t&&(o?G(o)&&(s=he(o)):s=he(e));const l=Fn(r,n,o)?$t(r):q(0);let d=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,a=i.width/s.x,u=i.height/s.y;if(r){const p=z(r),f=o&&G(o)?z(o):o;let m=p,y=Ye(m);for(;y&&o&&f!==m;){const v=he(y),h=y.getBoundingClientRect(),w=Y(y),b=h.left+(y.clientLeft+parseFloat(w.paddingLeft))*v.x,A=h.top+(y.clientTop+parseFloat(w.paddingTop))*v.y;d*=v.x,c*=v.y,a*=v.x,u*=v.y,d+=b,c+=A,m=z(y),y=Ye(m)}}return Se({width:a,height:u,x:d,y:c})}function it(e,t){const n=Fe(e).scrollLeft;return t?t.left+n:fe(Q(e)).left+n}function Lt(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=o.left+t.scrollLeft-(n?0:it(e,o)),r=o.top+t.scrollTop;return{x:i,y:r}}function Wn(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r=i==="fixed",s=Q(o),l=t?He(t.floating):!1;if(o===s||l&&r)return n;let d={scrollLeft:0,scrollTop:0},c=q(1);const a=q(0),u=J(o);if((u||!u&&!r)&&((pe(o)!=="body"||Ae(s))&&(d=Fe(o)),J(o))){const f=fe(o);c=he(o),a.x=f.x+o.clientLeft,a.y=f.y+o.clientTop}const p=s&&!u&&!r?Lt(s,d,!0):q(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-d.scrollLeft*c.x+a.x+p.x,y:n.y*c.y-d.scrollTop*c.y+a.y+p.y}}function zn(e){return Array.from(e.getClientRects())}function In(e){const t=Q(e),n=Fe(e),o=e.ownerDocument.body,i=W(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=W(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+it(e);const l=-n.scrollTop;return Y(o).direction==="rtl"&&(s+=W(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}function Vn(e,t){const n=z(e),o=Q(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,d=0;if(i){r=i.width,s=i.height;const c=nt();(!c||c&&t==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:r,height:s,x:l,y:d}}function jn(e,t){const n=fe(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=J(e)?he(e):q(1),s=e.clientWidth*r.x,l=e.clientHeight*r.y,d=i*r.x,c=o*r.y;return{width:s,height:l,x:d,y:c}}function gt(e,t,n){let o;if(t==="viewport")o=Vn(e,n);else if(t==="document")o=In(Q(e));else if(G(t))o=jn(t,n);else{const i=$t(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Se(o)}function Mt(e,t){const n=ae(e);return n===t||!G(n)||ge(n)?!1:Y(n).position==="fixed"||Mt(n,t)}function Un(e,t){const n=t.get(e);if(n)return n;let o=Ce(e,[],!1).filter(l=>G(l)&&pe(l)!=="body"),i=null;const r=Y(e).position==="fixed";let s=r?ae(e):e;for(;G(s)&&!ge(s);){const l=Y(s),d=tt(s);!d&&l.position==="fixed"&&(i=null),(r?!d&&!i:!d&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ae(s)&&!d&&Mt(e,s))?o=o.filter(a=>a!==s):i=l,s=ae(s)}return t.set(e,o),o}function Gn(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?He(t)?[]:Un(t,this._c):[].concat(n),o],l=s[0],d=s.reduce((c,a)=>{const u=gt(t,a,i);return c.top=W(u.top,c.top),c.right=se(u.right,c.right),c.bottom=se(u.bottom,c.bottom),c.left=W(u.left,c.left),c},gt(t,l,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Yn(e){const{width:t,height:n}=St(e);return{width:t,height:n}}function Kn(e,t,n){const o=J(t),i=Q(t),r=n==="fixed",s=fe(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const d=q(0);if(o||!o&&!r)if((pe(t)!=="body"||Ae(i))&&(l=Fe(t)),o){const p=fe(t,!0,r,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else i&&(d.x=it(i));const c=i&&!o&&!r?Lt(i,l):q(0),a=s.left+l.scrollLeft-d.x-c.x,u=s.top+l.scrollTop-d.y-c.y;return{x:a,y:u,width:s.width,height:s.height}}function je(e){return Y(e).position==="static"}function yt(e,t){if(!J(e)||Y(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Q(e)===n&&(n=n.ownerDocument.body),n}function Nt(e,t){const n=z(e);if(He(e))return n;if(!J(e)){let i=ae(e);for(;i&&!ge(i);){if(G(i)&&!je(i))return i;i=ae(i)}return n}let o=yt(e,t);for(;o&&Mn(o)&&je(o);)o=yt(o,t);return o&&ge(o)&&je(o)&&!tt(o)?n:o||Nn(e)||n}const Xn=async function(e){const t=this.getOffsetParent||Nt,n=this.getDimensions,o=await n(e.floating);return{reference:Kn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function qn(e){return Y(e).direction==="rtl"}const Jn={convertOffsetParentRelativeRectToViewportRelativeRect:Wn,getDocumentElement:Q,getClippingRect:Gn,getOffsetParent:Nt,getElementRects:Xn,getClientRects:zn,getDimensions:Yn,getScale:he,isElement:G,isRTL:qn};function Ht(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qn(e,t){let n=null,o;const i=Q(e);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),r();const c=e.getBoundingClientRect(),{left:a,top:u,width:p,height:f}=c;if(l||t(),!p||!f)return;const m=Pe(u),y=Pe(i.clientWidth-(a+p)),v=Pe(i.clientHeight-(u+f)),h=Pe(a),b={rootMargin:-m+"px "+-y+"px "+-v+"px "+-h+"px",threshold:W(0,se(1,d))||1};let A=!0;function C(_){const E=_[0].intersectionRatio;if(E!==d){if(!A)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!Ht(c,e.getBoundingClientRect())&&s(),A=!1}try{n=new IntersectionObserver(C,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return s(!0),r}function Zn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,c=ot(e),a=i||r?[...c?Ce(c):[],...Ce(t)]:[];a.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),r&&h.addEventListener("resize",n)});const u=c&&l?Qn(c,n):null;let p=-1,f=null;s&&(f=new ResizeObserver(h=>{let[w]=h;w&&w.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),n()}),c&&!d&&f.observe(c),f.observe(t));let m,y=d?fe(e):null;d&&v();function v(){const h=fe(e);y&&!Ht(y,h)&&n(),y=h,m=requestAnimationFrame(v)}return n(),()=>{var h;a.forEach(w=>{i&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),u==null||u(),(h=f)==null||h.disconnect(),f=null,d&&cancelAnimationFrame(m)}}const eo=Rn,to=Sn,bt=_n,no=Ln,oo=kn,io=Tn,ro=$n,so=(e,t,n)=>{const o=new Map,i={platform:Jn,...n},r={...i.platform,_c:o};return Pn(e,t,{...i,platform:r})};function lo(e){return e!=null&&typeof e=="object"&&"$el"in e}function Ke(e){if(lo(e)){const t=e.$el;return et(t)&&pe(t)==="#comment"?null:t}return e}function ve(e){return typeof e=="function"?e():g(e)}function ao(e){return{name:"arrow",options:e,fn(t){const n=Ke(ve(e.element));return n==null?{}:io({element:n,padding:e.padding}).fn(t)}}}function Ft(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xt(e,t){const n=Ft(e);return Math.round(t*n)/n}function co(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=O(()=>{var E;return(E=ve(n.open))!=null?E:!0}),r=O(()=>ve(n.middleware)),s=O(()=>{var E;return(E=ve(n.placement))!=null?E:"bottom"}),l=O(()=>{var E;return(E=ve(n.strategy))!=null?E:"absolute"}),d=O(()=>{var E;return(E=ve(n.transform))!=null?E:!0}),c=O(()=>Ke(e.value)),a=O(()=>Ke(t.value)),u=P(0),p=P(0),f=P(l.value),m=P(s.value),y=wt({}),v=P(!1),h=O(()=>{const E={position:f.value,left:"0",top:"0"};if(!a.value)return E;const B=xt(a.value,u.value),L=xt(a.value,p.value);return d.value?{...E,transform:"translate("+B+"px, "+L+"px)",...Ft(a.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:B+"px",top:L+"px"}});let w;function b(){if(c.value==null||a.value==null)return;const E=i.value;so(c.value,a.value,{middleware:r.value,placement:s.value,strategy:l.value}).then(B=>{u.value=B.x,p.value=B.y,f.value=B.strategy,m.value=B.placement,y.value=B.middlewareData,v.value=E!==!1})}function A(){typeof w=="function"&&(w(),w=void 0)}function C(){if(A(),o===void 0){b();return}if(c.value!=null&&a.value!=null){w=o(c.value,a.value,b);return}}function _(){i.value||(v.value=!1)}return X([r,s,l,i],b,{flush:"sync"}),X([c,a],C,{flush:"sync"}),X(i,_,{flush:"sync"}),Ct()&&At(A),{x:me(u),y:me(p),strategy:me(f),placement:me(m),middlewareData:me(y),isPositioned:me(v),floatingStyles:h,update:b}}function Oe(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,o=Symbol(n);return[i=>{const r=qt(o,i);if(r||r===null)return r;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(dn(o,i),i)]}function Wt(e,t,n){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),o.dispatchEvent(i)}function uo(e,t){var n;const o=wt();return ee(()=>{o.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Pt(o)}function We(e){return Ct()?(At(e),!0):!1}function fo(){const e=new Set,t=n=>{e.delete(n)};return{on:n=>{e.add(n);const o=()=>t(n);return We(o),{off:o}},off:t,trigger:(...n)=>Promise.all(Array.from(e).map(o=>o(...n)))}}function po(e){let t=!1,n;const o=un(!0);return(...i)=>(t||(n=o.run(()=>e(...i)),t=!0),n)}function de(e){return typeof e=="function"?e():g(e)}const Ee=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const mo=e=>typeof e<"u",vo=Object.prototype.toString,ho=e=>vo.call(e)==="[object Object]",go=()=>{};function yo(e,t=1e4){return cn((n,o)=>{let i=de(e),r;const s=()=>setTimeout(()=>{i=de(e),o()},de(t));return We(()=>{clearTimeout(r)}),{get(){return n(),i},set(l){i=l,o(),clearTimeout(r),r=s()}}})}function zt(e,t,n={}){const{immediate:o=!0}=n,i=P(!1);let r=null;function s(){r&&(clearTimeout(r),r=null)}function l(){i.value=!1,s()}function d(...c){s(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},de(t))}return o&&(i.value=!0,Ee&&d()),We(l),{isPending:Pt(i),start:d,stop:l}}function ze(e){var t;const n=de(e);return(t=n==null?void 0:n.$el)!=null?t:n}const rt=Ee?window:void 0;function Xe(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=rt):[t,n,o,i]=e,!t)return go;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(a=>a()),r.length=0},l=(a,u,p,f)=>(a.addEventListener(u,p,f),()=>a.removeEventListener(u,p,f)),d=X(()=>[ze(t),de(i)],([a,u])=>{if(s(),!a)return;const p=ho(u)?{...u}:u;r.push(...n.flatMap(f=>o.map(m=>l(a,f,m,p))))},{immediate:!0,flush:"post"}),c=()=>{d(),s()};return We(c),c}function bo(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function xo(...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:i=rt,eventName:r="keydown",passive:s=!1,dedupe:l=!1}=o,d=bo(t);return Xe(i,r,c=>{c.repeat&&de(l)||d(c)&&n(c)},s)}function wo(){const e=P(!1),t=ye();return t&&$e(()=>{e.value=!0},t),e}function Co(e){return JSON.parse(JSON.stringify(e))}function Ao(e,t,n,o={}){var i,r,s;const{clone:l=!1,passive:d=!1,eventName:c,deep:a=!1,defaultValue:u,shouldEmit:p}=o,f=ye(),m=n||(f==null?void 0:f.emit)||((i=f==null?void 0:f.$emit)==null?void 0:i.bind(f))||((s=(r=f==null?void 0:f.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(f==null?void 0:f.proxy));let y=c;y=y||`update:${t.toString()}`;const v=b=>l?typeof l=="function"?l(b):Co(b):b,h=()=>mo(e[t])?v(e[t]):u,w=b=>{p?p(b)&&m(y,b):m(y,b)};if(d){const b=h(),A=P(b);let C=!1;return X(()=>e[t],_=>{C||(C=!0,A.value=v(_),Le(()=>C=!1))}),X(A,_=>{!C&&(_!==e[t]||a)&&w(_)},{deep:a}),A}else return O({get(){return h()},set(b){w(b)}})}function st(e){return e?e.flatMap(t=>t.type===ke?st(t.children):[t]):[]}const[Oo,Ui]=Oe("ConfigProvider");function Eo(e){const t=ye(),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(i=>{o[on(kt(i))]=(...r)=>e(i,...r)}),o}function It(e){const t=ye(),n=Object.keys((t==null?void 0:t.type.props)??{}).reduce((i,r)=>{const s=(t==null?void 0:t.type.props[r]).default;return s!==void 0&&(i[r]=s),i},{}),o=nn(e);return O(()=>{const i={},r=(t==null?void 0:t.vnode.props)??{};return Object.keys(r).forEach(s=>{i[kt(s)]=r[s]}),Object.keys({...n,...i}).reduce((s,l)=>(o.value[l]!==void 0&&(s[l]=o.value[l]),s),{})})}function Do(e,t){const n=It(e),o=t?Eo(t):{};return O(()=>({...n.value,...o}))}function I(){const e=ye(),t=P(),n=O(()=>{var s,l;return["#text","#comment"].includes((s=t.value)==null?void 0:s.$el.nodeName)?(l=t.value)==null?void 0:l.$el.nextElementSibling:ze(t)}),o=Object.assign({},e.exposed),i={};for(const s in e.props)Object.defineProperty(i,s,{enumerable:!0,configurable:!0,get:()=>e.props[s]});if(Object.keys(o).length>0)for(const s in o)Object.defineProperty(i,s,{enumerable:!0,configurable:!0,get:()=>o[s]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function r(s){t.value=s,s&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>s instanceof Element?s:s.$el}),e.exposed=i)}return{forwardRef:r,currentRef:t,currentElement:n}}function Po(e,t){const n=yo(!1,300),o=P(null),i=fo();function r(){o.value=null,n.value=!1}function s(l,d){const c=l.currentTarget,a={x:l.clientX,y:l.clientY},u=To(a,c.getBoundingClientRect()),p=_o(a,u),f=ko(d.getBoundingClientRect()),m=Ro([...p,...f]);o.value=m,n.value=!0}return ee(l=>{if(e.value&&t.value){const d=a=>s(a,t.value),c=a=>s(a,e.value);e.value.addEventListener("pointerleave",d),t.value.addEventListener("pointerleave",c),l(()=>{var a,u;(a=e.value)==null||a.removeEventListener("pointerleave",d),(u=t.value)==null||u.removeEventListener("pointerleave",c)})}}),ee(l=>{var d;if(o.value){const c=a=>{var u,p;if(!o.value)return;const f=a.target,m={x:a.clientX,y:a.clientY},y=((u=e.value)==null?void 0:u.contains(f))||((p=t.value)==null?void 0:p.contains(f)),v=!Bo(m,o.value),h=!!f.closest("[data-grace-area-trigger]");y?r():(v||h)&&(r(),i.trigger())};(d=e.value)==null||d.ownerDocument.addEventListener("pointermove",c),l(()=>{var a;return(a=e.value)==null?void 0:a.ownerDocument.removeEventListener("pointermove",c)})}}),{isPointerInTransit:n,onPointerExit:i.on}}function To(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,o,i,r)){case r:return"left";case i:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function _o(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 ko(e){const{top:t,right:n,bottom:o,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:o},{x:i,y:o}]}function Bo(e,t){const{x:n,y:o}=e;let i=!1;for(let r=0,s=t.length-1;ro!=a>o&&n<(c-l)*(o-d)/(a-d)+l&&(i=!i)}return i}function Ro(e){const t=e.slice();return t.sort((n,o)=>n.xo.x?1:n.yo.y?1:0),So(t)}function So(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o=2;){const r=t[t.length-1],s=t[t.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;n.length>=2;){const r=n[n.length-1],s=n[n.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}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)}let $o=0;function Lo(e,t="radix"){const n=Oo({useId:void 0});return at?`${t}-${at()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++$o}`}function Mo(e){const t=P(),n=O(()=>{var i;return((i=t.value)==null?void 0:i.width)??0}),o=O(()=>{var i;return((i=t.value)==null?void 0:i.height)??0});return $e(()=>{const i=ze(e);if(i){t.value={width:i.offsetWidth,height:i.offsetHeight};const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let d,c;if("borderBoxSize"in l){const a=l.borderBoxSize,u=Array.isArray(a)?a[0]:a;d=u.inlineSize,c=u.blockSize}else d=i.offsetWidth,c=i.offsetHeight;t.value={width:d,height:c}});return r.observe(i,{box:"border-box"}),()=>r.unobserve(i)}else t.value=void 0}),{width:n,height:o}}function No(e,t){const n=P(e);function o(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=o(i)}}}const Ho=S({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var o,i;if(!n.default)return null;const r=st(n.default()),s=r.findIndex(a=>a.type!==Tt);if(s===-1)return r;const l=r[s];(o=l.props)==null||delete o.ref;const d=l.props?ce(t,l.props):t;t.class&&(i=l.props)!=null&&i.class&&delete l.props.class;const c=tn(l,d);for(const a in d)a.startsWith("on")&&(c.props||(c.props={}),c.props[a]=d[a]);return r.length===1?c:(r[s]=c,r)}}}),xe=S({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)?()=>_e(o,t):o!=="template"?()=>_e(e.as,t,{default:n.default}):()=>_e(Ho,t,{default:n.default})}});function Fo(e,t){var n;const o=P({}),i=P("none"),r=P(e),s=e.value?"mounted":"unmounted";let l;const d=((n=t.value)==null?void 0:n.ownerDocument.defaultView)??rt,{state:c,dispatch:a}=No(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=v=>{var h;if(Ee){const w=new CustomEvent(v,{bubbles:!1,cancelable:!1});(h=t.value)==null||h.dispatchEvent(w)}};X(e,async(v,h)=>{var w;const b=h!==v;if(await Le(),b){const A=i.value,C=Te(t.value);v?(a("MOUNT"),u("enter"),C==="none"&&u("after-enter")):C==="none"||((w=o.value)==null?void 0:w.display)==="none"?(a("UNMOUNT"),u("leave"),u("after-leave")):h&&A!==C?(a("ANIMATION_OUT"),u("leave")):(a("UNMOUNT"),u("after-leave"))}},{immediate:!0});const p=v=>{const h=Te(t.value),w=h.includes(v.animationName),b=c.value==="mounted"?"enter":"leave";if(v.target===t.value&&w&&(u(`after-${b}`),a("ANIMATION_END"),!r.value)){const A=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",l=d==null?void 0:d.setTimeout(()=>{var C;((C=t.value)==null?void 0:C.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=A)})}v.target===t.value&&h==="none"&&a("ANIMATION_END")},f=v=>{v.target===t.value&&(i.value=Te(t.value))},m=X(t,(v,h)=>{v?(o.value=getComputedStyle(v),v.addEventListener("animationstart",f),v.addEventListener("animationcancel",p),v.addEventListener("animationend",p)):(a("ANIMATION_END"),l!==void 0&&(d==null||d.clearTimeout(l)),h==null||h.removeEventListener("animationstart",f),h==null||h.removeEventListener("animationcancel",p),h==null||h.removeEventListener("animationend",p))},{immediate:!0}),y=X(c,()=>{const v=Te(t.value);i.value=c.value==="mounted"?v:"none"});return an(()=>{m(),y()}),{isPresent:O(()=>["mounted","unmountSuspended"].includes(c.value))}}function Te(e){return e&&getComputedStyle(e).animationName||"none"}const Wo=S({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var o;const{present:i,forceMount:r}=Ot(e),s=P(),{isPresent:l}=Fo(i,s);n({present:l});let d=t.default({present:l});d=st(d||[]);const c=ye();if(d&&(d==null?void 0:d.length)>1){const a=(o=c==null?void 0:c.parent)!=null&&o.type.name?`<${c.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${a}\` 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(u=>` - ${u}`).join(` +`)].join(` +`))}return()=>r.value||i.value||l.value?_e(t.default({present:l})[0],{ref:a=>{const u=ze(a);return typeof(u==null?void 0:u.hasAttribute)>"u"||(u!=null&&u.hasAttribute("data-radix-popper-content-wrapper")?s.value=u.firstElementChild:s.value=u),u}}):null}}),zo=S({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=wo();return(n,o)=>g(t)||n.forceMount?(k(),H(Qt,{key:0,to:n.to,disabled:n.disabled},[$(n.$slots,"default")],8,["to","disabled"])):Jt("",!0)}}),Io="dismissableLayer.pointerDownOutside",Vo="dismissableLayer.focusOutside";function Vt(e,t){const n=t.closest("[data-dismissable-layer]"),o=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),i=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&o===n||i.indexOf(o){});return ee(s=>{if(!Ee)return;const l=async c=>{const a=c.target;if(t!=null&&t.value){if(Vt(t.value,a)){i.value=!1;return}if(c.target&&!i.value){let u=function(){Wt(Io,e,p)};const p={originalEvent:c};c.pointerType==="touch"?(o.removeEventListener("click",r.value),r.value=u,o.addEventListener("click",r.value,{once:!0})):u()}else o.removeEventListener("click",r.value);i.value=!1}},d=window.setTimeout(()=>{o.addEventListener("pointerdown",l)},0);s(()=>{window.clearTimeout(d),o.removeEventListener("pointerdown",l),o.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>i.value=!0}}function Uo(e,t){var n;const o=((n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)??(globalThis==null?void 0:globalThis.document),i=P(!1);return ee(r=>{if(!Ee)return;const s=async l=>{t!=null&&t.value&&(await Le(),!(!t.value||Vt(t.value,l.target))&&l.target&&!i.value&&Wt(Vo,e,{originalEvent:l}))};o.addEventListener("focusin",s),r(()=>o.removeEventListener("focusin",s))}),{onFocusCapture:()=>i.value=!0,onBlurCapture:()=>i.value=!1}}const Z=ln({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Go=S({__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:i,currentElement:r}=I(),s=O(()=>{var m;return((m=r.value)==null?void 0:m.ownerDocument)??globalThis.document}),l=O(()=>Z.layersRoot),d=O(()=>r.value?Array.from(l.value).indexOf(r.value):-1),c=O(()=>Z.layersWithOutsidePointerEventsDisabled.size>0),a=O(()=>{const m=Array.from(l.value),[y]=[...Z.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(y);return d.value>=v}),u=jo(async m=>{const y=[...Z.branches].some(v=>v==null?void 0:v.contains(m.target));!a.value||y||(o("pointerDownOutside",m),o("interactOutside",m),await Le(),m.defaultPrevented||o("dismiss"))},r),p=Uo(m=>{[...Z.branches].some(y=>y==null?void 0:y.contains(m.target))||(o("focusOutside",m),o("interactOutside",m),m.defaultPrevented||o("dismiss"))},r);xo("Escape",m=>{d.value===l.value.size-1&&(o("escapeKeyDown",m),m.defaultPrevented||o("dismiss"))});let f;return ee(m=>{r.value&&(n.disableOutsidePointerEvents&&(Z.layersWithOutsidePointerEventsDisabled.size===0&&(f=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),Z.layersWithOutsidePointerEventsDisabled.add(r.value)),l.value.add(r.value),m(()=>{n.disableOutsidePointerEvents&&Z.layersWithOutsidePointerEventsDisabled.size===1&&(s.value.body.style.pointerEvents=f)}))}),ee(m=>{m(()=>{r.value&&(l.value.delete(r.value),Z.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(m,y)=>(k(),H(g(xe),{ref:g(i),"as-child":m.asChild,as:m.as,"data-dismissable-layer":"",style:Me({pointerEvents:c.value?a.value?"auto":"none":void 0}),onFocusCapture:g(p).onFocusCapture,onBlurCapture:g(p).onBlurCapture,onPointerdownCapture:g(u).onPointerDownCapture},{default:T(()=>[$(m.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}});po(()=>P([]));const[jt,Yo]=Oe("PopperRoot"),Ko=S({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=P();return Yo({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>$(n.$slots,"default")}}),Xo=S({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:o}=I(),i=jt();return ee(()=>{i.onAnchorChange(t.element??o.value)}),(r,s)=>(k(),H(g(xe),{ref:g(n),as:r.as,"as-child":r.asChild},{default:T(()=>[$(r.$slots,"default")]),_:3},8,["as","as-child"]))}});function qo(e){return e!==null}function Jo(e){return{name:"transformOrigin",options:e,fn(t){var n,o,i;const{placement:r,rects:s,middlewareData:l}=t,d=((n=l.arrow)==null?void 0:n.centerOffset)!==0,c=d?0:e.arrowWidth,a=d?0:e.arrowHeight,[u,p]=qe(r),f={start:"0%",center:"50%",end:"100%"}[p],m=(((o=l.arrow)==null?void 0:o.x)??0)+c/2,y=(((i=l.arrow)==null?void 0:i.y)??0)+a/2;let v="",h="";return u==="bottom"?(v=d?f:`${m}px`,h=`${-a}px`):u==="top"?(v=d?f:`${m}px`,h=`${s.floating.height+a}px`):u==="right"?(v=`${-a}px`,h=d?f:`${y}px`):u==="left"&&(v=`${s.floating.width+a}px`,h=d?f:`${y}px`),{data:{x:v,y:h}}}}}function qe(e){const[t,n="center"]=e.split("-");return[t,n]}const Qo={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[Zo,ei]=Oe("PopperContent"),ti=S({inheritAttrs:!1,__name:"PopperContent",props:rn({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...Qo}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,i=jt(),{forwardRef:r,currentElement:s}=I(),l=P(),d=P(),{width:c,height:a}=Mo(d),u=O(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),p=O(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),f=O(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=O(()=>({padding:p.value,boundary:f.value.filter(qo),altBoundary:f.value.length>0})),y=uo(()=>[eo({mainAxis:n.sideOffset+a.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&bt({...m.value}),n.avoidCollisions&&to({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?ro():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&bt({...m.value}),no({...m.value,apply:({elements:D,rects:j,availableWidth:M,availableHeight:F})=>{const{width:R,height:oe}=j.reference,N=D.floating.style;N.setProperty("--radix-popper-available-width",`${M}px`),N.setProperty("--radix-popper-available-height",`${F}px`),N.setProperty("--radix-popper-anchor-width",`${R}px`),N.setProperty("--radix-popper-anchor-height",`${oe}px`)}}),d.value&&ao({element:d.value,padding:n.arrowPadding}),Jo({arrowWidth:c.value,arrowHeight:a.value}),n.hideWhenDetached&&oo({strategy:"referenceHidden",...m.value})]),{floatingStyles:v,placement:h,isPositioned:w,middlewareData:b}=co(i.anchor,l,{strategy:"fixed",placement:u,whileElementsMounted:(...D)=>Zn(...D,{animationFrame:n.updatePositionStrategy==="always"}),middleware:y}),A=O(()=>qe(h.value)[0]),C=O(()=>qe(h.value)[1]);sn(()=>{w.value&&o("placed")});const _=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.centerOffset)!==0}),E=P("");ee(()=>{s.value&&(E.value=window.getComputedStyle(s.value).zIndex)});const B=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.x)??0}),L=O(()=>{var D;return((D=b.value.arrow)==null?void 0:D.y)??0});return ei({placedSide:A,onArrowChange:D=>d.value=D,arrowX:B,arrowY:L,shouldHideArrow:_}),(D,j)=>{var M,F,R;return k(),ue("div",{ref_key:"floatingRef",ref:l,"data-radix-popper-content-wrapper":"",style:Me({...g(v),transform:g(w)?g(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:E.value,"--radix-popper-transform-origin":[(M=g(b).transformOrigin)==null?void 0:M.x,(F=g(b).transformOrigin)==null?void 0:F.y].join(" "),...((R=g(b).hide)==null?void 0:R.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[V(g(xe),ce({ref:g(r)},D.$attrs,{"as-child":n.asChild,as:D.as,"data-side":A.value,"data-align":C.value,style:{animation:g(w)?void 0:"none"}}),{default:T(()=>[$(D.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),ni=x("polygon",{points:"0,0 30,0 15,10"},null,-1),oi=S({__name:"Arrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return I(),(n,o)=>(k(),H(g(xe),ce(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 30 10",preserveAspectRatio:n.asChild?void 0:"none"}),{default:T(()=>[$(n.$slots,"default",{},()=>[ni])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),ii={top:"bottom",right:"left",bottom:"top",left:"right"},ri=S({inheritAttrs:!1,__name:"PopperArrow",props:{width:{},height:{},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const{forwardRef:t}=I(),n=Zo(),o=O(()=>ii[n.placedSide.value]);return(i,r)=>{var s,l,d,c;return k(),ue("span",{ref:a=>{g(n).onArrowChange(a)},style:Me({position:"absolute",left:(s=g(n).arrowX)!=null&&s.value?`${(l=g(n).arrowX)==null?void 0:l.value}px`:void 0,top:(d=g(n).arrowY)!=null&&d.value?`${(c=g(n).arrowY)==null?void 0:c.value}px`:void 0,[o.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[g(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[g(n).placedSide.value],visibility:g(n).shouldHideArrow.value?"hidden":void 0})},[V(oi,ce(i.$attrs,{ref:g(t),style:{display:"block"},as:i.as,"as-child":i.asChild,width:i.width,height:i.height}),{default:T(()=>[$(i.$slots,"default")]),_:3},16,["as","as-child","width","height"])],4)}}}),si=S({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return I(),(t,n)=>(k(),H(g(xe),{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:T(()=>[$(t.$slots,"default")]),_:3},8,["as","as-child"]))}});function li(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}li();const Ut="tooltip.open",[lt,ai]=Oe("TooltipProvider"),ci=S({inheritAttrs:!1,__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:i,disableClosingTrigger:r,ignoreNonKeyboardFocus:s,disabled:l}=Ot(t);I();const d=P(!0),c=P(!1),{start:a,stop:u}=zt(()=>{d.value=!0},o,{immediate:!1});return ai({isOpenDelayed:d,delayDuration:n,onOpen(){u(),d.value=!1},onClose(){a()},isPointerInTransitRef:c,disableHoverableContent:i,disableClosingTrigger:r,disabled:l,ignoreNonKeyboardFocus:s}),(p,f)=>$(p.$slots,"default")}}),[Ie,ui]=Oe("TooltipRoot"),di=S({__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;I();const i=lt(),r=O(()=>n.disableHoverableContent??i.disableHoverableContent.value),s=O(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),l=O(()=>n.disabled??i.disabled.value),d=O(()=>n.delayDuration??i.delayDuration.value),c=O(()=>n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),a=Ao(n,"open",o,{defaultValue:n.defaultOpen,passive:n.open===void 0});X(a,b=>{i.onClose&&(b?(i.onOpen(),document.dispatchEvent(new CustomEvent(Ut))):i.onClose())});const u=P(!1),p=P(),f=O(()=>a.value?u.value?"delayed-open":"instant-open":"closed"),{start:m,stop:y}=zt(()=>{u.value=!0,a.value=!0},d,{immediate:!1});function v(){y(),u.value=!1,a.value=!0}function h(){y(),a.value=!1}function w(){m()}return ui({contentId:"",open:a,stateAttribute:f,trigger:p,onTriggerChange(b){p.value=b},onTriggerEnter(){i.isOpenDelayed.value?w():v()},onTriggerLeave(){r.value?h():y()},onOpen:v,onClose:h,disableHoverableContent:r,disableClosingTrigger:s,disabled:l,ignoreNonKeyboardFocus:c}),(b,A)=>(k(),H(g(Ko),null,{default:T(()=>[$(b.$slots,"default",{open:g(a)})]),_:3}))}}),fi=S({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=Ie(),o=lt();n.contentId||(n.contentId=Lo(void 0,"radix-vue-tooltip-content"));const{forwardRef:i,currentElement:r}=I(),s=P(!1),l=P(!1),d=O(()=>n.disabled.value?{}:{click:y,focus:f,pointermove:u,pointerleave:p,pointerdown:a,blur:m});$e(()=>{n.onTriggerChange(r.value)});function c(){setTimeout(()=>{s.value=!1},1)}function a(){s.value=!0,document.addEventListener("pointerup",c,{once:!0})}function u(v){v.pointerType!=="touch"&&!l.value&&!o.isPointerInTransitRef.value&&(n.onTriggerEnter(),l.value=!0)}function p(){n.onTriggerLeave(),l.value=!1}function f(v){var h,w;s.value||n.ignoreNonKeyboardFocus.value&&!((w=(h=v.target).matches)!=null&&w.call(h,":focus-visible"))||n.onOpen()}function m(){n.onClose()}function y(){n.disableClosingTrigger.value||n.onClose()}return(v,h)=>(k(),H(g(Xo),{"as-child":""},{default:T(()=>[V(g(xe),ce({ref:g(i),"aria-describedby":g(n).open.value?g(n).contentId:void 0,"data-state":g(n).stateAttribute.value,as:v.as,"as-child":t.asChild,"data-grace-area-trigger":""},Kt(d.value)),{default:T(()=>[$(v.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),Gt=S({__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,i=Ie(),{forwardRef:r}=I(),s=Zt(),l=O(()=>{var a;return(a=s.default)==null?void 0:a.call(s)}),d=O(()=>{var a;if(n.ariaLabel)return n.ariaLabel;let u="";function p(f){typeof f.children=="string"&&f.type!==Tt?u+=f.children:Array.isArray(f.children)&&f.children.forEach(m=>p(m))}return(a=l.value)==null||a.forEach(f=>p(f)),u}),c=O(()=>{const{ariaLabel:a,...u}=n;return u});return $e(()=>{Xe(window,"scroll",a=>{const u=a.target;u!=null&&u.contains(i.trigger.value)&&i.onClose()}),Xe(window,Ut,i.onClose)}),(a,u)=>(k(),H(g(Go),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:u[0]||(u[0]=p=>o("escapeKeyDown",p)),onPointerDownOutside:u[1]||(u[1]=p=>{var f;g(i).disableClosingTrigger.value&&(f=g(i).trigger.value)!=null&&f.contains(p.target)&&p.preventDefault(),o("pointerDownOutside",p)}),onFocusOutside:u[2]||(u[2]=en(()=>{},["prevent"])),onDismiss:u[3]||(u[3]=p=>g(i).onClose())},{default:T(()=>[V(g(ti),ce({ref:g(r),"data-state":g(i).stateAttribute.value},{...a.$attrs,...c.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:T(()=>[$(a.$slots,"default"),V(g(si),{id:g(i).contentId,role:"tooltip"},{default:T(()=>[_t(U(d.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),pi=S({__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=It(e),{forwardRef:n,currentElement:o}=I(),{trigger:i,onClose:r}=Ie(),s=lt(),{isPointerInTransit:l,onPointerExit:d}=Po(i,o);return s.isPointerInTransitRef=l,d(()=>{r()}),(c,a)=>(k(),H(Gt,ce({ref:g(n)},g(t)),{default:T(()=>[$(c.$slots,"default")]),_:3},16))}}),mi=S({__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,i=Ie(),r=Do(n,o),{forwardRef:s}=I();return(l,d)=>(k(),H(g(Wo),{present:l.forceMount||g(i).open.value},{default:T(()=>[(k(),H(Xt(g(i).disableHoverableContent.value?Gt:pi),ce({ref:g(s)},g(r)),{default:T(()=>[$(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),vi=S({__name:"TooltipArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return I(),(n,o)=>(k(),H(g(ri),Et(Dt(t)),{default:T(()=>[$(n.$slots,"default")]),_:3},16))}}),hi=S({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,o)=>(k(),H(g(zo),Et(Dt(t)),{default:T(()=>[$(n.$slots,"default")]),_:3},16))}}),gi={flex:"~ row","items-center":"","gap-2":"",initial:{opacity:0,x:10},enter:{opacity:1,x:0},leave:{opacity:0,x:-10},duration:250},yi={relative:""},bi={absolute:"","left-0":"","top-0":"","translate-y":"[-80%]"},xi={text:"neutral-300 dark:neutral-500","text-nowrap":""},wi={"text-nowrap":"","text-3xl":"","font-semibold":""},Ci={"flex-col":""},Ai=["onClick"],Oi={flex:"~ row 1","items-center":"","gap-1.5":""},Ei={"p-4":""},Di={class:"mb-2 text-sm font-medium"},Pi={flex:"~ col gap-4"},Ti=["disabled"],_i={"mt-4":"",class:"flex items-center justify-end gap-4"},ki={class:"relative inline-flex cursor-pointer items-center"},Bi={class:"ml-2 text-sm font-medium"},Ri=["onClick"],Si={flex:"~ row 1","items-center":"","gap-1.5":""},$i={"p-4":"",flex:"~ col gap-4"},Li={"text-base":"","font-medium":""},Mi={text:"sm neutral-500"},Ni={flex:"~ row","gap-2":""},Hi=["onClick"],Fi=S({__name:"index",setup(e){const{t}=fn(),n=pn(),o=mn(),i=O(()=>[{name:t("settings.pages.themes.sections.section.theme-presets.preset.morandi.title"),description:t("settings.pages.themes.sections.section.theme-presets.preset.morandi.description"),colors:[{hex:"#A5978B",name:"Taupe"},{hex:"#D8CAAF",name:"Beige"},{hex:"#B8B4A7",name:"Ash Grey"},{hex:"#C4BCB1",name:"Light Taupe"},{hex:"#E5DED8",name:"Ivory"},{hex:"#9A8F7D",name:"Olive Grey"},{hex:"#BEB5A7",name:"Sand"},{hex:"#C9C0B6",name:"Warm Grey"}]},{name:t("settings.pages.themes.sections.section.theme-presets.preset.monet.title"),description:t("settings.pages.themes.sections.section.theme-presets.preset.monet.description"),colors:[{hex:"#7A9EAF",name:"Sky Blue"},{hex:"#B8C7CC",name:"Mist"},{hex:"#D4B79C",name:"Sand"},{hex:"#8B9D77",name:"Moss Green"},{hex:"#C7D5CB",name:"Water Lily"},{hex:"#E6D0B1",name:"Wheat"},{hex:"#94A7B1",name:"Slate Blue"},{hex:"#B4C8C3",name:"Sage"}]},{name:t("settings.pages.themes.sections.section.theme-presets.preset.japanese.title"),description:t("settings.pages.themes.sections.section.theme-presets.preset.japanese.description"),colors:[{hex:"#D9B48F",name:"Tan"},{hex:"#B5917A",name:"Warm Taupe"},{hex:"#8C7A6B",name:"Umber"},{hex:"#A17F5F",name:"Coffee"},{hex:"#B98C46",name:"Bronze"},{hex:"#C7A252",name:"Gold"},{hex:"#DAB300",name:"Mustard"},{hex:"#D19826",name:"Amber"}]},{name:t("settings.pages.themes.sections.section.theme-presets.preset.nordic.title"),description:t("settings.pages.themes.sections.section.theme-presets.preset.nordic.description"),colors:[{hex:"#9BA7B0",name:"Nordic Blue"},{hex:"#C1CBD4",name:"Ice"},{hex:"#A5ADB6",name:"Fjord"},{hex:"#8B959E",name:"Steel"},{hex:"#D4DCE4",name:"Glacier"},{hex:"#7F8A94",name:"Slate"},{hex:"#B3BCC6",name:"Cloud"},{hex:"#98A4AE",name:"Stone"}]},{name:t("settings.pages.themes.sections.section.theme-presets.preset.chinese.title"),description:t("settings.pages.themes.sections.section.theme-presets.preset.chinese.description"),colors:[{hex:"#E4C6D0",name:"霞光红 (Rosy Dawn)"},{hex:"#A61B29",name:"枣红 (Chinese Red)"},{hex:"#5D513C",name:"黄栌 (Smoky Brown)"},{hex:"#789262",name:"竹青 (Bamboo Green)"},{hex:"#1C0D1A",name:"乌梅紫 (Dark Purple)"},{hex:"#F7C242",name:"缃色 (Golden Yellow)"},{hex:"#62A9DD",name:"青冥 (Azure Blue)"},{hex:"#8C4B3C",name:"赭石 (Ochre)"}]}]);function r(){o.themeColorsHue=yn,o.themeColorsHueDynamic=!1}function s(d){const c=dt("oklch")(d);if(!c)return;const{h:a}=c;a&&(o.themeColorsHue=a,o.themeColorsHueDynamic=!1)}function l(d){if(o.themeColorsHueDynamic)return!1;const c=dt("oklch")(d);if(!c||!c.h)return!1;const a=Math.abs(c.h-o.themeColorsHue);return a<.01||a>359.99}return(d,c)=>{const a=vn("motion");return k(),ue(ke,null,[Ve((k(),ue("div",gi,[x("button",{onClick:c[0]||(c[0]=u=>g(n).back())},c[3]||(c[3]=[x("div",{"i-solar:alt-arrow-left-line-duotone":"","text-2xl":""},null,-1)])),x("h1",yi,[x("div",bi,[x("span",xi,U(g(t)("settings.title")),1)]),x("div",wi,U(g(t)("settings.pages.themes.title")),1)])])),[[a]]),x("div",Ci,[V(g(ut),{"mt-4":"","w-full":"",default:!0},{trigger:T(u=>[x("button",{bg:"zinc-100 dark:zinc-800",hover:"bg-zinc-200 dark:bg-zinc-700",transition:"all ease-in-out duration-250","w-full":"",flex:"","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-3":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0",onClick:p=>u.setVisible(!u.visible)},[x("div",Oi,[c[4]||(c[4]=x("div",{"i-solar:pallete-2-bold-duotone":"",class:"provider-icon size-6",transition:"filter duration-250 ease-in-out"},null,-1)),x("div",null,U(g(t)("settings.pages.themes.sections.section.custom-color.title")),1)]),x("div",{transform:"",transition:"transform duration-250",class:De({"rotate-180":u.visible})},c[5]||(c[5]=[x("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,Ai)]),default:T(()=>[x("div",Ei,[x("div",Di,U(g(t)("settings.pages.themes.sections.section.custom-color.fields.field.primary-color.label")),1),x("div",Pi,[Ve(x("input",{"onUpdate:modelValue":c[1]||(c[1]=u=>g(o).themeColorsHue=u),type:"range",min:"0",max:"360",step:"0.01",class:De(["theme-hue-slider h-10 w-full",{"opacity-25 cursor-not-allowed":g(o).themeColorsHueDynamic}]),disabled:g(o).themeColorsHueDynamic},null,10,Ti),[[hn,g(o).themeColorsHue]]),c[6]||(c[6]=x("div",{"h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":""},[x("div",{bg:"primary-50",class:"primary-color-bar","text-black":""}," 50 "),x("div",{bg:"primary-100",class:"primary-color-bar","text-black":""}," 100 "),x("div",{bg:"primary-200",class:"primary-color-bar","text-black":""}," 200 "),x("div",{bg:"primary-300",class:"primary-color-bar","text-black":""}," 300 "),x("div",{bg:"primary-400",class:"primary-color-bar","text-black":""}," 400 "),x("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 "),x("div",{bg:"primary-600",class:"primary-color-bar","text-white":""}," 600 "),x("div",{bg:"primary-700",class:"primary-color-bar","text-white":""}," 700 "),x("div",{bg:"primary-800",class:"primary-color-bar","text-white":""}," 800 "),x("div",{bg:"primary-900",class:"primary-color-bar","text-white":""}," 900 "),x("div",{bg:"primary-950",class:"primary-color-bar","text-white":""}," 950 ")],-1)),c[7]||(c[7]=x("div",{"h-10":"","w-full":"",flex:"","overflow-hidden":"","rounded-lg":"",class:"transparency-grid"},[x("div",{bg:"primary-500/5",class:"primary-color-bar","text-black":""}," 500/5 "),x("div",{bg:"primary-500/10",class:"primary-color-bar","text-black":""}," 500/10 "),x("div",{bg:"primary-500/20",class:"primary-color-bar","text-black":""}," 500/20 "),x("div",{bg:"primary-500/30",class:"primary-color-bar","text-black":""}," 500/30 "),x("div",{bg:"primary-500/40",class:"primary-color-bar","text-black":""}," 500/40 "),x("div",{bg:"primary-500/50",class:"primary-color-bar","text-black":""}," 500/50 "),x("div",{bg:"primary-500/60",class:"primary-color-bar","text-black":""}," 500/60 "),x("div",{bg:"primary-500/70",class:"primary-color-bar","text-black":""}," 500/70 "),x("div",{bg:"primary-500/80",class:"primary-color-bar","text-black":""}," 500/80 "),x("div",{bg:"primary-500/90",class:"primary-color-bar","text-black":""}," 500/90 "),x("div",{bg:"primary-500",class:"primary-color-bar","text-black":""}," 500 ")],-1))]),x("div",_i,[x("label",ki,[Ve(x("input",{"onUpdate:modelValue":c[2]||(c[2]=u=>g(o).themeColorsHueDynamic=u),type:"checkbox",class:"peer sr-only"},null,512),[[gn,g(o).themeColorsHueDynamic]]),c[8]||(c[8]=x("div",{class:"peer-checked:bg-primary-500 h-6 w-11 rounded-full bg-neutral-200 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5 after:rounded-full after:bg-white dark:bg-neutral-600 after:transition-all after:content-[''] peer-checked:after:translate-x-full peer-checked:after:border-white"},null,-1)),x("span",Bi,U(g(t)("settings.pages.themes.sections.section.custom-color.fields.field.primary-color.rgb-on.title")),1)]),x("button",{class:"rounded-md bg-neutral-100 px-3 py-1.5 text-sm transition-colors dark:bg-neutral-800 hover:bg-neutral-200 dark:hover:bg-neutral-700",onClick:r},U(g(t)("settings.pages.themes.sections.section.custom-color.fields.field.primary-color.reset.label")),1)])])]),_:1}),V(g(ut),{"mt-4":"","w-full":"",default:!0},{trigger:T(u=>[x("button",{bg:"zinc-100 dark:zinc-800",hover:"bg-zinc-200 dark:bg-zinc-700",transition:"all ease-in-out duration-250","w-full":"",flex:"","items-center":"","gap-1.5":"","rounded-lg":"","px-4":"","py-3":"","outline-none":"",class:"[&_.provider-icon]:grayscale-100 [&_.provider-icon]:hover:grayscale-0",onClick:p=>u.setVisible(!u.visible)},[x("div",Si,[c[9]||(c[9]=x("div",{"i-solar:magic-stick-2-bold-duotone":"",class:"provider-icon size-6",transition:"filter duration-250 ease-in-out"},null,-1)),x("div",null,U(g(t)("settings.pages.themes.sections.section.theme-presets.title")),1)]),x("div",{transform:"",transition:"transform duration-250",class:De({"rotate-180":u.visible})},c[10]||(c[10]=[x("div",{"i-solar:alt-arrow-down-bold-duotone":""},null,-1)]),2)],8,Ri)]),default:T(()=>[x("div",$i,[(k(!0),ue(ke,null,ct(i.value,u=>(k(),ue("div",{key:u.name,flex:"~ row",bg:"neutral-100 dark:neutral-800",hover:"bg-neutral-200 dark:bg-neutral-700",transition:"all ease-in-out duration-250","cursor-pointer":"","items-center":"","justify-between":"","gap-4":"","rounded-lg":"","px-4":"","py-3":""},[x("div",null,[x("div",Li,U(u.name),1),x("div",Mi,U(u.description),1)]),x("div",Ni,[(k(!0),ue(ke,null,ct(u.colors,p=>(k(),H(g(ci),{key:p.hex},{default:T(()=>[V(g(di),null,{default:T(()=>[V(g(fi),null,{default:T(()=>[x("div",{style:Me({backgroundColor:p.hex}),class:De(["size-6 cursor-pointer rounded-full transition-all duration-250 ease-in-out",[l(p.hex)?"scale-150 z-10 mx-1":"hover:scale-110"]]),onClick:f=>s(p.hex)},null,14,Hi)]),_:2},1024),V(g(hi),null,{default:T(()=>[V(g(mi),{class:"rounded-lg bg-white px-3 py-1.5 text-sm shadow-md dark:bg-neutral-800"},{default:T(()=>[_t(U(p.name)+" ",1),V(g(vi),{class:"fill-white dark:fill-neutral-800"})]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))])]))),128))])]),_:1})]),c[11]||(c[11]=x("div",{text:"neutral-200/50 dark:neutral-500/20","pointer-events-none":"",fixed:"","bottom-0":"","right-0":"","z--1":"","translate-x-10":"","translate-y-10":""},[x("div",{text:"40","i-lucide:paintbrush":""})],-1))],64)}}});typeof ft=="function"&&ft(Fi);export{Fi as default};