1const t=/<\/?(?:p|div|br|li|ul|ol|h[1-6]|tr|td|th|blockquote|section|article|figure|figcaption|hr)\b[^>]*>/gi,e={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","…":"â¦","—":"â","–":"â","’":"â","‘":"â","”":"â","“":"â"};function r(r,i=300){const n=function(r){if(!r)return"";let i=String(r);i=i.replace(/<(script|style|noscript)\b[^>]*>[\s\S]*?<\/\1>/gi," "),i=i.replace(t," "),i=i.replace(/<[^>]+>/g,""),i=i.replace(/&#(\d+);/g,(t,e)=>String.fromCodePoint(Number(e))),i=i.replace(/&#x([0-9a-f]+);/gi,(t,e)=>String.fromCodePoint(parseInt(e,16)));for(const[t,n]of Object.entries(e))i=i.split(t).join(n);return i.replace(/\s+/g," ").trim()}(r);if(n.length<=i)return n;const o=n.slice(0,i),l=o.lastIndexOf(" ");return(l>.6*i?o.slice(0,l):o).trimEnd()+"â¦"}export{r as h};
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.