1import{fn as e,gn as t,yn as n}from"./DgB56D7c.js";import{a as r}from"./85dhdHtF.js";function i(){let r=n([]),i=(n,i)=>{let{props:s,defaultOpen:c,destroyOnClose:u}=i||{},d=t({id:Symbol(``),isOpen:!!c,component:e(n),isMounted:!!c,destroyOnClose:!!u,originalProps:s||{},props:{...s},resolvers:[]});return r.push(d),{...d,open:e=>a(d.id,e),close:e=>o(d.id,e),patch:e=>l(d.id,e)}},a=(e,t)=>{let n=u(e);n.props=t?{...n.originalProps,...t}:{...n.originalProps},n.isOpen=!0,n.isMounted=!0;let r=new Promise(e=>n.resolvers.push(e));return Object.assign(r,{id:e,isMounted:n.isMounted,isOpen:n.isOpen,result:r})},o=(e,t)=>{let n=u(e);n.isOpen=!1;for(let e of n.resolvers.splice(0))e(t)},s=()=>{r.forEach(e=>o(e.id))},c=e=>{let t=u(e);if(t.isMounted=!1,t.destroyOnClose){let t=r.findIndex(t=>t.id===e);r.splice(t,1)}},l=(e,t)=>{let n=u(e);n.props={...n.props,...t}},u=e=>{let t=r.find(t=>t.id===e);if(!t)throw Error(`Overlay not found`);return t};return{overlays:r,open:a,close:o,closeAll:s,create:i,patch:l,unmount:c,isOpen:e=>u(e).isOpen}}var a=r(i);export{a as t};
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.