PageSourceSearch

https://veriom.ai/_next/static/chunks/5644.10a6153da3bbfee6.js

js veriom.ai collected 2026-10-05 14:48:58 UTC 14,583 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5644],{75644:(t,e,n)=>{n.r(e),n.d(e,{MODE_DRAWS:()=>p,STATE_TO_MODE:()=>v,ThinkingOrb:()=>k,resolvePreset:()=>z});var r=n(79523),a=n(16323);function i(t){return t-Math.floor(t)}function s(t,e){let n=Math.floor(t),r=Math.floor(e),a=t-n,i=e-r;a=a*a*(3-2*a),i=i*i*(3-2*i);let s=o(n,r),h=o(n+1,r),l=o(n,r+1);return s+(h-s)*a+(l-s)*i+(s-h-l+o(n+1,r+1))*a*i}function o(t,e){let n=43758.5453*Math.sin(12.9898*t+78.233*e);return n-Math.floor(n)}function h(t,e){let n=1-2*(t+.5)/e,r=Math.sqrt(1-n*n),a=Math.PI*(3-Math.sqrt(5))*t;return[r*Math.cos(a),n,r*Math.sin(a)]}function l(t,e,n,r,a){let i=Math.sin(e),s=Math.cos(e),o=Math.sin(t),h=Math.cos(t);return(t,e,l)=>{let M=-t*o+l*h;return[n+(t*h+l*o)*a,r-(e*s-M*i)*a,e*i+M*s]}}function M(t,e,n=.3){let r=[];for(let e of t)(e.a??1)<.02||(e.r=Math.max(n,e.r),r.push(e));return r.sort((t,e)=>t.z-e.z),{dots:r,lines:e.filter(t=>(t.a??1)>=.02)}}function u(t,e){return(t/300)**e}function c(t){let e=t.length,n=[],r=0;for(let a=0;a<e;a++){let i=t[a],s=t[(a+1)%e],o=Math.hypot(s[0]-i[0],s[1]-i[1]);n.push(o),r+=o}return a=>{let i=a*r,s=0;for(;i>n[s]&&s<e-1;)i-=n[s],s++;let o=t[s],h=t[(s+1)%e],l=n[s]?Math.min(1,i/n[s]):0;return[o[0]+(h[0]-o[0])*l,o[1]+(h[1]-o[1])*l]}}let f=[t=>{let e=-Math.PI/2+2*t*Math.PI;return[.24*Math.cos(e),.24*Math.sin(e)]},c([[0,-.26],[.24,.16],[-.24,.16]]),c([[0,-.2],[.2,-.2],[.2,.2],[-.2,.2],[-.2,-.2]])],d=(t,e,n)=>{let r=t/2*.78,a=n.spin??1,i=l(.1*e*a,.3,t/2,t/2,1),s=u(t,n.rsPow??.6),o=[],c=n.ghostN??150;for(let t=0;t<c;t++){let e=h(t,c),[n,a,l]=i(e[0]*r,e[1]*r,e[2]*r),M=(l/r+1)/2;o.push({x:n,y:a,z:l,r:.8*s,white:.78,a:.1+.22*M})}let f=.24*e*a,d=n.faceOn?-.3:.55+.3*Math.sin(.18*e)*a,p=Math.cos(f),g=Math.sin(f),m=-g*Math.sin(d),b=Math.cos(d),w=p*Math.sin(d),x=0*w-g*b,v=g*m-p*w,y=p*b-0*m,P=.23*(n.wobMul??1),z=n.faceOn?r/(1+.85*P):r,D=n.lanes??5,k=n.segs??88,R=Math.max(1,Math.round(D*(n.bandMul??1)));for(let t=0;t<R;t++){let a=(t-(R-1)/2)*.075,h=Math.abs(t-(R-1)/2)/Math.max(1,(R-1)/2);for(let l=0;l<k;l++){let M=l/k*2*Math.PI,u=(.16*Math.sin(3*M-1.7*e+.22*t)+.07*Math.sin(5*M+1.1*e))*(n.wobMul??1),c=n.faceOn?1+u:1,f=n.faceOn?a:a+u,d=p*Math.cos(M)+m*Math.sin(M)+x*f,P=0*Math.cos(M)+b*Math.sin(M)+v*f,D=g*Math.cos(M)+w*Math.sin(M)+y*f,R=Math.sqrt(d*d+P*P+D*D),I=z*c,[N,S,B]=i(d/R*I,P/R*I,D/R*I),E=(B/r+1)/2;o.push({x:N,y:S,z:B,r:((n.rBase??1.1)+(n.rDepth??1.7)*E)*(1-.25*h)*s,white:.52-.44*E+.18*h,a:.4+.6*E})}}return M(o,[],n.rMin)},p=Object.fromEntries(Object.entries({orbits:(t,e,n)=>{let r=t/2*.82,a=l(.12*e,.3,t/2,t/2,1),i=u(t,n.rsPow??.6),s=[],h=n.orbitN??12,c=n.ghostN??40,f=n.particles??3;for(let t=0;t<h;t++){let h=o(t,1.7),l=o(t,5.2),M=o(t,8.9),u=r*(.45+.52*h),d=2*h*Math.PI,p=Math.acos(2*l-1),g=Math.sin(p)*Math.cos(d),m=Math.cos(p),b=Math.sin(p)*Math.sin(d),w=-m,x=g,v=Math.max(1e-6,Math.sqrt(w*w+x*x));w/=v;let y=0*m-b*(x/=v),P=b*w-0*g,z=g*x-m*w,D=(.25+.55*M)*(M>.5?1:-1);for(let t=0;t<c;t++){let e=t/c*2*Math.PI,[r,o,h]=a((w*Math.cos(e)+y*Math.sin(e))*u,(x*Math.cos(e)+P*Math.sin(e))*u,(0*Math.cos(e)+z*Math.sin(e))*u),l=(h/u+1)/2;s.push({x:r,y:o,z:h,r:(n.ghostR??.9)*i,white:.72,a:(n.ghostA??.5)*(.4+.6*l)})}for(let t=0;t<f;t++){let r=e*D+t/f*2*Math.PI+6*l,[o,h,M]=a((w*Math.cos(r)+y*Math.sin(r))*u,(x*Math.cos(r)+P*Math.sin(r))*u,(0*Math.cos(r)+z*Math.sin(r))*u),c=(M/u+1)/2;s.push({x:o,y:h,z:M,r:((n.partR??1.2)+(n.partRDepth??1.6)*c)*i,white:.3-.22*c})}}return M(s,[],n.rMin)},globe:(t,e,n)=>{let r=.4+.06*Math.sin(.35*e),a=l(.5*e,r,t/2,t/2,t/2*.82),i=e*(.5+1.2*(n.scanMul??1)),s=u(t,n.rsPow??.6),o=n.dimBase??1,h=[],c=n.latRings??17,f=n.lonDensity??44;for(let t=0;t<=c;t++){let r=-Math.PI/2+t/c*Math.PI,l=Math.cos(r),M=Math.sin(r),u=Math.max(1,Math.round(Math.abs(l)*f));for(let t=0;t<u;t++){var d;let r=t/u*2*Math.PI,[c,f,p]=a(l*Math.cos(r),M,l*Math.sin(r)),g=(p+1)/2,m=Math.atan2(Math.sin((d=r+.5*e)-i),Math.cos(d-i)),b=Math.exp(-(m*m)/.18)*Math.max(0,p);h.push({x:c,y:f,z:p,r:((n.rBase??.6)+(n.rDepth??1.7)*g+(n.rBoost??1)*b)*s,white:(n.inkFar??.62)-(n.inkSpan??.54)*g,a:o+(1-o)*Math.min(1,b)})}}return M(h,[],n.rMin)},rubik:(t,e,n)=>{let r=l(.55*e,.35+.1*Math.sin(.9*e),t/2,t/2,t/2*.82),a=u(t,n.rsPow??.6),i=n.moveCount??14,s=function(t){let e=[];for(let n=0;n<t;n++){let t=Math.min(2,Math.floor(3*o(n,2.3))),r=-1+.5*Math.min(3,Math.floor(4*o(n,5.9))),a=.5>
1o(n,7.7)?1:-1;e.push({axis:t,lo:r,hi:r+.5,ang:a*Math.PI/2})}return e}(i),h=function(t,e){let n=t%(2*e*.42+1.2),r=Array(e).fill(0),a=-1;if(n<2*e*.42){let t=Math.floor(n/.42),i=1-(1-Math.min(1,(n-.42*t)/.42/.7))**3;if(t<e){for(let e=0;e<t;e++)r[e]=1;r[t]=i,a=t}else{let n=2*e-1-t;for(let t=0;t<n;t++)r[t]=1;r[n]=1-i,a=n}}return{amount:r,active:a}}(e,i),c=[],f=n.latRings??15,d=n.lonDensity??40;for(let t=0;t<=f;t++){let e=-Math.PI/2+t/f*Math.PI,i=Math.cos(e),o=Math.sin(e),l=Math.max(1,Math.round(Math.abs(i)*d));for(let t=0;t<l;t++){let e=t/l*2*Math.PI,[M,u,f,d]=function(t,e,n){let[r,a,i]=t,s=!1;for(let t=0;t<e.length;t++){if(n.amount[t]<=0)continue;let o=e[t],h=0===o.axis?r:1===o.axis?a:i;if(h<o.lo||h>=o.hi)continue;t===n.active&&(s=!0);let l=o.ang*n.amount[t],M=Math.cos(l),u=Math.sin(l);if(0===o.axis){let t=a*M-i*u;i=a*u+i*M,a=t}else if(1===o.axis){let t=r*M+i*u;i=-r*u+i*M,r=t}else{let t=r*M-a*u;a=r*u+a*M,r=t}}return[r,a,i,s]}([i*Math.cos(e),o,i*Math.sin(e)],s,h),[p,g,m]=r(M,u,f),b=(m+1)/2;c.push({x:p,y:g,z:m,r:((n.rBase??.6)+(n.rDepth??1.7)*b+(d?n.rActive??.3:0))*a,white:(n.inkFar??.62)-(n.inkSpan??.54)*b-.14*!!d})}}return M(c,[],n.rMin)},wave:(t,e,n)=>{let r=t/2*.874,a=l(.18*e,.38,t/2,t/2,1),i=u(t,n.rsPow??.6),s=[],o=n.rings??15,h=n.lonDensity??40;for(let t=0;t<=o;t++){let l=-Math.PI/2+t/o*Math.PI,M=Math.cos(l),u=Math.sin(l),c=.62*Math.sin(2.1*e-.52*t)+.38*Math.sin(1.27*e+.83*t),f=r*(.88+.105*c),d=Math.max(1,Math.round(Math.abs(M)*h));for(let t=0;t<d;t++){let e=t/d*2*Math.PI,[o,h,l]=a(M*Math.cos(e)*f,u*f,M*Math.sin(e)*f),p=(l/r+1)/2,g=Math.max(0,c);s.push({x:o,y:h,z:l,r:((n.rBase??.6)+(n.rDepth??1.7)*p)*(1+.4*g)*i,white:.66-.56*p-.1*g})}}return M(s,[],n.rMin)},web:(t,e,n)=>{let r=t/2*.8*(n.spread??1),a=l(.12*e,.32,t/2,t/2,r),c=u(t,n.rsPow??.6),f=n.nodeN??30,d=n.thr??.72,p=n.nodeR??1.4,g=n.nodeRDepth??1.8,m=[];for(let t=0;t<f;t++){let n=h(t,f),r=n[0]+.3*(s(.31*t+9,.24*e)-.5)*2,a=n[1]+.3*(s(.53*t+27,.21*e)-.5)*2,i=n[2]+.3*(s(.77*t+55,.27*e)-.5)*2,o=Math.sqrt(r*r+a*a+i*i);m.push([r/o,a/o,i/o])}let b=[],w=[];for(let t=0;t<f;t++)for(let e=t+1;e<f;e++){let r=m[t][0]-m[e][0],i=m[t][1]-m[e][1],s=m[t][2]-m[e][2],o=Math.sqrt(r*r+i*i+s*s);if(o>=d)continue;let[h,l,M]=a(m[t][0],m[t][1],m[t][2]),[u,f,p]=a(m[e][0],m[e][1],m[e][2]),g=((M+p)/2+1)/2;
1b.push({x1:h,y1:l,x2:u,y2:f,white:.42,a:(1-o/d)*(.3+.55*g),w:Math.max(.6,(n.lineW??.8)*c)})}for(let t=0;t<f;t++){let[n,r,i]=a(m[t][0],m[t][1],m[t][2]),s=(i+1)/2,o=1+.25*Math.sin(1.4*e+2.7*t);w.push({x:n,y:r,z:i,r:(p+g*s)*o*c,white:.55-.45*s})}let x=n.signals??5;for(let t=0;t<x;t++){var v,y,P;let n=Math.floor(.55*e+7.31*t),r=Math.floor(o(n,3.1*t+1.7)*f),s=Math.floor(o(n,5.7*t+4.2)*f);if(r===s)continue;let h=i(.55*e+7.31*t),l=(v=m[r][0],v+(m[s][0]-v)*h),M=(y=m[r][1],y+(m[s][1]-y)*h),u=(P=m[r][2],P+(m[s][2]-P)*h),d=Math.max(1e-6,Math.sqrt(l*l+M*M+u*u)),[b,x,z]=a(l/d,M/d,u/d),D=(z+1)/2;w.push({x:b,y:x,z:z,r:(1.5*p+g*D)*c,white:.05,a:.5+.5*D})}return M(w,b,n.rMin)},braid:(t,e,n)=>{let r=t/2*.76,a=l(.4*e,.3,t/2,t/2,1),s=u(t,n.rsPow??.6),o=[],c=n.ghostN??150;for(let t=0;t<c;t++){let e=h(t,c),[n,i,l]=a(e[0]*r,e[1]*r,e[2]*r),M=(l/r+1)/2;o.push({x:n,y:i,z:l,r:.8*s,white:.78,a:.1+.22*M})}let f=n.strandN??52,d=n.turns??3;for(let t=0;t<3;t++){let h=t/3*2*Math.PI;for(let t=0;t<f;t++){let l=(2*i(t/f+.045*e)-1)*.96,M=Math.sqrt(Math.max(0,1-l*l)),u=Math.min(1,(1-Math.abs(l))/.1),c=l*Math.PI*d+h,p=1+.075*Math.sin(l*Math.PI*d*2+2*h+.8*e),g=M*r*p,[m,b,w]=a(Math.cos(c)*g,l*r*p,Math.sin(c)*g),x=(w/r+1)/2;o.push({x:m,y:b,z:w,r:((n.rBase??1.2)+(n.rDepth??1.8)*x)*s,white:.55-.45*x,a:u*(.45+.55*x)})}}return M(o,[],n.rMin)},ribbon:d,ring:d,morph:(t,e,n)=>{var r;let a=f.length,i=e%(2.3*a),s=Math.floor(i/2.3),o=i-2.3*s,h=o>1.4?(r=(o-1.4)/.9)*r*(3-2*r):0,l=n.spread??1,u=f[s],c=f[(s+1)%a],d=[];for(let t=0;t<160;t++){let e=t/160,n=u(e),r=c(e);d.push([(n[0]+(r[0]-n[0])*h)*l,(n[1]+(r[1]-n[1])*h)*l])}let p=[],g=0;for(let t=0;t<160;t++){let e=d[t],n=d[(t+1)%160],r=Math.hypot(n[0]-e[0],n[1]-e[1]);p.push(r),g+=r}let m=Math.max(6,Math.round(34*(n.iconD??1))),b=(n.rDot??.021)*1.35*l,w=1+.02*Math.sin(3.1*o),x=[],v=t/2,y=0,P=0;for(let e=0;e<m;e++){let n=e/m*g;for(;P+p[y]<n&&y<159;)P+=p[y],y++;let r=d[y],a=d[(y+1)%160],i=p[y]?Math.min(1,(n-P)/p[y]):0,s=(r[0]+(a[0]-r[0])*i)*w,o=(r[1]+(a[1]-r[1])*i)*w;x.push({x:v+s*t,y:v+o*t,z:0,r:Math.max(.35,b*t),white:.1})}return M(x,[],n.rMin)}}).map(([t,e])=>[t,(t,n,r,a,i)=>{var s;return s=e(n,r,i),void(s.lines.length&&function(t,e,n){for(let r of e){let e=r.a??1,a=Math.min(1,Math.max(0,r.white)),i=Math.round((n?1-a:a)*255);t.strokeStyle=`rgba(${i},${i},${i},${e})`,t.lineWidth=r.w,t.beginPath(),t.moveTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.stroke()}}(t,s.lines,a),function(t,e,n){for(let r of e){let e=r.a??1,a=Math.min(1,Math.max(0,r.white)),i=Math.round((n?1-a:a)*255);t.fillStyle=`rgba(${i},${i},${i},${e})`,t.beginPath(),t.arc(r.x,r.y,r.r,0,2*Math.PI),t.fill()}}(t,s.dots,a))}])),g=[["latRings","lonDensity"],["rings","lonDensity"],["lanes","segs"]],m=["orbitN","ghostN","nodeN","strandN","signals"],b=["iconD"],w=["rBase","rDepth","rActive","rDot","ghostR","partR","partRDepth","nodeR","nodeRDepth"],x={globe:{latRings:17,lonDensity:44,rBase:.6,rDepth:1.7,rBoost:1,inkFar:.62,inkSpan:.54,rsPow:.6,rMin:.3},orbits:{orbitN:12,ghostN:40,ghostR:.9,ghostA:.5,particles:3,partR:1.2,partRDepth:1.6,rsPow:.6,rMin:.3},rubik:{latRings:15,lonDensity:40,moveCount:14,rBase:.6,rDepth:1.7,rActive:.3,inkFar:.62,inkSpan:.54,rsPow:.6,rMin:.3},wave:{rings:15,lonDensity:40,rBase:.6,rDepth:1.7,rsPow:.6,rMin:.3},web:{nodeN:30,thr:.72,signals:5,nodeR:1.4,nodeRDepth:1.8,lineW:.8,rsPow:.6,rMin:.3},braid:{strandN:52,turns:3,ghostN:150,rBase:1.2,rDepth:1.8,rsPow:.6,rMin:.3},ribbon:{lanes:5,segs:88,ghostN:150,rBase:1.1,rDepth:1.7,rsPow:.6,rMin:.3},ring:{lanes:5,segs:88,ghostN:0,faceOn:1,rBase:1.1,rDepth:1.7,rsPow:.6,rMin:.3},morph:{rDot:.021,iconD:1,rMin:.25}},v={working:"orbits",searching:"globe",solving:"rubik",listening:"wave",connecting:"web",weaving:"braid",composing:"ribbon",breathing:"ring",shaping:"morph"},y={orbits:{64:{speed:1.885,count:1,size:1},20:{speed:3.9,count:.238,size:2.4}},globe:{64:{speed:2.015,count:.42,size:1.15,extra:{scanMul:4.08,dimBase:.45}},20:{speed:2.665,count:.105,size:1.75,extra:{scanMul:4.335,dimBase:.45}}},rubik:{64:{speed:1.82,count:.35,size:1.05},20:{speed:1.95,count:.088,size:1.9}},wave:{64:{speed:4.388,count:.341,size:1},20:{speed:3.998,count:.105,size:1.6}},web:{64:{speed:3.315,count:1.35,size:.95},20:{speed:6.63,count:.25,size:1.52}},braid:{64:{speed:1.625,count:.5,size:1},20:{speed:2.75,count:.1125,size:1.36}},ribbon:{64:{speed:2.34,count:.25,size:.85,extra:{spin:0,bandMul:3.9,wobMul:1}},20:{speed:3.12,count:.051,size:1.073,extra:{spin:0,bandMul:4.94,wobMul:1}}},ring:{64:{speed:3.24,count:.25,size:.956,extra:{spin:0,bandMul:3.627,wobMul:.368}},20:{speed:3.78,count:.028,size:1.622,extra:{spin:0,bandMul:3.968,wobMul:.565}}},morph:{64:{speed:2.405,count:.702,size:.395,extra:{spread:1.45}},20:{speed:2.08,count:.53,size:1.011,extra:{spread:1.45}}}},P=new Map;function z(t,e){let n=`${t}-${e}`,r=P.get(n);if(r)return r;let a=v[t],i=y[a][e],s={...x[a]};1!==i.count&&(s=function(t,e){let n={...t},r=new Set,a=Math.sqrt(e);for(let[t,e]of g){let i=n[t],s=n[e];null==i||null==s||r.has(t)||r.has(e)||(n[t]=Math.max(2,Math.round(i*a)),n[e]=Math.max(2,Math.round(s*a)),r.add(t),r.add(e))}for(let t of m){let a=n[t];null==a||0===a||r.has(t)||(n[t]=Math.max(1,Math.round(a*e)))}for(let t of b){let r=n[t];null!=r&&(n[t]=Math.max(.02,r*e))}return n}(s,i.count)),1!==i.size&&(s=function(t,e){let n={...t};for(let t of w){let r=n[t];null!=r&&(n[t]=r*e)}return n.rSizeMul=(n.rSizeMul??1)*e,n}(s,i.size)),i.extra&&(s={...s,...i.extra});let o={mode:a,speed:i.speed,opts:s};return P.set(n,o),o}let D={working:"Working…",searching:"Searching…",solving:"Solving…",listening:"Listening…",connecting:"Connecting…",weaving:"Weaving…",composing:"Composing…",breathing:"Thinking…",shaping:"Shaping…"};function k({state:t="working",size:e=64,theme:n="auto",speed:i=1,paused:s=!1,style:o,"aria-label":h,...l}){let M=(0,a.useRef)(null),u=function(t,e){let[n,r]=(0,a.useState)(!0);return(0,a.useEffect)(()=>
1{if("dark"===t)return void r(!0);if("light"===t)return void r(!1);let n=()=>{r(function(t){let e=t;for(;e;){let t=e.getAttribute("data-theme");if("dark"===t)return!0;if("light"===t)return!1;if(e.classList.contains("dark"))return!0;if(e.classList.contains("light"))return!1;e=e.parentElement}return null}(e.current)??(typeof matchMedia>"u"||matchMedia("(prefers-color-scheme: dark)").matches))};n();let a="u">typeof matchMedia?matchMedia("(prefers-color-scheme: dark)"):null,i=()=>n();null==a||a.addEventListener("change",i);let s=null;return"u">typeof MutationObserver&&e.current&&(s=new MutationObserver(n)).observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"],subtree:!0}),()=>{null==a||a.removeEventListener("change",i),null==s||s.disconnect()}},[t,e]),n}(n,M),c=function(){let[t,e]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(typeof matchMedia>"u")return;let t=matchMedia("(prefers-reduced-motion: reduce)");e(t.matches);let n=t=>e(t.matches);return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[]),t}();return(0,a.useEffect)(()=>{let n=M.current;if(!n)return;let r=Math.min(2,"u">typeof devicePixelRatio&&devicePixelRatio||1);n.width=Math.round(e*r),n.height=Math.round(e*r);let a=n.getContext("2d");if(!a)return;let{mode:o,speed:h,opts:l}=z(t,e),f=p[o],d=h*i,g=t=>{a.setTransform(r,0,0,r,0,0),a.clearRect(0,0,e,e),f(a,e,t,u,l)};if(c)return void g(.6);let m=0,b=!1,w=()=>{g(performance.now()/1e3*d),b&&(m=requestAnimationFrame(w))},x=()=>{b||s||(b=!0,m=requestAnimationFrame(w))},v=()=>{b=!1,cancelAnimationFrame(m)};g(performance.now()/1e3*d);let y=!0,P="u">typeof IntersectionObserver?new IntersectionObserver(([t])=>{(y=t.isIntersecting)&&"hidden"!==document.visibilityState?x():v()}):null;null==P||P.observe(n);let D=()=>{"hidden"===document.visibilityState?v():y&&x()};return document.addEventListener("visibilitychange",D),P||x(),()=>{v(),null==P||P.disconnect(),document.removeEventListener("visibilitychange",D)}},[t,e,u,i,s,c]),(0,r.jsx)("canvas",{ref:M,role:"img","aria-label":h??D[t],style:{width:e,height:e,display:"block",...o},...l})}}}]);

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.