@vatom/3d-face
Version:
This vAtom face can plug into the SDKs to render 3D content in either binary glTF or V3D format.
1 lines • 857 kB
JavaScript
var Face3D=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){"use strict";n.r(e),n.d(e,"ACESFilmicToneMapping",(function(){return At})),n.d(e,"AddEquation",(function(){return B})),n.d(e,"AddOperation",(function(){return nt})),n.d(e,"AdditiveBlending",(function(){return E})),n.d(e,"AlphaFormat",(function(){return kt})),n.d(e,"AlwaysDepth",(function(){return J})),n.d(e,"AlwaysStencilFunc",(function(){return on})),n.d(e,"AmbientLight",(function(){return $l})),n.d(e,"AmbientLightProbe",(function(){return bu})),n.d(e,"AnimationClip",(function(){return ol})),n.d(e,"AnimationLoader",(function(){return pl})),n.d(e,"AnimationMixer",(function(){return Ku})),n.d(e,"AnimationObjectGroup",(function(){return Xu})),n.d(e,"AnimationUtils",(function(){return Jc})),n.d(e,"ArcCurve",(function(){return bl})),n.d(e,"ArrayCamera",(function(){return gs})),n.d(e,"ArrowHelper",(function(){return Kh})),n.d(e,"Audio",(function(){return Lu})),n.d(e,"AudioAnalyser",(function(){return Ou})),n.d(e,"AudioContext",(function(){return mu})),n.d(e,"AudioListener",(function(){return Du})),n.d(e,"AudioLoader",(function(){return vu})),n.d(e,"AxesHelper",(function(){return $h})),n.d(e,"AxisHelper",(function(){return Md})),n.d(e,"BackSide",(function(){return m})),n.d(e,"BasicDepthPacking",(function(){return Ve})),n.d(e,"BasicShadowMap",(function(){return h})),n.d(e,"BinaryTextureLoader",(function(){return Bd})),n.d(e,"Bone",(function(){return Zs})),n.d(e,"BooleanKeyframeTrack",(function(){return $c})),n.d(e,"BoundingBoxHelper",(function(){return Ed})),n.d(e,"Box2",(function(){return sh})),n.d(e,"Box3",(function(){return Ir})),n.d(e,"Box3Helper",(function(){return Jh})),n.d(e,"BoxBufferGeometry",(function(){return Xi})),n.d(e,"BoxGeometry",(function(){return Zi})),n.d(e,"BoxHelper",(function(){return jh})),n.d(e,"BufferAttribute",(function(){return ii})),n.d(e,"BufferGeometry",(function(){return wi})),n.d(e,"BufferGeometryLoader",(function(){return au})),n.d(e,"ByteType",(function(){return Dt})),n.d(e,"Cache",(function(){return Al})),n.d(e,"Camera",(function(){return ra})),n.d(e,"CameraHelper",(function(){return Qh})),n.d(e,"CanvasRenderer",(function(){return Ld})),n.d(e,"CanvasTexture",(function(){return yA})),n.d(e,"CatmullRomCurve3",(function(){return Sl})),n.d(e,"CineonToneMapping",(function(){return st})),n.d(e,"CircleBufferGeometry",(function(){return Nc})),n.d(e,"CircleGeometry",(function(){return _c})),n.d(e,"ClampToEdgeWrapping",(function(){return vt})),n.d(e,"Clock",(function(){return Eu})),n.d(e,"ClosedSplineCurve3",(function(){return bd})),n.d(e,"Color",(function(){return Xr})),n.d(e,"ColorKeyframeTrack",(function(){return tl})),n.d(e,"CompressedTexture",(function(){return IA})),n.d(e,"CompressedTextureLoader",(function(){return gl})),n.d(e,"ConeBufferGeometry",(function(){return Lc})),n.d(e,"ConeGeometry",(function(){return Dc})),n.d(e,"CubeCamera",(function(){return sa})),n.d(e,"CubeGeometry",(function(){return Zi})),n.d(e,"CubeReflectionMapping",(function(){return lt})),n.d(e,"CubeRefractionMapping",(function(){return ut})),n.d(e,"CubeTexture",(function(){return Da})),n.d(e,"CubeTextureLoader",(function(){return vl})),n.d(e,"CubeUVReflectionMapping",(function(){return gt})),n.d(e,"CubeUVRefractionMapping",(function(){return ft})),n.d(e,"CubicBezierCurve",(function(){return Ll})),n.d(e,"CubicBezierCurve3",(function(){return _l})),n.d(e,"CubicInterpolant",(function(){return Zc})),n.d(e,"CullFaceBack",(function(){return s})),n.d(e,"CullFaceFront",(function(){return A})),n.d(e,"CullFaceFrontBack",(function(){return c})),n.d(e,"CullFaceNone",(function(){return o})),n.d(e,"Curve",(function(){return Il})),n.d(e,"CurvePath",(function(){return Vl})),n.d(e,"CustomBlending",(function(){return R})),n.d(e,"CylinderBufferGeometry",(function(){return Bc})),n.d(e,"CylinderGeometry",(function(){return Rc})),n.d(e,"Cylindrical",(function(){return ah})),n.d(e,"DataTexture",(function(){return ca})),n.d(e,"DataTexture2DArray",(function(){return La})),n.d(e,"DataTexture3D",(function(){return _a})),n.d(e,"DataTextureLoader",(function(){return fl})),n.d(e,"DecrementStencilOp",(function(){return Ye})),n.d(e,"DecrementWrapStencilOp",(function(){return Xe})),n.d(e,"DefaultLoadingManager",(function(){return ll})),n.d(e,"DepthFormat",(function(){return Yt})),n.d(e,"DepthStencilFormat",(function(){return Zt})),n.d(e,"DepthTexture",(function(){return bA})),n.d(e,"DirectionalLight",(function(){return Kl})),n.d(e,"DirectionalLightHelper",(function(){return Vh})),n.d(e,"DirectionalLightShadow",(function(){return ql})),n.d(e,"DiscreteInterpolant",(function(){return qc})),n.d(e,"DodecahedronBufferGeometry",(function(){return PA})),n.d(e,"DodecahedronGeometry",(function(){return NA})),n.d(e,"DoubleSide",(function(){return v})),n.d(e,"DstAlphaFactor",(function(){return H})),n.d(e,"DstColorFactor",(function(){return Q})),n.d(e,"DynamicBufferAttribute",(function(){return hd})),n.d(e,"DynamicCopyUsage",(function(){return pn})),n.d(e,"DynamicDrawUsage",(function(){return An})),n.d(e,"DynamicReadUsage",(function(){return un})),n.d(e,"EdgesGeometry",(function(){return Sc})),n.d(e,"EdgesHelper",(function(){return Td})),n.d(e,"EllipseCurve",(function(){return yl})),n.d(e,"EqualDepth",(function(){return X})),n.d(e,"EqualStencilFunc",(function(){return tn})),n.d(e,"EquirectangularReflectionMapping",(function(){return ht})),n.d(e,"EquirectangularRefractionMapping",(function(){return dt})),n.d(e,"Euler",(function(){return Wn})),n.d(e,"EventDispatcher",(function(){return fn})),n.d(e,"ExtrudeBufferGeometry",(function(){return pc})),n.d(e,"ExtrudeGeometry",(function(){return dc})),n.d(e,"Face3",(function(){return ti})),n.d(e,"Face4",(function(){return td})),n.d(e,"FaceColors",(function(){return b})),n.d(e,"FaceNormalsHelper",(function(){return Gh})),n.d(e,"FileLoader",(function(){return dl})),n.d(e,"FlatShading",(function(){return C})),n.d(e,"Float32Attribute",(function(){return Id})),n.d(e,"Float32BufferAttribute",(function(){return hi})),n.d(e,"Float64Attribute",(function(){return yd})),n.d(e,"Float64BufferAttribute",(function(){return di})),n.d(e,"FloatType",(function(){return Gt})),n.d(e,"Fog",(function(){return xs})),n.d(e,"FogExp2",(function(){return ws})),n.d(e,"Font",(function(){return pu})),n.d(e,"FontLoader",(function(){return fu})),n.d(e,"FrontFaceDirectionCCW",(function(){return u})),n.d(e,"FrontFaceDirectionCW",(function(){return l})),n.d(e,"FrontSide",(function(){return f})),n.d(e,"Frustum",(function(){return ha})),n.d(e,"GammaEncoding",(function(){return Ne})),n.d(e,"Geometry",(function(){return Yi})),n.d(e,"GeometryUtils",(function(){return Dd})),n.d(e,"GreaterDepth",(function(){return K})),n.d(e,"GreaterEqualDepth",(function(){return q})),n.d(e,"GreaterEqualStencilFunc",(function(){return an})),n.d(e,"GreaterStencilFunc",(function(){return nn})),n.d(e,"GridHelper",(function(){return Bh})),n.d(e,"Group",(function(){return ps})),n.d(e,"HalfFloatType",(function(){return Ut})),n.d(e,"HemisphereLight",(function(){return Wl})),n.d(e,"HemisphereLightHelper",(function(){return Sh})),n.d(e,"HemisphereLightProbe",(function(){return yu})),n.d(e,"IcosahedronBufferGeometry",(function(){return _A})),n.d(e,"IcosahedronGeometry",(function(){return LA})),n.d(e,"ImageBitmapLoader",(function(){return hu})),n.d(e,"ImageLoader",(function(){return ml})),n.d(e,"ImageUtils",(function(){return Sn})),n.d(e,"ImmediateRenderObject",(function(){return uh})),n.d(e,"IncrementStencilOp",(function(){return Je})),n.d(e,"IncrementWrapStencilOp",(function(){return Ze})),n.d(e,"InstancedBufferAttribute",(function(){return iu})),n.d(e,"InstancedBufferGeometry",(function(){return ru})),n.d(e,"InstancedInterleavedBuffer",(function(){return th})),n.d(e,"InstancedMesh",(function(){return tA})),n.d(e,"Int16Attribute",(function(){return fd})),n.d(e,"Int16BufferAttribute",(function(){return Ai})),n.d(e,"Int32Attribute",(function(){return vd})),n.d(e,"Int32BufferAttribute",(function(){return li})),n.d(e,"Int8Attribute",(function(){return dd})),n.d(e,"Int8BufferAttribute",(function(){return ai})),n.d(e,"IntType",(function(){return Nt})),n.d(e,"InterleavedBuffer",(function(){return Ms})),n.d(e,"InterleavedBufferAttribute",(function(){return Es})),n.d(e,"Interpolant",(function(){return Yc})),n.d(e,"InterpolateDiscrete",(function(){return we})),n.d(e,"InterpolateLinear",(function(){return xe})),n.d(e,"InterpolateSmooth",(function(){return Me})),n.d(e,"InvertStencilOp",(function(){return qe})),n.d(e,"JSONLoader",(function(){return _d})),n.d(e,"KeepStencilOp",(function(){return ze})),n.d(e,"KeyframeTrack",(function(){return Kc})),n.d(e,"LOD",(function(){return Ws})),n.d(e,"LatheBufferGeometry",(function(){return xc})),n.d(e,"LatheGeometry",(function(){return wc})),n.d(e,"Layers",(function(){return zn})),n.d(e,"LensFlare",(function(){return Pd})),n.d(e,"LessDepth",(function(){return Y})),n.d(e,"LessEqualDepth",(function(){return Z})),n.d(e,"LessEqualStencilFunc",(function(){return en})),n.d(e,"LessStencilFunc",(function(){return $e})),n.d(e,"Light",(function(){return Ql})),n.d(e,"LightProbe",(function(){return Iu})),n.d(e,"LightProbeHelper",(function(){return Rh})),n.d(e,"LightShadow",(function(){return zl})),n.d(e,"Line",(function(){return sA})),n.d(e,"Line3",(function(){return lh})),n.d(e,"LineBasicMaterial",(function(){return eA})),n.d(e,"LineCurve",(function(){return Nl})),n.d(e,"LineCurve3",(function(){return Pl})),n.d(e,"LineDashedMaterial",(function(){return zc})),n.d(e,"LineLoop",(function(){return uA})),n.d(e,"LinePieces",(function(){return nd})),n.d(e,"LineSegments",(function(){return lA})),n.d(e,"LineStrip",(function(){return ed})),n.d(e,"LinearEncoding",(function(){return Le})),n.d(e,"LinearFilter",(function(){return Mt})),n.d(e,"LinearInterpolant",(function(){return Xc})),n.d(e,"LinearMipMapLinearFilter",(function(){return Rt})),n.d(e,"LinearMipMapNearestFilter",(function(){return Tt})),n.d(e,"LinearMipmapLinearFilter",(function(){return St})),n.d(e,"LinearMipmapNearestFilter",(function(){return Et})),n.d(e,"LinearToneMapping",(function(){return it})),n.d(e,"Loader",(function(){return ul})),n.d(e,"LoaderUtils",(function(){return nu})),n.d(e,"LoadingManager",(function(){return cl})),n.d(e,"LogLuvEncoding",(function(){return Ge})),n.d(e,"LoopOnce",(function(){return Ie})),n.d(e,"LoopPingPong",(function(){return be})),n.d(e,"LoopRepeat",(function(){return ye})),n.d(e,"LuminanceAlphaFormat",(function(){return jt})),n.d(e,"LuminanceFormat",(function(){return zt})),n.d(e,"MOUSE",(function(){return i})),n.d(e,"Material",(function(){return ni})),n.d(e,"MaterialLoader",(function(){return eu})),n.d(e,"Math",(function(){return Cn})),n.d(e,"Matrix3",(function(){return Tn})),n.d(e,"Matrix4",(function(){return Hn})),n.d(e,"MaxEquation",(function(){return N})),n.d(e,"Mesh",(function(){return Hi})),n.d(e,"MeshBasicMaterial",(function(){return ri})),n.d(e,"MeshDepthMaterial",(function(){return is})),n.d(e,"MeshDistanceMaterial",(function(){return as})),n.d(e,"MeshFaceMaterial",(function(){return rd})),n.d(e,"MeshLambertMaterial",(function(){return Qc})),n.d(e,"MeshMatcapMaterial",(function(){return Wc})),n.d(e,"MeshNormalMaterial",(function(){return kc})),n.d(e,"MeshPhongMaterial",(function(){return Vc})),n.d(e,"MeshPhysicalMaterial",(function(){return Fc})),n.d(e,"MeshStandardMaterial",(function(){return Oc})),n.d(e,"MeshToonMaterial",(function(){return Hc})),n.d(e,"MinEquation",(function(){return _})),n.d(e,"MirroredRepeatWrapping",(function(){return Ct})),n.d(e,"MixOperation",(function(){return et})),n.d(e,"MultiMaterial",(function(){return id})),n.d(e,"MultiplyBlending",(function(){return S})),n.d(e,"MultiplyOperation",(function(){return tt})),n.d(e,"NearestFilter",(function(){return It})),n.d(e,"NearestMipMapLinearFilter",(function(){return xt})),n.d(e,"NearestMipMapNearestFilter",(function(){return bt})),n.d(e,"NearestMipmapLinearFilter",(function(){return wt})),n.d(e,"NearestMipmapNearestFilter",(function(){return yt})),n.d(e,"NeverDepth",(function(){return j})),n.d(e,"NeverStencilFunc",(function(){return Ke})),n.d(e,"NoBlending",(function(){return x})),n.d(e,"NoColors",(function(){return y})),n.d(e,"NoToneMapping",(function(){return rt})),n.d(e,"NormalBlending",(function(){return M})),n.d(e,"NotEqualDepth",(function(){return $})),n.d(e,"NotEqualStencilFunc",(function(){return rn})),n.d(e,"NumberKeyframeTrack",(function(){return el})),n.d(e,"Object3D",(function(){return ar})),n.d(e,"ObjectLoader",(function(){return su})),n.d(e,"ObjectSpaceNormalMap",(function(){return Qe})),n.d(e,"OctahedronBufferGeometry",(function(){return DA})),n.d(e,"OctahedronGeometry",(function(){return BA})),n.d(e,"OneFactor",(function(){return G})),n.d(e,"OneMinusDstAlphaFactor",(function(){return k})),n.d(e,"OneMinusDstColorFactor",(function(){return W})),n.d(e,"OneMinusSrcAlphaFactor",(function(){return V})),n.d(e,"OneMinusSrcColorFactor",(function(){return O})),n.d(e,"OrthographicCamera",(function(){return Xl})),n.d(e,"PCFShadowMap",(function(){return d})),n.d(e,"PCFSoftShadowMap",(function(){return p})),n.d(e,"ParametricBufferGeometry",(function(){return MA})),n.d(e,"ParametricGeometry",(function(){return xA})),n.d(e,"Particle",(function(){return od})),n.d(e,"ParticleBasicMaterial",(function(){return cd})),n.d(e,"ParticleSystem",(function(){return sd})),n.d(e,"ParticleSystemMaterial",(function(){return ld})),n.d(e,"Path",(function(){return Hl})),n.d(e,"PerspectiveCamera",(function(){return ia})),n.d(e,"Plane",(function(){return Pr})),n.d(e,"PlaneBufferGeometry",(function(){return Ca})),n.d(e,"PlaneGeometry",(function(){return va})),n.d(e,"PlaneHelper",(function(){return Yh})),n.d(e,"PointCloud",(function(){return ad})),n.d(e,"PointCloudMaterial",(function(){return Ad})),n.d(e,"PointLight",(function(){return Zl})),n.d(e,"PointLightHelper",(function(){return wh})),n.d(e,"Points",(function(){return mA})),n.d(e,"PointsMaterial",(function(){return hA})),n.d(e,"PolarGridHelper",(function(){return Dh})),n.d(e,"PolyhedronBufferGeometry",(function(){return TA})),n.d(e,"PolyhedronGeometry",(function(){return EA})),n.d(e,"PositionalAudio",(function(){return Uu})),n.d(e,"PositionalAudioHelper",(function(){return Lh})),n.d(e,"PropertyBinding",(function(){return Zu})),n.d(e,"PropertyMixer",(function(){return Fu})),n.d(e,"QuadraticBezierCurve",(function(){return Gl})),n.d(e,"QuadraticBezierCurve3",(function(){return Ul})),n.d(e,"Quaternion",(function(){return yn})),n.d(e,"QuaternionKeyframeTrack",(function(){return rl})),n.d(e,"QuaternionLinearInterpolant",(function(){return nl})),n.d(e,"REVISION",(function(){return r})),n.d(e,"RGBADepthPacking",(function(){return He})),n.d(e,"RGBAFormat",(function(){return Wt})),n.d(e,"RGBA_ASTC_10x10_Format",(function(){return me})),n.d(e,"RGBA_ASTC_10x5_Format",(function(){return pe})),n.d(e,"RGBA_ASTC_10x6_Format",(function(){return ge})),n.d(e,"RGBA_ASTC_10x8_Format",(function(){return fe})),n.d(e,"RGBA_ASTC_12x10_Format",(function(){return ve})),n.d(e,"RGBA_ASTC_12x12_Format",(function(){return Ce})),n.d(e,"RGBA_ASTC_4x4_Format",(function(){return oe})),n.d(e,"RGBA_ASTC_5x4_Format",(function(){return se})),n.d(e,"RGBA_ASTC_5x5_Format",(function(){return Ae})),n.d(e,"RGBA_ASTC_6x5_Format",(function(){return ce})),n.d(e,"RGBA_ASTC_6x6_Format",(function(){return le})),n.d(e,"RGBA_ASTC_8x5_Format",(function(){return ue})),n.d(e,"RGBA_ASTC_8x6_Format",(function(){return he})),n.d(e,"RGBA_ASTC_8x8_Format",(function(){return de})),n.d(e,"RGBA_PVRTC_2BPPV1_Format",(function(){return ie})),n.d(e,"RGBA_PVRTC_4BPPV1_Format",(function(){return re})),n.d(e,"RGBA_S3TC_DXT1_Format",(function(){return Kt})),n.d(e,"RGBA_S3TC_DXT3_Format",(function(){return $t})),n.d(e,"RGBA_S3TC_DXT5_Format",(function(){return te})),n.d(e,"RGBDEncoding",(function(){return Fe})),n.d(e,"RGBEEncoding",(function(){return Pe})),n.d(e,"RGBEFormat",(function(){return Jt})),n.d(e,"RGBFormat",(function(){return Qt})),n.d(e,"RGBM16Encoding",(function(){return Oe})),n.d(e,"RGBM7Encoding",(function(){return Ue})),n.d(e,"RGB_ETC1_Format",(function(){return ae})),n.d(e,"RGB_PVRTC_2BPPV1_Format",(function(){return ne})),n.d(e,"RGB_PVRTC_4BPPV1_Format",(function(){return ee})),n.d(e,"RGB_S3TC_DXT1_Format",(function(){return qt})),n.d(e,"RawShaderMaterial",(function(){return Uc})),n.d(e,"Ray",(function(){return Dr})),n.d(e,"Raycaster",(function(){return eh})),n.d(e,"RectAreaLight",(function(){return tu})),n.d(e,"RectAreaLightHelper",(function(){return xh})),n.d(e,"RedFormat",(function(){return Xt})),n.d(e,"ReinhardToneMapping",(function(){return at})),n.d(e,"RepeatWrapping",(function(){return mt})),n.d(e,"ReplaceStencilOp",(function(){return je})),n.d(e,"ReverseSubtractEquation",(function(){return L})),n.d(e,"RingBufferGeometry",(function(){return bc})),n.d(e,"RingGeometry",(function(){return yc})),n.d(e,"Scene",(function(){return or})),n.d(e,"SceneUtils",(function(){return Nd})),n.d(e,"ShaderChunk",(function(){return da})),n.d(e,"ShaderLib",(function(){return ga})),n.d(e,"ShaderMaterial",(function(){return na})),n.d(e,"ShadowMaterial",(function(){return Gc})),n.d(e,"Shape",(function(){return kl})),n.d(e,"ShapeBufferGeometry",(function(){return Ec})),n.d(e,"ShapeGeometry",(function(){return Mc})),n.d(e,"ShapePath",(function(){return du})),n.d(e,"ShapeUtils",(function(){return lc})),n.d(e,"ShortType",(function(){return Lt})),n.d(e,"Skeleton",(function(){return Ys})),n.d(e,"SkeletonHelper",(function(){return bh})),n.d(e,"SkinnedMesh",(function(){return zs})),n.d(e,"SmoothShading",(function(){return I})),n.d(e,"Sphere",(function(){return wr})),n.d(e,"SphereBufferGeometry",(function(){return Ic})),n.d(e,"SphereGeometry",(function(){return Cc})),n.d(e,"Spherical",(function(){return ih})),n.d(e,"SphericalHarmonics3",(function(){return Cu})),n.d(e,"SphericalReflectionMapping",(function(){return pt})),n.d(e,"Spline",(function(){return xd})),n.d(e,"SplineCurve",(function(){return Ol})),n.d(e,"SplineCurve3",(function(){return wd})),n.d(e,"SpotLight",(function(){return Jl})),n.d(e,"SpotLightHelper",(function(){return vh})),n.d(e,"SpotLightShadow",(function(){return jl})),n.d(e,"Sprite",(function(){return Vs})),n.d(e,"SpriteMaterial",(function(){return Ts})),n.d(e,"SrcAlphaFactor",(function(){return F})),n.d(e,"SrcAlphaSaturateFactor",(function(){return z})),n.d(e,"SrcColorFactor",(function(){return U})),n.d(e,"StaticCopyUsage",(function(){return dn})),n.d(e,"StaticDrawUsage",(function(){return sn})),n.d(e,"StaticReadUsage",(function(){return ln})),n.d(e,"StereoCamera",(function(){return Mu})),n.d(e,"StreamCopyUsage",(function(){return gn})),n.d(e,"StreamDrawUsage",(function(){return cn})),n.d(e,"StreamReadUsage",(function(){return hn})),n.d(e,"StringKeyframeTrack",(function(){return il})),n.d(e,"SubtractEquation",(function(){return D})),n.d(e,"SubtractiveBlending",(function(){return T})),n.d(e,"TOUCH",(function(){return a})),n.d(e,"TangentSpaceNormalMap",(function(){return ke})),n.d(e,"TetrahedronBufferGeometry",(function(){return RA})),n.d(e,"TetrahedronGeometry",(function(){return SA})),n.d(e,"TextBufferGeometry",(function(){return vc})),n.d(e,"TextGeometry",(function(){return mc})),n.d(e,"Texture",(function(){return Bn})),n.d(e,"TextureLoader",(function(){return Cl})),n.d(e,"TorusBufferGeometry",(function(){return HA})),n.d(e,"TorusGeometry",(function(){return VA})),n.d(e,"TorusKnotBufferGeometry",(function(){return FA})),n.d(e,"TorusKnotGeometry",(function(){return OA})),n.d(e,"Triangle",(function(){return jr})),n.d(e,"TriangleFanDrawMode",(function(){return De})),n.d(e,"TriangleStripDrawMode",(function(){return Be})),n.d(e,"TrianglesDrawMode",(function(){return Re})),n.d(e,"TubeBufferGeometry",(function(){return UA})),n.d(e,"TubeGeometry",(function(){return GA})),n.d(e,"UVMapping",(function(){return ct})),n.d(e,"Uint16Attribute",(function(){return md})),n.d(e,"Uint16BufferAttribute",(function(){return ci})),n.d(e,"Uint32Attribute",(function(){return Cd})),n.d(e,"Uint32BufferAttribute",(function(){return ui})),n.d(e,"Uint8Attribute",(function(){return pd})),n.d(e,"Uint8BufferAttribute",(function(){return oi})),n.d(e,"Uint8ClampedAttribute",(function(){return gd})),n.d(e,"Uint8ClampedBufferAttribute",(function(){return si})),n.d(e,"Uncharted2ToneMapping",(function(){return ot})),n.d(e,"Uniform",(function(){return $u})),n.d(e,"UniformsLib",(function(){return pa})),n.d(e,"UniformsUtils",(function(){return $i})),n.d(e,"UnsignedByteType",(function(){return Bt})),n.d(e,"UnsignedInt248Type",(function(){return Ht})),n.d(e,"UnsignedIntType",(function(){return Pt})),n.d(e,"UnsignedShort4444Type",(function(){return Ot})),n.d(e,"UnsignedShort5551Type",(function(){return Ft})),n.d(e,"UnsignedShort565Type",(function(){return Vt})),n.d(e,"UnsignedShortType",(function(){return _t})),n.d(e,"VSMShadowMap",(function(){return g})),n.d(e,"Vector2",(function(){return In})),n.d(e,"Vector3",(function(){return xn})),n.d(e,"Vector4",(function(){return Dn})),n.d(e,"VectorKeyframeTrack",(function(){return al})),n.d(e,"Vertex",(function(){return ud})),n.d(e,"VertexColors",(function(){return w})),n.d(e,"VertexNormalsHelper",(function(){return fh})),n.d(e,"VideoTexture",(function(){return CA})),n.d(e,"WebGLMultisampleRenderTarget",(function(){return _n})),n.d(e,"WebGLRenderTarget",(function(){return Ln})),n.d(e,"WebGLRenderTargetCube",(function(){return Aa})),n.d(e,"WebGLRenderer",(function(){return bs})),n.d(e,"WebGLUtils",(function(){return us})),n.d(e,"WireframeGeometry",(function(){return wA})),n.d(e,"WireframeHelper",(function(){return Sd})),n.d(e,"WrapAroundEnding",(function(){return Se})),n.d(e,"XHRLoader",(function(){return Rd})),n.d(e,"ZeroCurvatureEnding",(function(){return Ee})),n.d(e,"ZeroFactor",(function(){return P})),n.d(e,"ZeroSlopeEnding",(function(){return Te})),n.d(e,"ZeroStencilOp",(function(){return We})),n.d(e,"sRGBEncoding",(function(){return _e})),void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),void 0===Number.isInteger&&(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),void 0===Math.sign&&(Math.sign=function(t){return t<0?-1:t>0?1:+t}),"name"in Function.prototype==!1&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),void 0===Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e});var r="111",i={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},a={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},o=0,s=1,A=2,c=3,l=0,u=1,h=0,d=1,p=2,g=3,f=0,m=1,v=2,C=1,I=2,y=0,b=1,w=2,x=0,M=1,E=2,T=3,S=4,R=5,B=100,D=101,L=102,_=103,N=104,P=200,G=201,U=202,O=203,F=204,V=205,H=206,k=207,Q=208,W=209,z=210,j=0,J=1,Y=2,Z=3,X=4,q=5,K=6,$=7,tt=0,et=1,nt=2,rt=0,it=1,at=2,ot=3,st=4,At=5,ct=300,lt=301,ut=302,ht=303,dt=304,pt=305,gt=306,ft=307,mt=1e3,vt=1001,Ct=1002,It=1003,yt=1004,bt=1004,wt=1005,xt=1005,Mt=1006,Et=1007,Tt=1007,St=1008,Rt=1008,Bt=1009,Dt=1010,Lt=1011,_t=1012,Nt=1013,Pt=1014,Gt=1015,Ut=1016,Ot=1017,Ft=1018,Vt=1019,Ht=1020,kt=1021,Qt=1022,Wt=1023,zt=1024,jt=1025,Jt=Wt,Yt=1026,Zt=1027,Xt=1028,qt=33776,Kt=33777,$t=33778,te=33779,ee=35840,ne=35841,re=35842,ie=35843,ae=36196,oe=37808,se=37809,Ae=37810,ce=37811,le=37812,ue=37813,he=37814,de=37815,pe=37816,ge=37817,fe=37818,me=37819,ve=37820,Ce=37821,Ie=2200,ye=2201,be=2202,we=2300,xe=2301,Me=2302,Ee=2400,Te=2401,Se=2402,Re=0,Be=1,De=2,Le=3e3,_e=3001,Ne=3007,Pe=3002,Ge=3003,Ue=3004,Oe=3005,Fe=3006,Ve=3200,He=3201,ke=0,Qe=1,We=0,ze=7680,je=7681,Je=7682,Ye=7683,Ze=34055,Xe=34056,qe=5386,Ke=512,$e=513,tn=514,en=515,nn=516,rn=517,an=518,on=519,sn=35044,An=35048,cn=35040,ln=35045,un=35049,hn=35041,dn=35046,pn=35050,gn=35042;function fn(){}Object.assign(fn.prototype,{addEventListener:function(t,e){void 0===this._listeners&&(this._listeners={});var n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)},hasEventListener:function(t,e){if(void 0===this._listeners)return!1;var n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)},removeEventListener:function(t,e){if(void 0!==this._listeners){var n=this._listeners[t];if(void 0!==n){var r=n.indexOf(e);-1!==r&&n.splice(r,1)}}},dispatchEvent:function(t){if(void 0!==this._listeners){var e=this._listeners[t.type];if(void 0!==e){t.target=this;for(var n=e.slice(0),r=0,i=n.length;r<i;r++)n[r].call(this,t)}}}});for(var mn=[],vn=0;vn<256;vn++)mn[vn]=(vn<16?"0":"")+vn.toString(16);var Cn={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){var t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(mn[255&t]+mn[t>>8&255]+mn[t>>16&255]+mn[t>>24&255]+"-"+mn[255&e]+mn[e>>8&255]+"-"+mn[e>>16&15|64]+mn[e>>24&255]+"-"+mn[63&n|128]+mn[n>>8&255]+"-"+mn[n>>16&255]+mn[n>>24&255]+mn[255&r]+mn[r>>8&255]+mn[r>>16&255]+mn[r>>24&255]).toUpperCase()},clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,r,i){return r+(t-e)*(i-r)/(n-e)},lerp:function(t,e,n){return(1-n)*t+n*e},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*Cn.DEG2RAD},radToDeg:function(t){return t*Cn.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}};function In(t,e){this.x=t||0,this.y=e||0}function yn(t,e,n,r){this._x=t||0,this._y=e||0,this._z=n||0,this._w=void 0!==r?r:1}Object.defineProperties(In.prototype,{width:{get:function(){return this.x},set:function(t){this.x=t}},height:{get:function(){return this.y},set:function(t){this.y=t}}}),Object.assign(In.prototype,{isVector2:!0,set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.x=t,this.y=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},applyMatrix3:function(t){var e=this.x,n=this.y,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6],this.y=r[1]*e+r[4]*n+r[7],this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this},clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var n=Math.cos(e),r=Math.sin(e),i=this.x-t.x,a=this.y-t.y;return this.x=i*n-a*r+t.x,this.y=i*r+a*n+t.y,this}}),Object.assign(yn,{slerp:function(t,e,n,r){return n.copy(t).slerp(e,r)},slerpFlat:function(t,e,n,r,i,a,o){var s=n[r+0],A=n[r+1],c=n[r+2],l=n[r+3],u=i[a+0],h=i[a+1],d=i[a+2],p=i[a+3];if(l!==p||s!==u||A!==h||c!==d){var g=1-o,f=s*u+A*h+c*d+l*p,m=f>=0?1:-1,v=1-f*f;if(v>Number.EPSILON){var C=Math.sqrt(v),I=Math.atan2(C,f*m);g=Math.sin(g*I)/C,o=Math.sin(o*I)/C}var y=o*m;if(s=s*g+u*y,A=A*g+h*y,c=c*g+d*y,l=l*g+p*y,g===1-o){var b=1/Math.sqrt(s*s+A*A+c*c+l*l);s*=b,A*=b,c*=b,l*=b}}t[e]=s,t[e+1]=A,t[e+2]=c,t[e+3]=l}}),Object.defineProperties(yn.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this._onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this._onChangeCallback()}},w:{get:function(){return this._w},set:function(t){this._w=t,this._onChangeCallback()}}}),Object.assign(yn.prototype,{isQuaternion:!0,set:function(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._w=r,this._onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this},setFromEuler:function(t,e){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=t._x,r=t._y,i=t._z,a=t.order,o=Math.cos,s=Math.sin,A=o(n/2),c=o(r/2),l=o(i/2),u=s(n/2),h=s(r/2),d=s(i/2);return"XYZ"===a?(this._x=u*c*l+A*h*d,this._y=A*h*l-u*c*d,this._z=A*c*d+u*h*l,this._w=A*c*l-u*h*d):"YXZ"===a?(this._x=u*c*l+A*h*d,this._y=A*h*l-u*c*d,this._z=A*c*d-u*h*l,this._w=A*c*l+u*h*d):"ZXY"===a?(this._x=u*c*l-A*h*d,this._y=A*h*l+u*c*d,this._z=A*c*d+u*h*l,this._w=A*c*l-u*h*d):"ZYX"===a?(this._x=u*c*l-A*h*d,this._y=A*h*l+u*c*d,this._z=A*c*d-u*h*l,this._w=A*c*l+u*h*d):"YZX"===a?(this._x=u*c*l+A*h*d,this._y=A*h*l+u*c*d,this._z=A*c*d-u*h*l,this._w=A*c*l-u*h*d):"XZY"===a&&(this._x=u*c*l-A*h*d,this._y=A*h*l-u*c*d,this._z=A*c*d+u*h*l,this._w=A*c*l+u*h*d),!1!==e&&this._onChangeCallback(),this},setFromAxisAngle:function(t,e){var n=e/2,r=Math.sin(n);return this._x=t.x*r,this._y=t.y*r,this._z=t.z*r,this._w=Math.cos(n),this._onChangeCallback(),this},setFromRotationMatrix:function(t){var e,n=t.elements,r=n[0],i=n[4],a=n[8],o=n[1],s=n[5],A=n[9],c=n[2],l=n[6],u=n[10],h=r+s+u;return h>0?(e=.5/Math.sqrt(h+1),this._w=.25/e,this._x=(l-A)*e,this._y=(a-c)*e,this._z=(o-i)*e):r>s&&r>u?(e=2*Math.sqrt(1+r-s-u),this._w=(l-A)/e,this._x=.25*e,this._y=(i+o)/e,this._z=(a+c)/e):s>u?(e=2*Math.sqrt(1+s-r-u),this._w=(a-c)/e,this._x=(i+o)/e,this._y=.25*e,this._z=(A+l)/e):(e=2*Math.sqrt(1+u-r-s),this._w=(o-i)/e,this._x=(a+c)/e,this._y=(A+l)/e,this._z=.25*e),this._onChangeCallback(),this},setFromUnitVectors:function(t,e){var n=t.dot(e)+1;return n<1e-6?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()},angleTo:function(t){return 2*Math.acos(Math.abs(Cn.clamp(this.dot(t),-1,1)))},rotateTowards:function(t,e){var n=this.angleTo(t);if(0===n)return this;var r=Math.min(1,e/n);return this.slerp(t,r),this},inverse:function(){return this.conjugate()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var n=t._x,r=t._y,i=t._z,a=t._w,o=e._x,s=e._y,A=e._z,c=e._w;return this._x=n*c+a*o+r*A-i*s,this._y=r*c+a*s+i*o-n*A,this._z=i*c+a*A+n*s-r*o,this._w=a*c-n*o-r*s-i*A,this._onChangeCallback(),this},slerp:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var n=this._x,r=this._y,i=this._z,a=this._w,o=a*t._w+n*t._x+r*t._y+i*t._z;if(o<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),o>=1)return this._w=a,this._x=n,this._y=r,this._z=i,this;var s=1-o*o;if(s<=Number.EPSILON){var A=1-e;return this._w=A*a+e*this._w,this._x=A*n+e*this._x,this._y=A*r+e*this._y,this._z=A*i+e*this._z,this.normalize(),this._onChangeCallback(),this}var c=Math.sqrt(s),l=Math.atan2(c,o),u=Math.sin((1-e)*l)/c,h=Math.sin(e*l)/c;return this._w=a*u+this._w*h,this._x=n*u+this._x*h,this._y=r*u+this._y*h,this._z=i*u+this._z*h,this._onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return void 0===e&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},_onChange:function(t){return this._onChangeCallback=t,this},_onChangeCallback:function(){}});var bn=new xn,wn=new yn;function xn(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}Object.assign(xn.prototype,{isVector3:!0,set:function(t,e,n){return this.x=t,this.y=e,this.z=n,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(wn.setFromEuler(t))},applyAxisAngle:function(t,e){return this.applyQuaternion(wn.setFromAxisAngle(t,e))},applyMatrix3:function(t){var e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6]*r,this.y=i[1]*e+i[4]*n+i[7]*r,this.z=i[2]*e+i[5]*n+i[8]*r,this},applyNormalMatrix:function(t){return this.applyMatrix3(t).normalize()},applyMatrix4:function(t){var e=this.x,n=this.y,r=this.z,i=t.elements,a=1/(i[3]*e+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*e+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*e+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*e+i[6]*n+i[10]*r+i[14])*a,this},applyQuaternion:function(t){var e=this.x,n=this.y,r=this.z,i=t.x,a=t.y,o=t.z,s=t.w,A=s*e+a*r-o*n,c=s*n+o*e-i*r,l=s*r+i*n-a*e,u=-i*e-a*n-o*r;return this.x=A*s+u*-i+c*-o-l*-a,this.y=c*s+u*-a+l*-i-A*-o,this.z=l*s+u*-o+A*-a-c*-i,this},project:function(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)},unproject:function(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)},transformDirection:function(t){var e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[4]*n+i[8]*r,this.y=i[1]*e+i[5]*n+i[9]*r,this.z=i[2]*e+i[6]*n+i[10]*r,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this},clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},cross:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)},crossVectors:function(t,e){var n=t.x,r=t.y,i=t.z,a=e.x,o=e.y,s=e.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(t){return bn.copy(this).projectOnVector(t),this.sub(bn)},reflect:function(t){return this.sub(bn.copy(t).multiplyScalar(2*this.dot(t)))},angleTo:function(t){var e=Math.sqrt(this.lengthSq()*t.lengthSq());0===e&&console.error("THREE.Vector3: angleTo() can't handle zero length vectors.");var n=this.dot(t)/e;return Math.acos(Cn.clamp(n,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return e*e+n*n+r*r},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)},setFromSphericalCoords:function(t,e,n){var r=Math.sin(e)*t;return this.x=r*Math.sin(n),this.y=Math.cos(e)*t,this.z=r*Math.cos(n),this},setFromCylindrical:function(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)},setFromCylindricalCoords:function(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this},setFromMatrixPosition:function(t){var e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),r=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=r,this},setFromMatrixColumn:function(t,e){return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}});var Mn,En=new xn;function Tn(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}Object.assign(Tn.prototype,{isMatrix3:!0,set:function(t,e,n,r,i,a,o,s,A){var c=this.elements;return c[0]=t,c[1]=r,c[2]=o,c[3]=e,c[4]=i,c[5]=s,c[6]=n,c[7]=a,c[8]=A,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return(new this.constructor).fromArray(this.elements)},copy:function(t){var e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this},setFromMatrix4:function(t){var e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this},applyToBufferAttribute:function(t){for(var e=0,n=t.count;e<n;e++)En.x=t.getX(e),En.y=t.getY(e),En.z=t.getZ(e),En.applyMatrix3(this),t.setXYZ(e,En.x,En.y,En.z);return t},multiply:function(t){return this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,r=e.elements,i=this.elements,a=n[0],o=n[3],s=n[6],A=n[1],c=n[4],l=n[7],u=n[2],h=n[5],d=n[8],p=r[0],g=r[3],f=r[6],m=r[1],v=r[4],C=r[7],I=r[2],y=r[5],b=r[8];return i[0]=a*p+o*m+s*I,i[3]=a*g+o*v+s*y,i[6]=a*f+o*C+s*b,i[1]=A*p+c*m+l*I,i[4]=A*g+c*v+l*y,i[7]=A*f+c*C+l*b,i[2]=u*p+h*m+d*I,i[5]=u*g+h*v+d*y,i[8]=u*f+h*C+d*b,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this},determinant:function(){var t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],A=t[7],c=t[8];return e*a*c-e*o*A-n*i*c+n*o*s+r*i*A-r*a*s},getInverse:function(t,e){t&&t.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var n=t.elements,r=this.elements,i=n[0],a=n[1],o=n[2],s=n[3],A=n[4],c=n[5],l=n[6],u=n[7],h=n[8],d=h*A-c*u,p=c*l-h*s,g=u*s-A*l,f=i*d+a*p+o*g;if(0===f){var m="THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0";if(!0===e)throw new Error(m);return console.warn(m),this.identity()}var v=1/f;return r[0]=d*v,r[1]=(o*u-h*a)*v,r[2]=(c*a-o*A)*v,r[3]=p*v,r[4]=(h*i-o*l)*v,r[5]=(o*s-c*i)*v,r[6]=g*v,r[7]=(a*l-u*i)*v,r[8]=(A*i-a*s)*v,this},transpose:function(){var t,e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this},getNormalMatrix:function(t){return this.setFromMatrix4(t).getInverse(this).transpose()},transposeIntoArray:function(t){var e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this},setUvTransform:function(t,e,n,r,i,a,o){var s=Math.cos(i),A=Math.sin(i);this.set(n*s,n*A,-n*(s*a+A*o)+a+t,-r*A,r*s,-r*(-A*a+s*o)+o+e,0,0,1)},scale:function(t,e){var n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=e,n[4]*=e,n[7]*=e,this},rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=this.elements,i=r[0],a=r[3],o=r[6],s=r[1],A=r[4],c=r[7];return r[0]=e*i+n*s,r[3]=e*a+n*A,r[6]=e*o+n*c,r[1]=-n*i+e*s,r[4]=-n*a+e*A,r[7]=-n*o+e*c,this},translate:function(t,e){var n=this.elements;return n[0]+=t*n[2],n[3]+=t*n[5],n[6]+=t*n[8],n[1]+=e*n[2],n[4]+=e*n[5],n[7]+=e*n[8],this},equals:function(t){for(var e=this.elements,n=t.elements,r=0;r<9;r++)if(e[r]!==n[r])return!1;return!0},fromArray:function(t,e){void 0===e&&(e=0);for(var n=0;n<9;n++)this.elements[n]=t[n+e];return this},toArray:function(t,e){void 0===t&&(t=[]),void 0===e&&(e=0);var n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}});var Sn={getDataURL:function(t){var e;if("undefined"==typeof HTMLCanvasElement)return t.src;if(t instanceof HTMLCanvasElement)e=t;else{void 0===Mn&&(Mn=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),Mn.width=t.width,Mn.height=t.height;var n=Mn.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=Mn}return e.width>2048||e.height>2048?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}},Rn=0;function Bn(t,e,n,r,i,a,o,s,A,c){Object.defineProperty(this,"id",{value:Rn++}),this.uuid=Cn.generateUUID(),this.name="",this.image=void 0!==t?t:Bn.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==e?e:Bn.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:vt,this.wrapT=void 0!==r?r:vt,this.magFilter=void 0!==i?i:Mt,this.minFilter=void 0!==a?a:St,this.anisotropy=void 0!==A?A:1,this.format=void 0!==o?o:Wt,this.type=void 0!==s?s:Bt,this.offset=new In(0,0),this.repeat=new In(1,1),this.center=new In(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Tn,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==c?c:Le,this.version=0,this.onUpdate=null}function Dn(t,e,n,r){this.x=t||0,this.y=e||0,this.z=n||0,this.w=void 0!==r?r:1}function Ln(t,e,n){this.width=t,this.height=e,this.scissor=new Dn(0,0,t,e),this.scissorTest=!1,this.viewport=new Dn(0,0,t,e),n=n||{},this.texture=new Bn(void 0,void 0,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.image={},this.texture.image.width=t,this.texture.image.height=e,this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:Mt,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0===n.stencilBuffer||n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}function _n(t,e,n){Ln.call(this,t,e,n),this.samples=4}Bn.DEFAULT_IMAGE=void 0,Bn.DEFAULT_MAPPING=ct,Bn.prototype=Object.assign(Object.create(fn.prototype),{constructor:Bn,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.cent