1import{aa as S,L as j,r as P,i as T,J as C,ab as D,K as H,F as U,M as L}from"./index-DbpIxVVg.js";var v;let N=Symbol("headlessui.useid"),R=0;const V=(v=S)!=null?v:function(){return j(N,()=>`${++R}`)()};function y(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function O(e,t,...n){if(e in t){let a=t[e];return typeof a=="function"?a(...n):a}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,O),r}function w(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Y(e,t){let n=P(w(e.value.type,e.value.as));return T(()=>{n.value=w(e.value.type,e.value.as)}),C(()=>{var r;n.value||y(t)&&y(t)instanceof HTMLButtonElement&&!((r=y(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}var M=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(M||{}),x=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(x||{});function q({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...a}){var u;let s=$(r,n),i=Object.assign(a,{props:s});if(e||t&2&&s.static)return m(i);if(t&1){let p=(u=s.unmount)==null||u?0:1;return O(p,{0(){return null},1(){return m({...a,props:{...s,hidden:!0,style:{display:"none"}}})}})}return m(i)}function m({props:e,attrs:t,slots:n,slot:r,name:a}){var u,s;let{as:i,...p}=B(e,["unmount","static"]),l=(u=n.default)==null?void 0:u.call(n,r),b={};if(r){let c=!1,h=[];for(let[d,f]of Object.entries(r))typeof f=="boolean"&&(c=!0),f===!0&&h.push(d);c&&(b["data-headlessui-state"]=h.join(" "))}if(i==="template"){if(l=E(l??[]),Object.keys(p).length>0||Object.keys(t).length>0){let[c,...h]=l??[];if(!F(c)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${a} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(p).concat(Object.keys(t)).map(o=>o.trim()).filter((o,g,k)=>k.indexOf(o)===g).sort((o,g)=>o.localeCompare(g)).map(o=>` - ${o}`).join(` 2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(o=>` - ${o}`).join(` 3`)].join(` 4`));let d=$((s=c.props)!=null?s:{},p,b),f=D(c,d,!0);for(let o in d)o.startsWith("on")&&(f.props||(f.props={}),f.props[o]=d[o]);return f}return Array.isArray(l)&&l.length===1?l[0]:l}return H(i,Object.assign({},p,b),{default:()=>l})}function E(e){return e.flatMap(t=>t.type===U?E(t.children):[t])}function $(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let a in r)a.startsWith("on")&&typeof r[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(r[a])):t[a]=r[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](a,...u){let s=n[r];for(let i of s){if(a instanceof Event&&a.defaultPrevented)return;i(a,...u)}}});return t}function z(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function B(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function F(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let A=Symbol("Context");var W=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(W||{});function G(){return I()!==null}function I(){return j(A,null)}function Q(e){L(A,e)}var J=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(J||{});export{q as A,z as E,M as N,x as S,B as T,J as a,W as b,G as c,V as i,I as l,y as o,Y as s,Q as t,O as u};
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.