ss-component-new 1.1.627 → 1.1.628

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 (90) hide show
  1. package/dist/icons/svg/drag.svg +1 -0
  2. package/dist/icons/svg//344/273/273/345/212/241/347/256/241/347/220/206.svg +1 -0
  3. package/dist/icons/svg//344/273/277/347/234/237/345/212/250/347/224/273.svg +1 -0
  4. package/dist/icons/svg//344/275/215/345/247/277/347/224/237/346/210/220.svg +1 -0
  5. package/dist/icons/svg//345/210/240/351/231/244/345/274/257/347/256/241.svg +1 -0
  6. package/dist/icons/svg//345/234/272/346/231/257.svg +1 -0
  7. package/dist/icons/svg//345/244/271/345/205/267/350/265/204/346/272/220.svg +1 -0
  8. package/dist/icons/svg//345/257/274/345/205/245/345/274/257/347/256/241.svg +1 -0
  9. package/dist/icons/svg//345/257/274/345/207/272/345/274/257/347/256/241.svg +1 -0
  10. package/dist/icons/svg//345/267/245/350/211/272/347/224/237/346/210/220.svg +1 -0
  11. package/dist/icons/svg//345/274/257/347/256/2411.svg +1 -0
  12. package/dist/icons/svg//345/274/257/347/256/2412.svg +1 -0
  13. package/dist/icons/svg//345/274/257/347/256/241/345/244/204/347/220/206.svg +1 -0
  14. package/dist/icons/svg//346/226/260/345/273/272/345/274/257/347/256/241.svg +1 -0
  15. package/dist/icons/svg//346/234/272/345/231/250/344/272/272/345/274/257/347/256/241/346/234/272.svg +1 -0
  16. package/dist/icons/svg//346/250/241/345/205/2671.svg +1 -0
  17. package/dist/icons/svg//346/250/241/345/205/267/345/272/223.svg +1 -0
  18. package/dist/icons/svg//347/250/213/345/272/217/350/276/223/345/207/272.svg +1 -0
  19. package/dist/icons/svg//347/255/233/351/200/211.svg +1 -0
  20. package/dist/icons/svg//347/256/241/344/273/266/350/247/243/346/236/220.svg +1 -0
  21. package/dist/{index-DhV1d-J-.cjs → index-B4eaL6EK.cjs} +1 -1
  22. package/dist/{index-DPsDIrOO.js → index-BBBF7awa.js} +3 -3
  23. package/dist/{index-Bv2ugf0k.js → index-BCaaXQGj.js} +1 -1
  24. package/dist/{index-C6AmzVmX.js → index-BF6w-PNg.js} +1 -1
  25. package/dist/{index-GDkjXMRh.js → index-B_EfYuuL.js} +1 -1
  26. package/dist/{index-DSbZCXjf.cjs → index-BlT3Tc6L.cjs} +1 -1
  27. package/dist/{index-CHXL9eIj.js → index-Bm2utn7O.js} +3 -3
  28. package/dist/{index-BzzJ0pZO.cjs → index-BxdYAQEB.cjs} +1 -1
  29. package/dist/{index-DqozMff7.cjs → index-BxomhEB4.cjs} +1 -1
  30. package/dist/{index-D0acMUc-.js → index-C6zpk7o5.js} +1 -1
  31. package/dist/{index-KKAoWlP0.cjs → index-CBclfPz4.cjs} +1 -1
  32. package/dist/{index-BAGKNxFk.cjs → index-CVg2A40y.cjs} +1 -1
  33. package/dist/{index-mgbD5Pek.js → index-CW0dk2Zm.js} +10 -10
  34. package/dist/{index-1GQ80YCx.js → index-CZbR_c4j.js} +694 -681
  35. package/dist/{index-BvmILND9.cjs → index-C_GaAoum.cjs} +1 -1
  36. package/dist/{index-DQqHn5GD.js → index-Cgx-g46p.js} +1 -1
  37. package/dist/{index-cxDuq8-g.js → index-D3pOFzjn.js} +4 -4
  38. package/dist/{index-Bs_A_wsD.js → index-D5RSbEUU.js} +2 -2
  39. package/dist/{index-DYJu8MLB.cjs → index-D6jFElXR.cjs} +1 -1
  40. package/dist/{index-CML3P6N-.cjs → index-DCZodCwL.cjs} +1 -1
  41. package/dist/{index-CkjIQnqD.cjs → index-DDrp25R8.cjs} +6 -6
  42. package/dist/{index-CBJW1sZQ.cjs → index-DE4otJ39.cjs} +1 -1
  43. package/dist/index-DM181hgB.cjs +15 -0
  44. package/dist/{index-CYEw8ydl.js → index-DNniy3zH.js} +1 -1
  45. package/dist/{index-z_DLnSGd.js → index-DR3BfDRK.js} +4210 -4122
  46. package/dist/{index-DFfkVBsA.cjs → index-Dl3oFcQb.cjs} +1 -1
  47. package/dist/{index-CR71auFG.cjs → index-Dyr9JHag.cjs} +1 -1
  48. package/dist/{index-BgOKOF9N.js → index-J2Tf-ewo.js} +1 -1
  49. package/dist/{index-B9K2_TJn.cjs → index-PR6fR-ty.cjs} +1 -1
  50. package/dist/{index-DQo1Z6Ks.js → index-XofZtRxT.js} +1 -1
  51. package/dist/index-gHfbl_AK.cjs +1 -0
  52. package/dist/{index-CicZS0E-.js → index-yb9XQQR4.js} +2 -2
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-BsBVxPDD.cjs → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-1JtPHs4_.cjs} +10 -10
  54. package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-COTfQnpB.js → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-gfcSGA5d.js} +7719 -7722
  55. package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-DLh7uomI.js → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-BLVLSXqp.js} +3 -3
  56. package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-BvXcYNFB.cjs → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-DiKnDY7W.cjs} +1 -1
  57. package/dist/{main-D1FcqRV5.js → main-ChWu6cQ1.js} +2 -2
  58. package/dist/{main-DyDj-Gca.cjs → main-jUBYKCrC.cjs} +1 -1
  59. package/dist/ss-component.cjs +1 -1
  60. package/dist/ss-component.css +2 -2
  61. package/dist/ss-component.js +5 -5
  62. package/dist/ss-component2.cjs +1 -1
  63. package/dist/ss-component2.js +8 -8
  64. package/dist/threeModel-C-XxTS2q.cjs +1 -0
  65. package/dist/threeModel-DLbB38ll.js +1557 -0
  66. package/package.json +1 -1
  67. package/public/icons/svg/drag.svg +1 -0
  68. package/public/icons/svg//344/273/273/345/212/241/347/256/241/347/220/206.svg +1 -0
  69. package/public/icons/svg//344/273/277/347/234/237/345/212/250/347/224/273.svg +1 -0
  70. package/public/icons/svg//344/275/215/345/247/277/347/224/237/346/210/220.svg +1 -0
  71. package/public/icons/svg//345/210/240/351/231/244/345/274/257/347/256/241.svg +1 -0
  72. package/public/icons/svg//345/234/272/346/231/257.svg +1 -0
  73. package/public/icons/svg//345/244/271/345/205/267/350/265/204/346/272/220.svg +1 -0
  74. package/public/icons/svg//345/257/274/345/205/245/345/274/257/347/256/241.svg +1 -0
  75. package/public/icons/svg//345/257/274/345/207/272/345/274/257/347/256/241.svg +1 -0
  76. package/public/icons/svg//345/267/245/350/211/272/347/224/237/346/210/220.svg +1 -0
  77. package/public/icons/svg//345/274/257/347/256/2411.svg +1 -0
  78. package/public/icons/svg//345/274/257/347/256/2412.svg +1 -0
  79. package/public/icons/svg//345/274/257/347/256/241/345/244/204/347/220/206.svg +1 -0
  80. package/public/icons/svg//346/226/260/345/273/272/345/274/257/347/256/241.svg +1 -0
  81. package/public/icons/svg//346/234/272/345/231/250/344/272/272/345/274/257/347/256/241/346/234/272.svg +1 -0
  82. package/public/icons/svg//346/250/241/345/205/2671.svg +1 -0
  83. package/public/icons/svg//346/250/241/345/205/267/345/272/223.svg +1 -0
  84. package/public/icons/svg//347/250/213/345/272/217/350/276/223/345/207/272.svg +1 -0
  85. package/public/icons/svg//347/255/233/351/200/211.svg +1 -0
  86. package/public/icons/svg//347/256/241/344/273/266/350/247/243/346/236/220.svg +1 -0
  87. package/dist/index-CSYRbrOj.cjs +0 -1
  88. package/dist/index-px2ubREm.cjs +0 -15
  89. package/dist/threeModel-DOOv72LJ.cjs +0 -1
  90. package/dist/threeModel-HExFX2do.js +0 -1543
@@ -1,6 +1,6 @@
1
- import { ref as _t, watch as Cs, nextTick as sd, resolveComponent as Ji, createBlock as ir, openBlock as vn, withCtx as kt, createElementVNode as Xt, renderSlot as rc, onMounted as Ll, createElementBlock as ci, normalizeClass as rd, toDisplayString as ji, createCommentVNode as ca, createVNode as Vt, unref as ru, Fragment as au, renderList as ou, normalizeStyle as lu, defineComponent as ad, computed as od, createSlots as ld, createTextVNode as yr } from "vue";
2
- import { e as cd, c as Lt, d as Ba, s as er, p as tr, bR as Pl, u as hd, bi as ud } from "./menu-wif0xsml.js";
3
- import { e as ya, d as cu, k as dd, l as fd, s as ac, f as pd } from "./index-z_DLnSGd.js";
1
+ import { ref as _t, watch as Cs, nextTick as sd, resolveComponent as Ji, createBlock as sr, openBlock as fn, withCtx as Bt, createElementVNode as jt, renderSlot as rc, onMounted as Ll, createElementBlock as Xn, normalizeClass as rd, toDisplayString as ji, createCommentVNode as er, createVNode as Vt, unref as ru, Fragment as au, renderList as ou, normalizeStyle as lu, defineComponent as ad, computed as od, createSlots as ld, createTextVNode as Mr } from "vue";
2
+ import { e as cd, c as Lt, d as Ba, s as tr, p as nr, bR as Pl, u as hd, bi as ud } from "./menu-wif0xsml.js";
3
+ import { e as ya, d as cu, k as dd, l as fd, s as ac, f as pd } from "./index-DR3BfDRK.js";
4
4
  import { u as hu } from "./modelComp-bhPfLPDx.js";
5
5
  import { w as ha, O as oc, P as md, Q as gd, g as lc, R as _d, T as vd, U as xd, V as yd } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D1jTtae5.js";
6
6
  import { _ as Dl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -43,7 +43,7 @@ const Md = {
43
43
  { deep: !0, immediate: !0 }
44
44
  ), (r, a) => {
45
45
  const o = Ji("el-popover");
46
- return vn(), ir(o, {
46
+ return fn(), sr(o, {
47
47
  visible: n.value,
48
48
  title: e == null ? void 0 : e.title,
49
49
  placement: e == null ? void 0 : e.placement,
@@ -51,16 +51,16 @@ const Md = {
51
51
  ref_key: "popOverRef",
52
52
  ref: t
53
53
  }, {
54
- reference: kt(() => [
55
- Xt("div", null, [
54
+ reference: Bt(() => [
55
+ jt("div", null, [
56
56
  rc(r.$slots, "reference", {
57
57
  ref_key: "referenceRef",
58
58
  ref: i
59
59
  })
60
60
  ])
61
61
  ]),
62
- default: kt(() => [
63
- Xt("div", null, [
62
+ default: Bt(() => [
63
+ jt("div", null, [
64
64
  rc(r.$slots, "content")
65
65
  ])
66
66
  ]),
@@ -132,19 +132,19 @@ const Md = {
132
132
  ), (d, u) => {
133
133
  var g;
134
134
  const m = Ji("svg-icon"), _ = Ji("el-input");
135
- return vn(), ci("div", bd, [
136
- Xt("div", {
135
+ return fn(), Xn("div", bd, [
136
+ jt("div", {
137
137
  class: rd(s.compName ? "table-name-wrap" : "")
138
138
  }, ji(s.compName), 3),
139
- Xt("div", Sd, [
140
- Xt("div", Ed, [
139
+ jt("div", Sd, [
140
+ jt("div", Ed, [
141
141
  Vt(Md, {
142
142
  title: "",
143
143
  width: 800,
144
144
  placement: "bottom-start",
145
145
  isVisible: r.value
146
146
  }, {
147
- reference: kt(() => [
147
+ reference: Bt(() => [
148
148
  Vt(_, {
149
149
  modelValue: i.value,
150
150
  "onUpdate:modelValue": u[1] || (u[1] = (p) => i.value = p),
@@ -154,8 +154,8 @@ const Md = {
154
154
  clearable: "",
155
155
  onInput: l
156
156
  }, {
157
- append: kt(() => [
158
- Xt("span", wd, [
157
+ append: Bt(() => [
158
+ jt("span", wd, [
159
159
  Vt(m, {
160
160
  onClick: u[0] || (u[0] = (p) => r.value = !r.value),
161
161
  name: "query",
@@ -166,9 +166,9 @@ const Md = {
166
166
  _: 1
167
167
  }, 8, ["modelValue", "prefix-icon"])
168
168
  ]),
169
- content: kt(() => [
170
- Xt("div", Ad, [
171
- (vn(), ir(ya, {
169
+ content: Bt(() => [
170
+ jt("div", Ad, [
171
+ (fn(), sr(ya, {
172
172
  rowContents: a.value,
173
173
  buttonValue: o.value,
174
174
  isRowFlex: !0,
@@ -183,18 +183,18 @@ const Md = {
183
183
  _: 1
184
184
  }, 8, ["isVisible"])
185
185
  ]),
186
- n != null && n.buttons && ((g = n == null ? void 0 : n.buttons) == null ? void 0 : g.length) > 0 ? (vn(), ci("div", Td, [
187
- (vn(!0), ci(au, null, ou(n == null ? void 0 : n.buttons, (p, E) => (vn(), ci("div", {
186
+ n != null && n.buttons && ((g = n == null ? void 0 : n.buttons) == null ? void 0 : g.length) > 0 ? (fn(), Xn("div", Td, [
187
+ (fn(!0), Xn(au, null, ou(n == null ? void 0 : n.buttons, (p, E) => (fn(), Xn("div", {
188
188
  class: "extra-contents",
189
189
  key: E
190
190
  }, [
191
- Xt("div", {
191
+ jt("div", {
192
192
  class: "extra-content",
193
193
  style: lu({ background: (p == null ? void 0 : p.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" }),
194
194
  onClick: (S) => c(p == null ? void 0 : p.label)
195
195
  }, ji(p == null ? void 0 : p.label), 13, Cd)
196
196
  ]))), 128))
197
- ])) : ca("", !0)
197
+ ])) : er("", !0)
198
198
  ])
199
199
  ]);
200
200
  };
@@ -205,7 +205,7 @@ const Md = {
205
205
  * Copyright 2010-2025 Three.js Authors
206
206
  * SPDX-License-Identifier: MIT
207
207
  */
208
- const Ul = "177", a_ = { ROTATE: 0, DOLLY: 1, PAN: 2 }, o_ = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Pd = 0, cc = 1, Dd = 2, uu = 1, Ud = 2, li = 3, kn = 0, pn = 1, fn = 2, Ti = 0, Rs = 1, hc = 2, uc = 3, dc = 4, Id = 5, Yi = 100, Nd = 101, Fd = 102, Od = 103, zd = 104, Bd = 200, kd = 201, Vd = 202, Hd = 203, Io = 204, No = 205, Gd = 206, Wd = 207, Xd = 208, qd = 209, jd = 210, Yd = 211, $d = 212, Jd = 213, Kd = 214, Fo = 0, Oo = 1, zo = 2, Ds = 3, Bo = 4, ko = 5, Vo = 6, Ho = 7, Ra = 0, Zd = 1, Qd = 2, Ci = 0, ef = 1, tf = 2, nf = 3, sf = 4, rf = 5, af = 6, of = 7, fc = "attached", lf = "detached", du = 300, Us = 301, Is = 302, Go = 303, Wo = 304, La = 306, qn = 1e3, zn = 1001, Xo = 1002, wn = 1003, cf = 1004, Mr = 1005, En = 1006, ka = 1007, hi = 1008, Jn = 1009, fu = 1010, pu = 1011, cr = 1012, Il = 1013, Qi = 1014, jn = 1015, mr = 1016, Nl = 1017, Fl = 1018, hr = 1020, mu = 35902, gu = 1021, _u = 1022, Pn = 1023, ur = 1026, dr = 1027, vu = 1028, Ol = 1029, xu = 1030, zl = 1031, Bl = 1033, ua = 33776, da = 33777, fa = 33778, pa = 33779, qo = 35840, jo = 35841, Yo = 35842, $o = 35843, Jo = 36196, Ko = 37492, Zo = 37496, Qo = 37808, el = 37809, tl = 37810, nl = 37811, il = 37812, sl = 37813, rl = 37814, al = 37815, ol = 37816, ll = 37817, cl = 37818, hl = 37819, ul = 37820, dl = 37821, ma = 36492, fl = 36494, pl = 36495, yu = 36283, ml = 36284, gl = 36285, _l = 36286, Ma = 2300, vl = 2301, Va = 2302, pc = 2400, mc = 2401, gc = 2402, hf = 2500, uf = 3200, df = 3201, Pa = 0, ff = 1, Ai = "", wt = "srgb", Ns = "srgb-linear", ba = "linear", It = "srgb", as = 7680, _c = 519, pf = 512, mf = 513, gf = 514, Mu = 515, _f = 516, vf = 517, xf = 518, yf = 519, xl = 35044, vc = "300 es", ui = 2e3, Sa = 2001;
208
+ const Ul = "177", a_ = { ROTATE: 0, DOLLY: 1, PAN: 2 }, o_ = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Pd = 0, cc = 1, Dd = 2, uu = 1, Ud = 2, ci = 3, kn = 0, mn = 1, pn = 2, Ti = 0, Rs = 1, hc = 2, uc = 3, dc = 4, Id = 5, Yi = 100, Nd = 101, Fd = 102, Od = 103, zd = 104, Bd = 200, kd = 201, Vd = 202, Hd = 203, Io = 204, No = 205, Gd = 206, Wd = 207, Xd = 208, qd = 209, jd = 210, Yd = 211, $d = 212, Jd = 213, Kd = 214, Fo = 0, Oo = 1, zo = 2, Ds = 3, Bo = 4, ko = 5, Vo = 6, Ho = 7, Ra = 0, Zd = 1, Qd = 2, Ci = 0, ef = 1, tf = 2, nf = 3, sf = 4, rf = 5, af = 6, of = 7, fc = "attached", lf = "detached", du = 300, Us = 301, Is = 302, Go = 303, Wo = 304, La = 306, jn = 1e3, zn = 1001, Xo = 1002, wn = 1003, cf = 1004, br = 1005, En = 1006, ka = 1007, hi = 1008, Kn = 1009, fu = 1010, pu = 1011, hr = 1012, Il = 1013, Qi = 1014, Yn = 1015, gr = 1016, Nl = 1017, Fl = 1018, ur = 1020, mu = 35902, gu = 1021, _u = 1022, Pn = 1023, dr = 1026, fr = 1027, vu = 1028, Ol = 1029, xu = 1030, zl = 1031, Bl = 1033, ua = 33776, da = 33777, fa = 33778, pa = 33779, qo = 35840, jo = 35841, Yo = 35842, $o = 35843, Jo = 36196, Ko = 37492, Zo = 37496, Qo = 37808, el = 37809, tl = 37810, nl = 37811, il = 37812, sl = 37813, rl = 37814, al = 37815, ol = 37816, ll = 37817, cl = 37818, hl = 37819, ul = 37820, dl = 37821, ma = 36492, fl = 36494, pl = 36495, yu = 36283, ml = 36284, gl = 36285, _l = 36286, Ma = 2300, vl = 2301, Va = 2302, pc = 2400, mc = 2401, gc = 2402, hf = 2500, uf = 3200, df = 3201, Pa = 0, ff = 1, Ai = "", wt = "srgb", Ns = "srgb-linear", ba = "linear", It = "srgb", as = 7680, _c = 519, pf = 512, mf = 513, gf = 514, Mu = 515, _f = 516, vf = 517, xf = 518, yf = 519, xl = 35044, vc = "300 es", ui = 2e3, Sa = 2001;
209
209
  class ts {
210
210
  /**
211
211
  * Adds the given event listener to the given event type.
@@ -264,7 +264,7 @@ class ts {
264
264
  }
265
265
  const on = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
266
266
  let xc = 1234567;
267
- const sr = Math.PI / 180, Fs = 180 / Math.PI;
267
+ const rr = Math.PI / 180, Fs = 180 / Math.PI;
268
268
  function Bn() {
269
269
  const s = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0;
270
270
  return (on[s & 255] + on[s >> 8 & 255] + on[s >> 16 & 255] + on[s >> 24 & 255] + "-" + on[e & 255] + on[e >> 8 & 255] + "-" + on[e >> 16 & 15 | 64] + on[e >> 24 & 255] + "-" + on[t & 63 | 128] + on[t >> 8 & 255] + "-" + on[t >> 16 & 255] + on[t >> 24 & 255] + on[n & 255] + on[n >> 8 & 255] + on[n >> 16 & 255] + on[n >> 24 & 255]).toLowerCase();
@@ -281,11 +281,11 @@ function Mf(s, e, t, n, i) {
281
281
  function bf(s, e, t) {
282
282
  return s !== e ? (t - s) / (e - s) : 0;
283
283
  }
284
- function rr(s, e, t) {
284
+ function ar(s, e, t) {
285
285
  return (1 - t) * s + t * e;
286
286
  }
287
287
  function Sf(s, e, t, n) {
288
- return rr(s, e, 1 - Math.exp(-t * n));
288
+ return ar(s, e, 1 - Math.exp(-t * n));
289
289
  }
290
290
  function Ef(s, e = 1) {
291
291
  return e - Math.abs(kl(s, e * 2) - e);
@@ -311,7 +311,7 @@ function Lf(s) {
311
311
  return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
312
312
  }
313
313
  function Pf(s) {
314
- return s * sr;
314
+ return s * rr;
315
315
  }
316
316
  function Df(s) {
317
317
  return s * Fs;
@@ -391,7 +391,7 @@ function Dt(s, e) {
391
391
  }
392
392
  }
393
393
  const As = {
394
- DEG2RAD: sr,
394
+ DEG2RAD: rr,
395
395
  RAD2DEG: Fs,
396
396
  /**
397
397
  * Generate a [UUID]{@link https://en.wikipedia.org/wiki/Universally_unique_identifier}
@@ -461,7 +461,7 @@ const As = {
461
461
  * @param {number} t - The interpolation factor in the closed interval `[0, 1]`.
462
462
  * @return {number} The interpolated value.
463
463
  */
464
- lerp: rr,
464
+ lerp: ar,
465
465
  /**
466
466
  * Smoothly interpolate a number from `x` to `y` in a spring-like manner using a delta
467
467
  * time to maintain frame rate independent movement. For details, see
@@ -2759,11 +2759,11 @@ function bu(s) {
2759
2759
  if (s[e] >= 65535) return !0;
2760
2760
  return !1;
2761
2761
  }
2762
- function fr(s) {
2762
+ function pr(s) {
2763
2763
  return document.createElementNS("http://www.w3.org/1999/xhtml", s);
2764
2764
  }
2765
2765
  function Of() {
2766
- const s = fr("canvas");
2766
+ const s = pr("canvas");
2767
2767
  return s.style.display = "block", s;
2768
2768
  }
2769
2769
  const Mc = {};
@@ -2923,7 +2923,7 @@ class Hf {
2923
2923
  if (e instanceof HTMLCanvasElement)
2924
2924
  n = e;
2925
2925
  else {
2926
- os === void 0 && (os = fr("canvas")), os.width = e.width, os.height = e.height;
2926
+ os === void 0 && (os = pr("canvas")), os.width = e.width, os.height = e.height;
2927
2927
  const i = os.getContext("2d");
2928
2928
  e instanceof ImageData ? i.putImageData(e, 0, 0) : i.drawImage(e, 0, 0, e.width, e.height), n = os;
2929
2929
  }
@@ -2937,7 +2937,7 @@ class Hf {
2937
2937
  */
2938
2938
  static sRGBToLinear(e) {
2939
2939
  if (typeof HTMLImageElement < "u" && e instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap) {
2940
- const t = fr("canvas");
2940
+ const t = pr("canvas");
2941
2941
  t.width = e.width, t.height = e.height;
2942
2942
  const n = t.getContext("2d");
2943
2943
  n.drawImage(e, 0, 0, e.width, e.height);
@@ -3037,7 +3037,7 @@ class rn extends ts {
3037
3037
  * @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
3038
3038
  * @param {string} [colorSpace=NoColorSpace] - The color space.
3039
3039
  */
3040
- constructor(e = rn.DEFAULT_IMAGE, t = rn.DEFAULT_MAPPING, n = zn, i = zn, r = En, a = hi, o = Pn, l = Jn, c = rn.DEFAULT_ANISOTROPY, h = Ai) {
3040
+ constructor(e = rn.DEFAULT_IMAGE, t = rn.DEFAULT_MAPPING, n = zn, i = zn, r = En, a = hi, o = Pn, l = Kn, c = rn.DEFAULT_ANISOTROPY, h = Ai) {
3041
3041
  super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: Wf++ }), this.uuid = Bn(), this.name = "", this.source = new Vl(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = n, this.wrapT = i, this.magFilter = r, this.minFilter = a, this.anisotropy = c, this.format = o, this.internalFormat = null, this.type = l, this.offset = new ke(0, 0), this.repeat = new ke(1, 1), this.center = new ke(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new ft(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(e && e.depth && e.depth > 1), this.pmremVersion = 0;
3042
3042
  }
3043
3043
  /**
@@ -3187,7 +3187,7 @@ class rn extends ts {
3187
3187
  if (this.mapping !== du) return e;
3188
3188
  if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)
3189
3189
  switch (this.wrapS) {
3190
- case qn:
3190
+ case jn:
3191
3191
  e.x = e.x - Math.floor(e.x);
3192
3192
  break;
3193
3193
  case zn:
@@ -3199,7 +3199,7 @@ class rn extends ts {
3199
3199
  }
3200
3200
  if (e.y < 0 || e.y > 1)
3201
3201
  switch (this.wrapT) {
3202
- case qn:
3202
+ case jn:
3203
3203
  e.y = e.y - Math.floor(e.y);
3204
3204
  break;
3205
3205
  case zn:
@@ -3980,7 +3980,7 @@ class qf extends rn {
3980
3980
  super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter = wn, this.minFilter = wn, this.wrapR = zn, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
3981
3981
  }
3982
3982
  }
3983
- class Kn {
3983
+ class Zn {
3984
3984
  /**
3985
3985
  * Constructs a new bounding box.
3986
3986
  *
@@ -4170,7 +4170,7 @@ class Kn {
4170
4170
  for (let a = 0, o = r.count; a < o; a++)
4171
4171
  e.isMesh === !0 ? e.getVertexPosition(a, In) : In.fromBufferAttribute(r, a), In.applyMatrix4(e.matrixWorld), this.expandByPoint(In);
4172
4172
  else
4173
- e.boundingBox !== void 0 ? (e.boundingBox === null && e.computeBoundingBox(), br.copy(e.boundingBox)) : (n.boundingBox === null && n.computeBoundingBox(), br.copy(n.boundingBox)), br.applyMatrix4(e.matrixWorld), this.union(br);
4173
+ e.boundingBox !== void 0 ? (e.boundingBox === null && e.computeBoundingBox(), Sr.copy(e.boundingBox)) : (n.boundingBox === null && n.computeBoundingBox(), Sr.copy(n.boundingBox)), Sr.applyMatrix4(e.matrixWorld), this.union(Sr);
4174
4174
  }
4175
4175
  const i = e.children;
4176
4176
  for (let r = 0, a = i.length; r < a; r++)
@@ -4247,7 +4247,7 @@ class Kn {
4247
4247
  intersectsTriangle(e) {
4248
4248
  if (this.isEmpty())
4249
4249
  return !1;
4250
- this.getCenter(Ws), Sr.subVectors(this.max, Ws), ls.subVectors(e.a, Ws), cs.subVectors(e.b, Ws), hs.subVectors(e.c, Ws), xi.subVectors(cs, ls), yi.subVectors(hs, cs), Oi.subVectors(ls, hs);
4250
+ this.getCenter(Ws), Er.subVectors(this.max, Ws), ls.subVectors(e.a, Ws), cs.subVectors(e.b, Ws), hs.subVectors(e.c, Ws), xi.subVectors(cs, ls), yi.subVectors(hs, cs), Oi.subVectors(ls, hs);
4251
4251
  let t = [
4252
4252
  0,
4253
4253
  -xi.z,
@@ -4277,7 +4277,7 @@ class Kn {
4277
4277
  Oi.x,
4278
4278
  0
4279
4279
  ];
4280
- return !qa(t, ls, cs, hs, Sr) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !qa(t, ls, cs, hs, Sr)) ? !1 : (Er.crossVectors(xi, yi), t = [Er.x, Er.y, Er.z], qa(t, ls, cs, hs, Sr));
4280
+ return !qa(t, ls, cs, hs, Er) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !qa(t, ls, cs, hs, Er)) ? !1 : (wr.crossVectors(xi, yi), t = [wr.x, wr.y, wr.z], qa(t, ls, cs, hs, Er));
4281
4281
  }
4282
4282
  /**
4283
4283
  * Clamps the given point within the bounds of this box.
@@ -4338,7 +4338,7 @@ class Kn {
4338
4338
  * @return {Box3} A reference to this bounding box.
4339
4339
  */
4340
4340
  applyMatrix4(e) {
4341
- return this.isEmpty() ? this : (ni[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(e), ni[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(e), ni[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(e), ni[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(e), ni[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(e), ni[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(e), ni[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(e), ni[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(e), this.setFromPoints(ni), this);
4341
+ return this.isEmpty() ? this : (ii[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(e), ii[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(e), ii[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(e), ii[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(e), ii[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(e), ii[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(e), ii[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(e), ii[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(e), this.setFromPoints(ii), this);
4342
4342
  }
4343
4343
  /**
4344
4344
  * Adds the given offset to both the upper and lower bounds of this bounding box,
@@ -4380,7 +4380,7 @@ class Kn {
4380
4380
  return this.min.fromArray(e.min), this.max.fromArray(e.max), this;
4381
4381
  }
4382
4382
  }
4383
- const ni = [
4383
+ const ii = [
4384
4384
  /* @__PURE__ */ new N(),
4385
4385
  /* @__PURE__ */ new N(),
4386
4386
  /* @__PURE__ */ new N(),
@@ -4389,7 +4389,7 @@ const ni = [
4389
4389
  /* @__PURE__ */ new N(),
4390
4390
  /* @__PURE__ */ new N(),
4391
4391
  /* @__PURE__ */ new N()
4392
- ], In = /* @__PURE__ */ new N(), br = /* @__PURE__ */ new Kn(), ls = /* @__PURE__ */ new N(), cs = /* @__PURE__ */ new N(), hs = /* @__PURE__ */ new N(), xi = /* @__PURE__ */ new N(), yi = /* @__PURE__ */ new N(), Oi = /* @__PURE__ */ new N(), Ws = /* @__PURE__ */ new N(), Sr = /* @__PURE__ */ new N(), Er = /* @__PURE__ */ new N(), zi = /* @__PURE__ */ new N();
4392
+ ], In = /* @__PURE__ */ new N(), Sr = /* @__PURE__ */ new Zn(), ls = /* @__PURE__ */ new N(), cs = /* @__PURE__ */ new N(), hs = /* @__PURE__ */ new N(), xi = /* @__PURE__ */ new N(), yi = /* @__PURE__ */ new N(), Oi = /* @__PURE__ */ new N(), Ws = /* @__PURE__ */ new N(), Er = /* @__PURE__ */ new N(), wr = /* @__PURE__ */ new N(), zi = /* @__PURE__ */ new N();
4393
4393
  function qa(s, e, t, n, i) {
4394
4394
  for (let r = 0, a = s.length - 3; r <= a; r += 3) {
4395
4395
  zi.fromArray(s, r);
@@ -4399,7 +4399,7 @@ function qa(s, e, t, n, i) {
4399
4399
  }
4400
4400
  return !0;
4401
4401
  }
4402
- const jf = /* @__PURE__ */ new Kn(), Xs = /* @__PURE__ */ new N(), ja = /* @__PURE__ */ new N();
4402
+ const jf = /* @__PURE__ */ new Zn(), Xs = /* @__PURE__ */ new N(), ja = /* @__PURE__ */ new N();
4403
4403
  class pi {
4404
4404
  /**
4405
4405
  * Constructs a new sphere.
@@ -4619,8 +4619,8 @@ class pi {
4619
4619
  return this.radius = e.radius, this.center.fromArray(e.center), this;
4620
4620
  }
4621
4621
  }
4622
- const ii = /* @__PURE__ */ new N(), Ya = /* @__PURE__ */ new N(), wr = /* @__PURE__ */ new N(), Mi = /* @__PURE__ */ new N(), $a = /* @__PURE__ */ new N(), Ar = /* @__PURE__ */ new N(), Ja = /* @__PURE__ */ new N();
4623
- class gr {
4622
+ const si = /* @__PURE__ */ new N(), Ya = /* @__PURE__ */ new N(), Ar = /* @__PURE__ */ new N(), Mi = /* @__PURE__ */ new N(), $a = /* @__PURE__ */ new N(), Tr = /* @__PURE__ */ new N(), Ja = /* @__PURE__ */ new N();
4623
+ class _r {
4624
4624
  /**
4625
4625
  * Constructs a new ray.
4626
4626
  *
@@ -4675,7 +4675,7 @@ class gr {
4675
4675
  * @return {Ray} A reference to this ray.
4676
4676
  */
4677
4677
  recast(e) {
4678
- return this.origin.copy(this.at(e, ii)), this;
4678
+ return this.origin.copy(this.at(e, si)), this;
4679
4679
  }
4680
4680
  /**
4681
4681
  * Returns the point along this ray that is closest to the given point.
@@ -4705,8 +4705,8 @@ class gr {
4705
4705
  * @return {number} The squared distance.
4706
4706
  */
4707
4707
  distanceSqToPoint(e) {
4708
- const t = ii.subVectors(e, this.origin).dot(this.direction);
4709
- return t < 0 ? this.origin.distanceToSquared(e) : (ii.copy(this.origin).addScaledVector(this.direction, t), ii.distanceToSquared(e));
4708
+ const t = si.subVectors(e, this.origin).dot(this.direction);
4709
+ return t < 0 ? this.origin.distanceToSquared(e) : (si.copy(this.origin).addScaledVector(this.direction, t), si.distanceToSquared(e));
4710
4710
  }
4711
4711
  /**
4712
4712
  * Returns the squared distance between this ray and the given line segment.
@@ -4718,8 +4718,8 @@ class gr {
4718
4718
  * @return {number} The squared distance.
4719
4719
  */
4720
4720
  distanceSqToSegment(e, t, n, i) {
4721
- Ya.copy(e).add(t).multiplyScalar(0.5), wr.copy(t).sub(e).normalize(), Mi.copy(this.origin).sub(Ya);
4722
- const r = e.distanceTo(t) * 0.5, a = -this.direction.dot(wr), o = Mi.dot(this.direction), l = -Mi.dot(wr), c = Mi.lengthSq(), h = Math.abs(1 - a * a);
4721
+ Ya.copy(e).add(t).multiplyScalar(0.5), Ar.copy(t).sub(e).normalize(), Mi.copy(this.origin).sub(Ya);
4722
+ const r = e.distanceTo(t) * 0.5, a = -this.direction.dot(Ar), o = Mi.dot(this.direction), l = -Mi.dot(Ar), c = Mi.lengthSq(), h = Math.abs(1 - a * a);
4723
4723
  let f, d, u, m;
4724
4724
  if (h > 0)
4725
4725
  if (f = a * l - o, d = a * o - l, m = r * h, f >= 0)
@@ -4735,7 +4735,7 @@ class gr {
4735
4735
  d <= -m ? (f = Math.max(0, -(-a * r + o)), d = f > 0 ? -r : Math.min(Math.max(-r, -l), r), u = -f * f + d * (d + 2 * l) + c) : d <= m ? (f = 0, d = Math.min(Math.max(-r, -l), r), u = d * (d + 2 * l) + c) : (f = Math.max(0, -(a * r + o)), d = f > 0 ? r : Math.min(Math.max(-r, -l), r), u = -f * f + d * (d + 2 * l) + c);
4736
4736
  else
4737
4737
  d = a > 0 ? -r : r, f = Math.max(0, -(a * d + o)), u = -f * f + d * (d + 2 * l) + c;
4738
- return n && n.copy(this.origin).addScaledVector(this.direction, f), i && i.copy(Ya).addScaledVector(wr, d), u;
4738
+ return n && n.copy(this.origin).addScaledVector(this.direction, f), i && i.copy(Ya).addScaledVector(Ar, d), u;
4739
4739
  }
4740
4740
  /**
4741
4741
  * Intersects this ray with the given sphere, returning the intersection
@@ -4746,8 +4746,8 @@ class gr {
4746
4746
  * @return {?Vector3} The intersection point.
4747
4747
  */
4748
4748
  intersectSphere(e, t) {
4749
- ii.subVectors(e.center, this.origin);
4750
- const n = ii.dot(this.direction), i = ii.dot(ii) - n * n, r = e.radius * e.radius;
4749
+ si.subVectors(e.center, this.origin);
4750
+ const n = si.dot(this.direction), i = si.dot(si) - n * n, r = e.radius * e.radius;
4751
4751
  if (i > r) return null;
4752
4752
  const a = Math.sqrt(r - i), o = n - a, l = n + a;
4753
4753
  return l < 0 ? null : o < 0 ? this.at(l, t) : this.at(o, t);
@@ -4817,7 +4817,7 @@ class gr {
4817
4817
  * @return {boolean} Whether this ray intersects with the given box or not.
4818
4818
  */
4819
4819
  intersectsBox(e) {
4820
- return this.intersectBox(e, ii) !== null;
4820
+ return this.intersectBox(e, si) !== null;
4821
4821
  }
4822
4822
  /**
4823
4823
  * Intersects this ray with the given triangle, returning the intersection
@@ -4831,7 +4831,7 @@ class gr {
4831
4831
  * @return {?Vector3} The intersection point.
4832
4832
  */
4833
4833
  intersectTriangle(e, t, n, i, r) {
4834
- $a.subVectors(t, e), Ar.subVectors(n, e), Ja.crossVectors($a, Ar);
4834
+ $a.subVectors(t, e), Tr.subVectors(n, e), Ja.crossVectors($a, Tr);
4835
4835
  let a = this.direction.dot(Ja), o;
4836
4836
  if (a > 0) {
4837
4837
  if (i) return null;
@@ -4841,7 +4841,7 @@ class gr {
4841
4841
  else
4842
4842
  return null;
4843
4843
  Mi.subVectors(this.origin, e);
4844
- const l = o * this.direction.dot(Ar.crossVectors(Mi, Ar));
4844
+ const l = o * this.direction.dot(Tr.crossVectors(Mi, Tr));
4845
4845
  if (l < 0)
4846
4846
  return null;
4847
4847
  const c = o * this.direction.dot($a.cross(Mi));
@@ -5134,7 +5134,7 @@ class it {
5134
5134
  */
5135
5135
  lookAt(e, t, n) {
5136
5136
  const i = this.elements;
5137
- return Mn.subVectors(e, t), Mn.lengthSq() === 0 && (Mn.z = 1), Mn.normalize(), bi.crossVectors(n, Mn), bi.lengthSq() === 0 && (Math.abs(n.z) === 1 ? Mn.x += 1e-4 : Mn.z += 1e-4, Mn.normalize(), bi.crossVectors(n, Mn)), bi.normalize(), Tr.crossVectors(Mn, bi), i[0] = bi.x, i[4] = Tr.x, i[8] = Mn.x, i[1] = bi.y, i[5] = Tr.y, i[9] = Mn.y, i[2] = bi.z, i[6] = Tr.z, i[10] = Mn.z, this;
5137
+ return Mn.subVectors(e, t), Mn.lengthSq() === 0 && (Mn.z = 1), Mn.normalize(), bi.crossVectors(n, Mn), bi.lengthSq() === 0 && (Math.abs(n.z) === 1 ? Mn.x += 1e-4 : Mn.z += 1e-4, Mn.normalize(), bi.crossVectors(n, Mn)), bi.normalize(), Cr.crossVectors(Mn, bi), i[0] = bi.x, i[4] = Cr.x, i[8] = Mn.x, i[1] = bi.y, i[5] = Cr.y, i[9] = Mn.y, i[2] = bi.z, i[6] = Cr.z, i[10] = Mn.z, this;
5138
5138
  }
5139
5139
  /**
5140
5140
  * Post-multiplies this matrix by the given 4x4 matrix.
@@ -5581,7 +5581,7 @@ class it {
5581
5581
  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;
5582
5582
  }
5583
5583
  }
5584
- const us = /* @__PURE__ */ new N(), Nn = /* @__PURE__ */ new it(), Yf = /* @__PURE__ */ new N(0, 0, 0), $f = /* @__PURE__ */ new N(1, 1, 1), bi = /* @__PURE__ */ new N(), Tr = /* @__PURE__ */ new N(), Mn = /* @__PURE__ */ new N(), Ec = /* @__PURE__ */ new it(), wc = /* @__PURE__ */ new Dn();
5584
+ const us = /* @__PURE__ */ new N(), Nn = /* @__PURE__ */ new it(), Yf = /* @__PURE__ */ new N(0, 0, 0), $f = /* @__PURE__ */ new N(1, 1, 1), bi = /* @__PURE__ */ new N(), Cr = /* @__PURE__ */ new N(), Mn = /* @__PURE__ */ new N(), Ec = /* @__PURE__ */ new it(), wc = /* @__PURE__ */ new Dn();
5585
5585
  class yn {
5586
5586
  /**
5587
5587
  * Constructs a new euler instance.
@@ -5853,7 +5853,7 @@ class Hl {
5853
5853
  }
5854
5854
  }
5855
5855
  let Jf = 0;
5856
- const Ac = /* @__PURE__ */ new N(), ds = /* @__PURE__ */ new Dn(), si = /* @__PURE__ */ new it(), Cr = /* @__PURE__ */ new N(), qs = /* @__PURE__ */ new N(), Kf = /* @__PURE__ */ new N(), Zf = /* @__PURE__ */ new Dn(), Tc = /* @__PURE__ */ new N(1, 0, 0), Cc = /* @__PURE__ */ new N(0, 1, 0), Rc = /* @__PURE__ */ new N(0, 0, 1), Lc = { type: "added" }, Qf = { type: "removed" }, fs = { type: "childadded", child: null }, Ka = { type: "childremoved", child: null };
5856
+ const Ac = /* @__PURE__ */ new N(), ds = /* @__PURE__ */ new Dn(), ri = /* @__PURE__ */ new it(), Rr = /* @__PURE__ */ new N(), qs = /* @__PURE__ */ new N(), Kf = /* @__PURE__ */ new N(), Zf = /* @__PURE__ */ new Dn(), Tc = /* @__PURE__ */ new N(1, 0, 0), Cc = /* @__PURE__ */ new N(0, 1, 0), Rc = /* @__PURE__ */ new N(0, 0, 1), Lc = { type: "added" }, Qf = { type: "removed" }, fs = { type: "childadded", child: null }, Ka = { type: "childremoved", child: null };
5857
5857
  class Nt extends ts {
5858
5858
  /**
5859
5859
  * Constructs a new 3D object.
@@ -6137,7 +6137,7 @@ class Nt extends ts {
6137
6137
  * @return {Vector3} The converted vector.
6138
6138
  */
6139
6139
  worldToLocal(e) {
6140
- return this.updateWorldMatrix(!0, !1), e.applyMatrix4(si.copy(this.matrixWorld).invert());
6140
+ return this.updateWorldMatrix(!0, !1), e.applyMatrix4(ri.copy(this.matrixWorld).invert());
6141
6141
  }
6142
6142
  /**
6143
6143
  * Rotates the object to face a point in world space.
@@ -6149,9 +6149,9 @@ class Nt extends ts {
6149
6149
  * @param {number} [z] - The z coordinate in world space.
6150
6150
  */
6151
6151
  lookAt(e, t, n) {
6152
- e.isVector3 ? Cr.copy(e) : Cr.set(e, t, n);
6152
+ e.isVector3 ? Rr.copy(e) : Rr.set(e, t, n);
6153
6153
  const i = this.parent;
6154
- this.updateWorldMatrix(!0, !1), qs.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? si.lookAt(qs, Cr, this.up) : si.lookAt(Cr, qs, this.up), this.quaternion.setFromRotationMatrix(si), i && (si.extractRotation(i.matrixWorld), ds.setFromRotationMatrix(si), this.quaternion.premultiply(ds.invert()));
6154
+ this.updateWorldMatrix(!0, !1), qs.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? ri.lookAt(qs, Rr, this.up) : ri.lookAt(Rr, qs, this.up), this.quaternion.setFromRotationMatrix(ri), i && (ri.extractRotation(i.matrixWorld), ds.setFromRotationMatrix(ri), this.quaternion.premultiply(ds.invert()));
6155
6155
  }
6156
6156
  /**
6157
6157
  * Adds the given 3D object as a child to this 3D object. An arbitrary number of
@@ -6220,7 +6220,7 @@ class Nt extends ts {
6220
6220
  * @return {Object3D} A reference to this instance.
6221
6221
  */
6222
6222
  attach(e) {
6223
- return this.updateWorldMatrix(!0, !1), si.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), si.multiply(e.parent.matrixWorld)), e.applyMatrix4(si), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(Lc), fs.child = e, this.dispatchEvent(fs), fs.child = null, this;
6223
+ return this.updateWorldMatrix(!0, !1), ri.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), ri.multiply(e.parent.matrixWorld)), e.applyMatrix4(ri), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(Lc), fs.child = e, this.dispatchEvent(fs), fs.child = null, this;
6224
6224
  }
6225
6225
  /**
6226
6226
  * Searches through the 3D object and its children, starting with the 3D object
@@ -6511,7 +6511,7 @@ class Nt extends ts {
6511
6511
  Nt.DEFAULT_UP = /* @__PURE__ */ new N(0, 1, 0);
6512
6512
  Nt.DEFAULT_MATRIX_AUTO_UPDATE = !0;
6513
6513
  Nt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
6514
- const Fn = /* @__PURE__ */ new N(), ri = /* @__PURE__ */ new N(), Za = /* @__PURE__ */ new N(), ai = /* @__PURE__ */ new N(), ps = /* @__PURE__ */ new N(), ms = /* @__PURE__ */ new N(), Pc = /* @__PURE__ */ new N(), Qa = /* @__PURE__ */ new N(), eo = /* @__PURE__ */ new N(), to = /* @__PURE__ */ new N(), no = /* @__PURE__ */ new vt(), io = /* @__PURE__ */ new vt(), so = /* @__PURE__ */ new vt();
6514
+ const Fn = /* @__PURE__ */ new N(), ai = /* @__PURE__ */ new N(), Za = /* @__PURE__ */ new N(), oi = /* @__PURE__ */ new N(), ps = /* @__PURE__ */ new N(), ms = /* @__PURE__ */ new N(), Pc = /* @__PURE__ */ new N(), Qa = /* @__PURE__ */ new N(), eo = /* @__PURE__ */ new N(), to = /* @__PURE__ */ new N(), no = /* @__PURE__ */ new vt(), io = /* @__PURE__ */ new vt(), so = /* @__PURE__ */ new vt();
6515
6515
  class Ln {
6516
6516
  /**
6517
6517
  * Constructs a new triangle.
@@ -6549,8 +6549,8 @@ class Ln {
6549
6549
  * @return {?Vector3} The barycentric coordinates for the given point
6550
6550
  */
6551
6551
  static getBarycoord(e, t, n, i, r) {
6552
- Fn.subVectors(i, t), ri.subVectors(n, t), Za.subVectors(e, t);
6553
- const a = Fn.dot(Fn), o = Fn.dot(ri), l = Fn.dot(Za), c = ri.dot(ri), h = ri.dot(Za), f = a * c - o * o;
6552
+ Fn.subVectors(i, t), ai.subVectors(n, t), Za.subVectors(e, t);
6553
+ const a = Fn.dot(Fn), o = Fn.dot(ai), l = Fn.dot(Za), c = ai.dot(ai), h = ai.dot(Za), f = a * c - o * o;
6554
6554
  if (f === 0)
6555
6555
  return r.set(0, 0, 0), null;
6556
6556
  const d = 1 / f, u = (c * l - o * h) * d, m = (a * h - o * l) * d;
@@ -6568,7 +6568,7 @@ class Ln {
6568
6568
  * triangle, lies within the triangle or not.
6569
6569
  */
6570
6570
  static containsPoint(e, t, n, i) {
6571
- return this.getBarycoord(e, t, n, i, ai) === null ? !1 : ai.x >= 0 && ai.y >= 0 && ai.x + ai.y <= 1;
6571
+ return this.getBarycoord(e, t, n, i, oi) === null ? !1 : oi.x >= 0 && oi.y >= 0 && oi.x + oi.y <= 1;
6572
6572
  }
6573
6573
  /**
6574
6574
  * Computes the value barycentrically interpolated for the given point on the
@@ -6585,7 +6585,7 @@ class Ln {
6585
6585
  * @return {?Vector3} The interpolated value.
6586
6586
  */
6587
6587
  static getInterpolation(e, t, n, i, r, a, o, l) {
6588
- return this.getBarycoord(e, t, n, i, ai) === null ? (l.x = 0, l.y = 0, "z" in l && (l.z = 0), "w" in l && (l.w = 0), null) : (l.setScalar(0), l.addScaledVector(r, ai.x), l.addScaledVector(a, ai.y), l.addScaledVector(o, ai.z), l);
6588
+ return this.getBarycoord(e, t, n, i, oi) === null ? (l.x = 0, l.y = 0, "z" in l && (l.z = 0), "w" in l && (l.w = 0), null) : (l.setScalar(0), l.addScaledVector(r, oi.x), l.addScaledVector(a, oi.y), l.addScaledVector(o, oi.z), l);
6589
6589
  }
6590
6590
  /**
6591
6591
  * Computes the value barycentrically interpolated for the given attribute and indices.
@@ -6611,7 +6611,7 @@ class Ln {
6611
6611
  * @return {boolean} Whether the triangle is oriented towards the given direction or not.
6612
6612
  */
6613
6613
  static isFrontFacing(e, t, n, i) {
6614
- return Fn.subVectors(n, t), ri.subVectors(e, t), Fn.cross(ri).dot(i) < 0;
6614
+ return Fn.subVectors(n, t), ai.subVectors(e, t), Fn.cross(ai).dot(i) < 0;
6615
6615
  }
6616
6616
  /**
6617
6617
  * Sets the triangle's vertices by copying the given values.
@@ -6671,7 +6671,7 @@ class Ln {
6671
6671
  * @return {number} The triangle's area.
6672
6672
  */
6673
6673
  getArea() {
6674
- return Fn.subVectors(this.c, this.b), ri.subVectors(this.a, this.b), Fn.cross(ri).length() * 0.5;
6674
+ return Fn.subVectors(this.c, this.b), ai.subVectors(this.a, this.b), Fn.cross(ai).length() * 0.5;
6675
6675
  }
6676
6676
  /**
6677
6677
  * Computes the midpoint of the triangle.
@@ -6947,7 +6947,7 @@ const Eu = {
6947
6947
  whitesmoke: 16119285,
6948
6948
  yellow: 16776960,
6949
6949
  yellowgreen: 10145074
6950
- }, Si = { h: 0, s: 0, l: 0 }, Rr = { h: 0, s: 0, l: 0 };
6950
+ }, Si = { h: 0, s: 0, l: 0 }, Lr = { h: 0, s: 0, l: 0 };
6951
6951
  function ro(s, e, t) {
6952
6952
  return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? s + (e - s) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? s + (e - s) * 6 * (2 / 3 - t) : s;
6953
6953
  }
@@ -7343,8 +7343,8 @@ class Ze {
7343
7343
  * @return {Color} A reference to this color.
7344
7344
  */
7345
7345
  lerpHSL(e, t) {
7346
- this.getHSL(Si), e.getHSL(Rr);
7347
- const n = rr(Si.h, Rr.h, t), i = rr(Si.s, Rr.s, t), r = rr(Si.l, Rr.l, t);
7346
+ this.getHSL(Si), e.getHSL(Lr);
7347
+ const n = ar(Si.h, Lr.h, t), i = ar(Si.s, Lr.s, t), r = ar(Si.l, Lr.l, t);
7348
7348
  return this.setHSL(n, i, r), this;
7349
7349
  }
7350
7350
  /**
@@ -7605,7 +7605,7 @@ class Li extends An {
7605
7605
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
7606
7606
  }
7607
7607
  }
7608
- const Wt = /* @__PURE__ */ new N(), Lr = /* @__PURE__ */ new ke();
7608
+ const Wt = /* @__PURE__ */ new N(), Pr = /* @__PURE__ */ new ke();
7609
7609
  let tp = 0;
7610
7610
  class Ht {
7611
7611
  /**
@@ -7618,7 +7618,7 @@ class Ht {
7618
7618
  constructor(e, t, n = !1) {
7619
7619
  if (Array.isArray(e))
7620
7620
  throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
7621
- this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: tp++ }), this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = n, this.usage = xl, this.updateRanges = [], this.gpuType = jn, this.version = 0;
7621
+ this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: tp++ }), this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = n, this.usage = xl, this.updateRanges = [], this.gpuType = Yn, this.version = 0;
7622
7622
  }
7623
7623
  /**
7624
7624
  * A callback function that is executed after the renderer has transferred the attribute
@@ -7705,7 +7705,7 @@ class Ht {
7705
7705
  applyMatrix3(e) {
7706
7706
  if (this.itemSize === 2)
7707
7707
  for (let t = 0, n = this.count; t < n; t++)
7708
- Lr.fromBufferAttribute(this, t), Lr.applyMatrix3(e), this.setXY(t, Lr.x, Lr.y);
7708
+ Pr.fromBufferAttribute(this, t), Pr.applyMatrix3(e), this.setXY(t, Pr.x, Pr.y);
7709
7709
  else if (this.itemSize === 3)
7710
7710
  for (let t = 0, n = this.count; t < n; t++)
7711
7711
  Wt.fromBufferAttribute(this, t), Wt.applyMatrix3(e), this.setXYZ(t, Wt.x, Wt.y, Wt.z);
@@ -7978,7 +7978,7 @@ class ut extends Ht {
7978
7978
  }
7979
7979
  }
7980
7980
  let ip = 0;
7981
- const Cn = /* @__PURE__ */ new it(), ao = /* @__PURE__ */ new Nt(), gs = /* @__PURE__ */ new N(), bn = /* @__PURE__ */ new Kn(), js = /* @__PURE__ */ new Kn(), Kt = /* @__PURE__ */ new N();
7981
+ const Cn = /* @__PURE__ */ new it(), ao = /* @__PURE__ */ new Nt(), gs = /* @__PURE__ */ new N(), bn = /* @__PURE__ */ new Zn(), js = /* @__PURE__ */ new Zn(), Kt = /* @__PURE__ */ new N();
7982
7982
  class zt extends ts {
7983
7983
  /**
7984
7984
  * Constructs a new geometry.
@@ -8229,7 +8229,7 @@ class zt extends ts {
8229
8229
  * You may need to recompute the bounding box if the geometry vertices are modified.
8230
8230
  */
8231
8231
  computeBoundingBox() {
8232
- this.boundingBox === null && (this.boundingBox = new Kn());
8232
+ this.boundingBox === null && (this.boundingBox = new Zn());
8233
8233
  const e = this.attributes.position, t = this.morphAttributes.position;
8234
8234
  if (e && e.isGLBufferAttribute) {
8235
8235
  console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.", this), this.boundingBox.set(
@@ -8508,7 +8508,7 @@ class zt extends ts {
8508
8508
  this.dispatchEvent({ type: "dispose" });
8509
8509
  }
8510
8510
  }
8511
- const Dc = /* @__PURE__ */ new it(), Bi = /* @__PURE__ */ new gr(), Pr = /* @__PURE__ */ new pi(), Uc = /* @__PURE__ */ new N(), Dr = /* @__PURE__ */ new N(), Ur = /* @__PURE__ */ new N(), Ir = /* @__PURE__ */ new N(), oo = /* @__PURE__ */ new N(), Nr = /* @__PURE__ */ new N(), Ic = /* @__PURE__ */ new N(), Fr = /* @__PURE__ */ new N();
8511
+ const Dc = /* @__PURE__ */ new it(), Bi = /* @__PURE__ */ new _r(), Dr = /* @__PURE__ */ new pi(), Uc = /* @__PURE__ */ new N(), Ur = /* @__PURE__ */ new N(), Ir = /* @__PURE__ */ new N(), Nr = /* @__PURE__ */ new N(), oo = /* @__PURE__ */ new N(), Fr = /* @__PURE__ */ new N(), Ic = /* @__PURE__ */ new N(), Or = /* @__PURE__ */ new N();
8512
8512
  class At extends Nt {
8513
8513
  /**
8514
8514
  * Constructs a new mesh.
@@ -8552,12 +8552,12 @@ class At extends Nt {
8552
8552
  t.fromBufferAttribute(i, e);
8553
8553
  const o = this.morphTargetInfluences;
8554
8554
  if (r && o) {
8555
- Nr.set(0, 0, 0);
8555
+ Fr.set(0, 0, 0);
8556
8556
  for (let l = 0, c = r.length; l < c; l++) {
8557
8557
  const h = o[l], f = r[l];
8558
- h !== 0 && (oo.fromBufferAttribute(f, e), a ? Nr.addScaledVector(oo, h) : Nr.addScaledVector(oo.sub(t), h));
8558
+ h !== 0 && (oo.fromBufferAttribute(f, e), a ? Fr.addScaledVector(oo, h) : Fr.addScaledVector(oo.sub(t), h));
8559
8559
  }
8560
- t.add(Nr);
8560
+ t.add(Fr);
8561
8561
  }
8562
8562
  return t;
8563
8563
  }
@@ -8569,7 +8569,7 @@ class At extends Nt {
8569
8569
  */
8570
8570
  raycast(e, t) {
8571
8571
  const n = this.geometry, i = this.material, r = this.matrixWorld;
8572
- i !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), Pr.copy(n.boundingSphere), Pr.applyMatrix4(r), Bi.copy(e.ray).recast(e.near), !(Pr.containsPoint(Bi.origin) === !1 && (Bi.intersectSphere(Pr, Uc) === null || Bi.origin.distanceToSquared(Uc) > (e.far - e.near) ** 2)) && (Dc.copy(r).invert(), Bi.copy(e.ray).applyMatrix4(Dc), !(n.boundingBox !== null && Bi.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, Bi)));
8572
+ i !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), Dr.copy(n.boundingSphere), Dr.applyMatrix4(r), Bi.copy(e.ray).recast(e.near), !(Dr.containsPoint(Bi.origin) === !1 && (Bi.intersectSphere(Dr, Uc) === null || Bi.origin.distanceToSquared(Uc) > (e.far - e.near) ** 2)) && (Dc.copy(r).invert(), Bi.copy(e.ray).applyMatrix4(Dc), !(n.boundingBox !== null && Bi.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, Bi)));
8573
8573
  }
8574
8574
  _computeIntersections(e, t, n) {
8575
8575
  let i;
@@ -8580,14 +8580,14 @@ class At extends Nt {
8580
8580
  const g = d[m], p = a[g.materialIndex], E = Math.max(g.start, u.start), S = Math.min(o.count, Math.min(g.start + g.count, u.start + u.count));
8581
8581
  for (let M = E, U = S; M < U; M += 3) {
8582
8582
  const R = o.getX(M), P = o.getX(M + 1), D = o.getX(M + 2);
8583
- i = Or(this, p, e, n, c, h, f, R, P, D), i && (i.faceIndex = Math.floor(M / 3), i.face.materialIndex = g.materialIndex, t.push(i));
8583
+ i = zr(this, p, e, n, c, h, f, R, P, D), i && (i.faceIndex = Math.floor(M / 3), i.face.materialIndex = g.materialIndex, t.push(i));
8584
8584
  }
8585
8585
  }
8586
8586
  else {
8587
8587
  const m = Math.max(0, u.start), _ = Math.min(o.count, u.start + u.count);
8588
8588
  for (let g = m, p = _; g < p; g += 3) {
8589
8589
  const E = o.getX(g), S = o.getX(g + 1), M = o.getX(g + 2);
8590
- i = Or(this, a, e, n, c, h, f, E, S, M), i && (i.faceIndex = Math.floor(g / 3), t.push(i));
8590
+ i = zr(this, a, e, n, c, h, f, E, S, M), i && (i.faceIndex = Math.floor(g / 3), t.push(i));
8591
8591
  }
8592
8592
  }
8593
8593
  else if (l !== void 0)
@@ -8596,35 +8596,35 @@ class At extends Nt {
8596
8596
  const g = d[m], p = a[g.materialIndex], E = Math.max(g.start, u.start), S = Math.min(l.count, Math.min(g.start + g.count, u.start + u.count));
8597
8597
  for (let M = E, U = S; M < U; M += 3) {
8598
8598
  const R = M, P = M + 1, D = M + 2;
8599
- i = Or(this, p, e, n, c, h, f, R, P, D), i && (i.faceIndex = Math.floor(M / 3), i.face.materialIndex = g.materialIndex, t.push(i));
8599
+ i = zr(this, p, e, n, c, h, f, R, P, D), i && (i.faceIndex = Math.floor(M / 3), i.face.materialIndex = g.materialIndex, t.push(i));
8600
8600
  }
8601
8601
  }
8602
8602
  else {
8603
8603
  const m = Math.max(0, u.start), _ = Math.min(l.count, u.start + u.count);
8604
8604
  for (let g = m, p = _; g < p; g += 3) {
8605
8605
  const E = g, S = g + 1, M = g + 2;
8606
- i = Or(this, a, e, n, c, h, f, E, S, M), i && (i.faceIndex = Math.floor(g / 3), t.push(i));
8606
+ i = zr(this, a, e, n, c, h, f, E, S, M), i && (i.faceIndex = Math.floor(g / 3), t.push(i));
8607
8607
  }
8608
8608
  }
8609
8609
  }
8610
8610
  }
8611
8611
  function sp(s, e, t, n, i, r, a, o) {
8612
8612
  let l;
8613
- if (e.side === pn ? l = n.intersectTriangle(a, r, i, !0, o) : l = n.intersectTriangle(i, r, a, e.side === kn, o), l === null) return null;
8614
- Fr.copy(o), Fr.applyMatrix4(s.matrixWorld);
8615
- const c = t.ray.origin.distanceTo(Fr);
8613
+ if (e.side === mn ? l = n.intersectTriangle(a, r, i, !0, o) : l = n.intersectTriangle(i, r, a, e.side === kn, o), l === null) return null;
8614
+ Or.copy(o), Or.applyMatrix4(s.matrixWorld);
8615
+ const c = t.ray.origin.distanceTo(Or);
8616
8616
  return c < t.near || c > t.far ? null : {
8617
8617
  distance: c,
8618
- point: Fr.clone(),
8618
+ point: Or.clone(),
8619
8619
  object: s
8620
8620
  };
8621
8621
  }
8622
- function Or(s, e, t, n, i, r, a, o, l, c) {
8623
- s.getVertexPosition(o, Dr), s.getVertexPosition(l, Ur), s.getVertexPosition(c, Ir);
8624
- const h = sp(s, e, t, n, Dr, Ur, Ir, Ic);
8622
+ function zr(s, e, t, n, i, r, a, o, l, c) {
8623
+ s.getVertexPosition(o, Ur), s.getVertexPosition(l, Ir), s.getVertexPosition(c, Nr);
8624
+ const h = sp(s, e, t, n, Ur, Ir, Nr, Ic);
8625
8625
  if (h) {
8626
8626
  const f = new N();
8627
- Ln.getBarycoord(Ic, Dr, Ur, Ir, f), i && (h.uv = Ln.getInterpolatedAttribute(i, o, l, c, f, new ke())), r && (h.uv1 = Ln.getInterpolatedAttribute(r, o, l, c, f, new ke())), a && (h.normal = Ln.getInterpolatedAttribute(a, o, l, c, f, new N()), h.normal.dot(n.direction) > 0 && h.normal.multiplyScalar(-1));
8627
+ Ln.getBarycoord(Ic, Ur, Ir, Nr, f), i && (h.uv = Ln.getInterpolatedAttribute(i, o, l, c, f, new ke())), r && (h.uv1 = Ln.getInterpolatedAttribute(r, o, l, c, f, new ke())), a && (h.normal = Ln.getInterpolatedAttribute(a, o, l, c, f, new N()), h.normal.dot(n.direction) > 0 && h.normal.multiplyScalar(-1));
8628
8628
  const d = {
8629
8629
  a: o,
8630
8630
  b: l,
@@ -8632,7 +8632,7 @@ function Or(s, e, t, n, i, r, a, o, l, c) {
8632
8632
  normal: new N(),
8633
8633
  materialIndex: 0
8634
8634
  };
8635
- Ln.getNormal(Dr, Ur, Ir, d.normal), h.face = d, h.barycoord = f;
8635
+ Ln.getNormal(Ur, Ir, Nr, d.normal), h.face = d, h.barycoord = f;
8636
8636
  }
8637
8637
  return h;
8638
8638
  }
@@ -8859,7 +8859,7 @@ class cn extends Cu {
8859
8859
  * @return {number} The computed focal length.
8860
8860
  */
8861
8861
  getFocalLength() {
8862
- const e = Math.tan(sr * 0.5 * this.fov);
8862
+ const e = Math.tan(rr * 0.5 * this.fov);
8863
8863
  return 0.5 * this.getFilmHeight() / e;
8864
8864
  }
8865
8865
  /**
@@ -8869,7 +8869,7 @@ class cn extends Cu {
8869
8869
  */
8870
8870
  getEffectiveFOV() {
8871
8871
  return Fs * 2 * Math.atan(
8872
- Math.tan(sr * 0.5 * this.fov) / this.zoom
8872
+ Math.tan(rr * 0.5 * this.fov) / this.zoom
8873
8873
  );
8874
8874
  }
8875
8875
  /**
@@ -8977,7 +8977,7 @@ class cn extends Cu {
8977
8977
  */
8978
8978
  updateProjectionMatrix() {
8979
8979
  const e = this.near;
8980
- let t = e * Math.tan(sr * 0.5 * this.fov) / this.zoom, n = 2 * t, i = this.aspect * n, r = -0.5 * i;
8980
+ let t = e * Math.tan(rr * 0.5 * this.fov) / this.zoom, n = 2 * t, i = this.aspect * n, r = -0.5 * i;
8981
8981
  const a = this.view;
8982
8982
  if (this.view !== null && this.view.enabled) {
8983
8983
  const l = a.fullWidth, c = a.fullHeight;
@@ -9150,7 +9150,7 @@ class cp extends es {
9150
9150
  uniforms: Os(n.uniforms),
9151
9151
  vertexShader: n.vertexShader,
9152
9152
  fragmentShader: n.fragmentShader,
9153
- side: pn,
9153
+ side: mn,
9154
9154
  blending: Ti
9155
9155
  });
9156
9156
  r.uniforms.tEquirect.value = t;
@@ -9172,7 +9172,7 @@ class cp extends es {
9172
9172
  e.setRenderTarget(r);
9173
9173
  }
9174
9174
  }
9175
- class Yn extends Nt {
9175
+ class $n extends Nt {
9176
9176
  constructor() {
9177
9177
  super(), this.isGroup = !0, this.type = "Group";
9178
9178
  }
@@ -9191,7 +9191,7 @@ class lo {
9191
9191
  * @return {Group} A group representing the hand space of the XR controller.
9192
9192
  */
9193
9193
  getHandSpace() {
9194
- return this._hand === null && (this._hand = new Yn(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand;
9194
+ return this._hand === null && (this._hand = new $n(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand;
9195
9195
  }
9196
9196
  /**
9197
9197
  * Returns a group representing the target ray space of the XR controller.
@@ -9199,7 +9199,7 @@ class lo {
9199
9199
  * @return {Group} A group representing the target ray space of the XR controller.
9200
9200
  */
9201
9201
  getTargetRaySpace() {
9202
- return this._targetRay === null && (this._targetRay = new Yn(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new N(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new N()), this._targetRay;
9202
+ return this._targetRay === null && (this._targetRay = new $n(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new N(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new N()), this._targetRay;
9203
9203
  }
9204
9204
  /**
9205
9205
  * Returns a group representing the grip space of the XR controller.
@@ -9207,7 +9207,7 @@ class lo {
9207
9207
  * @return {Group} A group representing the grip space of the XR controller.
9208
9208
  */
9209
9209
  getGripSpace() {
9210
- return this._grip === null && (this._grip = new Yn(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new N(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new N()), this._grip;
9210
+ return this._grip === null && (this._grip = new $n(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new N(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new N()), this._grip;
9211
9211
  }
9212
9212
  /**
9213
9213
  * Dispatches the given event to the groups representing
@@ -9289,7 +9289,7 @@ class lo {
9289
9289
  */
9290
9290
  _getHandJoint(e, t) {
9291
9291
  if (e.joints[t.jointName] === void 0) {
9292
- const n = new Yn();
9292
+ const n = new $n();
9293
9293
  n.matrixAutoUpdate = !1, n.visible = !1, e.joints[t.jointName] = n, e.add(n);
9294
9294
  }
9295
9295
  return e.joints[t.jointName];
@@ -9434,7 +9434,7 @@ class Pu {
9434
9434
  }
9435
9435
  }
9436
9436
  const un = /* @__PURE__ */ new N();
9437
- class $n {
9437
+ class Jn {
9438
9438
  /**
9439
9439
  * Constructs a new interleaved buffer attribute.
9440
9440
  *
@@ -9667,7 +9667,7 @@ class $n {
9667
9667
  }
9668
9668
  return new Ht(new this.array.constructor(t), this.itemSize, this.normalized);
9669
9669
  } else
9670
- return e.interleavedBuffers === void 0 && (e.interleavedBuffers = {}), e.interleavedBuffers[this.data.uuid] === void 0 && (e.interleavedBuffers[this.data.uuid] = this.data.clone(e)), new $n(e.interleavedBuffers[this.data.uuid], this.itemSize, this.offset, this.normalized);
9670
+ return e.interleavedBuffers === void 0 && (e.interleavedBuffers = {}), e.interleavedBuffers[this.data.uuid] === void 0 && (e.interleavedBuffers[this.data.uuid] = this.data.clone(e)), new Jn(e.interleavedBuffers[this.data.uuid], this.itemSize, this.offset, this.normalized);
9671
9671
  }
9672
9672
  /**
9673
9673
  * Serializes the buffer attribute into JSON.
@@ -9720,7 +9720,7 @@ class Da extends An {
9720
9720
  }
9721
9721
  }
9722
9722
  let xs;
9723
- const Ys = /* @__PURE__ */ new N(), ys = /* @__PURE__ */ new N(), Ms = /* @__PURE__ */ new N(), bs = /* @__PURE__ */ new ke(), $s = /* @__PURE__ */ new ke(), Du = /* @__PURE__ */ new it(), zr = /* @__PURE__ */ new N(), Js = /* @__PURE__ */ new N(), Br = /* @__PURE__ */ new N(), Oc = /* @__PURE__ */ new ke(), co = /* @__PURE__ */ new ke(), zc = /* @__PURE__ */ new ke();
9723
+ const Ys = /* @__PURE__ */ new N(), ys = /* @__PURE__ */ new N(), Ms = /* @__PURE__ */ new N(), bs = /* @__PURE__ */ new ke(), $s = /* @__PURE__ */ new ke(), Du = /* @__PURE__ */ new it(), Br = /* @__PURE__ */ new N(), Js = /* @__PURE__ */ new N(), kr = /* @__PURE__ */ new N(), Oc = /* @__PURE__ */ new ke(), co = /* @__PURE__ */ new ke(), zc = /* @__PURE__ */ new ke();
9724
9724
  class Wl extends Nt {
9725
9725
  /**
9726
9726
  * Constructs a new sprite.
@@ -9752,7 +9752,7 @@ class Wl extends Nt {
9752
9752
  0,
9753
9753
  1
9754
9754
  ]), n = new Pu(t, 5);
9755
- xs.setIndex([0, 1, 2, 0, 2, 3]), xs.setAttribute("position", new $n(n, 3, 0, !1)), xs.setAttribute("uv", new $n(n, 2, 3, !1));
9755
+ xs.setIndex([0, 1, 2, 0, 2, 3]), xs.setAttribute("position", new Jn(n, 3, 0, !1)), xs.setAttribute("uv", new Jn(n, 2, 3, !1));
9756
9756
  }
9757
9757
  this.geometry = xs, this.material = e, this.center = new ke(0.5, 0.5), this.count = 1;
9758
9758
  }
@@ -9768,15 +9768,15 @@ class Wl extends Nt {
9768
9768
  let i, r;
9769
9769
  n !== 0 && (r = Math.cos(n), i = Math.sin(n));
9770
9770
  const a = this.center;
9771
- kr(zr.set(-0.5, -0.5, 0), Ms, a, ys, i, r), kr(Js.set(0.5, -0.5, 0), Ms, a, ys, i, r), kr(Br.set(0.5, 0.5, 0), Ms, a, ys, i, r), Oc.set(0, 0), co.set(1, 0), zc.set(1, 1);
9772
- let o = e.ray.intersectTriangle(zr, Js, Br, !1, Ys);
9773
- if (o === null && (kr(Js.set(-0.5, 0.5, 0), Ms, a, ys, i, r), co.set(0, 1), o = e.ray.intersectTriangle(zr, Br, Js, !1, Ys), o === null))
9771
+ Vr(Br.set(-0.5, -0.5, 0), Ms, a, ys, i, r), Vr(Js.set(0.5, -0.5, 0), Ms, a, ys, i, r), Vr(kr.set(0.5, 0.5, 0), Ms, a, ys, i, r), Oc.set(0, 0), co.set(1, 0), zc.set(1, 1);
9772
+ let o = e.ray.intersectTriangle(Br, Js, kr, !1, Ys);
9773
+ if (o === null && (Vr(Js.set(-0.5, 0.5, 0), Ms, a, ys, i, r), co.set(0, 1), o = e.ray.intersectTriangle(Br, kr, Js, !1, Ys), o === null))
9774
9774
  return;
9775
9775
  const l = e.ray.origin.distanceTo(Ys);
9776
9776
  l < e.near || l > e.far || t.push({
9777
9777
  distance: l,
9778
9778
  point: Ys.clone(),
9779
- uv: Ln.getInterpolation(Ys, zr, Js, Br, Oc, co, zc, new ke()),
9779
+ uv: Ln.getInterpolation(Ys, Br, Js, kr, Oc, co, zc, new ke()),
9780
9780
  face: null,
9781
9781
  object: this
9782
9782
  });
@@ -9785,10 +9785,10 @@ class Wl extends Nt {
9785
9785
  return super.copy(e, t), e.center !== void 0 && this.center.copy(e.center), this.material = e.material, this;
9786
9786
  }
9787
9787
  }
9788
- function kr(s, e, t, n, i, r) {
9788
+ function Vr(s, e, t, n, i, r) {
9789
9789
  bs.subVectors(s, t).addScalar(0.5).multiply(n), i !== void 0 ? ($s.x = r * bs.x - i * bs.y, $s.y = i * bs.x + r * bs.y) : $s.copy(bs), s.copy(e), s.x += $s.x, s.y += $s.y, s.applyMatrix4(Du);
9790
9790
  }
9791
- const Vr = /* @__PURE__ */ new N(), Bc = /* @__PURE__ */ new N();
9791
+ const Hr = /* @__PURE__ */ new N(), Bc = /* @__PURE__ */ new N();
9792
9792
  class up extends Nt {
9793
9793
  /**
9794
9794
  * Constructs a new LOD.
@@ -9885,8 +9885,8 @@ class up extends Nt {
9885
9885
  */
9886
9886
  raycast(e, t) {
9887
9887
  if (this.levels.length > 0) {
9888
- Vr.setFromMatrixPosition(this.matrixWorld);
9889
- const i = e.ray.origin.distanceTo(Vr);
9888
+ Hr.setFromMatrixPosition(this.matrixWorld);
9889
+ const i = e.ray.origin.distanceTo(Hr);
9890
9890
  this.getObjectForDistance(i).raycast(e, t);
9891
9891
  }
9892
9892
  }
@@ -9899,8 +9899,8 @@ class up extends Nt {
9899
9899
  update(e) {
9900
9900
  const t = this.levels;
9901
9901
  if (t.length > 1) {
9902
- Vr.setFromMatrixPosition(e.matrixWorld), Bc.setFromMatrixPosition(this.matrixWorld);
9903
- const n = Vr.distanceTo(Bc) / e.zoom;
9902
+ Hr.setFromMatrixPosition(e.matrixWorld), Bc.setFromMatrixPosition(this.matrixWorld);
9903
+ const n = Hr.distanceTo(Bc) / e.zoom;
9904
9904
  t[0].object.visible = !0;
9905
9905
  let i, r;
9906
9906
  for (i = 1, r = t.length; i < r; i++) {
@@ -9929,7 +9929,7 @@ class up extends Nt {
9929
9929
  return t;
9930
9930
  }
9931
9931
  }
9932
- const kc = /* @__PURE__ */ new N(), Vc = /* @__PURE__ */ new vt(), Hc = /* @__PURE__ */ new vt(), dp = /* @__PURE__ */ new N(), Gc = /* @__PURE__ */ new it(), Hr = /* @__PURE__ */ new N(), ho = /* @__PURE__ */ new pi(), Wc = /* @__PURE__ */ new it(), uo = /* @__PURE__ */ new gr();
9932
+ const kc = /* @__PURE__ */ new N(), Vc = /* @__PURE__ */ new vt(), Hc = /* @__PURE__ */ new vt(), dp = /* @__PURE__ */ new N(), Gc = /* @__PURE__ */ new it(), Gr = /* @__PURE__ */ new N(), ho = /* @__PURE__ */ new pi(), Wc = /* @__PURE__ */ new it(), uo = /* @__PURE__ */ new _r();
9933
9933
  class fp extends At {
9934
9934
  /**
9935
9935
  * Constructs a new skinned mesh.
@@ -9948,10 +9948,10 @@ class fp extends At {
9948
9948
  */
9949
9949
  computeBoundingBox() {
9950
9950
  const e = this.geometry;
9951
- this.boundingBox === null && (this.boundingBox = new Kn()), this.boundingBox.makeEmpty();
9951
+ this.boundingBox === null && (this.boundingBox = new Zn()), this.boundingBox.makeEmpty();
9952
9952
  const t = e.getAttribute("position");
9953
9953
  for (let n = 0; n < t.count; n++)
9954
- this.getVertexPosition(n, Hr), this.boundingBox.expandByPoint(Hr);
9954
+ this.getVertexPosition(n, Gr), this.boundingBox.expandByPoint(Gr);
9955
9955
  }
9956
9956
  /**
9957
9957
  * Computes the bounding sphere of the skinned mesh, and updates {@link SkinnedMesh#boundingSphere}.
@@ -9964,7 +9964,7 @@ class fp extends At {
9964
9964
  this.boundingSphere === null && (this.boundingSphere = new pi()), this.boundingSphere.makeEmpty();
9965
9965
  const t = e.getAttribute("position");
9966
9966
  for (let n = 0; n < t.count; n++)
9967
- this.getVertexPosition(n, Hr), this.boundingSphere.expandByPoint(Hr);
9967
+ this.getVertexPosition(n, Gr), this.boundingSphere.expandByPoint(Gr);
9968
9968
  }
9969
9969
  copy(e, t) {
9970
9970
  return super.copy(e, t), this.bindMode = e.bindMode, this.bindMatrix.copy(e.bindMatrix), this.bindMatrixInverse.copy(e.bindMatrixInverse), this.skeleton = e.skeleton, e.boundingBox !== null && (this.boundingBox = e.boundingBox.clone()), e.boundingSphere !== null && (this.boundingSphere = e.boundingSphere.clone()), this;
@@ -10138,7 +10138,7 @@ class Xl {
10138
10138
  e = Math.ceil(e / 4) * 4, e = Math.max(e, 4);
10139
10139
  const t = new Float32Array(e * e * 4);
10140
10140
  t.set(this.boneMatrices);
10141
- const n = new Iu(t, e, e, Pn, jn);
10141
+ const n = new Iu(t, e, e, Pn, Yn);
10142
10142
  return n.needsUpdate = !0, this.boneMatrices = t, this.boneTexture = n, this;
10143
10143
  }
10144
10144
  /**
@@ -10416,7 +10416,7 @@ class Xi {
10416
10416
  return new this.constructor().copy(this);
10417
10417
  }
10418
10418
  }
10419
- const ki = /* @__PURE__ */ new pi(), Gr = /* @__PURE__ */ new N();
10419
+ const ki = /* @__PURE__ */ new pi(), Wr = /* @__PURE__ */ new N();
10420
10420
  class ql {
10421
10421
  /**
10422
10422
  * Constructs a new frustum.
@@ -10524,7 +10524,7 @@ class ql {
10524
10524
  const t = this.planes;
10525
10525
  for (let n = 0; n < 6; n++) {
10526
10526
  const i = t[n];
10527
- if (Gr.x = i.normal.x > 0 ? e.max.x : e.min.x, Gr.y = i.normal.y > 0 ? e.max.y : e.min.y, Gr.z = i.normal.z > 0 ? e.max.z : e.min.z, i.distanceToPoint(Gr) < 0)
10527
+ if (Wr.x = i.normal.x > 0 ? e.max.x : e.min.x, Wr.y = i.normal.y > 0 ? e.max.y : e.min.y, Wr.z = i.normal.z > 0 ? e.max.z : e.min.z, i.distanceToPoint(Wr) < 0)
10528
10528
  return !1;
10529
10529
  }
10530
10530
  return !0;
@@ -10568,7 +10568,7 @@ class Ri extends An {
10568
10568
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
10569
10569
  }
10570
10570
  }
10571
- const Ea = /* @__PURE__ */ new N(), wa = /* @__PURE__ */ new N(), qc = /* @__PURE__ */ new it(), Ks = /* @__PURE__ */ new gr(), Wr = /* @__PURE__ */ new pi(), po = /* @__PURE__ */ new N(), jc = /* @__PURE__ */ new N();
10571
+ const Ea = /* @__PURE__ */ new N(), wa = /* @__PURE__ */ new N(), qc = /* @__PURE__ */ new it(), Ks = /* @__PURE__ */ new _r(), Xr = /* @__PURE__ */ new pi(), po = /* @__PURE__ */ new N(), jc = /* @__PURE__ */ new N();
10572
10572
  class jl extends Nt {
10573
10573
  /**
10574
10574
  * Constructs a new line.
@@ -10608,27 +10608,27 @@ class jl extends Nt {
10608
10608
  */
10609
10609
  raycast(e, t) {
10610
10610
  const n = this.geometry, i = this.matrixWorld, r = e.params.Line.threshold, a = n.drawRange;
10611
- if (n.boundingSphere === null && n.computeBoundingSphere(), Wr.copy(n.boundingSphere), Wr.applyMatrix4(i), Wr.radius += r, e.ray.intersectsSphere(Wr) === !1) return;
10611
+ if (n.boundingSphere === null && n.computeBoundingSphere(), Xr.copy(n.boundingSphere), Xr.applyMatrix4(i), Xr.radius += r, e.ray.intersectsSphere(Xr) === !1) return;
10612
10612
  qc.copy(i).invert(), Ks.copy(e.ray).applyMatrix4(qc);
10613
10613
  const o = r / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = this.isLineSegments ? 2 : 1, h = n.index, d = n.attributes.position;
10614
10614
  if (h !== null) {
10615
10615
  const u = Math.max(0, a.start), m = Math.min(h.count, a.start + a.count);
10616
10616
  for (let _ = u, g = m - 1; _ < g; _ += c) {
10617
- const p = h.getX(_), E = h.getX(_ + 1), S = Xr(this, e, Ks, l, p, E, _);
10617
+ const p = h.getX(_), E = h.getX(_ + 1), S = qr(this, e, Ks, l, p, E, _);
10618
10618
  S && t.push(S);
10619
10619
  }
10620
10620
  if (this.isLineLoop) {
10621
- const _ = h.getX(m - 1), g = h.getX(u), p = Xr(this, e, Ks, l, _, g, m - 1);
10621
+ const _ = h.getX(m - 1), g = h.getX(u), p = qr(this, e, Ks, l, _, g, m - 1);
10622
10622
  p && t.push(p);
10623
10623
  }
10624
10624
  } else {
10625
10625
  const u = Math.max(0, a.start), m = Math.min(d.count, a.start + a.count);
10626
10626
  for (let _ = u, g = m - 1; _ < g; _ += c) {
10627
- const p = Xr(this, e, Ks, l, _, _ + 1, _);
10627
+ const p = qr(this, e, Ks, l, _, _ + 1, _);
10628
10628
  p && t.push(p);
10629
10629
  }
10630
10630
  if (this.isLineLoop) {
10631
- const _ = Xr(this, e, Ks, l, m - 1, u, m - 1);
10631
+ const _ = qr(this, e, Ks, l, m - 1, u, m - 1);
10632
10632
  _ && t.push(_);
10633
10633
  }
10634
10634
  }
@@ -10651,7 +10651,7 @@ class jl extends Nt {
10651
10651
  }
10652
10652
  }
10653
10653
  }
10654
- function Xr(s, e, t, n, i, r, a) {
10654
+ function qr(s, e, t, n, i, r, a) {
10655
10655
  const o = s.geometry.attributes.position;
10656
10656
  if (Ea.fromBufferAttribute(o, i), wa.fromBufferAttribute(o, r), t.distanceSqToSegment(Ea, wa, po, jc) > n) return;
10657
10657
  po.applyMatrix4(s.matrixWorld);
@@ -10709,8 +10709,8 @@ class Ki extends An {
10709
10709
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
10710
10710
  }
10711
10711
  }
10712
- const Jc = /* @__PURE__ */ new it(), yl = /* @__PURE__ */ new gr(), qr = /* @__PURE__ */ new pi(), jr = /* @__PURE__ */ new N();
10713
- class ar extends Nt {
10712
+ const Jc = /* @__PURE__ */ new it(), yl = /* @__PURE__ */ new _r(), jr = /* @__PURE__ */ new pi(), Yr = /* @__PURE__ */ new N();
10713
+ class or extends Nt {
10714
10714
  /**
10715
10715
  * Constructs a new point cloud.
10716
10716
  *
@@ -10731,19 +10731,19 @@ class ar extends Nt {
10731
10731
  */
10732
10732
  raycast(e, t) {
10733
10733
  const n = this.geometry, i = this.matrixWorld, r = e.params.Points.threshold, a = n.drawRange;
10734
- if (n.boundingSphere === null && n.computeBoundingSphere(), qr.copy(n.boundingSphere), qr.applyMatrix4(i), qr.radius += r, e.ray.intersectsSphere(qr) === !1) return;
10734
+ if (n.boundingSphere === null && n.computeBoundingSphere(), jr.copy(n.boundingSphere), jr.applyMatrix4(i), jr.radius += r, e.ray.intersectsSphere(jr) === !1) return;
10735
10735
  Jc.copy(i).invert(), yl.copy(e.ray).applyMatrix4(Jc);
10736
10736
  const o = r / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = n.index, f = n.attributes.position;
10737
10737
  if (c !== null) {
10738
10738
  const d = Math.max(0, a.start), u = Math.min(c.count, a.start + a.count);
10739
10739
  for (let m = d, _ = u; m < _; m++) {
10740
10740
  const g = c.getX(m);
10741
- jr.fromBufferAttribute(f, g), Kc(jr, g, l, i, e, t, this);
10741
+ Yr.fromBufferAttribute(f, g), Kc(Yr, g, l, i, e, t, this);
10742
10742
  }
10743
10743
  } else {
10744
10744
  const d = Math.max(0, a.start), u = Math.min(f.count, a.start + a.count);
10745
10745
  for (let m = d, _ = u; m < _; m++)
10746
- jr.fromBufferAttribute(f, m), Kc(jr, m, l, i, e, t, this);
10746
+ Yr.fromBufferAttribute(f, m), Kc(Yr, m, l, i, e, t, this);
10747
10747
  }
10748
10748
  }
10749
10749
  /**
@@ -10817,8 +10817,8 @@ class Nu extends rn {
10817
10817
  * @param {number} [format=DepthFormat] - The texture format.
10818
10818
  * @param {number} [depth=1] - The depth of the texture.
10819
10819
  */
10820
- constructor(e, t, n = Qi, i, r, a, o = wn, l = wn, c, h = ur, f = 1) {
10821
- if (h !== ur && h !== dr)
10820
+ constructor(e, t, n = Qi, i, r, a, o = wn, l = wn, c, h = dr, f = 1) {
10821
+ if (h !== dr && h !== fr)
10822
10822
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
10823
10823
  const d = { width: e, height: t, depth: f };
10824
10824
  super(d, i, r, a, o, l, h, n, c), this.isDepthTexture = !0, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
@@ -11231,7 +11231,7 @@ function $l() {
11231
11231
  }
11232
11232
  };
11233
11233
  }
11234
- const Yr = /* @__PURE__ */ new N(), mo = /* @__PURE__ */ new $l(), go = /* @__PURE__ */ new $l(), _o = /* @__PURE__ */ new $l();
11234
+ const $r = /* @__PURE__ */ new N(), mo = /* @__PURE__ */ new $l(), go = /* @__PURE__ */ new $l(), _o = /* @__PURE__ */ new $l();
11235
11235
  class xp extends mi {
11236
11236
  /**
11237
11237
  * Constructs a new Catmull-Rom curve.
@@ -11256,9 +11256,9 @@ class xp extends mi {
11256
11256
  let o = Math.floor(a), l = a - o;
11257
11257
  this.closed ? o += o > 0 ? 0 : (Math.floor(Math.abs(o) / r) + 1) * r : l === 0 && o === r - 1 && (o = r - 2, l = 1);
11258
11258
  let c, h;
11259
- this.closed || o > 0 ? c = i[(o - 1) % r] : (Yr.subVectors(i[0], i[1]).add(i[0]), c = Yr);
11259
+ this.closed || o > 0 ? c = i[(o - 1) % r] : ($r.subVectors(i[0], i[1]).add(i[0]), c = $r);
11260
11260
  const f = i[o % r], d = i[(o + 1) % r];
11261
- if (this.closed || o + 2 < r ? h = i[(o + 2) % r] : (Yr.subVectors(i[r - 1], i[r - 2]).add(i[r - 1]), h = Yr), this.curveType === "centripetal" || this.curveType === "chordal") {
11261
+ if (this.closed || o + 2 < r ? h = i[(o + 2) % r] : ($r.subVectors(i[r - 1], i[r - 2]).add(i[r - 1]), h = $r), this.curveType === "centripetal" || this.curveType === "chordal") {
11262
11262
  const u = this.curveType === "chordal" ? 0.5 : 0.25;
11263
11263
  let m = Math.pow(c.distanceToSquared(f), u), _ = Math.pow(f.distanceToSquared(d), u), g = Math.pow(d.distanceToSquared(h), u);
11264
11264
  _ < 1e-4 && (_ = 1), m < 1e-4 && (m = _), g < 1e-4 && (g = _), mo.initNonuniformCatmullRom(c.x, f.x, d.x, h.x, m, _, g), go.initNonuniformCatmullRom(c.y, f.y, d.y, h.y, m, _, g), _o.initNonuniformCatmullRom(c.z, f.z, d.z, h.z, m, _, g);
@@ -11309,7 +11309,7 @@ function Mp(s, e) {
11309
11309
  function bp(s, e) {
11310
11310
  return s * s * e;
11311
11311
  }
11312
- function or(s, e, t, n) {
11312
+ function lr(s, e, t, n) {
11313
11313
  return yp(s, e) + Mp(s, t) + bp(s, n);
11314
11314
  }
11315
11315
  function Sp(s, e) {
@@ -11326,7 +11326,7 @@ function wp(s, e) {
11326
11326
  function Ap(s, e) {
11327
11327
  return s * s * s * e;
11328
11328
  }
11329
- function lr(s, e, t, n, i) {
11329
+ function cr(s, e, t, n, i) {
11330
11330
  return Sp(s, e) + Ep(s, t) + wp(s, n) + Ap(s, i);
11331
11331
  }
11332
11332
  class Tp extends mi {
@@ -11351,8 +11351,8 @@ class Tp extends mi {
11351
11351
  getPoint(e, t = new ke()) {
11352
11352
  const n = t, i = this.v0, r = this.v1, a = this.v2, o = this.v3;
11353
11353
  return n.set(
11354
- lr(e, i.x, r.x, a.x, o.x),
11355
- lr(e, i.y, r.y, a.y, o.y)
11354
+ cr(e, i.x, r.x, a.x, o.x),
11355
+ cr(e, i.y, r.y, a.y, o.y)
11356
11356
  ), n;
11357
11357
  }
11358
11358
  copy(e) {
@@ -11388,9 +11388,9 @@ class Cp extends mi {
11388
11388
  getPoint(e, t = new N()) {
11389
11389
  const n = t, i = this.v0, r = this.v1, a = this.v2, o = this.v3;
11390
11390
  return n.set(
11391
- lr(e, i.x, r.x, a.x, o.x),
11392
- lr(e, i.y, r.y, a.y, o.y),
11393
- lr(e, i.z, r.z, a.z, o.z)
11391
+ cr(e, i.x, r.x, a.x, o.x),
11392
+ cr(e, i.y, r.y, a.y, o.y),
11393
+ cr(e, i.z, r.z, a.z, o.z)
11394
11394
  ), n;
11395
11395
  }
11396
11396
  copy(e) {
@@ -11509,8 +11509,8 @@ class Pp extends mi {
11509
11509
  getPoint(e, t = new ke()) {
11510
11510
  const n = t, i = this.v0, r = this.v1, a = this.v2;
11511
11511
  return n.set(
11512
- or(e, i.x, r.x, a.x),
11513
- or(e, i.y, r.y, a.y)
11512
+ lr(e, i.x, r.x, a.x),
11513
+ lr(e, i.y, r.y, a.y)
11514
11514
  ), n;
11515
11515
  }
11516
11516
  copy(e) {
@@ -11545,9 +11545,9 @@ class Ou extends mi {
11545
11545
  getPoint(e, t = new N()) {
11546
11546
  const n = t, i = this.v0, r = this.v1, a = this.v2;
11547
11547
  return n.set(
11548
- or(e, i.x, r.x, a.x),
11549
- or(e, i.y, r.y, a.y),
11550
- or(e, i.z, r.z, a.z)
11548
+ lr(e, i.x, r.x, a.x),
11549
+ lr(e, i.y, r.y, a.y),
11550
+ lr(e, i.z, r.z, a.z)
11551
11551
  ), n;
11552
11552
  }
11553
11553
  copy(e) {
@@ -11942,7 +11942,7 @@ class zp extends An {
11942
11942
  return super.copy(e), this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this;
11943
11943
  }
11944
11944
  }
11945
- function $r(s, e) {
11945
+ function Jr(s, e) {
11946
11946
  return !s || s.constructor === e ? s : typeof e.BYTES_PER_ELEMENT == "number" ? new e(s) : Array.prototype.slice.call(s);
11947
11947
  }
11948
11948
  function Bp(s) {
@@ -12191,7 +12191,7 @@ class Hn {
12191
12191
  constructor(e, t, n, i) {
12192
12192
  if (e === void 0) throw new Error("THREE.KeyframeTrack: track name is undefined");
12193
12193
  if (t === void 0 || t.length === 0) throw new Error("THREE.KeyframeTrack: no keyframes in track named " + e);
12194
- this.name = e, this.times = $r(t, this.TimeBufferType), this.values = $r(n, this.ValueBufferType), this.setInterpolation(i || this.DefaultInterpolation);
12194
+ this.name = e, this.times = Jr(t, this.TimeBufferType), this.values = Jr(n, this.ValueBufferType), this.setInterpolation(i || this.DefaultInterpolation);
12195
12195
  }
12196
12196
  /**
12197
12197
  * Converts the keyframe track to JSON.
@@ -12208,8 +12208,8 @@ class Hn {
12208
12208
  else {
12209
12209
  n = {
12210
12210
  name: e.name,
12211
- times: $r(e.times, Array),
12212
- values: $r(e.values, Array)
12211
+ times: Jr(e.times, Array),
12212
+ values: Jr(e.values, Array)
12213
12213
  };
12214
12214
  const i = e.getInterpolation();
12215
12215
  i !== e.DefaultInterpolation && (n.interpolation = i);
@@ -12511,7 +12511,7 @@ class Wp extends Na {
12511
12511
  return r;
12512
12512
  }
12513
12513
  }
12514
- class _r extends Hn {
12514
+ class vr extends Hn {
12515
12515
  /**
12516
12516
  * Constructs a new Quaternion keyframe track.
12517
12517
  *
@@ -12534,8 +12534,8 @@ class _r extends Hn {
12534
12534
  return new Wp(this.times, this.values, this.getValueSize(), e);
12535
12535
  }
12536
12536
  }
12537
- _r.prototype.ValueTypeName = "quaternion";
12538
- _r.prototype.InterpolantFactoryMethodSmooth = void 0;
12537
+ vr.prototype.ValueTypeName = "quaternion";
12538
+ vr.prototype.InterpolantFactoryMethodSmooth = void 0;
12539
12539
  class ks extends Hn {
12540
12540
  /**
12541
12541
  * Constructs a new string keyframe track.
@@ -12752,7 +12752,7 @@ class th {
12752
12752
  "pos",
12753
12753
  i
12754
12754
  ), n(
12755
- _r,
12755
+ vr,
12756
12756
  u + ".quaternion",
12757
12757
  d,
12758
12758
  "rot",
@@ -12851,7 +12851,7 @@ function Xp(s) {
12851
12851
  case "color":
12852
12852
  return ku;
12853
12853
  case "quaternion":
12854
- return _r;
12854
+ return vr;
12855
12855
  case "bool":
12856
12856
  case "boolean":
12857
12857
  return Bs;
@@ -13057,7 +13057,7 @@ class Vn {
13057
13057
  }
13058
13058
  }
13059
13059
  Vn.DEFAULT_MATERIAL_NAME = "__DEFAULT";
13060
- const oi = {};
13060
+ const li = {};
13061
13061
  class Yp extends Error {
13062
13062
  constructor(e, t) {
13063
13063
  super(e), this.response = t;
@@ -13088,15 +13088,15 @@ class Vs extends Vn {
13088
13088
  return this.manager.itemStart(e), setTimeout(() => {
13089
13089
  t && t(r), this.manager.itemEnd(e);
13090
13090
  }, 0), r;
13091
- if (oi[e] !== void 0) {
13092
- oi[e].push({
13091
+ if (li[e] !== void 0) {
13092
+ li[e].push({
13093
13093
  onLoad: t,
13094
13094
  onProgress: n,
13095
13095
  onError: i
13096
13096
  });
13097
13097
  return;
13098
13098
  }
13099
- oi[e] = [], oi[e].push({
13099
+ li[e] = [], li[e].push({
13100
13100
  onLoad: t,
13101
13101
  onProgress: n,
13102
13102
  onError: i
@@ -13110,7 +13110,7 @@ class Vs extends Vn {
13110
13110
  if (c.status === 200 || c.status === 0) {
13111
13111
  if (c.status === 0 && console.warn("THREE.FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || c.body === void 0 || c.body.getReader === void 0)
13112
13112
  return c;
13113
- const h = oi[e], f = c.body.getReader(), d = c.headers.get("X-File-Size") || c.headers.get("Content-Length"), u = d ? parseInt(d) : 0, m = u !== 0;
13113
+ const h = li[e], f = c.body.getReader(), d = c.headers.get("X-File-Size") || c.headers.get("Content-Length"), u = d ? parseInt(d) : 0, m = u !== 0;
13114
13114
  let _ = 0;
13115
13115
  const g = new ReadableStream({
13116
13116
  start(p) {
@@ -13157,17 +13157,17 @@ class Vs extends Vn {
13157
13157
  }
13158
13158
  }).then((c) => {
13159
13159
  Ca.add(e, c);
13160
- const h = oi[e];
13161
- delete oi[e];
13160
+ const h = li[e];
13161
+ delete li[e];
13162
13162
  for (let f = 0, d = h.length; f < d; f++) {
13163
13163
  const u = h[f];
13164
13164
  u.onLoad && u.onLoad(c);
13165
13165
  }
13166
13166
  }).catch((c) => {
13167
- const h = oi[e];
13167
+ const h = li[e];
13168
13168
  if (h === void 0)
13169
13169
  throw this.manager.itemError(e), c;
13170
- delete oi[e];
13170
+ delete li[e];
13171
13171
  for (let f = 0, d = h.length; f < d; f++) {
13172
13172
  const u = h[f];
13173
13173
  u.onError && u.onError(c);
@@ -13224,7 +13224,7 @@ class $p extends Vn {
13224
13224
  return r.manager.itemStart(e), setTimeout(function() {
13225
13225
  t && t(a), r.manager.itemEnd(e);
13226
13226
  }, 0), a;
13227
- const o = fr("img");
13227
+ const o = pr("img");
13228
13228
  function l() {
13229
13229
  h(), Ca.add(e, this), t && t(this), r.manager.itemEnd(e);
13230
13230
  }
@@ -13304,7 +13304,7 @@ class Kl extends Vn {
13304
13304
  }, n, i), r;
13305
13305
  }
13306
13306
  }
13307
- class vr extends Nt {
13307
+ class xr extends Nt {
13308
13308
  /**
13309
13309
  * Constructs a new light.
13310
13310
  *
@@ -13328,7 +13328,7 @@ class vr extends Nt {
13328
13328
  return t.object.color = this.color.getHex(), t.object.intensity = this.intensity, this.groundColor !== void 0 && (t.object.groundColor = this.groundColor.getHex()), this.distance !== void 0 && (t.object.distance = this.distance), this.angle !== void 0 && (t.object.angle = this.angle), this.decay !== void 0 && (t.object.decay = this.decay), this.penumbra !== void 0 && (t.object.penumbra = this.penumbra), this.shadow !== void 0 && (t.object.shadow = this.shadow.toJSON()), this.target !== void 0 && (t.object.target = this.target.uuid), t;
13329
13329
  }
13330
13330
  }
13331
- class c_ extends vr {
13331
+ class c_ extends xr {
13332
13332
  /**
13333
13333
  * Constructs a new hemisphere light.
13334
13334
  *
@@ -13351,7 +13351,7 @@ class Zl {
13351
13351
  * @param {Camera} camera - The light's view of the world.
13352
13352
  */
13353
13353
  constructor(e) {
13354
- this.camera = e, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new ke(512, 512), this.mapType = Jn, this.map = null, this.mapPass = null, this.matrix = new it(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new ql(), this._frameExtents = new ke(1, 1), this._viewportCount = 1, this._viewports = [
13354
+ this.camera = e, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new ke(512, 512), this.mapType = Kn, this.map = null, this.mapPass = null, this.matrix = new it(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new ql(), this._frameExtents = new ke(1, 1), this._viewportCount = 1, this._viewports = [
13355
13355
  new vt(0, 0, 1, 1)
13356
13356
  ];
13357
13357
  }
@@ -13465,7 +13465,7 @@ class Kp extends Zl {
13465
13465
  return super.copy(e), this.focus = e.focus, this;
13466
13466
  }
13467
13467
  }
13468
- class Zp extends vr {
13468
+ class Zp extends xr {
13469
13469
  /**
13470
13470
  * Constructs a new spot light.
13471
13471
  *
@@ -13556,7 +13556,7 @@ class Qp extends Zl {
13556
13556
  r !== n.far && (n.far = r, n.updateProjectionMatrix()), Zs.setFromMatrixPosition(e.matrixWorld), n.position.copy(Zs), xo.copy(n.position), xo.add(this._cubeDirections[t]), n.up.copy(this._cubeUps[t]), n.lookAt(xo), n.updateMatrixWorld(), i.makeTranslation(-Zs.x, -Zs.y, -Zs.z), sh.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse), this._frustum.setFromProjectionMatrix(sh);
13557
13557
  }
13558
13558
  }
13559
- class e0 extends vr {
13559
+ class e0 extends xr {
13560
13560
  /**
13561
13561
  * Constructs a new point light.
13562
13562
  *
@@ -13659,7 +13659,7 @@ class t0 extends Zl {
13659
13659
  super(new Fa(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
13660
13660
  }
13661
13661
  }
13662
- class n0 extends vr {
13662
+ class n0 extends xr {
13663
13663
  /**
13664
13664
  * Constructs a new directional light.
13665
13665
  *
@@ -13676,7 +13676,7 @@ class n0 extends vr {
13676
13676
  return super.copy(e), this.target = e.target.clone(), this.shadow = e.shadow.clone(), this;
13677
13677
  }
13678
13678
  }
13679
- class i0 extends vr {
13679
+ class i0 extends xr {
13680
13680
  /**
13681
13681
  * Constructs a new ambient light.
13682
13682
  *
@@ -13820,7 +13820,7 @@ class o0 {
13820
13820
  * @param {number} [far=Infinity] - All results returned are closer than far. Far can't be lower than near.
13821
13821
  */
13822
13822
  constructor(e, t, n = 0, i = 1 / 0) {
13823
- this.ray = new gr(e, t), this.near = n, this.far = i, this.camera = null, this.layers = new Hl(), this.params = {
13823
+ this.ray = new _r(e, t), this.near = n, this.far = i, this.camera = null, this.layers = new Hl(), this.params = {
13824
13824
  Mesh: {},
13825
13825
  Line: { threshold: 1 },
13826
13826
  LOD: {},
@@ -13991,7 +13991,7 @@ class l0 {
13991
13991
  return new this.constructor().copy(this);
13992
13992
  }
13993
13993
  }
13994
- const lh = /* @__PURE__ */ new N(), Jr = /* @__PURE__ */ new N();
13994
+ const lh = /* @__PURE__ */ new N(), Kr = /* @__PURE__ */ new N();
13995
13995
  class c0 {
13996
13996
  /**
13997
13997
  * Constructs a new line segment.
@@ -14073,9 +14073,9 @@ class c0 {
14073
14073
  * @return {number} The point parameter.
14074
14074
  */
14075
14075
  closestPointToPointParameter(e, t) {
14076
- lh.subVectors(e, this.start), Jr.subVectors(this.end, this.start);
14077
- const n = Jr.dot(Jr);
14078
- let r = Jr.dot(lh) / n;
14076
+ lh.subVectors(e, this.start), Kr.subVectors(this.end, this.start);
14077
+ const n = Kr.dot(Kr);
14078
+ let r = Kr.dot(lh) / n;
14079
14079
  return t && (r = pt(r, 0, 1)), r;
14080
14080
  }
14081
14081
  /**
@@ -14278,19 +14278,19 @@ function ch(s, e, t, n) {
14278
14278
  }
14279
14279
  function h0(s) {
14280
14280
  switch (s) {
14281
- case Jn:
14281
+ case Kn:
14282
14282
  case fu:
14283
14283
  return { byteLength: 1, components: 1 };
14284
- case cr:
14284
+ case hr:
14285
14285
  case pu:
14286
- case mr:
14286
+ case gr:
14287
14287
  return { byteLength: 2, components: 1 };
14288
14288
  case Nl:
14289
14289
  case Fl:
14290
14290
  return { byteLength: 2, components: 4 };
14291
14291
  case Qi:
14292
14292
  case Il:
14293
- case jn:
14293
+ case Yn:
14294
14294
  return { byteLength: 4, components: 1 };
14295
14295
  case mu:
14296
14296
  return { byteLength: 4, components: 3 };
@@ -18528,7 +18528,7 @@ xn.physical = {
18528
18528
  vertexShader: mt.meshphysical_vert,
18529
18529
  fragmentShader: mt.meshphysical_frag
18530
18530
  };
18531
- const Kr = { r: 0, b: 0, g: 0 }, Vi = /* @__PURE__ */ new yn(), X1 = /* @__PURE__ */ new it();
18531
+ const Zr = { r: 0, b: 0, g: 0 }, Vi = /* @__PURE__ */ new yn(), X1 = /* @__PURE__ */ new it();
18532
18532
  function q1(s, e, t, n, i, r, a) {
18533
18533
  const o = new Ze(0);
18534
18534
  let l = r === !0 ? 0 : 1, c, h, f = null, d = 0, u = null;
@@ -18552,7 +18552,7 @@ function q1(s, e, t, n, i, r, a) {
18552
18552
  uniforms: Os(xn.backgroundCube.uniforms),
18553
18553
  vertexShader: xn.backgroundCube.vertexShader,
18554
18554
  fragmentShader: xn.backgroundCube.fragmentShader,
18555
- side: pn,
18555
+ side: mn,
18556
18556
  depthTest: !1,
18557
18557
  depthWrite: !1,
18558
18558
  fog: !1,
@@ -18584,7 +18584,7 @@ function q1(s, e, t, n, i, r, a) {
18584
18584
  }), i.update(c)), c.material.uniforms.t2D.value = U, c.material.uniforms.backgroundIntensity.value = M.backgroundIntensity, c.material.toneMapped = gt.getTransfer(U.colorSpace) !== It, U.matrixAutoUpdate === !0 && U.updateMatrix(), c.material.uniforms.uvTransform.value.copy(U.matrix), (f !== U || d !== U.version || u !== s.toneMapping) && (c.material.needsUpdate = !0, f = U, d = U.version, u = s.toneMapping), c.layers.enableAll(), S.unshift(c, c.geometry, c.material, 0, 0, null));
18585
18585
  }
18586
18586
  function p(S, M) {
18587
- S.getRGB(Kr, Tu(s)), n.buffers.color.setClear(Kr.r, Kr.g, Kr.b, M, a);
18587
+ S.getRGB(Zr, Tu(s)), n.buffers.color.setClear(Zr.r, Zr.g, Zr.b, M, a);
18588
18588
  }
18589
18589
  function E() {
18590
18590
  h !== void 0 && (h.geometry.dispose(), h.material.dispose(), h = void 0), c !== void 0 && (c.geometry.dispose(), c.material.dispose(), c = void 0);
@@ -18870,9 +18870,9 @@ function $1(s, e, t, n) {
18870
18870
  return !(P !== Pn && n.convert(P) !== s.getParameter(s.IMPLEMENTATION_COLOR_READ_FORMAT));
18871
18871
  }
18872
18872
  function o(P) {
18873
- const D = P === mr && (e.has("EXT_color_buffer_half_float") || e.has("EXT_color_buffer_float"));
18874
- return !(P !== Jn && n.convert(P) !== s.getParameter(s.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
18875
- P !== jn && !D);
18873
+ const D = P === gr && (e.has("EXT_color_buffer_half_float") || e.has("EXT_color_buffer_float"));
18874
+ return !(P !== Kn && n.convert(P) !== s.getParameter(s.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
18875
+ P !== Yn && !D);
18876
18876
  }
18877
18877
  function l(P) {
18878
18878
  if (P === "highp") {
@@ -19094,7 +19094,7 @@ class fh {
19094
19094
  this._lodPlanes[e].dispose();
19095
19095
  }
19096
19096
  _cleanup(e) {
19097
- this._renderer.setRenderTarget(Mo, bo, So), this._renderer.xr.enabled = Eo, e.scissorTest = !1, Zr(e, 0, 0, e.width, e.height);
19097
+ this._renderer.setRenderTarget(Mo, bo, So), this._renderer.xr.enabled = Eo, e.scissorTest = !1, Qr(e, 0, 0, e.width, e.height);
19098
19098
  }
19099
19099
  _fromTexture(e, t) {
19100
19100
  e.mapping === Us || e.mapping === Is ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), Mo = this._renderer.getRenderTarget(), bo = this._renderer.getActiveCubeFace(), So = this._renderer.getActiveMipmapLevel(), Eo = this._renderer.xr.enabled, this._renderer.xr.enabled = !1;
@@ -19106,7 +19106,7 @@ class fh {
19106
19106
  magFilter: En,
19107
19107
  minFilter: En,
19108
19108
  generateMipmaps: !1,
19109
- type: mr,
19109
+ type: gr,
19110
19110
  format: Pn,
19111
19111
  colorSpace: Ns,
19112
19112
  depthBuffer: !1
@@ -19127,7 +19127,7 @@ class fh {
19127
19127
  f.getClearColor(uh), f.toneMapping = Ci, f.autoClear = !1;
19128
19128
  const m = new Li({
19129
19129
  name: "PMREM.Background",
19130
- side: pn,
19130
+ side: mn,
19131
19131
  depthWrite: !1,
19132
19132
  depthTest: !1
19133
19133
  }), _ = new At(new ns(), m);
@@ -19138,7 +19138,7 @@ class fh {
19138
19138
  const S = E % 3;
19139
19139
  S === 0 ? (l.up.set(0, c[E], 0), l.position.set(r.x, r.y, r.z), l.lookAt(r.x + h[E], r.y, r.z)) : S === 1 ? (l.up.set(0, 0, c[E]), l.position.set(r.x, r.y, r.z), l.lookAt(r.x, r.y + h[E], r.z)) : (l.up.set(0, c[E], 0), l.position.set(r.x, r.y, r.z), l.lookAt(r.x, r.y, r.z + h[E]));
19140
19140
  const M = this._cubeSize;
19141
- Zr(i, S * M, E > 2 ? M : 0, M, M), f.setRenderTarget(i), g && f.render(_, l), f.render(e, l);
19141
+ Qr(i, S * M, E > 2 ? M : 0, M, M), f.setRenderTarget(i), g && f.render(_, l), f.render(e, l);
19142
19142
  }
19143
19143
  _.geometry.dispose(), _.material.dispose(), f.toneMapping = u, f.autoClear = d, e.background = p;
19144
19144
  }
@@ -19148,7 +19148,7 @@ class fh {
19148
19148
  const r = i ? this._cubemapMaterial : this._equirectMaterial, a = new At(this._lodPlanes[0], r), o = r.uniforms;
19149
19149
  o.envMap.value = e;
19150
19150
  const l = this._cubeSize;
19151
- Zr(t, 0, 0, 3 * l, 2 * l), n.setRenderTarget(t), n.render(a, yo);
19151
+ Qr(t, 0, 0, 3 * l, 2 * l), n.setRenderTarget(t), n.render(a, yo);
19152
19152
  }
19153
19153
  _applyPMREM(e) {
19154
19154
  const t = this._renderer, n = t.autoClear;
@@ -19213,7 +19213,7 @@ class fh {
19213
19213
  const { _lodMax: S } = this;
19214
19214
  d.dTheta.value = m, d.mipInt.value = S - n;
19215
19215
  const M = this._sizeLods[i], U = 3 * M * (i > S - Ts ? i - S + Ts : 0), R = 4 * (this._cubeSize - M);
19216
- Zr(t, U, R, 3 * M, 2 * M), l.setRenderTarget(t), l.render(f, yo);
19216
+ Qr(t, U, R, 3 * M, 2 * M), l.setRenderTarget(t), l.render(f, yo);
19217
19217
  }
19218
19218
  }
19219
19219
  function Q1(s) {
@@ -19260,7 +19260,7 @@ function ph(s, e, t) {
19260
19260
  const n = new es(s, e, t);
19261
19261
  return n.texture.mapping = La, n.texture.name = "PMREM.cubeUv", n.scissorTest = !0, n;
19262
19262
  }
19263
- function Zr(s, e, t, n, i) {
19263
+ function Qr(s, e, t, n, i) {
19264
19264
  s.viewport.set(e, t, n, i), s.scissor.set(e, t, n, i);
19265
19265
  }
19266
19266
  function e2(s, e, t) {
@@ -19717,7 +19717,7 @@ function a2(s, e, t) {
19717
19717
  let M = o.attributes.position.count * S, U = 1;
19718
19718
  M > e.maxTextureSize && (U = Math.ceil(M / e.maxTextureSize), M = e.maxTextureSize);
19719
19719
  const R = new Float32Array(M * U * 4 * f), P = new Su(R, M, U, f);
19720
- P.type = jn, P.needsUpdate = !0;
19720
+ P.type = Yn, P.needsUpdate = !0;
19721
19721
  const D = S * 4;
19722
19722
  for (let y = 0; y < f; y++) {
19723
19723
  const I = g[y], G = p[y], W = E[y], Q = M * U * 4 * y;
@@ -20341,10 +20341,10 @@ function ig(s, e) {
20341
20341
  }
20342
20342
  return "vec3 " + s + "( vec3 color ) { return " + t + "ToneMapping( color ); }";
20343
20343
  }
20344
- const Qr = /* @__PURE__ */ new N();
20344
+ const ea = /* @__PURE__ */ new N();
20345
20345
  function sg() {
20346
- gt.getLuminanceCoefficients(Qr);
20347
- const s = Qr.x.toFixed(4), e = Qr.y.toFixed(4), t = Qr.z.toFixed(4);
20346
+ gt.getLuminanceCoefficients(ea);
20347
+ const s = ea.x.toFixed(4), e = ea.y.toFixed(4), t = ea.z.toFixed(4);
20348
20348
  return [
20349
20349
  "float luminance( const in vec3 rgb ) {",
20350
20350
  ` const vec3 weights = vec3( ${s}, ${e}, ${t} );`,
@@ -20357,7 +20357,7 @@ function rg(s) {
20357
20357
  return [
20358
20358
  s.extensionClipCullDistance ? "#extension GL_ANGLE_clip_cull_distance : require" : "",
20359
20359
  s.extensionMultiDraw ? "#extension GL_ANGLE_multi_draw : require" : ""
20360
- ].filter(nr).join(`
20360
+ ].filter(ir).join(`
20361
20361
  `);
20362
20362
  }
20363
20363
  function ag(s) {
@@ -20382,7 +20382,7 @@ function og(s, e) {
20382
20382
  }
20383
20383
  return t;
20384
20384
  }
20385
- function nr(s) {
20385
+ function ir(s) {
20386
20386
  return s !== "";
20387
20387
  }
20388
20388
  function Th(s, e) {
@@ -20444,7 +20444,7 @@ function Lh(s) {
20444
20444
  }
20445
20445
  function fg(s) {
20446
20446
  let e = "SHADOWMAP_TYPE_BASIC";
20447
- return s.shadowMapType === uu ? e = "SHADOWMAP_TYPE_PCF" : s.shadowMapType === Ud ? e = "SHADOWMAP_TYPE_PCF_SOFT" : s.shadowMapType === li && (e = "SHADOWMAP_TYPE_VSM"), e;
20447
+ return s.shadowMapType === uu ? e = "SHADOWMAP_TYPE_PCF" : s.shadowMapType === Ud ? e = "SHADOWMAP_TYPE_PCF_SOFT" : s.shadowMapType === ci && (e = "SHADOWMAP_TYPE_VSM"), e;
20448
20448
  }
20449
20449
  function pg(s) {
20450
20450
  let e = "ENVMAP_TYPE_CUBE";
@@ -20502,13 +20502,13 @@ function vg(s, e, t, n) {
20502
20502
  "#define SHADER_TYPE " + t.shaderType,
20503
20503
  "#define SHADER_NAME " + t.shaderName,
20504
20504
  m
20505
- ].filter(nr).join(`
20505
+ ].filter(ir).join(`
20506
20506
  `), g.length > 0 && (g += `
20507
20507
  `), p = [
20508
20508
  "#define SHADER_TYPE " + t.shaderType,
20509
20509
  "#define SHADER_NAME " + t.shaderName,
20510
20510
  m
20511
- ].filter(nr).join(`
20511
+ ].filter(ir).join(`
20512
20512
  `), p.length > 0 && (p += `
20513
20513
  `)) : (g = [
20514
20514
  Lh(t),
@@ -20642,7 +20642,7 @@ function vg(s, e, t, n) {
20642
20642
  "#endif",
20643
20643
  `
20644
20644
  `
20645
- ].filter(nr).join(`
20645
+ ].filter(ir).join(`
20646
20646
  `), p = [
20647
20647
  Lh(t),
20648
20648
  "#define SHADER_TYPE " + t.shaderType,
@@ -20726,7 +20726,7 @@ function vg(s, e, t, n) {
20726
20726
  t.useDepthPacking ? "#define DEPTH_PACKING " + t.depthPacking : "",
20727
20727
  `
20728
20728
  `
20729
- ].filter(nr).join(`
20729
+ ].filter(ir).join(`
20730
20730
  `)), a = Sl(a), a = Th(a, t), a = Ch(a, t), o = Sl(o), o = Th(o, t), o = Ch(o, t), a = Rh(a), o = Rh(o), t.isRawShaderMaterial !== !0 && (E = `#version 300 es
20731
20731
  `, g = [
20732
20732
  u,
@@ -20880,7 +20880,7 @@ function bg(s, e, t, n, i, r, a) {
20880
20880
  Ce = ht.vertexShader, K = ht.fragmentShader;
20881
20881
  } else
20882
20882
  Ce = b.vertexShader, K = b.fragmentShader, l.update(b), se = l.getVertexShaderID(b), ae = l.getFragmentShaderID(b);
20883
- const le = s.getRenderTarget(), Ae = s.state.buffers.depth.getReversed(), _e = W.isInstancedMesh === !0, Ee = W.isBatchedMesh === !0, qe = !!b.map, st = !!b.matcap, Qe = !!oe, B = !!b.aoMap, xt = !!b.lightMap, lt = !!b.bumpMap, rt = !!b.normalMap, Le = !!b.displacementMap, je = !!b.emissiveMap, Pe = !!b.metalnessMap, Je = !!b.roughnessMap, Ut = b.anisotropy > 0, F = b.clearcoat > 0, w = b.dispersion > 0, ee = b.iridescence > 0, O = b.sheen > 0, X = b.transmission > 0, q = Ut && !!b.anisotropyMap, de = F && !!b.clearcoatMap, re = F && !!b.clearcoatNormalMap, te = F && !!b.clearcoatRoughnessMap, pe = ee && !!b.iridescenceMap, J = ee && !!b.iridescenceThicknessMap, ue = O && !!b.sheenColorMap, Me = O && !!b.sheenRoughnessMap, Y = !!b.specularMap, ve = !!b.specularColorMap, Ve = !!b.specularIntensityMap, V = X && !!b.transmissionMap, we = X && !!b.thicknessMap, me = !!b.gradientMap, Ie = !!b.alphaMap, xe = b.alphaTest > 0, ce = !!b.alphaHash, Fe = !!b.extensions;
20883
+ const le = s.getRenderTarget(), Ae = s.state.buffers.depth.getReversed(), _e = W.isInstancedMesh === !0, Ee = W.isBatchedMesh === !0, qe = !!b.map, st = !!b.matcap, Qe = !!oe, B = !!b.aoMap, xt = !!b.lightMap, lt = !!b.bumpMap, rt = !!b.normalMap, Le = !!b.displacementMap, je = !!b.emissiveMap, Pe = !!b.metalnessMap, Je = !!b.roughnessMap, Ut = b.anisotropy > 0, F = b.clearcoat > 0, w = b.dispersion > 0, ee = b.iridescence > 0, O = b.sheen > 0, X = b.transmission > 0, q = Ut && !!b.anisotropyMap, de = F && !!b.clearcoatMap, re = F && !!b.clearcoatNormalMap, te = F && !!b.clearcoatRoughnessMap, pe = ee && !!b.iridescenceMap, J = ee && !!b.iridescenceThicknessMap, ce = O && !!b.sheenColorMap, Me = O && !!b.sheenRoughnessMap, Y = !!b.specularMap, ve = !!b.specularColorMap, Ve = !!b.specularIntensityMap, V = X && !!b.transmissionMap, we = X && !!b.thicknessMap, me = !!b.gradientMap, Ie = !!b.alphaMap, xe = b.alphaTest > 0, he = !!b.alphaHash, Fe = !!b.extensions;
20884
20884
  let at = Ci;
20885
20885
  b.toneMapped && (le === null || le.isXRRenderTarget === !0) && (at = s.toneMapping);
20886
20886
  const Tt = {
@@ -20929,7 +20929,7 @@ function bg(s, e, t, n, i, r, a) {
20929
20929
  iridescenceMap: pe,
20930
20930
  iridescenceThicknessMap: J,
20931
20931
  sheen: O,
20932
- sheenColorMap: ue,
20932
+ sheenColorMap: ce,
20933
20933
  sheenRoughnessMap: Me,
20934
20934
  specularMap: Y,
20935
20935
  specularColorMap: ve,
@@ -20941,7 +20941,7 @@ function bg(s, e, t, n, i, r, a) {
20941
20941
  opaque: b.transparent === !1 && b.blending === Rs && b.alphaToCoverage === !1,
20942
20942
  alphaMap: Ie,
20943
20943
  alphaTest: xe,
20944
- alphaHash: ce,
20944
+ alphaHash: he,
20945
20945
  combine: b.combine,
20946
20946
  //
20947
20947
  mapUv: qe && _(b.map.channel),
@@ -20959,7 +20959,7 @@ function bg(s, e, t, n, i, r, a) {
20959
20959
  clearcoatRoughnessMapUv: te && _(b.clearcoatRoughnessMap.channel),
20960
20960
  iridescenceMapUv: pe && _(b.iridescenceMap.channel),
20961
20961
  iridescenceThicknessMapUv: J && _(b.iridescenceThicknessMap.channel),
20962
- sheenColorMapUv: ue && _(b.sheenColorMap.channel),
20962
+ sheenColorMapUv: ce && _(b.sheenColorMap.channel),
20963
20963
  sheenRoughnessMapUv: Me && _(b.sheenRoughnessMap.channel),
20964
20964
  specularMapUv: Y && _(b.specularMap.channel),
20965
20965
  specularColorMapUv: ve && _(b.specularColorMap.channel),
@@ -21005,8 +21005,8 @@ function bg(s, e, t, n, i, r, a) {
21005
21005
  decodeVideoTexture: qe && b.map.isVideoTexture === !0 && gt.getTransfer(b.map.colorSpace) === It,
21006
21006
  decodeVideoTextureEmissive: je && b.emissiveMap.isVideoTexture === !0 && gt.getTransfer(b.emissiveMap.colorSpace) === It,
21007
21007
  premultipliedAlpha: b.premultipliedAlpha,
21008
- doubleSided: b.side === fn,
21009
- flipSided: b.side === pn,
21008
+ doubleSided: b.side === pn,
21009
+ flipSided: b.side === mn,
21010
21010
  useDepthPacking: b.depthPacking >= 0,
21011
21011
  depthPacking: b.depthPacking || 0,
21012
21012
  index0AttributeName: b.index0AttributeName,
@@ -21465,7 +21465,7 @@ void main() {
21465
21465
  }`;
21466
21466
  function Ig(s, e, t) {
21467
21467
  let n = new ql();
21468
- const i = new ke(), r = new ke(), a = new vt(), o = new Op({ depthPacking: df }), l = new zp(), c = {}, h = t.maxTextureSize, f = { [kn]: pn, [pn]: kn, [fn]: fn }, d = new fi({
21468
+ const i = new ke(), r = new ke(), a = new vt(), o = new Op({ depthPacking: df }), l = new zp(), c = {}, h = t.maxTextureSize, f = { [kn]: mn, [mn]: kn, [pn]: pn }, d = new fi({
21469
21469
  defines: {
21470
21470
  VSM_SAMPLES: 8
21471
21471
  },
@@ -21493,7 +21493,7 @@ function Ig(s, e, t) {
21493
21493
  if (g.enabled === !1 || g.autoUpdate === !1 && g.needsUpdate === !1 || R.length === 0) return;
21494
21494
  const b = s.getRenderTarget(), y = s.getActiveCubeFace(), I = s.getActiveMipmapLevel(), G = s.state;
21495
21495
  G.setBlending(Ti), G.buffers.color.setClear(1, 1, 1, 1), G.buffers.depth.setTest(!0), G.setScissorTest(!1);
21496
- const W = p !== li && this.type === li, Q = p === li && this.type !== li;
21496
+ const W = p !== ci && this.type === ci, Q = p === ci && this.type !== ci;
21497
21497
  for (let ie = 0, H = R.length; ie < H; ie++) {
21498
21498
  const oe = R[ie], $ = oe.shadow;
21499
21499
  if ($ === void 0) {
@@ -21504,7 +21504,7 @@ function Ig(s, e, t) {
21504
21504
  i.copy($.mapSize);
21505
21505
  const fe = $.getFrameExtents();
21506
21506
  if (i.multiply(fe), r.copy($.mapSize), (i.x > h || i.y > h) && (i.x > h && (r.x = Math.floor(h / fe.x), i.x = r.x * fe.x, $.mapSize.x = r.x), i.y > h && (r.y = Math.floor(h / fe.y), i.y = r.y * fe.y, $.mapSize.y = r.y)), $.map === null || W === !0 || Q === !0) {
21507
- const ye = this.type !== li ? { minFilter: wn, magFilter: wn } : {};
21507
+ const ye = this.type !== ci ? { minFilter: wn, magFilter: wn } : {};
21508
21508
  $.map !== null && $.map.dispose(), $.map = new es(i.x, i.y, ye), $.map.texture.name = oe.name + ".shadowMap", $.camera.updateProjectionMatrix();
21509
21509
  }
21510
21510
  s.setRenderTarget($.map), s.clear();
@@ -21518,7 +21518,7 @@ function Ig(s, e, t) {
21518
21518
  r.y * Ue.w
21519
21519
  ), G.viewport(a), $.updateMatrices(oe, ye), n = $.getFrustum(), M(P, D, $.camera, oe, this.type);
21520
21520
  }
21521
- $.isPointLightShadow !== !0 && this.type === li && E($, D), $.needsUpdate = !1;
21521
+ $.isPointLightShadow !== !0 && this.type === ci && E($, D), $.needsUpdate = !1;
21522
21522
  }
21523
21523
  p = this.type, g.needsUpdate = !1, s.setRenderTarget(b, y, I);
21524
21524
  };
@@ -21538,7 +21538,7 @@ function Ig(s, e, t) {
21538
21538
  let ie = Q[W];
21539
21539
  ie === void 0 && (ie = y.clone(), Q[W] = ie, P.addEventListener("dispose", U)), y = ie;
21540
21540
  }
21541
- if (y.visible = P.visible, y.wireframe = P.wireframe, b === li ? y.side = P.shadowSide !== null ? P.shadowSide : P.side : y.side = P.shadowSide !== null ? P.shadowSide : f[P.side], y.alphaMap = P.alphaMap, y.alphaTest = P.alphaToCoverage === !0 ? 0.5 : P.alphaTest, y.map = P.map, y.clipShadows = P.clipShadows, y.clippingPlanes = P.clippingPlanes, y.clipIntersection = P.clipIntersection, y.displacementMap = P.displacementMap, y.displacementScale = P.displacementScale, y.displacementBias = P.displacementBias, y.wireframeLinewidth = P.wireframeLinewidth, y.linewidth = P.linewidth, D.isPointLight === !0 && y.isMeshDistanceMaterial === !0) {
21541
+ if (y.visible = P.visible, y.wireframe = P.wireframe, b === ci ? y.side = P.shadowSide !== null ? P.shadowSide : P.side : y.side = P.shadowSide !== null ? P.shadowSide : f[P.side], y.alphaMap = P.alphaMap, y.alphaTest = P.alphaToCoverage === !0 ? 0.5 : P.alphaTest, y.map = P.map, y.clipShadows = P.clipShadows, y.clippingPlanes = P.clippingPlanes, y.clipIntersection = P.clipIntersection, y.displacementMap = P.displacementMap, y.displacementScale = P.displacementScale, y.displacementBias = P.displacementBias, y.wireframeLinewidth = P.wireframeLinewidth, y.linewidth = P.linewidth, D.isPointLight === !0 && y.isMeshDistanceMaterial === !0) {
21542
21542
  const G = s.properties.get(y);
21543
21543
  G.light = D;
21544
21544
  }
@@ -21546,7 +21546,7 @@ function Ig(s, e, t) {
21546
21546
  }
21547
21547
  function M(R, P, D, b, y) {
21548
21548
  if (R.visible === !1) return;
21549
- if (R.layers.test(P.layers) && (R.isMesh || R.isLine || R.isPoints) && (R.castShadow || R.receiveShadow && y === li) && (!R.frustumCulled || n.intersectsObject(R))) {
21549
+ if (R.layers.test(P.layers) && (R.isMesh || R.isLine || R.isPoints) && (R.castShadow || R.receiveShadow && y === ci) && (!R.frustumCulled || n.intersectsObject(R))) {
21550
21550
  R.modelViewMatrix.multiplyMatrices(D.matrixWorldInverse, R.matrixWorld);
21551
21551
  const W = e.update(R), Q = R.material;
21552
21552
  if (Array.isArray(Q)) {
@@ -21598,8 +21598,8 @@ function Fg(s, e) {
21598
21598
  setLocked: function(xe) {
21599
21599
  V = xe;
21600
21600
  },
21601
- setClear: function(xe, ce, Fe, at, Tt) {
21602
- Tt === !0 && (xe *= at, ce *= at, Fe *= at), we.set(xe, ce, Fe, at), Ie.equals(we) === !1 && (s.clearColor(xe, ce, Fe, at), Ie.copy(we));
21601
+ setClear: function(xe, he, Fe, at, Tt) {
21602
+ Tt === !0 && (xe *= at, he *= at, Fe *= at), we.set(xe, he, Fe, at), Ie.equals(we) === !1 && (s.clearColor(xe, he, Fe, at), Ie.copy(we));
21603
21603
  },
21604
21604
  reset: function() {
21605
21605
  V = !1, me = null, Ie.set(-1, 0, 0, 0);
@@ -21609,10 +21609,10 @@ function Fg(s, e) {
21609
21609
  function n() {
21610
21610
  let V = !1, we = !1, me = null, Ie = null, xe = null;
21611
21611
  return {
21612
- setReversed: function(ce) {
21613
- if (we !== ce) {
21612
+ setReversed: function(he) {
21613
+ if (we !== he) {
21614
21614
  const Fe = e.get("EXT_clip_control");
21615
- ce ? Fe.clipControlEXT(Fe.LOWER_LEFT_EXT, Fe.ZERO_TO_ONE_EXT) : Fe.clipControlEXT(Fe.LOWER_LEFT_EXT, Fe.NEGATIVE_ONE_TO_ONE_EXT), we = ce;
21615
+ he ? Fe.clipControlEXT(Fe.LOWER_LEFT_EXT, Fe.ZERO_TO_ONE_EXT) : Fe.clipControlEXT(Fe.LOWER_LEFT_EXT, Fe.NEGATIVE_ONE_TO_ONE_EXT), we = he;
21616
21616
  const at = xe;
21617
21617
  xe = null, this.setClear(at);
21618
21618
  }
@@ -21620,15 +21620,15 @@ function Fg(s, e) {
21620
21620
  getReversed: function() {
21621
21621
  return we;
21622
21622
  },
21623
- setTest: function(ce) {
21624
- ce ? le(s.DEPTH_TEST) : Ae(s.DEPTH_TEST);
21623
+ setTest: function(he) {
21624
+ he ? le(s.DEPTH_TEST) : Ae(s.DEPTH_TEST);
21625
21625
  },
21626
- setMask: function(ce) {
21627
- me !== ce && !V && (s.depthMask(ce), me = ce);
21626
+ setMask: function(he) {
21627
+ me !== he && !V && (s.depthMask(he), me = he);
21628
21628
  },
21629
- setFunc: function(ce) {
21630
- if (we && (ce = Ng[ce]), Ie !== ce) {
21631
- switch (ce) {
21629
+ setFunc: function(he) {
21630
+ if (we && (he = Ng[he]), Ie !== he) {
21631
+ switch (he) {
21632
21632
  case Fo:
21633
21633
  s.depthFunc(s.NEVER);
21634
21634
  break;
@@ -21656,14 +21656,14 @@ function Fg(s, e) {
21656
21656
  default:
21657
21657
  s.depthFunc(s.LEQUAL);
21658
21658
  }
21659
- Ie = ce;
21659
+ Ie = he;
21660
21660
  }
21661
21661
  },
21662
- setLocked: function(ce) {
21663
- V = ce;
21662
+ setLocked: function(he) {
21663
+ V = he;
21664
21664
  },
21665
- setClear: function(ce) {
21666
- xe !== ce && (we && (ce = 1 - ce), s.clearDepth(ce), xe = ce);
21665
+ setClear: function(he) {
21666
+ xe !== he && (we && (he = 1 - he), s.clearDepth(he), xe = he);
21667
21667
  },
21668
21668
  reset: function() {
21669
21669
  V = !1, me = null, Ie = null, xe = null, we = !1;
@@ -21671,7 +21671,7 @@ function Fg(s, e) {
21671
21671
  };
21672
21672
  }
21673
21673
  function i() {
21674
- let V = !1, we = null, me = null, Ie = null, xe = null, ce = null, Fe = null, at = null, Tt = null;
21674
+ let V = !1, we = null, me = null, Ie = null, xe = null, he = null, Fe = null, at = null, Tt = null;
21675
21675
  return {
21676
21676
  setTest: function(ht) {
21677
21677
  V || (ht ? le(s.STENCIL_TEST) : Ae(s.STENCIL_TEST));
@@ -21679,11 +21679,11 @@ function Fg(s, e) {
21679
21679
  setMask: function(ht) {
21680
21680
  we !== ht && !V && (s.stencilMask(ht), we = ht);
21681
21681
  },
21682
- setFunc: function(ht, Zt, mn) {
21683
- (me !== ht || Ie !== Zt || xe !== mn) && (s.stencilFunc(ht, Zt, mn), me = ht, Ie = Zt, xe = mn);
21682
+ setFunc: function(ht, Zt, gn) {
21683
+ (me !== ht || Ie !== Zt || xe !== gn) && (s.stencilFunc(ht, Zt, gn), me = ht, Ie = Zt, xe = gn);
21684
21684
  },
21685
- setOp: function(ht, Zt, mn) {
21686
- (ce !== ht || Fe !== Zt || at !== mn) && (s.stencilOp(ht, Zt, mn), ce = ht, Fe = Zt, at = mn);
21685
+ setOp: function(ht, Zt, gn) {
21686
+ (he !== ht || Fe !== Zt || at !== gn) && (s.stencilOp(ht, Zt, gn), he = ht, Fe = Zt, at = gn);
21687
21687
  },
21688
21688
  setLocked: function(ht) {
21689
21689
  V = ht;
@@ -21692,7 +21692,7 @@ function Fg(s, e) {
21692
21692
  Tt !== ht && (s.clearStencil(ht), Tt = ht);
21693
21693
  },
21694
21694
  reset: function() {
21695
- V = !1, we = null, me = null, Ie = null, xe = null, ce = null, Fe = null, at = null, Tt = null;
21695
+ V = !1, we = null, me = null, Ie = null, xe = null, he = null, Fe = null, at = null, Tt = null;
21696
21696
  }
21697
21697
  };
21698
21698
  }
@@ -21705,11 +21705,11 @@ function Fg(s, e) {
21705
21705
  let fe = null, Se = {};
21706
21706
  const ye = s.getParameter(s.SCISSOR_BOX), Ue = s.getParameter(s.VIEWPORT), Ce = new vt().fromArray(ye), K = new vt().fromArray(Ue);
21707
21707
  function se(V, we, me, Ie) {
21708
- const xe = new Uint8Array(4), ce = s.createTexture();
21709
- s.bindTexture(V, ce), s.texParameteri(V, s.TEXTURE_MIN_FILTER, s.NEAREST), s.texParameteri(V, s.TEXTURE_MAG_FILTER, s.NEAREST);
21708
+ const xe = new Uint8Array(4), he = s.createTexture();
21709
+ s.bindTexture(V, he), s.texParameteri(V, s.TEXTURE_MIN_FILTER, s.NEAREST), s.texParameteri(V, s.TEXTURE_MAG_FILTER, s.NEAREST);
21710
21710
  for (let Fe = 0; Fe < me; Fe++)
21711
21711
  V === s.TEXTURE_3D || V === s.TEXTURE_2D_ARRAY ? s.texImage3D(we, 0, s.RGBA, 1, 1, Ie, 0, s.RGBA, s.UNSIGNED_BYTE, xe) : s.texImage2D(we + Fe, 0, s.RGBA, 1, 1, 0, s.RGBA, s.UNSIGNED_BYTE, xe);
21712
- return ce;
21712
+ return he;
21713
21713
  }
21714
21714
  const ae = {};
21715
21715
  ae[s.TEXTURE_2D] = se(s.TEXTURE_2D, s.TEXTURE_2D, 1), ae[s.TEXTURE_CUBE_MAP] = se(s.TEXTURE_CUBE_MAP, s.TEXTURE_CUBE_MAP_POSITIVE_X, 6), ae[s.TEXTURE_2D_ARRAY] = se(s.TEXTURE_2D_ARRAY, s.TEXTURE_2D_ARRAY, 1, 1), ae[s.TEXTURE_3D] = se(s.TEXTURE_3D, s.TEXTURE_3D, 1, 1), r.setClear(0, 0, 0, 1), a.setClear(1), o.setClear(0), le(s.DEPTH_TEST), a.setFunc(Ds), lt(!1), rt(cc), le(s.CULL_FACE), B(Ti);
@@ -21728,8 +21728,8 @@ function Fg(s, e) {
21728
21728
  me = d.get(we), me === void 0 && (me = [], d.set(we, me));
21729
21729
  const xe = V.textures;
21730
21730
  if (me.length !== xe.length || me[0] !== s.COLOR_ATTACHMENT0) {
21731
- for (let ce = 0, Fe = xe.length; ce < Fe; ce++)
21732
- me[ce] = s.COLOR_ATTACHMENT0 + ce;
21731
+ for (let he = 0, Fe = xe.length; he < Fe; he++)
21732
+ me[he] = s.COLOR_ATTACHMENT0 + he;
21733
21733
  me.length = xe.length, Ie = !0;
21734
21734
  }
21735
21735
  } else
@@ -21762,7 +21762,7 @@ function Fg(s, e) {
21762
21762
  [Jd]: s.CONSTANT_ALPHA,
21763
21763
  [Kd]: s.ONE_MINUS_CONSTANT_ALPHA
21764
21764
  };
21765
- function B(V, we, me, Ie, xe, ce, Fe, at, Tt, ht) {
21765
+ function B(V, we, me, Ie, xe, he, Fe, at, Tt, ht) {
21766
21766
  if (V === Ti) {
21767
21767
  _ === !0 && (Ae(s.BLEND), _ = !1);
21768
21768
  return;
@@ -21809,11 +21809,11 @@ function Fg(s, e) {
21809
21809
  }
21810
21810
  return;
21811
21811
  }
21812
- xe = xe || we, ce = ce || me, Fe = Fe || Ie, (we !== p || xe !== M) && (s.blendEquationSeparate(st[we], st[xe]), p = we, M = xe), (me !== E || Ie !== S || ce !== U || Fe !== R) && (s.blendFuncSeparate(Qe[me], Qe[Ie], Qe[ce], Qe[Fe]), E = me, S = Ie, U = ce, R = Fe), (at.equals(P) === !1 || Tt !== D) && (s.blendColor(at.r, at.g, at.b, Tt), P.copy(at), D = Tt), g = V, b = !1;
21812
+ xe = xe || we, he = he || me, Fe = Fe || Ie, (we !== p || xe !== M) && (s.blendEquationSeparate(st[we], st[xe]), p = we, M = xe), (me !== E || Ie !== S || he !== U || Fe !== R) && (s.blendFuncSeparate(Qe[me], Qe[Ie], Qe[he], Qe[Fe]), E = me, S = Ie, U = he, R = Fe), (at.equals(P) === !1 || Tt !== D) && (s.blendColor(at.r, at.g, at.b, Tt), P.copy(at), D = Tt), g = V, b = !1;
21813
21813
  }
21814
21814
  function xt(V, we) {
21815
- V.side === fn ? Ae(s.CULL_FACE) : le(s.CULL_FACE);
21816
- let me = V.side === pn;
21815
+ V.side === pn ? Ae(s.CULL_FACE) : le(s.CULL_FACE);
21816
+ let me = V.side === mn;
21817
21817
  we && (me = !me), lt(me), V.blending === Rs && V.transparent === !1 ? B(Ti) : B(V.blending, V.blendEquation, V.blendSrc, V.blendDst, V.blendEquationAlpha, V.blendSrcAlpha, V.blendDstAlpha, V.blendColor, V.blendAlpha, V.premultipliedAlpha), a.setFunc(V.depthFunc), a.setTest(V.depthTest), a.setMask(V.depthWrite), r.setMask(V.colorWrite);
21818
21818
  const Ie = V.stencilWrite;
21819
21819
  o.setTest(Ie), Ie && (o.setMask(V.stencilWriteMask), o.setFunc(V.stencilFunc, V.stencilRef, V.stencilFuncMask), o.setOp(V.stencilFail, V.stencilZFail, V.stencilZPass)), je(V.polygonOffset, V.polygonOffsetFactor, V.polygonOffsetUnits), V.alphaToCoverage === !0 ? le(s.SAMPLE_ALPHA_TO_COVERAGE) : Ae(s.SAMPLE_ALPHA_TO_COVERAGE);
@@ -21915,7 +21915,7 @@ function Fg(s, e) {
21915
21915
  console.error("THREE.WebGLState:", V);
21916
21916
  }
21917
21917
  }
21918
- function ue(V) {
21918
+ function ce(V) {
21919
21919
  Ce.equals(V) === !1 && (s.scissor(V.x, V.y, V.z, V.w), Ce.copy(V));
21920
21920
  }
21921
21921
  function Me(V) {
@@ -21967,7 +21967,7 @@ function Fg(s, e) {
21967
21967
  texSubImage3D: X,
21968
21968
  compressedTexSubImage2D: q,
21969
21969
  compressedTexSubImage3D: de,
21970
- scissor: ue,
21970
+ scissor: ce,
21971
21971
  viewport: Me,
21972
21972
  reset: Ve
21973
21973
  };
@@ -21985,7 +21985,7 @@ function Og(s, e, t, n, i, r, a) {
21985
21985
  return u ? (
21986
21986
  // eslint-disable-next-line compat/compat
21987
21987
  new OffscreenCanvas(F, w)
21988
- ) : fr("canvas");
21988
+ ) : pr("canvas");
21989
21989
  }
21990
21990
  function _(F, w, ee) {
21991
21991
  let O = 1;
@@ -22023,7 +22023,7 @@ function Og(s, e, t, n, i, r, a) {
22023
22023
  }
22024
22024
  function M(F, w) {
22025
22025
  let ee;
22026
- return F ? w === null || w === Qi || w === hr ? ee = s.DEPTH24_STENCIL8 : w === jn ? ee = s.DEPTH32F_STENCIL8 : w === cr && (ee = s.DEPTH24_STENCIL8, console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : w === null || w === Qi || w === hr ? ee = s.DEPTH_COMPONENT24 : w === jn ? ee = s.DEPTH_COMPONENT32F : w === cr && (ee = s.DEPTH_COMPONENT16), ee;
22026
+ return F ? w === null || w === Qi || w === ur ? ee = s.DEPTH24_STENCIL8 : w === Yn ? ee = s.DEPTH32F_STENCIL8 : w === hr && (ee = s.DEPTH24_STENCIL8, console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : w === null || w === Qi || w === ur ? ee = s.DEPTH_COMPONENT24 : w === Yn ? ee = s.DEPTH_COMPONENT32F : w === hr && (ee = s.DEPTH_COMPONENT16), ee;
22027
22027
  }
22028
22028
  function U(F, w) {
22029
22029
  return g(F) === !0 || F.isFramebufferTexture && F.minFilter !== wn && F.minFilter !== En ? Math.log2(Math.max(w.width, w.height)) + 1 : F.mipmaps !== void 0 && F.mipmaps.length > 0 ? F.mipmaps.length : F.isCompressedTexture && Array.isArray(F.image) ? w.mipmaps.length : 1;
@@ -22131,13 +22131,13 @@ function Og(s, e, t, n, i, r, a) {
22131
22131
  t.bindTexture(s.TEXTURE_CUBE_MAP, ee.__webglTexture, s.TEXTURE0 + w);
22132
22132
  }
22133
22133
  const fe = {
22134
- [qn]: s.REPEAT,
22134
+ [jn]: s.REPEAT,
22135
22135
  [zn]: s.CLAMP_TO_EDGE,
22136
22136
  [Xo]: s.MIRRORED_REPEAT
22137
22137
  }, Se = {
22138
22138
  [wn]: s.NEAREST,
22139
22139
  [cf]: s.NEAREST_MIPMAP_NEAREST,
22140
- [Mr]: s.NEAREST_MIPMAP_LINEAR,
22140
+ [br]: s.NEAREST_MIPMAP_LINEAR,
22141
22141
  [En]: s.LINEAR,
22142
22142
  [ka]: s.LINEAR_MIPMAP_NEAREST,
22143
22143
  [hi]: s.LINEAR_MIPMAP_LINEAR
@@ -22152,8 +22152,8 @@ function Og(s, e, t, n, i, r, a) {
22152
22152
  [vf]: s.NOTEQUAL
22153
22153
  };
22154
22154
  function Ue(F, w) {
22155
- if (w.type === jn && e.has("OES_texture_float_linear") === !1 && (w.magFilter === En || w.magFilter === ka || w.magFilter === Mr || w.magFilter === hi || w.minFilter === En || w.minFilter === ka || w.minFilter === Mr || w.minFilter === hi) && console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), s.texParameteri(F, s.TEXTURE_WRAP_S, fe[w.wrapS]), s.texParameteri(F, s.TEXTURE_WRAP_T, fe[w.wrapT]), (F === s.TEXTURE_3D || F === s.TEXTURE_2D_ARRAY) && s.texParameteri(F, s.TEXTURE_WRAP_R, fe[w.wrapR]), s.texParameteri(F, s.TEXTURE_MAG_FILTER, Se[w.magFilter]), s.texParameteri(F, s.TEXTURE_MIN_FILTER, Se[w.minFilter]), w.compareFunction && (s.texParameteri(F, s.TEXTURE_COMPARE_MODE, s.COMPARE_REF_TO_TEXTURE), s.texParameteri(F, s.TEXTURE_COMPARE_FUNC, ye[w.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
22156
- if (w.magFilter === wn || w.minFilter !== Mr && w.minFilter !== hi || w.type === jn && e.has("OES_texture_float_linear") === !1) return;
22155
+ if (w.type === Yn && e.has("OES_texture_float_linear") === !1 && (w.magFilter === En || w.magFilter === ka || w.magFilter === br || w.magFilter === hi || w.minFilter === En || w.minFilter === ka || w.minFilter === br || w.minFilter === hi) && console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), s.texParameteri(F, s.TEXTURE_WRAP_S, fe[w.wrapS]), s.texParameteri(F, s.TEXTURE_WRAP_T, fe[w.wrapT]), (F === s.TEXTURE_3D || F === s.TEXTURE_2D_ARRAY) && s.texParameteri(F, s.TEXTURE_WRAP_R, fe[w.wrapR]), s.texParameteri(F, s.TEXTURE_MAG_FILTER, Se[w.magFilter]), s.texParameteri(F, s.TEXTURE_MIN_FILTER, Se[w.minFilter]), w.compareFunction && (s.texParameteri(F, s.TEXTURE_COMPARE_MODE, s.COMPARE_REF_TO_TEXTURE), s.texParameteri(F, s.TEXTURE_COMPARE_FUNC, ye[w.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
22156
+ if (w.magFilter === wn || w.minFilter !== br && w.minFilter !== hi || w.type === Yn && e.has("OES_texture_float_linear") === !1) return;
22157
22157
  if (w.anisotropy > 1 || n.get(w).__currentAnisotropy) {
22158
22158
  const ee = e.get("EXT_texture_filter_anisotropic");
22159
22159
  s.texParameterf(F, ee.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(w.anisotropy, i.getMaxAnisotropy())), n.get(w).__currentAnisotropy = w.anisotropy;
@@ -22185,19 +22185,19 @@ function Og(s, e, t, n, i, r, a) {
22185
22185
  if (q.length === 0)
22186
22186
  t.texSubImage2D(s.TEXTURE_2D, 0, 0, 0, w.width, w.height, ee, O, w.data);
22187
22187
  else {
22188
- q.sort((J, ue) => J.start - ue.start);
22188
+ q.sort((J, ce) => J.start - ce.start);
22189
22189
  let de = 0;
22190
22190
  for (let J = 1; J < q.length; J++) {
22191
- const ue = q[de], Me = q[J], Y = ue.start + ue.count, ve = K(Me.start, w.width, 4), Ve = K(ue.start, w.width, 4);
22192
- Me.start <= Y + 1 && ve === Ve && K(Me.start + Me.count - 1, w.width, 4) === ve ? ue.count = Math.max(
22193
- ue.count,
22194
- Me.start + Me.count - ue.start
22191
+ const ce = q[de], Me = q[J], Y = ce.start + ce.count, ve = K(Me.start, w.width, 4), Ve = K(ce.start, w.width, 4);
22192
+ Me.start <= Y + 1 && ve === Ve && K(Me.start + Me.count - 1, w.width, 4) === ve ? ce.count = Math.max(
22193
+ ce.count,
22194
+ Me.start + Me.count - ce.start
22195
22195
  ) : (++de, q[de] = Me);
22196
22196
  }
22197
22197
  q.length = de + 1;
22198
22198
  const re = s.getParameter(s.UNPACK_ROW_LENGTH), te = s.getParameter(s.UNPACK_SKIP_PIXELS), pe = s.getParameter(s.UNPACK_SKIP_ROWS);
22199
22199
  s.pixelStorei(s.UNPACK_ROW_LENGTH, w.width);
22200
- for (let J = 0, ue = q.length; J < ue; J++) {
22200
+ for (let J = 0, ce = q.length; J < ce; J++) {
22201
22201
  const Me = q[J], Y = Math.floor(Me.start / 4), ve = Math.ceil(Me.count / 4), Ve = Y % w.width, V = Math.floor(Y / w.width), we = ve, me = 1;
22202
22202
  s.pixelStorei(s.UNPACK_SKIP_PIXELS, Ve), s.pixelStorei(s.UNPACK_SKIP_ROWS, V), t.texSubImage2D(s.TEXTURE_2D, 0, Ve, V, we, me, ee, O, w.data);
22203
22203
  }
@@ -22216,27 +22216,27 @@ function Og(s, e, t, n, i, r, a) {
22216
22216
  s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL, w.flipY), s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL, w.premultiplyAlpha), s.pixelStorei(s.UNPACK_ALIGNMENT, w.unpackAlignment), s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL, pe);
22217
22217
  let J = _(w.image, !1, i.maxTextureSize);
22218
22218
  J = Je(w, J);
22219
- const ue = r.convert(w.format, w.colorSpace), Me = r.convert(w.type);
22220
- let Y = S(w.internalFormat, ue, Me, w.colorSpace, w.isVideoTexture);
22219
+ const ce = r.convert(w.format, w.colorSpace), Me = r.convert(w.type);
22220
+ let Y = S(w.internalFormat, ce, Me, w.colorSpace, w.isVideoTexture);
22221
22221
  Ue(O, w);
22222
22222
  let ve;
22223
22223
  const Ve = w.mipmaps, V = w.isVideoTexture !== !0, we = de.__version === void 0 || X === !0, me = q.dataReady, Ie = U(w, J);
22224
22224
  if (w.isDepthTexture)
22225
- Y = M(w.format === dr, w.type), we && (V ? t.texStorage2D(s.TEXTURE_2D, 1, Y, J.width, J.height) : t.texImage2D(s.TEXTURE_2D, 0, Y, J.width, J.height, 0, ue, Me, null));
22225
+ Y = M(w.format === fr, w.type), we && (V ? t.texStorage2D(s.TEXTURE_2D, 1, Y, J.width, J.height) : t.texImage2D(s.TEXTURE_2D, 0, Y, J.width, J.height, 0, ce, Me, null));
22226
22226
  else if (w.isDataTexture)
22227
22227
  if (Ve.length > 0) {
22228
22228
  V && we && t.texStorage2D(s.TEXTURE_2D, Ie, Y, Ve[0].width, Ve[0].height);
22229
- for (let xe = 0, ce = Ve.length; xe < ce; xe++)
22230
- ve = Ve[xe], V ? me && t.texSubImage2D(s.TEXTURE_2D, xe, 0, 0, ve.width, ve.height, ue, Me, ve.data) : t.texImage2D(s.TEXTURE_2D, xe, Y, ve.width, ve.height, 0, ue, Me, ve.data);
22229
+ for (let xe = 0, he = Ve.length; xe < he; xe++)
22230
+ ve = Ve[xe], V ? me && t.texSubImage2D(s.TEXTURE_2D, xe, 0, 0, ve.width, ve.height, ce, Me, ve.data) : t.texImage2D(s.TEXTURE_2D, xe, Y, ve.width, ve.height, 0, ce, Me, ve.data);
22231
22231
  w.generateMipmaps = !1;
22232
22232
  } else
22233
- V ? (we && t.texStorage2D(s.TEXTURE_2D, Ie, Y, J.width, J.height), me && se(w, J, ue, Me)) : t.texImage2D(s.TEXTURE_2D, 0, Y, J.width, J.height, 0, ue, Me, J.data);
22233
+ V ? (we && t.texStorage2D(s.TEXTURE_2D, Ie, Y, J.width, J.height), me && se(w, J, ce, Me)) : t.texImage2D(s.TEXTURE_2D, 0, Y, J.width, J.height, 0, ce, Me, J.data);
22234
22234
  else if (w.isCompressedTexture)
22235
22235
  if (w.isCompressedArrayTexture) {
22236
22236
  V && we && t.texStorage3D(s.TEXTURE_2D_ARRAY, Ie, Y, Ve[0].width, Ve[0].height, J.depth);
22237
- for (let xe = 0, ce = Ve.length; xe < ce; xe++)
22237
+ for (let xe = 0, he = Ve.length; xe < he; xe++)
22238
22238
  if (ve = Ve[xe], w.format !== Pn)
22239
- if (ue !== null)
22239
+ if (ce !== null)
22240
22240
  if (V) {
22241
22241
  if (me)
22242
22242
  if (w.layerUpdates.size > 0) {
@@ -22246,66 +22246,66 @@ function Og(s, e, t, n, i, r, a) {
22246
22246
  at * Fe / ve.data.BYTES_PER_ELEMENT,
22247
22247
  (at + 1) * Fe / ve.data.BYTES_PER_ELEMENT
22248
22248
  );
22249
- t.compressedTexSubImage3D(s.TEXTURE_2D_ARRAY, xe, 0, 0, at, ve.width, ve.height, 1, ue, Tt);
22249
+ t.compressedTexSubImage3D(s.TEXTURE_2D_ARRAY, xe, 0, 0, at, ve.width, ve.height, 1, ce, Tt);
22250
22250
  }
22251
22251
  w.clearLayerUpdates();
22252
22252
  } else
22253
- t.compressedTexSubImage3D(s.TEXTURE_2D_ARRAY, xe, 0, 0, 0, ve.width, ve.height, J.depth, ue, ve.data);
22253
+ t.compressedTexSubImage3D(s.TEXTURE_2D_ARRAY, xe, 0, 0, 0, ve.width, ve.height, J.depth, ce, ve.data);
22254
22254
  } else
22255
22255
  t.compressedTexImage3D(s.TEXTURE_2D_ARRAY, xe, Y, ve.width, ve.height, J.depth, 0, ve.data, 0, 0);
22256
22256
  else
22257
22257
  console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");
22258
22258
  else
22259
- V ? me && t.texSubImage3D(s.TEXTURE_2D_ARRAY, xe, 0, 0, 0, ve.width, ve.height, J.depth, ue, Me, ve.data) : t.texImage3D(s.TEXTURE_2D_ARRAY, xe, Y, ve.width, ve.height, J.depth, 0, ue, Me, ve.data);
22259
+ V ? me && t.texSubImage3D(s.TEXTURE_2D_ARRAY, xe, 0, 0, 0, ve.width, ve.height, J.depth, ce, Me, ve.data) : t.texImage3D(s.TEXTURE_2D_ARRAY, xe, Y, ve.width, ve.height, J.depth, 0, ce, Me, ve.data);
22260
22260
  } else {
22261
22261
  V && we && t.texStorage2D(s.TEXTURE_2D, Ie, Y, Ve[0].width, Ve[0].height);
22262
- for (let xe = 0, ce = Ve.length; xe < ce; xe++)
22263
- ve = Ve[xe], w.format !== Pn ? ue !== null ? V ? me && t.compressedTexSubImage2D(s.TEXTURE_2D, xe, 0, 0, ve.width, ve.height, ue, ve.data) : t.compressedTexImage2D(s.TEXTURE_2D, xe, Y, ve.width, ve.height, 0, ve.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : V ? me && t.texSubImage2D(s.TEXTURE_2D, xe, 0, 0, ve.width, ve.height, ue, Me, ve.data) : t.texImage2D(s.TEXTURE_2D, xe, Y, ve.width, ve.height, 0, ue, Me, ve.data);
22262
+ for (let xe = 0, he = Ve.length; xe < he; xe++)
22263
+ ve = Ve[xe], w.format !== Pn ? ce !== null ? V ? me && t.compressedTexSubImage2D(s.TEXTURE_2D, xe, 0, 0, ve.width, ve.height, ce, ve.data) : t.compressedTexImage2D(s.TEXTURE_2D, xe, Y, ve.width, ve.height, 0, ve.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : V ? me && t.texSubImage2D(s.TEXTURE_2D, xe, 0, 0, ve.width, ve.height, ce, Me, ve.data) : t.texImage2D(s.TEXTURE_2D, xe, Y, ve.width, ve.height, 0, ce, Me, ve.data);
22264
22264
  }
22265
22265
  else if (w.isDataArrayTexture)
22266
22266
  if (V) {
22267
22267
  if (we && t.texStorage3D(s.TEXTURE_2D_ARRAY, Ie, Y, J.width, J.height, J.depth), me)
22268
22268
  if (w.layerUpdates.size > 0) {
22269
22269
  const xe = ch(J.width, J.height, w.format, w.type);
22270
- for (const ce of w.layerUpdates) {
22270
+ for (const he of w.layerUpdates) {
22271
22271
  const Fe = J.data.subarray(
22272
- ce * xe / J.data.BYTES_PER_ELEMENT,
22273
- (ce + 1) * xe / J.data.BYTES_PER_ELEMENT
22272
+ he * xe / J.data.BYTES_PER_ELEMENT,
22273
+ (he + 1) * xe / J.data.BYTES_PER_ELEMENT
22274
22274
  );
22275
- t.texSubImage3D(s.TEXTURE_2D_ARRAY, 0, 0, 0, ce, J.width, J.height, 1, ue, Me, Fe);
22275
+ t.texSubImage3D(s.TEXTURE_2D_ARRAY, 0, 0, 0, he, J.width, J.height, 1, ce, Me, Fe);
22276
22276
  }
22277
22277
  w.clearLayerUpdates();
22278
22278
  } else
22279
- t.texSubImage3D(s.TEXTURE_2D_ARRAY, 0, 0, 0, 0, J.width, J.height, J.depth, ue, Me, J.data);
22279
+ t.texSubImage3D(s.TEXTURE_2D_ARRAY, 0, 0, 0, 0, J.width, J.height, J.depth, ce, Me, J.data);
22280
22280
  } else
22281
- t.texImage3D(s.TEXTURE_2D_ARRAY, 0, Y, J.width, J.height, J.depth, 0, ue, Me, J.data);
22281
+ t.texImage3D(s.TEXTURE_2D_ARRAY, 0, Y, J.width, J.height, J.depth, 0, ce, Me, J.data);
22282
22282
  else if (w.isData3DTexture)
22283
- V ? (we && t.texStorage3D(s.TEXTURE_3D, Ie, Y, J.width, J.height, J.depth), me && t.texSubImage3D(s.TEXTURE_3D, 0, 0, 0, 0, J.width, J.height, J.depth, ue, Me, J.data)) : t.texImage3D(s.TEXTURE_3D, 0, Y, J.width, J.height, J.depth, 0, ue, Me, J.data);
22283
+ V ? (we && t.texStorage3D(s.TEXTURE_3D, Ie, Y, J.width, J.height, J.depth), me && t.texSubImage3D(s.TEXTURE_3D, 0, 0, 0, 0, J.width, J.height, J.depth, ce, Me, J.data)) : t.texImage3D(s.TEXTURE_3D, 0, Y, J.width, J.height, J.depth, 0, ce, Me, J.data);
22284
22284
  else if (w.isFramebufferTexture) {
22285
22285
  if (we)
22286
22286
  if (V)
22287
22287
  t.texStorage2D(s.TEXTURE_2D, Ie, Y, J.width, J.height);
22288
22288
  else {
22289
- let xe = J.width, ce = J.height;
22289
+ let xe = J.width, he = J.height;
22290
22290
  for (let Fe = 0; Fe < Ie; Fe++)
22291
- t.texImage2D(s.TEXTURE_2D, Fe, Y, xe, ce, 0, ue, Me, null), xe >>= 1, ce >>= 1;
22291
+ t.texImage2D(s.TEXTURE_2D, Fe, Y, xe, he, 0, ce, Me, null), xe >>= 1, he >>= 1;
22292
22292
  }
22293
22293
  } else if (Ve.length > 0) {
22294
22294
  if (V && we) {
22295
22295
  const xe = Ut(Ve[0]);
22296
22296
  t.texStorage2D(s.TEXTURE_2D, Ie, Y, xe.width, xe.height);
22297
22297
  }
22298
- for (let xe = 0, ce = Ve.length; xe < ce; xe++)
22299
- ve = Ve[xe], V ? me && t.texSubImage2D(s.TEXTURE_2D, xe, 0, 0, ue, Me, ve) : t.texImage2D(s.TEXTURE_2D, xe, Y, ue, Me, ve);
22298
+ for (let xe = 0, he = Ve.length; xe < he; xe++)
22299
+ ve = Ve[xe], V ? me && t.texSubImage2D(s.TEXTURE_2D, xe, 0, 0, ce, Me, ve) : t.texImage2D(s.TEXTURE_2D, xe, Y, ce, Me, ve);
22300
22300
  w.generateMipmaps = !1;
22301
22301
  } else if (V) {
22302
22302
  if (we) {
22303
22303
  const xe = Ut(J);
22304
22304
  t.texStorage2D(s.TEXTURE_2D, Ie, Y, xe.width, xe.height);
22305
22305
  }
22306
- me && t.texSubImage2D(s.TEXTURE_2D, 0, 0, 0, ue, Me, J);
22306
+ me && t.texSubImage2D(s.TEXTURE_2D, 0, 0, 0, ce, Me, J);
22307
22307
  } else
22308
- t.texImage2D(s.TEXTURE_2D, 0, Y, ue, Me, J);
22308
+ t.texImage2D(s.TEXTURE_2D, 0, Y, ce, Me, J);
22309
22309
  g(w) && p(O), de.__version = q.version, w.onUpdate && w.onUpdate(w);
22310
22310
  }
22311
22311
  F.__version = w.version;
@@ -22319,40 +22319,40 @@ function Og(s, e, t, n, i, r, a) {
22319
22319
  t.activeTexture(s.TEXTURE0 + ee);
22320
22320
  const de = gt.getPrimaries(gt.workingColorSpace), re = w.colorSpace === Ai ? null : gt.getPrimaries(w.colorSpace), te = w.colorSpace === Ai || de === re ? s.NONE : s.BROWSER_DEFAULT_WEBGL;
22321
22321
  s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL, w.flipY), s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL, w.premultiplyAlpha), s.pixelStorei(s.UNPACK_ALIGNMENT, w.unpackAlignment), s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL, te);
22322
- const pe = w.isCompressedTexture || w.image[0].isCompressedTexture, J = w.image[0] && w.image[0].isDataTexture, ue = [];
22323
- for (let ce = 0; ce < 6; ce++)
22324
- !pe && !J ? ue[ce] = _(w.image[ce], !0, i.maxCubemapSize) : ue[ce] = J ? w.image[ce].image : w.image[ce], ue[ce] = Je(w, ue[ce]);
22325
- const Me = ue[0], Y = r.convert(w.format, w.colorSpace), ve = r.convert(w.type), Ve = S(w.internalFormat, Y, ve, w.colorSpace), V = w.isVideoTexture !== !0, we = q.__version === void 0 || O === !0, me = X.dataReady;
22322
+ const pe = w.isCompressedTexture || w.image[0].isCompressedTexture, J = w.image[0] && w.image[0].isDataTexture, ce = [];
22323
+ for (let he = 0; he < 6; he++)
22324
+ !pe && !J ? ce[he] = _(w.image[he], !0, i.maxCubemapSize) : ce[he] = J ? w.image[he].image : w.image[he], ce[he] = Je(w, ce[he]);
22325
+ const Me = ce[0], Y = r.convert(w.format, w.colorSpace), ve = r.convert(w.type), Ve = S(w.internalFormat, Y, ve, w.colorSpace), V = w.isVideoTexture !== !0, we = q.__version === void 0 || O === !0, me = X.dataReady;
22326
22326
  let Ie = U(w, Me);
22327
22327
  Ue(s.TEXTURE_CUBE_MAP, w);
22328
22328
  let xe;
22329
22329
  if (pe) {
22330
22330
  V && we && t.texStorage2D(s.TEXTURE_CUBE_MAP, Ie, Ve, Me.width, Me.height);
22331
- for (let ce = 0; ce < 6; ce++) {
22332
- xe = ue[ce].mipmaps;
22331
+ for (let he = 0; he < 6; he++) {
22332
+ xe = ce[he].mipmaps;
22333
22333
  for (let Fe = 0; Fe < xe.length; Fe++) {
22334
22334
  const at = xe[Fe];
22335
- w.format !== Pn ? Y !== null ? V ? me && t.compressedTexSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, Fe, 0, 0, at.width, at.height, Y, at.data) : t.compressedTexImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, Fe, Ve, at.width, at.height, 0, at.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : V ? me && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, Fe, 0, 0, at.width, at.height, Y, ve, at.data) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, Fe, Ve, at.width, at.height, 0, Y, ve, at.data);
22335
+ w.format !== Pn ? Y !== null ? V ? me && t.compressedTexSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, Fe, 0, 0, at.width, at.height, Y, at.data) : t.compressedTexImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, Fe, Ve, at.width, at.height, 0, at.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : V ? me && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, Fe, 0, 0, at.width, at.height, Y, ve, at.data) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, Fe, Ve, at.width, at.height, 0, Y, ve, at.data);
22336
22336
  }
22337
22337
  }
22338
22338
  } else {
22339
22339
  if (xe = w.mipmaps, V && we) {
22340
22340
  xe.length > 0 && Ie++;
22341
- const ce = Ut(ue[0]);
22342
- t.texStorage2D(s.TEXTURE_CUBE_MAP, Ie, Ve, ce.width, ce.height);
22341
+ const he = Ut(ce[0]);
22342
+ t.texStorage2D(s.TEXTURE_CUBE_MAP, Ie, Ve, he.width, he.height);
22343
22343
  }
22344
- for (let ce = 0; ce < 6; ce++)
22344
+ for (let he = 0; he < 6; he++)
22345
22345
  if (J) {
22346
- V ? me && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, 0, 0, 0, ue[ce].width, ue[ce].height, Y, ve, ue[ce].data) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, 0, Ve, ue[ce].width, ue[ce].height, 0, Y, ve, ue[ce].data);
22346
+ V ? me && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, 0, 0, 0, ce[he].width, ce[he].height, Y, ve, ce[he].data) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, 0, Ve, ce[he].width, ce[he].height, 0, Y, ve, ce[he].data);
22347
22347
  for (let Fe = 0; Fe < xe.length; Fe++) {
22348
- const Tt = xe[Fe].image[ce].image;
22349
- V ? me && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, Fe + 1, 0, 0, Tt.width, Tt.height, Y, ve, Tt.data) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, Fe + 1, Ve, Tt.width, Tt.height, 0, Y, ve, Tt.data);
22348
+ const Tt = xe[Fe].image[he].image;
22349
+ V ? me && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, Fe + 1, 0, 0, Tt.width, Tt.height, Y, ve, Tt.data) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, Fe + 1, Ve, Tt.width, Tt.height, 0, Y, ve, Tt.data);
22350
22350
  }
22351
22351
  } else {
22352
- V ? me && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, 0, 0, 0, Y, ve, ue[ce]) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, 0, Ve, Y, ve, ue[ce]);
22352
+ V ? me && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, 0, 0, 0, Y, ve, ce[he]) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, 0, Ve, Y, ve, ce[he]);
22353
22353
  for (let Fe = 0; Fe < xe.length; Fe++) {
22354
22354
  const at = xe[Fe];
22355
- V ? me && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, Fe + 1, 0, 0, Y, ve, at.image[ce]) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ce, Fe + 1, Ve, Y, ve, at.image[ce]);
22355
+ V ? me && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, Fe + 1, 0, 0, Y, ve, at.image[he]) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + he, Fe + 1, Ve, Y, ve, at.image[he]);
22356
22356
  }
22357
22357
  }
22358
22358
  }
@@ -22363,8 +22363,8 @@ function Og(s, e, t, n, i, r, a) {
22363
22363
  function Ae(F, w, ee, O, X, q) {
22364
22364
  const de = r.convert(ee.format, ee.colorSpace), re = r.convert(ee.type), te = S(ee.internalFormat, de, re, ee.colorSpace), pe = n.get(w), J = n.get(ee);
22365
22365
  if (J.__renderTarget = w, !pe.__hasExternalTextures) {
22366
- const ue = Math.max(1, w.width >> q), Me = Math.max(1, w.height >> q);
22367
- X === s.TEXTURE_3D || X === s.TEXTURE_2D_ARRAY ? t.texImage3D(X, q, te, ue, Me, w.depth, 0, de, re, null) : t.texImage2D(X, q, te, ue, Me, 0, de, re, null);
22366
+ const ce = Math.max(1, w.width >> q), Me = Math.max(1, w.height >> q);
22367
+ X === s.TEXTURE_3D || X === s.TEXTURE_2D_ARRAY ? t.texImage3D(X, q, te, ce, Me, w.depth, 0, de, re, null) : t.texImage2D(X, q, te, ce, Me, 0, de, re, null);
22368
22368
  }
22369
22369
  t.bindFramebuffer(s.FRAMEBUFFER, F), je(w) ? o.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER, O, X, J.__webglTexture, 0, Le(w)) : (X === s.TEXTURE_2D || X >= s.TEXTURE_CUBE_MAP_POSITIVE_X && X <= s.TEXTURE_CUBE_MAP_NEGATIVE_Z) && s.framebufferTexture2D(s.FRAMEBUFFER, O, X, J.__webglTexture, q), t.bindFramebuffer(s.FRAMEBUFFER, null);
22370
22370
  }
@@ -22388,9 +22388,9 @@ function Og(s, e, t, n, i, r, a) {
22388
22388
  const O = n.get(w.depthTexture);
22389
22389
  O.__renderTarget = w, (!O.__webglTexture || w.depthTexture.image.width !== w.width || w.depthTexture.image.height !== w.height) && (w.depthTexture.image.width = w.width, w.depthTexture.image.height = w.height, w.depthTexture.needsUpdate = !0), ie(w.depthTexture, 0);
22390
22390
  const X = O.__webglTexture, q = Le(w);
22391
- if (w.depthTexture.format === ur)
22391
+ if (w.depthTexture.format === dr)
22392
22392
  je(w) ? o.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER, s.DEPTH_ATTACHMENT, s.TEXTURE_2D, X, 0, q) : s.framebufferTexture2D(s.FRAMEBUFFER, s.DEPTH_ATTACHMENT, s.TEXTURE_2D, X, 0);
22393
- else if (w.depthTexture.format === dr)
22393
+ else if (w.depthTexture.format === fr)
22394
22394
  je(w) ? o.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER, s.DEPTH_STENCIL_ATTACHMENT, s.TEXTURE_2D, X, 0, q) : s.framebufferTexture2D(s.FRAMEBUFFER, s.DEPTH_STENCIL_ATTACHMENT, s.TEXTURE_2D, X, 0);
22395
22395
  else
22396
22396
  throw new Error("Unknown depthTexture format");
@@ -22465,8 +22465,8 @@ function Og(s, e, t, n, i, r, a) {
22465
22465
  for (let re = 0; re < X.length; re++) {
22466
22466
  const te = X[re];
22467
22467
  ee.__webglColorRenderbuffer[re] = s.createRenderbuffer(), s.bindRenderbuffer(s.RENDERBUFFER, ee.__webglColorRenderbuffer[re]);
22468
- const pe = r.convert(te.format, te.colorSpace), J = r.convert(te.type), ue = S(te.internalFormat, pe, J, te.colorSpace, F.isXRRenderTarget === !0), Me = Le(F);
22469
- s.renderbufferStorageMultisample(s.RENDERBUFFER, Me, ue, F.width, F.height), s.framebufferRenderbuffer(s.FRAMEBUFFER, s.COLOR_ATTACHMENT0 + re, s.RENDERBUFFER, ee.__webglColorRenderbuffer[re]);
22468
+ const pe = r.convert(te.format, te.colorSpace), J = r.convert(te.type), ce = S(te.internalFormat, pe, J, te.colorSpace, F.isXRRenderTarget === !0), Me = Le(F);
22469
+ s.renderbufferStorageMultisample(s.RENDERBUFFER, Me, ce, F.width, F.height), s.framebufferRenderbuffer(s.FRAMEBUFFER, s.COLOR_ATTACHMENT0 + re, s.RENDERBUFFER, ee.__webglColorRenderbuffer[re]);
22470
22470
  }
22471
22471
  s.bindRenderbuffer(s.RENDERBUFFER, null), F.depthBuffer && (ee.__webglDepthRenderbuffer = s.createRenderbuffer(), _e(ee.__webglDepthRenderbuffer, F, !0)), t.bindFramebuffer(s.FRAMEBUFFER, null);
22472
22472
  }
@@ -22554,7 +22554,7 @@ function Og(s, e, t, n, i, r, a) {
22554
22554
  }
22555
22555
  function Je(F, w) {
22556
22556
  const ee = F.colorSpace, O = F.format, X = F.type;
22557
- return F.isCompressedTexture === !0 || F.isVideoTexture === !0 || ee !== Ns && ee !== Ai && (gt.getTransfer(ee) === It ? (O !== Pn || X !== Jn) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", ee)), w;
22557
+ return F.isCompressedTexture === !0 || F.isVideoTexture === !0 || ee !== Ns && ee !== Ai && (gt.getTransfer(ee) === It ? (O !== Pn || X !== Kn) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", ee)), w;
22558
22558
  }
22559
22559
  function Ut(F) {
22560
22560
  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;
@@ -22565,22 +22565,22 @@ function zg(s, e) {
22565
22565
  function t(n, i = Ai) {
22566
22566
  let r;
22567
22567
  const a = gt.getTransfer(i);
22568
- if (n === Jn) return s.UNSIGNED_BYTE;
22568
+ if (n === Kn) return s.UNSIGNED_BYTE;
22569
22569
  if (n === Nl) return s.UNSIGNED_SHORT_4_4_4_4;
22570
22570
  if (n === Fl) return s.UNSIGNED_SHORT_5_5_5_1;
22571
22571
  if (n === mu) return s.UNSIGNED_INT_5_9_9_9_REV;
22572
22572
  if (n === fu) return s.BYTE;
22573
22573
  if (n === pu) return s.SHORT;
22574
- if (n === cr) return s.UNSIGNED_SHORT;
22574
+ if (n === hr) return s.UNSIGNED_SHORT;
22575
22575
  if (n === Il) return s.INT;
22576
22576
  if (n === Qi) return s.UNSIGNED_INT;
22577
- if (n === jn) return s.FLOAT;
22578
- if (n === mr) return s.HALF_FLOAT;
22577
+ if (n === Yn) return s.FLOAT;
22578
+ if (n === gr) return s.HALF_FLOAT;
22579
22579
  if (n === gu) return s.ALPHA;
22580
22580
  if (n === _u) return s.RGB;
22581
22581
  if (n === Pn) return s.RGBA;
22582
- if (n === ur) return s.DEPTH_COMPONENT;
22583
- if (n === dr) return s.DEPTH_STENCIL;
22582
+ if (n === dr) return s.DEPTH_COMPONENT;
22583
+ if (n === fr) return s.DEPTH_STENCIL;
22584
22584
  if (n === vu) return s.RED;
22585
22585
  if (n === Ol) return s.RED_INTEGER;
22586
22586
  if (n === xu) return s.RG;
@@ -22649,7 +22649,7 @@ function zg(s, e) {
22649
22649
  if (n === _l) return r.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;
22650
22650
  } else
22651
22651
  return null;
22652
- return n === hr ? s.UNSIGNED_INT_24_8 : s[n] !== void 0 ? s[n] : null;
22652
+ return n === ur ? s.UNSIGNED_INT_24_8 : s[n] !== void 0 ? s[n] : null;
22653
22653
  }
22654
22654
  return { convert: t };
22655
22655
  }
@@ -22800,7 +22800,7 @@ class Hg extends ts {
22800
22800
  if (i = K, i !== null) {
22801
22801
  if (p = e.getRenderTarget(), i.addEventListener("select", W), i.addEventListener("selectstart", W), i.addEventListener("selectend", W), i.addEventListener("squeeze", W), i.addEventListener("squeezestart", W), i.addEventListener("squeezeend", W), i.addEventListener("end", Q), i.addEventListener("inputsourceschange", ie), g.xrCompatible !== !0 && await t.makeXRCompatible(), R = e.getPixelRatio(), e.getSize(U), typeof XRWebGLBinding < "u" && "createProjectionLayer" in XRWebGLBinding.prototype) {
22802
22802
  let ae = null, le = null, Ae = null;
22803
- g.depth && (Ae = g.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, ae = g.stencil ? dr : ur, le = g.stencil ? hr : Qi);
22803
+ g.depth && (Ae = g.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, ae = g.stencil ? fr : dr, le = g.stencil ? ur : Qi);
22804
22804
  const _e = {
22805
22805
  colorFormat: t.RGBA8,
22806
22806
  depthFormat: Ae,
@@ -22811,7 +22811,7 @@ class Hg extends ts {
22811
22811
  d.textureHeight,
22812
22812
  {
22813
22813
  format: Pn,
22814
- type: Jn,
22814
+ type: Kn,
22815
22815
  depthTexture: new Nu(d.textureWidth, d.textureHeight, le, void 0, void 0, void 0, void 0, void 0, void 0, ae),
22816
22816
  stencilBuffer: g.stencil,
22817
22817
  colorSpace: e.outputColorSpace,
@@ -22833,7 +22833,7 @@ class Hg extends ts {
22833
22833
  u.framebufferHeight,
22834
22834
  {
22835
22835
  format: Pn,
22836
- type: Jn,
22836
+ type: Kn,
22837
22837
  colorSpace: e.outputColorSpace,
22838
22838
  stencilBuffer: g.stencil,
22839
22839
  resolveDepthBuffer: u.ignoreDepthValues === !1,
@@ -22968,7 +22968,7 @@ function Wg(s, e) {
22968
22968
  p.isMeshBasicMaterial || p.isMeshLambertMaterial ? r(g, p) : p.isMeshToonMaterial ? (r(g, p), f(g, p)) : p.isMeshPhongMaterial ? (r(g, p), h(g, p)) : p.isMeshStandardMaterial ? (r(g, p), d(g, p), p.isMeshPhysicalMaterial && u(g, p, M)) : p.isMeshMatcapMaterial ? (r(g, p), m(g, p)) : p.isMeshDepthMaterial ? r(g, p) : p.isMeshDistanceMaterial ? (r(g, p), _(g, p)) : p.isMeshNormalMaterial ? r(g, p) : p.isLineBasicMaterial ? (a(g, p), p.isLineDashedMaterial && o(g, p)) : p.isPointsMaterial ? l(g, p, E, S) : p.isSpriteMaterial ? c(g, p) : p.isShadowMaterial ? (g.color.value.copy(p.color), g.opacity.value = p.opacity) : p.isShaderMaterial && (p.uniformsNeedUpdate = !1);
22969
22969
  }
22970
22970
  function r(g, p) {
22971
- g.opacity.value = p.opacity, p.color && g.diffuse.value.copy(p.color), p.emissive && g.emissive.value.copy(p.emissive).multiplyScalar(p.emissiveIntensity), p.map && (g.map.value = p.map, t(p.map, g.mapTransform)), p.alphaMap && (g.alphaMap.value = p.alphaMap, t(p.alphaMap, g.alphaMapTransform)), p.bumpMap && (g.bumpMap.value = p.bumpMap, t(p.bumpMap, g.bumpMapTransform), g.bumpScale.value = p.bumpScale, p.side === pn && (g.bumpScale.value *= -1)), p.normalMap && (g.normalMap.value = p.normalMap, t(p.normalMap, g.normalMapTransform), g.normalScale.value.copy(p.normalScale), p.side === pn && g.normalScale.value.negate()), p.displacementMap && (g.displacementMap.value = p.displacementMap, t(p.displacementMap, g.displacementMapTransform), g.displacementScale.value = p.displacementScale, g.displacementBias.value = p.displacementBias), p.emissiveMap && (g.emissiveMap.value = p.emissiveMap, t(p.emissiveMap, g.emissiveMapTransform)), p.specularMap && (g.specularMap.value = p.specularMap, t(p.specularMap, g.specularMapTransform)), p.alphaTest > 0 && (g.alphaTest.value = p.alphaTest);
22971
+ g.opacity.value = p.opacity, p.color && g.diffuse.value.copy(p.color), p.emissive && g.emissive.value.copy(p.emissive).multiplyScalar(p.emissiveIntensity), p.map && (g.map.value = p.map, t(p.map, g.mapTransform)), p.alphaMap && (g.alphaMap.value = p.alphaMap, t(p.alphaMap, g.alphaMapTransform)), p.bumpMap && (g.bumpMap.value = p.bumpMap, t(p.bumpMap, g.bumpMapTransform), g.bumpScale.value = p.bumpScale, p.side === mn && (g.bumpScale.value *= -1)), p.normalMap && (g.normalMap.value = p.normalMap, t(p.normalMap, g.normalMapTransform), g.normalScale.value.copy(p.normalScale), p.side === mn && g.normalScale.value.negate()), p.displacementMap && (g.displacementMap.value = p.displacementMap, t(p.displacementMap, g.displacementMapTransform), g.displacementScale.value = p.displacementScale, g.displacementBias.value = p.displacementBias), p.emissiveMap && (g.emissiveMap.value = p.emissiveMap, t(p.emissiveMap, g.emissiveMapTransform)), p.specularMap && (g.specularMap.value = p.specularMap, t(p.specularMap, g.specularMapTransform)), p.alphaTest > 0 && (g.alphaTest.value = p.alphaTest);
22972
22972
  const E = e.get(p), S = E.envMap, M = E.envMapRotation;
22973
22973
  S && (g.envMap.value = S, Hi.copy(M), Hi.x *= -1, Hi.y *= -1, Hi.z *= -1, S.isCubeTexture && S.isRenderTargetTexture === !1 && (Hi.y *= -1, Hi.z *= -1), g.envMapRotation.value.setFromMatrix4(Gg.makeRotationFromEuler(Hi)), g.flipEnvMap.value = S.isCubeTexture && S.isRenderTargetTexture === !1 ? -1 : 1, g.reflectivity.value = p.reflectivity, g.ior.value = p.ior, g.refractionRatio.value = p.refractionRatio), p.lightMap && (g.lightMap.value = p.lightMap, g.lightMapIntensity.value = p.lightMapIntensity, t(p.lightMap, g.lightMapTransform)), p.aoMap && (g.aoMap.value = p.aoMap, g.aoMapIntensity.value = p.aoMapIntensity, t(p.aoMap, g.aoMapTransform));
22974
22974
  }
@@ -22994,7 +22994,7 @@ function Wg(s, e) {
22994
22994
  g.metalness.value = p.metalness, p.metalnessMap && (g.metalnessMap.value = p.metalnessMap, t(p.metalnessMap, g.metalnessMapTransform)), g.roughness.value = p.roughness, p.roughnessMap && (g.roughnessMap.value = p.roughnessMap, t(p.roughnessMap, g.roughnessMapTransform)), p.envMap && (g.envMapIntensity.value = p.envMapIntensity);
22995
22995
  }
22996
22996
  function u(g, p, E) {
22997
- g.ior.value = p.ior, p.sheen > 0 && (g.sheenColor.value.copy(p.sheenColor).multiplyScalar(p.sheen), g.sheenRoughness.value = p.sheenRoughness, p.sheenColorMap && (g.sheenColorMap.value = p.sheenColorMap, t(p.sheenColorMap, g.sheenColorMapTransform)), p.sheenRoughnessMap && (g.sheenRoughnessMap.value = p.sheenRoughnessMap, t(p.sheenRoughnessMap, g.sheenRoughnessMapTransform))), p.clearcoat > 0 && (g.clearcoat.value = p.clearcoat, g.clearcoatRoughness.value = p.clearcoatRoughness, p.clearcoatMap && (g.clearcoatMap.value = p.clearcoatMap, t(p.clearcoatMap, g.clearcoatMapTransform)), p.clearcoatRoughnessMap && (g.clearcoatRoughnessMap.value = p.clearcoatRoughnessMap, t(p.clearcoatRoughnessMap, g.clearcoatRoughnessMapTransform)), p.clearcoatNormalMap && (g.clearcoatNormalMap.value = p.clearcoatNormalMap, t(p.clearcoatNormalMap, g.clearcoatNormalMapTransform), g.clearcoatNormalScale.value.copy(p.clearcoatNormalScale), p.side === pn && g.clearcoatNormalScale.value.negate())), p.dispersion > 0 && (g.dispersion.value = p.dispersion), p.iridescence > 0 && (g.iridescence.value = p.iridescence, g.iridescenceIOR.value = p.iridescenceIOR, g.iridescenceThicknessMinimum.value = p.iridescenceThicknessRange[0], g.iridescenceThicknessMaximum.value = p.iridescenceThicknessRange[1], p.iridescenceMap && (g.iridescenceMap.value = p.iridescenceMap, t(p.iridescenceMap, g.iridescenceMapTransform)), p.iridescenceThicknessMap && (g.iridescenceThicknessMap.value = p.iridescenceThicknessMap, t(p.iridescenceThicknessMap, g.iridescenceThicknessMapTransform))), p.transmission > 0 && (g.transmission.value = p.transmission, g.transmissionSamplerMap.value = E.texture, g.transmissionSamplerSize.value.set(E.width, E.height), p.transmissionMap && (g.transmissionMap.value = p.transmissionMap, t(p.transmissionMap, g.transmissionMapTransform)), g.thickness.value = p.thickness, p.thicknessMap && (g.thicknessMap.value = p.thicknessMap, t(p.thicknessMap, g.thicknessMapTransform)), g.attenuationDistance.value = p.attenuationDistance, g.attenuationColor.value.copy(p.attenuationColor)), p.anisotropy > 0 && (g.anisotropyVector.value.set(p.anisotropy * Math.cos(p.anisotropyRotation), p.anisotropy * Math.sin(p.anisotropyRotation)), p.anisotropyMap && (g.anisotropyMap.value = p.anisotropyMap, t(p.anisotropyMap, g.anisotropyMapTransform))), g.specularIntensity.value = p.specularIntensity, g.specularColor.value.copy(p.specularColor), p.specularColorMap && (g.specularColorMap.value = p.specularColorMap, t(p.specularColorMap, g.specularColorMapTransform)), p.specularIntensityMap && (g.specularIntensityMap.value = p.specularIntensityMap, t(p.specularIntensityMap, g.specularIntensityMapTransform));
22997
+ g.ior.value = p.ior, p.sheen > 0 && (g.sheenColor.value.copy(p.sheenColor).multiplyScalar(p.sheen), g.sheenRoughness.value = p.sheenRoughness, p.sheenColorMap && (g.sheenColorMap.value = p.sheenColorMap, t(p.sheenColorMap, g.sheenColorMapTransform)), p.sheenRoughnessMap && (g.sheenRoughnessMap.value = p.sheenRoughnessMap, t(p.sheenRoughnessMap, g.sheenRoughnessMapTransform))), p.clearcoat > 0 && (g.clearcoat.value = p.clearcoat, g.clearcoatRoughness.value = p.clearcoatRoughness, p.clearcoatMap && (g.clearcoatMap.value = p.clearcoatMap, t(p.clearcoatMap, g.clearcoatMapTransform)), p.clearcoatRoughnessMap && (g.clearcoatRoughnessMap.value = p.clearcoatRoughnessMap, t(p.clearcoatRoughnessMap, g.clearcoatRoughnessMapTransform)), p.clearcoatNormalMap && (g.clearcoatNormalMap.value = p.clearcoatNormalMap, t(p.clearcoatNormalMap, g.clearcoatNormalMapTransform), g.clearcoatNormalScale.value.copy(p.clearcoatNormalScale), p.side === mn && g.clearcoatNormalScale.value.negate())), p.dispersion > 0 && (g.dispersion.value = p.dispersion), p.iridescence > 0 && (g.iridescence.value = p.iridescence, g.iridescenceIOR.value = p.iridescenceIOR, g.iridescenceThicknessMinimum.value = p.iridescenceThicknessRange[0], g.iridescenceThicknessMaximum.value = p.iridescenceThicknessRange[1], p.iridescenceMap && (g.iridescenceMap.value = p.iridescenceMap, t(p.iridescenceMap, g.iridescenceMapTransform)), p.iridescenceThicknessMap && (g.iridescenceThicknessMap.value = p.iridescenceThicknessMap, t(p.iridescenceThicknessMap, g.iridescenceThicknessMapTransform))), p.transmission > 0 && (g.transmission.value = p.transmission, g.transmissionSamplerMap.value = E.texture, g.transmissionSamplerSize.value.set(E.width, E.height), p.transmissionMap && (g.transmissionMap.value = p.transmissionMap, t(p.transmissionMap, g.transmissionMapTransform)), g.thickness.value = p.thickness, p.thicknessMap && (g.thicknessMap.value = p.thicknessMap, t(p.thicknessMap, g.thicknessMapTransform)), g.attenuationDistance.value = p.attenuationDistance, g.attenuationColor.value.copy(p.attenuationColor)), p.anisotropy > 0 && (g.anisotropyVector.value.set(p.anisotropy * Math.cos(p.anisotropyRotation), p.anisotropy * Math.sin(p.anisotropyRotation)), p.anisotropyMap && (g.anisotropyMap.value = p.anisotropyMap, t(p.anisotropyMap, g.anisotropyMapTransform))), g.specularIntensity.value = p.specularIntensity, g.specularColor.value.copy(p.specularColor), p.specularColorMap && (g.specularColorMap.value = p.specularColorMap, t(p.specularColorMap, g.specularColorMapTransform)), p.specularIntensityMap && (g.specularIntensityMap.value = p.specularIntensityMap, t(p.specularIntensityMap, g.specularIntensityMapTransform));
22998
22998
  }
22999
22999
  function m(g, p) {
23000
23000
  p.matcap && (g.matcap.value = p.matcap);
@@ -23187,7 +23187,7 @@ class d_ {
23187
23187
  powerPreference: h,
23188
23188
  failIfMajorPerformanceCaveat: f
23189
23189
  };
23190
- if ("setAttribute" in t && t.setAttribute("data-engine", `three.js r${Ul}`), t.addEventListener("webglcontextlost", Ie, !1), t.addEventListener("webglcontextrestored", xe, !1), t.addEventListener("webglcontextcreationerror", ce, !1), B === null) {
23190
+ if ("setAttribute" in t && t.setAttribute("data-engine", `three.js r${Ul}`), t.addEventListener("webglcontextlost", Ie, !1), t.addEventListener("webglcontextrestored", xe, !1), t.addEventListener("webglcontextcreationerror", he, !1), B === null) {
23191
23191
  const z = "webgl2";
23192
23192
  if (B = xt(z, T), B === null)
23193
23193
  throw xt(z) ? new Error("Error creating WebGL context with your selected attributes.") : new Error("Error creating WebGL context.");
@@ -23195,9 +23195,9 @@ class d_ {
23195
23195
  } catch (T) {
23196
23196
  throw console.error("THREE.WebGLRenderer: " + T.message), T;
23197
23197
  }
23198
- let lt, rt, Le, je, Pe, Je, Ut, F, w, ee, O, X, q, de, re, te, pe, J, ue, Me, Y, ve, Ve, V;
23198
+ let lt, rt, Le, je, Pe, Je, Ut, F, w, ee, O, X, q, de, re, te, pe, J, ce, Me, Y, ve, Ve, V;
23199
23199
  function we() {
23200
- lt = new n2(B), lt.init(), ve = new zg(B, lt), rt = new $1(B, lt, e, ve), Le = new Fg(B, lt), rt.reverseDepthBuffer && d && Le.buffers.depth.setReversed(!0), je = new r2(B), Pe = new Sg(), Je = new Og(B, lt, Le, Pe, rt, ve, je), Ut = new K1(M), F = new t2(M), w = new u0(B), Ve = new j1(B, w), ee = new i2(B, w, je, Ve), O = new o2(B, ee, w, je), ue = new a2(B, rt, Je), te = new J1(Pe), X = new bg(M, Ut, F, lt, rt, Ve, te), q = new Wg(M, Pe), de = new wg(), re = new Pg(lt), J = new q1(M, Ut, F, Le, O, u, l), pe = new Ig(M, O, rt), V = new Xg(B, je, rt, Le), Me = new Y1(B, lt, je), Y = new s2(B, lt, je), je.programs = X.programs, M.capabilities = rt, M.extensions = lt, M.properties = Pe, M.renderLists = de, M.shadowMap = pe, M.state = Le, M.info = je;
23200
+ lt = new n2(B), lt.init(), ve = new zg(B, lt), rt = new $1(B, lt, e, ve), Le = new Fg(B, lt), rt.reverseDepthBuffer && d && Le.buffers.depth.setReversed(!0), je = new r2(B), Pe = new Sg(), Je = new Og(B, lt, Le, Pe, rt, ve, je), Ut = new K1(M), F = new t2(M), w = new u0(B), Ve = new j1(B, w), ee = new i2(B, w, je, Ve), O = new o2(B, ee, w, je), ce = new a2(B, rt, Je), te = new J1(Pe), X = new bg(M, Ut, F, lt, rt, Ve, te), q = new Wg(M, Pe), de = new wg(), re = new Pg(lt), J = new q1(M, Ut, F, Le, O, u, l), pe = new Ig(M, O, rt), V = new Xg(B, je, rt, Le), Me = new Y1(B, lt, je), Y = new s2(B, lt, je), je.programs = X.programs, M.capabilities = rt, M.extensions = lt, M.properties = Pe, M.renderLists = de, M.shadowMap = pe, M.state = Le, M.info = je;
23201
23201
  }
23202
23202
  we();
23203
23203
  const me = new Hg(M, B);
@@ -23262,7 +23262,7 @@ class d_ {
23262
23262
  j = ge === Bl || ge === zl || ge === Ol;
23263
23263
  }
23264
23264
  if (j) {
23265
- const ge = D.texture.type, Te = ge === Jn || ge === Qi || ge === cr || ge === hr || ge === Nl || ge === Fl, Ne = J.getClearColor(), ze = J.getClearAlpha(), et = Ne.r, tt = Ne.g, We = Ne.b;
23265
+ const ge = D.texture.type, Te = ge === Kn || ge === Qi || ge === hr || ge === ur || ge === Nl || ge === Fl, Ne = J.getClearColor(), ze = J.getClearAlpha(), et = Ne.r, tt = Ne.g, We = Ne.b;
23266
23266
  Te ? (m[0] = et, m[1] = tt, m[2] = We, m[3] = ze, B.clearBufferuiv(B.COLOR, 0, m)) : (_[0] = et, _[1] = tt, _[2] = We, _[3] = ze, B.clearBufferiv(B.COLOR, 0, _));
23267
23267
  } else
23268
23268
  Z |= B.COLOR_BUFFER_BIT;
@@ -23275,7 +23275,7 @@ class d_ {
23275
23275
  }, this.clearStencil = function() {
23276
23276
  this.clear(!1, !1, !0);
23277
23277
  }, this.dispose = function() {
23278
- t.removeEventListener("webglcontextlost", Ie, !1), t.removeEventListener("webglcontextrestored", xe, !1), t.removeEventListener("webglcontextcreationerror", ce, !1), J.dispose(), de.dispose(), re.dispose(), Pe.dispose(), Ut.dispose(), F.dispose(), O.dispose(), Ve.dispose(), V.dispose(), X.dispose(), me.dispose(), me.removeEventListener("sessionstart", Pi), me.removeEventListener("sessionend", Di), Tn.stop();
23278
+ t.removeEventListener("webglcontextlost", Ie, !1), t.removeEventListener("webglcontextrestored", xe, !1), t.removeEventListener("webglcontextcreationerror", he, !1), J.dispose(), de.dispose(), re.dispose(), Pe.dispose(), Ut.dispose(), F.dispose(), O.dispose(), Ve.dispose(), V.dispose(), X.dispose(), me.dispose(), me.removeEventListener("sessionstart", Pi), me.removeEventListener("sessionend", Di), Tn.stop();
23279
23279
  };
23280
23280
  function Ie(T) {
23281
23281
  T.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), U = !0;
@@ -23285,7 +23285,7 @@ class d_ {
23285
23285
  const T = je.autoReset, z = pe.enabled, k = pe.autoUpdate, Z = pe.needsUpdate, j = pe.type;
23286
23286
  we(), je.autoReset = T, pe.enabled = z, pe.autoUpdate = k, pe.needsUpdate = Z, pe.type = j;
23287
23287
  }
23288
- function ce(T) {
23288
+ function he(T) {
23289
23289
  console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ", T.statusMessage);
23290
23290
  }
23291
23291
  function Fe(T) {
@@ -23329,20 +23329,20 @@ class d_ {
23329
23329
  else if (lt.get("WEBGL_multi_draw"))
23330
23330
  dt.renderMultiDraw(j._multiDrawStarts, j._multiDrawCounts, j._multiDrawCount);
23331
23331
  else {
23332
- const Ke = j._multiDrawStarts, qt = j._multiDrawCounts, bt = j._multiDrawCount, gn = ze ? w.get(ze).bytesPerElement : 1, Ot = Pe.get(Z).currentProgram.getUniforms();
23332
+ const Ke = j._multiDrawStarts, Xt = j._multiDrawCounts, bt = j._multiDrawCount, _n = ze ? w.get(ze).bytesPerElement : 1, Ot = Pe.get(Z).currentProgram.getUniforms();
23333
23333
  for (let en = 0; en < bt; en++)
23334
- Ot.setValue(B, "_gl_DrawID", en), dt.render(Ke[en] / gn, qt[en]);
23334
+ Ot.setValue(B, "_gl_DrawID", en), dt.render(Ke[en] / _n, Xt[en]);
23335
23335
  }
23336
23336
  else if (j.isInstancedMesh)
23337
23337
  dt.renderInstances(ct, Ct, j.count);
23338
23338
  else if (k.isInstancedBufferGeometry) {
23339
- const Ke = k._maxInstanceCount !== void 0 ? k._maxInstanceCount : 1 / 0, qt = Math.min(k.instanceCount, Ke);
23340
- dt.renderInstances(ct, Ct, qt);
23339
+ const Ke = k._maxInstanceCount !== void 0 ? k._maxInstanceCount : 1 / 0, Xt = Math.min(k.instanceCount, Ke);
23340
+ dt.renderInstances(ct, Ct, Xt);
23341
23341
  } else
23342
23342
  dt.render(ct, Ct);
23343
23343
  };
23344
23344
  function ht(T, z, k) {
23345
- T.transparent === !0 && T.side === fn && T.forceSinglePass === !1 ? (T.side = pn, T.needsUpdate = !0, Qn(T, z, k), T.side = kn, T.needsUpdate = !0, Qn(T, z, k), T.side = fn) : Qn(T, z, k);
23345
+ T.transparent === !0 && T.side === pn && T.forceSinglePass === !1 ? (T.side = mn, T.needsUpdate = !0, ei(T, z, k), T.side = kn, T.needsUpdate = !0, ei(T, z, k), T.side = pn) : ei(T, z, k);
23346
23346
  }
23347
23347
  this.compile = function(T, z, k = null) {
23348
23348
  k === null && (k = T), p = re.get(k), p.init(z), S.push(p), k.traverseVisible(function(j) {
@@ -23380,7 +23380,7 @@ class d_ {
23380
23380
  });
23381
23381
  };
23382
23382
  let Zt = null;
23383
- function mn(T) {
23383
+ function gn(T) {
23384
23384
  Zt && Zt(T);
23385
23385
  }
23386
23386
  function Pi() {
@@ -23390,7 +23390,7 @@ class d_ {
23390
23390
  Tn.start();
23391
23391
  }
23392
23392
  const Tn = new Vu();
23393
- Tn.setAnimationLoop(mn), typeof self < "u" && Tn.setContext(self), this.setAnimationLoop = function(T) {
23393
+ Tn.setAnimationLoop(gn), typeof self < "u" && Tn.setContext(self), this.setAnimationLoop = function(T) {
23394
23394
  Zt = T, me.setAnimationLoop(T), T === null ? Tn.stop() : Tn.start();
23395
23395
  }, me.addEventListener("sessionstart", Pi), me.addEventListener("sessionend", Di), this.render = function(T, z) {
23396
23396
  if (z !== void 0 && z.isCamera !== !0) {
@@ -23454,14 +23454,14 @@ class d_ {
23454
23454
  }
23455
23455
  function Ui(T, z, k, Z) {
23456
23456
  const j = T.opaque, ge = T.transmissive, Te = T.transparent;
23457
- p.setupLightsView(k), se === !0 && te.setGlobalState(M.clippingPlanes, k), Z && Le.viewport(I.copy(Z)), j.length > 0 && Zn(j, z, k), ge.length > 0 && Zn(ge, z, k), Te.length > 0 && Zn(Te, z, k), Le.buffers.depth.setTest(!0), Le.buffers.depth.setMask(!0), Le.buffers.color.setMask(!0), Le.setPolygonOffset(!1);
23457
+ p.setupLightsView(k), se === !0 && te.setGlobalState(M.clippingPlanes, k), Z && Le.viewport(I.copy(Z)), j.length > 0 && Qn(j, z, k), ge.length > 0 && Qn(ge, z, k), Te.length > 0 && Qn(Te, z, k), Le.buffers.depth.setTest(!0), Le.buffers.depth.setMask(!0), Le.buffers.color.setMask(!0), Le.setPolygonOffset(!1);
23458
23458
  }
23459
23459
  function _i(T, z, k, Z) {
23460
23460
  if ((k.isScene === !0 ? k.overrideMaterial : null) !== null)
23461
23461
  return;
23462
23462
  p.state.transmissionRenderTarget[Z.id] === void 0 && (p.state.transmissionRenderTarget[Z.id] = new es(1, 1, {
23463
23463
  generateMipmaps: !0,
23464
- type: lt.has("EXT_color_buffer_half_float") || lt.has("EXT_color_buffer_float") ? mr : Jn,
23464
+ type: lt.has("EXT_color_buffer_half_float") || lt.has("EXT_color_buffer_float") ? gr : Kn,
23465
23465
  minFilter: hi,
23466
23466
  samples: 4,
23467
23467
  stencilBuffer: r,
@@ -23476,20 +23476,20 @@ class d_ {
23476
23476
  const ze = M.toneMapping;
23477
23477
  M.toneMapping = Ci;
23478
23478
  const et = Z.viewport;
23479
- if (Z.viewport !== void 0 && (Z.viewport = void 0), p.setupLightsView(Z), se === !0 && te.setGlobalState(M.clippingPlanes, Z), Zn(T, k, Z), Je.updateMultisampleRenderTarget(ge), Je.updateRenderTargetMipmap(ge), lt.has("WEBGL_multisampled_render_to_texture") === !1) {
23479
+ if (Z.viewport !== void 0 && (Z.viewport = void 0), p.setupLightsView(Z), se === !0 && te.setGlobalState(M.clippingPlanes, Z), Qn(T, k, Z), Je.updateMultisampleRenderTarget(ge), Je.updateRenderTargetMipmap(ge), lt.has("WEBGL_multisampled_render_to_texture") === !1) {
23480
23480
  let tt = !1;
23481
23481
  for (let We = 0, ct = z.length; We < ct; We++) {
23482
23482
  const Mt = z[We], Ct = Mt.object, yt = Mt.geometry, dt = Mt.material, Ke = Mt.group;
23483
- if (dt.side === fn && Ct.layers.test(Z.layers)) {
23484
- const qt = dt.side;
23485
- dt.side = pn, dt.needsUpdate = !0, vi(Ct, k, Z, yt, dt, Ke), dt.side = qt, dt.needsUpdate = !0, tt = !0;
23483
+ if (dt.side === pn && Ct.layers.test(Z.layers)) {
23484
+ const Xt = dt.side;
23485
+ dt.side = mn, dt.needsUpdate = !0, vi(Ct, k, Z, yt, dt, Ke), dt.side = Xt, dt.needsUpdate = !0, tt = !0;
23486
23486
  }
23487
23487
  }
23488
23488
  tt === !0 && (Je.updateMultisampleRenderTarget(ge), Je.updateRenderTargetMipmap(ge));
23489
23489
  }
23490
23490
  M.setRenderTarget(Ne), M.setClearColor(Q, ie), et !== void 0 && (Z.viewport = et), M.toneMapping = ze;
23491
23491
  }
23492
- function Zn(T, z, k) {
23492
+ function Qn(T, z, k) {
23493
23493
  const Z = z.isScene === !0 ? z.overrideMaterial : null;
23494
23494
  for (let j = 0, ge = T.length; j < ge; j++) {
23495
23495
  const Te = T[j], Ne = Te.object, ze = Te.geometry, et = Te.group;
@@ -23498,9 +23498,9 @@ class d_ {
23498
23498
  }
23499
23499
  }
23500
23500
  function vi(T, z, k, Z, j, ge) {
23501
- T.onBeforeRender(M, z, k, Z, j, ge), T.modelViewMatrix.multiplyMatrices(k.matrixWorldInverse, T.matrixWorld), T.normalMatrix.getNormalMatrix(T.modelViewMatrix), j.onBeforeRender(M, z, k, Z, T, ge), j.transparent === !0 && j.side === fn && j.forceSinglePass === !1 ? (j.side = pn, j.needsUpdate = !0, M.renderBufferDirect(k, z, Z, j, T, ge), j.side = kn, j.needsUpdate = !0, M.renderBufferDirect(k, z, Z, j, T, ge), j.side = fn) : M.renderBufferDirect(k, z, Z, j, T, ge), T.onAfterRender(M, z, k, Z, j, ge);
23501
+ T.onBeforeRender(M, z, k, Z, j, ge), T.modelViewMatrix.multiplyMatrices(k.matrixWorldInverse, T.matrixWorld), T.normalMatrix.getNormalMatrix(T.modelViewMatrix), j.onBeforeRender(M, z, k, Z, T, ge), j.transparent === !0 && j.side === pn && j.forceSinglePass === !1 ? (j.side = mn, j.needsUpdate = !0, M.renderBufferDirect(k, z, Z, j, T, ge), j.side = kn, j.needsUpdate = !0, M.renderBufferDirect(k, z, Z, j, T, ge), j.side = pn) : M.renderBufferDirect(k, z, Z, j, T, ge), T.onAfterRender(M, z, k, Z, j, ge);
23502
23502
  }
23503
- function Qn(T, z, k) {
23503
+ function ei(T, z, k) {
23504
23504
  z.isScene !== !0 && (z = qe);
23505
23505
  const Z = Pe.get(T), j = p.state.lights, ge = p.state.shadowsArray, Te = j.state.version, Ne = X.getParameters(T, j.state, ge, z, k), ze = X.getProgramCacheKey(Ne);
23506
23506
  let et = Z.programs;
@@ -23530,21 +23530,21 @@ class d_ {
23530
23530
  const ge = z.fog, Te = Z.isMeshStandardMaterial ? z.environment : null, Ne = D === null ? M.outputColorSpace : D.isXRRenderTarget === !0 ? D.texture.colorSpace : Ns, ze = (Z.isMeshStandardMaterial ? F : Ut).get(Z.envMap || Te), et = Z.vertexColors === !0 && !!k.attributes.color && k.attributes.color.itemSize === 4, tt = !!k.attributes.tangent && (!!Z.normalMap || Z.anisotropy > 0), We = !!k.morphAttributes.position, ct = !!k.morphAttributes.normal, Mt = !!k.morphAttributes.color;
23531
23531
  let Ct = Ci;
23532
23532
  Z.toneMapped && (D === null || D.isXRRenderTarget === !0) && (Ct = M.toneMapping);
23533
- const yt = k.morphAttributes.position || k.morphAttributes.normal || k.morphAttributes.color, dt = yt !== void 0 ? yt.length : 0, Ke = Pe.get(Z), qt = p.state.lights;
23533
+ const yt = k.morphAttributes.position || k.morphAttributes.normal || k.morphAttributes.color, dt = yt !== void 0 ? yt.length : 0, Ke = Pe.get(Z), Xt = p.state.lights;
23534
23534
  if (se === !0 && (ae === !0 || T !== y)) {
23535
23535
  const Gt = T === y && Z.id === b;
23536
23536
  te.setState(Z, T, Gt);
23537
23537
  }
23538
23538
  let bt = !1;
23539
- Z.version === Ke.__version ? (Ke.needsLights && Ke.lightsStateVersion !== qt.state.version || Ke.outputColorSpace !== Ne || j.isBatchedMesh && Ke.batching === !1 || !j.isBatchedMesh && Ke.batching === !0 || j.isBatchedMesh && Ke.batchingColor === !0 && j.colorTexture === null || j.isBatchedMesh && Ke.batchingColor === !1 && j.colorTexture !== null || j.isInstancedMesh && Ke.instancing === !1 || !j.isInstancedMesh && Ke.instancing === !0 || j.isSkinnedMesh && Ke.skinning === !1 || !j.isSkinnedMesh && Ke.skinning === !0 || j.isInstancedMesh && Ke.instancingColor === !0 && j.instanceColor === null || j.isInstancedMesh && Ke.instancingColor === !1 && j.instanceColor !== null || j.isInstancedMesh && Ke.instancingMorph === !0 && j.morphTexture === null || j.isInstancedMesh && Ke.instancingMorph === !1 && j.morphTexture !== null || Ke.envMap !== ze || Z.fog === !0 && Ke.fog !== ge || Ke.numClippingPlanes !== void 0 && (Ke.numClippingPlanes !== te.numPlanes || Ke.numIntersection !== te.numIntersection) || Ke.vertexAlphas !== et || Ke.vertexTangents !== tt || Ke.morphTargets !== We || Ke.morphNormals !== ct || Ke.morphColors !== Mt || Ke.toneMapping !== Ct || Ke.morphTargetsCount !== dt) && (bt = !0) : (bt = !0, Ke.__version = Z.version);
23540
- let gn = Ke.currentProgram;
23541
- bt === !0 && (gn = Qn(Z, z, j));
23539
+ Z.version === Ke.__version ? (Ke.needsLights && Ke.lightsStateVersion !== Xt.state.version || Ke.outputColorSpace !== Ne || j.isBatchedMesh && Ke.batching === !1 || !j.isBatchedMesh && Ke.batching === !0 || j.isBatchedMesh && Ke.batchingColor === !0 && j.colorTexture === null || j.isBatchedMesh && Ke.batchingColor === !1 && j.colorTexture !== null || j.isInstancedMesh && Ke.instancing === !1 || !j.isInstancedMesh && Ke.instancing === !0 || j.isSkinnedMesh && Ke.skinning === !1 || !j.isSkinnedMesh && Ke.skinning === !0 || j.isInstancedMesh && Ke.instancingColor === !0 && j.instanceColor === null || j.isInstancedMesh && Ke.instancingColor === !1 && j.instanceColor !== null || j.isInstancedMesh && Ke.instancingMorph === !0 && j.morphTexture === null || j.isInstancedMesh && Ke.instancingMorph === !1 && j.morphTexture !== null || Ke.envMap !== ze || Z.fog === !0 && Ke.fog !== ge || Ke.numClippingPlanes !== void 0 && (Ke.numClippingPlanes !== te.numPlanes || Ke.numIntersection !== te.numIntersection) || Ke.vertexAlphas !== et || Ke.vertexTangents !== tt || Ke.morphTargets !== We || Ke.morphNormals !== ct || Ke.morphColors !== Mt || Ke.toneMapping !== Ct || Ke.morphTargetsCount !== dt) && (bt = !0) : (bt = !0, Ke.__version = Z.version);
23540
+ let _n = Ke.currentProgram;
23541
+ bt === !0 && (_n = ei(Z, z, j));
23542
23542
  let Ot = !1, en = !1, Fi = !1;
23543
- const Ft = gn.getUniforms(), hn = Ke.uniforms;
23544
- if (Le.useProgram(gn.program) && (Ot = !0, en = !0, Fi = !0), Z.id !== b && (b = Z.id, en = !0), Ot || y !== T) {
23543
+ const Ft = _n.getUniforms(), hn = Ke.uniforms;
23544
+ if (Le.useProgram(_n.program) && (Ot = !0, en = !0, Fi = !0), Z.id !== b && (b = Z.id, en = !0), Ot || y !== T) {
23545
23545
  Le.buffers.depth.getReversed() ? (le.copy(T.projectionMatrix), Bf(le), kf(le), Ft.setValue(B, "projectionMatrix", le)) : Ft.setValue(B, "projectionMatrix", T.projectionMatrix), Ft.setValue(B, "viewMatrix", T.matrixWorldInverse);
23546
- const jt = Ft.map.cameraPosition;
23547
- jt !== void 0 && jt.setValue(B, _e.setFromMatrixPosition(T.matrixWorld)), rt.logarithmicDepthBuffer && Ft.setValue(
23546
+ const qt = Ft.map.cameraPosition;
23547
+ qt !== void 0 && qt.setValue(B, _e.setFromMatrixPosition(T.matrixWorld)), rt.logarithmicDepthBuffer && Ft.setValue(
23548
23548
  B,
23549
23549
  "logDepthBufFC",
23550
23550
  2 / (Math.log(T.far + 1) / Math.LN2)
@@ -23557,14 +23557,14 @@ class d_ {
23557
23557
  }
23558
23558
  j.isBatchedMesh && (Ft.setOptional(B, j, "batchingTexture"), Ft.setValue(B, "batchingTexture", j._matricesTexture, Je), Ft.setOptional(B, j, "batchingIdTexture"), Ft.setValue(B, "batchingIdTexture", j._indirectTexture, Je), Ft.setOptional(B, j, "batchingColorTexture"), j._colorsTexture !== null && Ft.setValue(B, "batchingColorTexture", j._colorsTexture, Je));
23559
23559
  const an = k.morphAttributes;
23560
- if ((an.position !== void 0 || an.normal !== void 0 || an.color !== void 0) && ue.update(j, k, gn), (en || Ke.receiveShadow !== j.receiveShadow) && (Ke.receiveShadow = j.receiveShadow, Ft.setValue(B, "receiveShadow", j.receiveShadow)), Z.isMeshGouraudMaterial && Z.envMap !== null && (hn.envMap.value = ze, hn.flipEnvMap.value = ze.isCubeTexture && ze.isRenderTargetTexture === !1 ? -1 : 1), Z.isMeshStandardMaterial && Z.envMap === null && z.environment !== null && (hn.envMapIntensity.value = z.environmentIntensity), en && (Ft.setValue(B, "toneMappingExposure", M.toneMappingExposure), Ke.needsLights && He(hn, Fi), ge && Z.fog === !0 && q.refreshFogUniforms(hn, ge), q.refreshMaterialUniforms(hn, Z, $, oe, p.state.transmissionRenderTarget[T.id]), ga.upload(B, Ii(Ke), hn, Je)), Z.isShaderMaterial && Z.uniformsNeedUpdate === !0 && (ga.upload(B, Ii(Ke), hn, Je), Z.uniformsNeedUpdate = !1), Z.isSpriteMaterial && Ft.setValue(B, "center", j.center), Ft.setValue(B, "modelViewMatrix", j.modelViewMatrix), Ft.setValue(B, "normalMatrix", j.normalMatrix), Ft.setValue(B, "modelMatrix", j.matrixWorld), Z.isShaderMaterial || Z.isRawShaderMaterial) {
23560
+ if ((an.position !== void 0 || an.normal !== void 0 || an.color !== void 0) && ce.update(j, k, _n), (en || Ke.receiveShadow !== j.receiveShadow) && (Ke.receiveShadow = j.receiveShadow, Ft.setValue(B, "receiveShadow", j.receiveShadow)), Z.isMeshGouraudMaterial && Z.envMap !== null && (hn.envMap.value = ze, hn.flipEnvMap.value = ze.isCubeTexture && ze.isRenderTargetTexture === !1 ? -1 : 1), Z.isMeshStandardMaterial && Z.envMap === null && z.environment !== null && (hn.envMapIntensity.value = z.environmentIntensity), en && (Ft.setValue(B, "toneMappingExposure", M.toneMappingExposure), Ke.needsLights && He(hn, Fi), ge && Z.fog === !0 && q.refreshFogUniforms(hn, ge), q.refreshMaterialUniforms(hn, Z, $, oe, p.state.transmissionRenderTarget[T.id]), ga.upload(B, Ii(Ke), hn, Je)), Z.isShaderMaterial && Z.uniformsNeedUpdate === !0 && (ga.upload(B, Ii(Ke), hn, Je), Z.uniformsNeedUpdate = !1), Z.isSpriteMaterial && Ft.setValue(B, "center", j.center), Ft.setValue(B, "modelViewMatrix", j.modelViewMatrix), Ft.setValue(B, "normalMatrix", j.normalMatrix), Ft.setValue(B, "modelMatrix", j.matrixWorld), Z.isShaderMaterial || Z.isRawShaderMaterial) {
23561
23561
  const Gt = Z.uniformsGroups;
23562
- for (let jt = 0, ss = Gt.length; jt < ss; jt++) {
23563
- const ei = Gt[jt];
23564
- V.update(ei, gn), V.bind(ei, gn);
23562
+ for (let qt = 0, ss = Gt.length; qt < ss; qt++) {
23563
+ const ti = Gt[qt];
23564
+ V.update(ti, _n), V.bind(ti, _n);
23565
23565
  }
23566
23566
  }
23567
- return gn;
23567
+ return _n;
23568
23568
  }
23569
23569
  function He(T, z) {
23570
23570
  T.ambientLightColor.needsUpdate = z, T.lightProbe.needsUpdate = z, T.directionalLights.needsUpdate = z, T.directionalLightShadows.needsUpdate = z, T.pointLights.needsUpdate = z, T.pointLightShadows.needsUpdate = z, T.spotLights.needsUpdate = z, T.spotLightShadows.needsUpdate = z, T.rectAreaLights.needsUpdate = z, T.hemisphereLights.needsUpdate = z;
@@ -23683,26 +23683,26 @@ class d_ {
23683
23683
  }
23684
23684
  Z !== null ? (ct = Z.x, Mt = Z.y, Ct = Z.z) : (ct = 0, Mt = 0, Ct = 0);
23685
23685
  const dt = ve.convert(z.format), Ke = ve.convert(z.type);
23686
- let qt;
23687
- z.isData3DTexture ? (Je.setTexture3D(z, 0), qt = B.TEXTURE_3D) : z.isDataArrayTexture || z.isCompressedArrayTexture ? (Je.setTexture2DArray(z, 0), qt = B.TEXTURE_2D_ARRAY) : (Je.setTexture2D(z, 0), qt = B.TEXTURE_2D), B.pixelStorei(B.UNPACK_FLIP_Y_WEBGL, z.flipY), B.pixelStorei(B.UNPACK_PREMULTIPLY_ALPHA_WEBGL, z.premultiplyAlpha), B.pixelStorei(B.UNPACK_ALIGNMENT, z.unpackAlignment);
23688
- const bt = B.getParameter(B.UNPACK_ROW_LENGTH), gn = B.getParameter(B.UNPACK_IMAGE_HEIGHT), Ot = B.getParameter(B.UNPACK_SKIP_PIXELS), en = B.getParameter(B.UNPACK_SKIP_ROWS), Fi = B.getParameter(B.UNPACK_SKIP_IMAGES);
23686
+ let Xt;
23687
+ z.isData3DTexture ? (Je.setTexture3D(z, 0), Xt = B.TEXTURE_3D) : z.isDataArrayTexture || z.isCompressedArrayTexture ? (Je.setTexture2DArray(z, 0), Xt = B.TEXTURE_2D_ARRAY) : (Je.setTexture2D(z, 0), Xt = B.TEXTURE_2D), B.pixelStorei(B.UNPACK_FLIP_Y_WEBGL, z.flipY), B.pixelStorei(B.UNPACK_PREMULTIPLY_ALPHA_WEBGL, z.premultiplyAlpha), B.pixelStorei(B.UNPACK_ALIGNMENT, z.unpackAlignment);
23688
+ const bt = B.getParameter(B.UNPACK_ROW_LENGTH), _n = B.getParameter(B.UNPACK_IMAGE_HEIGHT), Ot = B.getParameter(B.UNPACK_SKIP_PIXELS), en = B.getParameter(B.UNPACK_SKIP_ROWS), Fi = B.getParameter(B.UNPACK_SKIP_IMAGES);
23689
23689
  B.pixelStorei(B.UNPACK_ROW_LENGTH, yt.width), B.pixelStorei(B.UNPACK_IMAGE_HEIGHT, yt.height), B.pixelStorei(B.UNPACK_SKIP_PIXELS, et), B.pixelStorei(B.UNPACK_SKIP_ROWS, tt), B.pixelStorei(B.UNPACK_SKIP_IMAGES, We);
23690
23690
  const Ft = T.isDataArrayTexture || T.isData3DTexture, hn = z.isDataArrayTexture || z.isData3DTexture;
23691
23691
  if (T.isDepthTexture) {
23692
- const an = Pe.get(T), Gt = Pe.get(z), jt = Pe.get(an.__renderTarget), ss = Pe.get(Gt.__renderTarget);
23693
- Le.bindFramebuffer(B.READ_FRAMEBUFFER, jt.__webglFramebuffer), Le.bindFramebuffer(B.DRAW_FRAMEBUFFER, ss.__webglFramebuffer);
23694
- for (let ei = 0; ei < ze; ei++)
23695
- Ft && (B.framebufferTextureLayer(B.READ_FRAMEBUFFER, B.COLOR_ATTACHMENT0, Pe.get(T).__webglTexture, j, We + ei), B.framebufferTextureLayer(B.DRAW_FRAMEBUFFER, B.COLOR_ATTACHMENT0, Pe.get(z).__webglTexture, ge, Ct + ei)), B.blitFramebuffer(et, tt, Te, Ne, ct, Mt, Te, Ne, B.DEPTH_BUFFER_BIT, B.NEAREST);
23692
+ const an = Pe.get(T), Gt = Pe.get(z), qt = Pe.get(an.__renderTarget), ss = Pe.get(Gt.__renderTarget);
23693
+ Le.bindFramebuffer(B.READ_FRAMEBUFFER, qt.__webglFramebuffer), Le.bindFramebuffer(B.DRAW_FRAMEBUFFER, ss.__webglFramebuffer);
23694
+ for (let ti = 0; ti < ze; ti++)
23695
+ Ft && (B.framebufferTextureLayer(B.READ_FRAMEBUFFER, B.COLOR_ATTACHMENT0, Pe.get(T).__webglTexture, j, We + ti), B.framebufferTextureLayer(B.DRAW_FRAMEBUFFER, B.COLOR_ATTACHMENT0, Pe.get(z).__webglTexture, ge, Ct + ti)), B.blitFramebuffer(et, tt, Te, Ne, ct, Mt, Te, Ne, B.DEPTH_BUFFER_BIT, B.NEAREST);
23696
23696
  Le.bindFramebuffer(B.READ_FRAMEBUFFER, null), Le.bindFramebuffer(B.DRAW_FRAMEBUFFER, null);
23697
23697
  } else if (j !== 0 || T.isRenderTargetTexture || Pe.has(T)) {
23698
23698
  const an = Pe.get(T), Gt = Pe.get(z);
23699
23699
  Le.bindFramebuffer(B.READ_FRAMEBUFFER, Un), Le.bindFramebuffer(B.DRAW_FRAMEBUFFER, Gs);
23700
- for (let jt = 0; jt < ze; jt++)
23701
- Ft ? B.framebufferTextureLayer(B.READ_FRAMEBUFFER, B.COLOR_ATTACHMENT0, an.__webglTexture, j, We + jt) : B.framebufferTexture2D(B.READ_FRAMEBUFFER, B.COLOR_ATTACHMENT0, B.TEXTURE_2D, an.__webglTexture, j), hn ? B.framebufferTextureLayer(B.DRAW_FRAMEBUFFER, B.COLOR_ATTACHMENT0, Gt.__webglTexture, ge, Ct + jt) : B.framebufferTexture2D(B.DRAW_FRAMEBUFFER, B.COLOR_ATTACHMENT0, B.TEXTURE_2D, Gt.__webglTexture, ge), j !== 0 ? B.blitFramebuffer(et, tt, Te, Ne, ct, Mt, Te, Ne, B.COLOR_BUFFER_BIT, B.NEAREST) : hn ? B.copyTexSubImage3D(qt, ge, ct, Mt, Ct + jt, et, tt, Te, Ne) : B.copyTexSubImage2D(qt, ge, ct, Mt, et, tt, Te, Ne);
23700
+ for (let qt = 0; qt < ze; qt++)
23701
+ Ft ? B.framebufferTextureLayer(B.READ_FRAMEBUFFER, B.COLOR_ATTACHMENT0, an.__webglTexture, j, We + qt) : B.framebufferTexture2D(B.READ_FRAMEBUFFER, B.COLOR_ATTACHMENT0, B.TEXTURE_2D, an.__webglTexture, j), hn ? B.framebufferTextureLayer(B.DRAW_FRAMEBUFFER, B.COLOR_ATTACHMENT0, Gt.__webglTexture, ge, Ct + qt) : B.framebufferTexture2D(B.DRAW_FRAMEBUFFER, B.COLOR_ATTACHMENT0, B.TEXTURE_2D, Gt.__webglTexture, ge), j !== 0 ? B.blitFramebuffer(et, tt, Te, Ne, ct, Mt, Te, Ne, B.COLOR_BUFFER_BIT, B.NEAREST) : hn ? B.copyTexSubImage3D(Xt, ge, ct, Mt, Ct + qt, et, tt, Te, Ne) : B.copyTexSubImage2D(Xt, ge, ct, Mt, et, tt, Te, Ne);
23702
23702
  Le.bindFramebuffer(B.READ_FRAMEBUFFER, null), Le.bindFramebuffer(B.DRAW_FRAMEBUFFER, null);
23703
23703
  } else
23704
- hn ? T.isDataTexture || T.isData3DTexture ? B.texSubImage3D(qt, ge, ct, Mt, Ct, Te, Ne, ze, dt, Ke, yt.data) : z.isCompressedArrayTexture ? B.compressedTexSubImage3D(qt, ge, ct, Mt, Ct, Te, Ne, ze, dt, yt.data) : B.texSubImage3D(qt, ge, ct, Mt, Ct, Te, Ne, ze, dt, Ke, yt) : T.isDataTexture ? B.texSubImage2D(B.TEXTURE_2D, ge, ct, Mt, Te, Ne, dt, Ke, yt.data) : T.isCompressedTexture ? B.compressedTexSubImage2D(B.TEXTURE_2D, ge, ct, Mt, yt.width, yt.height, dt, yt.data) : B.texSubImage2D(B.TEXTURE_2D, ge, ct, Mt, Te, Ne, dt, Ke, yt);
23705
- B.pixelStorei(B.UNPACK_ROW_LENGTH, bt), B.pixelStorei(B.UNPACK_IMAGE_HEIGHT, gn), B.pixelStorei(B.UNPACK_SKIP_PIXELS, Ot), B.pixelStorei(B.UNPACK_SKIP_ROWS, en), B.pixelStorei(B.UNPACK_SKIP_IMAGES, Fi), ge === 0 && z.generateMipmaps && B.generateMipmap(qt), Le.unbindTexture();
23704
+ hn ? T.isDataTexture || T.isData3DTexture ? B.texSubImage3D(Xt, ge, ct, Mt, Ct, Te, Ne, ze, dt, Ke, yt.data) : z.isCompressedArrayTexture ? B.compressedTexSubImage3D(Xt, ge, ct, Mt, Ct, Te, Ne, ze, dt, yt.data) : B.texSubImage3D(Xt, ge, ct, Mt, Ct, Te, Ne, ze, dt, Ke, yt) : T.isDataTexture ? B.texSubImage2D(B.TEXTURE_2D, ge, ct, Mt, Te, Ne, dt, Ke, yt.data) : T.isCompressedTexture ? B.compressedTexSubImage2D(B.TEXTURE_2D, ge, ct, Mt, yt.width, yt.height, dt, yt.data) : B.texSubImage2D(B.TEXTURE_2D, ge, ct, Mt, Te, Ne, dt, Ke, yt);
23705
+ B.pixelStorei(B.UNPACK_ROW_LENGTH, bt), B.pixelStorei(B.UNPACK_IMAGE_HEIGHT, _n), B.pixelStorei(B.UNPACK_SKIP_PIXELS, Ot), B.pixelStorei(B.UNPACK_SKIP_ROWS, en), B.pixelStorei(B.UNPACK_SKIP_IMAGES, Fi), ge === 0 && z.generateMipmaps && B.generateMipmap(Xt), Le.unbindTexture();
23706
23706
  }, this.copyTextureToTexture3D = function(T, z, k = null, Z = null, j = 0) {
23707
23707
  return Ls('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(T, z, k, Z, j);
23708
23708
  }, this.initRenderTarget = function(T) {
@@ -23797,7 +23797,7 @@ const Kg = (s, e, t = 10) => Math.abs(s.clientX - e.x) < t && Math.abs(s.clientY
23797
23797
  !1
23798
23798
  ), r = i.length ? i[0] : null;
23799
23799
  return !r || !r.object.visible ? null : r;
23800
- }, Ao = 1e-6, Zg = 2 * Math.PI, ju = ["x", "y", "z"], pr = [...ju, "nx", "ny", "nz"], Qg = ["x", "z", "y", "nx", "nz", "ny"], e3 = ["z", "x", "y", "nz", "nx", "ny"], wl = "Right", _a = "Top", Al = "Front", Tl = "Left", va = "Bottom", Cl = "Back", t3 = [
23800
+ }, Ao = 1e-6, Zg = 2 * Math.PI, ju = ["x", "y", "z"], mr = [...ju, "nx", "ny", "nz"], Qg = ["x", "z", "y", "nx", "nz", "ny"], e3 = ["z", "x", "y", "nz", "nx", "ny"], wl = "Right", _a = "Top", Al = "Front", Tl = "Left", va = "Bottom", Cl = "Back", t3 = [
23801
23801
  wl,
23802
23802
  _a,
23803
23803
  Al,
@@ -23810,7 +23810,7 @@ const Kg = (s, e, t = 10) => Math.abs(s.clientX - e.x) < t && Math.abs(s.clientY
23810
23810
  }, Gi = (s) => JSON.parse(JSON.stringify(s)), n3 = (s) => {
23811
23811
  const e = s.type || "sphere", t = e === "sphere", n = s.resolution || t ? 64 : 128, i = Nt.DEFAULT_UP, r = i.z === 1, a = i.x === 1, { container: o } = s;
23812
23812
  s.container = void 0, s = JSON.parse(JSON.stringify(s)), s.container = o;
23813
- const l = r ? Qg : a ? e3 : pr;
23813
+ const l = r ? Qg : a ? e3 : mr;
23814
23814
  t3.forEach((d, u) => {
23815
23815
  s[d] && (s[l[u]] = s[d]);
23816
23816
  });
@@ -23943,7 +23943,7 @@ function Rl(s, ...e) {
23943
23943
  return s;
23944
23944
  }
23945
23945
  const i3 = (s, e = 2) => {
23946
- const t = new Ze(), n = e * 2, { isSphere: i, resolution: r, radius: a, font: o, corners: l, edges: c } = s, h = pr.map((P) => ({ ...s[P], radius: a }));
23946
+ const t = new Ze(), n = e * 2, { isSphere: i, resolution: r, radius: a, font: o, corners: l, edges: c } = s, h = mr.map((P) => ({ ...s[P], radius: a }));
23947
23947
  i && l.enabled && h.push(l), i && c.enabled && h.push(c);
23948
23948
  const f = document.createElement("canvas"), d = f.getContext("2d");
23949
23949
  f.width = r * 2 + n * 2, f.height = r * h.length + n * h.length;
@@ -23988,8 +23988,8 @@ const i3 = (s, e = 2) => {
23988
23988
  const _ = h.length, g = e / (r * 2), p = e / (r * 6), E = 1 / _, S = new _p(f);
23989
23989
  return S.repeat.set(0.5 - 2 * g, E - 2 * p), S.offset.set(g, 1 - p), Object.assign(S, {
23990
23990
  colorSpace: wt,
23991
- wrapS: qn,
23992
- wrapT: qn,
23991
+ wrapS: jn,
23992
+ wrapT: jn,
23993
23993
  userData: {
23994
23994
  offsetX: g,
23995
23995
  offsetY: p,
@@ -24066,8 +24066,8 @@ function nc(s, e, t = 2, n = 2) {
24066
24066
  }
24067
24067
  const r3 = (s, e) => {
24068
24068
  const t = new N(), { isSphere: n, radius: i, smoothness: r } = s, a = nc(i, r);
24069
- return pr.map((o, l) => {
24070
- const c = l < 3, h = pr[l], f = l ? e.clone() : e;
24069
+ return mr.map((o, l) => {
24070
+ const c = l < 3, h = mr[l], f = l ? e.clone() : e;
24071
24071
  tc(f, l);
24072
24072
  const { enabled: d, scale: u, opacity: m, hover: _ } = s[h], g = {
24073
24073
  map: f,
@@ -24290,7 +24290,7 @@ const c3 = (s, e) => {
24290
24290
  let o;
24291
24291
  const l = new Li({
24292
24292
  color: i,
24293
- side: pn,
24293
+ side: mn,
24294
24294
  opacity: r,
24295
24295
  transparent: !0,
24296
24296
  depthWrite: !1
@@ -24315,7 +24315,7 @@ const c3 = (s, e) => {
24315
24315
  opacity: r,
24316
24316
  hover: a
24317
24317
  }, o;
24318
- }, Vh = new Kn(), ea = new N();
24318
+ }, Vh = new Zn(), ta = new N();
24319
24319
  class $u extends s0 {
24320
24320
  constructor() {
24321
24321
  super(), this.isLineSegmentsGeometry = !0, this.type = "LineSegmentsGeometry";
@@ -24330,13 +24330,13 @@ class $u extends s0 {
24330
24330
  let t;
24331
24331
  e instanceof Float32Array ? t = e : Array.isArray(e) && (t = new Float32Array(e));
24332
24332
  const n = new Ml(t, 6, 1);
24333
- return this.setAttribute("instanceStart", new $n(n, 3, 0)), this.setAttribute("instanceEnd", new $n(n, 3, 3)), this.instanceCount = this.attributes.instanceStart.count, this.computeBoundingBox(), this.computeBoundingSphere(), this;
24333
+ return this.setAttribute("instanceStart", new Jn(n, 3, 0)), this.setAttribute("instanceEnd", new Jn(n, 3, 3)), this.instanceCount = this.attributes.instanceStart.count, this.computeBoundingBox(), this.computeBoundingSphere(), this;
24334
24334
  }
24335
24335
  setColors(e) {
24336
24336
  let t;
24337
24337
  e instanceof Float32Array ? t = e : Array.isArray(e) && (t = new Float32Array(e));
24338
24338
  const n = new Ml(t, 6, 1);
24339
- return this.setAttribute("instanceColorStart", new $n(n, 3, 0)), this.setAttribute("instanceColorEnd", new $n(n, 3, 3)), this;
24339
+ return this.setAttribute("instanceColorStart", new Jn(n, 3, 0)), this.setAttribute("instanceColorEnd", new Jn(n, 3, 3)), this;
24340
24340
  }
24341
24341
  fromWireframeGeometry(e) {
24342
24342
  return this.setPositions(e.attributes.position.array), this;
@@ -24352,7 +24352,7 @@ class $u extends s0 {
24352
24352
  return this.setPositions(t.attributes.position.array), this;
24353
24353
  }
24354
24354
  computeBoundingBox() {
24355
- this.boundingBox === null && (this.boundingBox = new Kn());
24355
+ this.boundingBox === null && (this.boundingBox = new Zn());
24356
24356
  const e = this.attributes.instanceStart, t = this.attributes.instanceEnd;
24357
24357
  e !== void 0 && t !== void 0 && (this.boundingBox.setFromBufferAttribute(e), Vh.setFromBufferAttribute(t), this.boundingBox.union(Vh));
24358
24358
  }
@@ -24364,7 +24364,7 @@ class $u extends s0 {
24364
24364
  this.boundingBox.getCenter(n);
24365
24365
  let i = 0;
24366
24366
  for (let r = 0, a = e.count; r < a; r++)
24367
- ea.fromBufferAttribute(e, r), i = Math.max(i, n.distanceToSquared(ea)), ea.fromBufferAttribute(t, r), i = Math.max(i, n.distanceToSquared(ea));
24367
+ ta.fromBufferAttribute(e, r), i = Math.max(i, n.distanceToSquared(ta)), ta.fromBufferAttribute(t, r), i = Math.max(i, n.distanceToSquared(ta));
24368
24368
  this.boundingSphere.radius = Math.sqrt(i), isNaN(this.boundingSphere.radius) && console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.", this);
24369
24369
  }
24370
24370
  }
@@ -24847,8 +24847,8 @@ class ic extends fi {
24847
24847
  this.defines && (e === !0 !== this.alphaToCoverage && (this.needsUpdate = !0), e === !0 ? this.defines.USE_ALPHA_TO_COVERAGE = "" : delete this.defines.USE_ALPHA_TO_COVERAGE);
24848
24848
  }
24849
24849
  }
24850
- const To = new vt(), Hh = new N(), Gh = new N(), tn = new vt(), nn = new vt(), Gn = new vt(), Co = new N(), Ro = new it(), sn = new c0(), Wh = new N(), ta = new Kn(), na = new pi(), Wn = new vt();
24851
- let Xn, Zi;
24850
+ const To = new vt(), Hh = new N(), Gh = new N(), tn = new vt(), nn = new vt(), Gn = new vt(), Co = new N(), Ro = new it(), sn = new c0(), Wh = new N(), na = new Zn(), ia = new pi(), Wn = new vt();
24851
+ let qn, Zi;
24852
24852
  function Xh(s, e, t) {
24853
24853
  return Wn.set(0, 0, -e, 1).applyMatrix4(s.projectionMatrix), Wn.multiplyScalar(1 / Wn.w), Wn.x = Zi / t.width, Wn.y = Zi / t.height, Wn.applyMatrix4(s.projectionMatrixInverse), Wn.multiplyScalar(1 / Wn.w), Math.abs(Math.max(Wn.x, Wn.y));
24854
24854
  }
@@ -24857,10 +24857,10 @@ function h3(s, e) {
24857
24857
  for (let o = 0, l = a; o < l; o++) {
24858
24858
  sn.start.fromBufferAttribute(i, o), sn.end.fromBufferAttribute(r, o), sn.applyMatrix4(t);
24859
24859
  const c = new N(), h = new N();
24860
- Xn.distanceSqToSegment(sn.start, sn.end, h, c), h.distanceTo(c) < Zi * 0.5 && e.push({
24860
+ qn.distanceSqToSegment(sn.start, sn.end, h, c), h.distanceTo(c) < Zi * 0.5 && e.push({
24861
24861
  point: h,
24862
24862
  pointOnLine: c,
24863
- distance: Xn.origin.distanceTo(h),
24863
+ distance: qn.origin.distanceTo(h),
24864
24864
  object: s,
24865
24865
  face: null,
24866
24866
  faceIndex: o,
@@ -24871,7 +24871,7 @@ function h3(s, e) {
24871
24871
  }
24872
24872
  function u3(s, e, t) {
24873
24873
  const n = e.projectionMatrix, i = s.material.resolution, r = s.matrixWorld, a = s.geometry, o = a.attributes.instanceStart, l = a.attributes.instanceEnd, c = Math.min(a.instanceCount, o.count), h = -e.near;
24874
- Xn.at(1, Gn), Gn.w = 1, Gn.applyMatrix4(e.matrixWorldInverse), Gn.applyMatrix4(n), Gn.multiplyScalar(1 / Gn.w), Gn.x *= i.x / 2, Gn.y *= i.y / 2, Gn.z = 0, Co.copy(Gn), Ro.multiplyMatrices(e.matrixWorldInverse, r);
24874
+ qn.at(1, Gn), Gn.w = 1, Gn.applyMatrix4(e.matrixWorldInverse), Gn.applyMatrix4(n), Gn.multiplyScalar(1 / Gn.w), Gn.x *= i.x / 2, Gn.y *= i.y / 2, Gn.z = 0, Co.copy(Gn), Ro.multiplyMatrices(e.matrixWorldInverse, r);
24875
24875
  for (let f = 0, d = c; f < d; f++) {
24876
24876
  if (tn.fromBufferAttribute(o, f), nn.fromBufferAttribute(l, f), tn.w = 1, nn.w = 1, tn.applyMatrix4(Ro), nn.applyMatrix4(Ro), tn.z > h && nn.z > h)
24877
24877
  continue;
@@ -24889,10 +24889,10 @@ function u3(s, e, t) {
24889
24889
  if (_ && g) {
24890
24890
  sn.start.fromBufferAttribute(o, f), sn.end.fromBufferAttribute(l, f), sn.start.applyMatrix4(r), sn.end.applyMatrix4(r);
24891
24891
  const p = new N(), E = new N();
24892
- Xn.distanceSqToSegment(sn.start, sn.end, E, p), t.push({
24892
+ qn.distanceSqToSegment(sn.start, sn.end, E, p), t.push({
24893
24893
  point: E,
24894
24894
  pointOnLine: p,
24895
- distance: Xn.origin.distanceTo(E),
24895
+ distance: qn.origin.distanceTo(E),
24896
24896
  object: s,
24897
24897
  face: null,
24898
24898
  faceIndex: f,
@@ -24912,33 +24912,33 @@ class d3 extends At {
24912
24912
  for (let a = 0, o = 0, l = t.count; a < l; a++, o += 2)
24913
24913
  Hh.fromBufferAttribute(t, a), Gh.fromBufferAttribute(n, a), i[o] = o === 0 ? 0 : i[o - 1], i[o + 1] = i[o] + Hh.distanceTo(Gh);
24914
24914
  const r = new Ml(i, 2, 1);
24915
- return e.setAttribute("instanceDistanceStart", new $n(r, 1, 0)), e.setAttribute("instanceDistanceEnd", new $n(r, 1, 1)), this;
24915
+ return e.setAttribute("instanceDistanceStart", new Jn(r, 1, 0)), e.setAttribute("instanceDistanceEnd", new Jn(r, 1, 1)), this;
24916
24916
  }
24917
24917
  raycast(e, t) {
24918
24918
  const n = this.material.worldUnits, i = e.camera;
24919
24919
  i === null && !n && console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');
24920
24920
  const r = e.params.Line2 !== void 0 && e.params.Line2.threshold || 0;
24921
- Xn = e.ray;
24921
+ qn = e.ray;
24922
24922
  const a = this.matrixWorld, o = this.geometry, l = this.material;
24923
- Zi = l.linewidth + r, o.boundingSphere === null && o.computeBoundingSphere(), na.copy(o.boundingSphere).applyMatrix4(a);
24923
+ Zi = l.linewidth + r, o.boundingSphere === null && o.computeBoundingSphere(), ia.copy(o.boundingSphere).applyMatrix4(a);
24924
24924
  let c;
24925
24925
  if (n)
24926
24926
  c = Zi * 0.5;
24927
24927
  else {
24928
- const f = Math.max(i.near, na.distanceToPoint(Xn.origin));
24928
+ const f = Math.max(i.near, ia.distanceToPoint(qn.origin));
24929
24929
  c = Xh(i, f, l.resolution);
24930
24930
  }
24931
- if (na.radius += c, Xn.intersectsSphere(na) === !1)
24931
+ if (ia.radius += c, qn.intersectsSphere(ia) === !1)
24932
24932
  return;
24933
- o.boundingBox === null && o.computeBoundingBox(), ta.copy(o.boundingBox).applyMatrix4(a);
24933
+ o.boundingBox === null && o.computeBoundingBox(), na.copy(o.boundingBox).applyMatrix4(a);
24934
24934
  let h;
24935
24935
  if (n)
24936
24936
  h = Zi * 0.5;
24937
24937
  else {
24938
- const f = Math.max(i.near, ta.distanceToPoint(Xn.origin));
24938
+ const f = Math.max(i.near, na.distanceToPoint(qn.origin));
24939
24939
  h = Xh(i, f, l.resolution);
24940
24940
  }
24941
- ta.expandByScalar(h), Xn.intersectsBox(ta) !== !1 && (n ? h3(this, t) : u3(this, i, t));
24941
+ na.expandByScalar(h), qn.intersectsBox(na) !== !1 && (n ? h3(this, t) : u3(this, i, t));
24942
24942
  }
24943
24943
  onBeforeRender(e) {
24944
24944
  const t = this.material.uniforms;
@@ -24979,7 +24979,7 @@ class f3 extends d3 {
24979
24979
  }
24980
24980
  const p3 = (s) => {
24981
24981
  const e = new Ze(), t = [], n = [], { isSphere: i } = s;
24982
- if (pr.forEach((o, l) => {
24982
+ if (mr.forEach((o, l) => {
24983
24983
  const { enabled: c, line: h, scale: f, color: d } = s[o];
24984
24984
  if (!c || !h) return;
24985
24985
  const u = l < 3 ? 1 : -1, m = (i ? Yu - f / 2 : 0.975) * u;
@@ -25340,7 +25340,7 @@ class f_ extends Nt {
25340
25340
  this._focus !== n && (this._domElement.style.cursor = n ? "pointer" : "", this._focus && Qs(this._focus, !1), (this._focus = n) ? Qs(n, !0) : Nh(this._options, this._intersections, this.camera));
25341
25341
  }
25342
25342
  }
25343
- const _3 = /^[og]\s*(.+)?/, v3 = /^mtllib /, x3 = /^usemtl /, y3 = /^usemap /, Yh = /\s+/, $h = new N(), Lo = new N(), Jh = new N(), Kh = new N(), Rn = new N(), ia = new Ze();
25343
+ const _3 = /^[og]\s*(.+)?/, v3 = /^mtllib /, x3 = /^usemtl /, y3 = /^usemap /, Yh = /\s+/, $h = new N(), Lo = new N(), Jh = new N(), Kh = new N(), Rn = new N(), sa = new Ze();
25344
25344
  function M3() {
25345
25345
  const s = {
25346
25346
  objects: [],
@@ -25566,12 +25566,12 @@ class Po extends Vn {
25566
25566
  parseFloat(f[1]),
25567
25567
  parseFloat(f[2]),
25568
25568
  parseFloat(f[3])
25569
- ), f.length >= 7 ? (ia.setRGB(
25569
+ ), f.length >= 7 ? (sa.setRGB(
25570
25570
  parseFloat(f[4]),
25571
25571
  parseFloat(f[5]),
25572
25572
  parseFloat(f[6]),
25573
25573
  wt
25574
- ), t.colors.push(ia.r, ia.g, ia.b)) : t.colors.push(void 0, void 0, void 0);
25574
+ ), t.colors.push(sa.r, sa.g, sa.b)) : t.colors.push(void 0, void 0, void 0);
25575
25575
  break;
25576
25576
  case "vn":
25577
25577
  t.normals.push(
@@ -25649,7 +25649,7 @@ class Po extends Vn {
25649
25649
  }
25650
25650
  }
25651
25651
  t.finalize();
25652
- const r = new Yn();
25652
+ const r = new $n();
25653
25653
  if (r.materialLibraries = [].concat(t.materialLibraries), !(t.objects.length === 1 && t.objects[0].geometry.vertices.length === 0) === !0)
25654
25654
  for (let o = 0, l = t.objects.length; o < l; o++) {
25655
25655
  const c = t.objects[o], h = c.geometry, f = c.materials, d = h.type === "Line", u = h.type === "Points";
@@ -25678,15 +25678,15 @@ class Po extends Vn {
25678
25678
  const M = f[E];
25679
25679
  _.addGroup(M.groupStart, M.groupCount, E);
25680
25680
  }
25681
- d ? p = new Aa(_, g) : u ? p = new ar(_, g) : p = new At(_, g);
25681
+ d ? p = new Aa(_, g) : u ? p = new or(_, g) : p = new At(_, g);
25682
25682
  } else
25683
- d ? p = new Aa(_, g[0]) : u ? p = new ar(_, g[0]) : p = new At(_, g[0]);
25683
+ d ? p = new Aa(_, g[0]) : u ? p = new or(_, g[0]) : p = new At(_, g[0]);
25684
25684
  p.name = c.name, r.add(p);
25685
25685
  }
25686
25686
  else if (t.vertices.length > 0) {
25687
25687
  const o = new Ki({ size: 1, sizeAttenuation: !1 }), l = new zt();
25688
25688
  l.setAttribute("position", new ut(t.vertices, 3)), t.colors.length > 0 && t.colors[0] !== void 0 && (l.setAttribute("color", new ut(t.colors, 3)), o.vertexColors = !0);
25689
- const c = new ar(l, o);
25689
+ const c = new or(l, o);
25690
25690
  r.add(c);
25691
25691
  }
25692
25692
  return r;
@@ -25758,7 +25758,7 @@ class Do extends Vn {
25758
25758
  }
25759
25759
  class b3 {
25760
25760
  constructor(e = "", t = {}) {
25761
- this.baseUrl = e, this.options = t, this.materialsInfo = {}, this.materials = {}, this.materialsArray = [], this.nameLookup = {}, this.crossOrigin = "anonymous", this.side = this.options.side !== void 0 ? this.options.side : kn, this.wrap = this.options.wrap !== void 0 ? this.options.wrap : qn;
25761
+ this.baseUrl = e, this.options = t, this.materialsInfo = {}, this.materials = {}, this.materialsArray = [], this.nameLookup = {}, this.crossOrigin = "anonymous", this.side = this.options.side !== void 0 ? this.options.side : kn, this.wrap = this.options.wrap !== void 0 ? this.options.wrap : jn;
25762
25762
  }
25763
25763
  setCrossOrigin(e) {
25764
25764
  return this.crossOrigin = e, this;
@@ -26166,7 +26166,7 @@ class S3 extends Vn {
26166
26166
  const f = new zt();
26167
26167
  r.length > 0 && f.setAttribute("position", new ut(r, 3)), a.length > 0 && f.setAttribute("normal", new ut(a, 3)), o.length > 0 && f.setAttribute("color", new ut(o, 3)), l.length > 0 && f.setAttribute("intensity", new ut(l, 1)), c.length > 0 && f.setAttribute("label", new np(c, 1)), f.computeBoundingSphere();
26168
26168
  const d = new Ki({ size: 5e-3 });
26169
- return o.length > 0 && (d.vertexColors = !0), new ar(f, d);
26169
+ return o.length > 0 && (d.vertexColors = !0), new or(f, d);
26170
26170
  }
26171
26171
  }
26172
26172
  class Zh extends Jp {
@@ -26423,8 +26423,8 @@ class E3 extends Vn {
26423
26423
  function n(x, v) {
26424
26424
  const C = [], A = x.childNodes;
26425
26425
  for (let L = 0, ne = A.length; L < ne; L++) {
26426
- const he = A[L];
26427
- he.nodeName === v && C.push(he);
26426
+ const ue = A[L];
26427
+ ue.nodeName === v && C.push(ue);
26428
26428
  }
26429
26429
  return C;
26430
26430
  }
@@ -26453,7 +26453,7 @@ class E3 extends Vn {
26453
26453
  return x.substring(1);
26454
26454
  }
26455
26455
  function l() {
26456
- return "three_default_" + ei++;
26456
+ return "three_default_" + ti++;
26457
26457
  }
26458
26458
  function c(x) {
26459
26459
  return Object.keys(x).length === 0;
@@ -26474,8 +26474,8 @@ class E3 extends Vn {
26474
26474
  const L = n(x, v)[0];
26475
26475
  if (L !== void 0) {
26476
26476
  const ne = n(L, C);
26477
- for (let he = 0; he < ne.length; he++)
26478
- A(ne[he]);
26477
+ for (let ue = 0; ue < ne.length; ue++)
26478
+ A(ne[ue]);
26479
26479
  }
26480
26480
  }
26481
26481
  function m(x, v) {
@@ -26497,16 +26497,16 @@ class E3 extends Vn {
26497
26497
  for (let A = 0, L = x.childNodes.length; A < L; A++) {
26498
26498
  const ne = x.childNodes[A];
26499
26499
  if (ne.nodeType !== 1) continue;
26500
- let he;
26500
+ let ue;
26501
26501
  switch (ne.nodeName) {
26502
26502
  case "source":
26503
- he = ne.getAttribute("id"), v.sources[he] = me(ne);
26503
+ ue = ne.getAttribute("id"), v.sources[ue] = me(ne);
26504
26504
  break;
26505
26505
  case "sampler":
26506
- he = ne.getAttribute("id"), v.samplers[he] = p(ne);
26506
+ ue = ne.getAttribute("id"), v.samplers[ue] = p(ne);
26507
26507
  break;
26508
26508
  case "channel":
26509
- he = ne.getAttribute("target"), v.channels[he] = E(ne);
26509
+ ue = ne.getAttribute("target"), v.channels[ue] = E(ne);
26510
26510
  break;
26511
26511
  case "animation":
26512
26512
  g(ne), C = !0;
@@ -26526,8 +26526,8 @@ class E3 extends Vn {
26526
26526
  if (L.nodeType === 1)
26527
26527
  switch (L.nodeName) {
26528
26528
  case "input":
26529
- const ne = o(L.getAttribute("source")), he = L.getAttribute("semantic");
26530
- v.inputs[he] = ne;
26529
+ const ne = o(L.getAttribute("source")), ue = L.getAttribute("semantic");
26530
+ v.inputs[ue] = ne;
26531
26531
  break;
26532
26532
  }
26533
26533
  }
@@ -26538,23 +26538,23 @@ class E3 extends Vn {
26538
26538
  let A = x.getAttribute("target").split("/");
26539
26539
  const L = A.shift();
26540
26540
  let ne = A.shift();
26541
- const he = ne.indexOf("(") !== -1, Be = ne.indexOf(".") !== -1;
26541
+ const ue = ne.indexOf("(") !== -1, Be = ne.indexOf(".") !== -1;
26542
26542
  if (Be)
26543
26543
  A = ne.split("."), ne = A.shift(), v.member = A.shift();
26544
- else if (he) {
26544
+ else if (ue) {
26545
26545
  const Re = ne.split("(");
26546
26546
  ne = Re.shift();
26547
26547
  for (let Oe = 0; Oe < Re.length; Oe++)
26548
26548
  Re[Oe] = parseInt(Re[Oe].replace(/\)/, ""));
26549
26549
  v.indices = Re;
26550
26550
  }
26551
- return v.id = L, v.sid = ne, v.arraySyntax = he, v.memberSyntax = Be, v.sampler = o(x.getAttribute("source")), v;
26551
+ return v.id = L, v.sid = ne, v.arraySyntax = ue, v.memberSyntax = Be, v.sampler = o(x.getAttribute("source")), v;
26552
26552
  }
26553
26553
  function S(x) {
26554
26554
  const v = [], C = x.channels, A = x.samplers, L = x.sources;
26555
26555
  for (const ne in C)
26556
26556
  if (C.hasOwnProperty(ne)) {
26557
- const he = C[ne], Be = A[he.sampler], Re = Be.inputs.INPUT, Oe = Be.inputs.OUTPUT, Ye = L[Re], be = L[Oe], Xe = U(he, Ye, be);
26557
+ const ue = C[ne], Be = A[ue.sampler], Re = Be.inputs.INPUT, Oe = Be.inputs.OUTPUT, Ye = L[Re], be = L[Oe], Xe = U(ue, Ye, be);
26558
26558
  y(Xe, v);
26559
26559
  }
26560
26560
  return v;
@@ -26563,15 +26563,15 @@ class E3 extends Vn {
26563
26563
  return _(ot.animations[x], S);
26564
26564
  }
26565
26565
  function U(x, v, C) {
26566
- const A = ot.nodes[x.id], L = ct(A.id), ne = A.transforms[x.sid], he = A.matrix.clone().transpose();
26566
+ const A = ot.nodes[x.id], L = ct(A.id), ne = A.transforms[x.sid], ue = A.matrix.clone().transpose();
26567
26567
  let Be, Re, Oe, Ye, be, Xe;
26568
26568
  const Ge = {};
26569
26569
  switch (ne) {
26570
26570
  case "matrix":
26571
26571
  for (Oe = 0, Ye = v.array.length; Oe < Ye; Oe++)
26572
26572
  if (Be = v.array[Oe], Re = Oe * C.stride, Ge[Be] === void 0 && (Ge[Be] = {}), x.arraySyntax === !0) {
26573
- const Bt = C.array[Re], Pt = x.indices[0] + 4 * x.indices[1];
26574
- Ge[Be][Pt] = Bt;
26573
+ const kt = C.array[Re], Pt = x.indices[0] + 4 * x.indices[1];
26574
+ Ge[Be][Pt] = kt;
26575
26575
  } else
26576
26576
  for (be = 0, Xe = C.stride; be < Xe; be++)
26577
26577
  Ge[Be][be] = C.array[Re + be];
@@ -26586,7 +26586,7 @@ class E3 extends Vn {
26586
26586
  console.warn('THREE.ColladaLoader: Animation transform type "%s" not yet implemented.', ne);
26587
26587
  break;
26588
26588
  }
26589
- const nt = R(Ge, he);
26589
+ const nt = R(Ge, ue);
26590
26590
  return {
26591
26591
  name: L.uuid,
26592
26592
  keyframes: nt
@@ -26606,19 +26606,19 @@ class E3 extends Vn {
26606
26606
  }
26607
26607
  const P = new N(), D = new N(), b = new Dn();
26608
26608
  function y(x, v) {
26609
- const C = x.keyframes, A = x.name, L = [], ne = [], he = [], Be = [];
26609
+ const C = x.keyframes, A = x.name, L = [], ne = [], ue = [], Be = [];
26610
26610
  for (let Re = 0, Oe = C.length; Re < Oe; Re++) {
26611
26611
  const Ye = C[Re], be = Ye.time, Xe = Ye.value;
26612
- z.fromArray(Xe).transpose(), z.decompose(P, b, D), L.push(be), ne.push(P.x, P.y, P.z), he.push(b.x, b.y, b.z, b.w), Be.push(D.x, D.y, D.z);
26612
+ z.fromArray(Xe).transpose(), z.decompose(P, b, D), L.push(be), ne.push(P.x, P.y, P.z), ue.push(b.x, b.y, b.z, b.w), Be.push(D.x, D.y, D.z);
26613
26613
  }
26614
- return ne.length > 0 && v.push(new zs(A + ".position", L, ne)), he.length > 0 && v.push(new _r(A + ".quaternion", L, he)), Be.length > 0 && v.push(new zs(A + ".scale", L, Be)), v;
26614
+ return ne.length > 0 && v.push(new zs(A + ".position", L, ne)), ue.length > 0 && v.push(new vr(A + ".quaternion", L, ue)), Be.length > 0 && v.push(new zs(A + ".scale", L, Be)), v;
26615
26615
  }
26616
26616
  function I(x, v, C) {
26617
- let A, L = !0, ne, he;
26618
- for (ne = 0, he = x.length; ne < he; ne++)
26617
+ let A, L = !0, ne, ue;
26618
+ for (ne = 0, ue = x.length; ne < ue; ne++)
26619
26619
  A = x[ne], A.value[v] === void 0 ? A.value[v] = null : L = !1;
26620
26620
  if (L === !0)
26621
- for (ne = 0, he = x.length; ne < he; ne++)
26621
+ for (ne = 0, ue = x.length; ne < ue; ne++)
26622
26622
  A = x[ne], A.value[v] = C;
26623
26623
  else
26624
26624
  G(x, v);
@@ -26626,17 +26626,17 @@ class E3 extends Vn {
26626
26626
  function G(x, v) {
26627
26627
  let C, A;
26628
26628
  for (let L = 0, ne = x.length; L < ne; L++) {
26629
- const he = x[L];
26630
- if (he.value[v] === null) {
26629
+ const ue = x[L];
26630
+ if (ue.value[v] === null) {
26631
26631
  if (C = W(x, L, v), A = Q(x, L, v), C === null) {
26632
- he.value[v] = A.value[v];
26632
+ ue.value[v] = A.value[v];
26633
26633
  continue;
26634
26634
  }
26635
26635
  if (A === null) {
26636
- he.value[v] = C.value[v];
26636
+ ue.value[v] = C.value[v];
26637
26637
  continue;
26638
26638
  }
26639
- ie(he, C, A, v);
26639
+ ie(ue, C, A, v);
26640
26640
  }
26641
26641
  }
26642
26642
  }
@@ -26683,7 +26683,7 @@ class E3 extends Vn {
26683
26683
  }
26684
26684
  function oe(x) {
26685
26685
  const v = [], C = x.name, A = x.end - x.start || -1, L = x.animations;
26686
- for (let ne = 0, he = L.length; ne < he; ne++) {
26686
+ for (let ne = 0, ue = L.length; ne < ue; ne++) {
26687
26687
  const Be = M(L[ne]);
26688
26688
  for (let Re = 0, Oe = Be.length; Re < Oe; Re++)
26689
26689
  v.push(Be[Re]);
@@ -26743,8 +26743,8 @@ class E3 extends Vn {
26743
26743
  if (L.nodeType === 1)
26744
26744
  switch (L.nodeName) {
26745
26745
  case "input":
26746
- const ne = L.getAttribute("semantic"), he = o(L.getAttribute("source"));
26747
- v.inputs[ne] = he;
26746
+ const ne = L.getAttribute("semantic"), ue = o(L.getAttribute("source"));
26747
+ v.inputs[ne] = ue;
26748
26748
  break;
26749
26749
  }
26750
26750
  }
@@ -26759,8 +26759,8 @@ class E3 extends Vn {
26759
26759
  if (L.nodeType === 1)
26760
26760
  switch (L.nodeName) {
26761
26761
  case "input":
26762
- const ne = L.getAttribute("semantic"), he = o(L.getAttribute("source")), Be = parseInt(L.getAttribute("offset"));
26763
- v.inputs[ne] = { id: he, offset: Be };
26762
+ const ne = L.getAttribute("semantic"), ue = o(L.getAttribute("source")), Be = parseInt(L.getAttribute("offset"));
26763
+ v.inputs[ne] = { id: ue, offset: Be };
26764
26764
  break;
26765
26765
  case "vcount":
26766
26766
  v.vcount = a(L.textContent);
@@ -26790,15 +26790,15 @@ class E3 extends Vn {
26790
26790
  array: [],
26791
26791
  stride: 4
26792
26792
  }
26793
- }, A = x.sources, L = x.vertexWeights, ne = L.vcount, he = L.v, Be = L.inputs.JOINT.offset, Re = L.inputs.WEIGHT.offset, Oe = x.sources[x.joints.inputs.JOINT], Ye = x.sources[x.joints.inputs.INV_BIND_MATRIX], be = A[L.inputs.WEIGHT.id].array;
26793
+ }, A = x.sources, L = x.vertexWeights, ne = L.vcount, ue = L.v, Be = L.inputs.JOINT.offset, Re = L.inputs.WEIGHT.offset, Oe = x.sources[x.joints.inputs.JOINT], Ye = x.sources[x.joints.inputs.INV_BIND_MATRIX], be = A[L.inputs.WEIGHT.id].array;
26794
26794
  let Xe = 0, Ge, nt, $e;
26795
26795
  for (Ge = 0, $e = ne.length; Ge < $e; Ge++) {
26796
26796
  const Pt = ne[Ge], St = [];
26797
26797
  for (nt = 0; nt < Pt; nt++) {
26798
- const Et = he[Xe + Be], ti = he[Xe + Re], _n = be[ti];
26799
- St.push({ index: Et, weight: _n }), Xe += 2;
26798
+ const Et = ue[Xe + Be], ni = ue[Xe + Re], vn = be[ni];
26799
+ St.push({ index: Et, weight: vn }), Xe += 2;
26800
26800
  }
26801
- for (St.sort(Bt), nt = 0; nt < 4; nt++) {
26801
+ for (St.sort(kt), nt = 0; nt < 4; nt++) {
26802
26802
  const Et = St[nt];
26803
26803
  Et !== void 0 ? (C.indices.array.push(Et.index), C.weights.array.push(Et.weight)) : (C.indices.array.push(0), C.weights.array.push(0));
26804
26804
  }
@@ -26808,7 +26808,7 @@ class E3 extends Vn {
26808
26808
  C.joints.push({ name: Pt, boneInverse: St });
26809
26809
  }
26810
26810
  return C;
26811
- function Bt(Pt, St) {
26811
+ function kt(Pt, St) {
26812
26812
  return St.weight - Pt.weight;
26813
26813
  }
26814
26814
  }
@@ -27118,9 +27118,9 @@ class E3 extends Vn {
27118
27118
  const Ge = Xe.load(be), nt = Re.extra;
27119
27119
  if (nt !== void 0 && nt.technique !== void 0 && c(nt.technique) === !1) {
27120
27120
  const $e = nt.technique;
27121
- Ge.wrapS = $e.wrapU ? qn : zn, Ge.wrapT = $e.wrapV ? qn : zn, Ge.offset.set($e.offsetU || 0, $e.offsetV || 0), Ge.repeat.set($e.repeatU || 1, $e.repeatV || 1);
27121
+ Ge.wrapS = $e.wrapU ? jn : zn, Ge.wrapT = $e.wrapV ? jn : zn, Ge.offset.set($e.offsetU || 0, $e.offsetV || 0), Ge.repeat.set($e.repeatU || 1, $e.repeatV || 1);
27122
27122
  } else
27123
- Ge.wrapS = qn, Ge.wrapT = qn;
27123
+ Ge.wrapS = jn, Ge.wrapT = jn;
27124
27124
  return Oe !== null && (Ge.colorSpace = Oe), Ge;
27125
27125
  } else
27126
27126
  return console.warn("THREE.ColladaLoader: Loader for texture %s not found.", be), null;
@@ -27152,20 +27152,20 @@ class E3 extends Vn {
27152
27152
  }
27153
27153
  }
27154
27154
  gt.colorSpaceToWorking(A.color, wt), A.specular && gt.colorSpaceToWorking(A.specular, wt), A.emissive && gt.colorSpaceToWorking(A.emissive, wt);
27155
- let he = ne.transparent, Be = ne.transparency;
27156
- if (Be === void 0 && he && (Be = {
27155
+ let ue = ne.transparent, Be = ne.transparency;
27156
+ if (Be === void 0 && ue && (Be = {
27157
27157
  float: 1
27158
- }), he === void 0 && Be && (he = {
27158
+ }), ue === void 0 && Be && (ue = {
27159
27159
  opaque: "A_ONE",
27160
27160
  data: {
27161
27161
  color: [1, 1, 1, 1]
27162
27162
  }
27163
- }), he && Be)
27164
- if (he.data.texture)
27163
+ }), ue && Be)
27164
+ if (ue.data.texture)
27165
27165
  A.transparent = !0;
27166
27166
  else {
27167
- const Re = he.data.color;
27168
- switch (he.opaque) {
27167
+ const Re = ue.data.color;
27168
+ switch (ue.opaque) {
27169
27169
  case "A_ONE":
27170
27170
  A.opacity = Re[3] * Be.float;
27171
27171
  break;
@@ -27179,7 +27179,7 @@ class E3 extends Vn {
27179
27179
  A.opacity = Re[0] * Be.float;
27180
27180
  break;
27181
27181
  default:
27182
- console.warn('THREE.ColladaLoader: Invalid opaque type "%s" of transparent tag.', he.opaque);
27182
+ console.warn('THREE.ColladaLoader: Invalid opaque type "%s" of transparent tag.', ue.opaque);
27183
27183
  }
27184
27184
  A.opacity < 1 && (A.transparent = !0);
27185
27185
  }
@@ -27189,7 +27189,7 @@ class E3 extends Vn {
27189
27189
  const Ye = Re[Oe];
27190
27190
  switch (Oe) {
27191
27191
  case "double_sided":
27192
- A.side = Ye === 1 ? fn : kn;
27192
+ A.side = Ye === 1 ? pn : kn;
27193
27193
  break;
27194
27194
  case "bump":
27195
27195
  A.normalMap = L(Ye.texture), A.normalScale = new ke(1, 1);
@@ -27288,7 +27288,7 @@ class E3 extends Vn {
27288
27288
  }
27289
27289
  return v.name = x.name || "", v;
27290
27290
  }
27291
- function ue(x) {
27291
+ function ce(x) {
27292
27292
  const v = ot.cameras[x];
27293
27293
  return v !== void 0 ? _(v, J) : (console.warn("THREE.ColladaLoader: Couldn't find camera with ID:", x), null);
27294
27294
  }
@@ -27334,8 +27334,8 @@ class E3 extends Vn {
27334
27334
  v.falloffAngle = parseFloat(L.textContent);
27335
27335
  break;
27336
27336
  case "quadratic_attenuation":
27337
- const he = parseFloat(L.textContent);
27338
- v.distance = he ? Math.sqrt(1 / he) : 0;
27337
+ const ue = parseFloat(L.textContent);
27338
+ v.distance = ue ? Math.sqrt(1 / ue) : 0;
27339
27339
  break;
27340
27340
  }
27341
27341
  }
@@ -27443,8 +27443,8 @@ class E3 extends Vn {
27443
27443
  if (L.nodeType === 1)
27444
27444
  switch (L.nodeName) {
27445
27445
  case "input":
27446
- const ne = o(L.getAttribute("source")), he = L.getAttribute("semantic"), Be = parseInt(L.getAttribute("offset")), Re = parseInt(L.getAttribute("set")), Oe = Re > 0 ? he + Re : he;
27447
- v.inputs[Oe] = { id: ne, offset: Be }, v.stride = Math.max(v.stride, Be + 1), he === "TEXCOORD" && (v.hasUV = !0);
27446
+ const ne = o(L.getAttribute("source")), ue = L.getAttribute("semantic"), Be = parseInt(L.getAttribute("offset")), Re = parseInt(L.getAttribute("set")), Oe = Re > 0 ? ue + Re : ue;
27447
+ v.inputs[Oe] = { id: ne, offset: Be }, v.stride = Math.max(v.stride, Be + 1), ue === "TEXCOORD" && (v.hasUV = !0);
27448
27448
  break;
27449
27449
  case "vcount":
27450
27450
  v.vcount = a(L.textContent);
@@ -27456,7 +27456,7 @@ class E3 extends Vn {
27456
27456
  }
27457
27457
  return v;
27458
27458
  }
27459
- function ce(x) {
27459
+ function he(x) {
27460
27460
  const v = {};
27461
27461
  for (let C = 0; C < x.length; C++) {
27462
27462
  const A = x[C];
@@ -27473,18 +27473,18 @@ class E3 extends Vn {
27473
27473
  function at(x) {
27474
27474
  const v = {}, C = x.sources, A = x.vertices, L = x.primitives;
27475
27475
  if (L.length === 0) return {};
27476
- const ne = ce(L);
27477
- for (const he in ne) {
27478
- const Be = ne[he];
27479
- Fe(Be), v[he] = Tt(Be, C, A);
27476
+ const ne = he(L);
27477
+ for (const ue in ne) {
27478
+ const Be = ne[ue];
27479
+ Fe(Be), v[ue] = Tt(Be, C, A);
27480
27480
  }
27481
27481
  return v;
27482
27482
  }
27483
27483
  function Tt(x, v, C) {
27484
- const A = {}, L = { array: [], stride: 0 }, ne = { array: [], stride: 0 }, he = { array: [], stride: 0 }, Be = { array: [], stride: 0 }, Re = { array: [], stride: 0 }, Oe = { array: [], stride: 4 }, Ye = { array: [], stride: 4 }, be = new zt(), Xe = [];
27484
+ const A = {}, L = { array: [], stride: 0 }, ne = { array: [], stride: 0 }, ue = { array: [], stride: 0 }, Be = { array: [], stride: 0 }, Re = { array: [], stride: 0 }, Oe = { array: [], stride: 4 }, Ye = { array: [], stride: 4 }, be = new zt(), Xe = [];
27485
27485
  let Ge = 0;
27486
27486
  for (let nt = 0; nt < x.length; nt++) {
27487
- const $e = x[nt], Bt = $e.inputs;
27487
+ const $e = x[nt], kt = $e.inputs;
27488
27488
  let Pt = 0;
27489
27489
  switch ($e.type) {
27490
27490
  case "lines":
@@ -27514,35 +27514,35 @@ class E3 extends Vn {
27514
27514
  console.warn("THREE.ColladaLoader: Unknown primitive type:", $e.type);
27515
27515
  }
27516
27516
  be.addGroup(Ge, Pt, nt), Ge += Pt, $e.material && Xe.push($e.material);
27517
- for (const St in Bt) {
27518
- const Et = Bt[St];
27517
+ for (const St in kt) {
27518
+ const Et = kt[St];
27519
27519
  switch (St) {
27520
27520
  case "VERTEX":
27521
- for (const ti in C) {
27522
- const _n = C[ti];
27523
- switch (ti) {
27521
+ for (const ni in C) {
27522
+ const vn = C[ni];
27523
+ switch (ni) {
27524
27524
  case "POSITION":
27525
27525
  const rs = L.array.length;
27526
- if (ht($e, v[_n], Et.offset, L.array), L.stride = v[_n].stride, v.skinWeights && v.skinIndices && (ht($e, v.skinIndices, Et.offset, Oe.array), ht($e, v.skinWeights, Et.offset, Ye.array)), $e.hasUV === !1 && x.uvsNeedsFix === !0) {
27526
+ if (ht($e, v[vn], Et.offset, L.array), L.stride = v[vn].stride, v.skinWeights && v.skinIndices && (ht($e, v.skinIndices, Et.offset, Oe.array), ht($e, v.skinWeights, Et.offset, Ye.array)), $e.hasUV === !1 && x.uvsNeedsFix === !0) {
27527
27527
  const id = (L.array.length - rs) / L.stride;
27528
27528
  for (let sc = 0; sc < id; sc++)
27529
- he.array.push(0, 0);
27529
+ ue.array.push(0, 0);
27530
27530
  }
27531
27531
  break;
27532
27532
  case "NORMAL":
27533
- ht($e, v[_n], Et.offset, ne.array), ne.stride = v[_n].stride;
27533
+ ht($e, v[vn], Et.offset, ne.array), ne.stride = v[vn].stride;
27534
27534
  break;
27535
27535
  case "COLOR":
27536
- ht($e, v[_n], Et.offset, Re.array), Re.stride = v[_n].stride;
27536
+ ht($e, v[vn], Et.offset, Re.array), Re.stride = v[vn].stride;
27537
27537
  break;
27538
27538
  case "TEXCOORD":
27539
- ht($e, v[_n], Et.offset, he.array), he.stride = v[_n].stride;
27539
+ ht($e, v[vn], Et.offset, ue.array), ue.stride = v[vn].stride;
27540
27540
  break;
27541
27541
  case "TEXCOORD1":
27542
- ht($e, v[_n], Et.offset, Be.array), he.stride = v[_n].stride;
27542
+ ht($e, v[vn], Et.offset, Be.array), ue.stride = v[vn].stride;
27543
27543
  break;
27544
27544
  default:
27545
- console.warn('THREE.ColladaLoader: Semantic "%s" not handled in geometry build process.', ti);
27545
+ console.warn('THREE.ColladaLoader: Semantic "%s" not handled in geometry build process.', ni);
27546
27546
  }
27547
27547
  }
27548
27548
  break;
@@ -27553,7 +27553,7 @@ class E3 extends Vn {
27553
27553
  ht($e, v[Et.id], Et.offset, Re.array, !0), Re.stride = v[Et.id].stride;
27554
27554
  break;
27555
27555
  case "TEXCOORD":
27556
- ht($e, v[Et.id], Et.offset, he.array), he.stride = v[Et.id].stride;
27556
+ ht($e, v[Et.id], Et.offset, ue.array), ue.stride = v[Et.id].stride;
27557
27557
  break;
27558
27558
  case "TEXCOORD1":
27559
27559
  ht($e, v[Et.id], Et.offset, Be.array), Be.stride = v[Et.id].stride;
@@ -27561,10 +27561,10 @@ class E3 extends Vn {
27561
27561
  }
27562
27562
  }
27563
27563
  }
27564
- return L.array.length > 0 && be.setAttribute("position", new ut(L.array, L.stride)), ne.array.length > 0 && be.setAttribute("normal", new ut(ne.array, ne.stride)), Re.array.length > 0 && be.setAttribute("color", new ut(Re.array, Re.stride)), he.array.length > 0 && be.setAttribute("uv", new ut(he.array, he.stride)), Be.array.length > 0 && be.setAttribute("uv1", new ut(Be.array, Be.stride)), Oe.array.length > 0 && be.setAttribute("skinIndex", new ut(Oe.array, Oe.stride)), Ye.array.length > 0 && be.setAttribute("skinWeight", new ut(Ye.array, Ye.stride)), A.data = be, A.type = x[0].type, A.materialKeys = Xe, A;
27564
+ return L.array.length > 0 && be.setAttribute("position", new ut(L.array, L.stride)), ne.array.length > 0 && be.setAttribute("normal", new ut(ne.array, ne.stride)), Re.array.length > 0 && be.setAttribute("color", new ut(Re.array, Re.stride)), ue.array.length > 0 && be.setAttribute("uv", new ut(ue.array, ue.stride)), Be.array.length > 0 && be.setAttribute("uv1", new ut(Be.array, Be.stride)), Oe.array.length > 0 && be.setAttribute("skinIndex", new ut(Oe.array, Oe.stride)), Ye.array.length > 0 && be.setAttribute("skinWeight", new ut(Ye.array, Ye.stride)), A.data = be, A.type = x[0].type, A.materialKeys = Xe, A;
27565
27565
  }
27566
27566
  function ht(x, v, C, A, L = !1) {
27567
- const ne = x.p, he = x.stride, Be = x.vcount;
27567
+ const ne = x.p, ue = x.stride, Be = x.vcount;
27568
27568
  function Re(be) {
27569
27569
  let Xe = ne[be + C] * Ye;
27570
27570
  const Ge = Xe + Ye;
@@ -27586,26 +27586,26 @@ class E3 extends Vn {
27586
27586
  for (let Xe = 0, Ge = Be.length; Xe < Ge; Xe++) {
27587
27587
  const nt = Be[Xe];
27588
27588
  if (nt === 4) {
27589
- const $e = be + he * 0, Bt = be + he * 1, Pt = be + he * 2, St = be + he * 3;
27590
- Re($e), Re(Bt), Re(St), Re(Bt), Re(Pt), Re(St);
27589
+ const $e = be + ue * 0, kt = be + ue * 1, Pt = be + ue * 2, St = be + ue * 3;
27590
+ Re($e), Re(kt), Re(St), Re(kt), Re(Pt), Re(St);
27591
27591
  } else if (nt === 3) {
27592
- const $e = be + he * 0, Bt = be + he * 1, Pt = be + he * 2;
27593
- Re($e), Re(Bt), Re(Pt);
27592
+ const $e = be + ue * 0, kt = be + ue * 1, Pt = be + ue * 2;
27593
+ Re($e), Re(kt), Re(Pt);
27594
27594
  } else if (nt > 4)
27595
- for (let $e = 1, Bt = nt - 2; $e <= Bt; $e++) {
27596
- const Pt = be + he * 0, St = be + he * $e, Et = be + he * ($e + 1);
27595
+ for (let $e = 1, kt = nt - 2; $e <= kt; $e++) {
27596
+ const Pt = be + ue * 0, St = be + ue * $e, Et = be + ue * ($e + 1);
27597
27597
  Re(Pt), Re(St), Re(Et);
27598
27598
  }
27599
- be += he * nt;
27599
+ be += ue * nt;
27600
27600
  }
27601
27601
  } else
27602
- for (let be = 0, Xe = ne.length; be < Xe; be += he)
27602
+ for (let be = 0, Xe = ne.length; be < Xe; be += ue)
27603
27603
  Re(be);
27604
27604
  }
27605
27605
  function Zt(x) {
27606
27606
  return _(ot.geometries[x], at);
27607
27607
  }
27608
- function mn(x) {
27608
+ function gn(x) {
27609
27609
  const v = {
27610
27610
  name: x.getAttribute("name") || "",
27611
27611
  joints: {},
@@ -27679,8 +27679,8 @@ class E3 extends Vn {
27679
27679
  v.axis.fromArray(L);
27680
27680
  break;
27681
27681
  case "limits":
27682
- const ne = A.getElementsByTagName("max")[0], he = A.getElementsByTagName("min")[0];
27683
- v.limits.max = parseFloat(ne.textContent), v.limits.min = parseFloat(he.textContent);
27682
+ const ne = A.getElementsByTagName("max")[0], ue = A.getElementsByTagName("min")[0];
27683
+ v.limits.max = parseFloat(ne.textContent), v.limits.min = parseFloat(ue.textContent);
27684
27684
  break;
27685
27685
  }
27686
27686
  }
@@ -27698,7 +27698,7 @@ class E3 extends Vn {
27698
27698
  if (A.nodeType === 1)
27699
27699
  switch (A.nodeName) {
27700
27700
  case "attachment_full":
27701
- v.attachments.push(Zn(A));
27701
+ v.attachments.push(Qn(A));
27702
27702
  break;
27703
27703
  case "matrix":
27704
27704
  case "translate":
@@ -27709,7 +27709,7 @@ class E3 extends Vn {
27709
27709
  }
27710
27710
  return v;
27711
27711
  }
27712
- function Zn(x) {
27712
+ function Qn(x) {
27713
27713
  const v = {
27714
27714
  joint: x.getAttribute("joint").split("/").pop(),
27715
27715
  transforms: [],
@@ -27748,7 +27748,7 @@ class E3 extends Vn {
27748
27748
  }
27749
27749
  return v;
27750
27750
  }
27751
- function Qn(x) {
27751
+ function ei(x) {
27752
27752
  const v = {
27753
27753
  name: x.getAttribute("name") || "",
27754
27754
  rigidBodies: {}
@@ -27831,9 +27831,9 @@ class E3 extends Vn {
27831
27831
  function Un() {
27832
27832
  const x = Object.keys(ot.kinematicsModels)[0], v = Object.keys(ot.kinematicsScenes)[0], C = Object.keys(ot.visualScenes)[0];
27833
27833
  if (x === void 0 || v === void 0) return;
27834
- const A = Di(x), L = Jt(v), ne = dt(C), he = L.bindJointAxis, Be = {};
27835
- for (let Ye = 0, be = he.length; Ye < be; Ye++) {
27836
- const Xe = he[Ye], Ge = Ot.querySelector('[sid="' + Xe.target + '"]');
27834
+ const A = Di(x), L = Jt(v), ne = dt(C), ue = L.bindJointAxis, Be = {};
27835
+ for (let Ye = 0, be = ue.length; Ye < be; Ye++) {
27836
+ const Xe = ue[Ye], Ge = Ot.querySelector('[sid="' + Xe.target + '"]');
27837
27837
  if (Ge) {
27838
27838
  const nt = Ge.parentElement;
27839
27839
  Re(Xe.jointIndex, nt);
@@ -27868,10 +27868,10 @@ class E3 extends Vn {
27868
27868
  else if (Ge.static)
27869
27869
  console.warn("THREE.ColladaLoader: Joint " + Ye + " is static.");
27870
27870
  else {
27871
- const nt = Xe.object, $e = Ge.axis, Bt = Xe.transforms;
27871
+ const nt = Xe.object, $e = Ge.axis, kt = Xe.transforms;
27872
27872
  z.identity();
27873
- for (let Pt = 0; Pt < Bt.length; Pt++) {
27874
- const St = Bt[Pt];
27873
+ for (let Pt = 0; Pt < kt.length; Pt++) {
27874
+ const St = kt[Pt];
27875
27875
  if (St.sid && St.sid.indexOf(Ye) !== -1)
27876
27876
  switch (Ge.type) {
27877
27877
  case "revolute":
@@ -27912,7 +27912,7 @@ class E3 extends Vn {
27912
27912
  for (let A = 0; A < C.childNodes.length; A++) {
27913
27913
  const L = C.childNodes[A];
27914
27914
  if (L.nodeType !== 1) continue;
27915
- let ne, he;
27915
+ let ne, ue;
27916
27916
  switch (L.nodeName) {
27917
27917
  case "matrix":
27918
27918
  ne = r(L.textContent);
@@ -27925,19 +27925,19 @@ class E3 extends Vn {
27925
27925
  break;
27926
27926
  case "translate":
27927
27927
  case "scale":
27928
- ne = r(L.textContent), he = new N().fromArray(ne), v.push({
27928
+ ne = r(L.textContent), ue = new N().fromArray(ne), v.push({
27929
27929
  sid: L.getAttribute("sid"),
27930
27930
  type: L.nodeName,
27931
- obj: he
27931
+ obj: ue
27932
27932
  });
27933
27933
  break;
27934
27934
  case "rotate":
27935
- ne = r(L.textContent), he = new N().fromArray(ne);
27935
+ ne = r(L.textContent), ue = new N().fromArray(ne);
27936
27936
  const Re = As.degToRad(ne[3]);
27937
27937
  v.push({
27938
27938
  sid: L.getAttribute("sid"),
27939
27939
  type: L.nodeName,
27940
- obj: he,
27940
+ obj: ue,
27941
27941
  angle: Re
27942
27942
  });
27943
27943
  break;
@@ -28025,7 +28025,7 @@ class E3 extends Vn {
28025
28025
  case "bind_material":
28026
28026
  const L = A.getElementsByTagName("instance_material");
28027
28027
  for (let ne = 0; ne < L.length; ne++) {
28028
- const he = L[ne], Be = he.getAttribute("symbol"), Re = he.getAttribute("target");
28028
+ const ue = L[ne], Be = ue.getAttribute("symbol"), Re = ue.getAttribute("target");
28029
28029
  v.materials[Be] = o(Re);
28030
28030
  }
28031
28031
  break;
@@ -28038,7 +28038,7 @@ class E3 extends Vn {
28038
28038
  }
28039
28039
  function ge(x, v) {
28040
28040
  const C = [], A = [];
28041
- let L, ne, he;
28041
+ let L, ne, ue;
28042
28042
  for (L = 0; L < x.length; L++) {
28043
28043
  const Oe = x[L];
28044
28044
  let Ye;
@@ -28058,15 +28058,15 @@ class E3 extends Vn {
28058
28058
  }
28059
28059
  for (L = 0; L < v.length; L++)
28060
28060
  for (ne = 0; ne < C.length; ne++)
28061
- if (he = C[ne], he.bone.name === v[L].name) {
28062
- A[L] = he, he.processed = !0;
28061
+ if (ue = C[ne], ue.bone.name === v[L].name) {
28062
+ A[L] = ue, ue.processed = !0;
28063
28063
  break;
28064
28064
  }
28065
28065
  for (L = 0; L < C.length; L++)
28066
- he = C[L], he.processed === !1 && (A.push(he), he.processed = !0);
28066
+ ue = C[L], ue.processed === !1 && (A.push(ue), ue.processed = !0);
28067
28067
  const Be = [], Re = [];
28068
28068
  for (L = 0; L < A.length; L++)
28069
- he = A[L], Be.push(he.bone), Re.push(he.boneInverse);
28069
+ ue = A[L], Be.push(ue.bone), Re.push(ue.boneInverse);
28070
28070
  return new Xl(Be, Re);
28071
28071
  }
28072
28072
  function Te(x, v, C) {
@@ -28074,9 +28074,9 @@ class E3 extends Vn {
28074
28074
  if (A.isBone === !0) {
28075
28075
  let L;
28076
28076
  for (let ne = 0; ne < v.length; ne++) {
28077
- const he = v[ne];
28078
- if (he.name === A.name) {
28079
- L = he.boneInverse;
28077
+ const ue = v[ne];
28078
+ if (ue.name === A.name) {
28079
+ L = ue.boneInverse;
28080
28080
  break;
28081
28081
  }
28082
28082
  }
@@ -28085,17 +28085,17 @@ class E3 extends Vn {
28085
28085
  });
28086
28086
  }
28087
28087
  function Ne(x) {
28088
- const v = [], C = x.matrix, A = x.nodes, L = x.type, ne = x.instanceCameras, he = x.instanceControllers, Be = x.instanceLights, Re = x.instanceGeometries, Oe = x.instanceNodes;
28088
+ const v = [], C = x.matrix, A = x.nodes, L = x.type, ne = x.instanceCameras, ue = x.instanceControllers, Be = x.instanceLights, Re = x.instanceGeometries, Oe = x.instanceNodes;
28089
28089
  for (let be = 0, Xe = A.length; be < Xe; be++)
28090
28090
  v.push(ct(A[be]));
28091
28091
  for (let be = 0, Xe = ne.length; be < Xe; be++) {
28092
- const Ge = ue(ne[be]);
28092
+ const Ge = ce(ne[be]);
28093
28093
  Ge !== null && v.push(Ge.clone());
28094
28094
  }
28095
- for (let be = 0, Xe = he.length; be < Xe; be++) {
28096
- const Ge = he[be], nt = se(Ge.id), $e = Zt(nt.id), Bt = tt($e, Ge.materials), Pt = Ge.skeletons, St = nt.skin.joints, Et = ge(Pt, St);
28097
- for (let ti = 0, _n = Bt.length; ti < _n; ti++) {
28098
- const rs = Bt[ti];
28095
+ for (let be = 0, Xe = ue.length; be < Xe; be++) {
28096
+ const Ge = ue[be], nt = se(Ge.id), $e = Zt(nt.id), kt = tt($e, Ge.materials), Pt = Ge.skeletons, St = nt.skin.joints, Et = ge(Pt, St);
28097
+ for (let ni = 0, vn = kt.length; ni < vn; ni++) {
28098
+ const rs = kt[ni];
28099
28099
  rs.isSkinnedMesh && (rs.bind(Et, nt.skin.bindMatrix), rs.normalizeSkinWeights()), v.push(rs);
28100
28100
  }
28101
28101
  }
@@ -28105,8 +28105,8 @@ class E3 extends Vn {
28105
28105
  }
28106
28106
  for (let be = 0, Xe = Re.length; be < Xe; be++) {
28107
28107
  const Ge = Re[be], nt = Zt(Ge.id), $e = tt(nt, Ge.materials);
28108
- for (let Bt = 0, Pt = $e.length; Bt < Pt; Bt++)
28109
- v.push($e[Bt]);
28108
+ for (let kt = 0, Pt = $e.length; kt < Pt; kt++)
28109
+ v.push($e[kt]);
28110
28110
  }
28111
28111
  for (let be = 0, Xe = Oe.length; be < Xe; be++)
28112
28112
  v.push(ct(Oe[be]).clone());
@@ -28114,7 +28114,7 @@ class E3 extends Vn {
28114
28114
  if (A.length === 0 && v.length === 1)
28115
28115
  Ye = v[0];
28116
28116
  else {
28117
- Ye = L === "JOINT" ? new Uu() : new Yn();
28117
+ Ye = L === "JOINT" ? new Uu() : new $n();
28118
28118
  for (let be = 0; be < v.length; be++)
28119
28119
  Ye.add(v[be]);
28120
28120
  }
@@ -28144,7 +28144,7 @@ class E3 extends Vn {
28144
28144
  Xe.color.copy(be.color), Xe.opacity = be.opacity, Xe.transparent = be.transparent, ne[Oe] = Xe;
28145
28145
  }
28146
28146
  }
28147
- const he = L.data.attributes.skinIndex !== void 0, Be = ne.length === 1 ? ne[0] : ne;
28147
+ const ue = L.data.attributes.skinIndex !== void 0, Be = ne.length === 1 ? ne[0] : ne;
28148
28148
  let Re;
28149
28149
  switch (A) {
28150
28150
  case "lines":
@@ -28155,7 +28155,7 @@ class E3 extends Vn {
28155
28155
  break;
28156
28156
  case "triangles":
28157
28157
  case "polylist":
28158
- he ? Re = new fp(L.data, Be) : Re = new At(L.data, Be);
28158
+ ue ? Re = new fp(L.data, Be) : Re = new At(L.data, Be);
28159
28159
  break;
28160
28160
  }
28161
28161
  C.push(Re);
@@ -28180,7 +28180,7 @@ class E3 extends Vn {
28180
28180
  ot.visualScenes[x.getAttribute("id")] = v;
28181
28181
  }
28182
28182
  function Ct(x) {
28183
- const v = new Yn();
28183
+ const v = new $n();
28184
28184
  v.name = x.name;
28185
28185
  const C = x.children;
28186
28186
  for (let A = 0; A < C.length; A++) {
@@ -28199,7 +28199,7 @@ class E3 extends Vn {
28199
28199
  const v = n(x, "instance_visual_scene")[0];
28200
28200
  return dt(o(v.getAttribute("url")));
28201
28201
  }
28202
- function qt() {
28202
+ function Xt() {
28203
28203
  const x = ot.clips;
28204
28204
  if (c(x) === !0) {
28205
28205
  if (c(ot.animations) === !1) {
@@ -28209,11 +28209,11 @@ class E3 extends Vn {
28209
28209
  for (let L = 0, ne = A.length; L < ne; L++)
28210
28210
  v.push(A[L]);
28211
28211
  }
28212
- jt.push(new th("default", -1, v));
28212
+ qt.push(new th("default", -1, v));
28213
28213
  }
28214
28214
  } else
28215
28215
  for (const v in x)
28216
- jt.push($(v));
28216
+ qt.push($(v));
28217
28217
  }
28218
28218
  function bt(x) {
28219
28219
  let v = "";
@@ -28227,7 +28227,7 @@ class E3 extends Vn {
28227
28227
  }
28228
28228
  if (e.length === 0)
28229
28229
  return { scene: new Lu() };
28230
- const gn = new DOMParser().parseFromString(e, "application/xml"), Ot = n(gn, "COLLADA")[0], en = gn.getElementsByTagName("parsererror")[0];
28230
+ const _n = new DOMParser().parseFromString(e, "application/xml"), Ot = n(_n, "COLLADA")[0], en = _n.getElementsByTagName("parsererror")[0];
28231
28231
  if (en !== void 0) {
28232
28232
  const x = n(en, "div")[0];
28233
28233
  let v;
@@ -28240,8 +28240,8 @@ class E3 extends Vn {
28240
28240
  hn.setPath(this.resourcePath || t).setCrossOrigin(this.crossOrigin);
28241
28241
  let an;
28242
28242
  Zh && (an = new Zh(this.manager), an.setPath(this.resourcePath || t));
28243
- const Gt = new Ze(), jt = [];
28244
- let ss = {}, ei = 0;
28243
+ const Gt = new Ze(), qt = [];
28244
+ let ss = {}, ti = 0;
28245
28245
  const ot = {
28246
28246
  animations: {},
28247
28247
  clips: {},
@@ -28258,19 +28258,19 @@ class E3 extends Vn {
28258
28258
  physicsModels: {},
28259
28259
  kinematicsScenes: {}
28260
28260
  };
28261
- u(Ot, "library_animations", "animation", g), u(Ot, "library_animation_clips", "animation_clip", H), u(Ot, "library_controllers", "controller", fe), u(Ot, "library_images", "image", ae), u(Ot, "library_effects", "effect", _e), u(Ot, "library_materials", "material", ee), u(Ot, "library_cameras", "camera", de), u(Ot, "library_lights", "light", Me), u(Ot, "library_geometries", "geometry", we), u(Ot, "library_nodes", "node", Z), u(Ot, "library_visual_scenes", "visual_scene", Mt), u(Ot, "library_kinematics_models", "kinematics_model", mn), u(Ot, "library_physics_models", "physics_model", Qn), u(Ot, "scene", "instance_kinematics_scene", is), m(ot.animations, S), m(ot.clips, oe), m(ot.controllers, Ce), m(ot.images, le), m(ot.effects, F), m(ot.materials, X), m(ot.cameras, J), m(ot.lights, Ve), m(ot.geometries, at), m(ot.visualScenes, Ct), qt(), Un();
28262
- const xr = Ke(n(Ot, "scene")[0]);
28263
- return xr.animations = jt, Ft.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."), xr.rotation.set(-Math.PI / 2, 0, 0)), xr.scale.multiplyScalar(Ft.unit), {
28261
+ u(Ot, "library_animations", "animation", g), u(Ot, "library_animation_clips", "animation_clip", H), u(Ot, "library_controllers", "controller", fe), u(Ot, "library_images", "image", ae), u(Ot, "library_effects", "effect", _e), u(Ot, "library_materials", "material", ee), u(Ot, "library_cameras", "camera", de), u(Ot, "library_lights", "light", Me), u(Ot, "library_geometries", "geometry", we), u(Ot, "library_nodes", "node", Z), u(Ot, "library_visual_scenes", "visual_scene", Mt), u(Ot, "library_kinematics_models", "kinematics_model", gn), u(Ot, "library_physics_models", "physics_model", ei), u(Ot, "scene", "instance_kinematics_scene", is), m(ot.animations, S), m(ot.clips, oe), m(ot.controllers, Ce), m(ot.images, le), m(ot.effects, F), m(ot.materials, X), m(ot.cameras, J), m(ot.lights, Ve), m(ot.geometries, at), m(ot.visualScenes, Ct), Xt(), Un();
28262
+ const yr = Ke(n(Ot, "scene")[0]);
28263
+ return yr.animations = qt, Ft.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."), yr.rotation.set(-Math.PI / 2, 0, 0)), yr.scale.multiplyScalar(Ft.unit), {
28264
28264
  get animations() {
28265
- return console.warn("THREE.ColladaLoader: Please access animations over scene.animations now."), jt;
28265
+ return console.warn("THREE.ColladaLoader: Please access animations over scene.animations now."), qt;
28266
28266
  },
28267
28267
  kinematics: ss,
28268
28268
  library: ot,
28269
- scene: xr
28269
+ scene: yr
28270
28270
  };
28271
28271
  }
28272
28272
  }
28273
- const Qh = new N(), w3 = new yn(), sa = new it(), wi = new it(), ra = new Dn(), aa = new N(1, 1, 1), oa = new N();
28273
+ const Qh = new N(), w3 = new yn(), ra = new it(), wi = new it(), aa = new Dn(), oa = new N(1, 1, 1), la = new N();
28274
28274
  class za extends Nt {
28275
28275
  constructor(...e) {
28276
28276
  super(...e), this.urdfNode = null, this.urdfName = "";
@@ -28350,16 +28350,16 @@ class Zu extends za {
28350
28350
  return n == null || n === this.jointValue[0] ? t : (this.ignoreLimits || (n = Math.min(this.limit.upper, n), n = Math.max(this.limit.lower, n)), this.position.copy(this.origPosition), Qh.copy(this.axis).applyEuler(this.rotation), this.position.addScaledVector(Qh, n), this.jointValue[0] !== n ? (this.jointValue[0] = n, this.matrixWorldNeedsUpdate = !0, !0) : t);
28351
28351
  }
28352
28352
  case "floating":
28353
- return this.jointValue.every((n, i) => e[i] === n || e[i] === null) ? t : (this.jointValue[0] = e[0] !== null ? e[0] : this.jointValue[0], this.jointValue[1] = e[1] !== null ? e[1] : this.jointValue[1], this.jointValue[2] = e[2] !== null ? e[2] : this.jointValue[2], this.jointValue[3] = e[3] !== null ? e[3] : this.jointValue[3], this.jointValue[4] = e[4] !== null ? e[4] : this.jointValue[4], this.jointValue[5] = e[5] !== null ? e[5] : this.jointValue[5], wi.compose(this.origPosition, this.origQuaternion, aa), ra.setFromEuler(
28353
+ return this.jointValue.every((n, i) => e[i] === n || e[i] === null) ? t : (this.jointValue[0] = e[0] !== null ? e[0] : this.jointValue[0], this.jointValue[1] = e[1] !== null ? e[1] : this.jointValue[1], this.jointValue[2] = e[2] !== null ? e[2] : this.jointValue[2], this.jointValue[3] = e[3] !== null ? e[3] : this.jointValue[3], this.jointValue[4] = e[4] !== null ? e[4] : this.jointValue[4], this.jointValue[5] = e[5] !== null ? e[5] : this.jointValue[5], wi.compose(this.origPosition, this.origQuaternion, oa), aa.setFromEuler(
28354
28354
  w3.set(
28355
28355
  this.jointValue[3],
28356
28356
  this.jointValue[4],
28357
28357
  this.jointValue[5],
28358
28358
  "XYZ"
28359
28359
  )
28360
- ), oa.set(this.jointValue[0], this.jointValue[1], this.jointValue[2]), sa.compose(oa, ra, aa), wi.premultiply(sa), this.position.setFromMatrixPosition(wi), this.rotation.setFromRotationMatrix(wi), this.matrixWorldNeedsUpdate = !0, !0);
28360
+ ), la.set(this.jointValue[0], this.jointValue[1], this.jointValue[2]), ra.compose(la, aa, oa), wi.premultiply(ra), this.position.setFromMatrixPosition(wi), this.rotation.setFromRotationMatrix(wi), this.matrixWorldNeedsUpdate = !0, !0);
28361
28361
  case "planar":
28362
- return this.jointValue.every((n, i) => e[i] === n || e[i] === null) ? t : (this.jointValue[0] = e[0] !== null ? e[0] : this.jointValue[0], this.jointValue[1] = e[1] !== null ? e[1] : this.jointValue[1], this.jointValue[2] = e[2] !== null ? e[2] : this.jointValue[2], wi.compose(this.origPosition, this.origQuaternion, aa), ra.setFromAxisAngle(this.axis, this.jointValue[2]), oa.set(this.jointValue[0], this.jointValue[1], 0), sa.compose(oa, ra, aa), wi.premultiply(sa), this.position.setFromMatrixPosition(wi), this.rotation.setFromRotationMatrix(wi), this.matrixWorldNeedsUpdate = !0, !0);
28362
+ return this.jointValue.every((n, i) => e[i] === n || e[i] === null) ? t : (this.jointValue[0] = e[0] !== null ? e[0] : this.jointValue[0], this.jointValue[1] = e[1] !== null ? e[1] : this.jointValue[1], this.jointValue[2] = e[2] !== null ? e[2] : this.jointValue[2], wi.compose(this.origPosition, this.origQuaternion, oa), aa.setFromAxisAngle(this.axis, this.jointValue[2]), la.set(this.jointValue[0], this.jointValue[1], 0), ra.compose(la, aa, oa), wi.premultiply(ra), this.position.setFromMatrixPosition(wi), this.rotation.setFromRotationMatrix(wi), this.matrixWorldNeedsUpdate = !0, !0);
28363
28363
  }
28364
28364
  return t;
28365
28365
  }
@@ -28603,7 +28603,7 @@ class R3 {
28603
28603
  No loader available`);
28604
28604
  }
28605
28605
  }
28606
- const L3 = hu(tr), { systemPath: iu } = er(L3), la = _t(), su = /* @__PURE__ */ new Map();
28606
+ const L3 = hu(nr), { systemPath: iu } = tr(L3), ca = _t(), su = /* @__PURE__ */ new Map();
28607
28607
  function p_(s, e, t, n, i) {
28608
28608
  const r = async (d) => {
28609
28609
  try {
@@ -28632,7 +28632,7 @@ function p_(s, e, t, n, i) {
28632
28632
  create: function(m) {
28633
28633
  return this.materials[m] ? this.materials[m] : (console.warn(`Material '${m}' not found, using default material`), new Sn({
28634
28634
  color: 8947848,
28635
- side: fn
28635
+ side: pn
28636
28636
  }));
28637
28637
  },
28638
28638
  getAsArray: function() {
@@ -28664,7 +28664,7 @@ function p_(s, e, t, n, i) {
28664
28664
  S || U.traverse((R) => {
28665
28665
  R.isMesh && (R.material = new Sn({
28666
28666
  color: 8947848,
28667
- side: fn
28667
+ side: pn
28668
28668
  }));
28669
28669
  }), m(U);
28670
28670
  } catch (E) {
@@ -28721,7 +28721,7 @@ function p_(s, e, t, n, i) {
28721
28721
  size: 1,
28722
28722
  sizeAttenuation: !1
28723
28723
  });
28724
- g = new ar(st, B);
28724
+ g = new or(st, B);
28725
28725
  } else if (p === ".cpt") {
28726
28726
  const B = new Ri({
28727
28727
  color: "#5B5C99",
@@ -28740,14 +28740,14 @@ function p_(s, e, t, n, i) {
28740
28740
  }
28741
28741
  }
28742
28742
  g = _e.parse(E), (!m || m.length === 0) && g.traverse((Ee) => {
28743
- Ee.isMesh && (Ee.material = new Sn({ color: "#B3B3D4" })), Ee instanceof At && (Ee.material.side = fn);
28743
+ Ee.isMesh && (Ee.material = new Sn({ color: "#B3B3D4" })), Ee instanceof At && (Ee.material.side = pn);
28744
28744
  });
28745
28745
  }
28746
28746
  break;
28747
28747
  case ".stl":
28748
28748
  const S = await u.arrayBuffer(), U = new xa().parse(S), R = new Sn({
28749
28749
  color: "#B3B3D4",
28750
- side: fn
28750
+ side: pn
28751
28751
  });
28752
28752
  g = new At(U, R);
28753
28753
  break;
@@ -28766,13 +28766,13 @@ function p_(s, e, t, n, i) {
28766
28766
  "Mach_X_Axis_0.STL": "rgb(125,158,192)",
28767
28767
  "Mach_Z_Axis_0.STL": "rgb(248,228,118)",
28768
28768
  "Mach_Spindle_0.STL": "rgb(145,145,145)"
28769
- }, b = new Yn(), y = P.map((_e) => new Promise((Ee, qe) => {
28769
+ }, b = new $n(), y = P.map((_e) => new Promise((Ee, qe) => {
28770
28770
  new xa().load(
28771
28771
  iu.value === "" ? `/model/${_e}` : `${iu.value}\\${_e}`,
28772
28772
  (Qe) => {
28773
28773
  const B = new Sn({
28774
28774
  color: D[_e] || "#B3B3D4",
28775
- side: fn
28775
+ side: pn
28776
28776
  }), xt = new At(Qe, B);
28777
28777
  Ee(xt);
28778
28778
  },
@@ -28787,7 +28787,7 @@ function p_(s, e, t, n, i) {
28787
28787
  }
28788
28788
  break;
28789
28789
  case ".pcd":
28790
- const I = new S3(), G = new Yn();
28790
+ const I = new S3(), G = new $n();
28791
28791
  try {
28792
28792
  const _e = await Ba.get(
28793
28793
  "http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",
@@ -28951,7 +28951,7 @@ function p_(s, e, t, n, i) {
28951
28951
  }), rt(Je);
28952
28952
  } catch (je) {
28953
28953
  console.error(`mesh文件加载失败: ${B}`, je);
28954
- const Pe = new Yn();
28954
+ const Pe = new $n();
28955
28955
  xt(Pe), rt(Pe);
28956
28956
  const Je = new ns(0.1, 0.1, 0.1), Ut = new Np({ color: 16711680, wireframe: !0 });
28957
28957
  return new At(Je, Ut);
@@ -28961,7 +28961,7 @@ function p_(s, e, t, n, i) {
28961
28961
  };
28962
28962
  try {
28963
28963
  if (!W) {
28964
- la.value = void 0;
28964
+ ca.value = void 0;
28965
28965
  break;
28966
28966
  }
28967
28967
  if (g = await Q.loadAsync(W), console.log(`URDF文件加载完成,等待${ae}个mesh文件加载...`), Ae.length > 0)
@@ -28973,7 +28973,7 @@ function p_(s, e, t, n, i) {
28973
28973
  g.traverse((qe) => {
28974
28974
  qe.isMesh && (qe.castShadow = !0, qe.receiveShadow = !0, qe.renderOrder = 1, qe.material && (qe.material.needsUpdate = !0));
28975
28975
  }), console.time("计算包围盒");
28976
- const _e = new Kn();
28976
+ const _e = new Zn();
28977
28977
  _e.expandByObject(g);
28978
28978
  const Ee = `urdf_${Date.now()}`;
28979
28979
  g.userData.boundingBox = _e.clone(), g.userData.modelId = Ee, su.set(Ee, {
@@ -28981,9 +28981,9 @@ function p_(s, e, t, n, i) {
28981
28981
  center: _e.getCenter(new N()),
28982
28982
  size: _e.getSize(new N()),
28983
28983
  maxSize: Math.max(..._e.getSize(new N()).toArray())
28984
- }), la.value = g, console.log("URDF模型加载完成并优化");
28984
+ }), ca.value = g, console.log("URDF模型加载完成并优化");
28985
28985
  } catch (_e) {
28986
- console.error("URDF加载失败:", _e), la.value = void 0;
28986
+ console.error("URDF加载失败:", _e), ca.value = void 0;
28987
28987
  } finally {
28988
28988
  W && URL.revokeObjectURL(W);
28989
28989
  }
@@ -29018,7 +29018,7 @@ function p_(s, e, t, n, i) {
29018
29018
  throw console.error("加载模型失败:", u), t.value = !1, n.value = "", u;
29019
29019
  }
29020
29020
  },
29021
- urdfModel: la,
29021
+ urdfModel: ca,
29022
29022
  modelBoundingBoxes: su
29023
29023
  };
29024
29024
  }
@@ -29088,14 +29088,14 @@ const P3 = Pl("formToTableComp", {
29088
29088
  name: "output"
29089
29089
  }
29090
29090
  ];
29091
- }), (n, i) => (vn(), ci("div", D3, [
29092
- Xt("div", U3, [
29091
+ }), (n, i) => (fn(), Xn("div", D3, [
29092
+ jt("div", U3, [
29093
29093
  Vt(ya, {
29094
29094
  rowContents: e.value,
29095
29095
  isRowFlex: !0
29096
29096
  }, null, 8, ["rowContents"])
29097
29097
  ]),
29098
- Xt("div", I3, [
29098
+ jt("div", I3, [
29099
29099
  Vt(ya, {
29100
29100
  rowContents: t.value,
29101
29101
  isEdit: !1,
@@ -29183,9 +29183,12 @@ const P3 = Pl("formToTableComp", {
29183
29183
  this.tableShowThree = s;
29184
29184
  }
29185
29185
  }
29186
- }), G3 = { class: "table-content" }, W3 = { class: "menu-config-wrap" }, X3 = ["onClick"], q3 = { class: "viewport-wrap" }, j3 = ["onClick"], Y3 = { title: "选择显示列信息" }, $3 = {
29186
+ }), G3 = { class: "table-content" }, W3 = { class: "menu-config-wrap" }, X3 = ["onClick"], q3 = {
29187
+ key: 0,
29188
+ class: "viewport-wrap"
29189
+ }, j3 = ["onClick"], Y3 = { title: "选择显示列信息" }, $3 = {
29187
29190
  class: "menu-config-wrap",
29188
- style: { padding: "0 16px", "box-sizing": "border-box", "max-height": "300px", width: "200px", overflow: "auto" }
29191
+ style: { padding: "0 0 0 16px", "box-sizing": "border-box", "max-height": "300px", width: "300px", overflow: "auto" }
29189
29192
  }, J3 = { class: "form-content" }, K3 = {
29190
29193
  key: 0,
29191
29194
  class: "dialog-footer"
@@ -29223,13 +29226,13 @@ const P3 = Pl("formToTableComp", {
29223
29226
  },
29224
29227
  emits: ["change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick"],
29225
29228
  setup(s, { emit: e }) {
29226
- const t = _t([]), n = s, i = e, r = _t([]), a = _t([]), o = _t(!1), l = _t(), c = hd(), { activeMenuPath: h } = er(c), f = H3(tr), d = hu(tr), { extraContents: u, viewport: m } = er(d), _ = _t([]);
29229
+ const t = _t([]), n = s, i = e, r = _t([]), a = _t([]), o = _t(!1), l = _t(), c = hd(), { activeMenuPath: h } = tr(c), f = H3(nr), d = hu(nr), { extraContents: u, viewport: m } = tr(d), _ = _t([]);
29227
29230
  _t(!1);
29228
29231
  const g = _t("");
29229
29232
  _t();
29230
29233
  const p = _t(!0), E = _t(0), S = _t(!1), M = _t(""), U = _t(!1), R = _t({
29231
29234
  label: "查看三维模型"
29232
- }), P = _t(!1), D = _t(), b = _t([]), y = _t([]), I = _t(!1), G = _t([]), W = _t([]), Q = _t([]), ie = _t(), H = _t(), oe = P3(tr), $ = _t(), fe = O3(tr), { selectIndex: Se, selectMenu: ye, selectTitle: Ue } = er(fe), { selectString: Ce } = er(oe), K = _t(720), se = (O) => {
29235
+ }), P = _t(!1), D = _t(), b = _t([]), y = _t([]), I = _t(!1), G = _t([]), W = _t([]), Q = _t([]), ie = _t(), H = _t(), oe = P3(nr), $ = _t(), fe = O3(nr), { selectIndex: Se, selectMenu: ye, selectTitle: Ue } = tr(fe), { selectString: Ce } = tr(oe), K = _t(720), se = (O) => {
29233
29236
  console.log("handleSelectChange", O);
29234
29237
  }, ae = od(() => {
29235
29238
  var O;
@@ -29252,7 +29255,7 @@ const P3 = Pl("formToTableComp", {
29252
29255
  let q = ie.value;
29253
29256
  const de = [];
29254
29257
  return X == null || X.forEach((te, pe) => {
29255
- var ue;
29258
+ var ce;
29256
29259
  let J = {};
29257
29260
  if (Array.isArray(te)) {
29258
29261
  let Me = [];
@@ -29260,21 +29263,21 @@ const P3 = Pl("formToTableComp", {
29260
29263
  var Ve, V, we, me, Ie;
29261
29264
  if ((Ve = q == null ? void 0 : q[ve]) != null && Ve.prop && !Array.isArray(Y)) {
29262
29265
  let xe = {};
29263
- xe[q[ve].column] = Y, u != null && u.value && ((V = u == null ? void 0 : u.value) == null ? void 0 : V.length) > 0 && ((we = u == null ? void 0 : u.value) != null && we.find((ce) => JSON.stringify(ce == null ? void 0 : ce[0]) === JSON.stringify(xe))) && (Me = (me = u == null ? void 0 : u.value) == null ? void 0 : me.find((ce) => JSON.stringify(ce == null ? void 0 : ce[0]) === JSON.stringify(xe))), Me && Me.length > 0 ? J[q[ve].prop] = Me != null && Me.find((ce) => {
29266
+ xe[q[ve].column] = Y, u != null && u.value && ((V = u == null ? void 0 : u.value) == null ? void 0 : V.length) > 0 && ((we = u == null ? void 0 : u.value) != null && we.find((he) => JSON.stringify(he == null ? void 0 : he[0]) === JSON.stringify(xe))) && (Me = (me = u == null ? void 0 : u.value) == null ? void 0 : me.find((he) => JSON.stringify(he == null ? void 0 : he[0]) === JSON.stringify(xe))), Me && Me.length > 0 ? J[q[ve].prop] = Me != null && Me.find((he) => {
29264
29267
  var Fe;
29265
- return ((Fe = Object.keys(ce)) == null ? void 0 : Fe[0]) === q[ve].column;
29266
- }) ? (Ie = Me == null ? void 0 : Me.find((ce) => {
29268
+ return ((Fe = Object.keys(he)) == null ? void 0 : Fe[0]) === q[ve].column;
29269
+ }) ? (Ie = Me == null ? void 0 : Me.find((he) => {
29267
29270
  var Fe;
29268
- return ((Fe = Object.keys(ce)) == null ? void 0 : Fe[0]) === q[ve].column;
29271
+ return ((Fe = Object.keys(he)) == null ? void 0 : Fe[0]) === q[ve].column;
29269
29272
  })) == null ? void 0 : Ie[q[ve].column] : Y : J[q[ve].prop] = Y;
29270
29273
  }
29271
29274
  });
29272
29275
  } else
29273
29276
  J = te;
29274
- Array.isArray(te) && te.some((Me) => Me == null ? void 0 : Me.id) ? de.push(Object.assign(J, { id: (ue = te == null ? void 0 : te.find((Me) => Me.id)) == null ? void 0 : ue.id })) : J.id ? de.push(J) : de.push(Object.assign(J, { id: pe }));
29277
+ Array.isArray(te) && te.some((Me) => Me == null ? void 0 : Me.id) ? de.push(Object.assign(J, { id: (ce = te == null ? void 0 : te.find((Me) => Me.id)) == null ? void 0 : ce.id })) : J.id ? de.push(J) : de.push(Object.assign(J, { id: pe }));
29275
29278
  }), de;
29276
29279
  }, qe = async (O) => {
29277
- var re, te, pe, J, ue;
29280
+ var re, te, pe, J, ce;
29278
29281
  let X = {};
29279
29282
  for (let Me in O)
29280
29283
  O[Me] !== "" && (X["tableData." + Me] = O[Me]);
@@ -29290,9 +29293,9 @@ const P3 = Pl("formToTableComp", {
29290
29293
  id: Me.id
29291
29294
  }), Y.push((ve = Me == null ? void 0 : Me.value) == null ? void 0 : ve.tableData), Y;
29292
29295
  });
29293
- _.value = Ee(yd(de, (ue = (J = Lt(r.value)) == null ? void 0 : J.map((Me) => Me.label)) == null ? void 0 : ue.filter((Me) => Me !== "操作")));
29296
+ _.value = Ee(yd(de, (ce = (J = Lt(r.value)) == null ? void 0 : J.map((Me) => Me.label)) == null ? void 0 : ce.filter((Me) => Me !== "操作")));
29294
29297
  }, st = async (O) => {
29295
- var de, re, te, pe, J, ue, Me, Y, ve, Ve;
29298
+ var de, re, te, pe, J, ce, Me, Y, ve, Ve;
29296
29299
  const X = (de = Lt(r.value)) == null ? void 0 : de.filter((V) => V == null ? void 0 : V.isRoute);
29297
29300
  if ((X == null ? void 0 : X.length) > 0) {
29298
29301
  let V = (re = X == null ? void 0 : X[0]) == null ? void 0 : re.prop, we = h.value + "/" + (O == null ? void 0 : O[V]), me = h.value, Ie = await lc(we, sessionStorage.getItem("systemKey"), "");
@@ -29307,7 +29310,7 @@ const P3 = Pl("formToTableComp", {
29307
29310
  if (q = q == null ? void 0 : q.filter((V) => V.comp !== "methodButton"), q && q.length > 0) {
29308
29311
  const V = !Array.isArray(Ue.value) && ((pe = Ue.value) == null ? void 0 : pe.key) !== "main" ? [] : Ue.value;
29309
29312
  V.push({
29310
- key: ye.value === "" ? (J = O == null ? void 0 : O.id) == null ? void 0 : J.toString() : ye.value + "-" + ((ue = O == null ? void 0 : O.id) == null ? void 0 : ue.toString()),
29313
+ key: ye.value === "" ? (J = O == null ? void 0 : O.id) == null ? void 0 : J.toString() : ye.value + "-" + ((ce = O == null ? void 0 : O.id) == null ? void 0 : ce.toString()),
29311
29314
  value: O[(Me = Object.keys(O)) == null ? void 0 : Me.filter((we) => we !== "index" && we !== "id")[0]]
29312
29315
  }), fe.setSelectMenu(ye.value === "" ? (Y = O == null ? void 0 : O.id) == null ? void 0 : Y.toString() : ye.value + "-" + ((ve = O == null ? void 0 : O.id) == null ? void 0 : ve.toString())), fe.setSelectTitle(V), fe.setSelectIndex((Ve = O == null ? void 0 : O.id) == null ? void 0 : Ve.toString()), i("pageChange", q);
29313
29316
  }
@@ -29320,10 +29323,10 @@ const P3 = Pl("formToTableComp", {
29320
29323
  let te = Lt(O);
29321
29324
  te = await ((re = Lt(te)) == null ? void 0 : re.map(async (J) => {
29322
29325
  var Y, ve, Ve, V;
29323
- const ue = await cu({
29326
+ const ce = await cu({
29324
29327
  url: J == null ? void 0 : J.url
29325
29328
  });
29326
- let Me = URL.createObjectURL(ue.data);
29329
+ let Me = URL.createObjectURL(ce.data);
29327
29330
  return {
29328
29331
  name: (J == null ? void 0 : J.name) + "." + ((V = (Y = J == null ? void 0 : J.url) == null ? void 0 : Y.split(".")) == null ? void 0 : V[((Ve = (ve = J == null ? void 0 : J.url) == null ? void 0 : ve.split(".")) == null ? void 0 : Ve.length) - 1]),
29329
29332
  blobUrl: Me
@@ -29385,13 +29388,13 @@ const P3 = Pl("formToTableComp", {
29385
29388
  M.value = "查看", je(X), I.value = !1, p.value = !1, U.value = !0;
29386
29389
  else if (O === "查看三维模型") {
29387
29390
  const pe = {};
29388
- for (let ue in X)
29389
- ue !== "id" && (pe[ue] = X[ue]);
29391
+ for (let ce in X)
29392
+ ce !== "id" && (pe[ce] = X[ce]);
29390
29393
  let J = (re = Object.values(pe)) == null ? void 0 : re[1];
29391
29394
  f.setTableShowThree(J);
29392
29395
  } else ((te = q == null ? void 0 : q.extra) == null ? void 0 : te.type) === "modelExample" && (M.value = O, P.value = !0);
29393
29396
  }, je = (O) => {
29394
- var re, te, pe, J, ue, Me;
29397
+ var re, te, pe, J, ce, Me;
29395
29398
  const X = [];
29396
29399
  let q = [];
29397
29400
  for (let Y in O)
@@ -29425,7 +29428,7 @@ const P3 = Pl("formToTableComp", {
29425
29428
  }));
29426
29429
  }), O === "" || !O || (g.value = O == null ? void 0 : O.id);
29427
29430
  let de = ha((pe = Lt(r.value)) == null ? void 0 : pe.filter((Y) => (Y == null ? void 0 : Y.label) !== "操作"));
29428
- b.value && ((J = b.value) == null ? void 0 : J.length) > 0 && (b.value = (ue = Lt(b).value) == null ? void 0 : ue.map((Y) => {
29431
+ b.value && ((J = b.value) == null ? void 0 : J.length) > 0 && (b.value = (ce = Lt(b).value) == null ? void 0 : ce.map((Y) => {
29429
29432
  var Ve;
29430
29433
  let ve = (Ve = de == null ? void 0 : de.find((V) => (V == null ? void 0 : V.label) === (Y == null ? void 0 : Y.label))) == null ? void 0 : Ve.prop;
29431
29434
  return ve && (Y.value = O[ve]), Y;
@@ -29441,9 +29444,9 @@ const P3 = Pl("formToTableComp", {
29441
29444
  var pe;
29442
29445
  if ((te == null ? void 0 : te.id) === g.value) {
29443
29446
  let J = {};
29444
- for (let ue in te) {
29445
- let Me = (pe = X == null ? void 0 : X.find((Y) => (Y == null ? void 0 : Y.prop) === ue)) == null ? void 0 : pe.label;
29446
- Me ? J[ue] = H.value[Me] : J[ue] = te[ue];
29447
+ for (let ce in te) {
29448
+ let Me = (pe = X == null ? void 0 : X.find((Y) => (Y == null ? void 0 : Y.prop) === ce)) == null ? void 0 : pe.label;
29449
+ Me ? J[ce] = H.value[Me] : J[ce] = te[ce];
29447
29450
  }
29448
29451
  te = Object.assign(J, H.value), q = te;
29449
29452
  }
@@ -29463,24 +29466,25 @@ const P3 = Pl("formToTableComp", {
29463
29466
  }, Ut = (O) => {
29464
29467
  var q, de, re, te, pe, J;
29465
29468
  je("");
29466
- const X = (q = Q.value) == null ? void 0 : q.reduce((ue, Me) => (ue[Me.name] = Me.value, ue), {});
29467
- ((de = Object.keys(X)) == null ? void 0 : de.length) > 0 && (H.value = X, g.value = "", E.value = (re = _.value) == null ? void 0 : re.length, G.value = (te = W.value) == null ? void 0 : te.filter((ue) => (ue == null ? void 0 : ue.label) !== "新增"), r.value = (J = (pe = a.value) == null ? void 0 : pe.filter((ue) => (ue == null ? void 0 : ue.label) !== "操作")) == null ? void 0 : J.map((ue) => ({
29468
- ...ue,
29469
- type: "edit"
29469
+ const X = (q = Q.value) == null ? void 0 : q.reduce((ce, Me) => (ce[Me.name] = Me.value, ce), {});
29470
+ ((de = Object.keys(X)) == null ? void 0 : de.length) > 0 && (H.value = X, g.value = "", E.value = (re = _.value) == null ? void 0 : re.length, G.value = (te = W.value) == null ? void 0 : te.filter((ce) => (ce == null ? void 0 : ce.label) !== "新增"), r.value = (J = (pe = a.value) == null ? void 0 : pe.filter((ce) => (ce == null ? void 0 : ce.label) !== "操作")) == null ? void 0 : J.map((ce) => ({
29471
+ ...ce,
29472
+ type: "edit",
29473
+ columnType: ce == null ? void 0 : ce.type
29470
29474
  })), O === "createClick" && Pe(!1));
29471
29475
  };
29472
29476
  Cs(
29473
29477
  () => [n.itemData, Ce.value, Se.value, ye.value, u == null ? void 0 : u.value],
29474
29478
  () => {
29475
- var ue, Me, Y, ve, Ve, V, we, me, Ie, xe, ce, Fe, at, Tt, ht, Zt, mn, Pi, Di, Tn, gi, Ui, _i, Zn, vi, Qn, Ii, Ni, is;
29476
- const O = (ue = Lt(n.itemData)) == null ? void 0 : ue.filter((He) => (He == null ? void 0 : He.key) === "header");
29479
+ var ce, Me, Y, ve, Ve, V, we, me, Ie, xe, he, Fe, at, Tt, ht, Zt, gn, Pi, Di, Tn, gi, Ui, _i, Qn, vi, ei, Ii, Ni, is;
29480
+ const O = (ce = Lt(n.itemData)) == null ? void 0 : ce.filter((He) => (He == null ? void 0 : He.key) === "header");
29477
29481
  (Me = Lt(n.itemData)) == null || Me.filter((He) => (He == null ? void 0 : He.key) === "tableIndexColumn")[0];
29478
29482
  const X = (Y = Lt(n.itemData)) == null ? void 0 : Y.find((He) => (He == null ? void 0 : He.key) === "page"), q = (ve = Lt(n.itemData)) == null ? void 0 : ve.find((He) => (He == null ? void 0 : He.key) === "rowButton"), de = (Ve = Lt(n.itemData)) == null ? void 0 : Ve.find((He) => (He == null ? void 0 : He.key) === "extraButton"), re = (V = Lt(n.itemData)) == null ? void 0 : V.filter((He) => (He == null ? void 0 : He.key) === "tableContents"), te = (we = Lt(n.itemData)) == null ? void 0 : we.filter((He) => (He == null ? void 0 : He.key) === "tableIndex");
29479
29483
  b.value = (xe = (Ie = (me = Lt(n.itemData)) == null ? void 0 : me.filter((He) => (He == null ? void 0 : He.key) === "tableToForm")) == null ? void 0 : Ie[0]) == null ? void 0 : xe.contents, S.value = (X == null ? void 0 : X.contents) ?? !1;
29480
29484
  let pe = [];
29481
29485
  Ce.value === "" ? pe = O == null ? void 0 : O[0] : pe = (O == null ? void 0 : O.find((He) => (He == null ? void 0 : He.selectLabel) === "(" + Ce.value + ")")) ?? (O == null ? void 0 : O.find((He) => !(He != null && He.selectLabel)));
29482
29486
  let J = [];
29483
- if (Ce.value === "" ? J = te == null ? void 0 : te[0] : J = (te == null ? void 0 : te.find((He) => (He == null ? void 0 : He.selectLabel) === "(" + Ce.value + ")")) ?? (te == null ? void 0 : te.find((He) => !(He != null && He.selectLabel))), ((ce = pe == null ? void 0 : pe.contents) == null ? void 0 : ce.length) > 0) {
29487
+ if (Ce.value === "" ? J = te == null ? void 0 : te[0] : J = (te == null ? void 0 : te.find((He) => (He == null ? void 0 : He.selectLabel) === "(" + Ce.value + ")")) ?? (te == null ? void 0 : te.find((He) => !(He != null && He.selectLabel))), ((he = pe == null ? void 0 : pe.contents) == null ? void 0 : he.length) > 0) {
29484
29488
  let He = [];
29485
29489
  if (pe != null && pe.contents.some((z) => Array.isArray(z) && (z == null ? void 0 : z.find((k) => k.children))))
29486
29490
  ye.value === "" ? He = (at = (Fe = oc(Lt(pe == null ? void 0 : pe.contents))) == null ? void 0 : Fe[0]) == null ? void 0 : at.filter((z) => !Array.isArray(z)) : (ye.value.split("-"), He = (Tt = oc(Lt(pe == null ? void 0 : pe.contents))) == null ? void 0 : Tt[0]);
@@ -29494,7 +29498,7 @@ const P3 = Pl("formToTableComp", {
29494
29498
  // width: t?.label === '操作' ? '200' : (t?.width ? parseInt(t.width) : ''),
29495
29499
  width: k != null && k.width ? parseInt(k.width) : "",
29496
29500
  fixed: (k == null ? void 0 : k.fixed) ?? void 0,
29497
- sortable: (k == null ? void 0 : k.sortable) ?? !0,
29501
+ sortable: (k == null ? void 0 : k.sortable) ?? !1,
29498
29502
  align: (k == null ? void 0 : k.align) ?? "center",
29499
29503
  showOverflowTooltip: (k == null ? void 0 : k.showOverflowTooltip) ?? !0,
29500
29504
  isNotDrag: (k == null ? void 0 : k.isNotDrag) ?? !1,
@@ -29514,7 +29518,7 @@ const P3 = Pl("formToTableComp", {
29514
29518
  });
29515
29519
  }
29516
29520
  r.value = He, a.value = He, t.value = (Zt = r.value) == null ? void 0 : Zt.map((z) => z == null ? void 0 : z.label);
29517
- let Qt = (Pi = (mn = md(Lt(r.value))) == null ? void 0 : mn.filter((z) => (z == null ? void 0 : z.type) !== "operate")) == null ? void 0 : Pi.map((z, k) => ({
29521
+ let Qt = (Pi = (gn = md(Lt(r.value))) == null ? void 0 : gn.filter((z) => (z == null ? void 0 : z.type) !== "operate")) == null ? void 0 : Pi.map((z, k) => ({
29518
29522
  prop: (z == null ? void 0 : z.prop) ?? "a" + k,
29519
29523
  column: z.label
29520
29524
  }));
@@ -29531,7 +29535,7 @@ const P3 = Pl("formToTableComp", {
29531
29535
  }
29532
29536
  return z;
29533
29537
  }));
29534
- const Gs = !!((Zn = r.value) != null && Zn.find((z) => z.prop === "index"));
29538
+ const Gs = !!((Qn = r.value) != null && Qn.find((z) => z.prop === "index"));
29535
29539
  Un = ed(Lt(Un), J == null ? void 0 : J.contents, Gs);
29536
29540
  const T = [];
29537
29541
  Un == null || Un.forEach((z, k) => {
@@ -29558,7 +29562,7 @@ const P3 = Pl("formToTableComp", {
29558
29562
  }), _.value = T;
29559
29563
  } else
29560
29564
  r.value = [], a.value = [], _.value = [];
29561
- ((vi = q == null ? void 0 : q.contents) == null ? void 0 : vi.length) > 0 ? y.value = q == null ? void 0 : q.contents : y.value = [], ((Qn = de == null ? void 0 : de.contents) == null ? void 0 : Qn.length) > 0 ? (G.value = de == null ? void 0 : de.contents, W.value = de == null ? void 0 : de.contents) : (G.value = [], W.value = []), E.value = ((Ii = _ == null ? void 0 : _.value) == null ? void 0 : Ii.length) ?? 0, $.value = _.value, m.value === "edit" && (r.value = (is = (Ni = a.value) == null ? void 0 : Ni.filter((He) => (He == null ? void 0 : He.label) !== "操作")) == null ? void 0 : is.map((He) => ({
29565
+ ((vi = q == null ? void 0 : q.contents) == null ? void 0 : vi.length) > 0 ? y.value = q == null ? void 0 : q.contents : y.value = [], ((ei = de == null ? void 0 : de.contents) == null ? void 0 : ei.length) > 0 ? (G.value = de == null ? void 0 : de.contents, W.value = de == null ? void 0 : de.contents) : (G.value = [], W.value = []), E.value = ((Ii = _ == null ? void 0 : _.value) == null ? void 0 : Ii.length) ?? 0, $.value = _.value, m.value === "edit" && (r.value = (is = (Ni = a.value) == null ? void 0 : Ni.filter((He) => (He == null ? void 0 : He.label) !== "操作")) == null ? void 0 : is.map((He) => ({
29562
29566
  ...He,
29563
29567
  type: "edit"
29564
29568
  })), Ut());
@@ -29578,8 +29582,8 @@ const P3 = Pl("formToTableComp", {
29578
29582
  return (O, X) => {
29579
29583
  var pe;
29580
29584
  const q = Ji("el-icon"), de = Ji("el-popover"), re = Ji("svg-icon"), te = Ji("el-button");
29581
- return vn(), ci("div", G3, [
29582
- (vn(), ir(dd, {
29585
+ return fn(), Xn("div", G3, [
29586
+ (fn(), sr(dd, {
29583
29587
  columns: r.value,
29584
29588
  checkedColumns: t.value,
29585
29589
  key: r.value,
@@ -29594,43 +29598,46 @@ const P3 = Pl("formToTableComp", {
29594
29598
  onSelectChange: se,
29595
29599
  onCellChange: ee
29596
29600
  }, ld({
29597
- headerButton: kt((J) => [
29598
- s.showHeader ? (vn(), ir(Ld, {
29601
+ headerButton: Bt((J) => [
29602
+ s.showHeader ? (fn(), sr(Ld, {
29599
29603
  key: 0,
29600
29604
  compName: s.compName,
29601
29605
  buttons: J.buttons,
29602
- onButtonClick: X[0] || (X[0] = (ue) => Le(ue, "", {})),
29606
+ onButtonClick: X[0] || (X[0] = (ce) => Le(ce, "", {})),
29603
29607
  columns: r.value,
29604
29608
  onFilter: qe
29605
- }, null, 8, ["compName", "buttons", "columns"])) : ca("", !0)
29606
- ]),
29607
- viewport: kt(() => [
29608
- Xt("div", q3, [
29609
- Xt("span", {
29610
- title: "只读视图",
29611
- onClick: X[1] || (X[1] = (J) => F("read"))
29612
- }, [
29613
- Vt(re, {
29614
- name: "readTable",
29615
- class: "view-icon"
29616
- })
29617
- ]),
29618
- Xt("span", {
29619
- title: "编辑视图",
29620
- onClick: X[2] || (X[2] = (J) => F("edit"))
29621
- }, [
29622
- Vt(re, {
29623
- name: "editTable",
29624
- class: "view-icon"
29625
- })
29626
- ])
29627
- ])
29609
+ }, null, 8, ["compName", "buttons", "columns"])) : er("", !0)
29628
29610
  ]),
29629
- rowCreate: kt(({ row: J }) => [
29630
- Xt("span", {
29611
+ viewport: Bt(() => {
29612
+ var J;
29613
+ return [
29614
+ ((J = _.value) == null ? void 0 : J.length) > 0 ? (fn(), Xn("div", q3, [
29615
+ jt("span", {
29616
+ title: "只读视图",
29617
+ onClick: X[1] || (X[1] = (ce) => F("read"))
29618
+ }, [
29619
+ Vt(re, {
29620
+ name: "readTable",
29621
+ class: "view-icon"
29622
+ })
29623
+ ]),
29624
+ jt("span", {
29625
+ title: "编辑视图",
29626
+ onClick: X[2] || (X[2] = (ce) => F("edit"))
29627
+ }, [
29628
+ Vt(re, {
29629
+ name: "editTable",
29630
+ class: "view-icon"
29631
+ })
29632
+ ])
29633
+ ])) : er("", !0)
29634
+ ];
29635
+ }),
29636
+ rowCreate: Bt(({ row: J }) => [
29637
+ jt("span", {
29631
29638
  title: "新增",
29632
29639
  class: "row-create-wrap",
29633
- onClick: (ue) => w()
29640
+ onClick: (ce) => w()
29634
29641
  }, [
29635
29642
  Vt(re, {
29636
29643
  name: "rowCreate",
@@ -29638,32 +29645,38 @@ const P3 = Pl("formToTableComp", {
29638
29645
  })
29639
29646
  ], 8, j3)
29640
29647
  ]),
29641
- operateCol: kt(() => [
29648
+ operateCol: Bt(() => [
29642
29649
  Vt(de, {
29643
29650
  title: "选择显示列信息",
29644
29651
  placement: "left-start",
29645
29652
  "popper-class": "menu-operate-popover",
29646
- trigger: "click",
29647
- width: 200
29653
+ trigger: "click"
29648
29654
  }, {
29649
- reference: kt(() => [
29650
- Xt("span", Y3, [
29655
+ reference: Bt(() => [
29656
+ jt("span", Y3, [
29651
29657
  Vt(re, {
29652
29658
  name: "operate",
29653
29659
  style: { width: "15px", height: "15px", cursor: "pointer" }
29654
29660
  })
29655
29661
  ])
29656
29662
  ]),
29657
- default: kt(() => [
29658
- Xt("div", $3, [
29663
+ default: Bt(() => [
29664
+ jt("div", $3, [
29659
29665
  Vt(fd, {
29660
29666
  content: ae.value,
29661
29667
  modelValue: t.value,
29662
29668
  "onUpdate:modelValue": X[3] || (X[3] = (J) => t.value = J),
29663
29669
  min: 2,
29664
- isWrap: !0,
29665
- onChange: O.handleColumnCheck
29666
- }, null, 8, ["content", "modelValue", "onChange"])
29670
+ isWrap: !0
29671
+ }, {
29672
+ append: Bt(() => [
29673
+ Vt(re, {
29674
+ name: "drag",
29675
+ style: { width: "15px", height: "15px", cursor: "move", color: "grey", position: "absolute", right: "5px" }
29676
+ })
29677
+ ]),
29678
+ _: 1
29679
+ }, 8, ["content", "modelValue"])
29667
29680
  ])
29668
29681
  ]),
29669
29682
  _: 1
@@ -29673,31 +29686,31 @@ const P3 = Pl("formToTableComp", {
29673
29686
  }, [
29674
29687
  ((pe = y.value) == null ? void 0 : pe.length) > 0 ? {
29675
29688
  name: "actions",
29676
- fn: kt(({ item: J }) => [
29689
+ fn: Bt(({ item: J }) => [
29677
29690
  Vt(de, {
29678
29691
  title: "",
29679
29692
  placement: "left-start",
29680
29693
  "popper-class": "menu-operate-popover"
29681
29694
  }, {
29682
- reference: kt(() => [
29695
+ reference: Bt(() => [
29683
29696
  Vt(q, null, {
29684
- default: kt(() => [
29697
+ default: Bt(() => [
29685
29698
  Vt(ru(ud))
29686
29699
  ]),
29687
29700
  _: 1
29688
29701
  })
29689
29702
  ]),
29690
- default: kt(() => [
29691
- Xt("div", W3, [
29692
- (vn(!0), ci(au, null, ou(_e(y.value, J), (ue, Me) => (vn(), ci("div", {
29703
+ default: Bt(() => [
29704
+ jt("div", W3, [
29705
+ (fn(!0), Xn(au, null, ou(_e(y.value, J), (ce, Me) => (fn(), Xn("div", {
29693
29706
  class: "menu-config-item",
29694
29707
  key: Me
29695
29708
  }, [
29696
- Xt("div", {
29697
- style: lu({ color: ue == null ? void 0 : ue.textColor }),
29709
+ jt("div", {
29710
+ style: lu({ color: ce == null ? void 0 : ce.textColor }),
29698
29711
  class: "extra-button-label",
29699
- onClick: (Y) => Le(ue == null ? void 0 : ue.label, J, { extra: ue })
29700
- }, ji(ue == null ? void 0 : ue.label), 13, X3)
29712
+ onClick: (Y) => Le(ce == null ? void 0 : ce.label, J, { extra: ce })
29713
+ }, ji(ce == null ? void 0 : ce.label), 13, X3)
29701
29714
  ]))), 128))
29702
29715
  ])
29703
29716
  ]),
@@ -29713,8 +29726,8 @@ const P3 = Pl("formToTableComp", {
29713
29726
  width: K.value,
29714
29727
  onBeforeDestroy: le
29715
29728
  }, {
29716
- default: kt(() => [
29717
- Xt("div", J3, [
29729
+ default: Bt(() => [
29730
+ jt("div", J3, [
29718
29731
  Vt(ya, {
29719
29732
  rowContents: Q.value,
29720
29733
  isEnableWrap: !1,
@@ -29724,14 +29737,14 @@ const P3 = Pl("formToTableComp", {
29724
29737
  }, null, 8, ["rowContents", "isEdit"])
29725
29738
  ])
29726
29739
  ]),
29727
- footer: kt(() => [
29728
- I.value ? (vn(), ci("div", K3, [
29740
+ footer: Bt(() => [
29741
+ I.value ? (fn(), Xn("div", K3, [
29729
29742
  Vt(te, {
29730
29743
  onClick: X[4] || (X[4] = (J) => U.value = !1),
29731
29744
  id: "themeBorderButton"
29732
29745
  }, {
29733
- default: kt(() => X[7] || (X[7] = [
29734
- yr(ji("取消"))
29746
+ default: Bt(() => X[7] || (X[7] = [
29747
+ Mr(ji("取消"))
29735
29748
  ])),
29736
29749
  _: 1,
29737
29750
  __: [7]
@@ -29741,13 +29754,13 @@ const P3 = Pl("formToTableComp", {
29741
29754
  onClick: Pe,
29742
29755
  id: "themeButton"
29743
29756
  }, {
29744
- default: kt(() => X[8] || (X[8] = [
29745
- yr(ji("确认"))
29757
+ default: Bt(() => X[8] || (X[8] = [
29758
+ Mr(ji("确认"))
29746
29759
  ])),
29747
29760
  _: 1,
29748
29761
  __: [8]
29749
29762
  })
29750
- ])) : ca("", !0)
29763
+ ])) : er("", !0)
29751
29764
  ]),
29752
29765
  _: 1
29753
29766
  }, 8, ["title", "visible", "width"]),
@@ -29757,18 +29770,18 @@ const P3 = Pl("formToTableComp", {
29757
29770
  width: D.value,
29758
29771
  onBeforeDestroy: X[6] || (X[6] = (J) => P.value = !1)
29759
29772
  }, {
29760
- default: kt(() => [
29773
+ default: Bt(() => [
29761
29774
  Vt(F3)
29762
29775
  ]),
29763
- footer: kt(() => [
29764
- Xt("div", Z3, [
29776
+ footer: Bt(() => [
29777
+ jt("div", Z3, [
29765
29778
  Vt(te, {
29766
29779
  onClick: X[5] || (X[5] = (J) => P.value = !1),
29767
29780
  class: "cancel-button",
29768
29781
  id: "themeBorderButton"
29769
29782
  }, {
29770
- default: kt(() => X[9] || (X[9] = [
29771
- yr(ji("取消"))
29783
+ default: Bt(() => X[9] || (X[9] = [
29784
+ Mr(ji("取消"))
29772
29785
  ])),
29773
29786
  _: 1,
29774
29787
  __: [9]
@@ -29778,8 +29791,8 @@ const P3 = Pl("formToTableComp", {
29778
29791
  onClick: rt,
29779
29792
  id: "themeButton"
29780
29793
  }, {
29781
- default: kt(() => X[10] || (X[10] = [
29782
- yr(ji("确认"))
29794
+ default: Bt(() => X[10] || (X[10] = [
29795
+ Mr(ji("确认"))
29783
29796
  ])),
29784
29797
  _: 1,
29785
29798
  __: [10]
@@ -29788,18 +29801,18 @@ const P3 = Pl("formToTableComp", {
29788
29801
  ]),
29789
29802
  _: 1
29790
29803
  }, 8, ["title", "visible", "width"]),
29791
- o.value ? (vn(), ir(pd, {
29804
+ o.value ? (fn(), sr(pd, {
29792
29805
  key: 0,
29793
29806
  fileDataList: l.value,
29794
29807
  onDestroy: xt
29795
- }, null, 8, ["fileDataList"])) : ca("", !0)
29808
+ }, null, 8, ["fileDataList"])) : er("", !0)
29796
29809
  ]);
29797
29810
  };
29798
29811
  }
29799
- }, m_ = /* @__PURE__ */ Dl(Q3, [["__scopeId", "data-v-8e75321c"]]);
29812
+ }, m_ = /* @__PURE__ */ Dl(Q3, [["__scopeId", "data-v-2d07be3f"]]);
29800
29813
  export {
29801
29814
  sf as A,
29802
- Kn as B,
29815
+ Zn as B,
29803
29816
  u_ as C,
29804
29817
  n0 as D,
29805
29818
  yn as E,
@@ -29808,7 +29821,7 @@ export {
29808
29821
  a_ as M,
29809
29822
  Xi as P,
29810
29823
  Dn as Q,
29811
- gr as R,
29824
+ _r as R,
29812
29825
  l0 as S,
29813
29826
  o_ as T,
29814
29827
  N as V,
@@ -29829,7 +29842,7 @@ export {
29829
29842
  i0 as m,
29830
29843
  e0 as n,
29831
29844
  Sn as o,
29832
- fn as p,
29845
+ pn as p,
29833
29846
  it as q,
29834
29847
  xp as r,
29835
29848
  m_ as s,