1import{B as e,Ht as t,J as n,Tn as r,Ut as i,g as a,gt as o,k as s,yn as c}from"./2opt8qvw.js";import{r as l}from"./DiG2C-ZL2.js";import{n as u}from"./DpPjJ9mF2.js";function d(){let e=r();return{primitiveElement:e,currentElement:a(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:l(e))}}var f=`data-reka-collection-item`;function p(l={}){let{key:p=``,isProvider:m=!1}=l,h=`${p}CollectionProvider`,g;if(m){let e=r(new Map);g={collectionRef:r(),itemMap:e},o(h,g)}else g=n(h);let _=(e,t=!1)=>{if(!g.collectionRef.value)return;let n=g.itemMap.value.get(e);return n&&(t||n.ref.dataset.disabled!==``)?n:void 0},v=(e=!1)=>{let t=g.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${f}]`)),r=new Map(n.map((e,t)=>[e,t])),i=Array.from(g.itemMap.value.values()).sort((e,t)=>(r.get(e.ref)??-1)-(r.get(t.ref)??-1));return e?i:i.filter(e=>e.ref.dataset.disabled!==``)},y=s({name:`CollectionSlot`,inheritAttrs:!1,setup(n,{slots:r,attrs:i}){let{primitiveElement:a,currentElement:o}=d();return t(o,()=>{g.collectionRef.value=o.value}),()=>e(u,{ref:a,...i},r)}}),b=s({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(t,{slots:n,attrs:r}){let{primitiveElement:a,currentElement:o}=d();return i(e=>{if(o.value){let n=c(o.value);g.itemMap.value.set(n,{ref:o.value,value:t.value}),e(()=>g.itemMap.value.delete(n))}}),()=>e(u,{...r,[f]:``,ref:a},n)}});return{getItems:v,getItem:_,reactiveItems:a(()=>
1Array.from(g.itemMap.value.values())),itemMapSize:a(()=>g.itemMap.value.size),CollectionSlot:y,CollectionItem:b}}export{d as n,p 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.