PageSourceSearch

https://hoocs.ai/websitecms/_next/static/chunks/ogl-11e5318547402eb8.js

js hoocs.ai collected 2026-10-05 05:33:31 UTC 45,811 bytes, 5 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7407],{39419:(t,e,s)=>{s.d(e,{e:()=>E});var i=s(39831);function r(t,e,s){let i=e[0],r=e[1],h=e[2],n=e[3],a=s[0],o=s[1],l=s[2],u=s[3];return t[0]=i*u+n*a+r*l-h*o,t[1]=r*u+n*o+h*a-i*l,t[2]=h*u+n*l+i*o-r*a,t[3]=n*u-i*a-r*o-h*l,t}let h=function(t,e){let s=e[0],i=e[1],r=e[2],h=e[3],n=s*s+i*i+r*r+h*h;return n>0&&(n=1/Math.sqrt(n)),t[0]=s*n,t[1]=i*n,t[2]=r*n,t[3]=h*n,t};class n extends Array{constructor(t=0,e=0,s=0,i=1){super(t,e,s,i),this.onChange=()=>{},this._target=this;let r=["0","1","2","3"];return new Proxy(this,{set(t,e){let s=Reflect.set(...arguments);return s&&r.includes(e)&&t.onChange(),s}})}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}get w(){return this[3]}set x(t){this._target[0]=t,this.onChange()}set y(t){this._target[1]=t,this.onChange()}set z(t){this._target[2]=t,this.onChange()}set w(t){this._target[3]=t,this.onChange()}identity(){var t;return(t=this._target)[0]=0,t[1]=0,t[2]=0,t[3]=1,this.onChange(),this}set(t,e,s,i){var r;return t.length?this.copy(t):(r=this._target,r[0]=t,r[1]=e,r[2]=s,r[3]=i,this.onChange(),this)}rotateX(t){var e,s,i;let r,h,n,a,o,l;return e=this._target,s=this._target,i=.5*t,r=s[0],h=s[1],n=s[2],a=s[3],o=Math.sin(i),l=Math.cos(i),e[0]=r*l+a*o,e[1]=h*l+n*o,e[2]=n*l-h*o,e[3]=a*l-r*o,this.onChange(),this}rotateY(t){var e,s,i;let r,h,n,a,o,l;return e=this._target,s=this._target,i=.5*t,r=s[0],h=s[1],n=s[2],a=s[3],o=Math.sin(i),l=Math.cos(i),e[0]=r*l-n*o,e[1]=h*l+a*o,e[2]=n*l+r*o,e[3]=a*l-h*o,this.onChange(),this}rotateZ(t){var e,s,i;let r,h,n,a,o,l;return e=this._target,s=this._target,i=.5*t,r=s[0],h=s[1],n=s[2],a=s[3],o=Math.sin(i),l=Math.cos(i),e[0]=r*l+h*o,e[1]=h*l-r*o,e[2]=n*l+a*o,e[3]=a*l-n*o,this.onChange(),this}inverse(t=this._target){var e;let s,i,r,h,n,a;return e=this._target,s=t[0],i=t[1],a=(n=s*s+i*i+(r=t[2])*r+(h=t[3])*h)?1/n:0,e[0]=-s*a,e[1]=-i*a,e[2]=-r*a,e[3]=h*a,this.onChange(),this}conjugate(t=this._target){var e;return e=this._target,e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],this.onChange(),this}copy(t){var e;return e=this._target,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.onChange(),this}normalize(t=this._target){return h(this._target,t),this.onChange(),this}multiply(t,e){return e?r(this._target,t,e):r(this._target,this._target,t),this.onChange(),this}dot(t){var e;return e=this._target,e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}fromMatrix3(t){return!function(t,e){let s,i=e[0]+e[4]+e[8];if(i>0)s=Math.sqrt(i+1),t[3]=.5*s,s=.5/s,t[0]=(e[5]-e[7])*s,t[1]=(e[6]-e[2])*s,t[2]=(e[1]-e[3])*s;else{let i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);let r=(i+1)%3,h=(i+2)%3;s=Math.sqrt(e[3*i+i]-e[3*r+r]-e[3*h+h]+1),t[i]=.5*s,s=.5/s,t[3]=(e[3*r+h]-e[3*h+r])*s,t[r]=(e[3*r+i]+e[3*i+r])*s,t[h]=(e[3*h+i]+e[3*i+h])*s}}(this._target,t),this.onChange(),this}fromEuler(t,e){return!function(t,e,s="YXZ"){let i=Math.sin(.5*e[0]),r=Math.cos(.5*e[0]),h=Math.sin(.5*e[1]),n=Math.cos(.5*e[1]),a=Math.sin(.5*e[2]),o=Math.cos(.5*e[2]);"XYZ"===s?(t[0]=i*n*o+r*h*a,t[1]=r*h*o-i*n*a,t[2]=r*n*a+i*h*o,t[3]=r*n*o-i*h*a):"YXZ"===s?(t[0]=i*n*o+r*h*a,t[1]=r*h*o-i*n*a,t[2]=r*n*a-i*h*o,t[3]=r*n*o+i*h*a):"ZXY"===s?(t[0]=i*n*o-r*h*a,t[1]=r*h*o+i*n*a,t[2]=r*n*a+i*h*o,t[3]=r*n*o-i*h*a):"ZYX"===s?(t[0]=i*n*o-r*h*a,t[1]=r*h*o+i*n*a,t[2]=r*n*a-i*h*o,t[3]=r*n*o+i*h*a):"YZX"===s?(t[0]=i*n*o+r*h*a,t[1]=r*h*o+i*n*a,t[2]=r*n*a-i*h*o,t[3]=r*n*o-i*h*a):"XZY"===s&&(t[0]=i*n*o-r*h*a,t[1]=r*h*o-i*n*a,t[2]=r*n*a+i*h*o,t[3]=r*n*o+i*h*a)}(this._target,t,t.order),e||this.onChange(),this}fromAxisAngle(t,e){var s,i;let r;return s=this._target,r=Math.sin(i=.5*e),s[0]=r*t[0],s[1]=r*t[1],s[2]=r*t[2],s[3]=Math.cos(i),this.onChange(),this}slerp(t,e){var s,i;let r,h,n,a,o,l,u,d,c,g,f,p,m;return s=this._target,i=this._target,l=i[0],u=i[1],d=i[2],c=i[3],g=t[0],f=t[1],(h=l*g+u*f+d*(p=t[2])+c*(m=t[3]))<0&&(h=-h,g=-g,f=-f,p=-p,m=-m),1-h>1e-6?(n=Math.sin(r=Math.acos(h)),a=Math.sin((1-e)*r)/n,o=Math.sin(e*r)/n):(a=1-e,o=e),s[0]=a*l+o*g,s[1]=a*u+o*f,s[2]=a*d+o*p,s[3]=a*c+o*m,this.onChange(),this}fromArray(t,e=0){return this._target[0]=t[e],this._target[1]=t[e+1],this._target[2]=t[e+2],this._target[3]=t[e+3],this.onChange(),this}toArray(t=[],e=0){return t[e]=this[0],t[e+1]=this[1],t[e+2]=this[2],t[e+3]=this[3],t}}var a=s(80671);function o(t){let e=t[0],s=t[1],i=t[2],r=t[3],h=t[4],n=t[5],a=t[6],o=t[7],l=t[8],u=t[9],d=t[10
1],c=t[11],g=t[12],f=t[13],p=t[14],m=t[15];return(e*n-s*h)*(d*m-c*p)-(e*a-i*h)*(u*m-c*f)+(e*o-r*h)*(u*p-d*f)+(s*a-i*n)*(l*m-c*g)-(s*o-r*n)*(l*p-d*g)+(i*o-r*a)*(l*f-u*g)}function l(t,e,s){let i=e[0],r=e[1],h=e[2],n=e[3],a=e[4],o=e[5],l=e[6],u=e[7],d=e[8],c=e[9],g=e[10],f=e[11],p=e[12],m=e[13],x=e[14],b=e[15],M=s[0],_=s[1],E=s[2],A=s[3];return t[0]=M*i+_*a+E*d+A*p,t[1]=M*r+_*o+E*c+A*m,t[2]=M*h+_*l+E*g+A*x,t[3]=M*n+_*u+E*f+A*b,M=s[4],_=s[5],E=s[6],A=s[7],t[4]=M*i+_*a+E*d+A*p,t[5]=M*r+_*o+E*c+A*m,t[6]=M*h+_*l+E*g+A*x,t[7]=M*n+_*u+E*f+A*b,M=s[8],_=s[9],E=s[10],A=s[11],t[8]=M*i+_*a+E*d+A*p,t[9]=M*r+_*o+E*c+A*m,t[10]=M*h+_*l+E*g+A*x,t[11]=M*n+_*u+E*f+A*b,M=s[12],_=s[13],E=s[14],A=s[15],t[12]=M*i+_*a+E*d+A*p,t[13]=M*r+_*o+E*c+A*m,t[14]=M*h+_*l+E*g+A*x,t[15]=M*n+_*u+E*f+A*b,t}function u(t,e){let s=e[0],i=e[1],r=e[2],h=e[4],n=e[5],a=e[6],o=e[8],l=e[9],u=e[10];return t[0]=Math.hypot(s,i,r),t[1]=Math.hypot(h,n,a),t[2]=Math.hypot(o,l,u),t}let d=function(){let t=[1,1,1];return function(e,s){u(t,s);let i=1/t[0],r=1/t[1],h=1/t[2],n=s[0]*i,a=s[1]*r,o=s[2]*h,l=s[4]*i,d=s[5]*r,c=s[6]*h,g=s[8]*i,f=s[9]*r,p=s[10]*h,m=n+d+p,x=0;return m>0?(x=2*Math.sqrt(m+1),e[3]=.25*x,e[0]=(c-f)/x,e[1]=(g-o)/x,e[2]=(a-l)/x):n>d&&n>p?(x=2*Math.sqrt(1+n-d-p),e[3]=(c-f)/x,e[0]=.25*x,e[1]=(a+l)/x,e[2]=(g+o)/x):d>p?(x=2*Math.sqrt(1+d-n-p),e[3]=(g-o)/x,e[0]=(a+l)/x,e[1]=.25*x,e[2]=(c+f)/x):(x=2*Math.sqrt(1+p-n-d),e[3]=(a-l)/x,e[0]=(g+o)/x,e[1]=(c+f)/x,e[2]=.25*x),e}}();function c(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t[3]=e[3]+s[3],t[4]=e[4]+s[4],t[5]=e[5]+s[5],t[6]=e[6]+s[6],t[7]=e[7]+s[7],t[8]=e[8]+s[8],t[9]=e[9]+s[9],t[10]=e[10]+s[10],t[11]=e[11]+s[11],t[12]=e[12]+s[12],t[13]=e[13]+s[13],t[14]=e[14]+s[14],t[15]=e[15]+s[15],t}function g(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t[3]=e[3]-s[3],t[4]=e[4]-s[4],t[5]=e[5]-s[5],t[6]=e[6]-s[6],t[7]=e[7]-s[7],t[8]=e[8]-s[8],t[9]=e[9]-s[9],t[10]=e[10]-s[10],t[11]=e[11]-s[11],t[12]=e[12]-s[12],t[13]=e[13]-s[13],t[14]=e[14]-s[14],t[15]=e[15]-s[15],t}class f extends Array{constructor(t=1,e=0,s=0,i=0,r=0,h=1,n=0,a=0,o=0,l=0,u=1,d=0,c=0,g=0,f=0,p=1){return super(t,e,s,i,r,h,n,a,o,l,u,d,c,g,f,p),this}get x(){return this[12]}get y(){return this[13]}get z(){return this[14]}get w(){return this[15]}set x(t){this[12]=t}set y(t){this[13]=t}set z(t){this[14]=t}set w(t){this[15]=t}set(t,e,s,i,r,h,n,a,o,l,u,d,c,g,f,p){return t.length?this.copy(t):(this[0]=t,this[1]=e,this[2]=s,this[3]=i,this[4]=r,this[5]=h,this[6]=n,this[7]=a,this[8]=o,this[9]=l,this[10]=u,this[11]=d,this[12]=c,this[13]=g,this[14]=f,this[15]=p,this)}translate(t,e=this){let s,i,r,h,n,a,o,l,u,d,c,g,f,p,m;return f=t[0],p=t[1],m=t[2],e===this?(this[12]=e[0]*f+e[4]*p+e[8]*m+e[12],this[13]=e[1]*f+e[5]*p+e[9]*m+e[13],this[14]=e[2]*f+e[6]*p+e[10]*m+e[14],this[15]=e[3]*f+e[7]*p+e[11]*m+e[15]):(s=e[0],i=e[1],r=e[2],h=e[3],n=e[4],a=e[5],o=e[6],l=e[7],u=e[8],d=e[9],c=e[10],g=e[11],this[0]=s,this[1]=i,this[2]=r,this[3]=h,this[4]=n,this[5
1]=a,this[6]=o,this[7]=l,this[8]=u,this[9]=d,this[10]=c,this[11]=g,this[12]=s*f+n*p+u*m+e[12],this[13]=i*f+a*p+d*m+e[13],this[14]=r*f+o*p+c*m+e[14],this[15]=h*f+l*p+g*m+e[15]),this}rotate(t,e,s=this){let i,r,h,n,a,o,l,u,d,c,g,f,p,m,x,b,M,_,E,A,w,v,y,F,C,S,O,R;return C=e[0],1e-6>Math.abs(R=Math.hypot(C,S=e[1],O=e[2]))||(C*=R=1/R,S*=R,O*=R,i=Math.sin(t),h=1-(r=Math.cos(t)),n=s[0],a=s[1],o=s[2],l=s[3],u=s[4],d=s[5],c=s[6],g=s[7],f=s[8],p=s[9],m=s[10],x=s[11],b=C*C*h+r,M=S*C*h+O*i,_=O*C*h-S*i,E=C*S*h-O*i,A=S*S*h+r,w=O*S*h+C*i,v=C*O*h+S*i,y=S*O*h-C*i,F=O*O*h+r,this[0]=n*b+u*M+f*_,this[1]=a*b+d*M+p*_,this[2]=o*b+c*M+m*_,this[3]=l*b+g*M+x*_,this[4]=n*E+u*A+f*w,this[5]=a*E+d*A+p*w,this[6]=o*E+c*A+m*w,this[7]=l*E+g*A+x*w,this[8]=n*v+u*y+f*F,this[9]=a*v+d*y+p*F,this[10]=o*v+c*y+m*F,this[11]=l*v+g*y+x*F,s!==this&&(this[12]=s[12],this[13]=s[13],this[14]=s[14],this[15]=s[15])),this}scale(t,e=this){var s;let i,r,h;return i=(s="number"==typeof t?[t,t,t]:t)[0],r=s[1],h=s[2],this[0]=e[0]*i,this[1]=e[1]*i,this[2]=e[2]*i,this[3]=e[3]*i,this[4]=e[4]*r,this[5]=e[5]*r,this[6]=e[6]*r,this[7]=e[7]*r,this[8]=e[8]*h,this[9]=e[9]*h,this[10]=e[10]*h,this[11]=e[11]*h,this[12]=e[12],this[13]=e[13],this[14]=e[14],this[15]=e[15],this}add(t,e){return e?c(this,t,e):c(this,this,t),this}sub(t,e){return e?g(this,t,e):g(this,this,t),this}multiply(t,e){if(t.length)e?l(this,t,e):l(this,this,t);else this[0]=this[0]*t,this[1]=this[1]*t,this[2]=this[2]*t,this[3]=this[3]*t,this[4]=this[4]*t,this[5]=this[5]*t,this[6]=this[6]*t,this[7]=this[7]*t,this[8]=this[8]*t,this[9]=this[9]*t,this[10]=this[10]*t,this[11]=this[11]*t,this[12]=this[12]*t,this[13]=this[13]*t,this[14]=this[14]*t,this[15]=this[15]*t;return this}identity(){return this[0]=1,this[1]=0,this[2]=0,this[3]=0,this[4]=0,this[5]=1,this[6]=0,this[7]=0,this[8]=0,this[9]=0,this[10]=1,this[11]=0,this[12]=0,this[13]=0,this[14]=0,this[15]=1,this}copy(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this[3]=t[3],this[4]=t[4],this[5]=t[5],this[6]=t[6],this[7]=t[7],this[8]=t[8],this[9]=t[9],this[10]=t[10],this[11]=t[11],this[12]=t[12],this[13]=t[13],this[14]=t[14],this[15]=t[15],this}fromPerspective({fov:t,aspect:e,near:s,far:i}={}){let r,h;return r=1/Math.tan(t/2),h=1/(s-i),this[0]=r/e,this[1]=0,this[2]=0,this[3]=0,this[4]=0,this[5]=r,this[6]=0,this[7]=0,this[8]=0,this[9]=0,this[10]=(i+s)*h,this[11]=-1,this[12]=0,this[13]=0,this[14]=2*i*s*h,this[15]=0,this}fromOrthogonal({left:t,right:e,bottom:s,top:i,near:r,far:h}){let n,a,o;return n=1/(t-e),a=1/(s-i),o=1/(r-h),this[0]=-2*n,this[1]=0,this[2]=0,this[3]=0,this[4]=0,this[5]=-2*a,this[6]=0,this[7]=0,this[8]=0,this[9]=0,this[10]=2*o,this[11]=0,this[12]=(t+e)*n,this[13]=(i+s)*a,this[14]=(h+r)*o,this[15]=1,this}fromQuaternion(t){let e,s,i,r,h,n,a,o,l,u,d,c,g,f,p,m;return e=t[0],s=t[1],i=t[2],r=t[3],h=e+e,n=s+s,a=i+i,o=e*h,l=s*h,u=s*n,d=i*h,c=i*n,g=i*a,f=r*h,p=r*n,m=r*a,this[0]=1-u-g,this[1]=l+m,this[2]=d-p,this[3]=0,this[4]=l-m,this[5]=1-o-g,this[6]=c+f,this[7]=0,this[8]=d+p,this[9]=c-f,this[10]=1-o-u,this[11]=0,this[12]=0,this[13]=0,this[14]=0,this[15]=1,this}setPosition(t){return this.x=t[0],this.y=t[1],this.z=t[2],this}inverse(t=this){let e,s,i,r,h,n,a,o,l,u,d,c,g,f,p,m,x,b,M,_,E,A,w,v,y,F,C,S,O;return e=t[0],s=t[1],i=t[2],r=t[3],h=t[4],n=t[5],a=t[6],o=t[7],l=t[8],u=t[9],d=t[10],c=t[11],g=t[12],f=t[13],p=t[14],m=t[15],x=e*n-s*h,b=e*a-i*h,M=e*o-r*h,_=s*a-i*n,E=s*o-r*n,A=i*o-r*a,w=l*f-u*g,v=l*p-d*g,y=l*m-c*g,F=u*p-d*f,C=u*m-c*f,(O=x*(S=d*m-c*p)-b*C+M*F+_*y-E*v+A*w)&&(O=1/O,this[0]=(n*S-a*C+o*F)*O,this[1]=(i*C-s*S-r*F)*O,this[2]=(f*A-p*E+m*_)*O,this[3]=(d*E-u*A-c*_)*O,this[4]=(a*y-h*S-o*v)*O,this[5]=(e*S-i*y+r*v)*O,this[6]=(p*M-g*A-m*b)*O,this[7]=(l*A-d*M+c*b)*O,this[8]=(h*C-n*y+o*w)*O,this[9]=(s*y-e*C-r*w)*O,this[10]=(g*E-f*M+m*x)*O,this[11]=(u*M-l*E-c*x)*O,this[12]=(n*v-h*F-a*w)*O,this[13]=(e*F-s*v+i*w)*O,this[14]=(f*b-g*_-p*x)*O,this[15]=(l*_-u*b+d*x)*O),this}compose(t,e,s){return!function(t,e,s,i){let r=e[0],h=e[1],n=e[2],a=e[3],o=r+r,l=h+h,u=n+n,d=r*o,c=r*l,g=r*u,f=h*l,p=h*u,m=n*u,x=a*o,b=a*l,M=a*u,_=i[0],E=i[1],A=i[2];t[0]=(1-(f+m))*_,t[1]=(c+M)*_,t[2]=(g-b)*_,t[3]=0,t[4]=(c-M)*E,t[5]=(1-(d+m))*E,t[6]=(p+x)*E,t[7]=0,t[8]=(g+b)*A,t[9]=(p-x)*A,t[10]=(1-(d+f))*A,t[11]=0,t[12]=s[0],t[13]=s[1],t[14]=s[2],t[15]=1}(this,t,e,s),this}decompose(t,e,s){return!function(t,e,s,i){let r=a.Bw([t[0],t[1],t[2]]),h=a.Bw([t[4],t[5],t[6]]),n=a.Bw([t[8],t[9],t[10]]);0>o(t)&&(r=-r),s[0]=t[12],s[1]=t[13],s[2]=t[14];let l=t.slice(),u=1/r,c=1/h,g=1/n;l[0]*=u,l[1]*=u,l[2]*=u,l[4]*=c,l[5]*=c,l[6]*=c,l[8]*=g,l[9]*=g,l[10]*=g,d(e,l),i[0]=r,i[1]=h,i[2]=n}(this,t,e,s),this}getRotation(t){return d(t,this),this}getTranslation(t){return t[0]=this[12],t[1]=this[13],t[2]=this[14],this}getScaling(t){return u(t,this),this}getMaxScaleOnAxis(){let t,e,s,i,r,h,n,a,o;return t=this[0],e=this[1],s=this[2],i=this[4],r=this[5],h=this[6],n=this[8],Math.sqrt(Math.max(t*t+e*e+s*s,i*i+r*r+h*h,n*n+(a=this[9])*a+(o=this[10])*o))}lookAt(t,e,s){let i,r,h,n,a,o,l,u,d,c,g,f,p;return i=t[0],r=t[1],h=t[2],n=s[0],a=s[1],o=s[2],l=i-e[0],0==(c=l*l+(u=r-e[1])*u+(d=h-e[2])
1*d)?d=1:(l*=c=1/Math.sqrt(c),u*=c,d*=c),0==(c=(g=a*d-o*u)*g+(f=o*l-n*d)*f+(p=n*u-a*l)*p)&&(o?n+=1e-6:a?o+=1e-6:a+=1e-6,c=(g=a*d-o*u)*g+(f=o*l-n*d)*f+(p=n*u-a*l)*p),g*=c=1/Math.sqrt(c),f*=c,p*=c,this[0]=g,this[1]=f,this[2]=p,this[3]=0,this[4]=u*p-d*f,this[5]=d*g-l*p,this[6]=l*f-u*g,this[7]=0,this[8]=l,this[9]=u,this[10]=d,this[11]=0,this[12]=i,this[13]=r,this[14]=h,this[15]=1,this}determinant(){return o(this)}fromArray(t,e=0){return this[0]=t[e],this[1]=t[e+1],this[2]=t[e+2],this[3]=t[e+3],this[4]=t[e+4],this[5]=t[e+5],this[6]=t[e+6],this[7]=t[e+7],this[8]=t[e+8],this[9]=t[e+9],this[10]=t[e+10],this[11]=t[e+11],this[12]=t[e+12],this[13]=t[e+13],this[14]=t[e+14],this[15]=t[e+15],this}toArray(t=[],e=0){return t[e]=this[0],t[e+1]=this[1],t[e+2]=this[2],t[e+3]=this[3],t[e+4]=this[4],t[e+5]=this[5],t[e+6]=this[6],t[e+7]=this[7],t[e+8]=this[8],t[e+9]=this[9],t[e+10]=this[10],t[e+11]=this[11],t[e+12]=this[12],t[e+13]=this[13],t[e+14]=this[14],t[e+15]=this[15],t}}let p=new f;class m extends Array{constructor(t=0,e=t,s=t,i="YXZ"){super(t,e,s),this.order=i,this.onChange=()=>{},this._target=this;let r=["0","1","2"];return new Proxy(this,{set(t,e){let s=Reflect.set(...arguments);return s&&r.includes(e)&&t.onChange(),s}})}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(t){this._target[0]=t,this.onChange()}set y(t){this._target[1]=t,this.onChange()}set z(t){this._target[2]=t,this.onChange()}set(t,e=t,s=t){return t.length?this.copy(t):(this._target[0]=t,this._target[1]=e,this._target[2]=s,this.onChange(),this)}copy(t){return this._target[0]=t[0],this._target[1]=t[1],this._target[2]=t[2],this.onChange(),this}reorder(t){return this._target.order=t,this.onChange(),this}fromRotationMatrix(t,e=this.order){return!function(t,e,s="YXZ"){"XYZ"===s?(t[1]=Math.asin(Math.min(Math.max(e[8],-1),1)),.99999>Math.abs(e[8])?(t[0]=Math.atan2(-e[9],e[10]),t[2]=Math.atan2(-e[4],e[0])):(t[0]=Math.atan2(e[6],e[5]),t[2]=0)):"YXZ"===s?(t[0]=Math.asin(-Math.min(Math.max(e[9],-1),1)),.99999>Math.abs(e[9])?(t[1]=Math.atan2(e[8],e[10]),t[2]=Math.atan2(e[1],e[5])):(t[1]=Math.atan2(-e[2],e[0]),t[2]=0)):"ZXY"===s?(t[0]=Math.asin(Math.min(Math.max(e[6],-1),1)),.99999>Math.abs(e[6])?(t[1]=Math.atan2(-e[2],e[10]),t[2]=Math.atan2(-e[4],e[5])):(t[1]=0,t[2]=Math.atan2(e[1],e[0]))):"ZYX"===s?(t[1]=Math.asin(-Math.min(Math.max(e[2],-1),1)),.99999>Math.abs(e[2])?(t[0]=Math.atan2(e[6],e[10]),t[2]=Math.atan2(e[1],e[0])):(t[0]=0,t[2]=Math.atan2(-e[4],e[5]))):"YZX"===s?(t[2]=Math.asin(Math.min(Math.max(e[1],-1),1)),.99999>Math.abs(e[1])?(t[0]=Math.atan2(-e[9],e[5]),t[1]=Math.atan2(-e[2],e[0])):(t[0]=0,t[1]=Math.atan2(e[8],e[10]))):"XZY"===s&&(t[2]=Math.asin(-Math.min(Math.max(e[4],-1),1)),.99999>Math.abs(e[4])?(t[0]=Math.atan2(e[6],e[5]),t[1]=Math.atan2(e[8],e[0])):(t[0]=Math.atan2(-e[9],e[10]),t[1]=0))}(this._target,t,e),this.onChange(),this}fromQuaternion(t,e=this.order,s){return p.fromQuaternion(t),this._target.fromRotationMatrix(p,e),s||this.onChange(),this}fromArray(t,e=0){return this._target[0]=t[e],this._target[1]=t[e+1],this._target[2]=t[e+2],this}toArray(t=[],e=0){return t[e]=this[0],t[e+1]=this[1],t[e+2]=this[2],t}}class x{constructor(){this.parent=null,this.children=[],this.visible=!0,this.matrix=new f,this.worldMatrix=new f,this.matrixAutoUpdate=!0,this.worldMatrixNeedsUpdate=!1,this.position=new i.e,this.quaternion=new n,this.scale=new i.e(1),this.rotation=new m,this.up=new i.e(0,1,0),this.rotation._target.onChange=()=>this.quaternion.fromEuler(this.rotation,!0),this.quaternion._target.onChange=()=>this.rotation.fromQuaternion(this.quaternion,void 0,!0)}setParent(t,e=!0){this.parent&&t!==this.parent&&this.parent.removeChild(this,!1),this.parent=t,e&&t&&t.addChild(this,!1)}addChild(t,e=!0){~this.children.indexOf(t)||this.children.push(t),e&&t.setParent(this,!1)}removeChild(t,e=!0){~this.children.indexOf(t)&&this.children.splice(this.children.indexOf(t),1),e&&t.setParent(null,!1)}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.worldMatrixNeedsUpdate||t)&&(null===this.parent?this.worldMatrix.copy(this.matrix):this.worldMatrix.multiply(this.parent.worldMatrix,this.matrix
1),this.worldMatrixNeedsUpdate=!1,t=!0);for(let e=0,s=this.children.length;e<s;e++)this.children[e].updateMatrixWorld(t)}updateMatrix(){this.matrix.compose(this.quaternion,this.position,this.scale),this.worldMatrixNeedsUpdate=!0}traverse(t){if(!t(this))for(let e=0,s=this.children.length;e<s;e++)this.children[e].traverse(t)}decompose(){this.matrix.decompose(this.quaternion._target,this.position,this.scale),this.rotation.fromQuaternion(this.quaternion)}lookAt(t,e=!1){e?this.matrix.lookAt(this.position,t,this.up):this.matrix.lookAt(t,this.position,this.up),this.matrix.getRotation(this.quaternion._target),this.rotation.fromQuaternion(this.quaternion)}}function b(t,e,s){let i=e[0],r=e[1],h=e[2],n=e[3],a=e[4],o=e[5],l=e[6],u=e[7],d=e[8],c=s[0],g=s[1],f=s[2],p=s[3],m=s[4],x=s[5],b=s[6],M=s[7],_=s[8];return t[0]=c*i+g*n+f*l,t[1]=c*r+g*a+f*u,t[2]=c*h+g*o+f*d,t[3]=p*i+m*n+x*l,t[4]=p*r+m*a+x*u,t[5]=p*h+m*o+x*d,t[6]=b*i+M*n+_*l,t[7]=b*r+M*a+_*u,t[8]=b*h+M*o+_*d,t}class M extends Array{constructor(t=1,e=0,s=0,i=0,r=1,h=0,n=0,a=0,o=1){return super(t,e,s,i,r,h,n,a,o),this}set(t,e,s,i,r,h,n,a,o){return t.length?this.copy(t):(this[0]=t,this[1]=e,this[2]=s,this[3]=i,this[4]=r,this[5]=h,this[6]=n,this[7]=a,this[8]=o,this)}translate(t,e=this){let s,i,r,h,n,a,o,l,u,d,c;return s=e[0],i=e[1],r=e[2],h=e[3],n=e[4],a=e[5],o=e[6],l=e[7],u=e[8],d=t[0],c=t[1],this[0]=s,this[1]=i,this[2]=r,this[3]=h,this[4]=n,this[5
1]=a,this[6]=d*s+c*h+o,this[7]=d*i+c*n+l,this[8]=d*r+c*a+u,this}rotate(t,e=this){let s,i,r,h,n,a,o,l,u,d,c;return s=e[0],i=e[1],r=e[2],h=e[3],n=e[4],a=e[5],o=e[6],l=e[7],u=e[8],d=Math.sin(t),c=Math.cos(t),this[0]=c*s+d*h,this[1]=c*i+d*n,this[2]=c*r+d*a,this[3]=c*h-d*s,this[4]=c*n-d*i,this[5]=c*a-d*r,this[6]=o,this[7]=l,this[8]=u,this}scale(t,e=this){let s,i;return s=t[0],i=t[1],this[0]=s*e[0],this[1]=s*e[1],this[2]=s*e[2],this[3]=i*e[3],this[4]=i*e[4],this[5]=i*e[5],this[6]=e[6],this[7]=e[7],this[8]=e[8],this}multiply(t,e){return e?b(this,t,e):b(this,this,t),this}identity(){return this[0]=1,this[1]=0,this[2]=0,this[3]=0,this[4]=1,this[5]=0,this[6]=0,this[7]=0,this[8]=1,this}copy(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this[3]=t[3],this[4]=t[4],this[5]=t[5],this[6]=t[6],this[7]=t[7],this[8]=t[8],this}fromMatrix4(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this[3]=t[4],this[4]=t[5],this[5]=t[6],this[6]=t[8],this[7]=t[9],this[8]=t[10],this}fromQuaternion(t){let e,s,i,r,h,n,a,o,l,u,d,c,g,f,p,m;return e=t[0],s=t[1],i=t[2],r=t[3],h=e+e,n=s+s,a=i+i,o=e*h,l=s*h,u=s*n,d=i*h,c=i*n,g=i*a,f=r*h,p=r*n,m=r*a,this[0]=1-u-g,this[3]=l-m,this[6]=d+p,this[1]=l+m,this[4]=1-o-g,this[7]=c-f,this[2]=d-p,this[5]=c+f,this[8]=1-o-u,this}fromBasis(t,e,s){return this.set(t[0],t[1],t[2],e[0],e[1],e[2],s[0],s[1],s[2]),this}inverse(t=this){let e,s,i,r,h,n,a,o,l,u,d,c,g;return e=t[0],s=t[1],i=t[2],r=t[3],h=t[4],n=t[5],a=t[6],o=t[7],(g=e*(u=(l=t[8])*h-n*o)+s*(d=-l*r+n*a)+i*(c=o*r-h*a))&&(g=1/g,this[0]=u*g,this[1]=(-l*s+i*o)*g,this[2]=(n*s-i*h)*g,this[3]=d*g,this[4]=(l*e-i*a)*g,this[5]=(-n*e+i*r)*g,this[6]=c*g,this[7]=(-o*e+s*a)*g,this[8]=(h*e-s*r)*g),this}getNormalMatrix(t){let e,s,i,r,h,n,a,o,l,u,d,c,g,f,p,m,x,b,M,_,E,A,w,v,y,F,C,S,O;return e=t[0],s=t[1],i=t[2],r=t[3],h=t[4],n=t[5],a=t[6],o=t[7],l=t[8],u=t[9],d=t[10],c=t[11],g=t[12],f=t[13],p=t[14],m=t[15],x=e*n-s*h,b=e*a-i*h,M=e*o-r*h,_=s*a-i*n,E=s*o-r*n,A=i*o-r*a,w=l*f-u*g,v=l*p-d*g,y=l*m-c*g,F=u*p-d*f,C=u*m-c*f,(O=x*(S=d*m-c*p)-b*C+M*F+_*y-E*v+A*w)&&(O=1/O,this[0]=(n*S-a*C+o*F)*O,this[1]=(a*y-h*S-o*v)*O,this[2]=(h*C-n*y+o*w)*O,this[3]=(i*C-s*S-r*F)*O,this[4]=(e*S-i*y+r*v)*O,this[5]=(s*y-e*C-r*w)*O,this[6]=(f*A-p*E+m*_)*O,this[7]=(p*M-g*A-m*b)*O,this[8]=(g*E-f*M+m*x)*O),this}}let _=0;class E extends x{constructor(t,{geometry:e,program:s,mode:i=t.TRIANGLES,frustumCulled:r=!0,renderOrder:h=0}={}){super(),t.canvas||console.error("gl not passed as first argument to Mesh"),this.gl=t,this.id=_++,this.geometry=e,this.program=s,this.mode=i,this.frustumCulled=r,this.renderOrder=h,this.modelViewMatrix=new f,this.normalMatrix=new M,this.beforeRenderCallbacks=[],this.afterRenderCallbacks=[]}onBeforeRender(t){return this.beforeRenderCallbacks.push(t),this}onAfterRender(t){return this.afterRenderCallbacks.push(t),this}draw({camera:t}={}){t&&(this.program.uniforms.modelMatrix||Object.assign(this.program.uniforms,{modelMatrix:{value:null},viewMatrix:{value:null},modelViewMatrix:{value:null},normalMatrix:{value:null},projectionMatrix:{value:null},cameraPosition:{value:null}}),this.program.uniforms.projectionMatrix.value=t.projectionMatrix,this.program.uniforms.cameraPosition.value=t.worldPosition,this.program.uniforms.viewMatrix.value=t.viewMatrix,this.modelViewMatrix.multiply(t.viewMatrix,this.worldMatrix),this.normalMatrix.getNormalMatrix(this.modelViewMatrix),this.program.uniforms.modelMatrix.value=this.worldMatrix,this.program.uniforms.modelViewMatrix.value=this.modelViewMatrix,this.program.uniforms.normalMatrix.value=this.normalMatrix),this.beforeRenderCallbacks.forEach(e=>e&&e({mesh:this,camera:t}));let e=this.program.cullFace&&0>this.worldMatrix.determinant();this.program.use({flipFaces:e}),this.geometry.draw({mode:this.mode,program:this.program}),this.afterRenderCallbacks.forEach(e=>e&&e({mesh:this,camera:t}))}}},39831:(t,e,s)=>{s.d(e,{e:()=>r});var i=s(80671);class r extends Array{constructor(t=0,e=t,s=t){return super(t,e,s),this}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(t){this[0]=t}set y(t){this[1]=t}set z(t){this[2]=t}set(t,e=t,s=t){return t.length?this.copy(t):(i.hZ(this,t,e,s),this)}copy(t){return i.C(this,t),this}add(t,e){return e?i.WQ(this,t,e):i.WQ(this,this,t),this}sub(t,e){return e?i.Re(this,t,e):i.Re(this,this,t),this}
1multiply(t){return t.length?i.lw(this,this,t):i.hs(this,this,t),this}divide(t){return t.length?i.Qr(this,this,t):i.hs(this,this,1/t),this}inverse(t=this){return i.DI(this,t),this}len(){return i.Bw(this)}distance(t){return t?i.Io(this,t):i.Bw(this)}squaredLen(){return i.m3(this)}squaredDistance(t){return t?i.hG(this,t):i.m3(this)}negate(t=this){return i.ze(this,t),this}cross(t,e){return e?i.$A(this,t,e):i.$A(this,this,t),this}scale(t){return i.hs(this,this,t),this}normalize(){return i.S8(this,this),this}dot(t){return i.Om(this,t)}equals(t){return i.t2(this,t)}applyMatrix3(t){return i.ei(this,this,t),this}applyMatrix4(t){return i.Z0(this,this,t),this}scaleRotateMatrix4(t){return i.Sc(this,this,t),this}applyQuaternion(t){return i.gL(this,this,t),this}angle(t){return i.g7(this,t)}lerp(t,e){return i.Cc(this,this,t,e),this}smoothLerp(t,e,s){return i.YO(this,this,t,e,s),this}clone(){return new r(this[0],this[1],this[2])}fromArray(t,e=0){return this[0]=t[e],this[1]=t[e+1],this[2]=t[e+2],this}toArray(t=[],e=0){return t[e]=this[0],t[e+1]=this[1],t[e+2]=this[2],t}transformDirection(t){let e=this[0],s=this[1],i=this[2];return this[0]=t[0]*e+t[4]*s+t[8]*i,this[1]=t[1]*e+t[5]*s+t[9]*i,this[2]=t[2]*e+t[6]*s+t[10]*i,this.normalize()}}},59984:(t,e,s)=>{s.d(e,{Q:()=>n});let i={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#00ff00",blue:"#0000ff",fuchsia:"#ff00ff",cyan:"#00ffff",yellow:"#ffff00",orange:"#ff8000"};function r(t){4===t.length&&(t=t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);let e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e||console.warn(`Unable to convert hex string ${t} to rgb values`),[parseInt(e[1],16)/255,parseInt(e[2],16)/255,parseInt(e[3],16)/255]}function h(t){if(void 0===t)return[0,0,0];if(3==arguments.length)return arguments;if(!isNaN(t)){var e;return[((e=parseInt(e=t))>>16&255)/255,(e>>8&255)/255,(255&e)/255]}return"#"===t[0]?r(t):i[t.toLowerCase()]?r(i[t.toLowerCase()]):(console.warn("Color format not recognised"),[0,0,0])}class n extends Array{constructor(t){if(Array.isArray(t))return super(...t);return super(...h(...arguments))}get r(){return this[0]}get g(){return this[1]}get b(){return this[2]}set r(t){this[0]=t}set g(t){this[1]=t}set b(t){this[2]=t}set(t){return Array.isArray(t)?this.copy(t):this.copy(h(...arguments))}copy(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this}}},62969:(t,e,s)=>{s.d(e,{B:()=>h});let i=1,r={};class h{constructor(t,{vertex:e,fragment:s,uniforms:r={},transparent:h=!1,cullFace:n=t.BACK,frontFace:a=t.CCW,depthTest:o=!0,depthWrite:l=!0,depthFunc:u=t.LEQUAL}={}){t.canvas||console.error("gl not passed as first argument to Program"),this.gl=t,this.uniforms=r,this.id=i++,e||console.warn("vertex shader not supplied"),s||console.warn("fragment shader not supplied"),this.transparent=h,this.cullFace=n,this.frontFace=a,this.depthTest=o,this.depthWrite=l,this.depthFunc=u,this.blendFunc={},this.blendEquation={},this.stencilFunc={},this.stencilOp={},this.transparent&&!this.blendFunc.src&&(this.gl.renderer.premultipliedAlpha?this.setBlendFunc(this.gl.ONE,this.gl.ONE_MINUS_SRC_ALPHA):this.setBlendFunc(this.gl.SRC_ALPHA,this.gl.ONE_MINUS_SRC_ALPHA)),this.vertexShader=t.createShader(t.VERTEX_SHADER),this.fragmentShader=t.createShader(t.FRAGMENT_SHADER),this.program=t.createProgram(),t.attachShader(this.program,this.vertexShader),t.attachShader(this.program,this.fragmentShader),this.setShaders({vertex:e,fragment:s})}setShaders({vertex:t,fragment:e}){if(t&&(this.gl.shaderSource(this.vertexShader,t),this.gl.compileShader(this.vertexShader),""!==this.gl.getShaderInfoLog(this.vertexShader)&&console.warn(`${this.gl.getShaderInfoLog(this.vertexShader)}
2Vertex Shader
3${a(t)}`)),e&&(this.gl.shaderSource(this.fragmentShader,e),this.gl.compileShader(this.fragmentShader),""!==this.gl.getShaderInfoLog(this.fragmentShader)&&console.warn(`${this.gl.getShaderInfoLog(this.fragmentShader)}
4Fragment Shader
5${a(e)}`)),this.gl.linkProgram(this.program),!this.gl.getProgramParameter(this.program,this.gl.LINK_STATUS))return console.warn(this.gl.getProgramInfoLog(this.program));this.uniformLocations=new Map;let s=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_UNIFORMS);for(let t=0;t<s;t++){let e=this.gl.getActiveUniform(this.program,t);this.uniformLocations.set(e,this.gl.getUniformLocation(this.program,e.name));let s=e.name.match(/(\w+)/g);e.uniformName=s[0],e.nameComponents=s.slice(1)}this.attributeLocations=new Map;let i=[],r=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES);for(let t=0;t<r;t++){let e=this.gl.getActiveAttrib(this.program,t),s=this.gl.getAttribLocation(this.program,e.name);-1!==s&&(i[s]=e.name,this.attributeLocations.set(e,s))}this.attributeOrder=i.join("")}setBlendFunc(t,e,s,i){this.blendFunc.src=t,this.blendFunc.dst=e,this.blendFunc.srcAlpha=s,this.blendFunc.dstAlpha=i,t&&(this.transparent=!0)}setBlendEquation(t,e){this.blendEquation.modeRGB=t,this.blendEquation.modeAlpha=e}setStencilFunc(t,e,s){this.stencilRef=e,this.stencilFunc.func=t,this.stencilFunc.ref=e,this.stencilFunc.mask=s}setStencilOp(t,e,s){this.stencilOp.stencilFail=t,this.stencilOp.depthFail=e,this.stencilOp.depthPass=s}applyState(){this.depthTest?this.gl.renderer.enable(this.gl.DEPTH_TEST):this.gl.renderer.disable(this.gl.DEPTH_TEST),this.cullFace?this.gl.renderer.enable(this.gl.CULL_FACE):this.gl.renderer.disable(this.gl.CULL_FACE),this.blendFunc.src?this.gl.renderer.enable(this.gl.BLEND):this.gl.renderer.disable(this.gl.BLEND),this.cullFace&&this.gl.renderer.setCullFace(this.cullFace),this.gl.renderer.setFrontFace(this.frontFace),this.gl.renderer.setDepthMask(this.depthWrite),this.gl.renderer.setDepthFunc(this.depthFunc),this.blendFunc.src&&this.gl.renderer.setBlendFunc(this.blendFunc.src,this.blendFunc.dst,this.blendFunc.srcAlpha,this.blendFunc.dstAlpha),this.gl.renderer.setBlendEquation(this.blendEquation.modeRGB,this.blendEquation.modeAlpha),this.stencilFunc.func||this.stencilOp.stencilFail?this.gl.renderer.enable(this.gl.STENCIL_TEST):this.gl.renderer.disable(this.gl.STENCIL_TEST),this.gl.renderer.setStencilFunc(this.stencilFunc.func,this.stencilFunc.ref,this.stencilFunc.mask),this.gl.renderer.setStencilOp(this.stencilOp.stencilFail,this.stencilOp.depthFail,this.stencilOp.depthPass)}use({flipFaces:t=!1}={}){let e=-1;this.gl.renderer.state.currentProgram!==this.id&&(this.gl.useProgram(this.program),this.gl.renderer.state.currentProgram=this.id
5),this.uniformLocations.forEach((t,s)=>{let i=this.uniforms[s.uniformName];for(let t of s.nameComponents){if(!i)break;if(t in i)i=i[t];else if(Array.isArray(i.value))break;else{i=void 0;break}}if(!i)return l(`Active uniform ${s.name} has not been supplied`);if(i&&void 0===i.value)return l(`${s.name} uniform is missing a value parameter`);if(i.value.texture)return e+=1,i.value.update(e),n(this.gl,s.type,t,e);if(i.value.length&&i.value[0].texture){let r=[];return i.value.forEach(t=>{e+=1,t.update(e),r.push(e)}),n(this.gl,s.type,t,r)}n(this.gl,s.type,t,i.value)}),this.applyState(),t&&this.gl.renderer.setFrontFace(this.frontFace===this.gl.CCW?this.gl.CW:this.gl.CCW)}remove(){this.gl.deleteProgram(this.program)}}function n(t,e,s,i){i=i.length?function(t){let e=t.length,s=t[0].length;if(void 0===s)return t;let i=e*s,h=r[i];h||(r[i]=h=new Float32Array(i));for(let i=0;i<e;i++)h.set(t[i],i*s);return h}(i):i;let h=t.renderer.state.uniformLocations.get(s);if(i.length)if(void 0===h||h.length!==i.length)t.renderer.state.uniformLocations.set(s,i.slice(0));else{if(function(t,e){if(t.length!==e.length)return!1;for(let s=0,i=t.length;s<i;s++)if(t[s]!==e[s])return!1;return!0}(h,i))return;h.set?h.set(i):function(t,e){for(let s=0,i=t.length;s<i;s++)t[s]=e[s]}(h,i),t.renderer.state.uniformLocations.set(s,h)}else{if(h===i)return;t.renderer.state.uniformLocations.set(s,i)}switch(e){case 5126:return i.length?t.uniform1fv(s,i):t.uniform1f(s,i);case 35664:return t.uniform2fv(s,i);case 35665:return t.uniform3fv(s,i);case 35666:return t.uniform4fv(s,i);case 35670:case 5124:case 35678:case 36306:case 35680:case 36289:return i.length?t.uniform1iv(s,i):t.uniform1i(s,i);case 35671:case 35667:return t.uniform2iv(s,i);case 35672:case 35668:return t.uniform3iv(s,i);case 35673:case 35669:return t.uniform4iv(s,i);case 35674:return t.uniformMatrix2fv(s,!1,i);case 35675:return t.uniformMatrix3fv(s,!1,i);case 35676:return t.uniformMatrix4fv(s,!1,i)}}function a(t){let e=t.split("\n");for(let t=0;t<e.length;t++)e[t]=t+1+": "+e[t];return e.join("\n")}let o=0;function l(t){!(o>100)&&(console.warn(t),++o>100&&console.warn("More than 100 program warnings - stopping logs."))}},64576:(t,e,s)=>{s.d(e,{A:()=>h});let i=new(s(39831)).e,r=1;class h{constructor({canvas:t=document.createElement("canvas"),width:e=300,height:s=150,dpr:i=1,alpha:h=!1,depth:n=!0,stencil:a=!1,antialias:o=!1,premultipliedAlpha:l=!1,preserveDrawingBuffer:u=!1,powerPreference:d="default",autoClear:c=!0,webgl:g=2}={}){let f={alpha:h,depth:n,stencil:a,antialias:o,premultipliedAlpha:l,preserveDrawingBuffer:u,powerPreference:d};this.dpr=i,this.alpha=h,this.color=!0,this.depth=n,this.stencil=a,this.premultipliedAlpha=l,this.autoClear=c,this.id=r++,2===g&&(this.gl=t.getContext("webgl2",f)),this.isWebgl2=!!this.gl,this.gl||(this.gl=t.getContext("webgl",f)),this.gl||console.error("unable to create webgl context"),this.gl.renderer=this,this.setSize(e,s),this.state={},this.state.blendFunc={src:this.gl.ONE,dst:this.gl.ZERO},this.state.blendEquation={modeRGB:this.gl.FUNC_ADD},this.state.cullFace=!1,this.state.frontFace=this.gl.CCW,this.state.depthMask=!0,this.state.depthFunc=this.gl.LEQUAL,this.state.premultiplyAlpha=!1,this.state.flipY=!1,this.state.unpackAlignment=4,this.state.framebuffer=null,this.state.viewport={x:0,y:0,width:null,height:null},this.state.textureUnits=[],this.state.activeTextureUnit=0,this.state.boundBuffer=null,this.state.uniformLocations=new Map,this.state.currentProgram=null,this.extensions={},this.isWebgl2?(this.getExtension("EXT_color_buffer_float"),this.getExtension("OES_texture_float_linear")):(this.getExtension("OES_texture_float"),this.getExtension("OES_texture_float_linear"),this.getExtension("OES_texture_half_float"),this.getExtension("OES_texture_half_float_linear"),this.getExtension("OES_element_index_uint"),this.getExtension("OES_standard_derivatives"),this.getExtension("EXT_sRGB"),this.getExtension("WEBGL_depth_texture"),this.getExtension("WEBGL_draw_buffers")),this.getExtension("WEBGL_compressed_texture_astc"),this.getExtension("EXT_texture_compression_bptc"),this.getExtension("WEBGL_compressed_texture_s3tc"),this.getExtension("WEBGL_compressed_texture_etc1"),this.getExtension("WEBGL_compressed_texture_pvrtc"),this.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),this.vertexAttribDivisor=this.getExtension("ANGLE_instanced_arrays","vertexAttribDivisor","vertexAttribDivisorANGLE"),this.drawArraysInstanced=this.getExtension("ANGLE_instanced_arrays","drawArraysInstanced","drawArraysInstancedANGLE"),this.drawElementsInstanced=this.getExtension("ANGLE_instanced_arrays","drawElementsInstanced","drawElementsInstancedANGLE"),this.createVertexArray=this.getExtension("OES_vertex_array_object","createVertexArray","createVertexArrayOES"),this.bindVertexArray=this.getExtension("OES_vertex_array_object","bindVertexArray","bindVertexArrayOES"),this.deleteVertexArray=this.getExtension("OES_vertex_array_object","deleteVertexArray","deleteVertexArrayOES"),this.drawBuffers=this.getExtension("WEBGL_draw_buffers","drawBuffers","drawBuffersWEBGL"),this.parameters={},this.parameters.maxTextureUnits=this.gl.getParameter(this.gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS),this.parameters.maxAnisotropy=this.getExtension("EXT_texture_filter_anisotropic")?this.gl.getParameter(this.getExtension("EXT_texture_filter_anisotropic").MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}setSize(t,e){this.width=t,this.height=e,this.gl.canvas.width=t*this.dpr,this.gl.canvas.height=e*this.dpr,this.gl.canvas.style&&Object.assign(this.gl.canvas.style,{width:t+"px",height:e+"px"})}setViewport(t,e,s=0,i=0){(this.state.viewport.width!==t||this.state.viewport.height!==e)&&(this.state.viewport.width=t,this.state.viewport.height=e,this.state.viewport.x=s,this.state.viewport.y=i,this.gl.viewport(s,i,t,e))}setScissor(t,e,s=0,i=0){this.gl.scissor(s,i,t,e)}enable(t){!0!==this.state[t]&&(this.gl.enable(t),this.state[t]=!0)}disable(t){!1!==this.state[t]&&(this.gl.disable(t),this.state[t]=!1)}setBlendFunc(t,e,s,i){(this.state.blendFunc.src!==t||this.state.blendFunc.dst!==e||this.state.blendFunc.srcAlpha!==s||this.state.blendFunc.dstAlpha!==i)&&(this.state.blendFunc.src=t,this.state.blendFunc.dst=e,this.state.blendFunc.srcAlpha=s,this.state.blendFunc.dstAlpha=i,void 0!==s?this.gl.blendFuncSeparate(t,e,s,i):this.gl.blendFunc(t,e))}setBlendEquation(t,e){t=t||this.gl.FUNC_ADD,(this.state.blendEquation.modeRGB!==t||this.state.blendEquation.modeAlpha!==e)&&(this.state.blendEquation.modeRGB=t,this.state.blendEquation.modeAlpha=e,void 0!==e?this.gl.blendEquationSeparate(t,e):this.gl.blendEquation(t))}setCullFace(t){this.state.cullFace!==t&&(this.state.cullFace=t,this.gl.cullFace(t))}setFrontFace(t){this.state.frontFace!==t&&(this.state.frontFace=t,this.gl.frontFace(t))}setDepthMask(t){this.state.depthMask!==t&&(this.state.depthMask=t,this.gl.depthMask(t))}setDepthFunc(t){this.state.depthFunc!==t&&(this.state.depthFunc=t,this.gl.depthFunc(t))}setStencilMask(t){this.state.stencilMask!==t&&(this.state.stencilMask=t,this.gl.stencilMask(t))}setStencilFunc(t,e,s){(this.state.stencilFunc!==t||this.state.stencilRef!==e||this.state.stencilFuncMask!==s)&&(this.state.stencilFunc=t||this.gl.ALWAYS,this.state.stencilRef=e||0,this.state.stencilFuncMask=s||0,this.gl.stencilFunc(t||this.gl.ALWAYS,e||0,s||0))}setStencilOp(t,e,s){(this.state.stencilFail!==t||this.state.stencilDepthFail!==e||this.state.stencilDepthPass!==s)&&(this.state.stencilFail=t,this.state.stencilDepthFail=e,this.state.stencilDepthPass=s,this.gl.stencilOp(t,e,s))}activeTexture(t){this.state.activeTextureUnit!==t&&(this.state.activeTextureUnit=t,this.gl.activeTexture(this.gl.TEXTURE0+t))}bindFramebuffer({target:t=this.gl.FRAMEBUFFER,buffer:e=null}={}){this.state.framebuffer!==e&&(this.state.framebuffer=e,this.gl.bindFramebuffer(t,e))}getExtension(t,e,s){return e&&this.gl[e]?this.gl[e].bind(this.gl):(this.extensions[t]||(this.extensions[t]=this.gl.getExtension(t)),e)?this.extensions[t]?this.extensions[t][s].bind(this.extensions[t]):null:this.extensions[t]}sortOpaque(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program.id!==e.program.id?t.program.id-e.program.id:t.zDepth!==e.zDepth?t.zDepth-e.zDepth:e.id-t.id}
5sortTransparent(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.zDepth!==e.zDepth?e.zDepth-t.zDepth:e.id-t.id}sortUI(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program.id!==e.program.id?t.program.id-e.program.id:e.id-t.id}getRenderList({scene:t,camera:e,frustumCull:s,sort:r}){let h=[];if(e&&s&&e.updateFrustum(),t.traverse(t=>{if(!t.visible)return!0;t.draw&&(!s||!t.frustumCulled||!e||e.frustumIntersectsMesh(t))&&h.push(t)}),r){let t=[],s=[],r=[];h.forEach(h=>{h.program.transparent?h.program.depthTest?s.push(h):r.push(h):t.push(h),h.zDepth=0,0===h.renderOrder&&h.program.depthTest&&e&&(h.worldMatrix.getTranslation(i),i.applyMatrix4(e.projectionViewMatrix),h.zDepth=i.z)}),t.sort(this.sortOpaque),s.sort(this.sortTransparent),r.sort(this.sortUI),h=t.concat(s,r)}return h}render({scene:t,camera:e,target:s=null,update:i=!0,sort:r=!0,frustumCull:h=!0,clear:n}){null===s?(this.bindFramebuffer(),this.setViewport(this.width*this.dpr,this.height*this.dpr)):(this.bindFramebuffer(s),this.setViewport(s.width,s.height)),(n||this.autoClear&&!1!==n)&&(this.depth&&(!s||s.depth)&&(this.enable(this.gl.DEPTH_TEST),this.setDepthMask(!0)),(this.stencil||!s||s.stencil)&&(this.enable(this.gl.STENCIL_TEST),this.setStencilMask(255)),this.gl.clear((this.color?this.gl.COLOR_BUFFER_BIT:0)|(this.depth?this.gl.DEPTH_BUFFER_BIT:0)|(this.stencil?this.gl.STENCIL_BUFFER_BIT:0))),i&&t.updateMatrixWorld(),e&&e.updateMatrixWorld(),this.getRenderList({scene:t,camera:e,frustumCull:h,sort:r}).forEach(t=>{t.draw({camera:e})})}}},80671:(t,e,s)=>{function i(t){let e=t[0],s=t[1],i=t[2];return Math.sqrt(e*e+s*s+i*i)}function r(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function h(t,e,s,i){return t[0]=e,t[1]=s,t[2]=i,t}function n(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t[2]=e[2]+s[2],t}function a(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t[2]=e[2]-s[2],t}function o(t,e,s){return t[0]=e[0]*s[0],t[1]=e[1]*s[1],t[2]=e[2]*s[2],t}function l(t,e,s){return t[0]=e[0]/s[0],t[1]=e[1]/s[1],t[2]=e[2]/s[2],t}function u(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t}function d(t,e){let s=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(s*s+i*i+r*r)}function c(t,e){let s=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return s*s+i*i+r*r}function g(t){let e=t[0],s=t[1],i=t[2];return e*e+s*s+i*i}function f(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function p(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function m(t,e){let s=e[0],i=e[1],r=e[2],h=s*s+i*i+r*r;return h>0&&(h=1/Math.sqrt(h)),t[0]=e[0]*h,t[1]=e[1]*h,t[2]=e[2]*h,t}function x(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function b(t,e,s){let i=e[0],r=e[1],h=e[2],n=s[0],a=s[1],o=s[2];return t[0]=r*o-h*a,t[1]=h*n-i*o,t[2]=i*a-r*n,t}function M(t,e,s,i){let r=e[0],h=e[1],n=e[2];return t[0]=r+i*(s[0]-r),t[1]=h+i*(s[1]-h),t[2]=n+i*(s[2]-n),t}function _(t,e,s,i,r){let h=Math.exp(-i*r),n=e[0],a=e[1],o=e[2];return t[0]=s[0]+(n-s[0])*h,t[1]=s[1]+(a-s[1])*h,t[2]=s[2]+(o-s[2])*h,t}function E(t,e,s){let i=e[0],r=e[1],h=e[2],n=s[3]*i+s[7]*r+s[11]*h+s[15];return n=n||1,t[0]=(s[0]*i+s[4]*r+s[8]*h+s[12])/n,t[1]=(s[1]*i+s[5]*r+s[9]*h+s[13])/n,t[2]=(s[2]*i+s[6]*r+s[10]*h+s[14])/n,t}function A(t,e,s){let i=e[0],r=e[1],h=e[2],n=s[3]*i+s[7]*r+s[11]*h+s[15];return n=n||1,t[0]=(s[0]*i+s[4]*r+s[8]*h)/n,t[1]=(s[1]*i+s[5]*r+s[9]*h)/n,t[2]=(s[2]*i+s[6]*r+s[10]*h)/n,t}function w(t,e,s){let i=e[0],r=e[1],h=e[2];return t[0]=i*s[0]+r*s[3]+h*s[6],t[1]=i*s[1]+r*s[4]+h*s[7],t[2]=i*s[2]+r*s[5]+h*s[8],t}function v(t,e,s){let i=e[0],r=e[1],h=e[2],n=s[0],a=s[1],o=s[2],l=s[3],u=a*h-o*r,d=o*i-n*h,c=n*r-a*i,g=a*c-o*d,f=o*u-n*c,p=n*d-a*u,m=2*l;return u*=m,d*=m,c*=m,g*=2,f*=2,p*=2,t[0]=i+u+g,t[1]=r+d+f,t[2]=h+c+p,t}s.d(e,{$A:()=>b,Bw:()=>i,C:()=>r,Cc:()=>M,DI:()=>p,Io:()=>d,Om:()=>x,Qr:()=>l,Re:()=>a,S8:()=>m,Sc:()=>A,WQ:()=>n,YO:()=>_,Z0:()=>E,ei:()=>w,g7:()=>y,gL:()=>v,hG:()=>c,hZ:()=>h,hs:()=>u,lw:()=>o,m3:()=>g,t2:()=>F,ze:()=>f});let y=function(){let t=[0,0,0],e=[0,0,0];return function(s,i){r(t,s),r(e,i),m(t,t),m(e,e);let h=x(t,e);return h>1?0:h<-1?Math.PI:Math.acos(h)}}();function F(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}},87415:(t,e,s)=>{s.d(e,{l:()=>l});var i=s(39831);let r=new i.e,h=1,n=1,a=!1;class o{constructor(t,e={}){for(let s in t.canvas||console.error("gl not passed as first argument to Geometry"),this.gl=t,this.attributes=e,this.id=h++,this.VAOs={},this.drawRange={start:0,count:0},this.instancedCount=0,this.gl.renderer.bindVertexArray(null),this.gl.renderer.currentGeometry=null,this.glState=this.gl.renderer.state,e)this.addAttribute(s,e[s])}addAttribute(t,e){if(this.attributes[t]=e,e.id=n++,e.size=e.size||1,e.type=e.type||(e.data.constructor===Float32Array?this.gl.FLOAT:e.data.constructor===Uint16Array?this.gl.UNSIGNED_SHORT:this.gl.UNSIGNED_INT),e.target="index"===t?this.gl.ELEMENT_ARRAY_BUFFER:this.gl.ARRAY_BUFFER,e.normalized=e.normalized||!1,e.stride=e.stride||0,e.offset=e.offset||0,e.count=e.count||(e.stride?e.data.byteLength/e.stride:e.data.length/e.size),e.divisor=e.instanced||0,e.needsUpdate=!1,e.usage=e.usage||this.gl.STATIC_DRAW,e.buffer||this.updateAttribute(e),e.divisor){if(this.isInstanced=!0,this.instancedCount&&this.instancedCount!==e.count*e.divisor)return console.warn("geometry has multiple instanced buffers of different length"),this.instancedCount=Math.min(this.instancedCount,e.count*e.divisor);this.instancedCount=e.count*e.divisor}else"index"===t?this.drawRange.count=e.count:this.attributes.index||(this.drawRange.count=Math.max(this.drawRange.count,e.count))}updateAttribute(t){let e=!t.buffer;e&&(t.buffer=this.gl.createBuffer()),this.glState.boundBuffer!==t.buffer&&(this.gl.bindBuffer(t.target,t.buffer),this.glState.boundBuffer=t.buffer),e?this.gl.bufferData(t.target,t.data,t.usage):this.gl.bufferSubData(t.target,0,t.data),t.needsUpdate=!1}setIndex(t){this.addAttribute("index",t)}setDrawRange(t,e){this.drawRange.start=t,this.drawRange.count=e}setInstancedCount(t){this.instancedCount=t}createVAO(t){this.VAOs[t.attributeOrder]=this.gl.renderer.createVertexArray(),this.gl.renderer.bindVertexArray(this.VAOs[t.attributeOrder]),this.bindAttributes(t)}bindAttributes(t){t.attributeLocations.forEach((t,{name:e,type:s})=>{if(!this.attributes[e])return void console.warn(`active attribute ${e} not being supplied`);let i=this.attributes[e];this.gl.bindBuffer(i.target,i.buffer),this.glState.boundBuffer=i.buffer;let r=1;35674===s&&(r=2),35675===s&&(r=3),35676===s&&(r=4);let h=i.size/r,n=1===r?0:r*r*4,a=1===r?0:4*r;for(let e=0;e<r;e++)this.gl.vertexAttribPointer(t+e,h,i.type,i.normalized,i.stride+n,i.offset+e*a),this.gl.enableVertexAttribArray(t
5+e),this.gl.renderer.vertexAttribDivisor(t+e,i.divisor)}),this.attributes.index&&this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.attributes.index.buffer)}draw({program:t,mode:e=this.gl.TRIANGLES}){this.gl.renderer.currentGeometry!==`${this.id}_${t.attributeOrder}`&&(this.VAOs[t.attributeOrder]||this.createVAO(t),this.gl.renderer.bindVertexArray(this.VAOs[t.attributeOrder]),this.gl.renderer.currentGeometry=`${this.id}_${t.attributeOrder}`),t.attributeLocations.forEach((t,{name:e})=>{let s=this.attributes[e];s.needsUpdate&&this.updateAttribute(s)});let s=2;this.attributes.index?.type===this.gl.UNSIGNED_INT&&(s=4),this.isInstanced?this.attributes.index?this.gl.renderer.drawElementsInstanced(e,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*s,this.instancedCount):this.gl.renderer.drawArraysInstanced(e,this.drawRange.start,this.drawRange.count,this.instancedCount):this.attributes.index?this.gl.drawElements(e,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*s):this.gl.drawArrays(e,this.drawRange.start,this.drawRange.count)}getPosition(){let t=this.attributes.position;return t.data?t:a?void 0:(console.warn("No position buffer data found to compute bounds"),a=!0)}computeBoundingBox(t){t||(t=this.getPosition());let e=t.data,s=t.size;this.bounds||(this.bounds={min:new i.e,max:new i.e,center:new i.e,scale:new i.e,radius:1/0});let r=this.bounds.min,h=this.bounds.max,n=this.bounds.center,a=this.bounds.scale;r.set(Infinity),h.set(-1/0);for(let t=0,i=e.length;t<i;t+=s){let s=e[t],i=e[t+1],n=e[t+2];r.x=Math.min(s,r.x),r.y=Math.min(i,r.y),r.z=Math.min(n,r.z),h.x=Math.max(s,h.x),h.y=Math.max(i,h.y),h.z=Math.max(n,h.z)}a.sub(h,r),n.add(r,h).divide(2)}computeBoundingSphere(t){t||(t=this.getPosition());let e=t.data,s=t.size;this.bounds||this.computeBoundingBox(t);let i=0;for(let t=0,h=e.length;t<h;t+=s)r.fromArray(e,t),i=Math.max(i,this.bounds.center.squaredDistance(r));this.bounds.radius=Math.sqrt(i)}remove(){for(let t in this.VAOs)this.gl.renderer.deleteVertexArray(this.VAOs[t]),delete this.VAOs[t];for(let t in this.attributes)this.gl.deleteBuffer(this.attributes[t].buffer),delete this.attributes[t]}}class l extends o{constructor(t,{attributes:e={}}={}){Object.assign(e,{position:{size:2,data:new Float32Array([-1,-1,3,-1,-1,3])},uv:{size:2,data:new Float32Array([0,0,2,0,0,2])}}),super(t,e)}}}}]);

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.