aptechka 0.4.35 → 0.4.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/en3/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  var Qs = Object.defineProperty, hs = Object.defineProperties;
2
2
  var ls = Object.getOwnPropertyDescriptors;
3
3
  var Qt = Object.getOwnPropertySymbols;
4
- var us = Object.prototype.hasOwnProperty, ds = Object.prototype.propertyIsEnumerable;
4
+ var ds = Object.prototype.hasOwnProperty, us = Object.prototype.propertyIsEnumerable;
5
5
  var ht = (C, A, e) => A in C ? Qs(C, A, { enumerable: !0, configurable: !0, writable: !0, value: e }) : C[A] = e, sA = (C, A) => {
6
6
  for (var e in A || (A = {}))
7
- us.call(A, e) && ht(C, e, A[e]);
7
+ ds.call(A, e) && ht(C, e, A[e]);
8
8
  if (Qt)
9
9
  for (var e of Qt(A))
10
- ds.call(A, e) && ht(C, e, A[e]);
10
+ us.call(A, e) && ht(C, e, A[e]);
11
11
  return C;
12
12
  }, we = (C, A) => hs(C, ls(A));
13
13
  var be = (C, A, e) => {
@@ -41,7 +41,7 @@ import { LayoutBox as kt } from "../layout-box/index.js";
41
41
  import { RESIZE_ORDER as bt, TICK_ORDER as rt } from "../order/index.js";
42
42
  import { windowResizer as kA } from "../window-resizer/index.js";
43
43
  import { ticker as bA } from "../ticker/index.js";
44
- import { Mesh as Re, Vector2 as at, Raycaster as fs, REVISION as Ds, OrthographicCamera as Te, PerspectiveCamera as At, Scene as Fs, WebGLRenderer as Gs, TextureLoader as Kt, TrianglesDrawMode as Rs, TriangleFanDrawMode as et, TriangleStripDrawMode as Ot, Loader as Ct, LoaderUtils as jA, FileLoader as DA, Color as cA, LinearSRGBColorSpace as _, SpotLight as ps, PointLight as ms, DirectionalLight as Ms, MeshBasicMaterial as vA, SRGBColorSpace as AA, MeshPhysicalMaterial as eA, Matrix4 as KA, Vector3 as y, Quaternion as It, InstancedMesh as ws, InstancedBufferAttribute as ys, Object3D as gt, ImageBitmapLoader as Ss, BufferAttribute as ZA, InterleavedBuffer as Ls, InterleavedBufferAttribute as Hs, LinearFilter as Ue, LinearMipmapLinearFilter as Et, RepeatWrapping as tt, PointsMaterial as Js, Material as Ke, LineBasicMaterial as Ts, MeshStandardMaterial as _t, DoubleSide as Us, PropertyBinding as Ns, BufferGeometry as Pt, SkinnedMesh as xs, LineSegments as ks, Line as bs, LineLoop as Ks, Points as Os, Group as zA, MathUtils as _s, Skeleton as Ps, AnimationClip as Ys, Bone as qs, InterpolateLinear as Yt, ColorManagement as ut, NearestFilter as Xs, NearestMipmapNearestFilter as vs, LinearMipmapNearestFilter as Ws, NearestMipmapLinearFilter as Vs, ClampToEdgeWrapping as js, MirroredRepeatWrapping as Zs, InterpolateDiscrete as zs, FrontSide as $s, Texture as dt, VectorKeyframeTrack as ft, NumberKeyframeTrack as Dt, QuaternionKeyframeTrack as Ft, Box3 as An, Sphere as en, Interpolant as tn, CompressedCubeTexture as sn, UnsignedByteType as O, CompressedArrayTexture as nn, CompressedTexture as qt, RGBAFormat as GA, RGBA_ASTC_4x4_Format as on, RGBA_BPTC_Format as Bn, RGBA_ETC2_EAC_Format as rn, RGBA_PVRTC_4BPPV1_Format as an, RGBA_S3TC_DXT5_Format as Cn, RGB_ETC1_Format as In, RGB_ETC2_Format as gn, RGB_PVRTC_4BPPV1_Format as En, RGB_S3TC_DXT1_Format as cn, FloatType as He, HalfFloatType as Je, DataTexture as Qn, Data3DTexture as hn, DisplayP3ColorSpace as ln, LinearDisplayP3ColorSpace as un, NoColorSpace as Gt, RGFormat as WA, RedFormat as VA, RGBA_ASTC_6x6_Format as Rt, Plane as ye, PlaneHelper as Se, BoxGeometry as dn, VideoTexture as fn } from "three";
44
+ import { Mesh as Re, Vector2 as at, Raycaster as fs, REVISION as Ds, OrthographicCamera as Te, PerspectiveCamera as At, Scene as Fs, WebGLRenderer as Gs, TextureLoader as Kt, TrianglesDrawMode as Rs, TriangleFanDrawMode as et, TriangleStripDrawMode as Ot, Loader as Ct, LoaderUtils as jA, FileLoader as DA, Color as cA, LinearSRGBColorSpace as _, SpotLight as ps, PointLight as ms, DirectionalLight as Ms, MeshBasicMaterial as vA, SRGBColorSpace as AA, MeshPhysicalMaterial as eA, Matrix4 as KA, Vector3 as y, Quaternion as It, InstancedMesh as ws, InstancedBufferAttribute as ys, Object3D as gt, ImageBitmapLoader as Ss, BufferAttribute as ZA, InterleavedBuffer as Ls, InterleavedBufferAttribute as Hs, LinearFilter as Ue, LinearMipmapLinearFilter as Et, RepeatWrapping as tt, PointsMaterial as Js, Material as Ke, LineBasicMaterial as Ts, MeshStandardMaterial as _t, DoubleSide as Us, PropertyBinding as Ns, BufferGeometry as Pt, SkinnedMesh as xs, LineSegments as ks, Line as bs, LineLoop as Ks, Points as Os, Group as zA, MathUtils as _s, Skeleton as Ps, AnimationClip as Ys, Bone as qs, InterpolateLinear as Yt, ColorManagement as dt, NearestFilter as Xs, NearestMipmapNearestFilter as vs, LinearMipmapNearestFilter as Ws, NearestMipmapLinearFilter as Vs, ClampToEdgeWrapping as js, MirroredRepeatWrapping as Zs, InterpolateDiscrete as zs, FrontSide as $s, Texture as ut, VectorKeyframeTrack as ft, NumberKeyframeTrack as Dt, QuaternionKeyframeTrack as Ft, Box3 as An, Sphere as en, Interpolant as tn, CompressedCubeTexture as sn, UnsignedByteType as O, CompressedArrayTexture as nn, CompressedTexture as qt, RGBAFormat as GA, RGBA_ASTC_4x4_Format as on, RGBA_BPTC_Format as Bn, RGBA_ETC2_EAC_Format as rn, RGBA_PVRTC_4BPPV1_Format as an, RGBA_S3TC_DXT5_Format as Cn, RGB_ETC1_Format as In, RGB_ETC2_Format as gn, RGB_PVRTC_4BPPV1_Format as En, RGB_S3TC_DXT1_Format as cn, FloatType as He, HalfFloatType as Je, DataTexture as Qn, Data3DTexture as hn, DisplayP3ColorSpace as ln, LinearDisplayP3ColorSpace as dn, NoColorSpace as Gt, RGFormat as WA, RedFormat as VA, RGBA_ASTC_6x6_Format as Rt, Plane as ye, PlaneHelper as Se, BoxGeometry as un, VideoTexture as fn } from "three";
45
45
  import { loading as Oe } from "../loading/index.js";
46
46
  import { S as Dn } from "../SourceManager-D_8MZ3bR.js";
47
47
  import "../path-data-polyfill-DgeDWYeI.js";
@@ -94,20 +94,20 @@ class Fn {
94
94
  }
95
95
  }
96
96
  pA = new WeakMap(), $A = new WeakMap(), Ae = new WeakMap(), oA = new WeakMap(), ee = new WeakMap();
