PageSourceSearch

https://tomba.io/_nuxt/D5CB2lKp.js

js tomba.io collected 2026-09-24 08:43:25 UTC 736 bytes, 1 lines download raw bytes

vendor: 736 bytes, line 1
1import{t as e}from"./DWEoD8ZB.js";import{y as t}from"./HaXQ1HeE.js";function n(n){let r=t(``,1e3);return{search:r,handleTypeaheadSearch:(t,a)=>{if(r.value+=t,n)n(t);else{let t=e(),n=a.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),o=n.find(e=>e.ref===t),s=i(n.map(e=>e.textValue),r.value,o?.textValue),c=n.find(e=>e.textValue===s);return c&&c.ref.focus(),c?.ref}},resetTypeahead:()=>{r.value=``}}}function r(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function i(e,t,n){let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,o=r(e,Math.max(a,0));i.length===1&&(o=o.filter(e=>e!==n));let s=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return s===n?void 0:s}export{n,i 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.