1var ki=Object.defineProperty;var Ai=Object.getPrototypeOf;var Ei=Reflect.get;var Co=e=>{throw TypeError(e)};var Ni=(e,t,r)=>t in e?ki(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var E=(e,t,r)=>Ni(e,typeof t!="symbol"?t+"":t,r),to=(e,t,r)=>t.has(e)||Co("Cannot "+r);var a=(e,t,r)=>(to(e,t,"read from private field"),r?r.call(e):t.get(e)),p=(e,t,r)=>t.has(e)?Co("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),st=(e,t,r,n)=>(to(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),At=(e,t,r)=>(to(e,t,"access private method"),r);var _o=(e,t,r)=>Ei(Ai(e),r,t);import{c as D,a as y,f as U,d as Ii,t as de}from"../chunks/BICzd4B5.js";import{d as F,ap as _n,b as w,g as s,u as S,aq as Po,S as Di,ar as Pe,ak as Ee,al as dt,i as Zt,bw as Ri,bx as no,by as Ko,h as Bi,p as M,f as k,a as V,c as B,az as J,r as R,bz as Oi,bA as Li,s as L,a3 as ke,bB as Mi,n as jt,t as Ct,bC as Vi,bD as Fi}from"../chunks/C5VqLUtu.js";import{c as zi,m as Wi,u as Hi,s as mt}from"../chunks/YmKlKDV_.js";import{s as z}from"../chunks/8cov-8fG.js";import{i as Z}from"../chunks/xFoCAsZ8.js";import{k as Yo}from"../chunks/BtCAP1aE.js";import{e as Pn,i as Ui}from"../chunks/19q13vBV.js";import{h as ji}from"../chunks/BOPKn5iR.js";import{t as ko,a as Ao}from"../chunks/B8GKhLdE.js";import{h as qi}from"../chunks/CKbw_bVM.js";import{e as eo,b as ct,c as vt,a as at,d as Xi,s as Et}from"../chunks/C234Ricf.js";import{a as G,c as Nt,B as Sn,C as Ki}from"../chunks/DVYS0-nC.js";import{o as Kn}from"../chunks/BUXUpx3s.js";import{c as et}from"../chunks/C9PypAEG.js";import{p as f,r as j,b as X,l as kn,a as Yi,s as Gi}from"../chunks/BsebRJ2K.js";import{o as _t}from"../chunks/BL8Vke0f.js";import"../chunks/Dvu3-QFs.js";import{i as uo}from"../chunks/DyhEXcED.js";import{b as Zi}from"../chunks/jpMNbt4N.js";import{s as ho}from"../chunks/DfJwftQZ.js";import{e as Ji}from"../chunks/D7BB_FMX.js";import{b as Qi}from"../chunks/AgXd7mME.js";import{c as $i,a as ts}from"../chunks/DkWLVx9f.js";import{I as ue}from"../chunks/DETsf8-T.js";import{p as ee}from"../chunks/BL0k5D29.js";const es=({url:e})=>{const{pathname:t}=e;let r=!1;return r=e.searchParams.get("no_cookie")==="1",{pathname:t,noCookie:r}},ih=Object.freeze(Object.defineProperty({__proto__:null,load:es},Symbol.toStringTag,{value:"Module"}));function rs(e){return typeof e=="function"}function ns(e){return e!==null&&typeof e=="object"}const os=["string","number","bigint","boolean"];function oo(e){return e==null||os.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>oo(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const Ne=Symbol("box"),fo=Symbol("is-writable");function is(e){return ns(e)&&Ne in e}function ss(e){return C.isBox(e)&&fo in e}function C(e){let t=F(_n(e));return{[Ne]:!0,[fo]:!0,get current(){return s(t)},set current(r){w(t,r,!0)}}}function as(e,t){const r=S(e);return t?{[Ne]:!0,[fo]:!0,get current(){return s(r)},set current(n){t(n)}}:{[Ne]:!0,get current(){return e()}}}function cs(e){return C.isBox(e)?e:rs(e)?C.with(e):C(e)}function ls(e){return Object.entries(e).reduce((t,[r,n])=>C.isBox(n)?(C.isWritableBox(n)?Object.defineProperty(t,r,{get(){return n.current},set(o){n.current=o}}):Object.defineProperty(t,r,{get(){return n.current}}),t):Object.assign(t,{[r]:n}),{})}function us(e){return C.isWritableBox(e)?{[Ne]:!0,get current(){return e.current}}:e}C.from=cs;C.with=as;C.flatten=ls;C.readonly=us;C.isBox=is;C.isWritableBox=ss;function Go(...e){return function(t){var r;for(const n of e)if(n){if(t.defaultPrevented)return;typeof n=="function"?n.call(this,t):(r=n.current)==null||r.call(this,t)}}}var Eo=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ds=/\n/g,hs=/^\s*/,fs=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,gs=/^:\s*/,vs=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ms=/^[;\s]*/,ps=/^\s+|\s+$/g,bs=` 2`,No="/",Io="*",re="",ys="comment",Ss="declaration";function ws(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function o(b){var T=b.match(ds);T&&(r+=T.length);var N=b.lastIndexOf(bs);n=~N?b.length-N:n+b.length}function i(){var b={line:r,column:n};return function(T){return T.position=new c(b),d(),T}}function c(b){this.start=b,this.end={line:r,column:n},this.source=t.source}c.prototype.content=e;function l(b){var T=new Error(t.source+":"+r+":"+n+": "+b);if(T.reason=b,T.filename=t.source,T.line=r,T.column=n,T.source=e,!t.silent)throw T}function u(b){var T=b.exec(e);if(T){var N=T[0];return o(N),e=e.slice(N.length),T}}function d(){u(hs)}function g(b){var T;for(b=b||[];T=v();)T!==!1&&b.push(T);return b}function v(){var b=i();if(!(No!=e.charAt(0)||Io!=e.charAt(1))){for(var T=2;re!=e.charAt(T)&&(Io!=e.charAt(T)||No!=e.charAt(T+1));)++T;if(T+=2,re===e.charAt(T-1))return l("End of comment missing");var N=e.slice(2,T-2);return n+=2,o(N),e=e.slice(T),n+=2,b({type:ys,comment:N})}}function h(){var b=i(),T=u(fs);if(T){if(v(),!u(gs))return l("property missing ':'");var N=u(vs),_=b({type:Ss,property:Do(T[0].replace(Eo,re)),value:N?Do(N[0].replace(Eo,re)):re});return u(ms),_}}function m(){var b=[];g(b);for(var T;T=h();)T!==!1&&(b.push(T),g(b));return b}return d(),m()}function Do(e){return e?e.replace(ps,re):re}function xs(e,t){let r=null;if(!e||typeof e!="string")return r;const n=ws(e),o=typeof t=="function";
2return n.forEach(i=>{if(i.type!=="declaration")return;const{property:c,value:l}=i;o?t(c,l,i):l&&(r=r||{},r[c]=l)}),r}const Ts=/\d/,Cs=["-","_","/","."];function _s(e=""){if(!Ts.test(e))return e!==e.toLowerCase()}function Ps(e){const t=[];let r="",n,o;for(const i of e){const c=Cs.includes(i);if(c===!0){t.push(r),r="",n=void 0;continue}const l=_s(i);if(o===!1){if(n===!1&&l===!0){t.push(r),r=i,n=l;continue}if(n===!0&&l===!1&&r.length>1){const u=r.at(-1);t.push(r.slice(0,Math.max(0,r.length-1))),r=u+i,n=l;continue}}r+=i,n=l,o=c}return t.push(r),t}function Zo(e){return e?Ps(e).map(t=>As(t)).join(""):""}function ks(e){return Es(Zo(e||""))}function As(e){return e?e[0].toUpperCase()+e.slice(1):""}function Es(e){return e?e[0].toLowerCase()+e.slice(1):""}function wn(e){if(!e)return{};const t={};function r(n,o){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){t[Zo(n)]=o;return}if(n.startsWith("--")){t[n]=o;return}t[ks(n)]=o}return xs(e,r),t}function Gt(...e){return(...t)=>{for(const r of e)typeof r=="function"&&r(...t)}}function Ns(e,t){const r=RegExp(e,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,t):n}}const Is=Ns(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Ds(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Is(t)}: ${e[t]};`).join(` 3`)}function Jo(e={}){return Ds(e).replace(` 4`," ")}const Rs={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},Bs=Jo(Rs);function Os(e){var t;return e.length>2&&e.startsWith("on")&&e[2]===((t=e[2])==null?void 0:t.toLowerCase())}function tt(...e){const t={...e[0]};for(let r=1;r<e.length;r++){const n=e[r];for(const o in n){const i=t[o],c=n[o],l=typeof i=="function",u=typeof c=="function";if(l&&Os(o)){const d=i,g=c;t[o]=Go(d,g)}else if(l&&u)t[o]=Gt(i,c);else if(o==="class"){const d=oo(i),g=oo(c);d&&g?t[o]=eo(i,c):d?t[o]=eo(i):g&&(t[o]=eo(c))}else if(o==="style"){const d=typeof i=="object",g=typeof c=="object",v=typeof i=="string",h=typeof c=="string";if(d&&g)t[o]={...i,...c};else if(d&&h){const m=wn(c);t[o]={...i,...m}}else if(v&&g){const m=wn(i);t[o]={...m,...c}}else if(v&&h){const m=wn(i),b=wn(c);t[o]={...m,...b}}else d?t[o]=i:g?t[o]=c:v?t[o]=i:h&&(t[o]=c)}else t[o]=c!==void 0?c:i}}return typeof t.style=="object"&&(t.style=Jo(t.style).replaceAll(` 5`," ")),t.hidden!==!0&&(t.hidden=void 0,delete t.hidden),t.disabled!==!0&&(t.disabled=void 0,delete t.disabled),t}const Ls=typeof window<"u"?window:void 0;function Ms(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}var Rt,Bt,Mt,In,It,Ae,Cn;const To=class To extends Map{constructor(r){super();p(this,It);p(this,Rt,new Map);p(this,Bt,F(0));p(this,Mt,F(0));p(this,In,Po||-1);if(r){for(var[n,o]of r)super.set(n,o);a(this,Mt).v=super.size}}has(r){var n=a(this,Rt),o=n.get(r);if(o===void 0)if(super.has(r))o=At(this,It,Ae).call(this,0),n.set(r,o);else return s(a(this,Bt)),!1;return s(o),!0}forEach(r,n){At(this,It,Cn).call(this),super.forEach(r,n)}get(r){var n=a(this,Rt),o=n.get(r);if(o===void 0)if(super.has(r))o=At(this,It,Ae).call(this,0),n.set(r,o);else{s(a(this,Bt));return}return s(o),super.get(r)}set(r,n){var v;var o=a(this,Rt),i=o.get(r),c=super.get(r),l=super.set(r,n),u=a(this,Bt);if(i===void 0)i=At(this,It,Ae).call(this,0),o.set(r,i),w(a(this,Mt),super.size),Pe(u);else if(c!==n){Pe(i);var d=u.reactions===null?null:new Set(u.reactions),g=d===null||!((v=i.reactions)!=null&&v.every(h=>d.has(h)));g&&Pe(u)}return l}delete(r){var n=a(this,Rt),o=n.get(r),i=super.delete(r);return o!==void 0&&(n.delete(r),w(o,-1)),i&&(w(a(this,Mt),super.size),Pe(a(this,Bt))),i}clear(){if(super.size!==0){super.clear();var r=a(this,Rt);w(a(this,Mt),0);for(var n of r.values())w(n,-1);Pe(a(this,Bt)),r.clear()}}keys(){return s(a(this,Bt)),super.keys()}values(){return At(this,It,Cn).call(this),super.values()}entries(){return At(this,It,Cn).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return s(a(this,Mt)),super.size}};Rt=new WeakMap,Bt=new WeakMap,Mt=new WeakMap,In=new WeakMap,It=new WeakSet,Ae=function(r){return Po===a(this,In)?F(r):Di(r)},Cn=function(){s(a(this,Bt));var r=a(this,Rt);if(a(this,Mt).v!==r.size){for(var n of _o(To.prototype,this,"keys").call(this))if(!r.has(n)){var o=At(this,It,Ae).call(this,0);r.set(n,o)}}for([,o]of a(this,Rt))s(o)};let io=To;var he,Ie;class Vs{constructor(t={}){p(this,he);p(this,Ie);const{window:r=Ls,document:n=r==null?void 0:r.document}=t;r!==void 0&&(st(this,he,n),st(this,Ie,zi(o=>{const i=_t(r,"focusin",o),c=_t(r,"focusout",o);return()=>{i(),c()}})))}get current(){var t;return(t=a(this,Ie))==null||t.call(this),a(this,he)?Ms(a(this,he)):null}}he=new WeakMap,Ie=new WeakMap;new Vs;function Yn(e,t=250){let r=F(null);function n(...o){if(s(r))s(r).timeout&&clearTimeout(s(r).timeout);else{let i,c;const l=new Promise((u,d)=>{i=u,c=d});w(r,{timeout:null,runner:null,promise:l,resolve:i,reject:c},!0)}return s(r).runner=async()=>
5{if(!s(r))return;const i=s(r);w(r,null);try{i.resolve(await e.apply(this,o))}catch(c){i.reject(c)}},s(r).timeout=setTimeout(s(r).runner,typeof t=="function"?t():t),s(r).promise}return n.cancel=async()=>{(!s(r)||s(r).timeout===null)&&(await new Promise(o=>setTimeout(o,0)),!s(r)||s(r).timeout===null)||(clearTimeout(s(r).timeout),s(r).reject("Cancelled"),w(r,null))},n.runScheduledNow=async()=>{var o,i;(!s(r)||!s(r).timeout)&&(await new Promise(c=>setTimeout(c,0)),!s(r)||!s(r).timeout)||(clearTimeout(s(r).timeout),s(r).timeout=null,await((i=(o=s(r)).runner)==null?void 0:i.call(o)))},Object.defineProperty(n,"pending",{enumerable:!0,get(){var o;return!!((o=s(r))!=null&&o.timeout)}}),n}function Fs(e,t){switch(e){case"post":dt(t);break;case"pre":Ee(t);break}}function Qo(e,t,r,n={}){const{lazy:o=!1}=n;let i=!o,c=Array.isArray(e)?[]:void 0;Fs(t,()=>{const l=Array.isArray(e)?e.map(d=>d()):e();if(!i){i=!0,c=l;return}const u=Zt(()=>r(l,c));return c=l,u})}function kt(e,t,r){Qo(e,"post",t,r)}function zs(e,t,r){Qo(e,"pre",t,r)}kt.pre=zs;var fe;class go{constructor(){p(this,fe,F(!1));dt(()=>(Zt(()=>w(a(this,fe),!0)),()=>{w(a(this,fe),!1)}))}get current(){return s(a(this,fe))}}fe=new WeakMap;var De,Re;class Ws{constructor(t){p(this,De,F(void 0));p(this,Re);dt(()=>{w(a(this,De),a(this,Re),!0),st(this,Re,t())})}get current(){return s(a(this,De))}}De=new WeakMap,Re=new WeakMap;var Be,Vt;class Ot{constructor(t){p(this,Be);p(this,Vt);st(this,Be,t),st(this,Vt,Symbol(t))}get key(){return a(this,Vt)}exists(){return Ri(a(this,Vt))}get(){const t=no(a(this,Vt));if(t===void 0)throw new Error(`Context "${a(this,Be)}" not found`);return t}getOr(t){const r=no(a(this,Vt));return r===void 0?t:r}set(t){return Ko(a(this,Vt),t)}}Be=new WeakMap,Vt=new WeakMap;function $o(e){dt(()=>()=>{e()})}function ht({id:e,ref:t,deps:r=()=>!0,onRefChange:n,getRootNode:o}){kt([()=>e.current,r],([i])=>{const c=(o==null?void 0:o())??document,l=c==null?void 0:c.getElementById(i);l?t.current=l:t.current=null,n==null||n(t.current)}),$o(()=>{t.current=null,n==null||n(null)})}function vo(e,t){return setTimeout(t,e)}function un(e){Bi().then(e)}function dn(e){return e?"open":"closed"}function Hs(e){return e?"checked":"unchecked"}function Us(e){return e?"true":"false"}function js(e){return e?"true":"false"}function hn(e){return e?"":void 0}function qs(e){return e?"true":"false"}function Xs(e,t){return e?"true":"false"}function Ks(e){return e?"":void 0}function Ys(e){return e?!0:void 0}const so="ArrowDown",mo="ArrowLeft",po="ArrowRight",ao="ArrowUp",Gs="End",bo="Enter",Zs="Escape",Js="Home",yo=" ",Qs="Tab";function $s(e){return window.getComputedStyle(e).getPropertyValue("direction")}function ta(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?mo:po,vertical:so}[t]}function ea(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?po:mo,vertical:ao}[t]}function ra(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:ta(e,t),prevKey:ea(e,t)}}const Gn=typeof document<"u",Ro=na();function na(){var e,t;return Gn&&((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 co(e){return e instanceof HTMLElement}function oa(e){return e instanceof Element}function ia(e){return e instanceof HTMLInputElement&&"select"in e}function sa(e,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 aa(e){const t=C(null);function r(){if(!Gn)return[];const c=document.getElementById(e.rootNodeId.current);return c?e.candidateSelector?Array.from(c.querySelectorAll(e.candidateSelector)):e.candidateAttr?Array.from(c.querySelectorAll(`[${e.candidateAttr}]:not([data-disabled])`)):[]:[]}function n(){var l;const c=r();c.length&&((l=c[0])==null||l.focus())}function o(c,l,u=!1){var x;const d=document.getElementById(e.rootNodeId.current);if(!d||!c)return;const g=r();if(!g.length)return;const v=g.indexOf(c),h=$s(d),{nextKey:m,prevKey:b}=ra(h,e.orientation.current),T=e.loop.current,N={[m]:v+1,[b]:v-1,[Js]:0,[Gs]:g.length-1};if(u){const P=m===so?po:so,A=b===ao?mo:ao;N[P]=v+1,N[A]=v-1}let _=N[l.key];if(_===void 0)return;l.preventDefault(),_<0&&T?_=g.length-1:_===g.length&&T&&(_=0);const I=g[_];if(I)return I.focus(),t.current=I.id,(x=e.onCandidateFocus)==null||x.call(e,I),I}function i(c){const l=r(),u=t.current!==null;return c&&!u&&l[0]===c?(t.current=c.id,0):(c==null?void 0:c.id)===t.current?0:-1}return{setCurrentTabStopId(c){t.current=c},getTabIndex:i,handleKeydown:o,focusFirstCandidate:n,currentTabStopId:t}}const ca="data-accordion-root",ti="data-accordion-trigger",la="data-accordion-content",ua="data-accordion-item",da="data-accordion-header";var Oe;class ei{constructor(t){E(this,"opts");E(this,"rovingFocusGroup");p(this,Oe,S(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,"data-disabled":hn(this.opts.disabled.current),[ca]:""})));this.opts=t,ht(this.opts),this.rovingFocusGroup=aa({rootNodeId:this.opts.id,candidateAttr:ti,loop:this.opts.loop,orientation:this.opts.orientation})}get props(){return s(a(this,Oe))}set props(t){w(a(this,Oe),t)}}Oe=new WeakMap;class ha extends ei{constructor(r){super(r);E(this,"opts");E(this,"isMulti",!1);this.opts=r,this.includesItem=this.includesItem.bind(this),this.toggleItem=this.toggleItem.bind(this)}includesItem(r){return this.opts.value.current===r}toggleItem(r){this.opts.value.current=this.includesItem(r)?"":r}}var Ft;class fa extends ei{constructor(r){super(r);p(this,Ft);E(this,"isMulti",!0);st(this,Ft,r.value),this.includesItem=this.includesItem.bind(this),this.toggleItem=this.toggleItem.bind(this)}includesItem(r){return a(this,Ft).current.includes(r)}toggleItem(r){this.includesItem(r)?a(this,Ft).current=a(this,Ft).current.filter(n=>n!==r):a(this,Ft).current=[...a(this,Ft).current,r]}}
5Ft=new WeakMap;var Le,Me,Ve;class ga{constructor(t){E(this,"opts");E(this,"root");p(this,Le,S(()=>this.root.includesItem(this.opts.value.current)));p(this,Me,S(()=>this.opts.disabled.current||this.root.opts.disabled.current));p(this,Ve,S(()=>({id:this.opts.id.current,"data-state":dn(this.isActive),"data-disabled":hn(this.isDisabled),"data-orientation":this.root.opts.orientation.current,[ua]:""})));this.opts=t,this.root=t.rootState,this.updateValue=this.updateValue.bind(this),ht({...t,deps:()=>this.isActive})}get isActive(){return s(a(this,Le))}set isActive(t){w(a(this,Le),t)}get isDisabled(){return s(a(this,Me))}set isDisabled(t){w(a(this,Me),t)}updateValue(){this.root.toggleItem(this.opts.value.current)}get props(){return s(a(this,Ve))}set props(t){w(a(this,Ve),t)}}Le=new WeakMap,Me=new WeakMap,Ve=new WeakMap;var ne,qt,Fe;class va{constructor(t,r){E(this,"opts");E(this,"itemState");p(this,ne);p(this,qt,S(()=>this.opts.disabled.current||this.itemState.opts.disabled.current||a(this,ne).opts.disabled.current));p(this,Fe,S(()=>({id:this.opts.id.current,disabled:s(a(this,qt)),"aria-expanded":js(this.itemState.isActive),"aria-disabled":Us(s(a(this,qt))),"data-disabled":hn(s(a(this,qt))),"data-state":dn(this.itemState.isActive),"data-orientation":a(this,ne).opts.orientation.current,[ti]:"",tabindex:0,onclick:this.onclick,onkeydown:this.onkeydown})));this.opts=t,this.itemState=r,st(this,ne,r.root),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),ht(t)}onclick(t){if(!s(a(this,qt))){if(t.button!==0)return t.preventDefault();this.itemState.updateValue()}}onkeydown(t){if(!s(a(this,qt))){if(t.key===yo||t.key===bo){t.preventDefault(),this.itemState.updateValue();return}a(this,ne).rovingFocusGroup.handleKeydown(this.opts.ref.current,t)}}get props(){return s(a(this,Fe))}set props(t){w(a(this,Fe),t)}}ne=new WeakMap,qt=new WeakMap,Fe=new WeakMap;var ge,ve,ze,We,He,Ue,je;class ma{constructor(t,r){E(this,"opts");E(this,"item");p(this,ge);p(this,ve,!1);p(this,ze,F(0));p(this,We,F(0));p(this,He,S(()=>this.opts.forceMount.current||this.item.isActive));p(this,Ue,S(()=>({open:this.item.isActive})));p(this,je,S(()=>({id:this.opts.id.current,"data-state":dn(this.item.isActive),"data-disabled":hn(this.item.isDisabled),"data-orientation":this.item.root.opts.orientation.current,[la]:"",style:{"--bits-accordion-content-height":`${s(a(this,We))}px`,"--bits-accordion-content-width":`${s(a(this,ze))}px`}})));this.opts=t,this.item=r,st(this,ve,this.item.isActive),ht(t),Ee(()=>{const n=requestAnimationFrame(()=>{st(this,ve,!1)});return()=>{cancelAnimationFrame(n)}}),kt([()=>this.present,()=>this.opts.ref.current],([n,o])=>{o&&un(()=>{if(!this.opts.ref.current)return;st(this,ge,a(this,ge)||{transitionDuration:o.style.transitionDuration,animationName:o.style.animationName}),o.style.transitionDuration="0s",o.style.animationName="none";const i=o.getBoundingClientRect();if(w(a(this,We),i.height,!0),w(a(this,ze),i.width,!0),!a(this,ve)){const{animationName:c,transitionDuration:l}=a(this,ge);o.style.transitionDuration=l,o.style.animationName=c}})})}get present(){return s(a(this,He))}set present(t){w(a(this,He),t)}get snippetProps(){return s(a(this,Ue))}set snippetProps(t){w(a(this,Ue),t)}get props(){return s(a(this,je))}set props(t){w(a(this,je),t)}}ge=new WeakMap,ve=new WeakMap,ze=new WeakMap,We=new WeakMap,He=new WeakMap,Ue=new WeakMap,je=new WeakMap;var qe;class pa{constructor(t,r){E(this,"opts");E(this,"item");p(this,qe,S(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,"data-heading-level":this.opts.level.current,"data-state":dn(this.item.isActive),"data-orientation":this.item.root.opts.orientation.current,[da]:""})));this.opts=t,this.item=r,ht(t)}get props(){return s(a(this,qe))}set props(t){w(a(this,qe),t)}}qe=new WeakMap;const ri=new Ot("Accordion.Root"),Zn=new Ot("Accordion.Item");function ba(e){const{type:t,...r}=e,n=t==="single"?new ha(r):new fa(r);return ri.set(n)}function ya(e){const t=ri.get();return Zn.set(new ga({...e,rootState:t}))}function Sa(e){return new va(e,Zn.get())}function wa(e){return new ma(e,Zn.get())}function xa(e){return new pa(e,Zn.get())}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function pt(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}
5function xt(){}var Ta=new Set(["$$slots","$$events","$$legacy","disabled","children","child","type","value","ref","id","onValueChange","loop","orientation"]),Ca=U("<div><!></div>");function _a(e,t){M(t,!0);let r=f(t,"disabled",3,!1),n=f(t,"value",15),o=f(t,"ref",15,null),i=f(t,"id",19,pt),c=f(t,"onValueChange",3,xt),l=f(t,"loop",3,!0),u=f(t,"orientation",3,"vertical"),d=j(t,Ta);function g(){n()===void 0&&n(t.type==="single"?"":[])}g(),kt.pre(()=>n(),()=>{g()});const v=ba({type:t.type,value:C.with(()=>n(),_=>{n(_),c()(_)}),id:C.with(()=>i()),disabled:C.with(()=>r()),loop:C.with(()=>l()),orientation:C.with(()=>u()),ref:C.with(()=>o(),_=>o(_))}),h=S(()=>tt(d,v.props));var m=D(),b=k(m);{var T=_=>{var I=D(),x=k(I);z(x,()=>t.child,()=>({props:s(h)})),y(_,I)},N=_=>{var I=Ca();ct(I,()=>({...s(h)}));var x=B(I);z(x,()=>t.children??J),R(I),y(_,I)};Z(b,_=>{t.child?_(T):_(N,-1)})}y(e,m),V()}var Pa=new Set(["$$slots","$$events","$$legacy","id","disabled","value","children","child","ref"]),ka=U("<div><!></div>");function Aa(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"disabled",3,!1),o=f(t,"value",19,pt),i=f(t,"ref",15,null),c=j(t,Pa);const l=ya({value:C.with(()=>o()),disabled:C.with(()=>n()),id:C.with(()=>r()),ref:C.with(()=>i(),m=>i(m))}),u=S(()=>tt(c,l.props));var d=D(),g=k(d);{var v=m=>{var b=D(),T=k(b);z(T,()=>t.child,()=>({props:s(u)})),y(m,b)},h=m=>{var b=ka();ct(b,()=>({...s(u)}));var T=B(b);z(T,()=>t.children??J),R(b),y(m,b)};Z(g,m=>{t.child?m(v):m(h,-1)})}y(e,d),V()}var Ea=new Set(["$$slots","$$events","$$legacy","id","level","children","child","ref"]),Na=U("<div><!></div>");function Ia(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"level",3,2),o=f(t,"ref",15,null),i=j(t,Ea);const c=xa({id:C.with(()=>r()),level:C.with(()=>n()),ref:C.with(()=>o(),h=>o(h))}),l=S(()=>tt(i,c.props));var u=D(),d=k(u);{var g=h=>{var m=D(),b=k(m);z(b,()=>t.child,()=>({props:s(l)})),y(h,m)},v=h=>{var m=Na();ct(m,()=>({...s(l)}));var b=B(m);z(b,()=>t.children??J),R(m),y(h,m)};Z(d,h=>{t.child?h(g):h(v,-1)})}y(e,u),V()}var Da=new Set(["$$slots","$$events","$$legacy","disabled","ref","id","children","child"]),Ra=U("<button><!></button>");function Ba(e,t){M(t,!0);let r=f(t,"disabled",3,!1),n=f(t,"ref",15,null),o=f(t,"id",19,pt),i=j(t,Da);const c=Sa({disabled:C.with(()=>r()),id:C.with(()=>o()),ref:C.with(()=>n(),h=>n(h))}),l=S(()=>tt(i,c.props));var u=D(),d=k(u);{var g=h=>{var m=D(),b=k(m);z(b,()=>t.child,()=>({props:s(l)})),y(h,m)},v=h=>{var m=Ra();ct(m,()=>({type:"button",...s(l)}));var b=B(m);z(b,()=>t.children??J),R(m),y(h,m)};Z(d,h=>{t.child?h(g):h(v,-1)})}y(e,u),V()}function ni(e,t){const r=C(e);function n(i){return t[r.current][i]??r.current}return{state:r,dispatch:i=>{r.current=n(i)}}}function Oa(e,t){let r=F(_n({})),n=F("none");const o=e.current?"mounted":"unmounted";let i=F(null);const c=new Ws(()=>e.current);kt([()=>t.current,()=>e.current],([h,m])=>{!h||!m||un(()=>{w(i,document.getElementById(h),!0)})});const{state:l,dispatch:u}=ni(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});kt(()=>e.current,h=>{if(s(i)||w(i,document.getElementById(t.current),!0),!s(i)||!(h!==c.current))return;const b=s(n),T=xn(s(i));h?u("MOUNT"):T==="none"||s(r).display==="none"?u("UNMOUNT"):u(c&&b!==T?"ANIMATION_OUT":"UNMOUNT")});function d(h){if(s(i)||w(i,document.getElementById(t.current),!0),!s(i))return;const m=xn(s(i)),b=m.includes(h.animationName)||m==="none";h.target===s(i)&&b&&u("ANIMATION_END")}function g(h){s(i)||w(i,document.getElementById(t.current),!0),s(i)&&h.target===s(i)&&w(n,xn(s(i)),!0)}kt(()=>l.current,()=>{if(s(i)||w(i,document.getElementById(t.current),!0),!s(i))return;const h=xn(s(i));w(n,l.current==="mounted"?h:"none",!0)}),kt(()=>s(i),h=>{if(h)return w(r,getComputedStyle(h),!0),Gt(_t(h,"animationstart",g),_t(h,"animationcancel",d),_t(h,"animationend",d))});const v=S(()=>["mounted","unmountSuspended"].includes(l.current));return{get current(){return s(v)}}}function xn(e){return e&&getComputedStyle(e).animationName||"none"}function ie(e,t){M(t,!0);const r=Oa(C.with(()=>t.present),C.with(()=>t.id));var n=D(),o=k(n);{var i=c=>{var l=D(),u=k(l);z(u,()=>t.presence??J,()=>({present:r})),y(c,l)};Z(o,c=>{(t.forceMount||t.present||r.current)&&c(i)})}y(e,n),V()}var La=new Set(["$$slots","$$events","$$legacy","child","ref","id","forceMount","children"]),Ma=U("<div><!></div>");function Va(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=f(t,"forceMount",3,!1),i=j(t,La);const c=wa({forceMount:C.with(()=>o()),id:C.with(()=>n()),ref:C.with(()=>r(),l=>r(l))});ie(e,{forceMount:!0,get present(){return c.present},get id(){return n()},presence:(u,d)=>{let g=()=>d==null?void 0:d().present;const v=S(()=>tt(i,c.props,{hidden:o()?void 0:!g().current}));var h=D(),m=k(h);{var b=N=>{var _=D(),I=k(_);{let x=S(()=>({props:s(v),...c.snippetProps}));z(I,()=>t.child,()=>s(x))}y(N,_)},T=N=>{var _=Ma();ct(_,()=>({...s(v)}));var I=B(_);z(I,()=>t.children??J),R(_),y(N,_)};Z(m,N=>{t.child?N(b):N(T,-1)})}y(u,h)},$$slots:{presence:!0}}),V()}function Fa(e){return{content:`data-${e}-content`,trigger:`data-${e}-trigger`,overlay:`data-${e}-overlay`,title:`data-${e}-title`,description:`data-${e}-description`,close:`data-${e}-close`,cancel:`data-${e}-cancel`,action:`data-${e}-action`}}var Xe,Ke,Ye,Ge,Ze,Je,Qe,$e,tr,er;class za{constructor(t){E(this,"opts");p(this,Xe,F(null));p(this,Ke,F(null));p(this,Ye,F(null));p(this,Ge,F(void 0));p(this,Ze,F(void 0));p(this,Je,F(void 0));p(this,Qe,F(void 0));p(this,$e,F(null));p(this,tr,S(()=>Fa(this.opts.variant.current)));p(this,er,S(()=>({"data-state":dn(this.opts.open.current)})));this.opts=t,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this)}get triggerNode(){return s(a(this,Xe))}set triggerNode(t){w(a(this,Xe),t,!0)}get contentNode(){return s(a(this,Ke))}set contentNode(t){w(a(this,Ke),t,!0)}get descriptionNode(){return s(a(this,Ye))}set descriptionNode(t){w(a(this,Ye),t,!0)}get contentId(){return s(a(this,Ge))}set contentId(t){w(a(this,Ge),t,!0)}get titleId(){return s(a(this,Ze))}set titleId(t){w(a(this,Ze),t,!0)}get triggerId(){return s(a(this,Je))}set triggerId(t){w(a(this,Je),t,!0)}get descriptionId(){return s(a(this,Qe))}set descriptionId(t){w(a(this,Qe),t,!0)}get cancelNode(){return s(a(this,$e))}set cancelNode(t){w(a(this,$e),t,!0)}get attrs(){return s(a(this,tr))}set attrs(t){w(a(this,tr),t)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}get sharedProps(){return s(a(this,er))}set sharedProps(t){w(a(this,er),t)}}
5Xe=new WeakMap,Ke=new WeakMap,Ye=new WeakMap,Ge=new WeakMap,Ze=new WeakMap,Je=new WeakMap,Qe=new WeakMap,$e=new WeakMap,tr=new WeakMap,er=new WeakMap;var Dn,rr;class Wa{constructor(t,r){E(this,"opts");E(this,"root");p(this,Dn,S(()=>this.root.attrs[this.opts.variant.current]));p(this,rr,S(()=>({id:this.opts.id.current,[s(a(this,Dn))]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps})));this.opts=t,this.root=r,this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),ht({...t,deps:()=>this.root.opts.open.current})}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===yo||t.key===bo)&&(t.preventDefault(),this.root.handleClose())}get props(){return s(a(this,rr))}set props(t){w(a(this,rr),t)}}Dn=new WeakMap,rr=new WeakMap;var nr;class Ha{constructor(t,r){E(this,"opts");E(this,"root");p(this,nr,S(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.attrs.title]:"",...this.root.sharedProps})));this.opts=t,this.root=r,ht({...t,onRefChange:n=>{this.root.titleId=n==null?void 0:n.id},deps:()=>this.root.opts.open.current})}get props(){return s(a(this,nr))}set props(t){w(a(this,nr),t)}}nr=new WeakMap;var or;class Ua{constructor(t,r){E(this,"opts");E(this,"root");p(this,or,S(()=>({id:this.opts.id.current,[this.root.attrs.description]:"",...this.root.sharedProps})));this.opts=t,this.root=r,ht({...t,deps:()=>this.root.opts.open.current,onRefChange:n=>{this.root.descriptionNode=n,this.root.descriptionId=n==null?void 0:n.id}})}get props(){return s(a(this,or))}set props(t){w(a(this,or),t)}}or=new WeakMap;var ir,sr;class ja{constructor(t,r){E(this,"opts");E(this,"root");p(this,ir,S(()=>({open:this.root.opts.open.current})));p(this,sr,S(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.attrs.content]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,...this.root.sharedProps})));this.opts=t,this.root=r,ht({...t,deps:()=>this.root.opts.open.current,onRefChange:n=>{this.root.contentNode=n,this.root.contentId=n==null?void 0:n.id}})}get snippetProps(){return s(a(this,ir))}set snippetProps(t){w(a(this,ir),t)}get props(){return s(a(this,sr))}set props(t){w(a(this,sr),t)}}ir=new WeakMap,sr=new WeakMap;var ar,cr;class qa{constructor(t,r){E(this,"opts");E(this,"root");p(this,ar,S(()=>({open:this.root.opts.open.current})));p(this,cr,S(()=>({id:this.opts.id.current,[this.root.attrs.overlay]:"",style:{pointerEvents:"auto"},...this.root.sharedProps})));this.opts=t,this.root=r,ht({...t,deps:()=>this.root.opts.open.current})}get snippetProps(){return s(a(this,ar))}set snippetProps(t){w(a(this,ar),t)}get props(){return s(a(this,cr))}set props(t){w(a(this,cr),t)}}ar=new WeakMap,cr=new WeakMap;const _e=new Ot("Dialog.Root");function Xa(e){return _e.set(new za(e))}function Ka(e){return new Ha(e,_e.get())}function Ya(e){return new ja(e,_e.get())}function Ga(e){return new qa(e,_e.get())}function Za(e){return new Ua(e,_e.get())}function Ja(e){return new Wa(e,_e.get())}var Qa=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),$a=U("<div><!></div>");function tc(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"ref",15,null),o=f(t,"level",3,2),i=j(t,Qa);const c=Ka({id:C.with(()=>r()),level:C.with(()=>o()),ref:C.with(()=>n(),h=>n(h))}),l=S(()=>tt(i,c.props));var u=D(),d=k(u);{var g=h=>{var m=D(),b=k(m);z(b,()=>t.child,()=>({props:s(l)})),y(h,m)},v=h=>{var m=$a();ct(m,()=>({...s(l)}));var b=B(m);z(b,()=>t.children??J),R(m),y(h,m)};Z(d,h=>{t.child?h(g):h(v,-1)})}y(e,u),V()}function ec(e,t){var r=D(),n=k(r);Yo(n,()=>t.children,o=>{var i=D(),c=k(i);z(c,()=>t.children??J),y(o,i)}),y(e,r)}function rc(e,t){M(t,!0);let r=f(t,"to",3,"body");const n=Oi();let o=S(i);function i(){if(!Gn||t.disabled)return null;let v=null;return typeof r()=="string"?v=document.querySelector(r()):(r()instanceof HTMLElement||r()instanceof DocumentFragment)&&(v=r()),v}let c;function l(){c&&(Hi(c),c=null)}kt([()=>s(o),()=>t.disabled],([v,h])=>{if(!v||h){l();return}return c=Wi(ec,{target:v,props:{children:t.children},context:n}),()=>{l()}});var u=D(),d=k(u);{var g=v=>{var h=D(),m=k(h);z(m,()=>t.children??J),y(v,h)};Z(d,v=>{t.disabled&&v(g)})}y(e,u),V()}function fn(e,t,r,n){const o=Array.isArray(t)?t:[t];return o.forEach(i=>
5e.addEventListener(i,r,n)),()=>{o.forEach(i=>e.removeEventListener(i,r,n))}}class oi{constructor(t,r={bubbles:!0,cancelable:!0}){E(this,"eventName");E(this,"options");this.eventName=t,this.options=r}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,r){const n=this.createEvent(r);return t.dispatchEvent(n),n}listen(t,r,n){const o=i=>{r(i)};return _t(t,this.eventName,o,n)}}function Bo(e,t=500){let r=null;const n=(...o)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{e(...o)},t)};return n.destroy=()=>{r!==null&&(clearTimeout(r),r=null)},n}function So(e,t){return e===t||e.contains(t)}function ii(e){return(e==null?void 0:e.ownerDocument)??document}function nc(e,t){const{clientX:r,clientY:n}=e,o=t.getBoundingClientRect();return r<o.left||r>o.right||n<o.top||n>o.bottom}globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var me,oe,Xt,pe,be,Kt,lr,ur,zt,Rn,Ce,si,Bn,ye,On,Ln,Mn,Vn,dr,ai,Fn,zn;class oc{constructor(t){p(this,Ce);E(this,"opts");p(this,me);p(this,oe);p(this,Xt,{pointerdown:!1});p(this,pe,!1);p(this,be,!1);E(this,"node",C(null));p(this,Kt);p(this,lr);p(this,ur,F(null));p(this,zt,xt);p(this,Rn,t=>{t.defaultPrevented||this.currNode&&un(()=>{var r,n;!this.currNode||a(this,Vn).call(this,t.target)||t.target&&!a(this,be)&&((n=(r=a(this,lr)).current)==null||n.call(r,t))})});p(this,Bn,t=>{let r=t;r.defaultPrevented&&(r=Oo(t)),a(this,me).current(t)});p(this,ye,Bo(t=>{if(!this.currNode){a(this,zt).call(this);return}const r=this.opts.isValidEvent.current(t,this.currNode)||cc(t,this.currNode);if(!a(this,pe)||At(this,Ce,ai).call(this)||!r){a(this,zt).call(this);return}let n=t;if(n.defaultPrevented&&(n=Oo(n)),a(this,oe).current!=="close"&&a(this,oe).current!=="defer-otherwise-close"){a(this,zt).call(this);return}t.pointerType==="touch"?(a(this,zt).call(this),st(this,zt,fn(a(this,Kt),"click",a(this,Bn),{once:!0}))):a(this,me).current(n)},10));p(this,On,t=>{a(this,Xt)[t.type]=!0});p(this,Ln,t=>{a(this,Xt)[t.type]=!1});p(this,Mn,()=>{this.node.current&&st(this,pe,ac(this.node.current))});p(this,Vn,t=>this.node.current?So(this.node.current,t):!1);p(this,dr,Bo(()=>{for(const t in a(this,Xt))a(this,Xt)[t]=!1;st(this,pe,!1)},20));p(this,Fn,()=>{st(this,be,!0)});p(this,zn,()=>{st(this,be,!1)});E(this,"props",{onfocuscapture:a(this,Fn),onblurcapture:a(this,zn)});this.opts=t,ht({id:t.id,ref:this.node,deps:()=>t.enabled.current,onRefChange:o=>{this.currNode=o}}),st(this,oe,t.interactOutsideBehavior),st(this,me,t.onInteractOutside),st(this,lr,t.onFocusOutside),dt(()=>{st(this,Kt,ii(this.currNode))});let r=xt;const n=()=>{a(this,dr).call(this),globalThis.bitsDismissableLayers.delete(this),a(this,ye).destroy(),r()};kt([()=>this.opts.enabled.current,()=>this.currNode],([o,i])=>{if(!(!o||!i))return vo(1,()=>{this.currNode&&(globalThis.bitsDismissableLayers.set(this,a(this,oe)),r(),r=At(this,Ce,si).call(this))}),n}),$o(()=>{a(this,dr).destroy(),globalThis.bitsDismissableLayers.delete(this),a(this,ye).destroy(),a(this,zt).call(this),r()})}get currNode(){return s(a(this,ur))}set currNode(t){w(a(this,ur),t,!0)}}me=new WeakMap,oe=new WeakMap,Xt=new WeakMap,pe=new WeakMap,be=new WeakMap,Kt=new WeakMap,lr=new WeakMap,ur=new WeakMap,zt=new WeakMap,Rn=new WeakMap,Ce=new WeakSet,si=function(){return Gt(_t(a(this,Kt),"pointerdown",Gt(a(this,On),a(this,Mn)),{capture:!0}),_t(a(this,Kt),"pointerdown",Gt(a(this,Ln),a(this,ye))),_t(a(this,Kt),"focusin",a(this,Rn)))},Bn=new WeakMap,ye=new WeakMap,On=new WeakMap,Ln=new WeakMap,Mn=new WeakMap,Vn=new WeakMap,dr=new WeakMap,ai=function(){return Object.values(a(this,Xt)).some(Boolean)},Fn=new WeakMap,zn=new WeakMap;function ic(e){return new oc(e)}function sc(e){return e.findLast(([t,{current:r}
5])=>r==="close"||r==="ignore")}function ac(e){const t=[...globalThis.bitsDismissableLayers],r=sc(t);if(r)return r[0].node.current===e;const[n]=t[0];return n.node.current===e}function cc(e,t){if("button"in e&&e.button>0)return!1;const r=e.target;return oa(r)?ii(r).documentElement.contains(r)&&!So(t,r)&&nc(e,t):!1}function Oo(e){const t=e.currentTarget,r=e.target;let n;e instanceof PointerEvent?n=new PointerEvent(e.type,e):n=new PointerEvent("pointerdown",e);let o=!1;return new Proxy(n,{get:(c,l)=>l==="currentTarget"?t:l==="target"?r:l==="preventDefault"?()=>{o=!0,typeof c.preventDefault=="function"&&c.preventDefault()}:l==="defaultPrevented"?o:l in c?c[l]:e[l]})}function lc(e,t){M(t,!0);let r=f(t,"interactOutsideBehavior",3,"close"),n=f(t,"onInteractOutside",3,xt),o=f(t,"onFocusOutside",3,xt),i=f(t,"isValidEvent",3,()=>!1);const c=ic({id:C.with(()=>t.id),interactOutsideBehavior:C.with(()=>r()),onInteractOutside:C.with(()=>n()),enabled:C.with(()=>t.enabled),onFocusOutside:C.with(()=>o()),isValidEvent:C.with(()=>i())});var l=D(),u=k(l);z(u,()=>t.children??J,()=>({props:c.props})),y(e,l),V()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var Wn,Hn;class uc{constructor(t){E(this,"opts");p(this,Wn,()=>_t(document,"keydown",a(this,Hn),{passive:!1}));p(this,Hn,t=>{if(t.key!==Zs||!hc(this))return;const r=new KeyboardEvent(t.type,t);t.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(r)});this.opts=t;let r=xt;kt(()=>t.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),r=a(this,Wn).call(this)),()=>{r(),globalThis.bitsEscapeLayers.delete(this)}))}}Wn=new WeakMap,Hn=new WeakMap;function dc(e){return new uc(e)}function hc(e){const t=[...globalThis.bitsEscapeLayers],r=t.findLast(([o,{current:i}])=>i==="close"||i==="ignore");if(r)return r[0]===e;const[n]=t[0];return n===e}function fc(e,t){M(t,!0);let r=f(t,"escapeKeydownBehavior",3,"close"),n=f(t,"onEscapeKeydown",3,xt);dc({escapeKeydownBehavior:C.with(()=>r()),onEscapeKeydown:C.with(()=>n()),enabled:C.with(()=>t.enabled)});var o=D(),i=k(o);z(i,()=>t.children??J),y(e,o),V()}const Ht=C([]);function gc(){return{add(e){const t=Ht.current[0];t&&e.id!==t.id&&t.pause(),Ht.current=Lo(Ht.current,e),Ht.current.unshift(e)},remove(e){var t;Ht.current=Lo(Ht.current,e),(t=Ht.current[0])==null||t.resume()},get current(){return Ht.current}}}function vc(){let e=F(!1),t=F(!1);return{id:pt(),get paused(){return s(e)},get isHandlingFocus(){return s(t)},set isHandlingFocus(r){w(t,r,!0)},pause(){w(e,!0)},resume(){w(e,!1)}}}function Lo(e,t){return[...e].filter(r=>r.id!==t.id)}function mc(e){return e.filter(t=>t.tagName!=="A")}function Ut(e,{select:t=!1}={}){if(!(e&&e.focus)||document.activeElement===e)return;const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&ia(e)&&t&&e.select()}function pc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ut(n,{select:t}),document.activeElement!==r)return!0}function Mo(e,t){for(const r of e)if(!sa(r,t))return r}function ci(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function bc(e){const t=ci(e),r=Mo(t,e),n=Mo(t.reverse(),e);return[r,n]}/*! 6* tabbable 6.4.0 7* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 8*/var yc=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Sc=yc.join(","),li=typeof Element>"u",An=li?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,En=!li&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},wc=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},xc=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Tc=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||wc(t))&&!xc(t)?0:t.tabIndex},ui=function(t){return t.tagName==="INPUT"},Cc=function(t){return ui(t)&&t.type==="hidden"},_c=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},Pc=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},kc=function(t){if(!t.name)return!0;var r=t.form||En(t),n=function(l){return r.querySelectorAll('input[type="radio"][name="'+l+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(t.name));else try{o=n(t.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var i=Pc(o,t.form);return!i||i===t},Ac=function(t){return ui(t)&&t.type==="radio"},Ec=function(t){return Ac(t)&&!kc(t)},Nc=function(t){var r,n=t&&En(t),o=(r=n)===null||r===void 0?void 0:r.host,i=!1;if(n&&n!==t){var c,l,u;for(i=!!((c=o)!==null&&c!==void 0&&(l=c.ownerDocument)!==null&&l!==void 0&&l.contains(o)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!i&&o;){var d,g,v;n=En(o),o=(d=n)===null||d===void 0?void 0:d.host,i=!!((g=o)!==null&&g!==void 0&&(v=g.ownerDocument)!==null&&v!==void 0&&v.contains(o))}}return i},Vo=function(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},Ic=function(t,r){var n=r.displayCheck,o=r.getShadowRoot;if(n==="full-native"&&"checkVisibility"in t){var i=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(t).visibility==="hidden")return!0;var c=An.call(t,"details>summary:first-of-type"),l=c?t.parentElement:t;if(An.call(l,"details:not([open]) *"))return!0;
8if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var u=t;t;){var d=t.parentElement,g=En(t);if(d&&!d.shadowRoot&&o(d)===!0)return Vo(t);t.assignedSlot?t=t.assignedSlot:!d&&g!==t.ownerDocument?t=g.host:t=d}t=u}if(Nc(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Vo(t);return!1},Dc=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return An.call(r,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}r=r.parentElement}return!1},Rc=function(t,r){return!(r.disabled||Cc(r)||Ic(r,t)||_c(r)||Dc(r))},Bc=function(t,r){return!(Ec(r)||Tc(r)<0||!Rc(t,r))},Oc=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return An.call(t,Sc)===!1?!1:Bc(r,t)};const Lc=new oi("focusScope.autoFocusOnMount",{bubbles:!1,cancelable:!0}),Mc=new oi("focusScope.autoFocusOnDestroy",{bubbles:!1,cancelable:!0}),Vc=new Ot("FocusScope");function Fc({id:e,loop:t,enabled:r,onOpenAutoFocus:n,onCloseAutoFocus:o,forceMount:i}){const c=gc(),l=vc(),u=C(null),d=Vc.getOr({ignoreCloseAutoFocus:!1});let g=null;ht({id:e,ref:u,deps:()=>r.current});function v(_){if(!(l.paused||!u.current||l.isHandlingFocus)){l.isHandlingFocus=!0;try{const I=_.target;if(!co(I))return;const x=u.current.contains(I);if(_.type==="focusin")if(x)g=I;else{if(d.ignoreCloseAutoFocus)return;Ut(g,{select:!0})}else _.type==="focusout"&&!x&&!d.ignoreCloseAutoFocus&&Ut(g,{select:!0})}finally{l.isHandlingFocus=!1}}}function h(_){if(!g||!u.current)return;let I=!1;for(const x of _){if(x.type==="childList"&&x.removedNodes.length>0)for(const P of x.removedNodes){if(P===g){I=!0;break}if(P.nodeType===Node.ELEMENT_NODE&&P.contains(g)){I=!0;break}}if(I)break}I&&u.current&&!u.current.contains(document.activeElement)&&Ut(u.current)}kt([()=>u.current,()=>r.current],([_,I])=>{if(!_||!I)return;const x=Gt(_t(document,"focusin",v),_t(document,"focusout",v)),P=new MutationObserver(h);return P.observe(_,{childList:!0,subtree:!0,attributes:!1}),()=>{x(),P.disconnect()}}),kt([()=>i.current,()=>u.current],([_,I])=>{if(_)return;const x=document.activeElement;return m(I,x),()=>{I&&b(x)}}),kt([()=>i.current,()=>u.current,()=>r.current],([_,I])=>{if(!_)return;const x=document.activeElement;return m(I,x),()=>{I&&b(x)}});function m(_,I){if(_||(_=document.getElementById(e.current)),!_||!r.current)return;if(c.add(l),!_.contains(I)){const P=Lc.createEvent();n.current(P),P.defaultPrevented||un(()=>{if(!_)return;pc(mc(ci(_)),{select:!0})||Ut(_)})}}function b(_){var P;const I=Mc.createEvent();(P=o.current)==null||P.call(o,I);const x=d.ignoreCloseAutoFocus;vo(0,()=>{!I.defaultPrevented&&_&&!x&&Ut(Oc(_)?_:document.body,{select:!0}),c.remove(l)})}function T(_){if(!r.current||!t.current&&!r.current||l.paused)return;const I=_.key===Qs&&!_.ctrlKey&&!_.altKey&&!_.metaKey,x=document.activeElement;if(!(I&&x))return;const P=u.current;if(!P)return;const[A,O]=bc(P);A&&O?!_.shiftKey&&x===O?(_.preventDefault(),t.current&&Ut(A,{select:!0})):_.shiftKey&&x===A&&(_.preventDefault(),t.current&&Ut(O,{select:!0})):x===P&&_.preventDefault()}const N=S(()=>({id:e.current,tabindex:-1,onkeydown:T}));return{get props(){return s(N)}}}function zc(e,t){M(t,!0);let r=f(t,"trapFocus",3,!1),n=f(t,"loop",3,!1),o=f(t,"onCloseAutoFocus",3,xt),i=f(t,"onOpenAutoFocus",3,xt),c=f(t,"forceMount",3,!1);const l=Fc({enabled:C.with(()=>r()),loop:C.with(()=>n()),onCloseAutoFocus:C.with(()=>o()),onOpenAutoFocus:C.with(()=>i()),id:C.with(()=>t.id),forceMount:C.with(()=>c())});var u=D(),d=k(u);z(d,()=>t.focusScope??J,()=>({props:l.props})),y(e,u),V()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var Se,hr,Un,di,jn,fr;class Wc{constructor(t){p(this,Un);E(this,"opts");p(this,Se,xt);p(this,hr,C(null));p(this,jn,t=>{const r=a(this,hr).current,n=t.target;!co(r)||!co(n)||!this.opts.enabled.current||!jc(this)||!So(r,n)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&st(this,Se,Uc(r)))});p(this,fr,()=>
8{a(this,Se).call(this),st(this,Se,xt)});this.opts=t,ht({id:t.id,ref:a(this,hr),deps:()=>this.opts.enabled.current});let r=xt;kt(()=>this.opts.enabled.current,n=>(n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),r(),r=At(this,Un,di).call(this)),()=>{r(),a(this,fr).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}}Se=new WeakMap,hr=new WeakMap,Un=new WeakSet,di=function(){return Gt(_t(document,"pointerdown",a(this,jn)),_t(document,"pointerup",Go(a(this,fr),this.opts.onPointerUp.current)))},jn=new WeakMap,fr=new WeakMap;function Hc(e){return new Wc(e)}const Fo=e=>e.style.userSelect||e.style.webkitUserSelect;function Uc(e){const t=document.body,r=Fo(t),n=Fo(e);return Tn(t,"none"),Tn(e,"text"),()=>{Tn(t,r),Tn(e,n)}}function Tn(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function jc(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const r=t.at(-1);return r?r[0]===e:!1}function qc(e,t){M(t,!0);let r=f(t,"preventOverflowTextSelection",3,!0),n=f(t,"onPointerDown",3,xt),o=f(t,"onPointerUp",3,xt);Hc({id:C.with(()=>t.id),onPointerDown:C.with(()=>n()),onPointerUp:C.with(()=>o()),enabled:C.with(()=>t.enabled&&r())});var i=D(),c=k(i);z(c,()=>t.children??J),y(e,i),V()}function Xc(e){let t=0,r=F(void 0),n;function o(){t-=1,n&&t<=0&&(n(),w(r,void 0),n=void 0)}return(...i)=>(t+=1,s(r)===void 0&&(n=Li(()=>{w(r,e(...i),!0)})),dt(()=>()=>{o()}),s(r))}const Kc=Xc(()=>{const e=new io,t=S(()=>{for(const i of e.values())if(i)return!0;return!1});let r=F(null),n=null;function o(){Gn&&(document.body.setAttribute("style",s(r)??""),document.body.style.removeProperty("--scrollbar-width"),Ro&&(n==null||n()))}return dt(()=>{const i=s(t);return Zt(()=>{if(!i)return;w(r,document.body.getAttribute("style"),!0);const c=getComputedStyle(document.body),l=window.innerWidth-document.documentElement.clientWidth,d={padding:Number.parseInt(c.paddingRight??"0",10)+l,margin:Number.parseInt(c.marginRight??"0",10)};l>0&&(document.body.style.paddingRight=`${d.padding}px`,document.body.style.marginRight=`${d.margin}px`,document.body.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),Ro&&(n=fn(document,"touchmove",g=>{g.target===document.documentElement&&(g.touches.length>1||g.preventDefault())},{passive:!1})),un(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})})}),dt(()=>()=>{n==null||n()}),{get map(){return e},resetBodyStyle:o}});function Yc(e,t=()=>null){const r=pt(),n=Kc();if(!n)return;const o=S(t);n.map.set(r,e??!1);const i=C.with(()=>n.map.get(r)??!1,c=>n.map.set(r,c));return dt(()=>()=>{n.map.delete(r),!Gc(n.map)&&(s(o)===null?requestAnimationFrame(()=>n.resetBodyStyle()):vo(s(o),()=>n.resetBodyStyle()))}),i}function Gc(e){for(const[t,r]of e)if(r)return!0;return!1}function zo(e,t){M(t,!0);let r=f(t,"preventScroll",3,!0),n=f(t,"restoreScrollDelay",3,null);Yc(r(),()=>n()),V()}function Zc({forceMount:e,present:t,trapFocus:r,open:n}){return e?n&&r:t&&r&&n}var Jc=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Qc=U("<div><!></div>");function $c(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"forceMount",3,!1),o=f(t,"ref",15,null),i=j(t,Jc);const c=Ga({id:C.with(()=>r()),ref:C.with(()=>o(),u=>o(u))}),l=S(()=>tt(i,c.props));{const u=g=>{var v=D(),h=k(v);{var m=T=>{var N=D(),_=k(N);{let I=S(()=>({props:tt(s(l)),...c.snippetProps}));z(_,()=>t.child,()=>s(I))}y(T,N)},b=T=>{var N=Qc();ct(N,I=>({...I}),[()=>tt(s(l))]);var _=B(N);z(_,()=>t.children??J,()=>c.snippetProps),R(N),y(T,N)};Z(h,T=>{t.child?T(m):T(b,-1)})}y(g,v)};let d=S(()=>c.root.opts.open.current||n());ie(e,{get id(){return r()},get present(){return s(d)},presence:u,$$slots:{presence:!0}})}V()}var tl=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),el=U("<div><!></div>");function rl(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"ref",15,null),o=j(t,tl);const i=Za({id:C.with(()=>r()),ref:C.with(()=>n(),v=>n(v))}),c=S(()=>tt(o,i.props));var l=D(),u=k(l);{var d=v=>{var h=D(),m=k(h);z(m,()=>t.child,()=>({props:s(c)})),y(v,h)},g=v=>{var h=el();ct(h,()=>({...s(c)}));var m=B(h);z(m,()=>t.children??J),R(h),y(v,h)};Z(u,v=>{t.child?v(d):v(g,-1)})}y(e,l),V()}var nl=new Set(["$$slots","$$events","$$legacy","value"]),Wo=U("<input/>");function ol(e,t){M(t,!0);let r=f(t,"value",15),n=j(t,nl);const o=S(()=>tt(n,{"aria-hidden":"true",tabindex:-1,style:Bs}));var i=D(),c=k(i);{var l=d=>{var g=Wo();ct(g,()=>({...s(o),value:r()}),void 0,void 0,void 0,void 0,!0),y(d,g)},u=d=>{var g=Wo();ct(g,()=>({...s(o)}),void 0,void 0,void 0,void 0,!0),Zi(g,r),y(d,g)};Z(c,d=>{s(o).type==="checkbox"?d(l):d(u,-1)})}y(e,i),V()}function il(e,t){M(t,!0);let r=f(t,"open",15,!1),n=f(t,"onOpenChange",3,xt);Xa({variant:C.with(()=>"dialog"),open:C.with(()=>r(),c=>{r(c),n()(c)})});var o=D(),i=k(o);z(i,()=>t.children??J),y(e,o),V()}var sl=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),al=U("<button><!></button>");function cl(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"ref",15,null),o=f(t,"disabled",3,!1),i=j(t,sl);const c=Ja({variant:C.with(()=>"close"),id:C.with(()=>r()),ref:C.with(()=>n(),h=>n(h)),disabled:C.with(()=>!!o())}),l=S(()=>tt(i,c.props));var u=D(),d=k(u);{var g=h=>{var m=D(),b=k(m);z(b,()=>t.child,()=>({props:s(l)})),y(h,m)},v=h=>{var m=al();ct(m,()=>({...s(l)}));var b=B(m);z(b,()=>t.children??J),R(m),y(h,m)};Z(d,h=>{t.child?h(g):h(v,-1)})}y(e,u),V()}var ll=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKey
8down","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),ul=U("<!> <!>",1),dl=U("<!> <div><!></div>",1);function hl(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"ref",15,null),o=f(t,"forceMount",3,!1),i=f(t,"onCloseAutoFocus",3,xt),c=f(t,"onOpenAutoFocus",3,xt),l=f(t,"onEscapeKeydown",3,xt),u=f(t,"onInteractOutside",3,xt),d=f(t,"trapFocus",3,!0),g=f(t,"preventScroll",3,!0),v=f(t,"restoreScrollDelay",3,null),h=j(t,ll);const m=Ya({id:C.with(()=>r()),ref:C.with(()=>n(),T=>n(T))}),b=S(()=>tt(h,m.props));{const T=_=>{{const I=(P,A)=>{let O=()=>A==null?void 0:A().props;fc(P,X(()=>s(b),{get enabled(){return m.root.opts.open.current},onEscapeKeydown:W=>{l()(W),!W.defaultPrevented&&m.root.handleClose()},children:(W,K)=>{lc(W,X(()=>s(b),{get enabled(){return m.root.opts.open.current},onInteractOutside:Y=>{u()(Y),!Y.defaultPrevented&&m.root.handleClose()},children:(Y,ft)=>{qc(Y,X(()=>s(b),{get enabled(){return m.root.opts.open.current},children:(bt,rt)=>{var nt=D(),it=k(nt);{var q=ot=>{var yt=ul(),ut=k(yt);{var gt=St=>{zo(St,{get preventScroll(){return g()},get restoreScrollDelay(){return v()}})};Z(ut,St=>{m.root.opts.open.current&&St(gt)})}var Pt=L(ut,2);{let St=S(()=>({props:tt(s(b),O()),...m.snippetProps}));z(Pt,()=>t.child,()=>s(St))}y(ot,yt)},lt=ot=>{var yt=dl(),ut=k(yt);zo(ut,{get preventScroll(){return g()}});var gt=L(ut,2);ct(gt,St=>({...St}),[()=>tt(s(b),O())]);var Pt=B(gt);z(Pt,()=>t.children??J),R(gt),y(ot,yt)};Z(it,ot=>{t.child?ot(q):ot(lt,-1)})}y(bt,nt)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))};let x=S(()=>Zc({forceMount:o(),present:m.root.opts.open.current,trapFocus:d(),open:m.root.opts.open.current}));zc(_,{loop:!0,get trapFocus(){return s(x)},get onOpenAutoFocus(){return c()},get id(){return r()},onCloseAutoFocus:P=>{var A;i()(P),!P.defaultPrevented&&((A=m.root.triggerNode)==null||A.focus())},focusScope:I,$$slots:{focusScope:!0}})}};let N=S(()=>m.root.opts.open.current||o());ie(e,X(()=>s(b),{get forceMount(){return o()},get present(){return s(N)},presence:T,$$slots:{presence:!0}}))}V()}function Te(e,t){dt(()=>{let r=0;const n=e();if(!n)return;const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return o.observe(n),()=>{window.cancelAnimationFrame(r),o.unobserve(n)}})}function fl(e,t,r){return Math.min(r,Math.max(t,e))}const gl="data-scroll-area-root",vl="data-scroll-area-viewport",ml="data-scroll-area-corner",pl="data-scroll-area-thumb",bl="data-scroll-area-scrollbar";var gr,vr,mr,pr,br,yr,Sr,wr,xr,Tr;class yl{constructor(t){E(this,"opts");p(this,gr,F(null));p(this,vr,F(null));p(this,mr,F(null));p(this,pr,F(null));p(this,br,F(null));p(this,yr,F(0));p(this,Sr,F(0));p(this,wr,F(!1));p(this,xr,F(!1));p(this,Tr,S(()=>({id:this.opts.id.current,dir:this.opts.dir.current,style:{position:"relative","--bits-scroll-area-corner-height":`${this.cornerHeight}px`,"--bits-scroll-area-corner-width":`${this.cornerWidth}px`},[gl]:""})));this.opts=t,ht({...t,onRefChange:r=>{this.scrollAreaNode=r}})}get scrollAreaNode(){return s(a(this,gr))}set scrollAreaNode(t){w(a(this,gr),t,!0)}get viewportNode(){return s(a(this,vr))}set viewportNode(t){w(a(this,vr),t,!0)}get contentNode(){return s(a(this,mr))}set contentNode(t){w(a(this,mr),t,!0)}get scrollbarXNode(){return s(a(this,pr))}set scrollbarXNode(t){w(a(this,pr),t,!0)}get scrollbarYNode(){return s(a(this,br))}set scrollbarYNode(t){w(a(this,br),t,!0)}get cornerWidth(){return s(a(this,yr))}set cornerWidth(t){w(a(this,yr),t,!0)}get cornerHeight(){return s(a(this,Sr))}set cornerHeight(t){w(a(this,Sr),t,!0)}get scrollbarXEnabled(){return s(a(this,wr))}set scrollbarXEnabled(t){w(a(this,wr),t,!0)}get scrollbarYEnabled(){return s(a(this,xr))}set scrollbarYEnabled(t){w(a(this,xr),t,!0)}get props(){return s(a(this,Tr))}set props(t){w(a(this,Tr),t)}}gr=new WeakMap,vr=new WeakMap,mr=new WeakMap,pr=new WeakMap,br=new WeakMap,yr=new WeakMap,Sr=new WeakMap,wr=new WeakMap,xr=new WeakMap,Tr=new WeakMap;var Cr,qn,_r,Pr;class Sl{constructor(t,r){E(this,"opts");E(this,"root");p(this,Cr,C(pt()));p(this,qn,C(null));p(this,_r,S(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?"scroll":"hidden",overflowY:this.root.scrollbarYEnabled?"scroll":"hidden"},[vl]:""})));p(this,Pr,S(()=>({id:a(this,Cr).current,"data-scroll-area-content":"",style:{minWidth:this.root.scrollbarXEnabled?"fit-content":void 0}})));this.opts=t,this.root=r,ht({...t,onRefChange:n=>{this.root.viewportNode=n}}),ht({id:a(this,Cr),ref:a(this,qn),onRefChange:n=>{this.root.contentNode=n}})}get props(){return s(a(this,_r))}set props(t){w(a(this,_r),t)}get contentProps(){return s(a(this,Pr))}set contentProps(t){w(a(this,Pr),t)}}Cr=new WeakMap,qn=new WeakMap,_r=new WeakMap,Pr=new WeakMap;var kr,Ar;class wl{constructor(t,r){E(this,"opts");E(this,"root");p(this,kr,S(()=>this.opts.orientation.current==="horizontal"));p(this,Ar,F(!1));this.opts=t,this.root=r,dt(()=>(this.isHorizontal?this.root.scrollbarXEnabled=!0:this.root.scrollbarYEnabled=!0,()=>{this.isHorizontal?this.root.scrollbarXEnabled=!1:this.root.scrollbarYEnabled=!1}))}get isHorizontal(){return s(a(this,kr))}set isHorizontal(t){w(a(this,kr),t)}get hasThumb(){return s(a(this,Ar))}set hasThumb(t){w(a(this,Ar),t,!0)}}kr=new WeakMap,Ar=new WeakMap;var Er,Nr;class xl{constructor(t){E(this,"scrollbar");E(this,"root");p(this,Er,F(!1));p(this,Nr,S(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root,dt(()=>{const r=this.root.scrollAreaNode,n=this.root.opts.scrollHideDelay.current;let o=0;if(!r)return;const i=()=>{window.clearTimeout(o),Zt(()=>this.isVisible=!0)},c=()=>{o&&window.clearTimeout(o),o=window.setTimeout(()=>{Zt(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},n)},l=Gt(_t(r,"pointerenter",i),_t(r,"pointerleave",c));return()=>{window.clearTimeout(o),l()}})}get isVisible(){return s(a(this,Er))}set isVisible(t){w(a(this,Er),t,!0)}get props(){return s(a(this,Nr))}set props(t){w(a(this,Nr),t)}}Er=new WeakMap,Nr=new WeakMap;var Ir,Dr;class Tl{constructor(t){E(this,"scrollbar");E(this,"root");E(this,"machine",ni("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}));p(this,Ir,S(()=>this.machine.state.current==="hidden"));p(this,Dr,S(()=>({"data-state":this.machine.state.current==="hidden"?"hidden":"visible",onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave})));this.scrollbar=t,this.root=t.root;const r=Yn(()=>this.machine.dispatch("SCROLL_END"),100);dt(()=>{const n=this.machine.state.current,o=this.root.opts.scrollHideDelay.current;if(n==="idle"){const i=window.setTimeout(()=>this.machine.dispatch("HIDE"),o);return()=>window.clearTimeout(i)}}),dt(()=>{const n=this.root.viewportNode;if(!n)return;const o=this.scrollbar.isHorizontal?"scrollLeft":"scrollTop";let i=n[o];return fn(n,"scroll",()=>{const u=n[o];i!==u&&(this.machine.dispatch("SCROLL"),r()),i=u})}
8),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}get isHidden(){return s(a(this,Ir))}set isHidden(t){w(a(this,Ir),t)}onpointerenter(t){this.machine.dispatch("POINTER_ENTER")}onpointerleave(t){this.machine.dispatch("POINTER_LEAVE")}get props(){return s(a(this,Dr))}set props(t){w(a(this,Dr),t)}}Ir=new WeakMap,Dr=new WeakMap;var Rr,Br;class Cl{constructor(t){E(this,"scrollbar");E(this,"root");p(this,Rr,F(!1));p(this,Br,S(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root;const r=Yn(()=>{const n=this.root.viewportNode;if(!n)return;const o=n.offsetWidth<n.scrollWidth,i=n.offsetHeight<n.scrollHeight;this.isVisible=this.scrollbar.isHorizontal?o:i},10);Te(()=>this.root.viewportNode,r),Te(()=>this.root.contentNode,r)}get isVisible(){return s(a(this,Rr))}set isVisible(t){w(a(this,Rr),t,!0)}get props(){return s(a(this,Br))}set props(t){w(a(this,Br),t)}}Rr=new WeakMap,Br=new WeakMap;var Or,Lr,Mr,Vr,Fr,zr;class _l{constructor(t){E(this,"scrollbar");E(this,"root");p(this,Or,F(null));p(this,Lr,F(0));p(this,Mr,F({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}));p(this,Vr,S(()=>gi(this.sizes.viewport,this.sizes.content)));p(this,Fr,S(()=>this.thumbRatio>0&&this.thumbRatio<1));p(this,zr,F(""));this.scrollbar=t,this.root=t.root,dt(()=>{this.scrollbar.hasThumb=this.hasThumb}),Ee(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}get thumbNode(){return s(a(this,Or))}set thumbNode(t){w(a(this,Or),t,!0)}get pointerOffset(){return s(a(this,Lr))}set pointerOffset(t){w(a(this,Lr),t,!0)}get sizes(){return s(a(this,Mr))}set sizes(t){w(a(this,Mr),t)}get thumbRatio(){return s(a(this,Vr))}set thumbRatio(t){w(a(this,Vr),t)}get hasThumb(){return s(a(this,Fr))}set hasThumb(t){w(a(this,Fr),t)}get prevTransformStyle(){return s(a(this,zr))}set prevTransformStyle(t){w(a(this,zr),t,!0)}setSizes(t){this.sizes=t}getScrollPosition(t,r){return Hl({pointerPos:t,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:r})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(t){this.pointerOffset=t}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollLeft,n=`translate3d(${Ho({scrollPos:t,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=n,this.prevTransformStyle=n}xOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=t)}xOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(t,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollTop,n=`translate3d(0, ${Ho({scrollPos:t,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=n,this.prevTransformStyle=n}yOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=t)}yOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(t,this.root.opts.dir.current))}}Or=new WeakMap,Lr=new WeakMap,Mr=new WeakMap,Vr=new WeakMap,Fr=new WeakMap,zr=new WeakMap;var Wr,Hr,Ur;class Pl{constructor(t,r){E(this,"opts");E(this,"scrollbarVis");E(this,"root");p(this,Wr,F());E(this,"scrollbar");E(this,"onThumbPointerDown",t=>{this.scrollbarVis.onThumbPointerDown(t.x)});E(this,"onDragScroll",t=>{this.scrollbarVis.xOnDragScroll(t.x)});E(this,"onThumbPointerUp",()=>{this.scrollbarVis.onThumbPointerUp()});E(this,"onThumbPositionChange",()=>{this.scrollbarVis.xOnThumbPositionChange()});E(this,"onWheelScroll",(t,r)=>{if(!this.root.viewportNode)return;const n=this.root.viewportNode.scrollLeft+t.deltaX;this.scrollbarVis.xOnWheelScroll(n),mi(n,r)&&t.preventDefault()});E(this,"onResize",()=>{this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollWidth,viewport:this.root.viewportNode.offsetWidth,scrollbar:{size:this.scrollbar.opts.ref.current.clientWidth,paddingStart:Nn(this.computedStyle.paddingLeft),paddingEnd:Nn(this.computedStyle.paddingRight)}})});p(this,Hr,S(()=>Qn(this.scrollbarVis.sizes)));p(this,Ur,S(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"horizontal",style:{bottom:0,left:this.root.opts.dir.current==="rtl"?"var(--bits-scroll-area-corner-width)":0,right:this.root.opts.dir.current==="ltr"?"var(--bits-scroll-area-corner-width)":0,"--bits-scroll-area-thumb-width":`${this.thumbSize}px`}})));this.opts=t,this.scrollbarVis=r,this.root=r.root,this.scrollbar=r.scrollbar,ht({...this.scrollbar.opts,onRefChange:n=>{this.root.scrollbarXNode=n},deps:()=>this.opts.mounted.current}),dt(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),dt(()=>{this.onResize()})}get computedStyle(){return s(a(this,Wr))}set computedStyle(t){w(a(this,Wr),t,!0)}get thumbSize(){return s(a(this,Hr))}set thumbSize(t){w(a(this,Hr),t)}get props(){return s(a(this,Ur))}set props(t){w(a(this,Ur),t)}}Wr=new WeakMap,Hr=new WeakMap,Ur=new WeakMap;var jr,qr,Xr;class kl{constructor(t,r){E(this,"opts");E(this,"scrollbarVis");E(this,"root");E(this,"scrollbar");p(this,jr,F());p(this,qr,S(()=>Qn(this.scrollbarVis.sizes)));p(this,Xr,S(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"vertical",style:{to
8p:0,right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:"var(--bits-scroll-area-corner-height)","--bits-scroll-area-thumb-height":`${this.thumbSize}px`}})));this.opts=t,this.scrollbarVis=r,this.root=r.root,this.scrollbar=r.scrollbar,ht({...this.scrollbar.opts,onRefChange:n=>{this.root.scrollbarYNode=n},deps:()=>this.opts.mounted.current}),dt(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),dt(()=>{this.onResize()}),this.onThumbPointerDown=this.onThumbPointerDown.bind(this),this.onDragScroll=this.onDragScroll.bind(this),this.onThumbPointerUp=this.onThumbPointerUp.bind(this),this.onThumbPositionChange=this.onThumbPositionChange.bind(this),this.onWheelScroll=this.onWheelScroll.bind(this),this.onResize=this.onResize.bind(this)}get computedStyle(){return s(a(this,jr))}set computedStyle(t){w(a(this,jr),t,!0)}onThumbPointerDown(t){this.scrollbarVis.onThumbPointerDown(t.y)}onDragScroll(t){this.scrollbarVis.yOnDragScroll(t.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(t,r){if(!this.root.viewportNode)return;const n=this.root.viewportNode.scrollTop+t.deltaY;this.scrollbarVis.yOnWheelScroll(n),mi(n,r)&&t.preventDefault()}onResize(){this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollHeight,viewport:this.root.viewportNode.offsetHeight,scrollbar:{size:this.scrollbar.opts.ref.current.clientHeight,paddingStart:Nn(this.computedStyle.paddingTop),paddingEnd:Nn(this.computedStyle.paddingBottom)}})}get thumbSize(){return s(a(this,qr))}set thumbSize(t){w(a(this,qr),t)}get props(){return s(a(this,Xr))}set props(t){w(a(this,Xr),t)}}jr=new WeakMap,qr=new WeakMap,Xr=new WeakMap;var Kr,Yr,Gr,Zr;class Al{constructor(t){E(this,"scrollbarState");E(this,"root");E(this,"scrollbarVis");E(this,"scrollbar");p(this,Kr,F(null));p(this,Yr,F(""));E(this,"handleResize");E(this,"handleThumbPositionChange");E(this,"handleWheelScroll");E(this,"handleThumbPointerDown");E(this,"handleThumbPointerUp");p(this,Gr,S(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport));p(this,Zr,S(()=>tt({...this.scrollbarState.props,style:{position:"absolute",...this.scrollbarState.props.style},[bl]:"",onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup})));this.scrollbarState=t,this.root=t.root,this.scrollbarVis=t.scrollbarVis,this.scrollbar=t.scrollbarVis.scrollbar,this.handleResize=Yn(()=>this.scrollbarState.onResize(),10),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,dt(()=>{const r=this.maxScrollPos,n=this.scrollbar.opts.ref.current;return this.root.viewportNode,fn(document,"wheel",c=>{const l=c.target;(n==null?void 0:n.contains(l))&&this.handleWheelScroll(c,r)},{passive:!1})}),Ee(()=>{this.scrollbarVis.sizes,Zt(()=>this.handleThumbPositionChange())}),Ee(()=>{this.handleThumbPositionChange()}),Te(()=>this.scrollbar.opts.ref.current,this.handleResize),Te(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this)}get rect(){return s(a(this,Kr))}set rect(t){w(a(this,Kr),t)}get prevWebkitUserSelect(){return s(a(this,Yr))}set prevWebkitUserSelect(t){w(a(this,Yr),t,!0)}get maxScrollPos(){return s(a(this,Gr))}set maxScrollPos(t){w(a(this,Gr),t)}handleDragScroll(t){if(!this.rect)return;const r=t.clientX-this.rect.left,n=t.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:r,y:n})}onpointerdown(t){var n;if(t.button!==0)return;t.target.setPointerCapture(t.pointerId),this.rect=((n=this.scrollbar.opts.ref.current)==null?void 0:n.getBoundingClientRect())??null,this.prevWebkitUserSelect=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior="auto"),this.handleDragScroll(t)}onpointermove(t){this.handleDragScroll(t)}onpointerup(t){const r=t.target;r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId),document.body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=""),this.rect=null}get props(){return s(a(this,Zr))}set props(t){w(a(this,Zr),t)}}
8Kr=new WeakMap,Yr=new WeakMap,Gr=new WeakMap,Zr=new WeakMap;var Jr,Yt,Xn,Qr;class El{constructor(t,r){E(this,"opts");E(this,"scrollbarState");p(this,Jr);p(this,Yt,F());p(this,Xn,Yn(()=>{s(a(this,Yt))&&(s(a(this,Yt))(),w(a(this,Yt),void 0))},100));p(this,Qr,S(()=>({id:this.opts.id.current,"data-state":this.scrollbarState.scrollbarVis.hasThumb?"visible":"hidden",style:{width:"var(--bits-scroll-area-thumb-width)",height:"var(--bits-scroll-area-thumb-height)",transform:this.scrollbarState.scrollbarVis.prevTransformStyle},onpointerdowncapture:this.onpointerdowncapture,onpointerup:this.onpointerup,[pl]:""})));this.opts=t,this.scrollbarState=r,st(this,Jr,r.root),ht({...t,onRefChange:n=>{this.scrollbarState.scrollbarVis.thumbNode=n},deps:()=>this.opts.mounted.current}),dt(()=>{const n=a(this,Jr).viewportNode;if(!n)return;const o=()=>{if(a(this,Xn).call(this),!s(a(this,Yt))){const c=Ul(n,this.scrollbarState.handleThumbPositionChange);w(a(this,Yt),c,!0),this.scrollbarState.handleThumbPositionChange()}};return this.scrollbarState.handleThumbPositionChange(),fn(n,"scroll",o)}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}onpointerdowncapture(t){const r=t.target;if(!r)return;const n=r.getBoundingClientRect(),o=t.clientX-n.left,i=t.clientY-n.top;this.scrollbarState.handleThumbPointerDown({x:o,y:i})}onpointerup(t){this.scrollbarState.handleThumbPointerUp()}get props(){return s(a(this,Qr))}set props(t){w(a(this,Qr),t)}}Jr=new WeakMap,Yt=new WeakMap,Xn=new WeakMap,Qr=new WeakMap;var we,xe,$r,tn;class Nl{constructor(t,r){E(this,"opts");E(this,"root");p(this,we,F(0));p(this,xe,F(0));p(this,$r,S(()=>!!(s(a(this,we))&&s(a(this,xe)))));p(this,tn,S(()=>({id:this.opts.id.current,style:{width:s(a(this,we)),height:s(a(this,xe)),position:"absolute",right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:0},[ml]:""})));this.opts=t,this.root=r,Te(()=>this.root.scrollbarXNode,()=>{var o;const n=((o=this.root.scrollbarXNode)==null?void 0:o.offsetHeight)||0;this.root.cornerHeight=n,w(a(this,xe),n,!0)}),Te(()=>this.root.scrollbarYNode,()=>{var o;const n=((o=this.root.scrollbarYNode)==null?void 0:o.offsetWidth)||0;this.root.cornerWidth=n,w(a(this,we),n,!0)}),ht(t)}get hasSize(){return s(a(this,$r))}set hasSize(t){w(a(this,$r),t)}get props(){return s(a(this,tn))}set props(t){w(a(this,tn),t)}}we=new WeakMap,xe=new WeakMap,$r=new WeakMap,tn=new WeakMap;const gn=new Ot("ScrollArea.Root"),vn=new Ot("ScrollArea.Scrollbar"),Jn=new Ot("ScrollArea.ScrollbarVisible"),wo=new Ot("ScrollArea.ScrollbarAxis"),hi=new Ot("ScrollArea.ScrollbarShared");function Il(e){return gn.set(new yl(e))}function Dl(e){return new Sl(e,gn.get())}function Rl(e){return vn.set(new wl(e,gn.get()))}function Bl(){return Jn.set(new _l(vn.get()))}function fi(){return new Cl(vn.get())}function Ol(){return new Tl(vn.get())}function Ll(){return new xl(vn.get())}function Ml(e){return wo.set(new Pl(e,Jn.get()))}function Vl(e){return wo.set(new kl(e,Jn.get()))}function Fl(){return hi.set(new Al(wo.get()))}function zl(e){return new El(e,hi.get())}function Wl(e){return new Nl(e,gn.get())}function Nn(e){return e?Number.parseInt(e,10):0}function gi(e,t){const r=e/t;return Number.isNaN(r)?0:r}function Qn(e){const t=gi(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Hl({pointerPos:e,pointerOffset:t,sizes:r,dir:n="ltr"}){const o=Qn(r),i=o/2,c=t||i,l=o-c,u=r.scrollbar.paddingStart+c,d=r.scrollbar.size-r.scrollbar.paddingEnd-l,g=r.content-r.viewport,v=n==="ltr"?[0,g]:[g*-1,0];return vi([u,d],v)(e)}function Ho({scrollPos:e,sizes:t,dir:r="ltr"}){const n=Qn(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,c=t.content-t.viewport,l=i-n,u=r==="ltr"?[0,c]:[c*-1,0],d=fl(e,u[0],u[1]);return vi([0,c],[0,l])(d)}function vi(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function mi(e,t){return e>0&&e<t}function Ul(e,t){let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){const i={left:e.scrollLeft,top:e.scrollTop},c=r.left!==i.left,l=r.top!==i.top;(c||l)&&t(),r=i,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)}var jl=new Set(["$$slots","$$events","$$legacy","ref","id","type","dir","scrollHideDelay","children","child"]),ql=U("<div><!></div>");function Xl(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=f(t,"type",3,"hover"),i=f(t,"dir",3,"ltr"),c=f(t,"scrollHideDelay",3,600),l=j(t,jl);const u=Il({type:C.with(()=>o()),dir:C.with(()=>i()),scrollHideDelay:C.with(()=>c()),id:C.with(()=>n()),ref:C.with(()=>r(),b=>r(b))}),d=S(()=>tt(l,u.props));var g=D(),v=k(g);{var h=b=>{var T=D(),N=k(T);z(N,()=>t.child,()=>({props:s(d)})),y(b,T)},m=b=>{var T=ql();ct(T,()=>({...s(d)}));var N=B(T);z(N,()=>t.children??J),R(T),y(b,T)};Z(v,b=>{t.child?b(h):b(m,-1)})}y(e,g),V()}var Kl=new Set(["$$slots","$$events","$$legacy","ref","id","children"]),Yl=U("<div><div><!></div></div>");function Gl(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=j(t,Kl);const i=Dl({id:C.with(()=>n()),ref:C.with(()=>r(),v=>r(v))}),c=S(()=>tt(o,i.props)),l=S(()=>tt({},i.contentProps));var u=Yl();ct(u,()=>({...s(c)}));var d=B(u);
8ct(d,()=>({...s(l)}));var g=B(d);z(g,()=>t.children??J),R(d),R(u),y(e,u),V()}var Zl=new Set(["$$slots","$$events","$$legacy","child","children"]),Jl=U("<div><!></div>");function pi(e,t){M(t,!0);let r=j(t,Zl);const n=Fl(),o=S(()=>tt(r,n.props));var i=D(),c=k(i);{var l=d=>{var g=D(),v=k(g);z(v,()=>t.child,()=>({props:s(o)})),y(d,g)},u=d=>{var g=Jl();ct(g,()=>({...s(o)}));var v=B(g);z(v,()=>t.children??J),R(g),y(d,g)};Z(c,d=>{t.child?d(l):d(u,-1)})}y(e,i),V()}var Ql=new Set(["$$slots","$$events","$$legacy"]);function $l(e,t){M(t,!0);let r=j(t,Ql);const n=new go,o=Ml({mounted:C.with(()=>n.current)}),i=S(()=>tt(r,o.props));pi(e,X(()=>s(i))),V()}var tu=new Set(["$$slots","$$events","$$legacy"]);function eu(e,t){M(t,!0);let r=j(t,tu);const n=new go,o=Vl({mounted:C.with(()=>n.current)}),i=S(()=>tt(r,o.props));pi(e,X(()=>s(i))),V()}var ru=new Set(["$$slots","$$events","$$legacy"]);function $n(e,t){M(t,!0);let r=j(t,ru);const n=Bl();var o=D(),i=k(o);{var c=u=>{$l(u,X(()=>r))},l=u=>{eu(u,X(()=>r))};Z(i,u=>{n.scrollbar.opts.orientation.current==="horizontal"?u(c):u(l,-1)})}y(e,o),V()}var nu=new Set(["$$slots","$$events","$$legacy","forceMount"]);function ou(e,t){M(t,!0);let r=f(t,"forceMount",3,!1),n=j(t,nu);const o=fi(),i=S(()=>tt(n,o.props));{const c=u=>{$n(u,X(()=>s(i)))};let l=S(()=>r()||o.isVisible);ie(e,X({get present(){return s(l)}},()=>s(i),{presence:c,$$slots:{presence:!0}}))}V()}var iu=new Set(["$$slots","$$events","$$legacy","forceMount"]);function su(e,t){M(t,!0);let r=f(t,"forceMount",3,!1),n=j(t,iu);const o=Ol(),i=S(()=>tt(n,o.props));{const c=u=>{$n(u,X(()=>s(i)))};let l=S(()=>r()||!o.isHidden);ie(e,X(()=>s(i),{get present(){return s(l)},presence:c,$$slots:{presence:!0}}))}V()}var au=new Set(["$$slots","$$events","$$legacy","forceMount"]);function cu(e,t){M(t,!0);let r=f(t,"forceMount",3,!1),n=j(t,au);const o=Ll(),i=fi(),c=S(()=>tt(n,o.props,i.props,{"data-state":o.isVisible?"visible":"hidden"})),l=S(()=>r()||o.isVisible&&i.isVisible);ie(e,X(()=>s(c),{get present(){return s(l)},presence:d=>{$n(d,X(()=>s(c)))},$$slots:{presence:!0}})),V()}var lu=new Set(["$$slots","$$events","$$legacy","ref","id","orientation"]);function uu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=j(t,lu);const i=Rl({orientation:C.with(()=>t.orientation),id:C.with(()=>n()),ref:C.with(()=>r(),m=>r(m))}),c=S(()=>i.root.opts.type.current);var l=D(),u=k(l);{var d=m=>{cu(m,X(()=>o,{get id(){return n()}}))},g=m=>{su(m,X(()=>o,{get id(){return n()}}))},v=m=>{ou(m,X(()=>o,{get id(){return n()}}))},h=m=>{$n(m,X(()=>o,{get id(){return n()}}))};Z(u,m=>{s(c)==="hover"?m(d):s(c)==="scroll"?m(g,1):s(c)==="auto"?m(v,2):s(c)==="always"&&m(h,3)})}y(e,l),V()}var du=new Set(["$$slots","$$events","$$legacy","ref","id","child","children","present"]),hu=U("<div><!></div>");function fu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,du);const o=new go,i=zl({id:C.with(()=>t.id),ref:C.with(()=>r(),v=>r(v)),mounted:C.with(()=>o.current)}),c=S(()=>tt(n,i.props,{style:{hidden:!t.present}}));var l=D(),u=k(l);{var d=v=>{var h=D(),m=k(h);z(m,()=>t.child,()=>({props:s(c)})),y(v,h)},g=v=>{var h=hu();ct(h,()=>({...s(c)}));var m=B(h);z(m,()=>t.children??J),R(h),y(v,h)};Z(u,v=>{t.child?v(d):v(g,-1)})}y(e,l),V()}var gu=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount"]);function vu(e,t){M(t,!0);let r=f(t,"id",19,pt),n=f(t,"ref",15,null),o=f(t,"forceMount",3,!1),i=j(t,gu);const c=Jn.get();{const l=(d,g)=>{let v=()=>g==null?void 0:g().present;fu(d,X(()=>i,{get id(){return r()},get present(){return v().current},get ref(){return n()},set ref(h){n(h)}}))};let u=S(()=>o()||c.hasThumb);ie(e,X({get present(){return s(u)}},()=>i,{get id(){return r()},presence:l,$$slots:{presence:!0}}))}V()}var mu=new Set(["$$slots","$$events","$$legacy","ref","id","children","child"]),pu=U("<div><!></div>");function bu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,mu);const o=Wl({id:C.with(()=>t.id),ref:C.with(()=>r(),g=>r(g))}),i=S(()=>tt(n,o.props));var c=D(),l=k(c);{var u=g=>{var v=D(),h=k(v);z(h,()=>t.child,()=>({props:s(i)})),y(g,v)},d=g=>{var v=pu();ct(v,()=>({...s(i)}));var h=B(v);z(h,()=>t.children??J),R(v),y(g,v)};Z(l,g=>{t.child?g(u):g(d,-1)})}y(e,c),V()}var yu=new Set(["$$slots","$$events","$$legacy","ref","id"]);function Su(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=j(t,yu);const i=gn.get(),c=S(()=>!!(i.scrollbarXNode&&i.scrollbarYNode)),l=S(()=>i.opts.type.current!=="scroll"&&s(c));var u=D(),d=k(u);{var g=v=>{bu(v,X(()=>o,{get id(){return n()},get ref(){return r()},set ref(h){r(h)}}))};Z(d,v=>{s(l)&&v(g)})}y(e,u),V()}const wu="data-switch-root",xu="data-switch-thumb";var en,lo,rn,nn,on;class Tu{constructor(t){p(this,en);E(this,"opts");p(this,rn,S(()=>({"data-disabled":hn(this.opts.disabled.current),"data-state":Hs(this.opts.checked.current),"data-required":Ks(this.opts.required.current)})));p(this,nn,S(()=>({checked:this.opts.checked.current})));p(this,on,S(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:Ys(this.opts.disabled.current),"aria-checked":Xs(this.opts.checked.current),"aria-required":qs(this.opts.required.current),[wu]:"",oncl
8ick:this.onclick,onkeydown:this.onkeydown})));this.opts=t,ht(t),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}onkeydown(t){!(t.key===bo||t.key===yo)||this.opts.disabled.current||(t.preventDefault(),At(this,en,lo).call(this))}onclick(t){this.opts.disabled.current||At(this,en,lo).call(this)}get sharedProps(){return s(a(this,rn))}set sharedProps(t){w(a(this,rn),t)}get snippetProps(){return s(a(this,nn))}set snippetProps(t){w(a(this,nn),t)}get props(){return s(a(this,on))}set props(t){w(a(this,on),t)}}en=new WeakSet,lo=function(){this.opts.checked.current=!this.opts.checked.current},rn=new WeakMap,nn=new WeakMap,on=new WeakMap;var sn,an;class Cu{constructor(t){E(this,"root");p(this,sn,S(()=>this.root.opts.name.current!==void 0));p(this,an,S(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current})));this.root=t}get shouldRender(){return s(a(this,sn))}set shouldRender(t){w(a(this,sn),t)}get props(){return s(a(this,an))}set props(t){w(a(this,an),t)}}sn=new WeakMap,an=new WeakMap;var cn,ln;class _u{constructor(t,r){E(this,"opts");E(this,"root");p(this,cn,S(()=>({checked:this.root.opts.checked.current})));p(this,ln,S(()=>({...this.root.sharedProps,id:this.opts.id.current,[xu]:""})));this.opts=t,this.root=r,ht(t)}get snippetProps(){return s(a(this,cn))}set snippetProps(t){w(a(this,cn),t)}get props(){return s(a(this,ln))}set props(t){w(a(this,ln),t)}}cn=new WeakMap,ln=new WeakMap;const xo=new Ot("Switch.Root");function Pu(e){return xo.set(new Tu(e))}function ku(){return new Cu(xo.get())}function Au(e){return new _u(e,xo.get())}function Eu(e,t){M(t,!1);const r=ku();uo();var n=D(),o=k(n);{var i=c=>{ol(c,X(()=>r.props))};Z(o,c=>{r.shouldRender&&c(i)})}y(e,n),V()}var Nu=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]),Iu=U("<button><!></button>"),Du=U("<!> <!>",1);function Ru(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=f(t,"disabled",3,!1),i=f(t,"required",3,!1),c=f(t,"checked",15,!1),l=f(t,"value",3,"on"),u=f(t,"name",3,void 0),d=f(t,"type",3,"button"),g=f(t,"onCheckedChange",3,xt),v=j(t,Nu);const h=Pu({checked:C.with(()=>c(),x=>{var P;c(x),(P=g())==null||P(x)}),disabled:C.with(()=>o()??!1),required:C.with(()=>i()),value:C.with(()=>l()),name:C.with(()=>u()),id:C.with(()=>n()),ref:C.with(()=>r(),x=>r(x))}),m=S(()=>tt(v,h.props,{type:d()}));var b=Du(),T=k(b);{var N=x=>{var P=D(),A=k(P);{let O=S(()=>({props:s(m),...h.snippetProps}));z(A,()=>t.child,()=>s(O))}y(x,P)},_=x=>{var P=Iu();ct(P,()=>({...s(m)}));var A=B(P);z(A,()=>t.children??J,()=>h.snippetProps),R(P),y(x,P)};Z(T,x=>{t.child?x(N):x(_,-1)})}var I=L(T,2);Eu(I,{}),y(e,b),V()}var Bu=new Set(["$$slots","$$events","$$legacy","child","children","ref","id"]),Ou=U("<span><!></span>");function Lu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"id",19,pt),o=j(t,Bu);const i=Au({id:C.with(()=>n()),ref:C.with(()=>r(),v=>r(v))}),c=S(()=>tt(o,i.props));var l=D(),u=k(l);{var d=v=>{var h=D(),m=k(h);{let b=S(()=>({props:s(c),...i.snippetProps}));z(m,()=>t.child,()=>s(b))}y(v,h)},g=v=>{var h=Ou();ct(h,()=>({...s(c)}));var m=B(h);z(m,()=>t.children??J,()=>i.snippetProps),R(h),y(v,h)};Z(u,v=>{t.child?v(d):v(g,-1)})}y(e,l),V()}var Mu=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Vu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,Mu);var o=D(),i=k(o);{let c=S(()=>G("cc:text-lg cc:font-semibold cc:leading-none cc:tracking-tight",t.class));et(i,()=>tc,(l,u)=>{u(l,X({get class(){return s(c)}},()=>n,{get ref(){return r()},set ref(d){r(d)}}))})}y(e,o),V()}var Fu=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),zu=U("<div><!></div>");function Wu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,Fu);var o=zu();ct(o,c=>({class:c,...n}),[()=>G("cc:flex cc:flex-col cc:space-y-1.5 cc:text-center cc:sm:text-left",t.class)]);var i=B(o);z(i,()=>t.children??J),R(o),Qi(o,c=>r(c),()=>r()),y(e,o),V()}var Hu=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Uu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,Hu);var o=D(),i=k(o);{let c=S(()=>G("cc:data-[state=open]:animate-in cc:data-[state=closed]:animate-out cc:data-[state=closed]:fade-out-0 cc:data-[state=open]:fade-in-0 cc:fixed cc:inset-0 cc:z-50 cc:bg-black/80",t.class));et(i,()=>$c,(l,u)=>{u(l,X({get class(){return s(c)}},()=>n,{get ref(){return r()},set ref(d){r(d)}}))})}y(e,o),V()}/** 9 * @license lucide-svelte v0.511.0 - ISC 10 * 11 * ISC License 12 * 13 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022. 14 * 15 * Permission to use, copy, modify, and/or distribute this software for any 16 * purpose with or without fee is hereby granted, provided that the above 17 * copyright notice and this permission notice appear in all copies. 18 * 19 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 20 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 21 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 22 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 23 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 24 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 25 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 26 * 27 */const ju={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var qu=Ii("<svg><!><!></svg>");function bi(e,t){const r=kn(t,["children","$$slots","$$events","$$legacy"]),n=kn(r,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);M(t,!1);let o=f(t,"name",8,void 0),i=f(t,"color",8,"currentColor"),c=f(t,"size",8,24),l=f(t,"strokeWidth",8,2),u=f(t,"absoluteStrokeWidth",8,!1),d=f(t,"iconNode",24,()=>[]);const g=(...b)=>b.filter((T,N,_)=>!!T&&_.indexOf(T)===N).join(" ");uo();var v=qu();ct(v,(b,T)=>({...ju,...n,width:c(),height:c(),stroke:i(),"stroke-width":b,class:T}),[()=>(ke(u()),ke(l()),ke(c()),Zt(()=>u()?Number(l())*24/Number(c()):l())),()=>(ke(o()),ke(r),Zt(()=>g("lucide-icon","lucide",o()?`lucide-${o()}`:"",r.class)))]);var h=B(v);Pn(h,1,d,Ui,(b,T)=>{var N=S(()=>Mi(s(T),2));let _=()=>s(N)[0],I=()=>s(N)[1];var x=D(),P=k(x);
27Ji(P,_,!0,(A,O)=>{ct(A,()=>({...I()}))}),y(b,x)});var m=L(h);ho(m,t,"default",{},null),R(v),y(e,v),V()}function Xu(e,t){const r=kn(t,["children","$$slots","$$events","$$legacy"]);/** 28 * @license lucide-svelte v0.511.0 - ISC 29 * 30 * ISC License 31 * 32 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022. 33 * 34 * Permission to use, copy, modify, and/or distribute this software for any 35 * purpose with or without fee is hereby granted, provided that the above 36 * copyright notice and this permission notice appear in all copies. 37 * 38 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 39 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 40 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 41 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 42 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 43 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 44 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 45 * 46 */const n=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];bi(e,X({name:"x"},()=>r,{get iconNode(){return n},children:(o,i)=>{var c=D(),l=k(c);ho(l,t,"default",{},null),y(o,c)},$$slots:{default:!0}}))}var Ku=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","children"]),Yu=U('<!> <span class="cc:sr-only">Close</span>',1),Uo=U("<!> <!>",1);function Gu(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,Ku);var o=D(),i=k(o);et(i,()=>$u,(c,l)=>{l(c,X(()=>t.portalProps,{children:(u,d)=>{var g=Uo(),v=k(g);et(v,()=>Uu,(m,b)=>{b(m,{})});var h=L(v,2);{let m=S(()=>G("cc:bg-background cc:data-[state=open]:animate-in cc:data-[state=closed]:animate-out cc:data-[state=closed]:fade-out-0 cc:data-[state=open]:fade-in-0 cc:data-[state=closed]:zoom-out-95 cc:data-[state=open]:zoom-in-95 cc:data-[state=closed]:slide-out-to-left-1/2 cc:data-[state=closed]:slide-out-to-top-[48%] cc:data-[state=open]:slide-in-from-left-1/2 cc:data-[state=open]:slide-in-from-top-[48%] cc:fixed cc:left-[50%] cc:top-[50%] cc:z-50 cc:grid cc:w-full cc:max-w-lg cc:translate-x-[-50%] cc:translate-y-[-50%] cc:gap-4 cc:border cc:p-6 cc:shadow-lg cc:duration-200 cc:sm:rounded-lg",t.class));et(h,()=>hl,(b,T)=>{T(b,X({get class(){return s(m)}},()=>n,{get ref(){return r()},set ref(N){r(N)},children:(N,_)=>{var I=Uo(),x=k(I);z(x,()=>t.children??J);var P=L(x,2);et(P,()=>cl,(A,O)=>{O(A,{class:"cc:ring-offset-background cc:focus:ring-ring cc:data-[state=open]:bg-accent cc:data-[state=open]:text-muted-foreground cc:absolute cc:right-4 cc:top-4 cc:rounded-sm cc:opacity-70 cc:transition-opacity cc:hover:opacity-100 cc:focus:outline-hidden cc:focus:ring-2 cc:focus:ring-offset-2 cc:disabled:pointer-events-none",children:(W,K)=>{var Y=Yu(),ft=k(Y);Xu(ft,{class:"cc:size-4"}),jt(2),y(W,Y)},$$slots:{default:!0}})}),y(N,I)},$$slots:{default:!0}}))})}y(u,g)},$$slots:{default:!0}}))}),y(e,o),V()}var Zu=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Ju(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,Zu);var o=D(),i=k(o);{let c=S(()=>G("cc:text-muted-foreground cc:text-sm",t.class));et(i,()=>rl,(l,u)=>{u(l,X({get class(){return s(c)}},()=>n,{get ref(){return r()},set ref(d){r(d)}}))})}y(e,o),V()}const Qu=il,$u=rc;var td=new Set(["$$slots","$$events","$$legacy","ref","checked","class","checkedBgColor","uncheckedBgColor","thumbColor"]);function ed(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"checked",15,!1),o=f(t,"checkedBgColor",3,void 0),i=f(t,"uncheckedBgColor",3,void 0),c=f(t,"thumbColor",3,void 0),l=j(t,td);const u=[o()?`--cc-switch-checked-bg: ${o()};`:"--cc-switch-checked-bg: hsl(var(--primary));",i()?`--cc-switch-unchecked-bg: ${i()};`:"--cc-switch-unchecked-bg: hsl(var(--input));"].join(" "),d=c()?`--cc-switch-thumb-bg: ${c()};`:"--cc-switch-thumb-bg: hsl(var(--background));";var g=D(),v=k(g);{let h=S(()=>G("cc:focus-visible:ring-ring cc:focus-visible:ring-offset-background cc:data-[state=checked]:bg-[var(--cc-switch-checked-bg)] cc:data-[state=unchecked]:bg-[var(--cc-switch-unchecked-bg)] cc:peer cc:inline-flex cc:h-5 cc:w-9 cc:shrink-0 cc:cursor-pointer cc:items-center cc:rounded-full cc:border-2 cc:border-transparent cc:shadow-xs cc:transition-colors cc:focus-visible:outline-hidden cc:focus-visible:ring-2 cc:focus-visible:ring-offset-2 cc:disabled:cursor-not-allowed cc:disabled:opacity-50",t.class));et(v,()=>Ru,(m,b)=>{b(m,X({get style(){return u},get class(){return s(h)}},()=>l,{get ref(){return r()},set ref(T){r(T)},get checked(){return n()},set checked(T){n(T)},children:(T,N)=>{var _=D(),I=k(_);{let x=S(()=>G("cc:bg-[var(--cc-switch-thumb-bg)] cc:pointer-events-none cc:block cc:size-4 cc:rounded-full cc:shadow-lg cc:ring-0 cc:transition-transform cc:data-[state=checked]:translate-x-4 cc:data-[state=unchecked]:translate-x-0"));et(I,()=>Lu,(P,A)=>{A(P,{get style(){return d},get class(){return s(x)}})})}y(T,_)},$$slots:{default:!0}}
46))})}y(e,g),V()}var rd=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),nd=U('<div class="cc:pb-4 cc:pt-0"><!></div>');function od(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,rd);var o=D(),i=k(o);{let c=S(()=>G("cc:data-[state=closed]:animate-accordion-up cc:data-[state=open]:animate-accordion-down cc:overflow-hidden cc:text-sm",t.class));et(i,()=>Va,(l,u)=>{u(l,X({get class(){return s(c)}},()=>n,{get ref(){return r()},set ref(d){r(d)},children:(d,g)=>{var v=nd(),h=B(v);z(h,()=>t.children??J),R(v),y(d,v)},$$slots:{default:!0}}))})}y(e,o),V()}var id=new Set(["$$slots","$$events","$$legacy","ref","class"]);function sd(e,t){M(t,!0);let r=f(t,"ref",15,null),n=j(t,id);var o=D(),i=k(o);{let c=S(()=>G("cc:border-b",t.class));et(i,()=>Aa,(l,u)=>{u(l,X({get class(){return s(c)}},()=>n,{get ref(){return r()},set ref(d){r(d)}}))})}y(e,o),V()}function ad(e,t){const r=kn(t,["children","$$slots","$$events","$$legacy"]);/** 47 * @license lucide-svelte v0.511.0 - ISC 48 * 49 * ISC License 50 * 51 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022. 52 * 53 * Permission to use, copy, modify, and/or distribute this software for any 54 * purpose with or without fee is hereby granted, provided that the above 55 * copyright notice and this permission notice appear in all copies. 56 * 57 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 58 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 59 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 60 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 61 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 62 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 63 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 64 * 65 */const n=[["path",{d:"m6 9 6 6 6-6"}]];bi(e,X({name:"chevron-down"},()=>r,{get iconNode(){return n},children:(o,i)=>{var c=D(),l=k(c);ho(l,t,"default",{},null),y(o,c)},$$slots:{default:!0}}))}var cd=new Set(["$$slots","$$events","$$legacy","ref","class","level","children"]),ld=U("<!> <!>",1);function ud(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"level",3,3),o=j(t,cd);var i=D(),c=k(i);et(c,()=>Ia,(l,u)=>{u(l,{get level(){return n()},class:"cc:flex",children:(d,g)=>{var v=D(),h=k(v);{let m=S(()=>G("cc:flex cc:flex-1 cc:items-center cc:justify-between cc:py-4 cc:text-sm cc:font-medium cc:transition-all cc:hover:underline cc:[&[data-state=open]>svg]:rotate-180",t.class));et(h,()=>Ba,(b,T)=>{T(b,X({get class(){return s(m)}},()=>o,{get ref(){return r()},set ref(N){r(N)},children:(N,_)=>{var I=ld(),x=k(I);z(x,()=>t.children??J);var P=L(x,2);ad(P,{class:"cc:text-muted-foreground cc:size-4 cc:shrink-0 cc:transition-transform cc:duration-200"}),y(N,I)},$$slots:{default:!0}}))})}y(d,v)},$$slots:{default:!0}})}),y(e,i),V()}const dd=_a;var hd=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","children"]),fd=U("<!> <!>",1);function jo(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"orientation",3,"vertical"),o=j(t,hd);var i=D(),c=k(i);{let l=S(()=>G("cc:flex cc:touch-none cc:select-none cc:transition-colors",n()==="cc:vertical"&&"cc:h-full cc:w-2.5 cc:border-l cc:border-l-transparent cc:p-px",n()==="cc:horizontal"&&"cc:h-2.5 cc:w-full cc:border-t cc:border-t-transparent cc:p-px",t.class));et(c,()=>uu,(u,d)=>{d(u,X({get orientation(){return n()},get class(){return s(l)}},()=>o,{get ref(){return r()},set ref(g){r(g)},children:(g,v)=>{var h=fd(),m=k(h);z(m,()=>t.children??J);var b=L(m,2);{let T=S(()=>G("cc:bg-border cc:relative cc:rounded-full",n()==="cc:vertical"&&"cc:flex-1"));et(b,()=>vu,(N,_)=>{_(N,{get class(){return s(T)}})})}y(g,h)},$$slots:{default:!0}}))})}y(e,i),V()}var gd=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","scrollbarXClasses","scrollbarYClasses","oneLinePerScroll","children"]),vd=U("<!> <!> <!> <!>",1);function md(e,t){M(t,!0);let r=f(t,"ref",15,null),n=f(t,"orientation",3,"vertical"),o=f(t,"scrollbarXClasses",3,""),i=f(t,"scrollbarYClasses",3,""),c=f(t,"oneLinePerScroll",3,!1),l=j(t,gd),u=F(null),d=16,g=null,v=null;function h(x){if(!x)return 16;const P=getComputedStyle(x),A=parseFloat(P.lineHeight);if(!Number.isNaN(A))return Math.max(1,Math.round(A));const O=parseFloat(P.fontSize)||16;return Math.max(1,Math.round(O*1.4))}function m(x){const P=new Map;for(const A of x){const O=Math.round(A.top),W=P.get(O);W?(A.top<W.top&&(W.top=A.top),A.bottom>W.bottom&&(W.bottom=A.bottom)):P.set(O,{top:A.top,bottom:A.bottom})}return Array.from(P.values()).sort((A,O)=>A.top-O.top)}function b(){if(!s(u))return null;const x=s(u).firstElementChild??null;if(!x)return null;const P=Math.round(x.getBoundingClientRect().width);if(g&&v===P)return g;try{const A=x.ownerDocument.createRange();A.selectNodeContents(x);const O=Array.from(A.getClientRects());if(O.length===0)return null;const W=m(O);if(W.length<=1)return null;const K=[];for(let rt=1;rt<W.length;rt+=1){const nt=W[rt].top-W[rt-1].top;nt>.5&&nt<200&&K.push(nt)}if(K.length===0)return null;K.sort((rt,nt)=>rt-nt);const Y=Math.floor(K.length/2),ft=K.length%2===0?(K[Y-1]+K[Y])/2:K[Y],bt=Math.max(1,Math.round(ft));return g=bt,v=P,bt}catch{return null}}function T(x){var K,Y,ft,bt;if(!s(u))return null;const P=s(u).ownerDocument,A=s(u).getBoundingClientRect(),W=((Y=(K=s(u).firstElementChild||s(u)).querySelector)==null?void 0:Y.call(K,":scope > *"))||s(u).firstElementChild||s(u).firstElementChild;if(!W)return null;try{const rt=P.createRange();rt.selectNodeContents(W);const nt=Array.from(rt.getClientRects());if(nt.length===0)return null;const it=m(nt),q=((ft=it[0])==null?void 0:ft.top)??A.top,lt=((bt=it[it.length-1])==null?void 0:bt.bottom)??A.bottom;return x>0&&A.top<q&&s(u).scrollTop<=0?Math.max(1,Math.round(q-A.top)):x<0&&A.bottom>lt?Math.max(1,Math.round(A.bottom-lt)):null}catch{return null}}function N(x){if(!c()||n()==="horizontal"||!s(u))return;x.preventDefault();const P=Math.sign(x.deltaY||1)||1,A=b(),O=T(P);if(O){s(u).scrollBy({top:P*O,left:0,behavior:"auto"});return}let W=A??d;W=Math.max(1,Math.round(W)),s(u).scrollBy({top:P*W,left:0,behavior:"auto"})}Kn(()=>{const x=s(u);if(!x)return;d=h(x),x.addEventListener("wheel",N,{passive:!1});const P=()=>{g=null,v=null};return window.addEventListener("resize",P),()=>{x.removeEventListener("wheel",N),window.removeEventListener("resize",P)}});var _=D(),I=k(_);{let x=S(()=>G("cc:relative cc:overflow-hidden",t.class));et(I,()=>Xl,(P,A)=>{A(P,X(()=>l,{get class(){return s(x)},get ref(){return r()},set ref(O){r(O)},children:(O,W)=>
65{var K=vd(),Y=k(K);et(Y,()=>Gl,(q,lt)=>{lt(q,{class:"cc:h-full cc:w-full cc:rounded-[inherit]",get ref(){return s(u)},set ref(ot){w(u,ot,!0)},children:(ot,yt)=>{var ut=D(),gt=k(ut);z(gt,()=>t.children??J),y(ot,ut)},$$slots:{default:!0}})});var ft=L(Y,2);{var bt=q=>{jo(q,{orientation:"vertical",get class(){return i()}})};Z(ft,q=>{(n()==="vertical"||n()==="both")&&q(bt)})}var rt=L(ft,2);{var nt=q=>{jo(q,{orientation:"horizontal",get class(){return o()}})};Z(rt,q=>{(n()==="horizontal"||n()==="both")&&q(nt)})}var it=L(rt,2);et(it,()=>Su,(q,lt)=>{lt(q,{})}),y(O,K)},$$slots:{default:!0}}))})}y(e,_),V()}const H={title:"Cookie Preferences",description:"We use cookies to enhance your experience on our website. Here you can manage your preferences.",detailedInfoTrigger:"Detailed Cookie Information",storageDurationTitle:"Storage Duration:",storageDurationText:"The storage duration of cookies varies depending on their purpose. Session cookies are deleted when you close your browser. Persistent cookies remain on your device for a period specified in each cookie, which may range from a few minutes to several years, but we regularly review and update our cookies to ensure they are not kept longer than necessary.",legalBasisTitle:"Legal Basis:",legalBasisText:"We rely on different legal bases depending on the type of cookie:",legalBasisStrictlyNecessary:"For strictly necessary cookies: Art. 6(1)(f) GDPR (legitimate interests)",legalBasisConsent:"For performance, functionality, marketing, and analytics cookies: Art. 6(1)(a) GDPR (Consent)",dataSharingTitle:"Data Sharing:",dataSharingText:"We do not share data collected by strictly necessary cookies. For performance, functionality, marketing, and analytics cookies, data may be shared with third parties only with your explicit consent.",rejectAllButton:"Reject All",confirmSelectionButton:"Confirm Selection",cancelButton:"Cancel",acceptAllButton:"Accept All",cookieNameLabel:"Cookie Name",cookieValueLabel:"Cookie Value",cookieDaysLabel:"Valid Days",secureLabel:"Secure",sameSiteLabel:"SameSite",setCookieButton:"Set Cookie",updateCookieButton:"Update Cookie",currentCookiesTitle:"Current Cookies",noCookiesFoundText:"No cookies found",cookieTableNameHeader:"Name",cookieTableValueHeader:"Value",cookieTableActionsHeader:"Actions",deleteButton:"Delete",categoryRequiredChipText:"(Required)"},yi=Symbol("cookieStyleContext");function pd(e){Ko(yi,e)}function Si(){return no(yi)||{}}function bd(e,t){M(t,!0);let r=f(t,"titleText",19,()=>H.title),n=f(t,"descriptionText",19,()=>H.description),o=f(t,"detailedInfoTriggerText",19,()=>H.detailedInfoTrigger),i=f(t,"storageDurationTitleText",19,()=>H.storageDurationTitle),c=f(t,"storageDurationDetailsText",19,()=>H.storageDurationText),l=f(t,"legalBasisTitleText",19,()=>H.legalBasisTitle),u=f(t,"legalBasisDetailsText",19,()=>H.legalBasisText),d=f(t,"legalBasisStrictlyNecessaryText",19,()=>H.legalBasisStrictlyNecessary),g=f(t,"legalBasisConsentText",19,()=>H.legalBasisConsent),v=f(t,"dataSharingTitleText",19,()=>H.dataSharingTitle),h=f(t,"dataSharingDetailsText",19,()=>H.dataSharingText),m=f(t,"rejectAllButtonText",19,()=>H.rejectAllButton),b=f(t,"confirmSelectionButtonText",19,()=>H.confirmSelectionButton),T=f(t,"cancelButtonText",19,()=>H.cancelButton),N=f(t,"acceptAllButtonText",19,()=>H.acceptAllButton),_=f(t,"cookieNameLabelText",19,()=>H.cookieNameLabel),I=f(t,"cookieValueLabelText",19,()=>H.cookieValueLabel),x=f(t,"cookieDaysLabelText",19,()=>H.cookieDaysLabel),P=f(t,"secureLabelText",19,()=>H.secureLabel),A=f(t,"sameSiteLabelText",19,()=>H.sameSiteLabel),O=f(t,"setCookieButtonText",19,()=>H.setCookieButton),W=f(t,"updateCookieButtonText",19,()=>H.updateCookieButton),K=f(t,"currentCookiesTitleText",19,()=>H.currentCookiesTitle),Y=f(t,"noCookiesFoundText",19,()=>H.noCookiesFoundText),ft=f(t,"cookieTableNameHeaderText",19,()=>H.cookieTableNameHeader),bt=f(t,"cookieTableValueHeaderText",19,()=>H.cookieTableValueHeader),rt=f(t,"cookieTableActionsHeaderText",19,()=>H.cookieTableActionsHeader),nt=f(t,"deleteButtonText",19,()=>H.deleteButton),it=f(t,"categoryRequiredChipText",19,()=>H.categoryRequiredChipText);pd({titleText:r(),descriptionText:n(),detailedInfoTriggerText:o(),storageDurationTitleText:i(),storageDurationDetail
65sText:c(),legalBasisTitleText:l(),legalBasisDetailsText:u(),legalBasisStrictlyNecessaryText:d(),legalBasisConsentText:g(),dataSharingTitleText:v(),dataSharingDetailsText:h(),rejectAllButtonText:m(),confirmSelectionButtonText:b(),cancelButtonText:T(),acceptAllButtonText:N(),cookieNameLabelText:_(),cookieValueLabelText:I(),cookieDaysLabelText:x(),secureLabelText:P(),sameSiteLabelText:A(),setCookieButtonText:O(),updateCookieButtonText:W(),currentCookiesTitleText:K(),noCookiesFoundText:Y(),cookieTableNameHeaderText:ft(),cookieTableValueHeaderText:bt(),cookieTableActionsHeaderText:rt(),deleteButtonText:nt(),categoryRequiredChipText:it(),cookieCategories:t.cookieCategories,cookieCategoryTextOverrides:t.cookieCategoryTextOverrides,titleTextColor:t.titleTextColor,titleBackgroundColor:t.titleBackgroundColor,descriptionParagraphTextColor:t.descriptionParagraphTextColor,descriptionParagraphBackgroundColor:t.descriptionParagraphBackgroundColor,switchCheckedBgColor:t.switchCheckedBgColor,switchUncheckedBgColor:t.switchUncheckedBgColor,switchThumbColor:t.switchThumbColor,titleClass:t.titleClass,descriptionClass:t.descriptionClass,descriptionParagraphClass:t.descriptionParagraphClass,contentWrapperClass:t.contentWrapperClass,headerClass:t.headerClass,footerClass:t.footerClass,categoryListClass:t.categoryListClass,categoryItemClass:t.categoryItemClass,categorySwitchClass:t.categorySwitchClass,categoryTextWrapperClass:t.categoryTextWrapperClass,categoryNameClass:t.categoryNameClass,categoryNameRequiredClass:t.categoryNameRequiredClass,categoryDescriptionClass:t.categoryDescriptionClass,accordionRootClass:t.accordionRootClass,accordionItemClass:t.accordionItemClass,accordionTriggerClass:t.accordionTriggerClass,accordionContentClass:t.accordionContentClass,scrollAreaWrapperClass:t.scrollAreaWrapperClass,scrollAreaClass:t.scrollAreaClass,detailedInfoBoxClass:t.detailedInfoBoxClass,detailedInfoParagraphClass:t.detailedInfoParagraphClass,detailedInfoStrongClass:t.detailedInfoStrongClass,detailedInfoListClass:t.detailedInfoListClass,detailedInfoListItemClass:t.detailedInfoListItemClass,rejectAllButtonVariant:t.rejectAllButtonVariant,confirmSelectionButtonVariant:t.confirmSelectionButtonVariant,cancelButtonVariant:t.cancelButtonVariant,acceptAllButtonVariant:t.acceptAllButtonVariant,defaultButtonVariant:t.defaultButtonVariant,destructiveButtonVariant:t.destructiveButtonVariant,outlineButtonVariant:t.outlineButtonVariant,secondaryButtonVariant:t.secondaryButtonVariant,formInputClass:t.formInputClass,formSelectClass:t.formSelectClass,formLabelClass:t.formLabelClass,formSwitchClass:t.formSwitchClass,formFlexContainerClass:t.formFlexContainerClass,formButtonContainerClass:t.formButtonContainerClass,testerRootClass:t.testerRootClass,testerGridClass:t.testerGridClass,testerFieldWrapperClass:t.testerFieldWrapperClass,tableWrapperClass:t.tableWrapperClass});var q=D(),lt=k(q);{var ot=yt=>{var ut=D(),gt=k(ut);z(gt,()=>t.children),y(yt,ut)};Z(lt,yt=>{t.children&&yt(ot)})}y(e,q),V()}var yd=U("<span> </span>"),Sd=U("<div><!> <div><h3> <!></h3> <p> </p></div></div>"),wd=U("<div><p><strong> </strong> </p> <p><strong> </strong> </p> <ul><li> </li> <li> </li></ul> <p><strong> </strong> </p></div>"),xd=U("<div><!></div>"),Td=U("<!> <!>",1),Cd=U("<div><div></div> <div><!></div> <div><!> <!> <!> <!></div></div>");function _d(e,t){M(t,!0);const r=()=>Yi(Nt,"$cookiePreferences",n),[n,o]=Gi(),i=Si();let c=F(_n(r().showDetails?"details":void 0)),l=F(_n([]));function u(x){x.required||Nt.toggleSelected(x)}dt(()=>{w(c,r().showDetails?"details":void 0,!0)});function d(x,P,A){var W;const O=(W=i.cookieCategoryTextOverrides)==null?void 0:W.find(K=>K.id===x);return(O==null?void 0:O[P])??A}Kn(()=>(i.cookieCategories&&i.cookieCategories.length>0&&Nt.initializeCategories(i.cookieCategories),Nt.loadPreferences(),Nt.subscribe(P=>{w(l,P.categories.map(A=>({...A,name:d(A.id,"name",A.name),description:d(A.id,"description",A.description)})),!0)})));var g=Cd(),v=B(g);Pn(v,21,()=>s(l),x=>x.id,(x,P)=>{var A=Sd(),O=B(A);ed(O,{get class(){return i.categorySwitchClass},get checked(){return s(P).checked},get disabled(){return s(P).required},onCheckedChange:()=>u(s(P)),get checkedBgColor(){return i.switchCheckedBgColor},get uncheckedBgColor(){return i.switchUncheckedBgColor},get thumbColor(){return i.switchThumbColor}});var W=L(O,2),K=B(W),Y=B(K),ft=L(Y);{var bt=it=>{var q=yd(),lt=B(q,!0);R(q),Ct(()=>{at(q,1,vt(i.categoryNameRequiredClass)),mt(lt,i.categoryRequiredChipText??H.categoryRequiredChipText)}),y(it,q)};Z(ft,it=>{s(P).required&&it(bt)})}R(K);var rt=L(K,2),nt=B(rt,!0);R(rt),R(W),R(A),Ct((it,q,lt)=>
65{at(A,1,it),at(W,1,vt(i.categoryTextWrapperClass)),at(K,1,q),mt(Y,`${s(P).name??""} `),at(rt,1,lt),mt(nt,s(P).description)},[()=>vt(G("cc:flex cc:items-start cc:p-4 cc:space-x-4 cc:rounded cc:border",i.categoryItemClass)),()=>vt(G("cc:font-semibold",i.categoryNameClass)),()=>vt(G("cc:text-sm cc:text-gray-600",i.categoryDescriptionClass))]),y(x,A)}),R(v);var h=L(v,2),m=B(h);et(m,()=>dd,(x,P)=>{P(x,{type:"single",get value(){return s(c)},children:(A,O)=>{var W=D(),K=k(W);et(K,()=>sd,(Y,ft)=>{ft(Y,{value:"details",get class(){return i.accordionItemClass},children:(bt,rt)=>{var nt=Td(),it=k(nt);{let lt=S(()=>G("cc:text-sm cc:font-medium",i.accordionTriggerClass));et(it,()=>ud,(ot,yt)=>{yt(ot,{get class(){return s(lt)},children:(ut,gt)=>{jt();var Pt=de();Ct(()=>mt(Pt,i.detailedInfoTriggerText??H.detailedInfoTrigger)),y(ut,Pt)},$$slots:{default:!0}})})}var q=L(it,2);et(q,()=>od,(lt,ot)=>{ot(lt,{get class(){return i.accordionContentClass},children:(yt,ut)=>{var gt=xd(),Pt=B(gt);{let St=S(()=>G("cc:h-[100px] cc:w-full",i.scrollAreaClass));md(Pt,{oneLinePerScroll:!0,get class(){return s(St)},children:(Lt,mn)=>{var Jt=wd(),Qt=B(Jt),se=B(Qt),Q=B(se,!0);R(se);var $=L(se);R(Qt);var wt=L(Qt,2),Tt=B(wt),Dt=B(Tt,!0);R(Tt);var Wt=L(Tt);R(wt);var $t=L(wt,2),te=B($t),pn=B(te,!0);R(te);var ae=L(te,2),bn=B(ae,!0);R(ae),R($t);var ce=L($t,2),le=B(ce),yn=B(le,!0);R(le);var wi=L(le);R(ce),R(Jt),Ct((xi,Ti,Ci,_i,Pi)=>{at(Jt,1,xi),at(Qt,1,Ti),at(se,1,vt(i.detailedInfoStrongClass)),mt(Q,i.storageDurationTitleText??H.storageDurationTitle),mt($,` ${i.storageDurationDetailsText??H.storageDurationText??""}`),at(wt,1,Ci),at(Tt,1,vt(i.detailedInfoStrongClass)),mt(Dt,i.legalBasisTitleText??H.legalBasisTitle),mt(Wt,` ${i.legalBasisDetailsText??H.legalBasisText??""}`),at($t,1,_i),at(te,1,vt(i.detailedInfoListItemClass)),mt(pn,i.legalBasisStrictlyNecessaryText??H.legalBasisStrictlyNecessary),at(ae,1,vt(i.detailedInfoListItemClass)),mt(bn,i.legalBasisConsentText??H.legalBasisConsent),at(ce,1,Pi),at(le,1,vt(i.detailedInfoStrongClass)),mt(yn,i.dataSharingTitleText??H.dataSharingTitle),mt(wi,` ${i.dataSharingDetailsText??H.dataSharingText??""}`)},[()=>vt(G("cc:p-4 cc:space-y-2 cc:text-sm cc:rounded-md cc:bg-secondary/50",i.detailedInfoBoxClass)),()=>vt(G("cc:leading-relaxed",i.detailedInfoParagraphClass)),()=>vt(G("cc:leading-relaxed",i.detailedInfoParagraphClass)),()=>vt(G("cc:pl-4 cc:space-y-1 cc:list-disc",i.detailedInfoListClass)),()=>vt(G("cc:leading-relaxed",i.detailedInfoParagraphClass))]),y(Lt,Jt)},$$slots:{default:!0}})}R(gt),Ct(St=>at(gt,1,St),[()=>vt(G("cc:pt-2 cc:pb-4",i.scrollAreaWrapperClass))]),y(yt,gt)},$$slots:{default:!0}})}),y(bt,nt)},$$slots:{default:!0}})}),y(A,W)},$$slots:{default:!0}})}),R(h);var b=L(h,2),T=B(b);{let x=S(()=>i.rejectAllButtonVariant??"outline");Sn(T,{get variant(){return s(x)},onclick:()=>{Nt.rejectAll(),t.onClose()},children:(P,A)=>{jt();var O=de();Ct(()=>mt(O,i.rejectAllButtonText??H.rejectAllButton)),y(P,O)},$$slots:{default:!0}})}var N=L(T,2);{let x=S(()=>i.confirmSelectionButtonVariant??"outline");Sn(N,{get variant(){return s(x)},onclick:()=>{Nt.acceptSelected(),t.onClose()},children:(P,A)=>{jt();var O=de();Ct(()=>mt(O,i.confirmSelectionButtonText??H.confirmSelectionButton)),y(P,O)},$$slots:{default:!0}})}var _=L(N,2);{let x=S(()=>i.cancelButtonVariant??"secondary");Sn(_,{get variant(){return s(x)},onclick:()=>{Nt.loadPreferences(),t.onClose()},children:(P,A)=>{jt();var O=de();Ct(()=>mt(O,i.cancelButtonText??H.cancelButton)),y(P,O)},$$slots:{default:!0}})}var I=L(_,2);{let x=S(()=>i.acceptAllButtonVariant??"default");Sn(I,{get variant(){return s(x)},onclick:()=>{Nt.acceptAll(),t.onClose()},children:(P,A)=>{jt();var O=de();Ct(()=>mt(O,i.acceptAllButtonText??H.acceptAllButton)),y(P,O)},$$slots:{default:!0}})}R(b),R(g),Ct((x,P,A,O)=>{at(g,1,x),at(v,1,P),at(h,1,A),at(b,1,O)},[()=>vt(G("cc:text-primary",t.class)),()=>vt(G("cc:space-y-4",i.categoryListClass)),()=>vt(G("cc:mt-6",i.accordionRootClass)),()=>vt(G("cc:flex cc:flex-wrap cc:gap-2 cc:justify-end cc:my-2",i.footerClass))]),y(e,g),V(),o()}var Pd=U("<p> </p>"),qo=U("<!> <!>",1);function kd(e,t){M(t,!0);let r=F(!1);const n=Si(),o=()=>{let d="";return n.titleTextColor&&(d+=`--cc-title-text-color: ${n.titleTextColor};
65`),n.titleBackgroundColor&&(d+=`--cc-title-bg-color: ${n.titleBackgroundColor};`),d},i=()=>{let d="";return n.descriptionParagraphTextColor&&(d+=`--cc-desc-p-text-color: ${n.descriptionParagraphTextColor};`),n.descriptionParagraphBackgroundColor&&(d+=`--cc-desc-p-bg-color: ${n.descriptionParagraphBackgroundColor};`),d};Kn(()=>{Ki.get("cookie_preferences")||w(r,!0)});var c=D(),l=k(c);{var u=d=>{var g=D(),v=k(g);et(v,()=>Qu,(h,m)=>{m(h,{get open(){return s(r)},set open(b){w(r,b,!0)},children:(b,T)=>{var N=D(),_=k(N);et(_,()=>Gu,(I,x)=>{x(I,{class:"cc:max-w-2xl cc:text-primary cc:max-h-[100dvh] cc:overflow-y-auto",children:(P,A)=>{var O=qo(),W=k(O);{let Y=S(()=>G("cc:text-left",n.headerClass));et(W,()=>Wu,(ft,bt)=>{bt(ft,{get class(){return s(Y)},children:(rt,nt)=>{var it=qo(),q=k(it);{let ot=S(()=>G("cc:text-2xl cc:font-bold",n.titleClass)),yt=S(o);et(q,()=>Vu,(ut,gt)=>{gt(ut,{get class(){return s(ot)},get style(){return s(yt)},children:(Pt,St)=>{jt();var Lt=de();Ct(()=>mt(Lt,n.titleText??H.title)),y(Pt,Lt)},$$slots:{default:!0}})})}var lt=L(q,2);{let ot=S(()=>G("cc:mt-4",n.descriptionClass));et(lt,()=>Ju,(yt,ut)=>{ut(yt,{get class(){return s(ot)},children:(gt,Pt)=>{var St=Pd(),Lt=B(St,!0);R(St),Ct(mn=>{at(St,1,vt(n.descriptionParagraphClass)),Xi(St,mn),mt(Lt,n.descriptionText??H.description)},[()=>i()]),y(gt,St)},$$slots:{default:!0}})})}y(rt,it)},$$slots:{default:!0}})})}var K=L(W,2);{let Y=S(()=>G("cc:mt-6",n.contentWrapperClass));_d(K,{get class(){return s(Y)},onClose:()=>{w(r,!1)}})}y(P,O)},$$slots:{default:!0}})}),y(b,N)},$$slots:{default:!0}})}),y(d,g)};Z(l,d=>{s(r)&&d(u)})}y(e,c),V()}function Ad(e){try{(function(t,r,n,o,i,c,l){r.getElementById("clarity-script")||(t[n]=t[n]||function(){(t[n].q=t[n].q||[]).push(arguments)},c=r.createElement(o),c.async=1,c.src="https://www.clarity.ms/tag/"+i+"?ref=npm",c.id="clarity-script",l=r.getElementsByTagName(o)[0],l.parentNode.insertBefore(c,l))})(window,document,"clarity","script",e);return}catch{return}}const ro={init(e){Ad(e)},setTag(e,t){window.clarity("set",e,t)},identify(e,t,r,n){window.clarity("identify",e,t,r,n)},consent(e=!0){window.clarity("consent",e)},consentV2(e={ad_Storage:"granted",analytics_Storage:"granted"}){window.clarity("consentv2",e)},upgrade(e){window.clarity("upgrade",e)},event(e){window.clarity("event",e)}};function Ed(e,t){M(t,!1);const r="rpkom9qcpp";let n=!1;function o(i){window!=null&&window.clarity?i():setTimeout(()=>o(i),100)}Kn(()=>{Nt.loadPreferences();const i=Nt.subscribe(({categories:c})=>{const l=c.find(d=>d.id==="analytics");(l==null?void 0:l.checked)===!0?(n||(ro.init(r),n=!0,console.log("Microsoft Clarity init called.")),o(()=>{ro.consent(!0),console.log("Microsoft Clarity consent given.")})):n?o(()=>{ro.consent(!1),console.log("Microsoft Clarity consent withdrawn.")}):console.log("Microsoft Clarity consent not given (Clarity not initialized).")});return()=>{i()}}),uo(),V()}var Nd=U('<meta name="description"/> <link rel="canonical"/> <meta property="og:site_name" content="MerginIT e.U."/> <meta property="og:type"/> <meta property="og:url"/> <meta property="og:title"/> <meta property="og:description"/> <meta property="og:image"/> <meta property="og:image:width" content="1200"/> <meta property="og:image:height" content="630"/> <meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:site" content="@merginit"/> <meta name="twitter:creator" content="@jonasfroeller"/> <meta name="twitter:url"/> <meta name="twitter:title"/> <meta name="twitter:description"/> <meta name="twitter:image"/>',1),Id=U('<div class="transition-wrapper"><!></div>'),Xo=U("<li><a> </a></li>"),Dd=U('<!> <!> <!> <!> <footer class="w-full bg-brand-dark py-8 px-4 sm:px-8 md:px-16 lg:px-24 xl:px-36 border-t border-gray-700/50 text-neutral-400"><div class="max-w-7xl mx-auto"><div class="grid grid-cols-1 md:grid-cols-3 gap-8 mb-8 text-center md:text-left"><div class="md:col-span-1"><h3 class="text-lg font-semibold text-neutral-200 mb-3">Navigate</h3> <ul class="space-y-1"></ul></div> <div class="md:col-span-1"><h3 class="text-lg font-semibold text-neutral-200 mb-3">Legal</h3> <ul class="space-y-1"></ul></div> <div class="md:col-span-1"><h3 class="text-lg font-semibold text-neutral-200 mb-3">MerginIT e.U.</h3> <p class="text-sm mb-2"><span>Software development and SaaS, based in Leonding, Austria.</span><br/> Support: <a href="mailto:[email protected]" class="text-neutral-400 hover:text-brand transition-colors duration-300 mt-1">[email protected]</a>.</p> <div class="flex gap-2 items-center justify-center md:justify-start"><a href="https://www.linkedin.com/company/merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="LinkedIn"><!></a> <a href="https://github.com/merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="GitHub"><!></a> <a href="https://www.instagram.com/merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="Instagram"><!></a> <a href="https://www.tiktok.com/@merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="TikTok"><!></a> <a href="https://x.com/merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="X (formerly Twitter)"><!></a> <a href="https://www.youtube.com/@merginit" target="_blank" rel="noopener noreferrer" class="text-neutral-400 hover:text-brand transition-colors duration-300" aria-label="YouTube"><!></a></div> <div class="mt-3 text-center md:text-left"><a href="https://how-well-i-pull.nuxt.dev" target="_blank" rel="noopener noreferrer" class="text-sm text-neutral-400 hover:text-neutral-200 transition-colors duration-300" aria-label="Open Source Contributions">Open Source Contributions</a> <a href="/contact" class="ml-4 text-sm text-neutral-400 hover:text-neutral-200 transition-colors duration-300" aria-label="Contact Page">Contact</a></div></div></div> <div class="border-t border-gray-700/50 pt-6 text-center"><p class="text-xs text-neutral-400"> </p></div></div></footer>',1);function sh(e,t){M(t,!0);const r=[{text:"Home",href:"/"},{text:"About",href:"/about"},{text:"Blog",href:"/blog"},{text:"Free",href:"/free-products"},{text:"Regex",href:"/regex-library"},{text:"HTTP",href:"/http-library"}],n=[{text:"Terms",href:"/legal/terms"},{text:"Payment Providers",href:"/legal/payment-providers"},{text:"Refunds",href:"/legal/refund-policy"},{text:"Imprint",href:"/legal/imprint"},{text:"Privacy Policy",href:"/legal/privacy-policy"},{text:"Cookie Policy",href:"/legal/cookie-policy"},{text:"Support",href:"/support"},{text:"Data Request",href:"/data-request"}],o=[{id:"necessary",name:"Essential Cookies",description:"These cookies are absolutely necessary for the website to function properly.",required:!0,checked:!0},{id:"analytics",name:"Analytics & Performance Cookies",description:"With your consent, Microsoft Clarity records pseudonymous session and interaction data so we can improve the website.",required:!1,checked:!1}
65],i=300,c=i+100,l=10,u={easing:$i,y:l,duration:i,delay:c},d={easing:ts,y:-l,duration:i},g=S(()=>{var Q;return((Q=ee.data.meta)==null?void 0:Q.title)??"MerginIT e.U."}),v=S(()=>{var Q;return((Q=ee.data.meta)==null?void 0:Q.description)??"Professional software development and SaaS solutions"}),h=S(()=>`https://merginit.com/og?title=${encodeURIComponent(s(g))}&subtitle=${encodeURIComponent(s(v))}&url=${encodeURIComponent(`https://merginit.com${ee.url.pathname}`)}`);var m=Dd();qi("12qhfyh",Q=>{var $=Nd(),wt=k($),Tt=L(wt,2),Dt=L(Tt,4),Wt=L(Dt,2),$t=L(Wt,2),te=L($t,2),pn=L(te,2),ae=L(pn,12),bn=L(ae,2),ce=L(bn,2),le=L(ce,2);Ct(()=>{var yn;Et(wt,"content",s(v)),Et(Tt,"href",`https://merginit.com${ee.url.pathname}`),Et(Dt,"content",((yn=ee.data.meta)==null?void 0:yn.type)??"website"),Et(Wt,"content",`https://merginit.com${ee.url.pathname}`),Et($t,"content",s(g)),Et(te,"content",s(v)),Et(pn,"content",s(h)),Et(ae,"content",`https://merginit.com${ee.url.pathname}`),Et(bn,"content",s(g)),Et(ce,"content",s(v)),Et(le,"content",s(h))}),Vi(()=>{Fi.title=s(g)??""}),y(Q,$)});var b=k(m);{var T=Q=>{var $=D(),wt=k($);ji(wt,()=>`<style> 66 :where([role='dialog'], .cookie, .cookies, .cookiiies, .cookie-popup, [data-cookie], #cookieConsent, #usercentrics-root){display:none !important} 67 </style>`),y(Q,$)};Z(b,Q=>{var $;($=t.data)!=null&&$.noCookie&&Q(T)})}var N=L(b,2);{var _=Q=>{bd(Q,{get cookieCategories(){return o},children:($,wt)=>{kd($,{})},$$slots:{default:!0}})};Z(N,Q=>{var $;($=t.data)!=null&&$.noCookie||Q(_)})}var I=L(N,2);
67Ed(I,{});var x=L(I,2);Yo(x,()=>t.data.pathname,Q=>{var $=Id(),wt=B($);z(wt,()=>t.children),R($),ko(1,$,()=>Ao,()=>u),ko(2,$,()=>Ao,()=>d),y(Q,$)});var P=L(x,2),A=B(P),O=B(A),W=B(O),K=L(B(W),2);Pn(K,21,()=>r,Q=>Q.href,(Q,$)=>{var wt=Xo(),Tt=B(wt);let Dt;var Wt=B(Tt,!0);R(Tt),R(wt),Ct(()=>{Et(Tt,"href",s($).href),Dt=at(Tt,1,"text-sm hover:text-neutral-200 transition-colors duration-300",null,Dt,{"text-brand":t.data.pathname===s($).href}),mt(Wt,s($).text)}),y(Q,wt)}),R(K),R(W);var Y=L(W,2),ft=L(B(Y),2);Pn(ft,21,()=>n,Q=>Q.href,(Q,$)=>{var wt=Xo(),Tt=B(wt);let Dt;var Wt=B(Tt,!0);R(Tt),R(wt),Ct(()=>{Et(Tt,"href",s($).href),Dt=at(Tt,1,"text-sm hover:text-neutral-200 transition-colors duration-300",null,Dt,{"text-brand":t.data.pathname===s($).href}),mt(Wt,s($).text)}),y(Q,wt)}),R(ft),R(Y);var bt=L(Y,2),rt=L(B(bt),4),nt=B(rt),it=B(nt);ue(it,{icon:"mdi:linkedin",class:"w-6 h-6"}),R(nt);var q=L(nt,2),lt=B(q);ue(lt,{icon:"mdi:github",class:"w-6 h-6"}),R(q);var ot=L(q,2),yt=B(ot);ue(yt,{icon:"mdi:instagram",class:"w-6 h-6"}),R(ot);var ut=L(ot,2),gt=B(ut);ue(gt,{icon:"simple-icons:tiktok",class:"w-4 h-4"}),R(ut);var Pt=L(ut,2),St=B(Pt);ue(St,{icon:"simple-icons:x",class:"w-4 h-4"}),R(Pt);var Lt=L(Pt,2),mn=B(Lt);ue(mn,{icon:"mdi:youtube",class:"w-6 h-6"}),R(Lt),R(rt),jt(2),R(bt),R(O);var Jt=L(O,2),Qt=B(Jt),se=B(Qt);R(Qt),R(Jt),R(A),R(P),Ct(Q=>mt(se,`© ${Q??""} MerginIT e.U. All rights reserved.`),[()=>new Date().getFullYear()]),y(e,m),V()}export{sh as component,ih as universal};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.