ss-component-new 1.3.621 → 1.3.623

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.
Files changed (38) hide show
  1. package/dist/{MTLLoader-Cg9LEvNr.js → MTLLoader-DMhnklB_.js} +1 -1
  2. package/dist/{URDFLoader-mPVZjSIW.js → URDFLoader-BAD5outO.js} +2 -2
  3. package/dist/{animationData-CDdaleGB.js → animationData-BivNXwi8.js} +2 -2
  4. package/dist/{array-HJsOOS05.js → array-DVFpR3i6.js} +102 -102
  5. package/dist/{iconfont-BBJ_Xa7g.js → iconfont-CtG24-bX.js} +1 -1
  6. package/dist/{index-vITXyWii.js → index-1I7eukQf.js} +3138 -3131
  7. package/dist/{index-B86vVYuK.js → index-BJmov708.js} +1 -1
  8. package/dist/{index-DibHtT3s.js → index-BRSmS6mX.js} +482 -484
  9. package/dist/{index-D1vR2n9D.js → index-BU9xRmBn.js} +1 -1
  10. package/dist/{index-CYjsE5Gs.js → index-BfM_hH1v.js} +1 -1
  11. package/dist/{index-DagRVVUS.js → index-BjEiOqAI.js} +1 -1
  12. package/dist/{index-DMkEL6P5.js → index-C7U5HDoF.js} +3 -3
  13. package/dist/{index-BvtOLltL.js → index-CFniuDkF.js} +1 -1
  14. package/dist/{index-DjyxFjoY.js → index-COpc0s4t.js} +22 -22
  15. package/dist/{index-CpF3wYnE.js → index-CjRltPMx.js} +26844 -26620
  16. package/dist/{index-BVcc8kay.js → index-D2Nbhdyp.js} +5 -5
  17. package/dist/{index-QpbdZ-N-.js → index-DErPB-d8.js} +1 -1
  18. package/dist/{index-BvyM6d06.js → index-D_PRj4Vs.js} +2164 -2160
  19. package/dist/{index-DneXSBUw.js → index-Dr6UVDuO.js} +4 -4
  20. package/dist/{index-BGVDfril.js → index-DwXNsgEY.js} +3 -3
  21. package/dist/{index-DcPtyCDm.js → index-dmrMsEJn.js} +2 -2
  22. package/dist/{index-xWwc0MvD.js → index-eHRjbFnR.js} +5 -5
  23. package/dist/{index-CRUkYvae.js → index-nKrk42el.js} +1 -1
  24. package/dist/{index-DMUuZJrY.js → index-yipj2id1.js} +1 -1
  25. package/dist/{index.vue_vue_type_style_index_0_scoped_39e1db95_lang-VCheSKQF.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DrICHBhu.js} +1 -1
  26. package/dist/{main-BuQcSVmx.js → main-DK4IZx7n.js} +3 -3
  27. package/dist/ss-component.css +2 -2
  28. package/dist/ss-component.js +13 -13
  29. package/dist/ss-component2.js +9 -9
  30. package/dist/{threeModel-Br3xFMq_.js → threeModel-DyfwUZBe.js} +3 -3
  31. package/dist/{threePreview-BjOjXzmX.js → threePreview-VgYHwBPZ.js} +299 -301
  32. package/dist/{threeSceneView-Arn9K2ca.js → threeSceneView-B741OdNa.js} +10 -10
  33. package/dist/{threeSceneViewForCPMPIP-DyBpZbxn.js → threeSceneViewForCPMPIP-UjEFfPgg.js} +7 -7
  34. package/dist/{threeTrackPathView-DuL77ZaW.js → threeTrackPathView-B_uPNM5T.js} +3 -3
  35. package/dist/{threeViewerHost-BYzW22O3.js → threeViewerHost-BEGDV6UB.js} +2 -2
  36. package/dist/{urdfTree-xJWz0AN3.js → urdfTree-DFTtpJ1T.js} +1 -1
  37. package/dist/{workpieceTreePanel-Cfj81zvc.js → workpieceTreePanel-D5BfZ6Fw.js} +4 -4
  38. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- import { ref as S, shallowRef as L0, defineComponent as Z0, watch as e0, onMounted as z0, nextTick as Q0, onBeforeUnmount as J0, resolveComponent as Y0, openBlock as a0, createElementBlock as l0, createElementVNode as v, createVNode as q, unref as B, renderSlot as h0, withDirectives as K0, toDisplayString as g0, withCtx as X0, createBlock as $0, createCommentVNode as _0, vShow as ee } from "vue";
2
- import { ak as ae, al as t0, am as T0, R as R0, an as Q, U as X, ao as D, ap as M0, C as x, aq as M, c as U, ar as be, j as ie, D as He, n as $, V as C, as as re, at as D0, au as fe, av as O0, aw as ce, ax as te, a1 as J, ay as de, az as E0, aA as ne, aB as oe, aC as ke, aD as d0, aE as G0, aF as n0, aG as se, aH as ue, _ as le, aI as b0, a2 as he, t as U0, l as ge, aJ as z, aK as _e, u as x0, aL as Ae, h as q0, aM as pe, w as me, aN as je, $ as Ie, s as i0, P as ye, p as Fe, aO as we, aP as Ne, aQ as ve, aR as Te, aS as Re, aT as B0, aU as Me, aV as A0, aW as p0, aX as m0, aY as j0, aZ as o0, a4 as De, a_ as Oe, B as V0, a$ as Ee, k as Ge } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-VCheSKQF.js";
1
+ import { ref as S, shallowRef as W0, defineComponent as C0, watch as X, onMounted as S0, nextTick as L0, onBeforeUnmount as Z0, resolveComponent as z0, openBlock as $, createElementBlock as k0, createElementVNode as T, createVNode as B, unref as V, renderSlot as s0, withDirectives as Q0, toDisplayString as u0, withCtx as J0, createBlock as Y0, createCommentVNode as l0, vShow as K0 } from "vue";
2
+ import { ak as X0, al as f0, am as w0, R as N0, an as Q, U as Y, ao as D, ap as v0, C as q, aq as M, c as x, ar as $0, j as ee, D as ae, n as K, V as C, as as be, at as T0, au as ie, av as R0, aw as He, ax as re, a1 as J, ay as fe, az as M0, aA as ce, aB as te, aC as de, aD as c0, aE as D0, aF as t0, aG as ne, aH as oe, _ as ke, aI as e0, a2 as se, t as O0, l as ue, aJ as z, aK as le, u as E0, aL as he, h as G0, aM as ge, w as _e, aN as Ae, $ as pe, s as a0, P as me, p as je, aO as Ie, aP as ye, aQ as Fe, aR as we, aS as Ne, aT as U0, aU as ve, aV as h0, aW as g0, aX as _0, aY as A0, aZ as d0, a4 as Te, a_ as Re, B as x0, a$ as Me, k as De } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DrICHBhu.js";
3
3
  import "./index-B8NQAdR4.js";
