UNPKG

uix-kit

Version:

A free web kits for fast web design and development, compatible with Bootstrap v5.

2 lines 773 kB
/*! For license information please see three.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.THREE=t():e.THREE=t()}(this,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function n(e,t,n,i,r,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function i(e){return function(){var t=this,i=arguments;return new Promise((function(r,a){var o=e.apply(t,i);function s(e){n(o,r,a,s,l,"next",e)}function l(e){n(o,r,a,s,l,"throw",e)}s(void 0)}))}}function r(e){var t="function"==typeof Map?new Map:void 0;return r=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(v())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return n&&y(r,n.prototype),r}(e,arguments,m(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,e)},r(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return s}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t,n,i){var r=c(m(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},c.apply(null,arguments)}function h(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t,n){return t=m(t),function(e,t){if(t&&("object"==M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function _(e,t,n){return(t=T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(){x=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var a=t&&t.prototype instanceof g?t:g,o=Object.create(a.prototype),s=new I(i||[]);return r(o,"_invoke",{value:C(e,n,s)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",v="completed",m={};function g(){}function y(){}function _(){}var S={};u(S,o,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(L([])));w&&w!==n&&i.call(w,o)&&(S=w);var T=_.prototype=g.prototype=Object.create(S);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(r,a,o,s){var l=h(e[r],e,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==M(c)&&i.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return a=a?a.then(r,r):r()}})}function C(t,n,i){var r=d;return function(a,o){if(r===p)throw Error("Generator is already running");if(r===v){if("throw"===a)throw o;return{value:e,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=R(s,i);if(l){if(l===m)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===d)throw r=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=h(t,n,i);if("normal"===u.type){if(r=i.done?v:f,u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=v,i.method="throw",i.arg=u.arg)}}}function R(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var a=h(r,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(M(t)+" is not iterable")}return y.prototype=_,r(T,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:y,configurable:!0}),y.displayName=u(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,l,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},E(A.prototype),u(A.prototype,s,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,i,r,a){void 0===a&&(a=Promise);var o=new A(c(e,n,i,r),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},E(T),u(T,l,"Generator"),u(T,o,(function(){return this})),u(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=L,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:L(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,T(i.key),i)}}function w(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function T(e){var t=function(e,t){if("object"!=M(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=M(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==M(t)?t:t+""}e.r(t),e.d(t,{ACESFilmicToneMapping:()=>Ae,AddEquation:()=>j,AddOperation:()=>Se,AdditiveAnimationBlendMode:()=>dn,AdditiveBlending:()=>G,AgXToneMapping:()=>Re,AlphaFormat:()=>ct,AlwaysCompare:()=>Jn,AlwaysDepth:()=>fe,AlwaysStencilFunc:()=>Gn,AmbientLight:()=>sh,AnimationAction:()=>Kh,AnimationClip:()=>Rc,AnimationLoader:()=>Bc,AnimationMixer:()=>$h,AnimationObjectGroup:()=>Jh,AnimationUtils:()=>mc,ArcCurve:()=>Rl,ArrayCamera:()=>Eh,ArrowHelper:()=>Yd,AttachedBindMode:()=>Pe,Audio:()=>Dh,AudioAnalyser:()=>zh,AudioContext:()=>xh,AudioListener:()=>Lh,AudioLoader:()=>Mh,AxesHelper:()=>Zd,BackSide:()=>F,BasicDepthPacking:()=>mn,BasicShadowMap:()=>L,BatchedMesh:()=>Ks,Bone:()=>fs,BooleanKeyframeTrack:()=>Sc,Box2:()=>vd,Box3:()=>rr,Box3Helper:()=>Xd,BoxGeometry:()=>po,BoxHelper:()=>Wd,BufferAttribute:()=>Na,BufferGeometry:()=>$a,BufferGeometryLoader:()=>ph,ByteType:()=>$e,Cache:()=>Pc,Camera:()=>Mo,CameraHelper:()=>Bd,CanvasTexture:()=>Tl,CapsuleGeometry:()=>Jl,CatmullRomCurve3:()=>Ul,CineonToneMapping:()=>Ee,CircleGeometry:()=>Kl,ClampToEdgeWrapping:()=>ze,Clock:()=>Ah,Color:()=>ba,ColorKeyframeTrack:()=>bc,ColorManagement:()=>Fi,CompressedArrayTexture:()=>bl,CompressedCubeTexture:()=>wl,CompressedTexture:()=>Sl,CompressedTextureLoader:()=>zc,ConeGeometry:()=>$l,ConstantAlphaFactor:()=>ce,ConstantColorFactor:()=>le,Controls:()=>Kd,CubeCamera:()=>Ao,CubeReflectionMapping:()=>De,CubeRefractionMapping:()=>Ue,CubeTexture:()=>Co,CubeTextureLoader:()=>Gc,CubeUVReflectionMapping:()=>Fe,CubicBezierCurve:()=>Bl,CubicBezierCurve3:()=>zl,CubicInterpolant:()=>yc,CullFaceBack:()=>k,CullFaceFront:()=>P,CullFaceFrontBack:()=>I,CullFaceNone:()=>R,Curve:()=>Al,CurvePath:()=>ql,CustomBlending:()=>X,CustomToneMapping:()=>Ce,CylinderGeometry:()=>Ql,Cylindrical:()=>dd,Data3DTexture:()=>Qi,DataArrayTexture:()=>Ji,DataTexture:()=>ps,DataTextureLoader:()=>Hc,DataUtils:()=>Ia,DecrementStencilOp:()=>Pn,DecrementWrapStencilOp:()=>Ln,DefaultLoadingManager:()=>Lc,DepthFormat:()=>vt,DepthStencilFormat:()=>mt,DepthTexture:()=>El,DetachedBindMode:()=>Ie,DirectionalLight:()=>oh,DirectionalLightHelper:()=>Nd,DiscreteInterpolant:()=>xc,DodecahedronGeometry:()=>tu,DoubleSide:()=>B,DstAlphaFactor:()=>ie,DstColorFactor:()=>ae,DynamicCopyUsage:()=>ri,DynamicDrawUsage:()=>Qn,DynamicReadUsage:()=>ti,EdgesGeometry:()=>ou,EllipseCurve:()=>Cl,EqualCompare:()=>Xn,EqualDepth:()=>me,EqualStencilFunc:()=>On,EquirectangularReflectionMapping:()=>Ne,EquirectangularRefractionMapping:()=>Oe,Euler:()=>Vr,EventDispatcher:()=>hi,ExtrudeGeometry:()=>Fu,FileLoader:()=>Fc,Float16BufferAttribute:()=>Wa,Float32BufferAttribute:()=>Xa,FloatType:()=>rt,Fog:()=>Do,FogExp2:()=>Lo,FramebufferTexture:()=>Ml,FrontSide:()=>O,Frustum:()=>Ls,GLBufferAttribute:()=>od,GLSL1:()=>oi,GLSL3:()=>si,GreaterCompare:()=>qn,GreaterDepth:()=>ye,GreaterEqualCompare:()=>Zn,GreaterEqualDepth:()=>ge,GreaterEqualStencilFunc:()=>Vn,GreaterStencilFunc:()=>Bn,GridHelper:()=>Pd,Group:()=>ko,HalfFloatType:()=>at,HemisphereLight:()=>jc,HemisphereLightHelper:()=>kd,IcosahedronGeometry:()=>zu,ImageBitmapLoader:()=>_h,ImageLoader:()=>Vc,ImageUtils:()=>Vi,IncrementStencilOp:()=>kn,IncrementWrapStencilOp:()=>In,InstancedBufferAttribute:()=>ys,InstancedBufferGeometry:()=>fh,InstancedInterleavedBuffer:()=>ad,InstancedMesh:()=>Es,Int16BufferAttribute:()=>za,Int32BufferAttribute:()=>Ga,Int8BufferAttribute:()=>Oa,IntType:()=>nt,InterleavedBuffer:()=>No,InterleavedBufferAttribute:()=>Fo,Interpolant:()=>gc,InterpolateDiscrete:()=>an,InterpolateLinear:()=>on,InterpolateSmooth:()=>sn,InvertStencilOp:()=>Dn,KeepStencilOp:()=>Cn,KeyframeTrack:()=>Mc,LOD:()=>ns,LatheGeometry:()=>Zl,Layers:()=>Gr,LessCompare:()=>Wn,LessDepth:()=>pe,LessEqualCompare:()=>jn,LessEqualDepth:()=>ve,LessEqualStencilFunc:()=>Fn,LessStencilFunc:()=>Nn,Light:()=>Xc,LightProbe:()=>ch,Line:()=>ol,Line3:()=>yd,LineBasicMaterial:()=>Qs,LineCurve:()=>Vl,LineCurve3:()=>Gl,LineDashedMaterial:()=>cc,LineLoop:()=>hl,LineSegments:()=>cl,LinearFilter:()=>qe,LinearInterpolant:()=>_c,LinearMipMapLinearFilter:()=>Ke,LinearMipMapNearestFilter:()=>Ze,LinearMipmapLinearFilter:()=>Je,LinearMipmapNearestFilter:()=>Ye,LinearSRGBColorSpace:()=>wn,LinearToneMapping:()=>we,LinearTransfer:()=>Tn,Loader:()=>Dc,LoaderUtils:()=>dh,LoadingManager:()=>Ic,LoopOnce:()=>tn,LoopPingPong:()=>rn,LoopRepeat:()=>nn,LuminanceAlphaFormat:()=>pt,LuminanceFormat:()=>ft,MOUSE:()=>A,Material:()=>Ea,MaterialLoader:()=>hh,MathUtils:()=>Si,Matrix2:()=>fd,Matrix3:()=>wi,Matrix4:()=>Pr,MaxEquation:()=>J,Mesh:()=>ho,MeshBasicMaterial:()=>Aa,MeshDepthMaterial:()=>sc,MeshDistanceMaterial:()=>lc,MeshLambertMaterial:()=>oc,MeshMatcapMaterial:()=>uc,MeshNormalMaterial:()=>ac,MeshPhongMaterial:()=>ic,MeshPhysicalMaterial:()=>nc,MeshStandardMaterial:()=>tc,MeshToonMaterial:()=>rc,MinEquation:()=>Z,MirroredRepeatWrapping:()=>Ve,MixOperation:()=>Me,MultiplyBlending:()=>W,MultiplyOperation:()=>xe,NearestFilter:()=>Ge,NearestMipMapLinearFilter:()=>je,NearestMipMapNearestFilter:()=>We,NearestMipmapLinearFilter:()=>Xe,NearestMipmapNearestFilter:()=>He,NeutralToneMapping:()=>ke,NeverCompare:()=>Hn,NeverDepth:()=>de,NeverStencilFunc:()=>Un,NoBlending:()=>z,NoColorSpace:()=>Sn,NoToneMapping:()=>be,NormalAnimationBlendMode:()=>hn,NormalBlending:()=>V,NotEqualCompare:()=>Yn,NotEqualDepth:()=>_e,NotEqualStencilFunc:()=>zn,NumberKeyframeTrack:()=>wc,Object3D:()=>ra,ObjectLoader:()=>vh,ObjectSpaceNormalMap:()=>Mn,OctahedronGeometry:()=>Vu,OneFactor:()=>Q,OneMinusConstantAlphaFactor:()=>he,OneMinusConstantColorFactor:()=>ue,OneMinusDstAlphaFactor:()=>re,OneMinusDstColorFactor:()=>oe,OneMinusSrcAlphaFactor:()=>ne,OneMinusSrcColorFactor:()=>ee,OrthographicCamera:()=>rh,PCFShadowMap:()=>D,PCFSoftShadowMap:()=>U,PMREMGenerator:()=>Gf,Path:()=>Yl,PerspectiveCamera:()=>To,Plane:()=>ks,PlaneGeometry:()=>Gu,PlaneHelper:()=>jd,PointLight:()=>ih,PointLightHelper:()=>Ed,Points:()=>gl,PointsMaterial:()=>dl,PolarGridHelper:()=>Id,PolyhedronGeometry:()=>eu,PositionalAudio:()=>Bh,PropertyBinding:()=>Zh,PropertyMixer:()=>Vh,QuadraticBezierCurve:()=>Hl,QuadraticBezierCurve3:()=>Wl,Quaternion:()=>er,QuaternionKeyframeTrack:()=>Ec,QuaternionLinearInterpolant:()=>Tc,RED_GREEN_RGTC2_Format:()=>$t,RED_RGTC1_Format:()=>Kt,REVISION:()=>E,RGBADepthPacking:()=>gn,RGBAFormat:()=>dt,RGBAIntegerFormat:()=>St,RGBA_ASTC_10x10_Format:()=>Xt,RGBA_ASTC_10x5_Format:()=>Gt,RGBA_ASTC_10x6_Format:()=>Ht,RGBA_ASTC_10x8_Format:()=>Wt,RGBA_ASTC_12x10_Format:()=>jt,RGBA_ASTC_12x12_Format:()=>qt,RGBA_ASTC_4x4_Format:()=>Dt,RGBA_ASTC_5x4_Format:()=>Ut,RGBA_ASTC_5x5_Format:()=>Nt,RGBA_ASTC_6x5_Format:()=>Ot,RGBA_ASTC_6x6_Format:()=>Ft,RGBA_ASTC_8x5_Format:()=>Bt,RGBA_ASTC_8x6_Format:()=>zt,RGBA_ASTC_8x8_Format:()=>Vt,RGBA_BPTC_Format:()=>Yt,RGBA_ETC2_EAC_Format:()=>Lt,RGBA_PVRTC_2BPPV1_Format:()=>kt,RGBA_PVRTC_4BPPV1_Format:()=>Rt,RGBA_S3TC_DXT1_Format:()=>wt,RGBA_S3TC_DXT3_Format:()=>Tt,RGBA_S3TC_DXT5_Format:()=>Et,RGBDepthPacking:()=>yn,RGBFormat:()=>ht,RGBIntegerFormat:()=>Mt,RGB_BPTC_SIGNED_Format:()=>Zt,RGB_BPTC_UNSIGNED_Format:()=>Jt,RGB_ETC1_Format:()=>Pt,RGB_ETC2_Format:()=>It,RGB_PVRTC_2BPPV1_Format:()=>Ct,RGB_PVRTC_4BPPV1_Format:()=>At,RGB_S3TC_DXT1_Format:()=>bt,RGDepthPacking:()=>_n,RGFormat:()=>_t,RGIntegerFormat:()=>xt,RawShaderMaterial:()=>ec,Ray:()=>kr,Raycaster:()=>ld,RectAreaLight:()=>lh,RedFormat:()=>gt,RedIntegerFormat:()=>yt,ReinhardToneMapping:()=>Te,RenderTarget:()=>Yi,RenderTarget3D:()=>ed,RenderTargetArray:()=>td,RepeatWrapping:()=>Be,ReplaceStencilOp:()=>Rn,ReverseSubtractEquation:()=>Y,RingGeometry:()=>Hu,SIGNED_RED_GREEN_RGTC2_Format:()=>en,SIGNED_RED_RGTC1_Format:()=>Qt,SRGBColorSpace:()=>bn,SRGBTransfer:()=>En,Scene:()=>Uo,ShaderChunk:()=>yf,ShaderLib:()=>xf,ShaderMaterial:()=>xo,ShadowMaterial:()=>$u,Shape:()=>su,ShapeGeometry:()=>Wu,ShapePath:()=>Jd,ShapeUtils:()=>Uu,ShortType:()=>et,Skeleton:()=>gs,SkeletonHelper:()=>wd,SkinnedMesh:()=>ds,Source:()=>Hi,Sphere:()=>Sr,SphereGeometry:()=>Xu,Spherical:()=>hd,SphericalHarmonics3:()=>uh,SplineCurve:()=>Xl,SpotLight:()=>Qc,SpotLightHelper:()=>xd,Sprite:()=>Qo,SpriteMaterial:()=>Bo,SrcAlphaFactor:()=>te,SrcAlphaSaturateFactor:()=>se,SrcColorFactor:()=>$,StaticCopyUsage:()=>ii,StaticDrawUsage:()=>Kn,StaticReadUsage:()=>ei,StereoCamera:()=>Th,StreamCopyUsage:()=>ai,StreamDrawUsage:()=>$n,StreamReadUsage:()=>ni,StringKeyframeTrack:()=>Ac,SubtractEquation:()=>q,SubtractiveBlending:()=>H,TOUCH:()=>C,TangentSpaceNormalMap:()=>xn,TetrahedronGeometry:()=>ju,Texture:()=>ji,TextureLoader:()=>Wc,TextureUtils:()=>$d,TimestampQuery:()=>ci,TorusGeometry:()=>qu,TorusKnotGeometry:()=>Yu,Triangle:()=>ya,TriangleFanDrawMode:()=>vn,TriangleStripDrawMode:()=>pn,TrianglesDrawMode:()=>fn,TubeGeometry:()=>Zu,UVMapping:()=>Le,Uint16BufferAttribute:()=>Va,Uint32BufferAttribute:()=>Ha,Uint8BufferAttribute:()=>Fa,Uint8ClampedBufferAttribute:()=>Ba,Uniform:()=>nd,UniformsGroup:()=>rd,UniformsLib:()=>_f,UniformsUtils:()=>_o,UnsignedByteType:()=>Qe,UnsignedInt248Type:()=>lt,UnsignedInt5999Type:()=>ut,UnsignedIntType:()=>it,UnsignedShort4444Type:()=>ot,UnsignedShort5551Type:()=>st,UnsignedShortType:()=>tt,VSMShadowMap:()=>N,Vector2:()=>bi,Vector3:()=>tr,Vector4:()=>qi,VectorKeyframeTrack:()=>Cc,VideoFrameTexture:()=>xl,VideoTexture:()=>_l,WebGL3DRenderTarget:()=>$i,WebGLArrayRenderTarget:()=>Ki,WebGLCoordinateSystem:()=>li,WebGLCubeRenderTarget:()=>Ro,WebGLRenderTarget:()=>Zi,WebGLRenderer:()=>Kv,WebGLUtils:()=>Wv,WebGPUCoordinateSystem:()=>ui,WebXRController:()=>Io,WireframeGeometry:()=>Ju,WrapAroundEnding:()=>cn,ZeroCurvatureEnding:()=>ln,ZeroFactor:()=>K,ZeroSlopeEnding:()=>un,ZeroStencilOp:()=>An,createCanvasElement:()=>ki});var E="175",A={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},C={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},R=0,k=1,P=2,I=3,L=0,D=1,U=2,N=3,O=0,F=1,B=2,z=0,V=1,G=2,H=3,W=4,X=5,j=100,q=101,Y=102,Z=103,J=104,K=200,Q=201,$=202,ee=203,te=204,ne=205,ie=206,re=207,ae=208,oe=209,se=210,le=211,ue=212,ce=213,he=214,de=0,fe=1,pe=2,ve=3,me=4,ge=5,ye=6,_e=7,xe=0,Me=1,Se=2,be=0,we=1,Te=2,Ee=3,Ae=4,Ce=5,Re=6,ke=7,Pe="attached",Ie="detached",Le=300,De=301,Ue=302,Ne=303,Oe=304,Fe=306,Be=1e3,ze=1001,Ve=1002,Ge=1003,He=1004,We=1004,Xe=1005,je=1005,qe=1006,Ye=1007,Ze=1007,Je=1008,Ke=1008,Qe=1009,$e=1010,et=1011,tt=1012,nt=1013,it=1014,rt=1015,at=1016,ot=1017,st=1018,lt=1020,ut=35902,ct=1021,ht=1022,dt=1023,ft=1024,pt=1025,vt=1026,mt=1027,gt=1028,yt=1029,_t=1030,xt=1031,Mt=1032,St=1033,bt=33776,wt=33777,Tt=33778,Et=33779,At=35840,Ct=35841,Rt=35842,kt=35843,Pt=36196,It=37492,Lt=37496,Dt=37808,Ut=37809,Nt=37810,Ot=37811,Ft=37812,Bt=37813,zt=37814,Vt=37815,Gt=37816,Ht=37817,Wt=37818,Xt=37819,jt=37820,qt=37821,Yt=36492,Zt=36494,Jt=36495,Kt=36283,Qt=36284,$t=36285,en=36286,tn=2200,nn=2201,rn=2202,an=2300,on=2301,sn=2302,ln=2400,un=2401,cn=2402,hn=2500,dn=2501,fn=0,pn=1,vn=2,mn=3200,gn=3201,yn=3202,_n=3203,xn=0,Mn=1,Sn="",bn="srgb",wn="srgb-linear",Tn="linear",En="srgb",An=0,Cn=7680,Rn=7681,kn=7682,Pn=7683,In=34055,Ln=34056,Dn=5386,Un=512,Nn=513,On=514,Fn=515,Bn=516,zn=517,Vn=518,Gn=519,Hn=512,Wn=513,Xn=514,jn=515,qn=516,Yn=517,Zn=518,Jn=519,Kn=35044,Qn=35048,$n=35040,ei=35045,ti=35049,ni=35041,ii=35046,ri=35050,ai=35042,oi="100",si="300 es",li=2e3,ui=2001,ci={COMPUTE:"compute",RENDER:"render"},hi=function(){return w((function e(){S(this,e)}),[{key:"addEventListener",value: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)}},{key:"hasEventListener",value:function(e,t){var n=this._listeners;return void 0!==n&&(void 0!==n[e]&&-1!==n[e].indexOf(t))}},{key:"removeEventListener",value:function(e,t){var n=this._listeners;if(void 0!==n){var i=n[e];if(void 0!==i){var r=i.indexOf(t);-1!==r&&i.splice(r,1)}}}},{key:"dispatchEvent",value:function(e){var t=this._listeners;if(void 0!==t){var n=t[e.type];if(void 0!==n){e.target=this;for(var i=n.slice(0),r=0,a=i.length;r<a;r++)i[r].call(this,e);e.target=null}}}}])}(),di=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"],fi=1234567,pi=Math.PI/180,vi=180/Math.PI;function mi(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(di[255&e]+di[e>>8&255]+di[e>>16&255]+di[e>>24&255]+"-"+di[255&t]+di[t>>8&255]+"-"+di[t>>16&15|64]+di[t>>24&255]+"-"+di[63&n|128]+di[n>>8&255]+"-"+di[n>>16&255]+di[n>>24&255]+di[255&i]+di[i>>8&255]+di[i>>16&255]+di[i>>24&255]).toLowerCase()}function gi(e,t,n){return Math.max(t,Math.min(n,e))}function yi(e,t){return(e%t+t)%t}function _i(e,t,n){return(1-n)*e+n*t}function xi(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function Mi(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}var Si={DEG2RAD:pi,RAD2DEG:vi,generateUUID:mi,clamp:gi,euclideanModulo:yi,mapLinear:function(e,t,n,i,r){return i+(e-t)*(r-i)/(n-t)},inverseLerp:function(e,t,n){return e!==t?(n-e)/(t-e):0},lerp:_i,damp:function(e,t,n,i){return _i(e,t,1-Math.exp(-n*i))},pingpong:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t-Math.abs(yi(e,2*t)-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())},seededRandom:function(e){void 0!==e&&(fi=e);var t=fi+=1831565813;return t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/4294967296},degToRad:function(e){return e*pi},radToDeg:function(e){return e*vi},isPowerOfTwo:function(e){return!(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))},setQuaternionFromProperEuler:function(e,t,n,i,r){var a=Math.cos,o=Math.sin,s=a(n/2),l=o(n/2),u=a((t+i)/2),c=o((t+i)/2),h=a((t-i)/2),d=o((t-i)/2),f=a((i-t)/2),p=o((i-t)/2);switch(r){case"XYX":e.set(s*c,l*h,l*d,s*u);break;case"YZY":e.set(l*d,s*c,l*h,s*u);break;case"ZXZ":e.set(l*h,l*d,s*c,s*u);break;case"XZX":e.set(s*c,l*p,l*f,s*u);break;case"YXY":e.set(l*f,s*c,l*p,s*u);break;case"ZYZ":e.set(l*p,l*f,s*c,s*u)}},normalize:Mi,denormalize:xi},bi=function(){return w((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;S(this,e),e.prototype.isVector2=!0,this.x=t,this.y=n}),[{key:"width",get:function(){return this.x},set:function(e){this.x=e}},{key:"height",get:function(){return this.y},set:function(e){this.y=e}},{key:"set",value:function(e,t){return this.x=e,this.y=t,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setComponent",value: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}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}},{key:"sub",value:function(e){return this.x-=e.x,this.y-=e.y,this}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"applyMatrix3",value:function(e){var t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}},{key:"clamp",value:function(e,t){return this.x=gi(this.x,e.x,t.x),this.y=gi(this.y,e.y,t.y),this}},{key:"clampScalar",value:function(e,t){return this.x=gi(this.x,e,t),this.y=gi(this.y,e,t),this}},{key:"clampLength",value:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(gi(n,e,t))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"roundToZero",value:function(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y}},{key:"cross",value:function(e){return this.x*e.y-this.y*e.x}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"angle",value:function(){var e=Math.atan2(-this.y,-this.x)+Math.PI;return e}},{key:"angleTo",value:function(e){var t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;var n=this.dot(e)/t;return Math.acos(gi(n,-1,1))}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}},{key:"lerpVectors",value:function(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e}},{key:"fromBufferAttribute",value:function(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}},{key:"rotateAround",value:function(e,t){var n=Math.cos(t),i=Math.sin(t),r=this.x-e.x,a=this.y-e.y;return this.x=r*n-a*i+e.x,this.y=r*i+a*n+e.y,this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this}},{key:Symbol.iterator,value:x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:case"end":return e.stop()}}),e,this)}))}])}(),wi=function(){return w((function e(t,n,i,r,a,o,s,l,u){S(this,e),e.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==t&&this.set(t,n,i,r,a,o,s,l,u)}),[{key:"set",value:function(e,t,n,i,r,a,o,s,l){var u=this.elements;return u[0]=e,u[1]=i,u[2]=o,u[3]=t,u[4]=r,u[5]=s,u[6]=n,u[7]=a,u[8]=l,this}},{key:"identity",value:function(){return this.set(1,0,0,0,1,0,0,0,1),this}},{key:"copy",value: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}},{key:"extractBasis",value:function(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}},{key:"setFromMatrix4",value: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}},{key:"multiply",value:function(e){return this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var n=e.elements,i=t.elements,r=this.elements,a=n[0],o=n[3],s=n[6],l=n[1],u=n[4],c=n[7],h=n[2],d=n[5],f=n[8],p=i[0],v=i[3],m=i[6],g=i[1],y=i[4],_=i[7],x=i[2],M=i[5],S=i[8];return r[0]=a*p+o*g+s*x,r[3]=a*v+o*y+s*M,r[6]=a*m+o*_+s*S,r[1]=l*p+u*g+c*x,r[4]=l*v+u*y+c*M,r[7]=l*m+u*_+c*S,r[2]=h*p+d*g+f*x,r[5]=h*v+d*y+f*M,r[8]=h*m+d*_+f*S,this}},{key:"multiplyScalar",value: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}},{key:"determinant",value:function(){var e=this.elements,t=e[0],n=e[1],i=e[2],r=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*r*u+n*o*s+i*r*l-i*a*s}},{key:"invert",value:function(){var e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=u*a-o*l,h=o*s-u*r,d=l*r-a*s,f=t*c+n*h+i*d;if(0===f)return this.set(0,0,0,0,0,0,0,0,0);var p=1/f;return e[0]=c*p,e[1]=(i*l-u*n)*p,e[2]=(o*n-i*a)*p,e[3]=h*p,e[4]=(u*t-i*s)*p,e[5]=(i*r-o*t)*p,e[6]=d*p,e[7]=(n*s-l*t)*p,e[8]=(a*t-n*r)*p,this}},{key:"transpose",value: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}},{key:"getNormalMatrix",value:function(e){return this.setFromMatrix4(e).invert().transpose()}},{key:"transposeIntoArray",value: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}},{key:"setUvTransform",value:function(e,t,n,i,r,a,o){var s=Math.cos(r),l=Math.sin(r);return this.set(n*s,n*l,-n*(s*a+l*o)+a+e,-i*l,i*s,-i*(-l*a+s*o)+o+t,0,0,1),this}},{key:"scale",value:function(e,t){return this.premultiply(Ti.makeScale(e,t)),this}},{key:"rotate",value:function(e){return this.premultiply(Ti.makeRotation(-e)),this}},{key:"translate",value:function(e,t){return this.premultiply(Ti.makeTranslation(e,t)),this}},{key:"makeTranslation",value:function(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}},{key:"makeRotation",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}},{key:"makeScale",value:function(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}},{key:"equals",value:function(e){for(var t=this.elements,n=e.elements,i=0;i<9;i++)if(t[i]!==n[i])return!1;return!0}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n<9;n++)this.elements[n]=e[n+t];return this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,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}},{key:"clone",value:function(){return(new this.constructor).fromArray(this.elements)}}])}(),Ti=new wi;function Ei(e){for(var t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}var Ai={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function Ci(e,t){return new Ai[e](t)}function Ri(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function ki(){var e=Ri("canvas");return e.style.display="block",e}var Pi={};function Ii(e){e in Pi||(Pi[e]=!0)}function Li(e,t,n){return new Promise((function(i,r){setTimeout((function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:r();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:i()}}),n)}))}var Di=(new wi).set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Ui=(new wi).set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Ni(){var e={enabled:!0,workingColorSpace:wn,spaces:{},convert:function(e,t,n){return!1!==this.enabled&&t!==n&&t&&n?(this.spaces[t].transfer===En&&(e.r=Bi(e.r),e.g=Bi(e.g),e.b=Bi(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===En&&(e.r=zi(e.r),e.g=zi(e.g),e.b=zi(e.b)),e):e},fromWorkingColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===Sn?Tn:this.spaces[e].transfer},getLuminanceCoefficients:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.workingColorSpace;return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.workingColorSpace;return this.spaces[e].workingColorSpaceConfig.unpackColorSpace}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],i=[.3127,.329];return e.define(_(_({},wn,{primaries:t,whitePoint:i,transfer:Tn,toXYZ:Di,fromXYZ:Ui,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:bn},outputColorSpaceConfig:{drawingBufferColorSpace:bn}}),bn,{primaries:t,whitePoint:i,transfer:En,toXYZ:Di,fromXYZ:Ui,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:bn}})),e}var Oi,Fi=Ni();function Bi(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function zi(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}var Vi=function(){return w((function e(){S(this,e)}),null,[{key:"getDataURL",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image/png";if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;if(e instanceof HTMLCanvasElement)t=e;else{void 0===Oi&&(Oi=Ri("canvas")),Oi.width=e.width,Oi.height=e.height;var i=Oi.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=Oi}return t.toDataURL(n)}},{key:"sRGBToLinear",value:function(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){var t=Ri("canvas");t.width=e.width,t.height=e.height;var n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);for(var i=n.getImageData(0,0,e.width,e.height),r=i.data,a=0;a<r.length;a++)r[a]=255*Bi(r[a]/255);return n.putImageData(i,0,0),t}if(e.data){for(var o=e.data.slice(0),s=0;s<o.length;s++)o instanceof Uint8Array||o instanceof Uint8ClampedArray?o[s]=Math.floor(255*Bi(o[s]/255)):o[s]=Bi(o[s]);return{data:o,width:e.width,height:e.height}}return e}}])}(),Gi=0,Hi=function(){return w((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;S(this,e),this.isSource=!0,Object.defineProperty(this,"id",{value:Gi++}),this.uuid=mi(),this.data=t,this.dataReady=!0,this.version=0}),[{key:"needsUpdate",set:function(e){!0===e&&this.version++}},{key:"toJSON",value:function(e){var t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];var n={uuid:this.uuid,url:""},i=this.data;if(null!==i){var r;if(Array.isArray(i)){r=[];for(var a=0,o=i.length;a<o;a++)i[a].isDataTexture?r.push(Wi(i[a].image)):r.push(Wi(i[a]))}else r=Wi(i);n.url=r}return t||(e.images[this.uuid]=n),n}}])}();function Wi(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap?Vi.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:{}}var Xi=0,ji=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_IMAGE,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.DEFAULT_MAPPING,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ze,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ze,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:qe,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Je,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:dt,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:Qe,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:t.DEFAULT_ANISOTROPY,h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Sn;return S(this,t),(e=p(this,t)).isTexture=!0,Object.defineProperty(e,"id",{value:Xi++}),e.uuid=mi(),e.name="",e.source=new Hi(n),e.mipmaps=[],e.mapping=i,e.channel=0,e.wrapS=r,e.wrapT=a,e.magFilter=o,e.minFilter=s,e.anisotropy=c,e.format=l,e.internalFormat=null,e.type=u,e.offset=new bi(0,0),e.repeat=new bi(1,1),e.center=new bi(0,0),e.rotation=0,e.matrixAutoUpdate=!0,e.matrix=new wi,e.generateMipmaps=!0,e.premultiplyAlpha=!1,e.flipY=!0,e.unpackAlignment=4,e.colorSpace=h,e.userData={},e.version=0,e.onUpdate=null,e.renderTarget=null,e.isRenderTargetTexture=!1,e.pmremVersion=0,e}return g(t,e),w(t,[{key:"image",get:function(){return this.source.data},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.source.data=e}},{key:"updateMatrix",value:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,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.internalFormat=e.internalFormat,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.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}},{key:"toJSON",value: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.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,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,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"transformUv",value:function(e){if(this.mapping!==Le)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Be:e.x=e.x-Math.floor(e.x);break;case ze:e.x=e.x<0?0:1;break;case Ve:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Be:e.y=e.y-Math.floor(e.y);break;case ze:e.y=e.y<0?0:1;break;case Ve:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}},{key:"needsUpdate",set:function(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}},{key:"needsPMREMUpdate",set:function(e){!0===e&&this.pmremVersion++}}])}(hi);ji.DEFAULT_IMAGE=null,ji.DEFAULT_MAPPING=Le,ji.DEFAULT_ANISOTROPY=1;var qi=function(){return w((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;S(this,e),e.prototype.isVector4=!0,this.x=t,this.y=n,this.z=i,this.w=r}),[{key:"width",get:function(){return this.z},set:function(e){this.z=e}},{key:"height",get:function(){return this.w},set:function(e){this.w=e}},{key:"set",value:function(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setW",value:function(e){return this.w=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z,this.w)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}},{key:"add",value:function(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}},{key:"sub",value:function(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}},{key:"applyMatrix4",value:function(e){var t=this.x,n=this.y,i=this.z,r=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*i+a[12]*r,this.y=a[1]*t+a