1import{r as a,j as t}from"./app-DNe5vFRE.js";import{l as h}from"./Utilities-D6wiwRoK.js";import{L as x}from"./index-BS1du2zo.js";function g(){const[e,s]=a.useState(()=>typeof document<"u"&&document.documentElement.classList.contains("dark"));return a.useEffect(()=>{const o=()=>s(document.documentElement.classList.contains("dark"));return window.addEventListener("themechange",o),()=>window.removeEventListener("themechange",o)},[]),e}const d=["#3b82f6","#ef4444","#14b8a6","#eab308","#a855f7","#06b6d4"];function l(e){return d[e%d.length]}function j({name:e,chartData:s,series:o}){const[c,u]=a.useState(!1),m=g();if(a.useEffect(()=>{h(u)},[]),!c)return t.jsx(t.Fragment,{});const r=Object.keys(s),f={maintainAspectRatio:!1,responsive:!0,plugins:{legend:{display:!0,position:"bottom",labels:{color:m?"#e5e7eb":"#374151",boxWidth:12,font:{size:11}}},title:{display:!1,text:e}},scales:{y:{ticks:{callback:n=>`${n}%`}}}},p={labels:r,datasets:o.map((n,i)=>({label:n,data:r.map(b=>s[b]?.[n]??0),borderColor:l(i),backgroundColor:l(i),tension:.3,pointRadius:2}))};return t.jsxs("div",{className:"bg-white shadow px-2 dark:bg-gray-800 rounded w-full",children:[t.jsx("h2",{className:"text-lg px-4 font-semibold my-6 text-gray-900 dark:text-gray-50",children:e}),t.jsx("div",{className:"rounded",style:{width:"100%",height:"260px"},children:t.jsx(x,{options:f,data:p})})]})}export{j as SourceConversionRateChart};
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.