UNPKG

itowns

Version:

A JS/WebGL framework for 3D geospatial data visualization

1 lines 1.47 MB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("debug",[],t):"object"==typeof exports?exports.debug=t():e.debug=t()}(window,(function(){return(window.webpackJsonp_name_=window.webpackJsonp_name_||[]).push([[1],[function(e,t,n){"use strict";n.r(t),n.d(t,"ACESFilmicToneMapping",(function(){return le})),n.d(t,"AddEquation",(function(){return k})),n.d(t,"AddOperation",(function(){return ne})),n.d(t,"AdditiveBlending",(function(){return T})),n.d(t,"AlphaFormat",(function(){return ze})),n.d(t,"AlwaysDepth",(function(){return V})),n.d(t,"AlwaysStencilFunc",(function(){return on})),n.d(t,"AmbientLight",(function(){return Fh})),n.d(t,"AmbientLightProbe",(function(){return lc})),n.d(t,"AnimationClip",(function(){return Wu})),n.d(t,"AnimationLoader",(function(){return eh})),n.d(t,"AnimationMixer",(function(){return Nc})),n.d(t,"AnimationObjectGroup",(function(){return Yc})),n.d(t,"AnimationUtils",(function(){return Cu})),n.d(t,"ArcCurve",(function(){return lh})),n.d(t,"ArrayCamera",(function(){return as})),n.d(t,"ArrowHelper",(function(){return Nd})),n.d(t,"Audio",(function(){return gc})),n.d(t,"AudioAnalyser",(function(){return Lc})),n.d(t,"AudioContext",(function(){return rc})),n.d(t,"AudioListener",(function(){return vc})),n.d(t,"AudioLoader",(function(){return ic})),n.d(t,"AxesHelper",(function(){return Fd})),n.d(t,"AxisHelper",(function(){return cm})),n.d(t,"BackSide",(function(){return v})),n.d(t,"BasicDepthPacking",(function(){return Ht})),n.d(t,"BasicShadowMap",(function(){return d})),n.d(t,"BinaryTextureLoader",(function(){return _m})),n.d(t,"Bone",(function(){return Fs})),n.d(t,"BooleanKeyframeTrack",(function(){return Fu})),n.d(t,"BoundingBoxHelper",(function(){return dm})),n.d(t,"Box2",(function(){return Vc})),n.d(t,"Box3",(function(){return hr})),n.d(t,"Box3Helper",(function(){return Cd})),n.d(t,"BoxBufferGeometry",(function(){return Yi})),n.d(t,"BoxGeometry",(function(){return Oi})),n.d(t,"BoxHelper",(function(){return Pd})),n.d(t,"BufferAttribute",(function(){return Ur})),n.d(t,"BufferGeometry",(function(){return ui})),n.d(t,"BufferGeometryLoader",(function(){return Gh})),n.d(t,"ByteType",(function(){return Ae})),n.d(t,"Cache",(function(){return Ju})),n.d(t,"Camera",(function(){return Bi})),n.d(t,"CameraHelper",(function(){return Dd})),n.d(t,"CanvasRenderer",(function(){return gm})),n.d(t,"CanvasTexture",(function(){return sl})),n.d(t,"CatmullRomCurve3",(function(){return fh})),n.d(t,"CineonToneMapping",(function(){return se})),n.d(t,"CircleBufferGeometry",(function(){return Mu})),n.d(t,"CircleGeometry",(function(){return yu})),n.d(t,"ClampToEdgeWrapping",(function(){return ge})),n.d(t,"Clock",(function(){return dc})),n.d(t,"ClosedSplineCurve3",(function(){return lm})),n.d(t,"Color",(function(){return Yr})),n.d(t,"ColorKeyframeTrack",(function(){return Hu})),n.d(t,"CompressedTexture",(function(){return ol})),n.d(t,"CompressedTextureLoader",(function(){return th})),n.d(t,"ConeBufferGeometry",(function(){return gu})),n.d(t,"ConeGeometry",(function(){return vu})),n.d(t,"CubeCamera",(function(){return Vi})),n.d(t,"CubeGeometry",(function(){return Oi})),n.d(t,"CubeReflectionMapping",(function(){return he})),n.d(t,"CubeRefractionMapping",(function(){return ce})),n.d(t,"CubeTexture",(function(){return xa})),n.d(t,"CubeTextureLoader",(function(){return ih})),n.d(t,"CubeUVReflectionMapping",(function(){return pe})),n.d(t,"CubeUVRefractionMapping",(function(){return _e})),n.d(t,"CubicBezierCurve",(function(){return gh})),n.d(t,"CubicBezierCurve3",(function(){return yh})),n.d(t,"CubicInterpolant",(function(){return Ou})),n.d(t,"CullFaceBack",(function(){return s})),n.d(t,"CullFaceFront",(function(){return l})),n.d(t,"CullFaceFrontBack",(function(){return u})),n.d(t,"CullFaceNone",(function(){return o})),n.d(t,"Curve",(function(){return oh})),n.d(t,"CurvePath",(function(){return Th})),n.d(t,"CustomBlending",(function(){return D})),n.d(t,"CylinderBufferGeometry",(function(){return _u})),n.d(t,"CylinderGeometry",(function(){return pu})),n.d(t,"Cylindrical",(function(){return Gc})),n.d(t,"DataTexture",(function(){return Xi})),n.d(t,"DataTexture2DArray",(function(){return ba})),n.d(t,"DataTexture3D",(function(){return wa})),n.d(t,"DataTextureLoader",(function(){return nh})),n.d(t,"DecrementStencilOp",(function(){return Jt})),n.d(t,"DecrementWrapStencilOp",(function(){return Zt})),n.d(t,"DefaultLoadingManager",(function(){return Zu})),n.d(t,"DepthFormat",(function(){return Je})),n.d(t,"DepthStencilFormat",(function(){return Xe})),n.d(t,"DepthTexture",(function(){return ll})),n.d(t,"DirectionalLight",(function(){return Nh})),n.d(t,"DirectionalLightHelper",(function(){return Td})),n.d(t,"DirectionalLightShadow",(function(){return Ih})),n.d(t,"DiscreteInterpolant",(function(){return Iu})),n.d(t,"DodecahedronBufferGeometry",(function(){return xl})),n.d(t,"DodecahedronGeometry",(function(){return Ml})),n.d(t,"DoubleSide",(function(){return g})),n.d(t,"DstAlphaFactor",(function(){return j})),n.d(t,"DstColorFactor",(function(){return B})),n.d(t,"DynamicBufferAttribute",(function(){return Qd})),n.d(t,"EdgesGeometry",(function(){return fu})),n.d(t,"EdgesHelper",(function(){return mm})),n.d(t,"EllipseCurve",(function(){return sh})),n.d(t,"EqualDepth",(function(){return Z})),n.d(t,"EqualStencilFunc",(function(){return en})),n.d(t,"EquirectangularReflectionMapping",(function(){return de})),n.d(t,"EquirectangularRefractionMapping",(function(){return me})),n.d(t,"Euler",(function(){return On})),n.d(t,"EventDispatcher",(function(){return sn})),n.d(t,"ExtrudeBufferGeometry",(function(){return eu})),n.d(t,"ExtrudeGeometry",(function(){return $l})),n.d(t,"Face3",(function(){return Hr})),n.d(t,"Face4",(function(){return Hd})),n.d(t,"FaceColors",(function(){return b})),n.d(t,"FaceNormalsHelper",(function(){return bd})),n.d(t,"FileLoader",(function(){return $u})),n.d(t,"FlatShading",(function(){return y})),n.d(t,"Float32Attribute",(function(){return om})),n.d(t,"Float32BufferAttribute",(function(){return Qr})),n.d(t,"Float64Attribute",(function(){return sm})),n.d(t,"Float64BufferAttribute",(function(){return $r})),n.d(t,"FloatType",(function(){return Ye})),n.d(t,"Fog",(function(){return fs})),n.d(t,"FogExp2",(function(){return ms})),n.d(t,"Font",(function(){return ec})),n.d(t,"FontLoader",(function(){return nc})),n.d(t,"FrontFaceDirectionCCW",(function(){return c})),n.d(t,"FrontFaceDirectionCW",(function(){return h})),n.d(t,"FrontSide",(function(){return _})),n.d(t,"Frustum",(function(){return na})),n.d(t,"GammaEncoding",(function(){return Rt})),n.d(t,"Geometry",(function(){return Ri})),n.d(t,"GeometryUtils",(function(){return vm})),n.d(t,"GreaterDepth",(function(){return Q})),n.d(t,"GreaterEqualDepth",(function(){return K})),n.d(t,"GreaterEqualStencilFunc",(function(){return an})),n.d(t,"GreaterStencilFunc",(function(){return nn})),n.d(t,"GridHelper",(function(){return _d})),n.d(t,"Group",(function(){return is})),n.d(t,"HalfFloatType",(function(){return Ie})),n.d(t,"HemisphereLight",(function(){return kh})),n.d(t,"HemisphereLightHelper",(function(){return fd})),n.d(t,"HemisphereLightProbe",(function(){return sc})),n.d(t,"IcosahedronBufferGeometry",(function(){return yl})),n.d(t,"IcosahedronGeometry",(function(){return gl})),n.d(t,"ImageBitmapLoader",(function(){return Qh})),n.d(t,"ImageLoader",(function(){return rh})),n.d(t,"ImageUtils",(function(){return yn})),n.d(t,"ImmediateRenderObject",(function(){return Kc})),n.d(t,"IncrementStencilOp",(function(){return Vt})),n.d(t,"IncrementWrapStencilOp",(function(){return Xt})),n.d(t,"InstancedBufferAttribute",(function(){return Uh})),n.d(t,"InstancedBufferGeometry",(function(){return Bh})),n.d(t,"InstancedInterleavedBuffer",(function(){return Hc})),n.d(t,"InstancedMesh",(function(){return Hs})),n.d(t,"Int16Attribute",(function(){return nm})),n.d(t,"Int16BufferAttribute",(function(){return Jr})),n.d(t,"Int32Attribute",(function(){return im})),n.d(t,"Int32BufferAttribute",(function(){return Zr})),n.d(t,"Int8Attribute",(function(){return $d})),n.d(t,"Int8BufferAttribute",(function(){return Gr})),n.d(t,"IntType",(function(){return Re})),n.d(t,"InterleavedBuffer",(function(){return ps})),n.d(t,"InterleavedBufferAttribute",(function(){return _s})),n.d(t,"Interpolant",(function(){return Ru})),n.d(t,"InterpolateDiscrete",(function(){return wt})),n.d(t,"InterpolateLinear",(function(){return Lt})),n.d(t,"InterpolateSmooth",(function(){return qt})),n.d(t,"InvertStencilOp",(function(){return Kt})),n.d(t,"JSONLoader",(function(){return ym})),n.d(t,"KeepStencilOp",(function(){return Gt})),n.d(t,"KeyframeTrack",(function(){return Nu})),n.d(t,"LOD",(function(){return Rs})),n.d(t,"LatheBufferGeometry",(function(){return hu})),n.d(t,"LatheGeometry",(function(){return uu})),n.d(t,"Layers",(function(){return Yn})),n.d(t,"LensFlare",(function(){return xm})),n.d(t,"LessDepth",(function(){return J})),n.d(t,"LessEqualDepth",(function(){return X})),n.d(t,"LessEqualStencilFunc",(function(){return tn})),n.d(t,"LessStencilFunc",(function(){return $t})),n.d(t,"Light",(function(){return Dh})),n.d(t,"LightProbe",(function(){return oc})),n.d(t,"LightProbeHelper",(function(){return pd})),n.d(t,"LightShadow",(function(){return Ah})),n.d(t,"Line",(function(){return Vs})),n.d(t,"Line3",(function(){return Zc})),n.d(t,"LineBasicMaterial",(function(){return js})),n.d(t,"LineCurve",(function(){return Mh})),n.d(t,"LineCurve3",(function(){return xh})),n.d(t,"LineDashedMaterial",(function(){return Au})),n.d(t,"LineLoop",(function(){return Ks})),n.d(t,"LinePieces",(function(){return zd})),n.d(t,"LineSegments",(function(){return Zs})),n.d(t,"LineStrip",(function(){return jd})),n.d(t,"LinearEncoding",(function(){return Pt})),n.d(t,"LinearFilter",(function(){return qe})),n.d(t,"LinearInterpolant",(function(){return Yu})),n.d(t,"LinearMipMapLinearFilter",(function(){return De})),n.d(t,"LinearMipMapNearestFilter",(function(){return Se})),n.d(t,"LinearMipmapLinearFilter",(function(){return Ee})),n.d(t,"LinearMipmapNearestFilter",(function(){return Te})),n.d(t,"LinearToneMapping",(function(){return ie})),n.d(t,"Loader",(function(){return Ku})),n.d(t,"LoaderUtils",(function(){return zh})),n.d(t,"LoadingManager",(function(){return Xu})),n.d(t,"LogLuvEncoding",(function(){return Yt})),n.d(t,"LoopOnce",(function(){return Mt})),n.d(t,"LoopPingPong",(function(){return bt})),n.d(t,"LoopRepeat",(function(){return xt})),n.d(t,"LuminanceAlphaFormat",(function(){return We})),n.d(t,"LuminanceFormat",(function(){return Ge})),n.d(t,"MOUSE",(function(){return i})),n.d(t,"Material",(function(){return zr})),n.d(t,"MaterialLoader",(function(){return jh})),n.d(t,"Math",(function(){return hn})),n.d(t,"Matrix3",(function(){return gn})),n.d(t,"Matrix4",(function(){return Pn})),n.d(t,"MaxEquation",(function(){return R})),n.d(t,"Mesh",(function(){return Si})),n.d(t,"MeshBasicMaterial",(function(){return Br})),n.d(t,"MeshDepthMaterial",(function(){return Jo})),n.d(t,"MeshDistanceMaterial",(function(){return Xo})),n.d(t,"MeshFaceMaterial",(function(){return Bd})),n.d(t,"MeshLambertMaterial",(function(){return Du})),n.d(t,"MeshMatcapMaterial",(function(){return ku})),n.d(t,"MeshNormalMaterial",(function(){return Eu})),n.d(t,"MeshPhongMaterial",(function(){return Tu})),n.d(t,"MeshPhysicalMaterial",(function(){return qu})),n.d(t,"MeshStandardMaterial",(function(){return Lu})),n.d(t,"MeshToonMaterial",(function(){return Su})),n.d(t,"MinEquation",(function(){return C})),n.d(t,"MirroredRepeatWrapping",(function(){return ye})),n.d(t,"MixOperation",(function(){return te})),n.d(t,"MultiMaterial",(function(){return Ud})),n.d(t,"MultiplyBlending",(function(){return E})),n.d(t,"MultiplyOperation",(function(){return ee})),n.d(t,"NearestFilter",(function(){return Me})),n.d(t,"NearestMipMapLinearFilter",(function(){return Le})),n.d(t,"NearestMipMapNearestFilter",(function(){return be})),n.d(t,"NearestMipmapLinearFilter",(function(){return we})),n.d(t,"NearestMipmapNearestFilter",(function(){return xe})),n.d(t,"NeverDepth",(function(){return W})),n.d(t,"NeverStencilFunc",(function(){return Qt})),n.d(t,"NoBlending",(function(){return L})),n.d(t,"NoColors",(function(){return x})),n.d(t,"NoToneMapping",(function(){return re})),n.d(t,"NormalBlending",(function(){return q})),n.d(t,"NotEqualDepth",(function(){return $})),n.d(t,"NotEqualStencilFunc",(function(){return rn})),n.d(t,"NumberKeyframeTrack",(function(){return ju})),n.d(t,"Object3D",(function(){return Zn})),n.d(t,"ObjectLoader",(function(){return Vh})),n.d(t,"ObjectSpaceNormalMap",(function(){return Bt})),n.d(t,"OctahedronBufferGeometry",(function(){return vl})),n.d(t,"OctahedronGeometry",(function(){return _l})),n.d(t,"OneFactor",(function(){return Y})),n.d(t,"OneMinusDstAlphaFactor",(function(){return z})),n.d(t,"OneMinusDstColorFactor",(function(){return U})),n.d(t,"OneMinusSrcAlphaFactor",(function(){return H})),n.d(t,"OneMinusSrcColorFactor",(function(){return N})),n.d(t,"OrthographicCamera",(function(){return Yh})),n.d(t,"PCFShadowMap",(function(){return m})),n.d(t,"PCFSoftShadowMap",(function(){return f})),n.d(t,"ParametricBufferGeometry",(function(){return cl})),n.d(t,"ParametricGeometry",(function(){return hl})),n.d(t,"Particle",(function(){return Wd})),n.d(t,"ParticleBasicMaterial",(function(){return Xd})),n.d(t,"ParticleSystem",(function(){return Vd})),n.d(t,"ParticleSystemMaterial",(function(){return Zd})),n.d(t,"Path",(function(){return Sh})),n.d(t,"PerspectiveCamera",(function(){return Ui})),n.d(t,"Plane",(function(){return $i})),n.d(t,"PlaneBufferGeometry",(function(){return ua})),n.d(t,"PlaneGeometry",(function(){return la})),n.d(t,"PlaneHelper",(function(){return Rd})),n.d(t,"PointCloud",(function(){return Gd})),n.d(t,"PointCloudMaterial",(function(){return Jd})),n.d(t,"PointLight",(function(){return Oh})),n.d(t,"PointLightHelper",(function(){return ud})),n.d(t,"Points",(function(){return rl})),n.d(t,"PointsMaterial",(function(){return Qs})),n.d(t,"PolarGridHelper",(function(){return vd})),n.d(t,"PolyhedronBufferGeometry",(function(){return ml})),n.d(t,"PolyhedronGeometry",(function(){return dl})),n.d(t,"PositionalAudio",(function(){return wc})),n.d(t,"PositionalAudioHelper",(function(){return gd})),n.d(t,"PropertyBinding",(function(){return Oc})),n.d(t,"PropertyMixer",(function(){return qc})),n.d(t,"QuadraticBezierCurve",(function(){return bh})),n.d(t,"QuadraticBezierCurve3",(function(){return wh})),n.d(t,"Quaternion",(function(){return dn})),n.d(t,"QuaternionKeyframeTrack",(function(){return Bu})),n.d(t,"QuaternionLinearInterpolant",(function(){return zu})),n.d(t,"REVISION",(function(){return r})),n.d(t,"RGBADepthPacking",(function(){return jt})),n.d(t,"RGBAFormat",(function(){return Ue})),n.d(t,"RGBA_ASTC_10x10_Format",(function(){return vt})),n.d(t,"RGBA_ASTC_10x5_Format",(function(){return ft})),n.d(t,"RGBA_ASTC_10x6_Format",(function(){return pt})),n.d(t,"RGBA_ASTC_10x8_Format",(function(){return _t})),n.d(t,"RGBA_ASTC_12x10_Format",(function(){return gt})),n.d(t,"RGBA_ASTC_12x12_Format",(function(){return yt})),n.d(t,"RGBA_ASTC_4x4_Format",(function(){return ot})),n.d(t,"RGBA_ASTC_5x4_Format",(function(){return st})),n.d(t,"RGBA_ASTC_5x5_Format",(function(){return lt})),n.d(t,"RGBA_ASTC_6x5_Format",(function(){return ut})),n.d(t,"RGBA_ASTC_6x6_Format",(function(){return ht})),n.d(t,"RGBA_ASTC_8x5_Format",(function(){return ct})),n.d(t,"RGBA_ASTC_8x6_Format",(function(){return dt})),n.d(t,"RGBA_ASTC_8x8_Format",(function(){return mt})),n.d(t,"RGBA_PVRTC_2BPPV1_Format",(function(){return it})),n.d(t,"RGBA_PVRTC_4BPPV1_Format",(function(){return rt})),n.d(t,"RGBA_S3TC_DXT1_Format",(function(){return Qe})),n.d(t,"RGBA_S3TC_DXT3_Format",(function(){return $e})),n.d(t,"RGBA_S3TC_DXT5_Format",(function(){return et})),n.d(t,"RGBDEncoding",(function(){return Ft})),n.d(t,"RGBEEncoding",(function(){return Ot})),n.d(t,"RGBEFormat",(function(){return Ve})),n.d(t,"RGBFormat",(function(){return Be})),n.d(t,"RGBM16Encoding",(function(){return Nt})),n.d(t,"RGBM7Encoding",(function(){return It})),n.d(t,"RGB_ETC1_Format",(function(){return at})),n.d(t,"RGB_PVRTC_2BPPV1_Format",(function(){return nt})),n.d(t,"RGB_PVRTC_4BPPV1_Format",(function(){return tt})),n.d(t,"RGB_S3TC_DXT1_Format",(function(){return Ke})),n.d(t,"RawShaderMaterial",(function(){return wu})),n.d(t,"Ray",(function(){return xr})),n.d(t,"Raycaster",(function(){return jc})),n.d(t,"RectAreaLight",(function(){return Hh})),n.d(t,"RectAreaLightHelper",(function(){return hd})),n.d(t,"RedFormat",(function(){return Ze})),n.d(t,"ReinhardToneMapping",(function(){return ae})),n.d(t,"RepeatWrapping",(function(){return ve})),n.d(t,"ReplaceStencilOp",(function(){return Wt})),n.d(t,"ReverseSubtractEquation",(function(){return P})),n.d(t,"RingBufferGeometry",(function(){return lu})),n.d(t,"RingGeometry",(function(){return su})),n.d(t,"Scene",(function(){return Kn})),n.d(t,"SceneUtils",(function(){return Mm})),n.d(t,"ShaderChunk",(function(){return ra})),n.d(t,"ShaderLib",(function(){return aa})),n.d(t,"ShaderMaterial",(function(){return zi})),n.d(t,"ShadowMaterial",(function(){return bu})),n.d(t,"Shape",(function(){return Eh})),n.d(t,"ShapeBufferGeometry",(function(){return du})),n.d(t,"ShapeGeometry",(function(){return cu})),n.d(t,"ShapePath",(function(){return $h})),n.d(t,"ShapeUtils",(function(){return Zl})),n.d(t,"ShortType",(function(){return Pe})),n.d(t,"Skeleton",(function(){return Ns})),n.d(t,"SkeletonHelper",(function(){return ld})),n.d(t,"SkinnedMesh",(function(){return Os})),n.d(t,"SmoothShading",(function(){return M})),n.d(t,"Sphere",(function(){return mr})),n.d(t,"SphereBufferGeometry",(function(){return ou})),n.d(t,"SphereGeometry",(function(){return au})),n.d(t,"Spherical",(function(){return Uc})),n.d(t,"SphericalHarmonics3",(function(){return ac})),n.d(t,"SphericalReflectionMapping",(function(){return fe})),n.d(t,"Spline",(function(){return hm})),n.d(t,"SplineCurve",(function(){return Lh})),n.d(t,"SplineCurve3",(function(){return um})),n.d(t,"SpotLight",(function(){return Ch})),n.d(t,"SpotLightHelper",(function(){return id})),n.d(t,"SpotLightShadow",(function(){return Ph})),n.d(t,"Sprite",(function(){return ks})),n.d(t,"SpriteMaterial",(function(){return vs})),n.d(t,"SrcAlphaFactor",(function(){return F})),n.d(t,"SrcAlphaSaturateFactor",(function(){return G})),n.d(t,"SrcColorFactor",(function(){return I})),n.d(t,"StereoCamera",(function(){return cc})),n.d(t,"StringKeyframeTrack",(function(){return Uu})),n.d(t,"SubtractEquation",(function(){return A})),n.d(t,"SubtractiveBlending",(function(){return S})),n.d(t,"TOUCH",(function(){return a})),n.d(t,"TangentSpaceNormalMap",(function(){return zt})),n.d(t,"TetrahedronBufferGeometry",(function(){return pl})),n.d(t,"TetrahedronGeometry",(function(){return fl})),n.d(t,"TextBufferGeometry",(function(){return iu})),n.d(t,"TextGeometry",(function(){return ru})),n.d(t,"Texture",(function(){return xn})),n.d(t,"TextureLoader",(function(){return ah})),n.d(t,"TorusBufferGeometry",(function(){return Sl})),n.d(t,"TorusGeometry",(function(){return Tl})),n.d(t,"TorusKnotBufferGeometry",(function(){return ql})),n.d(t,"TorusKnotGeometry",(function(){return Ll})),n.d(t,"Triangle",(function(){return Pr})),n.d(t,"TriangleFanDrawMode",(function(){return At})),n.d(t,"TriangleStripDrawMode",(function(){return kt})),n.d(t,"TrianglesDrawMode",(function(){return Dt})),n.d(t,"TubeBufferGeometry",(function(){return wl})),n.d(t,"TubeGeometry",(function(){return bl})),n.d(t,"UVMapping",(function(){return ue})),n.d(t,"Uint16Attribute",(function(){return rm})),n.d(t,"Uint16BufferAttribute",(function(){return Xr})),n.d(t,"Uint32Attribute",(function(){return am})),n.d(t,"Uint32BufferAttribute",(function(){return Kr})),n.d(t,"Uint8Attribute",(function(){return em})),n.d(t,"Uint8BufferAttribute",(function(){return Wr})),n.d(t,"Uint8ClampedAttribute",(function(){return tm})),n.d(t,"Uint8ClampedBufferAttribute",(function(){return Vr})),n.d(t,"Uncharted2ToneMapping",(function(){return oe})),n.d(t,"Uniform",(function(){return Fc})),n.d(t,"UniformsLib",(function(){return ia})),n.d(t,"UniformsUtils",(function(){return Fi})),n.d(t,"UnsignedByteType",(function(){return ke})),n.d(t,"UnsignedInt248Type",(function(){return je})),n.d(t,"UnsignedIntType",(function(){return Oe})),n.d(t,"UnsignedShort4444Type",(function(){return Ne})),n.d(t,"UnsignedShort5551Type",(function(){return Fe})),n.d(t,"UnsignedShort565Type",(function(){return He})),n.d(t,"UnsignedShortType",(function(){return Ce})),n.d(t,"VSMShadowMap",(function(){return p})),n.d(t,"Vector2",(function(){return cn})),n.d(t,"Vector3",(function(){return pn})),n.d(t,"Vector4",(function(){return bn})),n.d(t,"VectorKeyframeTrack",(function(){return Gu})),n.d(t,"Vertex",(function(){return Kd})),n.d(t,"VertexColors",(function(){return w})),n.d(t,"VertexNormalsHelper",(function(){return nd})),n.d(t,"VideoTexture",(function(){return al})),n.d(t,"WebGLMultisampleRenderTarget",(function(){return Ln})),n.d(t,"WebGLRenderTarget",(function(){return wn})),n.d(t,"WebGLRenderTargetCube",(function(){return Ji})),n.d(t,"WebGLRenderer",(function(){return ds})),n.d(t,"WebGLUtils",(function(){return ts})),n.d(t,"WireframeGeometry",(function(){return ul})),n.d(t,"WireframeHelper",(function(){return fm})),n.d(t,"WrapAroundEnding",(function(){return Et})),n.d(t,"XHRLoader",(function(){return pm})),n.d(t,"ZeroCurvatureEnding",(function(){return Tt})),n.d(t,"ZeroFactor",(function(){return O})),n.d(t,"ZeroSlopeEnding",(function(){return St})),n.d(t,"ZeroStencilOp",(function(){return Ut})),n.d(t,"sRGBEncoding",(function(){return Ct})),void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),void 0===Number.isInteger&&(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}),void 0===Math.sign&&(Math.sign=function(e){return e<0?-1:e>0?1:+e}),"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(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t});var r="109",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,l=2,u=3,h=0,c=1,d=0,m=1,f=2,p=3,_=0,v=1,g=2,y=1,M=2,x=0,b=1,w=2,L=0,q=1,T=2,S=3,E=4,D=5,k=100,A=101,P=102,C=103,R=104,O=200,Y=201,I=202,N=203,F=204,H=205,j=206,z=207,B=208,U=209,G=210,W=0,V=1,J=2,X=3,Z=4,K=5,Q=6,$=7,ee=0,te=1,ne=2,re=0,ie=1,ae=2,oe=3,se=4,le=5,ue=300,he=301,ce=302,de=303,me=304,fe=305,pe=306,_e=307,ve=1e3,ge=1001,ye=1002,Me=1003,xe=1004,be=1004,we=1005,Le=1005,qe=1006,Te=1007,Se=1007,Ee=1008,De=1008,ke=1009,Ae=1010,Pe=1011,Ce=1012,Re=1013,Oe=1014,Ye=1015,Ie=1016,Ne=1017,Fe=1018,He=1019,je=1020,ze=1021,Be=1022,Ue=1023,Ge=1024,We=1025,Ve=Ue,Je=1026,Xe=1027,Ze=1028,Ke=33776,Qe=33777,$e=33778,et=33779,tt=35840,nt=35841,rt=35842,it=35843,at=36196,ot=37808,st=37809,lt=37810,ut=37811,ht=37812,ct=37813,dt=37814,mt=37815,ft=37816,pt=37817,_t=37818,vt=37819,gt=37820,yt=37821,Mt=2200,xt=2201,bt=2202,wt=2300,Lt=2301,qt=2302,Tt=2400,St=2401,Et=2402,Dt=0,kt=1,At=2,Pt=3e3,Ct=3001,Rt=3007,Ot=3002,Yt=3003,It=3004,Nt=3005,Ft=3006,Ht=3200,jt=3201,zt=0,Bt=1,Ut=0,Gt=7680,Wt=7681,Vt=7682,Jt=7683,Xt=34055,Zt=34056,Kt=5386,Qt=512,$t=513,en=514,tn=515,nn=516,rn=517,an=518,on=519;function sn(){}Object.assign(sn.prototype,{addEventListener:function(e,t){void 0===this._listeners&&(this._listeners={});var n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)},hasEventListener:function(e,t){if(void 0===this._listeners)return!1;var n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)},removeEventListener:function(e,t){if(void 0!==this._listeners){var n=this._listeners[e];if(void 0!==n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}}},dispatchEvent:function(e){if(void 0!==this._listeners){var t=this._listeners[e.type];if(void 0!==t){e.target=this;for(var n=t.slice(0),r=0,i=n.length;r<i;r++)n[r].call(this,e)}}}});for(var ln=[],un=0;un<256;un++)ln[un]=(un<16?"0":"")+un.toString(16);var hn={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(ln[255&e]+ln[e>>8&255]+ln[e>>16&255]+ln[e>>24&255]+"-"+ln[255&t]+ln[t>>8&255]+"-"+ln[t>>16&15|64]+ln[t>>24&255]+"-"+ln[63&n|128]+ln[n>>8&255]+"-"+ln[n>>16&255]+ln[n>>24&255]+ln[255&r]+ln[r>>8&255]+ln[r>>16&255]+ln[r>>24&255]).toUpperCase()},clamp:function(e,t,n){return Math.max(t,Math.min(n,e))},euclideanModulo:function(e,t){return(e%t+t)%t},mapLinear:function(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)},lerp:function(e,t,n){return(1-n)*e+n*t},smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},degToRad:function(e){return e*hn.DEG2RAD},radToDeg:function(e){return e*hn.RAD2DEG},isPowerOfTwo:function(e){return 0==(e&e-1)&&0!==e},ceilPowerOfTwo:function(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},floorPowerOfTwo:function(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}};function cn(e,t){this.x=e||0,this.y=t||0}function dn(e,t,n,r){this._x=e||0,this._y=t||0,this._z=n||0,this._w=void 0!==r?r:1}Object.defineProperties(cn.prototype,{width:{get:function(){return this.x},set:function(e){this.x=e}},height:{get:function(){return this.y},set:function(e){this.y=e}}}),Object.assign(cn.prototype,{isVector2:!0,set:function(e,t){return this.x=e,this.y=t,this},setScalar:function(e){return this.x=e,this.y=e,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setComponent:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this},getComponent:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(e){return this.x=e.x,this.y=e.y,this},add:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this)},addScalar:function(e){return this.x+=e,this.y+=e,this},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this},addScaledVector:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this},sub:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this)},subScalar:function(e){return this.x-=e,this.y-=e,this},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this},multiply:function(e){return this.x*=e.x,this.y*=e.y,this},multiplyScalar:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return this.x/=e.x,this.y/=e.y,this},divideScalar:function(e){return this.multiplyScalar(1/e)},applyMatrix3:function(e){var t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this},min:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this},max:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this},clamp:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this},clampScalar:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this},clampLength:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,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(e){return this.x*e.x+this.y*e.y},cross:function(e){return this.x*e.y-this.y*e.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 e=Math.atan2(this.y,this.x);return e<0&&(e+=2*Math.PI),e},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},manhattanDistanceTo:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)},setLength:function(e){return this.normalize().multiplyScalar(e)},lerp:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this},lerpVectors:function(e,t,n){return this.subVectors(t,e).multiplyScalar(n).add(e)},equals:function(e){return e.x===this.x&&e.y===this.y},fromArray:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e},fromBufferAttribute:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this},rotateAround:function(e,t){var n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}}),Object.assign(dn,{slerp:function(e,t,n,r){return n.copy(e).slerp(t,r)},slerpFlat:function(e,t,n,r,i,a,o){var s=n[r+0],l=n[r+1],u=n[r+2],h=n[r+3],c=i[a+0],d=i[a+1],m=i[a+2],f=i[a+3];if(h!==f||s!==c||l!==d||u!==m){var p=1-o,_=s*c+l*d+u*m+h*f,v=_>=0?1:-1,g=1-_*_;if(g>Number.EPSILON){var y=Math.sqrt(g),M=Math.atan2(y,_*v);p=Math.sin(p*M)/y,o=Math.sin(o*M)/y}var x=o*v;if(s=s*p+c*x,l=l*p+d*x,u=u*p+m*x,h=h*p+f*x,p===1-o){var b=1/Math.sqrt(s*s+l*l+u*u+h*h);s*=b,l*=b,u*=b,h*=b}}e[t]=s,e[t+1]=l,e[t+2]=u,e[t+3]=h}}),Object.defineProperties(dn.prototype,{x:{get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},y:{get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},z:{get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},w:{get:function(){return this._w},set:function(e){this._w=e,this._onChangeCallback()}}}),Object.assign(dn.prototype,{isQuaternion:!0,set:function(e,t,n,r){return this._x=e,this._y=t,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(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this},setFromEuler:function(e,t){if(!e||!e.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=e._x,r=e._y,i=e._z,a=e.order,o=Math.cos,s=Math.sin,l=o(n/2),u=o(r/2),h=o(i/2),c=s(n/2),d=s(r/2),m=s(i/2);return"XYZ"===a?(this._x=c*u*h+l*d*m,this._y=l*d*h-c*u*m,this._z=l*u*m+c*d*h,this._w=l*u*h-c*d*m):"YXZ"===a?(this._x=c*u*h+l*d*m,this._y=l*d*h-c*u*m,this._z=l*u*m-c*d*h,this._w=l*u*h+c*d*m):"ZXY"===a?(this._x=c*u*h-l*d*m,this._y=l*d*h+c*u*m,this._z=l*u*m+c*d*h,this._w=l*u*h-c*d*m):"ZYX"===a?(this._x=c*u*h-l*d*m,this._y=l*d*h+c*u*m,this._z=l*u*m-c*d*h,this._w=l*u*h+c*d*m):"YZX"===a?(this._x=c*u*h+l*d*m,this._y=l*d*h+c*u*m,this._z=l*u*m-c*d*h,this._w=l*u*h-c*d*m):"XZY"===a&&(this._x=c*u*h-l*d*m,this._y=l*d*h-c*u*m,this._z=l*u*m+c*d*h,this._w=l*u*h+c*d*m),!1!==t&&this._onChangeCallback(),this},setFromAxisAngle:function(e,t){var n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this},setFromRotationMatrix:function(e){var t,n=e.elements,r=n[0],i=n[4],a=n[8],o=n[1],s=n[5],l=n[9],u=n[2],h=n[6],c=n[10],d=r+s+c;return d>0?(t=.5/Math.sqrt(d+1),this._w=.25/t,this._x=(h-l)*t,this._y=(a-u)*t,this._z=(o-i)*t):r>s&&r>c?(t=2*Math.sqrt(1+r-s-c),this._w=(h-l)/t,this._x=.25*t,this._y=(i+o)/t,this._z=(a+u)/t):s>c?(t=2*Math.sqrt(1+s-r-c),this._w=(a-u)/t,this._x=(i+o)/t,this._y=.25*t,this._z=(l+h)/t):(t=2*Math.sqrt(1+c-r-s),this._w=(o-i)/t,this._x=(a+u)/t,this._y=(l+h)/t,this._z=.25*t),this._onChangeCallback(),this},setFromUnitVectors:function(e,t){var n=e.dot(t)+1;return n<1e-6?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()},angleTo:function(e){return 2*Math.acos(Math.abs(hn.clamp(this.dot(e),-1,1)))},rotateTowards:function(e,t){var n=this.angleTo(e);if(0===n)return this;var r=Math.min(1,t/n);return this.slerp(e,r),this},inverse:function(){return this.conjugate()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this},dot:function(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._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 e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this},multiply:function(e,t){return void 0!==t?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(e,t)):this.multiplyQuaternions(this,e)},premultiply:function(e){return this.multiplyQuaternions(e,this)},multiplyQuaternions:function(e,t){var n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,l=t._z,u=t._w;return this._x=n*u+a*o+r*l-i*s,this._y=r*u+a*s+i*o-n*l,this._z=i*u+a*l+n*s-r*o,this._w=a*u-n*o-r*s-i*l,this._onChangeCallback(),this},slerp:function(e,t){if(0===t)return this;if(1===t)return this.copy(e);var n=this._x,r=this._y,i=this._z,a=this._w,o=a*e._w+n*e._x+r*e._y+i*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),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 l=1-t;return this._w=l*a+t*this._w,this._x=l*n+t*this._x,this._y=l*r+t*this._y,this._z=l*i+t*this._z,this.normalize(),this._onChangeCallback(),this}var u=Math.sqrt(s),h=Math.atan2(u,o),c=Math.sin((1-t)*h)/u,d=Math.sin(t*h)/u;return this._w=a*c+this._w*d,this._x=n*c+this._x*d,this._y=r*c+this._y*d,this._z=i*c+this._z*d,this._onChangeCallback(),this},equals:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w},fromArray:function(e,t){return void 0===t&&(t=0),this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e},_onChange:function(e){return this._onChangeCallback=e,this},_onChangeCallback:function(){}});var mn=new pn,fn=new dn;function pn(e,t,n){this.x=e||0,this.y=t||0,this.z=n||0}Object.assign(pn.prototype,{isVector3:!0,set:function(e,t,n){return this.x=e,this.y=t,this.z=n,this},setScalar:function(e){return this.x=e,this.y=e,this.z=e,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setZ:function(e){return this.z=e,this},setComponent:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this},getComponent:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this},add:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)},addScalar:function(e){return this.x+=e,this.y+=e,this.z+=e,this},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this},addScaledVector:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this},sub:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)},subScalar:function(e){return this.x-=e,this.y-=e,this.z-=e,this},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this},multiply:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,t)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)},multiplyScalar:function(e){return this.x*=e,this.y*=e,this.z*=e,this},multiplyVectors:function(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this},applyEuler:function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(fn.setFromEuler(e))},applyAxisAngle:function(e,t){return this.applyQuaternion(fn.setFromAxisAngle(e,t))},applyMatrix3:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this},applyMatrix4:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this},applyQuaternion:function(e){var t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,l=s*t+a*r-o*n,u=s*n+o*t-i*r,h=s*r+i*n-a*t,c=-i*t-a*n-o*r;return this.x=l*s+c*-i+u*-o-h*-a,this.y=u*s+c*-a+h*-i-l*-o,this.z=h*s+c*-o+l*-a-u*-i,this},project:function(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)},unproject:function(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)},transformDirection:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()},divide:function(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this},divideScalar:function(e){return this.multiplyScalar(1/e)},min:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this},max:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this},clamp:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this},clampScalar:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this},clampLength:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,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(e){return this.x*e.x+this.y*e.y+this.z*e.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(e){return this.normalize().multiplyScalar(e)},lerp:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this},lerpVectors:function(e,t,n){return this.subVectors(t,e).multiplyScalar(n).add(e)},cross:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,t)):this.crossVectors(this,e)},crossVectors:function(e,t){var n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this},projectOnVector:function(e){var t=e.dot(this)/e.lengthSq();return this.copy(e).multiplyScalar(t)},projectOnPlane:function(e){return mn.copy(this).projectOnVector(e),this.sub(mn)},reflect:function(e){return this.sub(mn.copy(e).multiplyScalar(2*this.dot(e)))},angleTo:function(e){var t=Math.sqrt(this.lengthSq()*e.lengthSq());0===t&&console.error("THREE.Vector3: angleTo() can't handle zero length vectors.");var n=this.dot(e)/t;return Math.acos(hn.clamp(n,-1,1))},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){var t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r},manhattanDistanceTo:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)},setFromSpherical:function(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)},setFromSphericalCoords:function(e,t,n){var r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this},setFromCylindrical:function(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)},setFromCylindricalCoords:function(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this},setFromMatrixPosition:function(e){var t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this},setFromMatrixScale:function(e){var t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this},setFromMatrixColumn:function(e,t){return this.fromArray(e.elements,4*t)},equals:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z},fromArray:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this.z=e[t+2],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e},fromBufferAttribute:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}});var _n,vn=new pn;function gn(){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(gn.prototype,{isMatrix3:!0,set:function(e,t,n,r,i,a,o,s,l){var u=this.elements;return u[0]=e,u[1]=r,u[2]=o,u[3]=t,u[4]=i,u[5]=s,u[6]=n,u[7]=a,u[8]=l,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(e){var t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this},setFromMatrix4:function(e){var t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this},applyToBufferAttribute:function(e){for(var t=0,n=e.count;t<n;t++)vn.x=e.getX(t),vn.y=e.getY(t),vn.z=e.getZ(t),vn.applyMatrix3(this),e.setXYZ(t,vn.x,vn.y,vn.z);return e},multiply:function(e){return this.multiplyMatrices(this,e)},premultiply:function(e){return this.multiplyMatrices(e,this)},multiplyMatrices:function(e,t){var n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],l=n[1],u=n[4],h=n[7],c=n[2],d=n[5],m=n[8],f=r[0],p=r[3],_=r[6],v=r[1],g=r[4],y=r[7],M=r[2],x=r[5],b=r[8];return i[0]=a*f+o*v+s*M,i[3]=a*p+o*g+s*x,i[6]=a*_+o*y+s*b,i[1]=l*f+u*v+h*M,i[4]=l*p+u*g+h*x,i[7]=l*_+u*y+h*b,i[2]=c*f+d*v+m*M,i[5]=c*p+d*g+m*x,i[8]=c*_+d*y+m*b,this},multiplyScalar:function(e){var t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this},determinant:function(){var e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8];return t*a*u-t*o*l-n*i*u+n*o*s+r*i*l-r*a*s},getInverse:function(e,t){e&&e.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var n=e.elements,r=this.elements,i=n[0],a=n[1],o=n[2],s=n[3],l=n[4],u=n[5],h=n[6],c=n[7],d=n[8],m=d*l-u*c,f=u*h-d*s,p=c*s-l*h,_=i*m+a*f+o*p;if(0===_){var v="THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0";if(!0===t)throw new Error(v);return console.warn(v),this.identity()}var g=1/_;return r[0]=m*g,r[1]=(o*c-d*a)*g,r[2]=(u*a-o*l)*g,r[3]=f*g,r[4]=(d*i-o*h)*g,r[5]=(o*s-u*i)*g,r[6]=p*g,r[7]=(a*h-c*i)*g,r[8]=(l*i-a*s)*g,this},transpose:function(){var e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this},getNormalMatrix:function(e){return this.setFromMatrix4(e).getInverse(this).transpose()},transposeIntoArray:function(e){var t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this},setUvTransform:function(e,t,n,r,i,a,o){var s=Math.cos(i),l=Math.sin(i);this.set(n*s,n*l,-n*(s*a+l*o)+a+e,-r*l,r*s,-r*(-l*a+s*o)+o+t,0,0,1)},scale:function(e,t){var n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=t,n[4]*=t,n[7]*=t,this},rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=this.elements,i=r[0],a=r[3],o=r[6],s=r[1],l=r[4],u=r[7];return r[0]=t*i+n*s,r[3]=t*a+n*l,r[6]=t*o+n*u,r[1]=-n*i+t*s,r[4]=-n*a+t*l,r[7]=-n*o+t*u,this},translate:function(e,t){var n=this.elements;return n[0]+=e*n[2],n[3]+=e*n[5],n[6]+=e*n[8],n[1]+=t*n[2],n[4]+=t*n[5],n[7]+=t*n[8],this},equals:function(e){for(var t=this.elements,n=e.elements,r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0},fromArray:function(e,t){void 0===t&&(t=0);for(var n=0;n<9;n++)this.elements[n]=e[n+t];return this},toArray:function(e,t){void 0===e&&(e=[]),void 0===t&&(t=0);var n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}});var yn={getDataURL:function(e){var t;if("undefined"==typeof HTMLCanvasElement)return e.src;if(e instanceof HTMLCanvasElement)t=e;else{void 0===_n&&(_n=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),_n.width=e.width,_n.height=e.height;var n=_n.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=_n}return t.width>2048||t.height>2048?t.toDataURL("image/jpeg",.6):t.toDataURL("image/png")}},Mn=0;function xn(e,t,n,r,i,a,o,s,l,u){Object.defineProperty(this,"id",{value:Mn++}),this.uuid=hn.generateUUID(),this.name="",this.image=void 0!==e?e:xn.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==t?t:xn.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:ge,this.wrapT=void 0!==r?r:ge,this.magFilter=void 0!==i?i:qe,this.minFilter=void 0!==a?a:Ee,this.anisotropy=void 0!==l?l:1,this.format=void 0!==o?o:Ue,this.type=void 0!==s?s:ke,this.offset=new cn(0,0),this.repeat=new cn(1,1),this.center=new cn(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new gn,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==u?u:Pt,this.version=0,this.onUpdate=null}function bn(e,t,n,r){this.x=e||0,this.y=t||0,this.z=n||0,this.w=void 0!==r?r:1}function wn(e,t,n){this.width=e,this.height=t,this.scissor=new bn(0,0,e,t),this.scissorTest=!1,this.viewport=new bn(0,0,e,t),n=n||{},this.texture=new xn(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=e,this.texture.image.height=t,this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:qe,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 Ln(e,t,n){wn.call(this,e,t,n),this.samples=4}xn.DEFAULT_IMAGE=void 0,xn.DEFAULT_MAPPING=ue,xn.prototype=Object.assign(Object.create(sn.prototype),{constructor:xn,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.name=e.name,this.image=e.image,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this},toJSON:function(e){var t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];var n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anis