1import{at as e,c as t}from"./runtime-core.esm-bundler-DJWTQV7C.js";var n=({key:e,isListOpen:t})=>{let n=new Set([`Enter`,` `,`ArrowDown`]);if(!t)return n.has(e)?`open`:`none`;switch(e){case`Escape`:return`close`;case`Enter`:return`select`;case`ArrowDown`:return`next`;case`ArrowUp`:return`prev`;default:return`none`}},r=({itemsLengthRef:n,containerRef:r,initialIndex:i=-1,scrollSelector:a,idPrefix:o=`option`})=>{let s=e(i);return{highlightedIndex:s,moveNext:()=>{s.value=Math.min(s.value+1,n.value-1)},movePrev:()=>{s.value=Math.max(s.value-1,0)},resetHighlight:()=>{s.value=i},scrollHighlightedIntoView:()=>{if(s.value<0||!r?.value)return;let e;e=typeof a==`function`?a(s.value):typeof a==`string`?a:`#${o}-${s.value}`,r.value.querySelector(e)?.scrollIntoView({block:`nearest`,inline:`nearest`})},activeDescendantId:t(()=>s.value>=0?`${o}-${s.value}`:void 0)}};export{n,r 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.