PageSourceSearch

https://trailence.org/chunk-B4v67cdU2.js

js trailence.org collected 2026-10-02 02:05:43 UTC 1,289 bytes, 1 lines download raw bytes

1var i=class h{constructor(t){if(t.startsWith(`#`))this.r=Number.parseInt(t.substring(1,3),16),this.g=Number.parseInt(t.substring(3,5),16),this.b=Number.parseInt(t.substring(5,7),16),this.a=1;else if(t.startsWith(`rgb(`)){let r=t.indexOf(`)`),s=t.substring(4,r).split(`,`);this.r=Number.parseInt(s[0],10),this.g=Number.parseInt(s[1],10),this.b=Number.parseInt(s[2],10),this.a=1}else if(t.startsWith(`rgba(`)){let r=t.indexOf(`)`),s=t.substring(5,r).split(`,`);this.r=Number.parseInt(s[0],10),this.g=Number.parseInt(s[1],10),this.b=Number.parseInt(s[2],10),this.a=Number.parseFloat(s[3])}else switch(t){case`red`:this.r=255,this.g=0,this.b=0,this.a=1;break;case`blue`:this.r=0,this.g=0,this.b=255,this.a=1;break;default:throw new Error(`Unexpected color format: `+t)}}toString(){return this.a===1?`rgb(`+this.r+`,`+this.g+`,`+this.b+`)`:`rgba(`+this.r+`,`+this.g+`,`+this.b+`,`+this.a+`)`}copy(){return new h(this.toString())}setRed(t){return this.r=t,this}setGreen(t){return this.g=t,this}setBlue(t){return this.b=t,this}setAlpha(t){return this.a=t,this}darker(t){return this.r=Math.max(0,this.r-t),this.g=Math.max(0,this.g-t),this.b=Math.max(0,this.b-t),this}lighter(t){return this.r=Math.min(255,this.r+t),this.g=Math.min(255,this.g+t),this.b=Math.min(255,this.b+t),this}};export{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.