ss-component-new 1.2.57 → 1.2.59

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 (110) hide show
  1. package/dist/animationData-CEkMmPAJ.js +111 -0
  2. package/dist/animationData-FLuoH13j.cjs +1 -0
  3. package/dist/{iconfont-Du5a0yIR.js → iconfont-Dp3iGl32.js} +318 -244
  4. package/dist/iconfont-ji7A-_XJ.cjs +1 -0
  5. package/dist/icons/svg/CopyAddMenu.svg +1 -0
  6. package/dist/icons/svg/DeleteMenu.svg +1 -0
  7. package/dist/icons/svg/FixedMenu.svg +1 -0
  8. package/dist/icons/svg//345/273/272/346/250/241/345/210/206/346/236/220.svg +1 -0
  9. package/dist/icons/svg//347/256/227/346/263/225.svg +1 -1
  10. package/dist/{index-BMMCYEsB.js → index--qwZeW47.js} +1 -1
  11. package/dist/{index-DtlFU8RR.cjs → index-B1U77nyf.cjs} +1 -1
  12. package/dist/index-BEfSpHE6.js +17 -0
  13. package/dist/{index-CEkY4nFt.js → index-BFHCLxvz.js} +1 -1
  14. package/dist/index-BN4opOSk.cjs +1 -0
  15. package/dist/{index-B55haWsS.js → index-BNES2eKm.js} +1 -1
  16. package/dist/{index-kXlrQUA8.js → index-BTwRUubF.js} +2 -2
  17. package/dist/{index-DmfzZIKw.cjs → index-BYIlecoJ.cjs} +1 -1
  18. package/dist/{index-D0NMKMU8.cjs → index-BgwYXT31.cjs} +1 -1
  19. package/dist/{index-hL7adbcf.js → index-BiUFu7a_.js} +1500 -1636
  20. package/dist/{index-DYopbovE.js → index-BooTgcW2.js} +1633 -1632
  21. package/dist/{index-CJVA_tHw.cjs → index-BxEjroD6.cjs} +1 -1
  22. package/dist/index-C14Eek69.js +32 -0
  23. package/dist/index-C8IFPtAJ.js +12233 -0
  24. package/dist/index-C9C84gkB.cjs +1 -0
  25. package/dist/{index-BO7R6DCb.cjs → index-CDW8XzWT.cjs} +1 -1
  26. package/dist/index-CHzlphv9.cjs +1 -0
  27. package/dist/{index-vrO7i-BX.cjs → index-CWG2zhJZ.cjs} +1 -1
  28. package/dist/{index-DURGsNBh.js → index-ChyicQIl.js} +1 -1
  29. package/dist/index-D57Bv8co.cjs +1 -0
  30. package/dist/{index-BPiXU1VF.js → index-DAJoy_Z5.js} +1 -1
  31. package/dist/{index-DhbAgrix.cjs → index-DIpWkFjh.cjs} +1 -1
  32. package/dist/index-DLU6Qv3w.cjs +15 -0
  33. package/dist/{index-BQWUpvXk.js → index-DN40xEbb.js} +2 -2
  34. package/dist/{index-HsZY-XbO.js → index-DNs7ujiq.js} +1 -1
  35. package/dist/{index-C8x2JQx7.cjs → index-DXGiAs1G.cjs} +1 -1
  36. package/dist/{index-D3cFqWf8.js → index-DZQjq0ZR.js} +1 -1
  37. package/dist/index-DkNldOC0.cjs +1 -0
  38. package/dist/{index-CgHWXZbW.cjs → index-DuamAhUi.cjs} +1 -1
  39. package/dist/index-DvgAOa6m.js +2858 -0
  40. package/dist/{index-By-PfzqJ.js → index-FUWILZwY.js} +16 -16
  41. package/dist/{index-C9QGZutp.cjs → index-JXXdn01K.cjs} +1 -1
  42. package/dist/{index-Du-GlV8c.cjs → index-LVKvj2hU.cjs} +1 -1
  43. package/dist/{index-D2vsFTnY.js → index-OLQpbvuS.js} +6 -6
  44. package/dist/{index-JGSZNtiO.js → index-YoJfAd5X.js} +1 -1
  45. package/dist/{index-BgLb2tvo.js → index-bcbWOGXs.js} +3 -3
  46. package/dist/{index-cOj9uZ5B.cjs → index-gcSJbApQ.cjs} +1 -1
  47. package/dist/index-lP-_9Gsb.cjs +1 -0
  48. package/dist/index-qDBAJZN2.cjs +1 -0
  49. package/dist/{index-GShz2NEi.js → index-rPWz6KHn.js} +2 -2
  50. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bff2sYnQ.cjs +37 -0
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DkxmFS5P.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-D6uh0ooh.js} +10026 -10039
  52. package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-DlyCfLDJ.cjs +1 -0
  53. package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-Dt5lXvbN.js +195 -0
  54. package/dist/{index.vue_vue_type_style_index_1_lang-BEmLh6pe.js → index.vue_vue_type_style_index_1_lang-BUhvhTqt.js} +1 -1
  55. package/dist/{index.vue_vue_type_style_index_1_lang-Dsas9C9w.cjs → index.vue_vue_type_style_index_1_lang-DDYxgdQk.cjs} +1 -1
  56. package/dist/{main-B59ixZA7.js → main-ChUyYPuq.js} +2 -2
  57. package/dist/{main-B3gx12Xo.cjs → main-D-bdppOV.cjs} +1 -1
  58. package/dist/ss-component.cjs +1 -1
  59. package/dist/ss-component.css +2 -2
  60. package/dist/ss-component.js +6 -6
  61. package/dist/ss-component2.cjs +1 -1
  62. package/dist/ss-component2.js +10 -10
  63. package/dist/{threeModel-CxRJigCx.cjs → threeModel-CDFo3As-.cjs} +1 -1
  64. package/dist/{threeModel-ardn7Q2K.js → threeModel-DcuAlWjb.js} +2 -2
  65. package/dist/{threePreview-L8T-JdQL.js → threePreview-DhMkG1np.js} +350 -380
  66. package/dist/threePreview-q4R-oAs6.cjs +1 -0
  67. package/dist/threeSceneView-CAsVH82L.cjs +5 -0
  68. package/dist/threeSceneView-Dav7AGkH.js +1288 -0
  69. package/dist/threeSceneViewForCPMPIP-9__8NGa5.cjs +5 -0
  70. package/dist/threeSceneViewForCPMPIP-DxFYivgN.js +599 -0
  71. package/dist/threeTrackPathView-B7yrSLKq.cjs +370 -0
  72. package/dist/{threeTrackPathView-gTDb6Ckq.js → threeTrackPathView-DXCMl3aZ.js} +307 -376
  73. package/dist/{xlsx-ByPOQ6N_.js → threeViewerHost-BNnzz6WM.js} +4414 -4032
  74. package/dist/threeViewerHost-D70yS3z2.cjs +104 -0
  75. package/dist/{workpieceTreePanel-GlMrvoGI.js → workpieceTreePanel-CCbVIIlm.js} +92 -101
  76. package/dist/workpieceTreePanel-KdP9UaVe.cjs +1 -0
  77. package/package.json +1 -1
  78. package/public/icons/svg/CopyAddMenu.svg +1 -0
  79. package/public/icons/svg/DeleteMenu.svg +1 -0
  80. package/public/icons/svg/FixedMenu.svg +1 -0
  81. package/public/icons/svg//345/273/272/346/250/241/345/210/206/346/236/220.svg +1 -0
  82. package/public/icons/svg//347/256/227/346/263/225.svg +1 -1
  83. package/dist/animationData-CSjRG83z.cjs +0 -1
  84. package/dist/animationData-DgukZCiZ.js +0 -69
  85. package/dist/dataUtil-Bg8jgTaT.js +0 -52
  86. package/dist/dataUtil-CflXOlIl.cjs +0 -1
  87. package/dist/fileUtil-CVIZ039M.js +0 -99
  88. package/dist/fileUtil-DugRTZPB.cjs +0 -1
  89. package/dist/iconfont-BUDQryy4.cjs +0 -1
  90. package/dist/index-BAkz3vaY.js +0 -12229
  91. package/dist/index-BE76NHis.js +0 -2848
  92. package/dist/index-CXGkiovm.cjs +0 -1
  93. package/dist/index-CaV-J52G.cjs +0 -1
  94. package/dist/index-D4y4pCNq.cjs +0 -1
  95. package/dist/index-DKQuP1UM.cjs +0 -1
  96. package/dist/index-DhPNGzbc.cjs +0 -1
  97. package/dist/index-fw0RZg-d.cjs +0 -15
  98. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-til9urRl.cjs +0 -37
  99. package/dist/index.vue_vue_type_style_index_0_scoped_92477073_lang-5Hi_RNl1.cjs +0 -1
  100. package/dist/index.vue_vue_type_style_index_0_scoped_92477073_lang-DIFWhOl8.js +0 -212
  101. package/dist/threePreview-5-O-sZIc.cjs +0 -1
  102. package/dist/threeSceneView-BYl4rYgi.js +0 -1369
  103. package/dist/threeSceneView-igg9HZ8X.cjs +0 -5
  104. package/dist/threeSceneViewForCPMPIP-C-o-rOZ9.js +0 -662
  105. package/dist/threeSceneViewForCPMPIP-DfPj5iau.cjs +0 -5
  106. package/dist/threeTrackPathView-CgjLFXmL.cjs +0 -370
  107. package/dist/threeViewerHost-DvAkN_z-.js +0 -322
  108. package/dist/threeViewerHost-PGblwq3d.cjs +0 -1
  109. package/dist/workpieceTreePanel-Cr4nTOQE.cjs +0 -1
  110. package/dist/xlsx-BPHygxEf.cjs +0 -104
