ss-component-new 1.1.263 → 1.1.264

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 (89) hide show
  1. package/dist/{array-BCYeTWHp.cjs → array-D3xioWc3.cjs} +1 -1
  2. package/dist/{array-BiSkXjDh.js → array-De6v-7c8.js} +2 -2
  3. package/dist/{cloneDeep-CxhinJk5.js → cloneDeep-B2ByQP-n.js} +1 -1
  4. package/dist/{cloneDeep-BShYbOkw.cjs → cloneDeep-fJrTDzM4.cjs} +1 -1
  5. package/dist/{index-DvydSDWz.js → index--0pthhoG.js} +33 -33
  6. package/dist/{index-B8d1EBwW.cjs → index-08aCULjy.cjs} +1 -1
  7. package/dist/{index-BRgT-cwL.cjs → index-0TcXp8mH.cjs} +1 -1
  8. package/dist/index-B4jC_LC5.cjs +1 -0
  9. package/dist/{index-Cd2qjywt.cjs → index-B6yeLC4B.cjs} +1 -1
  10. package/dist/{index-BJEmWdGc.cjs → index-BCLA1nYG.cjs} +1 -1
  11. package/dist/{index-CWpNIgx-.js → index-BDIP3GvE.js} +5 -5
  12. package/dist/{index-6mqoLKfR.js → index-BLC8ydIr.js} +6 -6
  13. package/dist/{index-BEQcfNC8.js → index-BRdg4IiT.js} +503 -496
  14. package/dist/{index-GDAKW2b9.cjs → index-BRkdObg7.cjs} +1 -1
  15. package/dist/{index-DecqROTY.cjs → index-BRkvuCrS.cjs} +1 -1
  16. package/dist/index-BYUhFGra.cjs +1 -0
  17. package/dist/{index-C9gBSiUj.cjs → index-BjJJGDlr.cjs} +1 -1
  18. package/dist/{index-BxD91iWh.js → index-BwYoB3zY.js} +1 -1
  19. package/dist/{index-D9sisgye.js → index-ByD0b4gQ.js} +1 -1
  20. package/dist/{index-kq_YOCp0.cjs → index-BzfDFTVJ.cjs} +7 -7
  21. package/dist/{index-BqqWyJ_i.js → index-C4k05bGp.js} +8 -8
  22. package/dist/{index-jxXiBXta.cjs → index-C7u1PeVA.cjs} +1 -1
  23. package/dist/{index-B0SEIfhd.js → index-CACJUJNK.js} +3 -3
  24. package/dist/{index-Duw1U19n.js → index-CAMfVOTJ.js} +3 -3
  25. package/dist/{index-D0isXbYa.js → index-CCxjdgET.js} +13 -14
  26. package/dist/{index-BJWxGK8l.cjs → index-CGmFed4r.cjs} +1 -1
  27. package/dist/{index-Bl-nqQUb.cjs → index-CINFGcYo.cjs} +1 -1
  28. package/dist/{index-DdfwFwkR.js → index-CKwpRhPM.js} +3 -3
  29. package/dist/{index-B2bPpqmz.js → index-CMMc21DE.js} +5 -5
  30. package/dist/{index-B96mvnY6.js → index-CUmxELcB.js} +1 -1
  31. package/dist/{index--CBmQToI.js → index-CZ2mVLUS.js} +4 -4
  32. package/dist/{index-BRYyDz7j.cjs → index-Ca-dN5Cs.cjs} +1 -1
  33. package/dist/{index-BeYDJriQ.js → index-CiPPPWoz.js} +110 -111
  34. package/dist/index-ClFJDxkW.js +704 -0
  35. package/dist/{index-YBOakoO-.js → index-CmiwbsGe.js} +1 -1
  36. package/dist/{index-h9avu7we.cjs → index-CophBMbH.cjs} +1 -1
  37. package/dist/{index-cPpFPrRC.cjs → index-Ctjc6Jcq.cjs} +1 -1
  38. package/dist/{index-CzuGT7Su.cjs → index-CvvmJuAB.cjs} +1 -1
  39. package/dist/{index-C8FwXAiK.js → index-CwB7I565.js} +1 -1
  40. package/dist/{index-BW_gJg6Y.js → index-DCGzAKWd.js} +4 -4
  41. package/dist/{index-CNnhenkX.cjs → index-DDPAMlSG.cjs} +1 -1
  42. package/dist/index-DEv2DOlH.cjs +1 -0
  43. package/dist/{index-DhT3lFvD.js → index-DMCUh24w.js} +5 -5
  44. package/dist/{index-BiIAlHzV.cjs → index-DSxBLvAT.cjs} +1 -1
  45. package/dist/{index-DSPU33cy.js → index-DXd7EQps.js} +5 -5
  46. package/dist/index-Dcpfhw1L.cjs +1 -0
  47. package/dist/{index-5G9gxVsG.js → index-DfKXP07X.js} +13 -8
  48. package/dist/{index-BG7p7J6-.js → index-Dn9ZzQw9.js} +3 -3
  49. package/dist/{index-CvoVhrqh.cjs → index-DymcJtj4.cjs} +1 -1
  50. package/dist/{index-CPNiI7xc.cjs → index-ERfBi-RP.cjs} +1 -1
  51. package/dist/{index-DJRZAkF4.js → index-EmmO21uK.js} +4 -4
  52. package/dist/{index-BEPkDcRB.js → index-GG9AAJSa.js} +4 -4
  53. package/dist/index-GtWRkXjP.js +133 -0
  54. package/dist/{index-B5fyktOS.js → index-Pzfiy_pl.js} +1 -1
  55. package/dist/index-SYAZCe_x.js +3579 -0
  56. package/dist/{index-sYRfzwGi.cjs → index-_rARCgTs.cjs} +1 -1
  57. package/dist/index-cj-WHGF0.cjs +1 -0
  58. package/dist/{index-BTWHfvj_.cjs → index-hRwcFNhM.cjs} +1 -1
  59. package/dist/{index-Cmf6TSRr.js → index-qofx0IRr.js} +9 -9
  60. package/dist/index-sFDoFhGY.cjs +1 -0
  61. package/dist/{index-BPGk6VZT.cjs → index-sVlKvvQZ.cjs} +1 -1
  62. package/dist/{index-BReBoqZM.cjs → index-u6rAowW4.cjs} +1 -1
  63. package/dist/{index.vue_vue_type_script_setup_true_lang-dRZKrDpe.js → index.vue_vue_type_script_setup_true_lang-CwRRfUhq.js} +1 -1
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-WZ_0N2ba.cjs → index.vue_vue_type_script_setup_true_lang-HIAfOHHq.cjs} +1 -1
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DC0qx2mv.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Be6r7R3U.cjs} +1 -1
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-D6zTMeXs.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-dyax8Dv5.js} +6 -6
  67. package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Bnu6O5Dx.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DUY9SJBE.js} +12 -12
  68. package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-B9TnTaRE.cjs → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DYSNP688.cjs} +1 -1
  69. package/dist/{login-B_Ta8W8C.cjs → login-Wrj9nSOa.cjs} +1 -1
  70. package/dist/{login-D_UosrWe.js → login-o8x8Nxaf.js} +2 -2
  71. package/dist/{main-CHSqRi2c.js → main-DWoD0Vdp.js} +7 -7
  72. package/dist/{main-DRtNsfjw.cjs → main-rSkhpXGR.cjs} +1 -1
  73. package/dist/{menu-BjwI4sfO.js → menu-CFLAcuA-.js} +33 -24
  74. package/dist/{menu-CH06rBlw.cjs → menu-cQfDaGL1.cjs} +4 -4
  75. package/dist/{modelComp-LhGhARtD.cjs → modelComp-4oAkv2ok.cjs} +1 -1
  76. package/dist/{modelComp-CiiFZm1t.js → modelComp-B7C56fRv.js} +1 -1
  77. package/dist/ss-component.cjs +1 -1
  78. package/dist/ss-component.css +1 -1
  79. package/dist/ss-component.js +7 -7
  80. package/dist/ss-component3.cjs +1 -1
  81. package/dist/ss-component3.js +1 -1
  82. package/package.json +1 -1
  83. package/dist/index-21rauG0g.cjs +0 -1
  84. package/dist/index-3fLiW589.cjs +0 -1
  85. package/dist/index-B5vG0PaI.cjs +0 -1
  86. package/dist/index-C3-tA5Oy.js +0 -3520
  87. package/dist/index-CYjQVlPG.cjs +0 -1
  88. package/dist/index-ClyxHDAy.cjs +0 -1
  89. package/dist/index-WOjw27kj.js +0 -683
