1import{bN as P,c0 as E,bn as S,bt as L,b2 as A}from"./szcXUDxO.js";import{o as y,u as I,A as O}from"./xa67PyFm.js";var M=Object.defineProperty,T=(e,t,n)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t,n)=>(T(e,typeof t!="symbol"?t+"":t,n),n);class ${constructor(){b(this,"current",this.detect()),b(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let p=new $;function g(e){if(p.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=y(e);if(t)return t.ownerDocument}return document}let w=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var D=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(D||{}),_=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(_||{}),H=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(H||{});function N(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(w)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var x=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(x||{});function F(e,t=0){var n;return e===((n=g(e))==null?void 0:n.body)?!1:I(t,{0(){return e.matches(w)},1(){let o=e;for(;o!==null;){if(o.matches(w))return!0;o=o.parentElement}return!1}})}function J(e){let t=g(e);P(()=>{t&&!F(t.activeElement,0)&&C(e)})}var k=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(k||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function C(e){e?.focus({preventScroll:!0})}let K=["textarea","input"].join(",");function j(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,K))!=null?n:!1}function G(e,t=n=>n){return e.slice().sort((n,o)=>{let i=t(n),r=t(o);if(i===null||r===null)return 0;let l=i.compareDocumentPosition(r);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Q(e,t){return R(N(),t,{relativeTo:e})}function R(e,t,{sorted:n=!0,relativeTo:o=null,skipElements:i=[]}={}){var r;let l=(r=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?r:document,u=Array.isArray(e)?n?G(e):e:N(e);i.length>0&&u.length>1&&(u=u.filter(d=>!i.includes(d))),o=o??l.activeElement;let h=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,u.indexOf(o))-1;if(t&4)return Math.max(0,u.indexOf(o))+1;if(t&8)return u.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=t&32?{preventScroll:!0}:{},v=0,f=u.length,c;do{if(v>=f||v+f<=0)return 0;let d=s+v;if(t&16)d=(d+f)%f;else{if(d<0)return 3;if(d>=f)return 1}c=u[d],c?.focus(a),v+=h}while(c!==l.activeElement);return t&6&&j(c)&&c.select(),2}function U(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function W(){return/Android/gi.test(window.navigator.userAgent)}function V(){return U()||W()}function m(e,t,n){p.isServer||E(o=>{document.addEventListener(e,t,n),o(()=>document.removeEventListener(e,t,n))})}function X(e,t,n){p.isServer||E(o=>{window.addEventListener(e,t,n),o(()=>window.removeEventListener(e,t,n))})}function Y(e,t,n=S(()=>!0)){function o(r,l){if(!n.value||r.defaultPrevented)return;let u=l(r);if(u===null||!u.getRootNode().contains(u))return;let h=(function s(a){return typeof a=="function"?s(a()):Array.isArray(a)||a instanceof Set?a:[a]})(e);for(let s of h){if(s===null)continue;let a=s instanceof HTMLElement?s:y(s);if(a!=null&&a.contains(u)||r.composed&&r.composedPath().includes(a))return}return!F(u,x.Loose)&&u.tabIndex!==-1&&r.preventDefault(),t(r,u)}let i=L(null);m("pointerdown",r=>{var l,u;n.value&&(i.value=((u=(l=r.composedPath)==null?void 0:l.call(r))==null?void 0:u[0])||r.target)},!0),m("mousedown",r=>{var l,u;n.value&&(i.value=((u=(l=r.composedPath)==null?void 0:l.call(r))==null?void 0:u[0])||r.target)},!0),m("click",r=>{V()||i.value&&(o(r,()=>i.value),i.value=null)},!0),m("touchend",r=>o(r,()=>r.target instanceof HTMLElement?r.target:null),!0),X("blur",r=>o(r,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var q=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(q||{});let Z=A({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var o;let{features:i,...r}=e,l={"aria-hidden":(i&2)===2?!0:(o=r["aria-hidden"])!=null?o:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return O({ourProps:l,theirProps:r,slot:{},attrs:n,slots:t,name:"Hidden"})}}});
1export{N as E,D as N,G as O,R as P,C as S,_ as T,J as _,F as a,X as b,p as c,Z as f,x as h,g as i,V as n,U as t,q as u,Q as v,Y as w};
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.