PageSourceSearch

https://www.irmadulce.org.br/_nuxt/C6RascY-.js

js irmadulce.org.br collected 2026-10-02 10:56:46 UTC 26,446 bytes, 4 lines download raw bytes

1import{aR as Qe,y as L,q as C,f as m,j as w,ba as Je,s as $,F as be,e as O,z as R,p as k,v as M,x as G,aC as Ze,b2 as et,B as tt,aG as nt,U as rt}from"./Dfl0qPmI.js";function de(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ce(){let e=[],t={addEventListener(n,r,l,a){return n.addEventListener(r,l,a),t.add(()=>n.removeEventListener(r,l,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return de(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,l){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:l}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=ce();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let l of e.splice(r,1))l()}},dispose(){for(let n of e.splice(0))n()}};return t}var me;let lt=Symbol("headlessui.useid"),at=0;const Ee=(me=Qe)!=null?me:function(){return L(lt,()=>`${++at}`)()};function b(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 x(e,t,...n){if(e in t){let l=t[e];return typeof l=="function"?l(...n):l}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(l=>`"${l}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,x),r}var ot=Object.defineProperty,ut=(e,t,n)=>t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,he=(e,t,n)=>(ut(e,typeof t!="symbol"?t+"":t,n),n);let it=class{constructor(){he(this,"current",this.detect()),he(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"}},J=new it;function I(e){if(J.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=b(e);if(t)return t.ownerDocument}return document}let re=["[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 P=(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))(P||{}),$e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))($e||{}),st=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(st||{});function dt(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(re)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Se=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Se||{});function ct(e,t=0){var n;return e===((n=I(e))==null?void 0:n.body)?!1:x(t,{0(){return e.matches(re)},1(){let r=e;for(;r!==null;){if(r.matches(re))return!0;r=r.parentElement}return!1}})}var ft=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ft||{});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 D(e){e==null||e.focus({preventScroll:!0})}let pt=["textarea","input"].join(",");function vt(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,pt))!=null?n:!1}function mt(e,t=n=>n){return e.slice().sort((n,r)=>{let l=t(n),a=t(r);if(l===null||a===null)return 0;let u=l.compareDocumentPosition(a);return u&Node.DOCUMENT_POSITION_FOLLOWING?-1:u&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function X(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:l=[]}={}){var a;let u=(a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?a:document,o=Array.isArray(e)?n?mt(e):e:dt(e);l.length>0&&o.length>1&&(o=o.filter(c=>!l.includes(c))),r=r??u.activeElement;let i=(()=>
1{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,o.indexOf(r))-1;if(t&4)return Math.max(0,o.indexOf(r))+1;if(t&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},h=0,f=o.length,p;do{if(h>=f||h+f<=0)return 0;let c=s+h;if(t&16)c=(c+f)%f;else{if(c<0)return 3;if(c>=f)return 1}p=o[c],p==null||p.focus(d),h+=i}while(p!==u.activeElement);return t&6&&vt(p)&&p.select(),2}function Te(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function ht(){return/Android/gi.test(window.navigator.userAgent)}function gt(){return Te()||ht()}function K(e,t,n){J.isServer||C(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function Le(e,t,n){J.isServer||C(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function wt(e,t,n=m(()=>!0)){function r(a,u){if(!n.value||a.defaultPrevented)return;let o=u(a);if(o===null||!o.getRootNode().contains(o))return;let i=function s(d){return typeof d=="function"?s(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let s of i){if(s===null)continue;let d=s instanceof HTMLElement?s:b(s);if(d!=null&&d.contains(o)||a.composed&&a.composedPath().includes(d))return}return!ct(o,Se.Loose)&&o.tabIndex!==-1&&a.preventDefault(),t(a,o)}let l=w(null);K("pointerdown",a=>{var u,o;n.value&&(l.value=((o=(u=a.composedPath)==null?void 0:u.call(a))==null?void 0:o[0])||a.target)},!0),K("mousedown",a=>{var u,o;n.value&&(l.value=((o=(u=a.composedPath)==null?void 0:u.call(a))==null?void 0:o[0])||a.target)},!0),K("click",a=>{gt()||l.value&&(r(a,()=>l.value),l.value=null)},!0),K("touchend",a=>r(a,()=>a.target instanceof HTMLElement?a.target:null),!0),Le("blur",a=>r(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var le=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(le||{}),yt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(yt||{});function j({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...l}){var a;let u=Oe(r,n),o=Object.assign(l,{props:u});if(e||t&2&&u.static)return te(o);if(t&1){let i=(a=u.unmount)==null||a?0:1;return x(i,{0(){return null},1(){return te({...l,props:{...u,hidden:!0,style:{display:"none"}}})}})}return te(o)}function te({props:e,attrs:t,slots:n,slot:r,name:l}){var a,u;let{as:o,...i}=bt(e,["unmount","static"]),s=(a=n.default)==null?void 0:a.call(n,r),d={};if(r){let h=!1,f=[];for(let[p,c]of Object.entries(r))typeof c=="boolean"&&(h=!0),c===!0&&f.push(p);h&&(d["data-headlessui-state"]=f.join(" "))}if(o==="template"){if(s=Pe(s??[]),Object.keys(i).length>0||Object.keys(t).length>0){let[h,...f]=s??[];if(!Et(h)||f.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${l} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(i).concat(Object.keys(t)).map(v=>v.trim()).filter((v,E,F)=>F.indexOf(v)===E).sort((v,E)=>v.localeCompare(E)).map(v=>`  - ${v}`).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(v
2=>`  - ${v}`).join(`
3`)].join(`
4`));let p=Oe((u=h.props)!=null?u:{},i,d),c=Je(h,p,!0);for(let v in p)v.startsWith("on")&&(c.props||(c.props={}),c.props[v]=p[v]);return c}return Array.isArray(s)&&s.length===1?s[0]:s}return $(o,Object.assign({},i,d),{default:()=>s})}function Pe(e){return e.flatMap(t=>t.type===be?Pe(t.children):[t])}function Oe(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let l in r)l.startsWith("on")&&typeof r[l]=="function"?(n[l]!=null||(n[l]=[]),n[l].push(r[l])):t[l]=r[l];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](l,...a){let u=n[r];for(let o of u){if(l instanceof Event&&l.defaultPrevented)return;o(l,...a)}}});return t}function bt(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Et(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var Q=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Q||{});let ae=O({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:l,...a}=e,u={"aria-hidden":(l&2)===2?!0:(r=a["aria-hidden"])!=null?r:void 0,hidden:(l&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",...(l&4)===4&&(l&2)!==2&&{display:"none"}}};return j({ourProps:u,theirProps:a,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Fe=Symbol("Context");var q=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(q||{});function zt(){return Ae()!==null}function Ae(){return L(Fe,null)}function Xt(e){R(Fe,e)}var Ne=(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))(Ne||{});function $t(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let A=[];$t(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&A[0]!==t.target&&(A.unshift(t.target),A=A.filter(n=>n!=null&&n.isConnected),A.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 De(e,t,n,r){J.isServer||C(l=>{e=e??window,e.addEventListener(t,n,r),l(()=>e.removeEventListener(t,n,r))})}var _=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(_||{});function St(){let e=w(0);return Le("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function ke(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=b(n);r instanceof HTMLElement&&t.add(r)}return t}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 U=Object.assign(O({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:w(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let l=w(null);r({el:l,$el:l});let a=m(()=>I(l)),u=w(!1);k(()=>u.value=!0),M(()=>u.value=!1),Lt({ownerDocument:a},m(()=>u.value&&!!(e.features&16)));let o=Pt({ownerDocument:a,container:l,initialFocus:m(()=>e.initialFocus)},m(()=>u.value&&!!(e.features&2)));Ot({ownerDocument:a,container:l,containers:e.containers,previousActiveElement:o},m(()=>u.value&&!!(e.features&8)));let i=St();function s(p){let c=b(l);c&&(v=>v())(()=>{x(i.value,{[_.Forwards]:()=>{X(c,P.First,{skipElements:[p.relatedTarget]})},[_.Backwards]:()=>{X(c,P.Last,{skipElements:[p.relatedTarget]})}})})}let d=w(!1);function h(p){p.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function f(p){if(!u.value)return;
4let c=ke(e.containers);b(l)instanceof HTMLElement&&c.add(b(l));let v=p.relatedTarget;v instanceof HTMLElement&&v.dataset.headlessuiFocusGuard!=="true"&&(xe(c,v)||(d.value?X(b(l),x(i.value,{[_.Forwards]:()=>P.Next,[_.Backwards]:()=>P.Previous})|P.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&D(p.target)))}return()=>{let p={},c={ref:l,onKeydown:h,onFocusout:f},{features:v,initialFocus:E,containers:F,...H}=e;return $(be,[!!(v&4)&&$(ae,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:s,features:Q.Focusable}),j({ourProps:c,theirProps:{...t,...H},slot:p,attrs:t,slots:n,name:"FocusTrap"}),!!(v&4)&&$(ae,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:s,features:Q.Focusable})])}}}),{features:Me});function Tt(e){let t=w(A.slice());return G([e],([n],[r])=>{r===!0&&n===!1?de(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=A.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function Lt({ownerDocument:e},t){let n=Tt(t);k(()=>{C(()=>{var r,l;t.value||((r=e.value)==null?void 0:r.activeElement)===((l=e.value)==null?void 0:l.body)&&D(n())},{flush:"post"})}),M(()=>{t.value&&D(n())})}function Pt({ownerDocument:e,container:t,initialFocus:n},r){let l=w(null),a=w(!1);return k(()=>a.value=!0),M(()=>a.value=!1),k(()=>{G([t,n,r],(u,o)=>{if(u.every((s,d)=>(o==null?void 0:o[d])===s)||!r.value)return;let i=b(t);i&&de(()=>{var s,d;if(!a.value)return;let h=b(n),f=(s=e.value)==null?void 0:s.activeElement;if(h){if(h===f){l.value=f;return}}else if(i.contains(f)){l.value=f;return}h?D(h):X(i,P.First|P.NoScroll)===$e.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),l.value=(d=e.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),l}function Ot({ownerDocument:e,container:t,containers:n,previousActiveElement:r},l){var a;De((a=e.value)==null?void 0:a.defaultView,"focus",u=>{if(!l.value)return;let o=ke(n);b(t)instanceof HTMLElement&&o.add(b(t));let i=r.value;if(!i)return;let s=u.target;s&&s instanceof HTMLElement?xe(o,s)?(r.value=s,D(s)):(u.preventDefault(),u.stopPropagation(),D(i)):D(r.value)},!0)}function xe(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Ft(e){let t=Ze(e.getSnapshot());return M(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function At(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(l){return r.add(l),()=>r.delete(l)},dispatch(l,...a){let u=t[l].call(n,...a);u&&(n=u,r.forEach(o=>o()))}}}function Nt(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,l=r.clientWidth-r.offsetWidth,a=e-l;n.style(r,"paddingRight",`${a}px`)}}}function Dt(){return Te()?{before({doc:e,d:t,meta:n}){function r(l){return n.containers.flatMap(a=>a()).some(a=>a.contains(l))}t.microTask(()=>{var l;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let o=ce();o.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>o.dispose()))}let a=(l=window.scrollY)!=null?l:window.pageYOffset,u=null;t.addEventListener(e,"click",o=>{if(o.target instanceof HTMLElement)try{let i=o.target.closest("a");if(!i)return;let{hash:s}=new URL(i.href),d=e.querySelector(s);d&&!r(d)&&(u=d)}catch{}},!0),t.addEventListener(e,"touchstart",o=>{if(o.target instanceof HTMLElement)if(r(o.target)){let i=o.target;for(;i.parentElement&&r(i.parentElement);)i=i.parentElement;t.style(i,"overscrollBehavior","contain")}else t.style(o.target,"touchAction","none")}),t.addEventListener(e,"touchmove",o=>{if(o.target instanceof HTMLElement){if(o.target.tagName==="INPUT")return;if(r(o.target)){let i=o.target;for(;i.parentElement&&i.dataset.headlessuiPortal!==""&&!(i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth);)i=i.parentElement;i.dataset.headlessuiPortal===""&&o.preventDefault()}else o.preventDefault()}},{passive:!1}),t.add(()=>{var o;let i=(o=window.scrollY)!=null?o:window.pageYOffset;a!==i&&window.scrollTo(0,a),u&&u.isConnected&&(u.scrollIntoView({block:"nearest"}),u=null)})})}}:{}}function kt(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Mt(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let N=At(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:ce(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Mt(n)},l=[Dt(),Nt(),kt()];l.forEach(({before:a})=>a==null?void 0:a(r)),l.forEach(({after:a})=>a==null?void 0:a(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});N.subscribe(()=>{let e=N.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",l=n.count!==0;(l&&!r||!l&&r)&&N.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&N.dispatch("TEARDOWN",n)}});function xt(e,t,n){let r=Ft(N),l=m(()=>{let a=e.value?r.value.get(e.value):void 0;return a?a.count>0:!1});return G([e,t],([a,u],[o],i)=>{if(!a||!u)return;N.dispatch("PUSH",a,n);let s=!1;i(()=>{s||(N.dispatch("POP",o??a,n),s=!0)})},{immediate:!0}),l}let ne=new Map,W=new Map;
4function ge(e,t=w(!0)){C(n=>{var r;if(!t.value)return;let l=b(e);if(!l)return;n(function(){var u;if(!l)return;let o=(u=W.get(l))!=null?u:1;if(o===1?W.delete(l):W.set(l,o-1),o!==1)return;let i=ne.get(l);i&&(i["aria-hidden"]===null?l.removeAttribute("aria-hidden"):l.setAttribute("aria-hidden",i["aria-hidden"]),l.inert=i.inert,ne.delete(l))});let a=(r=W.get(l))!=null?r:0;W.set(l,a+1),a===0&&(ne.set(l,{"aria-hidden":l.getAttribute("aria-hidden"),inert:l.inert}),l.setAttribute("aria-hidden","true"),l.inert=!0)})}function Ct({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=w(null),l=I(r);function a(){var u,o,i;let s=[];for(let d of e)d!==null&&(d instanceof HTMLElement?s.push(d):"value"in d&&d.value instanceof HTMLElement&&s.push(d.value));if(t!=null&&t.value)for(let d of t.value)s.push(d);for(let d of(u=l==null?void 0:l.querySelectorAll("html > *, body > *"))!=null?u:[])d!==document.body&&d!==document.head&&d instanceof HTMLElement&&d.id!=="headlessui-portal-root"&&(d.contains(b(r))||d.contains((i=(o=b(r))==null?void 0:o.getRootNode())==null?void 0:i.host)||s.some(h=>d.contains(h))||s.push(d));return s}
4return{resolveContainers:a,contains(u){return a().some(o=>o.contains(u))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:$(ae,{features:Q.Hidden,ref:r})}}}let Ce=Symbol("ForcePortalRootContext");function Rt(){return L(Ce,!1)}let we=O({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return R(Ce,e.force),()=>{let{force:r,...l}=e;return j({theirProps:l,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),Re=Symbol("StackContext");var oe=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(oe||{});function jt(){return L(Re,()=>{})}function Ht({type:e,enabled:t,element:n,onUpdate:r}){let l=jt();function a(...u){r==null||r(...u),l(...u)}k(()=>{G(t,(u,o)=>{u?a(0,e,n):o===!0&&a(1,e,n)},{immediate:!0,flush:"sync"})}),M(()=>{t.value&&a(1,e,n)}),R(Re,a)}let It=Symbol("DescriptionContext");function Bt({slot:e=w({}),name:t="Description",props:n={}}={}){let r=w([]);function l(a){return r.value.push(a),()=>{let u=r.value.indexOf(a);u!==-1&&r.value.splice(u,1)}}return R(It,{register:l,slot:e,name:t,props:n}),m(()=>r.value.length>0?r.value.join(" "):void 0)}function Ut(e){let t=I(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const ue=new WeakMap;function Wt(e){var t;return(t=ue.get(e))!=null?t:0}function ye(e,t){let n=t(Wt(e));return n<=0?ue.delete(e):ue.set(e,n),n}let qt=O({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=w(null),l=m(()=>I(r)),a=Rt(),u=L(je,null),o=w(a===!0||u==null?Ut(r.value):u.resolveTarget());o.value&&ye(o.value,f=>f+1);let i=w(!1);k(()=>{i.value=!0}),C(()=>{a||u!=null&&(o.value=u.resolveTarget())});let s=L(ie,null),d=!1,h=nt();return G(r,()=>{if(d||!s)return;let f=b(r);f&&(M(s.register(f),h),d=!0)}),M(()=>{var f,p;let c=(f=l.value)==null?void 0:f.getElementById("headlessui-portal-root");!c||o.value!==c||ye(o.value,v=>v-1)||o.value.children.length>0||(p=o.value.parentElement)==null||p.removeChild(o.value)}),()=>{if(!i.value||o.value===null)return null;let f={ref:r,"data-headlessui-portal":""};return $(et,{to:o.value},j({ourProps:f,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),ie=Symbol("PortalParentContext");function _t(){let e=L(ie,null),t=w([]);function n(a){return t.value.push(a),e&&e.register(a),()=>r(a)}function r(a){let u=t.value.indexOf(a);u!==-1&&t.value.splice(u,1),e&&e.unregister(a)}let l={register:n,unregister:r,portals:t};return[t,O({name:"PortalWrapper",setup(a,{slots:u}){return R(ie,l),()=>{var o;return(o=u.default)==null?void 0:o.call(u)}}})]}let je=Symbol("PortalGroupContext"),Gt=O({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=tt({resolveTarget(){return e.target}});return R(je,r),()=>{let{target:l,...a}=e;return j({theirProps:a,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var Vt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Vt||{});let se=Symbol("DialogContext");function He(e){let t=L(se,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,He),n}return t}let z="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Qt=O({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:z},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:l}){var a,u;let o=(a=e.id)!=null?a:`headlessui-dialog-${Ee()}`,i=w(!1);k(()=>{i.value=!0});let s=!1,d=m(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(s||(s=!0,console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=w(0),f=Ae(),p=m(()=>e.open===z&&f!==null?(f.value&q.Open)===q.Open:e.open),c=w(null),v=m(()=>I(c));if(l({el:c,$el:c}),!(e.open!==z||f!==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===z?void 0:e.open}`);let E=m(()=>i.value&&p.value?0:1),F=m(()=>E.value===0),H=m(()=>h.value>1),fe=L(se,null)!==null,[Ie,Be]=_t(),{resolveContainers:Z,mainTreeNodeRef:pe,MainTreeNode:Ue}=Ct({portals:Ie,defaultContainers:[m(()=>{var g;return(g=B.panelRef.value)!=null?g:c.value})]}),We=m(()=>H.value?"parent":"leaf"),ve=m(()=>f!==null?(f.value&q.Closing)===q.Closing:!1),qe=m(()=>fe||ve.value?!1:F.value),_e=m(()=>{var g,y,S;return(S=Array.from((y=(g=v.value)==null?void 0:g.querySelectorAll("body > *"))!=null?y:[]).find(T=>T.id==="headlessui-portal-root"?!1:T.contains(b(pe))&&T instanceof HTMLElement))!=null?S:null});ge(_e,qe);let Ge=m(()=>H.value?!0:F.value),Ve=m(()=>{var g,y,S;return(S=Array.from((y=(g=v.value)==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?y:[]).find(T=>T.contains(b(pe))&&T instanceof HTMLElement))!=null?S:null});ge(Ve,Ge),Ht({type:"Dialog",enabled:m(()=>E.value===0),element:c,onUpdate:(g,y)=>{if(y==="Dialog")return x(g,{[oe.Add]:()=>h.value+=1,[oe.Remove]:()=>h.value-=1})}});let Ye=Bt({name:"DialogDescription",slot:m(()=>({open:p.value}))}),V=w(null),B={titleId:V,panelRef:w(null),dialogState:E,setTitleId(g){V.value!==g&&(V.value=g)},close(){t("close",!1)}};R(se,B);let Ke=m(()=>!(!F.value||H.value));wt(Z,(g,y)=>{g.preventDefault(),B.close(),rt(()=>y==null?void 0:y.focus())},Ke);let ze=m(()=>!(H.value||E.value!==0));De((u=v.value)==null?void 0:u.defaultView,"keydown",g=>{ze.value&&(g.defaultPrevented||g.key===Ne.Escape&&(g.preventDefault(),g.stopPropagation(),B.close()))});let Xe=m(()=>!(ve.value||E.value!==0||fe));return xt(v,Xe,g=>{var y;
4return{containers:[...(y=g.containers)!=null?y:[],Z]}}),C(g=>{if(E.value!==0)return;let y=b(c);if(!y)return;let S=new ResizeObserver(T=>{for(let ee of T){let Y=ee.target.getBoundingClientRect();Y.x===0&&Y.y===0&&Y.width===0&&Y.height===0&&B.close()}});S.observe(y),g(()=>S.disconnect())}),()=>{let{open:g,initialFocus:y,...S}=e,T={...n,ref:c,id:o,role:d.value,"aria-modal":E.value===0?!0:void 0,"aria-labelledby":V.value,"aria-describedby":Ye.value},ee={open:E.value===0};return $(we,{force:!0},()=>[$(qt,()=>$(Gt,{target:c.value},()=>$(we,{force:!1},()=>$(U,{initialFocus:y,containers:Z,features:F.value?x(We.value,{parent:U.features.RestoreFocus,leaf:U.features.All&~U.features.FocusLock}):U.features.None},()=>$(Be,{},()=>j({ourProps:T,theirProps:{...S,...n},slot:ee,attrs:n,slots:r,visible:E.value===0,features:le.RenderStrategy|le.Static,name:"Dialog"})))))),$(Ue)])}}}),Jt=O({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var l;let a=(l=e.id)!=null?l:`headlessui-dialog-panel-${Ee()}`,u=He("DialogPanel");r({el:u.panelRef,$el:u.panelRef});function o(i){i.stopPropagation()}return()=>{let{...i}=e,s={id:a,ref:u.panelRef,onClick:o};return j({ourProps:s,theirProps:i,slot:{open:u.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});export{j as A,Jt as G,le as N,yt as S,bt as T,Qt as Y,Ee as a,b,J as c,q as i,Ae as l,ce as o,zt as s,Xt as t,x 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.