1var e=e=>`hsl(${[...e.trim()].reduce((e,t)=>e+(t.codePointAt(0)||0),0)%360}, 70%, 50%)`,t=/^hsl\(\s*(-?\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*\)$/,n=e=>{let t=e.replace(`#`,``);return[Number.parseInt(t.slice(0,2),16),Number.parseInt(t.slice(2,4),16),Number.parseInt(t.slice(4,6),16)]},r=({hue:e,saturation:t,lightness:n})=>{let r=(e%360+360)%360,i=t/100,a=n/100,o=(1-Math.abs(2*a-1))*i,s=o*(1-Math.abs(r/60%2-1)),c=a-o/2,[l,u,d]=r<60?[o,s,0]:r<120?[s,o,0]:r<180?[0,o,s]:r<240?[0,s,o]:r<300?[s,0,o]:[o,0,s];return[(l+c)*255,(u+c)*255,(d+c)*255]},i=e=>{let i=e.match(t),[a,o,s]=i?r({hue:Number(i[1]),saturation:Number(i[2]),lightness:Number(i[3])}):n(e);return(a*299+o*587+s*114)/1e3>128?`dark`:`light`},a=(e,t,n=217)=>{let r=e/Math.max(t-1,1),i=90-r*30;return`hsl(${n}, ${70+r*21}%, ${i}%)`},o=/^#([A-Fa-f0-9]{6})$/,s=e=>o.test(e),c=(e,t)=>e&&s(e)?e:t;export{e as a,s as i,i as n,c as r,a 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.