1import{S as d}from"./CSFfDpw0.js";import{u as m}from"./Bni9lRkn.js";import{q as p,L as T,j as v,at as w,aG as M,aY as A,p as R,M as S,bq as C}from"./Bz8wT4n7.js";import{g}from"./C2CSIjaT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="56e18f9c-15a0-47b0-9866-e9820dfc1804",e._sentryDebugIdIdentifier="sentry-dbid-56e18f9c-15a0-47b0-9866-e9820dfc1804")}catch{}})();const E="data-reka-collection-item";function U(e={}){const{key:t="",isProvider:n=!1}=e,r=`${t}CollectionProvider`;let o;if(n){const s=p(new Map);o={collectionRef:p(),itemMap:s},S(r,o)}else o=T(r);const b=(s=!1)=>{const i=o.collectionRef.value;if(!i)return[];const a=Array.from(i.querySelectorAll(`[${E}]`)),l=Array.from(o.itemMap.value.values()).sort((f,u)=>a.indexOf(f.ref)-a.indexOf(u.ref));return s?l:l.filter(f=>f.ref.dataset.disabled!=="")},y=w({name:"CollectionSlot",setup(s,{slots:i}
1){const{primitiveElement:a,currentElement:c}=m();return R(c,()=>{o.collectionRef.value=c.value}),()=>A(d,{ref:a},i)}}),_=w({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(s,{slots:i,attrs:a}){const{primitiveElement:c,currentElement:l}=m();return M(f=>{if(l.value){const u=C(l.value);o.itemMap.value.set(u,{ref:l.value,value:s.value}),f(()=>o.itemMap.value.delete(u))}}),()=>A(d,{...a,[E]:"",ref:c},i)}}),I=v(()=>Array.from(o.itemMap.value.values())),h=v(()=>o.itemMap.value.size);return{getItems:b,reactiveItems:I,itemMapSize:h,CollectionSlot:y,CollectionItem:_}}const x="rovingFocusGroup.onEntryFocus",k={bubbles:!1,cancelable:!0},D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function O(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Y(e,t,n){const r=O(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return D[r]}function j(e,t=!1){const n=g();for(const r of e)if(r===n||(r.focus({preventScroll:t}),g()!==n))return}function q(e,t){return e.map((n,r)=>e[(t+r)%e.length])}export{x as E,k as a,j as f,Y as g,U as u,q as w};
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.