1import{n as Pe,d as x,E as ce,t as Re,q as ke,N as Ce,w as Me,$ as Ne,z as He,u as re}from"./BGq7mYfd.js";import{f as ue,u as ie}from"./BnyQM2o6.js";import{A as U,o as w,u as I,I as Q,N as se,a as Be}from"./BuJruOBE.js";import{i as fe,P as q,N as F,S as A,T as xe}from"./C2KFLRE_.js";import{d as V,r as h,c as d,o as O,bc as R,h as $,J as We,a0 as Z,Z as Y,bv as je,i as X,p as ve,n as qe}from"./COCd-Rnr.js";import{l as Ie,i as W}from"./vDfuVprQ.js";import{K as Ue,k as Ve}from"./Bt7zi-GO.js";function ee(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(a=>setTimeout(()=>{throw a}))}function te(){let e=[],a={addEventListener(t,l,n,o){return t.addEventListener(l,n,o),a.add(()=>t.removeEventListener(l,n,o))},requestAnimationFrame(...t){let l=requestAnimationFrame(...t);a.add(()=>cancelAnimationFrame(l))},nextFrame(...t){a.requestAnimationFrame(()=>{a.requestAnimationFrame(...t)})},setTimeout(...t){let l=setTimeout(...t);a.add(()=>clearTimeout(l))},microTask(...t){let l={current:!0};return ee(()=>{l.current&&t[0]()}),a.add(()=>{l.current=!1})},style(t,l,n){let o=t.style.getPropertyValue(l);return Object.assign(t.style,{[l]:n}),this.add(()=>{Object.assign(t.style,{[l]:o})})},group(t){let l=te();return t(l),this.add(()=>l.dispose())},add(t){return e.push(t),()=>{let l=e.indexOf(t);if(l>=0)for(let n of e.splice(l,1))n()}},dispose(){for(let t of e.splice(0))t()}};return a}function Ye(e){function a(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",a))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",a),a())}let S=[];Ye(()=>{function e(a){a.target instanceof HTMLElement&&a.target!==document.body&&S[0]!==a.target&&(S.unshift(a.target),S=S.filter(t=>t!=null&&t.isConnected),S.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function pe(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let a=new Set;for(let t of e.value){let l=w(t);l instanceof HTMLElement&&a.add(l)}return a}var me=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(me||{});let M=Object.assign(V({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:h(new Set)}},inheritAttrs:!1,setup(e,{attrs:a,slots:t,expose:l}){let n=h(null);l({el:n,$el:n});let o=d(()=>fe(n)),i=h(!1);O(()=>i.value=!0),R(()=>i.value=!1),Je({ownerDocument:o},d(()=>i.value&&!!(e.features&16)));let u=_e({ownerDocument:o,container:n,initialFocus:d(()=>e.initialFocus)},d(()=>i.value&&!!(e.features&2)));Ge({ownerDocument:o,container:n,containers:e.containers,previousActiveElement:u},d(()=>i.value&&!!(e.features&8)));let r=Pe();function c(p){let v=w(n);v&&(g=>g())(()=>{I(r.value,{[x.Forwards]:()=>{q(v,F.First,{skipElements:[p.relatedTarget]})},[x.Backwards]:()=>{q(v,F.Last,{skipElements:[p.relatedTarget]})}})})}let m=h(!1);function y(p){p.key==="Tab"&&(m.value=!0,requestAnimationFrame(()=>{m.value=!1}))}function E(p){if(!i.value)return;let v=pe(e.containers);w(n)instanceof HTMLElement&&v.add(w(n));let g=p.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(ge(v,g)||(m.value?q(w(n),I(r.value,{[x.Forwards]:()=>F.Next,[x.Backwards]:()=>F.Previous})|F.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&A(p.target)))}return()=>{let p={},v={ref:n,onKeydown:y,onFocusout:E},{features:g,initialFocus:b,containers:k,...P}=e;return $(We,[!!(g&4)&&$(ue,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:ie.Focusable}),U({ourProps:v,theirProps:{...a,...P},slot:p,attrs:a,slots:t,name:"FocusTrap"}),!!(g&4)&&$(ue,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:ie.Focusable})])}}}),{features:me});function ze(e){let a=h(S.slice());return Y([e],([t],[l])=>{l===!0&&t===!1?ee(()=>{a.value.splice(0)}):l===!1&&t===!0&&(a.value=S.slice())},{flush:"post"}),()=>{var t;return(t=a.value.find(l=>l!=null&&l.isConnected))!=null?t:null}}function Je({ownerDocument:e},a){let t=ze(a);O(()=>{Z(()=>{var l,n;a.value||((l=e.value)==null?void 0:l.activeElement)===((n=e.value)==null?void 0:n.body)&&A(t())},{flush:"post"})}),R(()=>{a.value&&A(t())})}function _e({ownerDocument:e,container:a,initialFocus:t},l){let n=h(null),o=h(!1);return O(()=>o.value=!0),R(()=>o.value=!1),O(()=>{Y([a,t,l],(i,u)=>{if(i.every((c,m)=>(u==null?void 0:u[m])===c)||!l.value)return;let r=w(a);r&&ee(()=>{var c,m;if(!o.value)return;let y=w(t),E=(c=e.value)==null?void 0:c.activeElement;if(y){if(y===E){n.value=E;return}}else if(r.contains(E)){n.value=E;return}y?A(y):q(r,F.First|F.NoScroll)===xe.Error&&console.warn("There are no focu
1sable elements inside the <FocusTrap />"),n.value=(m=e.value)==null?void 0:m.activeElement})},{immediate:!0,flush:"post"})}),n}function Ge({ownerDocument:e,container:a,containers:t,previousActiveElement:l},n){var o;ce((o=e.value)==null?void 0:o.defaultView,"focus",i=>{if(!n.value)return;let u=pe(t);w(a)instanceof HTMLElement&&u.add(w(a));let r=l.value;if(!r)return;let c=i.target;c&&c instanceof HTMLElement?ge(u,c)?(l.value=c,A(c)):(i.preventDefault(),i.stopPropagation(),A(r)):A(l.value)},!0)}function ge(e,a){for(let t of e)if(t.contains(a))return!0;return!1}function Ke(e){let a=je(e.getSnapshot());return R(e.subscribe(()=>{a.value=e.getSnapshot()})),a}function Qe(e,a){let t=e(),l=new Set;return{getSnapshot(){return t},subscribe(n){return l.add(n),()=>l.delete(n)},dispatch(n,...o){let i=a[n].call(t,...o);i&&(t=i,l.forEach(u=>u()))}}}function Ze(){let e;return{before({doc:a}){var t;let l=a.documentElement;e=((t=a.defaultView)!=null?t:window).innerWidth-l.clientWidth},after({doc:a,d:t}){let l=a.documentElement,n=l.clientWidth-l.offsetWidth,o=e-n;t.style(l,"paddingRight",`${o}px`)}}}function Xe(){return Re()?{before({doc:e,d:a,meta:t}){function l(n){return t.containers.flatMap(o=>o()).some(o=>o.contains(n))}a.microTask(()=>{var n;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let u=te();u.style(e.documentElement,"scrollBehavior","auto"),a.add(()=>a.microTask(()=>u.dispose()))}let o=(n=window.scrollY)!=null?n:window.pageYOffset,i=null;a.addEventListener(e,"click",u=>{if(u.target instanceof HTMLElement)try{let r=u.target.closest("a");if(!r)return;let{hash:c}=new URL(r.href),m=e.querySelector(c);m&&!l(m)&&(i=m)}catch{}},!0),a.addEventListener(e,"touchstart",u=>{if(u.target instanceof HTMLElement)if(l(u.target)){let r=u.target;for(;r.parentElement&&l(r.parentElement);)r=r.parentElement;a.style(r,"overscrollBehavior","contain")}else a.style(u.target,"touchAction","none")}),a.addEventListener(e,"touchmove",u=>{if(u.target instanceof HTMLElement){if(u.target.tagName==="INPUT")return;if(l(u.target)){let r=u.target;for(;r.parentElement&&r.dataset.headlessuiPortal!==""&&!(r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth);)r=r.parentElement;r.dataset.headlessuiPortal===""&&u.preventDefault()}else u.preventDefault()}},{passive:!1}),a.add(()=>{var u;let r=(u=window.scrollY)!=null?u:window.pageYOffset;o!==r&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function et(){return{before({doc:e,d:a}){a.style(e.documentElement,"overflow","hidden")}}}function tt(e){let a={};for(let t of e)Object.assign(a,t(a));return a}let D=Qe(()=>new Map,{PUSH(e,a){var t;let l=(t=this.get(e))!=null?t:{doc:e,count:0,d:te(),meta:new Set};return l.count++,l.meta.add(a),this.set(e,l),this},POP(e,a){let t=this.get(e);return t&&(t.count--,t.meta.delete(a)),this},SCROLL_PREVENT({doc:e,d:a,meta:t}){let l={doc:e,d:a,meta:tt(t)},n=[Xe(),Ze(),et()];n.forEach(({before:o})=>
1o==null?void 0:o(l)),n.forEach(({after:o})=>o==null?void 0:o(l))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});D.subscribe(()=>{let e=D.getSnapshot(),a=new Map;for(let[t]of e)a.set(t,t.documentElement.style.overflow);for(let t of e.values()){let l=a.get(t.doc)==="hidden",n=t.count!==0;(n&&!l||!n&&l)&&D.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&D.dispatch("TEARDOWN",t)}});function at(e,a,t){let l=Ke(D),n=d(()=>{let o=e.value?l.value.get(e.value):void 0;return o?o.count>0:!1});return Y([e,a],([o,i],[u],r)=>{if(!o||!i)return;D.dispatch("PUSH",o,t);let c=!1;r(()=>{c||(D.dispatch("POP",u??o,t),c=!0)})},{immediate:!0}),n}let _=new Map,N=new Map;function de(e,a=h(!0)){Z(t=>{var l;if(!a.value)return;let n=w(e);if(!n)return;t(function(){var i;if(!n)return;let u=(i=N.get(n))!=null?i:1;if(u===1?N.delete(n):N.set(n,u-1),u!==1)return;let r=_.get(n);r&&(r["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert,_.delete(n))});let o=(l=N.get(n))!=null?l:0;N.set(n,o+1),o===0&&(_.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0)})}let he=Symbol("StackContext");var G=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(G||{});function lt(){return X(he,()=>{})}function nt({type:e,enabled:a,element:t,onUpdate:l}){let n=lt();function o(...i){l==null||l(...i),n(...i)}O(()=>{Y(a,(i,u)=>{i?o(0,e,t):u===!0&&o(1,e,t)},{immediate:!0,flush:"sync"})}),R(()=>{a.value&&o(1,e,t)}),ve(he,o)}var ot=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ot||{});let K=Symbol("DialogContext");function ae(e){let a=X(K,null);if(a===null){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ae),t}return a}let j="DC8F892D-2EBD-447C-A4C8-A03058436FF4",vt=V({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:j},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:a,attrs:t,slots:l,expose:n}){var o,i;let u=(o=e.id)!=null?o:`headlessui-dialog-${Q()}`,r=h(!1);O(()=>{r.value=!0});let c=!1,m=d(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(c||(c=!0,console.warn(`Invalid role [${m}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),y=h(0),E=Ie(),p=d(()=>e.open===j&&E!==null?(E.value&W.Open)===W.Open:e.open),v=h(null),g=d(()=>fe(v));if(n({el:v,$el:v}),!(e.open!==j||E!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof p.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${p.value===j?void 0:e.open}`);let b=d(()=>r.value&&p.value?0:1),k=d(()=>b.value===0),P=d(()=>y.value>1),le=X(K,null)!==null,[we,Ee]=ke(),{resolveContainers:z,mainTreeNodeRef:ne,MainTreeNode:ye}=Ce({portals:we,defaultContainers:[d(()=>{var s;return(s=C.panelRef.value)!=null?s:v.value})]}),be=d(()=>P.value?"parent":"leaf"),oe=d(()=>E!==null?(E.value&W.Closing)===W.Closing:!1),Te=d(()=>le||oe.value?!1:k.value),Le=d(()=>{var s,f,T;return(T=Array.from((f=(s=g.value)==null?void 0:s.querySelectorAll("body > *"))!=null?f:[]).find(L=>L.id==="headlessui-portal-root"?!1:L.contains(w(ne))&&L instanceof HTMLElement))!=null?T:null});de(Le,Te);let $e=d(()=>P.value?!0:k.value),Fe=d(()=>{var s,f,T;return(T=Array.from((f=(s=g.value)==null?void 0:s.querySelectorAll("[data-headlessui-portal]"))!=null?f:[]).find(L=>L.contains(w(ne))&&L instanceof HTMLElement))!=null?T:null});de(Fe,$e),nt({type:"Dialog",enabled:d(()=>b.value===0),element:v,onUpdate:(s,f)=>{if(f==="Dialog")return I(s,{[G.Add]:()=>y.value+=1,[G.Remove]:()=>y.value-=1})}});let Se=Ve({name:"DialogDescription",slot:d(()=>({open:p.value}))}),H=h(null),C={titleId:H,panelRef:h(null),dialogState:b,setTitleId(s){H.value!==s&&(H.value=s)},close(){a("close",!1)}};ve(K,C);let De=d(()=>!(!k.value||P.value));Me(z,(s,f)=>{s.preventDefault(),C.close(),qe(()=>f==null?void 0:f.focus())},De);let Ae=d(()=>!(P.value||b.value!==0));ce((i=g.value)==null?void 0:i.defaultView,"keydown",s=>{Ae.value&&(s.defaultPrevented||s.key===Be.Escape&&(s.preventDefault(),s.stopPropagation(),C.close()))});let Oe=d(()=>!(oe.value||b.value!==0||le));return at(g,Oe,s=>{var f;
1return{containers:[...(f=s.containers)!=null?f:[],z]}}),Z(s=>{if(b.value!==0)return;let f=w(v);if(!f)return;let T=new ResizeObserver(L=>{for(let J of L){let B=J.target.getBoundingClientRect();B.x===0&&B.y===0&&B.width===0&&B.height===0&&C.close()}});T.observe(f),s(()=>T.disconnect())}),()=>{let{open:s,initialFocus:f,...T}=e,L={...t,ref:v,id:u,role:m.value,"aria-modal":b.value===0?!0:void 0,"aria-labelledby":H.value,"aria-describedby":Se.value},J={open:b.value===0};return $(re,{force:!0},()=>[$(Ne,()=>$(He,{target:v.value},()=>$(re,{force:!1},()=>$(M,{initialFocus:f,containers:z,features:k.value?I(be.value,{parent:M.features.RestoreFocus,leaf:M.features.All&~M.features.FocusLock}):M.features.None},()=>$(Ee,{},()=>U({ourProps:L,theirProps:{...T,...t},slot:J,attrs:t,slots:l,visible:b.value===0,features:se.RenderStrategy|se.Static,name:"Dialog"})))))),$(ye)])}}}),pt=V({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:a,slots:t,expose:l}){var n;let o=(n=e.id)!=null?n:`headlessui-dialog-panel-${Q()}`,i=ae("DialogPanel");l({el:i.panelRef,$el:i.panelRef});function u(r){r.stopPropagation()}return()=>{let{...r}=e,c={id:o,ref:i.panelRef,onClick:u};return U({ourProps:c,theirProps:r,slot:{open:i.dialogState.value===0},attrs:a,slots:t,name:"DialogPanel"})}}}),mt=V({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:a,slots:t}){var l;let n=(l=e.id)!=null?l:`headlessui-dialog-title-${Q()}`,o=ae("DialogTitle");return O(()=>{o.setTitleId(n),R(()=>o.setTitleId(null))}),()=>{let{...i}=e;return U({ourProps:{id:n},theirProps:i,slot:{open:o.dialogState.value===0},attrs:a,slots:t,name:"DialogTitle"})}}}),gt=Ue;export{pt as G,gt as J,mt as V,vt as Y,te as o};
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.