1import{r}from"./lucide-icons-Dqzz7N0e.js";import{b as f}from"./track-DWzooEyE.js";function b(c=2e3,{track:s=!0}={}){const[p,i]=r.useState(!1),n=r.useRef(),l=r.useRef(s);l.current=s;const u=r.useCallback(async a=>{let t=!1;if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(a),t=!0}catch{}if(!t)try{const e=document.createElement("textarea");e.value=a,e.style.position="fixed",e.style.left="0",e.style.top="0",e.style.width="1px",e.style.height="1px",e.style.padding="0",e.style.border="none",e.style.outline="none",e.style.boxShadow="none",e.style.background="transparent",e.style.fontSize="16px",document.body.appendChild(e),e.focus(),e.select(),e.setSelectionRange(0,a.length);const d=document.execCommand("copy");document.body.removeChild(e),t=d}catch{}if(!t)return!1;n.current&&clearTimeout(n.current),i(!0);const o=l.current;return o!==!1&&f({event:"share_clipboard",props:o===!0?void 0:{placement:o.placement,content_type:o.contentType}}),n.current=setTimeout(()=>i(!1),c),!0},[c]);return[p,u]}export{b as u};
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.