PageSourceSearch

https://wewere.online/assets/styleUtils-LkIgZh7T.js

js wewere.online collected 2026-10-08 09:22:23 UTC 2,032 bytes, 1 lines download raw bytes

1function C(t,h,o,u=1){if(t.length<2||h==="straight"||h==="smooth")return t;const y=(e,r=0)=>{const n=Math.sin(o+e*12.9898+r*7.233)*43758.5453;return n-Math.floor(n)},c=[t[0]];for(let e=0;e<t.length-1;e++){const r=t[e],n=t[e+1];if(h==="organic"){const a=n.x-r.x,s=n.y-r.y,x=Math.sqrt(a*a+s*s);if(x>0){const l=-s/x,f=a/x,g=(y(e)-.5)*6;c.push({x:(r.x+n.x)/2+l*g,y:(r.y+n.y)/2+f*g})}c.push(n)}else if(h==="chaotic"){const a=n.x-r.x,s=n.y-r.y,x=Math.sqrt(a*a+s*s),l=Math.min(3,Math.ceil(x/50));for(let f=1;f<=l;f++){const g=f/(l+1),d=r.x+a*g,b=r.y+s*g,m=15*u,M=8*u,P=(y(e*10+f,0)-.5)*m,S=(y(e*10+f,1)-.5)*m,L=y(e*10+f,2)*Math.PI*2;c.push({x:d+P+Math.cos(L)*M,y:b+S+Math.sin(L)*M})}c.push(n)}}return c}function R(t,h=50,o=.4){if(t.length<3)return t;const u=Math.cos(h*Math.PI/180);let y=!1;for(let e=1;e<t.length-1;e++){const r=t[e].x-t[e-1].x,n=t[e].y-t[e-1].y,a=t[e+1].x-t[e].x,s=t[e+1].y-t[e].y,x=Math.hypot(r,n),l=Math.hypot(a,s);if(!(x===0||l===0)&&(r*a+n*s)/(x*l)<u){y=!0;break}}if(!y)return t;const c=[t[0]];for(let e=1;e<t.length-1;e++){const r=t[e-1],n=t[e],a=t[e+1],s=n.x-r.x,x=n.y-r.y,l=a.x-n.x,f=a.y-n.y,g=Math.hypot(s,x),d=Math.hypot(l,f);if(g===0||d===0){c.push(n);continue}const b=(s*l+x*f)/(g*d);if(b>=u){c.push(n);continue}const m=(u-b)/(u+1),M=Math.min(.49,o*(1+m));c.push({x:n.x-s*M,y:n.y-x*M}),c.push({x:n.x+l*M,y:n.y+f*M})}return c.push(t[t.length-1]),c}function X(t,h){if(t.length<2||h<2)return t;const o=[0];for(let e=1;e<t.length;e++)o.push(o[e-1]+Math.hypot(t[e].x-t[e-1].x,t[e].y-t[e-1].y));const u=o[o.length-1];if(u===0)return t;const y=[t[0]];let c=1;for(let e=1;e<h-1;e++){const r=u*e/(h-1);for(;c<t.length-1&&o[c]<r;)c++;const n=o[c]-o[c-1],a=n<=1e-6?0:(r-o[c-1])/n;y.push({x:t[c-1].x+(t[c].x-t[c-1].x)*a,y:t[c-1].y+(t[c].y-t[c-1].y)*a})}return y.push(t[t.length-1]),y}function Y(t){let h=0;for(let o=0;o<t.length;o++){const u=t.charCodeAt(o);h=(h<<5)-h+u,h=h&h}return Math.abs(h)}function k(t,h=0){const o=Math.sin(t+h*12.9898)*43758.5453;return o-Math.floor(o)}export{C as a,R as b,Y as h,X as r,k as s};

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.