4
- import { u as Ue, a as xe, b as qe, T as W, C as Be } from "./iconfont-BBJ_Xa7g.js";
5
- import { M as Ve, O as Pe, S as We } from "./MTLLoader-Cg9LEvNr.js";
6
- import { E as I0 } from "./request-BfrhYBTM.js";
7
- import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- function y0(k, e) {
9
- if (e === ae)
4
+ import { u as Oe, a as Ee, b as Ge, T as W, C as Ue } from "./iconfont-CtG24-bX.js";
5
+ import { M as xe, O as qe, S as Be } from "./MTLLoader-DMhnklB_.js";
6
+ import { E as p0 } from "./request-BfrhYBTM.js";
7
+ import { _ as Ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ function m0(k, e) {
9
+ if (e === X0)
10
10
  return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), k;
11
- if (e === t0 || e === T0) {
11
+ if (e === f0 || e === w0) {
12
12
  let a = k.getIndex();
13
13
  if (a === null) {
14
14
  const i = [], c = k.getAttribute("position");
@@ -20,7 +20,7 @@ function y0(k, e) {
20
20
  return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."), k;
21
21
  }
22
22
  const r = a.count - 2, b = [];
23
- if (e === t0)
23
+ if (e === f0)
24
24
  for (let i = 1; i <= r; i++)
25
25
  b.push(a.getX(0)), b.push(a.getX(i)), b.push(a.getX(i + 1));
26
26
  else
@@ -32,7 +32,7 @@ function y0(k, e) {
32
32
  } else
33
33
  return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:", e), k;
34
34
  }
35
- class Se extends R0 {
35
+ class Pe extends N0 {
36
36
  /**
37
37
  * Constructs a new glTF loader.
38
38
  *
@@ -40,39 +40,39 @@ class Se extends R0 {
40
40
  */
41
41
  constructor(e) {
42
42
  super(e), this.dracoLoader = null, this.ktx2Loader = null, this.meshoptDecoder = null, this.pluginCallbacks = [], this.register(function(a) {
43
- return new Je(a);
43
+ return new Ze(a);
44
44
  }), this.register(function(a) {
45
- return new Ye(a);
45
+ return new ze(a);
46
46
  }), this.register(function(a) {
47
- return new r2(a);
47
+ return new b2(a);
48
48
  }), this.register(function(a) {
49
- return new f2(a);
49
+ return new i2(a);
50
50
  }), this.register(function(a) {
51
- return new c2(a);
51
+ return new H2(a);
52
52
  }), this.register(function(a) {
53
- return new Xe(a);
53
+ return new Je(a);
54
54
  }), this.register(function(a) {
55
- return new $e(a);
55
+ return new Ye(a);
56
56
  }), this.register(function(a) {
57
- return new e2(a);
57
+ return new Ke(a);
58
58
  }), this.register(function(a) {
59
- return new a2(a);
59
+ return new Xe(a);
60
60
  }), this.register(function(a) {
61
- return new Qe(a);
61
+ return new Le(a);
62
62
  }), this.register(function(a) {
63
- return new b2(a);
63
+ return new $e(a);
64
64
  }), this.register(function(a) {
65
- return new Ke(a);
65
+ return new Qe(a);
66
66
  }), this.register(function(a) {
67
- return new H2(a);
67
+ return new a2(a);
68
68
  }), this.register(function(a) {
69
- return new i2(a);
69
+ return new e2(a);
70
70
  }), this.register(function(a) {
71
- return new Ze(a);
71
+ return new Ce(a);
72
72
  }), this.register(function(a) {
73
- return new t2(a);
73
+ return new r2(a);
74
74
  }), this.register(function(a) {
75
- return new d2(a);
75
+ return new f2(a);
76
76
  });
77
77
  }
78
78
  /**
@@ -97,7 +97,7 @@ class Se extends R0 {
97
97
  this.manager.itemStart(e);
98
98
  const c = function(t) {
99
99
  b ? b(t) : console.error(t), H.manager.itemError(e), H.manager.itemEnd(e);
100
- }, f = new X(this.manager);
100
+ }, f = new Y(this.manager);
101
101
  f.setPath(this.path), f.setResponseType("arraybuffer"), f.setRequestHeader(this.requestHeader), f.setWithCredentials(this.withCredentials), f.load(e, function(t) {
102
102
  try {
103
103
  H.parse(t, i, function(n) {
@@ -172,9 +172,9 @@ class Se extends R0 {
172
172
  if (typeof e == "string")
173
173
  H = JSON.parse(e);
174
174
  else if (e instanceof ArrayBuffer)
175
- if (f.decode(new Uint8Array(e, 0, 4)) === P0) {
175
+ if (f.decode(new Uint8Array(e, 0, 4)) === q0) {
176
176
  try {
177
- i[p.KHR_BINARY_GLTF] = new n2(e);
177
+ i[p.KHR_BINARY_GLTF] = new c2(e);
178
178
  } catch (d) {
179
179
  b && b(d);
180
180
  return;
@@ -188,7 +188,7 @@ class Se extends R0 {
188
188
  b && b(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));
189
189
  return;
190
190
  }
191
- const t = new I2(H, {
191
+ const t = new p2(H, {
192
192
  path: a || this.resourcePath || "",
193
193
  crossOrigin: this.crossOrigin,
194
194
  requestHeader: this.requestHeader,
@@ -206,16 +206,16 @@ class Se extends R0 {
206
206
  const d = H.extensionsUsed[n], o = H.extensionsRequired || [];
207
207
  switch (d) {
208
208
  case p.KHR_MATERIALS_UNLIT:
209
- i[d] = new ze();
209
+ i[d] = new Se();
210
210
  break;
211
211
  case p.KHR_DRACO_MESH_COMPRESSION:
212
- i[d] = new o2(H, this.dracoLoader);
212
+ i[d] = new t2(H, this.dracoLoader);
213
213
  break;
214
214
  case p.KHR_TEXTURE_TRANSFORM:
215
- i[d] = new k2();
215
+ i[d] = new d2();
216
216
  break;
217
217
  case p.KHR_MESH_QUANTIZATION:
218
- i[d] = new s2();
218
+ i[d] = new n2();
219
219
  break;
220
220
  default:
221
221
  o.indexOf(d) >= 0 && c[d] === void 0 && console.warn('THREE.GLTFLoader: Unknown extension "' + d + '".');
@@ -238,7 +238,7 @@ class Se extends R0 {
238
238
  });
239
239
  }
240
240
  }
241
- function Le() {
241
+ function We() {
242
242
  let k = {};
243
243
  return {
244
244
  get: function(e) {
@@ -279,7 +279,7 @@ const p = {
279
279
  EXT_MESHOPT_COMPRESSION: "EXT_meshopt_compression",
280
280
  EXT_MESH_GPU_INSTANCING: "EXT_mesh_gpu_instancing"
281
281
  };
282
- class Ze {
282
+ class Ce {
283
283
  constructor(e) {
284
284
  this.parser = e, this.name = p.KHR_LIGHTS_PUNCTUAL, this.cache = { refs: {}, uses: {} };
285
285
  }
@@ -296,18 +296,18 @@ class Ze {
296
296
  if (b) return b;
297
297
  const H = a.json, f = ((H.extensions && H.extensions[this.name] || {}).lights || [])[e];
298
298
  let t;
299
- const n = new x(16777215);
299
+ const n = new q(16777215);
300
300
  f.color !== void 0 && n.setRGB(f.color[0], f.color[1], f.color[2], M);
301
301
  const d = f.range !== void 0 ? f.range : 0;
302
302
  switch (f.type) {
303
303
  case "directional":
304
- t = new He(n), t.target.position.set(0, 0, -1), t.add(t.target);
304
+ t = new ae(n), t.target.position.set(0, 0, -1), t.add(t.target);
305
305
  break;
306
306
  case "point":
307
- t = new ie(n), t.distance = d;
307
+ t = new ee(n), t.distance = d;
308
308
  break;
309
309
  case "spot":
310
- t = new be(n), t.distance = d, f.spot = f.spot || {}, f.spot.innerConeAngle = f.spot.innerConeAngle !== void 0 ? f.spot.innerConeAngle : 0, f.spot.outerConeAngle = f.spot.outerConeAngle !== void 0 ? f.spot.outerConeAngle : Math.PI / 4, t.angle = f.spot.outerConeAngle, t.penumbra = 1 - f.spot.innerConeAngle / f.spot.outerConeAngle, t.target.position.set(0, 0, -1), t.add(t.target);
310
+ t = new $0(n), t.distance = d, f.spot = f.spot || {}, f.spot.innerConeAngle = f.spot.innerConeAngle !== void 0 ? f.spot.innerConeAngle : 0, f.spot.outerConeAngle = f.spot.outerConeAngle !== void 0 ? f.spot.outerConeAngle : Math.PI / 4, t.angle = f.spot.outerConeAngle, t.penumbra = 1 - f.spot.innerConeAngle / f.spot.outerConeAngle, t.target.position.set(0, 0, -1), t.add(t.target);
311
311
  break;
312
312
  default:
313
313
  throw new Error("THREE.GLTFLoader: Unexpected light type: " + f.type);
@@ -325,7 +325,7 @@ class Ze {
325
325
  });
326
326
  }
327
327
  }
328
- class ze {
328
+ class Se {
329
329
  constructor() {
330
330
  this.name = p.KHR_MATERIALS_UNLIT;
331
331
  }
@@ -334,19 +334,19 @@ class ze {
334
334
  }
335
335
  extendParams(e, a, r) {
336
336
  const b = [];
337
- e.color = new x(1, 1, 1), e.opacity = 1;
337
+ e.color = new q(1, 1, 1), e.opacity = 1;
338
338
  const H = a.pbrMetallicRoughness;
339
339
  if (H) {
340
340
  if (Array.isArray(H.baseColorFactor)) {
341
341
  const i = H.baseColorFactor;
342
342
  e.color.setRGB(i[0], i[1], i[2], M), e.opacity = i[3];
343
343
  }
344
- H.baseColorTexture !== void 0 && b.push(r.assignTexture(e, "map", H.baseColorTexture, U));
344
+ H.baseColorTexture !== void 0 && b.push(r.assignTexture(e, "map", H.baseColorTexture, x));
345
345
  }
346
346
  return Promise.all(b);
347
347
  }
348
348
  }
349
- class Qe {
349
+ class Le {
350
350
  constructor(e) {
351
351
  this.parser = e, this.name = p.KHR_MATERIALS_EMISSIVE_STRENGTH;
352
352
  }
@@ -358,7 +358,7 @@ class Qe {
358
358
  return H !== void 0 && (a.emissiveIntensity = H), Promise.resolve();
359
359
  }
360
360
  }
361
- class Je {
361
+ class Ze {
362
362
  constructor(e) {
363
363
  this.parser = e, this.name = p.KHR_MATERIALS_CLEARCOAT;
364
364
  }
@@ -373,12 +373,12 @@ class Je {
373
373
  const H = [], i = b.extensions[this.name];
374
374
  if (i.clearcoatFactor !== void 0 && (a.clearcoat = i.clearcoatFactor), i.clearcoatTexture !== void 0 && H.push(r.assignTexture(a, "clearcoatMap", i.clearcoatTexture)), i.clearcoatRoughnessFactor !== void 0 && (a.clearcoatRoughness = i.clearcoatRoughnessFactor), i.clearcoatRoughnessTexture !== void 0 && H.push(r.assignTexture(a, "clearcoatRoughnessMap", i.clearcoatRoughnessTexture)), i.clearcoatNormalTexture !== void 0 && (H.push(r.assignTexture(a, "clearcoatNormalMap", i.clearcoatNormalTexture)), i.clearcoatNormalTexture.scale !== void 0)) {
375
375
  const c = i.clearcoatNormalTexture.scale;
376
- a.clearcoatNormalScale = new M0(c, c);
376
+ a.clearcoatNormalScale = new v0(c, c);
377
377
  }
378
378
  return Promise.all(H);
379
379
  }
380
380
  }
381
- class Ye {
381
+ class ze {
382
382
  constructor(e) {
383
383
  this.parser = e, this.name = p.KHR_MATERIALS_DISPERSION;
384
384
  }
@@ -394,7 +394,7 @@ class Ye {
394
394
  return a.dispersion = H.dispersion !== void 0 ? H.dispersion : 0, Promise.resolve();
395
395
  }
396
396
  }
397
- class Ke {
397
+ class Qe {
398
398
  constructor(e) {
399
399
  this.parser = e, this.name = p.KHR_MATERIALS_IRIDESCENCE;
400
400
  }
@@ -410,7 +410,7 @@ class Ke {
410
410
  return i.iridescenceFactor !== void 0 && (a.iridescence = i.iridescenceFactor), i.iridescenceTexture !== void 0 && H.push(r.assignTexture(a, "iridescenceMap", i.iridescenceTexture)), i.iridescenceIor !== void 0 && (a.iridescenceIOR = i.iridescenceIor), a.iridescenceThicknessRange === void 0 && (a.iridescenceThicknessRange = [100, 400]), i.iridescenceThicknessMinimum !== void 0 && (a.iridescenceThicknessRange[0] = i.iridescenceThicknessMinimum), i.iridescenceThicknessMaximum !== void 0 && (a.iridescenceThicknessRange[1] = i.iridescenceThicknessMaximum), i.iridescenceThicknessTexture !== void 0 && H.push(r.assignTexture(a, "iridescenceThicknessMap", i.iridescenceThicknessTexture)), Promise.all(H);
411
411
  }
412
412
  }
413
- class Xe {
413
+ class Je {
414
414
  constructor(e) {
415
415
  this.parser = e, this.name = p.KHR_MATERIALS_SHEEN;
416
416
  }
@@ -423,16 +423,16 @@ class Xe {
423
423
  if (!b.extensions || !b.extensions[this.name])
424
424
  return Promise.resolve();
425
425
  const H = [];
426
- a.sheenColor = new x(0, 0, 0), a.sheenRoughness = 0, a.sheen = 1;
426
+ a.sheenColor = new q(0, 0, 0), a.sheenRoughness = 0, a.sheen = 1;
427
427
  const i = b.extensions[this.name];
428
428
  if (i.sheenColorFactor !== void 0) {
429
429
  const c = i.sheenColorFactor;
430
430
  a.sheenColor.setRGB(c[0], c[1], c[2], M);
431
431
  }
432
- return i.sheenRoughnessFactor !== void 0 && (a.sheenRoughness = i.sheenRoughnessFactor), i.sheenColorTexture !== void 0 && H.push(r.assignTexture(a, "sheenColorMap", i.sheenColorTexture, U)), i.sheenRoughnessTexture !== void 0 && H.push(r.assignTexture(a, "sheenRoughnessMap", i.sheenRoughnessTexture)), Promise.all(H);
432
+ return i.sheenRoughnessFactor !== void 0 && (a.sheenRoughness = i.sheenRoughnessFactor), i.sheenColorTexture !== void 0 && H.push(r.assignTexture(a, "sheenColorMap", i.sheenColorTexture, x)), i.sheenRoughnessTexture !== void 0 && H.push(r.assignTexture(a, "sheenRoughnessMap", i.sheenRoughnessTexture)), Promise.all(H);
433
433
  }
434
434
  }
435
- class $e {
435
+ class Ye {
436
436
  constructor(e) {
437
437
  this.parser = e, this.name = p.KHR_MATERIALS_TRANSMISSION;
438
438
  }
@@ -448,7 +448,7 @@ class $e {
448
448
  return i.transmissionFactor !== void 0 && (a.transmission = i.transmissionFactor), i.transmissionTexture !== void 0 && H.push(r.assignTexture(a, "transmissionMap", i.transmissionTexture)), Promise.all(H);
449
449
  }
450
450
  }
451
- class e2 {
451
+ class Ke {
452
452
  constructor(e) {
453
453
  this.parser = e, this.name = p.KHR_MATERIALS_VOLUME;
454
454
  }
@@ -463,10 +463,10 @@ class e2 {
463
463
  const H = [], i = b.extensions[this.name];
464
464
  a.thickness = i.thicknessFactor !== void 0 ? i.thicknessFactor : 0, i.thicknessTexture !== void 0 && H.push(r.assignTexture(a, "thicknessMap", i.thicknessTexture)), a.attenuationDistance = i.attenuationDistance || 1 / 0;
465
465
  const c = i.attenuationColor || [1, 1, 1];
466
- return a.attenuationColor = new x().setRGB(c[0], c[1], c[2], M), Promise.all(H);
466
+ return a.attenuationColor = new q().setRGB(c[0], c[1], c[2], M), Promise.all(H);
467
467
  }
468
468
  }
469
- class a2 {
469
+ class Xe {
470
470
  constructor(e) {
471
471
  this.parser = e, this.name = p.KHR_MATERIALS_IOR;
472
472
  }
@@ -482,7 +482,7 @@ class a2 {
482
482
  return a.ior = H.ior !== void 0 ? H.ior : 1.5, Promise.resolve();
483
483
  }
484
484
  }
485
- class b2 {
485
+ class $e {
486
486
  constructor(e) {
487
487
  this.parser = e, this.name = p.KHR_MATERIALS_SPECULAR;
488
488
  }
@@ -497,10 +497,10 @@ class b2 {
497
497
  const H = [], i = b.extensions[this.name];
498
498
  a.specularIntensity = i.specularFactor !== void 0 ? i.specularFactor : 1, i.specularTexture !== void 0 && H.push(r.assignTexture(a, "specularIntensityMap", i.specularTexture));
499
499
  const c = i.specularColorFactor || [1, 1, 1];
500
- return a.specularColor = new x().setRGB(c[0], c[1], c[2], M), i.specularColorTexture !== void 0 && H.push(r.assignTexture(a, "specularColorMap", i.specularColorTexture, U)), Promise.all(H);
500
+ return a.specularColor = new q().setRGB(c[0], c[1], c[2], M), i.specularColorTexture !== void 0 && H.push(r.assignTexture(a, "specularColorMap", i.specularColorTexture, x)), Promise.all(H);
501
501
  }
502
502
  }
503
- class i2 {
503
+ class e2 {
504
504
  constructor(e) {
505
505
  this.parser = e, this.name = p.EXT_MATERIALS_BUMP;
506
506
  }
@@ -516,7 +516,7 @@ class i2 {
516
516
  return a.bumpScale = i.bumpFactor !== void 0 ? i.bumpFactor : 1, i.bumpTexture !== void 0 && H.push(r.assignTexture(a, "bumpMap", i.bumpTexture)), Promise.all(H);
517
517
  }
518
518
  }
519
- class H2 {
519
+ class a2 {
520
520
  constructor(e) {
521
521
  this.parser = e, this.name = p.KHR_MATERIALS_ANISOTROPY;
522
522
  }
@@ -532,7 +532,7 @@ class H2 {
532
532
  return i.anisotropyStrength !== void 0 && (a.anisotropy = i.anisotropyStrength), i.anisotropyRotation !== void 0 && (a.anisotropyRotation = i.anisotropyRotation), i.anisotropyTexture !== void 0 && H.push(r.assignTexture(a, "anisotropyMap", i.anisotropyTexture)), Promise.all(H);
533
533
  }
534
534
  }
535
- class r2 {
535
+ class b2 {
536
536
  constructor(e) {
537
537
  this.parser = e, this.name = p.KHR_TEXTURE_BASISU;
538
538
  }
@@ -549,7 +549,7 @@ class r2 {
549
549
  return a.loadTextureImage(e, H.source, i);
550
550
  }
551
551
  }
552
- class f2 {
552
+ class i2 {
553
553
  constructor(e) {
554
554
  this.parser = e, this.name = p.EXT_TEXTURE_WEBP;
555
555
  }
@@ -566,7 +566,7 @@ class f2 {
566
566
  return r.loadTextureImage(e, i.source, f);
567
567
  }
568
568
  }
569
- class c2 {
569
+ class H2 {
570
570
  constructor(e) {
571
571
  this.parser = e, this.name = p.EXT_TEXTURE_AVIF;
572
572
  }
@@ -583,7 +583,7 @@ class c2 {
583
583
  return r.loadTextureImage(e, i.source, f);
584
584
  }
585
585
  }
586
- class t2 {
586
+ class r2 {
587
587
  constructor(e) {
588
588
  this.name = p.EXT_MESHOPT_COMPRESSION, this.parser = e;
589
589
  }
@@ -609,7 +609,7 @@ class t2 {
609
609
  return null;
610
610
  }
611
611
  }
612
- class d2 {
612
+ class f2 {
613
613
  constructor(e) {
614
614
  this.name = p.EXT_MESH_GPU_INSTANCING, this.parser = e;
615
615
  }
@@ -627,22 +627,22 @@ class d2 {
627
627
  return c.length < 1 ? null : (c.push(this.parser.createNodeMesh(e)), Promise.all(c).then((t) => {
628
628
  const n = t.pop(), d = n.isGroup ? n.children : [n], o = t[0].count, s = [];
629
629
  for (const l of d) {
630
- const h = new $(), u = new C(), g = new D0(), _ = new C(1, 1, 1), m = new re(l.geometry, l.material, o);
630
+ const h = new K(), u = new C(), g = new T0(), _ = new C(1, 1, 1), m = new be(l.geometry, l.material, o);
631
631
  for (let A = 0; A < o; A++)
632
632
  f.TRANSLATION && u.fromBufferAttribute(f.TRANSLATION, A), f.ROTATION && g.fromBufferAttribute(f.ROTATION, A), f.SCALE && _.fromBufferAttribute(f.SCALE, A), m.setMatrixAt(A, h.compose(u, g, _));
633
633
  for (const A in f)
634
634
  if (A === "_COLOR_0") {
635
635
  const I = f[A];
636
- m.instanceColor = new fe(I.array, I.itemSize, I.normalized);
636
+ m.instanceColor = new ie(I.array, I.itemSize, I.normalized);
637
637
  } else A !== "TRANSLATION" && A !== "ROTATION" && A !== "SCALE" && l.geometry.setAttribute(A, f[A]);
638
- O0.prototype.copy.call(m, l), this.parser.assignFinalMaterial(m), s.push(m);
638
+ R0.prototype.copy.call(m, l), this.parser.assignFinalMaterial(m), s.push(m);
639
639
  }
640
640
  return n.isGroup ? (n.clear(), n.add(...s), n) : s[0];
641
641
  }));
642
642
  }
643
643
  }
644
- const P0 = "glTF", Z = 12, F0 = { JSON: 1313821514, BIN: 5130562 };
645
- class n2 {
644
+ const q0 = "glTF", Z = 12, j0 = { JSON: 1313821514, BIN: 5130562 };
645
+ class c2 {
646
646
  constructor(e) {
647
647
  this.name = p.KHR_BINARY_GLTF, this.content = null, this.body = null;
648
648
  const a = new DataView(e, 0, Z), r = new TextDecoder();
@@ -650,7 +650,7 @@ class n2 {
650
650
  magic: r.decode(new Uint8Array(e.slice(0, 4))),
651
651
  version: a.getUint32(4, !0),
652
652
  length: a.getUint32(8, !0)
653
- }, this.header.magic !== P0)
653
+ }, this.header.magic !== q0)
654
654
  throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
655
655
  if (this.header.version < 2)
656
656
  throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
@@ -660,10 +660,10 @@ class n2 {
660
660
  const c = H.getUint32(i, !0);
661
661
  i += 4;
662
662
  const f = H.getUint32(i, !0);
663
- if (i += 4, f === F0.JSON) {
663
+ if (i += 4, f === j0.JSON) {
664
664
  const t = new Uint8Array(e, Z + i, c);
665
665
  this.content = r.decode(t);
666
- } else if (f === F0.BIN) {
666
+ } else if (f === j0.BIN) {
667
667
  const t = Z + i;
668
668
  this.body = e.slice(t, t + c);
669
669
  }
@@ -673,7 +673,7 @@ class n2 {
673
673
  throw new Error("THREE.GLTFLoader: JSON content not found.");
674
674
  }
675
675
  }
676
- class o2 {
676
+ class t2 {
677
677
  constructor(e, a) {
678
678
  if (!a)
679
679
  throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");
@@ -682,11 +682,11 @@ class o2 {
682
682
  decodePrimitive(e, a) {
683
683
  const r = this.json, b = this.dracoLoader, H = e.extensions[this.name].bufferView, i = e.extensions[this.name].attributes, c = {}, f = {}, t = {};
684
684
  for (const n in i) {
685
- const d = k0[n] || n.toLowerCase();
685
+ const d = n0[n] || n.toLowerCase();
686
686
  c[d] = i[n];
687
687
  }
688
688
  for (const n in e.attributes) {
689
- const d = k0[n] || n.toLowerCase();
689
+ const d = n0[n] || n.toLowerCase();
690
690
  if (i[n] !== void 0) {
691
691
  const o = r.accessors[e.attributes[n]], s = L[o.componentType];
692
692
  t[d] = s.name, f[d] = o.normalized === !0;
@@ -705,7 +705,7 @@ class o2 {
705
705
  });
706
706
  }
707
707
  }
708
- class k2 {
708
+ class d2 {
709
709
  constructor() {
710
710
  this.name = p.KHR_TEXTURE_TRANSFORM;
711
711
  }
@@ -713,12 +713,12 @@ class k2 {
713
713
  return (a.texCoord === void 0 || a.texCoord === e.channel) && a.offset === void 0 && a.rotation === void 0 && a.scale === void 0 || (e = e.clone(), a.texCoord !== void 0 && (e.channel = a.texCoord), a.offset !== void 0 && e.offset.fromArray(a.offset), a.rotation !== void 0 && (e.rotation = a.rotation), a.scale !== void 0 && e.repeat.fromArray(a.scale), e.needsUpdate = !0), e;
714
714
  }
715
715
  }
716
- class s2 {
716
+ class n2 {
717
717
  constructor() {
718
718
  this.name = p.KHR_MESH_QUANTIZATION;
719
719
  }
720
720
  }
721
- class W0 extends Oe {
721
+ class B0 extends Re {
722
722
  constructor(e, a, r, b) {
723
723
  super(e, a, r, b);
724
724
  }
@@ -731,17 +731,17 @@ class W0 extends Oe {
731
731
  interpolate_(e, a, r, b) {
732
732
  const H = this.resultBuffer, i = this.sampleValues, c = this.valueSize, f = c * 2, t = c * 3, n = b - a, d = (r - a) / n, o = d * d, s = o * d, l = e * t, h = l - t, u = -2 * s + 3 * o, g = s - o, _ = 1 - u, m = g - o + d;
733
733
  for (let A = 0; A !== c; A++) {
734
- const I = i[h + A + c], F = i[h + A + f] * n, y = i[l + A + c], O = i[l + A] * n;
735
- H[A] = _ * I + m * F + u * y + g * O;
734
+ const I = i[h + A + c], F = i[h + A + f] * n, y = i[l + A + c], G = i[l + A] * n;
735
+ H[A] = _ * I + m * F + u * y + g * G;
736
736
  }
737
737
  return H;
738
738
  }
739
739
  }
740
- const u2 = new D0();
741
- class l2 extends W0 {
740
+ const o2 = new T0();
741
+ class k2 extends B0 {
742
742
  interpolate_(e, a, r, b) {
743
743
  const H = super.interpolate_(e, a, r, b);
744
- return u2.fromArray(H).normalize().toArray(H), H;
744
+ return o2.fromArray(H).normalize().toArray(H), H;
745
745
  }
746
746
  }
747
747
  const w = {
@@ -759,18 +759,18 @@ const w = {
759
759
  5123: Uint16Array,
760
760
  5125: Uint32Array,
761
761
  5126: Float32Array
762
- }, w0 = {
763
- 9728: G0,
764
- 9729: d0,
765
- 9984: ke,
766
- 9985: oe,
767
- 9986: ne,
768
- 9987: E0
769
- }, N0 = {
770
- 33071: ue,
771
- 33648: se,
772
- 10497: n0
773
- }, H0 = {
762
+ }, I0 = {
763
+ 9728: D0,
764
+ 9729: c0,
765
+ 9984: de,
766
+ 9985: te,
767
+ 9986: ce,
768
+ 9987: M0
769
+ }, y0 = {
770
+ 33071: oe,
771
+ 33648: ne,
772
+ 10497: t0
773
+ }, b0 = {
774
774
  SCALAR: 1,
775
775
  VEC2: 2,
776
776
  VEC3: 3,
@@ -778,7 +778,7 @@ const w = {
778
778
  MAT2: 4,
779
779
  MAT3: 9,
780
780
  MAT4: 16
781
- }, k0 = {
781
+ }, n0 = {
782
782
  POSITION: "position",
783
783
  NORMAL: "normal",
784
784
  TANGENT: "tangent",
@@ -789,41 +789,41 @@ const w = {
789
789
  COLOR_0: "color",
790
790
  WEIGHTS_0: "skinWeight",
791
791
  JOINTS_0: "skinIndex"
792
- }, G = {
792
+ }, U = {
793
793
  scale: "scale",
794
794
  translation: "position",
795
795
  rotation: "quaternion",
796
796
  weights: "morphTargetInfluences"
797
- }, h2 = {
797
+ }, s2 = {
798
798
  CUBICSPLINE: void 0,
799
799
  // We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
800
800
  // keyframe track will be initialized with a default interpolation type, then modified.
801
- LINEAR: B0,
802
- STEP: Re
803
- }, r0 = {
801
+ LINEAR: U0,
802
+ STEP: Ne
803
+ }, i0 = {
804
804
  OPAQUE: "OPAQUE",
805
805
  MASK: "MASK",
806
806
  BLEND: "BLEND"
807
807
  };
808
- function g2(k) {
809
- return k.DefaultMaterial === void 0 && (k.DefaultMaterial = new U0({
808
+ function u2(k) {
809
+ return k.DefaultMaterial === void 0 && (k.DefaultMaterial = new O0({
810
810
  color: 16777215,
811
811
  emissive: 0,
812
812
  metalness: 1,
813
813
  roughness: 1,
814
814
  transparent: !1,
815
815
  depthTest: !0,
816
- side: De
816
+ side: Te
817
817
  })), k.DefaultMaterial;
818
818
  }
819
- function V(k, e, a) {
819
+ function P(k, e, a) {
820
820
  for (const r in a.extensions)
821
821
  k[r] === void 0 && (e.userData.gltfExtensions = e.userData.gltfExtensions || {}, e.userData.gltfExtensions[r] = a.extensions[r]);
822
822
  }
823
823
  function E(k, e) {
824
824
  e.extras !== void 0 && (typeof e.extras == "object" ? Object.assign(k.userData, e.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + e.extras));
825
825
  }
826
- function _2(k, e, a) {
826
+ function l2(k, e, a) {
827
827
  let r = !1, b = !1, H = !1;
828
828
  for (let t = 0, n = e.length; t < n; t++) {
829
829
  const d = e[t];
@@ -855,7 +855,7 @@ function _2(k, e, a) {
855
855
  return r && (k.morphAttributes.position = n), b && (k.morphAttributes.normal = d), H && (k.morphAttributes.color = o), k.morphTargetsRelative = !0, k;
856
856
  });
857
857
  }
858
- function A2(k, e) {
858
+ function h2(k, e) {
859
859
  if (k.updateMorphTargets(), e.weights !== void 0)
860
860
  for (let a = 0, r = e.weights.length; a < r; a++)
861
861
  k.morphTargetInfluences[a] = e.weights[a];
@@ -869,22 +869,22 @@ function A2(k, e) {
869
869
  console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.");
870
870
  }
871
871
  }
872
- function p2(k) {
872
+ function g2(k) {
873
873
  let e;
874
874
  const a = k.extensions && k.extensions[p.KHR_DRACO_MESH_COMPRESSION];
875
- if (a ? e = "draco:" + a.bufferView + ":" + a.indices + ":" + f0(a.attributes) : e = k.indices + ":" + f0(k.attributes) + ":" + k.mode, k.targets !== void 0)
875
+ if (a ? e = "draco:" + a.bufferView + ":" + a.indices + ":" + H0(a.attributes) : e = k.indices + ":" + H0(k.attributes) + ":" + k.mode, k.targets !== void 0)
876
876
  for (let r = 0, b = k.targets.length; r < b; r++)
877
- e += ":" + f0(k.targets[r]);
877
+ e += ":" + H0(k.targets[r]);
878
878
  return e;
879
879
  }
880
- function f0(k) {
880
+ function H0(k) {
881
881
  let e = "";
882
882
  const a = Object.keys(k).sort();
883
883
  for (let r = 0, b = a.length; r < b; r++)
884
884
  e += a[r] + ":" + k[a[r]] + ";";
885
885
  return e;
886
886
  }
887
- function s0(k) {
887
+ function o0(k) {
888
888
  switch (k) {
889
889
  case Int8Array:
890
890
  return 1 / 127;
@@ -898,13 +898,13 @@ function s0(k) {
898
898
  throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.");
899
899
  }
900
900
  }
901
- function m2(k) {
901
+ function _2(k) {
902
902
  return k.search(/\.jpe?g($|\?)/i) > 0 || k.search(/^data\:image\/jpeg/) === 0 ? "image/jpeg" : k.search(/\.webp($|\?)/i) > 0 || k.search(/^data\:image\/webp/) === 0 ? "image/webp" : k.search(/\.ktx2($|\?)/i) > 0 || k.search(/^data\:image\/ktx2/) === 0 ? "image/ktx2" : "image/png";
903
903
  }
904
- const j2 = new $();
905
- class I2 {
904
+ const A2 = new K();
905
+ class p2 {
906
906
  constructor(e = {}, a = {}) {
907
- this.json = e, this.extensions = {}, this.plugins = {}, this.options = a, this.cache = new Le(), this.associations = /* @__PURE__ */ new Map(), this.primitiveCache = {}, this.nodeCache = {}, this.meshCache = { refs: {}, uses: {} }, this.cameraCache = { refs: {}, uses: {} }, this.lightCache = { refs: {}, uses: {} }, this.sourceCache = {}, this.textureCache = {}, this.nodeNamesUsed = {};
907
+ this.json = e, this.extensions = {}, this.plugins = {}, this.options = a, this.cache = new We(), this.associations = /* @__PURE__ */ new Map(), this.primitiveCache = {}, this.nodeCache = {}, this.meshCache = { refs: {}, uses: {} }, this.cameraCache = { refs: {}, uses: {} }, this.lightCache = { refs: {}, uses: {} }, this.sourceCache = {}, this.textureCache = {}, this.nodeNamesUsed = {};
908
908
  let r = !1, b = -1, H = !1, i = -1;
909
909
  if (typeof navigator < "u") {
910
910
  const c = navigator.userAgent;
@@ -912,7 +912,7 @@ class I2 {
912
912
  const f = c.match(/Version\/(\d+)/);
913
913
  b = r && f ? parseInt(f[1], 10) : -1, H = c.indexOf("Firefox") > -1, i = H ? c.match(/Firefox\/([0-9]+)\./)[1] : -1;
914
914
  }
915
- typeof createImageBitmap > "u" || r && b < 17 || H && i < 98 ? this.textureLoader = new ce(this.options.manager) : this.textureLoader = new te(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new X(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
915
+ typeof createImageBitmap > "u" || r && b < 17 || H && i < 98 ? this.textureLoader = new He(this.options.manager) : this.textureLoader = new re(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new Y(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
916
916
  }
917
917
  setExtensions(e) {
918
918
  this.extensions = e;
@@ -942,7 +942,7 @@ class I2 {
942
942
  parser: r,
943
943
  userData: {}
944
944
  };
945
- return V(H, c, b), E(c, b), Promise.all(r._invokeAll(function(f) {
945
+ return P(H, c, b), E(c, b), Promise.all(r._invokeAll(function(f) {
946
946
  return f.afterRoot && f.afterRoot(c);
947
947
  })).then(function() {
948
948
  for (const f of c.scenes)
@@ -1152,23 +1152,23 @@ class I2 {
1152
1152
  loadAccessor(e) {
1153
1153
  const a = this, r = this.json, b = this.json.accessors[e];
1154
1154
  if (b.bufferView === void 0 && b.sparse === void 0) {
1155
- const i = H0[b.type], c = L[b.componentType], f = b.normalized === !0, t = new c(b.count * i);
1155
+ const i = b0[b.type], c = L[b.componentType], f = b.normalized === !0, t = new c(b.count * i);
1156
1156
  return Promise.resolve(new J(t, i, f));
1157
1157
  }
1158
1158
  const H = [];
1159
1159
  return b.bufferView !== void 0 ? H.push(this.getDependency("bufferView", b.bufferView)) : H.push(null), b.sparse !== void 0 && (H.push(this.getDependency("bufferView", b.sparse.indices.bufferView)), H.push(this.getDependency("bufferView", b.sparse.values.bufferView))), Promise.all(H).then(function(i) {
1160
- const c = i[0], f = H0[b.type], t = L[b.componentType], n = t.BYTES_PER_ELEMENT, d = n * f, o = b.byteOffset || 0, s = b.bufferView !== void 0 ? r.bufferViews[b.bufferView].byteStride : void 0, l = b.normalized === !0;
1160
+ const c = i[0], f = b0[b.type], t = L[b.componentType], n = t.BYTES_PER_ELEMENT, d = n * f, o = b.byteOffset || 0, s = b.bufferView !== void 0 ? r.bufferViews[b.bufferView].byteStride : void 0, l = b.normalized === !0;
1161
1161
  let h, u;
1162
1162
  if (s && s !== d) {
1163
1163
  const g = Math.floor(o / s), _ = "InterleavedBuffer:" + b.bufferView + ":" + b.componentType + ":" + g + ":" + b.count;
1164
1164
  let m = a.cache.get(_);
1165
- m || (h = new t(c, g * s, b.count * s / n), m = new de(h, s / n), a.cache.add(_, m)), u = new Me(m, f, o % s / n, l);
1165
+ m || (h = new t(c, g * s, b.count * s / n), m = new fe(h, s / n), a.cache.add(_, m)), u = new ve(m, f, o % s / n, l);
1166
1166
  } else
1167
1167
  c === null ? h = new t(b.count * f) : h = new t(c, o, b.count * f), u = new J(h, f, l);
1168
1168
  if (b.sparse !== void 0) {
1169
- const g = H0.SCALAR, _ = L[b.sparse.indices.componentType], m = b.sparse.indices.byteOffset || 0, A = b.sparse.values.byteOffset || 0, I = new _(i[1], m, b.sparse.count * g), F = new t(i[2], A, b.sparse.count * f);
1169
+ const g = b0.SCALAR, _ = L[b.sparse.indices.componentType], m = b.sparse.indices.byteOffset || 0, A = b.sparse.values.byteOffset || 0, I = new _(i[1], m, b.sparse.count * g), F = new t(i[2], A, b.sparse.count * f);
1170
1170
  c !== null && (u = new J(u.array.slice(), u.itemSize, u.normalized)), u.normalized = !1;
1171
- for (let y = 0, O = I.length; y < O; y++) {
1171
+ for (let y = 0, G = I.length; y < G; y++) {
1172
1172
  const N = I[y];
1173
1173
  if (u.setX(N, F[y * f]), f >= 2 && u.setY(N, F[y * f + 1]), f >= 3 && u.setZ(N, F[y * f + 2]), f >= 4 && u.setW(N, F[y * f + 3]), f >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
1174
1174
  }
@@ -1200,7 +1200,7 @@ class I2 {
1200
1200
  const t = this.loadImageSource(a, r).then(function(n) {
1201
1201
  n.flipY = !1, n.name = i.name || c.name || "", n.name === "" && typeof c.uri == "string" && c.uri.startsWith("data:image/") === !1 && (n.name = c.uri);
1202
1202
  const o = (H.samplers || {})[i.sampler] || {};
1203
- return n.magFilter = w0[o.magFilter] || d0, n.minFilter = w0[o.minFilter] || E0, n.wrapS = N0[o.wrapS] || n0, n.wrapT = N0[o.wrapT] || n0, n.generateMipmaps = !n.isCompressedTexture && n.minFilter !== G0 && n.minFilter !== d0, b.associations.set(n, { textures: e }), n;
1203
+ return n.magFilter = I0[o.magFilter] || c0, n.minFilter = I0[o.minFilter] || M0, n.wrapS = y0[o.wrapS] || t0, n.wrapT = y0[o.wrapT] || t0, n.generateMipmaps = !n.isCompressedTexture && n.minFilter !== D0 && n.minFilter !== c0, b.associations.set(n, { textures: e }), n;
1204
1204
  }).catch(function() {
1205
1205
  return null;
1206
1206
  });
@@ -1224,12 +1224,12 @@ class I2 {
1224
1224
  return new Promise(function(o, s) {
1225
1225
  let l = o;
1226
1226
  a.isImageBitmapLoader === !0 && (l = function(h) {
1227
- const u = new A0(h);
1227
+ const u = new h0(h);
1228
1228
  u.needsUpdate = !0, o(u);
1229
1229
  }), a.load(Q.resolveURL(d, H.path), l, void 0, s);
1230
1230
  });
1231
1231
  }).then(function(d) {
1232
- return t === !0 && c.revokeObjectURL(f), E(d, i), d.userData.mimeType = i.mimeType || m2(i.uri), d;
1232
+ return t === !0 && c.revokeObjectURL(f), E(d, i), d.userData.mimeType = i.mimeType || _2(i.uri), d;
1233
1233
  }).catch(function(d) {
1234
1234
  throw console.error("THREE.GLTFLoader: Couldn't load texture", f), d;
1235
1235
  });
@@ -1276,11 +1276,11 @@ class I2 {
1276
1276
  if (e.isPoints) {
1277
1277
  const c = "PointsMaterial:" + r.uuid;
1278
1278
  let f = this.cache.get(c);
1279
- f || (f = new le(), b0.prototype.copy.call(f, r), f.color.copy(r.color), f.map = r.map, f.sizeAttenuation = !1, this.cache.add(c, f)), r = f;
1279
+ f || (f = new ke(), e0.prototype.copy.call(f, r), f.color.copy(r.color), f.map = r.map, f.sizeAttenuation = !1, this.cache.add(c, f)), r = f;
1280
1280
  } else if (e.isLine) {
1281
1281
  const c = "LineBasicMaterial:" + r.uuid;
1282
1282
  let f = this.cache.get(c);
1283
- f || (f = new he(), b0.prototype.copy.call(f, r), f.color.copy(r.color), f.map = r.map, this.cache.add(c, f)), r = f;
1283
+ f || (f = new se(), e0.prototype.copy.call(f, r), f.color.copy(r.color), f.map = r.map, this.cache.add(c, f)), r = f;
1284
1284
  }
1285
1285
  if (b || H || i) {
1286
1286
  let c = "ClonedMaterial:" + r.uuid + ":";
@@ -1291,7 +1291,7 @@ class I2 {
1291
1291
  e.material = r;
1292
1292
  }
1293
1293
  getMaterialType() {
1294
- return U0;
1294
+ return O0;
1295
1295
  }
1296
1296
  /**
1297
1297
  * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials
@@ -1309,29 +1309,29 @@ class I2 {
1309
1309
  i = d.getMaterialType(), t.push(d.extendParams(c, H, a));
1310
1310
  } else {
1311
1311
  const d = H.pbrMetallicRoughness || {};
1312
- if (c.color = new x(1, 1, 1), c.opacity = 1, Array.isArray(d.baseColorFactor)) {
1312
+ if (c.color = new q(1, 1, 1), c.opacity = 1, Array.isArray(d.baseColorFactor)) {
1313
1313
  const o = d.baseColorFactor;
1314
1314
  c.color.setRGB(o[0], o[1], o[2], M), c.opacity = o[3];
1315
1315
  }
1316
- d.baseColorTexture !== void 0 && t.push(a.assignTexture(c, "map", d.baseColorTexture, U)), c.metalness = d.metallicFactor !== void 0 ? d.metallicFactor : 1, c.roughness = d.roughnessFactor !== void 0 ? d.roughnessFactor : 1, d.metallicRoughnessTexture !== void 0 && (t.push(a.assignTexture(c, "metalnessMap", d.metallicRoughnessTexture)), t.push(a.assignTexture(c, "roughnessMap", d.metallicRoughnessTexture))), i = this._invokeOne(function(o) {
1316
+ d.baseColorTexture !== void 0 && t.push(a.assignTexture(c, "map", d.baseColorTexture, x)), c.metalness = d.metallicFactor !== void 0 ? d.metallicFactor : 1, c.roughness = d.roughnessFactor !== void 0 ? d.roughnessFactor : 1, d.metallicRoughnessTexture !== void 0 && (t.push(a.assignTexture(c, "metalnessMap", d.metallicRoughnessTexture)), t.push(a.assignTexture(c, "roughnessMap", d.metallicRoughnessTexture))), i = this._invokeOne(function(o) {
1317
1317
  return o.getMaterialType && o.getMaterialType(e);
1318
1318
  }), t.push(Promise.all(this._invokeAll(function(o) {
1319
1319
  return o.extendMaterialParams && o.extendMaterialParams(e, c);
1320
1320
  })));
1321
1321
  }
1322
- H.doubleSided === !0 && (c.side = ge);
1323
- const n = H.alphaMode || r0.OPAQUE;
1324
- if (n === r0.BLEND ? (c.transparent = !0, c.depthWrite = !1) : (c.transparent = !1, n === r0.MASK && (c.alphaTest = H.alphaCutoff !== void 0 ? H.alphaCutoff : 0.5)), H.normalTexture !== void 0 && i !== z && (t.push(a.assignTexture(c, "normalMap", H.normalTexture)), c.normalScale = new M0(1, 1), H.normalTexture.scale !== void 0)) {
1322
+ H.doubleSided === !0 && (c.side = ue);
1323
+ const n = H.alphaMode || i0.OPAQUE;
1324
+ if (n === i0.BLEND ? (c.transparent = !0, c.depthWrite = !1) : (c.transparent = !1, n === i0.MASK && (c.alphaTest = H.alphaCutoff !== void 0 ? H.alphaCutoff : 0.5)), H.normalTexture !== void 0 && i !== z && (t.push(a.assignTexture(c, "normalMap", H.normalTexture)), c.normalScale = new v0(1, 1), H.normalTexture.scale !== void 0)) {
1325
1325
  const d = H.normalTexture.scale;
1326
1326
  c.normalScale.set(d, d);
1327
1327
  }
1328
1328
  if (H.occlusionTexture !== void 0 && i !== z && (t.push(a.assignTexture(c, "aoMap", H.occlusionTexture)), H.occlusionTexture.strength !== void 0 && (c.aoMapIntensity = H.occlusionTexture.strength)), H.emissiveFactor !== void 0 && i !== z) {
1329
1329
  const d = H.emissiveFactor;
1330
- c.emissive = new x().setRGB(d[0], d[1], d[2], M);
1330
+ c.emissive = new q().setRGB(d[0], d[1], d[2], M);
1331
1331
  }
1332
- return H.emissiveTexture !== void 0 && i !== z && t.push(a.assignTexture(c, "emissiveMap", H.emissiveTexture, U)), Promise.all(t).then(function() {
1332
+ return H.emissiveTexture !== void 0 && i !== z && t.push(a.assignTexture(c, "emissiveMap", H.emissiveTexture, x)), Promise.all(t).then(function() {
1333
1333
  const d = new i(c);
1334
- return H.name && (d.name = H.name), E(d, H), a.associations.set(d, { materials: e }), H.extensions && V(b, d, H), d;
1334
+ return H.name && (d.name = H.name), E(d, H), a.associations.set(d, { materials: e }), H.extensions && P(b, d, H), d;
1335
1335
  });
1336
1336
  }
1337
1337
  /**
@@ -1342,7 +1342,7 @@ class I2 {
1342
1342
  * @return {string}
1343
1343
  */
1344
1344
  createUniqueName(e) {
1345
- const a = _e.sanitizeNodeName(e || "");
1345
+ const a = le.sanitizeNodeName(e || "");
1346
1346
  return a in this.nodeNamesUsed ? a + "_" + ++this.nodeNamesUsed[a] : (this.nodeNamesUsed[a] = 0, a);
1347
1347
  }
1348
1348
  /**
@@ -1358,17 +1358,17 @@ class I2 {
1358
1358
  const a = this, r = this.extensions, b = this.primitiveCache;
1359
1359
  function H(c) {
1360
1360
  return r[p.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(c, a).then(function(f) {
1361
- return v0(f, c, a);
1361
+ return F0(f, c, a);
1362
1362
  });
1363
1363
  }
1364
1364
  const i = [];
1365
1365
  for (let c = 0, f = e.length; c < f; c++) {
1366
- const t = e[c], n = p2(t), d = b[n];
1366
+ const t = e[c], n = g2(t), d = b[n];
1367
1367
  if (d)
1368
1368
  i.push(d.promise);
1369
1369
  else {
1370
1370
  let o;
1371
- t.extensions && t.extensions[p.KHR_DRACO_MESH_COMPRESSION] ? o = H(t) : o = v0(new x0(), t, a), b[n] = { primitive: t, promise: o }, i.push(o);
1371
+ t.extensions && t.extensions[p.KHR_DRACO_MESH_COMPRESSION] ? o = H(t) : o = F0(new E0(), t, a), b[n] = { primitive: t, promise: o }, i.push(o);
1372
1372
  }
1373
1373
  }
1374
1374
  return Promise.all(i);
@@ -1383,7 +1383,7 @@ class I2 {
1383
1383
  loadMesh(e) {
1384
1384
  const a = this, r = this.json, b = this.extensions, H = r.meshes[e], i = H.primitives, c = [];
1385
1385
  for (let f = 0, t = i.length; f < t; f++) {
1386
- const n = i[f].material === void 0 ? g2(this.cache) : this.getDependency("material", i[f].material);
1386
+ const n = i[f].material === void 0 ? u2(this.cache) : this.getDependency("material", i[f].material);
1387
1387
  c.push(n);
1388
1388
  }
1389
1389
  return c.push(a.loadGeometries(i)), Promise.all(c).then(function(f) {
@@ -1393,18 +1393,18 @@ class I2 {
1393
1393
  let g;
1394
1394
  const _ = t[s];
1395
1395
  if (u.mode === w.TRIANGLES || u.mode === w.TRIANGLE_STRIP || u.mode === w.TRIANGLE_FAN || u.mode === void 0)
1396
- g = H.isSkinnedMesh === !0 ? new Ae(h, _) : new q0(h, _), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), u.mode === w.TRIANGLE_STRIP ? g.geometry = y0(g.geometry, T0) : u.mode === w.TRIANGLE_FAN && (g.geometry = y0(g.geometry, t0));
1396
+ g = H.isSkinnedMesh === !0 ? new he(h, _) : new G0(h, _), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), u.mode === w.TRIANGLE_STRIP ? g.geometry = m0(g.geometry, w0) : u.mode === w.TRIANGLE_FAN && (g.geometry = m0(g.geometry, f0));
1397
1397
  else if (u.mode === w.LINES)
1398
- g = new pe(h, _);
1398
+ g = new ge(h, _);
1399
1399
  else if (u.mode === w.LINE_STRIP)
1400
- g = new me(h, _);
1400
+ g = new _e(h, _);
1401
1401
  else if (u.mode === w.LINE_LOOP)
1402
- g = new je(h, _);
1402
+ g = new Ae(h, _);
1403
1403
  else if (u.mode === w.POINTS)
1404
- g = new Ie(h, _);
1404
+ g = new pe(h, _);
1405
1405
  else
1406
1406
  throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + u.mode);
1407
- Object.keys(g.geometry.morphAttributes).length > 0 && A2(g, H), g.name = a.createUniqueName(H.name || "mesh_" + e), E(g, H), u.extensions && V(b, g, u), a.assignFinalMaterial(g), d.push(g);
1407
+ Object.keys(g.geometry.morphAttributes).length > 0 && h2(g, H), g.name = a.createUniqueName(H.name || "mesh_" + e), E(g, H), u.extensions && P(b, g, u), a.assignFinalMaterial(g), d.push(g);
1408
1408
  }
1409
1409
  for (let s = 0, l = d.length; s < l; s++)
1410
1410
  a.associations.set(d[s], {
@@ -1412,9 +1412,9 @@ class I2 {
1412
1412
  primitives: s
1413
1413
  });
1414
1414
  if (d.length === 1)
1415
- return H.extensions && V(b, d[0], H), d[0];
1416
- const o = new i0();
1417
- H.extensions && V(b, o, H), a.associations.set(o, { meshes: e });
1415
+ return H.extensions && P(b, d[0], H), d[0];
1416
+ const o = new a0();
1417
+ H.extensions && P(b, o, H), a.associations.set(o, { meshes: e });
1418
1418
  for (let s = 0, l = d.length; s < l; s++)
1419
1419
  o.add(d[s]);
1420
1420
  return o;
@@ -1434,7 +1434,7 @@ class I2 {
1434
1434
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
1435
1435
  return;
1436
1436
  }
1437
- return r.type === "perspective" ? a = new ye(Fe.radToDeg(b.yfov), b.aspectRatio || 1, b.znear || 1, b.zfar || 2e6) : r.type === "orthographic" && (a = new we(-b.xmag, b.xmag, b.ymag, -b.ymag, b.znear, b.zfar)), r.name && (a.name = this.createUniqueName(r.name)), E(a, r), Promise.resolve(a);
1437
+ return r.type === "perspective" ? a = new me(je.radToDeg(b.yfov), b.aspectRatio || 1, b.znear || 1, b.zfar || 2e6) : r.type === "orthographic" && (a = new Ie(-b.xmag, b.xmag, b.ymag, -b.ymag, b.znear, b.zfar)), r.name && (a.name = this.createUniqueName(r.name)), E(a, r), Promise.resolve(a);
1438
1438
  }
1439
1439
  /**
1440
1440
  * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@@ -1453,12 +1453,12 @@ class I2 {
1453
1453
  const d = i[t];
1454
1454
  if (d) {
1455
1455
  c.push(d);
1456
- const o = new $();
1456
+ const o = new K();
1457
1457
  H !== null && o.fromArray(H.array, t * 16), f.push(o);
1458
1458
  } else
1459
1459
  console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', a.joints[t]);
1460
1460
  }
1461
- return new Ne(c, f);
1461
+ return new ye(c, f);
1462
1462
  });
1463
1463
  }
1464
1464
  /**
@@ -1483,15 +1483,15 @@ class I2 {
1483
1483
  ]).then(function(d) {
1484
1484
  const o = d[0], s = d[1], l = d[2], h = d[3], u = d[4], g = [];
1485
1485
  for (let _ = 0, m = o.length; _ < m; _++) {
1486
- const A = o[_], I = s[_], F = l[_], y = h[_], O = u[_];
1486
+ const A = o[_], I = s[_], F = l[_], y = h[_], G = u[_];
1487
1487
  if (A === void 0) continue;
1488
1488
  A.updateMatrix && A.updateMatrix();
1489
- const N = r._createAnimationTracks(A, I, F, y, O);
1489
+ const N = r._createAnimationTracks(A, I, F, y, G);
1490
1490
  if (N)
1491
- for (let T = 0; T < N.length; T++)
1492
- g.push(N[T]);
1491
+ for (let v = 0; v < N.length; v++)
1492
+ g.push(N[v]);
1493
1493
  }
1494
- return new ve(H, void 0, g);
1494
+ return new Fe(H, void 0, g);
1495
1495
  });
1496
1496
  }
1497
1497
  createNodeMesh(e) {
@@ -1524,7 +1524,7 @@ class I2 {
1524
1524
  ]).then(function(t) {
1525
1525
  const n = t[0], d = t[1], o = t[2];
1526
1526
  o !== null && n.traverse(function(s) {
1527
- s.isSkinnedMesh && s.bind(o, j2);
1527
+ s.isSkinnedMesh && s.bind(o, A2);
1528
1528
  });
1529
1529
  for (let s = 0, l = d.length; s < l; s++)
1530
1530
  n.add(d[s]);
@@ -1548,11 +1548,11 @@ class I2 {
1548
1548
  c.push(t);
1549
1549
  }), this.nodeCache[e] = Promise.all(c).then(function(t) {
1550
1550
  let n;
1551
- if (H.isBone === !0 ? n = new Te() : t.length > 1 ? n = new i0() : t.length === 1 ? n = t[0] : n = new O0(), n !== t[0])
1551
+ if (H.isBone === !0 ? n = new we() : t.length > 1 ? n = new a0() : t.length === 1 ? n = t[0] : n = new R0(), n !== t[0])
1552
1552
  for (let d = 0, o = t.length; d < o; d++)
1553
1553
  n.add(t[d]);
1554
- if (H.name && (n.userData.name = H.name, n.name = i), E(n, H), H.extensions && V(r, n, H), H.matrix !== void 0) {
1555
- const d = new $();
1554
+ if (H.name && (n.userData.name = H.name, n.name = i), E(n, H), H.extensions && P(r, n, H), H.matrix !== void 0) {
1555
+ const d = new K();
1556
1556
  d.fromArray(H.matrix), n.applyMatrix4(d);
1557
1557
  } else
1558
1558
  H.translation !== void 0 && n.position.fromArray(H.translation), H.rotation !== void 0 && n.quaternion.fromArray(H.rotation), H.scale !== void 0 && n.scale.fromArray(H.scale);
@@ -1573,8 +1573,8 @@ class I2 {
1573
1573
  * @return {Promise<Group>}
1574
1574
  */
1575
1575
  loadScene(e) {
1576
- const a = this.extensions, r = this.json.scenes[e], b = this, H = new i0();
1577
- r.name && (H.name = b.createUniqueName(r.name)), E(H, r), r.extensions && V(a, H, r);
1576
+ const a = this.extensions, r = this.json.scenes[e], b = this, H = new a0();
1577
+ r.name && (H.name = b.createUniqueName(r.name)), E(H, r), r.extensions && P(a, H, r);
1578
1578
  const i = r.nodes || [], c = [];
1579
1579
  for (let f = 0, t = i.length; f < t; f++)
1580
1580
  c.push(b.getDependency("node", i[f]));
@@ -1584,7 +1584,7 @@ class I2 {
1584
1584
  const t = (n) => {
1585
1585
  const d = /* @__PURE__ */ new Map();
1586
1586
  for (const [o, s] of b.associations)
1587
- (o instanceof b0 || o instanceof A0) && d.set(o, s);
1587
+ (o instanceof e0 || o instanceof h0) && d.set(o, s);
1588
1588
  return n.traverse((o) => {
1589
1589
  const s = b.associations.get(o);
1590
1590
  s != null && d.set(o, s);
@@ -1595,38 +1595,38 @@ class I2 {
1595
1595
  }
1596
1596
  _createAnimationTracks(e, a, r, b, H) {
1597
1597
  const i = [], c = e.name ? e.name : e.uuid, f = [];
1598
- G[H.path] === G.weights ? e.traverse(function(o) {
1598
+ U[H.path] === U.weights ? e.traverse(function(o) {
1599
1599
  o.morphTargetInfluences && f.push(o.name ? o.name : o.uuid);
1600
1600
  }) : f.push(c);
1601
1601
  let t;
1602
- switch (G[H.path]) {
1603
- case G.weights:
1604
- t = m0;
1602
+ switch (U[H.path]) {
1603
+ case U.weights:
1604
+ t = _0;
1605
1605
  break;
1606
- case G.rotation:
1607
- t = j0;
1606
+ case U.rotation:
1607
+ t = A0;
1608
1608
  break;
1609
- case G.translation:
1610
- case G.scale:
1611
- t = p0;
1609
+ case U.translation:
1610
+ case U.scale:
1611
+ t = g0;
1612
1612
  break;
1613
1613
  default:
1614
1614
  switch (r.itemSize) {
1615
1615
  case 1:
1616
- t = m0;
1616
+ t = _0;
1617
1617
  break;
1618
1618
  case 2:
1619
1619
  case 3:
1620
1620
  default:
1621
- t = p0;
1621
+ t = g0;
1622
1622
  break;
1623
1623
  }
1624
1624
  break;
1625
1625
  }
1626
- const n = b.interpolation !== void 0 ? h2[b.interpolation] : B0, d = this._getArrayFromAccessor(r);
1626
+ const n = b.interpolation !== void 0 ? s2[b.interpolation] : U0, d = this._getArrayFromAccessor(r);
1627
1627
  for (let o = 0, s = f.length; o < s; o++) {
1628
1628
  const l = new t(
1629
- f[o] + "." + G[H.path],
1629
+ f[o] + "." + U[H.path],
1630
1630
  a.array,
1631
1631
  d,
1632
1632
  n
@@ -1638,7 +1638,7 @@ class I2 {
1638
1638
  _getArrayFromAccessor(e) {
1639
1639
  let a = e.array;
1640
1640
  if (e.normalized) {
1641
- const r = s0(a.constructor), b = new Float32Array(a.length);
1641
+ const r = o0(a.constructor), b = new Float32Array(a.length);
1642
1642
  for (let H = 0, i = a.length; H < i; H++)
1643
1643
  b[H] = a[H] * r;
1644
1644
  a = b;
@@ -1647,13 +1647,13 @@ class I2 {
1647
1647
  }
1648
1648
  _createCubicSplineTrackInterpolant(e) {
1649
1649
  e.createInterpolant = function(r) {
1650
- const b = this instanceof j0 ? l2 : W0;
1650
+ const b = this instanceof A0 ? k2 : B0;
1651
1651
  return new b(this.times, this.values, this.getValueSize() / 3, r);
1652
1652
  }, e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0;
1653
1653
  }
1654
1654
  }
1655
- function y2(k, e, a) {
1656
- const r = e.attributes, b = new V0();
1655
+ function m2(k, e, a) {
1656
+ const r = e.attributes, b = new x0();
1657
1657
  if (r.POSITION !== void 0) {
1658
1658
  const c = a.json.accessors[r.POSITION], f = c.min, t = c.max;
1659
1659
  if (f !== void 0 && t !== void 0) {
@@ -1661,7 +1661,7 @@ function y2(k, e, a) {
1661
1661
  new C(f[0], f[1], f[2]),
1662
1662
  new C(t[0], t[1], t[2])
1663
1663
  ), c.normalized) {
1664
- const n = s0(L[c.componentType]);
1664
+ const n = o0(L[c.componentType]);
1665
1665
  b.min.multiplyScalar(n), b.max.multiplyScalar(n);
1666
1666
  }
1667
1667
  } else {
@@ -1679,7 +1679,7 @@ function y2(k, e, a) {
1679
1679
  const o = a.json.accessors[d.POSITION], s = o.min, l = o.max;
1680
1680
  if (s !== void 0 && l !== void 0) {
1681
1681
  if (f.setX(Math.max(Math.abs(s[0]), Math.abs(l[0]))), f.setY(Math.max(Math.abs(s[1]), Math.abs(l[1]))), f.setZ(Math.max(Math.abs(s[2]), Math.abs(l[2]))), o.normalized) {
1682
- const h = s0(L[o.componentType]);
1682
+ const h = o0(L[o.componentType]);
1683
1683
  f.multiplyScalar(h);
1684
1684
  }
1685
1685
  c.max(f);
@@ -1690,10 +1690,10 @@ function y2(k, e, a) {
1690
1690
  b.expandByVector(c);
1691
1691
  }
1692
1692
  k.boundingBox = b;
1693
- const i = new Ee();
1693
+ const i = new Me();
1694
1694
  b.getCenter(i.center), i.radius = b.min.distanceTo(b.max) / 2, k.boundingSphere = i;
1695
1695
  }
1696
- function v0(k, e, a) {
1696
+ function F0(k, e, a) {
1697
1697
  const r = e.attributes, b = [];
1698
1698
  function H(i, c) {
1699
1699
  return a.getDependency("accessor", i).then(function(f) {
@@ -1701,7 +1701,7 @@ function v0(k, e, a) {
1701
1701
  });
1702
1702
  }
1703
1703
  for (const i in r) {
1704
- const c = k0[i] || i.toLowerCase();
1704
+ const c = n0[i] || i.toLowerCase();
1705
1705
  c in k.attributes || b.push(H(r[i], c));
1706
1706
  }
1707
1707
  if (e.indices !== void 0 && !k.index) {
@@ -1710,12 +1710,12 @@ function v0(k, e, a) {
1710
1710
  });
1711
1711
  b.push(i);
1712
1712
  }
1713
- return o0.workingColorSpace !== M && "COLOR_0" in r && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${o0.workingColorSpace}" not supported.`), E(k, e), y2(k, e, a), Promise.all(b).then(function() {
1714
- return e.targets !== void 0 ? _2(k, e.targets, a) : k;
1713
+ return d0.workingColorSpace !== M && "COLOR_0" in r && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${d0.workingColorSpace}" not supported.`), E(k, e), m2(k, e, a), Promise.all(b).then(function() {
1714
+ return e.targets !== void 0 ? l2(k, e.targets, a) : k;
1715
1715
  });
1716
1716
  }
1717
- const c0 = /* @__PURE__ */ new WeakMap();
1718
- class F2 extends R0 {
1717
+ const r0 = /* @__PURE__ */ new WeakMap();
1718
+ class j2 extends N0 {
1719
1719
  /**
1720
1720
  * Constructs a new Draco loader.
1721
1721
  *
@@ -1772,7 +1772,7 @@ class F2 extends R0 {
1772
1772
  * @param {onErrorCallback} onError - Executed when errors occur.
1773
1773
  */
1774
1774
  load(e, a, r, b) {
1775
- const H = new X(this.manager);
1775
+ const H = new Y(this.manager);
1776
1776
  H.setPath(this.path), H.setResponseType("arraybuffer"), H.setRequestHeader(this.requestHeader), H.setWithCredentials(this.withCredentials), H.load(e, (i) => {
1777
1777
  this.parse(i, a, b);
1778
1778
  }, r, b);
@@ -1786,7 +1786,7 @@ class F2 extends R0 {
1786
1786
  */
1787
1787
  parse(e, a, r = () => {
1788
1788
  }) {
1789
- this.decodeDracoFile(e, a, null, null, U, r).catch(r);
1789
+ this.decodeDracoFile(e, a, null, null, x, r).catch(r);
1790
1790
  }
1791
1791
  //
1792
1792
  decodeDracoFile(e, a, r, b, H = M, i = () => {
@@ -1801,8 +1801,8 @@ class F2 extends R0 {
1801
1801
  }
1802
1802
  decodeGeometry(e, a) {
1803
1803
  const r = JSON.stringify(a);
1804
- if (c0.has(e)) {
1805
- const f = c0.get(e);
1804
+ if (r0.has(e)) {
1805
+ const f = r0.get(e);
1806
1806
  if (f.key === r)
1807
1807
  return f.promise;
1808
1808
  if (e.byteLength === 0)
@@ -1816,13 +1816,13 @@ class F2 extends R0 {
1816
1816
  }))).then((f) => this._createGeometry(f.geometry));
1817
1817
  return c.catch(() => !0).then(() => {
1818
1818
  b && H && this._releaseTask(b, H);
1819
- }), c0.set(e, {
1819
+ }), r0.set(e, {
1820
1820
  key: r,
1821
1821
  promise: c
1822
1822
  }), c;
1823
1823
  }
1824
1824
  _createGeometry(e) {
1825
- const a = new x0();
1825
+ const a = new E0();
1826
1826
  e.index && a.setIndex(new J(e.index.array, 1));
1827
1827
  for (let r = 0; r < e.attributes.length; r++) {
1828
1828
  const b = e.attributes[r], H = b.name, i = b.array, c = b.itemSize, f = new J(i, c);
@@ -1831,13 +1831,13 @@ class F2 extends R0 {
1831
1831
  return a;
1832
1832
  }
1833
1833
  _assignVertexColorSpace(e, a) {
1834
- if (a !== U) return;
1835
- const r = new x();
1834
+ if (a !== x) return;
1835
+ const r = new q();
1836
1836
  for (let b = 0, H = e.count; b < H; b++)
1837
- r.fromBufferAttribute(e, b), o0.colorSpaceToWorking(r, U), e.setXYZ(b, r.r, r.g, r.b);
1837
+ r.fromBufferAttribute(e, b), d0.colorSpaceToWorking(r, x), e.setXYZ(b, r.r, r.g, r.b);
1838
1838
  }
1839
1839
  _loadLibrary(e, a) {
1840
- const r = new X(this.manager);
1840
+ const r = new Y(this.manager);
1841
1841
  return r.setPath(this.decoderPath), r.setResponseType(a), r.setWithCredentials(this.withCredentials), new Promise((b, H) => {
1842
1842
  r.load(e, b, void 0, H);
1843
1843
  });
@@ -1851,7 +1851,7 @@ class F2 extends R0 {
1851
1851
  return e ? a.push(this._loadLibrary("draco_decoder.js", "text")) : (a.push(this._loadLibrary("draco_wasm_wrapper.js", "text")), a.push(this._loadLibrary("draco_decoder.wasm", "arraybuffer"))), this.decoderPending = Promise.all(a).then((r) => {
1852
1852
  const b = r[0];
1853
1853
  e || (this.decoderConfig.wasmBinary = r[1]);
1854
- const H = w2.toString(), i = [
1854
+ const H = I2.toString(), i = [
1855
1855
  "/* draco decoder */",
1856
1856
  b,
1857
1857
  "",
@@ -1899,7 +1899,7 @@ class F2 extends R0 {
1899
1899
  return this.workerPool.length = 0, this.workerSourceURL !== "" && URL.revokeObjectURL(this.workerSourceURL), this;
1900
1900
  }
1901
1901
  }
1902
- function w2() {
1902
+ function I2() {
1903
1903
  let k, e;
1904
1904
  onmessage = function(i) {
1905
1905
  const c = i.data;
@@ -1989,7 +1989,7 @@ function w2() {
1989
1989
  }
1990
1990
  }
1991
1991
  }
1992
- const N2 = `
1992
+ const y2 = `
1993
1993
  var DracoDecoderModule = (() => {
1994
1994
  var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
1995
1995
  if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
@@ -2024,8 +2024,8 @@ else if (typeof define === 'function' && define['amd'])
2024
2024
  else if (typeof exports === 'object')
2025
2025
  exports["DracoDecoderModule"] = DracoDecoderModule;
2026
2026
  `;
2027
- function v2() {
2028
- const k = S(!1), e = S(""), a = L0([]), r = S(null), b = new Ve(), H = new Pe(), i = new We(), c = new Se();
2027
+ function F2() {
2028
+ const k = S(!1), e = S(""), a = W0([]), r = S(null), b = new xe(), H = new qe(), i = new Be(), c = new Pe();
2029
2029
  let f = null;
2030
2030
  return {
2031
2031
  isLoading: k,
@@ -2059,31 +2059,31 @@ function v2() {
2059
2059
  case "obj":
2060
2060
  const I = u.replace(/\.obj$/i, ".mtl").toLowerCase();
2061
2061
  if (d.has(I)) {
2062
- const T = d.get(I), P = URL.createObjectURL(T);
2063
- o.push(P);
2064
- const Y = await b.loadAsync(P);
2065
- Y.preload(), H.setMaterials(Y);
2062
+ const v = d.get(I), O = URL.createObjectURL(v);
2063
+ o.push(O);
2064
+ const j = await b.loadAsync(O);
2065
+ j.preload(), H.setMaterials(j);
2066
2066
  } else
2067
2067
  H.setMaterials(null);
2068
2068
  m = await H.loadAsync(_, A);
2069
2069
  break;
2070
2070
  case "stl":
2071
- const F = await i.loadAsync(_, A), y = new Ge({ color: 11184810, specular: 1118481, shininess: 200 });
2072
- m = new q0(F, y);
2071
+ const F = await i.loadAsync(_, A), y = new De({ color: 11184810, specular: 1118481, shininess: 200 });
2072
+ m = new G0(F, y);
2073
2073
  break;
2074
2074
  case "gltf":
2075
2075
  m = (await c.loadAsync(_, A)).scene;
2076
2076
  break;
2077
2077
  case "glb":
2078
- f || (f = new F2(), f._loadLibrary = function(T, P) {
2079
- return T === "draco_decoder.js" && P === "text" ? Promise.resolve(N2) : Promise.reject(new Error(`DRACOLoader: 未预期的库请求 ${T}`));
2078
+ f || (f = new j2(), f._loadLibrary = function(v, O) {
2079
+ return v === "draco_decoder.js" && O === "text" ? Promise.resolve(y2) : Promise.reject(new Error(`DRACOLoader: 未预期的库请求 ${v}`));
2080
2080
  }, f.setDecoderConfig({ type: "js" }), f.preload()), c.setDRACOLoader(f), m = (await c.loadAsync(_, A)).scene;
2081
2081
  break;
2082
2082
  default:
2083
2083
  console.warn(`不支持的文件类型: .${g}`), e.value = `不支持的文件类型: ${u}`;
2084
2084
  continue;
2085
2085
  }
2086
- m && (m.userData.boundingBox = new V0().setFromObject(m), s.push(m));
2086
+ m && (m.userData.boundingBox = new x0().setFromObject(m), s.push(m));
2087
2087
  }
2088
2088
  a.value = s, e.value = "加载完成!";
2089
2089
  } catch (h) {
@@ -2094,21 +2094,21 @@ function v2() {
2094
2094
  }
2095
2095
  };
2096
2096
  }
2097
- function T2(k, e = {}) {
2097
+ function w2(k, e = {}) {
2098
2098
  const a = {
2099
2099
  threeInfo: {},
2100
2100
  modelLoader: {},
2101
2101
  animation: {},
2102
2102
  clipping: {}
2103
- }, r = Ue(k);
2103
+ }, r = Oe(k);
2104
2104
  a.threeInfo = r;
2105
2105
  const { currentModels: b, getThreeJSObjects: H } = r, { useModelLoaderHook: i, useAnimationHook: c, useClippingHook: f } = e;
2106
- return i && (a.modelLoader = v2()), c && (a.animation = xe(H, b)), f && (a.clipping = qe(H, b)), a;
2106
+ return i && (a.modelLoader = F2()), c && (a.animation = Ee(H, b)), f && (a.clipping = Ge(H, b)), a;
2107
2107
  }
2108
- const R2 = { class: "obj-viewer-container" }, M2 = { class: "buttonGroup-topLeft" }, D2 = { class: "buttonGroup-left" }, O2 = { class: "buttonGroup-right" }, E2 = { class: "left-panel" }, G2 = { class: "panel-header" }, U2 = {
2108
+ const N2 = { class: "obj-viewer-container" }, v2 = { class: "buttonGroup-topLeft" }, T2 = { class: "buttonGroup-left" }, R2 = { class: "buttonGroup-right" }, M2 = { class: "left-panel" }, D2 = { class: "panel-header" }, O2 = {
2109
2109
  key: 0,
2110
2110
  class: "loading-overlay"
2111
- }, x2 = /* @__PURE__ */ Z0({
2111
+ }, E2 = /* @__PURE__ */ C0({
2112
2112
  __name: "threePreview",
2113
2113
  props: {
2114
2114
  fileBlobs: { default: () => [] }
@@ -2116,146 +2116,144 @@ const R2 = { class: "obj-viewer-container" }, M2 = { class: "buttonGroup-topLeft
2116
2116
  setup(k) {
2117
2117
  const e = k, a = S(null), r = S(!1), b = S(""), {
2118
2118
  threeInfo: {
2119
- currentModels: H,
2120
- resetView: i,
2121
- initThreeJS: c,
2122
- handleResize: f,
2123
- getThreeJSObjects: t,
2124
- cleanup: n,
2125
- setAndFitModels: d,
2126
- axesHelperVisible: o,
2127
- toggleAxesVisibility: s
2119
+ resetView: H,
2120
+ initThreeJS: i,
2121
+ handleResize: c,
2122
+ cleanup: f,
2123
+ setAndFitModels: t,
2124
+ axesHelperVisible: n,
2125
+ toggleAxesVisibility: d
2128
2126
  },
2129
2127
  modelLoader: {
2130
- isLoading: l,
2131
- loadingProgress: h,
2132
- loadedModels: u,
2133
- error: g,
2134
- loadModelsFromBlobs: _
2128
+ isLoading: o,
2129
+ loadingProgress: s,
2130
+ loadedModels: l,
2131
+ error: h,
2132
+ loadModelsFromBlobs: u
2135
2133
  },
2136
- animation: { isAnimating: m, toggleAnimation: A, startAnimation: I, stopAnimation: F },
2134
+ animation: { isAnimating: g, toggleAnimation: _, stopAnimation: m },
2137
2135
  clipping: {
2138
- isClipping: y,
2139
- activeClippingAxis: O,
2140
- toggleClipping: N,
2141
- updateClippingPlanes: T
2136
+ isClipping: A,
2137
+ activeClippingAxis: I,
2138
+ toggleClipping: F,
2139
+ updateClippingPlanes: y
2142
2140
  }
2143
- } = T2(a, {
2141
+ } = w2(a, {
2144
2142
  useModelLoaderHook: !0,
2145
2143
  useAnimationHook: !0,
2146
2144
  useClippingHook: !0
2147
- }), P = () => {
2148
- s();
2149
- }, Y = (j) => {
2150
- O.value = j, T();
2145
+ }), G = () => {
2146
+ d();
2147
+ }, N = (j) => {
2148
+ I.value = j, y();
2151
2149
  };
2152
- e0(() => e.fileBlobs, (j) => {
2153
- j && j.length > 0 && _(j).catch((R) => {
2150
+ X(() => e.fileBlobs, (j) => {
2151
+ j && j.length > 0 && u(j).catch((R) => {
2154
2152
  console.error("加载错误:", R);
2155
2153
  });
2156
2154
  }, {
2157
2155
  immediate: !0,
2158
2156
  deep: !0
2159
- }), e0(u, (j) => {
2160
- j && j.length > 0 && d(j);
2161
- }), e0(g, (j) => {
2162
- j && I0.error(`模型加载失败: ${j}`);
2157
+ }), X(l, (j) => {
2158
+ j && j.length > 0 && t(j);
2159
+ }), X(h, (j) => {
2160
+ j && p0.error(`模型加载失败: ${j}`);
2163
2161
  });
2164
- const u0 = (j) => {
2165
- r.value = !0, b.value = j, j === "剖面视图" && !y.value && N();
2162
+ const v = (j) => {
2163
+ r.value = !0, b.value = j, j === "剖面视图" && !A.value && F();
2166
2164
  };
2167
- let K = null;
2168
- return z0(async () => {
2169
- await Q0();
2165
+ let O = null;
2166
+ return S0(async () => {
2167
+ await L0();
2170
2168
  try {
2171
- c(), a.value && (K = new ResizeObserver(f), K.observe(a.value));
2169
+ i(), a.value && (O = new ResizeObserver(c), O.observe(a.value));
2172
2170
  } catch (j) {
2173
- console.error("Three.js 初始化失败:", j), I0.error("渲染引擎初始化失败!");
2171
+ console.error("Three.js 初始化失败:", j), p0.error("渲染引擎初始化失败!");
2174
2172
  }
2175
- }), J0(() => {
2176
- b.value = "", K && K.disconnect(), m.value && F(), n();
2173
+ }), Z0(() => {
2174
+ b.value = "", O && O.disconnect(), g.value && m(), f();
2177
2175
  }), (j, R) => {
2178
- const C0 = Y0("el-scrollbar");
2179
- return a0(), l0("div", R2, [
2180
- v("div", {
2176
+ const V0 = z0("el-scrollbar");
2177
+ return $(), k0("div", N2, [
2178
+ T("div", {
2181
2179
  ref_key: "threejsContainer",
2182
2180
  ref: a,
2183
2181
  class: "threejs-container"
2184
2182
  }, null, 512),
2185
- v("div", M2, [
2186
- q(W, {
2183
+ T("div", v2, [
2184
+ B(W, {
2187
2185
  name: "viewReset",
2188
2186
  size: "24",
2189
- onClick: B(i),
2187
+ onClick: V(H),
2190
2188
  title: "重置"
2191
2189
  }, null, 8, ["onClick"]),
2192
- q(W, {
2190
+ B(W, {
2193
2191
  name: "fangda",
2194
2192
  size: "24",
2195
2193
  title: "放大"
2196
2194
  }),
2197
- q(W, {
2195
+ B(W, {
2198
2196
  name: "suoxiao",
2199
2197
  size: "24",
2200
2198
  title: "缩小"
2201
2199
  }),
2202
- q(W, {
2200
+ B(W, {
2203
2201
  name: "lookAround",
2204
2202
  size: "24",
2205
- onClick: B(A),
2206
- title: B(m) ? "停止动画" : "动画视图"
2203
+ onClick: V(_),
2204
+ title: V(g) ? "停止动画" : "动画视图"
2207
2205
  }, null, 8, ["onClick", "title"]),
2208
- q(W, {
2206
+ B(W, {
2209
2207
  name: "zuobiaoxi",
2210
2208
  size: "24",
2211
- active: B(o),
2212
- onClick: P,
2209
+ active: V(n),
2210
+ onClick: G,
2213
2211
  title: "显隐坐标轴"
2214
2212
  }, null, 8, ["active"])
2215
2213
  ]),
2216
- v("div", D2, [
2217
- h0(j.$slots, "button-left", { switchRightPanel: u0 }, void 0, !0),
2218
- q(W, {
2214
+ T("div", T2, [
2215
+ s0(j.$slots, "button-left", { switchRightPanel: v }, void 0, !0),
2216
+ B(W, {
2219
2217
  name: "clipping",
2220
2218
  size: "24",
2221
- onClick: R[0] || (R[0] = (S0) => u0("剖面视图")),
2219
+ onClick: R[0] || (R[0] = (P0) => v("剖面视图")),
2222
2220
  active: r.value && b.value === "剖面视图",
2223
2221
  title: "剖面视图"
2224
2222
  }, null, 8, ["active"])
2225
2223
  ]),
2226
- v("div", O2, [
2227
- h0(j.$slots, "button-right", {}, void 0, !0)
2224
+ T("div", R2, [
2225
+ s0(j.$slots, "button-right", {}, void 0, !0)
2228
2226
  ]),
2229
- R[3] || (R[3] = v("div", { class: "buttonGroup-bottom" }, null, -1)),
2230
- K0(v("div", E2, [
2231
- v("div", G2, [
2232
- v("span", null, g0(b.value), 1),
2233
- v("span", {
2227
+ R[3] || (R[3] = T("div", { class: "buttonGroup-bottom" }, null, -1)),
2228
+ Q0(T("div", M2, [
2229
+ T("div", D2, [
2230
+ T("span", null, u0(b.value), 1),
2231
+ T("span", {
2234
2232
  class: "close",
2235
- onClick: R[1] || (R[1] = (S0) => r.value = !1)
2233
+ onClick: R[1] || (R[1] = (P0) => r.value = !1)
2236
2234
  }, " X ")
2237
2235
  ]),
2238
- q(C0, { "max-height": "650px" }, {
2239
- default: X0(() => [
2240
- b.value === "剖面视图" ? (a0(), $0(Be, {
2236
+ B(V0, { "max-height": "650px" }, {
2237
+ default: J0(() => [
2238
+ b.value === "剖面视图" ? ($(), Y0(Ue, {
2241
2239
  key: 0,
2242
- value: B(O),
2243
- onChange: Y
2244
- }, null, 8, ["value"])) : _0("", !0)
2240
+ value: V(I),
2241
+ onChange: N
2242
+ }, null, 8, ["value"])) : l0("", !0)
2245
2243
  ]),
2246
2244
  _: 1
2247
2245
  })
2248
2246
  ], 512), [
2249
- [ee, r.value]
2247
+ [K0, r.value]
2250
2248
  ]),
2251
- B(l) ? (a0(), l0("div", U2, [
2252
- R[2] || (R[2] = v("div", { class: "loading-spinner" }, null, -1)),
2253
- v("p", null, g0(B(h)), 1)
2254
- ])) : _0("", !0)
2249
+ V(o) ? ($(), k0("div", O2, [
2250
+ R[2] || (R[2] = T("div", { class: "loading-spinner" }, null, -1)),
2251
+ T("p", null, u0(V(s)), 1)
2252
+ ])) : l0("", !0)
2255
2253
  ]);
2256
2254
  };
2257
2255
  }
2258
- }), L2 = /* @__PURE__ */ Ce(x2, [["__scopeId", "data-v-2268e4d4"]]);
2256
+ }), W2 = /* @__PURE__ */ Ve(E2, [["__scopeId", "data-v-6056a680"]]);
2259
2257
  export {
2260
- L2 as default
2258
+ W2 as default
2261
2259
  };