@@ -1,14 +1,14 @@
1
- import { ref as K, shallowRef as Be, defineComponent as Ke, watch as Z, onMounted as Ve, nextTick as ze, onBeforeUnmount as Xe, resolveComponent as qe, createElementBlock as ee, openBlock as te, createElementVNode as _, withDirectives as z, createCommentVNode as pe, createVNode as H, unref as b, renderSlot as me, toDisplayString as ge, withCtx as We, isRef as $, vModelRadio as J, vShow as Ye } from "vue";
2
- import { u as $e, a as Je, b as Qe } from "./iconfont-Du5a0yIR.js";
3
- import { a4 as Ze, a5 as ce, a6 as Se, a7 as et, a8 as W, a9 as Ne, aa as O, ab as Ie, C as G, ac as P, w as Y, ad as tt, F as nt, E as st, O as Q, V as B, ae as rt, af as Ce, ag as it, ah as Oe, ai as ot, aj as at, ak as ne, al as ct, am as ve, an as lt, ao as ut, ap as ft, aq as le, ar as ke, as as ue, at as dt, au as ht, av as pt, aw as se, ax as mt, Y as Pe, K as gt, ay as q, az as Tt, _ as xt, aA as Rt, z as Fe, aB as Et, a0 as At, aC as Lt, aD as _t, U as re, P as Mt, Q as wt, aE as yt, aF as bt, aG as St, aH as Nt, aI as It, aJ as De, aK as Ct, aL as Te, aM as xe, aN as Re, aO as Ee, aP as Ae, aQ as Ot, aR as vt, B as He, aS as kt, J as Pt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZPnZF-N.js";
4
- import { E as Le } from "./index-DsSA-OiE.js";
5
- import { M as Ft, O as Dt, S as Ht } from "./MTLLoader-Bl6JMZD-.js";
6
- import { T as j } from "./svgIcon-D-_fXUBL.js";
7
- import { _ as Ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- function _e(f, t) {
9
- if (t === Ze)
1
+ import { ref as B, shallowRef as je, defineComponent as Be, watch as Y, onMounted as Ke, nextTick as Ve, onBeforeUnmount as ze, resolveComponent as Xe, createElementBlock as le, openBlock as $, createElementVNode as b, withDirectives as qe, createCommentVNode as ue, createVNode as F, unref as D, renderSlot as fe, toDisplayString as de, withCtx as We, createBlock as Ye, vShow as $e } from "vue";
2
+ import { a4 as Je, a5 as se, a6 as Me, a7 as Qe, a8 as X, a9 as we, aa as C, ab as ye, C as G, ac as v, w as q, ad as Ze, F as et, E as tt, O as W, V as j, ae as nt, af as Se, ag as st, ah as be, ai as rt, aj as it, ak as J, al as ot, am as Ne, an as at, ao as ct, ap as lt, aq as re, ar as Ie, as as ie, at as ut, au as ft, av as dt, aw as Q, ax as ht, Y as Ce, K as pt, ay as z, az as mt, _ as gt, aA as Tt, z as Oe, aB as xt, a0 as Rt, aC as Et, aD as At, U as Z, P as _t, Q as Lt, aE as Mt, aF as wt, aG as yt, aH as St, aI as bt, aJ as ve, aK as Nt, aL as he, aM as pe, aN as me, aO as ge, aP as Te, aQ as It, aR as Ct, B as ke, aS as Ot, J as vt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZPnZF-N.js";
3
+ import { E as xe } from "./index-DsSA-OiE.js";
4
+ import { u as kt, a as Pt, b as Ft, C as Dt } from "./iconfont-Dp3iGl32.js";
5
+ import { M as Ht, O as Gt, S as Ut } from "./MTLLoader-Bl6JMZD-.js";
6
+ import { T as U } from "./svgIcon-D-_fXUBL.js";
7
+ import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ function Re(f, t) {
9
+ if (t === Je)
10
10
  return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), f;
11
- if (t === ce || t === Se) {
11
+ if (t === se || t === Me) {
12
12
  let e = f.getIndex();
13
13
  if (e === null) {
14
14
  const r = [], a = f.getAttribute("position");
@@ -20,7 +20,7 @@ function _e(f, t) {
20
20
  return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."), f;
21
21
  }
22
22
  const i = e.count - 2, n = [];
23
- if (t === ce)
23
+ if (t === se)
24
24
  for (let r = 1; r <= i; r++)
25
25
  n.push(e.getX(0)), n.push(e.getX(r)), n.push(e.getX(r + 1));
26
26
  else
@@ -32,7 +32,7 @@ function _e(f, t) {
32
32
  } else
33
33
  return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:", t), f;
34
34
  }
35
- class Gt extends et {
35
+ class Bt extends Qe {
36
36
  /**
37
37
  * Constructs a new glTF loader.
38
38
  *
@@ -40,39 +40,39 @@ class Gt extends et {
40
40
  */
41
41
  constructor(t) {
42
42
  super(t), this.dracoLoader = null, this.ktx2Loader = null, this.meshoptDecoder = null, this.pluginCallbacks = [], this.register(function(e) {
43
- return new zt(e);
44
- }), this.register(function(e) {
45
- return new Xt(e);
46
- }), this.register(function(e) {
47
- return new tn(e);
43
+ return new qt(e);
48
44
  }), this.register(function(e) {
49
- return new nn(e);
45
+ return new Wt(e);
50
46
  }), this.register(function(e) {
51
47
  return new sn(e);
52
48
  }), this.register(function(e) {
53
- return new Wt(e);
49
+ return new rn(e);
54
50
  }), this.register(function(e) {
55
- return new Yt(e);
51
+ return new on(e);
56
52
  }), this.register(function(e) {
57
53
  return new $t(e);
58
54
  }), this.register(function(e) {
59
55
  return new Jt(e);
60
- }), this.register(function(e) {
61
- return new Vt(e);
62
56
  }), this.register(function(e) {
63
57
  return new Qt(e);
64
58
  }), this.register(function(e) {
65
- return new qt(e);
59
+ return new Zt(e);
60
+ }), this.register(function(e) {
61
+ return new Xt(e);
66
62
  }), this.register(function(e) {
67
63
  return new en(e);
68
64
  }), this.register(function(e) {
69
- return new Zt(e);
65
+ return new Yt(e);
70
66
  }), this.register(function(e) {
71
- return new Bt(e);
67
+ return new nn(e);
72
68
  }), this.register(function(e) {
73
- return new rn(e);
69
+ return new tn(e);
74
70
  }), this.register(function(e) {
75
- return new on(e);
71
+ return new Vt(e);
72
+ }), this.register(function(e) {
73
+ return new an(e);
74
+ }), this.register(function(e) {
75
+ return new cn(e);
76
76
  });
77
77
  }
78
78
  /**
@@ -90,14 +90,14 @@ class Gt extends et {
90
90
  if (this.resourcePath !== "")
91
91
  r = this.resourcePath;
92
92
  else if (this.path !== "") {
93
- const c = W.extractUrlBase(t);
94
- r = W.resolveURL(c, this.path);
93
+ const c = X.extractUrlBase(t);
94
+ r = X.resolveURL(c, this.path);
95
95
  } else
96
- r = W.extractUrlBase(t);
96
+ r = X.extractUrlBase(t);
97
97
  this.manager.itemStart(t);
98
98
  const a = function(c) {
99
99
  n ? n(c) : console.error(c), s.manager.itemError(t), s.manager.itemEnd(t);
100
- }, o = new Ne(this.manager);
100
+ }, o = new we(this.manager);
101
101
  o.setPath(this.path), o.setResponseType("arraybuffer"), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials), o.load(t, function(c) {
102
102
  try {
103
103
  s.parse(c, r, function(u) {
@@ -172,9 +172,9 @@ class Gt extends et {
172
172
  if (typeof t == "string")
173
173
  s = JSON.parse(t);
174
174
  else if (t instanceof ArrayBuffer)
175
- if (o.decode(new Uint8Array(t, 0, 4)) === Ue) {
175
+ if (o.decode(new Uint8Array(t, 0, 4)) === Pe) {
176
176
  try {
177
- r[R.KHR_BINARY_GLTF] = new an(t);
177
+ r[R.KHR_BINARY_GLTF] = new ln(t);
178
178
  } catch (l) {
179
179
  n && n(l);
180
180
  return;
@@ -188,7 +188,7 @@ class Gt extends et {
188
188
  n && n(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));
189
189
  return;
190
190
  }
191
- const c = new En(s, {
191
+ const c = new _n(s, {
192
192
  path: e || this.resourcePath || "",
193
193
  crossOrigin: this.crossOrigin,
194
194
  requestHeader: this.requestHeader,
@@ -206,16 +206,16 @@ class Gt extends et {
206
206
  const l = s.extensionsUsed[u], d = s.extensionsRequired || [];
207
207
  switch (l) {
208
208
  case R.KHR_MATERIALS_UNLIT:
209
- r[l] = new Kt();
209
+ r[l] = new zt();
210
210
  break;
211
211
  case R.KHR_DRACO_MESH_COMPRESSION:
212
- r[l] = new cn(s, this.dracoLoader);
212
+ r[l] = new un(s, this.dracoLoader);
213
213
  break;
214
214
  case R.KHR_TEXTURE_TRANSFORM:
215
- r[l] = new ln();
215
+ r[l] = new fn();
216
216
  break;
217
217
  case R.KHR_MESH_QUANTIZATION:
218
- r[l] = new un();
218
+ r[l] = new dn();
219
219
  break;
220
220
  default:
221
221
  d.indexOf(l) >= 0 && a[l] === void 0 && console.warn('THREE.GLTFLoader: Unknown extension "' + l + '".');
@@ -238,7 +238,7 @@ class Gt extends et {
238
238
  });
239
239
  }
240
240
  }
241
- function jt() {
241
+ function Kt() {
242
242
  let f = {};
243
243
  return {
244
244
  get: function(t) {
@@ -279,7 +279,7 @@ const R = {
279
279
  EXT_MESHOPT_COMPRESSION: "EXT_meshopt_compression",
280
280
  EXT_MESH_GPU_INSTANCING: "EXT_mesh_gpu_instancing"
281
281
  };
282
- class Bt {
282
+ class Vt {
283
283
  constructor(t) {
284
284
  this.parser = t, this.name = R.KHR_LIGHTS_PUNCTUAL, this.cache = { refs: {}, uses: {} };
285
285
  }
@@ -297,22 +297,22 @@ class Bt {
297
297
  const s = e.json, o = ((s.extensions && s.extensions[this.name] || {}).lights || [])[t];
298
298
  let c;
299
299
  const u = new G(16777215);
300
- o.color !== void 0 && u.setRGB(o.color[0], o.color[1], o.color[2], P);
300
+ o.color !== void 0 && u.setRGB(o.color[0], o.color[1], o.color[2], v);
301
301
  const l = o.range !== void 0 ? o.range : 0;
302
302
  switch (o.type) {
303
303
  case "directional":
304
- c = new st(u), c.target.position.set(0, 0, -1), c.add(c.target);
304
+ c = new tt(u), c.target.position.set(0, 0, -1), c.add(c.target);
305
305
  break;
306
306
  case "point":
307
- c = new nt(u), c.distance = l;
307
+ c = new et(u), c.distance = l;
308
308
  break;
309
309
  case "spot":
310
- c = new tt(u), c.distance = l, o.spot = o.spot || {}, o.spot.innerConeAngle = o.spot.innerConeAngle !== void 0 ? o.spot.innerConeAngle : 0, o.spot.outerConeAngle = o.spot.outerConeAngle !== void 0 ? o.spot.outerConeAngle : Math.PI / 4, c.angle = o.spot.outerConeAngle, c.penumbra = 1 - o.spot.innerConeAngle / o.spot.outerConeAngle, c.target.position.set(0, 0, -1), c.add(c.target);
310
+ c = new Ze(u), c.distance = l, o.spot = o.spot || {}, o.spot.innerConeAngle = o.spot.innerConeAngle !== void 0 ? o.spot.innerConeAngle : 0, o.spot.outerConeAngle = o.spot.outerConeAngle !== void 0 ? o.spot.outerConeAngle : Math.PI / 4, c.angle = o.spot.outerConeAngle, c.penumbra = 1 - o.spot.innerConeAngle / o.spot.outerConeAngle, c.target.position.set(0, 0, -1), c.add(c.target);
311
311
  break;
312
312
  default:
313
313
  throw new Error("THREE.GLTFLoader: Unexpected light type: " + o.type);
314
314
  }
315
- return c.position.set(0, 0, 0), k(c, o), o.intensity !== void 0 && (c.intensity = o.intensity), c.name = e.createUniqueName(o.name || "light_" + t), n = Promise.resolve(c), e.cache.add(i, n), n;
315
+ return c.position.set(0, 0, 0), O(c, o), o.intensity !== void 0 && (c.intensity = o.intensity), c.name = e.createUniqueName(o.name || "light_" + t), n = Promise.resolve(c), e.cache.add(i, n), n;
316
316
  }
317
317
  getDependency(t, e) {
318
318
  if (t === "light")
@@ -325,12 +325,12 @@ class Bt {
325
325
  });
326
326
  }
327
327
  }
328
- class Kt {
328
+ class zt {
329
329
  constructor() {
330
330
  this.name = R.KHR_MATERIALS_UNLIT;
331
331
  }
332
332
  getMaterialType() {
333
- return q;
333
+ return z;
334
334
  }
335
335
  extendParams(t, e, i) {
336
336
  const n = [];
@@ -339,14 +339,14 @@ class Kt {
339
339
  if (s) {
340
340
  if (Array.isArray(s.baseColorFactor)) {
341
341
  const r = s.baseColorFactor;
342
- t.color.setRGB(r[0], r[1], r[2], P), t.opacity = r[3];
342
+ t.color.setRGB(r[0], r[1], r[2], v), t.opacity = r[3];
343
343
  }
344
- s.baseColorTexture !== void 0 && n.push(i.assignTexture(t, "map", s.baseColorTexture, Y));
344
+ s.baseColorTexture !== void 0 && n.push(i.assignTexture(t, "map", s.baseColorTexture, q));
345
345
  }
346
346
  return Promise.all(n);
347
347
  }
348
348
  }
349
- class Vt {
349
+ class Xt {
350
350
  constructor(t) {
351
351
  this.parser = t, this.name = R.KHR_MATERIALS_EMISSIVE_STRENGTH;
352
352
  }
@@ -358,13 +358,13 @@ class Vt {
358
358
  return s !== void 0 && (e.emissiveIntensity = s), Promise.resolve();
359
359
  }
360
360
  }
361
- class zt {
361
+ class qt {
362
362
  constructor(t) {
363
363
  this.parser = t, this.name = R.KHR_MATERIALS_CLEARCOAT;
364
364
  }
365
365
  getMaterialType(t) {
366
366
  const i = this.parser.json.materials[t];
367
- return !i.extensions || !i.extensions[this.name] ? null : O;
367
+ return !i.extensions || !i.extensions[this.name] ? null : C;
368
368
  }
369
369
  extendMaterialParams(t, e) {
370
370
  const i = this.parser, n = i.json.materials[t];
@@ -373,18 +373,18 @@ class zt {
373
373
  const s = [], r = n.extensions[this.name];
374
374
  if (r.clearcoatFactor !== void 0 && (e.clearcoat = r.clearcoatFactor), r.clearcoatTexture !== void 0 && s.push(i.assignTexture(e, "clearcoatMap", r.clearcoatTexture)), r.clearcoatRoughnessFactor !== void 0 && (e.clearcoatRoughness = r.clearcoatRoughnessFactor), r.clearcoatRoughnessTexture !== void 0 && s.push(i.assignTexture(e, "clearcoatRoughnessMap", r.clearcoatRoughnessTexture)), r.clearcoatNormalTexture !== void 0 && (s.push(i.assignTexture(e, "clearcoatNormalMap", r.clearcoatNormalTexture)), r.clearcoatNormalTexture.scale !== void 0)) {
375
375
  const a = r.clearcoatNormalTexture.scale;
376
- e.clearcoatNormalScale = new Ie(a, a);
376
+ e.clearcoatNormalScale = new ye(a, a);
377
377
  }
378
378
  return Promise.all(s);
379
379
  }
380
380
  }
381
- class Xt {
381
+ class Wt {
382
382
  constructor(t) {
383
383
  this.parser = t, this.name = R.KHR_MATERIALS_DISPERSION;
384
384
  }
385
385
  getMaterialType(t) {
386
386
  const i = this.parser.json.materials[t];
387
- return !i.extensions || !i.extensions[this.name] ? null : O;
387
+ return !i.extensions || !i.extensions[this.name] ? null : C;
388
388
  }
389
389
  extendMaterialParams(t, e) {
390
390
  const n = this.parser.json.materials[t];
@@ -394,13 +394,13 @@ class Xt {
394
394
  return e.dispersion = s.dispersion !== void 0 ? s.dispersion : 0, Promise.resolve();
395
395
  }
396
396
  }
397
- class qt {
397
+ class Yt {
398
398
  constructor(t) {
399
399
  this.parser = t, this.name = R.KHR_MATERIALS_IRIDESCENCE;
400
400
  }
401
401
  getMaterialType(t) {
402
402
  const i = this.parser.json.materials[t];
403
- return !i.extensions || !i.extensions[this.name] ? null : O;
403
+ return !i.extensions || !i.extensions[this.name] ? null : C;
404
404
  }
405
405
  extendMaterialParams(t, e) {
406
406
  const i = this.parser, n = i.json.materials[t];
@@ -410,13 +410,13 @@ class qt {
410
410
  return r.iridescenceFactor !== void 0 && (e.iridescence = r.iridescenceFactor), r.iridescenceTexture !== void 0 && s.push(i.assignTexture(e, "iridescenceMap", r.iridescenceTexture)), r.iridescenceIor !== void 0 && (e.iridescenceIOR = r.iridescenceIor), e.iridescenceThicknessRange === void 0 && (e.iridescenceThicknessRange = [100, 400]), r.iridescenceThicknessMinimum !== void 0 && (e.iridescenceThicknessRange[0] = r.iridescenceThicknessMinimum), r.iridescenceThicknessMaximum !== void 0 && (e.iridescenceThicknessRange[1] = r.iridescenceThicknessMaximum), r.iridescenceThicknessTexture !== void 0 && s.push(i.assignTexture(e, "iridescenceThicknessMap", r.iridescenceThicknessTexture)), Promise.all(s);
411
411
  }
412
412
  }
413
- class Wt {
413
+ class $t {
414
414
  constructor(t) {
415
415
  this.parser = t, this.name = R.KHR_MATERIALS_SHEEN;
416
416
  }
417
417
  getMaterialType(t) {
418
418
  const i = this.parser.json.materials[t];
419
- return !i.extensions || !i.extensions[this.name] ? null : O;
419
+ return !i.extensions || !i.extensions[this.name] ? null : C;
420
420
  }
421
421
  extendMaterialParams(t, e) {
422
422
  const i = this.parser, n = i.json.materials[t];
@@ -427,18 +427,18 @@ class Wt {
427
427
  const r = n.extensions[this.name];
428
428
  if (r.sheenColorFactor !== void 0) {
429
429
  const a = r.sheenColorFactor;
430
- e.sheenColor.setRGB(a[0], a[1], a[2], P);
430
+ e.sheenColor.setRGB(a[0], a[1], a[2], v);
431
431
  }
432
- return r.sheenRoughnessFactor !== void 0 && (e.sheenRoughness = r.sheenRoughnessFactor), r.sheenColorTexture !== void 0 && s.push(i.assignTexture(e, "sheenColorMap", r.sheenColorTexture, Y)), r.sheenRoughnessTexture !== void 0 && s.push(i.assignTexture(e, "sheenRoughnessMap", r.sheenRoughnessTexture)), Promise.all(s);
432
+ return r.sheenRoughnessFactor !== void 0 && (e.sheenRoughness = r.sheenRoughnessFactor), r.sheenColorTexture !== void 0 && s.push(i.assignTexture(e, "sheenColorMap", r.sheenColorTexture, q)), r.sheenRoughnessTexture !== void 0 && s.push(i.assignTexture(e, "sheenRoughnessMap", r.sheenRoughnessTexture)), Promise.all(s);
433
433
  }
434
434
  }
435
- class Yt {
435
+ class Jt {
436
436
  constructor(t) {
437
437
  this.parser = t, this.name = R.KHR_MATERIALS_TRANSMISSION;
438
438
  }
439
439
  getMaterialType(t) {
440
440
  const i = this.parser.json.materials[t];
441
- return !i.extensions || !i.extensions[this.name] ? null : O;
441
+ return !i.extensions || !i.extensions[this.name] ? null : C;
442
442
  }
443
443
  extendMaterialParams(t, e) {
444
444
  const i = this.parser, n = i.json.materials[t];
@@ -448,13 +448,13 @@ class Yt {
448
448
  return r.transmissionFactor !== void 0 && (e.transmission = r.transmissionFactor), r.transmissionTexture !== void 0 && s.push(i.assignTexture(e, "transmissionMap", r.transmissionTexture)), Promise.all(s);
449
449
  }
450
450
  }
451
- class $t {
451
+ class Qt {
452
452
  constructor(t) {
453
453
  this.parser = t, this.name = R.KHR_MATERIALS_VOLUME;
454
454
  }
455
455
  getMaterialType(t) {
456
456
  const i = this.parser.json.materials[t];
457
- return !i.extensions || !i.extensions[this.name] ? null : O;
457
+ return !i.extensions || !i.extensions[this.name] ? null : C;
458
458
  }
459
459
  extendMaterialParams(t, e) {
460
460
  const i = this.parser, n = i.json.materials[t];
@@ -463,16 +463,16 @@ class $t {
463
463
  const s = [], r = n.extensions[this.name];
464
464
  e.thickness = r.thicknessFactor !== void 0 ? r.thicknessFactor : 0, r.thicknessTexture !== void 0 && s.push(i.assignTexture(e, "thicknessMap", r.thicknessTexture)), e.attenuationDistance = r.attenuationDistance || 1 / 0;
465
465
  const a = r.attenuationColor || [1, 1, 1];
466
- return e.attenuationColor = new G().setRGB(a[0], a[1], a[2], P), Promise.all(s);
466
+ return e.attenuationColor = new G().setRGB(a[0], a[1], a[2], v), Promise.all(s);
467
467
  }
468
468
  }
469
- class Jt {
469
+ class Zt {
470
470
  constructor(t) {
471
471
  this.parser = t, this.name = R.KHR_MATERIALS_IOR;
472
472
  }
473
473
  getMaterialType(t) {
474
474
  const i = this.parser.json.materials[t];
475
- return !i.extensions || !i.extensions[this.name] ? null : O;
475
+ return !i.extensions || !i.extensions[this.name] ? null : C;
476
476
  }
477
477
  extendMaterialParams(t, e) {
478
478
  const n = this.parser.json.materials[t];
@@ -482,13 +482,13 @@ class Jt {
482
482
  return e.ior = s.ior !== void 0 ? s.ior : 1.5, Promise.resolve();
483
483
  }
484
484
  }
485
- class Qt {
485
+ class en {
486
486
  constructor(t) {
487
487
  this.parser = t, this.name = R.KHR_MATERIALS_SPECULAR;
488
488
  }
489
489
  getMaterialType(t) {
490
490
  const i = this.parser.json.materials[t];
491
- return !i.extensions || !i.extensions[this.name] ? null : O;
491
+ return !i.extensions || !i.extensions[this.name] ? null : C;
492
492
  }
493
493
  extendMaterialParams(t, e) {
494
494
  const i = this.parser, n = i.json.materials[t];
@@ -497,16 +497,16 @@ class Qt {
497
497
  const s = [], r = n.extensions[this.name];
498
498
  e.specularIntensity = r.specularFactor !== void 0 ? r.specularFactor : 1, r.specularTexture !== void 0 && s.push(i.assignTexture(e, "specularIntensityMap", r.specularTexture));
499
499
  const a = r.specularColorFactor || [1, 1, 1];
500
- return e.specularColor = new G().setRGB(a[0], a[1], a[2], P), r.specularColorTexture !== void 0 && s.push(i.assignTexture(e, "specularColorMap", r.specularColorTexture, Y)), Promise.all(s);
500
+ return e.specularColor = new G().setRGB(a[0], a[1], a[2], v), r.specularColorTexture !== void 0 && s.push(i.assignTexture(e, "specularColorMap", r.specularColorTexture, q)), Promise.all(s);
501
501
  }
502
502
  }
503
- class Zt {
503
+ class tn {
504
504
  constructor(t) {
505
505
  this.parser = t, this.name = R.EXT_MATERIALS_BUMP;
506
506
  }
507
507
  getMaterialType(t) {
508
508
  const i = this.parser.json.materials[t];
509
- return !i.extensions || !i.extensions[this.name] ? null : O;
509
+ return !i.extensions || !i.extensions[this.name] ? null : C;
510
510
  }
511
511
  extendMaterialParams(t, e) {
512
512
  const i = this.parser, n = i.json.materials[t];
@@ -516,13 +516,13 @@ class Zt {
516
516
  return e.bumpScale = r.bumpFactor !== void 0 ? r.bumpFactor : 1, r.bumpTexture !== void 0 && s.push(i.assignTexture(e, "bumpMap", r.bumpTexture)), Promise.all(s);
517
517
  }
518
518
  }
519
- class en {
519
+ class nn {
520
520
  constructor(t) {
521
521
  this.parser = t, this.name = R.KHR_MATERIALS_ANISOTROPY;
522
522
  }
523
523
  getMaterialType(t) {
524
524
  const i = this.parser.json.materials[t];
525
- return !i.extensions || !i.extensions[this.name] ? null : O;
525
+ return !i.extensions || !i.extensions[this.name] ? null : C;
526
526
  }
527
527
  extendMaterialParams(t, e) {
528
528
  const i = this.parser, n = i.json.materials[t];
@@ -532,7 +532,7 @@ class en {
532
532
  return r.anisotropyStrength !== void 0 && (e.anisotropy = r.anisotropyStrength), r.anisotropyRotation !== void 0 && (e.anisotropyRotation = r.anisotropyRotation), r.anisotropyTexture !== void 0 && s.push(i.assignTexture(e, "anisotropyMap", r.anisotropyTexture)), Promise.all(s);
533
533
  }
534
534
  }
535
- class tn {
535
+ class sn {
536
536
  constructor(t) {
537
537
  this.parser = t, this.name = R.KHR_TEXTURE_BASISU;
538
538
  }
@@ -549,7 +549,7 @@ class tn {
549
549
  return e.loadTextureImage(t, s.source, r);
550
550
  }
551
551
  }
552
- class nn {
552
+ class rn {
553
553
  constructor(t) {
554
554
  this.parser = t, this.name = R.EXT_TEXTURE_WEBP;
555
555
  }
@@ -566,7 +566,7 @@ class nn {
566
566
  return i.loadTextureImage(t, r.source, o);
567
567
  }
568
568
  }
569
- class sn {
569
+ class on {
570
570
  constructor(t) {
571
571
  this.parser = t, this.name = R.EXT_TEXTURE_AVIF;
572
572
  }
@@ -583,7 +583,7 @@ class sn {
583
583
  return i.loadTextureImage(t, r.source, o);
584
584
  }
585
585
  }
586
- class rn {
586
+ class an {
587
587
  constructor(t) {
588
588
  this.name = R.EXT_MESHOPT_COMPRESSION, this.parser = t;
589
589
  }
@@ -609,7 +609,7 @@ class rn {
609
609
  return null;
610
610
  }
611
611
  }
612
- class on {
612
+ class cn {
613
613
  constructor(t) {
614
614
  this.name = R.EXT_MESH_GPU_INSTANCING, this.parser = t;
615
615
  }
@@ -619,7 +619,7 @@ class on {
619
619
  return null;
620
620
  const n = e.meshes[i.mesh];
621
621
  for (const c of n.primitives)
622
- if (c.mode !== C.TRIANGLES && c.mode !== C.TRIANGLE_STRIP && c.mode !== C.TRIANGLE_FAN && c.mode !== void 0)
622
+ if (c.mode !== N.TRIANGLES && c.mode !== N.TRIANGLE_STRIP && c.mode !== N.TRIANGLE_FAN && c.mode !== void 0)
623
623
  return null;
624
624
  const r = i.extensions[this.name].attributes, a = [], o = {};
625
625
  for (const c in r)
@@ -627,44 +627,44 @@ class on {
627
627
  return a.length < 1 ? null : (a.push(this.parser.createNodeMesh(t)), Promise.all(a).then((c) => {
628
628
  const u = c.pop(), l = u.isGroup ? u.children : [u], d = c[0].count, h = [];
629
629
  for (const p of l) {
630
- const x = new Q(), m = new B(), g = new Ce(), E = new B(1, 1, 1), M = new rt(p.geometry, p.material, d);
630
+ const x = new W(), m = new j(), g = new Se(), E = new j(1, 1, 1), A = new nt(p.geometry, p.material, d);
631
631
  for (let T = 0; T < d; T++)
632
- o.TRANSLATION && m.fromBufferAttribute(o.TRANSLATION, T), o.ROTATION && g.fromBufferAttribute(o.ROTATION, T), o.SCALE && E.fromBufferAttribute(o.SCALE, T), M.setMatrixAt(T, x.compose(m, g, E));
632
+ o.TRANSLATION && m.fromBufferAttribute(o.TRANSLATION, T), o.ROTATION && g.fromBufferAttribute(o.ROTATION, T), o.SCALE && E.fromBufferAttribute(o.SCALE, T), A.setMatrixAt(T, x.compose(m, g, E));
633
633
  for (const T in o)
634
634
  if (T === "_COLOR_0") {
635
- const N = o[T];
636
- M.instanceColor = new it(N.array, N.itemSize, N.normalized);
635
+ const L = o[T];
636
+ A.instanceColor = new st(L.array, L.itemSize, L.normalized);
637
637
  } else T !== "TRANSLATION" && T !== "ROTATION" && T !== "SCALE" && p.geometry.setAttribute(T, o[T]);
638
- Oe.prototype.copy.call(M, p), this.parser.assignFinalMaterial(M), h.push(M);
638
+ be.prototype.copy.call(A, p), this.parser.assignFinalMaterial(A), h.push(A);
639
639
  }
640
640
  return u.isGroup ? (u.clear(), u.add(...h), u) : h[0];
641
641
  }));
642
642
  }
643
643
  }
644
- const Ue = "glTF", X = 12, Me = { JSON: 1313821514, BIN: 5130562 };
645
- class an {
644
+ const Pe = "glTF", V = 12, Ee = { JSON: 1313821514, BIN: 5130562 };
645
+ class ln {
646
646
  constructor(t) {
647
647
  this.name = R.KHR_BINARY_GLTF, this.content = null, this.body = null;
648
- const e = new DataView(t, 0, X), i = new TextDecoder();
648
+ const e = new DataView(t, 0, V), i = new TextDecoder();
649
649
  if (this.header = {
650
650
  magic: i.decode(new Uint8Array(t.slice(0, 4))),
651
651
  version: e.getUint32(4, !0),
652
652
  length: e.getUint32(8, !0)
653
- }, this.header.magic !== Ue)
653
+ }, this.header.magic !== Pe)
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.");
657
- const n = this.header.length - X, s = new DataView(t, X);
657
+ const n = this.header.length - V, s = new DataView(t, V);
658
658
  let r = 0;
659
659
  for (; r < n; ) {
660
660
  const a = s.getUint32(r, !0);
661
661
  r += 4;
662
662
  const o = s.getUint32(r, !0);
663
- if (r += 4, o === Me.JSON) {
664
- const c = new Uint8Array(t, X + r, a);
663
+ if (r += 4, o === Ee.JSON) {
664
+ const c = new Uint8Array(t, V + r, a);
665
665
  this.content = i.decode(c);
666
- } else if (o === Me.BIN) {
667
- const c = X + r;
666
+ } else if (o === Ee.BIN) {
667
+ const c = V + r;
668
668
  this.body = t.slice(c, c + a);
669
669
  }
670
670
  r += a;
@@ -673,7 +673,7 @@ class an {
673
673
  throw new Error("THREE.GLTFLoader: JSON content not found.");
674
674
  }
675
675
  }
676
- class cn {
676
+ class un {
677
677
  constructor(t, e) {
678
678
  if (!e)
679
679
  throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");
@@ -682,13 +682,13 @@ class cn {
682
682
  decodePrimitive(t, e) {
683
683
  const i = this.json, n = this.dracoLoader, s = t.extensions[this.name].bufferView, r = t.extensions[this.name].attributes, a = {}, o = {}, c = {};
684
684
  for (const u in r) {
685
- const l = fe[u] || u.toLowerCase();
685
+ const l = oe[u] || u.toLowerCase();
686
686
  a[l] = r[u];
687
687
  }
688
688
  for (const u in t.attributes) {
689
- const l = fe[u] || u.toLowerCase();
689
+ const l = oe[u] || u.toLowerCase();
690
690
  if (r[u] !== void 0) {
691
- const d = i.accessors[t.attributes[u]], h = V[d.componentType];
691
+ const d = i.accessors[t.attributes[u]], h = K[d.componentType];
692
692
  c[l] = h.name, o[l] = d.normalized === !0;
693
693
  }
694
694
  }
@@ -700,12 +700,12 @@ class cn {
700
700
  m !== void 0 && (x.normalized = m);
701
701
  }
702
702
  l(h);
703
- }, a, c, P, d);
703
+ }, a, c, v, d);
704
704
  });
705
705
  });
706
706
  }
707
707
  }
708
- class ln {
708
+ class fn {
709
709
  constructor() {
710
710
  this.name = R.KHR_TEXTURE_TRANSFORM;
711
711
  }
@@ -713,12 +713,12 @@ class ln {
713
713
  return (e.texCoord === void 0 || e.texCoord === t.channel) && e.offset === void 0 && e.rotation === void 0 && e.scale === void 0 || (t = t.clone(), e.texCoord !== void 0 && (t.channel = e.texCoord), e.offset !== void 0 && t.offset.fromArray(e.offset), e.rotation !== void 0 && (t.rotation = e.rotation), e.scale !== void 0 && t.repeat.fromArray(e.scale), t.needsUpdate = !0), t;
714
714
  }
715
715
  }
716
- class un {
716
+ class dn {
717
717
  constructor() {
718
718
  this.name = R.KHR_MESH_QUANTIZATION;
719
719
  }
720
720
  }
721
- class Ge extends vt {
721
+ class Fe extends Ct {
722
722
  constructor(t, e, i, n) {
723
723
  super(t, e, i, n);
724
724
  }
@@ -729,22 +729,22 @@ class Ge extends vt {
729
729
  return e;
730
730
  }
731
731
  interpolate_(t, e, i, n) {
732
- const s = this.resultBuffer, r = this.sampleValues, a = this.valueSize, o = a * 2, c = a * 3, u = n - e, l = (i - e) / u, d = l * l, h = d * l, p = t * c, x = p - c, m = -2 * h + 3 * d, g = h - d, E = 1 - m, M = g - d + l;
732
+ const s = this.resultBuffer, r = this.sampleValues, a = this.valueSize, o = a * 2, c = a * 3, u = n - e, l = (i - e) / u, d = l * l, h = d * l, p = t * c, x = p - c, m = -2 * h + 3 * d, g = h - d, E = 1 - m, A = g - d + l;
733
733
  for (let T = 0; T !== a; T++) {
734
- const N = r[x + T + a], I = r[x + T + o] * u, L = r[p + T + a], v = r[p + T] * u;
735
- s[T] = E * N + M * I + m * L + g * v;
734
+ const L = r[x + T + a], y = r[x + T + o] * u, M = r[p + T + a], I = r[p + T] * u;
735
+ s[T] = E * L + A * y + m * M + g * I;
736
736
  }
737
737
  return s;
738
738
  }
739
739
  }
740
- const fn = new Ce();
741
- class dn extends Ge {
740
+ const hn = new Se();
741
+ class pn extends Fe {
742
742
  interpolate_(t, e, i, n) {
743
743
  const s = super.interpolate_(t, e, i, n);
744
- return fn.fromArray(s).normalize().toArray(s), s;
744
+ return hn.fromArray(s).normalize().toArray(s), s;
745
745
  }
746
746
  }
747
- const C = {
747
+ const N = {
748
748
  POINTS: 0,
749
749
  LINES: 1,
750
750
  LINE_LOOP: 2,
@@ -752,25 +752,25 @@ const C = {
752
752
  TRIANGLES: 4,
753
753
  TRIANGLE_STRIP: 5,
754
754
  TRIANGLE_FAN: 6
755
- }, V = {
755
+ }, K = {
756
756
  5120: Int8Array,
757
757
  5121: Uint8Array,
758
758
  5122: Int16Array,
759
759
  5123: Uint16Array,
760
760
  5125: Uint32Array,
761
761
  5126: Float32Array
762
- }, we = {
763
- 9728: ke,
764
- 9729: le,
765
- 9984: ft,
766
- 9985: ut,
767
- 9986: lt,
768
- 9987: ve
769
- }, ye = {
770
- 33071: ht,
771
- 33648: dt,
772
- 10497: ue
773
- }, ie = {
762
+ }, Ae = {
763
+ 9728: Ie,
764
+ 9729: re,
765
+ 9984: lt,
766
+ 9985: ct,
767
+ 9986: at,
768
+ 9987: Ne
769
+ }, _e = {
770
+ 33071: ft,
771
+ 33648: ut,
772
+ 10497: ie
773
+ }, ee = {
774
774
  SCALAR: 1,
775
775
  VEC2: 2,
776
776
  VEC3: 3,
@@ -778,7 +778,7 @@ const C = {
778
778
  MAT2: 4,
779
779
  MAT3: 9,
780
780
  MAT4: 16
781
- }, fe = {
781
+ }, oe = {
782
782
  POSITION: "position",
783
783
  NORMAL: "normal",
784
784
  TANGENT: "tangent",
@@ -789,41 +789,41 @@ const C = {
789
789
  COLOR_0: "color",
790
790
  WEIGHTS_0: "skinWeight",
791
791
  JOINTS_0: "skinIndex"
792
- }, D = {
792
+ }, P = {
793
793
  scale: "scale",
794
794
  translation: "position",
795
795
  rotation: "quaternion",
796
796
  weights: "morphTargetInfluences"
797
- }, hn = {
797
+ }, mn = {
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: De,
802
- STEP: It
803
- }, oe = {
801
+ LINEAR: ve,
802
+ STEP: bt
803
+ }, te = {
804
804
  OPAQUE: "OPAQUE",
805
805
  MASK: "MASK",
806
806
  BLEND: "BLEND"
807
807
  };
808
- function pn(f) {
809
- return f.DefaultMaterial === void 0 && (f.DefaultMaterial = new Pe({
808
+ function gn(f) {
809
+ return f.DefaultMaterial === void 0 && (f.DefaultMaterial = new Ce({
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: Ot
816
+ side: It
817
817
  })), f.DefaultMaterial;
818
818
  }
819
- function U(f, t, e) {
819
+ function H(f, t, e) {
820
820
  for (const i in e.extensions)
821
821
  f[i] === void 0 && (t.userData.gltfExtensions = t.userData.gltfExtensions || {}, t.userData.gltfExtensions[i] = e.extensions[i]);
822
822
  }
823
- function k(f, t) {
823
+ function O(f, t) {
824
824
  t.extras !== void 0 && (typeof t.extras == "object" ? Object.assign(f.userData, t.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + t.extras));
825
825
  }
826
- function mn(f, t, e) {
826
+ function Tn(f, t, e) {
827
827
  let i = !1, n = !1, s = !1;
828
828
  for (let c = 0, u = t.length; c < u; c++) {
829
829
  const l = t[c];
@@ -855,7 +855,7 @@ function mn(f, t, e) {
855
855
  return i && (f.morphAttributes.position = u), n && (f.morphAttributes.normal = l), s && (f.morphAttributes.color = d), f.morphTargetsRelative = !0, f;
856
856
  });
857
857
  }
858
- function gn(f, t) {
858
+ function xn(f, t) {
859
859
  if (f.updateMorphTargets(), t.weights !== void 0)
860
860
  for (let e = 0, i = t.weights.length; e < i; e++)
861
861
  f.morphTargetInfluences[e] = t.weights[e];
@@ -869,22 +869,22 @@ function gn(f, t) {
869
869
  console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.");
870
870
  }
871
871
  }
872
- function Tn(f) {
872
+ function Rn(f) {
873
873
  let t;
874
874
  const e = f.extensions && f.extensions[R.KHR_DRACO_MESH_COMPRESSION];
875
- if (e ? t = "draco:" + e.bufferView + ":" + e.indices + ":" + ae(e.attributes) : t = f.indices + ":" + ae(f.attributes) + ":" + f.mode, f.targets !== void 0)
875
+ if (e ? t = "draco:" + e.bufferView + ":" + e.indices + ":" + ne(e.attributes) : t = f.indices + ":" + ne(f.attributes) + ":" + f.mode, f.targets !== void 0)
876
876
  for (let i = 0, n = f.targets.length; i < n; i++)
877
- t += ":" + ae(f.targets[i]);
877
+ t += ":" + ne(f.targets[i]);
878
878
  return t;
879
879
  }
880
- function ae(f) {
880
+ function ne(f) {
881
881
  let t = "";
882
882
  const e = Object.keys(f).sort();
883
883
  for (let i = 0, n = e.length; i < n; i++)
884
884
  t += e[i] + ":" + f[e[i]] + ";";
885
885
  return t;
886
886
  }
887
- function de(f) {
887
+ function ae(f) {
888
888
  switch (f) {
889
889
  case Int8Array:
890
890
  return 1 / 127;
@@ -898,13 +898,13 @@ function de(f) {
898
898
  throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.");
899
899
  }
900
900
  }
901
- function xn(f) {
901
+ function En(f) {
902
902
  return f.search(/\.jpe?g($|\?)/i) > 0 || f.search(/^data\:image\/jpeg/) === 0 ? "image/jpeg" : f.search(/\.webp($|\?)/i) > 0 || f.search(/^data\:image\/webp/) === 0 ? "image/webp" : f.search(/\.ktx2($|\?)/i) > 0 || f.search(/^data\:image\/ktx2/) === 0 ? "image/ktx2" : "image/png";
903
903
  }
904
- const Rn = new Q();
905
- class En {
904
+ const An = new W();
905
+ class _n {
906
906
  constructor(t = {}, e = {}) {
907
- this.json = t, this.extensions = {}, this.plugins = {}, this.options = e, this.cache = new jt(), 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 = t, this.extensions = {}, this.plugins = {}, this.options = e, this.cache = new Kt(), 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 i = !1, n = -1, s = !1, r = -1;
909
909
  if (typeof navigator < "u") {
910
910
  const a = navigator.userAgent;
@@ -912,7 +912,7 @@ class En {
912
912
  const o = a.match(/Version\/(\d+)/);
913
913
  n = i && o ? parseInt(o[1], 10) : -1, s = a.indexOf("Firefox") > -1, r = s ? a.match(/Firefox\/([0-9]+)\./)[1] : -1;
914
914
  }
915
- typeof createImageBitmap > "u" || i && n < 17 || s && r < 98 ? this.textureLoader = new ot(this.options.manager) : this.textureLoader = new at(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new Ne(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
915
+ typeof createImageBitmap > "u" || i && n < 17 || s && r < 98 ? this.textureLoader = new rt(this.options.manager) : this.textureLoader = new it(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new we(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
916
916
  }
917
917
  setExtensions(t) {
918
918
  this.extensions = t;
@@ -942,7 +942,7 @@ class En {
942
942
  parser: i,
943
943
  userData: {}
944
944
  };
945
- return U(s, a, n), k(a, n), Promise.all(i._invokeAll(function(o) {
945
+ return H(s, a, n), O(a, n), Promise.all(i._invokeAll(function(o) {
946
946
  return o.afterRoot && o.afterRoot(a);
947
947
  })).then(function() {
948
948
  for (const o of a.scenes)
@@ -1123,7 +1123,7 @@ class En {
1123
1123
  return Promise.resolve(this.extensions[R.KHR_BINARY_GLTF].body);
1124
1124
  const n = this.options;
1125
1125
  return new Promise(function(s, r) {
1126
- i.load(W.resolveURL(e.uri, n.path), s, void 0, function() {
1126
+ i.load(X.resolveURL(e.uri, n.path), s, void 0, function() {
1127
1127
  r(new Error('THREE.GLTFLoader: Failed to load buffer "' + e.uri + '".'));
1128
1128
  });
1129
1129
  });
@@ -1152,25 +1152,25 @@ class En {
1152
1152
  loadAccessor(t) {
1153
1153
  const e = this, i = this.json, n = this.json.accessors[t];
1154
1154
  if (n.bufferView === void 0 && n.sparse === void 0) {
1155
- const r = ie[n.type], a = V[n.componentType], o = n.normalized === !0, c = new a(n.count * r);
1156
- return Promise.resolve(new ne(c, r, o));
1155
+ const r = ee[n.type], a = K[n.componentType], o = n.normalized === !0, c = new a(n.count * r);
1156
+ return Promise.resolve(new J(c, r, o));
1157
1157
  }
1158
1158
  const s = [];
1159
1159
  return n.bufferView !== void 0 ? s.push(this.getDependency("bufferView", n.bufferView)) : s.push(null), n.sparse !== void 0 && (s.push(this.getDependency("bufferView", n.sparse.indices.bufferView)), s.push(this.getDependency("bufferView", n.sparse.values.bufferView))), Promise.all(s).then(function(r) {
1160
- const a = r[0], o = ie[n.type], c = V[n.componentType], u = c.BYTES_PER_ELEMENT, l = u * o, d = n.byteOffset || 0, h = n.bufferView !== void 0 ? i.bufferViews[n.bufferView].byteStride : void 0, p = n.normalized === !0;
1160
+ const a = r[0], o = ee[n.type], c = K[n.componentType], u = c.BYTES_PER_ELEMENT, l = u * o, d = n.byteOffset || 0, h = n.bufferView !== void 0 ? i.bufferViews[n.bufferView].byteStride : void 0, p = n.normalized === !0;
1161
1161
  let x, m;
1162
1162
  if (h && h !== l) {
1163
1163
  const g = Math.floor(d / h), E = "InterleavedBuffer:" + n.bufferView + ":" + n.componentType + ":" + g + ":" + n.count;
1164
- let M = e.cache.get(E);
1165
- M || (x = new c(a, g * h, n.count * h / u), M = new ct(x, h / u), e.cache.add(E, M)), m = new Ct(M, o, d % h / u, p);
1164
+ let A = e.cache.get(E);
1165
+ A || (x = new c(a, g * h, n.count * h / u), A = new ot(x, h / u), e.cache.add(E, A)), m = new Nt(A, o, d % h / u, p);
1166
1166
  } else
1167
- a === null ? x = new c(n.count * o) : x = new c(a, d, n.count * o), m = new ne(x, o, p);
1167
+ a === null ? x = new c(n.count * o) : x = new c(a, d, n.count * o), m = new J(x, o, p);
1168
1168
  if (n.sparse !== void 0) {
1169
- const g = ie.SCALAR, E = V[n.sparse.indices.componentType], M = n.sparse.indices.byteOffset || 0, T = n.sparse.values.byteOffset || 0, N = new E(r[1], M, n.sparse.count * g), I = new c(r[2], T, n.sparse.count * o);
1170
- a !== null && (m = new ne(m.array.slice(), m.itemSize, m.normalized)), m.normalized = !1;
1171
- for (let L = 0, v = N.length; L < v; L++) {
1172
- const w = N[L];
1173
- if (m.setX(w, I[L * o]), o >= 2 && m.setY(w, I[L * o + 1]), o >= 3 && m.setZ(w, I[L * o + 2]), o >= 4 && m.setW(w, I[L * o + 3]), o >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
1169
+ const g = ee.SCALAR, E = K[n.sparse.indices.componentType], A = n.sparse.indices.byteOffset || 0, T = n.sparse.values.byteOffset || 0, L = new E(r[1], A, n.sparse.count * g), y = new c(r[2], T, n.sparse.count * o);
1170
+ a !== null && (m = new J(m.array.slice(), m.itemSize, m.normalized)), m.normalized = !1;
1171
+ for (let M = 0, I = L.length; M < I; M++) {
1172
+ const w = L[M];
1173
+ if (m.setX(w, y[M * o]), o >= 2 && m.setY(w, y[M * o + 1]), o >= 3 && m.setZ(w, y[M * o + 2]), o >= 4 && m.setW(w, y[M * o + 3]), o >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
1174
1174
  }
1175
1175
  m.normalized = p;
1176
1176
  }
@@ -1200,7 +1200,7 @@ class En {
1200
1200
  const c = this.loadImageSource(e, i).then(function(u) {
1201
1201
  u.flipY = !1, u.name = r.name || a.name || "", u.name === "" && typeof a.uri == "string" && a.uri.startsWith("data:image/") === !1 && (u.name = a.uri);
1202
1202
  const d = (s.samplers || {})[r.sampler] || {};
1203
- return u.magFilter = we[d.magFilter] || le, u.minFilter = we[d.minFilter] || ve, u.wrapS = ye[d.wrapS] || ue, u.wrapT = ye[d.wrapT] || ue, u.generateMipmaps = !u.isCompressedTexture && u.minFilter !== ke && u.minFilter !== le, n.associations.set(u, { textures: t }), u;
1203
+ return u.magFilter = Ae[d.magFilter] || re, u.minFilter = Ae[d.minFilter] || Ne, u.wrapS = _e[d.wrapS] || ie, u.wrapT = _e[d.wrapT] || ie, u.generateMipmaps = !u.isCompressedTexture && u.minFilter !== Ie && u.minFilter !== re, n.associations.set(u, { textures: t }), u;
1204
1204
  }).catch(function() {
1205
1205
  return null;
1206
1206
  });
@@ -1224,12 +1224,12 @@ class En {
1224
1224
  return new Promise(function(d, h) {
1225
1225
  let p = d;
1226
1226
  e.isImageBitmapLoader === !0 && (p = function(x) {
1227
- const m = new Te(x);
1227
+ const m = new he(x);
1228
1228
  m.needsUpdate = !0, d(m);
1229
- }), e.load(W.resolveURL(l, s.path), p, void 0, h);
1229
+ }), e.load(X.resolveURL(l, s.path), p, void 0, h);
1230
1230
  });
1231
1231
  }).then(function(l) {
1232
- return c === !0 && a.revokeObjectURL(o), k(l, r), l.userData.mimeType = r.mimeType || xn(r.uri), l;
1232
+ return c === !0 && a.revokeObjectURL(o), O(l, r), l.userData.mimeType = r.mimeType || En(r.uri), l;
1233
1233
  }).catch(function(l) {
1234
1234
  throw console.error("THREE.GLTFLoader: Couldn't load texture", o), l;
1235
1235
  });
@@ -1276,11 +1276,11 @@ class En {
1276
1276
  if (t.isPoints) {
1277
1277
  const a = "PointsMaterial:" + i.uuid;
1278
1278
  let o = this.cache.get(a);
1279
- o || (o = new pt(), se.prototype.copy.call(o, i), o.color.copy(i.color), o.map = i.map, o.sizeAttenuation = !1, this.cache.add(a, o)), i = o;
1279
+ o || (o = new dt(), Q.prototype.copy.call(o, i), o.color.copy(i.color), o.map = i.map, o.sizeAttenuation = !1, this.cache.add(a, o)), i = o;
1280
1280
  } else if (t.isLine) {
1281
1281
  const a = "LineBasicMaterial:" + i.uuid;
1282
1282
  let o = this.cache.get(a);
1283
- o || (o = new mt(), se.prototype.copy.call(o, i), o.color.copy(i.color), o.map = i.map, this.cache.add(a, o)), i = o;
1283
+ o || (o = new ht(), Q.prototype.copy.call(o, i), o.color.copy(i.color), o.map = i.map, this.cache.add(a, o)), i = o;
1284
1284
  }
1285
1285
  if (n || s || r) {
1286
1286
  let a = "ClonedMaterial:" + i.uuid + ":";
@@ -1291,7 +1291,7 @@ class En {
1291
1291
  t.material = i;
1292
1292
  }
1293
1293
  getMaterialType() {
1294
- return Pe;
1294
+ return Ce;
1295
1295
  }
1296
1296
  /**
1297
1297
  * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials
@@ -1311,27 +1311,27 @@ class En {
1311
1311
  const l = s.pbrMetallicRoughness || {};
1312
1312
  if (a.color = new G(1, 1, 1), a.opacity = 1, Array.isArray(l.baseColorFactor)) {
1313
1313
  const d = l.baseColorFactor;
1314
- a.color.setRGB(d[0], d[1], d[2], P), a.opacity = d[3];
1314
+ a.color.setRGB(d[0], d[1], d[2], v), a.opacity = d[3];
1315
1315
  }
1316
- l.baseColorTexture !== void 0 && c.push(e.assignTexture(a, "map", l.baseColorTexture, Y)), a.metalness = l.metallicFactor !== void 0 ? l.metallicFactor : 1, a.roughness = l.roughnessFactor !== void 0 ? l.roughnessFactor : 1, l.metallicRoughnessTexture !== void 0 && (c.push(e.assignTexture(a, "metalnessMap", l.metallicRoughnessTexture)), c.push(e.assignTexture(a, "roughnessMap", l.metallicRoughnessTexture))), r = this._invokeOne(function(d) {
1316
+ l.baseColorTexture !== void 0 && c.push(e.assignTexture(a, "map", l.baseColorTexture, q)), a.metalness = l.metallicFactor !== void 0 ? l.metallicFactor : 1, a.roughness = l.roughnessFactor !== void 0 ? l.roughnessFactor : 1, l.metallicRoughnessTexture !== void 0 && (c.push(e.assignTexture(a, "metalnessMap", l.metallicRoughnessTexture)), c.push(e.assignTexture(a, "roughnessMap", l.metallicRoughnessTexture))), r = this._invokeOne(function(d) {
1317
1317
  return d.getMaterialType && d.getMaterialType(t);
1318
1318
  }), c.push(Promise.all(this._invokeAll(function(d) {
1319
1319
  return d.extendMaterialParams && d.extendMaterialParams(t, a);
1320
1320
  })));
1321
1321
  }
1322
- s.doubleSided === !0 && (a.side = gt);
1323
- const u = s.alphaMode || oe.OPAQUE;
1324
- if (u === oe.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, u === oe.MASK && (a.alphaTest = s.alphaCutoff !== void 0 ? s.alphaCutoff : 0.5)), s.normalTexture !== void 0 && r !== q && (c.push(e.assignTexture(a, "normalMap", s.normalTexture)), a.normalScale = new Ie(1, 1), s.normalTexture.scale !== void 0)) {
1322
+ s.doubleSided === !0 && (a.side = pt);
1323
+ const u = s.alphaMode || te.OPAQUE;
1324
+ if (u === te.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, u === te.MASK && (a.alphaTest = s.alphaCutoff !== void 0 ? s.alphaCutoff : 0.5)), s.normalTexture !== void 0 && r !== z && (c.push(e.assignTexture(a, "normalMap", s.normalTexture)), a.normalScale = new ye(1, 1), s.normalTexture.scale !== void 0)) {
1325
1325
  const l = s.normalTexture.scale;
1326
1326
  a.normalScale.set(l, l);
1327
1327
  }
1328
- if (s.occlusionTexture !== void 0 && r !== q && (c.push(e.assignTexture(a, "aoMap", s.occlusionTexture)), s.occlusionTexture.strength !== void 0 && (a.aoMapIntensity = s.occlusionTexture.strength)), s.emissiveFactor !== void 0 && r !== q) {
1328
+ if (s.occlusionTexture !== void 0 && r !== z && (c.push(e.assignTexture(a, "aoMap", s.occlusionTexture)), s.occlusionTexture.strength !== void 0 && (a.aoMapIntensity = s.occlusionTexture.strength)), s.emissiveFactor !== void 0 && r !== z) {
1329
1329
  const l = s.emissiveFactor;
1330
- a.emissive = new G().setRGB(l[0], l[1], l[2], P);
1330
+ a.emissive = new G().setRGB(l[0], l[1], l[2], v);
1331
1331
  }
1332
- return s.emissiveTexture !== void 0 && r !== q && c.push(e.assignTexture(a, "emissiveMap", s.emissiveTexture, Y)), Promise.all(c).then(function() {
1332
+ return s.emissiveTexture !== void 0 && r !== z && c.push(e.assignTexture(a, "emissiveMap", s.emissiveTexture, q)), Promise.all(c).then(function() {
1333
1333
  const l = new r(a);
1334
- return s.name && (l.name = s.name), k(l, s), e.associations.set(l, { materials: t }), s.extensions && U(n, l, s), l;
1334
+ return s.name && (l.name = s.name), O(l, s), e.associations.set(l, { materials: t }), s.extensions && H(n, l, s), l;
1335
1335
  });
1336
1336
  }
1337
1337
  /**
@@ -1342,7 +1342,7 @@ class En {
1342
1342
  * @return {string}
1343
1343
  */
1344
1344
  createUniqueName(t) {
1345
- const e = Tt.sanitizeNodeName(t || "");
1345
+ const e = mt.sanitizeNodeName(t || "");
1346
1346
  return e in this.nodeNamesUsed ? e + "_" + ++this.nodeNamesUsed[e] : (this.nodeNamesUsed[e] = 0, e);
1347
1347
  }
1348
1348
  /**
@@ -1358,17 +1358,17 @@ class En {
1358
1358
  const e = this, i = this.extensions, n = this.primitiveCache;
1359
1359
  function s(a) {
1360
1360
  return i[R.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a, e).then(function(o) {
1361
- return be(o, a, e);
1361
+ return Le(o, a, e);
1362
1362
  });
1363
1363
  }
1364
1364
  const r = [];
1365
1365
  for (let a = 0, o = t.length; a < o; a++) {
1366
- const c = t[a], u = Tn(c), l = n[u];
1366
+ const c = t[a], u = Rn(c), l = n[u];
1367
1367
  if (l)
1368
1368
  r.push(l.promise);
1369
1369
  else {
1370
1370
  let d;
1371
- c.extensions && c.extensions[R.KHR_DRACO_MESH_COMPRESSION] ? d = s(c) : d = be(new xt(), c, e), n[u] = { primitive: c, promise: d }, r.push(d);
1371
+ c.extensions && c.extensions[R.KHR_DRACO_MESH_COMPRESSION] ? d = s(c) : d = Le(new gt(), c, e), n[u] = { primitive: c, promise: d }, r.push(d);
1372
1372
  }
1373
1373
  }
1374
1374
  return Promise.all(r);
@@ -1383,7 +1383,7 @@ class En {
1383
1383
  loadMesh(t) {
1384
1384
  const e = this, i = this.json, n = this.extensions, s = i.meshes[t], r = s.primitives, a = [];
1385
1385
  for (let o = 0, c = r.length; o < c; o++) {
1386
- const u = r[o].material === void 0 ? pn(this.cache) : this.getDependency("material", r[o].material);
1386
+ const u = r[o].material === void 0 ? gn(this.cache) : this.getDependency("material", r[o].material);
1387
1387
  a.push(u);
1388
1388
  }
1389
1389
  return a.push(e.loadGeometries(r)), Promise.all(a).then(function(o) {
@@ -1392,19 +1392,19 @@ class En {
1392
1392
  const x = u[h], m = r[h];
1393
1393
  let g;
1394
1394
  const E = c[h];
1395
- if (m.mode === C.TRIANGLES || m.mode === C.TRIANGLE_STRIP || m.mode === C.TRIANGLE_FAN || m.mode === void 0)
1396
- g = s.isSkinnedMesh === !0 ? new Rt(x, E) : new Fe(x, E), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), m.mode === C.TRIANGLE_STRIP ? g.geometry = _e(g.geometry, Se) : m.mode === C.TRIANGLE_FAN && (g.geometry = _e(g.geometry, ce));
1397
- else if (m.mode === C.LINES)
1395
+ if (m.mode === N.TRIANGLES || m.mode === N.TRIANGLE_STRIP || m.mode === N.TRIANGLE_FAN || m.mode === void 0)
1396
+ g = s.isSkinnedMesh === !0 ? new Tt(x, E) : new Oe(x, E), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), m.mode === N.TRIANGLE_STRIP ? g.geometry = Re(g.geometry, Me) : m.mode === N.TRIANGLE_FAN && (g.geometry = Re(g.geometry, se));
1397
+ else if (m.mode === N.LINES)
1398
+ g = new xt(x, E);
1399
+ else if (m.mode === N.LINE_STRIP)
1400
+ g = new Rt(x, E);
1401
+ else if (m.mode === N.LINE_LOOP)
1398
1402
  g = new Et(x, E);
1399
- else if (m.mode === C.LINE_STRIP)
1403
+ else if (m.mode === N.POINTS)
1400
1404
  g = new At(x, E);
1401
- else if (m.mode === C.LINE_LOOP)
1402
- g = new Lt(x, E);
1403
- else if (m.mode === C.POINTS)
1404
- g = new _t(x, E);
1405
1405
  else
1406
1406
  throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + m.mode);
1407
- Object.keys(g.geometry.morphAttributes).length > 0 && gn(g, s), g.name = e.createUniqueName(s.name || "mesh_" + t), k(g, s), m.extensions && U(n, g, m), e.assignFinalMaterial(g), l.push(g);
1407
+ Object.keys(g.geometry.morphAttributes).length > 0 && xn(g, s), g.name = e.createUniqueName(s.name || "mesh_" + t), O(g, s), m.extensions && H(n, g, m), e.assignFinalMaterial(g), l.push(g);
1408
1408
  }
1409
1409
  for (let h = 0, p = l.length; h < p; h++)
1410
1410
  e.associations.set(l[h], {
@@ -1412,9 +1412,9 @@ class En {
1412
1412
  primitives: h
1413
1413
  });
1414
1414
  if (l.length === 1)
1415
- return s.extensions && U(n, l[0], s), l[0];
1416
- const d = new re();
1417
- s.extensions && U(n, d, s), e.associations.set(d, { meshes: t });
1415
+ return s.extensions && H(n, l[0], s), l[0];
1416
+ const d = new Z();
1417
+ s.extensions && H(n, d, s), e.associations.set(d, { meshes: t });
1418
1418
  for (let h = 0, p = l.length; h < p; h++)
1419
1419
  d.add(l[h]);
1420
1420
  return d;
@@ -1434,7 +1434,7 @@ class En {
1434
1434
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
1435
1435
  return;
1436
1436
  }
1437
- return i.type === "perspective" ? e = new Mt(wt.radToDeg(n.yfov), n.aspectRatio || 1, n.znear || 1, n.zfar || 2e6) : i.type === "orthographic" && (e = new yt(-n.xmag, n.xmag, n.ymag, -n.ymag, n.znear, n.zfar)), i.name && (e.name = this.createUniqueName(i.name)), k(e, i), Promise.resolve(e);
1437
+ return i.type === "perspective" ? e = new _t(Lt.radToDeg(n.yfov), n.aspectRatio || 1, n.znear || 1, n.zfar || 2e6) : i.type === "orthographic" && (e = new Mt(-n.xmag, n.xmag, n.ymag, -n.ymag, n.znear, n.zfar)), i.name && (e.name = this.createUniqueName(i.name)), O(e, i), Promise.resolve(e);
1438
1438
  }
1439
1439
  /**
1440
1440
  * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@@ -1453,12 +1453,12 @@ class En {
1453
1453
  const l = r[c];
1454
1454
  if (l) {
1455
1455
  a.push(l);
1456
- const d = new Q();
1456
+ const d = new W();
1457
1457
  s !== null && d.fromArray(s.array, c * 16), o.push(d);
1458
1458
  } else
1459
1459
  console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', e.joints[c]);
1460
1460
  }
1461
- return new bt(a, o);
1461
+ return new wt(a, o);
1462
1462
  });
1463
1463
  }
1464
1464
  /**
@@ -1482,16 +1482,16 @@ class En {
1482
1482
  Promise.all(u)
1483
1483
  ]).then(function(l) {
1484
1484
  const d = l[0], h = l[1], p = l[2], x = l[3], m = l[4], g = [];
1485
- for (let E = 0, M = d.length; E < M; E++) {
1486
- const T = d[E], N = h[E], I = p[E], L = x[E], v = m[E];
1485
+ for (let E = 0, A = d.length; E < A; E++) {
1486
+ const T = d[E], L = h[E], y = p[E], M = x[E], I = m[E];
1487
1487
  if (T === void 0) continue;
1488
1488
  T.updateMatrix && T.updateMatrix();
1489
- const w = i._createAnimationTracks(T, N, I, L, v);
1489
+ const w = i._createAnimationTracks(T, L, y, M, I);
1490
1490
  if (w)
1491
- for (let F = 0; F < w.length; F++)
1492
- g.push(w[F]);
1491
+ for (let k = 0; k < w.length; k++)
1492
+ g.push(w[k]);
1493
1493
  }
1494
- return new St(s, void 0, g);
1494
+ return new yt(s, void 0, g);
1495
1495
  });
1496
1496
  }
1497
1497
  createNodeMesh(t) {
@@ -1524,7 +1524,7 @@ class En {
1524
1524
  ]).then(function(c) {
1525
1525
  const u = c[0], l = c[1], d = c[2];
1526
1526
  d !== null && u.traverse(function(h) {
1527
- h.isSkinnedMesh && h.bind(d, Rn);
1527
+ h.isSkinnedMesh && h.bind(d, An);
1528
1528
  });
1529
1529
  for (let h = 0, p = l.length; h < p; h++)
1530
1530
  u.add(l[h]);
@@ -1548,11 +1548,11 @@ class En {
1548
1548
  a.push(c);
1549
1549
  }), this.nodeCache[t] = Promise.all(a).then(function(c) {
1550
1550
  let u;
1551
- if (s.isBone === !0 ? u = new Nt() : c.length > 1 ? u = new re() : c.length === 1 ? u = c[0] : u = new Oe(), u !== c[0])
1551
+ if (s.isBone === !0 ? u = new St() : c.length > 1 ? u = new Z() : c.length === 1 ? u = c[0] : u = new be(), u !== c[0])
1552
1552
  for (let l = 0, d = c.length; l < d; l++)
1553
1553
  u.add(c[l]);
1554
- if (s.name && (u.userData.name = s.name, u.name = r), k(u, s), s.extensions && U(i, u, s), s.matrix !== void 0) {
1555
- const l = new Q();
1554
+ if (s.name && (u.userData.name = s.name, u.name = r), O(u, s), s.extensions && H(i, u, s), s.matrix !== void 0) {
1555
+ const l = new W();
1556
1556
  l.fromArray(s.matrix), u.applyMatrix4(l);
1557
1557
  } else
1558
1558
  s.translation !== void 0 && u.position.fromArray(s.translation), s.rotation !== void 0 && u.quaternion.fromArray(s.rotation), s.scale !== void 0 && u.scale.fromArray(s.scale);
@@ -1573,8 +1573,8 @@ class En {
1573
1573
  * @return {Promise<Group>}
1574
1574
  */
1575
1575
  loadScene(t) {
1576
- const e = this.extensions, i = this.json.scenes[t], n = this, s = new re();
1577
- i.name && (s.name = n.createUniqueName(i.name)), k(s, i), i.extensions && U(e, s, i);
1576
+ const e = this.extensions, i = this.json.scenes[t], n = this, s = new Z();
1577
+ i.name && (s.name = n.createUniqueName(i.name)), O(s, i), i.extensions && H(e, s, i);
1578
1578
  const r = i.nodes || [], a = [];
1579
1579
  for (let o = 0, c = r.length; o < c; o++)
1580
1580
  a.push(n.getDependency("node", r[o]));
@@ -1584,7 +1584,7 @@ class En {
1584
1584
  const c = (u) => {
1585
1585
  const l = /* @__PURE__ */ new Map();
1586
1586
  for (const [d, h] of n.associations)
1587
- (d instanceof se || d instanceof Te) && l.set(d, h);
1587
+ (d instanceof Q || d instanceof he) && l.set(d, h);
1588
1588
  return u.traverse((d) => {
1589
1589
  const h = n.associations.get(d);
1590
1590
  h != null && l.set(d, h);
@@ -1595,38 +1595,38 @@ class En {
1595
1595
  }
1596
1596
  _createAnimationTracks(t, e, i, n, s) {
1597
1597
  const r = [], a = t.name ? t.name : t.uuid, o = [];
1598
- D[s.path] === D.weights ? t.traverse(function(d) {
1598
+ P[s.path] === P.weights ? t.traverse(function(d) {
1599
1599
  d.morphTargetInfluences && o.push(d.name ? d.name : d.uuid);
1600
1600
  }) : o.push(a);
1601
1601
  let c;
1602
- switch (D[s.path]) {
1603
- case D.weights:
1604
- c = Re;
1602
+ switch (P[s.path]) {
1603
+ case P.weights:
1604
+ c = me;
1605
1605
  break;
1606
- case D.rotation:
1607
- c = Ee;
1606
+ case P.rotation:
1607
+ c = ge;
1608
1608
  break;
1609
- case D.translation:
1610
- case D.scale:
1611
- c = xe;
1609
+ case P.translation:
1610
+ case P.scale:
1611
+ c = pe;
1612
1612
  break;
1613
1613
  default:
1614
1614
  switch (i.itemSize) {
1615
1615
  case 1:
1616
- c = Re;
1616
+ c = me;
1617
1617
  break;
1618
1618
  case 2:
1619
1619
  case 3:
1620
1620
  default:
1621
- c = xe;
1621
+ c = pe;
1622
1622
  break;
1623
1623
  }
1624
1624
  break;
1625
1625
  }
1626
- const u = n.interpolation !== void 0 ? hn[n.interpolation] : De, l = this._getArrayFromAccessor(i);
1626
+ const u = n.interpolation !== void 0 ? mn[n.interpolation] : ve, l = this._getArrayFromAccessor(i);
1627
1627
  for (let d = 0, h = o.length; d < h; d++) {
1628
1628
  const p = new c(
1629
- o[d] + "." + D[s.path],
1629
+ o[d] + "." + P[s.path],
1630
1630
  e.array,
1631
1631
  l,
1632
1632
  u
@@ -1638,7 +1638,7 @@ class En {
1638
1638
  _getArrayFromAccessor(t) {
1639
1639
  let e = t.array;
1640
1640
  if (t.normalized) {
1641
- const i = de(e.constructor), n = new Float32Array(e.length);
1641
+ const i = ae(e.constructor), n = new Float32Array(e.length);
1642
1642
  for (let s = 0, r = e.length; s < r; s++)
1643
1643
  n[s] = e[s] * i;
1644
1644
  e = n;
@@ -1647,21 +1647,21 @@ class En {
1647
1647
  }
1648
1648
  _createCubicSplineTrackInterpolant(t) {
1649
1649
  t.createInterpolant = function(i) {
1650
- const n = this instanceof Ee ? dn : Ge;
1650
+ const n = this instanceof ge ? pn : Fe;
1651
1651
  return new n(this.times, this.values, this.getValueSize() / 3, i);
1652
1652
  }, t.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0;
1653
1653
  }
1654
1654
  }
1655
- function An(f, t, e) {
1656
- const i = t.attributes, n = new He();
1655
+ function Ln(f, t, e) {
1656
+ const i = t.attributes, n = new ke();
1657
1657
  if (i.POSITION !== void 0) {
1658
1658
  const a = e.json.accessors[i.POSITION], o = a.min, c = a.max;
1659
1659
  if (o !== void 0 && c !== void 0) {
1660
1660
  if (n.set(
1661
- new B(o[0], o[1], o[2]),
1662
- new B(c[0], c[1], c[2])
1661
+ new j(o[0], o[1], o[2]),
1662
+ new j(c[0], c[1], c[2])
1663
1663
  ), a.normalized) {
1664
- const u = de(V[a.componentType]);
1664
+ const u = ae(K[a.componentType]);
1665
1665
  n.min.multiplyScalar(u), n.max.multiplyScalar(u);
1666
1666
  }
1667
1667
  } else {
@@ -1672,14 +1672,14 @@ function An(f, t, e) {
1672
1672
  return;
1673
1673
  const s = t.targets;
1674
1674
  if (s !== void 0) {
1675
- const a = new B(), o = new B();
1675
+ const a = new j(), o = new j();
1676
1676
  for (let c = 0, u = s.length; c < u; c++) {
1677
1677
  const l = s[c];
1678
1678
  if (l.POSITION !== void 0) {
1679
1679
  const d = e.json.accessors[l.POSITION], h = d.min, p = d.max;
1680
1680
  if (h !== void 0 && p !== void 0) {
1681
1681
  if (o.setX(Math.max(Math.abs(h[0]), Math.abs(p[0]))), o.setY(Math.max(Math.abs(h[1]), Math.abs(p[1]))), o.setZ(Math.max(Math.abs(h[2]), Math.abs(p[2]))), d.normalized) {
1682
- const x = de(V[d.componentType]);
1682
+ const x = ae(K[d.componentType]);
1683
1683
  o.multiplyScalar(x);
1684
1684
  }
1685
1685
  a.max(o);
@@ -1690,10 +1690,10 @@ function An(f, t, e) {
1690
1690
  n.expandByVector(a);
1691
1691
  }
1692
1692
  f.boundingBox = n;
1693
- const r = new kt();
1693
+ const r = new Ot();
1694
1694
  n.getCenter(r.center), r.radius = n.min.distanceTo(n.max) / 2, f.boundingSphere = r;
1695
1695
  }
1696
- function be(f, t, e) {
1696
+ function Le(f, t, e) {
1697
1697
  const i = t.attributes, n = [];
1698
1698
  function s(r, a) {
1699
1699
  return e.getDependency("accessor", r).then(function(o) {
@@ -1701,7 +1701,7 @@ function be(f, t, e) {
1701
1701
  });
1702
1702
  }
1703
1703
  for (const r in i) {
1704
- const a = fe[r] || r.toLowerCase();
1704
+ const a = oe[r] || r.toLowerCase();
1705
1705
  a in f.attributes || n.push(s(i[r], a));
1706
1706
  }
1707
1707
  if (t.indices !== void 0 && !f.index) {
@@ -1710,12 +1710,12 @@ function be(f, t, e) {
1710
1710
  });
1711
1711
  n.push(r);
1712
1712
  }
1713
- return Ae.workingColorSpace !== P && "COLOR_0" in i && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${Ae.workingColorSpace}" not supported.`), k(f, t), An(f, t, e), Promise.all(n).then(function() {
1714
- return t.targets !== void 0 ? mn(f, t.targets, e) : f;
1713
+ return Te.workingColorSpace !== v && "COLOR_0" in i && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${Te.workingColorSpace}" not supported.`), O(f, t), Ln(f, t, e), Promise.all(n).then(function() {
1714
+ return t.targets !== void 0 ? Tn(f, t.targets, e) : f;
1715
1715
  });
1716
1716
  }
1717
- function Ln() {
1718
- const f = K(!1), t = K(""), e = Be([]), i = K(null), n = new Ft(), s = new Dt(), r = new Ht(), a = new Gt();
1717
+ function Mn() {
1718
+ const f = B(!1), t = B(""), e = je([]), i = B(null), n = new Ht(), s = new Gt(), r = new Ut(), a = new Bt();
1719
1719
  return {
1720
1720
  isLoading: f,
1721
1721
  loadingProgress: t,
@@ -1740,35 +1740,35 @@ function Ln() {
1740
1740
  const g = URL.createObjectURL(p);
1741
1741
  l.push(g);
1742
1742
  let E = null;
1743
- const M = (T) => {
1744
- const N = T.lengthComputable ? T.loaded / T.total * 100 : 0;
1745
- t.value = `正在加载 ${x}... ${Math.round(N)}%`;
1743
+ const A = (T) => {
1744
+ const L = T.lengthComputable ? T.loaded / T.total * 100 : 0;
1745
+ t.value = `正在加载 ${x}... ${Math.round(L)}%`;
1746
1746
  };
1747
1747
  switch (t.value = `正在加载 ${x}... 0%`, m) {
1748
1748
  case "obj":
1749
1749
  const T = x.replace(/\.obj$/i, ".mtl").toLowerCase();
1750
1750
  if (u.has(T)) {
1751
- const v = u.get(T), w = URL.createObjectURL(v);
1751
+ const I = u.get(T), w = URL.createObjectURL(I);
1752
1752
  l.push(w);
1753
- const F = await n.loadAsync(w);
1754
- F.preload(), s.setMaterials(F);
1753
+ const k = await n.loadAsync(w);
1754
+ k.preload(), s.setMaterials(k);
1755
1755
  } else
1756
1756
  s.setMaterials(null);
1757
- E = await s.loadAsync(g, M);
1757
+ E = await s.loadAsync(g, A);
1758
1758
  break;
1759
1759
  case "stl":
1760
- const N = await r.loadAsync(g, M), I = new Pt({ color: 11184810, specular: 1118481, shininess: 200 });
1761
- E = new Fe(N, I);
1760
+ const L = await r.loadAsync(g, A), y = new vt({ color: 11184810, specular: 1118481, shininess: 200 });
1761
+ E = new Oe(L, y);
1762
1762
  break;
1763
1763
  case "gltf":
1764
1764
  case "glb":
1765
- E = (await a.loadAsync(g, M)).scene;
1765
+ E = (await a.loadAsync(g, A)).scene;
1766
1766
  break;
1767
1767
  default:
1768
1768
  console.warn(`不支持的文件类型: .${m}`), t.value = `不支持的文件类型: ${x}`;
1769
1769
  continue;
1770
1770
  }
1771
- E && (E.userData.boundingBox = new He().setFromObject(E), d.push(E));
1771
+ E && (E.userData.boundingBox = new ke().setFromObject(E), d.push(E));
1772
1772
  }
1773
1773
  e.value = d, t.value = "加载完成!";
1774
1774
  } catch (p) {
@@ -1779,198 +1779,168 @@ function Ln() {
1779
1779
  }
1780
1780
  };
1781
1781
  }
1782
- const _n = { class: "obj-viewer-container" }, Mn = { class: "buttonGroup-topLeft" }, wn = { class: "buttonGroup-left" }, yn = { class: "buttonGroup-right" }, bn = { class: "left-panel" }, Sn = { class: "panel-header" }, Nn = {
1783
- key: 0,
1784
- class: "clipping-content"
1785
- }, In = { class: "radio-group" }, Cn = { class: "radio-label" }, On = { class: "radio-label" }, vn = { class: "radio-label" }, kn = { class: "radio-label" }, Pn = {
1782
+ function wn(f, t = {}) {
1783
+ const e = {
1784
+ threeInfo: {},
1785
+ modelLoader: {},
1786
+ animation: {},
1787
+ clipping: {}
1788
+ }, i = kt(f);
1789
+ e.threeInfo = i;
1790
+ const { currentModels: n, getThreeJSObjects: s } = i, { useModelLoaderHook: r, useAnimationHook: a, useClippingHook: o } = t;
1791
+ return r && (e.modelLoader = Mn()), a && (e.animation = Pt(s, n)), o && (e.clipping = Ft(s, n)), e;
1792
+ }
1793
+ const yn = { class: "obj-viewer-container" }, Sn = { class: "buttonGroup-topLeft" }, bn = { class: "buttonGroup-left" }, Nn = { class: "buttonGroup-right" }, In = { class: "left-panel" }, Cn = { class: "panel-header" }, On = {
1786
1794
  key: 0,
1787
1795
  class: "loading-overlay"
1788
- }, Fn = /* @__PURE__ */ Ke({
1796
+ }, vn = /* @__PURE__ */ Be({
1789
1797
  __name: "threePreview",
1790
1798
  props: {
1791
1799
  fileBlobs: { default: () => [] }
1792
1800
  },
1793
1801
  setup(f) {
1794
- const t = f, e = K(null), i = K(!1), n = K(""), {
1795
- currentModels: s,
1796
- resetView: r,
1797
- initThreeJS: a,
1798
- handleResize: o,
1799
- getThreeJSObjects: c,
1800
- cleanup: u,
1801
- setModels: l,
1802
- axesHelperVisible: d,
1803
- toggleAxesVisibility: h
1804
- } = $e(e), {
1805
- isLoading: p,
1806
- loadingProgress: x,
1807
- loadedModels: m,
1808
- error: g,
1809
- loadModelsFromBlobs: E
1810
- } = Ln(), { isAnimating: M, toggleAnimation: T, stopAnimation: N } = Je(c, s), { isClipping: I, activeClippingAxis: L, toggleClipping: v, updateClippingPlanes: w } = Qe(
1811
- c,
1812
- s
1813
- ), F = () => {
1802
+ const t = f, e = B(null), i = B(!1), n = B(""), {
1803
+ threeInfo: {
1804
+ currentModels: s,
1805
+ resetView: r,
1806
+ initThreeJS: a,
1807
+ handleResize: o,
1808
+ getThreeJSObjects: c,
1809
+ cleanup: u,
1810
+ setAndFitModels: l,
1811
+ axesHelperVisible: d,
1812
+ toggleAxesVisibility: h
1813
+ },
1814
+ modelLoader: {
1815
+ isLoading: p,
1816
+ loadingProgress: x,
1817
+ loadedModels: m,
1818
+ error: g,
1819
+ loadModelsFromBlobs: E
1820
+ },
1821
+ animation: { isAnimating: A, toggleAnimation: T, startAnimation: L, stopAnimation: y },
1822
+ clipping: {
1823
+ isClipping: M,
1824
+ activeClippingAxis: I,
1825
+ toggleClipping: w,
1826
+ updateClippingPlanes: k
1827
+ }
1828
+ } = wn(e, {
1829
+ useModelLoaderHook: !0,
1830
+ useAnimationHook: !0,
1831
+ useClippingHook: !0
1832
+ }), De = () => {
1814
1833
  h();
1834
+ }, He = (_) => {
1835
+ I.value = _, k();
1815
1836
  };
1816
- Z(() => t.fileBlobs, (y) => {
1817
- y && y.length > 0 && E(y).catch((A) => {
1818
- console.error("加载错误:", A);
1837
+ Y(() => t.fileBlobs, (_) => {
1838
+ _ && _.length > 0 && E(_).catch((S) => {
1839
+ console.error("加载错误:", S);
1819
1840
  });
1820
1841
  }, {
1821
1842
  immediate: !0,
1822
1843
  deep: !0
1823
- }), Z(m, (y) => {
1824
- y && y.length > 0 && l(y);
1825
- }), Z(g, (y) => {
1826
- y && Le.error(`模型加载失败: ${y}`);
1844
+ }), Y(m, (_) => {
1845
+ _ && _.length > 0 && l(_);
1846
+ }), Y(g, (_) => {
1847
+ _ && xe.error(`模型加载失败: ${_}`);
1827
1848
  });
1828
- const he = (y) => {
1829
- i.value = !0, n.value = y, y === "剖面视图" && !I.value && v();
1849
+ const ce = (_) => {
1850
+ i.value = !0, n.value = _, _ === "剖面视图" && !M.value && w();
1830
1851
  };
1831
- return Ve(async () => {
1832
- await ze();
1852
+ return Ke(async () => {
1853
+ await Ve();
1833
1854
  try {
1834
1855
  a(), window.addEventListener("resize", o);
1835
- } catch (y) {
1836
- console.error("Three.js 初始化失败:", y), Le.error("渲染引擎初始化失败!");
1856
+ } catch (_) {
1857
+ console.error("Three.js 初始化失败:", _), xe.error("渲染引擎初始化失败!");
1837
1858
  }
1838
- }), Xe(() => {
1839
- n.value = "", window.removeEventListener("resize", o), M.value && N(), u();
1840
- }), (y, A) => {
1841
- const je = qe("el-scrollbar");
1842
- return te(), ee("div", _n, [
1843
- _("div", {
1859
+ }), ze(() => {
1860
+ n.value = "", window.removeEventListener("resize", o), A.value && y(), u();
1861
+ }), (_, S) => {
1862
+ const Ge = Xe("el-scrollbar");
1863
+ return $(), le("div", yn, [
1864
+ b("div", {
1844
1865
  ref_key: "threejsContainer",
1845
1866
  ref: e,
1846
1867
  class: "threejs-container"
1847
1868
  }, null, 512),
1848
- A[15] || (A[15] = _("div", { class: "buttonGroup-top" }, null, -1)),
1849
- _("div", Mn, [
1850
- H(j, {
1869
+ S[3] || (S[3] = b("div", { class: "buttonGroup-top" }, null, -1)),
1870
+ b("div", Sn, [
1871
+ F(U, {
1851
1872
  name: "viewReset",
1852
1873
  size: "24",
1853
- onClick: b(r),
1874
+ onClick: D(r),
1854
1875
  title: "重置"
1855
1876
  }, null, 8, ["onClick"]),
1856
- H(j, {
1877
+ F(U, {
1857
1878
  name: "fangda",
1858
1879
  size: "24",
1859
1880
  title: "放大"
1860
1881
  }),
1861
- H(j, {
1882
+ F(U, {
1862
1883
  name: "suoxiao",
1863
1884
  size: "24",
1864
1885
  title: "缩小"
1865
1886
  }),
1866
- H(j, {
1887
+ F(U, {
1867
1888
  name: "lookAround",
1868
1889
  size: "24",
1869
- onClick: b(T),
1870
- title: b(M) ? "停止动画" : "动画视图"
1890
+ onClick: D(T),
1891
+ title: D(A) ? "停止动画" : "动画视图"
1871
1892
  }, null, 8, ["onClick", "title"]),
1872
- H(j, {
1893
+ F(U, {
1873
1894
  name: "zuobiaoxi",
1874
1895
  size: "24",
1875
- active: b(d),
1876
- onClick: F,
1896
+ active: D(d),
1897
+ onClick: De,
1877
1898
  title: "显隐坐标轴"
1878
1899
  }, null, 8, ["active"])
1879
1900
  ]),
1880
- _("div", wn, [
1881
- me(y.$slots, "button-left", { switchRightPanel: he }, void 0, !0),
1882
- H(j, {
1901
+ b("div", bn, [
1902
+ fe(_.$slots, "button-left", { switchRightPanel: ce }, void 0, !0),
1903
+ F(U, {
1883
1904
  name: "clipping",
1884
1905
  size: "24",
1885
- onClick: A[0] || (A[0] = (S) => he("剖面视图")),
1906
+ onClick: S[0] || (S[0] = (Ue) => ce("剖面视图")),
1886
1907
  active: i.value && n.value === "剖面视图",
1887
1908
  title: "剖面视图"
1888
1909
  }, null, 8, ["active"])
1889
1910
  ]),
1890
- _("div", yn, [
1891
- me(y.$slots, "button-right", {}, void 0, !0)
1911
+ b("div", Nn, [
1912
+ fe(_.$slots, "button-right", {}, void 0, !0)
1892
1913
  ]),
1893
- A[16] || (A[16] = _("div", { class: "buttonGroup-bottom" }, null, -1)),
1894
- z(_("div", bn, [
1895
- _("div", Sn, [
1896
- _("span", null, ge(n.value), 1),
1897
- _("span", {
1914
+ S[4] || (S[4] = b("div", { class: "buttonGroup-bottom" }, null, -1)),
1915
+ qe(b("div", In, [
1916
+ b("div", Cn, [
1917
+ b("span", null, de(n.value), 1),
1918
+ b("span", {
1898
1919
  class: "close",
1899
- onClick: A[1] || (A[1] = (S) => i.value = !1)
1920
+ onClick: S[1] || (S[1] = (Ue) => i.value = !1)
1900
1921
  }, " X ")
1901
1922
  ]),
1902
- H(je, { "max-height": "650px" }, {
1923
+ F(Ge, { "max-height": "650px" }, {
1903
1924
  default: We(() => [
1904
- n.value === "剖面视图" ? (te(), ee("div", Nn, [
1905
- _("div", In, [
1906
- _("label", Cn, [
1907
- z(_("input", {
1908
- type: "radio",
1909
- name: "clipping-axis",
1910
- value: "none",
1911
- "onUpdate:modelValue": A[2] || (A[2] = (S) => $(L) ? L.value = S : null),
1912
- onChange: A[3] || (A[3] = //@ts-ignore
1913
- (...S) => b(w) && b(w)(...S))
1914
- }, null, 544), [
1915
- [J, b(L)]
1916
- ]),
1917
- A[10] || (A[10] = _("span", { class: "radio-text" }, "无切割", -1))
1918
- ]),
1919
- _("label", On, [
1920
- z(_("input", {
1921
- type: "radio",
1922
- name: "clipping-axis",
1923
- value: "x",
1924
- "onUpdate:modelValue": A[4] || (A[4] = (S) => $(L) ? L.value = S : null),
1925
- onChange: A[5] || (A[5] = //@ts-ignore
1926
- (...S) => b(w) && b(w)(...S))
1927
- }, null, 544), [
1928
- [J, b(L)]
1929
- ]),
1930
- A[11] || (A[11] = _("span", { class: "radio-text" }, "X轴切割", -1))
1931
- ]),
1932
- _("label", vn, [
1933
- z(_("input", {
1934
- type: "radio",
1935
- name: "clipping-axis",
1936
- value: "y",
1937
- "onUpdate:modelValue": A[6] || (A[6] = (S) => $(L) ? L.value = S : null),
1938
- onChange: A[7] || (A[7] = //@ts-ignore
1939
- (...S) => b(w) && b(w)(...S))
1940
- }, null, 544), [
1941
- [J, b(L)]
1942
- ]),
1943
- A[12] || (A[12] = _("span", { class: "radio-text" }, "Y轴切割", -1))
1944
- ]),
1945
- _("label", kn, [
1946
- z(_("input", {
1947
- type: "radio",
1948
- name: "clipping-axis",
1949
- value: "z",
1950
- "onUpdate:modelValue": A[8] || (A[8] = (S) => $(L) ? L.value = S : null),
1951
- onChange: A[9] || (A[9] = //@ts-ignore
1952
- (...S) => b(w) && b(w)(...S))
1953
- }, null, 544), [
1954
- [J, b(L)]
1955
- ]),
1956
- A[13] || (A[13] = _("span", { class: "radio-text" }, "Z轴切割", -1))
1957
- ])
1958
- ])
1959
- ])) : pe("", !0)
1925
+ n.value === "剖面视图" ? ($(), Ye(Dt, {
1926
+ key: 0,
1927
+ value: D(I),
1928
+ onChange: He
1929
+ }, null, 8, ["value"])) : ue("", !0)
1960
1930
  ]),
1961
1931
  _: 1
1962
1932
  })
1963
1933
  ], 512), [
1964
- [Ye, i.value]
1934
+ [$e, i.value]
1965
1935
  ]),
1966
- b(p) ? (te(), ee("div", Pn, [
1967
- A[14] || (A[14] = _("div", { class: "loading-spinner" }, null, -1)),
1968
- _("p", null, ge(b(x)), 1)
1969
- ])) : pe("", !0)
1936
+ D(p) ? ($(), le("div", On, [
1937
+ S[2] || (S[2] = b("div", { class: "loading-spinner" }, null, -1)),
1938
+ b("p", null, de(D(x)), 1)
1939
+ ])) : ue("", !0)
1970
1940
  ]);
1971
1941
  };
1972
1942
  }
1973
- }), Vn = /* @__PURE__ */ Ut(Fn, [["__scopeId", "data-v-0b2f8148"]]);
1943
+ }), jn = /* @__PURE__ */ jt(vn, [["__scopeId", "data-v-e55581e6"]]);
1974
1944
  export {
1975
- Vn as default
1945
+ jn as default
1976
1946
  };