@@ -1,12 +1,12 @@
1
- import { ref as Pt, watch as Ys, nextTick as bd, resolveComponent as gh, createBlock as kl, openBlock as Xt, withCtx as ai, createElementVNode as xt, renderSlot as mc, onMounted as Bl, createElementBlock as sn, createCommentVNode as cs, Fragment as zl, renderList as Hl, normalizeStyle as _h, toDisplayString as si, createVNode as Wi, unref as Vi, computed as Ed, onBeforeUnmount as Ad, normalizeClass as gc, withDirectives as wd, isRef as Rd, vModelCheckbox as Cd, createSlots as Pd } from "vue";
2
- import { p as vr } from "./index-YBOakoO-.js";
3
- import { u as yh } from "./modelComp-CiiFZm1t.js";
4
- import { a2 as Ld, S as _c, a3 as Dd, i as yc, a4 as vc, a5 as Id } from "./index-5G9gxVsG.js";
5
- import { a as vh, g as Da, j as xc, k as Nd, l as Ud, s as Mc } from "./index-CWpNIgx-.js";
1
+ import { ref as Pt, watch as fs, nextTick as bd, resolveComponent as gh, createBlock as kl, openBlock as Xt, withCtx as ai, createElementVNode as xt, renderSlot as mc, onMounted as Bl, createElementBlock as sn, createCommentVNode as cs, Fragment as zl, renderList as Hl, normalizeStyle as _h, toDisplayString as si, createVNode as Wi, unref as Vi, computed as Ed, onBeforeUnmount as Ad, normalizeClass as gc, withDirectives as wd, isRef as Rd, vModelCheckbox as Cd, createSlots as Pd } from "vue";
2
+ import { p as vr } from "./index-CmiwbsGe.js";
3
+ import { u as yh } from "./modelComp-B7C56fRv.js";
4
+ import { a2 as Ld, S as _c, a3 as Dd, i as yc, a4 as vc, a5 as Id } from "./index-DfKXP07X.js";
5
+ import { a as vh, g as Da, j as xc, k as Nd, l as Ud, s as Mc } from "./index-BDIP3GvE.js";
6
6
  import { _ as Vl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- import { U as Sc, g as Tc, h as bc, j as Ec, S as Qa, k as Fd, c as ot } from "./cloneDeep-CxhinJk5.js";
8
- import { e as Gl, s as Bs, E as Ac, c as Ti, g as fs, b as Ia, u as xh, d as Od } from "./menu-BjwI4sfO.js";
9
- import { d as Mh } from "./index-B96mvnY6.js";
7
+ import { U as Sc, g as Tc, h as bc, j as Ec, S as Qa, k as Fd, c as ot } from "./cloneDeep-B2ByQP-n.js";
8
+ import { e as Gl, s as zs, E as Ac, c as Ti, g as ps, b as Ia, u as xh, d as Od } from "./menu-CFLAcuA-.js";
9
+ import { d as Mh } from "./index-CUmxELcB.js";
10
10
  var kd = "__lodash_hash_undefined__";
11
11
  function Bd(s) {
12
12
  return this.__data__.set(s, kd), this;
@@ -189,13 +189,13 @@ const gf = {
189
189
  },
190
190
  setup(s) {
191
191
  const e = s, t = Pt(null), n = Pt(!1), i = Pt(null);
192
- return Ys(
192
+ return fs(
193
193
  () => e == null ? void 0 : e.isVisible,
194
194
  () => {
195
195
  n.value = e == null ? void 0 : e.isVisible;
196
196
  },
197
197
  { deep: !0, immediate: !0 }
198
- ), Ys(
198
+ ), fs(
199
199
  () => i.value,
200
200
  () => {
201
201
  bd(() => {
@@ -263,7 +263,7 @@ const gf = {
263
263
  };
264
264
  return Bl(() => {
265
265
  l(n.columns);
266
- }), Ys(
266
+ }), fs(
267
267
  () => n.columns,
268
268
  () => {
269
269
  l(n.columns);
@@ -333,8 +333,8 @@ const gf = {
333
333
  * Copyright 2010-2025 Three.js Authors
334
334
  * SPDX-License-Identifier: MIT
335
335
  */
336
- const Wl = "177", Ws = { ROTATE: 0, DOLLY: 1, PAN: 2 }, zs = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, bf = 0, Lc = 1, Ef = 2, bh = 1, Eh = 2, bi = 3, li = 0, Un = 1, $n = 2, qi = 0, Xs = 1, Dc = 2, Ic = 3, Nc = 4, Af = 5, us = 100, wf = 101, Rf = 102, Cf = 103, Pf = 104, Lf = 200, Df = 201, If = 202, Nf = 203, jo = 204, qo = 205, Uf = 206, Ff = 207, Of = 208, kf = 209, Bf = 210, zf = 211, Hf = 212, Vf = 213, Gf = 214, Ko = 0, Yo = 1, Zo = 2, Zs = 3, $o = 4, Jo = 5, Qo = 6, el = 7, Wa = 0, Wf = 1, Xf = 2, Ki = 0, jf = 1, qf = 2, Kf = 3, Yf = 4, Zf = 5, $f = 6, Jf = 7, Uc = "attached", Qf = "detached", Ah = 300, $s = 301, Js = 302, Ua = 303, tl = 304, Xa = 306, Gn = 1e3, Nn = 1001, Fa = 1002, wn = 1003, wh = 1004, gr = 1005, xn = 1006, ba = 1007, ei = 1008, ci = 1009, Rh = 1010, Ch = 1011, Tr = 1012, Xl = 1013, ms = 1014, ti = 1015, Or = 1016, jl = 1017, ql = 1018, br = 1020, Ph = 35902, Lh = 1021, Dh = 1022, Wn = 1023, Er = 1026, Ar = 1027, Kl = 1028, Yl = 1029, Ih = 1030, Zl = 1031, $l = 1033, Ea = 33776, Aa = 33777, wa = 33778, Ra = 33779, nl = 35840, il = 35841, sl = 35842, rl = 35843, al = 36196, ol = 37492, ll = 37496, cl = 37808, ul = 37809, hl = 37810, dl = 37811, fl = 37812, pl = 37813, ml = 37814, gl = 37815, _l = 37816, yl = 37817, vl = 37818, xl = 37819, Ml = 37820, Sl = 37821, Ca = 36492, Tl = 36494, bl = 36495, Nh = 36283, El = 36284, Al = 36285, wl = 36286, wr = 2300, Rr = 2301, to = 2302, Fc = 2400, Oc = 2401, kc = 2402, ep = 2500, tp = 0, Uh = 1, Rl = 2, np = 3200, ip = 3201, ja = 0, sp = 1, Xi = "", gt = "srgb", Rn = "srgb-linear", Oa = "linear", Ut = "srgb", Ts = 7680, Bc = 519, rp = 512, ap = 513, op = 514, Fh = 515, lp = 516, cp = 517, up = 518, hp = 519, Cl = 35044, zc = "300 es", Ai = 2e3, ka = 2001;
337
- class vs {
336
+ const Wl = "177", Xs = { ROTATE: 0, DOLLY: 1, PAN: 2 }, Hs = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, bf = 0, Lc = 1, Ef = 2, bh = 1, Eh = 2, bi = 3, li = 0, Un = 1, $n = 2, qi = 0, js = 1, Dc = 2, Ic = 3, Nc = 4, Af = 5, us = 100, wf = 101, Rf = 102, Cf = 103, Pf = 104, Lf = 200, Df = 201, If = 202, Nf = 203, jo = 204, qo = 205, Uf = 206, Ff = 207, Of = 208, kf = 209, Bf = 210, zf = 211, Hf = 212, Vf = 213, Gf = 214, Ko = 0, Yo = 1, Zo = 2, Zs = 3, $o = 4, Jo = 5, Qo = 6, el = 7, Wa = 0, Wf = 1, Xf = 2, Ki = 0, jf = 1, qf = 2, Kf = 3, Yf = 4, Zf = 5, $f = 6, Jf = 7, Uc = "attached", Qf = "detached", Ah = 300, $s = 301, Js = 302, Ua = 303, tl = 304, Xa = 306, Gn = 1e3, Nn = 1001, Fa = 1002, wn = 1003, wh = 1004, gr = 1005, xn = 1006, ba = 1007, ei = 1008, ci = 1009, Rh = 1010, Ch = 1011, Tr = 1012, Xl = 1013, gs = 1014, ti = 1015, Or = 1016, jl = 1017, ql = 1018, br = 1020, Ph = 35902, Lh = 1021, Dh = 1022, Wn = 1023, Er = 1026, Ar = 1027, Kl = 1028, Yl = 1029, Ih = 1030, Zl = 1031, $l = 1033, Ea = 33776, Aa = 33777, wa = 33778, Ra = 33779, nl = 35840, il = 35841, sl = 35842, rl = 35843, al = 36196, ol = 37492, ll = 37496, cl = 37808, ul = 37809, hl = 37810, dl = 37811, fl = 37812, pl = 37813, ml = 37814, gl = 37815, _l = 37816, yl = 37817, vl = 37818, xl = 37819, Ml = 37820, Sl = 37821, Ca = 36492, Tl = 36494, bl = 36495, Nh = 36283, El = 36284, Al = 36285, wl = 36286, wr = 2300, Rr = 2301, to = 2302, Fc = 2400, Oc = 2401, kc = 2402, ep = 2500, tp = 0, Uh = 1, Rl = 2, np = 3200, ip = 3201, ja = 0, sp = 1, Xi = "", gt = "srgb", Rn = "srgb-linear", Oa = "linear", Ut = "srgb", bs = 7680, Bc = 519, rp = 512, ap = 513, op = 514, Fh = 515, lp = 516, cp = 517, up = 518, hp = 519, Cl = 35044, zc = "300 es", Ai = 2e3, ka = 2001;
337
+ class xs {
338
338
  /**
339
339
  * Adds the given event listener to the given event type.
340
340
  *
@@ -2895,7 +2895,7 @@ function Rp() {
2895
2895
  return s.style.display = "block", s;
2896
2896
  }
2897
2897
  const Gc = {};
2898
- function js(s) {
2898
+ function qs(s) {
2899
2899
  s in Gc || (Gc[s] = !0, console.warn(s));
2900
2900
  }
2901
2901
  function Cp(s, e, t) {
@@ -2968,7 +2968,7 @@ function Dp() {
2968
2968
  */
2969
2969
  spaces: {},
2970
2970
  convert: function(i, r, a) {
2971
- return this.enabled === !1 || r === a || !r || !a || (this.spaces[r].transfer === Ut && (i.r = Ri(i.r), i.g = Ri(i.g), i.b = Ri(i.b)), this.spaces[r].primaries !== this.spaces[a].primaries && (i.applyMatrix3(this.spaces[r].toXYZ), i.applyMatrix3(this.spaces[a].fromXYZ)), this.spaces[a].transfer === Ut && (i.r = qs(i.r), i.g = qs(i.g), i.b = qs(i.b))), i;
2971
+ return this.enabled === !1 || r === a || !r || !a || (this.spaces[r].transfer === Ut && (i.r = Ri(i.r), i.g = Ri(i.g), i.b = Ri(i.b)), this.spaces[r].primaries !== this.spaces[a].primaries && (i.applyMatrix3(this.spaces[r].toXYZ), i.applyMatrix3(this.spaces[a].fromXYZ)), this.spaces[a].transfer === Ut && (i.r = Ks(i.r), i.g = Ks(i.g), i.b = Ks(i.b))), i;
2972
2972
  },
2973
2973
  workingToColorSpace: function(i, r) {
2974
2974
  return this.convert(i, this.workingColorSpace, r);
@@ -3000,10 +3000,10 @@ function Dp() {
3000
3000
  },
3001
3001
  // Deprecated
3002
3002
  fromWorkingColorSpace: function(i, r) {
3003
- return js("THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."), s.workingToColorSpace(i, r);
3003
+ return qs("THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."), s.workingToColorSpace(i, r);
3004
3004
  },
3005
3005
  toWorkingColorSpace: function(i, r) {
3006
- return js("THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."), s.colorSpaceToWorking(i, r);
3006
+ return qs("THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."), s.colorSpaceToWorking(i, r);
3007
3007
  }
3008
3008
  }, e = [0.64, 0.33, 0.3, 0.6, 0.15, 0.06], t = [0.2126, 0.7152, 0.0722], n = [0.3127, 0.329];
3009
3009
  return s.define({
@@ -3032,10 +3032,10 @@ const dt = /* @__PURE__ */ Dp();
3032
3032
  function Ri(s) {
3033
3033
  return s < 0.04045 ? s * 0.0773993808 : Math.pow(s * 0.9478672986 + 0.0521327014, 2.4);
3034
3034
  }
3035
- function qs(s) {
3035
+ function Ks(s) {
3036
3036
  return s < 31308e-7 ? s * 12.92 : 1.055 * Math.pow(s, 0.41666) - 0.055;
3037
3037
  }
3038
- let bs;
3038
+ let Es;
3039
3039
  class Ip {
3040
3040
  /**
3041
3041
  * Returns a data URI containing a representation of the given image.
@@ -3051,9 +3051,9 @@ class Ip {
3051
3051
  if (e instanceof HTMLCanvasElement)
3052
3052
  n = e;
3053
3053
  else {
3054
- bs === void 0 && (bs = Cr("canvas")), bs.width = e.width, bs.height = e.height;
3055
- const i = bs.getContext("2d");
3056
- e instanceof ImageData ? i.putImageData(e, 0, 0) : i.drawImage(e, 0, 0, e.width, e.height), n = bs;
3054
+ Es === void 0 && (Es = Cr("canvas")), Es.width = e.width, Es.height = e.height;
3055
+ const i = Es.getContext("2d");
3056
+ e instanceof ImageData ? i.putImageData(e, 0, 0) : i.drawImage(e, 0, 0, e.width, e.height), n = Es;
3057
3057
  }
3058
3058
  return n.toDataURL(t);
3059
3059
  }
@@ -3150,7 +3150,7 @@ function so(s) {
3150
3150
  }
3151
3151
  let Up = 0;
3152
3152
  const ro = /* @__PURE__ */ new O();
3153
- class ln extends vs {
3153
+ class ln extends xs {
3154
3154
  /**
3155
3155
  * Constructs a new texture.
3156
3156
  *
@@ -3911,7 +3911,7 @@ class Tt {
3911
3911
  yield this.x, yield this.y, yield this.z, yield this.w;
3912
3912
  }
3913
3913
  }
3914
- class Fp extends vs {
3914
+ class Fp extends xs {
3915
3915
  /**
3916
3916
  * Render target options.
3917
3917
  *
@@ -4052,7 +4052,7 @@ class Fp extends vs {
4052
4052
  this.dispatchEvent({ type: "dispose" });
4053
4053
  }
4054
4054
  }
4055
- class gs extends Fp {
4055
+ class _s extends Fp {
4056
4056
  /**
4057
4057
  * Constructs a new 3D render target.
4058
4058
  *
@@ -4375,7 +4375,7 @@ class Li {
4375
4375
  intersectsTriangle(e) {
4376
4376
  if (this.isEmpty())
4377
4377
  return !1;
4378
- this.getCenter(or), qr.subVectors(this.max, or), Es.subVectors(e.a, or), As.subVectors(e.b, or), ws.subVectors(e.c, or), Ii.subVectors(As, Es), Ni.subVectors(ws, As), ts.subVectors(Es, ws);
4378
+ this.getCenter(or), qr.subVectors(this.max, or), As.subVectors(e.a, or), ws.subVectors(e.b, or), Rs.subVectors(e.c, or), Ii.subVectors(ws, As), Ni.subVectors(Rs, ws), ts.subVectors(As, Rs);
4379
4379
  let t = [
4380
4380
  0,
4381
4381
  -Ii.z,
@@ -4405,7 +4405,7 @@ class Li {
4405
4405
  ts.x,
4406
4406
  0
4407
4407
  ];
4408
- return !ao(t, Es, As, ws, qr) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !ao(t, Es, As, ws, qr)) ? !1 : (Kr.crossVectors(Ii, Ni), t = [Kr.x, Kr.y, Kr.z], ao(t, Es, As, ws, qr));
4408
+ return !ao(t, As, ws, Rs, qr) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !ao(t, As, ws, Rs, qr)) ? !1 : (Kr.crossVectors(Ii, Ni), t = [Kr.x, Kr.y, Kr.z], ao(t, As, ws, Rs, qr));
4409
4409
  }
4410
4410
  /**
4411
4411
  * Clamps the given point within the bounds of this box.
@@ -4517,7 +4517,7 @@ const _i = [
4517
4517
  /* @__PURE__ */ new O(),
4518
4518
  /* @__PURE__ */ new O(),
4519
4519
  /* @__PURE__ */ new O()
4520
- ], jn = /* @__PURE__ */ new O(), jr = /* @__PURE__ */ new Li(), Es = /* @__PURE__ */ new O(), As = /* @__PURE__ */ new O(), ws = /* @__PURE__ */ new O(), Ii = /* @__PURE__ */ new O(), Ni = /* @__PURE__ */ new O(), ts = /* @__PURE__ */ new O(), or = /* @__PURE__ */ new O(), qr = /* @__PURE__ */ new O(), Kr = /* @__PURE__ */ new O(), ns = /* @__PURE__ */ new O();
4520
+ ], jn = /* @__PURE__ */ new O(), jr = /* @__PURE__ */ new Li(), As = /* @__PURE__ */ new O(), ws = /* @__PURE__ */ new O(), Rs = /* @__PURE__ */ new O(), Ii = /* @__PURE__ */ new O(), Ni = /* @__PURE__ */ new O(), ts = /* @__PURE__ */ new O(), or = /* @__PURE__ */ new O(), qr = /* @__PURE__ */ new O(), Kr = /* @__PURE__ */ new O(), ns = /* @__PURE__ */ new O();
4521
4521
  function ao(s, e, t, n, i) {
4522
4522
  for (let r = 0, a = s.length - 3; r <= a; r += 3) {
4523
4523
  ns.fromArray(s, r);
@@ -5204,7 +5204,7 @@ class Ue {
5204
5204
  * @return {Matrix4} A reference to this matrix.
5205
5205
  */
5206
5206
  extractRotation(e) {
5207
- const t = this.elements, n = e.elements, i = 1 / Rs.setFromMatrixColumn(e, 0).length(), r = 1 / Rs.setFromMatrixColumn(e, 1).length(), a = 1 / Rs.setFromMatrixColumn(e, 2).length();
5207
+ const t = this.elements, n = e.elements, i = 1 / Cs.setFromMatrixColumn(e, 0).length(), r = 1 / Cs.setFromMatrixColumn(e, 1).length(), a = 1 / Cs.setFromMatrixColumn(e, 2).length();
5208
5208
  return t[0] = n[0] * i, t[1] = n[1] * i, t[2] = n[2] * i, t[3] = 0, t[4] = n[4] * r, t[5] = n[5] * r, t[6] = n[6] * r, t[7] = 0, t[8] = n[8] * a, t[9] = n[9] * a, t[10] = n[10] * a, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;
5209
5209
  }
5210
5210
  /**
@@ -5618,8 +5618,8 @@ class Ue {
5618
5618
  */
5619
5619
  decompose(e, t, n) {
5620
5620
  const i = this.elements;
5621
- let r = Rs.set(i[0], i[1], i[2]).length();
5622
- const a = Rs.set(i[4], i[5], i[6]).length(), o = Rs.set(i[8], i[9], i[10]).length();
5621
+ let r = Cs.set(i[0], i[1], i[2]).length();
5622
+ const a = Cs.set(i[4], i[5], i[6]).length(), o = Cs.set(i[8], i[9], i[10]).length();
5623
5623
  this.determinant() < 0 && (r = -r), e.x = i[12], e.y = i[13], e.z = i[14], qn.copy(this);
5624
5624
  const c = 1 / r, u = 1 / a, h = 1 / o;
5625
5625
  return qn.elements[0] *= c, qn.elements[1] *= c, qn.elements[2] *= c, qn.elements[4] *= u, qn.elements[5] *= u, qn.elements[6] *= u, qn.elements[8] *= h, qn.elements[9] *= h, qn.elements[10] *= h, t.setFromRotationMatrix(qn), n.x = r, n.y = a, n.z = o, this;
@@ -5709,7 +5709,7 @@ class Ue {
5709
5709
  return e[t] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3], e[t + 4] = n[4], e[t + 5] = n[5], e[t + 6] = n[6], e[t + 7] = n[7], e[t + 8] = n[8], e[t + 9] = n[9], e[t + 10] = n[10], e[t + 11] = n[11], e[t + 12] = n[12], e[t + 13] = n[13], e[t + 14] = n[14], e[t + 15] = n[15], e;
5710
5710
  }
5711
5711
  }
5712
- const Rs = /* @__PURE__ */ new O(), qn = /* @__PURE__ */ new Ue(), Bp = /* @__PURE__ */ new O(0, 0, 0), zp = /* @__PURE__ */ new O(1, 1, 1), Fi = /* @__PURE__ */ new O(), $r = /* @__PURE__ */ new O(), On = /* @__PURE__ */ new O(), jc = /* @__PURE__ */ new Ue(), qc = /* @__PURE__ */ new rn();
5712
+ const Cs = /* @__PURE__ */ new O(), qn = /* @__PURE__ */ new Ue(), Bp = /* @__PURE__ */ new O(0, 0, 0), zp = /* @__PURE__ */ new O(1, 1, 1), Fi = /* @__PURE__ */ new O(), $r = /* @__PURE__ */ new O(), On = /* @__PURE__ */ new O(), jc = /* @__PURE__ */ new Ue(), qc = /* @__PURE__ */ new rn();
5713
5713
  class an {
5714
5714
  /**
5715
5715
  * Constructs a new euler instance.
@@ -5981,8 +5981,8 @@ class Bh {
5981
5981
  }
5982
5982
  }
5983
5983
  let Hp = 0;
5984
- const Kc = /* @__PURE__ */ new O(), Cs = /* @__PURE__ */ new rn(), vi = /* @__PURE__ */ new Ue(), Jr = /* @__PURE__ */ new O(), cr = /* @__PURE__ */ new O(), Vp = /* @__PURE__ */ new O(), Gp = /* @__PURE__ */ new rn(), Yc = /* @__PURE__ */ new O(1, 0, 0), Zc = /* @__PURE__ */ new O(0, 1, 0), $c = /* @__PURE__ */ new O(0, 0, 1), Jc = { type: "added" }, Wp = { type: "removed" }, Ps = { type: "childadded", child: null }, ho = { type: "childremoved", child: null };
5985
- class kt extends vs {
5984
+ const Kc = /* @__PURE__ */ new O(), Ps = /* @__PURE__ */ new rn(), vi = /* @__PURE__ */ new Ue(), Jr = /* @__PURE__ */ new O(), cr = /* @__PURE__ */ new O(), Vp = /* @__PURE__ */ new O(), Gp = /* @__PURE__ */ new rn(), Yc = /* @__PURE__ */ new O(1, 0, 0), Zc = /* @__PURE__ */ new O(0, 1, 0), $c = /* @__PURE__ */ new O(0, 0, 1), Jc = { type: "added" }, Wp = { type: "removed" }, Ls = { type: "childadded", child: null }, ho = { type: "childremoved", child: null };
5985
+ class kt extends xs {
5986
5986
  /**
5987
5987
  * Constructs a new 3D object.
5988
5988
  */
@@ -6173,7 +6173,7 @@ class kt extends vs {
6173
6173
  * @return {Object3D} A reference to this instance.
6174
6174
  */
6175
6175
  rotateOnAxis(e, t) {
6176
- return Cs.setFromAxisAngle(e, t), this.quaternion.multiply(Cs), this;
6176
+ return Ps.setFromAxisAngle(e, t), this.quaternion.multiply(Ps), this;
6177
6177
  }
6178
6178
  /**
6179
6179
  * Rotates the 3D object along an axis in world space.
@@ -6183,7 +6183,7 @@ class kt extends vs {
6183
6183
  * @return {Object3D} A reference to this instance.
6184
6184
  */
6185
6185
  rotateOnWorldAxis(e, t) {
6186
- return Cs.setFromAxisAngle(e, t), this.quaternion.premultiply(Cs), this;
6186
+ return Ps.setFromAxisAngle(e, t), this.quaternion.premultiply(Ps), this;
6187
6187
  }
6188
6188
  /**
6189
6189
  * Rotates the 3D object around its X axis in local space.
@@ -6279,7 +6279,7 @@ class kt extends vs {
6279
6279
  lookAt(e, t, n) {
6280
6280
  e.isVector3 ? Jr.copy(e) : Jr.set(e, t, n);
6281
6281
  const i = this.parent;
6282
- this.updateWorldMatrix(!0, !1), cr.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? vi.lookAt(cr, Jr, this.up) : vi.lookAt(Jr, cr, this.up), this.quaternion.setFromRotationMatrix(vi), i && (vi.extractRotation(i.matrixWorld), Cs.setFromRotationMatrix(vi), this.quaternion.premultiply(Cs.invert()));
6282
+ this.updateWorldMatrix(!0, !1), cr.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? vi.lookAt(cr, Jr, this.up) : vi.lookAt(Jr, cr, this.up), this.quaternion.setFromRotationMatrix(vi), i && (vi.extractRotation(i.matrixWorld), Ps.setFromRotationMatrix(vi), this.quaternion.premultiply(Ps.invert()));
6283
6283
  }
6284
6284
  /**
6285
6285
  * Adds the given 3D object as a child to this 3D object. An arbitrary number of
@@ -6297,7 +6297,7 @@ class kt extends vs {
6297
6297
  this.add(arguments[t]);
6298
6298
  return this;
6299
6299
  }
6300
- return e === this ? (console.error("THREE.Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.removeFromParent(), e.parent = this, this.children.push(e), e.dispatchEvent(Jc), Ps.child = e, this.dispatchEvent(Ps), Ps.child = null) : console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.", e), this);
6300
+ return e === this ? (console.error("THREE.Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.removeFromParent(), e.parent = this, this.children.push(e), e.dispatchEvent(Jc), Ls.child = e, this.dispatchEvent(Ls), Ls.child = null) : console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.", e), this);
6301
6301
  }
6302
6302
  /**
6303
6303
  * Removes the given 3D object as child from this 3D object.
@@ -6348,7 +6348,7 @@ class kt extends vs {
6348
6348
  * @return {Object3D} A reference to this instance.
6349
6349
  */
6350
6350
  attach(e) {
6351
- return this.updateWorldMatrix(!0, !1), vi.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), vi.multiply(e.parent.matrixWorld)), e.applyMatrix4(vi), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(Jc), Ps.child = e, this.dispatchEvent(Ps), Ps.child = null, this;
6351
+ return this.updateWorldMatrix(!0, !1), vi.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), vi.multiply(e.parent.matrixWorld)), e.applyMatrix4(vi), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(Jc), Ls.child = e, this.dispatchEvent(Ls), Ls.child = null, this;
6352
6352
  }
6353
6353
  /**
6354
6354
  * Searches through the 3D object and its children, starting with the 3D object
@@ -6639,7 +6639,7 @@ class kt extends vs {
6639
6639
  kt.DEFAULT_UP = /* @__PURE__ */ new O(0, 1, 0);
6640
6640
  kt.DEFAULT_MATRIX_AUTO_UPDATE = !0;
6641
6641
  kt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
6642
- const Kn = /* @__PURE__ */ new O(), xi = /* @__PURE__ */ new O(), fo = /* @__PURE__ */ new O(), Mi = /* @__PURE__ */ new O(), Ls = /* @__PURE__ */ new O(), Ds = /* @__PURE__ */ new O(), Qc = /* @__PURE__ */ new O(), po = /* @__PURE__ */ new O(), mo = /* @__PURE__ */ new O(), go = /* @__PURE__ */ new O(), _o = /* @__PURE__ */ new Tt(), yo = /* @__PURE__ */ new Tt(), vo = /* @__PURE__ */ new Tt();
6642
+ const Kn = /* @__PURE__ */ new O(), xi = /* @__PURE__ */ new O(), fo = /* @__PURE__ */ new O(), Mi = /* @__PURE__ */ new O(), Ds = /* @__PURE__ */ new O(), Is = /* @__PURE__ */ new O(), Qc = /* @__PURE__ */ new O(), po = /* @__PURE__ */ new O(), mo = /* @__PURE__ */ new O(), go = /* @__PURE__ */ new O(), _o = /* @__PURE__ */ new Tt(), yo = /* @__PURE__ */ new Tt(), vo = /* @__PURE__ */ new Tt();
6643
6643
  class Qn {
6644
6644
  /**
6645
6645
  * Constructs a new triangle.
@@ -6892,29 +6892,29 @@ class Qn {
6892
6892
  closestPointToPoint(e, t) {
6893
6893
  const n = this.a, i = this.b, r = this.c;
6894
6894
  let a, o;
6895
- Ls.subVectors(i, n), Ds.subVectors(r, n), po.subVectors(e, n);
6896
- const l = Ls.dot(po), c = Ds.dot(po);
6895
+ Ds.subVectors(i, n), Is.subVectors(r, n), po.subVectors(e, n);
6896
+ const l = Ds.dot(po), c = Is.dot(po);
6897
6897
  if (l <= 0 && c <= 0)
6898
6898
  return t.copy(n);
6899
6899
  mo.subVectors(e, i);
6900
- const u = Ls.dot(mo), h = Ds.dot(mo);
6900
+ const u = Ds.dot(mo), h = Is.dot(mo);
6901
6901
  if (u >= 0 && h <= u)
6902
6902
  return t.copy(i);
6903
6903
  const d = l * h - u * c;
6904
6904
  if (d <= 0 && l >= 0 && u <= 0)
6905
- return a = l / (l - u), t.copy(n).addScaledVector(Ls, a);
6905
+ return a = l / (l - u), t.copy(n).addScaledVector(Ds, a);
6906
6906
  go.subVectors(e, r);
6907
- const f = Ls.dot(go), g = Ds.dot(go);
6907
+ const f = Ds.dot(go), g = Is.dot(go);
6908
6908
  if (g >= 0 && f <= g)
6909
6909
  return t.copy(r);
6910
6910
  const _ = f * c - l * g;
6911
6911
  if (_ <= 0 && c >= 0 && g <= 0)
6912
- return o = c / (c - g), t.copy(n).addScaledVector(Ds, o);
6912
+ return o = c / (c - g), t.copy(n).addScaledVector(Is, o);
6913
6913
  const m = u * g - f * h;
6914
6914
  if (m <= 0 && h - u >= 0 && f - g >= 0)
6915
6915
  return Qc.subVectors(r, i), o = (h - u) / (h - u + (f - g)), t.copy(i).addScaledVector(Qc, o);
6916
6916
  const p = 1 / (m + _ + d);
6917
- return a = _ * p, o = d * p, t.copy(n).addScaledVector(Ls, a).addScaledVector(Ds, o);
6917
+ return a = _ * p, o = d * p, t.copy(n).addScaledVector(Ds, a).addScaledVector(Is, o);
6918
6918
  }
6919
6919
  /**
6920
6920
  * Returns `true` if this triangle is equal with the given one.
@@ -7277,7 +7277,7 @@ class Ve {
7277
7277
  * @return {Color} A reference to this color.
7278
7278
  */
7279
7279
  copyLinearToSRGB(e) {
7280
- return this.r = qs(e.r), this.g = qs(e.g), this.b = qs(e.b), this;
7280
+ return this.r = Ks(e.r), this.g = Ks(e.g), this.b = Ks(e.b), this;
7281
7281
  }
7282
7282
  /**
7283
7283
  * Converts this color from `SRGBColorSpace` to `LinearSRGBColorSpace`.
@@ -7550,12 +7550,12 @@ class Ve {
7550
7550
  const vn = /* @__PURE__ */ new Ve();
7551
7551
  Ve.NAMES = zh;
7552
7552
  let Xp = 0;
7553
- class Fn extends vs {
7553
+ class Fn extends xs {
7554
7554
  /**
7555
7555
  * Constructs a new material.
7556
7556
  */
7557
7557
  constructor() {
7558
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Xp++ }), this.uuid = ni(), this.name = "", this.type = "Material", this.blending = Xs, this.side = li, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = jo, this.blendDst = qo, this.blendEquation = us, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new Ve(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Zs, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Bc, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Ts, this.stencilZFail = Ts, this.stencilZPass = Ts, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7558
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Xp++ }), this.uuid = ni(), this.name = "", this.type = "Material", this.blending = js, this.side = li, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = jo, this.blendDst = qo, this.blendEquation = us, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new Ve(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Zs, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Bc, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = bs, this.stencilZFail = bs, this.stencilZPass = bs, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7559
7559
  }
7560
7560
  /**
7561
7561
  * Sets the alpha value to be used when running an alpha test. The material
@@ -7654,7 +7654,7 @@ class Fn extends vs {
7654
7654
  generator: "Material.toJSON"
7655
7655
  }
7656
7656
  };
7657
- n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== Xs && (n.blending = this.blending), this.side !== li && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== jo && (n.blendSrc = this.blendSrc), this.blendDst !== qo && (n.blendDst = this.blendDst), this.blendEquation !== us && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== Zs && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Bc && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== Ts && (n.stencilFail = this.stencilFail), this.stencilZFail !== Ts && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== Ts && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
7657
+ n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== js && (n.blending = this.blending), this.side !== li && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== jo && (n.blendSrc = this.blendSrc), this.blendDst !== qo && (n.blendDst = this.blendDst), this.blendEquation !== us && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== Zs && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Bc && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== bs && (n.stencilFail = this.stencilFail), this.stencilZFail !== bs && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== bs && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
7658
7658
  function i(r) {
7659
7659
  const a = [];
7660
7660
  for (const o in r) {
@@ -8094,8 +8094,8 @@ class yt extends fn {
8094
8094
  }
8095
8095
  }
8096
8096
  let qp = 0;
8097
- const Bn = /* @__PURE__ */ new Ue(), Mo = /* @__PURE__ */ new kt(), Is = /* @__PURE__ */ new O(), kn = /* @__PURE__ */ new Li(), ur = /* @__PURE__ */ new Li(), hn = /* @__PURE__ */ new O();
8098
- class Yt extends vs {
8097
+ const Bn = /* @__PURE__ */ new Ue(), Mo = /* @__PURE__ */ new kt(), Ns = /* @__PURE__ */ new O(), kn = /* @__PURE__ */ new Li(), ur = /* @__PURE__ */ new Li(), hn = /* @__PURE__ */ new O();
8098
+ class Yt extends xs {
8099
8099
  /**
8100
8100
  * Constructs a new geometry.
8101
8101
  */
@@ -8307,7 +8307,7 @@ class Yt extends vs {
8307
8307
  * @return {BufferGeometry} A reference to this instance.
8308
8308
  */
8309
8309
  center() {
8310
- return this.computeBoundingBox(), this.boundingBox.getCenter(Is).negate(), this.translate(Is.x, Is.y, Is.z), this;
8310
+ return this.computeBoundingBox(), this.boundingBox.getCenter(Ns).negate(), this.translate(Ns.x, Ns.y, Ns.z), this;
8311
8311
  }
8312
8312
  /**
8313
8313
  * Defines a geometry by creating a `position` attribute based on the given array of points. The array
@@ -8391,7 +8391,7 @@ class Yt extends vs {
8391
8391
  for (let r = 0, a = t.length; r < a; r++) {
8392
8392
  const o = t[r], l = this.morphTargetsRelative;
8393
8393
  for (let c = 0, u = o.count; c < u; c++)
8394
- hn.fromBufferAttribute(o, c), l && (Is.fromBufferAttribute(e, c), hn.add(Is)), i = Math.max(i, n.distanceToSquared(hn));
8394
+ hn.fromBufferAttribute(o, c), l && (Ns.fromBufferAttribute(e, c), hn.add(Ns)), i = Math.max(i, n.distanceToSquared(hn));
8395
8395
  }
8396
8396
  this.boundingSphere.radius = Math.sqrt(i), isNaN(this.boundingSphere.radius) && console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this);
8397
8397
  }
@@ -9107,7 +9107,7 @@ class dn extends Gh {
9107
9107
  return t.object.fov = this.fov, t.object.zoom = this.zoom, t.object.near = this.near, t.object.far = this.far, t.object.focus = this.focus, t.object.aspect = this.aspect, this.view !== null && (t.object.view = Object.assign({}, this.view)), t.object.filmGauge = this.filmGauge, t.object.filmOffset = this.filmOffset, t;
9108
9108
  }
9109
9109
  }
9110
- const Ns = -90, Us = 1;
9110
+ const Us = -90, Fs = 1;
9111
9111
  class Qp extends kt {
9112
9112
  /**
9113
9113
  * Constructs a new cube camera.
@@ -9118,17 +9118,17 @@ class Qp extends kt {
9118
9118
  */
9119
9119
  constructor(e, t, n) {
9120
9120
  super(), this.type = "CubeCamera", this.renderTarget = n, this.coordinateSystem = null, this.activeMipmapLevel = 0;
9121
- const i = new dn(Ns, Us, e, t);
9121
+ const i = new dn(Us, Fs, e, t);
9122
9122
  i.layers = this.layers, this.add(i);
9123
- const r = new dn(Ns, Us, e, t);
9123
+ const r = new dn(Us, Fs, e, t);
9124
9124
  r.layers = this.layers, this.add(r);
9125
- const a = new dn(Ns, Us, e, t);
9125
+ const a = new dn(Us, Fs, e, t);
9126
9126
  a.layers = this.layers, this.add(a);
9127
- const o = new dn(Ns, Us, e, t);
9127
+ const o = new dn(Us, Fs, e, t);
9128
9128
  o.layers = this.layers, this.add(o);
9129
- const l = new dn(Ns, Us, e, t);
9129
+ const l = new dn(Us, Fs, e, t);
9130
9130
  l.layers = this.layers, this.add(l);
9131
- const c = new dn(Ns, Us, e, t);
9131
+ const c = new dn(Us, Fs, e, t);
9132
9132
  c.layers = this.layers, this.add(c);
9133
9133
  }
9134
9134
  /**
@@ -9193,7 +9193,7 @@ class Wh extends ln {
9193
9193
  this.image = e;
9194
9194
  }
9195
9195
  }
9196
- class em extends gs {
9196
+ class em extends _s {
9197
9197
  /**
9198
9198
  * Constructs a new cube render target.
9199
9199
  *
@@ -10114,7 +10114,7 @@ class Pl extends fn {
10114
10114
  return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
10115
10115
  }
10116
10116
  }
10117
- const Fs = /* @__PURE__ */ new Ue(), hu = /* @__PURE__ */ new Ue(), ca = [], du = /* @__PURE__ */ new Li(), rm = /* @__PURE__ */ new Ue(), hr = /* @__PURE__ */ new on(), dr = /* @__PURE__ */ new ui();
10117
+ const Os = /* @__PURE__ */ new Ue(), hu = /* @__PURE__ */ new Ue(), ca = [], du = /* @__PURE__ */ new Li(), rm = /* @__PURE__ */ new Ue(), hr = /* @__PURE__ */ new on(), dr = /* @__PURE__ */ new ui();
10118
10118
  class am extends on {
10119
10119
  /**
10120
10120
  * Constructs a new instanced mesh.
@@ -10137,7 +10137,7 @@ class am extends on {
10137
10137
  const e = this.geometry, t = this.count;
10138
10138
  this.boundingBox === null && (this.boundingBox = new Li()), e.boundingBox === null && e.computeBoundingBox(), this.boundingBox.makeEmpty();
10139
10139
  for (let n = 0; n < t; n++)
10140
- this.getMatrixAt(n, Fs), du.copy(e.boundingBox).applyMatrix4(Fs), this.boundingBox.union(du);
10140
+ this.getMatrixAt(n, Os), du.copy(e.boundingBox).applyMatrix4(Os), this.boundingBox.union(du);
10141
10141
  }
10142
10142
  /**
10143
10143
  * Computes the bounding sphere of the instanced mesh, and updates {@link InstancedMesh#boundingSphere}
@@ -10148,7 +10148,7 @@ class am extends on {
10148
10148
  const e = this.geometry, t = this.count;
10149
10149
  this.boundingSphere === null && (this.boundingSphere = new ui()), e.boundingSphere === null && e.computeBoundingSphere(), this.boundingSphere.makeEmpty();
10150
10150
  for (let n = 0; n < t; n++)
10151
- this.getMatrixAt(n, Fs), dr.copy(e.boundingSphere).applyMatrix4(Fs), this.boundingSphere.union(dr);
10151
+ this.getMatrixAt(n, Os), dr.copy(e.boundingSphere).applyMatrix4(Os), this.boundingSphere.union(dr);
10152
10152
  }
10153
10153
  copy(e, t) {
10154
10154
  return super.copy(e, t), this.instanceMatrix.copy(e.instanceMatrix), e.morphTexture !== null && (this.morphTexture = e.morphTexture.clone()), e.instanceColor !== null && (this.instanceColor = e.instanceColor.clone()), this.count = e.count, e.boundingBox !== null && (this.boundingBox = e.boundingBox.clone()), e.boundingSphere !== null && (this.boundingSphere = e.boundingSphere.clone()), this;
@@ -10186,7 +10186,7 @@ class am extends on {
10186
10186
  const n = this.matrixWorld, i = this.count;
10187
10187
  if (hr.geometry = this.geometry, hr.material = this.material, hr.material !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), dr.copy(this.boundingSphere), dr.applyMatrix4(n), e.ray.intersectsSphere(dr) !== !1))
10188
10188
  for (let r = 0; r < i; r++) {
10189
- this.getMatrixAt(r, Fs), hu.multiplyMatrices(n, Fs), hr.matrixWorld = hu, hr.raycast(e, ca);
10189
+ this.getMatrixAt(r, Os), hu.multiplyMatrices(n, Os), hr.matrixWorld = hu, hr.raycast(e, ca);
10190
10190
  for (let a = 0, o = ca.length; a < o; a++) {
10191
10191
  const l = ca[a];
10192
10192
  l.instanceId = r, l.object = this, t.push(l);
@@ -10740,7 +10740,7 @@ class cm extends Hr {
10740
10740
  super(e, t), this.isLineLoop = !0, this.type = "LineLoop";
10741
10741
  }
10742
10742
  }
10743
- class Hs extends Fn {
10743
+ class Vs extends Fn {
10744
10744
  /**
10745
10745
  * Constructs a new points material.
10746
10746
  *
@@ -10765,7 +10765,7 @@ class Pa extends kt {
10765
10765
  * @param {BufferGeometry} [geometry] - The points geometry.
10766
10766
  * @param {Material|Array<Material>} [material] - The points material.
10767
10767
  */
10768
- constructor(e = new Yt(), t = new Hs()) {
10768
+ constructor(e = new Yt(), t = new Vs()) {
10769
10769
  super(), this.isPoints = !0, this.type = "Points", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
10770
10770
  }
10771
10771
  copy(e, t) {
@@ -10847,7 +10847,7 @@ class jh extends ln {
10847
10847
  * @param {number} [format=DepthFormat] - The texture format.
10848
10848
  * @param {number} [depth=1] - The depth of the texture.
10849
10849
  */
10850
- constructor(e, t, n = ms, i, r, a, o = wn, l = wn, c, u = Er, h = 1) {
10850
+ constructor(e, t, n = gs, i, r, a, o = wn, l = wn, c, u = Er, h = 1) {
10851
10851
  if (u !== Er && u !== Ar)
10852
10852
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
10853
10853
  const d = { width: e, height: t, depth: h };
@@ -11120,7 +11120,7 @@ function qh(s, e, t, n, i) {
11120
11120
  for (let a = t - n; a >= e; a -= n) r = vu(a / n | 0, s[a], s[a + 1], r);
11121
11121
  return r && nr(r, r.next) && (Ir(r), r = r.next), r;
11122
11122
  }
11123
- function _s(s, e) {
11123
+ function ys(s, e) {
11124
11124
  if (!s) return s;
11125
11125
  e || (e = s);
11126
11126
  let t = s, n;
@@ -11144,7 +11144,7 @@ function Lr(s, e, t, n, i, r, a) {
11144
11144
  continue;
11145
11145
  }
11146
11146
  if (s = c, s === o) {
11147
- a ? a === 1 ? (s = pm(_s(s), e), Lr(s, e, t, n, i, r, 2)) : a === 2 && mm(s, e, t, n, i, r) : Lr(_s(s), e, t, n, i, r, 1);
11147
+ a ? a === 1 ? (s = pm(ys(s), e), Lr(s, e, t, n, i, r, 2)) : a === 2 && mm(s, e, t, n, i, r) : Lr(ys(s), e, t, n, i, r, 1);
11148
11148
  break;
11149
11149
  }
11150
11150
  }
@@ -11185,7 +11185,7 @@ function pm(s, e) {
11185
11185
  const n = t.prev, i = t.next.next;
11186
11186
  !nr(n, i) && Yh(n, t, t.next, i) && Dr(n, i) && Dr(i, n) && (e.push(n.i, t.i, i.i), Ir(t), Ir(t.next), t = s = i), t = t.next;
11187
11187
  } while (t !== s);
11188
- return _s(t);
11188
+ return ys(t);
11189
11189
  }
11190
11190
  function mm(s, e, t, n, i, r) {
11191
11191
  let a = s;
@@ -11194,7 +11194,7 @@ function mm(s, e, t, n, i, r) {
11194
11194
  for (; o !== a.prev; ) {
11195
11195
  if (a.i !== o.i && bm(a, o)) {
11196
11196
  let l = Zh(a, o);
11197
- a = _s(a, a.next), l = _s(l, l.next), Lr(a, e, t, n, i, r, 0), Lr(l, e, t, n, i, r, 0);
11197
+ a = ys(a, a.next), l = ys(l, l.next), Lr(a, e, t, n, i, r, 0), Lr(l, e, t, n, i, r, 0);
11198
11198
  return;
11199
11199
  }
11200
11200
  o = o.next;
@@ -11226,7 +11226,7 @@ function ym(s, e) {
11226
11226
  if (!t)
11227
11227
  return e;
11228
11228
  const n = Zh(t, s);
11229
- return _s(n, n.next), _s(t, t.next);
11229
+ return ys(n, n.next), ys(t, t.next);
11230
11230
  }
11231
11231
  function vm(s, e) {
11232
11232
  let t = e;
@@ -12221,7 +12221,7 @@ class Qh extends ii {
12221
12221
  }
12222
12222
  }
12223
12223
  Qh.prototype.ValueTypeName = "color";
12224
- class ys extends ii {
12224
+ class vs extends ii {
12225
12225
  /**
12226
12226
  * Constructs a new number keyframe track.
12227
12227
  *
@@ -12234,7 +12234,7 @@ class ys extends ii {
12234
12234
  super(e, t, n, i);
12235
12235
  }
12236
12236
  }
12237
- ys.prototype.ValueTypeName = "number";
12237
+ vs.prototype.ValueTypeName = "number";
12238
12238
  class Fm extends Vr {
12239
12239
  /**
12240
12240
  * Constructs a new SLERP interpolant.
@@ -12390,7 +12390,7 @@ class Ha {
12390
12390
  ), c.push(0, 1, 0);
12391
12391
  const u = Dm(l);
12392
12392
  l = Su(l, 1, u), c = Su(c, 1, u), !i && l[0] === 0 && (l.push(r), c.push(c[0])), a.push(
12393
- new ys(
12393
+ new vs(
12394
12394
  ".morphTargetInfluences[" + t[o].name + "]",
12395
12395
  l,
12396
12396
  c
@@ -12484,7 +12484,7 @@ class Ha {
12484
12484
  const v = d[g];
12485
12485
  m.push(v.time), p.push(v.morphTarget === _ ? 1 : 0);
12486
12486
  }
12487
- i.push(new ys(".morphTargetInfluence[" + _ + "]", m, p));
12487
+ i.push(new vs(".morphTargetInfluence[" + _ + "]", m, p));
12488
12488
  }
12489
12489
  l = f.length * a;
12490
12490
  } else {
@@ -12586,7 +12586,7 @@ function Om(s) {
12586
12586
  case "float":
12587
12587
  case "number":
12588
12588
  case "integer":
12589
- return ys;
12589
+ return vs;
12590
12590
  case "vector":
12591
12591
  case "vector2":
12592
12592
  case "vector3":
@@ -13416,7 +13416,7 @@ class cc extends Ka {
13416
13416
  super(e, t), this.isAmbientLight = !0, this.type = "AmbientLight";
13417
13417
  }
13418
13418
  }
13419
- class ps {
13419
+ class ms {
13420
13420
  /**
13421
13421
  * Extracts the base URL from the given URL.
13422
13422
  *
@@ -14031,7 +14031,7 @@ class rg extends tr {
14031
14031
  this.geometry.dispose(), this.material.dispose();
14032
14032
  }
14033
14033
  }
14034
- class ag extends vs {
14034
+ class ag extends xs {
14035
14035
  /**
14036
14036
  * Constructs a new controls instance.
14037
14037
  *
@@ -14172,7 +14172,7 @@ function og(s) {
14172
14172
  case jl:
14173
14173
  case ql:
14174
14174
  return { byteLength: 2, components: 4 };
14175
- case ms:
14175
+ case gs:
14176
14176
  case Xl:
14177
14177
  case ti:
14178
14178
  return { byteLength: 4, components: 1 };
@@ -18594,21 +18594,21 @@ function W0(s, e) {
18594
18594
  if (de.isInterleavedBufferAttribute) {
18595
18595
  const se = de.data, Me = se.stride, rt = de.offset;
18596
18596
  if (se.isInstancedInterleavedBuffer) {
18597
- for (let $ = 0; $ < V.locationSize; $++)
18598
- p(V.location + $, se.meshPerAttribute);
18597
+ for (let K = 0; K < V.locationSize; K++)
18598
+ p(V.location + K, se.meshPerAttribute);
18599
18599
  T.isInstancedMesh !== !0 && j._maxInstanceCount === void 0 && (j._maxInstanceCount = se.meshPerAttribute * se.count);
18600
18600
  } else
18601
- for (let $ = 0; $ < V.locationSize; $++)
18602
- m(V.location + $);
18601
+ for (let K = 0; K < V.locationSize; K++)
18602
+ m(V.location + K);
18603
18603
  s.bindBuffer(s.ARRAY_BUFFER, xe);
18604
- for (let $ = 0; $ < V.locationSize; $++)
18604
+ for (let K = 0; K < V.locationSize; K++)
18605
18605
  v(
18606
- V.location + $,
18606
+ V.location + K,
18607
18607
  oe / V.locationSize,
18608
18608
  G,
18609
18609
  ye,
18610
18610
  Me * Q,
18611
- (rt + oe / V.locationSize * $) * Q,
18611
+ (rt + oe / V.locationSize * K) * Q,
18612
18612
  re
18613
18613
  );
18614
18614
  } else {
@@ -18875,15 +18875,15 @@ function K0(s) {
18875
18875
  dispose: r
18876
18876
  };
18877
18877
  }
18878
- const Vs = 4, Ru = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], hs = 20, Lo = /* @__PURE__ */ new Ya(), Cu = /* @__PURE__ */ new Ve();
18878
+ const Gs = 4, Ru = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], hs = 20, Lo = /* @__PURE__ */ new Ya(), Cu = /* @__PURE__ */ new Ve();
18879
18879
  let Do = null, Io = 0, No = 0, Uo = !1;
18880
- const ls = (1 + Math.sqrt(5)) / 2, Os = 1 / ls, Pu = [
18881
- /* @__PURE__ */ new O(-ls, Os, 0),
18882
- /* @__PURE__ */ new O(ls, Os, 0),
18883
- /* @__PURE__ */ new O(-Os, 0, ls),
18884
- /* @__PURE__ */ new O(Os, 0, ls),
18885
- /* @__PURE__ */ new O(0, ls, -Os),
18886
- /* @__PURE__ */ new O(0, ls, Os),
18880
+ const ls = (1 + Math.sqrt(5)) / 2, ks = 1 / ls, Pu = [
18881
+ /* @__PURE__ */ new O(-ls, ks, 0),
18882
+ /* @__PURE__ */ new O(ls, ks, 0),
18883
+ /* @__PURE__ */ new O(-ks, 0, ls),
18884
+ /* @__PURE__ */ new O(ks, 0, ls),
18885
+ /* @__PURE__ */ new O(0, ls, -ks),
18886
+ /* @__PURE__ */ new O(0, ls, ks),
18887
18887
  /* @__PURE__ */ new O(-1, 1, -1),
18888
18888
  /* @__PURE__ */ new O(1, 1, -1),
18889
18889
  /* @__PURE__ */ new O(-1, 1, 1),
@@ -19096,19 +19096,19 @@ class Lu {
19096
19096
  d.envMap.value = e.texture, d.samples.value = m, d.weights.value = p, d.latitudinal.value = a === "latitudinal", o && (d.poleAxis.value = o);
19097
19097
  const { _lodMax: v } = this;
19098
19098
  d.dTheta.value = g, d.mipInt.value = v - n;
19099
- const y = this._sizeLods[i], N = 3 * y * (i > v - Vs ? i - v + Vs : 0), P = 4 * (this._cubeSize - y);
19099
+ const y = this._sizeLods[i], N = 3 * y * (i > v - Gs ? i - v + Gs : 0), P = 4 * (this._cubeSize - y);
19100
19100
  va(t, N, P, 3 * y, 2 * y), l.setRenderTarget(t), l.render(h, Lo);
19101
19101
  }
19102
19102
  }
19103
19103
  function Z0(s) {
19104
19104
  const e = [], t = [], n = [];
19105
19105
  let i = s;
19106
- const r = s - Vs + 1 + Ru.length;
19106
+ const r = s - Gs + 1 + Ru.length;
19107
19107
  for (let a = 0; a < r; a++) {
19108
19108
  const o = Math.pow(2, i);
19109
19109
  t.push(o);
19110
19110
  let l = 1 / o;
19111
- a > s - Vs ? l = Ru[a - s + Vs - 1] : a === 0 && (l = 0), n.push(l);
19111
+ a > s - Gs ? l = Ru[a - s + Gs - 1] : a === 0 && (l = 0), n.push(l);
19112
19112
  const c = 1 / (o - 2), u = -c, h = 1 + c, d = [u, u, h, u, h, h, u, u, h, h, u, h], f = 6, g = 6, _ = 3, m = 2, p = 1, S = new Float32Array(_ * g * f), v = new Float32Array(m * g * f), y = new Float32Array(p * g * f);
19113
19113
  for (let P = 0; P < f; P++) {
19114
19114
  const L = P % 3 * 2 / 3 - 1, U = P > 2 ? 0 : -1, E = [
@@ -19136,12 +19136,12 @@ function Z0(s) {
19136
19136
  y.set(T, p * g * P);
19137
19137
  }
19138
19138
  const N = new Yt();
19139
- N.setAttribute("position", new fn(S, _)), N.setAttribute("uv", new fn(v, m)), N.setAttribute("faceIndex", new fn(y, p)), e.push(N), i > Vs && i--;
19139
+ N.setAttribute("position", new fn(S, _)), N.setAttribute("uv", new fn(v, m)), N.setAttribute("faceIndex", new fn(y, p)), e.push(N), i > Gs && i--;
19140
19140
  }
19141
19141
  return { lodPlanes: e, sizeLods: t, sigmas: n };
19142
19142
  }
19143
19143
  function Du(s, e, t) {
19144
- const n = new gs(s, e, t);
19144
+ const n = new _s(s, e, t);
19145
19145
  return n.texture.mapping = Xa, n.texture.name = "PMREM.cubeUv", n.scissorTest = !0, n;
19146
19146
  }
19147
19147
  function va(s, e, t, n, i) {
@@ -19439,7 +19439,7 @@ function Q0(s) {
19439
19439
  },
19440
19440
  get: function(n) {
19441
19441
  const i = t(n);
19442
- return i === null && js("THREE.WebGLRenderer: " + n + " extension not supported."), i;
19442
+ return i === null && qs("THREE.WebGLRenderer: " + n + " extension not supported."), i;
19443
19443
  }
19444
19444
  };
19445
19445
  }
@@ -20764,7 +20764,7 @@ function vv(s, e, t, n, i, r, a) {
20764
20764
  xe = ft.vertexShader, G = ft.fragmentShader;
20765
20765
  } else
20766
20766
  xe = E.vertexShader, G = E.fragmentShader, l.update(E), Q = l.getVertexShaderID(E), re = l.getFragmentShaderID(E);
20767
- const se = s.getRenderTarget(), Me = s.state.buffers.depth.getReversed(), rt = j.isInstancedMesh === !0, $ = j.isBatchedMesh === !0, Z = !!E.map, Y = !!E.matcap, ne = !!ae, I = !!E.aoMap, Se = !!E.lightMap, he = !!E.bumpMap, je = !!E.normalMap, Le = !!E.displacementMap, Fe = !!E.emissiveMap, De = !!E.metalnessMap, Qe = !!E.roughnessMap, Nt = E.anisotropy > 0, F = E.clearcoat > 0, b = E.dispersion > 0, q = E.iridescence > 0, le = E.sheen > 0, fe = E.transmission > 0, te = Nt && !!E.anisotropyMap, Be = F && !!E.clearcoatMap, Ee = F && !!E.clearcoatNormalMap, Ge = F && !!E.clearcoatRoughnessMap, qe = q && !!E.iridescenceMap, pe = q && !!E.iridescenceThicknessMap, Oe = le && !!E.sheenColorMap, nt = le && !!E.sheenRoughnessMap, et = !!E.specularMap, Te = !!E.specularColorMap, at = !!E.specularIntensityMap, B = fe && !!E.transmissionMap, we = fe && !!E.thicknessMap, me = !!E.gradientMap, ke = !!E.alphaMap, _e = E.alphaTest > 0, X = !!E.alphaHash, Re = !!E.extensions;
20767
+ const se = s.getRenderTarget(), Me = s.state.buffers.depth.getReversed(), rt = j.isInstancedMesh === !0, K = j.isBatchedMesh === !0, $ = !!E.map, Z = !!E.matcap, ne = !!ae, I = !!E.aoMap, Se = !!E.lightMap, he = !!E.bumpMap, je = !!E.normalMap, Le = !!E.displacementMap, Fe = !!E.emissiveMap, De = !!E.metalnessMap, Qe = !!E.roughnessMap, Nt = E.anisotropy > 0, F = E.clearcoat > 0, b = E.dispersion > 0, q = E.iridescence > 0, le = E.sheen > 0, fe = E.transmission > 0, te = Nt && !!E.anisotropyMap, Be = F && !!E.clearcoatMap, Ee = F && !!E.clearcoatNormalMap, Ge = F && !!E.clearcoatRoughnessMap, qe = q && !!E.iridescenceMap, pe = q && !!E.iridescenceThicknessMap, Oe = le && !!E.sheenColorMap, nt = le && !!E.sheenRoughnessMap, et = !!E.specularMap, Te = !!E.specularColorMap, at = !!E.specularIntensityMap, B = fe && !!E.transmissionMap, we = fe && !!E.thicknessMap, me = !!E.gradientMap, ke = !!E.alphaMap, _e = E.alphaTest > 0, X = !!E.alphaHash, Re = !!E.extensions;
20768
20768
  let Ke = Ki;
20769
20769
  E.toneMapped && (se === null || se.isXRRenderTarget === !0) && (Ke = s.toneMapping);
20770
20770
  const bt = {
@@ -20779,16 +20779,16 @@ function vv(s, e, t, n, i, r, a) {
20779
20779
  isRawShaderMaterial: E.isRawShaderMaterial === !0,
20780
20780
  glslVersion: E.glslVersion,
20781
20781
  precision: f,
20782
- batching: $,
20783
- batchingColor: $ && j._colorsTexture !== null,
20782
+ batching: K,
20783
+ batchingColor: K && j._colorsTexture !== null,
20784
20784
  instancing: rt,
20785
20785
  instancingColor: rt && j.instanceColor !== null,
20786
20786
  instancingMorph: rt && j.morphTexture !== null,
20787
20787
  supportsVertexTextures: d,
20788
20788
  outputColorSpace: se === null ? s.outputColorSpace : se.isXRRenderTarget === !0 ? se.texture.colorSpace : Rn,
20789
20789
  alphaToCoverage: !!E.alphaToCoverage,
20790
- map: Z,
20791
- matcap: Y,
20790
+ map: $,
20791
+ matcap: Z,
20792
20792
  envMap: ne,
20793
20793
  envMapMode: ne && ae.mapping,
20794
20794
  envMapCubeUVHeight: V,
@@ -20822,13 +20822,13 @@ function vv(s, e, t, n, i, r, a) {
20822
20822
  transmissionMap: B,
20823
20823
  thicknessMap: we,
20824
20824
  gradientMap: me,
20825
- opaque: E.transparent === !1 && E.blending === Xs && E.alphaToCoverage === !1,
20825
+ opaque: E.transparent === !1 && E.blending === js && E.alphaToCoverage === !1,
20826
20826
  alphaMap: ke,
20827
20827
  alphaTest: _e,
20828
20828
  alphaHash: X,
20829
20829
  combine: E.combine,
20830
20830
  //
20831
- mapUv: Z && _(E.map.channel),
20831
+ mapUv: $ && _(E.map.channel),
20832
20832
  aoMapUv: I && _(E.aoMap.channel),
20833
20833
  lightMapUv: Se && _(E.lightMap.channel),
20834
20834
  bumpMapUv: he && _(E.bumpMap.channel),
@@ -20855,7 +20855,7 @@ function vv(s, e, t, n, i, r, a) {
20855
20855
  vertexTangents: !!ue.attributes.tangent && (je || Nt),
20856
20856
  vertexColors: E.vertexColors,
20857
20857
  vertexAlphas: E.vertexColors === !0 && !!ue.attributes.color && ue.attributes.color.itemSize === 4,
20858
- pointsUvs: j.isPoints === !0 && !!ue.attributes.uv && (Z || ke),
20858
+ pointsUvs: j.isPoints === !0 && !!ue.attributes.uv && ($ || ke),
20859
20859
  fog: !!ie,
20860
20860
  useFog: E.fog === !0,
20861
20861
  fogExp2: !!ie && ie.isFogExp2,
@@ -20886,7 +20886,7 @@ function vv(s, e, t, n, i, r, a) {
20886
20886
  shadowMapEnabled: s.shadowMap.enabled && D.length > 0,
20887
20887
  shadowMapType: s.shadowMap.type,
20888
20888
  toneMapping: Ke,
20889
- decodeVideoTexture: Z && E.map.isVideoTexture === !0 && dt.getTransfer(E.map.colorSpace) === Ut,
20889
+ decodeVideoTexture: $ && E.map.isVideoTexture === !0 && dt.getTransfer(E.map.colorSpace) === Ut,
20890
20890
  decodeVideoTextureEmissive: Fe && E.emissiveMap.isVideoTexture === !0 && dt.getTransfer(E.emissiveMap.colorSpace) === Ut,
20891
20891
  premultipliedAlpha: E.premultipliedAlpha,
20892
20892
  doubleSided: E.side === $n,
@@ -20895,7 +20895,7 @@ function vv(s, e, t, n, i, r, a) {
20895
20895
  depthPacking: E.depthPacking || 0,
20896
20896
  index0AttributeName: E.index0AttributeName,
20897
20897
  extensionClipCullDistance: Re && E.extensions.clipCullDistance === !0 && n.has("WEBGL_clip_cull_distance"),
20898
- extensionMultiDraw: (Re && E.extensions.multiDraw === !0 || $) && n.has("WEBGL_multi_draw"),
20898
+ extensionMultiDraw: (Re && E.extensions.multiDraw === !0 || K) && n.has("WEBGL_multi_draw"),
20899
20899
  rendererExtensionParallelShaderCompile: n.has("KHR_parallel_shader_compile"),
20900
20900
  customProgramCacheKey: E.customProgramCacheKey()
20901
20901
  };
@@ -21389,7 +21389,7 @@ function Lv(s, e, t) {
21389
21389
  const de = V.getFrameExtents();
21390
21390
  if (i.multiply(de), r.copy(V.mapSize), (i.x > u || i.y > u) && (i.x > u && (r.x = Math.floor(u / de.x), i.x = r.x * de.x, V.mapSize.x = r.x), i.y > u && (r.y = Math.floor(u / de.y), i.y = r.y * de.y, V.mapSize.y = r.y)), V.map === null || j === !0 || ie === !0) {
21391
21391
  const oe = this.type !== bi ? { minFilter: wn, magFilter: wn } : {};
21392
- V.map !== null && V.map.dispose(), V.map = new gs(i.x, i.y, oe), V.map.texture.name = ae.name + ".shadowMap", V.camera.updateProjectionMatrix();
21392
+ V.map !== null && V.map.dispose(), V.map = new _s(i.x, i.y, oe), V.map.texture.name = ae.name + ".shadowMap", V.camera.updateProjectionMatrix();
21393
21393
  }
21394
21394
  s.setRenderTarget(V.map), s.clear();
21395
21395
  const ye = V.getViewportCount();
@@ -21408,7 +21408,7 @@ function Lv(s, e, t) {
21408
21408
  };
21409
21409
  function S(P, L) {
21410
21410
  const U = e.update(_);
21411
- d.defines.VSM_SAMPLES !== P.blurSamples && (d.defines.VSM_SAMPLES = P.blurSamples, f.defines.VSM_SAMPLES = P.blurSamples, d.needsUpdate = !0, f.needsUpdate = !0), P.mapPass === null && (P.mapPass = new gs(i.x, i.y)), d.uniforms.shadow_pass.value = P.map.texture, d.uniforms.resolution.value = P.mapSize, d.uniforms.radius.value = P.radius, s.setRenderTarget(P.mapPass), s.clear(), s.renderBufferDirect(L, null, U, d, _, null), f.uniforms.shadow_pass.value = P.mapPass.texture, f.uniforms.resolution.value = P.mapSize, f.uniforms.radius.value = P.radius, s.setRenderTarget(P.map), s.clear(), s.renderBufferDirect(L, null, U, f, _, null);
21411
+ d.defines.VSM_SAMPLES !== P.blurSamples && (d.defines.VSM_SAMPLES = P.blurSamples, f.defines.VSM_SAMPLES = P.blurSamples, d.needsUpdate = !0, f.needsUpdate = !0), P.mapPass === null && (P.mapPass = new _s(i.x, i.y)), d.uniforms.shadow_pass.value = P.map.texture, d.uniforms.resolution.value = P.mapSize, d.uniforms.radius.value = P.radius, s.setRenderTarget(P.mapPass), s.clear(), s.renderBufferDirect(L, null, U, d, _, null), f.uniforms.shadow_pass.value = P.mapPass.texture, f.uniforms.resolution.value = P.mapSize, f.uniforms.radius.value = P.radius, s.setRenderTarget(P.map), s.clear(), s.renderBufferDirect(L, null, U, f, _, null);
21412
21412
  }
21413
21413
  function v(P, L, U, E) {
21414
21414
  let T = null;
@@ -21606,7 +21606,7 @@ function Iv(s, e) {
21606
21606
  function rt(B, we) {
21607
21607
  return h[B] !== we ? (s.bindFramebuffer(B, we), h[B] = we, B === s.DRAW_FRAMEBUFFER && (h[s.FRAMEBUFFER] = we), B === s.FRAMEBUFFER && (h[s.DRAW_FRAMEBUFFER] = we), !0) : !1;
21608
21608
  }
21609
- function $(B, we) {
21609
+ function K(B, we) {
21610
21610
  let me = f, ke = !1;
21611
21611
  if (B) {
21612
21612
  me = d.get(we), me === void 0 && (me = [], d.set(we, me));
@@ -21620,15 +21620,15 @@ function Iv(s, e) {
21620
21620
  me[0] !== s.BACK && (me[0] = s.BACK, ke = !0);
21621
21621
  ke && s.drawBuffers(me);
21622
21622
  }
21623
- function Z(B) {
21623
+ function $(B) {
21624
21624
  return g !== B ? (s.useProgram(B), g = B, !0) : !1;
21625
21625
  }
21626
- const Y = {
21626
+ const Z = {
21627
21627
  [us]: s.FUNC_ADD,
21628
21628
  [wf]: s.FUNC_SUBTRACT,
21629
21629
  [Rf]: s.FUNC_REVERSE_SUBTRACT
21630
21630
  };
21631
- Y[Cf] = s.MIN, Y[Pf] = s.MAX;
21631
+ Z[Cf] = s.MIN, Z[Pf] = s.MAX;
21632
21632
  const ne = {
21633
21633
  [Lf]: s.ZERO,
21634
21634
  [Df]: s.ONE,
@@ -21655,7 +21655,7 @@ function Iv(s, e) {
21655
21655
  if (B !== m || ft !== E) {
21656
21656
  if ((p !== us || y !== us) && (s.blendEquation(s.FUNC_ADD), p = us, y = us), ft)
21657
21657
  switch (B) {
21658
- case Xs:
21658
+ case js:
21659
21659
  s.blendFuncSeparate(s.ONE, s.ONE_MINUS_SRC_ALPHA, s.ONE, s.ONE_MINUS_SRC_ALPHA);
21660
21660
  break;
21661
21661
  case Dc:
@@ -21673,7 +21673,7 @@ function Iv(s, e) {
21673
21673
  }
21674
21674
  else
21675
21675
  switch (B) {
21676
- case Xs:
21676
+ case js:
21677
21677
  s.blendFuncSeparate(s.SRC_ALPHA, s.ONE_MINUS_SRC_ALPHA, s.ONE, s.ONE_MINUS_SRC_ALPHA);
21678
21678
  break;
21679
21679
  case Dc:
@@ -21693,12 +21693,12 @@ function Iv(s, e) {
21693
21693
  }
21694
21694
  return;
21695
21695
  }
21696
- _e = _e || we, X = X || me, Re = Re || ke, (we !== p || _e !== y) && (s.blendEquationSeparate(Y[we], Y[_e]), p = we, y = _e), (me !== S || ke !== v || X !== N || Re !== P) && (s.blendFuncSeparate(ne[me], ne[ke], ne[X], ne[Re]), S = me, v = ke, N = X, P = Re), (Ke.equals(L) === !1 || bt !== U) && (s.blendColor(Ke.r, Ke.g, Ke.b, bt), L.copy(Ke), U = bt), m = B, E = !1;
21696
+ _e = _e || we, X = X || me, Re = Re || ke, (we !== p || _e !== y) && (s.blendEquationSeparate(Z[we], Z[_e]), p = we, y = _e), (me !== S || ke !== v || X !== N || Re !== P) && (s.blendFuncSeparate(ne[me], ne[ke], ne[X], ne[Re]), S = me, v = ke, N = X, P = Re), (Ke.equals(L) === !1 || bt !== U) && (s.blendColor(Ke.r, Ke.g, Ke.b, bt), L.copy(Ke), U = bt), m = B, E = !1;
21697
21697
  }
21698
21698
  function Se(B, we) {
21699
21699
  B.side === $n ? Me(s.CULL_FACE) : se(s.CULL_FACE);
21700
21700
  let me = B.side === Un;
21701
- we && (me = !me), he(me), B.blending === Xs && B.transparent === !1 ? I(qi) : I(B.blending, B.blendEquation, B.blendSrc, B.blendDst, B.blendEquationAlpha, B.blendSrcAlpha, B.blendDstAlpha, B.blendColor, B.blendAlpha, B.premultipliedAlpha), a.setFunc(B.depthFunc), a.setTest(B.depthTest), a.setMask(B.depthWrite), r.setMask(B.colorWrite);
21701
+ we && (me = !me), he(me), B.blending === js && B.transparent === !1 ? I(qi) : I(B.blending, B.blendEquation, B.blendSrc, B.blendDst, B.blendEquationAlpha, B.blendSrcAlpha, B.blendDstAlpha, B.blendColor, B.blendAlpha, B.premultipliedAlpha), a.setFunc(B.depthFunc), a.setTest(B.depthTest), a.setMask(B.depthWrite), r.setMask(B.colorWrite);
21702
21702
  const ke = B.stencilWrite;
21703
21703
  o.setTest(ke), ke && (o.setMask(B.stencilWriteMask), o.setFunc(B.stencilFunc, B.stencilRef, B.stencilFuncMask), o.setOp(B.stencilFail, B.stencilZFail, B.stencilZPass)), Fe(B.polygonOffset, B.polygonOffsetFactor, B.polygonOffsetUnits), B.alphaToCoverage === !0 ? se(s.SAMPLE_ALPHA_TO_COVERAGE) : Me(s.SAMPLE_ALPHA_TO_COVERAGE);
21704
21704
  }
@@ -21827,8 +21827,8 @@ function Iv(s, e) {
21827
21827
  enable: se,
21828
21828
  disable: Me,
21829
21829
  bindFramebuffer: rt,
21830
- drawBuffers: $,
21831
- useProgram: Z,
21830
+ drawBuffers: K,
21831
+ useProgram: $,
21832
21832
  setBlending: I,
21833
21833
  setMaterial: Se,
21834
21834
  setFlipSided: he,
@@ -21907,7 +21907,7 @@ function Nv(s, e, t, n, i, r, a) {
21907
21907
  }
21908
21908
  function y(F, b) {
21909
21909
  let q;
21910
- return F ? b === null || b === ms || b === br ? q = s.DEPTH24_STENCIL8 : b === ti ? q = s.DEPTH32F_STENCIL8 : b === Tr && (q = s.DEPTH24_STENCIL8, console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : b === null || b === ms || b === br ? q = s.DEPTH_COMPONENT24 : b === ti ? q = s.DEPTH_COMPONENT32F : b === Tr && (q = s.DEPTH_COMPONENT16), q;
21910
+ return F ? b === null || b === gs || b === br ? q = s.DEPTH24_STENCIL8 : b === ti ? q = s.DEPTH32F_STENCIL8 : b === Tr && (q = s.DEPTH24_STENCIL8, console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : b === null || b === gs || b === br ? q = s.DEPTH_COMPONENT24 : b === ti ? q = s.DEPTH_COMPONENT32F : b === Tr && (q = s.DEPTH_COMPONENT16), q;
21911
21911
  }
21912
21912
  function N(F, b) {
21913
21913
  return m(F) === !0 || F.isFramebufferTexture && F.minFilter !== wn && F.minFilter !== xn ? Math.log2(Math.max(b.width, b.height)) + 1 : F.mipmaps !== void 0 && F.mipmaps.length > 0 ? F.mipmaps.length : F.isCompressedTexture && Array.isArray(F.image) ? b.mipmaps.length : 1;
@@ -22265,7 +22265,7 @@ function Nv(s, e, t, n, i, r, a) {
22265
22265
  }
22266
22266
  s.bindRenderbuffer(s.RENDERBUFFER, null);
22267
22267
  }
22268
- function $(F, b) {
22268
+ function K(F, b) {
22269
22269
  if (b && b.isWebGLCubeRenderTarget) throw new Error("Depth Texture with cube render targets is not supported");
22270
22270
  if (t.bindFramebuffer(s.FRAMEBUFFER, F), !(b.depthTexture && b.depthTexture.isDepthTexture))
22271
22271
  throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");
@@ -22279,7 +22279,7 @@ function Nv(s, e, t, n, i, r, a) {
22279
22279
  else
22280
22280
  throw new Error("Unknown depthTexture format");
22281
22281
  }
22282
- function Z(F) {
22282
+ function $(F) {
22283
22283
  const b = n.get(F), q = F.isWebGLCubeRenderTarget === !0;
22284
22284
  if (b.__boundDepthTexture !== F.depthTexture) {
22285
22285
  const le = F.depthTexture;
@@ -22294,7 +22294,7 @@ function Nv(s, e, t, n, i, r, a) {
22294
22294
  if (F.depthTexture && !b.__autoAllocateDepthBuffer) {
22295
22295
  if (q) throw new Error("target.depthTexture not supported in Cube render targets");
22296
22296
  const le = F.texture.mipmaps;
22297
- le && le.length > 0 ? $(b.__webglFramebuffer[0], F) : $(b.__webglFramebuffer, F);
22297
+ le && le.length > 0 ? K(b.__webglFramebuffer[0], F) : K(b.__webglFramebuffer, F);
22298
22298
  } else if (q) {
22299
22299
  b.__webglDepthbuffer = [];
22300
22300
  for (let le = 0; le < 6; le++)
@@ -22315,9 +22315,9 @@ function Nv(s, e, t, n, i, r, a) {
22315
22315
  }
22316
22316
  t.bindFramebuffer(s.FRAMEBUFFER, null);
22317
22317
  }
22318
- function Y(F, b, q) {
22318
+ function Z(F, b, q) {
22319
22319
  const le = n.get(F);
22320
- b !== void 0 && Me(le.__webglFramebuffer, F, F.texture, s.COLOR_ATTACHMENT0, s.TEXTURE_2D, 0), q !== void 0 && Z(F);
22320
+ b !== void 0 && Me(le.__webglFramebuffer, F, F.texture, s.COLOR_ATTACHMENT0, s.TEXTURE_2D, 0), q !== void 0 && $(F);
22321
22321
  }
22322
22322
  function ne(F) {
22323
22323
  const b = F.texture, q = n.get(F), le = n.get(b);
@@ -22379,7 +22379,7 @@ function Nv(s, e, t, n, i, r, a) {
22379
22379
  Me(q.__webglFramebuffer, F, b, s.COLOR_ATTACHMENT0, Ee, 0);
22380
22380
  m(b) && p(Ee), t.unbindTexture();
22381
22381
  }
22382
- F.depthBuffer && Z(F);
22382
+ F.depthBuffer && $(F);
22383
22383
  }
22384
22384
  function I(F) {
22385
22385
  const b = F.textures;
@@ -22443,7 +22443,7 @@ function Nv(s, e, t, n, i, r, a) {
22443
22443
  function Nt(F) {
22444
22444
  return typeof HTMLImageElement < "u" && F instanceof HTMLImageElement ? (c.width = F.naturalWidth || F.width, c.height = F.naturalHeight || F.height) : typeof VideoFrame < "u" && F instanceof VideoFrame ? (c.width = F.displayWidth, c.height = F.displayHeight) : (c.width = F.width, c.height = F.height), c;
22445
22445
  }
22446
- this.allocateTextureUnit = j, this.resetTextureUnits = W, this.setTexture2D = ue, this.setTexture2DArray = k, this.setTexture3D = ae, this.setTextureCube = V, this.rebindTextures = Y, this.setupRenderTarget = ne, this.updateRenderTargetMipmap = I, this.updateMultisampleRenderTarget = je, this.setupDepthRenderbuffer = Z, this.setupFrameBufferTexture = Me, this.useMultisampledRTT = Fe;
22446
+ this.allocateTextureUnit = j, this.resetTextureUnits = W, this.setTexture2D = ue, this.setTexture2DArray = k, this.setTexture3D = ae, this.setTextureCube = V, this.rebindTextures = Z, this.setupRenderTarget = ne, this.updateRenderTargetMipmap = I, this.updateMultisampleRenderTarget = je, this.setupDepthRenderbuffer = $, this.setupFrameBufferTexture = Me, this.useMultisampledRTT = Fe;
22447
22447
  }
22448
22448
  function Uv(s, e) {
22449
22449
  function t(n, i = Xi) {
@@ -22457,7 +22457,7 @@ function Uv(s, e) {
22457
22457
  if (n === Ch) return s.SHORT;
22458
22458
  if (n === Tr) return s.UNSIGNED_SHORT;
22459
22459
  if (n === Xl) return s.INT;
22460
- if (n === ms) return s.UNSIGNED_INT;
22460
+ if (n === gs) return s.UNSIGNED_INT;
22461
22461
  if (n === ti) return s.FLOAT;
22462
22462
  if (n === Or) return s.HALF_FLOAT;
22463
22463
  if (n === Lh) return s.ALPHA;
@@ -22618,7 +22618,7 @@ class kv {
22618
22618
  return this.texture;
22619
22619
  }
22620
22620
  }
22621
- class Bv extends vs {
22621
+ class Bv extends xs {
22622
22622
  /**
22623
22623
  * Constructs a new WebGL renderer.
22624
22624
  *
@@ -22684,13 +22684,13 @@ class Bv extends vs {
22684
22684
  if (i = G, i !== null) {
22685
22685
  if (p = e.getRenderTarget(), i.addEventListener("select", j), i.addEventListener("selectstart", j), i.addEventListener("selectend", j), i.addEventListener("squeeze", j), i.addEventListener("squeezestart", j), i.addEventListener("squeezeend", j), i.addEventListener("end", ie), i.addEventListener("inputsourceschange", ue), m.xrCompatible !== !0 && await t.makeXRCompatible(), P = e.getPixelRatio(), e.getSize(N), typeof XRWebGLBinding < "u" && "createProjectionLayer" in XRWebGLBinding.prototype) {
22686
22686
  let re = null, se = null, Me = null;
22687
- m.depth && (Me = m.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, re = m.stencil ? Ar : Er, se = m.stencil ? br : ms);
22687
+ m.depth && (Me = m.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, re = m.stencil ? Ar : Er, se = m.stencil ? br : gs);
22688
22688
  const rt = {
22689
22689
  colorFormat: t.RGBA8,
22690
22690
  depthFormat: Me,
22691
22691
  scaleFactor: r
22692
22692
  };
22693
- h = new XRWebGLBinding(i, t), d = h.createProjectionLayer(rt), i.updateRenderState({ layers: [d] }), e.setPixelRatio(1), e.setSize(d.textureWidth, d.textureHeight, !1), S = new gs(
22693
+ h = new XRWebGLBinding(i, t), d = h.createProjectionLayer(rt), i.updateRenderState({ layers: [d] }), e.setPixelRatio(1), e.setSize(d.textureWidth, d.textureHeight, !1), S = new _s(
22694
22694
  d.textureWidth,
22695
22695
  d.textureHeight,
22696
22696
  {
@@ -22712,7 +22712,7 @@ class Bv extends vs {
22712
22712
  stencil: m.stencil,
22713
22713
  framebufferScaleFactor: r
22714
22714
  };
22715
- f = new XRWebGLLayer(i, t, re), i.updateRenderState({ baseLayer: f }), e.setPixelRatio(1), e.setSize(f.framebufferWidth, f.framebufferHeight, !1), S = new gs(
22715
+ f = new XRWebGLLayer(i, t, re), i.updateRenderState({ baseLayer: f }), e.setPixelRatio(1), e.setSize(f.framebufferWidth, f.framebufferHeight, !1), S = new _s(
22716
22716
  f.framebufferWidth,
22717
22717
  f.framebufferHeight,
22718
22718
  {
@@ -22759,11 +22759,11 @@ class Bv extends vs {
22759
22759
  const k = new O(), ae = new O();
22760
22760
  function V(G, Q, re) {
22761
22761
  k.setFromMatrixPosition(Q.matrixWorld), ae.setFromMatrixPosition(re.matrixWorld);
22762
- const se = k.distanceTo(ae), Me = Q.projectionMatrix.elements, rt = re.projectionMatrix.elements, $ = Me[14] / (Me[10] - 1), Z = Me[14] / (Me[10] + 1), Y = (Me[9] + 1) / Me[5], ne = (Me[9] - 1) / Me[5], I = (Me[8] - 1) / Me[0], Se = (rt[8] + 1) / rt[0], he = $ * I, je = $ * Se, Le = se / (-I + Se), Fe = Le * -I;
22762
+ const se = k.distanceTo(ae), Me = Q.projectionMatrix.elements, rt = re.projectionMatrix.elements, K = Me[14] / (Me[10] - 1), $ = Me[14] / (Me[10] + 1), Z = (Me[9] + 1) / Me[5], ne = (Me[9] - 1) / Me[5], I = (Me[8] - 1) / Me[0], Se = (rt[8] + 1) / rt[0], he = K * I, je = K * Se, Le = se / (-I + Se), Fe = Le * -I;
22763
22763
  if (Q.matrixWorld.decompose(G.position, G.quaternion, G.scale), G.translateX(Fe), G.translateZ(Le), G.matrixWorld.compose(G.position, G.quaternion, G.scale), G.matrixWorldInverse.copy(G.matrixWorld).invert(), Me[10] === -1)
22764
22764
  G.projectionMatrix.copy(Q.projectionMatrix), G.projectionMatrixInverse.copy(Q.projectionMatrixInverse);
22765
22765
  else {
22766
- const De = $ + Le, Qe = Z + Le, Nt = he - Fe, F = je + (se - Fe), b = Y * Z / Qe * De, q = ne * Z / Qe * De;
22766
+ const De = K + Le, Qe = $ + Le, Nt = he - Fe, F = je + (se - Fe), b = Z * $ / Qe * De, q = ne * $ / Qe * De;
22767
22767
  G.projectionMatrix.makePerspective(Nt, F, b, q, De, Qe), G.projectionMatrixInverse.copy(G.projectionMatrix).invert();
22768
22768
  }
22769
22769
  }
@@ -22805,26 +22805,26 @@ class Bv extends vs {
22805
22805
  f !== null && (e.setRenderTargetFramebuffer(S, f.framebuffer), e.setRenderTarget(S));
22806
22806
  let se = !1;
22807
22807
  re.length !== T.cameras.length && (T.cameras.length = 0, se = !0);
22808
- for (let $ = 0; $ < re.length; $++) {
22809
- const Z = re[$];
22810
- let Y = null;
22808
+ for (let K = 0; K < re.length; K++) {
22809
+ const $ = re[K];
22810
+ let Z = null;
22811
22811
  if (f !== null)
22812
- Y = f.getViewport(Z);
22812
+ Z = f.getViewport($);
22813
22813
  else {
22814
- const I = h.getViewSubImage(d, Z);
22815
- Y = I.viewport, $ === 0 && (e.setRenderTargetTextures(
22814
+ const I = h.getViewSubImage(d, $);
22815
+ Z = I.viewport, K === 0 && (e.setRenderTargetTextures(
22816
22816
  S,
22817
22817
  I.colorTexture,
22818
22818
  I.depthStencilTexture
22819
22819
  ), e.setRenderTarget(S));
22820
22820
  }
22821
- let ne = E[$];
22822
- ne === void 0 && (ne = new dn(), ne.layers.enable($), ne.viewport = new Tt(), E[$] = ne), ne.matrix.fromArray(Z.transform.matrix), ne.matrix.decompose(ne.position, ne.quaternion, ne.scale), ne.projectionMatrix.fromArray(Z.projectionMatrix), ne.projectionMatrixInverse.copy(ne.projectionMatrix).invert(), ne.viewport.set(Y.x, Y.y, Y.width, Y.height), $ === 0 && (T.matrix.copy(ne.matrix), T.matrix.decompose(T.position, T.quaternion, T.scale)), se === !0 && T.cameras.push(ne);
22821
+ let ne = E[K];
22822
+ ne === void 0 && (ne = new dn(), ne.layers.enable(K), ne.viewport = new Tt(), E[K] = ne), ne.matrix.fromArray($.transform.matrix), ne.matrix.decompose(ne.position, ne.quaternion, ne.scale), ne.projectionMatrix.fromArray($.projectionMatrix), ne.projectionMatrixInverse.copy(ne.projectionMatrix).invert(), ne.viewport.set(Z.x, Z.y, Z.width, Z.height), K === 0 && (T.matrix.copy(ne.matrix), T.matrix.decompose(T.position, T.quaternion, T.scale)), se === !0 && T.cameras.push(ne);
22823
22823
  }
22824
22824
  const Me = i.enabledFeatures;
22825
22825
  if (Me && Me.includes("depth-sensing") && i.depthUsage == "gpu-optimized" && h) {
22826
- const $ = h.getDepthInformation(re[0]);
22827
- $ && $.isValid && $.texture && _.init(e, $, i.renderState);
22826
+ const K = h.getDepthInformation(re[0]);
22827
+ K && K.isValid && K.texture && _.init(e, K, i.renderState);
22828
22828
  }
22829
22829
  }
22830
22830
  for (let re = 0; re < v.length; re++) {
@@ -23051,8 +23051,8 @@ class Gv {
23051
23051
  let xe = !1;
23052
23052
  const G = new sc();
23053
23053
  let Q = !1, re = !1;
23054
- const se = new Ue(), Me = new Ue(), rt = new O(), $ = new Tt(), Z = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
23055
- let Y = !1;
23054
+ const se = new Ue(), Me = new Ue(), rt = new O(), K = new Tt(), $ = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
23055
+ let Z = !1;
23056
23056
  function ne() {
23057
23057
  return U === null ? V : 1;
23058
23058
  }
@@ -23101,26 +23101,26 @@ class Gv {
23101
23101
  w !== void 0 && (V = w, this.setSize(k, ae, !1));
23102
23102
  }, this.getSize = function(w) {
23103
23103
  return w.set(k, ae);
23104
- }, this.setSize = function(w, z, K = !0) {
23104
+ }, this.setSize = function(w, z, Y = !0) {
23105
23105
  if (me.isPresenting) {
23106
23106
  console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");
23107
23107
  return;
23108
23108
  }
23109
- k = w, ae = z, t.width = Math.floor(w * V), t.height = Math.floor(z * V), K === !0 && (t.style.width = w + "px", t.style.height = z + "px"), this.setViewport(0, 0, w, z);
23109
+ k = w, ae = z, t.width = Math.floor(w * V), t.height = Math.floor(z * V), Y === !0 && (t.style.width = w + "px", t.style.height = z + "px"), this.setViewport(0, 0, w, z);
23110
23110
  }, this.getDrawingBufferSize = function(w) {
23111
23111
  return w.set(k * V, ae * V).floor();
23112
- }, this.setDrawingBufferSize = function(w, z, K) {
23113
- k = w, ae = z, V = K, t.width = Math.floor(w * K), t.height = Math.floor(z * K), this.setViewport(0, 0, w, z);
23112
+ }, this.setDrawingBufferSize = function(w, z, Y) {
23113
+ k = w, ae = z, V = Y, t.width = Math.floor(w * Y), t.height = Math.floor(z * Y), this.setViewport(0, 0, w, z);
23114
23114
  }, this.getCurrentViewport = function(w) {
23115
23115
  return w.copy(D);
23116
23116
  }, this.getViewport = function(w) {
23117
23117
  return w.copy(oe);
23118
- }, this.setViewport = function(w, z, K, J) {
23119
- w.isVector4 ? oe.set(w.x, w.y, w.z, w.w) : oe.set(w, z, K, J), Le.viewport(D.copy(oe).multiplyScalar(V).round());
23118
+ }, this.setViewport = function(w, z, Y, J) {
23119
+ w.isVector4 ? oe.set(w.x, w.y, w.z, w.w) : oe.set(w, z, Y, J), Le.viewport(D.copy(oe).multiplyScalar(V).round());
23120
23120
  }, this.getScissor = function(w) {
23121
23121
  return w.copy(Ae);
23122
- }, this.setScissor = function(w, z, K, J) {
23123
- w.isVector4 ? Ae.set(w.x, w.y, w.z, w.w) : Ae.set(w, z, K, J), Le.scissor(W.copy(Ae).multiplyScalar(V).round());
23122
+ }, this.setScissor = function(w, z, Y, J) {
23123
+ w.isVector4 ? Ae.set(w.x, w.y, w.z, w.w) : Ae.set(w, z, Y, J), Le.scissor(W.copy(Ae).multiplyScalar(V).round());
23124
23124
  }, this.getScissorTest = function() {
23125
23125
  return xe;
23126
23126
  }, this.setScissorTest = function(w) {
@@ -23137,7 +23137,7 @@ class Gv {
23137
23137
  return pe.getClearAlpha();
23138
23138
  }, this.setClearAlpha = function() {
23139
23139
  pe.setClearAlpha(...arguments);
23140
- }, this.clear = function(w = !0, z = !0, K = !0) {
23140
+ }, this.clear = function(w = !0, z = !0, Y = !0) {
23141
23141
  let J = 0;
23142
23142
  if (w) {
23143
23143
  let H = !1;
@@ -23146,12 +23146,12 @@ class Gv {
23146
23146
  H = ve === $l || ve === Zl || ve === Yl;
23147
23147
  }
23148
23148
  if (H) {
23149
- const ve = U.texture.type, Ce = ve === ci || ve === ms || ve === Tr || ve === br || ve === jl || ve === ql, We = pe.getClearColor(), ze = pe.getClearAlpha(), ct = We.r, ut = We.g, Je = We.b;
23149
+ const ve = U.texture.type, Ce = ve === ci || ve === gs || ve === Tr || ve === br || ve === jl || ve === ql, We = pe.getClearColor(), ze = pe.getClearAlpha(), ct = We.r, ut = We.g, Je = We.b;
23150
23150
  Ce ? (g[0] = ct, g[1] = ut, g[2] = Je, g[3] = ze, I.clearBufferuiv(I.COLOR, 0, g)) : (_[0] = ct, _[1] = ut, _[2] = Je, _[3] = ze, I.clearBufferiv(I.COLOR, 0, _));
23151
23151
  } else
23152
23152
  J |= I.COLOR_BUFFER_BIT;
23153
23153
  }
23154
- z && (J |= I.DEPTH_BUFFER_BIT), K && (J |= I.STENCIL_BUFFER_BIT, this.state.buffers.stencil.setMask(4294967295)), I.clear(J);
23154
+ z && (J |= I.DEPTH_BUFFER_BIT), Y && (J |= I.STENCIL_BUFFER_BIT, this.state.buffers.stencil.setMask(4294967295)), I.clear(J);
23155
23155
  }, this.clearColor = function() {
23156
23156
  this.clear(!0, !1, !1);
23157
23157
  }, this.clearDepth = function() {
@@ -23166,8 +23166,8 @@ class Gv {
23166
23166
  }
23167
23167
  function _e() {
23168
23168
  console.log("THREE.WebGLRenderer: Context Restored."), N = !1;
23169
- const w = Fe.autoReset, z = qe.enabled, K = qe.autoUpdate, J = qe.needsUpdate, H = qe.type;
23170
- we(), Fe.autoReset = w, qe.enabled = z, qe.autoUpdate = K, qe.needsUpdate = J, qe.type = H;
23169
+ const w = Fe.autoReset, z = qe.enabled, Y = qe.autoUpdate, J = qe.needsUpdate, H = qe.type;
23170
+ we(), Fe.autoReset = w, qe.enabled = z, qe.autoUpdate = Y, qe.needsUpdate = J, qe.type = H;
23171
23171
  }
23172
23172
  function X(w) {
23173
23173
  console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ", w.statusMessage);
@@ -23181,25 +23181,25 @@ class Gv {
23181
23181
  }
23182
23182
  function bt(w) {
23183
23183
  const z = De.get(w).programs;
23184
- z !== void 0 && (z.forEach(function(K) {
23185
- fe.releaseProgram(K);
23184
+ z !== void 0 && (z.forEach(function(Y) {
23185
+ fe.releaseProgram(Y);
23186
23186
  }), w.isShaderMaterial && fe.releaseShaderCache(w));
23187
23187
  }
23188
- this.renderBufferDirect = function(w, z, K, J, H, ve) {
23189
- z === null && (z = Z);
23190
- const Ce = H.isMesh && H.matrixWorld.determinant() < 0, We = xs(w, z, K, J, H);
23188
+ this.renderBufferDirect = function(w, z, Y, J, H, ve) {
23189
+ z === null && (z = $);
23190
+ const Ce = H.isMesh && H.matrixWorld.determinant() < 0, We = Ms(w, z, Y, J, H);
23191
23191
  Le.setMaterial(J, Ce);
23192
- let ze = K.index, ct = 1;
23192
+ let ze = Y.index, ct = 1;
23193
23193
  if (J.wireframe === !0) {
23194
- if (ze = q.getWireframeAttribute(K), ze === void 0) return;
23194
+ if (ze = q.getWireframeAttribute(Y), ze === void 0) return;
23195
23195
  ct = 2;
23196
23196
  }
23197
- const ut = K.drawRange, Je = K.attributes.position;
23197
+ const ut = Y.drawRange, Je = Y.attributes.position;
23198
23198
  let pt = ut.start * ct, Lt = (ut.start + ut.count) * ct;
23199
23199
  ve !== null && (pt = Math.max(pt, ve.start * ct), Lt = Math.min(Lt, (ve.start + ve.count) * ct)), ze !== null ? (pt = Math.max(pt, 0), Lt = Math.min(Lt, ze.count)) : Je != null && (pt = Math.max(pt, 0), Lt = Math.min(Lt, Je.count));
23200
23200
  const Bt = Lt - pt;
23201
23201
  if (Bt < 0 || Bt === 1 / 0) return;
23202
- at.setup(H, J, We, K, ze);
23202
+ at.setup(H, J, We, Y, ze);
23203
23203
  let Vt, Et = nt;
23204
23204
  if (ze !== null && (Vt = b.get(ze), Et = et, Et.setIndex(Vt)), H.isMesh)
23205
23205
  J.wireframe === !0 ? (Le.setLineWidth(J.wireframeLinewidth * ne()), Et.setMode(I.LINES)) : Et.setMode(I.TRIANGLES);
@@ -23209,7 +23209,7 @@ class Gv {
23209
23209
  } else H.isPoints ? Et.setMode(I.POINTS) : H.isSprite && Et.setMode(I.TRIANGLES);
23210
23210
  if (H.isBatchedMesh)
23211
23211
  if (H._multiDrawInstances !== null)
23212
- js("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), Et.renderMultiDrawInstances(H._multiDrawStarts, H._multiDrawCounts, H._multiDrawCount, H._multiDrawInstances);
23212
+ qs("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), Et.renderMultiDrawInstances(H._multiDrawStarts, H._multiDrawCounts, H._multiDrawCount, H._multiDrawInstances);
23213
23213
  else if (he.get("WEBGL_multi_draw"))
23214
23214
  Et.renderMultiDraw(H._multiDrawStarts, H._multiDrawCounts, H._multiDrawCount);
23215
23215
  else {
@@ -23219,19 +23219,19 @@ class Gv {
23219
23219
  }
23220
23220
  else if (H.isInstancedMesh)
23221
23221
  Et.renderInstances(pt, Bt, H.count);
23222
- else if (K.isInstancedBufferGeometry) {
23223
- const it = K._maxInstanceCount !== void 0 ? K._maxInstanceCount : 1 / 0, en = Math.min(K.instanceCount, it);
23222
+ else if (Y.isInstancedBufferGeometry) {
23223
+ const it = Y._maxInstanceCount !== void 0 ? Y._maxInstanceCount : 1 / 0, en = Math.min(Y.instanceCount, it);
23224
23224
  Et.renderInstances(pt, Bt, en);
23225
23225
  } else
23226
23226
  Et.render(pt, Bt);
23227
23227
  };
23228
- function ft(w, z, K) {
23229
- w.transparent === !0 && w.side === $n && w.forceSinglePass === !1 ? (w.side = Un, w.needsUpdate = !0, fi(w, z, K), w.side = li, w.needsUpdate = !0, fi(w, z, K), w.side = $n) : fi(w, z, K);
23228
+ function ft(w, z, Y) {
23229
+ w.transparent === !0 && w.side === $n && w.forceSinglePass === !1 ? (w.side = Un, w.needsUpdate = !0, fi(w, z, Y), w.side = li, w.needsUpdate = !0, fi(w, z, Y), w.side = $n) : fi(w, z, Y);
23230
23230
  }
23231
- this.compile = function(w, z, K = null) {
23232
- K === null && (K = w), p = Ee.get(K), p.init(z), v.push(p), K.traverseVisible(function(H) {
23231
+ this.compile = function(w, z, Y = null) {
23232
+ Y === null && (Y = w), p = Ee.get(Y), p.init(z), v.push(p), Y.traverseVisible(function(H) {
23233
23233
  H.isLight && H.layers.test(z.layers) && (p.pushLight(H), H.castShadow && p.pushShadow(H));
23234
- }), w !== K && w.traverseVisible(function(H) {
23234
+ }), w !== Y && w.traverseVisible(function(H) {
23235
23235
  H.isLight && H.layers.test(z.layers) && (p.pushLight(H), H.castShadow && p.pushShadow(H));
23236
23236
  }), p.setupLights();
23237
23237
  const J = /* @__PURE__ */ new Set();
@@ -23243,13 +23243,13 @@ class Gv {
23243
23243
  if (Array.isArray(ve))
23244
23244
  for (let Ce = 0; Ce < ve.length; Ce++) {
23245
23245
  const We = ve[Ce];
23246
- ft(We, K, H), J.add(We);
23246
+ ft(We, Y, H), J.add(We);
23247
23247
  }
23248
23248
  else
23249
- ft(ve, K, H), J.add(ve);
23249
+ ft(ve, Y, H), J.add(ve);
23250
23250
  }), p = v.pop(), J;
23251
- }, this.compileAsync = function(w, z, K = null) {
23252
- const J = this.compile(w, z, K);
23251
+ }, this.compileAsync = function(w, z, Y = null) {
23252
+ const J = this.compile(w, z, Y);
23253
23253
  return new Promise((H) => {
23254
23254
  function ve() {
23255
23255
  if (J.forEach(function(Ce) {
@@ -23286,9 +23286,9 @@ class Gv {
23286
23286
  const ve = y.xr.getDepthSensingMesh();
23287
23287
  ve !== null && qt(ve, z, -1 / 0, y.sortObjects);
23288
23288
  }
23289
- qt(w, z, 0, y.sortObjects), m.finish(), y.sortObjects === !0 && m.sort(de, ye), Y = me.enabled === !1 || me.isPresenting === !1 || me.hasDepthSensing() === !1, Y && pe.addToRenderList(m, w), this.info.render.frame++, Q === !0 && Ge.beginShadows();
23290
- const K = p.state.shadowsArray;
23291
- qe.render(K, w, z), Q === !0 && Ge.endShadows(), this.info.autoReset === !0 && this.info.reset();
23289
+ qt(w, z, 0, y.sortObjects), m.finish(), y.sortObjects === !0 && m.sort(de, ye), Z = me.enabled === !1 || me.isPresenting === !1 || me.hasDepthSensing() === !1, Z && pe.addToRenderList(m, w), this.info.render.frame++, Q === !0 && Ge.beginShadows();
23290
+ const Y = p.state.shadowsArray;
23291
+ qe.render(Y, w, z), Q === !0 && Ge.endShadows(), this.info.autoReset === !0 && this.info.reset();
23292
23292
  const J = m.opaque, H = m.transmissive;
23293
23293
  if (p.setupLights(), z.isArrayCamera) {
23294
23294
  const ve = z.cameras;
@@ -23297,53 +23297,53 @@ class Gv {
23297
23297
  const ze = ve[Ce];
23298
23298
  Mn(J, H, w, ze);
23299
23299
  }
23300
- Y && pe.render(w);
23300
+ Z && pe.render(w);
23301
23301
  for (let Ce = 0, We = ve.length; Ce < We; Ce++) {
23302
23302
  const ze = ve[Ce];
23303
23303
  gn(m, w, ze, ze.viewport);
23304
23304
  }
23305
23305
  } else
23306
- H.length > 0 && Mn(J, H, w, z), Y && pe.render(w), gn(m, w, z);
23306
+ H.length > 0 && Mn(J, H, w, z), Z && pe.render(w), gn(m, w, z);
23307
23307
  U !== null && L === 0 && (Qe.updateMultisampleRenderTarget(U), Qe.updateRenderTargetMipmap(U)), w.isScene === !0 && w.onAfterRender(y, w, z), at.resetDefaultState(), E = -1, T = null, v.pop(), v.length > 0 ? (p = v[v.length - 1], Q === !0 && Ge.setGlobalState(y.clippingPlanes, p.state.camera)) : p = null, S.pop(), S.length > 0 ? m = S[S.length - 1] : m = null;
23308
23308
  };
23309
- function qt(w, z, K, J) {
23309
+ function qt(w, z, Y, J) {
23310
23310
  if (w.visible === !1) return;
23311
23311
  if (w.layers.test(z.layers)) {
23312
23312
  if (w.isGroup)
23313
- K = w.renderOrder;
23313
+ Y = w.renderOrder;
23314
23314
  else if (w.isLOD)
23315
23315
  w.autoUpdate === !0 && w.update(z);
23316
23316
  else if (w.isLight)
23317
23317
  p.pushLight(w), w.castShadow && p.pushShadow(w);
23318
23318
  else if (w.isSprite) {
23319
23319
  if (!w.frustumCulled || G.intersectsSprite(w)) {
23320
- J && $.setFromMatrixPosition(w.matrixWorld).applyMatrix4(Me);
23320
+ J && K.setFromMatrixPosition(w.matrixWorld).applyMatrix4(Me);
23321
23321
  const Ce = le.update(w), We = w.material;
23322
- We.visible && m.push(w, Ce, We, K, $.z, null);
23322
+ We.visible && m.push(w, Ce, We, Y, K.z, null);
23323
23323
  }
23324
23324
  } else if ((w.isMesh || w.isLine || w.isPoints) && (!w.frustumCulled || G.intersectsObject(w))) {
23325
23325
  const Ce = le.update(w), We = w.material;
23326
- if (J && (w.boundingSphere !== void 0 ? (w.boundingSphere === null && w.computeBoundingSphere(), $.copy(w.boundingSphere.center)) : (Ce.boundingSphere === null && Ce.computeBoundingSphere(), $.copy(Ce.boundingSphere.center)), $.applyMatrix4(w.matrixWorld).applyMatrix4(Me)), Array.isArray(We)) {
23326
+ if (J && (w.boundingSphere !== void 0 ? (w.boundingSphere === null && w.computeBoundingSphere(), K.copy(w.boundingSphere.center)) : (Ce.boundingSphere === null && Ce.computeBoundingSphere(), K.copy(Ce.boundingSphere.center)), K.applyMatrix4(w.matrixWorld).applyMatrix4(Me)), Array.isArray(We)) {
23327
23327
  const ze = Ce.groups;
23328
23328
  for (let ct = 0, ut = ze.length; ct < ut; ct++) {
23329
23329
  const Je = ze[ct], pt = We[Je.materialIndex];
23330
- pt && pt.visible && m.push(w, Ce, pt, K, $.z, Je);
23330
+ pt && pt.visible && m.push(w, Ce, pt, Y, K.z, Je);
23331
23331
  }
23332
- } else We.visible && m.push(w, Ce, We, K, $.z, null);
23332
+ } else We.visible && m.push(w, Ce, We, Y, K.z, null);
23333
23333
  }
23334
23334
  }
23335
23335
  const ve = w.children;
23336
23336
  for (let Ce = 0, We = ve.length; Ce < We; Ce++)
23337
- qt(ve[Ce], z, K, J);
23337
+ qt(ve[Ce], z, Y, J);
23338
23338
  }
23339
- function gn(w, z, K, J) {
23339
+ function gn(w, z, Y, J) {
23340
23340
  const H = w.opaque, ve = w.transmissive, Ce = w.transparent;
23341
- p.setupLightsView(K), Q === !0 && Ge.setGlobalState(y.clippingPlanes, K), J && Le.viewport(D.copy(J)), H.length > 0 && di(H, z, K), ve.length > 0 && di(ve, z, K), Ce.length > 0 && di(Ce, z, K), Le.buffers.depth.setTest(!0), Le.buffers.depth.setMask(!0), Le.buffers.color.setMask(!0), Le.setPolygonOffset(!1);
23341
+ p.setupLightsView(Y), Q === !0 && Ge.setGlobalState(y.clippingPlanes, Y), J && Le.viewport(D.copy(J)), H.length > 0 && di(H, z, Y), ve.length > 0 && di(ve, z, Y), Ce.length > 0 && di(Ce, z, Y), Le.buffers.depth.setTest(!0), Le.buffers.depth.setMask(!0), Le.buffers.color.setMask(!0), Le.setPolygonOffset(!1);
23342
23342
  }
23343
- function Mn(w, z, K, J) {
23344
- if ((K.isScene === !0 ? K.overrideMaterial : null) !== null)
23343
+ function Mn(w, z, Y, J) {
23344
+ if ((Y.isScene === !0 ? Y.overrideMaterial : null) !== null)
23345
23345
  return;
23346
- p.state.transmissionRenderTarget[J.id] === void 0 && (p.state.transmissionRenderTarget[J.id] = new gs(1, 1, {
23346
+ p.state.transmissionRenderTarget[J.id] === void 0 && (p.state.transmissionRenderTarget[J.id] = new _s(1, 1, {
23347
23347
  generateMipmaps: !0,
23348
23348
  type: he.has("EXT_color_buffer_half_float") || he.has("EXT_color_buffer_float") ? Or : ci,
23349
23349
  minFilter: ei,
@@ -23356,37 +23356,37 @@ class Gv {
23356
23356
  const ve = p.state.transmissionRenderTarget[J.id], Ce = J.viewport || D;
23357
23357
  ve.setSize(Ce.z * y.transmissionResolutionScale, Ce.w * y.transmissionResolutionScale);
23358
23358
  const We = y.getRenderTarget();
23359
- y.setRenderTarget(ve), y.getClearColor(ie), ue = y.getClearAlpha(), ue < 1 && y.setClearColor(16777215, 0.5), y.clear(), Y && pe.render(K);
23359
+ y.setRenderTarget(ve), y.getClearColor(ie), ue = y.getClearAlpha(), ue < 1 && y.setClearColor(16777215, 0.5), y.clear(), Z && pe.render(Y);
23360
23360
  const ze = y.toneMapping;
23361
23361
  y.toneMapping = Ki;
23362
23362
  const ct = J.viewport;
23363
- if (J.viewport !== void 0 && (J.viewport = void 0), p.setupLightsView(J), Q === !0 && Ge.setGlobalState(y.clippingPlanes, J), di(w, K, J), Qe.updateMultisampleRenderTarget(ve), Qe.updateRenderTargetMipmap(ve), he.has("WEBGL_multisampled_render_to_texture") === !1) {
23363
+ if (J.viewport !== void 0 && (J.viewport = void 0), p.setupLightsView(J), Q === !0 && Ge.setGlobalState(y.clippingPlanes, J), di(w, Y, J), Qe.updateMultisampleRenderTarget(ve), Qe.updateRenderTargetMipmap(ve), he.has("WEBGL_multisampled_render_to_texture") === !1) {
23364
23364
  let ut = !1;
23365
23365
  for (let Je = 0, pt = z.length; Je < pt; Je++) {
23366
23366
  const Lt = z[Je], Bt = Lt.object, Vt = Lt.geometry, Et = Lt.material, it = Lt.group;
23367
23367
  if (Et.side === $n && Bt.layers.test(J.layers)) {
23368
23368
  const en = Et.side;
23369
- Et.side = Un, Et.needsUpdate = !0, Di(Bt, K, J, Vt, Et, it), Et.side = en, Et.needsUpdate = !0, ut = !0;
23369
+ Et.side = Un, Et.needsUpdate = !0, Di(Bt, Y, J, Vt, Et, it), Et.side = en, Et.needsUpdate = !0, ut = !0;
23370
23370
  }
23371
23371
  }
23372
23372
  ut === !0 && (Qe.updateMultisampleRenderTarget(ve), Qe.updateRenderTargetMipmap(ve));
23373
23373
  }
23374
23374
  y.setRenderTarget(We), y.setClearColor(ie, ue), ct !== void 0 && (J.viewport = ct), y.toneMapping = ze;
23375
23375
  }
23376
- function di(w, z, K) {
23376
+ function di(w, z, Y) {
23377
23377
  const J = z.isScene === !0 ? z.overrideMaterial : null;
23378
23378
  for (let H = 0, ve = w.length; H < ve; H++) {
23379
23379
  const Ce = w[H], We = Ce.object, ze = Ce.geometry, ct = Ce.group;
23380
23380
  let ut = Ce.material;
23381
- ut.allowOverride === !0 && J !== null && (ut = J), We.layers.test(K.layers) && Di(We, z, K, ze, ut, ct);
23381
+ ut.allowOverride === !0 && J !== null && (ut = J), We.layers.test(Y.layers) && Di(We, z, Y, ze, ut, ct);
23382
23382
  }
23383
23383
  }
23384
- function Di(w, z, K, J, H, ve) {
23385
- w.onBeforeRender(y, z, K, J, H, ve), w.modelViewMatrix.multiplyMatrices(K.matrixWorldInverse, w.matrixWorld), w.normalMatrix.getNormalMatrix(w.modelViewMatrix), H.onBeforeRender(y, z, K, J, w, ve), H.transparent === !0 && H.side === $n && H.forceSinglePass === !1 ? (H.side = Un, H.needsUpdate = !0, y.renderBufferDirect(K, z, J, H, w, ve), H.side = li, H.needsUpdate = !0, y.renderBufferDirect(K, z, J, H, w, ve), H.side = $n) : y.renderBufferDirect(K, z, J, H, w, ve), w.onAfterRender(y, z, K, J, H, ve);
23384
+ function Di(w, z, Y, J, H, ve) {
23385
+ w.onBeforeRender(y, z, Y, J, H, ve), w.modelViewMatrix.multiplyMatrices(Y.matrixWorldInverse, w.matrixWorld), w.normalMatrix.getNormalMatrix(w.modelViewMatrix), H.onBeforeRender(y, z, Y, J, w, ve), H.transparent === !0 && H.side === $n && H.forceSinglePass === !1 ? (H.side = Un, H.needsUpdate = !0, y.renderBufferDirect(Y, z, J, H, w, ve), H.side = li, H.needsUpdate = !0, y.renderBufferDirect(Y, z, J, H, w, ve), H.side = $n) : y.renderBufferDirect(Y, z, J, H, w, ve), w.onAfterRender(y, z, Y, J, H, ve);
23386
23386
  }
23387
- function fi(w, z, K) {
23388
- z.isScene !== !0 && (z = Z);
23389
- const J = De.get(w), H = p.state.lights, ve = p.state.shadowsArray, Ce = H.state.version, We = fe.getParameters(w, H.state, ve, z, K), ze = fe.getProgramCacheKey(We);
23387
+ function fi(w, z, Y) {
23388
+ z.isScene !== !0 && (z = $);
23389
+ const J = De.get(w), H = p.state.lights, ve = p.state.shadowsArray, Ce = H.state.version, We = fe.getParameters(w, H.state, ve, z, Y), ze = fe.getProgramCacheKey(We);
23390
23390
  let ct = J.programs;
23391
23391
  J.environment = w.isMeshStandardMaterial ? z.environment : null, J.fog = z.fog, J.envMap = (w.isMeshStandardMaterial ? F : Nt).get(w.envMap || J.environment), J.envMapRotation = J.environment !== null && w.envMap === null ? z.environmentRotation : w.envMapRotation, ct === void 0 && (w.addEventListener("dispose", Re), ct = /* @__PURE__ */ new Map(), J.programs = ct);
23392
23392
  let ut = ct.get(ze);
@@ -23406,15 +23406,15 @@ class Gv {
23406
23406
  return w.uniformsList;
23407
23407
  }
23408
23408
  function Ji(w, z) {
23409
- const K = De.get(w);
23410
- K.outputColorSpace = z.outputColorSpace, K.batching = z.batching, K.batchingColor = z.batchingColor, K.instancing = z.instancing, K.instancingColor = z.instancingColor, K.instancingMorph = z.instancingMorph, K.skinning = z.skinning, K.morphTargets = z.morphTargets, K.morphNormals = z.morphNormals, K.morphColors = z.morphColors, K.morphTargetsCount = z.morphTargetsCount, K.numClippingPlanes = z.numClippingPlanes, K.numIntersection = z.numClipIntersection, K.vertexAlphas = z.vertexAlphas, K.vertexTangents = z.vertexTangents, K.toneMapping = z.toneMapping;
23409
+ const Y = De.get(w);
23410
+ Y.outputColorSpace = z.outputColorSpace, Y.batching = z.batching, Y.batchingColor = z.batchingColor, Y.instancing = z.instancing, Y.instancingColor = z.instancingColor, Y.instancingMorph = z.instancingMorph, Y.skinning = z.skinning, Y.morphTargets = z.morphTargets, Y.morphNormals = z.morphNormals, Y.morphColors = z.morphColors, Y.morphTargetsCount = z.morphTargetsCount, Y.numClippingPlanes = z.numClippingPlanes, Y.numIntersection = z.numClipIntersection, Y.vertexAlphas = z.vertexAlphas, Y.vertexTangents = z.vertexTangents, Y.toneMapping = z.toneMapping;
23411
23411
  }
23412
- function xs(w, z, K, J, H) {
23413
- z.isScene !== !0 && (z = Z), Qe.resetTextureUnits();
23414
- const ve = z.fog, Ce = J.isMeshStandardMaterial ? z.environment : null, We = U === null ? y.outputColorSpace : U.isXRRenderTarget === !0 ? U.texture.colorSpace : Rn, ze = (J.isMeshStandardMaterial ? F : Nt).get(J.envMap || Ce), ct = J.vertexColors === !0 && !!K.attributes.color && K.attributes.color.itemSize === 4, ut = !!K.attributes.tangent && (!!J.normalMap || J.anisotropy > 0), Je = !!K.morphAttributes.position, pt = !!K.morphAttributes.normal, Lt = !!K.morphAttributes.color;
23412
+ function Ms(w, z, Y, J, H) {
23413
+ z.isScene !== !0 && (z = $), Qe.resetTextureUnits();
23414
+ const ve = z.fog, Ce = J.isMeshStandardMaterial ? z.environment : null, We = U === null ? y.outputColorSpace : U.isXRRenderTarget === !0 ? U.texture.colorSpace : Rn, ze = (J.isMeshStandardMaterial ? F : Nt).get(J.envMap || Ce), ct = J.vertexColors === !0 && !!Y.attributes.color && Y.attributes.color.itemSize === 4, ut = !!Y.attributes.tangent && (!!J.normalMap || J.anisotropy > 0), Je = !!Y.morphAttributes.position, pt = !!Y.morphAttributes.normal, Lt = !!Y.morphAttributes.color;
23415
23415
  let Bt = Ki;
23416
23416
  J.toneMapped && (U === null || U.isXRRenderTarget === !0) && (Bt = y.toneMapping);
23417
- const Vt = K.morphAttributes.position || K.morphAttributes.normal || K.morphAttributes.color, Et = Vt !== void 0 ? Vt.length : 0, it = De.get(J), en = p.state.lights;
23417
+ const Vt = Y.morphAttributes.position || Y.morphAttributes.normal || Y.morphAttributes.color, Et = Vt !== void 0 ? Vt.length : 0, it = De.get(J), en = p.state.lights;
23418
23418
  if (Q === !0 && (re === !0 || w !== T)) {
23419
23419
  const $t = w === T && J.id === E;
23420
23420
  Ge.setState(J, w, $t);
@@ -23440,10 +23440,10 @@ class Gv {
23440
23440
  $t && ($t.boneTexture === null && $t.computeBoneTexture(), Ot.setValue(I, "boneTexture", $t.boneTexture, Qe));
23441
23441
  }
23442
23442
  H.isBatchedMesh && (Ot.setOptional(I, H, "batchingTexture"), Ot.setValue(I, "batchingTexture", H._matricesTexture, Qe), Ot.setOptional(I, H, "batchingIdTexture"), Ot.setValue(I, "batchingIdTexture", H._indirectTexture, Qe), Ot.setOptional(I, H, "batchingColorTexture"), H._colorsTexture !== null && Ot.setValue(I, "batchingColorTexture", H._colorsTexture, Qe));
23443
- const _n = K.morphAttributes;
23444
- if ((_n.position !== void 0 || _n.normal !== void 0 || _n.color !== void 0) && Oe.update(H, K, Pn), (mn || it.receiveShadow !== H.receiveShadow) && (it.receiveShadow = H.receiveShadow, Ot.setValue(I, "receiveShadow", H.receiveShadow)), J.isMeshGouraudMaterial && J.envMap !== null && (Tn.envMap.value = ze, Tn.flipEnvMap.value = ze.isCubeTexture && ze.isRenderTargetTexture === !1 ? -1 : 1), J.isMeshStandardMaterial && J.envMap === null && z.environment !== null && (Tn.envMapIntensity.value = z.environmentIntensity), mn && (Ot.setValue(I, "toneMappingExposure", y.toneMappingExposure), it.needsLights && Qi(Tn, es), ve && J.fog === !0 && te.refreshFogUniforms(Tn, ve), te.refreshMaterialUniforms(Tn, J, V, ae, p.state.transmissionRenderTarget[w.id]), La.upload(I, $i(it), Tn, Qe)), J.isShaderMaterial && J.uniformsNeedUpdate === !0 && (La.upload(I, $i(it), Tn, Qe), J.uniformsNeedUpdate = !1), J.isSpriteMaterial && Ot.setValue(I, "center", H.center), Ot.setValue(I, "modelViewMatrix", H.modelViewMatrix), Ot.setValue(I, "normalMatrix", H.normalMatrix), Ot.setValue(I, "modelMatrix", H.matrixWorld), J.isShaderMaterial || J.isRawShaderMaterial) {
23443
+ const _n = Y.morphAttributes;
23444
+ if ((_n.position !== void 0 || _n.normal !== void 0 || _n.color !== void 0) && Oe.update(H, Y, Pn), (mn || it.receiveShadow !== H.receiveShadow) && (it.receiveShadow = H.receiveShadow, Ot.setValue(I, "receiveShadow", H.receiveShadow)), J.isMeshGouraudMaterial && J.envMap !== null && (Tn.envMap.value = ze, Tn.flipEnvMap.value = ze.isCubeTexture && ze.isRenderTargetTexture === !1 ? -1 : 1), J.isMeshStandardMaterial && J.envMap === null && z.environment !== null && (Tn.envMapIntensity.value = z.environmentIntensity), mn && (Ot.setValue(I, "toneMappingExposure", y.toneMappingExposure), it.needsLights && Qi(Tn, es), ve && J.fog === !0 && te.refreshFogUniforms(Tn, ve), te.refreshMaterialUniforms(Tn, J, V, ae, p.state.transmissionRenderTarget[w.id]), La.upload(I, $i(it), Tn, Qe)), J.isShaderMaterial && J.uniformsNeedUpdate === !0 && (La.upload(I, $i(it), Tn, Qe), J.uniformsNeedUpdate = !1), J.isSpriteMaterial && Ot.setValue(I, "center", H.center), Ot.setValue(I, "modelViewMatrix", H.modelViewMatrix), Ot.setValue(I, "normalMatrix", H.normalMatrix), Ot.setValue(I, "modelMatrix", H.matrixWorld), J.isShaderMaterial || J.isRawShaderMaterial) {
23445
23445
  const $t = J.uniformsGroups;
23446
- for (let tn = 0, Ms = $t.length; tn < Ms; tn++) {
23446
+ for (let tn = 0, Ss = $t.length; tn < Ss; tn++) {
23447
23447
  const mi = $t[tn];
23448
23448
  B.update(mi, Pn), B.bind(mi, Pn);
23449
23449
  }
@@ -23462,16 +23462,16 @@ class Gv {
23462
23462
  return L;
23463
23463
  }, this.getRenderTarget = function() {
23464
23464
  return U;
23465
- }, this.setRenderTargetTextures = function(w, z, K) {
23465
+ }, this.setRenderTargetTextures = function(w, z, Y) {
23466
23466
  const J = De.get(w);
23467
- J.__autoAllocateDepthBuffer = w.resolveDepthBuffer === !1, J.__autoAllocateDepthBuffer === !1 && (J.__useRenderToTexture = !1), De.get(w.texture).__webglTexture = z, De.get(w.depthTexture).__webglTexture = J.__autoAllocateDepthBuffer ? void 0 : K, J.__hasExternalTextures = !0;
23467
+ J.__autoAllocateDepthBuffer = w.resolveDepthBuffer === !1, J.__autoAllocateDepthBuffer === !1 && (J.__useRenderToTexture = !1), De.get(w.texture).__webglTexture = z, De.get(w.depthTexture).__webglTexture = J.__autoAllocateDepthBuffer ? void 0 : Y, J.__hasExternalTextures = !0;
23468
23468
  }, this.setRenderTargetFramebuffer = function(w, z) {
23469
- const K = De.get(w);
23470
- K.__webglFramebuffer = z, K.__useDefaultFramebuffer = z === void 0;
23469
+ const Y = De.get(w);
23470
+ Y.__webglFramebuffer = z, Y.__useDefaultFramebuffer = z === void 0;
23471
23471
  };
23472
23472
  const pi = I.createFramebuffer();
23473
- this.setRenderTarget = function(w, z = 0, K = 0) {
23474
- U = w, P = z, L = K;
23473
+ this.setRenderTarget = function(w, z = 0, Y = 0) {
23474
+ U = w, P = z, L = Y;
23475
23475
  let J = !0, H = null, ve = !1, Ce = !1;
23476
23476
  if (w) {
23477
23477
  const ze = De.get(w);
@@ -23492,21 +23492,21 @@ class Gv {
23492
23492
  const ct = w.texture;
23493
23493
  (ct.isData3DTexture || ct.isDataArrayTexture || ct.isCompressedArrayTexture) && (Ce = !0);
23494
23494
  const ut = De.get(w).__webglFramebuffer;
23495
- w.isWebGLCubeRenderTarget ? (Array.isArray(ut[z]) ? H = ut[z][K] : H = ut[z], ve = !0) : w.samples > 0 && Qe.useMultisampledRTT(w) === !1 ? H = De.get(w).__webglMultisampledFramebuffer : Array.isArray(ut) ? H = ut[K] : H = ut, D.copy(w.viewport), W.copy(w.scissor), j = w.scissorTest;
23495
+ w.isWebGLCubeRenderTarget ? (Array.isArray(ut[z]) ? H = ut[z][Y] : H = ut[z], ve = !0) : w.samples > 0 && Qe.useMultisampledRTT(w) === !1 ? H = De.get(w).__webglMultisampledFramebuffer : Array.isArray(ut) ? H = ut[Y] : H = ut, D.copy(w.viewport), W.copy(w.scissor), j = w.scissorTest;
23496
23496
  } else
23497
23497
  D.copy(oe).multiplyScalar(V).floor(), W.copy(Ae).multiplyScalar(V).floor(), j = xe;
23498
- if (K !== 0 && (H = pi), Le.bindFramebuffer(I.FRAMEBUFFER, H) && J && Le.drawBuffers(w, H), Le.viewport(D), Le.scissor(W), Le.setScissorTest(j), ve) {
23498
+ if (Y !== 0 && (H = pi), Le.bindFramebuffer(I.FRAMEBUFFER, H) && J && Le.drawBuffers(w, H), Le.viewport(D), Le.scissor(W), Le.setScissorTest(j), ve) {
23499
23499
  const ze = De.get(w.texture);
23500
- I.framebufferTexture2D(I.FRAMEBUFFER, I.COLOR_ATTACHMENT0, I.TEXTURE_CUBE_MAP_POSITIVE_X + z, ze.__webglTexture, K);
23500
+ I.framebufferTexture2D(I.FRAMEBUFFER, I.COLOR_ATTACHMENT0, I.TEXTURE_CUBE_MAP_POSITIVE_X + z, ze.__webglTexture, Y);
23501
23501
  } else if (Ce) {
23502
23502
  const ze = De.get(w.texture), ct = z;
23503
- I.framebufferTextureLayer(I.FRAMEBUFFER, I.COLOR_ATTACHMENT0, ze.__webglTexture, K, ct);
23504
- } else if (w !== null && K !== 0) {
23503
+ I.framebufferTextureLayer(I.FRAMEBUFFER, I.COLOR_ATTACHMENT0, ze.__webglTexture, Y, ct);
23504
+ } else if (w !== null && Y !== 0) {
23505
23505
  const ze = De.get(w.texture);
23506
- I.framebufferTexture2D(I.FRAMEBUFFER, I.COLOR_ATTACHMENT0, I.TEXTURE_2D, ze.__webglTexture, K);
23506
+ I.framebufferTexture2D(I.FRAMEBUFFER, I.COLOR_ATTACHMENT0, I.TEXTURE_2D, ze.__webglTexture, Y);
23507
23507
  }
23508
23508
  E = -1;
23509
- }, this.readRenderTargetPixels = function(w, z, K, J, H, ve, Ce, We = 0) {
23509
+ }, this.readRenderTargetPixels = function(w, z, Y, J, H, ve, Ce, We = 0) {
23510
23510
  if (!(w && w.isWebGLRenderTarget)) {
23511
23511
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
23512
23512
  return;
@@ -23524,18 +23524,18 @@ class Gv {
23524
23524
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
23525
23525
  return;
23526
23526
  }
23527
- z >= 0 && z <= w.width - J && K >= 0 && K <= w.height - H && (w.textures.length > 1 && I.readBuffer(I.COLOR_ATTACHMENT0 + We), I.readPixels(z, K, J, H, Te.convert(ut), Te.convert(Je), ve));
23527
+ z >= 0 && z <= w.width - J && Y >= 0 && Y <= w.height - H && (w.textures.length > 1 && I.readBuffer(I.COLOR_ATTACHMENT0 + We), I.readPixels(z, Y, J, H, Te.convert(ut), Te.convert(Je), ve));
23528
23528
  } finally {
23529
23529
  const ct = U !== null ? De.get(U).__webglFramebuffer : null;
23530
23530
  Le.bindFramebuffer(I.FRAMEBUFFER, ct);
23531
23531
  }
23532
23532
  }
23533
- }, this.readRenderTargetPixelsAsync = async function(w, z, K, J, H, ve, Ce, We = 0) {
23533
+ }, this.readRenderTargetPixelsAsync = async function(w, z, Y, J, H, ve, Ce, We = 0) {
23534
23534
  if (!(w && w.isWebGLRenderTarget))
23535
23535
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
23536
23536
  let ze = De.get(w).__webglFramebuffer;
23537
23537
  if (w.isWebGLCubeRenderTarget && Ce !== void 0 && (ze = ze[Ce]), ze)
23538
- if (z >= 0 && z <= w.width - J && K >= 0 && K <= w.height - H) {
23538
+ if (z >= 0 && z <= w.width - J && Y >= 0 && Y <= w.height - H) {
23539
23539
  Le.bindFramebuffer(I.FRAMEBUFFER, ze);
23540
23540
  const ct = w.textures[We], ut = ct.format, Je = ct.type;
23541
23541
  if (!je.textureFormatReadable(ut))
@@ -23543,24 +23543,24 @@ class Gv {
23543
23543
  if (!je.textureTypeReadable(Je))
23544
23544
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");
23545
23545
  const pt = I.createBuffer();
23546
- I.bindBuffer(I.PIXEL_PACK_BUFFER, pt), I.bufferData(I.PIXEL_PACK_BUFFER, ve.byteLength, I.STREAM_READ), w.textures.length > 1 && I.readBuffer(I.COLOR_ATTACHMENT0 + We), I.readPixels(z, K, J, H, Te.convert(ut), Te.convert(Je), 0);
23546
+ I.bindBuffer(I.PIXEL_PACK_BUFFER, pt), I.bufferData(I.PIXEL_PACK_BUFFER, ve.byteLength, I.STREAM_READ), w.textures.length > 1 && I.readBuffer(I.COLOR_ATTACHMENT0 + We), I.readPixels(z, Y, J, H, Te.convert(ut), Te.convert(Je), 0);
23547
23547
  const Lt = U !== null ? De.get(U).__webglFramebuffer : null;
23548
23548
  Le.bindFramebuffer(I.FRAMEBUFFER, Lt);
23549
23549
  const Bt = I.fenceSync(I.SYNC_GPU_COMMANDS_COMPLETE, 0);
23550
23550
  return I.flush(), await Cp(I, Bt, 4), I.bindBuffer(I.PIXEL_PACK_BUFFER, pt), I.getBufferSubData(I.PIXEL_PACK_BUFFER, 0, ve), I.deleteBuffer(pt), I.deleteSync(Bt), ve;
23551
23551
  } else
23552
23552
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.");
23553
- }, this.copyFramebufferToTexture = function(w, z = null, K = 0) {
23554
- const J = Math.pow(2, -K), H = Math.floor(w.image.width * J), ve = Math.floor(w.image.height * J), Ce = z !== null ? z.x : 0, We = z !== null ? z.y : 0;
23555
- Qe.setTexture2D(w, 0), I.copyTexSubImage2D(I.TEXTURE_2D, K, 0, 0, Ce, We, H, ve), Le.unbindTexture();
23553
+ }, this.copyFramebufferToTexture = function(w, z = null, Y = 0) {
23554
+ const J = Math.pow(2, -Y), H = Math.floor(w.image.width * J), ve = Math.floor(w.image.height * J), Ce = z !== null ? z.x : 0, We = z !== null ? z.y : 0;
23555
+ Qe.setTexture2D(w, 0), I.copyTexSubImage2D(I.TEXTURE_2D, Y, 0, 0, Ce, We, H, ve), Le.unbindTexture();
23556
23556
  };
23557
23557
  const $a = I.createFramebuffer(), Ja = I.createFramebuffer();
23558
- this.copyTextureToTexture = function(w, z, K = null, J = null, H = 0, ve = null) {
23559
- ve === null && (H !== 0 ? (js("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), ve = H, H = 0) : ve = 0);
23558
+ this.copyTextureToTexture = function(w, z, Y = null, J = null, H = 0, ve = null) {
23559
+ ve === null && (H !== 0 ? (qs("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), ve = H, H = 0) : ve = 0);
23560
23560
  let Ce, We, ze, ct, ut, Je, pt, Lt, Bt;
23561
23561
  const Vt = w.isCompressedTexture ? w.mipmaps[ve] : w.image;
23562
- if (K !== null)
23563
- Ce = K.max.x - K.min.x, We = K.max.y - K.min.y, ze = K.isBox3 ? K.max.z - K.min.z : 1, ct = K.min.x, ut = K.min.y, Je = K.isBox3 ? K.min.z : 0;
23562
+ if (Y !== null)
23563
+ Ce = Y.max.x - Y.min.x, We = Y.max.y - Y.min.y, ze = Y.isBox3 ? Y.max.z - Y.min.z : 1, ct = Y.min.x, ut = Y.min.y, Je = Y.isBox3 ? Y.min.z : 0;
23564
23564
  else {
23565
23565
  const _n = Math.pow(2, -H);
23566
23566
  Ce = Math.floor(Vt.width * _n), We = Math.floor(Vt.height * _n), w.isDataArrayTexture ? ze = Vt.depth : w.isData3DTexture ? ze = Math.floor(Vt.depth * _n) : ze = 1, ct = 0, ut = 0, Je = 0;
@@ -23573,8 +23573,8 @@ class Gv {
23573
23573
  I.pixelStorei(I.UNPACK_ROW_LENGTH, Vt.width), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, Vt.height), I.pixelStorei(I.UNPACK_SKIP_PIXELS, ct), I.pixelStorei(I.UNPACK_SKIP_ROWS, ut), I.pixelStorei(I.UNPACK_SKIP_IMAGES, Je);
23574
23574
  const Ot = w.isDataArrayTexture || w.isData3DTexture, Tn = z.isDataArrayTexture || z.isData3DTexture;
23575
23575
  if (w.isDepthTexture) {
23576
- const _n = De.get(w), $t = De.get(z), tn = De.get(_n.__renderTarget), Ms = De.get($t.__renderTarget);
23577
- Le.bindFramebuffer(I.READ_FRAMEBUFFER, tn.__webglFramebuffer), Le.bindFramebuffer(I.DRAW_FRAMEBUFFER, Ms.__webglFramebuffer);
23576
+ const _n = De.get(w), $t = De.get(z), tn = De.get(_n.__renderTarget), Ss = De.get($t.__renderTarget);
23577
+ Le.bindFramebuffer(I.READ_FRAMEBUFFER, tn.__webglFramebuffer), Le.bindFramebuffer(I.DRAW_FRAMEBUFFER, Ss.__webglFramebuffer);
23578
23578
  for (let mi = 0; mi < ze; mi++)
23579
23579
  Ot && (I.framebufferTextureLayer(I.READ_FRAMEBUFFER, I.COLOR_ATTACHMENT0, De.get(w).__webglTexture, H, Je + mi), I.framebufferTextureLayer(I.DRAW_FRAMEBUFFER, I.COLOR_ATTACHMENT0, De.get(z).__webglTexture, ve, Bt + mi)), I.blitFramebuffer(ct, ut, Ce, We, pt, Lt, Ce, We, I.DEPTH_BUFFER_BIT, I.NEAREST);
23580
23580
  Le.bindFramebuffer(I.READ_FRAMEBUFFER, null), Le.bindFramebuffer(I.DRAW_FRAMEBUFFER, null);
@@ -23587,8 +23587,8 @@ class Gv {
23587
23587
  } else
23588
23588
  Tn ? w.isDataTexture || w.isData3DTexture ? I.texSubImage3D(en, ve, pt, Lt, Bt, Ce, We, ze, Et, it, Vt.data) : z.isCompressedArrayTexture ? I.compressedTexSubImage3D(en, ve, pt, Lt, Bt, Ce, We, ze, Et, Vt.data) : I.texSubImage3D(en, ve, pt, Lt, Bt, Ce, We, ze, Et, it, Vt) : w.isDataTexture ? I.texSubImage2D(I.TEXTURE_2D, ve, pt, Lt, Ce, We, Et, it, Vt.data) : w.isCompressedTexture ? I.compressedTexSubImage2D(I.TEXTURE_2D, ve, pt, Lt, Vt.width, Vt.height, Et, Vt.data) : I.texSubImage2D(I.TEXTURE_2D, ve, pt, Lt, Ce, We, Et, it, Vt);
23589
23589
  I.pixelStorei(I.UNPACK_ROW_LENGTH, wt), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, Pn), I.pixelStorei(I.UNPACK_SKIP_PIXELS, zt), I.pixelStorei(I.UNPACK_SKIP_ROWS, mn), I.pixelStorei(I.UNPACK_SKIP_IMAGES, es), ve === 0 && z.generateMipmaps && I.generateMipmap(en), Le.unbindTexture();
23590
- }, this.copyTextureToTexture3D = function(w, z, K = null, J = null, H = 0) {
23591
- return js('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(w, z, K, J, H);
23590
+ }, this.copyTextureToTexture3D = function(w, z, Y = null, J = null, H = 0) {
23591
+ return qs('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(w, z, Y, J, H);
23592
23592
  }, this.initRenderTarget = function(w) {
23593
23593
  De.get(w).__webglFramebuffer === void 0 && Qe.setupRenderTarget(w);
23594
23594
  }, this.initTexture = function(w) {
@@ -23949,12 +23949,12 @@ class Yv extends Cn {
23949
23949
  if (P = this.materials.create(y.name), d && P && !(P instanceof oi)) {
23950
23950
  const L = new oi();
23951
23951
  Fn.prototype.copy.call(L, P), L.color.copy(P.color), P = L;
23952
- } else if (f && P && !(P instanceof Hs)) {
23953
- const L = new Hs({ size: 10, sizeAttenuation: !1 });
23952
+ } else if (f && P && !(P instanceof Vs)) {
23953
+ const L = new Vs({ size: 10, sizeAttenuation: !1 });
23954
23954
  Fn.prototype.copy.call(L, P), L.color.copy(P.color), L.map = P.map, P = L;
23955
23955
  }
23956
23956
  }
23957
- P === void 0 && (d ? P = new oi() : f ? P = new Hs({ size: 1, sizeAttenuation: !1 }) : P = new ds(), P.name = y.name, P.flatShading = !y.smooth, P.vertexColors = g, t.materials[N] = P), m.push(P);
23957
+ P === void 0 && (d ? P = new oi() : f ? P = new Vs({ size: 1, sizeAttenuation: !1 }) : P = new ds(), P.name = y.name, P.flatShading = !y.smooth, P.vertexColors = g, t.materials[N] = P), m.push(P);
23958
23958
  }
23959
23959
  let p;
23960
23960
  if (m.length > 1) {
@@ -23968,7 +23968,7 @@ class Yv extends Cn {
23968
23968
  p.name = c.name, r.add(p);
23969
23969
  }
23970
23970
  else if (t.vertices.length > 0) {
23971
- const o = new Hs({ size: 1, sizeAttenuation: !1 }), l = new Yt();
23971
+ const o = new Vs({ size: 1, sizeAttenuation: !1 }), l = new Yt();
23972
23972
  l.setAttribute("position", new yt(t.vertices, 3)), t.colors.length > 0 && t.colors[0] !== void 0 && (l.setAttribute("color", new yt(t.colors, 3)), o.vertexColors = !0);
23973
23973
  const c = new Pa(l, o);
23974
23974
  r.add(c);
@@ -23982,7 +23982,7 @@ fflate - fast JavaScript compression/decompression
23982
23982
  Licensed under MIT. https://github.com/101arrowz/fflate/blob/master/LICENSE
23983
23983
  version 0.8.2
23984
23984
  */
23985
- var Vn = Uint8Array, Gs = Uint16Array, Zv = Int32Array, rd = new Vn([
23985
+ var Vn = Uint8Array, Ws = Uint16Array, Zv = Int32Array, rd = new Vn([
23986
23986
  0,
23987
23987
  0,
23988
23988
  0,
@@ -24052,7 +24052,7 @@ var Vn = Uint8Array, Gs = Uint16Array, Zv = Int32Array, rd = new Vn([
24052
24052
  0,
24053
24053
  0
24054
24054
  ]), $v = new Vn([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), od = function(s, e) {
24055
- for (var t = new Gs(31), n = 0; n < 31; ++n)
24055
+ for (var t = new Ws(31), n = 0; n < 31; ++n)
24056
24056
  t[n] = e += 1 << s[n - 1];
24057
24057
  for (var i = new Zv(t[30]), n = 1; n < 30; ++n)
24058
24058
  for (var r = t[n]; r < t[n + 1]; ++r)
@@ -24060,27 +24060,27 @@ var Vn = Uint8Array, Gs = Uint16Array, Zv = Int32Array, rd = new Vn([
24060
24060
  return { b: t, r: i };
24061
24061
  }, ld = od(rd, 2), cd = ld.b, Jv = ld.r;
24062
24062
  cd[28] = 258, Jv[258] = 28;
24063
- var Qv = od(ad, 0), ex = Qv.b, Ul = new Gs(32768);
24063
+ var Qv = od(ad, 0), ex = Qv.b, Ul = new Ws(32768);
24064
24064
  for (var Ht = 0; Ht < 32768; ++Ht) {
24065
24065
  var Bi = (Ht & 43690) >> 1 | (Ht & 21845) << 1;
24066
24066
  Bi = (Bi & 52428) >> 2 | (Bi & 13107) << 2, Bi = (Bi & 61680) >> 4 | (Bi & 3855) << 4, Ul[Ht] = ((Bi & 65280) >> 8 | (Bi & 255) << 8) >> 1;
24067
24067
  }
24068
24068
  var Sr = function(s, e, t) {
24069
- for (var n = s.length, i = 0, r = new Gs(e); i < n; ++i)
24069
+ for (var n = s.length, i = 0, r = new Ws(e); i < n; ++i)
24070
24070
  s[i] && ++r[s[i] - 1];
24071
- var a = new Gs(e);
24071
+ var a = new Ws(e);
24072
24072
  for (i = 1; i < e; ++i)
24073
24073
  a[i] = a[i - 1] + r[i - 1] << 1;
24074
24074
  var o;
24075
24075
  if (t) {
24076
- o = new Gs(1 << e);
24076
+ o = new Ws(1 << e);
24077
24077
  var l = 15 - e;
24078
24078
  for (i = 0; i < n; ++i)
24079
24079
  if (s[i])
24080
24080
  for (var c = i << 4 | s[i], u = e - s[i], h = a[s[i] - 1]++ << u, d = h | (1 << u) - 1; h <= d; ++h)
24081
24081
  o[Ul[h] >> l] = c;
24082
24082
  } else
24083
- for (o = new Gs(n), i = 0; i < n; ++i)
24083
+ for (o = new Ws(n), i = 0; i < n; ++i)
24084
24084
  s[i] && (o[i] = Ul[a[s[i] - 1]++] >> 15 - s[i]);
24085
24085
  return o;
24086
24086
  }, Gr = new Vn(288);
@@ -24136,10 +24136,10 @@ var tx = /* @__PURE__ */ Sr(Gr, 9, 1), nx = /* @__PURE__ */ Sr(ud, 5, 1), ko = f
24136
24136
  return t || new Vn(0);
24137
24137
  var a = !t, o = a || e.i != 2, l = e.i;
24138
24138
  a && (t = new Vn(i * 3));
24139
- var c = function(Z) {
24140
- var Y = t.length;
24141
- if (Z > Y) {
24142
- var ne = new Vn(Math.max(Y * 2, Z));
24139
+ var c = function($) {
24140
+ var Z = t.length;
24141
+ if ($ > Z) {
24142
+ var ne = new Vn(Math.max(Z * 2, $));
24143
24143
  ne.set(t), t = ne;
24144
24144
  }
24145
24145
  }, u = e.f || 0, h = e.p || 0, d = e.b || 0, f = e.l, g = e.d, _ = e.m, m = e.n, p = i * 8;
@@ -24218,8 +24218,8 @@ var tx = /* @__PURE__ */ Sr(Gr, 9, 1), nx = /* @__PURE__ */ Sr(ud, 5, 1), ko = f
24218
24218
  o && c(d + 131072);
24219
24219
  var Me = d + G;
24220
24220
  if (d < de) {
24221
- var rt = r - de, $ = Math.min(de, Me);
24222
- for (rt + d < 0 && Zn(3); d < $; ++d)
24221
+ var rt = r - de, K = Math.min(de, Me);
24222
+ for (rt + d < 0 && Zn(3); d < K; ++d)
24223
24223
  t[d] = n[rt + d];
24224
24224
  }
24225
24225
  for (; d < Me; ++d)
@@ -24439,7 +24439,7 @@ class xx extends Cn {
24439
24439
  * @param {onErrorCallback} onError - Executed when errors occur.
24440
24440
  */
24441
24441
  load(e, t, n, i) {
24442
- const r = this, a = r.path === "" ? ps.extractUrlBase(e) : r.path, o = new Zi(this.manager);
24442
+ const r = this, a = r.path === "" ? ms.extractUrlBase(e) : r.path, o = new Zi(this.manager);
24443
24443
  o.setPath(r.path), o.setResponseType("arraybuffer"), o.setRequestHeader(r.requestHeader), o.setWithCredentials(r.withCredentials), o.load(e, function(l) {
24444
24444
  try {
24445
24445
  t(r.parse(l, a));
@@ -25450,7 +25450,7 @@ class Tx {
25450
25450
  const t = e.DeformPercent.curves.morph, n = t.values.map(function(r) {
25451
25451
  return r / 100;
25452
25452
  }), i = An.getObjectByName(e.modelName).morphTargetDictionary[e.morphName];
25453
- return new ys(e.modelName + ".morphTargetInfluences[" + i + "]", t.times, n);
25453
+ return new vs(e.modelName + ".morphTargetInfluences[" + i + "]", t.times, n);
25454
25454
  }
25455
25455
  // For all animated objects, times are defined separately for each axis
25456
25456
  // Here we'll combine the times into one sorted array without duplicates
@@ -25903,10 +25903,10 @@ function Sa(s, e, t, n) {
25903
25903
  const r = i * n.dataSize, a = r + n.dataSize;
25904
25904
  return Lx(Cx, n.buffer, r, a);
25905
25905
  }
25906
- const zo = new an(), ks = new O();
25906
+ const zo = new an(), Bs = new O();
25907
25907
  function fd(s) {
25908
25908
  const e = new Ue(), t = new Ue(), n = new Ue(), i = new Ue(), r = new Ue(), a = new Ue(), o = new Ue(), l = new Ue(), c = new Ue(), u = new Ue(), h = new Ue(), d = new Ue(), f = s.inheritType ? s.inheritType : 0;
25909
- s.translation && e.setPosition(ks.fromArray(s.translation));
25909
+ s.translation && e.setPosition(Bs.fromArray(s.translation));
25910
25910
  const g = Fr(0);
25911
25911
  if (s.preRotation) {
25912
25912
  const D = s.preRotation.map(jt.degToRad);
@@ -25920,7 +25920,7 @@ function fd(s) {
25920
25920
  const D = s.postRotation.map(jt.degToRad);
25921
25921
  D.push(g), i.makeRotationFromEuler(zo.fromArray(D)), i.invert();
25922
25922
  }
25923
- s.scale && r.scale(ks.fromArray(s.scale)), s.scalingOffset && o.setPosition(ks.fromArray(s.scalingOffset)), s.scalingPivot && a.setPosition(ks.fromArray(s.scalingPivot)), s.rotationOffset && l.setPosition(ks.fromArray(s.rotationOffset)), s.rotationPivot && c.setPosition(ks.fromArray(s.rotationPivot)), s.parentMatrixWorld && (h.copy(s.parentMatrix), u.copy(s.parentMatrixWorld));
25923
+ s.scale && r.scale(Bs.fromArray(s.scale)), s.scalingOffset && o.setPosition(Bs.fromArray(s.scalingOffset)), s.scalingPivot && a.setPosition(Bs.fromArray(s.scalingPivot)), s.rotationOffset && l.setPosition(Bs.fromArray(s.rotationOffset)), s.rotationPivot && c.setPosition(Bs.fromArray(s.rotationPivot)), s.parentMatrixWorld && (h.copy(s.parentMatrix), u.copy(s.parentMatrixWorld));
25924
25924
  const _ = t.clone().multiply(n).multiply(i), m = new Ue();
25925
25925
  m.extractRotation(u);
25926
25926
  const p = new Ue();
@@ -26060,10 +26060,10 @@ class Dx extends Cn {
26060
26060
  if (this.resourcePath !== "")
26061
26061
  a = this.resourcePath;
26062
26062
  else if (this.path !== "") {
26063
- const c = ps.extractUrlBase(e);
26064
- a = ps.resolveURL(c, this.path);
26063
+ const c = ms.extractUrlBase(e);
26064
+ a = ms.resolveURL(c, this.path);
26065
26065
  } else
26066
- a = ps.extractUrlBase(e);
26066
+ a = ms.extractUrlBase(e);
26067
26067
  this.manager.itemStart(e);
26068
26068
  const o = function(c) {
26069
26069
  i ? i(c) : console.error(c), r.manager.itemError(e), r.manager.itemEnd(e);
@@ -26658,7 +26658,7 @@ class Qx {
26658
26658
  for (const u in e.attributes) {
26659
26659
  const h = Fl[u] || u.toLowerCase();
26660
26660
  if (a[u] !== void 0) {
26661
- const d = n.accessors[e.attributes[u]], f = Ks[d.componentType];
26661
+ const d = n.accessors[e.attributes[u]], f = Ys[d.componentType];
26662
26662
  c[h] = f.name, l[h] = d.normalized === !0;
26663
26663
  }
26664
26664
  }
@@ -26722,7 +26722,7 @@ const Hn = {
26722
26722
  TRIANGLES: 4,
26723
26723
  TRIANGLE_STRIP: 5,
26724
26724
  TRIANGLE_FAN: 6
26725
- }, Ks = {
26725
+ }, Ys = {
26726
26726
  5120: Int8Array,
26727
26727
  5121: Uint8Array,
26728
26728
  5122: Int16Array,
@@ -27093,7 +27093,7 @@ class hM {
27093
27093
  return Promise.resolve(this.extensions[St.KHR_BINARY_GLTF].body);
27094
27094
  const i = this.options;
27095
27095
  return new Promise(function(r, a) {
27096
- n.load(ps.resolveURL(t.uri, i.path), r, void 0, function() {
27096
+ n.load(ms.resolveURL(t.uri, i.path), r, void 0, function() {
27097
27097
  a(new Error('THREE.GLTFLoader: Failed to load buffer "' + t.uri + '".'));
27098
27098
  });
27099
27099
  });
@@ -27122,12 +27122,12 @@ class hM {
27122
27122
  loadAccessor(e) {
27123
27123
  const t = this, n = this.json, i = this.json.accessors[e];
27124
27124
  if (i.bufferView === void 0 && i.sparse === void 0) {
27125
- const a = Vo[i.type], o = Ks[i.componentType], l = i.normalized === !0, c = new o(i.count * a);
27125
+ const a = Vo[i.type], o = Ys[i.componentType], l = i.normalized === !0, c = new o(i.count * a);
27126
27126
  return Promise.resolve(new fn(c, a, l));
27127
27127
  }
27128
27128
  const r = [];
27129
27129
  return i.bufferView !== void 0 ? r.push(this.getDependency("bufferView", i.bufferView)) : r.push(null), i.sparse !== void 0 && (r.push(this.getDependency("bufferView", i.sparse.indices.bufferView)), r.push(this.getDependency("bufferView", i.sparse.values.bufferView))), Promise.all(r).then(function(a) {
27130
- const o = a[0], l = Vo[i.type], c = Ks[i.componentType], u = c.BYTES_PER_ELEMENT, h = u * l, d = i.byteOffset || 0, f = i.bufferView !== void 0 ? n.bufferViews[i.bufferView].byteStride : void 0, g = i.normalized === !0;
27130
+ const o = a[0], l = Vo[i.type], c = Ys[i.componentType], u = c.BYTES_PER_ELEMENT, h = u * l, d = i.byteOffset || 0, f = i.bufferView !== void 0 ? n.bufferViews[i.bufferView].byteStride : void 0, g = i.normalized === !0;
27131
27131
  let _, m;
27132
27132
  if (f && f !== h) {
27133
27133
  const p = Math.floor(d / f), S = "InterleavedBuffer:" + i.bufferView + ":" + i.componentType + ":" + p + ":" + i.count;
@@ -27136,7 +27136,7 @@ class hM {
27136
27136
  } else
27137
27137
  o === null ? _ = new c(i.count * l) : _ = new c(o, d, i.count * l), m = new fn(_, l, g);
27138
27138
  if (i.sparse !== void 0) {
27139
- const p = Vo.SCALAR, S = Ks[i.sparse.indices.componentType], v = i.sparse.indices.byteOffset || 0, y = i.sparse.values.byteOffset || 0, N = new S(a[1], v, i.sparse.count * p), P = new c(a[2], y, i.sparse.count * l);
27139
+ const p = Vo.SCALAR, S = Ys[i.sparse.indices.componentType], v = i.sparse.indices.byteOffset || 0, y = i.sparse.values.byteOffset || 0, N = new S(a[1], v, i.sparse.count * p), P = new c(a[2], y, i.sparse.count * l);
27140
27140
  o !== null && (m = new fn(m.array.slice(), m.itemSize, m.normalized)), m.normalized = !1;
27141
27141
  for (let L = 0, U = N.length; L < U; L++) {
27142
27142
  const E = N[L];
@@ -27196,7 +27196,7 @@ class hM {
27196
27196
  t.isImageBitmapLoader === !0 && (g = function(_) {
27197
27197
  const m = new ln(_);
27198
27198
  m.needsUpdate = !0, d(m);
27199
- }), t.load(ps.resolveURL(h, r.path), g, void 0, f);
27199
+ }), t.load(ms.resolveURL(h, r.path), g, void 0, f);
27200
27200
  });
27201
27201
  }).then(function(h) {
27202
27202
  return c === !0 && o.revokeObjectURL(l), Ei(h, a), h.userData.mimeType = a.mimeType || cM(a.uri), h;
@@ -27246,7 +27246,7 @@ class hM {
27246
27246
  if (e.isPoints) {
27247
27247
  const o = "PointsMaterial:" + n.uuid;
27248
27248
  let l = this.cache.get(o);
27249
- l || (l = new Hs(), Fn.prototype.copy.call(l, n), l.color.copy(n.color), l.map = n.map, l.sizeAttenuation = !1, this.cache.add(o, l)), n = l;
27249
+ l || (l = new Vs(), Fn.prototype.copy.call(l, n), l.color.copy(n.color), l.map = n.map, l.sizeAttenuation = !1, this.cache.add(o, l)), n = l;
27250
27250
  } else if (e.isLine) {
27251
27251
  const o = "LineBasicMaterial:" + n.uuid;
27252
27252
  let l = this.cache.get(o);
@@ -27571,7 +27571,7 @@ class hM {
27571
27571
  let c;
27572
27572
  switch (zi[r.path]) {
27573
27573
  case zi.weights:
27574
- c = ys;
27574
+ c = vs;
27575
27575
  break;
27576
27576
  case zi.rotation:
27577
27577
  c = Ci;
@@ -27583,7 +27583,7 @@ class hM {
27583
27583
  default:
27584
27584
  switch (n.itemSize) {
27585
27585
  case 1:
27586
- c = ys;
27586
+ c = vs;
27587
27587
  break;
27588
27588
  case 2:
27589
27589
  case 3:
@@ -27631,7 +27631,7 @@ function dM(s, e, t) {
27631
27631
  new O(l[0], l[1], l[2]),
27632
27632
  new O(c[0], c[1], c[2])
27633
27633
  ), o.normalized) {
27634
- const u = Ol(Ks[o.componentType]);
27634
+ const u = Ol(Ys[o.componentType]);
27635
27635
  i.min.multiplyScalar(u), i.max.multiplyScalar(u);
27636
27636
  }
27637
27637
  } else {
@@ -27649,7 +27649,7 @@ function dM(s, e, t) {
27649
27649
  const d = t.json.accessors[h.POSITION], f = d.min, g = d.max;
27650
27650
  if (f !== void 0 && g !== void 0) {
27651
27651
  if (l.setX(Math.max(Math.abs(f[0]), Math.abs(g[0]))), l.setY(Math.max(Math.abs(f[1]), Math.abs(g[1]))), l.setZ(Math.max(Math.abs(f[2]), Math.abs(g[2]))), d.normalized) {
27652
- const _ = Ol(Ks[d.componentType]);
27652
+ const _ = Ol(Ys[d.componentType]);
27653
27653
  l.multiplyScalar(_);
27654
27654
  }
27655
27655
  o.max(l);
@@ -27760,10 +27760,10 @@ class ch extends Gm {
27760
27760
  function i(k, ae, V, de, ye, oe, Ae, xe, G) {
27761
27761
  const Q = G;
27762
27762
  let re, se = 0, Me, rt;
27763
- const $ = T.width;
27763
+ const K = T.width;
27764
27764
  for (rt = ae; rt !== de; rt += V)
27765
27765
  for (Me = ye; Me !== Ae; Me += oe, se++)
27766
- re = xe[se], k[(Me + $ * rt) * 4 + 3] = 255, k[(Me + $ * rt) * 4 + 2] = Q[re * 3 + 0], k[(Me + $ * rt) * 4 + 1] = Q[re * 3 + 1], k[(Me + $ * rt) * 4 + 0] = Q[re * 3 + 2];
27766
+ re = xe[se], k[(Me + K * rt) * 4 + 3] = 255, k[(Me + K * rt) * 4 + 2] = Q[re * 3 + 0], k[(Me + K * rt) * 4 + 1] = Q[re * 3 + 1], k[(Me + K * rt) * 4 + 0] = Q[re * 3 + 2];
27767
27767
  return k;
27768
27768
  }
27769
27769
  function r(k, ae, V, de, ye, oe, Ae, xe) {
@@ -27917,7 +27917,7 @@ class fM extends Cn {
27917
27917
  * @param {onErrorCallback} onError - Executed when errors occur.
27918
27918
  */
27919
27919
  load(e, t, n, i) {
27920
- const r = this, a = r.path === "" ? ps.extractUrlBase(e) : r.path, o = new Zi(r.manager);
27920
+ const r = this, a = r.path === "" ? ms.extractUrlBase(e) : r.path, o = new Zi(r.manager);
27921
27921
  o.setPath(r.path), o.setRequestHeader(r.requestHeader), o.setWithCredentials(r.withCredentials), o.load(e, function(l) {
27922
27922
  try {
27923
27923
  t(r.parse(l, a));
@@ -28350,13 +28350,13 @@ class fM extends Cn {
28350
28350
  if (C.nodeType === 1)
28351
28351
  switch (C.nodeName) {
28352
28352
  case "profile_COMMON":
28353
- x.profile = $(C);
28353
+ x.profile = K(C);
28354
28354
  break;
28355
28355
  }
28356
28356
  }
28357
28357
  ht.effects[M.getAttribute("id")] = x;
28358
28358
  }
28359
- function $(M) {
28359
+ function K(M) {
28360
28360
  const x = {
28361
28361
  surfaces: {},
28362
28362
  samplers: {}
@@ -28366,7 +28366,7 @@ class fM extends Cn {
28366
28366
  if (C.nodeType === 1)
28367
28367
  switch (C.nodeName) {
28368
28368
  case "newparam":
28369
- Z(C, x);
28369
+ $(C, x);
28370
28370
  break;
28371
28371
  case "technique":
28372
28372
  x.technique = I(C);
@@ -28378,14 +28378,14 @@ class fM extends Cn {
28378
28378
  }
28379
28379
  return x;
28380
28380
  }
28381
- function Z(M, x) {
28381
+ function $(M, x) {
28382
28382
  const R = M.getAttribute("sid");
28383
28383
  for (let A = 0, C = M.childNodes.length; A < C; A++) {
28384
28384
  const ee = M.childNodes[A];
28385
28385
  if (ee.nodeType === 1)
28386
28386
  switch (ee.nodeName) {
28387
28387
  case "surface":
28388
- x.surfaces[R] = Y(ee);
28388
+ x.surfaces[R] = Z(ee);
28389
28389
  break;
28390
28390
  case "sampler2D":
28391
28391
  x.samplers[R] = ne(ee);
@@ -28393,7 +28393,7 @@ class fM extends Cn {
28393
28393
  }
28394
28394
  }
28395
28395
  }
28396
- function Y(M) {
28396
+ function Z(M) {
28397
28397
  const x = {};
28398
28398
  for (let R = 0, A = M.childNodes.length; R < A; R++) {
28399
28399
  const C = M.childNodes[R];
@@ -29037,9 +29037,9 @@ class fM extends Cn {
29037
29037
  const Ln = R[gi];
29038
29038
  switch (gi) {
29039
29039
  case "POSITION":
29040
- const Ss = C.array.length;
29040
+ const Ts = C.array.length;
29041
29041
  if (ft(tt, x[Ln], Ct.offset, C.array), C.stride = x[Ln].stride, x.skinWeights && x.skinIndices && (ft(tt, x.skinIndices, Ct.offset, Ne.array), ft(tt, x.skinWeights, Ct.offset, $e.array)), tt.hasUV === !1 && M.uvsNeedsFix === !0) {
29042
- const Td = (C.array.length - Ss) / C.stride;
29042
+ const Td = (C.array.length - Ts) / C.stride;
29043
29043
  for (let pc = 0; pc < Td; pc++)
29044
29044
  ce.array.push(0, 0);
29045
29045
  }
@@ -29304,7 +29304,7 @@ class fM extends Cn {
29304
29304
  }
29305
29305
  }
29306
29306
  }
29307
- function xs(M) {
29307
+ function Ms(M) {
29308
29308
  const x = {
29309
29309
  bindJointAxis: []
29310
29310
  };
@@ -29366,7 +29366,7 @@ class fM extends Cn {
29366
29366
  });
29367
29367
  }
29368
29368
  const Ne = new Ue();
29369
- Ms = {
29369
+ Ss = {
29370
29370
  joints: A && A.joints,
29371
29371
  getJointValue: function($e) {
29372
29372
  const ge = He[$e];
@@ -29467,7 +29467,7 @@ class fM extends Cn {
29467
29467
  A.hasAttribute("id") === !1 && A.setAttribute("id", l());
29468
29468
  }
29469
29469
  }
29470
- const z = new Ue(), K = new O();
29470
+ const z = new Ue(), Y = new O();
29471
29471
  function J(M) {
29472
29472
  const x = {
29473
29473
  name: M.getAttribute("name") || "",
@@ -29510,15 +29510,15 @@ class fM extends Cn {
29510
29510
  C = r(A.textContent), x.matrix.multiply(z.fromArray(C).transpose()), x.transforms[A.getAttribute("sid")] = A.nodeName;
29511
29511
  break;
29512
29512
  case "translate":
29513
- C = r(A.textContent), K.fromArray(C), x.matrix.multiply(z.makeTranslation(K.x, K.y, K.z)), x.transforms[A.getAttribute("sid")] = A.nodeName;
29513
+ C = r(A.textContent), Y.fromArray(C), x.matrix.multiply(z.makeTranslation(Y.x, Y.y, Y.z)), x.transforms[A.getAttribute("sid")] = A.nodeName;
29514
29514
  break;
29515
29515
  case "rotate":
29516
29516
  C = r(A.textContent);
29517
29517
  const ee = jt.degToRad(C[3]);
29518
- x.matrix.multiply(z.makeRotationAxis(K.fromArray(C), ee)), x.transforms[A.getAttribute("sid")] = A.nodeName;
29518
+ x.matrix.multiply(z.makeRotationAxis(Y.fromArray(C), ee)), x.transforms[A.getAttribute("sid")] = A.nodeName;
29519
29519
  break;
29520
29520
  case "scale":
29521
- C = r(A.textContent), x.matrix.scale(K.fromArray(C)), x.transforms[A.getAttribute("sid")] = A.nodeName;
29521
+ C = r(A.textContent), x.matrix.scale(Y.fromArray(C)), x.transforms[A.getAttribute("sid")] = A.nodeName;
29522
29522
  break;
29523
29523
  case "extra":
29524
29524
  break;
@@ -29610,8 +29610,8 @@ class fM extends Cn {
29610
29610
  for (let ge = 0, Ze = ce.length; ge < Ze; ge++) {
29611
29611
  const Xe = ce[ge], st = Q(Xe.id), tt = Qt(st.id), Gt = ut(tt, Xe.materials), Dt = Xe.skeletons, Rt = st.skin.joints, Ct = ve(Dt, Rt);
29612
29612
  for (let gi = 0, Ln = Gt.length; gi < Ln; gi++) {
29613
- const Ss = Gt[gi];
29614
- Ss.isSkinnedMesh && (Ss.bind(Ct, st.skin.bindMatrix), Ss.normalizeSkinWeights()), x.push(Ss);
29613
+ const Ts = Gt[gi];
29614
+ Ts.isSkinnedMesh && (Ts.bind(Ct, st.skin.bindMatrix), Ts.normalizeSkinWeights()), x.push(Ts);
29615
29615
  }
29616
29616
  }
29617
29617
  for (let ge = 0, Ze = He.length; ge < Ze; ge++) {
@@ -29756,7 +29756,7 @@ class fM extends Cn {
29756
29756
  let _n;
29757
29757
  ch && (_n = new ch(this.manager), _n.setPath(this.resourcePath || t));
29758
29758
  const $t = new Ve(), tn = [];
29759
- let Ms = {}, mi = 0;
29759
+ let Ss = {}, mi = 0;
29760
29760
  const ht = {
29761
29761
  animations: {},
29762
29762
  clips: {},
@@ -29773,13 +29773,13 @@ class fM extends Cn {
29773
29773
  physicsModels: {},
29774
29774
  kinematicsScenes: {}
29775
29775
  };
29776
- f(zt, "library_animations", "animation", m), f(zt, "library_animation_clips", "animation_clip", k), f(zt, "library_controllers", "controller", de), f(zt, "library_images", "image", re), f(zt, "library_effects", "effect", rt), f(zt, "library_materials", "material", q), f(zt, "library_cameras", "camera", Be), f(zt, "library_lights", "light", nt), f(zt, "library_geometries", "geometry", we), f(zt, "library_nodes", "node", J), f(zt, "library_visual_scenes", "visual_scene", Lt), f(zt, "library_kinematics_models", "kinematics_model", Ye), f(zt, "library_physics_models", "physics_model", fi), f(zt, "scene", "instance_kinematics_scene", xs), g(ht.animations, v), g(ht.clips, ae), g(ht.controllers, xe), g(ht.images, se), g(ht.effects, F), g(ht.materials, fe), g(ht.cameras, pe), g(ht.lights, at), g(ht.geometries, Ke), g(ht.visualScenes, Bt), en(), $a();
29776
+ f(zt, "library_animations", "animation", m), f(zt, "library_animation_clips", "animation_clip", k), f(zt, "library_controllers", "controller", de), f(zt, "library_images", "image", re), f(zt, "library_effects", "effect", rt), f(zt, "library_materials", "material", q), f(zt, "library_cameras", "camera", Be), f(zt, "library_lights", "light", nt), f(zt, "library_geometries", "geometry", we), f(zt, "library_nodes", "node", J), f(zt, "library_visual_scenes", "visual_scene", Lt), f(zt, "library_kinematics_models", "kinematics_model", Ye), f(zt, "library_physics_models", "physics_model", fi), f(zt, "scene", "instance_kinematics_scene", Ms), g(ht.animations, v), g(ht.clips, ae), g(ht.controllers, xe), g(ht.images, se), g(ht.effects, F), g(ht.materials, fe), g(ht.cameras, pe), g(ht.lights, at), g(ht.geometries, Ke), g(ht.visualScenes, Bt), en(), $a();
29777
29777
  const Wr = it(n(zt, "scene")[0]);
29778
29778
  return Wr.animations = tn, Ot.upAxis === "Z_UP" && (console.warn("THREE.ColladaLoader: You are loading an asset with a Z-UP coordinate system. The loader just rotates the asset to transform it into Y-UP. The vertex data are not converted, see #24289."), Wr.rotation.set(-Math.PI / 2, 0, 0)), Wr.scale.multiplyScalar(Ot.unit), {
29779
29779
  get animations() {
29780
29780
  return console.warn("THREE.ColladaLoader: Please access animations over scene.animations now."), tn;
29781
29781
  },
29782
- kinematics: Ms,
29782
+ kinematics: Ss,
29783
29783
  library: ht,
29784
29784
  scene: Wr
29785
29785
  };
@@ -30246,7 +30246,7 @@ class yM extends ag {
30246
30246
  * @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.
30247
30247
  */
30248
30248
  constructor(e, t = null) {
30249
- super(e, t), this.state = Ft.NONE, this.target = new O(), this.cursor = new O(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Ws.ROTATE, MIDDLE: Ws.DOLLY, RIGHT: Ws.PAN }, this.touches = { ONE: zs.ROTATE, TWO: zs.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new O(), this._lastQuaternion = new rn(), this._lastTargetPosition = new O(), this._quat = new rn().setFromUnitVectors(e.up, new O(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Au(), this._sphericalDelta = new Au(), this._scale = 1, this._panOffset = new O(), this._rotateStart = new lt(), this._rotateEnd = new lt(), this._rotateDelta = new lt(), this._panStart = new lt(), this._panEnd = new lt(), this._panDelta = new lt(), this._dollyStart = new lt(), this._dollyEnd = new lt(), this._dollyDelta = new lt(), this._dollyDirection = new O(), this._mouse = new lt(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = xM.bind(this), this._onPointerDown = vM.bind(this), this._onPointerUp = MM.bind(this), this._onContextMenu = RM.bind(this), this._onMouseWheel = bM.bind(this), this._onKeyDown = EM.bind(this), this._onTouchStart = AM.bind(this), this._onTouchMove = wM.bind(this), this._onMouseDown = SM.bind(this), this._onMouseMove = TM.bind(this), this._interceptControlDown = CM.bind(this), this._interceptControlUp = PM.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
30249
+ super(e, t), this.state = Ft.NONE, this.target = new O(), this.cursor = new O(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Xs.ROTATE, MIDDLE: Xs.DOLLY, RIGHT: Xs.PAN }, this.touches = { ONE: Hs.ROTATE, TWO: Hs.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new O(), this._lastQuaternion = new rn(), this._lastTargetPosition = new O(), this._quat = new rn().setFromUnitVectors(e.up, new O(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Au(), this._sphericalDelta = new Au(), this._scale = 1, this._panOffset = new O(), this._rotateStart = new lt(), this._rotateEnd = new lt(), this._rotateDelta = new lt(), this._panStart = new lt(), this._panEnd = new lt(), this._panDelta = new lt(), this._dollyStart = new lt(), this._dollyEnd = new lt(), this._dollyDelta = new lt(), this._dollyDirection = new O(), this._mouse = new lt(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = xM.bind(this), this._onPointerDown = vM.bind(this), this._onPointerUp = MM.bind(this), this._onContextMenu = RM.bind(this), this._onMouseWheel = bM.bind(this), this._onKeyDown = EM.bind(this), this._onTouchStart = AM.bind(this), this._onTouchMove = wM.bind(this), this._onMouseDown = SM.bind(this), this._onMouseMove = TM.bind(this), this._interceptControlDown = CM.bind(this), this._interceptControlUp = PM.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
30250
30250
  }
30251
30251
  connect(e) {
30252
30252
  super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
@@ -30567,11 +30567,11 @@ function SM(s) {
30567
30567
  e = -1;
30568
30568
  }
30569
30569
  switch (e) {
30570
- case Ws.DOLLY:
30570
+ case Xs.DOLLY:
30571
30571
  if (this.enableZoom === !1) return;
30572
30572
  this._handleMouseDownDolly(s), this.state = Ft.DOLLY;
30573
30573
  break;
30574
- case Ws.ROTATE:
30574
+ case Xs.ROTATE:
30575
30575
  if (s.ctrlKey || s.metaKey || s.shiftKey) {
30576
30576
  if (this.enablePan === !1) return;
30577
30577
  this._handleMouseDownPan(s), this.state = Ft.PAN;
@@ -30580,7 +30580,7 @@ function SM(s) {
30580
30580
  this._handleMouseDownRotate(s), this.state = Ft.ROTATE;
30581
30581
  }
30582
30582
  break;
30583
- case Ws.PAN:
30583
+ case Xs.PAN:
30584
30584
  if (s.ctrlKey || s.metaKey || s.shiftKey) {
30585
30585
  if (this.enableRotate === !1) return;
30586
30586
  this._handleMouseDownRotate(s), this.state = Ft.ROTATE;
@@ -30620,11 +30620,11 @@ function AM(s) {
30620
30620
  switch (this._trackPointer(s), this._pointers.length) {
30621
30621
  case 1:
30622
30622
  switch (this.touches.ONE) {
30623
- case zs.ROTATE:
30623
+ case Hs.ROTATE:
30624
30624
  if (this.enableRotate === !1) return;
30625
30625
  this._handleTouchStartRotate(s), this.state = Ft.TOUCH_ROTATE;
30626
30626
  break;
30627
- case zs.PAN:
30627
+ case Hs.PAN:
30628
30628
  if (this.enablePan === !1) return;
30629
30629
  this._handleTouchStartPan(s), this.state = Ft.TOUCH_PAN;
30630
30630
  break;
@@ -30634,11 +30634,11 @@ function AM(s) {
30634
30634
  break;
30635
30635
  case 2:
30636
30636
  switch (this.touches.TWO) {
30637
- case zs.DOLLY_PAN:
30637
+ case Hs.DOLLY_PAN:
30638
30638
  if (this.enableZoom === !1 && this.enablePan === !1) return;
30639
30639
  this._handleTouchStartDollyPan(s), this.state = Ft.TOUCH_DOLLY_PAN;
30640
30640
  break;
30641
- case zs.DOLLY_ROTATE:
30641
+ case Hs.DOLLY_ROTATE:
30642
30642
  if (this.enableZoom === !1 && this.enableRotate === !1) return;
30643
30643
  this._handleTouchStartDollyRotate(s), this.state = Ft.TOUCH_DOLLY_ROTATE;
30644
30644
  break;
@@ -30902,7 +30902,7 @@ const LM = Gl("threeJSComp", {
30902
30902
  setup(s, { expose: e }) {
30903
30903
  const t = s, n = Pt(null);
30904
30904
  Pt(null), Pt(""), Pt(!1);
30905
- const i = Pt(""), r = Pt(!1), a = yh(vr), { nodeDev: o } = Bs(a), l = LM(), { uploadedModels: c, selectedModels: u, showAxes: h, showModelList: d, isInitialized: f } = Bs(l);
30905
+ const i = Pt(""), r = Pt(!1), a = yh(vr), { nodeDev: o } = zs(a), l = LM(), { uploadedModels: c, selectedModels: u, showAxes: h, showModelList: d, isInitialized: f } = zs(l);
30906
30906
  Ed(() => l.getAllLoadedModels);
30907
30907
  let g, _, m, p, S = null;
30908
30908
  const v = {
@@ -30918,135 +30918,135 @@ const LM = Gl("threeJSComp", {
30918
30918
  ".stp": "STEP",
30919
30919
  ".iges": "IGES",
30920
30920
  ".igs": "IGES"
30921
- }, y = (Z) => {
30922
- const Y = "." + Z.split(".").pop().toLowerCase();
30923
- return v[Y] || "未知";
30924
- }, N = (Z) => ({
30921
+ }, y = ($) => {
30922
+ const Z = "." + $.split(".").pop().toLowerCase();
30923
+ return v[Z] || "未知";
30924
+ }, N = ($) => ({
30925
30925
  pending: "待加载",
30926
30926
  loading: "加载中",
30927
30927
  loaded: "已加载",
30928
30928
  error: "失败"
30929
- })[Z] || "未知", P = (Z) => {
30930
- if (Z === 0) return "0 B";
30931
- const Y = 1024, ne = ["B", "KB", "MB", "GB"], I = Math.floor(Math.log(Z) / Math.log(Y));
30932
- return parseFloat((Z / Math.pow(Y, I)).toFixed(2)) + " " + ne[I];
30929
+ })[$] || "未知", P = ($) => {
30930
+ if ($ === 0) return "0 B";
30931
+ const Z = 1024, ne = ["B", "KB", "MB", "GB"], I = Math.floor(Math.log($) / Math.log(Z));
30932
+ return parseFloat(($ / Math.pow(Z, I)).toFixed(2)) + " " + ne[I];
30933
30933
  }, L = () => {
30934
30934
  if (!(f.value || !n.value))
30935
30935
  try {
30936
30936
  g = new Xh(), g.background = new Ve(15790320), l.setScene(g), _ = new dn(45, n.value.clientWidth / n.value.clientHeight, 0.1, 1e5), _.position.set(10, 10, 10), _.lookAt(0, 0, 0), l.setCamera(_), m = new Gv({ antialias: !0 }), m.setSize(n.value.clientWidth, n.value.clientHeight), m.setPixelRatio(window.devicePixelRatio), m.shadowMap.enabled = !0, m.shadowMap.type = Eh, n.value.appendChild(m.domElement), l.setRenderer(m), p = new yM(_, m.domElement), p.enableDamping = !0, p.dampingFactor = 0.05, p.enableZoom = !0, p.enablePan = !0, l.setControls(p), U(), E(), T(), D(), l.setIsInitialized(!0);
30937
- } catch (Z) {
30938
- console.error("Three.js场景初始化失败:", Z);
30937
+ } catch ($) {
30938
+ console.error("Three.js场景初始化失败:", $);
30939
30939
  }
30940
30940
  }, U = () => {
30941
- const Z = new cc(16777215, 0.6);
30942
- g.add(Z);
30943
- const Y = new Ur(16777215, 0.8);
30944
- Y.position.set(10, 10, 5), Y.castShadow = !0, Y.shadow.mapSize.width = 2048, Y.shadow.mapSize.height = 2048, g.add(Y);
30941
+ const $ = new cc(16777215, 0.6);
30942
+ g.add($);
30943
+ const Z = new Ur(16777215, 0.8);
30944
+ Z.position.set(10, 10, 5), Z.castShadow = !0, Z.shadow.mapSize.width = 2048, Z.shadow.mapSize.height = 2048, g.add(Z);
30945
30945
  const ne = new Ur(16777215, 0.3);
30946
30946
  ne.position.set(-10, 5, -5), g.add(ne);
30947
30947
  }, E = () => {
30948
30948
  S = new rg(5), g.add(S), l.setAxesHelper(S);
30949
30949
  }, T = () => {
30950
- const Z = new sg(1e3, 1e3, 8947848, 13421772);
30951
- g.add(Z);
30950
+ const $ = new sg(1e3, 1e3, 8947848, 13421772);
30951
+ g.add($);
30952
30952
  }, D = () => {
30953
- const Z = () => {
30954
- requestAnimationFrame(Z), p && p.update(), m && g && _ && m.render(g, _);
30953
+ const $ = () => {
30954
+ requestAnimationFrame($), p && p.update(), m && g && _ && m.render(g, _);
30955
30955
  };
30956
- Z();
30957
- }, W = async (Z) => {
30958
- if (Z.status === "pending") {
30959
- l.updateModelStatus(Z.id, "loading");
30956
+ $();
30957
+ }, W = async ($) => {
30958
+ if ($.status === "pending") {
30959
+ l.updateModelStatus($.id, "loading");
30960
30960
  try {
30961
- const Y = URL.createObjectURL(Z.file), ne = await j(Z.file, Y);
30961
+ const Z = URL.createObjectURL($.file), ne = await j($.file, Z);
30962
30962
  if (ne)
30963
- ne.userData.modelId = Z.id, ne.userData.fileName = Z.file.name, g.add(ne), l.updateModelObject(Z.id, ne);
30963
+ ne.userData.modelId = $.id, ne.userData.fileName = $.file.name, g.add(ne), l.updateModelObject($.id, ne);
30964
30964
  else
30965
30965
  throw new Error("模型加载返回空对象");
30966
- URL.revokeObjectURL(Y);
30967
- } catch (Y) {
30968
- console.error(`模型 ${Z.file.name} 加载失败:`, Y), l.updateModelStatus(Z.id, "error");
30966
+ URL.revokeObjectURL(Z);
30967
+ } catch (Z) {
30968
+ console.error(`模型 ${$.file.name} 加载失败:`, Z), l.updateModelStatus($.id, "error");
30969
30969
  }
30970
30970
  }
30971
- }, j = (Z, Y) => new Promise((ne, I) => {
30972
- const Se = "." + Z.name.split(".").pop().toLowerCase();
30971
+ }, j = ($, Z) => new Promise((ne, I) => {
30972
+ const Se = "." + $.name.split(".").pop().toLowerCase();
30973
30973
  switch (Se) {
30974
30974
  case ".obj":
30975
- ie(Y, ne, I);
30975
+ ie(Z, ne, I);
30976
30976
  break;
30977
30977
  case ".fbx":
30978
- ue(Y, ne, I);
30978
+ ue(Z, ne, I);
30979
30979
  break;
30980
30980
  case ".gltf":
30981
30981
  case ".glb":
30982
- k(Y, ne, I);
30982
+ k(Z, ne, I);
30983
30983
  break;
30984
30984
  case ".dae":
30985
- ae(Y, ne, I);
30985
+ ae(Z, ne, I);
30986
30986
  break;
30987
30987
  case ".ply":
30988
- V(Y, ne, I);
30988
+ V(Z, ne, I);
30989
30989
  break;
30990
30990
  case ".stl":
30991
- de(Y, ne, I);
30991
+ de(Z, ne, I);
30992
30992
  break;
30993
30993
  default:
30994
30994
  I(new Error(`不支持的文件格式: ${Se}`));
30995
30995
  }
30996
- }), ie = (Z, Y, ne) => {
30997
- new Yv().load(Z, Y, void 0, ne);
30998
- }, ue = (Z, Y, ne) => {
30999
- new xx().load(Z, Y, void 0, ne);
31000
- }, k = (Z, Y, ne) => {
30996
+ }), ie = ($, Z, ne) => {
30997
+ new Yv().load($, Z, void 0, ne);
30998
+ }, ue = ($, Z, ne) => {
30999
+ new xx().load($, Z, void 0, ne);
31000
+ }, k = ($, Z, ne) => {
31001
31001
  new Dx().load(
31002
- Z,
31002
+ $,
31003
31003
  (Se) => {
31004
- Y(Se.scene);
31004
+ Z(Se.scene);
31005
31005
  },
31006
31006
  void 0,
31007
31007
  ne
31008
31008
  );
31009
- }, ae = (Z, Y, ne) => {
31009
+ }, ae = ($, Z, ne) => {
31010
31010
  new fM().load(
31011
- Z,
31011
+ $,
31012
31012
  (Se) => {
31013
- Y(Se.scene);
31013
+ Z(Se.scene);
31014
31014
  },
31015
31015
  void 0,
31016
31016
  ne
31017
31017
  );
31018
- }, V = (Z, Y, ne) => {
31018
+ }, V = ($, Z, ne) => {
31019
31019
  new pM().load(
31020
- Z,
31020
+ $,
31021
31021
  (Se) => {
31022
31022
  const he = new Nr({ color: 8947848 }), je = new on(Se, he);
31023
- Y(je);
31023
+ Z(je);
31024
31024
  },
31025
31025
  void 0,
31026
31026
  ne
31027
31027
  );
31028
- }, de = (Z, Y, ne) => {
31028
+ }, de = ($, Z, ne) => {
31029
31029
  new gM().load(
31030
- Z,
31030
+ $,
31031
31031
  (Se) => {
31032
31032
  const he = new Nr({ color: 8947848 }), je = new on(Se, he);
31033
- Y(je);
31033
+ Z(je);
31034
31034
  },
31035
31035
  void 0,
31036
31036
  ne
31037
31037
  );
31038
31038
  }, ye = () => {
31039
31039
  l.setShowModelList(!d.value);
31040
- }, oe = (Z) => {
31041
- l.toggleModelVisibility(Z);
31040
+ }, oe = ($) => {
31041
+ l.toggleModelVisibility($);
31042
31042
  }, Ae = () => {
31043
31043
  l.selectAllModels();
31044
31044
  }, xe = () => {
31045
31045
  l.deselectAllModels();
31046
31046
  }, G = () => {
31047
31047
  l.removeSelectedModels();
31048
- }, Q = (Z) => {
31049
- l.removeUploadedModel(Z) ? Ac.success("模型删除成功") : Ac.error("模型删除失败");
31048
+ }, Q = ($) => {
31049
+ l.removeUploadedModel($) ? Ac.success("模型删除成功") : Ac.error("模型删除失败");
31050
31050
  }, re = () => {
31051
31051
  l.clearAllModels(), l.resetCamera();
31052
31052
  }, se = () => {
@@ -31054,26 +31054,26 @@ const LM = Gl("threeJSComp", {
31054
31054
  };
31055
31055
  Bl(async () => {
31056
31056
  window.addEventListener("resize", se), L();
31057
- }), Ys(
31057
+ }), fs(
31058
31058
  () => t == null ? void 0 : t.isShow,
31059
- (Z) => {
31060
- Z && !f.value && setTimeout(() => {
31059
+ ($) => {
31060
+ $ && !f.value && setTimeout(() => {
31061
31061
  L();
31062
31062
  }, 100);
31063
31063
  },
31064
31064
  { immediate: !0 }
31065
31065
  );
31066
- const Me = async (Z, Y = {}) => {
31067
- if (!Z || !(Z instanceof File || Z instanceof Blob))
31066
+ const Me = async ($, Z = {}) => {
31067
+ if (!$ || !($ instanceof File || $ instanceof Blob))
31068
31068
  throw new Error("参数必须是File或Blob对象");
31069
- const ne = Z.name || Y.fileName || "unknown.obj", I = "." + ne.split(".").pop().toLowerCase();
31069
+ const ne = $.name || Z.fileName || "unknown.obj", I = "." + ne.split(".").pop().toLowerCase();
31070
31070
  if (!v[I])
31071
31071
  throw new Error(`不支持的文件格式: ${I}`);
31072
31072
  f.value || (L(), await new Promise((he) => setTimeout(he, 100)));
31073
31073
  const Se = {
31074
- file: Z,
31074
+ file: $,
31075
31075
  name: ne,
31076
- size: Z.size,
31076
+ size: $.size,
31077
31077
  type: y(ne),
31078
31078
  status: "pending",
31079
31079
  model: null,
@@ -31090,26 +31090,26 @@ const LM = Gl("threeJSComp", {
31090
31090
  } catch (he) {
31091
31091
  throw console.error(`外部模型 ${ne} 加载失败:`, he), l.removeModelById(Se.id), he;
31092
31092
  }
31093
- }, rt = async (Z) => {
31093
+ }, rt = async ($) => {
31094
31094
  try {
31095
- const Y = await Mh({
31096
- url: Z
31095
+ const Z = await Mh({
31096
+ url: $
31097
31097
  });
31098
- if (Y.status != 200)
31099
- throw new Error(`下载失败: ${Y.status}`);
31100
- return await Y.data;
31101
- } catch (Y) {
31102
- throw console.error("addModelFromUrl失败:", Y), Y;
31098
+ if (Z.status != 200)
31099
+ throw new Error(`下载失败: ${Z.status}`);
31100
+ return await Z.data;
31101
+ } catch (Z) {
31102
+ throw console.error("addModelFromUrl失败:", Z), Z;
31103
31103
  }
31104
31104
  };
31105
31105
  return e({
31106
31106
  addModelFromStream: Me,
31107
- addModelFromUrl: async (Z) => {
31107
+ addModelFromUrl: async ($) => {
31108
31108
  try {
31109
- const Y = await rt(Z), ne = Z.split("/").pop() || "model.obj", I = new File([Y], ne, { type: Y.type });
31110
- return await Me(I, { autoFit: !0 }), Y;
31111
- } catch (Y) {
31112
- throw console.error("从URL加载模型失败:", Y), Y;
31109
+ const Z = await rt($), ne = $.split("/").pop() || "model.obj", I = new File([Z], ne, { type: Z.type });
31110
+ return await Me(I, { autoFit: !0 }), Z;
31111
+ } catch (Z) {
31112
+ throw console.error("从URL加载模型失败:", Z), Z;
31113
31113
  }
31114
31114
  },
31115
31115
  clearAllModels: re
@@ -31117,8 +31117,8 @@ const LM = Gl("threeJSComp", {
31117
31117
  // toggleAxes
31118
31118
  }), Ad(() => {
31119
31119
  window.removeEventListener("resize", se), m && (m.dispose(), m = null), p && (p.dispose(), p = null), re(), l.setIsInitialized(!1), l.setScene(null), l.setCamera(null), l.setRenderer(null), l.setControls(null), l.setAxesHelper(null);
31120
- }), (Z, Y) => (Xt(), sn("div", DM, [
31121
- r.value ? (Xt(), sn("div", IM, Y[2] || (Y[2] = [
31120
+ }), ($, Z) => (Xt(), sn("div", DM, [
31121
+ r.value ? (Xt(), sn("div", IM, Z[2] || (Z[2] = [
31122
31122
  xt("div", { class: "upload-spinner" }, [
31123
31123
  xt("div", { class: "spinner" }),
31124
31124
  xt("p", { class: "upload-text" }, "正在上传模型...")
@@ -31126,11 +31126,11 @@ const LM = Gl("threeJSComp", {
31126
31126
  ]))) : cs("", !0),
31127
31127
  Vi(d) ? (Xt(), sn("div", NM, [
31128
31128
  xt("div", { class: "panel-header" }, [
31129
- Y[4] || (Y[4] = xt("span", { class: "panel-title" }, "模型列表", -1)),
31129
+ Z[4] || (Z[4] = xt("span", { class: "panel-title" }, "模型列表", -1)),
31130
31130
  xt("button", {
31131
31131
  onClick: ye,
31132
31132
  class: "close-btn"
31133
- }, Y[3] || (Y[3] = [
31133
+ }, Z[3] || (Z[3] = [
31134
31134
  xt("svg", {
31135
31135
  width: "16",
31136
31136
  height: "16",
@@ -31157,7 +31157,7 @@ const LM = Gl("threeJSComp", {
31157
31157
  }, " 删除 (" + si(Vi(u).length) + ") ", 9, FM)
31158
31158
  ]),
31159
31159
  xt("div", OM, [
31160
- Vi(c).length === 0 ? (Xt(), sn("div", kM, Y[5] || (Y[5] = [
31160
+ Vi(c).length === 0 ? (Xt(), sn("div", kM, Z[5] || (Z[5] = [
31161
31161
  xt("p", null, "暂无模型", -1)
31162
31162
  ]))) : cs("", !0),
31163
31163
  (Xt(!0), sn(zl, null, Hl(Vi(c), (ne, I) => (Xt(), sn("div", {
@@ -31167,7 +31167,7 @@ const LM = Gl("threeJSComp", {
31167
31167
  xt("div", BM, [
31168
31168
  wd(xt("input", {
31169
31169
  type: "checkbox",
31170
- "onUpdate:modelValue": Y[0] || (Y[0] = (Se) => Rd(u) ? u.value = Se : null),
31170
+ "onUpdate:modelValue": Z[0] || (Z[0] = (Se) => Rd(u) ? u.value = Se : null),
31171
31171
  value: I
31172
31172
  }, null, 8, zM), [
31173
31173
  [Cd, Vi(u)]
@@ -31202,7 +31202,7 @@ const LM = Gl("threeJSComp", {
31202
31202
  class: "action-icon danger",
31203
31203
  disabled: ne.status === "loading",
31204
31204
  title: "删除模型"
31205
- }, Y[6] || (Y[6] = [
31205
+ }, Z[6] || (Z[6] = [
31206
31206
  xt("svg", {
31207
31207
  width: "16",
31208
31208
  height: "16",
@@ -31224,7 +31224,7 @@ const LM = Gl("threeJSComp", {
31224
31224
  i.value ? (Xt(), sn("div", JM, [
31225
31225
  xt("span", null, si(i.value), 1),
31226
31226
  xt("button", {
31227
- onClick: Y[1] || (Y[1] = (ne) => i.value = ""),
31227
+ onClick: Z[1] || (Z[1] = (ne) => i.value = ""),
31228
31228
  class: "btn-close"
31229
31229
  }, "×")
31230
31230
  ])) : cs("", !0)
@@ -31531,7 +31531,7 @@ const LM = Gl("threeJSComp", {
31531
31531
  tableData: Ga(v, (T = ir((E = (U = (L = Hi(ot(u))) == null ? void 0 : L.compData) == null ? void 0 : U.find((W) => (W == null ? void 0 : W.key) === "header")) == null ? void 0 : E.contents)) == null ? void 0 : T.filter((W) => W !== "操作"))
31532
31532
  }
31533
31533
  }));
31534
- const P = await ((D = (await fs({
31534
+ const P = await ((D = (await ps({
31535
31535
  key: {
31536
31536
  systemKey: sessionStorage.getItem("systemKey"),
31537
31537
  pageKey: t.name,
@@ -31614,7 +31614,7 @@ const LM = Gl("threeJSComp", {
31614
31614
  tableData: Ga(p, (U = ir((L = (P = (N = Hi(ot(l))) == null ? void 0 : N.compData) == null ? void 0 : P.find((T) => (T == null ? void 0 : T.key) === "header")) == null ? void 0 : L.contents)) == null ? void 0 : U.filter((T) => T !== "操作"))
31615
31615
  }
31616
31616
  }));
31617
- const y = await ((E = (await fs({
31617
+ const y = await ((E = (await ps({
31618
31618
  key: {
31619
31619
  parentTable: p,
31620
31620
  systemKey: sessionStorage.getItem("systemKey"),
@@ -31677,19 +31677,19 @@ const LM = Gl("threeJSComp", {
31677
31677
  }));
31678
31678
  }, mS = async (s, e, t = "", n) => {
31679
31679
  var h, d, f, g, _, m;
31680
- const i = await fs({
31680
+ const i = await ps({
31681
31681
  key: {
31682
31682
  pageKey: s,
31683
31683
  systemKey: e,
31684
31684
  parentTable: t
31685
31685
  }
31686
- }), r = await fs({
31686
+ }), r = await ps({
31687
31687
  key: {
31688
31688
  pageKey: s,
31689
31689
  systemKey: e,
31690
31690
  type: "structureMethod"
31691
31691
  }
31692
- }), a = (h = i.data.result) == null ? void 0 : h.map((p) => p.id), o = a == null ? void 0 : a.map((p) => fs({
31692
+ }), a = (h = i.data.result) == null ? void 0 : h.map((p) => p.id), o = a == null ? void 0 : a.map((p) => ps({
31693
31693
  key: {
31694
31694
  pageKey: s,
31695
31695
  systemKey: e,
@@ -31770,13 +31770,13 @@ const LM = Gl("threeJSComp", {
31770
31770
  },
31771
31771
  id: s
31772
31772
  });
31773
- }, gS = async (s, e) => await fs({
31773
+ }, gS = async (s, e) => await ps({
31774
31774
  key: s,
31775
31775
  valueLikes: e
31776
31776
  }), kS = async () => {
31777
31777
  var s, e, t, n, i, r, a, o, l;
31778
31778
  try {
31779
- const c = await fs({
31779
+ const c = await ps({
31780
31780
  key: {
31781
31781
  systemKey: sessionStorage.getItem("systemKey"),
31782
31782
  layer: "superAdmin"
@@ -31792,6 +31792,11 @@ const LM = Gl("threeJSComp", {
31792
31792
  }, MS = {
31793
31793
  __name: "index",
31794
31794
  props: {
31795
+ operatingForm: {
31796
+ type: Object,
31797
+ default: () => {
31798
+ }
31799
+ },
31795
31800
  itemData: {
31796
31801
  type: Array,
31797
31802
  default: () => []
@@ -31809,60 +31814,60 @@ const LM = Gl("threeJSComp", {
31809
31814
  },
31810
31815
  emits: ["change", "contentChange", "onButtonClick", "contentClick", "pageChange"],
31811
31816
  setup(s, { emit: e }) {
31812
- const t = s, n = e, i = Pt([]), r = xh(), { activeMenuPath: a } = Bs(r), o = yh(vr), { extraContents: l } = Bs(o), c = Pt([]), u = Pt(!1), h = Pt("");
31817
+ const t = s, n = e, i = Pt([]), r = xh(), { activeMenuPath: a } = zs(r), o = yh(vr), { extraContents: l } = zs(o), c = Pt([]), u = Pt(!1), h = Pt("");
31813
31818
  Pt();
31814
31819
  const d = Pt(!0), f = Pt(0), g = Pt(!1), _ = Pt(""), m = Pt(!1), p = Pt({
31815
31820
  label: "查看三维模型"
31816
- }), S = Pt([]), v = Pt([]), y = Pt(!1), N = Pt([]), P = Pt([]), L = Pt(), U = Pt(), E = tS(vr), T = Pt(), D = nS(vr), { selectIndex: W, selectMenu: j, selectTitle: ie } = Bs(D), { selectString: ue } = Bs(E), k = Pt(720), ae = () => {
31821
+ }), S = Pt([]), v = Pt([]), y = Pt(!1), N = Pt([]), P = Pt([]), L = Pt(), U = Pt(), E = tS(vr), T = Pt(), D = nS(vr), { selectIndex: W, selectMenu: j, selectTitle: ie } = zs(D), { selectString: ue } = zs(E), k = Pt(720), ae = () => {
31817
31822
  m.value = !1;
31818
- }, V = ($) => {
31819
- n("clickTrigger", $);
31820
- }, de = ($, Z) => {
31821
- if (Object.values(Z).length !== 0)
31822
- return Object.values(Z).find((Y) => {
31823
+ }, V = (K) => {
31824
+ n("clickTrigger", K);
31825
+ }, de = (K, $) => {
31826
+ if (Object.values($).length !== 0)
31827
+ return Object.values($).find((Z) => {
31823
31828
  var ne, I;
31824
- return ((ne = Y == null ? void 0 : Y.toString()) == null ? void 0 : ne.includes(".obj")) || ((I = Y == null ? void 0 : Y.toString()) == null ? void 0 : I.includes(".stl"));
31825
- }) ? [...$, p.value] : $;
31826
- }, ye = ($) => {
31829
+ return ((ne = Z == null ? void 0 : Z.toString()) == null ? void 0 : ne.includes(".obj")) || ((I = Z == null ? void 0 : Z.toString()) == null ? void 0 : I.includes(".stl"));
31830
+ }) ? [...K, p.value] : K;
31831
+ }, ye = (K) => {
31827
31832
  var I;
31828
- ue.value === "" ? $ == null || $[0] : ($ == null ? void 0 : $.find((Se) => (Se == null ? void 0 : Se.selectLabel) === "(" + ue.value + ")")) ?? ($ == null || $.find((Se) => !(Se != null && Se.selectLabel)));
31829
- let Z = $;
31833
+ ue.value === "" ? K == null || K[0] : (K == null ? void 0 : K.find((Se) => (Se == null ? void 0 : Se.selectLabel) === "(" + ue.value + ")")) ?? (K == null || K.find((Se) => !(Se != null && Se.selectLabel)));
31834
+ let $ = K;
31830
31835
  (I = i.value) != null && I.find((Se) => Se.prop === "index");
31831
- let Y = L.value;
31836
+ let Z = L.value;
31832
31837
  const ne = [];
31833
- return Z == null || Z.forEach((Se, he) => {
31838
+ return $ == null || $.forEach((Se, he) => {
31834
31839
  var Le;
31835
31840
  let je = {};
31836
31841
  if (Array.isArray(Se)) {
31837
31842
  let Fe = [];
31838
31843
  Se == null || Se.filter((De) => !(De != null && De.id)).forEach((De, Qe) => {
31839
31844
  var Nt, F, b, q, le;
31840
- if ((Nt = Y == null ? void 0 : Y[Qe]) != null && Nt.prop && !Array.isArray(De)) {
31845
+ if ((Nt = Z == null ? void 0 : Z[Qe]) != null && Nt.prop && !Array.isArray(De)) {
31841
31846
  let fe = {};
31842
- fe[Y[Qe].column] = De, l != null && l.value && ((F = l == null ? void 0 : l.value) == null ? void 0 : F.length) > 0 && ((b = l == null ? void 0 : l.value) != null && b.find((te) => JSON.stringify(te == null ? void 0 : te[0]) === JSON.stringify(fe))) && (Fe = (q = l == null ? void 0 : l.value) == null ? void 0 : q.find((te) => JSON.stringify(te == null ? void 0 : te[0]) === JSON.stringify(fe))), Fe && Fe.length > 0 ? je[Y[Qe].prop] = Fe != null && Fe.find((te) => {
31847
+ fe[Z[Qe].column] = De, l != null && l.value && ((F = l == null ? void 0 : l.value) == null ? void 0 : F.length) > 0 && ((b = l == null ? void 0 : l.value) != null && b.find((te) => JSON.stringify(te == null ? void 0 : te[0]) === JSON.stringify(fe))) && (Fe = (q = l == null ? void 0 : l.value) == null ? void 0 : q.find((te) => JSON.stringify(te == null ? void 0 : te[0]) === JSON.stringify(fe))), Fe && Fe.length > 0 ? je[Z[Qe].prop] = Fe != null && Fe.find((te) => {
31843
31848
  var Be;
31844
- return ((Be = Object.keys(te)) == null ? void 0 : Be[0]) === Y[Qe].column;
31849
+ return ((Be = Object.keys(te)) == null ? void 0 : Be[0]) === Z[Qe].column;
31845
31850
  }) ? (le = Fe == null ? void 0 : Fe.find((te) => {
31846
31851
  var Be;
31847
- return ((Be = Object.keys(te)) == null ? void 0 : Be[0]) === Y[Qe].column;
31848
- })) == null ? void 0 : le[Y[Qe].column] : De : je[Y[Qe].prop] = De;
31852
+ return ((Be = Object.keys(te)) == null ? void 0 : Be[0]) === Z[Qe].column;
31853
+ })) == null ? void 0 : le[Z[Qe].column] : De : je[Z[Qe].prop] = De;
31849
31854
  }
31850
31855
  });
31851
31856
  } else
31852
31857
  je = Se;
31853
31858
  Array.isArray(Se) && Se.some((Fe) => Fe == null ? void 0 : Fe.id) ? ne.push(Object.assign(je, { id: (Le = Se == null ? void 0 : Se.find((Fe) => Fe.id)) == null ? void 0 : Le.id })) : je.id ? ne.push(je) : ne.push(Object.assign(je, { id: he }));
31854
31859
  }), ne;
31855
- }, oe = async ($) => {
31860
+ }, oe = async (K) => {
31856
31861
  var I, Se, he, je, Le;
31857
- let Z = {};
31858
- for (let Fe in $)
31859
- $[Fe] !== "" && (Z["tableData." + Fe] = $[Fe]);
31860
- const Y = await gS({
31862
+ let $ = {};
31863
+ for (let Fe in K)
31864
+ K[Fe] !== "" && ($["tableData." + Fe] = K[Fe]);
31865
+ const Z = await gS({
31861
31866
  type: "data",
31862
31867
  tableId: t == null ? void 0 : t.index,
31863
31868
  systemKey: sessionStorage.getItem("systemKey"),
31864
31869
  pageKey: a.value
31865
- }, Z), ne = (he = (Se = (I = ot(Y)) == null ? void 0 : I.data) == null ? void 0 : Se.result) == null ? void 0 : he.map((Fe) => {
31870
+ }, $), ne = (he = (Se = (I = ot(Z)) == null ? void 0 : I.data) == null ? void 0 : Se.result) == null ? void 0 : he.map((Fe) => {
31866
31871
  var Qe;
31867
31872
  let De = [];
31868
31873
  return De.push({
@@ -31870,40 +31875,40 @@ const LM = Gl("threeJSComp", {
31870
31875
  }), De.push((Qe = Fe == null ? void 0 : Fe.value) == null ? void 0 : Qe.tableData), De;
31871
31876
  });
31872
31877
  c.value = ye(Sd(ne, (Le = (je = ot(i.value)) == null ? void 0 : je.map((Fe) => Fe.label)) == null ? void 0 : Le.filter((Fe) => Fe !== "操作")));
31873
- }, Ae = async ($) => {
31874
- var Y, ne, I, Se, he, je, Le;
31875
- let Z = await mS(a.value, sessionStorage.getItem("systemKey"), $.id);
31876
- if (Z = Z == null ? void 0 : Z.filter((Fe) => Fe.comp !== "methodButton"), Z && Z.length > 0) {
31877
- const Fe = !Array.isArray(ie.value) && ((Y = ie.value) == null ? void 0 : Y.key) !== "main" ? [] : ie.value;
31878
+ }, Ae = async (K) => {
31879
+ var Z, ne, I, Se, he, je, Le;
31880
+ let $ = await mS(a.value, sessionStorage.getItem("systemKey"), K.id);
31881
+ if ($ = $ == null ? void 0 : $.filter((Fe) => Fe.comp !== "methodButton"), $ && $.length > 0) {
31882
+ const Fe = !Array.isArray(ie.value) && ((Z = ie.value) == null ? void 0 : Z.key) !== "main" ? [] : ie.value;
31878
31883
  Fe.push({
31879
- key: j.value === "" ? (ne = $ == null ? void 0 : $.id) == null ? void 0 : ne.toString() : j.value + "-" + ((I = $ == null ? void 0 : $.id) == null ? void 0 : I.toString()),
31880
- value: $[(Se = Object.keys($)) == null ? void 0 : Se.filter((De) => De !== "index" && De !== "id")[0]]
31881
- }), D.setSelectMenu(j.value === "" ? (he = $ == null ? void 0 : $.id) == null ? void 0 : he.toString() : j.value + "-" + ((je = $ == null ? void 0 : $.id) == null ? void 0 : je.toString())), D.setSelectTitle(Fe), D.setSelectIndex((Le = $ == null ? void 0 : $.id) == null ? void 0 : Le.toString()), n("pageChange", Z);
31882
- }
31883
- }, xe = ($) => {
31884
- var Z;
31885
- (Z = ot(t.itemData)) == null || Z.map((Y) => ((Y == null ? void 0 : Y.key) === "tableContents" && (Y.contents = $), Y));
31886
- }, G = ($, Z, Y) => {
31887
- n("contentClick", $, Z, Y, { id: t == null ? void 0 : t.index });
31884
+ key: j.value === "" ? (ne = K == null ? void 0 : K.id) == null ? void 0 : ne.toString() : j.value + "-" + ((I = K == null ? void 0 : K.id) == null ? void 0 : I.toString()),
31885
+ value: K[(Se = Object.keys(K)) == null ? void 0 : Se.filter((De) => De !== "index" && De !== "id")[0]]
31886
+ }), D.setSelectMenu(j.value === "" ? (he = K == null ? void 0 : K.id) == null ? void 0 : he.toString() : j.value + "-" + ((je = K == null ? void 0 : K.id) == null ? void 0 : je.toString())), D.setSelectTitle(Fe), D.setSelectIndex((Le = K == null ? void 0 : K.id) == null ? void 0 : Le.toString()), n("pageChange", $);
31887
+ }
31888
+ }, xe = (K) => {
31889
+ var $;
31890
+ ($ = ot(t.itemData)) == null || $.map((Z) => ((Z == null ? void 0 : Z.key) === "tableContents" && (Z.contents = K), Z));
31891
+ }, G = (K, $, Z) => {
31892
+ n("contentClick", K, $, Z, { id: t == null ? void 0 : t.index });
31888
31893
  };
31889
- Ys(
31894
+ fs(
31890
31895
  () => t.changedContent,
31891
31896
  () => {
31892
- var Y, ne;
31897
+ var Z, ne;
31893
31898
  if (!t.changedContent) return;
31894
- let $ = (Y = c.value) == null ? void 0 : Y.map((I) => {
31899
+ let K = (Z = c.value) == null ? void 0 : Z.map((I) => {
31895
31900
  var Se;
31896
31901
  return I.id === ((Se = t.changedContent) == null ? void 0 : Se.id) && (I = {
31897
31902
  ...t.changedContent,
31898
31903
  id: t.changedContent.newId ? t.changedContent.newId : t.changedContent.id
31899
31904
  }, delete I.newId), I;
31900
31905
  });
31901
- const Z = (ne = t.itemData) == null ? void 0 : ne.map((I) => ((I == null ? void 0 : I.key) === "tableContents" && (I.contents = $), I));
31902
- c.value = $, n("contentChange", {
31903
- contents: Z,
31906
+ const $ = (ne = t.itemData) == null ? void 0 : ne.map((I) => ((I == null ? void 0 : I.key) === "tableContents" && (I.contents = K), I));
31907
+ c.value = K, n("contentChange", {
31908
+ contents: $,
31904
31909
  index: t.index
31905
31910
  }), n("change", {
31906
- content: $,
31911
+ content: K,
31907
31912
  index: t == null ? void 0 : t.index,
31908
31913
  buttonName: "",
31909
31914
  id: t == null ? void 0 : t.index
@@ -31911,67 +31916,67 @@ const LM = Gl("threeJSComp", {
31911
31916
  },
31912
31917
  { deep: !0, immediate: !0 }
31913
31918
  );
31914
- const Q = ($, Z) => {
31915
- var Y;
31916
- if (h.value = "", y.value = !0, d.value = !0, n("onButtonClick", $, Z), console.log(666, $), $ === "删除") {
31917
- c.value = (Y = ot(c.value)) == null ? void 0 : Y.filter((I) => (I == null ? void 0 : I.id) !== (Z == null ? void 0 : Z.id));
31918
- const ne = iS(T.value, j.value, Z == null ? void 0 : Z.id);
31919
+ const Q = (K, $) => {
31920
+ var Z;
31921
+ if (h.value = "", y.value = !0, d.value = !0, n("onButtonClick", K, $), K === "删除") {
31922
+ c.value = (Z = ot(c.value)) == null ? void 0 : Z.filter((I) => (I == null ? void 0 : I.id) !== ($ == null ? void 0 : $.id));
31923
+ const ne = iS(T.value, j.value, $ == null ? void 0 : $.id);
31919
31924
  xe(ne), n("change", {
31920
31925
  content: c.value,
31921
- singleContent: Z,
31926
+ singleContent: $,
31922
31927
  index: t == null ? void 0 : t.index,
31923
31928
  type: "delete",
31924
- buttonName: $,
31929
+ buttonName: K,
31925
31930
  column: i.value
31926
31931
  });
31927
- } else $ === "新增" ? (_.value = "新增", se(""), m.value = !0) : $ === "编辑" ? (_.value = "编辑", se(Z), m.value = !0) : $ === "查看" ? (_.value = "查看", se(Z), y.value = !1, d.value = !1, m.value = !0) : $ === "查看三维模型" && (u.value = !0);
31932
+ } else K === "新增" ? (_.value = "新增", se(""), m.value = !0) : K === "编辑" ? (_.value = "编辑", se($), m.value = !0) : K === "查看" ? (_.value = "查看", se($), y.value = !1, d.value = !1, m.value = !0) : K === "查看三维模型" && (u.value = !0);
31928
31933
  }, re = () => {
31929
31934
  u.value = !1;
31930
- }, se = ($) => {
31935
+ }, se = (K) => {
31931
31936
  var ne, I, Se;
31932
- const Z = [];
31933
- let Y = [];
31934
- for (let he in $)
31935
- Array.isArray($ == null ? void 0 : $[he]) && Y.push(he);
31937
+ const $ = [];
31938
+ let Z = [];
31939
+ for (let he in K)
31940
+ Array.isArray(K == null ? void 0 : K[he]) && Z.push(he);
31936
31941
  (I = Da((ne = ot(i.value)) == null ? void 0 : ne.filter((he) => (he == null ? void 0 : he.label) !== "操作"))) == null || I.forEach((he, je) => {
31937
- Y.find((Le) => Le === (he == null ? void 0 : he.prop)) || Z.push({
31942
+ Z.find((Le) => Le === (he == null ? void 0 : he.prop)) || $.push({
31938
31943
  label: (he == null ? void 0 : he.label) ?? "",
31939
31944
  name: (he == null ? void 0 : he.prop) ?? "t" + je,
31940
31945
  type: !(he != null && he.formType) || (he == null ? void 0 : he.formType) === "" ? "Input" : he == null ? void 0 : he.formType,
31941
- value: ($ == null ? void 0 : $[he == null ? void 0 : he.prop]) ?? (he == null ? void 0 : he.value) ?? "",
31946
+ value: (K == null ? void 0 : K[he == null ? void 0 : he.prop]) ?? (he == null ? void 0 : he.value) ?? "",
31942
31947
  id: (he == null ? void 0 : he.id) ?? je,
31943
31948
  contents: (he == null ? void 0 : he.options) ?? [],
31944
31949
  width: 1,
31945
31950
  isFormColHidden: he == null ? void 0 : he.isFormColHidden
31946
31951
  });
31947
- }), $ === "" || !$ || (h.value = $ == null ? void 0 : $.id), P.value = S.value && ((Se = S.value) == null ? void 0 : Se.length) > 0 ? S.value : Z;
31952
+ }), K === "" || !K || (h.value = K == null ? void 0 : K.id), P.value = S.value && ((Se = S.value) == null ? void 0 : Se.length) > 0 ? S.value : $;
31948
31953
  };
31949
31954
  Bl(() => {
31950
31955
  });
31951
31956
  const Me = () => {
31952
- let $, Z = ot(c.value);
31953
- h.value === "" ? (f.value++, Z.push(Object.assign(U.value, { id: f.value })), $ = Object.assign(U.value, { id: f.value })) : Z = Z == null ? void 0 : Z.map((ne) => ((ne == null ? void 0 : ne.id) === h.value && (ne = Object.assign(ne, U.value), $ = ne), ne)), c.value = Z;
31954
- const Y = rS(T.value, j.value, Z);
31955
- xe(Y), m.value = !1, n("change", {
31956
- content: Y,
31957
- singleContent: $,
31957
+ let K, $ = ot(c.value);
31958
+ h.value === "" ? (f.value++, $.push(Object.assign(U.value, { id: f.value })), K = Object.assign(U.value, { id: f.value })) : $ = $ == null ? void 0 : $.map((ne) => ((ne == null ? void 0 : ne.id) === h.value && (ne = Object.assign(ne, U.value), K = ne), ne)), c.value = $;
31959
+ const Z = rS(T.value, j.value, $);
31960
+ xe(Z), m.value = !1, n("change", {
31961
+ content: Z,
31962
+ singleContent: K,
31958
31963
  index: t == null ? void 0 : t.index,
31959
31964
  buttonName: _.value,
31960
31965
  column: i.value
31961
31966
  });
31962
- }, rt = ($) => {
31963
- U.value = $, n("onFormChange", $);
31967
+ }, rt = (K) => {
31968
+ U.value = K, n("onFormChange", K);
31964
31969
  };
31965
- return Ys(
31970
+ return fs(
31966
31971
  () => [t.itemData, ue.value, W.value, j.value, l == null ? void 0 : l.value],
31967
31972
  () => {
31968
31973
  var Le, Fe, De, Qe, Nt, F, b, q, le, fe, te, Be, Ee, Ge, qe, pe, Oe, nt, et, Te, at, B, we, me, ke, _e;
31969
- const $ = (Le = ot(t.itemData)) == null ? void 0 : Le.filter((X) => (X == null ? void 0 : X.key) === "header");
31974
+ const K = (Le = ot(t.itemData)) == null ? void 0 : Le.filter((X) => (X == null ? void 0 : X.key) === "header");
31970
31975
  (Fe = ot(t.itemData)) == null || Fe.filter((X) => (X == null ? void 0 : X.key) === "tableIndexColumn")[0];
31971
- const Z = (De = ot(t.itemData)) == null ? void 0 : De.find((X) => (X == null ? void 0 : X.key) === "page"), Y = (Qe = ot(t.itemData)) == null ? void 0 : Qe.find((X) => (X == null ? void 0 : X.key) === "rowButton"), ne = (Nt = ot(t.itemData)) == null ? void 0 : Nt.find((X) => (X == null ? void 0 : X.key) === "extraButton"), I = (F = ot(t.itemData)) == null ? void 0 : F.filter((X) => (X == null ? void 0 : X.key) === "tableContents"), Se = (b = ot(t.itemData)) == null ? void 0 : b.filter((X) => (X == null ? void 0 : X.key) === "tableIndex");
31972
- S.value = (fe = (le = (q = ot(t.itemData)) == null ? void 0 : q.filter((X) => (X == null ? void 0 : X.key) === "tableToForm")) == null ? void 0 : le[0]) == null ? void 0 : fe.contents, g.value = (Z == null ? void 0 : Z.contents) ?? !1;
31976
+ const $ = (De = ot(t.itemData)) == null ? void 0 : De.find((X) => (X == null ? void 0 : X.key) === "page"), Z = (Qe = ot(t.itemData)) == null ? void 0 : Qe.find((X) => (X == null ? void 0 : X.key) === "rowButton"), ne = (Nt = ot(t.itemData)) == null ? void 0 : Nt.find((X) => (X == null ? void 0 : X.key) === "extraButton"), I = (F = ot(t.itemData)) == null ? void 0 : F.filter((X) => (X == null ? void 0 : X.key) === "tableContents"), Se = (b = ot(t.itemData)) == null ? void 0 : b.filter((X) => (X == null ? void 0 : X.key) === "tableIndex");
31977
+ S.value = (fe = (le = (q = ot(t.itemData)) == null ? void 0 : q.filter((X) => (X == null ? void 0 : X.key) === "tableToForm")) == null ? void 0 : le[0]) == null ? void 0 : fe.contents, g.value = ($ == null ? void 0 : $.contents) ?? !1;
31973
31978
  let he = [];
31974
- ue.value === "" ? he = $ == null ? void 0 : $[0] : he = ($ == null ? void 0 : $.find((X) => (X == null ? void 0 : X.selectLabel) === "(" + ue.value + ")")) ?? ($ == null ? void 0 : $.find((X) => !(X != null && X.selectLabel)));
31979
+ ue.value === "" ? he = K == null ? void 0 : K[0] : he = (K == null ? void 0 : K.find((X) => (X == null ? void 0 : X.selectLabel) === "(" + ue.value + ")")) ?? (K == null ? void 0 : K.find((X) => !(X != null && X.selectLabel)));
31975
31980
  let je = [];
31976
31981
  if (ue.value === "" ? je = Se == null ? void 0 : Se[0] : je = (Se == null ? void 0 : Se.find((X) => (X == null ? void 0 : X.selectLabel) === "(" + ue.value + ")")) ?? (Se == null ? void 0 : Se.find((X) => !(X != null && X.selectLabel))), ((te = he == null ? void 0 : he.contents) == null ? void 0 : te.length) > 0) {
31977
31982
  let X = [];
@@ -32028,7 +32033,7 @@ const LM = Gl("threeJSComp", {
32028
32033
  if (Array.isArray(Ye)) {
32029
32034
  let qt = [];
32030
32035
  Ye == null || Ye.filter((gn) => !(gn != null && gn.id)).forEach((gn, Mn) => {
32031
- var di, Di, fi, $i, Ji, xs;
32036
+ var di, Di, fi, $i, Ji, Ms;
32032
32037
  if ((di = Re == null ? void 0 : Re[Mn]) != null && di.prop && !Array.isArray(gn)) {
32033
32038
  let Qi = {};
32034
32039
  Qi[Re[Mn].column] = gn, l != null && l.value && ((Di = l == null ? void 0 : l.value) == null ? void 0 : Di.length) > 0 && ((fi = l == null ? void 0 : l.value) != null && fi.find((Sn) => JSON.stringify(Sn == null ? void 0 : Sn[0]) === JSON.stringify(Qi))) && (qt = ($i = l == null ? void 0 : l.value) == null ? void 0 : $i.find((Sn) => JSON.stringify(Sn == null ? void 0 : Sn[0]) === JSON.stringify(Qi))), qt && qt.length > 0 ? Zt[Re[Mn].prop] = qt != null && qt.find((Sn) => {
@@ -32038,7 +32043,7 @@ const LM = Gl("threeJSComp", {
32038
32043
  var pi;
32039
32044
  return ((pi = Object.keys(Sn)) == null ? void 0 : pi[0]) === Re[Mn].column;
32040
32045
  })) == null ? void 0 : Ji[Re[Mn].column] : gn : Zt[Re[Mn].prop] = gn;
32041
- } else Array.isArray(gn) && ((xs = Re[Mn]) != null && xs.prop ? Zt[Re[Mn].prop] = gn : Zt.children = yd(gn, Re));
32046
+ } else Array.isArray(gn) && ((Ms = Re[Mn]) != null && Ms.prop ? Zt[Re[Mn].prop] = gn : Zt.children = yd(gn, Re));
32042
32047
  });
32043
32048
  } else
32044
32049
  Zt = Ye;
@@ -32046,11 +32051,13 @@ const LM = Gl("threeJSComp", {
32046
32051
  }), c.value = Qt;
32047
32052
  } else
32048
32053
  i.value = [], c.value = [];
32049
- ((me = Y == null ? void 0 : Y.contents) == null ? void 0 : me.length) > 0 ? v.value = Y == null ? void 0 : Y.contents : v.value = [], ((ke = ne == null ? void 0 : ne.contents) == null ? void 0 : ke.length) > 0 ? N.value = ne == null ? void 0 : ne.contents : N.value = [], f.value = ((_e = c == null ? void 0 : c.value) == null ? void 0 : _e.length) ?? 0, T.value = c.value;
32054
+ ((me = Z == null ? void 0 : Z.contents) == null ? void 0 : me.length) > 0 ? v.value = Z == null ? void 0 : Z.contents : v.value = [], ((ke = ne == null ? void 0 : ne.contents) == null ? void 0 : ke.length) > 0 ? N.value = ne == null ? void 0 : ne.contents : N.value = [], f.value = ((_e = c == null ? void 0 : c.value) == null ? void 0 : _e.length) ?? 0, T.value = c.value;
32050
32055
  },
32051
32056
  { deep: !0, immediate: !0 }
32052
- ), ($, Z) => {
32053
- var Y;
32057
+ ), fs(() => t == null ? void 0 : t.operatingForm, (K) => {
32058
+ K != null && K.form && (se(K == null ? void 0 : K.form), _.value = K == null ? void 0 : K.dialogTitle, y.value = !0, m.value = !0);
32059
+ }, { immediate: !0, deep: !0 }), (K, $) => {
32060
+ var Z;
32054
32061
  return Xt(), sn("div", _S, [
32055
32062
  (Xt(), kl(Ud, {
32056
32063
  columns: i.value,
@@ -32061,20 +32068,20 @@ const LM = Gl("threeJSComp", {
32061
32068
  isShowDelete: !1,
32062
32069
  onDbClickRow: Ae,
32063
32070
  extraButton: N.value,
32064
- onButtonClick: Z[1] || (Z[1] = (ne) => Q(ne, "")),
32071
+ onButtonClick: $[1] || ($[1] = (ne) => Q(ne, "")),
32065
32072
  onContentClick: G
32066
32073
  }, Pd({
32067
32074
  headerButton: ai((ne) => [
32068
32075
  Wi(Tf, {
32069
32076
  buttons: ne.buttons,
32070
- onButtonClick: Z[0] || (Z[0] = (I) => Q(I, "")),
32077
+ onButtonClick: $[0] || ($[0] = (I) => Q(I, "")),
32071
32078
  columns: i.value,
32072
32079
  onFilter: oe
32073
32080
  }, null, 8, ["buttons", "columns"])
32074
32081
  ]),
32075
32082
  _: 2
32076
32083
  }, [
32077
- ((Y = v.value) == null ? void 0 : Y.length) > 0 ? {
32084
+ ((Z = v.value) == null ? void 0 : Z.length) > 0 ? {
32078
32085
  name: "actions",
32079
32086
  fn: ai(({ item: ne }) => [
32080
32087
  (Xt(!0), sn(zl, null, Hl(de(v.value, ne), (I, Se) => (Xt(), sn("div", { key: Se }, [
@@ -32108,7 +32115,7 @@ const LM = Gl("threeJSComp", {
32108
32115
  footer: ai(() => [
32109
32116
  y.value ? (Xt(), sn("div", xS, [
32110
32117
  xt("div", {
32111
- onClick: Z[2] || (Z[2] = (ne) => m.value = !1),
32118
+ onClick: $[2] || ($[2] = (ne) => m.value = !1),
32112
32119
  class: "cancel-button"
32113
32120
  }, si("取消")),
32114
32121
  xt("div", {
@@ -32132,7 +32139,7 @@ const LM = Gl("threeJSComp", {
32132
32139
  ]);
32133
32140
  };
32134
32141
  }
32135
- }, BS = /* @__PURE__ */ Vl(MS, [["__scopeId", "data-v-83a7967a"]]);
32142
+ }, BS = /* @__PURE__ */ Vl(MS, [["__scopeId", "data-v-8259afc8"]]);
32136
32143
  export {
32137
32144
  LS as I,
32138
32145
  nS as a,