PageSourceSearch

https://r-roms.github.io/_app/immutable/nodes/0.y8eTH5RC.js

js r-roms.github.io collected 2026-10-03 09:48:55 UTC 181,736 bytes, 13 lines download raw bytes

1import{b as Qe,c as E,a as y,f as B,p as Mt,d as ln,t as Ot}from"../chunks/BT67T6ZV.js";import{aQ as qo,h as yt,i as Pe,aX as Yo,g as br,m as jt,a2 as ae,P as We,G as c,j as Zo,M as Jo,k as Zn,o as pe,p as Vt,a3 as cn,aa as Qo,X as Jn,R as $o,O as zr,aY as ts,ak as es,aZ as Ni,ay as rs,aL as ns,a9 as un,a_ as is,J as Wr,a$ as os,b0 as ss,aE as as,b1 as Ht,au as ls,aj as Di,Q as Fi,b2 as kr,z as cs,b3 as us,b4 as ds,a7 as fs,S as hs,Y as gs,a4 as er,t as Ct,y as Ri,b5 as vs,ab as ps,a5 as ms,ac as Li,b6 as Bi,b7 as bs,b8 as ys,E as ws,B as xs,b9 as Ss,_ as Ps,aH as Z,ba as Qn,as as x,K as Ne,aF as Dt,u as Pt,b as Ce,ar as Ft,aI as C,bb as yr,C as U,f as P,D as G,s as it,bc as Cs,bd as Vr,be as zi,aG as _s,c as X,aJ as et,r as q,bf as Ts,bg as As,bh as Es,n as _t,al as Os,bi as Is}from"../chunks/DvbCUzh1.js";import{s as V,c as gt,t as ks,e as Ms}from"../chunks/Xlr4DbZf.js";import{i as at,c as ft}from"../chunks/CEF-uAPk.js";import{s as ee,c as Mr,a as rt,b as Wi,d as Vi}from"../chunks/D8DN96_N.js";import{c as Oe,m as Ns,u as Ds,s as Bt}from"../chunks/DU3rpZct.js";import{g as Fs,o as mt,j as Rs}from"../chunks/D1PIupWv.js";import{o as dn}from"../chunks/CvcEM1tI.js";import{B as Hi,p as m,r as tt,s as ut,b as At}from"../chunks/BRGNEY6a.js";import"../chunks/upkV7Jlt.js";import{b as st}from"../chunks/BNNwnkaQ.js";function Ls(){return Symbol(qo)}const Bs=Symbol("NaN");function zs(r,t,e){yt&&Pe();var n=new Hi(r),i=!Yo();br(()=>{var o=t();o!==o&&(o=Bs),i&&o!==null&&typeof o=="object"&&(o={}),n.ensure(o,e)})}function zt(r,t){return t}function Ws(r,t,e){for(var n=[],i=t.length,o,s=t.length,a=0;a<i;a++){let p=t[a];Fi(p,()=>{if(o){if(o.pending.delete(p),o.done.add(p),o.pending.size===0){var g=r.outrogroups;Hr(r,un(o.done)),g.delete(o),g.size===0&&(r.outrogroups=null)}}else s-=1},!1)}if(s===0){var l=n.length===0&&e!==null;if(l){var u=e,f=u.parentNode;fs(f),f.append(u),r.items.clear()}Hr(r,t,!l)}else o={pending:new Set(t),done:new Set},(r.outrogroups??=new Set).add(o)}function Hr(r,t,e=!0){var n;if(r.pending.size>0){n=new Set;for(const s of r.pending.values())for(const a of s)n.add(r.items.get(a).e)}for(var i=0;i<t.length;i++){var o=t[i];if(n?.has(o)){o.f|=Ht;const s=document.createDocumentFragment();hs(o,s)}else gs(t[i],e)}}var $n;function Wt(r,t,e,n,i,o=null){var s=r,a=new Map,l=(t&Ni)!==0;if(l){var u=r;s=yt?jt(ae(u)):u.appendChild(We())}yt&&Pe();var f=null,p=rs(()=>{var S=e();return ns(S)?S:S==null?[]:un(S)}),g,d=new Map,h=!0;function v(S){(_.effect.f&ls)===0&&(_.pending.delete(S),_.fallback=f,Vs(_,g,s,t,n),f!==null&&(g.length===0?(f.f&Ht)===0?Di(f):(f.f^=Ht,Be(f,null,s)):Fi(f,()=>{f=null})))}function b(S){_.pending.delete(S)}var w=br(()=>{g=c(p);var S=g.length;let A=!1;if(yt){var D=Zo(s)===Jo;D!==(S===0)&&(s=Zn(),jt(s),pe(!1),A=!0)}for(var M=new Set,z=$o,L=es(),Y=0;Y<S;Y+=1){yt&&Vt.nodeType===cn&&Vt.data===Qo&&(s=Vt,A=!0,pe(!1));var k=g[Y],W=n(k,Y),J=h?null:a.get(W);J?(J.v&&Jn(J.v,k),J.i&&Jn(J.i,Y),L&&z.unskip_effect(J.e)):(J=Hs(a,h?s:$n??=We(),k,W,Y,i,t,e),h||(J.e.f|=Ht),a.set(W,J)),M.add(W)}if(S===0&&o&&!f&&(h?f=zr(()=>o(s)):(f=zr(()=>o($n??=We())),f.f|=Ht)),S>M.size&&ts(),yt&&S>0&&jt(Zn()),!h)if(d.set(z,M),L){for(const[R,I]of a)M.has(R)||z.skip_effect(I.e);z.oncommit(v),z.ondiscard(b)}else v(z);A&&pe(!0),c(p)}),_={effect:w,items:a,pending:d,outrogroups:null,fallback:f};h=!1,yt&&(s=Vt)}function De(r){for(;r!==null&&(r.f&us)===0;)r=r.next;return r}function Vs(r,t,e,n,i){var o=(n&ds)!==0,s=t.length,a=r.items,l=De(r.effect.first),u,f=null,p,g=[],d=[],h,v,b,w;if(o)for(w=0;w<s;w+=1)h=t[w],v=i(h,w),b=a.get(v).e,(b.f&Ht)===0&&(b.nodes?.a?.measure(),(p??=new Set).add(b));for(w=0;w<s;w+=1){if(h=t[w],v=i(h,w),b=a.get(v).e,r.outrogroups!==null)for(const k of r.outrogroups)k.pending.delete(b),k.done.delete(b);if((b.f&kr)!==0&&(Di(b),o&&(b.nodes?.a?.unfix(),(p??=new Set).delete(b))),(b.f&Ht)!==0)if(b.f^=Ht,b===l)Be(b,null,e);else{var _=f?f.next:l;b===r.effect.last&&(r.effect.last=b.prev),b.prev&&(b.prev.next=b.next),b.next&&(b.next.prev=b.prev),se(r,f,b),se(r,b,_),Be(b,_,e),f=b,g=[],d=[],l=De(f.next);continue}if(b!==l){if(u!==void 0&&u.has(b)){if(g.length<d.length){var S=d[0],A;f=S.prev;var D=g[0],M=g[g.length-1];for(A=0;A<g.length;A+=1)Be(g[A],S,e);for(A=0;A<d.length;A+=1)u.delete(d[A]);se(r,D.prev,M.next),se(r,f,D),se(r,M,S),l=S,f=M,w-=1,g=[],d=[]}else u.delete(b),Be(b,l,e),se(r,b.prev,b.next),se(r,b,f===null?r.effect.first:f.next),se(r,f,b),f=b;continue}for(g=[],d=[];l!==null&&l!==b;)(u??=new Set).add(l),d.push(l),l=De(l.next);if(l===null)continue}(b.f&Ht)===0&&g.push(b),f=b,l=De(b.next)}if(r.outrogroups!==null){for(const k of r.outrogroups)k.pending.size===0&&(Hr(r,un(k.done)),r.outrogroups?.delete(k));r.outrogroups.size===0&&(r.outrogroups=null)}if(l!==null||u!==void 0){var z=[];if(u!==void 0)for(b of u)(b.f&kr)===0&&z.push(b);for(;l!==null;)(l.f&kr)===0&&l!==r.fallback&&z.push(l),l=De(l.next);var L=z.length;if(L>0){var Y=(n&Ni)!==0&&s===0?e:null;if(o){for(w=0;w<L;w+=1)z[w].nodes?.a?.measure();for(w=0;w<L;w+=1)z[w].nodes?.a?.fix()}Ws(r,z,Y)}}o&&cs(()=>
1{if(p!==void 0)for(b of p)b.nodes?.a?.apply()})}function Hs(r,t,e,n,i,o,s,a){var l=(s&os)!==0?(s&ss)===0?as(e,!1,!1):Wr(e):null,u=(s&is)!==0?Wr(i):null;return{v:l,i:u,e:zr(()=>(o(t,l??e,u??i,a),()=>{r.delete(n)}))}}function Be(r,t,e){if(r.nodes)for(var n=r.nodes.start,i=r.nodes.end,o=t&&(t.f&Ht)===0?t.nodes.start:e;n!==null;){var s=er(n);if(o.before(n),n===i)return;n=s}}function se(r,t,e){t===null?r.effect.first=e:t.next=e,e===null?r.effect.last=t:e.prev=t}function Ks(r,t,e=!1,n=!1,i=!1,o=!1){var s=r,a="";if(e){var l=r;yt&&(s=jt(ae(l)))}Ct(()=>{var u=Ri;if(a===(a=t()??"")){yt&&Pe();return}if(e&&!yt){u.nodes=null,l.innerHTML=a,a!==""&&Qe(ae(l),l.lastChild);return}if(u.nodes!==null&&(vs(u.nodes.start,u.nodes.end),u.nodes=null),a!==""){if(yt){Vt.data;for(var f=Pe(),p=f;f!==null&&(f.nodeType!==cn||f.data!=="");)p=f,f=er(f);if(f===null)throw ps(),ms;Qe(Vt,p),s=jt(f);return}var g=n?Bi:i?bs:void 0,d=Li(n?"svg":i?"math":"template",g);d.innerHTML=a;var h=n||i?d:d.content;if(Qe(ae(h),h.lastChild),n||i)for(;ae(h);)s.before(ae(h));else s.before(h)}})}function js(r,t,e,n,i,o){let s=yt;yt&&Pe();var a=null;yt&&Vt.nodeType===ys&&(a=Vt,Pe());var l=yt?Vt:r,u=new Hi(l,!1);br(()=>{const f=t()||null;var p=Bi;if(f===null){u.ensure(null,null);return}return u.ensure(f,g=>{if(f){if(a=yt?a:Li(f,p),Qe(a,a),n){yt&&Fs(f)&&a.append(document.createComment(""));var d=yt?ae(a):a.appendChild(We());yt&&(d===null?pe(!1):jt(d)),n(a,d)}Ri.nodes.end=a,g.before(a)}yt&&jt(g)}),()=>{}},ws),xs(()=>{}),s&&(pe(!0),jt(l))}function Ki(r,t){let e=null,n=yt;var i;if(yt){e=Vt;for(var o=ae(document.head);o!==null&&(o.nodeType!==cn||o.data!==r);)o=er(o);if(o===null)pe(!1);else{var s=er(o);o.remove(),jt(s)}}yt||(i=document.head.appendChild(We()));try{br(()=>t(i),Ss|Ps)}finally{n&&(pe(!0),jt(e))}}const ji=typeof window<"u"?window:void 0;function Us(r){let t=r.activeElement;for(;t?.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}class Ui extends Map{#t=new Map;#e=Z(0);#r=Z(0);#n=Qn||-1;constructor(t){if(super(),t){for(var[e,n]of t)super.set(e,n);this.#r.v=super.size}}#i(t){return Qn===this.#n?Z(t):Wr(t)}has(t){var e=this.#t,n=e.get(t);if(n===void 0)if(super.has(t))n=this.#i(0),e.set(t,n);else return c(this.#e),!1;return c(n),!0}forEach(t,e){this.#o(),super.forEach(t,e)}get(t){var e=this.#t,n=e.get(t);if(n===void 0)if(super.has(t))n=this.#i(0),e.set(t,n);else{c(this.#e);return}return c(n),super.get(t)}set(t,e){var n=this.#t,i=n.get(t),o=super.get(t),s=super.set(t,e),a=this.#e;if(i===void 0)i=this.#i(0),n.set(t,i),x(this.#r,super.size),Ne(a);else if(o!==e){Ne(i);var l=a.reactions===null?null:new Set(a.reactions),u=l===null||!i.reactions?.every(f=>l.has(f));u&&Ne(a)}return s}delete(t){var e=this.#t,n=e.get(t),i=super.delete(t);return n!==void 0&&(e.delete(t),x(n,-1)),i&&(x(this.#r,super.size),Ne(this.#e)),i}clear(){if(super.size!==0){super.clear();var t=this.#t;x(this.#r,0);for(var e of t.values())x(e,-1);Ne(this.#e),t.clear()}}#o(){c(this.#e);var t=this.#t;if(this.#r.v!==t.size){for(var e of super.keys())if(!t.has(e)){var n=this.#i(0);t.set(e,n)}}for([,n]of this.#t)c(n)}keys(){return c(this.#e),super.keys()}values(){return this.#o(),super.values()}entries(){return this.#o(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return c(this.#r),super.size}}class Gs{#t;#e;constructor(t,e){this.#t=t,this.#e=Oe(e)}get current(){return this.#e(),this.#t()}}const Xs=/\(.+\)/,qs=new Set(["all","print","screen","and","or","not","only"]);class Gi extends Gs{constructor(t,e){let n=Xs.test(t)||t.split(/[\s,]+/).some(o=>qs.has(o.trim()))?t:`(${t})`;const i=window.matchMedia(n);super(()=>i.matches,o=>mt(i,"change",o))}}let Ys=class{#t;#e;constructor(t={}){const{window:e=ji,document:n=e?.document}=t;e!==void 0&&(this.#t=n,this.#e=Oe(i=>{const o=mt(e,"focusin",i),s=mt(e,"focusout",i);return()=>{o(),s()}}))}get current(){return this.#e?.(),this.#t?Us(this.#t):null}};new Ys;function Zs(r,t){switch(r){case"post":Pt(t);break;case"pre":Dt(t);break}}function Xi(r,t,e,n={}){const{lazy:i=!1}=n;let o=!i,s=Array.isArray(r)?[]:void 0;Zs(t,()=>{const a=Array.isArray(r)?r.map(u=>u()):r();if(!o){o=!0,s=a;return}const l=Ce(()=>e(a,s));return s=a,l})}function fn(r,t,e){Xi(r,"post",t,e)}function Js(r,t,e){Xi(r,"pre",t,e)}fn.pre=Js;function Qs(r,t){switch(r){case"local":return t.localStorage;case"session":return t.sessionStorage}}class qi{#t;#e;#r;#n;#i;#o=Z(0);constructor(t,e,n={}){const{storage:i="local",serializer:o={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:s=!0,window:a=ji}=n;if(this.#t=e,this.#e=t,this.#r=o,a===void 0)return;const l=Qs(i,a);this.#n=l;const u=l.getItem(t);u!==null?this.#t=this.#s(u):this.#l(e),s&&i==="local"&&(this.#i=Oe(()=>mt(a,"storage",this.#a)))}get current(){this.#i?.(),c(this.#o);const t=this.#s(this.#n?.getItem(this.#e))??this.#t,e=new WeakMap,n=i=>{if(i===null||i?.constructor.name==="Date"||typeof i!="object")return i;let o=e.get(i);return o||(o=new Proxy(i,{get:(s,a)=>(c(this.#o),n(Reflect.get(s,a))),set:(s,a,l)=>(x(this.#o,c(this.#o)+1),Reflect.set(s,a,l),this.#l(t),!0)}),e.set(i,o)),o};return n(t)}set current(t){this.#l(t),x(this.#o,c(this.#o)+1)}#a=t=>{t.key!==this.#e||t.newValue===null||(this.#t=this.#s(t.newValue),x(this.#o,c(this.#o)+1))};#s(t){try{return this.#r.deserialize(t)}catch(e){console.error(`Error when parsing "${t}" from persisted store "${this.#e}"`,e);return}}#l(t){try{t!=null&&this.#n?.setItem(this.#e,this.#r.serialize(t))}catch(e){console.error(`Error when writing value from persisted store "${this.#e}" to ${this.#n}`,e)}}}function ti(r){return r.filter(t=>t.length>0)}const Yi={getItem:r=>null,setItem:(r,t)=>{}},je=typeof document<"u";function $s(r){return typeof r=="function"}function ta(r){return r!==null&&typeof r=="object"}const He=Symbol("box"),hn=Symbol("is-writable");function ea(r){return ta(r)&&He in r}function ra(r){return St.isBox(r)&&hn in r}function St(r){let t=Z(Ft(r));return{[He]:!0,[hn]:!0,get current(){return c(t)},set current(e){x(t,e,!0)}}}function na(r,t){const e=C(r);return t?{[He]:!0,[hn]:!0,get current(){return c(e)},set current(n){t(n)}}:{[He]:!0,get current(){return r()}}}function ia(r){return St.isBox(r)?r:$s(r)?St.with(r):St(r)}function oa(r){return Object.entries(r).reduce((t,[e,n])=>St.isBox(n)?(St.isWritableBox(n)?Object.defineProperty(t,e,{get(){return n.current},set(i){n.current=i}}):Object.defineProperty(t,e,{get(){return n.current}}),t):Object.assign(t,{[e]:n}),{})}function sa(r){return St.isWritableBox(r)?{[He]:!0,get current(){return r.current}}:r}St.from=ia;St.with=na;St.flatten=oa;St.readonly=sa;St.isBox=ea;St.isWritableBox=ra;var ei=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,aa=/\n/g,la=/^\s*/,ca=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ua=/^:\s*/,da=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,fa=/^[;
1\s]*/,ha=/^\s+|\s+$/g,ga=`
2`,ri="/",ni="*",he="",va="comment",pa="declaration";function ma(r,t){if(typeof r!="string")throw new TypeError("First argument must be a string");if(!r)return[];t=t||{};var e=1,n=1;function i(h){var v=h.match(aa);v&&(e+=v.length);var b=h.lastIndexOf(ga);n=~b?h.length-b:n+h.length}function o(){var h={line:e,column:n};return function(v){return v.position=new s(h),u(),v}}function s(h){this.start=h,this.end={line:e,column:n},this.source=t.source}s.prototype.content=r;function a(h){var v=new Error(t.source+":"+e+":"+n+": "+h);if(v.reason=h,v.filename=t.source,v.line=e,v.column=n,v.source=r,!t.silent)throw v}function l(h){var v=h.exec(r);if(v){var b=v[0];return i(b),r=r.slice(b.length),v}}function u(){l(la)}function f(h){var v;for(h=h||[];v=p();)v!==!1&&h.push(v);return h}function p(){var h=o();if(!(ri!=r.charAt(0)||ni!=r.charAt(1))){for(var v=2;he!=r.charAt(v)&&(ni!=r.charAt(v)||ri!=r.charAt(v+1));)++v;if(v+=2,he===r.charAt(v-1))return a("End of comment missing");var b=r.slice(2,v-2);return n+=2,i(b),r=r.slice(v),n+=2,h({type:va,comment:b})}}function g(){var h=o(),v=l(ca);if(v){if(p(),!l(ua))return a("property missing ':'");var b=l(da),w=h({type:pa,property:ii(v[0].replace(ei,he)),value:b?ii(b[0].replace(ei,he)):he});return l(fa),w}}function d(){var h=[];f(h);for(var v;v=g();)v!==!1&&(h.push(v),f(h));return h}return u(),d()}function ii(r){return r?r.replace(ha,he):he}function ba(r,t){let e=null;if(!r||typeof r!="string")return e;const n=ma(r),i=typeof t=="function";return n.forEach(o=>{if(o.type!=="declaration")return;const{property:s,value:a}=o;i?t(s,a,o):a&&(e=e||{},e[s]=a)}),e}function ya(r,t){const e=RegExp(r,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(e)?n.replace(e,t):n}}const wa=ya(/[A-Z]/,r=>`-${r.toLowerCase()}`);function xa(r){if(!r||typeof r!="object"||Array.isArray(r))throw new TypeError(`expected an argument of type object, but got ${typeof r}`);return Object.keys(r).map(t=>`${wa(t)}: ${r[t]};`).join(`
3`)}function Sa(r={}){return xa(r).replace(`
4`," ")}const Pa={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%)"};Sa(Pa);const Ca=typeof window<"u"?window:void 0;function _a(r){let t=r.activeElement;for(;t?.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}let Ta=class{#t;#e;constructor(t={}){const{window:e=Ca,document:n=e?.document}=t;e!==void 0&&(this.#t=n,this.#e=Oe(i=>{const o=mt(e,"focusin",i),s=mt(e,"focusout",i);return()=>{o(),s()}}))}get current(){return this.#e?.(),this.#t?_a(this.#t):null}};new Ta;const ge=St("mode-watcher-mode"),ve=St("mode-watcher-theme"),Aa=["dark","light","system"];function Kr(r){return typeof r!="string"?!1:Aa.includes(r)}class Ea{#t="system";#e=je?localStorage:Yi;#r=this.#e.getItem(ge.current);#n=Kr(this.#r)?this.#r:this.#t;#i=Z(Ft(this.#o()));#o(t=this.#n){return new qi(ge.current,t,{serializer:{serialize:e=>e,deserialize:e=>Kr(e)?e:this.#t}})}constructor(){yr(()=>fn.pre(()=>ge.current,(t,e)=>{const n=c(this.#i).current;x(this.#i,this.#o(n),!0),e&&localStorage.removeItem(e)}))}get current(){return c(this.#i).current}set current(t){c(this.#i).current=t}}class Oa{#t=void 0;#e=!0;#r=Z(Ft(this.#t));#n=typeof window<"u"&&typeof window.matchMedia=="function"?new Gi("prefers-color-scheme: light"):{current:!1};query(){je&&x(this.#r,this.#n.current?"light":"dark",!0)}tracking(t){this.#e=t}constructor(){yr(()=>{Dt(()=>{this.#e&&this.query()})}),this.query=this.query.bind(this),this.tracking=this.tracking.bind(this)}get current(){return c(this.#r)}}const rr=new Ea,jr=new Oa;class Ia{#t=je?localStorage:Yi;#e=this.#t.getItem(ve.current);#r=this.#e===null||this.#e===void 0?"":this.#e;#n=Z(Ft(this.#i()));#i(t=this.#r){return new qi(ve.current,t,{serializer:{serialize:e=>typeof e!="string"?"":e,deserialize:e=>e}})}constructor(){yr(()=>fn.pre(()=>ve.current,(t,e)=>{const n=c(this.#n).current;x(this.#n,this.#i(n),!0),e&&localStorage.removeItem(e)}))}get current(){return c(this.#n).current}set current(t){c(this.#n).current=t}}const $e=new Ia;let oi,si,ai=!1,Fe=null;function ka(){return Fe||(Fe=document.createElement("style"),Fe.appendChild(document.createTextNode(`* {
5		-webkit-transition: none !important;
6		-moz-transition: none !important;
7		-o-transition: none !important;
8		-ms-transition: none !important;
9		transition: none !important;
10	}`)),Fe)}function Zi(r,t=!1){if(typeof document>"u")return;if(!ai){ai=!0,r();return}if(typeof window<"u"&&window.__vitest_worker__){r();return}clearTimeout(oi),clearTimeout(si);const n=ka(),i=()=>document.head.appendChild(n),o=()=>{n.parentNode&&document.head.removeChild(n)};function s(){r(),window.requestAnimationFrame(o)}if(typeof window.requestAnimationFrame<"u"){i(),t?s():window.requestAnimationFrame(()=>{s()});return}i(),oi=window.setTimeout(()=>{r(),si=window.setTimeout(o,16)},16)}const le=St(void 0),nr=St(!0),ir=St(!1),Ur=St([]),Gr=St([]);function Ma(){const r=C(()=>
10{if(!je)return;const t=rr.current==="system"?jr.current:rr.current,e=ti(Ur.current),n=ti(Gr.current);function i(){const o=document.documentElement,s=document.querySelector('meta[name="theme-color"]');t==="light"?(e.length&&o.classList.remove(...e),n.length&&o.classList.add(...n),o.style.colorScheme="light",s&&le.current&&s.setAttribute("content",le.current.light)):(n.length&&o.classList.remove(...n),e.length&&o.classList.add(...e),o.style.colorScheme="dark",s&&le.current&&s.setAttribute("content",le.current.dark))}return nr.current?Zi(i,ir.current):i(),t});return{get current(){return c(r)}}}function Na(){const r=C(()=>{if($e.current,!je)return;function t(){document.documentElement.setAttribute("data-theme",$e.current)}return nr.current?Zi(t,Ce(()=>ir.current)):t(),$e.current});return{get current(){return c(r)}}}const Ji=Ma(),Da=Na();function Fa(){rr.current=Ji.current==="dark"?"light":"dark"}function Ra(r){rr.current=r}function La(r){$e.current=r}function Ba({defaultMode:r="system",themeColors:t,darkClassNames:e=["dark"],lightClassNames:n=[],defaultTheme:i="",modeStorageKey:o="mode-watcher-mode",themeStorageKey:s="mode-watcher-theme"}){const a=document.documentElement,l=localStorage.getItem(o)??r,u=localStorage.getItem(s)??i,f=l==="light"||l==="system"&&window.matchMedia("(prefers-color-scheme: light)").matches;if(f?(e.length&&a.classList.remove(...e.filter(Boolean)),n.length&&a.classList.add(...n.filter(Boolean))):(n.length&&a.classList.remove(...n.filter(Boolean)),e.length&&a.classList.add(...e.filter(Boolean))),a.style.colorScheme=f?"light":"dark",t){const p=document.querySelector('meta[name="theme-color"]');p&&p.setAttribute("content",l==="light"?t.light:t.dark)}u&&(a.setAttribute("data-theme",u),localStorage.setItem(s,u)),localStorage.setItem(o,l)}var za=B('<meta name="theme-color"/>');function Wa(r,t){U(t,!0);var e=E(),n=P(e);{var i=o=>{var s=za();Ct(()=>ee(s,"content",t.themeColors.dark)),y(o,s)};at(n,o=>{t.themeColors&&o(i)})}y(r,e),G()}var Va=B('<meta name="theme-color"/>'),Ha=B("<!> <!>",1);function Ka(r,t){U(t,!0);let e=m(t,"trueNonce",3,"");Ki("1funsus",n=>{var i=Ha(),o=P(i);{var s=l=>{var u=Va();Ct(()=>ee(u,"content",t.themeColors.dark)),y(l,u)};at(o,l=>{t.themeColors&&l(s)})}var a=it(o,2);Ks(a,()=>`<script${e()?` nonce=${e()}`:""}>(`+Ba.toString()+")("+JSON.stringify(t.initConfig)+");<\/script>"),y(n,i)}),G()}function ja(r,t){U(t,!0);let e=m(t,"track",3,!0),n=m(t,"defaultMode",3,"system"),i=m(t,"disableTransitions",3,!0),o=m(t,"darkClassNames",19,()=>["dark"]),s=m(t,"lightClassNames",19,()=>[]),a=m(t,"defaultTheme",3,""),l=m(t,"nonce",3,""),u=m(t,"themeStorageKey",3,"mode-watcher-theme"),f=m(t,"modeStorageKey",3,"mode-watcher-mode"),p=m(t,"disableHeadScriptInjection",3,!1),g=m(t,"synchronousModeChanges",3,!1);ge.current=f(),ve.current=u(),Ur.current=o(),Gr.current=s(),nr.current=i(),le.current=t.themeColors,ir.current=g(),Dt(()=>{ir.current=g()}),Dt(()=>{nr.current=i()}),Dt(()=>{le.current=t.themeColors}),Dt(()=>{Ur.current=o()}),Dt(()=>{Gr.current=s()}),Dt(()=>{ge.current=f()}),Dt(()=>{ve.current=u()}),Dt(()=>{Ji.current,ge.current,ve.current,Da.current}),dn(()=>{jr.tracking(e()),jr.query();const S=localStorage.getItem(ge.current);Ra(Kr(S)?S:n());const A=localStorage.getItem(ve.current);La(A||a())});const d={defaultMode:n(),themeColors:t.themeColors,darkClassNames:o(),lightClassNames:s(),defaultTheme:a(),modeStorageKey:f(),themeStorageKey:u()},h=C(()=>typeof window>"u"?l():"");var v=E(),b=P(v);{var w=S=>{Wa(S,{get themeColors(){return le.current}})},_=S=>{Ka(S,{get trueNonce(){return c(h)},get initConfig(){return d},get themeColors(){return le.current}})};at(b,S=>{p()?S(w):S(_,-1)})}y(r,v),G()}function Ua(r){return typeof r=="function"}function Ue(r){return r!==null&&typeof r=="object"}const Ga=["string","number","bigint","boolean"];function Xr(r){return r==null||Ga.includes(typeof r)?!0:Array.isArray(r)?r.every(t=>Xr(t)):typeof r=="object"?Object.getPrototypeOf(r)===Object.prototype:!1}const _e=Symbol("box"),wr=Symbol("is-writable");function T(r,t){const e=C(r);return t?{[_e]:!0,[wr]:!0,get current(){return c(e)},set current(n){t(n)}}:{[_e]:!0,get current(){return r()}}}function Ge(r){return Ue(r)&&_e in r}function gn(r){return Ge(r)&&wr in r}function Xa(r){return Ge(r)?r:Ua(r)?T(r):xt(r)}function qa(r){return Object.entries(r).reduce((t,[e,n])=>Ge(n)?(gn(n)?Object.defineProperty(t,e,{get(){return n.current},set(i){n.current=i}}):Object.defineProperty(t,e,{get(){return n.current}}),t):Object.assign(t,{[e]:n}),{})}function Ya(r){return gn(r)?{[_e]:!0,get current(){return r.current}}:r}function xt(r){let t=Z(Ft(r));return{[_e]:!0,[wr]:!0,get current(){return c(t)},set current(e){x(t,e,!0)}}}function we(r){let t=Z(Ft(r));return{[_e]:!0,[wr]:!0,get current(){return c(t)},set current(e){x(t,e,!0)}}}we.from=Xa;we.with=T;we.flatten=qa;we.readonly=Ya;we.isBox=Ge;we.isWritableBox=gn;function Qi(...r){return function(t){for(const e of r)if(e){if(t.defaultPrevented)return;typeof e=="function"?e.call(this,t):e.current?.call(this,t)}}}const Za=/\d/,Ja=["-","_","/","."];function Qa(r=""){if(!Za.test(r))return r!==r.toLowerCase()}function $a(r){const t=[];let e="",n,i;for(const o of r){const s=Ja.includes(o);if(s===!0){t.push(e),e="",n=void 0;continue}const a=Qa(o);if(i===!1){if(n===!1&&a===!0){t.push(e),e=o,n=a;continue}if(n===!0&&a===!1&&e.length>1){const l=e.at(-1);t.push(e.slice(0,Math.max(0,e.length-1))),e=l+o,n=a;continue}}e+=o,n=a,i=s}return t.push(e),t}function $i(r){return r?$a(r).map(t=>el(t)).join(""):""}function tl(r){return rl($i(r||""))}function el(r){return r?r[0].toUpperCase()+r.slice(1):""}function rl(r){return r?r[0].toLowerCase()+r.slice(1):""}function ze(r){if(!r)return{};const t={};function e(n,i){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){t[$i(n)]=i;return}if(n.startsWith("--")){t[n]=i;return}t[tl(n)]=i}return ba(r,e),t}function Ve(...r){return(...t)=>{for(const e of r)typeof e=="function"&&e(...t)}}function nl(r,t){const e=RegExp(r,"g");return n=>
10{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(e)?n.replace(e,t):n}}const il=nl(/[A-Z]/,r=>`-${r.toLowerCase()}`);function ol(r){if(!r||typeof r!="object"||Array.isArray(r))throw new TypeError(`expected an argument of type object, but got ${typeof r}`);return Object.keys(r).map(t=>`${il(t)}: ${r[t]};`).join(`
11`)}function to(r={}){return ol(r).replace(`
12`," ")}const sl=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],al=new Set(sl);function ll(r){return al.has(r)}function pt(...r){const t={...r[0]};for(let e=1;e<r.length;e++){const n=r[e];if(n){for(const i of Object.keys(n)){const o=t[i],s=n[i],a=typeof o=="function",l=typeof s=="function";if(a&&ll(i)){const u=o,f=s;t[i]=Qi(u,f)}else if(a&&l)t[i]=Ve(o,s);else if(i==="class"){const u=Xr(o),f=Xr(s);u&&f?t[i]=Mr(o,s):u?t[i]=Mr(o):f&&(t[i]=Mr(s))}else if(i==="style"){const u=typeof o=="object",f=typeof s=="object",p=typeof o=="string",g=typeof s=="string";if(u&&f)t[i]={...o,...s};else if(u&&g){const d=ze(s);t[i]={...o,...d}}else if(p&&f){const d=ze(o);t[i]={...d,...s}}else if(p&&g){const d=ze(o),h=ze(s);t[i]={...d,...h}}else u?t[i]=o:f?t[i]=s:p?t[i]=o:g&&(t[i]=s)}else t[i]=s!==void 0?s:o}for(const i of Object.getOwnPropertySymbols(n)){const o=t[i],s=n[i];t[i]=s!==void 0?s:o}}}return typeof t.style=="object"&&(t.style=to(t.style).replaceAll(`
13`," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const eo=typeof window<"u"?window:void 0;function cl(r){let t=r.activeElement;for(;t?.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}class ul{#t;#e;constructor(t={}){const{window:e=eo,document:n=e?.document}=t;e!==void 0&&(this.#t=n,this.#e=Oe(i=>{const o=mt(e,"focusin",i),s=mt(e,"focusout",i);return()=>{o(),s()}}))}get current(){return this.#e?.(),this.#t?cl(this.#t):null}}new ul;function ro(r){return typeof r=="function"}function dl(r,t){if(ro(r)){const n=r();return n===void 0?t:n}return r===void 0?t:r}class Gt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return Cs(this.#e)}get(){const t=Vr(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const e=Vr(this.#e);return e===void 0?t:e}set(t){return zi(this.#e,t)}}function fl(r,t){let e=Z(null);const n=C(()=>dl(t,250));function i(...o){if(c(e))c(e).timeout&&clearTimeout(c(e).timeout);else{let s,a;const l=new Promise((u,f)=>{s=u,a=f});x(e,{timeout:null,runner:null,promise:l,resolve:s,reject:a},!0)}return c(e).runner=async()=>{if(!c(e))return;const s=c(e);x(e,null);try{s.resolve(await r.apply(this,o))}catch(a){s.reject(a)}},c(e).timeout=setTimeout(c(e).runner,c(n)),c(e).promise}return i.cancel=async()=>{(!c(e)||c(e).timeout===null)&&(await new Promise(o=>setTimeout(o,0)),!c(e)||c(e).timeout===null)||(clearTimeout(c(e).timeout),c(e).reject("Cancelled"),x(e,null))},i.runScheduledNow=async()=>{(!c(e)||!c(e).timeout)&&(await new Promise(o=>setTimeout(o,0)),!c(e)||!c(e).timeout)||(clearTimeout(c(e).timeout),c(e).timeout=null,await c(e).runner?.()
13)},Object.defineProperty(i,"pending",{enumerable:!0,get(){return!!c(e)?.timeout}}),i}function hl(r,t){switch(r){case"post":Pt(t);break;case"pre":Dt(t);break}}function no(r,t,e,n={}){const{lazy:i=!1}=n;let o=!i,s=Array.isArray(r)?[]:void 0;hl(t,()=>{const a=Array.isArray(r)?r.map(u=>u()):r();if(!o){o=!0,s=a;return}const l=Ce(()=>e(a,s));return s=a,l})}function bt(r,t,e){no(r,"post",t,e)}function gl(r,t,e){no(r,"pre",t,e)}bt.pre=gl;function li(r){return ro(r)?r():r}class vl{#t={width:0,height:0};#e=!1;#r;#n;#i;#o=C(()=>(c(this.#s)?.(),this.getSize().width));#a=C(()=>(c(this.#s)?.(),this.getSize().height));#s=C(()=>{const t=li(this.#n);if(t)return Oe(e=>{if(!this.#i)return;const n=new this.#i.ResizeObserver(i=>{this.#e=!0;for(const o of i){const s=this.#r.box==="content-box"?o.contentBoxSize:o.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,u)=>Math.max(l,u.inlineSize),0),this.#t.height=a.reduce((l,u)=>Math.max(l,u.blockSize),0)}e()});return n.observe(t),()=>{this.#e=!1,n.disconnect()}})});constructor(t,e={box:"border-box"}){this.#i=e.window??eo,this.#r=e,this.#n=t,this.#t={width:0,height:0}}calculateSize(){const t=li(this.#n);if(!t||!this.#i)return;const e=t.offsetWidth,n=t.offsetHeight;if(this.#r.box==="border-box")return{width:e,height:n};const i=this.#i.getComputedStyle(t),o=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),s=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),a=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),l=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),u=e-o-a,f=n-s-l;return{width:u,height:f}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return c(this.#s)?.(),this.getSize()}get width(){return c(this.#o)}get height(){return c(this.#a)}}function ie(r){Pt(()=>()=>{r()})}function xr(r){Pt(()=>Ce(()=>r()))}function pl(r,t){return setTimeout(t,r)}function Sr(r){_s().then(r)}const ml=1,bl=9,yl=11;function qr(r){return Ue(r)&&r.nodeType===ml&&typeof r.nodeName=="string"}function io(r){return Ue(r)&&r.nodeType===bl}function wl(r){return Ue(r)&&r.constructor?.name==="VisualViewport"}function xl(r){return Ue(r)&&r.nodeType!==void 0}function oo(r){return xl(r)&&r.nodeType===yl&&"host"in r}function Sl(r,t){if(!r||!t||!qr(r)||!qr(t))return!1;const e=t.getRootNode?.();if(r===t||r.contains(t))return!0;if(e&&oo(e)){let n=t;for(;n;){if(r===n)return!0;n=n.parentNode||n.host}}return!1}function vn(r){return io(r)?r:wl(r)?r.document:r?.ownerDocument??document}function pn(r){return oo(r)?pn(r.host):io(r)?r.defaultView??window:qr(r)?r.ownerDocument?.defaultView??window:window}function Pl(r){let t=r.activeElement;for(;t?.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}class Pr{element;#t=C(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return c(this.#t)}set root(t){x(this.#t,t)}constructor(t){typeof t=="function"?this.element=T(t):this.element=t}getDocument=()=>vn(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Pl(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,e)=>this.getWindow().setTimeout(t,e);clearTimeout=t=>this.getWindow().clearTimeout(t)}function Tt(r,t){return{[Ls()]:e=>Ge(r)?(r.current=e,Ce(()=>t?.(e)),()=>{"isConnected"in e&&e.isConnected||(r.current=null,t?.(null))}):(r(e),Ce(()=>t?.(e)),()=>{"isConnected"in e&&e.isConnected||(r(null),t?.(null))})}}function Cl(r){return r?"true":void 0}function Te(r){return r?"":void 0}function so(r){return r?"open":"closed"}function Cr(r){return r==="starting"?{"data-starting-style":""}:r==="ending"?{"data-ending-style":""}:{}}class _l{#t;#e;attrs;constructor(t){this.#t=t.getVariant?t.getVariant():null,this.#e=this.#t?`data-${this.#t}-`:`data-${t.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(e=>[e,this.getAttr(e)]))}getAttr(t,e){return e?`data-${e}-${t}`:`${this.#e}${t}`}selector(t,e){return`[${this.getAttr(t,e)}]`}}function Xe(r){const t=new _l(r);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}
13const Yr="ArrowDown",mn="ArrowLeft",bn="ArrowRight",Zr="ArrowUp",Tl="End",Al="Enter",El="Escape",Ol="Home",Il=" ";function kl(r){return window.getComputedStyle(r).getPropertyValue("direction")}function Ml(r="ltr",t="horizontal"){return{horizontal:r==="rtl"?mn:bn,vertical:Yr}[t]}function Nl(r="ltr",t="horizontal"){return{horizontal:r==="rtl"?bn:mn,vertical:Zr}[t]}function Dl(r="ltr",t="horizontal"){return["ltr","rtl"].includes(r)||(r="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:Ml(r,t),prevKey:Nl(r,t)}}const ao=typeof document<"u",ci=Fl();function Fl(){return ao&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Jr(r){return r instanceof HTMLElement}function xe(r){return r instanceof Element}function Rl(r){return r instanceof Element||r instanceof SVGElement}function Ll(r){return r.matches(":focus-visible")}function Bl(r){return r!==null}class zl{#t;#e=we(null);constructor(t){this.#t=t}getCandidateNodes(){return this.#t.rootNode.current?this.#t.candidateSelector?Array.from(this.#t.rootNode.current.querySelectorAll(this.#t.candidateSelector)):this.#t.candidateAttr?Array.from(this.#t.rootNode.current.querySelectorAll(`[${this.#t.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const t=this.getCandidateNodes();t.length&&t[0]?.focus()}handleKeydown(t,e,n=!1){const i=this.#t.rootNode.current;if(!i||!t)return;const o=this.getCandidateNodes();if(!o.length)return;const s=o.indexOf(t),a=kl(i),{nextKey:l,prevKey:u}=Dl(a,this.#t.orientation.current),f=this.#t.loop.current,p={[l]:s+1,[u]:s-1,[Ol]:0,[Tl]:o.length-1};if(n){const h=l===Yr?bn:Yr,v=u===Zr?mn:Zr;p[h]=s+1,p[v]=s-1}let g=p[e.key];if(g===void 0)return;e.preventDefault(),g<0&&f?g=o.length-1:g===o.length&&f&&(g=0);const d=o[g];if(d)return d.focus(),this.#e.current=d.id,this.#t.onCandidateFocus?.(d),d}getTabIndex(t){const e=this.getCandidateNodes(),n=this.#e.current!==null;return t&&!n&&e[0]===t?(this.#e.current=t.id,0):t?.id===this.#e.current?0:-1}setCurrentTabStopId(t){this.#e.current=t}focusCurrentTabStop(){const t=this.#e.current;if(!t)return;const e=this.#t.rootNode.current?.querySelector(`#${t}`);!e||!Jr(e)||e.focus()}}class lo{#t;#e=null;#r=null;#n=0;constructor(t){this.#t=t,ie(()=>this.#i())}#i(){this.#e!==null&&(window.cancelAnimationFrame(this.#e),this.#e=null),this.#r?.disconnect(),this.#r=null,this.#n++}run(t){this.#i();const e=this.#t.ref.current;if(!e)return;if(typeof e.getAnimations!="function"){this.#o(t);return}const n=this.#n,i=()=>{n===this.#n&&this.#o(t)},o=()=>{if(n!==this.#n)return;const a=e.getAnimations();if(a.length===0){i();return}Promise.all(a.map(l=>l.finished)).then(()=>{i()}).catch(()=>{if(n!==this.#n)return;if(e.getAnimations().some(f=>f.pending||f.playState!=="finished")){o();return}i()})},s=()=>{this.#e=window.requestAnimationFrame(()=>{this.#e=null,o()})};if(!this.#t.afterTick.current){s();return}this.#e=window.requestAnimationFrame(()=>{this.#e=null;const a="data-starting-style";if(!e.hasAttribute(a)){s();return}this.#r=new MutationObserver(()=>{n===this.#n&&(e.hasAttribute(a)||(this.#r?.disconnect(),this.#r=null,s()))}),this.#r.observe(e,{attributes:!0,attributeFilter:[a]})})}#o(t){const e=()=>{t()};this.#t.afterTick?Sr(e):e()}}class Qr{#t;#e;#r;#n=Z(!1);#i=Z(void 0);#o=!1;#a=null;constructor(t){this.#t=t,x(this.#n,t.open.current,!0),this.#e=t.enabled??!0,this.#r=new lo({ref:this.#t.ref,afterTick:this.#t.open}),ie(()=>this.#s()),bt(()=>this.#t.open.current,e=>{if(!this.#o){this.#o=!0;return}if(this.#s(),!e&&this.#t.shouldSkipExitAnimation?.()){x(this.#n,!1),x(this.#i,void 0),this.#t.onComplete?.();return}if(e&&x(this.#n,!0),x(this.#i,e?"starting":"ending",!0),e&&(this.#a=window.requestAnimationFrame(()=>{this.#a=null,this.#t.open.current&&x(this.#i,void 0)})),!this.#e){e||x(this.#n,!1),x(this.#i,void 0),this.#t.onComplete?.();return}this.#r.run(()=>{e===this.#t.open.current&&(this.#t.open.current||x(this.#n,!1),x(this.#i,void 0),this.#t.onComplete?.())})})}get shouldRender(){return c(this.#n)}get transitionStatus(){return c(this.#i)}#s(){this.#a!==null&&(window.cancelAnimationFrame(this.#a),this.#a=null)}}function dt(){}function Nt(r,t){return`bits-${r}`}const Wl=Xe({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),be=new Gt("Dialog.Root | AlertDialog.Root");class yn{static create(t){const e=be.getOr(null);return be.set(new yn(t,e))}opts;#t=Z(null);get triggerNode(){return c(this.#t)}set triggerNode(t){x(this.#t,t,!0)}#e=Z(null);get contentNode(){return c(this.#e)}set contentNode(t){x(this.#e,t,!0)}#r=Z(null);get overlayNode(){return c(this.#r)}set overlayNode(t){x(this.#r,t,!0)}#n=Z(null);get descriptionNode(){return c(this.#n)}set descriptionNode(t){x(this.#n,t,!0)}#i=Z(void 0);get contentId(){return c(this.#i)}set contentId(t){x(this.#i,t,!0)}#o=Z(void 0);get titleId(){return c(this.#o)}set titleId(t){x(this.#o,t,!0)}#a=Z(void 0);get triggerId(){return c(this.#a)}set triggerId(t){x(this.#a,t,!0)}#s=Z(void 0);get descriptionId(){return c(this.#s)}set descriptionId(t){x(this.#s,t,!0)}#l=Z(null);get cancelNode(){return c(this.#l)}set cancelNode(t){x(this.#l,t,!0)}#c=Z(0);get nestedOpenCount(){return c(this.#c)}set nestedOpenCount(t){x(this.#c,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,e){this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qr({ref:T(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qr({ref:T(()=>this.overlayNode),open:this.opts.open,enabled:!0}),bt(()=>this.opts.open.current,n=>{this.parent&&(n?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ie(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>Wl.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=C(()=>({"data-state":so(this.opts.open.current)}));get sharedProps(){return c(this.#u)}set sharedProps(t){x(this.#u,t)}}class wn{static create(t){return new wn(t,be.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=Tt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Il||t.key===Al)&&(t.preventDefault(),this.root.handleClose())}#t=C(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",oncl
13ick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return c(this.#t)}set props(t){x(this.#t,t)}}class xn{static create(t){return new xn(t,be.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=Tt(this.opts.ref),bt.pre(()=>this.opts.id.current,n=>{this.root.titleId=n})}#t=C(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return c(this.#t)}set props(t){x(this.#t,t)}}class Sn{static create(t){return new Sn(t,be.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.root.descriptionId=this.opts.id.current,this.attachment=Tt(this.opts.ref,n=>{this.root.descriptionNode=n}),bt.pre(()=>this.opts.id.current,n=>{this.root.descriptionId=n})}#t=C(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return c(this.#t)}set props(t){x(this.#t,t)}}class Pn{static create(t){return new Pn(t,be.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=Tt(this.opts.ref,n=>{this.root.contentNode=n,this.root.contentId=n?.id})}#t=C(()=>({open:this.root.opts.open.current}));get snippetProps(){return c(this.#t)}set snippetProps(t){x(this.#t,t)}#e=C(()=>({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.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Te(this.root.nestedOpenCount>0),"data-nested":Te(this.root.parent!==null),...Cr(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return c(this.#e)}set props(t){x(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class Cn{static create(t){return new Cn(t,be.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=Tt(this.opts.ref,n=>this.root.overlayNode=n)}#t=C(()=>({open:this.root.opts.open.current}));get snippetProps(){return c(this.#t)}set snippetProps(t){x(this.#t,t)}#e=C(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Te(this.root.nestedOpenCount>0),"data-nested":Te(this.root.parent!==null),...Cr(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return c(this.#e)}set props(t){x(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}var Vl=B("<div><!></div>");function Hl(r,t){const e=Mt();U(t,!0);let n=m(t,"id",19,()=>Nt(e)),i=m(t,"ref",15,null),o=m(t,"level",3,2),s=tt(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const a=xn.create({id:T(()=>n()),level:T(()=>o()),ref:T(()=>i(),d=>i(d))}),l=C(()=>pt(s,a.props));var u=E(),f=P(u);{var p=d=>{var h=E(),v=P(h);V(v,()=>t.child,()=>({props:c(l)})),y(d,h)},g=d=>{var h=Vl();rt(h,()=>({...c(l)}));var v=X(h);V(v,()=>t.children??et),q(h),y(d,h)};at(f,d=>{t.child?d(p):d(g,-1)})}y(r,u),G()}function Kl(r,t){var e=E(),n=P(e);zs(n,()=>t.children,i=>{var o=E(),s=P(o);V(s,()=>t.children??et),y(i,o)}),y(r,e)}const jl=new Gt("BitsConfig");function Ul(){const r=new Gl(null,{});return jl.getOr(r).opts}class Gl{opts;constructor(t,e){const n=Xl(t,e);this.opts={defaultPortalTo:n(i=>i.defaultPortalTo),defaultLocale:n(i=>i.defaultLocale)}}}function Xl(r,t){return e=>T(()=>{const i=e(t)?.current;if(i!==void 0)return i;if(r!==null)return e(r.opts)?.current})}function ql(r,t){return e=>{const n=Ul();return T(()=>{const i=e();if(i!==void 0)return i;const o=r(n).current;return o!==void 0?o:t})}}const Yl=ql(r=>r.defaultPortalTo,"body");function co(r,t){U(t,!0);const e=Yl(()=>t.to),n=Ts();let i=C(o);function o(){if(!ao||t.disabled)return null;let p=null;return typeof e.current=="string"?p=document.querySelector(e.current):p=e.current,p}let s;function a(){s&&(Ds(s),s=null)}bt([()=>c(i),()=>t.disabled],([p,g])=>
13{if(!p||g){a();return}return s=Ns(Kl,{target:p,props:{children:t.children},context:n}),()=>{a()}});var l=E(),u=P(l);{var f=p=>{var g=E(),d=P(g);V(d,()=>t.children??et),y(p,g)};at(u,p=>{t.disabled&&p(f)})}y(r,l),G()}function ui(r,t=500){let e=null;const n=(...i)=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{r(...i)},t)};return n.destroy=()=>{e!==null&&(clearTimeout(e),e=null)},n}function uo(r,t){return r===t||r.contains(t)}function fo(r){return r?.ownerDocument??document}function Zl(r,t){const{clientX:e,clientY:n}=r,i=t.getBoundingClientRect();return e<i.left||e>i.right||n<i.top||n>i.bottom}function di(r){const t=[],n=vn(r).createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}var ho=["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] *)"],$r=ho.join(","),go=typeof Element>"u",Ae=go?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,or=!go&&Element.prototype.getRootNode?function(r){var t;return r==null||(t=r.getRootNode)===null||t===void 0?void 0:t.call(r)}:function(r){return r?.ownerDocument},sr=function(t,e){var n;e===void 0&&(e=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):sr(t.parentNode));return s},Jl=function(t){var e,n=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return n===""||n==="true"},vo=function(t,e,n){if(sr(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll($r));return e&&Ae.call(t,$r)&&i.unshift(t),i=i.filter(n),i},ar=function(t,e,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!sr(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,u=ar(l,!0,n);n.flatten?i.push.apply(i,u):i.push({scopeParent:s,candidates:u})}else{var f=Ae.call(s,$r);f&&n.filter(s)&&(e||!t.includes(s))&&i.push(s);var p=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),g=!sr(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(p&&g){var d=ar(p===!0?s.children:p.children,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else o.unshift.apply(o,s.children)}}return i},po=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},mo=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Jl(t))&&!po(t)?0:t.tabIndex},Ql=function(t,e){var n=mo(t);return n<0&&e&&!po(t)?0:n},$l=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},bo=function(t){return t.tagName==="INPUT"},tc=function(t){return bo(t)&&t.type==="hidden"},ec=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return e},rc=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]},nc=function(t){if(!t.name)return!0;var e=t.form||or(t),n=function(a){return e.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(s){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",s.message),!1}var o=rc(i,t.form);return!o||o===t},ic=function(t){return bo(t)&&t.type==="radio"},oc=function(t){return ic(t)&&!nc(t)},sc=function(t){var e,n=t&&or(t),i=(e=n)===null||e===void 0?void 0:e.host,o=!1;if(n&&n!==t){var s,a,l;for(o=!!((s=i)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&i;){var u,f,p;n=or(i),i=(u=n)===null||u===void 0?void 0:u.host,o=!!((f=i)!==null&&f!==void 0&&(p=f.ownerDocument)!==null&&p!==void 0&&p.contains(i))}}return o},fi=function(t){var e=t.getBoundingClientRect(),n=e.width,i=e.he
13ight;return n===0&&i===0},ac=function(t,e){var n=e.displayCheck,i=e.getShadowRoot;if(n==="full-native"&&"checkVisibility"in t){var o=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!o}if(getComputedStyle(t).visibility==="hidden")return!0;var s=Ae.call(t,"details>summary:first-of-type"),a=s?t.parentElement:t;if(Ae.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var u=t.parentElement,f=or(t);if(u&&!u.shadowRoot&&i(u)===!0)return fi(t);t.assignedSlot?t=t.assignedSlot:!u&&f!==t.ownerDocument?t=f.host:t=u}t=l}if(sc(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return fi(t);return!1},lc=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var n=0;n<e.children.length;n++){var i=e.children.item(n);if(i.tagName==="LEGEND")return Ae.call(e,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}e=e.parentElement}return!1},lr=function(t,e){return!(e.disabled||tc(e)||ac(e,t)||ec(e)||lc(e))},hi=function(t,e){return!(oc(e)||mo(e)<0||!lr(t,e))},cc=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},yo=function(t){var e=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,a=s?i.scopeParent:i,l=Ql(a,s),u=s?yo(i.candidates):a;l===0?s?e.push.apply(e,u):e.push(a):n.push({documentOrder:o,tabIndex:l,item:i,isScope:s,content:u})}),n.sort($l).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(e)},uc=function(t,e){e=e||{};var n;return e.getShadowRoot?n=ar([t],e.includeContainer,{filter:hi.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:cc}):n=vo(t,e.includeContainer,hi.bind(null,e)),yo(n)},dc=function(t,e){e=e||{};var n;return e.getShadowRoot?n=ar([t],e.includeContainer,{filter:lr.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):n=vo(t,e.includeContainer,lr.bind(null,e)),n},fc=ho.concat("iframe:not([inert]):not([inert] *)").join(","),hc=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return Ae.call(t,fc)===!1?!1:lr(e,t)};const gc={afterMs:1e4,onChange:dt};function vc(r,t){const{afterMs:e,onChange:n,getWindow:i}={...gc,...t};let o=null,s=Z(Ft(r));function a(){return i().setTimeout(()=>{x(s,r,!0),n?.(r)},e)}return Pt(()=>()=>{o&&i().clearTimeout(o)}),T(()=>c(s),l=>{x(s,l,!0),n?.(l),o&&i().clearTimeout(o),o=a()})}const pc="data-context-menu-trigger",mc="data-context-menu-content";Xe({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});globalThis.bitsDismissableLayers??=new Map;class _n{static create(t){return new _n(t)}opts;#t;#e;#r={pointerdown:!1};#n=!1;#i=!1;#o=void 0;#a;#s=dt;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,Pt(()=>{this.#o=fo(this.opts.ref.current)});let e=dt;const n=()=>{this.#g(),globalThis.bitsDismissableLayers.delete(this),this.#f.destroy(),e()};bt([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return pl(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),e(),e=this.#c())}),n}),ie(()=>{this.#g.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#f.destroy(),this.#s(),e()})}#l=t=>{t.defaultPrevented||this.opts.ref.current&&Sr(()=>{!this.opts.ref.current||this.#h(t.target)||t.target&&!this.#i&&this.#a.current?.(t)})};#c(){return Ve(mt(this.#o,"pointerdown",Ve(this.#p,this.#d),{capture:!0}),mt(this.#o,"pointerdown",Ve(this.#m,this.#f)),mt(this.#o,"focusin",this.#l))}#u=t=>{let e=t;e.defaultPrevented&&(e=gi(t)),this.#t.current(t)};#f=ui(t=>{if(!this.opts.ref.current){this.#s();return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||wc(t,this.opts.ref.current);if(!this.#n||this.#v()||!e){this.#s();return}let n=t;if(n.defaultPrevented&&(n=gi(n)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=mt(this.#o,"click",this.#u,{once:!0})):this.#t.current(n)},10);#p=t=>{this.#r[t.type]=!0};#m=t=>{this.#r[t.type]=!1};#d=()=>{this.opts.ref.current&&(this.#n=yc(this.opts.ref.current))};#h=t=>this.opts.ref.current?uo(this.opts.ref.current,t):!1;#g=ui(()=>{for(const t in this.#r)this.#r[t]=!1;this.#n=!1},20);#v(){return Object.values(this.#r).some(Boolean)}#b=()=>{this.#i=!0};#y=()=>{this.#i=!1};props={onfocuscapture:this.#b,onblurcapture:this.#y}}function bc(r=[...globalThis.bitsDismissableLayers]){return r.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function yc(r){const t=[...globalThis.bitsDismissableLayers],e=bc(t);if(e)return e[0].opts.ref.current===r;const[n]=t[0];return n.opts.ref.current===r}function wc(r,t){const e=r.target;if(!Rl(e))return!1;const n=!!e.closest(`[${pc}]`),i=!!t.closest(`[${mc}]`);return"button"in r&&r.button>0&&!n?!1:"button"in r&&r.button===0&&n&&i?!0:n&&i?!1:fo(e).documentElement.contains(e)&&!uo(t,e)&&Zl(r,t)}function gi(r){const t=r.currentTarget,e=r.target;let n;r instanceof PointerEvent?n=new PointerEvent(r.type,r):n=new PointerEvent("pointerdown",r);let i=!1;return new Proxy(n,{get:(s,a)=>a==="currentTarget"?t:a==="target"?e:a==="preventDefault"?()=>
13{i=!0,typeof s.preventDefault=="function"&&s.preventDefault()}:a==="defaultPrevented"?i:a in s?s[a]:r[a]})}function wo(r,t){U(t,!0);let e=m(t,"interactOutsideBehavior",3,"close"),n=m(t,"onInteractOutside",3,dt),i=m(t,"onFocusOutside",3,dt),o=m(t,"isValidEvent",3,()=>!1);const s=_n.create({id:T(()=>t.id),interactOutsideBehavior:T(()=>e()),onInteractOutside:T(()=>n()),enabled:T(()=>t.enabled),onFocusOutside:T(()=>i()),isValidEvent:T(()=>o()),ref:t.ref});var a=E(),l=P(a);V(l,()=>t.children??et,()=>({props:s.props})),y(r,a),G()}globalThis.bitsEscapeLayers??=new Map;class Tn{static create(t){return new Tn(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new Pr(this.opts.ref);let e=dt;bt(()=>t.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=this.#t()),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>mt(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==El||!xc(this))return;const e=new KeyboardEvent(t.type,t);t.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(e)}}function xc(r){const t=[...globalThis.bitsEscapeLayers],e=t.findLast(([i,{current:o}])=>o==="close"||o==="ignore");if(e)return e[0]===r;const[n]=t[0];return n===r}function xo(r,t){U(t,!0);let e=m(t,"escapeKeydownBehavior",3,"close"),n=m(t,"onEscapeKeydown",3,dt);Tn.create({escapeKeydownBehavior:T(()=>e()),onEscapeKeydown:T(()=>n()),enabled:T(()=>t.enabled),ref:t.ref});var i=E(),o=P(i);V(o,()=>t.children??et),y(r,i),G()}class An{static instance;#t=xt([]);#e=new WeakMap;#r=new WeakMap;static getInstance(){return this.instance||(this.instance=new An),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const n=document.activeElement;n&&n!==document.body&&this.#r.set(t,n),this.#t.current=this.#t.current.filter(i=>i!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(n=>n!==t);const e=this.getActive();e&&e.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,e){this.#e.set(t,e)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){this.#r.set(t,e)}getPreFocusMemory(t){return this.#r.get(t)}clearPreFocusMemory(t){this.#r.delete(t)}}class En{#t=!1;#e=null;#r=An.getInstance();#n=[];#i;constructor(t){this.#i=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#o(){for(const t of this.#n)t();this.#n=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#r.register(this),this.#l(),this.#a()}unmount(){this.#e&&(this.#o(),this.#s(),this.#r.unregister(this),this.#r.clearPreFocusMemory(this),this.#e=null)}#a(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const e=this.#u();e?(e.focus(),this.#r.setFocusMemory(this,e)):this.#e.focus()})}#s(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const e=this.#r.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#l(){if(!this.#e||!this.#i.trap.current)return;const t=this.#e,e=t.ownerDocument,n=s=>{if(this.#t||!this.#r.isActiveScope(this))return;const a=s.target;if(!a)return;if(t.contains(a))this.#r.setFocusMemory(this,a);else{const u=this.#r.getFocusMemory(this);if(u&&t.contains(u)&&hc(u))s.preventDefault(),u.focus();else{const f=this.#u(),p=this.#f()[0];(f||p||t).focus()}}},i=s=>{if(!this.#i.loop||this.#t||s.key!=="Tab"||!this.#r.isActiveScope(this))return;const a=this.#c();if(a.length===0)return;const l=a[0],u=a[a.length-1];!s.shiftKey&&e.activeElement===u?(s.preventDefault(),l.focus()):s.shiftKey&&e.activeElement===l&&(s.preventDefault(),u.focus())};this.#n.push(mt(e,"focusin",n,{capture:!0}),mt(t,"keydown",i));const o=new MutationObserver(()=>{const s=this.#r.getFocusMemory(this);if(s&&!t.contains(s)){const a=this.#u(),l=this.#f()[0],u=a||l;
13u?(u.focus(),this.#r.setFocusMemory(this,u)):t.focus()}});o.observe(t,{childList:!0,subtree:!0}),this.#n.push(()=>o.disconnect())}#c(){return this.#e?uc(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#c()[0]||null}#f(){return this.#e?dc(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let e=null;return bt([()=>t.ref.current,()=>t.enabled.current],([n,i])=>{n&&i?(e||(e=new En(t)),e.mount(n)):e&&(e.unmount(),e=null)}),ie(()=>{e?.unmount()}),{get props(){return{tabindex:-1}}}}}function So(r,t){U(t,!0);let e=m(t,"enabled",3,!1),n=m(t,"trapFocus",3,!1),i=m(t,"loop",3,!1),o=m(t,"onCloseAutoFocus",3,dt),s=m(t,"onOpenAutoFocus",3,dt);const a=En.use({enabled:T(()=>e()),trap:T(()=>n()),loop:i(),onCloseAutoFocus:T(()=>o()),onOpenAutoFocus:T(()=>s()),ref:t.ref});var l=E(),u=P(l);V(u,()=>t.focusScope??et,()=>({props:a.props})),y(r,l),G()}globalThis.bitsTextSelectionLayers??=new Map;class On{static create(t){return new On(t)}opts;domContext;#t=dt;constructor(t){this.opts=t,this.domContext=new Pr(t.ref);let e=dt;bt(()=>this.opts.enabled.current,n=>(n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=this.#e()),()=>{e(),this.#n(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return Ve(mt(this.domContext.getDocument(),"pointerdown",this.#r),mt(this.domContext.getDocument(),"pointerup",Qi(this.#n,this.opts.onPointerUp.current)))}#r=t=>{const e=this.opts.ref.current,n=t.target;!Jr(e)||!Jr(n)||!this.opts.enabled.current||!Pc(this)||!Sl(e,n)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=Sc(e,this.domContext.getDocument().body)))};#n=()=>{this.#t(),this.#t=dt}}const vi=r=>r.style.userSelect||r.style.webkitUserSelect;function Sc(r,t){const e=vi(t),n=vi(r);return Ye(t,"none"),Ye(r,"text"),()=>{Ye(t,e),Ye(r,n)}}function Ye(r,t){r.style.userSelect=t,r.style.webkitUserSelect=t}function Pc(r){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===r:!1}function Po(r,t){U(t,!0);let e=m(t,"preventOverflowTextSelection",3,!0),n=m(t,"onPointerDown",3,dt),i=m(t,"onPointerUp",3,dt);On.create({id:T(()=>t.id),onPointerDown:T(()=>n()),onPointerUp:T(()=>i()),enabled:T(()=>t.enabled&&e()),ref:t.ref});var o=E(),s=P(o);V(s,()=>t.children??et),y(r,o),G()}globalThis.bitsIdCounter??={current:0};function Ie(r="bits"){return globalThis.bitsIdCounter.current++,`${r}-${globalThis.bitsIdCounter.current}`}class Cc{#t;#e=0;#r=Z();#n;constructor(t){this.#t=t}#i(){this.#e-=1,this.#n&&this.#e<=0&&(this.#n(),x(this.#r,void 0),this.#n=void 0)}get(...t){return this.#e+=1,c(this.#r)===void 0&&(this.#n=yr(()=>{x(this.#r,this.#t(...t),!0)})),Pt(()=>()=>{this.#i()}),c(this.#r)}}const tr=new Ui;let Ze=Z(null),Nr=null,Re=null,Le=!1;const pi=T(()=>{for(const r of tr.values())if(r)return!0;return!1});let Dr=null;const _c=new Cc(()=>{function r(){document.body.setAttribute("style",c(Ze)??""),document.body.style.removeProperty("--scrollbar-width"),ci&&Nr?.(),x(Ze,null)}function t(){Re!==null&&(window.clearTimeout(Re),Re=null)}function e(i,o){t(),Le=!0,Dr=Date.now();const s=Dr,a=()=>{Re=null,Dr===s&&(Co(tr)?Le=!1:(Le=!1,o()))},l=i===null?24:i;Re=window.setTimeout(a,l)}function n(){c(Ze)===null&&tr.size===0&&!Le&&x(Ze,document.body.getAttribute("style"),!0)}return bt(()=>pi.current,()=>{if(!pi.current)return;n(),Le=!1;const i=getComputedStyle(document.documentElement),o=getComputedStyle(document.body),s=i.scrollbarGutter?.includes("stable")||o.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(o.paddingRight??"0",10)+a,margin:Number.parseInt(o.marginRight??"0",10)};a>0&&!s&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",ci&&(Nr=mt(document,"touchmove",f=>{f.target===document.documentElement&&(f.touches.length>1||f.preventDefault())},{passive:!1})),Sr(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),ie(()=>()=>{Nr?.()}),{get lockMap(){return tr},resetBodyStyle:r,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:n}});class Tc{#t=Ie();#e;#r=()=>null;#n;locked;constructor(t,e=()=>null){this.#e=t,this.#r=e,this.#n=_c.get(),this.#n&&(this.#n.cancelPendingCleanup(),this.#n.ensureInitialStyleCaptured(),this.#n.lockMap.set(this.#t,this.#e??!1),this.locked=T(()=>this.#n.lockMap.get(this.#t)??!1,n=>this.#n.lockMap.set(this.#t,n)),ie(()=>
13{if(this.#n.lockMap.delete(this.#t),Co(this.#n.lockMap))return;const n=this.#r();this.#n.scheduleCleanupIfNoNewLocks(n,()=>{this.#n.resetBodyStyle()})}))}}function Co(r){for(const[t,e]of r)if(e)return!0;return!1}function cr(r,t){U(t,!0);let e=m(t,"preventScroll",3,!0),n=m(t,"restoreScrollDelay",3,null);e()&&new Tc(e(),()=>n()),G()}var Ac=B("<div><!></div>");function Ec(r,t){const e=Mt();U(t,!0);let n=m(t,"id",19,()=>Nt(e)),i=m(t,"forceMount",3,!1),o=m(t,"ref",15,null),s=tt(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const a=Cn.create({id:T(()=>n()),ref:T(()=>o(),g=>o(g))}),l=C(()=>pt(s,a.props));var u=E(),f=P(u);{var p=g=>{var d=E(),h=P(d);{var v=w=>{var _=E(),S=P(_);{let A=C(()=>({props:pt(c(l)),...a.snippetProps}));V(S,()=>t.child,()=>c(A))}y(w,_)},b=w=>{var _=Ac();rt(_,A=>({...A}),[()=>pt(c(l))]);var S=X(_);V(S,()=>t.children??et,()=>a.snippetProps),q(_),y(w,_)};at(h,w=>{t.child?w(v):w(b,-1)})}y(g,d)};at(f,g=>{(a.shouldRender||i())&&g(p)})}y(r,u),G()}var Oc=B("<div><!></div>");function Ic(r,t){const e=Mt();U(t,!0);let n=m(t,"id",19,()=>Nt(e)),i=m(t,"ref",15,null),o=tt(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const s=Sn.create({id:T(()=>n()),ref:T(()=>i(),g=>i(g))}),a=C(()=>pt(o,s.props));var l=E(),u=P(l);{var f=g=>{var d=E(),h=P(d);V(h,()=>t.child,()=>({props:c(a)})),y(g,d)},p=g=>{var d=Oc();rt(d,()=>({...c(a)}));var h=X(d);V(h,()=>t.children??et),q(d),y(g,d)};at(u,g=>{t.child?g(f):g(p,-1)})}y(r,l),G()}const kc=["top","right","bottom","left"],ce=Math.min,It=Math.max,ur=Math.round,Je=Math.floor,Ut=r=>({x:r,y:r}),Mc={left:"right",right:"left",bottom:"top",top:"bottom"};function tn(r,t,e){return It(r,ce(t,e))}function re(r,t){return typeof r=="function"?r(t):r}function ne(r){return r.split("-")[0]}function ke(r){return r.split("-")[1]}function In(r){return r==="x"?"y":"x"}function kn(r){return r==="y"?"height":"width"}function Kt(r){const t=r[0];return t==="t"||t==="b"?"y":"x"}function Mn(r){return In(Kt(r))}function Nc(r,t,e){e===void 0&&(e=!1);const n=ke(r),i=Mn(r),o=kn(i);let s=i==="x"?n===(e?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=dr(s)),[s,dr(s)]}function Dc(r){const t=dr(r);return[en(r),t,en(t)]}function en(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}const mi=["left","right"],bi=["right","left"],Fc=["top","bottom"],Rc=["bottom","top"];function Lc(r,t,e){switch(r){case"top":case"bottom":return e?t?bi:mi:t?mi:bi;case"left":case"right":return t?Fc:Rc;default:return[]}}function Bc(r,t,e,n){const i=ke(r);let o=Lc(ne(r),e==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(en)))),o}function dr(r){const t=ne(r);return Mc[t]+r.slice(t.length)}function zc(r){return{top:0,right:0,bottom:0,left:0,...r}}function _o(r){return typeof r!="number"?zc(r):{top:r,right:r,bottom:r,left:r}}function fr(r){const{x:t,y:e,width:n,height:i}=r;return{width:n,height:i,top:e,left:t,right:t+n,bottom:e+i,x:t,y:e}}function yi(r,t,e){let{reference:n,floating:i}=r;const o=Kt(t),s=Mn(t),a=kn(s),l=ne(t),u=o==="y",f=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,g=n[a]/2-i[a]/2;let d;switch(l){case"top":d={x:f,y:n.y-i.height};break;case"bottom":d={x:f,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:p};break;case"left":d={x:n.x-i.width,y:p};break;default:d={x:n.x,y:n.y}}switch(ke(t)){case"start":d[s]-=g*(e&&u?-1:1);break;case"end":d[s]+=g*(e&&u?-1:1);break}return d}async function Wc(r,t){var e;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=r,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:d=0}=re(t,r),h=_o(d),b=a[g?p==="floating"?"reference":"floating":p],w=fr(await o.getClippingRect({element:(e=await(o.isElement==null?void 0:o.isElement(b)))==null||e?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),_=p==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),A=await(o.isElement==null?void 0:o.isElement(S))?await(
vendor: 4,392 bytes, line 13
13o.getScale==null?void 0:o.getScale(S))||{x:1,y:1}:{x:1,y:1},D=fr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:S,strategy:l}):_);return{top:(w.top-D.top+h.top)/A.y,bottom:(D.bottom-w.bottom+h.bottom)/A.y,left:(w.left-D.left+h.left)/A.x,right:(D.right-w.right+h.right)/A.x}}const Vc=50,Hc=async(r,t,e)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=e,a=s.detectOverflow?s:{...s,detectOverflow:Wc},l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:r,floating:t,strategy:i}),{x:f,y:p}=yi(u,n,l),g=n,d=0;const h={};for(let v=0;v<o.length;v++){const b=o[v];if(!b)continue;const{name:w,fn:_}=b,{x:S,y:A,data:D,reset:M}=await _({x:f,y:p,initialPlacement:n,placement:g,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:r,floating:t}});f=S??f,p=A??p,h[w]={...h[w],...D},M&&d<Vc&&(d++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(u=M.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:i}):M.rects),{x:f,y:p}=yi(u,g,l)),v=-1)}return{x:f,y:p,placement:g,strategy:i,middlewareData:h}},Kc=r=>({name:"arrow",options:r,async fn(t){const{x:e,y:n,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=re(r,t)||{};if(u==null)return{};const p=_o(f),g={x:e,y:n},d=Mn(i),h=kn(d),v=await s.getDimensions(u),b=d==="y",w=b?"top":"left",_=b?"bottom":"right",S=b?"clientHeight":"clientWidth",A=o.reference[h]+o.reference[d]-g[d]-o.floating[h],D=g[d]-o.reference[d],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let z=M?M[S]:0;(!z||!await(s.isElement==null?void 0:s.isElement(M)))&&(z=a.floating[S]||o.floating[h]);const L=A/2-D/2,Y=z/2-v[h]/2-1,k=ce(p[w],Y),W=ce(p[_],Y),J=k,R=z-v[h]-W,I=z/2-v[h]/2+L,O=tn(J,I,R),j=!l.arrow&&ke(i)!=null&&I!==O&&o.reference[h]/2-(I<J?k:W)-v[h]/2<0,N=j?I<J?I-J:I-R:0;return{[d]:g[d]+N,data:{[d]:O,centerOffset:I-O-N,...j&&{alignmentOffset:N}},reset:j}}}),jc=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,n;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...b}=re(r,t);if((e=o.arrow)!=null&&e.alignmentOffset)return{};const w=ne(i),_=Kt(a),S=ne(a)===a,A=await(l.isRTL==null?void 0:l.isRTL(u.floating)),D=g||(S||!v?[dr(a)]:Dc(a)),M=h!=="none";!g&&M&&D.push(...Bc(a,v,h,A));const z=[a,...D],L=await l.detectOverflow(t,b),Y=[];let k=((n=o.flip)==null?void 0:n.overflows)||[];if(f&&Y.push(L[w]),p){const I=Nc(i,s,A);Y.push(L[I[0]],L[I[1]])}if(k=[...k,{placement:i,overflows:Y}],!Y.every(I=>I<=0)){var W,J;const I=(((W=o.flip)==null?void 0:W.index)||0)+1,O=z[I];if(O&&(!(p==="alignment"?_!==Kt(O):!1)||k.every(F=>Kt(F.placement)===_?F.overflows[0]>0:!0)))return{data:{index:I,overflows:k},reset:{placement:O}};let j=(J=k.filter(N=>N.overflows[0]<=0).sort((N,F)=>N.overflows[1]-F.overflows[1])[0])==null?void 0:J.placement;if(!j)switch(d){case"bestFit":{var R;const N=(R=k.filter(F=>{if(M){const K=Kt(F.placement);return K===_||K==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(K=>K>0).reduce((K,H)=>K+H,0)]).sort((F,K)=>F[1]-K[1])[0])==null?void 0:R[0];N&&(j=N);break}case"initialPlacement":j=a;break}if(i!==j)return{reset:{placement:j}}}return{}}}};function wi(r,t){return{top:r.top-t.height,right:r.right-t.width,bottom:r.bottom-t.height,left:r.left-t.width}}function xi(r){return kc.some(t=>r[t]>=0)}const Uc=function(r){return r===void 0&&(r={}),{name:"hide",options:r,async fn(t){const{rects:e,platform:n}=t,{strategy:i="referenceHidden",...o}=re(r,t);switch(i){case"referenceHidden":{const s=await n.detectOverflow(t,{...o,elementContext:"reference"}),a=wi(s,e.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:xi(a)}}}case"escaped":{const s=await n.detectOverflow(t,{...o,altBoundary:!0}),a=wi(s,e.floating);return{data:{escapedOffsets:a,escaped:xi(a)}}}default:return{}}}}},To=new Set(["left","top"]);async function Gc(r,t){const{placement:e,platform:n,elements:i}=r,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=ne(e),a=ke(e),l=Kt(e)==="y",u=To.has(s)?-1:1,f=o&&l?-1:1,p=re(t,r);let{mainAxis:g,crossAxis:d,alignmentAxis:h}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}
13:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof h=="number"&&(d=a==="end"?h*-1:h),l?{x:d*f,y:g*u}:{x:g*u,y:d*f}}const Xc=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,n;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await Gc(t,r);return s===((e=a.offset)==null?void 0:e.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},qc=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){const{x:e,y:n,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:w=>{let{x:_,y:S}=w;return{x:_,y:S}}},...u}=re(r,t),f={x:e,y:n},p=await o.detectOverflow(t,u),g=Kt(ne(i)),d=In(g);let h=f[d],v=f[g];if(s){const w=d==="y"?"top":"left",_=d==="y"?"bottom":"right",S=h+p[w],A=h-p[_];h=tn(S,h,A)}if(a){const w=g==="y"?"top":"left",_=g==="y"?"bottom":"right",S=v+p[w],A=v-p[_];v=tn(S,v,A)}const b=l.fn({...t,[d]:h,[g]:v});return{...b,data:{x:b.x-e,y:b.y-n,enabled:{[d]:s,[g]:a}}}}}},Yc=function(r){return r===void 0&&(r={}),{options:r,fn(t){const{x:e,y:n,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=re(r,t),f={x:e,y:n},p=Kt(i),g=In(p);let d=f[g],h=f[p];const v=re(a,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const S=g==="y"?"height":"width",A=o.reference[g]-o.floating[S]+b.mainAxis,D=o.reference[g]+o.reference[S]-b.mainAxis;d<A?d=A:d>D&&(d=D)}if(u){var w,_;const S=g==="y"?"width":"height",A=To.has(ne(i)),D=o.reference[p]-o.floating[S]+(A&&((w=s.offset)==null?void 0:w[p])||0)+(A?0:b.crossAxis),M=o.reference[p]+o.reference[S]+(A?0:((_=s.offset)==null?void 0:_[p])||0)-(A?b.crossAxis:0);h<D?h=D:h>M&&(h=M)}return{[g]:d,[p]:h}}}},Zc=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(t){var e,n;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=re(r,t),f=await s.detectOverflow(t,u),p=ne(i),g=ke(i),d=Kt(i)==="y",{width:h,height:v}=o.floating;let b,w;p==="top"||p==="bottom"?(b=p,w=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,b=g==="end"?"top":"bottom");const _=v-f.top-f.bottom,S=h-f.left-f.right,A=ce(v-f[b],_),D=ce(h-f[w],S),M=!t.middlewareData.shift;let z=A,L=D;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(L=S),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(z=_),M&&!g){const k=It(f.left,0),W=It(f.right,0),J=It(f.top,0),R=It(f.bottom,0);d?L=h-2*(k!==0||W!==0?k+W:It(f.left,f.right)):z=v-2*(J!==0||R!==0?J+R:It(f.top,f.bottom))}await l({...t,availableWidth:L,availableHeight:z});const Y=await s.getDimensions(a.floating);return h!==Y.width||v!==Y.height?{reset:{rects:!0}}:{}}}};function _r(){return typeof window<"u"}function Me(r){return Ao(r)?(r.nodeName||"").toLowerCase():"#document"}function kt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Xt(r){var t;return(t=(Ao(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Ao(r){return _r()?r instanceof Node||r instanceof kt(r).Node:!1}function Rt(r){return _r()?r instanceof Element||r instanceof kt(r).Element:!1}function oe(r){return _r()?r instanceof HTMLElement||r instanceof kt(r).HTMLElement:!1}function Si(r){return!_r()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof kt(r).ShadowRoot}function qe(r){const{overflow:t,overflowX:e,overflowY:n,display:i}=Lt(r);return/auto|scroll|overlay|hidden|clip/.test(t+n+e)&&i!=="inline"&&i!=="contents"}function Jc(r){return/^(table|td|th)$/.test(Me(r))}function Tr(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}const Qc=/transform|translate|scale|rotate|perspective|filter/,$c=/paint|layout|strict|content/,de=r=>!!r&&r!=="none";let Fr;function Nn(r){const t=Rt(r)?Lt(r):r;return de(t.transform)||de(t.translate)||de(t.scale)||de(t.rotate)||de(t.perspective)||!Dn()&&(de(t.backdropFilter)||de(t.filter))||Qc.test(t.willChange||"")||$c.test(t.contain||"")}function tu(r){let t=ue(r);for(;oe(t)&&!Ee(t);){if(Nn(t))return t;if(Tr(t))return null;t=ue(t)}return null}function Dn(){return Fr==null&&(Fr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Fr}function Ee(r){return/^(html|body|#document)$/.test(Me(r))}function Lt(r){return kt(r).getComputedStyle(r)}function Ar(r){return Rt(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function ue(r){if(Me(r)==="html")return r;const t=r.assignedSlot||r.parentNode||Si(r)&&r.host||Xt(r);return Si(t)?t.host:t}function Eo(r){const t=ue(r);return Ee(t)?r.ownerDocument?r.ownerDocument.body:r.body:oe(t)&&qe(t)?t:Eo(t)}function Ke(r,t,e){var n;t===void 0&&(t=[]),e===void 0&&(e=!0);const i=Eo(r),o=i===((n=r.ownerDocument)==null?void 0:n.body),s=kt(i);if(o){const a=rn(s);
vendor: 2,529 bytes, line 13
13return t.concat(s,s.visualViewport||[],qe(i)?i:[],a&&e?Ke(a):[])}else return t.concat(i,Ke(i,[],e))}function rn(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Oo(r){const t=Lt(r);let e=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=oe(r),o=i?r.offsetWidth:e,s=i?r.offsetHeight:n,a=ur(e)!==o||ur(n)!==s;return a&&(e=o,n=s),{width:e,height:n,$:a}}function Fn(r){return Rt(r)?r:r.contextElement}function Se(r){const t=Fn(r);if(!oe(t))return Ut(1);const e=t.getBoundingClientRect(),{width:n,height:i,$:o}=Oo(t);let s=(o?ur(e.width):e.width)/n,a=(o?ur(e.height):e.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const eu=Ut(0);function Io(r){const t=kt(r);return!Dn()||!t.visualViewport?eu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ru(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==kt(r)?!1:t}function ye(r,t,e,n){t===void 0&&(t=!1),e===void 0&&(e=!1);const i=r.getBoundingClientRect(),o=Fn(r);let s=Ut(1);t&&(n?Rt(n)&&(s=Se(n)):s=Se(r));const a=ru(o,e,n)?Io(o):Ut(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,p=i.height/s.y;if(o){const g=kt(o),d=n&&Rt(n)?kt(n):n;let h=g,v=rn(h);for(;v&&n&&d!==h;){const b=Se(v),w=v.getBoundingClientRect(),_=Lt(v),S=w.left+(v.clientLeft+parseFloat(_.paddingLeft))*b.x,A=w.top+(v.clientTop+parseFloat(_.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,p*=b.y,l+=S,u+=A,h=kt(v),v=rn(h)}}return fr({width:f,height:p,x:l,y:u})}function Er(r,t){const e=Ar(r).scrollLeft;return t?t.left+e:ye(Xt(r)).left+e}function ko(r,t){const e=r.getBoundingClientRect(),n=e.left+t.scrollLeft-Er(r,e),i=e.top+t.scrollTop;return{x:n,y:i}}function nu(r){let{elements:t,rect:e,offsetParent:n,strategy:i}=r;const o=i==="fixed",s=Xt(n),a=t?Tr(t.floating):!1;if(n===s||a&&o)return e;let l={scrollLeft:0,scrollTop:0},u=Ut(1);const f=Ut(0),p=oe(n);if((p||!p&&!o)&&((Me(n)!=="body"||qe(s))&&(l=Ar(n)),p)){const d=ye(n);u=Se(n),f.x=d.x+n.clientLeft,f.y=d.y+n.clientTop}const g=s&&!p&&!o?ko(s,l):Ut(0);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-l.scrollLeft*u.x+f.x+g.x,y:e.y*u.y-l.scrollTop*u.y+f.y+g.y}}function iu(r){return Array.from(r.getClientRects())}function ou(r){const t=Xt(r),e=Ar(r),n=r.ownerDocument.body,i=It(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=It(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-e.scrollLeft+Er(r);const a=-e.scrollTop;return Lt(n).direction==="rtl"&&(s+=It(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}const Pi=25;
13function su(r,t){const e=kt(r),n=Xt(r),i=e.visualViewport;let o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const f=Dn();(!f||f&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const u=Er(n);if(u<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),d=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,h=Math.abs(n.clientWidth-p.clientWidth-d);h<=Pi&&(o-=h)}else u<=Pi&&(o+=u);return{width:o,height:s,x:a,y:l}}function au(r,t){const e=ye(r,!0,t==="fixed"),n=e.top+r.clientTop,i=e.left+r.clientLeft,o=oe(r)?Se(r):Ut(1),s=r.clientWidth*o.x,a=r.clientHeight*o.y,l=i*o.x,u=n*o.y;return{width:s,height:a,x:l,y:u}}function Ci(r,t,e){let n;if(t==="viewport")n=su(r,e);else if(t==="document")n=ou(Xt(r));else if(Rt(t))n=au(t,e);else{const i=Io(r);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return fr(n)}function Mo(r,t){const e=ue(r);return e===t||!Rt(e)||Ee(e)?!1:Lt(e).position==="fixed"||Mo(e,t)}function lu(r,t){const e=t.get(r);if(e)return e;let n=Ke(r,[],!1).filter(a=>Rt(a)&&Me(a)!=="body"),i=null;const o=Lt(r).position==="fixed";let s=o?ue(r):r;for(;Rt(s)&&!Ee(s);){const a=Lt(s),l=Nn(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||qe(s)&&!l&&Mo(r,s))?n=n.filter(f=>f!==s):i=a,s=ue(s)}return t.set(r,n),n}function cu(r){let{element:t,boundary:e,rootBoundary:n,strategy:i}=r;const s=[...e==="clippingAncestors"?Tr(t)?[]:lu(t,this._c):[].concat(e),n],a=Ci(t,s[0],i);let l=a.top,u=a.right,f=a.bottom,p=a.left;for(let g=1;g<s.length;g++){const d=Ci(t,s[g],i);l=It(d.top,l),u=ce(d.right,u),f=ce(d.bottom,f),p=It(d.left,p)}return{width:u-p,height:f-l,x:p,y:l}}function uu(r){const{width:t,height:e}=Oo(r);return{width:t,height:e}}function du(r,t,e){const n=oe(t),i=Xt(t),o=e==="fixed",s=ye(r,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Ut(0);function u(){l.x=Er(i)}if(n||!n&&!o)if((Me(t)!=="body"||qe(i))&&(a=Ar(t)),n){const d=ye(t,!0,o,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&u();o&&!n&&i&&u();const f=i&&!n&&!o?ko(i,a):Ut(0),p=s.left+a.scrollLeft-l.x-f.x,g=s.top+a.scrollTop-l.y-f.y;return{x:p,y:g,width:s.width,height:s.height}}function Rr(r){return Lt(r).position==="static"}function _i(r,t){if(!oe(r)||Lt(r).position==="fixed")return null;if(t)return t(r);let e=r.offsetParent;return Xt(r)===e&&(e=e.ownerDocument.body),e}function No(r,t){const e=kt(r);if(Tr(r))return e;if(!oe(r)){let i=ue(r);for(;i&&!Ee(i);){if(Rt(i)&&!Rr(i))return i;i=ue(i)}return e}let n=_i(r,t);for(;n&&Jc(n)&&Rr(n);)n=_i(n,t);return n&&Ee(n)&&Rr(n)&&!Nn(n)?e:n||tu(r)||e}const fu=async function(r){const t=this.getOffsetParent||No,e=this.getDimensions,n=await e(r.floating);return{reference:du(r.reference,await t(r.floating),r.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function hu(r){return Lt(r).direction==="rtl"}const gu={convertOffsetParentRelativeRectToViewportRelativeRect:nu,getDocumentElement:Xt,getClippingRect:cu,getOffsetParent:No,getElementRects:fu,getClientRects:iu,getDimensions:uu,getScale:Se,isElement:Rt,isRTL:hu};function Do(r,t){return r.x===t.x&&r.y===t.y&&r.width===t.width&&r.height===t.height}function vu(r,t){let e=null,n;const i=Xt(r);function o(){var a;clearTimeout(n),(a=e)==null||a.disconnect(),e=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=r.getBoundingClientRect(),{left:f,top:p,width:g,height:d}=u;if(a||t(),!g||!d)return;const h=Je(p),v=Je(i.clientWidth-(f+g)),b=Je(i.clientHeight-(p+d)),w=Je(f),S={rootMargin:-h+"px "+-v+"px "+-b+"px "+-w+"px",threshold:It(0,ce(1,l))||1};let A=!0;function D(M){const z=M[0].intersectionRatio;if(z!==l){if(!A)return s();z?s(!1,z):n=setTimeout(()=>{s(!1,1e-7)},1e3)}z===1&&!Do(u,r.getBoundingClientRect())&&s(),A=!1}try{e=new IntersectionObserver(D,{...S,root:i.ownerDocument})}catch{e=new IntersectionObserver(D,S)}e.observe(r)}return s(!0),o}function pu(r,t,e,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Fn(r),f=i||o?[...u?Ke(u):[],...t?Ke(t):[]]:[];f.forEach(w=>{i&&w.addEventListener("scroll",e,{passive:!0}),o&&w.addEventListener("resize",e)});const p=u&&a?vu(u,e):null;let g=-1,d=null;s&&(d=new ResizeObserver(w=>{let[_]=w;_&&_.target===u&&d&&t&&(d.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var S;(S=d)==null||S.observe(t)})),e()}),u&&!l&&d.observe(u),t&&d.observe(t));let h,v=l?ye(r):null;l&&b();function b(){const w=ye(r);v&&!Do(v,w)&&e(),v=w,h=requestAnimationFrame(b)}return e(),()=>{var w;f.forEach(_=>{i&&_.removeEventListener("scroll",e),o&&_.removeEventListener("resize",e)}),p?.(),(w=d)==null||w.disconnect(),d=null,l&&cancelAnimationFrame(h)}}const mu=Xc,bu=qc,yu=jc,wu=Zc,xu=Uc,Su=Kc,Pu=Yc,Cu=(r,t,e)=>{const n=new Map,i={platform:gu,...e},o={...i.platform,_c:n};return Hc(r,t,{...i,platform:o})};function fe(r){return typeof r=="function"?r():r}function Fo(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function Ti(r,t){const e=Fo(r);return Math.round(t*e)/e}function Ai(r){return{[`--bits-${r}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${r}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${r}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${r}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${r}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function _u(r){const t=r.whileElementsMounted,e=C(()=>fe(r.open)??!0),n=C(()=>fe(r.middleware)),i=C(()=>fe(r.transform)??!0),o=C(()=>fe(r.placement)??"bottom"),s=C(()=>fe(r.strategy)??"absolute"),a=C(()=>fe(r.sideOffset)??0),l=C(()=>fe(r.alignOffset)??0),u=r.reference;let f=Z(0),p=Z(0);const g=xt(null);
13let d=Z(Ft(c(s))),h=Z(Ft(c(o))),v=Z(Ft({})),b=Z(!1),w=!1,_=0;const S=C(()=>{const k=g.current?Ti(g.current,c(f)):c(f),W=g.current?Ti(g.current,c(p)):c(p);return c(i)?{position:c(d),left:"0",top:"0",transform:`translate(${k}px, ${W}px)`,...g.current&&Fo(g.current)>=1.5&&{willChange:"transform"}}:{position:c(d),left:`${k}px`,top:`${W}px`}});let A;function D(){if(u.current===null||g.current===null)return;const k=u.current,W=g.current,J=++_;Cu(k,W,{middleware:c(n),placement:c(o),strategy:c(s)}).then(R=>{if(J!==_||u.current!==k||g.current!==W)return;if(Tu(k)){x(v,{...c(v),hide:{...c(v).hide,referenceHidden:!0}},!0);return}if(!c(e)&&c(f)!==0&&c(p)!==0){const O=Math.max(Math.abs(c(a)),Math.abs(c(l)),15);if(R.x<=O&&R.y<=O)return}x(f,R.x,!0),x(p,R.y,!0),x(d,R.strategy,!0),x(h,R.placement,!0),x(v,R.middlewareData,!0),x(b,!0)})}function M(){typeof A=="function"&&(A(),A=void 0),_++}function z(){if(M(),t===void 0){D();return}c(e)&&(u.current===null||g.current===null||(A=t(u.current,g.current,D)))}function L(){!c(e)&&g.current===null&&x(b,!1)}function Y(){return[c(n),c(o),c(s),c(a),c(l),c(e)]}return Pt(()=>{t===void 0&&c(e)&&D()}),Pt(z),Pt(()=>{if(t!==void 0){if(Y(),!c(e)){w=!1;return}if(!c(b)){w=!1;return}if(!w){w=!0;return}D()}}),Pt(L),Pt(()=>M),{floating:g,reference:u,get strategy(){return c(d)},get placement(){return c(h)},get middlewareData(){return c(v)},get isPositioned(){return c(b)},get floatingStyles(){return c(S)},get update(){return D}}}function Tu(r){return r instanceof Element?!r.isConnected||r instanceof HTMLElement&&r.hidden?!0:r.getClientRects().length===0:!1}const Au={top:"bottom",right:"left",bottom:"top",left:"right"},Ro=new Gt("Floating.Root"),nn=new Gt("Floating.Content"),Lo=new Gt("Floating.Root");class hr{static create(t=!1){return t?Lo.set(new hr):Ro.set(new hr)}anchorNode=xt(null);customAnchorNode=xt(null);triggerNode=xt(null);constructor(){Pt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class gr{static create(t,e=!1){return e?nn.set(new gr(t,Lo.get())):nn.set(new gr(t,Ro.get()))}opts;root;contentRef=xt(null);wrapperRef=xt(null);arrowRef=xt(null);contentAttachment=Tt(this.contentRef);wrapperAttachment=Tt(this.wrapperRef);arrowAttachment=Tt(this.arrowRef);arrowId=xt(Ie());#t=C(()=>{if(typeof this.opts.style=="string")return ze(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#r=new vl(()=>this.arrowRef.current??void 0);#n=C(()=>this.#r?.width??0);#i=C(()=>this.#r?.height??0);#o=C(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=C(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=C(()=>c(this.#a).length>0);get hasExplicitBoundaries(){return c(this.#s)}set hasExplicitBoundaries(t){x(this.#s,t)}#l=C(()=>({padding:this.opts.collisionPadding.current,boundary:c(this.#a).filter(Bl),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return c(this.#l)}set detectOverflowOptions(t){x(this.#l,t)}#c=Z(void 0);#u=Z(void 0);#f=Z(void 0);#p=Z(void 0);#m=C(()=>[mu({mainAxis:this.opts.sideOffset.current+c(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&bu({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Pu():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&yu({...this.detectOverflowOptions}),wu({...this.detectOverflowOptions,apply:({rects:t,availableWidth:e,availableHeight:n})=>{const{width:i,height:o}=t.reference;x(this.#c,e,!0),x(this.#u,n,!0),x(this.#f,i,!0),x(this.#p,o,!0)}}),this.arrowRef.current&&Su({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Eu({arrowWidth:c(this.#n),arrowHeight:c(this.#i)}),this.opts.hideWhenDetached.current&&xu({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return c(this.#m)}set middleware(t){x(this.#m,t)}floating;#d=C(()=>Ou(this.floating.placement));get placedSide(){return c(this.#d)}set placedSide(t){x(this.#d,t)}#h=C(()=>Iu(this.floating.placement));get placedAlign(){return c(this.#h)}set placedAlign(t){x(this.#h,t)}#g=C(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return c(this.#g)}set arrowX(t){x(this.#g,t)}#v=C(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return c(this.#v)}set arrowY(t){x(this.#v,t)}#b=C(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return c(this.#b)}set cannotCenterArrow(t){x(this.#b,t)}#y=Z();get contentZIndex(){return c(this.#y)}set contentZIndex(t){x(this.#y,t,!0)}#w=C(()=>Au[this.placedSide]);get arrowBaseSide(){return c(this.#w)}set arrowBaseSide(t){x(this.#w,t)}#x=C(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${c(this.#c)}px`,"--bits-floating-available-height":`${c(this.#u)}px`,"--bits-floating-anchor-width":`${c(this.#f)}px`,"--bits-floating-anchor-height":`${c(this.#p)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...c(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return c(this.#x)}set wrapperProps(t){x(this.#x,t)}#S=C(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:to({...c(this.#t)}),...this.contentAttachment}));get props(){return c(this.#S)}set props(t){x(this.#S,t)}#P=C(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return c(this.#P)}set arrowStyle(t){x(this.#P,t)}constructor(t,e){this.opts=t,this.root=e,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),bt(()=>t.customAnchor.current,n=>{this.root.customAnchorNode.current=n}),this.floating=_u({strategy:()=>this.opts.strategy.current,placement:()=>c(this.#o),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...n)=>pu(...n,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Pt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),bt(()=>this.contentRef.current,n=>{if(!n||!this.opts.enabled.current)return;const i=pn(n),o=i.requestAnimationFrame(()=>{if(this.contentRef.current!==n||!this.opts.enabled.current)return;const s=i.getComputedStyle(n).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{i.cancelAnimationFrame(o)}}),Pt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Rn{static create(t){return new Rn(t,nn.get())}opts;content;constructor(t,e){this.opts=t,this.content=e}#t=C(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return c(this.#t)}set props(t){x(this.#t,t)}}function Eu(r){return{name:"transformOrigin",options:r,fn(t){const{placement:e,rects:n,middlewareData:i}=t,s=i.arrow?.centerOffset!==0,a=s?0:r.arrowWidth,l=s?0:r.arrowHeight,[u,f]=Ln(e),p={start:"0%",center:"50%",end:"100%"}[f],g=(i.arrow?.x??0)+a/2,d=(i.arrow?.y??0)+l/2;let h="",v="";return u==="bottom"?(h=s?p:`${g}px`,v=`${-l}px`):u==="top"?(h=s?p:`${g}px`,v=`${n.floating.height+l}px`):u==="right"?(h=`${-l}px`,v=s?p:`${d}px`):u==="left"&&(h=`${n.floating.width+l}px`,v=s?p:`${d}px`),{data:{x:h,y:v}}}}}
13function Ln(r){const[t,e="center"]=r.split("-");return[t,e]}function Ou(r){return Ln(r)[0]}function Iu(r){return Ln(r)[1]}function ku(r,t){U(t,!0);let e=m(t,"tooltip",3,!1);hr.create(e());var n=E(),i=P(n);V(i,()=>t.children??et),y(r,n),G()}var Mu=ln('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),Nu=B("<span><!></span>");function Du(r,t){U(t,!0);let e=m(t,"id",19,Ie),n=m(t,"width",3,10),i=m(t,"height",3,5),o=tt(t,["$$slots","$$events","$$legacy","id","children","child","width","height"]);const s=C(()=>pt(o,{id:e()}));var a=E(),l=P(a);{var u=p=>{var g=E(),d=P(g);V(d,()=>t.child,()=>({props:c(s)})),y(p,g)},f=p=>{var g=Nu();rt(g,()=>({...c(s)}));var d=X(g);{var h=b=>{var w=E(),_=P(w);V(_,()=>t.children??et),y(b,w)},v=b=>{var w=Mu();Ct(()=>{ee(w,"width",n()),ee(w,"height",i())}),y(b,w)};at(d,b=>{t.children?b(h):b(v,-1)})}q(g),y(p,g)};at(l,p=>{t.child?p(u):p(f,-1)})}y(r,a),G()}function Fu(r,t){U(t,!0);let e=m(t,"id",19,Ie),n=m(t,"ref",15,null),i=tt(t,["$$slots","$$events","$$legacy","id","ref"]);const o=Rn.create({id:T(()=>e()),ref:T(()=>n(),a=>n(a))}),s=C(()=>pt(i,o.props));Du(r,ut(()=>c(s))),G()}function Ru(r,t){U(t,!0);let e=m(t,"side",3,"bottom"),n=m(t,"sideOffset",3,0),i=m(t,"align",3,"center"),o=m(t,"alignOffset",3,0),s=m(t,"arrowPadding",3,0),a=m(t,"avoidCollisions",3,!0),l=m(t,"collisionBoundary",19,()=>[]),u=m(t,"collisionPadding",3,0),f=m(t,"hideWhenDetached",3,!1),p=m(t,"onPlaced",3,()=>{}),g=m(t,"sticky",3,"partial"),d=m(t,"updatePositionStrategy",3,"optimized"),h=m(t,"strategy",3,"fixed"),v=m(t,"dir",3,"ltr"),b=m(t,"style",19,()=>({})),w=m(t,"wrapperId",19,Ie),_=m(t,"customAnchor",3,null),S=m(t,"tooltip",3,!1);const A=gr.create({side:T(()=>e()),sideOffset:T(()=>n()),align:T(()=>i()),alignOffset:T(()=>o()),id:T(()=>t.id),arrowPadding:T(()=>s()),avoidCollisions:T(()=>a()),collisionBoundary:T(()=>l()),collisionPadding:T(()=>u()),hideWhenDetached:T(()=>f()),onPlaced:T(()=>p()),sticky:T(()=>g()),updatePositionStrategy:T(()=>d()),strategy:T(()=>h()),dir:T(()=>v()),style:T(()=>b()),enabled:T(()=>t.enabled),wrapperId:T(()=>w()),customAnchor:T(()=>_())},S()),D=C(()=>pt(A.wrapperProps,{style:{pointerEvents:"auto"}}));var M=E(),z=P(M);V(z,()=>t.content??et,()=>({props:A.props,wrapperProps:c(D)})),y(r,M),G()}function Lu(r,t){U(t,!0),dn(()=>{t.onPlaced?.()});var e=E(),n=P(e);V(n,()=>t.content??et,()=>({props:{},wrapperProps:{}})),y(r,e),G()}const Bu=Xe({component:"separator",parts:["root"]});class Bn{static create(t){return new Bn(t)}opts;attachment;constructor(t){this.opts=t,this.attachment=Tt(t.ref)}#t=C(()=>({id:this.opts.id.current,role:this.opts.decorative.current?"none":"separator","aria-orientation":this.opts.orientation.current,"aria-hidden":Cl(this.opts.decorative.current),"data-orientation":this.opts.orientation.current,[Bu.root]:"",...this.attachment}));get props(){return c(this.#t)}set props(t){x(this.#t,t)}}var zu=B("<div><!></div>");function Wu(r,t){const e=Mt();U(t,!0);let n=m(t,"id",19,()=>Nt(e)),i=m(t,"ref",15,null),o=m(t,"decorative",3,!1),s=m(t,"orientation",3,"horizontal"),a=tt(t,["$$slots","$$events","$$legacy","id","ref","child","children","decorative","orientation"]);const l=Bn.create({ref:T(()=>i(),h=>i(h)),id:T(()=>n()),decorative:T(()=>o()),orientation:T(()=>s())}),u=C(()=>pt(a,l.props));var f=E(),p=P(f);{var g=h=>{var v=E(),b=P(v);V(b,()=>t.child,()=>({props:c(u)})),y(h,v)},d=h=>{var v=zu();rt(v,()=>({...c(u)}));var b=X(v);V(b,()=>t.children??et),q(v),y(h,v)};at(p,h=>{t.child?h(g):h(d,-1)})}y(r,f),G()}function Vu(r,t){let e=m(t,"isStatic",3,!1),n=tt(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=E(),o=P(i);{var s=l=>{Lu(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{Ru(l,ut({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>n))};at(o,l=>{e()?l(s):l(a,-1)})}y(r,i)}var Hu=B("<!> <!>",1);function Bo(r,t){U(t,!0);let e=m(t,"interactOutsideBehavior",3,"close"),n=m(t,"trapFocus",3,!0),i=m(t,"isValidEvent",3,()=>!1),o=m(t,"customAnchor",3,null),s=m(t,"isStatic",3,!1),a=m(t,"tooltip",3,!1),l=m(t,"contentPointerEvents",3,"auto"),u=tt(t,["$$slots","$$events","$$legacy","popper","onEscapeKey
13down","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);const f=C(()=>t.preventScroll??!0),p=C(()=>t.strategy??(c(f)?"fixed":"absolute"));Vu(r,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return c(p)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return o()},get enabled(){return t.enabled},get tooltip(){return a()},content:(d,h)=>{let v=()=>h?.().props,b=()=>h?.().wrapperProps;var w=Hu(),_=P(w);{var S=M=>{cr(M,{get preventScroll(){return c(f)}})},A=M=>{cr(M,{get preventScroll(){return c(f)}})};at(_,M=>{t.forceMount&&t.enabled?M(S):t.forceMount||M(A,1)})}var D=it(_,2);So(D,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return n()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(z,L)=>{let Y=()=>L?.().props;xo(z,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(k,W)=>{wo(k,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return e()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(R,I)=>{let O=()=>I?.().props;Po(R,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(j,N)=>{var F=E(),K=P(F);{let H=C(()=>({props:pt(u,v(),O(),Y(),{style:{pointerEvents:l()}}),wrapperProps:b()}));V(K,()=>t.popper??et,()=>c(H))}y(j,F)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),y(d,w)},$$slots:{content:!0}}),G()}function Ku(r,t){let e=m(t,"interactOutsideBehavior",3,"close"),n=m(t,"trapFocus",3,!0),i=m(t,"isValidEvent",3,()=>!1),o=m(t,"customAnchor",3,null),s=m(t,"isStatic",3,!1),a=tt(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var l=E(),u=P(l);{var f=p=>{Bo(p,ut({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return o()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return e()},get loop(){return t.loop},get trapFocus(){return n()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};at(u,p=>{t.shouldRender&&p(f)})}y(r,l)}function ju(r,t){let e=m(t,"interactOutsideBehavior",3,"close"),n=m(t,"trapFocus",3,!0),i=m(t,"isValidEvent",3,()=>!1),o=m(t,"customAnchor",3,null),s=m(t,"isStatic",3,!1),a=tt(t,["$$slots","$$events","$$legacy","popper","onEscapeKey
13down","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Bo(r,ut({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return o()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return e()},get loop(){return t.loop},get trapFocus(){return n()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function on(r,t){U(t,!0);let e=m(t,"mounted",15,!1),n=m(t,"onMountedChange",3,dt);xr(()=>(e(!0),n()(!0),()=>{e(!1),n()(!1)})),G()}function Lr(r,t){const[e,n]=r;let i=!1;const o=t.length;for(let s=0,a=o-1;s<o;a=s++){const[l,u]=t[s]??[0,0],[f,p]=t[a]??[0,0];u>=n!=p>=n&&e<=(f-l)*(n-u)/(p-u)+l&&(i=!i)}return i}function Br(r,t){return r[0]>=t.left&&r[0]<=t.right&&r[1]>=t.top&&r[1]<=t.bottom}function Ei(r,t){const e=r.left+r.width/2,n=r.top+r.height/2,i=t.left+t.width/2,o=t.top+t.height/2,s=i-e,a=o-n;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class Uu{#t;#e;#r;#n=null;#i=null;#o=[];#a=null;#s=null;#l=null;#c(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#u(){this.#c(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#n||!this.#i)&&(this.#d(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#p(){this.#r!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#n||!this.#i)&&(this.#d(),this.#t.onPointerExit())},this.#r))}constructor(t){this.#t=t,this.#e=t.buffer??1;const e=t.transitIntentTimeout;this.#r=typeof e=="number"&&e>0?e:null,bt([t.triggerNode,t.contentNode,t.enabled],([n,i,o])=>{if(!n||!i||!o){this.#a=null,this.#d();return}this.#a&&this.#a!==n&&this.#d(),this.#a=n;const s=vn(n),a=g=>{this.#m([g.clientX,g.clientY],n,i)},l=g=>{const d=g.relatedTarget;if(xe(d)&&i.contains(d))return;const h=this.#t.ignoredTargets?.()??[];xe(d)&&h.some(v=>v===d||v.contains(d))||(this.#o=xe(d)&&h.length>0?h.filter(v=>d.contains(v)):[],this.#n=[g.clientX,g.clientY],this.#i="content",this.#u())},u=()=>{this.#d()},f=()=>{this.#d()},p=g=>{const d=g.relatedTarget;xe(d)&&n.contains(d)||(this.#n=[g.clientX,g.clientY],this.#i="trigger",this.#u())};return[mt(s,"pointermove",a),mt(n,"pointerleave",l),mt(n,"pointerenter",u),mt(i,"pointerenter",f),mt(i,"pointerleave",p)].reduce((g,d)=>()=>{g(),d()},()=>{})})}#m(t,e,n){if(!this.#n||!this.#i)return;this.#c(),this.#p();const i=e.getBoundingClientRect(),o=n.getBoundingClientRect();if(this.#i==="content"&&Br(t,o)){this.#d();return}if(this.#i==="trigger"&&Br(t,i)){this.#d();return}if(this.#i==="content"&&this.#o.length>0)for(const f of this.#o){const p=f.getBoundingClientRect();if(Br(t,p))return;const g=Ei(i,p),d=this.#h(i,p,g);
13if(d&&Lr(t,d))return}const s=Ei(i,o),a=this.#h(i,o,s);if(a&&Lr(t,a))return;const l=this.#i==="content"?o:i,u=this.#g(this.#n,l,s,this.#i);Lr(t,u)||(this.#d(),this.#t.onPointerExit())}#d(){this.#n=null,this.#i=null,this.#o=[],this.#c(),this.#f()}#h(t,e,n){const i=this.#e;switch(n){case"top":return[[Math.min(t.left,e.left)-i,t.top],[Math.min(t.left,e.left)-i,e.bottom],[Math.max(t.right,e.right)+i,e.bottom],[Math.max(t.right,e.right)+i,t.top]];case"bottom":return[[Math.min(t.left,e.left)-i,t.bottom],[Math.min(t.left,e.left)-i,e.top],[Math.max(t.right,e.right)+i,e.top],[Math.max(t.right,e.right)+i,t.bottom]];case"left":return[[t.left,Math.min(t.top,e.top)-i],[e.right,Math.min(t.top,e.top)-i],[e.right,Math.max(t.bottom,e.bottom)+i],[t.left,Math.max(t.bottom,e.bottom)+i]];case"right":return[[t.right,Math.min(t.top,e.top)-i],[e.left,Math.min(t.top,e.top)-i],[e.left,Math.max(t.bottom,e.bottom)+i],[t.right,Math.max(t.bottom,e.bottom)+i]]}}#g(t,e,n,i){const o=this.#e*4,[s,a]=t;switch(i==="trigger"?this.#v(n):n){case"top":return[[s-o,a+o],[s+o,a+o],[e.right+o,e.bottom],[e.right+o,e.top],[e.left-o,e.top],[e.left-o,e.bottom]];case"bottom":return[[s-o,a-o],[s+o,a-o],[e.right+o,e.top],[e.right+o,e.bottom],[e.left-o,e.bottom],[e.left-o,e.top]];case"left":return[[s+o,a-o],[s+o,a+o],[e.right,e.bottom+o],[e.left,e.bottom+o],[e.left,e.top-o],[e.right,e.top-o]];case"right":return[[s-o,a-o],[s-o,a+o],[e.left,e.bottom+o],[e.right,e.bottom+o],[e.right,e.top-o],[e.left,e.top-o]]}}#v(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}function Gu(r,t){U(t,!0);let e=m(t,"open",15,!1),n=m(t,"onOpenChange",3,dt),i=m(t,"onOpenChangeComplete",3,dt);yn.create({variant:T(()=>"dialog"),open:T(()=>e(),a=>{e(a),n()(a)}),onOpenChangeComplete:T(()=>i())});var o=E(),s=P(o);V(s,()=>t.children??et),y(r,o),G()}var Xu=B("<button><!></button>");function qu(r,t){const e=Mt();U(t,!0);let n=m(t,"id",19,()=>Nt(e)),i=m(t,"ref",15,null),o=m(t,"disabled",3,!1),s=tt(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const a=wn.create({variant:T(()=>"close"),id:T(()=>n()),ref:T(()=>i(),d=>i(d)),disabled:T(()=>!!o())}),l=C(()=>pt(s,a.props));var u=E(),f=P(u);{var p=d=>{var h=E(),v=P(h);V(v,()=>t.child,()=>({props:c(l)})),y(d,h)},g=d=>{var h=Xu();rt(h,()=>({...c(l)}));var v=X(h);V(v,()=>t.children??et),q(h),y(d,h)};at(f,d=>{t.child?d(p):d(g,-1)})}y(r,u),G()}var Yu=B("<!> <!>",1),Zu=B("<!> <div><!></div>",1);function Ju(r,t){const e=Mt();U(t,!0);let n=m(t,"id",19,()=>Nt(e)),i=m(t,"ref",15,null),o=m(t,"forceMount",3,!1),s=m(t,"onCloseAutoFocus",3,dt),a=m(t,"onOpenAutoFocus",3,dt),l=m(t,"onEscapeKeydown",3,dt),u=m(t,"onInteractOutside",3,dt),f=m(t,"trapFocus",3,!0),p=m(t,"preventScroll",3,!0),g=m(t,"restoreScrollDelay",3,null),d=tt(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const h=Pn.create({id:T(()=>n()),ref:T(()=>i(),S=>i(S))}),v=C(()=>pt(d,h.props));var b=E(),w=P(b);{var _=S=>{So(S,{get ref(){return h.opts.ref},loop:!0,get trapFocus(){return f()},get enabled(){return h.root.opts.open.current},get onOpenAutoFocus(){return a()},get onCloseAutoFocus(){return s()},focusScope:(D,M)=>{let z=()=>M?.().props;xo(D,ut(()=>c(v),{get enabled(){return h.root.opts.open.current},get ref(){return h.opts.ref},onEscapeKeydown:L=>{l()(L),!L.defaultPrevented&&h.root.handleClose()},children:(L,Y)=>{wo(L,ut(()=>c(v),{get ref(){return h.opts.ref},get enabled(){return h.root.opts.open.current},onInteractOutside:k=>{u()(k),!k.defaultPrevented&&h.root.handleClose()},children:(k,W)=>{Po(k,ut(()=>c(v),{get ref(){return h.opts.ref},get enabled(){return h.root.opts.open.current},children:(J,R)=>{var I=E(),O=P(I);{var j=F=>{var K=Yu(),H=P(K);{var Q=ot=>{cr(ot,{get preventScroll(){return p()},get restoreScrollDelay(){return g()}})};at(H,ot=>{h.root.opts.open.current&&ot(Q)})}var nt=it(H,2);{let ot=C(()=>({props:pt(c(v),z()),...h.snippetProps}));V(nt,()=>t.child,()=>c(ot))}y(F,K)},N=F=>{var K=Zu(),H=P(K);cr(H,{get preventScroll(){return p()}});var Q=it(H,2);rt(Q,ot=>({...ot}),[()=>pt(c(v),z())]);var nt=X(Q);V(nt,()=>
13t.children??et),q(Q),y(F,K)};at(O,F=>{t.child?F(j):F(N,-1)})}y(J,I)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};at(w,S=>{(h.shouldRender||o())&&S(_)})}y(r,b),G()}class Qu{#t;#e;constructor(t,e){this.#t=t,this.#e=e,this.handler=this.handler.bind(this),Pt(this.handler)}handler(){let t=0;const e=this.#t();if(!e)return;const n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(this.#e)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}}const me=Xe({component:"navigation-menu",parts:["root","sub","item","list","trigger","content","link","viewport","menu","indicator"]}),zn=new Gt("NavigationMenu.Root"),$u=new Gt("NavigationMenu.Item"),zo=new Gt("NavigationMenu.List");class Wn{static create(t){return zn.set(new Wn(t))}opts;indicatorTrackRef=xt(null);viewportRef=xt(null);viewportContent=new Ui;onTriggerEnter;onTriggerLeave=dt;onContentEnter=dt;onContentLeave=dt;onItemSelect;onItemDismiss;activeItem=null;prevActiveItem=null;constructor(t){this.opts=t,this.onTriggerEnter=t.onTriggerEnter,this.onTriggerLeave=t.onTriggerLeave??dt,this.onContentEnter=t.onContentEnter??dt,this.onContentLeave=t.onContentLeave??dt,this.onItemDismiss=t.onItemDismiss,this.onItemSelect=t.onItemSelect}setActiveItem=t=>{this.prevActiveItem=this.activeItem,this.activeItem=t}}class Vn{static create(t){return new Vn(t)}opts;attachment;provider;previousValue=xt("");isDelaySkipped;#t=C(()=>this.opts?.value?.current!==""||this.isDelaySkipped.current?150:this.opts.delayDuration.current);constructor(t){this.opts=t,this.attachment=Tt(this.opts.ref),this.isDelaySkipped=vc(!1,{afterMs:this.opts.skipDelayDuration.current,getWindow:()=>pn(t.ref.current)}),this.provider=Wn.create({value:this.opts.value,previousValue:this.previousValue,dir:this.opts.dir,orientation:this.opts.orientation,rootNavigationMenuRef:this.opts.ref,isRootMenu:!0,onTriggerEnter:(e,n)=>{this.#r(e,n)},onTriggerLeave:this.#n,onContentEnter:this.#i,onContentLeave:this.#o,onItemSelect:this.#a,onItemDismiss:this.#s})}#e=fl((t,e)=>{typeof t=="string"&&this.setValue(t,e)},()=>c(this.#t));#r=(t,e)=>{this.#e(t,e)};#n=()=>{this.isDelaySkipped.current=!1,this.#e("",null)};#i=()=>{this.#e(void 0,null)};#o=()=>{this.provider.activeItem&&this.provider.activeItem.opts.openOnHover.current===!1||this.#e("",null)};#a=(t,e)=>{this.setValue(t,e)};#s=()=>{this.setValue("",null)};setValue=(t,e)=>{this.previousValue.current=this.opts.value.current,this.opts.value.current=t,this.provider.setActiveItem(e),t===""&&(this.previousValue.current="")};#l=C(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,dir:this.opts.dir.current,[me.root]:"",[me.menu]:"",...this.attachment}));get props(){return c(this.#l)}set props(t){x(this.#l,t)}}class Hn{static create(t){return zo.set(new Hn(t,zn.get()))}wrapperId=xt(Ie());wrapperRef=xt(null);opts;context;attachment;wrapperAttachment=Tt(this.wrapperRef,t=>this.context.indicatorTrackRef.current=t);#t=Z([]);get listTriggers(){return c(this.#t)}set listTriggers(t){x(this.#t,t)}rovingFocusGroup;#e=Z(!1);get wrapperMounted(){return c(this.#e)}set wrapperMounted(t){x(this.#e,t,!0)}constructor(t,e){this.opts=t,this.context=e,this.attachment=Tt(this.opts.ref),this.rovingFocusGroup=new zl({rootNode:t.ref,candidateSelector:`${me.selector("trigger")}:not([data-disabled]), ${me.selector("link")}:not([data-disabled])`,loop:T(()=>!1),orientation:this.context.opts.orientation})}registerTrigger(t){return t&&this.listTriggers.push(t),()=>{this.listTriggers=this.listTriggers.filter(e=>e.id!==t.id)}}#r=C(()=>({id:this.wrapperId.current,...this.wrapperAttachment}));get wrapperProps(){return c(this.#r)}set wrapperProps(t){x(this.#r,t)}#n=C(()=>({id:this.opts.id.current,"data-orientation":this.context.opts.orientation.current,[me.list]:"",...this.attachment}));get props(){return c(this.#n)}set props(t){x(this.#n,t)}}class Kn{static create(t){return $u.set(new Kn(t,zo.get()))}opts;attachment;listContext;#t=Z(null);get contentNode(){return c(this.#t)}set contentNode(t){x(this.#t,t,!0)}#e=Z(null);get triggerNode(){return c(this.#e)}set triggerNode(t){x(this.#e,t,!0)}#r=Z(null);get focusProxyNode(){return c(this.#r)}set focusProxyNode(t){x(this.#r,t,!0)}restoreContentTabOrder=dt;wasEscapeClose=!1;#n=C(()=>this.contentNode?.id);get contentId(){return c(this.#n)}set contentId(t){x(this.#n,t)}#i=C(()=>this.triggerNode?.id);get triggerId(){return c(this.#i)}set triggerId(t){x(this.#i,t)}contentChildren=xt(void 0);contentChild=xt(void 0);contentProps=xt({});domContext;constructor(t,e){this.opts=t,this.listContext=e,this.domContext=new Pr(t.ref),this.attachment=Tt(this.opts.ref)}#o=(t="start")=>{if(!this.contentNode)return;this.restoreContentTabOrder();const e=di(this.contentNode);e.length&&td(t==="start"?e:e.reverse(),()=>this.domContext.getActiveElement())};#a=()=>
13{if(!this.contentNode)return;const t=di(this.contentNode);t.length&&(this.restoreContentTabOrder=ed(t))};onEntryKeydown=this.#o;onFocusProxyEnter=this.#o;onRootContentClose=this.#a;onContentFocusOutside=this.#a;#s=C(()=>({id:this.opts.id.current,[me.item]:"",...this.attachment}));get props(){return c(this.#s)}set props(t){x(this.#s,t)}}class jn{static create(t){return new jn(t,zn.get())}opts;context;attachment;#t=C(()=>!!this.context.opts.value.current);get open(){return c(this.#t)}set open(t){x(this.#t,t)}#e=C(()=>this.size?`${this.size.width}px`:void 0);get viewportWidth(){return c(this.#e)}set viewportWidth(t){x(this.#e,t)}#r=C(()=>this.size?`${this.size.height}px`:void 0);get viewportHeight(){return c(this.#r)}set viewportHeight(t){x(this.#r,t)}#n=C(()=>this.context.opts.value.current);get activeContentValue(){return c(this.#n)}set activeContentValue(t){x(this.#n,t)}#i=Z(null);get size(){return c(this.#i)}set size(t){x(this.#i,t,!0)}#o=Z(null);get contentNode(){return c(this.#o)}set contentNode(t){x(this.#o,t,!0)}#a=Z(!1);get mounted(){return c(this.#a)}set mounted(t){x(this.#a,t,!0)}constructor(t,e){this.opts=t,this.context=e,this.attachment=Tt(this.opts.ref,n=>this.context.viewportRef.current=n),bt([()=>this.activeContentValue,()=>this.open],()=>{Sr(()=>{const n=this.context.viewportRef.current;if(!n)return;const i=n.querySelector("[data-state=open]")?.children?.[0]??null;this.contentNode=i})}),new Qu(()=>this.contentNode,()=>{this.contentNode&&(this.size={width:this.contentNode.offsetWidth,height:this.contentNode.offsetHeight})}),bt(()=>this.mounted,()=>{!this.mounted&&this.size&&(this.size=null)})}#s=C(()=>({id:this.opts.id.current,"data-state":so(this.open),"data-orientation":this.context.opts.orientation.current,style:{pointerEvents:!this.open&&this.context.opts.isRootMenu?"none":void 0,"--bits-navigation-menu-viewport-width":this.viewportWidth,"--bits-navigation-menu-viewport-height":this.viewportHeight},[me.viewport]:"",onpointerenter:this.context.onContentEnter,onpointerleave:this.context.onContentLeave,...this.attachment}));get props(){return c(this.#s)}set props(t){x(this.#s,t)}}function td(r,t){const e=t();return r.some(n=>n===e?!0:(n.focus(),t()!==e))}function ed(r){return r.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{r.forEach(t=>{const e=t.dataset.tabindex;t.setAttribute("tabindex",e)})}}var rd=B("<nav><!></nav>");function nd(r,t){const e=Mt();U(t,!0);let n=m(t,"id",19,()=>Nt(e)),i=m(t,"ref",15,null),o=m(t,"value",15,""),s=m(t,"onValueChange",3,dt),a=m(t,"delayDuration",3,200),l=m(t,"skipDelayDuration",3,300),u=m(t,"dir",3,"ltr"),f=m(t,"orientation",3,"horizontal"),p=tt(t,["$$slots","$$events","$$legacy","child","children","id","ref","value","onValueChange","delayDuration","skipDelayDuration","dir","orientation"]);const g=Vn.create({id:T(()=>n()),value:T(()=>o(),_=>{o(_),s()(_)}),delayDuration:T(()=>a()),skipDelayDuration:T(()=>l()),dir:T(()=>u()),orientation:T(()=>f()),ref:T(()=>i(),_=>i(_))}),d=C(()=>pt({"aria-label":"main"},p,g.props));var h=E(),v=P(h);{var b=_=>{var S=E(),A=P(S);V(A,()=>t.child,()=>({props:c(d)})),y(_,S)},w=_=>{var S=rd();rt(S,()=>({...c(d)}));var A=X(S);V(A,()=>t.children??et),q(S),y(_,S)};at(v,_=>{t.child?_(b):_(w,-1)})}y(r,h),G()}class id{opts;present;#t;#e=Z(!1);#r=!1;#n=Z(void 0);#i=null;constructor(t){this.opts=t,this.present=this.opts.open,x(this.#e,t.open.current,!0),this.#t=new lo({ref:this.opts.ref,afterTick:this.opts.open}),ie(()=>this.#a()),bt(()=>this.present.current,e=>{if(!this.#r){this.#r=!0;return}this.#a(),e&&x(this.#e,!0),x(this.#n,e?"starting":"ending",!0),e&&(this.#i=window.requestAnimationFrame(()=>{this.#i=null,this.present.current&&x(this.#n,void 0)})),this.#t.run(()=>{e===this.present.current&&(e||x(this.#e,!1),x(this.#n,void 0))})})}#o=C(()=>c(this.#e));get isPresent(){return c(this.#o)}set isPresent(t){x(this.#o,t)}get transitionStatus(){return c(this.#n)}#a(){this.#i!==null&&(window.cancelAnimationFrame(this.#i),this.#i=null)}}function od(r,t){U(t,!0);const e=new id({open:T(()=>t.open),ref:t.ref});var n=E(),i=P(n);{var o=s=>{var a=E(),l=P(a);V(l,()=>t.presence??et,()=>({present:e.isPresent,transitionStatus:e.transitionStatus})),y(s,a)};at(i,s=>{(t.forceMount||t.open||e.isPresent)&&s(o)})}y(r,n),G()}var sd=B("<li><!></li>");function ad(r,t){const e=Mt();U(t,!0);const n=Nt(e);let i=m(t,"id",3,n),o=m(t,"value",3,n),s=m(t,"ref",15,null),a=m(t,"openOnHover",3,!0),l=tt(t,["$$slots","$$events","$$legacy","id","value","ref","child","children","openOnHover"]);const u=Kn.create({id:T(()=>i()),ref:T(()=>s(),v=>s(v)),value:T(()=>o()),openOnHover:T(()=>a())}),f=C(()=>pt(l,u.props));var p=E(),g=P(p);{var d=v=>{var b=E(),w=P(b);V(w,()=>t.child,()=>({props:c(f)})),y(v,b)},h=v=>{var b=sd();rt(b,()=>({...c(f)}));var w=X(b);V(w,()=>
13t.children??et),q(b),y(v,b)};at(g,v=>{t.child?v(d):v(h,-1)})}y(r,p),G()}var ld=B("<!> <!>",1),cd=B("<div><ul><!></ul></div> <!>",1);function ud(r,t){const e=Mt();U(t,!0);let n=m(t,"id",19,()=>Nt(e)),i=m(t,"ref",15,null),o=tt(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const s=Hn.create({id:T(()=>n()),ref:T(()=>i(),d=>i(d))}),a=C(()=>pt(o,s.props)),l=C(()=>pt(s.wrapperProps));var u=E(),f=P(u);{var p=d=>{var h=ld(),v=P(h);V(v,()=>t.child,()=>({props:c(a),wrapperProps:c(l)}));var b=it(v,2);on(b,{get mounted(){return s.wrapperMounted},set mounted(w){s.wrapperMounted=w}}),y(d,h)},g=d=>{var h=cd(),v=P(h);rt(v,()=>({...c(l)}));var b=X(v);rt(b,()=>({...c(a)}));var w=X(b);V(w,()=>t.children??et),q(b),q(v);var _=it(v,2);on(_,{get mounted(){return s.wrapperMounted},set mounted(S){s.wrapperMounted=S}}),y(d,h)};at(f,d=>{t.child?d(p):d(g,-1)})}y(r,u),G()}var dd=B("<div><!></div>"),fd=B("<!> <!>",1);function hd(r,t){const e=Mt();U(t,!0);let n=m(t,"id",19,()=>Nt(e)),i=m(t,"ref",15,null),o=m(t,"forceMount",3,!1),s=tt(t,["$$slots","$$events","$$legacy","id","ref","forceMount","child","children"]);const a=jn.create({id:T(()=>n()),ref:T(()=>i(),u=>i(u))}),l=C(()=>pt(s,a.props));{const u=(p,g)=>{let d=()=>g?.().transitionStatus;const h=C(()=>Cr(d()));var v=fd(),b=P(v);{var w=A=>{var D=E(),M=P(D);{let z=C(()=>({props:pt(c(l),c(h))}));V(M,()=>t.child,()=>c(z))}y(A,D)},_=A=>{var D=dd();rt(D,z=>({...z}),[()=>pt(c(l),c(h))]);var M=X(D);V(M,()=>t.children??et),q(D),y(A,D)};at(b,A=>{t.child?A(w):A(_,-1)})}var S=it(b,2);on(S,{get mounted(){return a.mounted},set mounted(A){a.mounted=A}}),y(p,v)};let f=C(()=>o()||a.open);od(r,{get open(){return c(f)},get ref(){return a.opts.ref},presence:u,$$slots:{presence:!0}})}G()}class sn{#t;#e;#r=null;constructor(t,e){this.#e=t,this.#t=e,this.stop=this.stop.bind(this),this.start=this.start.bind(this),ie(this.stop)}#n(){this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)}stop(){this.#n()}start(...t){this.#n(),this.#r=window.setTimeout(()=>{this.#r=null,this.#e(...t)},this.#t)}}const Wo=Xe({component:"tooltip",parts:["content","trigger"]}),Vo=new Gt("Tooltip.Provider"),Un=new Gt("Tooltip.Root");class gd{#t=Z(Ft(new Map));get triggers(){return c(this.#t)}set triggers(t){x(this.#t,t,!0)}#e=Z(null);get activeTriggerId(){return c(this.#e)}set activeTriggerId(t){x(this.#e,t,!0)}#r=C(()=>{const t=this.activeTriggerId;return t===null?null:this.triggers.get(t)?.node??null});get activeTriggerNode(){return c(this.#r)}set activeTriggerNode(t){x(this.#r,t)}#n=C(()=>{const t=this.activeTriggerId;return t===null?null:this.triggers.get(t)?.payload??null});get activePayload(){return c(this.#n)}set activePayload(t){x(this.#n,t)}register=t=>{const e=new Map(this.triggers);e.set(t.id,t),this.triggers=e,this.#i()};update=t=>{const e=new Map(this.triggers);e.set(t.id,t),this.triggers=e,this.#i()};unregister=t=>{if(!this.triggers.has(t))return;const e=new Map(this.triggers);e.delete(t),this.triggers=e,this.activeTriggerId===t&&(this.activeTriggerId=null)};setActiveTrigger=t=>{if(t===null){this.activeTriggerId=null;return}if(!this.triggers.has(t)){this.activeTriggerId=null;return}this.activeTriggerId=t};get=t=>this.triggers.get(t);has=t=>this.triggers.has(t);getFirstTriggerId=()=>
13{const t=this.triggers.entries().next();return t.done?null:t.value[0]};#i=()=>{const t=this.activeTriggerId;t!==null&&(this.triggers.has(t)||(this.activeTriggerId=null))}}class Gn{static create(t){return Vo.set(new Gn(t))}opts;#t=Z(!0);get isOpenDelayed(){return c(this.#t)}set isOpenDelayed(t){x(this.#t,t,!0)}isPointerInTransit=xt(!1);#e;#r=Z(null);constructor(t){this.opts=t,this.#e=new sn(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current),xr(()=>mt(window,"scroll",e=>{const n=c(this.#r);if(!n)return;const i=n.triggerNode;if(!i)return;const o=e.target;(o instanceof Element||o instanceof Document)&&o.contains(i)&&n.handleClose()}))}#n=()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else this.#e.start()};#i=()=>{this.#e.stop()};onOpen=t=>{c(this.#r)&&c(this.#r)!==t&&c(this.#r).handleClose(),this.#i(),this.isOpenDelayed=!1,x(this.#r,t,!0)};onClose=t=>{c(this.#r)===t&&(x(this.#r,null),this.#n())};isTooltipOpen=t=>c(this.#r)===t}class Xn{static create(t){return Un.set(new Xn(t,Vo.get()))}opts;provider;#t=C(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return c(this.#t)}set delayDuration(t){x(this.#t,t)}#e=C(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return c(this.#e)}set disableHoverableContent(t){x(this.#e,t)}#r=C(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return c(this.#r)}set disableCloseOnTriggerClick(t){x(this.#r,t)}#n=C(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return c(this.#n)}set disabled(t){x(this.#n,t)}#i=C(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return c(this.#i)}set ignoreNonKeyboardFocus(t){x(this.#i,t)}registry;tether;#o=Z(null);get contentNode(){return c(this.#o)}set contentNode(t){x(this.#o,t,!0)}contentPresence;#a=Z(!1);#s;#l=C(()=>this.opts.open.current?c(this.#a)?"delayed-open":"instant-open":"closed");get stateAttr(){return c(this.#l)}set stateAttr(t){x(this.#l,t)}constructor(t,e){this.opts=t,this.provider=e,this.tether=t.tether.current?.state??null,this.registry=this.tether?.registry??new gd,this.#s=new sn(()=>{x(this.#a,!0),this.opts.open.current=!0},this.delayDuration??0),this.tether&&(this.tether.root=this,xr(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new Qr({open:this.opts.open,ref:T(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),bt(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#s=new sn(()=>{x(this.#a,!0),this.opts.open.current=!0},this.delayDuration))}),bt(()=>this.opts.open.current,n=>{n?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),bt(()=>this.opts.triggerId.current,n=>{n!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(n)}),bt(()=>this.registry.activeTriggerId,n=>{this.opts.triggerId.current!==n&&(this.opts.triggerId.current=n)})}handleOpen=()=>{this.#s.stop(),x(this.#a,!1),this.ensureActiveTrigger(),this.opts.open.current=!0};handleClose=()=>{this.#s.stop(),this.opts.open.current=!1};#c=()=>{this.#s.stop();const t=!this.provider.isOpenDelayed,e=this.delayDuration??0;t||e===0?(x(this.#a,!1),this.opts.open.current=!0):this.#s.start()};onTriggerEnter=t=>{this.setActiveTrigger(t),this.#c()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#s.stop()};ensureActiveTrigger=()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}const t=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(t)};setActiveTrigger=t=>{this.registry.setActiveTrigger(t)};registerTrigger=t=>{this.registry.register(t),t.disabled&&this.registry.activeTriggerId===t.id&&this.opts.open.current&&this.handleClose()};updateTrigger=t=>{this.registry.update(t),t.disabled&&this.registry.activeTriggerId===t.id&&this.opts.open.current&&this.handleClose()};unregisterTrigger=t=>{const e=this.registry.activeTriggerId===t;this.registry.unregister(t),e&&this.opts.open.current&&this.handleClose()};isActiveTrigger=t=>this.registry.activeTriggerId===t;get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}}class vr{static create(t){return t.tether.current?new vr(t,null,t.tether.current.state):new vr(t,Un.get(),null)}opts;root;tether;attachment;#t=xt(!1);#e=Z(!1);domContext;#r=null;#n=!1;#i=null;constructor(t,e,n){this.opts=t,this.root=e,this.tether=n,this.domContext=new Pr(t.ref),this.attachment=Tt(this.opts.ref,i=>this.#s(i)),bt(()=>this.opts.id.current,()=>{this.#s(this.opts.ref.current)}),bt(()=>this.opts.payload.current,()=>{this.#s(this.opts.ref.current)}),bt(()=>this.opts.disabled.current,()=>{this.#s(this.opts.ref.current)}),xr(()=>(this.#n=!0,this.#s(this.opts.ref.current),()=>{const i=this.#o(),o=this.#i;o&&(this.tether?this.tether.registry.unregister(o):i?.unregisterTrigger(o)),this.#i=null,this.#n=!1}))}#o=()=>this.tether?.root??this.root;#a=()=>{const t=this.#o();return this.opts.disabled.current||!!t?.disabled};#s=t=>{if(!this.#n)return;const e=this.opts.id.current,n=this.opts.payload.current,i=this.opts.disabled.current;if(this.#i&&this.#i!==e){const a=this.#o();this.tether?this.tether.registry.unregister(this.#i):a?.unregisterTrigger(this.#i)}const o={id:e,node:t,payload:n,disabled:i},s=this.#o();this.tether?(this.tether.registry.has(e)?this.tether.registry.update(o):this.tether.registry.register(o),i&&this.tether.registry.activeTriggerId===e&&s?.opts.open.current&&s.handleClose()):s?.registry.has(e)?s.updateTrigger(o):s?.registerTrigger(o),this.#i=e};#l=()=>{this.#r!==null&&(clearTimeout(this.#r),this.#r=null)};handlePointerUp=()=>{this.#t.current=!1};#c=()=>{this.#a()||(this.#t.current=!1)};#u=()=>{this.#a()||(this.#t.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))};#f=t=>{const e=this.#o();if(e){if(this.#a()){e.opts.open.current&&e.handleClose();return}if(t.pointerType!=="touch"){if(e.provider.isPointerInTransit.current){this.#l(),this.#r=window.setTimeout(()=>{e.provider.isPointerInTransit.current&&(e.provider.isPointerInTransit.current=!1,e.onTriggerEnter(this.opts.id.current),x(this.#e,!0))},250);return}e.onTriggerEnter(this.opts.id.current),x(this.#e,!0)}}};#p=t=>{const e=this.#o();if(e){if(this.#a()){e.opts.open.current&&e.handleClose();return}t.pointerType!=="touch"&&(c(this.#e)||(this.#l(),e.provider.isPointerInTransit.current=!1,e.onTriggerEnter(this.opts.id.current),x(this.#e,!0)))}};#m=t=>{const e=this.#o();if(!e||this.#a())return;if(this.#l(),!e.isActiveTrigger(this.opts.id.current)){x(this.#e,!1);return}const n=t.relatedTarget;if(xe(n)){for(const i of e.registry.triggers.values())if(i.node===n){if(e.provider.opts.skipDelayDuration.current>0){x(this.#e,!1);return}e.handleClose(),x(this.#e,!1);return}}e.onTriggerLeave(),x(this.#e,!1)};#d=t=>{const e=this.#o();if(e&&!this.#t.current){if(this.#a()){e.opts.open.current&&e.handleClose();return}e.ignoreNonKeyboardFocus&&!Ll(t.currentTarget)||(e.setActiveTrigger(this.opts.id.current),e.handleOpen())}};#h=()=>{const t=this.#o();!t||this.#a()||t.handleClose()};#g=()=>{const t=this.#o();!t||t.disableCloseOnTriggerClick||this.#a()||t.handleClose()};#v=C(()=>{const t=this.#o(),e=!!(t?.opts.open.current&&t.isActiveTrigger(this.opts.id.current)),n=this.#a();return{id:this.opts.id.current,"aria-describedby":e?t?.contentNode?.id:void 0,"data-state":e?t?.stateAttr:"closed","data-disabled":Te(n),"data-delay-duration":`${t?.delayDuration??0}`,[Wo.trigger]:"",tabindex:n?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,on
13pointerup:this.#c,onpointerdown:this.#u,onpointerenter:this.#f,onpointermove:this.#p,onpointerleave:this.#m,onfocus:this.#d,onblur:this.#h,onclick:this.#g,...this.attachment}});get props(){return c(this.#v)}set props(t){x(this.#v,t)}}class qn{static create(t){return new qn(t,Un.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=Tt(this.opts.ref,n=>this.root.contentNode=n),new Uu({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];const n=[],i=this.root.triggerNode;for(const o of this.root.registry.triggers.values())o.node&&o.node!==i&&n.push(o.node);return n},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}onInteractOutside=t=>{if(xe(t.target)&&this.root.triggerNode?.contains(t.target)&&this.root.disableCloseOnTriggerClick){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current?.(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#t=C(()=>({open:this.root.opts.open.current}));get snippetProps(){return c(this.#t)}set snippetProps(t){x(this.#t,t)}#e=C(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":Te(this.root.disabled),...Cr(this.root.contentPresence.transitionStatus),style:{outline:"none"},[Wo.content]:"",...this.attachment}));get props(){return c(this.#e)}set props(t){x(this.#e,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function vd(r,t){U(t,!0);let e=m(t,"open",15,!1),n=m(t,"triggerId",15,null),i=m(t,"onOpenChange",3,dt),o=m(t,"onOpenChangeComplete",3,dt);const s=Xn.create({open:T(()=>e(),a=>{e(a),i()(a)}),triggerId:T(()=>n(),a=>{n(a)}),delayDuration:T(()=>t.delayDuration),disableCloseOnTriggerClick:T(()=>t.disableCloseOnTriggerClick),disableHoverableContent:T(()=>t.disableHoverableContent),ignoreNonKeyboardFocus:T(()=>t.ignoreNonKeyboardFocus),disabled:T(()=>t.disabled),onOpenChangeComplete:T(()=>o()),tether:T(()=>t.tether)});ku(r,{tooltip:!0,children:(a,l)=>{var u=E(),f=P(u);V(f,()=>t.children??et,()=>({open:s.opts.open.current,triggerId:s.activeTriggerId,payload:s.activePayload})),y(a,u)},$$slots:{default:!0}}),G()}var pd=B("<div><div><!></div></div>"),md=B("<div><div><!></div></div>");function bd(r,t){const e=Mt();U(t,!0);let n=m(t,"id",19,()=>Nt(e)),i=m(t,"ref",15,null),o=m(t,"side",3,"top"),s=m(t,"sideOffset",3,0),a=m(t,"align",3,"center"),l=m(t,"avoidCollisions",3,!0),u=m(t,"arrowPadding",3,0),f=m(t,"sticky",3,"partial"),p=m(t,"hideWhenDetached",3,!1),g=m(t,"collisionPadding",3,0),d=m(t,"onInteractOutside",3,dt),h=m(t,"onEscapeKeydown",3,dt),v=m(t,"forceMount",3,!1),b=tt(t,["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","customAnchor","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","style"]);const w=qn.create({id:T(()=>n()),ref:T(()=>i(),L=>i(L)),onInteractOutside:T(()=>d()),onEscapeKeydown:T(()=>h())}),_=C(()=>({side:o(),sideOffset:s(),align:a(),avoidCollisions:l(),arrowPadding:u(),sticky:f(),hideWhenDetached:p(),collisionPadding:g(),strategy:t.strategy,customAnchor:t.customAnchor??w.root.triggerNode})),S=C(()=>pt(b,c(_),w.props));var A=E(),D=P(A);{var M=L=>{{const Y=(W,J)=>{let R=()=>J?.().props,I=()=>J?.().wrapperProps;const O=C(()=>pt(R(),{style:Ai("tooltip")},{style:t.style}));var j=E(),N=P(j);{var F=H=>{var Q=E(),nt=P(Q);{let ot=C(()=>({props:c(O),wrapperProps:I(),...w.snippetProps}));V(nt,()=>t.child,()=>c(ot))}y(H,Q)},K=H=>{var Q=pd();rt(Q,()=>({...I()}));var nt=X(Q);rt(nt,()=>({...c(O)}));var ot=X(nt);V(ot,()=>
13t.children??et),q(nt),q(Q),y(H,Q)};at(N,H=>{t.child?H(F):H(K,-1)})}y(W,j)};let k=C(()=>w.root.disableHoverableContent?"none":"auto");ju(L,ut(()=>c(S),()=>w.popperProps,{get enabled(){return w.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return w.opts.ref},tooltip:!0,get shouldRender(){return w.shouldRender},get contentPointerEvents(){return c(k)},popper:Y,$$slots:{popper:!0}}))}},z=L=>{{const Y=(W,J)=>{let R=()=>J?.().props,I=()=>J?.().wrapperProps;const O=C(()=>pt(R(),{style:Ai("tooltip")},{style:t.style}));var j=E(),N=P(j);{var F=H=>{var Q=E(),nt=P(Q);{let ot=C(()=>({props:c(O),wrapperProps:I(),...w.snippetProps}));V(nt,()=>t.child,()=>c(ot))}y(H,Q)},K=H=>{var Q=md();rt(Q,()=>({...I()}));var nt=X(Q);rt(nt,()=>({...c(O)}));var ot=X(nt);V(ot,()=>t.children??et),q(nt),q(Q),y(H,Q)};at(N,H=>{t.child?H(F):H(K,-1)})}y(W,j)};let k=C(()=>w.root.disableHoverableContent?"none":"auto");Ku(L,ut(()=>c(S),()=>w.popperProps,{get open(){return w.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return w.opts.ref},tooltip:!0,get shouldRender(){return w.shouldRender},get contentPointerEvents(){return c(k)},popper:Y,$$slots:{popper:!0}}))}};at(D,L=>{v()?L(M):v()||L(z,1)})}y(r,A),G()}var yd=B("<button><!></button>");function wd(r,t){const e=Mt();U(t,!0);let n=m(t,"id",19,()=>Nt(e)),i=m(t,"disabled",3,!1),o=m(t,"type",3,"button"),s=m(t,"tabindex",3,0),a=m(t,"ref",15,null),l=tt(t,["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]);const u=vr.create({id:T(()=>n()),disabled:T(()=>i()??!1),tabindex:T(()=>s()??0),payload:T(()=>t.payload),tether:T(()=>t.tether),ref:T(()=>a(),v=>a(v))}),f=C(()=>pt(l,u.props,{type:o()}));var p=E(),g=P(p);{var d=v=>{var b=E(),w=P(b);V(w,()=>t.child,()=>({props:c(f)})),y(v,b)},h=v=>{var b=yd();rt(b,()=>({...c(f)}));var w=X(b);V(w,()=>t.children??et),q(b),y(v,b)};at(g,v=>{t.child?v(d):v(h,-1)})}y(r,p),G()}function xd(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref"]);Fu(r,ut(()=>n,{get ref(){return e()},set ref(i){e(i)}})),G()}function Sd(r,t){U(t,!0);let e=m(t,"delayDuration",3,700),n=m(t,"disableCloseOnTriggerClick",3,!1),i=m(t,"disableHoverableContent",3,!1),o=m(t,"disabled",3,!1),s=m(t,"ignoreNonKeyboardFocus",3,!1),a=m(t,"skipDelayDuration",3,300);Gn.create({delayDuration:T(()=>e()),disableCloseOnTriggerClick:T(()=>n()),disableHoverableContent:T(()=>i()),disabled:T(()=>o()),ignoreNonKeyboardFocus:T(()=>s()),skipDelayDuration:T(()=>a())});var l=E(),u=P(l);V(u,()=>t.children??et),y(r,l),G()}var Pd=B("<div><!></div>");function Cd(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class"]);var i=Pd(),o=X(i);{let s=C(()=>gt("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-90 data-open:zoom-in-90 ring-foreground/10 rounded-lg shadow ring-1 duration-100 origin-top-center relative mt-1.5 h-[calc(var(--bits-navigation-menu-viewport-height)+1rem)] w-full overflow-hidden md:w-[calc(var(--bits-navigation-menu-viewport-width)+1rem)]",t.class));ft(o,()=>hd,(a,l)=>{l(a,ut({"data-slot":"navigation-menu-viewport",get class(){return c(s)}},()=>n,{get ref(){return e()},set ref(u){e(u)}}))})}q(i),Ct(s=>Vi(i,1,s),[()=>Wi(gt("absolute start-0 top-full isolate z-50 flex justify-center"))]),y(r,i),G()}var _d=B("<!> <!>",1);function Td(r,t){U(t,!0);let e=m(t,"ref",15,null),n=m(t,"viewport",3,!0),i=tt(t,["$$slots","$$events","$$legacy","ref","class","viewport","children"]);var o=E(),s=P(o);{let a=C(()=>gt("max-w-max group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t.class));ft(s,()=>nd,(l,u)=>{u(l,ut({"data-slot":"navigation-menu",get"data-viewport"(){return n()},get class(){return c(a)}},()=>i,{get ref(){return e()},set ref(f){e(f)},children:(f,p)=>{var g=_d(),d=P(g);V(d,()=>t.children??et);var h=it(d,2);{var v=b=>{Cd(b,{})};at(h,b=>{n()&&b(v)})}y(f,g)},$$slots:{default:!0}}))})}y(r,o),G()}function Oi(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class"]);var i=E(),o=P(i);{let s=C(()=>
13gt("cn-navigation-menu-item relative",t.class));ft(o,()=>ad,(a,l)=>{l(a,ut({"data-slot":"navigation-menu-item",get class(){return c(s)}},()=>n,{get ref(){return e()},set ref(u){e(u)}}))})}y(r,i),G()}function Ad(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class"]);var i=E(),o=P(i);{let s=C(()=>gt("gap-0 group flex flex-1 list-none items-center justify-center",t.class));ft(o,()=>ud,(a,l)=>{l(a,ut({"data-slot":"navigation-menu-list",get class(){return c(s)}},()=>n,{get ref(){return e()},set ref(u){e(u)}}))})}y(r,i),G()}var Ed=/\s+/g,Od=r=>typeof r!="string"||!r?r:r.replace(Ed," ").trim(),pr=(...r)=>{const t=[],e=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let o=0,s=n.length;o<s;o++)e(n[o]);return}const i=typeof n;if(i==="string"||i==="number"||i==="bigint"){if(i==="number"&&n!==n)return;t.push(String(n))}else if(i==="object"){const o=Object.keys(n);for(let s=0,a=o.length;s<a;s++){const l=o[s];n[l]&&t.push(l)}}};for(let n=0,i=r.length;n<i;n++){const o=r[n];o!=null&&e(o)}return t.length>0?Od(t.join(" ")):void 0},Ii=r=>r===!1?"false":r===!0?"true":r===0?"0":r,Et=r=>{if(!r||typeof r!="object")return!0;for(const t in r)return!1;return!0},Id=(r,t)=>{if(r===t)return!0;if(!r||!t)return!1;const e=Object.keys(r),n=Object.keys(t);if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){const o=e[i];if(!n.includes(o)||r[o]!==t[o])return!1}return!0},kd=(r,t)=>{for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];e in r?r[e]=pr(r[e],n):r[e]=n}return r},Ho=(r,t)=>{for(let e=0;e<r.length;e++){const n=r[e];Array.isArray(n)?Ho(n,t):n&&t.push(n)}},Ko=(...r)=>{const t=[];Ho(r,t);const e=[];for(let n=0;n<t.length;n++)t[n]&&e.push(t[n]);return e},an=(r,t)=>{const e={};for(const n in r){const i=r[n];if(n in t){const o=t[n];Array.isArray(i)||Array.isArray(o)?e[n]=Ko(o,i):typeof i=="object"&&typeof o=="object"&&i&&o?e[n]=an(i,o):e[n]=o+" "+i}else e[n]=i}for(const n in t)n in r||(e[n]=t[n]);return e},Md={twMerge:!0,twMergeConfig:{}};function Nd(){let r=null,t={},e=!1;return{get cachedTwMerge(){return r},set cachedTwMerge(n){r=n},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(n){t=n},get didTwMergeConfigChange(){return e},set didTwMergeConfigChange(n){e=n},reset(){r=null,t={},e=!1}}}var te=Nd(),Dd=r=>{const t=(n,i)=>{const{extend:o=null,slots:s={},variants:a={},compoundVariants:l=[],compoundSlots:u=[],defaultVariants:f={}}=n,p={...Md,...i},g=o?.base?pr(o.base,n?.base):n?.base,d=o?.variants&&!Et(o.variants)?an(a,o.variants):a,h=o?.defaultVariants&&!Et(o.defaultVariants)?{...o.defaultVariants,...f}:f;!Et(p.twMergeConfig)&&!Id(p.twMergeConfig,te.cachedTwMergeConfig)&&(te.didTwMergeConfigChange=!0,te.cachedTwMergeConfig=p.twMergeConfig);const v=Et(o?.slots),b=Et(s)?{}:{base:pr(n?.base,v&&o?.base),...s},w=v?b:kd({...o?.slots},Et(b)?{base:n?.base}:b),_=Et(o?.compoundVariants)?l:Ko(o?.compoundVariants,l),S=D=>{if(Et(d)&&Et(s)&&v)return r(g,D?.class,D?.className)(p);if(_&&!Array.isArray(_))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof _}`);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof u}`);const M=(I,O=d,j=null,N=null)=>{const F=O[I];if(!F||Et(F))return null;const K=N?.[I]??D?.[I];if(K===null)return null;const H=Ii(K);if(typeof H=="object")return null;const Q=h?.[I],nt=H??Ii(Q);return F[nt||"false"]}
13,z=()=>{if(!d)return null;const I=Object.keys(d),O=[];for(let j=0;j<I.length;j++){const N=M(I[j],d);N&&O.push(N)}return O},L=(I,O)=>{if(!d||typeof d!="object")return null;const j=[];for(const N in d){const F=M(N,d,I,O),K=I==="base"&&typeof F=="string"?F:F&&F[I];K&&j.push(K)}return j},Y={};for(const I in D){const O=D[I];O!==void 0&&(Y[I]=O)}const k=(I,O)=>{const j=typeof D?.[I]=="object"?{[I]:D[I]?.initial}:{};return{...h,...Y,...j,...O}},W=(I=[],O)=>{const j=[],N=I.length;for(let F=0;F<N;F++){const{class:K,className:H,...Q}=I[F];let nt=!0;const ot=k(null,O);for(const ht in Q){const lt=Q[ht],vt=ot[ht];if(Array.isArray(lt)){if(!lt.includes(vt)){nt=!1;break}}else{if((lt==null||lt===!1)&&(vt==null||vt===!1))continue;if(vt!==lt){nt=!1;break}}}nt&&(K&&j.push(K),H&&j.push(H))}return j},J=I=>{const O=W(_,I);if(!Array.isArray(O))return O;const j={},N=r;for(let F=0;F<O.length;F++){const K=O[F];if(typeof K=="string")j.base=N(j.base,K)(p);else if(typeof K=="object")for(const H in K)j[H]=N(j[H],K[H])(p)}return j},R=I=>{if(u.length<1)return null;const O={},j=k(null,I);for(let N=0;N<u.length;N++){const{slots:F=[],class:K,className:H,...Q}=u[N];if(!Et(Q)){let nt=!0;for(const ot in Q){const ht=j[ot],lt=Q[ot];if(ht===void 0||(Array.isArray(lt)?!lt.includes(ht):lt!==ht)){nt=!1;break}}if(!nt)continue}for(let nt=0;nt<F.length;nt++){const ot=F[nt];O[ot]||(O[ot]=[]),O[ot].push([K,H])}}return O};if(!Et(s)||!v){const I={};if(typeof w=="object"&&!Et(w)){const O=r;for(const j in w)I[j]=N=>{const F=J(N),K=R(N);return O(w[j],L(j,N),F?F[j]:void 0,K?K[j]:void 0,N?.class,N?.className)(p)}}return I}return r(g,z(),W(_),D?.class,D?.className)(p)},A=()=>{if(!(!d||typeof d!="object"))return Object.keys(d)};return S.variantKeys=A(),S.extend=o,S.base=g,S.slots=w,S.variants=d,S.defaultVariants=h,S.compoundSlots=u,S.compoundVariants=_,S};return{tv:t,createTV:n=>(i,o)=>t(i,o?an(n,o):n)}},Fd=r=>Et(r)?ks:Ms({...r,extend:{theme:r.theme,classGroups:r.classGroups,conflictingClassGroupModifiers:r.conflictingClassGroupModifiers,conflictingClassGroups:r.conflictingClassGroups,...r.extend}}),Rd=(r,t)=>{const e=pr(r);return!e||!(t?.twMerge??!0)?e:((!te.cachedTwMerge||te.didTwMergeConfigChange)&&(te.didTwMergeConfigChange=!1,te.cachedTwMerge=Fd(te.cachedTwMergeConfig)),te.cachedTwMerge(e)||void 0)},Ld=(...r)=>t=>Rd(r,t),{tv:jo}=Dd(Ld);const ki=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function Bd(r,t){const e=(n,i)=>{const{color:o="currentColor",size:s=24,strokeWidth:a,absoluteStrokeWidth:l=!1,class:u="",altIcon:f,showAlt:p=!1,...g}=i,d={xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",color:o,class:u,...g},h=p&&f?f:t,v=a!==void 0?l?a*(24/Number(s)):a:void 0;Object.entries(d).forEach(([b,w])=>{n.setAttribute(ki(b),String(w))}),n.innerHTML="",h.forEach(([b,w])=>{const _=document.createElementNS("http://www.w3.org/2000/svg",b),S={...w};v!==void 0&&(S["stroke-width"]=v,S.stroke="currentColor"),Object.entries(S).forEach(([A,D])=>{_.setAttribute(ki(A),String(D))}),n.appendChild(_)})};return{render(n,i){return e(n,i),{update(o){e(n,o)},destroy(){n.innerHTML=""}}}}}var zd=ln("<svg></svg>");function Uo(r,t){U(t,!0);let e=m(t,"size",3,24),n=m(t,"absoluteStrokeWidth",3,!1),i=m(t,"color",3,"currentColor"),o=m(t,"showAlt",3,!1),s=m(t,"class",3,""),a=m(t,"className",3,""),l=tt(t,["$$slots","$$events","$$legacy","icon","altIcon","size","strokeWidth","absoluteStrokeWidth","color","showAlt","class","className"]);const u=C(()=>s()||a());let f,p=Z(void 0),g=Z(void 0);const d=C(()=>({size:e(),strokeWidth:t.strokeWidth,absoluteStrokeWidth:n(),color:i(),altIcon:t.altIcon,showAlt:o(),class:c(u)}));dn(()=>{if(f)return x(p,Bd("HugeiconsIcon",t.icon),!0),x(g,c(p).render(f,c(d)),!0),()=>{c(g)?.destroy()}}),Pt(()=>{c(p)&&f&&c(g)&&c(g).update(c(d))});var h=zd();rt(h,()=>({xmlns:"http://www.w3.org/2000/svg",width:e(),height:e(),viewBox:"0 0 24 24",fill:"none",class:c(u),...l})),At(h,v=>f=v,()=>f),y(r,h),G()}const Wd=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],Vd=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91554C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91554C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 3L9.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5 7H6M5 10H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],Mi=jo({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 active:not-aria-[haspopup]:translate-y-
13px aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",destructive:"bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});var Hd=B("<a><!></a>"),Kd=B("<button><!></button>");function mr(r,t){U(t,!0);let e=m(t,"variant",3,"default"),n=m(t,"size",3,"default"),i=m(t,"ref",15,null),o=m(t,"href",3,void 0),s=m(t,"type",3,"button"),a=tt(t,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var l=E(),u=P(l);{var f=g=>{var d=Hd();rt(d,v=>({"data-slot":"button",class:v,href:t.disabled?void 0:o(),"aria-disabled":t.disabled,role:t.disabled?"link":void 0,tabindex:t.disabled?-1:void 0,...a}),[()=>gt(Mi({variant:e(),size:n()}),t.class)]);var h=X(d);V(h,()=>t.children??et),q(d),At(d,v=>i(v),()=>i()),y(g,d)},p=g=>{var d=Kd();rt(d,v=>({"data-slot":"button",class:v,type:s(),disabled:t.disabled,...a}),[()=>gt(Mi({variant:e(),size:n()}),t.class)]);var h=X(d);V(h,()=>t.children??et),q(d),At(d,v=>i(v),()=>i()),y(g,d)};at(u,g=>{o()?g(f):g(p,-1)})}y(r,l),G()}function jd(r,t){U(t,!0);let e=m(t,"ref",15,null),n=m(t,"data-slot",3,"separator"),i=tt(t,["$$slots","$$events","$$legacy","ref","class","data-slot"]);var o=E(),s=P(o);{let a=C(()=>gt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px","data-[orientation=vertical]:h-full",t.class));ft(s,()=>Wu,(l,u)=>{u(l,ut({get"data-slot"(){return n()},get class(){return c(a)}},()=>i,{get ref(){return e()},set ref(f){e(f)}}))})}y(r,o),G()}const Ud={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 Gd=ln("<svg><!><!></svg>");function Go(r,t){U(t,!0);const e=m(t,"color",3,"currentColor"),n=m(t,"size",3,24),i=m(t,"strokeWidth",3,2),o=m(t,"absoluteStrokeWidth",3,!1),s=m(t,"iconNode",19,()=>[]),a=tt(t,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]);var l=Gd();rt(l,p=>({...Ud,...a,width:n(),height:n(),stroke:e(),"stroke-width":p,class:["lucide-icon lucide",t.name&&`lucide-${t.name}`,t.class]}),[()=>o()?Number(i())*24/Number(n()):i()]);var u=X(l);Wt(u,17,s,zt,(p,g)=>{var d=C(()=>As(c(g),2));let h=()=>c(d)[0],v=()=>c(d)[1];var b=E(),w=P(b);js(w,h,!0,(_,S)=>{rt(_,()=>({...v()}))}),y(p,b)});var f=it(u);V(f,()=>
13t.children??et),q(l),y(r,l),G()}function Xd(r,t){U(t,!0);let e=tt(t,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];Go(r,ut({name:"sun"},()=>e,{get iconNode(){return n},children:(i,o)=>{var s=E(),a=P(s);V(a,()=>t.children??et),y(i,s)},$$slots:{default:!0}})),G()}function qd(r,t){U(t,!0);let e=tt(t,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]];Go(r,ut({name:"moon"},()=>e,{get iconNode(){return n},children:(i,o)=>{var s=E(),a=P(s);V(a,()=>t.children??et),y(i,s)},$$slots:{default:!0}})),G()}const Yd=768;class Zd extends Gi{constructor(t=Yd){super(`max-width: ${t-1}px`)}}const Jd="sidebar:state",Qd=3600*24*7,$d="16rem",tf="18rem",ef="3rem",rf="b";class nf{props;#t=C(()=>this.props.open());get open(){return c(this.#t)}set open(t){x(this.#t,t)}#e=Z(!1);get openMobile(){return c(this.#e)}
13set openMobile(t){x(this.#e,t,!0)}setOpen;#r;#n=C(()=>this.open?"expanded":"collapsed");get state(){return c(this.#n)}set state(t){x(this.#n,t)}constructor(t){this.setOpen=t.setOpen,this.#r=new Zd,this.props=t}get isMobile(){return this.#r.current}handleShortcutKeydown=t=>{t.key===rf&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.toggle())};setOpenMobile=t=>{this.openMobile=t};toggle=()=>this.#r.current?this.openMobile=!this.openMobile:this.setOpen(!this.open)}const Xo="scn-sidebar";function of(r){return zi(Symbol.for(Xo),new nf(r))}function Yn(){return Vr(Symbol.for(Xo))}var sf=B("<div><!></div>");function af(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=sf();rt(i,s=>({"data-slot":"sidebar-content","data-sidebar":"content",class:s,...n}),[()=>gt("no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",t.class)]);var o=X(i);V(o,()=>t.children??et),q(i),At(i,s=>e(s),()=>e()),y(r,i),G()}var lf=B("<div><!></div>");function qt(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=lf();rt(i,s=>({"data-slot":"sidebar-group-content","data-sidebar":"group-content",class:s,...n}),[()=>gt("text-sm w-full",t.class)]);var o=X(i);V(o,()=>t.children??et),q(i),At(i,s=>e(s),()=>e()),y(r,i),G()}var cf=B("<div><!></div>");function Yt(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","children","child","class"]);const i=C(()=>({class:gt("text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0",t.class),"data-slot":"sidebar-group-label","data-sidebar":"group-label",...n}));var o=E(),s=P(o);{var a=u=>{var f=E(),p=P(f);V(p,()=>t.child,()=>({props:c(i)})),y(u,f)},l=u=>{var f=cf();rt(f,()=>({...c(i)}));var p=X(f);V(p,()=>t.children??et),q(f),At(f,g=>e(g),()=>e()),y(u,f)};at(s,u=>{t.child?u(a):u(l,-1)})}y(r,o),G()}var uf=B("<div><!></div>");function Zt(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=uf();rt(i,s=>({"data-slot":"sidebar-group","data-sidebar":"group",class:s,...n}),[()=>gt("p-2 relative flex w-full min-w-0 flex-col",t.class)]);var o=X(i);V(o,()=>t.children??et),q(i),At(i,s=>e(s),()=>e()),y(r,i),G()}var df=B("<main><!></main>");function ff(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=df();rt(i,s=>({"data-slot":"sidebar-inset",class:s,...n}),[()=>gt("bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 relative flex w-full flex-1 flex-col",t.class)]);var o=X(i);V(o,()=>t.children??et),q(i),At(i,s=>e(s),()=>e()),y(r,i),G()}function hf(r,t){U(t,!0);let e=m(t,"open",15,!1),n=tt(t,["$$slots","$$events","$$legacy","open"]);var i=E(),o=P(i);ft(o,()=>vd,(s,a)=>{a(s,ut(()=>n,{get open(){return e()},set open(l){e(l)}}))}),y(r,i),G()}function gf(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref"]);var i=E(),o=P(i);ft(o,()=>wd,(s,a)=>{a(s,ut({"data-slot":"tooltip-trigger"},()=>n,{get ref(){return e()},set ref(l){e(l)}}))}),y(r,i),G()}function vf(r,t){let e=tt(t,["$$slots","$$events","$$legacy"]);var n=E(),i=P(n);ft(i,()=>co,(o,s)=>{s(o,ut(()=>e))}),y(r,n)}var pf=B("<div></div>"),mf=B("<!> <!>",1);function bf(r,t){U(t,!0);let e=m(t,"ref",15,null),n=m(t,"sideOffset",3,0),i=m(t,"side",3,"top"),o=tt(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","side","children","arrowClasses","portalProps"]);vf(r,ut(()=>t.portalProps,{children:(s,a)=>{var l=E(),u=P(l);{let f=C(()=>gt("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
13de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm bg-foreground text-background z-50 w-fit max-w-xs origin-(--bits-tooltip-content-transform-origin)",t.class));ft(u,()=>bd,(p,g)=>{g(p,ut({"data-slot":"tooltip-content",get sideOffset(){return n()},get side(){return i()},get class(){return c(f)}},()=>o,{get ref(){return e()},set ref(d){e(d)},children:(d,h)=>{var v=mf(),b=P(v);V(b,()=>t.children??et);var w=it(b,2);{const _=(S,A)=>{let D=()=>A?.().props;var M=pf();rt(M,z=>({class:z,...D()}),[()=>gt("size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground z-50","data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%+2px)]","data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(-50%+1px)]","data-[side=right]:translate-x-[calc(50%+2px)] data-[side=right]:translate-y-1/2","data-[side=left]:-translate-y-[calc(50%-3px)]",t.arrowClasses)]),y(S,M)};ft(w,()=>xd,(S,A)=>{A(S,{child:_,$$slots:{child:!0}})})}y(d,v)},$$slots:{default:!0}}))})}y(s,l)},$$slots:{default:!0}})),G()}function yf(r,t){let e=m(t,"delayDuration",3,0),n=tt(t,["$$slots","$$events","$$legacy","delayDuration"]);var i=E(),o=P(i);ft(o,()=>Sd,(s,a)=>{a(s,ut({get delayDuration(){return e()}},()=>n))}),y(r,i)}const wf=jo({base:"ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-md p-2 text-left text-sm transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button group/menu-button flex w-full items-center overflow-hidden outline-hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});var xf=B("<button><!></button>"),Sf=B("<!> <!>",1);function Jt(r,t){U(t,!0);const e=(h,v)=>{let b=()=>v?.().props;const w=C(()=>pt(c(u),b()));var _=E(),S=P(_);{var A=M=>{var z=E(),L=P(z);V(L,()=>t.child,()=>({props:c(w)})),y(M,z)},D=M=>{var z=xf();rt(z,()=>({...c(w)}));var L=X(z);V(L,()=>t.children??et),q(z),At(z,Y=>n(Y),()=>n()),y(M,z)};at(S,M=>{t.child?M(A):M(D,-1)})}y(h,_)};let n=m(t,"ref",15,null),i=m(t,"variant",3,"default"),o=m(t,"size",3,"default"),s=m(t,"isActive",3,!1),a=tt(t,["$$slots","$$events","$$legacy","ref","class","children","child","variant","size","isActive","tooltipContent","tooltipContentProps"]);const l=Yn(),u=C(()=>({class:gt(wf({variant:i(),size:o()}),t.class),"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":o(),"data-active":s(),...a}));var f=E(),p=P(f);{var g=h=>{e(h,()=>({}))},d=h=>{var v=E(),b=P(v);ft(b,()=>hf,(w,_)=>{_(w,{children:(S,A)=>{var D=Sf(),M=P(D);{const L=(Y,k)=>{let W=()=>k?.().props;e(Y,()=>({props:W()}))};ft(M,()=>gf,(Y,k)=>{k(Y,{child:L,$$slots:{child:!0}})})}var z=it(M,2);{let L=C(()=>l.state!=="collapsed"||l.isMobile);ft(z,()=>bf,(Y,k)=>{k(Y,ut({side:"right",align:"center",get hidden(){return c(L)}},()=>t.tooltipContentProps,{children:(W,J)=>{var R=E(),I=P(R);{var O=N=>{var F=Ot();Ct(()=>Bt(F,t.tooltipContent)),y(N,F)},j=N=>{var F=E(),K=P(F);V(K,()=>t.tooltipContent),y(N,F)};at(I,N=>{typeof t.tooltipContent=="string"?N(O):t.tooltipContent&&N(j,1)})}y(W,R)},$$slots:{default:!0}}
13))})}y(S,D)},$$slots:{default:!0}})}),y(h,v)};at(p,h=>{t.tooltipContent?h(d,-1):h(g)})}y(r,f),G()}var Pf=B("<li><!></li>");function Qt(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=Pf();rt(i,s=>({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",class:s,...n}),[()=>gt("group/menu-item relative",t.class)]);var o=X(i);V(o,()=>t.children??et),q(i),At(i,s=>e(s),()=>e()),y(r,i),G()}var Cf=B("<ul><!></ul>");function $t(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=Cf();rt(i,s=>({"data-slot":"sidebar-menu","data-sidebar":"menu",class:s,...n}),[()=>gt("gap-0 flex w-full min-w-0 flex-col",t.class)]);var o=X(i);V(o,()=>t.children??et),q(i),At(i,s=>e(s),()=>e()),y(r,i),G()}var _f=B("<div><!></div>");function Tf(r,t){U(t,!0);let e=m(t,"ref",15,null),n=m(t,"open",15,!0),i=m(t,"onOpenChange",3,()=>{}),o=tt(t,["$$slots","$$events","$$legacy","ref","open","onOpenChange","class","style","children"]);const s=of({open:()=>n(),setOpen:u=>{n(u),i()(u),document.cookie=`${Jd}=${n()}; path=/; max-age=${Qd}`}});var a=E();Rs("keydown",Es,function(...u){s.handleShortcutKeydown?.apply(this,u)});var l=P(a);ft(l,()=>yf,(u,f)=>{f(u,{delayDuration:0,children:(p,g)=>{var d=_f();rt(d,v=>({"data-slot":"sidebar-wrapper",style:`--sidebar-width: ${$d}; --sidebar-width-icon: ${ef}; ${t.style??""}`,class:v,...o}),[()=>gt("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",t.class)]);var h=X(d);V(h,()=>t.children??et),q(d),At(d,v=>e(v),()=>e()),y(p,d)},$$slots:{default:!0}})}),y(r,a),G()}var Af=B('<!> <span class="sr-only">Toggle Sidebar</span>',1);function Ef(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class","onclick"]);const i=Yn();{let o=C(()=>gt("cn-sidebar-trigger",t.class));mr(r,ut({"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",get class(){return c(o)},type:"button",onclick:s=>{t.onclick?.(s),i.toggle()}},()=>n,{get ref(){return e()},set ref(s){e(s)},children:(s,a)=>{var l=Af(),u=P(l);Uo(u,{get icon(){return Vd},strokeWidth:2}),_t(2),y(s,l)},$$slots:{default:!0}}))}G()}function Of(r,t){U(t,!0);let e=m(t,"open",15,!1),n=tt(t,["$$slots","$$events","$$legacy","open"]);var i=E(),o=P(i);ft(o,()=>Gu,(s,a)=>{a(s,ut(()=>n,{get open(){return e()},set open(l){e(l)}}))}),y(r,i),G()}function If(r,t){let e=tt(t,["$$slots","$$events","$$legacy"]);var n=E(),i=P(n);ft(i,()=>co,(o,s)=>{s(o,ut(()=>e))}),y(r,n)}function kf(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class"]);var i=E(),o=P(i);{let s=C(()=>gt("bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",t.class));ft(o,()=>Ec,(a,l)=>{l(a,ut({"data-slot":"sheet-overlay",get class(){return c(s)}},()=>n,{get ref(){return e()},set ref(u){e(u)}}))})}y(r,i),G()}var Mf=B('<!> <span class="sr-only">Close</span>',1),Nf=B("<!> <!>",1),Df=B("<!> <!>",1);function Ff(r,t){U(t,!0);let e=m(t,"ref",15,null),n=m(t,"side",3,"right"),i=m(t,"showCloseButton",3,!0),o=tt(t,["$$slots","$$events","$$legacy","ref","class","side","showCloseButton","portalProps","children"]);If(r,ut(()=>t.portalProps,{children:(s,a)=>{var l=Df(),u=P(l);kf(u,{});var f=it(u,2);{let p=C(()=>gt("bg-popover text-popover-foreground fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:sli
13de-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",t.class));ft(f,()=>Ju,(g,d)=>{d(g,ut({"data-slot":"sheet-content",get"data-side"(){return n()},get class(){return c(p)}},()=>o,{get ref(){return e()},set ref(h){e(h)},children:(h,v)=>{var b=Nf(),w=P(b);V(w,()=>t.children??et);var _=it(w,2);{var S=A=>{var D=E(),M=P(D);{const z=(L,Y)=>{mr(L,ut({variant:"ghost",class:"absolute top-3 right-3",size:"icon-sm"},()=>Y?.().props,{children:(W,J)=>{var R=Mf(),I=P(R);Uo(I,{get icon(){return Wd},strokeWidth:2}),_t(2),y(W,R)},$$slots:{default:!0}}))};ft(M,()=>qu,(L,Y)=>{Y(L,{"data-slot":"sheet-close",child:z,$$slots:{child:!0}})})}y(A,D)};at(_,A=>{i()&&A(S)})}y(h,b)},$$slots:{default:!0}}))})}y(s,l)},$$slots:{default:!0}})),G()}var Rf=B("<div><!></div>");function Lf(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class","children"]);var i=Rf();rt(i,s=>({"data-slot":"sheet-header",class:s,...n}),[()=>gt("gap-0.5 p-4 flex flex-col",t.class)]);var o=X(i);V(o,()=>t.children??et),q(i),At(i,s=>e(s),()=>e()),y(r,i),G()}function Bf(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class"]);var i=E(),o=P(i);{let s=C(()=>gt("text-foreground text-base font-medium",t.class));ft(o,()=>Hl,(a,l)=>{l(a,ut({"data-slot":"sheet-title",get class(){return c(s)}},()=>n,{get ref(){return e()},set ref(u){e(u)}}))})}y(r,i),G()}function zf(r,t){U(t,!0);let e=m(t,"ref",15,null),n=tt(t,["$$slots","$$events","$$legacy","ref","class"]);var i=E(),o=P(i);{let s=C(()=>gt("text-muted-foreground text-sm",t.class));ft(o,()=>Ic,(a,l)=>{l(a,ut({"data-slot":"sheet-description",get class(){return c(s)}},()=>n,{get ref(){return e()},set ref(u){e(u)}}))})}y(r,i),G()}var Wf=B("<div><!></div>"),Vf=B("<!> <!>",1),Hf=B('<!> <div class="flex h-full w-full flex-col"><!></div>',1),Kf=B('<div class="text-sidebar-foreground group peer hidden md:block" data-slot="sidebar"><div data-slot="sidebar-gap"></div> <div><div data-sidebar="sidebar" data-slot="sidebar-inner" class="bg-sidebar group-data-[variant=floating]:ring-sidebar-border group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 flex size-full flex-col"><!></div></div></div>');function jf(r,t){U(t,!0);let e=m(t,"ref",15,null),n=m(t,"side",3,"left"),i=m(t,"variant",3,"sidebar"),o=m(t,"collapsible",3,"offcanvas"),s=tt(t,["$$slots","$$events","$$legacy","ref","side","variant","collapsible","class","children"]);const a=Yn();var l=E(),u=P(l);{var f=d=>{var h=Wf();rt(h,b=>({class:b,...s}),[()=>gt("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",t.class)]);var v=X(h);V(v,()=>t.children??et),q(h),At(h,b=>e(b),()=>e()),y(d,h)},p=d=>{var h=E(),v=P(h),b=()=>a.openMobile,w=_=>a.setOpenMobile(_);ft(v,()=>Of,(_,S)=>{S(_,ut({get open(){return b()},set open(A){w(A)}},()=>s,{children:(A,D)=>{var M=E(),z=P(M);{let L=C(()=>gt("bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",t.class));ft(z,()=>Ff,(Y,k)=>{k(Y,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",get class(){return c(L)},get style(){return`--sidebar-width: ${tf};`},get side(){return n()},get ref(){return e()},set ref(W){e(W)},children:(W,J)=>{var R=Hf(),I=P(R);ft(I,()=>Lf,(N,F)=>{F(N,{class:"sr-only",children:(K,H)=>{var Q=Vf(),nt=P(Q);ft(nt,()=>Bf,(ht,lt)=>{lt(ht,{children:(vt,$)=>{_t();var ct=Ot("Sidebar");y(vt,ct)},$$slots:{default:!0}})});var ot=it(nt,2);ft(ot,()=>zf,(ht,lt)=>{lt(ht,{children:(vt,$)=>{_t();var ct=Ot("Displays the mobile sidebar.");y(vt,ct)},$$slots:{default:!0}})}),y(K,Q)},$$slots:{default:!0}})});var O=it(I,2),j=X(O);V(j,()=>t.children??et),q(O),y(W,R)},$$slots:{default:!0}})})}y(A,M)},$$slots:{default:!0}}))}),y(d,h)},g=d=>{var h=Kf(),v=X(h),b=it(v,2);rt(b,S=>({"data-slot":"sidebar-container",class:S,...s}),[()=>gt("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",n()==="left"?"start-0 group-data-[collapsible=offcanvas]:start-[calc(var(--sidebar-width)*-1)]":"end-0 group-data-[collapsible=offcanvas]:en
13d-[calc(var(--sidebar-width)*-1)]",i()==="floating"||i()==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",t.class)]);var w=X(b),_=X(w);V(_,()=>t.children??et),q(w),q(b),q(h),At(h,S=>e(S),()=>e()),Ct(S=>{ee(h,"data-state",a.state),ee(h,"data-collapsible",a.state==="collapsed"?o():""),ee(h,"data-variant",i()),ee(h,"data-side",n()),Vi(v,1,S)},[()=>Wi(gt("transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",i()==="floating"||i()==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)"))]),y(d,h)};at(u,d=>{o()==="none"?d(f):a.isMobile?d(p,1):d(g,-1)})}y(r,l),G()}var Uf=B("<a><span> </span></a>"),Gf=B("<!> <!>",1),Xf=B("<a><span> </span></a>"),qf=B("<!> <!>",1),Yf=B("<a><span> </span></a>"),Zf=B("<!> <!>",1),Jf=B("<a><span> </span></a>"),Qf=B("<!> <!>",1),$f=B("<a><span> </span></a>"),th=B("<!> <!>",1),eh=B("<a><span> </span></a>"),rh=B("<!> <!>",1),nh=B("<a><span> </span></a>"),ih=B("<!> <!>",1),oh=B("<a><span> </span></a>"),sh=B("<!> <!>",1),ah=B("<a><span> </span></a>"),lh=B("<!> <!>",1),ch=B("<!> <!> <!> <!> <!> <!> <!> <!> <!>",1);function uh(r){const t=[{title:"Home",url:"/"},{title:"Direct Downloads",url:st+"/General/ddl"},{title:"Torrents",url:st+"/General/torrents"},{title:"Preservation",url:st+"/General/preservation"},{title:"Other",url:st+"/General/other"}],e=[{title:"About RVZ files",url:st+"/Populars/about-rvz-files"},{title:"Metroid",url:st+"/Populars/metroid"},{title:"Mario",url:st+"/Populars/mario"},{title:"Fire Emblem",url:st+"/Populars/fire-emblem"},{title:"The Legend of Zelda",url:st+"/Populars/zelda"},{title:"Pokemon",url:st+"/Populars/pokemon"},{title:"Persona",url:st+"/Populars/persona"},{title:"Super Smash Bros",url:st+"/Populars/super-smash-bros"},{title:"Xenoblade",url:st+"/Populars/xenoblade"}],n=[{title:"Nintendo Games",url:st+"/Nintendo/nintendo-games"},{title:"Nintendo DS",url:st+"/Nintendo/nintendo-ds"},{title:"Nintendo 3DS",url:st+"/Nintendo/nintendo-3ds"},{title:"Nintendo GameCube",url:st+"/Nintendo/nintendo-gamecube"},{title:"Nintendo Wii",url:st+"/Nintendo/nintendo-wii"},{title:"Nintendo Wii U",url:st+"/Nintendo/nintendo-wii-u"}],i=[{title:"NoPayStation",url:st+"/Sony/nopaystation"},{title:"Sony Playstation",url:st+"/Sony/sony-playstation"},{title:"Sony Playstation 2",url:st+"/Sony/sony-playstation-2"},{title:"Sony Playstation Portable",url:st+"/Sony/sony-playstation-portable"},{title:"Sony Playstation 3",url:st+"/Sony/sony-playstation-3"},{title:"Sony Playstation Vita",url:st+"/Sony/sony-playstation-vita"}],o=[{title:"Microsoft Xbox",url:st+"/Microsoft/microsoft-xbox"},{title:"Microsoft Xbox 360",url:st+"/Microsoft/microsoft-xbox360"}],s=[{title:"Sega Games",url:st+"/Sega/sega-games"},{title:"Sega Dreamcast",url:st+"/Sega/sega-dreamcast"},{title:"Sega Saturn",url:st+"/Sega/sega-saturn"},{title:"Sega CD",url:st+"/Sega/sega-cd"}],a=[{title:"Retro Games",url:st+"/Retro & Arcade/retro-games"},{title:"Arcade",url:st+"/Retro & Arcade/arcade"}],l=[{title:"PC Games",url:st+"/PC/pc-games"}],u=[{title:"ROM Sets",url:st+"/Miscellaneous/rom-sets"},{title:"BIOS Sets",url:st+"/Miscellaneous/bios-sets"},{title:"Other",url:st+"/Miscellaneous/other"}];jf(r,{collapsible:"offcanvas",children:(f,p)=>{af(f,{children:(g,d)=>{var h=ch(),v=P(h);Zt(v,{children:(L,Y)=>{var k=Gf(),W=P(k);Yt(W,{children:(R,I)=>{_t();var O=Ot("General");y(R,O)},$$slots:{default:!0}});var J=it(W,2);qt(J,{children:(R,I)=>{$t(R,{children:(O,j)=>{var N=E(),F=P(N);Wt(F,1,()=>t,zt,(K,H)=>{Qt(K,{children:(Q,nt)=>{Jt(Q,{child:(ht,lt)=>{let vt=()=>lt?.().props;var $=Uf();rt($,()=>({href:c(H).url,...vt()}));var ct=X($),wt=X(ct,!0);q(ct),q($),Ct(()=>Bt(wt,c(H).title)),y(ht,$)},$$slots:{child:!0}})},$$slots:{default:!0}})}),y(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(L,k)},$$slots:{default:!0}});var b=it(v,2);Zt(b,{children:(L,Y)=>{var k=qf(),W=P(k);Yt(W,{children:(R,I)=>{_t();var O=Ot("Popular");y(R,O)},$$slots:{default:!0}});var J=it(W,2);qt(J,{children:(R,I)=>{$t(R,{children:(O,j)=>{var N=E(),F=P(N);Wt(F,1,()=>e,zt,(K,H)=>{Qt(K,{children:(Q,nt)=>{Jt(Q,{child:(ht,lt)=>{let vt=()=>lt?.().props;var $=Xf();rt($,()=>({href:c(H).url,...vt()}));var ct=X($),wt=X(ct,!0);q(ct),q($),Ct(()=>Bt(wt,c(H).title)),y(ht,$)},$$slots:{child:!0}})},$$slots:{default:!0}})}),y(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(L,k)},$$slots:{default:!0}});var w=it(b,2);Zt(w,{children:(L,Y)=>{var k=Zf(),W=P(k);Yt(W,{children:(R,I)=>{_t();var O=Ot("Nintendo");y(R,O)},$$slots:{default:!0}});var J=it(W,2);qt(J,{children:(R,I)=>{$t(R,{children:(O,j)=>{var N=E(),F=P(N);Wt(F,1,()=>n,zt,(K,H)=>{Qt(K,{children:(Q,nt)=>{Jt(Q,{child:(ht,lt)=>{let vt=()=>lt?.().props;var $=Yf();rt($,()=>({href:c(H).url,...vt()}));var ct=X($),wt=X(ct,!0);q(ct),q($),Ct(()=>Bt(wt,c(H).title)),y(ht,$)},$$slots:{child:!0}})},$$slots:{default:!0}})}),y(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(L,k)},$$slots:{default:!0}});var _=it(w,2);Zt(_,{children:(L,Y)=>{var k=Qf(),W=P(k);Yt(W,{children:(R,I)=>{_t();var O=Ot("Sony");y(R,O)},$$slots:{default:!0}});var J=it(W,2);qt(J,{children:(R,I)=>{$t(R,{children:(O,j)=>{var N=E(),F=P(N);Wt(F,1,()=>i,zt,(K,H)=>{Qt(K,{children:(Q,nt)=>{Jt(Q,{child:(ht,lt)=>{let vt=()=>lt?.().props;var $=Jf();rt($,()=>({href:c(H).url,...vt()}));var ct=X($),wt=X(ct,!0);q(ct),q($),Ct(()=>Bt(wt,c(H).title)),y(ht,$)},$$slots:{child:!0}})},$$slots:{default:!0}})}),y(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(L,k)},$$slots:{default:!0}});var S=it(_,2);Zt(S,{children:(L,Y)=>{var k=th(),W=P(k);Yt(W,{children:(R,I)=>{_t();var O=Ot("Microsoft");y(R,O)},$$slots:{default:!0}});var J=it(W,2);qt(J,{children:(R,I)=>{$t(R,{children:(O,j)=>{var N=E(),F=P(N);Wt(F,1,()=>o,zt,(K,H)=>{Qt(K,{children:(Q,nt)=>{Jt(Q,{child:(ht,lt)=>{let vt=()=>lt?.().props;var $=$f();rt($,()=>({href:c(H).url,...vt()}));var ct=X($),wt=X(ct,!0);q(ct),q($),Ct(()=>Bt(wt,c(H).title)),y(ht,$)},$$slots:{child:!0}})},$$slots:{default:!0}})}),y(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(L,k)},$$slots:{default:!0}});var A=it(S,2);Zt(A,{children:(L,Y)=>{var k=rh(),W=P(k);Yt(W,{children:(R,I)=>{_t();var O=Ot("Sega");y(R,O)},$$slots:{default:!0}});var J=it(W,2);qt(J,{children:(R,I)=>{$t(R,{children:(O,j)=>{var N=E(),F=P(N);Wt(F,1,()=>s,zt,(K,H)=>{Qt(K,{children:(Q,nt)=>{Jt(Q,{child:(ht,lt)=>{let vt=()=>lt?.().props;var $=eh();rt($,()=>({href:c(H).url,...vt()}));var ct=X($),wt=X(ct,!0);q(ct),q($),Ct(()=>Bt(wt,c(H).title)),y(ht,$)},$$slots:{child:!0}})},$$slots:{default:!0}})}),y(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(L,k)},$$slots:{default:!0}});var D=it(A,2);Zt(D,{children:(L,Y)=>{var k=ih(),W=P(k);Yt(W,{children:(R,I)=>{_t();var O=Ot("Retro & Arcade");y(R,O)},$$slots:{default:!0}});var J=it(W,2);qt(J,{children:(R,I)=>{$t(R,{children:(O,j)=>{var N=E(),F=P(N);Wt(F,1,()=>a,zt,(K,H)=>{Qt(K,{children:(Q,nt)=>{Jt(Q,{child:(ht,lt)=>{let vt=()=>lt?.().props;var $=nh();rt($,()=>({href:c(H).url,...vt()}));var ct=X($),wt=X(ct,!0);q(ct),q($),Ct(()=>Bt(wt,c(H).title)),y(ht,$)},$$slots:{child:!0}})},$$slots:{default:!0}})}),y(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(L,k)},$$slots:{default:!0}});var M=it(D,2);
13Zt(M,{children:(L,Y)=>{var k=sh(),W=P(k);Yt(W,{children:(R,I)=>{_t();var O=Ot("PC");y(R,O)},$$slots:{default:!0}});var J=it(W,2);qt(J,{children:(R,I)=>{$t(R,{children:(O,j)=>{var N=E(),F=P(N);Wt(F,1,()=>l,zt,(K,H)=>{Qt(K,{children:(Q,nt)=>{Jt(Q,{child:(ht,lt)=>{let vt=()=>lt?.().props;var $=oh();rt($,()=>({href:c(H).url,...vt()}));var ct=X($),wt=X(ct,!0);q(ct),q($),Ct(()=>Bt(wt,c(H).title)),y(ht,$)},$$slots:{child:!0}})},$$slots:{default:!0}})}),y(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(L,k)},$$slots:{default:!0}});var z=it(M,2);Zt(z,{children:(L,Y)=>{var k=lh(),W=P(k);Yt(W,{children:(R,I)=>{_t();var O=Ot("Miscellaneous");y(R,O)},$$slots:{default:!0}});var J=it(W,2);qt(J,{children:(R,I)=>{$t(R,{children:(O,j)=>{var N=E(),F=P(N);Wt(F,1,()=>u,zt,(K,H)=>{Qt(K,{children:(Q,nt)=>{Jt(Q,{child:(ht,lt)=>{let vt=()=>lt?.().props;var $=ah();rt($,()=>({href:c(H).url,...vt()}));var ct=X($),wt=X(ct,!0);q(ct),q($),Ct(()=>Bt(wt,c(H).title)),y(ht,$)},$$slots:{child:!0}})},$$slots:{default:!0}})}),y(O,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),y(L,k)},$$slots:{default:!0}}),y(g,h)},$$slots:{default:!0}})},$$slots:{default:!0}})}var dh=B('<!> <!> <span class="sr-only">Toggle theme</span>',1),fh=B("<!> <!> <!> <!>",1),hh=B('<header class="flex h-16 shrink-0 items-center gap-2 border-b px-4 sticky bg-background"><!></header> <main><!></main> <footer class="flex flex-col items-center justify-center gap-2 p-4"><!> <p class="text-sm text-primary">© 2025-2026 /r/Roms Megathread. GPL-3.0 license.</p> <p class="text-xs text-muted-foreground"> <a href="https://www.ashleehee.com/" class="text-primary underline underline-offset-4 hover:bg-primary hover:text-primary-foreground">AshLee</a></p></footer>',1),gh=B("<!> <!>",1),vh=B('<meta property="og:title"/> <div class="mx-8 my-4 space-y-8 md:mx-16 lg:mx-24 xl:mx-32"><!> <!></div>',1);function Oh(r,t){let e="/r/Roms Megathread";var n=vh();Ki("12qhfyh",l=>{Os(()=>{Is.title="/r/Roms Megathread"})});var i=P(n);ee(i,"content",e);var o=it(i,2),s=X(o);ft(s,()=>Tf,(l,u)=>{u(l,{children:(f,p)=>{var g=gh(),d=P(g);uh(d);var h=it(d,2);ft(h,()=>ff,(v,b)=>{b(v,{children:(w,_)=>{var S=hh(),A=P(S),D=X(A);ft(D,()=>Td,(J,R)=>{R(J,{viewport:!1,children:(I,O)=>{var j=E(),N=P(j);ft(N,()=>Ad,(F,K)=>{K(F,{children:(H,Q)=>{var nt=fh(),ot=P(nt);Oi(ot,{});var ht=it(ot,2);ft(ht,()=>Ef,($,ct)=>{ct($,{})});var lt=it(ht,2);Oi(lt,{children:($,ct)=>{mr($,{variant:"ghost",href:"/",children:(wt,Or)=>{_t();var Ir=Ot("/r/Roms Megathread");y(wt,Ir)},$$slots:{default:!0}})},$$slots:{default:!0}});var vt=it(lt,2);mr(vt,{get onclick(){return Fa},variant:"outline",size:"icon",children:($,ct)=>{var wt=dh(),Or=P(wt);Xd(Or,{class:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 !transition-all dark:-rotate-90 dark:scale-0"});var Ir=it(Or,2);qd(Ir,{class:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 !transition-all dark:rotate-0 dark:scale-100"}),_t(2),y($,wt)},$$slots:{default:!0}}),y(H,nt)},$$slots:{default:!0}})}),y(I,j)},$$slots:{default:!0}})}),q(A);var M=it(A,2),z=X(M);V(z,()=>t.children??et),q(M);var L=it(M,2),Y=X(L);jd(Y,{});var k=it(Y,4),W=X(k);W.nodeValue="Designed by  ",_t(),q(k),q(L),y(w,S)},$$slots:{default:!0}})}),y(f,g)},$$slots:{default:!0}})});var a=it(s,2);ja(a,{}),q(o),y(r,n)}export{Oh as component};

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.