97
- var BA, J, mA, te, se, ne, ie;
97
+ var BA, T, mA, te, se, ne, ie;
98
98
  class Gn {
99
99
  constructor() {
100
100
  f(this, BA, []);
101
- f(this, J, []);
101
+ f(this, T, []);
102
102
  f(this, mA, new at());
103
103
  f(this, te, new fs());
104
104
  f(this, se, (A) => {
105
- for (let e = 0; e < g(this, J).length; e++)
106
- g(this, J)[e].dispatch("en3PointerDown", A);
105
+ for (let e = 0; e < g(this, T).length; e++)
106
+ g(this, T)[e].dispatch("en3PointerDown", A);
107
107
  });
108
108
  f(this, ne, (A) => {
109
- for (let e = 0; e < g(this, J).length; e++)
110
- g(this, J)[e].dispatch("en3PointerUp", A);
109
+ for (let e = 0; e < g(this, T).length; e++)
110
+ g(this, T)[e].dispatch("en3PointerUp", A);
111
111
  });
112
112
  f(this, ie, (A) => {
113
113
  g(this, mA).x = A.clientX / M.width * 2 - 1, g(this, mA).y = -(A.clientY / M.height) * 2 + 1, M.camera && g(this, te).setFromCamera(g(this, mA), M.camera);
@@ -117,20 +117,20 @@ class Gn {
117
117
  r.length && (o.intersection = r[0], e.push(o));
118
118
  }
119
119
  let s = !1;
120
- const t = g(this, J).filter(
120
+ const t = g(this, T).filter(
121
121
  (o) => !e.find((r) => r.object3D.uuid === o.object3D.uuid)
122
122
  ), i = e.sort(
123
123
  (o, r) => r.object3D.position.z - o.object3D.position.z
124
124
  ).filter((o, r) => s ? (t.push(o), !1) : (s = !o.propagation, !0)), B = i.filter(
125
- (o) => !g(this, J).find((r) => r.object3D.uuid === o.object3D.uuid)
125
+ (o) => !g(this, T).find((r) => r.object3D.uuid === o.object3D.uuid)
126
126
  );
127
127
  for (let o = 0; o < t.length; o++)
128
128
  t[o].dispatch("en3PointerLeave", A);
129
129
  for (let o = 0; o < B.length; o++)
130
130
  B[o].dispatch("en3PointerEnter", A);
131
- G(this, J, i);
132
- for (let o = 0; o < g(this, J).length; o++)
133
- g(this, J)[o].dispatch("en3PointerMove", A);
131
+ G(this, T, i);
132
+ for (let o = 0; o < g(this, T).length; o++)
133
+ g(this, T)[o].dispatch("en3PointerMove", A);
134
134
  });
135
135
  M.containerElement.addEventListener(
136
136
  "pointerdown",
@@ -163,23 +163,23 @@ class Gn {
163
163
  remove(A) {
164
164
  G(this, BA, g(this, BA).filter(
165
165
  (e) => e.object3D.uuid !== A.uuid
166
- )), G(this, J, g(this, J).filter((e) => e.object3D.uuid !== A.uuid));
166
+ )), G(this, T, g(this, T).filter((e) => e.object3D.uuid !== A.uuid));
167
167
  }
168
168
  }
169
- BA = new WeakMap(), J = new WeakMap(), mA = new WeakMap(), te = new WeakMap(), se = new WeakMap(), ne = new WeakMap(), ie = new WeakMap();
170
- var Ne, rA, T, q, MA, wA, aA, b, yA, SA, z, X, LA, oe, Be, uA, xe, vt, re, st, ae, Ce;
169
+ BA = new WeakMap(), T = new WeakMap(), mA = new WeakMap(), te = new WeakMap(), se = new WeakMap(), ne = new WeakMap(), ie = new WeakMap();
170
+ var Ne, rA, U, q, MA, wA, aA, K, yA, SA, z, X, LA, oe, Be, dA, xe, vt, re, st, ae, Ce;
171
171
  class Rn {
172
172
  constructor() {
173
173
  f(this, xe);
174
174
  f(this, re);
175
175
  f(this, Ne, `https://unpkg.com/three@0.${Ds}.x`);
176
176
  f(this, rA, null);
177
- f(this, T, null);
177
+ f(this, U, null);
178
178
  f(this, q, null);
179
179
  f(this, MA, null);
180
180
  f(this, wA, null);
181
181
  f(this, aA, []);
182
- f(this, b, new lt({
182
+ f(this, K, new lt({
183
183
  x: 0,
184
184
  y: 0,
185
185
  z: 0
@@ -195,10 +195,10 @@ class Rn {
195
195
  f(this, LA, 0);
196
196
  f(this, oe, 2);
197
197
  f(this, Be, !0);
198
- f(this, uA, !1);
198
+ f(this, dA, !1);
199
199
  f(this, ae, () => {
200
200
  var A;
201
- G(this, z, g(this, rA).clientWidth), G(this, X, g(this, rA).clientHeight), G(this, LA, Math.min(g(this, oe), devicePixelRatio || 1)), g(this, T).setPixelRatio(g(this, LA)), g(this, T).setSize(g(this, z), g(this, X)), hA(this, re, st).call(this), (A = this.onResize) == null || A.call(this);
201
+ G(this, z, g(this, rA).clientWidth), G(this, X, g(this, rA).clientHeight), G(this, LA, Math.min(g(this, oe), devicePixelRatio || 1)), g(this, U).setPixelRatio(g(this, LA)), g(this, U).setSize(g(this, z), g(this, X)), hA(this, re, st).call(this), (A = this.onResize) == null || A.call(this);
202
202
  });
203
203
  f(this, Ce, () => {
204
204
  hA(this, xe, vt).call(this), this.render(g(this, MA), g(this, q));
@@ -211,7 +211,7 @@ class Rn {
211
211
  return g(this, rA);
212
212
  }
213
213
  get webglRenderer() {
214
- return g(this, T);
214
+ return g(this, U);
215
215
  }
216
216
  get camera() {
217
217
  return g(this, q);
@@ -226,7 +226,7 @@ class Rn {
226
226
  return g(this, aA);
227
227
  }
228
228
  get cameraPosition() {
229
- return g(this, b);
229
+ return g(this, K);
230
230
  }
231
231
  get cameraRotation() {
232
232
  return g(this, yA);
@@ -241,12 +241,12 @@ class Rn {
241
241
  return g(this, LA);
242
242
  }
243
243
  get cameraDistance() {
244
- return g(this, b).getStepValue("_initial").z;
244
+ return g(this, K).getStepValue("_initial").z;
245
245
  }
246
246
  set cameraDistance(A) {
247
- g(this, b).setStep("_initial", "+", {
247
+ g(this, K).setStep("_initial", "+", {
248
248
  z: A
249
- }), g(this, b).calculate(), hA(this, re, st).call(this);
249
+ }), g(this, K).calculate(), hA(this, re, st).call(this);
250
250
  }
251
251
  attachToHTMLElement(A, e, s) {
252
252
  const t = new kt(A, we(sA({}, s), {
@@ -266,23 +266,23 @@ class Rn {
266
266
  this.scene.remove(A), e && this.detachFromHTMLElement(A);
267
267
  }
268
268
  setup(A) {
269
- if (g(this, uA)) {
269
+ if (g(this, dA)) {
270
270
  console.warn("[en3.setup]: You are trying to setup en3 again.");
271
271
  return;
272
272
  }
273
- G(this, rA, (A == null ? void 0 : A.containerElement) || document.body), G(this, q, (A == null ? void 0 : A.cameraType) === "orthographic" ? new Te() : new At()), g(this, b).bind(g(this, q).position), g(this, yA).bind(g(this, q).rotation), g(this, b).setStep("_initial", "+", {
273
+ G(this, rA, (A == null ? void 0 : A.containerElement) || document.body), G(this, q, (A == null ? void 0 : A.cameraType) === "orthographic" ? new Te() : new At()), g(this, K).bind(g(this, q).position), g(this, yA).bind(g(this, q).rotation), g(this, K).setStep("_initial", "+", {
274
274
  z: (A == null ? void 0 : A.cameraDistance) || 1e3
275
- }), g(this, b).calculate(), g(this, q).near = (A == null ? void 0 : A.cameraNear) || 1, g(this, q).far = (A == null ? void 0 : A.cameraFar) || 11e3, G(this, SA, (A == null ? void 0 : A.cameraFov) || "auto"), G(this, MA, new Fs()), G(this, oe, (A == null ? void 0 : A.maxPixelRatio) || 2), G(this, Be, (A == null ? void 0 : A.cameraAutoUpdate) !== !1), G(this, T, new Gs(A == null ? void 0 : A.webGLRendererParameters)), g(this, T).domElement.style.cssText = `
275
+ }), g(this, K).calculate(), g(this, q).near = (A == null ? void 0 : A.cameraNear) || 1, g(this, q).far = (A == null ? void 0 : A.cameraFar) || 11e3, G(this, SA, (A == null ? void 0 : A.cameraFov) || "auto"), G(this, MA, new Fs()), G(this, oe, (A == null ? void 0 : A.maxPixelRatio) || 2), G(this, Be, (A == null ? void 0 : A.cameraAutoUpdate) !== !1), G(this, U, new Gs(A == null ? void 0 : A.webGLRendererParameters)), g(this, U).domElement.style.cssText = `
276
276
  position: fixed;
277
277
  left: 0;
278
278
  top: 0;
279
279
  width: 100%;
280
280
  height: 100%;
281
281
  z-index: -1;
282
- `, g(this, rA).append(g(this, T).domElement), G(this, wA, new Gn()), G(this, uA, !0), kA.subscribe(g(this, ae), bt.EN3), bA.subscribe(g(this, Ce), { order: rt.EN3 });
282
+ `, g(this, rA).append(g(this, U).domElement), G(this, wA, new Gn()), G(this, dA, !0), kA.subscribe(g(this, ae), bt.EN3), bA.subscribe(g(this, Ce), { order: rt.EN3 });
283
283
  }
284
284
  destroy() {
285
- if (!g(this, uA)) {
285
+ if (!g(this, dA)) {
286
286
  console.warn(
287
287
  "[en3.setup]: You are trying to destory en3 but it has not been initialized."
288
288
  );
@@ -290,17 +290,17 @@ class Rn {
290
290
  }
291
291
  g(this, aA).forEach((A) => {
292
292
  A.userData.box.destroy();
293
- }), kA.unsubscribe(g(this, ae)), bA.unsubscribe(g(this, Ce)), this.scene.clear(), Xt(this.scene), g(this, T).dispose(), g(this, T).domElement.remove(), G(this, T, null), g(this, wA).destroy(), G(this, uA, !1);
293
+ }), kA.unsubscribe(g(this, ae)), bA.unsubscribe(g(this, Ce)), this.scene.clear(), Xt(this.scene), g(this, U).dispose(), g(this, U).domElement.remove(), G(this, U, null), g(this, wA).destroy(), G(this, dA, !1);
294
294
  }
295
295
  render(A, e) {
296
- g(this, T).setRenderTarget(null), g(this, T).render(A, e);
296
+ g(this, U).setRenderTarget(null), g(this, U).render(A, e);
297
297
  }
298
298
  }
299
- Ne = new WeakMap(), rA = new WeakMap(), T = new WeakMap(), q = new WeakMap(), MA = new WeakMap(), wA = new WeakMap(), aA = new WeakMap(), b = new WeakMap(), yA = new WeakMap(), SA = new WeakMap(), z = new WeakMap(), X = new WeakMap(), LA = new WeakMap(), oe = new WeakMap(), Be = new WeakMap(), uA = new WeakMap(), xe = new WeakSet(), vt = function() {
300
- g(this, Be) && (g(this, b).calculate(), g(this, yA).calculate());
299
+ Ne = new WeakMap(), rA = new WeakMap(), U = new WeakMap(), q = new WeakMap(), MA = new WeakMap(), wA = new WeakMap(), aA = new WeakMap(), K = new WeakMap(), yA = new WeakMap(), SA = new WeakMap(), z = new WeakMap(), X = new WeakMap(), LA = new WeakMap(), oe = new WeakMap(), Be = new WeakMap(), dA = new WeakMap(), xe = new WeakSet(), vt = function() {
300
+ g(this, Be) && (g(this, K).calculate(), g(this, yA).calculate());
301
301
  }, re = new WeakSet(), st = function() {
302
302
  this.camera instanceof At ? (this.camera.aspect = g(this, z) / g(this, X), this.camera.fov = g(this, SA) === "auto" ? 2 * Math.atan(
303
- g(this, X) / 2 / g(this, b).getStepValue("_initial").z
303
+ g(this, X) / 2 / g(this, K).getStepValue("_initial").z
304
304
  ) * (180 / Math.PI) : g(this, SA)) : this.camera instanceof Te && (this.camera.left = g(this, z) / -2, this.camera.right = g(this, z) / 2, this.camera.top = g(this, X) / 2, this.camera.bottom = g(this, X) / -2), this.camera.updateProjectionMatrix();
305
305
  }, ae = new WeakMap(), Ce = new WeakMap();
306
306
  const M = new Rn(), pn = new Kt();
@@ -868,7 +868,7 @@ class Yn {
868
868
  return null;
869
869
  const t = e.meshes[s.mesh];
870
870
  for (const r of t.primitives)
871
- if (r.mode !== k.TRIANGLES && r.mode !== k.TRIANGLE_STRIP && r.mode !== k.TRIANGLE_FAN && r.mode !== void 0)
871
+ if (r.mode !== b.TRIANGLES && r.mode !== b.TRIANGLE_STRIP && r.mode !== b.TRIANGLE_FAN && r.mode !== void 0)
872
872
  return null;
873
873
  const i = s.extensions[this.name].attributes, B = [], o = {};
874
874
  for (const r in i)
@@ -876,9 +876,9 @@ class Yn {
876
876
  return B.length < 1 ? null : (B.push(this.parser.createNodeMesh(A)), Promise.all(B).then((r) => {
877
877
  const I = r.pop(), a = I.isGroup ? I.children : [I], c = r[0].count, Q = [];
878
878
  for (const l of a) {
879
- const h = new KA(), E = new y(), u = new It(), d = new y(1, 1, 1), D = new ws(l.geometry, l.material, c);
879
+ const h = new KA(), E = new y(), d = new It(), u = new y(1, 1, 1), D = new ws(l.geometry, l.material, c);
880
880
  for (let F = 0; F < c; F++)
881
- o.TRANSLATION && E.fromBufferAttribute(o.TRANSLATION, F), o.ROTATION && u.fromBufferAttribute(o.ROTATION, F), o.SCALE && d.fromBufferAttribute(o.SCALE, F), D.setMatrixAt(F, h.compose(E, u, d));
881
+ o.TRANSLATION && E.fromBufferAttribute(o.TRANSLATION, F), o.ROTATION && d.fromBufferAttribute(o.ROTATION, F), o.SCALE && u.fromBufferAttribute(o.SCALE, F), D.setMatrixAt(F, h.compose(E, d, u));
882
882
  for (const F in o)
883
883
  if (F === "_COLOR_0") {
884
884
  const p = o[F];
@@ -979,10 +979,10 @@ class Vt extends tn {
979
979
  return e;
980
980
  }
981
981
  interpolate_(A, e, s, t) {
982
- const n = this.resultBuffer, i = this.sampleValues, B = this.valueSize, o = B * 2, r = B * 3, I = t - e, a = (s - e) / I, c = a * a, Q = c * a, l = A * r, h = l - r, E = -2 * Q + 3 * c, u = Q - c, d = 1 - E, D = u - c + a;
982
+ const n = this.resultBuffer, i = this.sampleValues, B = this.valueSize, o = B * 2, r = B * 3, I = t - e, a = (s - e) / I, c = a * a, Q = c * a, l = A * r, h = l - r, E = -2 * Q + 3 * c, d = Q - c, u = 1 - E, D = d - c + a;
983
983
  for (let F = 0; F !== B; F++) {
984
984
  const p = i[h + F + B], m = i[h + F + o] * I, w = i[l + F + B], P = i[l + F] * I;
985
- n[F] = d * p + D * m + E * w + u * P;
985
+ n[F] = u * p + D * m + E * w + d * P;
986
986
  }
987
987
  return n;
988
988
  }
@@ -994,7 +994,7 @@ class jn extends Vt {
994
994
  return Vn.fromArray(n).normalize().toArray(n), n;
995
995
  }
996
996
  }
997
- const k = {
997
+ const b = {
998
998
  FLOAT: 5126,
999
999
  //FLOAT_MAT2: 35674,
1000
1000
  FLOAT_MAT3: 35675,
@@ -1396,17 +1396,17 @@ class ni {
1396
1396
  const B = i[0], o = _e[t.type], r = RA[t.componentType], I = r.BYTES_PER_ELEMENT, a = I * o, c = t.byteOffset || 0, Q = t.bufferView !== void 0 ? s.bufferViews[t.bufferView].byteStride : void 0, l = t.normalized === !0;
1397
1397
  let h, E;
1398
1398
  if (Q && Q !== a) {
1399
- const u = Math.floor(c / Q), d = "InterleavedBuffer:" + t.bufferView + ":" + t.componentType + ":" + u + ":" + t.count;
1400
- let D = e.cache.get(d);
1401
- D || (h = new r(B, u * Q, t.count * Q / I), D = new Ls(h, Q / I), e.cache.add(d, D)), E = new Hs(D, o, c % Q / I, l);
1399
+ const d = Math.floor(c / Q), u = "InterleavedBuffer:" + t.bufferView + ":" + t.componentType + ":" + d + ":" + t.count;
1400
+ let D = e.cache.get(u);
1401
+ D || (h = new r(B, d * Q, t.count * Q / I), D = new Ls(h, Q / I), e.cache.add(u, D)), E = new Hs(D, o, c % Q / I, l);
1402
1402
  } else
1403
1403
  B === null ? h = new r(t.count * o) : h = new r(B, c, t.count * o), E = new ZA(h, o, l);
1404
1404
  if (t.sparse !== void 0) {
1405
- const u = _e.SCALAR, d = RA[t.sparse.indices.componentType], D = t.sparse.indices.byteOffset || 0, F = t.sparse.values.byteOffset || 0, p = new d(i[1], D, t.sparse.count * u), m = new r(i[2], F, t.sparse.count * o);
1405
+ const d = _e.SCALAR, u = RA[t.sparse.indices.componentType], D = t.sparse.indices.byteOffset || 0, F = t.sparse.values.byteOffset || 0, p = new u(i[1], D, t.sparse.count * d), m = new r(i[2], F, t.sparse.count * o);
1406
1406
  B !== null && (E = new ZA(E.array.slice(), E.itemSize, E.normalized));
1407
1407
  for (let w = 0, P = p.length; w < P; w++) {
1408
- const H = p[w];
1409
- if (E.setX(H, m[w * o]), o >= 2 && E.setY(H, m[w * o + 1]), o >= 3 && E.setZ(H, m[w * o + 2]), o >= 4 && E.setW(H, m[w * o + 3]), o >= 5)
1408
+ const J = p[w];
1409
+ if (E.setX(J, m[w * o]), o >= 2 && E.setY(J, m[w * o + 1]), o >= 3 && E.setZ(J, m[w * o + 2]), o >= 4 && E.setW(J, m[w * o + 3]), o >= 5)
1410
1410
  throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
1411
1411
  }
1412
1412
  }
@@ -1458,7 +1458,7 @@ class ni {
1458
1458
  return new Promise(function(c, Q) {
1459
1459
  let l = c;
1460
1460
  e.isImageBitmapLoader === !0 && (l = function(h) {
1461
- const E = new dt(h);
1461
+ const E = new ut(h);
1462
1462
  E.needsUpdate = !0, c(E);
1463
1463
  }), e.load(jA.resolveURL(a, n.path), l, void 0, Q);
1464
1464
  });
@@ -1609,21 +1609,21 @@ class ni {
1609
1609
  const r = o.slice(0, o.length - 1), I = o[o.length - 1], a = [];
1610
1610
  for (let Q = 0, l = I.length; Q < l; Q++) {
1611
1611
  const h = I[Q], E = i[Q];
1612
- let u;
1613
- const d = r[Q];
1614
- if (E.mode === k.TRIANGLES || E.mode === k.TRIANGLE_STRIP || E.mode === k.TRIANGLE_FAN || E.mode === void 0)
1615
- u = n.isSkinnedMesh === !0 ? new xs(h, d) : new Re(h, d), u.isSkinnedMesh === !0 && u.normalizeSkinWeights(), E.mode === k.TRIANGLE_STRIP ? u.geometry = mt(u.geometry, Ot) : E.mode === k.TRIANGLE_FAN && (u.geometry = mt(u.geometry, et));
1616
- else if (E.mode === k.LINES)
1617
- u = new ks(h, d);
1618
- else if (E.mode === k.LINE_STRIP)
1619
- u = new bs(h, d);
1620
- else if (E.mode === k.LINE_LOOP)
1621
- u = new Ks(h, d);
1622
- else if (E.mode === k.POINTS)
1623
- u = new Os(h, d);
1612
+ let d;
1613
+ const u = r[Q];
1614
+ if (E.mode === b.TRIANGLES || E.mode === b.TRIANGLE_STRIP || E.mode === b.TRIANGLE_FAN || E.mode === void 0)
1615
+ d = n.isSkinnedMesh === !0 ? new xs(h, u) : new Re(h, u), d.isSkinnedMesh === !0 && d.normalizeSkinWeights(), E.mode === b.TRIANGLE_STRIP ? d.geometry = mt(d.geometry, Ot) : E.mode === b.TRIANGLE_FAN && (d.geometry = mt(d.geometry, et));
1616
+ else if (E.mode === b.LINES)
1617
+ d = new ks(h, u);
1618
+ else if (E.mode === b.LINE_STRIP)
1619
+ d = new bs(h, u);
1620
+ else if (E.mode === b.LINE_LOOP)
1621
+ d = new Ks(h, u);
1622
+ else if (E.mode === b.POINTS)
1623
+ d = new Os(h, u);
1624
1624
  else
1625
1625
  throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + E.mode);
1626
- Object.keys(u.geometry.morphAttributes).length > 0 && Ai(u, n), u.name = e.createUniqueName(n.name || "mesh_" + A), iA(u, n), E.extensions && lA(t, u, E), e.assignFinalMaterial(u), a.push(u);
1626
+ Object.keys(d.geometry.morphAttributes).length > 0 && Ai(d, n), d.name = e.createUniqueName(n.name || "mesh_" + A), iA(d, n), E.extensions && lA(t, d, E), e.assignFinalMaterial(d), a.push(d);
1627
1627
  }
1628
1628
  for (let Q = 0, l = a.length; Q < l; Q++)
1629
1629
  e.associations.set(a[Q], {
@@ -1684,8 +1684,8 @@ class ni {
1684
1684
  loadAnimation(A) {
1685
1685
  const e = this.json, s = this, t = e.animations[A], n = t.name ? t.name : "animation_" + A, i = [], B = [], o = [], r = [], I = [];
1686
1686
  for (let a = 0, c = t.channels.length; a < c; a++) {
1687
- const Q = t.channels[a], l = t.samplers[Q.sampler], h = Q.target, E = h.node, u = t.parameters !== void 0 ? t.parameters[l.input] : l.input, d = t.parameters !== void 0 ? t.parameters[l.output] : l.output;
1688
- h.node !== void 0 && (i.push(this.getDependency("node", E)), B.push(this.getDependency("accessor", u)), o.push(this.getDependency("accessor", d)), r.push(l), I.push(h));
1687
+ const Q = t.channels[a], l = t.samplers[Q.sampler], h = Q.target, E = h.node, d = t.parameters !== void 0 ? t.parameters[l.input] : l.input, u = t.parameters !== void 0 ? t.parameters[l.output] : l.output;
1688
+ h.node !== void 0 && (i.push(this.getDependency("node", E)), B.push(this.getDependency("accessor", d)), o.push(this.getDependency("accessor", u)), r.push(l), I.push(h));
1689
1689
  }
1690
1690
  return Promise.all([
1691
1691
  Promise.all(i),
@@ -1694,18 +1694,18 @@ class ni {
1694
1694
  Promise.all(r),
1695
1695
  Promise.all(I)
1696
1696
  ]).then(function(a) {
1697
- const c = a[0], Q = a[1], l = a[2], h = a[3], E = a[4], u = [];
1698
- for (let d = 0, D = c.length; d < D; d++) {
1699
- const F = c[d], p = Q[d], m = l[d], w = h[d], P = E[d];
1697
+ const c = a[0], Q = a[1], l = a[2], h = a[3], E = a[4], d = [];
1698
+ for (let u = 0, D = c.length; u < D; u++) {
1699
+ const F = c[u], p = Q[u], m = l[u], w = h[u], P = E[u];
1700
1700
  if (F === void 0)
1701
1701
  continue;
1702
1702
  F.updateMatrix && F.updateMatrix();
1703
- const H = s._createAnimationTracks(F, p, m, w, P);
1704
- if (H)
1705
- for (let V = 0; V < H.length; V++)
1706
- u.push(H[V]);
1703
+ const J = s._createAnimationTracks(F, p, m, w, P);
1704
+ if (J)
1705
+ for (let V = 0; V < J.length; V++)
1706
+ d.push(J[V]);
1707
1707
  }
1708
- return new Ys(n, void 0, u);
1708
+ return new Ys(n, void 0, d);
1709
1709
  });
1710
1710
  }
1711
1711
  createNodeMesh(A) {
@@ -1788,7 +1788,7 @@ class ni {
1788
1788
  const r = (I) => {
1789
1789
  const a = /* @__PURE__ */ new Map();
1790
1790
  for (const [c, Q] of t.associations)
1791
- (c instanceof Ke || c instanceof dt) && a.set(c, Q);
1791
+ (c instanceof Ke || c instanceof ut) && a.set(c, Q);
1792
1792
  return I.traverse((c) => {
1793
1793
  const Q = t.associations.get(c);
1794
1794
  Q != null && a.set(c, Q);
@@ -1914,7 +1914,7 @@ function St(C, A, e) {
1914
1914
  });
1915
1915
  t.push(i);
1916
1916
  }
1917
- return ut.workingColorSpace !== _ && "COLOR_0" in s && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${ut.workingColorSpace}" not supported.`), iA(C, A), ii(C, A, e), Promise.all(t).then(function() {
1917
+ return dt.workingColorSpace !== _ && "COLOR_0" in s && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${dt.workingColorSpace}" not supported.`), iA(C, A), ii(C, A, e), Promise.all(t).then(function() {
1918
1918
  return A.targets !== void 0 ? $n(C, A.targets, e) : C;
1919
1919
  });
1920
1920
  }
@@ -2106,16 +2106,16 @@ function Bi() {
2106
2106
  throw new Error("THREE.DRACOLoader: Decoding failed: " + Q.error_msg());
2107
2107
  const h = { index: null, attributes: [] };
2108
2108
  for (const E in I) {
2109
- const u = self[a[E]];
2110
- let d, D;
2109
+ const d = self[a[E]];
2110
+ let u, D;
2111
2111
  if (r.useUniqueIDs)
2112
- D = I[E], d = B.GetAttributeByUniqueId(c, D);
2112
+ D = I[E], u = B.GetAttributeByUniqueId(c, D);
2113
2113
  else {
2114
2114
  if (D = B.GetAttributeId(c, i[I[E]]), D === -1)
2115
2115
  continue;
2116
- d = B.GetAttribute(c, D);
2116
+ u = B.GetAttribute(c, D);
2117
2117
  }
2118
- const F = t(i, B, c, E, u, d);
2118
+ const F = t(i, B, c, E, d, u);
2119
2119
  E === "color" && (F.vertexColorSpace = r.vertexColorSpace), h.attributes.push(F);
2120
2120
  }
2121
2121
  return l === i.TRIANGULAR_MESH && (h.index = s(i, B, c)), i.destroy(c), h;
@@ -2127,12 +2127,12 @@ function Bi() {
2127
2127
  return i._free(c), { array: Q, itemSize: 1 };
2128
2128
  }
2129
2129
  function t(i, B, o, r, I, a) {
2130
- const c = a.num_components(), l = o.num_points() * c, h = l * I.BYTES_PER_ELEMENT, E = n(i, I), u = i._malloc(h);
2131
- B.GetAttributeDataArrayForAllPoints(o, a, E, h, u);
2132
- const d = new I(i.HEAPF32.buffer, u, l).slice();
2133
- return i._free(u), {
2130
+ const c = a.num_components(), l = o.num_points() * c, h = l * I.BYTES_PER_ELEMENT, E = n(i, I), d = i._malloc(h);
2131
+ B.GetAttributeDataArrayForAllPoints(o, a, E, h, d);
2132
+ const u = new I(i.HEAPF32.buffer, d, l).slice();
2133
+ return i._free(d), {
2134
2134
  name: r,
2135
- array: d,
2135
+ array: u,
2136
2136
  itemSize: c
2137
2137
  };
2138
2138
  }
@@ -2236,39 +2236,39 @@ class qA {
2236
2236
  return t < A && this._offset++, new Uint8Array(this._dataView.buffer, this._dataView.byteOffset + s, t);
2237
2237
  }
2238
2238
  }
2239
- const L = [171, 75, 84, 88, 32, 50, 48, 187, 13, 10, 26, 10];
2239
+ const H = [171, 75, 84, 88, 32, 50, 48, 187, 13, 10, 26, 10];
2240
2240
  function Jt(C) {
2241
2241
  return typeof TextDecoder != "undefined" ? new TextDecoder().decode(C) : Buffer.from(C).toString("utf8");
2242
2242
  }
2243
2243
  function hi(C) {
2244
- const A = new Uint8Array(C.buffer, C.byteOffset, L.length);
2245
- if (A[0] !== L[0] || A[1] !== L[1] || A[2] !== L[2] || A[3] !== L[3] || A[4] !== L[4] || A[5] !== L[5] || A[6] !== L[6] || A[7] !== L[7] || A[8] !== L[8] || A[9] !== L[9] || A[10] !== L[10] || A[11] !== L[11])
2244
+ const A = new Uint8Array(C.buffer, C.byteOffset, H.length);
2245
+ if (A[0] !== H[0] || A[1] !== H[1] || A[2] !== H[2] || A[3] !== H[3] || A[4] !== H[4] || A[5] !== H[5] || A[6] !== H[6] || A[7] !== H[7] || A[8] !== H[8] || A[9] !== H[9] || A[10] !== H[10] || A[11] !== H[11])
2246
2246
  throw new Error("Missing KTX 2.0 identifier.");
2247
- const e = new Qi(), s = 17 * Uint32Array.BYTES_PER_ELEMENT, t = new qA(C, L.length, s, !0);
2247
+ const e = new Qi(), s = 17 * Uint32Array.BYTES_PER_ELEMENT, t = new qA(C, H.length, s, !0);
2248
2248
  e.vkFormat = t._nextUint32(), e.typeSize = t._nextUint32(), e.pixelWidth = t._nextUint32(), e.pixelHeight = t._nextUint32(), e.pixelDepth = t._nextUint32(), e.layerCount = t._nextUint32(), e.faceCount = t._nextUint32();
2249
2249
  const n = t._nextUint32();
2250
2250
  e.supercompressionScheme = t._nextUint32();
2251
- const i = t._nextUint32(), B = t._nextUint32(), o = t._nextUint32(), r = t._nextUint32(), I = t._nextUint64(), a = t._nextUint64(), c = new qA(C, L.length + s, 3 * n * 8, !0);
2252
- for (let S = 0; S < n; S++)
2251
+ const i = t._nextUint32(), B = t._nextUint32(), o = t._nextUint32(), r = t._nextUint32(), I = t._nextUint64(), a = t._nextUint64(), c = new qA(C, H.length + s, 3 * n * 8, !0);
2252
+ for (let L = 0; L < n; L++)
2253
2253
  e.levels.push({ levelData: new Uint8Array(C.buffer, C.byteOffset + c._nextUint64(), c._nextUint64()), uncompressedByteLength: c._nextUint64() });
2254
2254
  const Q = new qA(C, i, B, !0), l = { vendorId: Q._skip(4)._nextUint16(), descriptorType: Q._nextUint16(), versionNumber: Q._nextUint16(), descriptorBlockSize: Q._nextUint16(), colorModel: Q._nextUint8(), colorPrimaries: Q._nextUint8(), transferFunction: Q._nextUint8(), flags: Q._nextUint8(), texelBlockDimension: [Q._nextUint8(), Q._nextUint8(), Q._nextUint8(), Q._nextUint8()], bytesPlane: [Q._nextUint8(), Q._nextUint8(), Q._nextUint8(), Q._nextUint8(), Q._nextUint8(), Q._nextUint8(), Q._nextUint8(), Q._nextUint8()], samples: [] }, h = (l.descriptorBlockSize / 4 - 6) / 4;
2255
- for (let S = 0; S < h; S++) {
2256
- const U = { bitOffset: Q._nextUint16(), bitLength: Q._nextUint8(), channelType: Q._nextUint8(), samplePosition: [Q._nextUint8(), Q._nextUint8(), Q._nextUint8(), Q._nextUint8()], sampleLower: -1 / 0, sampleUpper: 1 / 0 };
2257
- 64 & U.channelType ? (U.sampleLower = Q._nextInt32(), U.sampleUpper = Q._nextInt32()) : (U.sampleLower = Q._nextUint32(), U.sampleUpper = Q._nextUint32()), l.samples[S] = U;
2255
+ for (let L = 0; L < h; L++) {
2256
+ const N = { bitOffset: Q._nextUint16(), bitLength: Q._nextUint8(), channelType: Q._nextUint8(), samplePosition: [Q._nextUint8(), Q._nextUint8(), Q._nextUint8(), Q._nextUint8()], sampleLower: -1 / 0, sampleUpper: 1 / 0 };
2257
+ 64 & N.channelType ? (N.sampleLower = Q._nextInt32(), N.sampleUpper = Q._nextInt32()) : (N.sampleLower = Q._nextUint32(), N.sampleUpper = Q._nextUint32()), l.samples[L] = N;
2258
2258
  }
2259
2259
  e.dataFormatDescriptor.length = 0, e.dataFormatDescriptor.push(l);
2260
2260
  const E = new qA(C, o, r, !0);
2261
2261
  for (; E._offset < r; ) {
2262
- const S = E._nextUint32(), U = E._scan(S), _A = Jt(U), j = E._scan(S - U.byteLength);
2262
+ const L = E._nextUint32(), N = E._scan(L), _A = Jt(N), j = E._scan(L - N.byteLength);
2263
2263
  e.keyValue[_A] = _A.match(/^ktx/i) ? Jt(j) : j, E._offset % 4 && E._skip(4 - E._offset % 4);
2264
2264
  }
2265
2265
  if (a <= 0)
2266
2266
  return e;
2267
- const u = new qA(C, I, a, !0), d = u._nextUint16(), D = u._nextUint16(), F = u._nextUint32(), p = u._nextUint32(), m = u._nextUint32(), w = u._nextUint32(), P = [];
2268
- for (let S = 0; S < n; S++)
2269
- P.push({ imageFlags: u._nextUint32(), rgbSliceByteOffset: u._nextUint32(), rgbSliceByteLength: u._nextUint32(), alphaSliceByteOffset: u._nextUint32(), alphaSliceByteLength: u._nextUint32() });
2270
- const H = I + u._offset, V = H + F, OA = V + p, pe = OA + m, QA = new Uint8Array(C.buffer, C.byteOffset + H, F), me = new Uint8Array(C.buffer, C.byteOffset + V, p), tA = new Uint8Array(C.buffer, C.byteOffset + OA, m), Me = new Uint8Array(C.buffer, C.byteOffset + pe, w);
2271
- return e.globalData = { endpointCount: d, selectorCount: D, imageDescs: P, endpointsData: QA, selectorsData: me, tablesData: tA, extendedData: Me }, e;
2267
+ const d = new qA(C, I, a, !0), u = d._nextUint16(), D = d._nextUint16(), F = d._nextUint32(), p = d._nextUint32(), m = d._nextUint32(), w = d._nextUint32(), P = [];
2268
+ for (let L = 0; L < n; L++)
2269
+ P.push({ imageFlags: d._nextUint32(), rgbSliceByteOffset: d._nextUint32(), rgbSliceByteLength: d._nextUint32(), alphaSliceByteOffset: d._nextUint32(), alphaSliceByteLength: d._nextUint32() });
2270
+ const J = I + d._offset, V = J + F, OA = V + p, pe = OA + m, QA = new Uint8Array(C.buffer, C.byteOffset + J, F), me = new Uint8Array(C.buffer, C.byteOffset + V, p), tA = new Uint8Array(C.buffer, C.byteOffset + OA, m), Me = new Uint8Array(C.buffer, C.byteOffset + pe, w);
2271
+ return e.globalData = { endpointCount: u, selectorCount: D, imageDescs: P, endpointsData: QA, selectorsData: me, tablesData: tA, extendedData: Me }, e;
2272
2272
  }
2273
2273
  let Xe, Z, ot;
2274
2274
  const ve = { env: { emscripten_notify_memory_growth: function(C) {
@@ -2394,7 +2394,7 @@ class W extends Ct {
2394
2394
  return PA(this, arguments, function* (A, e = {}) {
2395
2395
  const t = hi(new Uint8Array(A));
2396
2396
  if (t.vkFormat !== ci)
2397
- return di(t);
2397
+ return ui(t);
2398
2398
  const n = e, i = this.init().then(() => this.workerPool.postMessage({ type: "transcode", buffer: A, taskConfig: n }, [A])).then((B) => this._createTextureFrom(B.data, t));
2399
2399
  return We.set(A, { promise: i }), i;
2400
2400
  });
@@ -2450,8 +2450,8 @@ W.BasisWorker = function() {
2450
2450
  case "transcode":
2451
2451
  A.then(() => {
2452
2452
  try {
2453
- const { faces: E, buffers: u, width: d, height: D, hasAlpha: F, format: p, dfdFlags: m } = B(h.buffer);
2454
- self.postMessage({ type: "transcode", id: h.id, faces: E, width: d, height: D, hasAlpha: F, format: p, dfdFlags: m }, u);
2453
+ const { faces: E, buffers: d, width: u, height: D, hasAlpha: F, format: p, dfdFlags: m } = B(h.buffer);
2454
+ self.postMessage({ type: "transcode", id: h.id, faces: E, width: u, height: D, hasAlpha: F, format: p, dfdFlags: m }, d);
2455
2455
  } catch (E) {
2456
2456
  console.error(E), self.postMessage({ type: "error", id: h.id, error: E.message });
2457
2457
  }
@@ -2473,8 +2473,8 @@ W.BasisWorker = function() {
2473
2473
  }
2474
2474
  if (!h.isValid())
2475
2475
  throw E(), new Error("THREE.KTX2Loader: Invalid or unsupported .ktx2 file");
2476
- const u = h.isUASTC() ? n.UASTC_4x4 : n.ETC1S, d = h.getWidth(), D = h.getHeight(), F = h.getLayers() || 1, p = h.getLevels(), m = h.getFaces(), w = h.getHasAlpha(), P = h.getDFDFlags(), { transcoderFormat: H, engineFormat: V } = a(u, d, D, w);
2477
- if (!d || !D || !p)
2476
+ const d = h.isUASTC() ? n.UASTC_4x4 : n.ETC1S, u = h.getWidth(), D = h.getHeight(), F = h.getLayers() || 1, p = h.getLevels(), m = h.getFaces(), w = h.getHasAlpha(), P = h.getDFDFlags(), { transcoderFormat: J, engineFormat: V } = a(d, u, D, w);
2477
+ if (!u || !D || !p)
2478
2478
  throw E(), new Error("THREE.KTX2Loader: Invalid texture");
2479
2479
  if (!h.startTranscoding())
2480
2480
  throw E(), new Error("THREE.KTX2Loader: .startTranscoding failed");
@@ -2483,21 +2483,21 @@ W.BasisWorker = function() {
2483
2483
  const me = [];
2484
2484
  for (let tA = 0; tA < p; tA++) {
2485
2485
  const Me = [];
2486
- let S, U;
2486
+ let L, N;
2487
2487
  for (let j = 0; j < F; j++) {
2488
2488
  const FA = h.getImageLevelInfo(tA, j, QA);
2489
- QA === 0 && tA === 0 && j === 0 && (FA.origWidth % 4 !== 0 || FA.origHeight % 4 !== 0) && console.warn("THREE.KTX2Loader: ETC1S and UASTC textures should use multiple-of-four dimensions."), p > 1 ? (S = FA.origWidth, U = FA.origHeight) : (S = FA.width, U = FA.height);
2490
- const ct = new Uint8Array(h.getImageTranscodedSizeInBytes(tA, j, 0, H));
2491
- if (!h.transcodeImage(ct, tA, j, QA, H, 0, -1, -1))
2489
+ QA === 0 && tA === 0 && j === 0 && (FA.origWidth % 4 !== 0 || FA.origHeight % 4 !== 0) && console.warn("THREE.KTX2Loader: ETC1S and UASTC textures should use multiple-of-four dimensions."), p > 1 ? (L = FA.origWidth, N = FA.origHeight) : (L = FA.width, N = FA.height);
2490
+ const ct = new Uint8Array(h.getImageTranscodedSizeInBytes(tA, j, 0, J));
2491
+ if (!h.transcodeImage(ct, tA, j, QA, J, 0, -1, -1))
2492
2492
  throw E(), new Error("THREE.KTX2Loader: .transcodeImage failed.");
2493
2493
  Me.push(ct);
2494
2494
  }
2495
2495
  const _A = Q(Me);
2496
- me.push({ data: _A, width: S, height: U }), pe.push(_A.buffer);
2496
+ me.push({ data: _A, width: L, height: N }), pe.push(_A.buffer);
2497
2497
  }
2498
- OA.push({ mipmaps: me, width: d, height: D, format: V });
2498
+ OA.push({ mipmaps: me, width: u, height: D, format: V });
2499
2499
  }
2500
- return E(), { faces: OA, buffers: pe, width: d, height: D, hasAlpha: w, format: V, dfdFlags: P };
2500
+ return E(), { faces: OA, buffers: pe, width: u, height: D, hasAlpha: w, format: V, dfdFlags: P };
2501
2501
  }
2502
2502
  const o = [
2503
2503
  {
@@ -2559,15 +2559,15 @@ W.BasisWorker = function() {
2559
2559
  }), I = o.sort(function(l, h) {
2560
2560
  return l.priorityUASTC - h.priorityUASTC;
2561
2561
  });
2562
- function a(l, h, E, u) {
2563
- let d, D;
2562
+ function a(l, h, E, d) {
2563
+ let u, D;
2564
2564
  const F = l === n.ETC1S ? r : I;
2565
2565
  for (let p = 0; p < F.length; p++) {
2566
2566
  const m = F[p];
2567
- if (C[m.if] && m.basisFormat.includes(l) && !(u && m.transcoderFormat.length < 2) && !(m.needsPowerOfTwo && !(c(h) && c(E))))
2568
- return d = m.transcoderFormat[u ? 1 : 0], D = m.engineFormat[u ? 1 : 0], { transcoderFormat: d, engineFormat: D };
2567
+ if (C[m.if] && m.basisFormat.includes(l) && !(d && m.transcoderFormat.length < 2) && !(m.needsPowerOfTwo && !(c(h) && c(E))))
2568
+ return u = m.transcoderFormat[d ? 1 : 0], D = m.engineFormat[d ? 1 : 0], { transcoderFormat: u, engineFormat: D };
2569
2569
  }
2570
- return console.warn("THREE.KTX2Loader: No suitable compressed texture format found. Decoding to RGBA32."), d = t.RGBA32, D = s.RGBAFormat, { transcoderFormat: d, engineFormat: D };
2570
+ return console.warn("THREE.KTX2Loader: No suitable compressed texture format found. Decoding to RGBA32."), u = t.RGBA32, D = s.RGBAFormat, { transcoderFormat: u, engineFormat: D };
2571
2571
  }
2572
2572
  function c(l) {
2573
2573
  return l <= 2 ? !0 : (l & l - 1) === 0 && l !== 0;
@@ -2576,20 +2576,20 @@ W.BasisWorker = function() {
2576
2576
  if (l.length === 1)
2577
2577
  return l[0];
2578
2578
  let h = 0;
2579
- for (let d = 0; d < l.length; d++) {
2580
- const D = l[d];
2579
+ for (let u = 0; u < l.length; u++) {
2580
+ const D = l[u];
2581
2581
  h += D.byteLength;
2582
2582
  }
2583
2583
  const E = new Uint8Array(h);
2584
- let u = 0;
2585
- for (let d = 0; d < l.length; d++) {
2586
- const D = l[d];
2587
- E.set(D, u), u += D.byteLength;
2584
+ let d = 0;
2585
+ for (let u = 0; u < l.length; u++) {
2586
+ const D = l[u];
2587
+ E.set(D, d), d += D.byteLength;
2588
2588
  }
2589
2589
  return E;
2590
2590
  }
2591
2591
  };
2592
- const ui = /* @__PURE__ */ new Set([GA, WA, VA]), Ze = {
2592
+ const di = /* @__PURE__ */ new Set([GA, WA, VA]), Ze = {
2593
2593
  [Bs]: GA,
2594
2594
  [ns]: GA,
2595
2595
  [As]: GA,
@@ -2620,7 +2620,7 @@ const ui = /* @__PURE__ */ new Set([GA, WA, VA]), Ze = {
2620
2620
  [as]: O,
2621
2621
  [rs]: O
2622
2622
  };
2623
- function di(C) {
2623
+ function ui(C) {
2624
2624
  return PA(this, null, function* () {
2625
2625
  const { vkFormat: A } = C;
2626
2626
  if (Ze[A] === void 0)
@@ -2657,7 +2657,7 @@ function di(C) {
2657
2657
  });
2658
2658
  }
2659
2659
  let t;
2660
- if (ui.has(Ze[A]))
2660
+ if (di.has(Ze[A]))
2661
2661
  t = C.pixelDepth === 0 ? new Qn(s[0].data, C.pixelWidth, C.pixelHeight) : new hn(s[0].data, C.pixelWidth, C.pixelHeight, C.pixelDepth);
2662
2662
  else {
2663
2663
  if (C.pixelDepth > 0)
@@ -2669,7 +2669,7 @@ function di(C) {
2669
2669
  }
2670
2670
  function Cs(C) {
2671
2671
  const A = C.dataFormatDescriptor[0];
2672
- return A.colorPrimaries === gi ? A.transferFunction === Ht ? AA : _ : A.colorPrimaries === Ei ? A.transferFunction === Ht ? ln : un : A.colorPrimaries === Ii ? Gt : (console.warn(`THREE.KTX2Loader: Unsupported color primaries, "${A.colorPrimaries}"`), Gt);
2672
+ return A.colorPrimaries === gi ? A.transferFunction === Ht ? AA : _ : A.colorPrimaries === Ei ? A.transferFunction === Ht ? ln : dn : A.colorPrimaries === Ii ? Gt : (console.warn(`THREE.KTX2Loader: Unsupported color primaries, "${A.colorPrimaries}"`), Gt);
2673
2673
  }
2674
2674
  let Le;
2675
2675
  const fi = () => {
@@ -2811,10 +2811,10 @@ const fi = () => {
2811
2811
  return c.buffer.slice(0, Q);
2812
2812
  }
2813
2813
  function o(a, c, Q, l, h, E) {
2814
- const u = n.exports.sbrk, d = Q + 3 & -4, D = u(d * l), F = u(h.length), p = new Uint8Array(n.exports.memory.buffer);
2814
+ const d = n.exports.sbrk, u = Q + 3 & -4, D = d(u * l), F = d(h.length), p = new Uint8Array(n.exports.memory.buffer);
2815
2815
  p.set(h, F);
2816
2816
  const m = a(D, Q, l, F, h.length);
2817
- if (m === 0 && E && E(D, d, l), c.set(p.subarray(D, D + Q * l)), u(D - u(0)), m !== 0)
2817
+ if (m === 0 && E && E(D, u, l), c.set(p.subarray(D, D + Q * l)), d(D - d(0)), m !== 0)
2818
2818
  throw new Error(`Malformed buffer data: ${m}`);
2819
2819
  }
2820
2820
  const r = {
@@ -2897,16 +2897,16 @@ class Di {
2897
2897
  }
2898
2898
  HA = new WeakMap(), Ie = new WeakMap(), ge = new WeakMap(), Ee = new WeakMap();
2899
2899
  const Fi = new Di();
2900
- var K, $, ce;
2900
+ var S, $, ce;
2901
2901
  class _i {
2902
2902
  constructor(A, e = 1) {
2903
- f(this, K, null);
2903
+ f(this, S, null);
2904
2904
  f(this, $, []);
2905
2905
  f(this, ce, () => {
2906
- const A = g(this, K).position.x, e = g(this, K).position.y;
2907
- g(this, $)[0].constant = g(this, K).scale.y / 2 + e * -1, g(this, $)[1].constant = g(this, K).scale.y / 2 + e, g(this, $)[2].constant = g(this, K).scale.x / 2 + A, g(this, $)[3].constant = g(this, K).scale.x / 2 + A * -1;
2906
+ const A = g(this, S).position.x - g(this, S).left, e = g(this, S).position.y - g(this, S).top, s = M.width - g(this, S).scale.x, t = g(this, S).left - s, n = M.height - g(this, S).scale.y, i = g(this, S).top - n;
2907
+ g(this, $)[0].constant = g(this, S).scale.y / 2 + e * -1 - n / 2 - i, g(this, $)[1].constant = g(this, S).scale.y / 2 + e + n / 2 + i, g(this, $)[2].constant = g(this, S).scale.x / 2 + A + s / 2 + t, g(this, $)[3].constant = g(this, S).scale.x / 2 + A * -1 - s / 2 - t;
2908
2908
  });
2909
- G(this, K, new kt(A, { cartesian: !1 })), G(this, $, [
2909
+ G(this, S, new kt(A, { cartesian: !1 })), G(this, $, [
2910
2910
  new ye(new y(0, -1 * e, 0)),
2911
2911
  new ye(new y(0, 1 * e, 0)),
2912
2912
  new ye(new y(-1 * e, 0, 0)),
@@ -2917,24 +2917,24 @@ class _i {
2917
2917
  return g(this, $);
2918
2918
  }
2919
2919
  get layoutBox() {
2920
- return g(this, K);
2920
+ return g(this, S);
2921
2921
  }
2922
2922
  destroy() {
2923
- bA.unsubscribe(g(this, ce)), g(this, K).destroy();
2923
+ bA.unsubscribe(g(this, ce)), g(this, S).destroy();
2924
2924
  }
2925
2925
  }
2926
- K = new WeakMap(), $ = new WeakMap(), ce = new WeakMap();
2926
+ S = new WeakMap(), $ = new WeakMap(), ce = new WeakMap();
2927
2927
  class Pi extends zA {
2928
2928
  constructor(A, e = 500) {
2929
2929
  super(), this.add(new Se(A.planes[0], e, 16711680)), this.add(new Se(A.planes[1], e, 16711680)), this.add(new Se(A.planes[2], e, 16711680)), this.add(new Se(A.planes[3], e, 16711680));
2930
2930
  }
2931
2931
  }
2932
- var JA, dA, TA, Qe, he, CA, UA, le;
2932
+ var JA, uA, TA, Qe, he, CA, UA, le;
2933
2933
  class Is extends Dn {
2934
2934
  constructor(e) {
2935
2935
  super(e);
2936
2936
  f(this, JA, new pt(null));
2937
- f(this, dA, new pt(void 0));
2937
+ f(this, uA, new pt(void 0));
2938
2938
  f(this, TA, void 0);
2939
2939
  f(this, Qe, void 0);
2940
2940
  f(this, he, void 0);
@@ -2943,14 +2943,14 @@ class Is extends Dn {
2943
2943
  f(this, le, () => {
2944
2944
  if (!(g(this, CA) && !g(this, UA)) && (this.current !== this.previous && (g(this, JA).current = null), this.current)) {
2945
2945
  const e = g(this, he) ? this.current.url : this.current.name + this.current.extension;
2946
- g(this, CA) || Oe.setTotal(e, 1), g(this, dA).current = "start", g(this, Qe).load(
2946
+ g(this, CA) || Oe.setTotal(e, 1), g(this, uA).current = "start", g(this, Qe).load(
2947
2947
  e,
2948
2948
  (s) => {
2949
- g(this, JA).current = s, g(this, dA).current = "complete", g(this, CA) || Oe.setLoaded(e, 1);
2949
+ g(this, JA).current = s, g(this, uA).current = "complete", g(this, CA) || Oe.setLoaded(e, 1);
2950
2950
  },
2951
2951
  void 0,
2952
2952
  () => {
2953
- g(this, CA) || (g(this, dA).current = "error", Oe.setError(e, e));
2953
+ g(this, CA) || (g(this, uA).current = "error", Oe.setError(e, e));
2954
2954
  }
2955
2955
  );
2956
2956
  }
@@ -2971,7 +2971,7 @@ class Is extends Dn {
2971
2971
  * Loading store.
2972
2972
  */
2973
2973
  get loading() {
2974
- return g(this, dA);
2974
+ return g(this, uA);
2975
2975
  }
2976
2976
  /**
2977
2977
  * Calling this method will start loading the resource.
@@ -2980,7 +2980,7 @@ class Is extends Dn {
2980
2980
  g(this, UA) || (G(this, UA, !0), g(this, le).call(this));
2981
2981
  }
2982
2982
  }
2983
- JA = new WeakMap(), dA = new WeakMap(), TA = new WeakMap(), Qe = new WeakMap(), he = new WeakMap(), CA = new WeakMap(), UA = new WeakMap(), le = new WeakMap();
2983
+ JA = new WeakMap(), uA = new WeakMap(), TA = new WeakMap(), Qe = new WeakMap(), he = new WeakMap(), CA = new WeakMap(), UA = new WeakMap(), le = new WeakMap();
2984
2984
  var NA;
2985
2985
  class Yi extends zA {
2986
2986
  constructor(e) {
@@ -3006,38 +3006,38 @@ function gs(C, A, e) {
3006
3006
  s / t > n ? (i = 1, B = t / s * n) : (B = 1, i = s / t / n), C.matrix.setUvTransform(o, r, i, B, I, a, c);
3007
3007
  }
3008
3008
  const XA = new y();
3009
- function x(C, A, e, s, t, n) {
3009
+ function k(C, A, e, s, t, n) {
3010
3010
  const i = 2 * Math.PI * t / 4, B = Math.max(n - 2 * t, 0), o = Math.PI / 4;
3011
3011
  XA.copy(A), XA[s] = 0, XA.normalize();
3012
3012
  const r = 0.5 * i / (i + B), I = 1 - XA.angleTo(C) / o;
3013
3013
  return Math.sign(XA[e]) === 1 ? I * r : B / (i + B) + r + r * (1 - I);
3014
3014
  }
3015
- class Gi extends dn {
3015
+ class Gi extends un {
3016
3016
  constructor(A = 1, e = 1, s = 1, t = 2, n = 0.1) {
3017
3017
  if (t = t * 2 + 1, n = Math.min(A / 2, e / 2, s / 2, n), super(1, 1, 1, t, t, t), t === 1)
3018
3018
  return;
3019
3019
  const i = this.toNonIndexed();
3020
3020
  this.index = null, this.attributes.position = i.attributes.position, this.attributes.normal = i.attributes.normal, this.attributes.uv = i.attributes.uv;
3021
3021
  const B = new y(), o = new y(), r = new y(A, e, s).divideScalar(2).subScalar(n), I = this.attributes.position.array, a = this.attributes.normal.array, c = this.attributes.uv.array, Q = I.length / 6, l = new y(), h = 0.5 / t;
3022
- for (let E = 0, u = 0; E < I.length; E += 3, u += 2)
3022
+ for (let E = 0, d = 0; E < I.length; E += 3, d += 2)
3023
3023
  switch (B.fromArray(I, E), o.copy(B), o.x -= Math.sign(o.x) * h, o.y -= Math.sign(o.y) * h, o.z -= Math.sign(o.z) * h, o.normalize(), I[E + 0] = r.x * Math.sign(B.x) + o.x * n, I[E + 1] = r.y * Math.sign(B.y) + o.y * n, I[E + 2] = r.z * Math.sign(B.z) + o.z * n, a[E + 0] = o.x, a[E + 1] = o.y, a[E + 2] = o.z, Math.floor(E / Q)) {
3024
3024
  case 0:
3025
- l.set(1, 0, 0), c[u + 0] = x(l, o, "z", "y", n, s), c[u + 1] = 1 - x(l, o, "y", "z", n, e);
3025
+ l.set(1, 0, 0), c[d + 0] = k(l, o, "z", "y", n, s), c[d + 1] = 1 - k(l, o, "y", "z", n, e);
3026
3026
  break;
3027
3027
  case 1:
3028
- l.set(-1, 0, 0), c[u + 0] = 1 - x(l, o, "z", "y", n, s), c[u + 1] = 1 - x(l, o, "y", "z", n, e);
3028
+ l.set(-1, 0, 0), c[d + 0] = 1 - k(l, o, "z", "y", n, s), c[d + 1] = 1 - k(l, o, "y", "z", n, e);
3029
3029
  break;
3030
3030
  case 2:
3031
- l.set(0, 1, 0), c[u + 0] = 1 - x(l, o, "x", "z", n, A), c[u + 1] = x(l, o, "z", "x", n, s);
3031
+ l.set(0, 1, 0), c[d + 0] = 1 - k(l, o, "x", "z", n, A), c[d + 1] = k(l, o, "z", "x", n, s);
3032
3032
  break;
3033
3033
  case 3:
3034
- l.set(0, -1, 0), c[u + 0] = 1 - x(l, o, "x", "z", n, A), c[u + 1] = 1 - x(l, o, "z", "x", n, s);
3034
+ l.set(0, -1, 0), c[d + 0] = 1 - k(l, o, "x", "z", n, A), c[d + 1] = 1 - k(l, o, "z", "x", n, s);
3035
3035
  break;
3036
3036
  case 4:
3037
- l.set(0, 0, 1), c[u + 0] = 1 - x(l, o, "x", "y", n, A), c[u + 1] = 1 - x(l, o, "y", "x", n, e);
3037
+ l.set(0, 0, 1), c[d + 0] = 1 - k(l, o, "x", "y", n, A), c[d + 1] = 1 - k(l, o, "y", "x", n, e);
3038
3038
  break;
3039
3039
  case 5:
3040
- l.set(0, 0, -1), c[u + 0] = x(l, o, "x", "y", n, A), c[u + 1] = 1 - x(l, o, "y", "x", n, e);
3040
+ l.set(0, 0, -1), c[d + 0] = k(l, o, "x", "y", n, A), c[d + 1] = 1 - k(l, o, "y", "x", n, e);
3041
3041
  break;
3042
3042
  }
3043
3043
  }
@@ -3074,11 +3074,11 @@ class Mi {
3074
3074
  height: t
3075
3075
  };
3076
3076
  }, this.render = function(h, E) {
3077
- const u = E.projectionMatrix.elements[5] * i;
3077
+ const d = E.projectionMatrix.elements[5] * i;
3078
3078
  E.view && E.view.enabled ? (r.style.transform = `translate( ${-E.view.offsetX * (s / E.view.width)}px, ${-E.view.offsetY * (t / E.view.height)}px )`, r.style.transform += `scale( ${E.view.fullWidth / E.view.width}, ${E.view.fullHeight / E.view.height} )`) : r.style.transform = "", h.matrixWorldAutoUpdate === !0 && h.updateMatrixWorld(), E.parent === null && E.matrixWorldAutoUpdate === !0 && E.updateMatrixWorld();
3079
- let d, D;
3080
- E.isOrthographicCamera && (d = -(E.right + E.left) / 2, D = (E.top + E.bottom) / 2);
3081
- const F = E.view && E.view.enabled ? E.view.height / E.view.fullHeight : 1, p = E.isOrthographicCamera ? `scale( ${F} )scale(` + u + ")translate(" + a(d) + "px," + a(D) + "px)" + c(E.matrixWorldInverse) : `scale( ${F} )translateZ(` + u + "px)" + c(E.matrixWorldInverse), w = (E.isPerspectiveCamera ? "perspective(" + u + "px) " : "") + p + "translate(" + n + "px," + i + "px)";
3079
+ let u, D;
3080
+ E.isOrthographicCamera && (u = -(E.right + E.left) / 2, D = (E.top + E.bottom) / 2);
3081
+ const F = E.view && E.view.enabled ? E.view.height / E.view.fullHeight : 1, p = E.isOrthographicCamera ? `scale( ${F} )scale(` + d + ")translate(" + a(u) + "px," + a(D) + "px)" + c(E.matrixWorldInverse) : `scale( ${F} )translateZ(` + d + "px)" + c(E.matrixWorldInverse), w = (E.isPerspectiveCamera ? "perspective(" + d + "px) " : "") + p + "translate(" + n + "px," + i + "px)";
3082
3082
  B.camera.style !== w && (I.style.transform = w, B.camera.style = w), l(h, h, E);
3083
3083
  }, this.setSize = function(h, E) {
3084
3084
  s = h, t = E, n = s / 2, i = t / 2, o.style.width = h + "px", o.style.height = E + "px", r.style.width = h + "px", r.style.height = E + "px", I.style.width = h + "px", I.style.height = E + "px";
@@ -3094,24 +3094,24 @@ class Mi {
3094
3094
  const E = h.elements;
3095
3095
  return "translate(-50%,-50%)" + ("matrix3d(" + a(E[0]) + "," + a(E[1]) + "," + a(E[2]) + "," + a(E[3]) + "," + a(-E[4]) + "," + a(-E[5]) + "," + a(-E[6]) + "," + a(-E[7]) + "," + a(E[8]) + "," + a(E[9]) + "," + a(E[10]) + "," + a(E[11]) + "," + a(E[12]) + "," + a(E[13]) + "," + a(E[14]) + "," + a(E[15]) + ")");
3096
3096
  }
3097
- function l(h, E, u, d) {
3097
+ function l(h, E, d, u) {
3098
3098
  if (h.isCSS3DObject) {
3099
- const D = h.visible === !0 && h.layers.test(u.layers) === !0;
3099
+ const D = h.visible === !0 && h.layers.test(d.layers) === !0;
3100
3100
  if (h.element.style.display = D === !0 ? "" : "none", D === !0) {
3101
- h.onBeforeRender(e, E, u);
3101
+ h.onBeforeRender(e, E, d);
3102
3102
  let F;
3103
- h.isCSS3DSprite ? (Y.copy(u.matrixWorldInverse), Y.transpose(), h.rotation2D !== 0 && Y.multiply(mi.makeRotationZ(h.rotation2D)), h.matrixWorld.decompose(Ut, Ri, Nt), Y.setPosition(Ut), Y.scale(Nt), Y.elements[3] = 0, Y.elements[7] = 0, Y.elements[11] = 0, Y.elements[15] = 1, F = Q(Y)) : F = Q(h.matrixWorld);
3103
+ h.isCSS3DSprite ? (Y.copy(d.matrixWorldInverse), Y.transpose(), h.rotation2D !== 0 && Y.multiply(mi.makeRotationZ(h.rotation2D)), h.matrixWorld.decompose(Ut, Ri, Nt), Y.setPosition(Ut), Y.scale(Nt), Y.elements[3] = 0, Y.elements[7] = 0, Y.elements[11] = 0, Y.elements[15] = 1, F = Q(Y)) : F = Q(h.matrixWorld);
3104
3104
  const p = h.element, m = B.objects.get(h);
3105
3105
  if (m === void 0 || m.style !== F) {
3106
3106
  p.style.transform = F;
3107
3107
  const w = { style: F };
3108
3108
  B.objects.set(h, w);
3109
3109
  }
3110
- p.parentNode !== I && I.appendChild(p), h.onAfterRender(e, E, u);
3110
+ p.parentNode !== I && I.appendChild(p), h.onAfterRender(e, E, d);
3111
3111
  }
3112
3112
  }
3113
3113
  for (let D = 0, F = h.children.length; D < F; D++)
3114
- l(h.children[D], E, u);
3114
+ l(h.children[D], E, d);
3115
3115
  }
3116
3116
  }
3117
3117
  }
@@ -3174,19 +3174,19 @@ class wi {
3174
3174
  };
3175
3175
  }
3176
3176
  }
3177
- var ue, de, fe;
3177
+ var de, ue, fe;
3178
3178
  class Xi extends Es {
3179
3179
  constructor(e) {
3180
3180
  super(we(sA({}, e), {
3181
3181
  loader: new wi()
3182
3182
  }));
3183
- f(this, ue, void 0);
3184
3183
  f(this, de, void 0);
3184
+ f(this, ue, void 0);
3185
3185
  f(this, fe, void 0);
3186
- G(this, ue, e.autoplay || !1), G(this, de, e.muted || !1), G(this, fe, e.loop || !1), this.sourceManager.data.subscribe((s) => {
3186
+ G(this, de, e.autoplay || !1), G(this, ue, e.muted || !1), G(this, fe, e.loop || !1), this.sourceManager.data.subscribe((s) => {
3187
3187
  if (s.current) {
3188
3188
  const t = s.current.image;
3189
- g(this, de) && (t.muted = !0), g(this, fe) && (t.loop = !0), g(this, ue) && t.play();
3189
+ g(this, ue) && (t.muted = !0), g(this, fe) && (t.loop = !0), g(this, de) && t.play();
3190
3190
  }
3191
3191
  });
3192
3192
  }
@@ -3202,7 +3202,7 @@ class Xi extends Es {
3202
3202
  );
3203
3203
  }
3204
3204
  }
3205
- ue = new WeakMap(), de = new WeakMap(), fe = new WeakMap();
3205
+ de = new WeakMap(), ue = new WeakMap(), fe = new WeakMap();
3206
3206
  function vi(C, A) {
3207
3207
  C.traverse((e) => {
3208
3208
  e instanceof Re && A(e);
@@ -3232,17 +3232,17 @@ function Vi(C) {
3232
3232
  }
3233
3233
  }
3234
3234
  var v, ke, cs, De, Fe;
3235
- const N = class N extends pi {
3235
+ const x = class x extends pi {
3236
3236
  static destroy() {
3237
3237
  kA.unsubscribe(g(this, Fe)), bA.unsubscribe(g(this, De)), G(this, v, null);
3238
3238
  }
3239
3239
  constructor(A) {
3240
3240
  var e;
3241
- super(A.element), g(N, v) || hA(e = N, ke, cs).call(e);
3241
+ super(A.element), g(x, v) || hA(e = x, ke, cs).call(e);
3242
3242
  }
3243
3243
  };
3244
3244
  v = new WeakMap(), ke = new WeakSet(), cs = function() {
3245
- G(N, v, new Mi()), g(N, v).domElement.style.cssText = `
3245
+ G(x, v, new Mi()), g(x, v).domElement.style.cssText = `
3246
3246
  position: fixed;
3247
3247
  left: 0;
3248
3248
  top: 0;
@@ -3251,13 +3251,13 @@ v = new WeakMap(), ke = new WeakSet(), cs = function() {
3251
3251
  z-index: 1;
3252
3252
  pointer-events: none;
3253
3253
  overflow: hidden;
3254
- `, M.containerElement.prepend(g(N, v).domElement), kA.subscribe(g(this, Fe), bt.EN3 + 1), bA.subscribe(g(this, De), { order: rt.EN3 + 1 });
3255
- }, De = new WeakMap(), Fe = new WeakMap(), f(N, ke), f(N, v, null), f(N, De, () => {
3256
- g(N, v).render(M.scene, M.camera);
3257
- }), f(N, Fe, () => {
3258
- g(N, v).setSize(M.width, M.height);
3254
+ `, M.containerElement.prepend(g(x, v).domElement), kA.subscribe(g(this, Fe), bt.EN3 + 1), bA.subscribe(g(this, De), { order: rt.EN3 + 1 });
3255
+ }, De = new WeakMap(), Fe = new WeakMap(), f(x, ke), f(x, v, null), f(x, De, () => {
3256
+ g(x, v).render(M.scene, M.camera);
3257
+ }), f(x, Fe, () => {
3258
+ g(x, v).setSize(M.width, M.height);
3259
3259
  });
3260
- let xt = N;
3260
+ let xt = x;
3261
3261
  var gA, EA, Ge, Bt;
3262
3262
  class ji {
3263
3263
  constructor(A) {