ss-component-new 1.1.821 → 1.1.822

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 (141) hide show
  1. package/dist/{OrbitControls-D6pgin7s.js → OrbitControls-Cm4Xs_Bq.js} +1 -1
  2. package/dist/{OrbitControls-Ff5ikkUQ.cjs → OrbitControls-D-XDZGf-.cjs} +1 -1
  3. package/dist/{STLLoader-BNh7D2zV.cjs → STLLoader-BxpEhvEg.cjs} +161 -161
  4. package/dist/{STLLoader-LGKv5i3H.js → STLLoader-DofhZbOw.js} +522 -593
  5. package/dist/{array-D1hKYLwI.cjs → array-Bfmx0w6P.cjs} +2 -2
  6. package/dist/{array-C60T9pDZ.js → array-DbAuNWGt.js} +1 -1
  7. package/dist/{iconfont-v9CcCMwF.js → iconfont-DQodgJo8.js} +73 -75
  8. package/dist/iconfont-Di4uXnX1.cjs +1 -0
  9. package/dist/icons/svg/editTable.svg +1 -1
  10. package/dist/icons/svg/export.svg +1 -0
  11. package/dist/icons/svg/model.svg +1 -0
  12. package/dist/icons/svg/three.svg +1 -0
  13. package/dist/index-1i-XlS2m.js +101 -0
  14. package/dist/{index-BdsJiFeW.cjs → index-6jSC3unU.cjs} +1 -1
  15. package/dist/{index-2kzGjuzu.js → index-6zbHinQ6.js} +10 -9
  16. package/dist/index-B-oe2x1V.cjs +109 -0
  17. package/dist/index-B-qent3l.cjs +1 -0
  18. package/dist/{index-CukZ8eDZ.js → index-BBo52W9F.js} +4 -4
  19. package/dist/index-BOev8isw.cjs +21 -0
  20. package/dist/index-BQgnYD51.js +6492 -0
  21. package/dist/{index-owcnOlVq.js → index-BYW-ix_Q.js} +5 -5
  22. package/dist/{index-4_M1SpeV.js → index-Bi1gr72d.js} +14 -14
  23. package/dist/{index-DnVaHi8q.js → index-BmHmnXS9.js} +7 -7
  24. package/dist/index-BoS30LXH.cjs +1 -0
  25. package/dist/index-BuBMi9JA.cjs +1 -0
  26. package/dist/{index-Zi9xLtwj.js → index-BvE05H-i.js} +2 -2
  27. package/dist/index-BwpOMKef.cjs +1 -0
  28. package/dist/index-C18ZPRC7.cjs +1 -0
  29. package/dist/{index-HVJSfh2g.js → index-CJx2DcDb.js} +21 -19
  30. package/dist/{index-B3cUSGXB.js → index-CL59qQ_W.js} +9 -8
  31. package/dist/{index-DDsJpzfR.js → index-CLdN0W98.js} +47 -47
  32. package/dist/index-CPP7L10q.cjs +1 -0
  33. package/dist/index-CSWIBSmo.cjs +1 -0
  34. package/dist/{index-DEobyz7r.js → index-CTgZZ96L.js} +6 -5
  35. package/dist/{index-WXpPDsev.js → index-CZ1ui4mT.js} +1 -1
  36. package/dist/index-CfQvGqaX.cjs +1 -0
  37. package/dist/index-CgJYAzeA.cjs +1 -0
  38. package/dist/index-ChtmIuBu.js +29771 -0
  39. package/dist/index-CjFcaJcL.cjs +1 -0
  40. package/dist/index-CjTmkzBO.js +24 -0
  41. package/dist/{index-Dtw4WkUo.cjs → index-CngO0AUc.cjs} +1 -1
  42. package/dist/index-CqCPdyGu.js +1248 -0
  43. package/dist/index-Cr6pWv0l.cjs +1 -0
  44. package/dist/{index-Cw95lvvp.js → index-D8Msszln.js} +223 -223
  45. package/dist/index-DDvUG6fk.js +22 -0
  46. package/dist/{index-CdMrhxHS.js → index-DMlIMlyC.js} +10 -10
  47. package/dist/{index-3Cdyqd1B.cjs → index-DOBeGYzT.cjs} +1 -1
  48. package/dist/index-DP0k43fj.cjs +1 -0
  49. package/dist/index-DTxccgVM.cjs +1 -0
  50. package/dist/{index-JAJeIBYE.cjs → index-DVAGljX0.cjs} +1 -1
  51. package/dist/{index-B5Vi6RBj.cjs → index-DVCrYVKw.cjs} +1 -1
  52. package/dist/{index-Dxoxm0Cc.js → index-DZWNGFC0.js} +22 -22
  53. package/dist/{index-CY2iphpd.cjs → index-DbniLh9G.cjs} +1 -1
  54. package/dist/index-Dj_ofPeK.cjs +1 -0
  55. package/dist/{index-DtogzZej.js → index-DocnYz5P.js} +1 -1
  56. package/dist/index-DrL7vroa.js +319 -0
  57. package/dist/index-Dt2McMki.js +13668 -0
  58. package/dist/{index-Cphx1eY1.js → index-Gba1Qfcc.js} +7 -8
  59. package/dist/{index-DMb9Vu-7.js → index-IUkCD4R_.js} +1 -1
  60. package/dist/{index-DAyzDsjs.js → index-K6BRW_Bw.js} +1 -1
  61. package/dist/{index-DzM8zZqe.js → index-OH9t-y2p.js} +4 -4
  62. package/dist/index-PNDdZKYG.cjs +1 -0
  63. package/dist/{index-Dn04IPFM.js → index-QETLKFyV.js} +10 -10
  64. package/dist/{index-BWHtpT9o.cjs → index-RgTvyK54.cjs} +1 -1
  65. package/dist/{index-Cuj-fGNO.cjs → index-VAIU8vMN.cjs} +1 -1
  66. package/dist/{index-CF_0RdqV.cjs → index-dukFqRog.cjs} +1 -1
  67. package/dist/{index-C9Boo2Cw.cjs → index-dyoOdMKX.cjs} +1 -1
  68. package/dist/index-f9bwREQl.cjs +1 -0
  69. package/dist/index-rPc9VS0S.cjs +1 -0
  70. package/dist/index-tPamnhR2.js +236 -0
  71. package/dist/{index-H3kf9EQv.js → index-tX2Hs05F.js} +11 -10
  72. package/dist/{index-DEU-pXeW.js → index-uvns6W6E.js} +1838 -1812
  73. package/dist/index-weauvEnW.cjs +4 -0
  74. package/dist/{index-B8xEed7C.cjs → index-wlnPb2aB.cjs} +1 -1
  75. package/dist/{index.vue_vue_type_script_setup_true_lang-iyZtrhDf.js → index.vue_vue_type_script_setup_true_lang-C4G6mB7R.js} +28 -28
  76. package/dist/{index.vue_vue_type_script_setup_true_lang-CaYQQb8M.cjs → index.vue_vue_type_script_setup_true_lang-CWi4UVPF.cjs} +1 -1
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-qefZ9E5G.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtN9Ij0Y.js} +53 -23
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTcahF4Z.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-mQIxU0SD.cjs} +90 -90
  79. package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-Cxjh1E1z.js → index.vue_vue_type_style_index_0_scoped_1966237d_lang-D3xcEtDT.js} +6488 -6474
  80. package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-0eNHRdYw.cjs → index.vue_vue_type_style_index_0_scoped_1966237d_lang-DwIFJsxs.cjs} +14 -14
  81. package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-kymzIBO8.js → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-D5CTJUDi.js} +17 -17
  82. package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-GlR2V0TC.cjs → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-VPQBXOPW.cjs} +1 -1
  83. package/dist/index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs +32 -0
  84. package/dist/index.vue_vue_type_style_index_1_lang-hffXwR3x.js +7028 -0
  85. package/dist/isUndefined-4Qg9wncf.js +84 -0
  86. package/dist/isUndefined-BEt4O79g.cjs +1 -0
  87. package/dist/{main-C6I42yaU.js → main-CBCk94h5.js} +30 -29
  88. package/dist/main-DO_PN7jt.cjs +1 -0
  89. package/dist/ss-component.cjs +1 -1
  90. package/dist/ss-component.css +2 -2
  91. package/dist/ss-component.js +11 -11
  92. package/dist/ss-component2.cjs +1 -1
  93. package/dist/ss-component2.js +12 -12
  94. package/dist/threeModel-GKSAzHfe.cjs +1 -0
  95. package/dist/{threeModel-BEt5OVCP.js → threeModel-RJwJMtfW.js} +91 -92
  96. package/dist/{threePreview-BUZRvBRx.js → threePreview-BSqdALPK.js} +3 -3
  97. package/dist/{threePreview-Dyzqu5s7.cjs → threePreview-CKvbwCiX.cjs} +1 -1
  98. package/dist/threeSceneView-BVbVe_Et.js +1277 -0
  99. package/dist/threeSceneView-KvCERteS.cjs +5 -0
  100. package/dist/{threeViewerHost-IhSFkCeD.js → threeViewerHost-AuhfL2Cn.js} +55 -57
  101. package/dist/threeViewerHost-D0pu5wk5.cjs +1 -0
  102. package/package.json +1 -1
  103. package/public/icons/svg/editTable.svg +1 -1
  104. package/public/icons/svg/export.svg +1 -0
  105. package/public/icons/svg/model.svg +1 -0
  106. package/public/icons/svg/three.svg +1 -0
  107. package/dist/animationData-B2T3Oamw.js +0 -108
  108. package/dist/animationData-Db_9HBoM.cjs +0 -1
  109. package/dist/iconfont-CZj6ltAs.cjs +0 -1
  110. package/dist/index-2KKrCkl8.cjs +0 -1
  111. package/dist/index-2OWkrGDh.js +0 -24
  112. package/dist/index-B1iXzkUF.cjs +0 -1
  113. package/dist/index-BBB4VObc.cjs +0 -11
  114. package/dist/index-BIVWMqJQ.cjs +0 -1
  115. package/dist/index-BWpZSzL1.cjs +0 -1
  116. package/dist/index-BllULnvx.cjs +0 -1
  117. package/dist/index-BvO1uTn0.js +0 -21
  118. package/dist/index-C2bI4adc.js +0 -8628
  119. package/dist/index-C9pN8_un.js +0 -548
  120. package/dist/index-CPdKWCSo.cjs +0 -1
  121. package/dist/index-CQfFbeTJ.cjs +0 -1
  122. package/dist/index-CZJOPfp5.js +0 -1152
  123. package/dist/index-Cb0q1Y5b.cjs +0 -1
  124. package/dist/index-Cfomm0G1.cjs +0 -109
  125. package/dist/index-CvvFU_QA.cjs +0 -1
  126. package/dist/index-DYMLmifU.cjs +0 -1
  127. package/dist/index-DfPyuGyq.js +0 -101
  128. package/dist/index-Dm2qfeUm.cjs +0 -1
  129. package/dist/index-DtX1F0sz.cjs +0 -4
  130. package/dist/index-Du3VUDcF.cjs +0 -1
  131. package/dist/index-VWNqRYy9.js +0 -36270
  132. package/dist/index-kmj8K3JX.cjs +0 -1
  133. package/dist/index-ndZw4AQJ.cjs +0 -1
  134. package/dist/index-y5FEcncv.cjs +0 -1
  135. package/dist/index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs +0 -42
  136. package/dist/index.vue_vue_type_style_index_1_lang-Rs1M3B8e.js +0 -11984
  137. package/dist/main-2gDZp_zL.cjs +0 -1
  138. package/dist/threeModel-DgOcIXVI.cjs +0 -1
  139. package/dist/threeSceneView-BZx98QgN.js +0 -1450
  140. package/dist/threeSceneView-DSkGJN5d.cjs +0 -5
  141. package/dist/threeViewerHost-T_51aUg5.cjs +0 -1
@@ -3,7 +3,7 @@
3
3
  * Copyright 2010-2025 Three.js Authors
4
4
  * SPDX-License-Identifier: MIT
5
5
  */
6
- const vo = "177", Dv = { ROTATE: 0, DOLLY: 1, PAN: 2 }, Iv = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Uh = 0, Jo = 1, Nh = 2, kc = 1, Fh = 2, vn = 3, bn = 0, Le = 1, xn = 2, On = 0, Ti = 1, Ko = 2, Zo = 3, Qo = 4, Oh = 5, Kn = 100, Bh = 101, zh = 102, Vh = 103, kh = 104, Hh = 200, Gh = 201, Wh = 202, Xh = 203, Ma = 204, Sa = 205, qh = 206, Yh = 207, jh = 208, $h = 209, Jh = 210, Kh = 211, Zh = 212, Qh = 213, tu = 214, Ea = 0, ba = 1, Ta = 2, Ci = 3, wa = 4, Aa = 5, Ra = 6, Ca = 7, vs = 0, eu = 1, nu = 2, Bn = 0, iu = 1, ru = 2, su = 3, au = 4, ou = 5, lu = 6, cu = 7, tl = "attached", hu = "detached", Hc = 300, Pi = 301, Li = 302, Pa = 303, La = 304, xs = 306, Di = 1e3, yn = 1001, Da = 1002, ze = 1003, uu = 1004, vr = 1005, Be = 1006, Cs = 1007, Nn = 1008, hn = 1009, Gc = 1010, Wc = 1011, ar = 1012, xo = 1013, ti = 1014, tn = 1015, dr = 1016, yo = 1017, Mo = 1018, or = 1020, Xc = 35902, qc = 1021, Yc = 1022, qe = 1023, lr = 1026, cr = 1027, So = 1028, Eo = 1029, jc = 1030, bo = 1031, To = 1033, ns = 33776, is = 33777, rs = 33778, ss = 33779, Ia = 35840, Ua = 35841, Na = 35842, Fa = 35843, Oa = 36196, Ba = 37492, za = 37496, Va = 37808, ka = 37809, Ha = 37810, Ga = 37811, Wa = 37812, Xa = 37813, qa = 37814, Ya = 37815, ja = 37816, $a = 37817, Ja = 37818, Ka = 37819, Za = 37820, Qa = 37821, as = 36492, to = 36494, eo = 36495, $c = 36283, no = 36284, io = 36285, ro = 36286, hs = 2300, so = 2301, Ps = 2302, el = 2400, nl = 2401, il = 2402, du = 2500, Uv = 0, Nv = 1, Fv = 2, fu = 3200, pu = 3201, ys = 0, mu = 1, Un = "", ge = "srgb", Ii = "srgb-linear", us = "linear", ee = "srgb", ri = 7680, rl = 519, gu = 512, _u = 513, vu = 514, Jc = 515, xu = 516, yu = 517, Mu = 518, Su = 519, ao = 35044, sl = "300 es", Mn = 2e3, ds = 2001;
6
+ const vo = "177", Dv = { ROTATE: 0, DOLLY: 1, PAN: 2 }, Iv = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Uh = 0, Jo = 1, Nh = 2, kc = 1, Fh = 2, vn = 3, bn = 0, Le = 1, xn = 2, On = 0, Ti = 1, Ko = 2, Zo = 3, Qo = 4, Oh = 5, Kn = 100, Bh = 101, zh = 102, Vh = 103, kh = 104, Hh = 200, Gh = 201, Wh = 202, Xh = 203, ya = 204, Ma = 205, qh = 206, Yh = 207, jh = 208, $h = 209, Jh = 210, Kh = 211, Zh = 212, Qh = 213, tu = 214, Sa = 0, Ea = 1, ba = 2, Ri = 3, Ta = 4, wa = 5, Aa = 6, Ra = 7, _s = 0, eu = 1, nu = 2, Bn = 0, iu = 1, ru = 2, su = 3, au = 4, ou = 5, lu = 6, cu = 7, tl = "attached", hu = "detached", Hc = 300, Ci = 301, Pi = 302, Ca = 303, Pa = 304, vs = 306, Li = 1e3, yn = 1001, La = 1002, ze = 1003, uu = 1004, vr = 1005, Be = 1006, Rs = 1007, Nn = 1008, hn = 1009, Gc = 1010, Wc = 1011, ar = 1012, xo = 1013, ti = 1014, tn = 1015, dr = 1016, yo = 1017, Mo = 1018, or = 1020, Xc = 35902, qc = 1021, Yc = 1022, qe = 1023, lr = 1026, cr = 1027, So = 1028, Eo = 1029, jc = 1030, bo = 1031, To = 1033, ns = 33776, is = 33777, rs = 33778, ss = 33779, Da = 35840, Ia = 35841, Ua = 35842, Na = 35843, Fa = 36196, Oa = 37492, Ba = 37496, za = 37808, Va = 37809, ka = 37810, Ha = 37811, Ga = 37812, Wa = 37813, Xa = 37814, qa = 37815, Ya = 37816, ja = 37817, $a = 37818, Ja = 37819, Ka = 37820, Za = 37821, as = 36492, Qa = 36494, to = 36495, $c = 36283, eo = 36284, no = 36285, io = 36286, hs = 2300, ro = 2301, Cs = 2302, el = 2400, nl = 2401, il = 2402, du = 2500, Uv = 0, Nv = 1, Fv = 2, fu = 3200, pu = 3201, xs = 0, mu = 1, Un = "", ge = "srgb", Di = "srgb-linear", us = "linear", ee = "srgb", ri = 7680, rl = 519, gu = 512, _u = 513, vu = 514, Jc = 515, xu = 516, yu = 517, Mu = 518, Su = 519, so = 35044, sl = "300 es", Mn = 2e3, ds = 2001;
7
7
  class ni {
8
8
  /**
9
9
  * Adds the given event listener to the given event type.
@@ -62,7 +62,7 @@ class ni {
62
62
  }
63
63
  const Te = ["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"];
64
64
  let al = 1234567;
65
- const nr = Math.PI / 180, Ui = 180 / Math.PI;
65
+ const er = Math.PI / 180, Ii = 180 / Math.PI;
66
66
  function en() {
67
67
  const r = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0;
68
68
  return (Te[r & 255] + Te[r >> 8 & 255] + Te[r >> 16 & 255] + Te[r >> 24 & 255] + "-" + Te[t & 255] + Te[t >> 8 & 255] + "-" + Te[t >> 16 & 15 | 64] + Te[t >> 24 & 255] + "-" + Te[e & 63 | 128] + Te[e >> 8 & 255] + "-" + Te[e >> 16 & 255] + Te[e >> 24 & 255] + Te[n & 255] + Te[n >> 8 & 255] + Te[n >> 16 & 255] + Te[n >> 24 & 255]).toLowerCase();
@@ -79,11 +79,11 @@ function Eu(r, t, e, n, i) {
79
79
  function bu(r, t, e) {
80
80
  return r !== t ? (e - r) / (t - r) : 0;
81
81
  }
82
- function ir(r, t, e) {
82
+ function nr(r, t, e) {
83
83
  return (1 - e) * r + e * t;
84
84
  }
85
85
  function Tu(r, t, e, n) {
86
- return ir(r, t, 1 - Math.exp(-e * n));
86
+ return nr(r, t, 1 - Math.exp(-e * n));
87
87
  }
88
88
  function wu(r, t = 1) {
89
89
  return t - Math.abs(wo(r, t * 2) - t);
@@ -109,10 +109,10 @@ function Du(r) {
109
109
  return t = Math.imul(t ^ t >>> 15, t | 1), t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
110
110
  }
111
111
  function Iu(r) {
112
- return r * nr;
112
+ return r * er;
113
113
  }
114
114
  function Uu(r) {
115
- return r * Ui;
115
+ return r * Ii;
116
116
  }
117
117
  function Nu(r) {
118
118
  return (r & r - 1) === 0 && r !== 0;
@@ -189,8 +189,8 @@ function te(r, t) {
189
189
  }
190
190
  }
191
191
  const zu = {
192
- DEG2RAD: nr,
193
- RAD2DEG: Ui,
192
+ DEG2RAD: er,
193
+ RAD2DEG: Ii,
194
194
  /**
195
195
  * Generate a [UUID]{@link https://en.wikipedia.org/wiki/Universally_unique_identifier}
196
196
  * (universally unique identifier).
@@ -259,7 +259,7 @@ const zu = {
259
259
  * @param {number} t - The interpolation factor in the closed interval `[0, 1]`.
260
260
  * @return {number} The interpolated value.
261
261
  */
262
- lerp: ir,
262
+ lerp: nr,
263
263
  /**
264
264
  * Smoothly interpolate a number from `x` to `y` in a spring-like manner using a delta
265
265
  * time to maintain frame rate independent movement. For details, see
@@ -1962,7 +1962,7 @@ class R {
1962
1962
  * @return {Vector3} A reference to this vector.
1963
1963
  */
1964
1964
  projectOnPlane(t) {
1965
- return Ls.copy(this).projectOnVector(t), this.sub(Ls);
1965
+ return Ps.copy(this).projectOnVector(t), this.sub(Ps);
1966
1966
  }
1967
1967
  /**
1968
1968
  * Reflects this vector off a plane orthogonal to the given normal vector.
@@ -1971,7 +1971,7 @@ class R {
1971
1971
  * @return {Vector3} A reference to this vector.
1972
1972
  */
1973
1973
  reflect(t) {
1974
- return this.sub(Ls.copy(t).multiplyScalar(2 * this.dot(t)));
1974
+ return this.sub(Ps.copy(t).multiplyScalar(2 * this.dot(t)));
1975
1975
  }
1976
1976
  /**
1977
1977
  * Returns the angle between the given vector and this instance in radians.
@@ -2180,7 +2180,7 @@ class R {
2180
2180
  yield this.x, yield this.y, yield this.z;
2181
2181
  }
2182
2182
  }
2183
- const Ls = /* @__PURE__ */ new R(), ol = /* @__PURE__ */ new Sn();
2183
+ const Ps = /* @__PURE__ */ new R(), ol = /* @__PURE__ */ new Sn();
2184
2184
  class Ft {
2185
2185
  /**
2186
2186
  * Constructs a new 3x3 matrix. The arguments are supposed to be
@@ -2414,7 +2414,7 @@ class Ft {
2414
2414
  * @return {Matrix3} A reference to this matrix.
2415
2415
  */
2416
2416
  scale(t, e) {
2417
- return this.premultiply(Ds.makeScale(t, e)), this;
2417
+ return this.premultiply(Ls.makeScale(t, e)), this;
2418
2418
  }
2419
2419
  /**
2420
2420
  * Rotates this matrix by the given angle.
@@ -2423,7 +2423,7 @@ class Ft {
2423
2423
  * @return {Matrix3} A reference to this matrix.
2424
2424
  */
2425
2425
  rotate(t) {
2426
- return this.premultiply(Ds.makeRotation(-t)), this;
2426
+ return this.premultiply(Ls.makeRotation(-t)), this;
2427
2427
  }
2428
2428
  /**
2429
2429
  * Translates this matrix by the given scalar values.
@@ -2433,7 +2433,7 @@ class Ft {
2433
2433
  * @return {Matrix3} A reference to this matrix.
2434
2434
  */
2435
2435
  translate(t, e) {
2436
- return this.premultiply(Ds.makeTranslation(t, e)), this;
2436
+ return this.premultiply(Ls.makeTranslation(t, e)), this;
2437
2437
  }
2438
2438
  // for 2D Transforms
2439
2439
  /**
@@ -2551,7 +2551,7 @@ class Ft {
2551
2551
  return new this.constructor().fromArray(this.elements);
2552
2552
  }
2553
2553
  }
2554
- const Ds = /* @__PURE__ */ new Ft();
2554
+ const Ls = /* @__PURE__ */ new Ft();
2555
2555
  function Kc(r) {
2556
2556
  for (let t = r.length - 1; t >= 0; --t)
2557
2557
  if (r[t] >= 65535) return !0;
@@ -2617,7 +2617,7 @@ const cl = /* @__PURE__ */ new Ft().set(
2617
2617
  function Wu() {
2618
2618
  const r = {
2619
2619
  enabled: !0,
2620
- workingColorSpace: Ii,
2620
+ workingColorSpace: Di,
2621
2621
  /**
2622
2622
  * Implementations of supported color spaces.
2623
2623
  *
@@ -2677,7 +2677,7 @@ function Wu() {
2677
2677
  }
2678
2678
  }, t = [0.64, 0.33, 0.3, 0.6, 0.15, 0.06], e = [0.2126, 0.7152, 0.0722], n = [0.3127, 0.329];
2679
2679
  return r.define({
2680
- [Ii]: {
2680
+ [Di]: {
2681
2681
  primaries: t,
2682
2682
  whitePoint: n,
2683
2683
  transfer: us,
@@ -2802,15 +2802,15 @@ class Ao {
2802
2802
  if (Array.isArray(i)) {
2803
2803
  s = [];
2804
2804
  for (let a = 0, o = i.length; a < o; a++)
2805
- i[a].isDataTexture ? s.push(Is(i[a].image)) : s.push(Is(i[a]));
2805
+ i[a].isDataTexture ? s.push(Ds(i[a].image)) : s.push(Ds(i[a]));
2806
2806
  } else
2807
- s = Is(i);
2807
+ s = Ds(i);
2808
2808
  n.url = s;
2809
2809
  }
2810
2810
  return e || (t.images[this.uuid] = n), n;
2811
2811
  }
2812
2812
  }
2813
- function Is(r) {
2813
+ function Ds(r) {
2814
2814
  return typeof HTMLImageElement < "u" && r instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && r instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && r instanceof ImageBitmap ? Xu.getDataURL(r) : r.data ? {
2815
2815
  data: Array.from(r.data),
2816
2816
  width: r.width,
@@ -2819,7 +2819,7 @@ function Is(r) {
2819
2819
  } : (console.warn("THREE.Texture: Unable to serialize Texture."), {});
2820
2820
  }
2821
2821
  let Yu = 0;
2822
- const Us = /* @__PURE__ */ new R();
2822
+ const Is = /* @__PURE__ */ new R();
2823
2823
  class be extends ni {
2824
2824
  /**
2825
2825
  * Constructs a new texture.
@@ -2842,19 +2842,19 @@ class be extends ni {
2842
2842
  * The width of the texture in pixels.
2843
2843
  */
2844
2844
  get width() {
2845
- return this.source.getSize(Us).x;
2845
+ return this.source.getSize(Is).x;
2846
2846
  }
2847
2847
  /**
2848
2848
  * The height of the texture in pixels.
2849
2849
  */
2850
2850
  get height() {
2851
- return this.source.getSize(Us).y;
2851
+ return this.source.getSize(Is).y;
2852
2852
  }
2853
2853
  /**
2854
2854
  * The depth of the texture in pixels.
2855
2855
  */
2856
2856
  get depth() {
2857
- return this.source.getSize(Us).z;
2857
+ return this.source.getSize(Is).z;
2858
2858
  }
2859
2859
  /**
2860
2860
  * The image object holding the texture data.
@@ -2985,25 +2985,25 @@ class be extends ni {
2985
2985
  if (this.mapping !== Hc) return t;
2986
2986
  if (t.applyMatrix3(this.matrix), t.x < 0 || t.x > 1)
2987
2987
  switch (this.wrapS) {
2988
- case Di:
2988
+ case Li:
2989
2989
  t.x = t.x - Math.floor(t.x);
2990
2990
  break;
2991
2991
  case yn:
2992
2992
  t.x = t.x < 0 ? 0 : 1;
2993
2993
  break;
2994
- case Da:
2994
+ case La:
2995
2995
  Math.abs(Math.floor(t.x) % 2) === 1 ? t.x = Math.ceil(t.x) - t.x : t.x = t.x - Math.floor(t.x);
2996
2996
  break;
2997
2997
  }
2998
2998
  if (t.y < 0 || t.y > 1)
2999
2999
  switch (this.wrapT) {
3000
- case Di:
3000
+ case Li:
3001
3001
  t.y = t.y - Math.floor(t.y);
3002
3002
  break;
3003
3003
  case yn:
3004
3004
  t.y = t.y < 0 ? 0 : 1;
3005
3005
  break;
3006
- case Da:
3006
+ case La:
3007
3007
  Math.abs(Math.floor(t.y) % 2) === 1 ? t.y = Math.ceil(t.y) - t.y : t.y = t.y - Math.floor(t.y);
3008
3008
  break;
3009
3009
  }
@@ -4045,7 +4045,7 @@ class nn {
4045
4045
  intersectsTriangle(t) {
4046
4046
  if (this.isEmpty())
4047
4047
  return !1;
4048
- this.getCenter(ki), yr.subVectors(this.max, ki), ai.subVectors(t.a, ki), oi.subVectors(t.b, ki), li.subVectors(t.c, ki), Rn.subVectors(oi, ai), Cn.subVectors(li, oi), kn.subVectors(ai, li);
4048
+ this.getCenter(Vi), yr.subVectors(this.max, Vi), ai.subVectors(t.a, Vi), oi.subVectors(t.b, Vi), li.subVectors(t.c, Vi), Rn.subVectors(oi, ai), Cn.subVectors(li, oi), kn.subVectors(ai, li);
4049
4049
  let e = [
4050
4050
  0,
4051
4051
  -Rn.z,
@@ -4075,7 +4075,7 @@ class nn {
4075
4075
  kn.x,
4076
4076
  0
4077
4077
  ];
4078
- return !Ns(e, ai, oi, li, yr) || (e = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Ns(e, ai, oi, li, yr)) ? !1 : (Mr.crossVectors(Rn, Cn), e = [Mr.x, Mr.y, Mr.z], Ns(e, ai, oi, li, yr));
4078
+ return !Us(e, ai, oi, li, yr) || (e = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Us(e, ai, oi, li, yr)) ? !1 : (Mr.crossVectors(Rn, Cn), e = [Mr.x, Mr.y, Mr.z], Us(e, ai, oi, li, yr));
4079
4079
  }
4080
4080
  /**
4081
4081
  * Clamps the given point within the bounds of this box.
@@ -4187,8 +4187,8 @@ const dn = [
4187
4187
  /* @__PURE__ */ new R(),
4188
4188
  /* @__PURE__ */ new R(),
4189
4189
  /* @__PURE__ */ new R()
4190
- ], Je = /* @__PURE__ */ new R(), xr = /* @__PURE__ */ new nn(), ai = /* @__PURE__ */ new R(), oi = /* @__PURE__ */ new R(), li = /* @__PURE__ */ new R(), Rn = /* @__PURE__ */ new R(), Cn = /* @__PURE__ */ new R(), kn = /* @__PURE__ */ new R(), ki = /* @__PURE__ */ new R(), yr = /* @__PURE__ */ new R(), Mr = /* @__PURE__ */ new R(), Hn = /* @__PURE__ */ new R();
4191
- function Ns(r, t, e, n, i) {
4190
+ ], Je = /* @__PURE__ */ new R(), xr = /* @__PURE__ */ new nn(), ai = /* @__PURE__ */ new R(), oi = /* @__PURE__ */ new R(), li = /* @__PURE__ */ new R(), Rn = /* @__PURE__ */ new R(), Cn = /* @__PURE__ */ new R(), kn = /* @__PURE__ */ new R(), Vi = /* @__PURE__ */ new R(), yr = /* @__PURE__ */ new R(), Mr = /* @__PURE__ */ new R(), Hn = /* @__PURE__ */ new R();
4191
+ function Us(r, t, e, n, i) {
4192
4192
  for (let s = 0, a = r.length - 3; s <= a; s += 3) {
4193
4193
  Hn.fromArray(r, s);
4194
4194
  const o = i.x * Math.abs(Hn.x) + i.y * Math.abs(Hn.y) + i.z * Math.abs(Hn.z), l = t.dot(Hn), c = e.dot(Hn), h = n.dot(Hn);
@@ -4197,7 +4197,7 @@ function Ns(r, t, e, n, i) {
4197
4197
  }
4198
4198
  return !0;
4199
4199
  }
4200
- const Ju = /* @__PURE__ */ new nn(), Hi = /* @__PURE__ */ new R(), Fs = /* @__PURE__ */ new R();
4200
+ const Ju = /* @__PURE__ */ new nn(), ki = /* @__PURE__ */ new R(), Ns = /* @__PURE__ */ new R();
4201
4201
  class rn {
4202
4202
  /**
4203
4203
  * Constructs a new sphere.
@@ -4362,11 +4362,11 @@ class rn {
4362
4362
  expandByPoint(t) {
4363
4363
  if (this.isEmpty())
4364
4364
  return this.center.copy(t), this.radius = 0, this;
4365
- Hi.subVectors(t, this.center);
4366
- const e = Hi.lengthSq();
4365
+ ki.subVectors(t, this.center);
4366
+ const e = ki.lengthSq();
4367
4367
  if (e > this.radius * this.radius) {
4368
4368
  const n = Math.sqrt(e), i = (n - this.radius) * 0.5;
4369
- this.center.addScaledVector(Hi, i / n), this.radius += i;
4369
+ this.center.addScaledVector(ki, i / n), this.radius += i;
4370
4370
  }
4371
4371
  return this;
4372
4372
  }
@@ -4377,7 +4377,7 @@ class rn {
4377
4377
  * @return {Sphere} A reference to this sphere.
4378
4378
  */
4379
4379
  union(t) {
4380
- return t.isEmpty() ? this : this.isEmpty() ? (this.copy(t), this) : (this.center.equals(t.center) === !0 ? this.radius = Math.max(this.radius, t.radius) : (Fs.subVectors(t.center, this.center).setLength(t.radius), this.expandByPoint(Hi.copy(t.center).add(Fs)), this.expandByPoint(Hi.copy(t.center).sub(Fs))), this);
4380
+ return t.isEmpty() ? this : this.isEmpty() ? (this.copy(t), this) : (this.center.equals(t.center) === !0 ? this.radius = Math.max(this.radius, t.radius) : (Ns.subVectors(t.center, this.center).setLength(t.radius), this.expandByPoint(ki.copy(t.center).add(Ns)), this.expandByPoint(ki.copy(t.center).sub(Ns))), this);
4381
4381
  }
4382
4382
  /**
4383
4383
  * Returns `true` if this sphere is equal with the given one.
@@ -4417,7 +4417,7 @@ class rn {
4417
4417
  return this.radius = t.radius, this.center.fromArray(t.center), this;
4418
4418
  }
4419
4419
  }
4420
- const fn = /* @__PURE__ */ new R(), Os = /* @__PURE__ */ new R(), Sr = /* @__PURE__ */ new R(), Pn = /* @__PURE__ */ new R(), Bs = /* @__PURE__ */ new R(), Er = /* @__PURE__ */ new R(), zs = /* @__PURE__ */ new R();
4420
+ const fn = /* @__PURE__ */ new R(), Fs = /* @__PURE__ */ new R(), Sr = /* @__PURE__ */ new R(), Pn = /* @__PURE__ */ new R(), Os = /* @__PURE__ */ new R(), Er = /* @__PURE__ */ new R(), Bs = /* @__PURE__ */ new R();
4421
4421
  class fr {
4422
4422
  /**
4423
4423
  * Constructs a new ray.
@@ -4516,7 +4516,7 @@ class fr {
4516
4516
  * @return {number} The squared distance.
4517
4517
  */
4518
4518
  distanceSqToSegment(t, e, n, i) {
4519
- Os.copy(t).add(e).multiplyScalar(0.5), Sr.copy(e).sub(t).normalize(), Pn.copy(this.origin).sub(Os);
4519
+ Fs.copy(t).add(e).multiplyScalar(0.5), Sr.copy(e).sub(t).normalize(), Pn.copy(this.origin).sub(Fs);
4520
4520
  const s = t.distanceTo(e) * 0.5, a = -this.direction.dot(Sr), o = Pn.dot(this.direction), l = -Pn.dot(Sr), c = Pn.lengthSq(), h = Math.abs(1 - a * a);
4521
4521
  let u, d, f, g;
4522
4522
  if (h > 0)
@@ -4533,7 +4533,7 @@ class fr {
4533
4533
  d <= -g ? (u = Math.max(0, -(-a * s + o)), d = u > 0 ? -s : Math.min(Math.max(-s, -l), s), f = -u * u + d * (d + 2 * l) + c) : d <= g ? (u = 0, d = Math.min(Math.max(-s, -l), s), f = d * (d + 2 * l) + c) : (u = Math.max(0, -(a * s + o)), d = u > 0 ? s : Math.min(Math.max(-s, -l), s), f = -u * u + d * (d + 2 * l) + c);
4534
4534
  else
4535
4535
  d = a > 0 ? -s : s, u = Math.max(0, -(a * d + o)), f = -u * u + d * (d + 2 * l) + c;
4536
- return n && n.copy(this.origin).addScaledVector(this.direction, u), i && i.copy(Os).addScaledVector(Sr, d), f;
4536
+ return n && n.copy(this.origin).addScaledVector(this.direction, u), i && i.copy(Fs).addScaledVector(Sr, d), f;
4537
4537
  }
4538
4538
  /**
4539
4539
  * Intersects this ray with the given sphere, returning the intersection
@@ -4629,8 +4629,8 @@ class fr {
4629
4629
  * @return {?Vector3} The intersection point.
4630
4630
  */
4631
4631
  intersectTriangle(t, e, n, i, s) {
4632
- Bs.subVectors(e, t), Er.subVectors(n, t), zs.crossVectors(Bs, Er);
4633
- let a = this.direction.dot(zs), o;
4632
+ Os.subVectors(e, t), Er.subVectors(n, t), Bs.crossVectors(Os, Er);
4633
+ let a = this.direction.dot(Bs), o;
4634
4634
  if (a > 0) {
4635
4635
  if (i) return null;
4636
4636
  o = 1;
@@ -4642,10 +4642,10 @@ class fr {
4642
4642
  const l = o * this.direction.dot(Er.crossVectors(Pn, Er));
4643
4643
  if (l < 0)
4644
4644
  return null;
4645
- const c = o * this.direction.dot(Bs.cross(Pn));
4645
+ const c = o * this.direction.dot(Os.cross(Pn));
4646
4646
  if (c < 0 || l + c > a)
4647
4647
  return null;
4648
- const h = -o * Pn.dot(zs);
4648
+ const h = -o * Pn.dot(Bs);
4649
4649
  return h < 0 ? null : this.at(h / a, s);
4650
4650
  }
4651
4651
  /**
@@ -5651,7 +5651,7 @@ class Ro {
5651
5651
  }
5652
5652
  }
5653
5653
  let Qu = 0;
5654
- const fl = /* @__PURE__ */ new R(), hi = /* @__PURE__ */ new Sn(), pn = /* @__PURE__ */ new Nt(), Tr = /* @__PURE__ */ new R(), Gi = /* @__PURE__ */ new R(), td = /* @__PURE__ */ new R(), ed = /* @__PURE__ */ new Sn(), pl = /* @__PURE__ */ new R(1, 0, 0), ml = /* @__PURE__ */ new R(0, 1, 0), gl = /* @__PURE__ */ new R(0, 0, 1), _l = { type: "added" }, nd = { type: "removed" }, ui = { type: "childadded", child: null }, Vs = { type: "childremoved", child: null };
5654
+ const fl = /* @__PURE__ */ new R(), hi = /* @__PURE__ */ new Sn(), pn = /* @__PURE__ */ new Nt(), Tr = /* @__PURE__ */ new R(), Hi = /* @__PURE__ */ new R(), td = /* @__PURE__ */ new R(), ed = /* @__PURE__ */ new Sn(), pl = /* @__PURE__ */ new R(1, 0, 0), ml = /* @__PURE__ */ new R(0, 1, 0), gl = /* @__PURE__ */ new R(0, 0, 1), _l = { type: "added" }, nd = { type: "removed" }, ui = { type: "childadded", child: null }, zs = { type: "childremoved", child: null };
5655
5655
  class ie extends ni {
5656
5656
  /**
5657
5657
  * Constructs a new 3D object.
@@ -5949,7 +5949,7 @@ class ie extends ni {
5949
5949
  lookAt(t, e, n) {
5950
5950
  t.isVector3 ? Tr.copy(t) : Tr.set(t, e, n);
5951
5951
  const i = this.parent;
5952
- this.updateWorldMatrix(!0, !1), Gi.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? pn.lookAt(Gi, Tr, this.up) : pn.lookAt(Tr, Gi, this.up), this.quaternion.setFromRotationMatrix(pn), i && (pn.extractRotation(i.matrixWorld), hi.setFromRotationMatrix(pn), this.quaternion.premultiply(hi.invert()));
5952
+ this.updateWorldMatrix(!0, !1), Hi.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? pn.lookAt(Hi, Tr, this.up) : pn.lookAt(Tr, Hi, this.up), this.quaternion.setFromRotationMatrix(pn), i && (pn.extractRotation(i.matrixWorld), hi.setFromRotationMatrix(pn), this.quaternion.premultiply(hi.invert()));
5953
5953
  }
5954
5954
  /**
5955
5955
  * Adds the given 3D object as a child to this 3D object. An arbitrary number of
@@ -5985,7 +5985,7 @@ class ie extends ni {
5985
5985
  return this;
5986
5986
  }
5987
5987
  const e = this.children.indexOf(t);
5988
- return e !== -1 && (t.parent = null, this.children.splice(e, 1), t.dispatchEvent(nd), Vs.child = t, this.dispatchEvent(Vs), Vs.child = null), this;
5988
+ return e !== -1 && (t.parent = null, this.children.splice(e, 1), t.dispatchEvent(nd), zs.child = t, this.dispatchEvent(zs), zs.child = null), this;
5989
5989
  }
5990
5990
  /**
5991
5991
  * Removes this 3D object from its current parent.
@@ -6088,7 +6088,7 @@ class ie extends ni {
6088
6088
  * @return {Quaternion} The 3D object's rotation in world space.
6089
6089
  */
6090
6090
  getWorldQuaternion(t) {
6091
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Gi, t, td), t;
6091
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Hi, t, td), t;
6092
6092
  }
6093
6093
  /**
6094
6094
  * Returns a vector representing the scale of the 3D object in world space.
@@ -6097,7 +6097,7 @@ class ie extends ni {
6097
6097
  * @return {Vector3} The 3D object's scale in world space.
6098
6098
  */
6099
6099
  getWorldScale(t) {
6100
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Gi, ed, t), t;
6100
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Hi, ed, t), t;
6101
6101
  }
6102
6102
  /**
6103
6103
  * Returns a vector representing the ("look") direction of the 3D object in world space.
@@ -6309,7 +6309,7 @@ class ie extends ni {
6309
6309
  ie.DEFAULT_UP = /* @__PURE__ */ new R(0, 1, 0);
6310
6310
  ie.DEFAULT_MATRIX_AUTO_UPDATE = !0;
6311
6311
  ie.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
6312
- const Ze = /* @__PURE__ */ new R(), mn = /* @__PURE__ */ new R(), ks = /* @__PURE__ */ new R(), gn = /* @__PURE__ */ new R(), di = /* @__PURE__ */ new R(), fi = /* @__PURE__ */ new R(), vl = /* @__PURE__ */ new R(), Hs = /* @__PURE__ */ new R(), Gs = /* @__PURE__ */ new R(), Ws = /* @__PURE__ */ new R(), Xs = /* @__PURE__ */ new Vt(), qs = /* @__PURE__ */ new Vt(), Ys = /* @__PURE__ */ new Vt();
6312
+ const Ze = /* @__PURE__ */ new R(), mn = /* @__PURE__ */ new R(), Vs = /* @__PURE__ */ new R(), gn = /* @__PURE__ */ new R(), di = /* @__PURE__ */ new R(), fi = /* @__PURE__ */ new R(), vl = /* @__PURE__ */ new R(), ks = /* @__PURE__ */ new R(), Hs = /* @__PURE__ */ new R(), Gs = /* @__PURE__ */ new R(), Ws = /* @__PURE__ */ new Vt(), Xs = /* @__PURE__ */ new Vt(), qs = /* @__PURE__ */ new Vt();
6313
6313
  class Xe {
6314
6314
  /**
6315
6315
  * Constructs a new triangle.
@@ -6347,8 +6347,8 @@ class Xe {
6347
6347
  * @return {?Vector3} The barycentric coordinates for the given point
6348
6348
  */
6349
6349
  static getBarycoord(t, e, n, i, s) {
6350
- Ze.subVectors(i, e), mn.subVectors(n, e), ks.subVectors(t, e);
6351
- const a = Ze.dot(Ze), o = Ze.dot(mn), l = Ze.dot(ks), c = mn.dot(mn), h = mn.dot(ks), u = a * c - o * o;
6350
+ Ze.subVectors(i, e), mn.subVectors(n, e), Vs.subVectors(t, e);
6351
+ const a = Ze.dot(Ze), o = Ze.dot(mn), l = Ze.dot(Vs), c = mn.dot(mn), h = mn.dot(Vs), u = a * c - o * o;
6352
6352
  if (u === 0)
6353
6353
  return s.set(0, 0, 0), null;
6354
6354
  const d = 1 / u, f = (c * l - o * h) * d, g = (a * h - o * l) * d;
@@ -6397,7 +6397,7 @@ class Xe {
6397
6397
  * @return {Vector3} The interpolated attribute value.
6398
6398
  */
6399
6399
  static getInterpolatedAttribute(t, e, n, i, s, a) {
6400
- return Xs.setScalar(0), qs.setScalar(0), Ys.setScalar(0), Xs.fromBufferAttribute(t, e), qs.fromBufferAttribute(t, n), Ys.fromBufferAttribute(t, i), a.setScalar(0), a.addScaledVector(Xs, s.x), a.addScaledVector(qs, s.y), a.addScaledVector(Ys, s.z), a;
6400
+ return Ws.setScalar(0), Xs.setScalar(0), qs.setScalar(0), Ws.fromBufferAttribute(t, e), Xs.fromBufferAttribute(t, n), qs.fromBufferAttribute(t, i), a.setScalar(0), a.addScaledVector(Ws, s.x), a.addScaledVector(Xs, s.y), a.addScaledVector(qs, s.z), a;
6401
6401
  }
6402
6402
  /**
6403
6403
  * Returns `true` if the triangle is oriented towards the given direction.
@@ -6562,19 +6562,19 @@ class Xe {
6562
6562
  closestPointToPoint(t, e) {
6563
6563
  const n = this.a, i = this.b, s = this.c;
6564
6564
  let a, o;
6565
- di.subVectors(i, n), fi.subVectors(s, n), Hs.subVectors(t, n);
6566
- const l = di.dot(Hs), c = fi.dot(Hs);
6565
+ di.subVectors(i, n), fi.subVectors(s, n), ks.subVectors(t, n);
6566
+ const l = di.dot(ks), c = fi.dot(ks);
6567
6567
  if (l <= 0 && c <= 0)
6568
6568
  return e.copy(n);
6569
- Gs.subVectors(t, i);
6570
- const h = di.dot(Gs), u = fi.dot(Gs);
6569
+ Hs.subVectors(t, i);
6570
+ const h = di.dot(Hs), u = fi.dot(Hs);
6571
6571
  if (h >= 0 && u <= h)
6572
6572
  return e.copy(i);
6573
6573
  const d = l * u - h * c;
6574
6574
  if (d <= 0 && l >= 0 && h <= 0)
6575
6575
  return a = l / (l - h), e.copy(n).addScaledVector(di, a);
6576
- Ws.subVectors(t, s);
6577
- const f = di.dot(Ws), g = fi.dot(Ws);
6576
+ Gs.subVectors(t, s);
6577
+ const f = di.dot(Gs), g = fi.dot(Gs);
6578
6578
  if (g >= 0 && f <= g)
6579
6579
  return e.copy(s);
6580
6580
  const _ = f * c - l * g;
@@ -6746,7 +6746,7 @@ const Qc = {
6746
6746
  yellow: 16776960,
6747
6747
  yellowgreen: 10145074
6748
6748
  }, Dn = { h: 0, s: 0, l: 0 }, wr = { h: 0, s: 0, l: 0 };
6749
- function js(r, t, e) {
6749
+ function Ys(r, t, e) {
6750
6750
  return e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? r + (t - r) * 6 * e : e < 1 / 2 ? t : e < 2 / 3 ? r + (t - r) * 6 * (2 / 3 - e) : r;
6751
6751
  }
6752
6752
  class bt {
@@ -6826,7 +6826,7 @@ class bt {
6826
6826
  this.r = this.g = this.b = n;
6827
6827
  else {
6828
6828
  const s = n <= 0.5 ? n * (1 + e) : n + e - n * e, a = 2 * n - s;
6829
- this.r = js(a, s, t + 1 / 3), this.g = js(a, s, t), this.b = js(a, s, t - 1 / 3);
6829
+ this.r = Ys(a, s, t + 1 / 3), this.g = Ys(a, s, t), this.b = Ys(a, s, t - 1 / 3);
6830
6830
  }
6831
6831
  return Ht.colorSpaceToWorking(this, i), this;
6832
6832
  }
@@ -7142,7 +7142,7 @@ class bt {
7142
7142
  */
7143
7143
  lerpHSL(t, e) {
7144
7144
  this.getHSL(Dn), t.getHSL(wr);
7145
- const n = ir(Dn.h, wr.h, e), i = ir(Dn.s, wr.s, e), s = ir(Dn.l, wr.l, e);
7145
+ const n = nr(Dn.h, wr.h, e), i = nr(Dn.s, wr.s, e), s = nr(Dn.l, wr.l, e);
7146
7146
  return this.setHSL(n, i, s), this;
7147
7147
  }
7148
7148
  /**
@@ -7225,7 +7225,7 @@ class Ve extends ni {
7225
7225
  * Constructs a new material.
7226
7226
  */
7227
7227
  constructor() {
7228
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: id++ }), this.uuid = en(), this.name = "", this.type = "Material", this.blending = Ti, this.side = bn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Ma, this.blendDst = Sa, this.blendEquation = Kn, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new bt(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Ci, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = rl, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = ri, this.stencilZFail = ri, this.stencilZPass = ri, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7228
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: id++ }), this.uuid = en(), this.name = "", this.type = "Material", this.blending = Ti, this.side = bn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = ya, this.blendDst = Ma, this.blendEquation = Kn, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new bt(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Ri, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = rl, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = ri, this.stencilZFail = ri, this.stencilZPass = ri, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7229
7229
  }
7230
7230
  /**
7231
7231
  * Sets the alpha value to be used when running an alpha test. The material
@@ -7324,7 +7324,7 @@ class Ve extends ni {
7324
7324
  generator: "Material.toJSON"
7325
7325
  }
7326
7326
  };
7327
- n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(t).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(t).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(t).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(t).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(t).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(t).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(t).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(t).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(t).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(t).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(t).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(t).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(t).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(t).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(t).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(t).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(t).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(t).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(t).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(t).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(t).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(t).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(t).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(t).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== Ti && (n.blending = this.blending), this.side !== bn && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== Ma && (n.blendSrc = this.blendSrc), this.blendDst !== Sa && (n.blendDst = this.blendDst), this.blendEquation !== Kn && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== Ci && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== rl && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== ri && (n.stencilFail = this.stencilFail), this.stencilZFail !== ri && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== ri && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
7327
+ n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(t).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(t).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(t).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(t).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(t).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(t).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(t).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(t).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(t).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(t).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(t).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(t).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(t).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(t).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(t).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(t).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(t).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(t).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(t).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(t).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(t).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(t).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(t).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(t).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== Ti && (n.blending = this.blending), this.side !== bn && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== ya && (n.blendSrc = this.blendSrc), this.blendDst !== Ma && (n.blendDst = this.blendDst), this.blendEquation !== Kn && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== Ri && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== rl && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== ri && (n.stencilFail = this.stencilFail), this.stencilZFail !== ri && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== ri && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
7328
7328
  function i(s) {
7329
7329
  const a = [];
7330
7330
  for (const o in s) {
@@ -7386,7 +7386,7 @@ class Ve extends ni {
7386
7386
  t === !0 && this.version++;
7387
7387
  }
7388
7388
  }
7389
- class Fi extends Ve {
7389
+ class Ni extends Ve {
7390
7390
  /**
7391
7391
  * Constructs a new mesh basic material.
7392
7392
  *
@@ -7397,7 +7397,7 @@ class Fi extends Ve {
7397
7397
  * by {@link Color#set}.
7398
7398
  */
7399
7399
  constructor(t) {
7400
- super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new bt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ye(), this.combine = vs, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(t);
7400
+ super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new bt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ye(), this.combine = _s, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(t);
7401
7401
  }
7402
7402
  copy(t) {
7403
7403
  return super.copy(t), this.color.copy(t.color), this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.combine = t.combine, this.reflectivity = t.reflectivity, this.refractionRatio = t.refractionRatio, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.fog = t.fog, this;
@@ -7416,7 +7416,7 @@ class pe {
7416
7416
  constructor(t, e, n = !1) {
7417
7417
  if (Array.isArray(t))
7418
7418
  throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
7419
- this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: rd++ }), this.name = "", this.array = t, this.itemSize = e, this.count = t !== void 0 ? t.length / e : 0, this.normalized = n, this.usage = ao, this.updateRanges = [], this.gpuType = tn, this.version = 0;
7419
+ this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: rd++ }), this.name = "", this.array = t, this.itemSize = e, this.count = t !== void 0 ? t.length / e : 0, this.normalized = n, this.usage = so, this.updateRanges = [], this.gpuType = tn, this.version = 0;
7420
7420
  }
7421
7421
  /**
7422
7422
  * A callback function that is executed after the renderer has transferred the attribute
@@ -7724,7 +7724,7 @@ class pe {
7724
7724
  array: Array.from(this.array),
7725
7725
  normalized: this.normalized
7726
7726
  };
7727
- return this.name !== "" && (t.name = this.name), this.usage !== ao && (t.usage = this.usage), t;
7727
+ return this.name !== "" && (t.name = this.name), this.usage !== so && (t.usage = this.usage), t;
7728
7728
  }
7729
7729
  }
7730
7730
  class th extends pe {
@@ -7763,7 +7763,7 @@ class eh extends pe {
7763
7763
  super(new Uint32Array(t), e, n);
7764
7764
  }
7765
7765
  }
7766
- class Gt extends pe {
7766
+ class jt extends pe {
7767
7767
  /**
7768
7768
  * Constructs a new buffer attribute.
7769
7769
  *
@@ -7776,8 +7776,8 @@ class Gt extends pe {
7776
7776
  }
7777
7777
  }
7778
7778
  let sd = 0;
7779
- const Ge = /* @__PURE__ */ new Nt(), $s = /* @__PURE__ */ new ie(), pi = /* @__PURE__ */ new R(), Oe = /* @__PURE__ */ new nn(), Wi = /* @__PURE__ */ new nn(), xe = /* @__PURE__ */ new R();
7780
- class he extends ni {
7779
+ const Ge = /* @__PURE__ */ new Nt(), js = /* @__PURE__ */ new ie(), pi = /* @__PURE__ */ new R(), Oe = /* @__PURE__ */ new nn(), Gi = /* @__PURE__ */ new nn(), xe = /* @__PURE__ */ new R();
7780
+ class ue extends ni {
7781
7781
  /**
7782
7782
  * Constructs a new geometry.
7783
7783
  */
@@ -7981,7 +7981,7 @@ class he extends ni {
7981
7981
  * @return {BufferGeometry} A reference to this instance.
7982
7982
  */
7983
7983
  lookAt(t) {
7984
- return $s.lookAt(t), $s.updateMatrix(), this.applyMatrix4($s.matrix), this;
7984
+ return js.lookAt(t), js.updateMatrix(), this.applyMatrix4(js.matrix), this;
7985
7985
  }
7986
7986
  /**
7987
7987
  * Center the geometry based on its bounding box.
@@ -8010,7 +8010,7 @@ class he extends ni {
8010
8010
  const a = t[i];
8011
8011
  n.push(a.x, a.y, a.z || 0);
8012
8012
  }
8013
- this.setAttribute("position", new Gt(n, 3));
8013
+ this.setAttribute("position", new jt(n, 3));
8014
8014
  } else {
8015
8015
  const n = Math.min(t.length, e.count);
8016
8016
  for (let i = 0; i < n; i++) {
@@ -8063,7 +8063,7 @@ class he extends ni {
8063
8063
  if (Oe.setFromBufferAttribute(t), e)
8064
8064
  for (let s = 0, a = e.length; s < a; s++) {
8065
8065
  const o = e[s];
8066
- Wi.setFromBufferAttribute(o), this.morphTargetsRelative ? (xe.addVectors(Oe.min, Wi.min), Oe.expandByPoint(xe), xe.addVectors(Oe.max, Wi.max), Oe.expandByPoint(xe)) : (Oe.expandByPoint(Wi.min), Oe.expandByPoint(Wi.max));
8066
+ Gi.setFromBufferAttribute(o), this.morphTargetsRelative ? (xe.addVectors(Oe.min, Gi.min), Oe.expandByPoint(xe), xe.addVectors(Oe.max, Gi.max), Oe.expandByPoint(xe)) : (Oe.expandByPoint(Gi.min), Oe.expandByPoint(Gi.max));
8067
8067
  }
8068
8068
  Oe.getCenter(n);
8069
8069
  let i = 0;
@@ -8185,7 +8185,7 @@ class he extends ni {
8185
8185
  }
8186
8186
  if (this.index === null)
8187
8187
  return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."), this;
8188
- const e = new he(), n = this.index.array, i = this.attributes;
8188
+ const e = new ue(), n = this.index.array, i = this.attributes;
8189
8189
  for (const o in i) {
8190
8190
  const l = i[o], c = t(l, n);
8191
8191
  e.setAttribute(o, c);
@@ -8306,7 +8306,7 @@ class he extends ni {
8306
8306
  this.dispatchEvent({ type: "dispose" });
8307
8307
  }
8308
8308
  }
8309
- const xl = /* @__PURE__ */ new Nt(), Gn = /* @__PURE__ */ new fr(), Rr = /* @__PURE__ */ new rn(), yl = /* @__PURE__ */ new R(), Cr = /* @__PURE__ */ new R(), Pr = /* @__PURE__ */ new R(), Lr = /* @__PURE__ */ new R(), Js = /* @__PURE__ */ new R(), Dr = /* @__PURE__ */ new R(), Ml = /* @__PURE__ */ new R(), Ir = /* @__PURE__ */ new R();
8309
+ const xl = /* @__PURE__ */ new Nt(), Gn = /* @__PURE__ */ new fr(), Rr = /* @__PURE__ */ new rn(), yl = /* @__PURE__ */ new R(), Cr = /* @__PURE__ */ new R(), Pr = /* @__PURE__ */ new R(), Lr = /* @__PURE__ */ new R(), $s = /* @__PURE__ */ new R(), Dr = /* @__PURE__ */ new R(), Ml = /* @__PURE__ */ new R(), Ir = /* @__PURE__ */ new R();
8310
8310
  class fe extends ie {
8311
8311
  /**
8312
8312
  * Constructs a new mesh.
@@ -8314,7 +8314,7 @@ class fe extends ie {
8314
8314
  * @param {BufferGeometry} [geometry] - The mesh geometry.
8315
8315
  * @param {Material|Array<Material>} [material] - The mesh material.
8316
8316
  */
8317
- constructor(t = new he(), e = new Fi()) {
8317
+ constructor(t = new ue(), e = new Ni()) {
8318
8318
  super(), this.isMesh = !0, this.type = "Mesh", this.geometry = t, this.material = e, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.count = 1, this.updateMorphTargets();
8319
8319
  }
8320
8320
  copy(t, e) {
@@ -8353,7 +8353,7 @@ class fe extends ie {
8353
8353
  Dr.set(0, 0, 0);
8354
8354
  for (let l = 0, c = s.length; l < c; l++) {
8355
8355
  const h = o[l], u = s[l];
8356
- h !== 0 && (Js.fromBufferAttribute(u, t), a ? Dr.addScaledVector(Js, h) : Dr.addScaledVector(Js.sub(e), h));
8356
+ h !== 0 && ($s.fromBufferAttribute(u, t), a ? Dr.addScaledVector($s, h) : Dr.addScaledVector($s.sub(e), h));
8357
8357
  }
8358
8358
  e.add(Dr);
8359
8359
  }
@@ -8434,7 +8434,7 @@ function Ur(r, t, e, n, i, s, a, o, l, c) {
8434
8434
  }
8435
8435
  return h;
8436
8436
  }
8437
- class pr extends he {
8437
+ class pr extends ue {
8438
8438
  /**
8439
8439
  * Constructs a new box geometry.
8440
8440
  *
@@ -8458,7 +8458,7 @@ class pr extends he {
8458
8458
  i = Math.floor(i), s = Math.floor(s), a = Math.floor(a);
8459
8459
  const l = [], c = [], h = [], u = [];
8460
8460
  let d = 0, f = 0;
8461
- g("z", "y", "x", -1, -1, n, e, t, a, s, 0), g("z", "y", "x", 1, -1, n, e, -t, a, s, 1), g("x", "z", "y", 1, 1, t, n, e, i, a, 2), g("x", "z", "y", 1, -1, t, n, -e, i, a, 3), g("x", "y", "z", 1, -1, t, e, n, i, s, 4), g("x", "y", "z", -1, -1, t, e, -n, i, s, 5), this.setIndex(l), this.setAttribute("position", new Gt(c, 3)), this.setAttribute("normal", new Gt(h, 3)), this.setAttribute("uv", new Gt(u, 2));
8461
+ g("z", "y", "x", -1, -1, n, e, t, a, s, 0), g("z", "y", "x", 1, -1, n, e, -t, a, s, 1), g("x", "z", "y", 1, 1, t, n, e, i, a, 2), g("x", "z", "y", 1, -1, t, n, -e, i, a, 3), g("x", "y", "z", 1, -1, t, e, n, i, s, 4), g("x", "y", "z", -1, -1, t, e, -n, i, s, 5), this.setIndex(l), this.setAttribute("position", new jt(c, 3)), this.setAttribute("normal", new jt(h, 3)), this.setAttribute("uv", new jt(u, 2));
8462
8462
  function g(_, m, p, b, E, M, D, T, w, P, S) {
8463
8463
  const x = M / w, C = D / P, B = M / 2, F = D / 2, H = T / 2, X = w + 1, z = P + 1;
8464
8464
  let Z = 0, G = 0;
@@ -8492,7 +8492,7 @@ class pr extends he {
8492
8492
  return new pr(t.width, t.height, t.depth, t.widthSegments, t.heightSegments, t.depthSegments);
8493
8493
  }
8494
8494
  }
8495
- function Ni(r) {
8495
+ function Ui(r) {
8496
8496
  const t = {};
8497
8497
  for (const e in r) {
8498
8498
  t[e] = {};
@@ -8506,7 +8506,7 @@ function Ni(r) {
8506
8506
  function Pe(r) {
8507
8507
  const t = {};
8508
8508
  for (let e = 0; e < r.length; e++) {
8509
- const n = Ni(r[e]);
8509
+ const n = Ui(r[e]);
8510
8510
  for (const i in n)
8511
8511
  t[i] = n[i];
8512
8512
  }
@@ -8522,7 +8522,7 @@ function nh(r) {
8522
8522
  const t = r.getRenderTarget();
8523
8523
  return t === null ? r.outputColorSpace : t.isXRRenderTarget === !0 ? t.texture.colorSpace : Ht.workingColorSpace;
8524
8524
  }
8525
- const Co = { clone: Ni, merge: Pe };
8525
+ const Co = { clone: Ui, merge: Pe };
8526
8526
  var ld = `void main() {
8527
8527
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
8528
8528
  }`, cd = `void main() {
@@ -8551,7 +8551,7 @@ class Tn extends Ve {
8551
8551
  }, this.index0AttributeName = void 0, this.uniformsNeedUpdate = !1, this.glslVersion = null, t !== void 0 && this.setValues(t);
8552
8552
  }
8553
8553
  copy(t) {
8554
- return super.copy(t), this.fragmentShader = t.fragmentShader, this.vertexShader = t.vertexShader, this.uniforms = Ni(t.uniforms), this.uniformsGroups = od(t.uniformsGroups), this.defines = Object.assign({}, t.defines), this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.fog = t.fog, this.lights = t.lights, this.clipping = t.clipping, this.extensions = Object.assign({}, t.extensions), this.glslVersion = t.glslVersion, this;
8554
+ return super.copy(t), this.fragmentShader = t.fragmentShader, this.vertexShader = t.vertexShader, this.uniforms = Ui(t.uniforms), this.uniformsGroups = od(t.uniformsGroups), this.defines = Object.assign({}, t.defines), this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.fog = t.fog, this.lights = t.lights, this.clipping = t.clipping, this.extensions = Object.assign({}, t.extensions), this.glslVersion = t.glslVersion, this;
8555
8555
  }
8556
8556
  toJSON(t) {
8557
8557
  const e = super.toJSON(t);
@@ -8648,7 +8648,7 @@ class Ie extends ih {
8648
8648
  */
8649
8649
  setFocalLength(t) {
8650
8650
  const e = 0.5 * this.getFilmHeight() / t;
8651
- this.fov = Ui * 2 * Math.atan(e), this.updateProjectionMatrix();
8651
+ this.fov = Ii * 2 * Math.atan(e), this.updateProjectionMatrix();
8652
8652
  }
8653
8653
  /**
8654
8654
  * Returns the focal length from the current {@link PerspectiveCamera#fov} and
@@ -8657,7 +8657,7 @@ class Ie extends ih {
8657
8657
  * @return {number} The computed focal length.
8658
8658
  */
8659
8659
  getFocalLength() {
8660
- const t = Math.tan(nr * 0.5 * this.fov);
8660
+ const t = Math.tan(er * 0.5 * this.fov);
8661
8661
  return 0.5 * this.getFilmHeight() / t;
8662
8662
  }
8663
8663
  /**
@@ -8666,8 +8666,8 @@ class Ie extends ih {
8666
8666
  * @return {number} The effective FOV.
8667
8667
  */
8668
8668
  getEffectiveFOV() {
8669
- return Ui * 2 * Math.atan(
8670
- Math.tan(nr * 0.5 * this.fov) / this.zoom
8669
+ return Ii * 2 * Math.atan(
8670
+ Math.tan(er * 0.5 * this.fov) / this.zoom
8671
8671
  );
8672
8672
  }
8673
8673
  /**
@@ -8775,7 +8775,7 @@ class Ie extends ih {
8775
8775
  */
8776
8776
  updateProjectionMatrix() {
8777
8777
  const t = this.near;
8778
- let e = t * Math.tan(nr * 0.5 * this.fov) / this.zoom, n = 2 * e, i = this.aspect * n, s = -0.5 * i;
8778
+ let e = t * Math.tan(er * 0.5 * this.fov) / this.zoom, n = 2 * e, i = this.aspect * n, s = -0.5 * i;
8779
8779
  const a = this.view;
8780
8780
  if (this.view !== null && this.view.enabled) {
8781
8781
  const l = a.fullWidth, c = a.fullHeight;
@@ -8860,7 +8860,7 @@ class rh extends be {
8860
8860
  * @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
8861
8861
  * @param {string} [colorSpace=NoColorSpace] - The color space value.
8862
8862
  */
8863
- constructor(t = [], e = Pi, n, i, s, a, o, l, c, h) {
8863
+ constructor(t = [], e = Ci, n, i, s, a, o, l, c, h) {
8864
8864
  super(t, e, n, i, s, a, o, l, c, h), this.isCubeTexture = !0, this.flipY = !1;
8865
8865
  }
8866
8866
  /**
@@ -8945,7 +8945,7 @@ class ud extends ei {
8945
8945
  )
8946
8946
  }, i = new pr(5, 5, 5), s = new Tn({
8947
8947
  name: "CubemapFromEquirect",
8948
- uniforms: Ni(n.uniforms),
8948
+ uniforms: Ui(n.uniforms),
8949
8949
  vertexShader: n.vertexShader,
8950
8950
  fragmentShader: n.fragmentShader,
8951
8951
  side: Le,
@@ -8970,13 +8970,13 @@ class ud extends ei {
8970
8970
  t.setRenderTarget(s);
8971
8971
  }
8972
8972
  }
8973
- class Qi extends ie {
8973
+ class Zi extends ie {
8974
8974
  constructor() {
8975
8975
  super(), this.isGroup = !0, this.type = "Group";
8976
8976
  }
8977
8977
  }
8978
8978
  const dd = { type: "move" };
8979
- class Ks {
8979
+ class Js {
8980
8980
  /**
8981
8981
  * Constructs a new XR controller.
8982
8982
  */
@@ -8989,7 +8989,7 @@ class Ks {
8989
8989
  * @return {Group} A group representing the hand space of the XR controller.
8990
8990
  */
8991
8991
  getHandSpace() {
8992
- return this._hand === null && (this._hand = new Qi(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand;
8992
+ return this._hand === null && (this._hand = new Zi(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand;
8993
8993
  }
8994
8994
  /**
8995
8995
  * Returns a group representing the target ray space of the XR controller.
@@ -8997,7 +8997,7 @@ class Ks {
8997
8997
  * @return {Group} A group representing the target ray space of the XR controller.
8998
8998
  */
8999
8999
  getTargetRaySpace() {
9000
- return this._targetRay === null && (this._targetRay = new Qi(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new R(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new R()), this._targetRay;
9000
+ return this._targetRay === null && (this._targetRay = new Zi(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new R(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new R()), this._targetRay;
9001
9001
  }
9002
9002
  /**
9003
9003
  * Returns a group representing the grip space of the XR controller.
@@ -9005,7 +9005,7 @@ class Ks {
9005
9005
  * @return {Group} A group representing the grip space of the XR controller.
9006
9006
  */
9007
9007
  getGripSpace() {
9008
- return this._grip === null && (this._grip = new Qi(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new R(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new R()), this._grip;
9008
+ return this._grip === null && (this._grip = new Zi(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new R(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new R()), this._grip;
9009
9009
  }
9010
9010
  /**
9011
9011
  * Dispatches the given event to the groups representing
@@ -9087,7 +9087,7 @@ class Ks {
9087
9087
  */
9088
9088
  _getHandJoint(t, e) {
9089
9089
  if (t.joints[e.jointName] === void 0) {
9090
- const n = new Qi();
9090
+ const n = new Zi();
9091
9091
  n.matrixAutoUpdate = !1, n.visible = !1, t.joints[e.jointName] = n, t.add(n);
9092
9092
  }
9093
9093
  return t.joints[e.jointName];
@@ -9116,7 +9116,7 @@ class sh {
9116
9116
  * @param {number} stride - The number of typed-array elements per vertex.
9117
9117
  */
9118
9118
  constructor(t, e) {
9119
- this.isInterleavedBuffer = !0, this.array = t, this.stride = e, this.count = t !== void 0 ? t.length / e : 0, this.usage = ao, this.updateRanges = [], this.version = 0, this.uuid = en();
9119
+ this.isInterleavedBuffer = !0, this.array = t, this.stride = e, this.count = t !== void 0 ? t.length / e : 0, this.usage = so, this.updateRanges = [], this.version = 0, this.uuid = en();
9120
9120
  }
9121
9121
  /**
9122
9122
  * A callback function that is executed after the renderer has transferred the attribute array
@@ -9500,7 +9500,7 @@ class cn {
9500
9500
  };
9501
9501
  }
9502
9502
  }
9503
- class Ms extends Ve {
9503
+ class ys extends Ve {
9504
9504
  /**
9505
9505
  * Constructs a new sprite material.
9506
9506
  *
@@ -9518,16 +9518,16 @@ class Ms extends Ve {
9518
9518
  }
9519
9519
  }
9520
9520
  let _i;
9521
- const Xi = /* @__PURE__ */ new R(), vi = /* @__PURE__ */ new R(), xi = /* @__PURE__ */ new R(), yi = /* @__PURE__ */ new ht(), qi = /* @__PURE__ */ new ht(), ah = /* @__PURE__ */ new Nt(), Nr = /* @__PURE__ */ new R(), Yi = /* @__PURE__ */ new R(), Fr = /* @__PURE__ */ new R(), bl = /* @__PURE__ */ new ht(), Zs = /* @__PURE__ */ new ht(), Tl = /* @__PURE__ */ new ht();
9521
+ const Wi = /* @__PURE__ */ new R(), vi = /* @__PURE__ */ new R(), xi = /* @__PURE__ */ new R(), yi = /* @__PURE__ */ new ht(), Xi = /* @__PURE__ */ new ht(), ah = /* @__PURE__ */ new Nt(), Nr = /* @__PURE__ */ new R(), qi = /* @__PURE__ */ new R(), Fr = /* @__PURE__ */ new R(), bl = /* @__PURE__ */ new ht(), Ks = /* @__PURE__ */ new ht(), Tl = /* @__PURE__ */ new ht();
9522
9522
  class Po extends ie {
9523
9523
  /**
9524
9524
  * Constructs a new sprite.
9525
9525
  *
9526
9526
  * @param {SpriteMaterial} [material] - The sprite material.
9527
9527
  */
9528
- constructor(t = new Ms()) {
9528
+ constructor(t = new ys()) {
9529
9529
  if (super(), this.isSprite = !0, this.type = "Sprite", _i === void 0) {
9530
- _i = new he();
9530
+ _i = new ue();
9531
9531
  const e = new Float32Array([
9532
9532
  -0.5,
9533
9533
  -0.5,
@@ -9566,15 +9566,15 @@ class Po extends ie {
9566
9566
  let i, s;
9567
9567
  n !== 0 && (s = Math.cos(n), i = Math.sin(n));
9568
9568
  const a = this.center;
9569
- Or(Nr.set(-0.5, -0.5, 0), xi, a, vi, i, s), Or(Yi.set(0.5, -0.5, 0), xi, a, vi, i, s), Or(Fr.set(0.5, 0.5, 0), xi, a, vi, i, s), bl.set(0, 0), Zs.set(1, 0), Tl.set(1, 1);
9570
- let o = t.ray.intersectTriangle(Nr, Yi, Fr, !1, Xi);
9571
- if (o === null && (Or(Yi.set(-0.5, 0.5, 0), xi, a, vi, i, s), Zs.set(0, 1), o = t.ray.intersectTriangle(Nr, Fr, Yi, !1, Xi), o === null))
9569
+ Or(Nr.set(-0.5, -0.5, 0), xi, a, vi, i, s), Or(qi.set(0.5, -0.5, 0), xi, a, vi, i, s), Or(Fr.set(0.5, 0.5, 0), xi, a, vi, i, s), bl.set(0, 0), Ks.set(1, 0), Tl.set(1, 1);
9570
+ let o = t.ray.intersectTriangle(Nr, qi, Fr, !1, Wi);
9571
+ if (o === null && (Or(qi.set(-0.5, 0.5, 0), xi, a, vi, i, s), Ks.set(0, 1), o = t.ray.intersectTriangle(Nr, Fr, qi, !1, Wi), o === null))
9572
9572
  return;
9573
- const l = t.ray.origin.distanceTo(Xi);
9573
+ const l = t.ray.origin.distanceTo(Wi);
9574
9574
  l < t.near || l > t.far || e.push({
9575
9575
  distance: l,
9576
- point: Xi.clone(),
9577
- uv: Xe.getInterpolation(Xi, Nr, Yi, Fr, bl, Zs, Tl, new ht()),
9576
+ point: Wi.clone(),
9577
+ uv: Xe.getInterpolation(Wi, Nr, qi, Fr, bl, Ks, Tl, new ht()),
9578
9578
  face: null,
9579
9579
  object: this
9580
9580
  });
@@ -9584,7 +9584,7 @@ class Po extends ie {
9584
9584
  }
9585
9585
  }
9586
9586
  function Or(r, t, e, n, i, s) {
9587
- yi.subVectors(r, e).addScalar(0.5).multiply(n), i !== void 0 ? (qi.x = s * yi.x - i * yi.y, qi.y = i * yi.x + s * yi.y) : qi.copy(yi), r.copy(t), r.x += qi.x, r.y += qi.y, r.applyMatrix4(ah);
9587
+ yi.subVectors(r, e).addScalar(0.5).multiply(n), i !== void 0 ? (Xi.x = s * yi.x - i * yi.y, Xi.y = i * yi.x + s * yi.y) : Xi.copy(yi), r.copy(t), r.x += Xi.x, r.y += Xi.y, r.applyMatrix4(ah);
9588
9588
  }
9589
9589
  const Br = /* @__PURE__ */ new R(), wl = /* @__PURE__ */ new R();
9590
9590
  class Bv extends ie {
@@ -9727,7 +9727,7 @@ class Bv extends ie {
9727
9727
  return e;
9728
9728
  }
9729
9729
  }
9730
- const Al = /* @__PURE__ */ new R(), Rl = /* @__PURE__ */ new Vt(), Cl = /* @__PURE__ */ new Vt(), pd = /* @__PURE__ */ new R(), Pl = /* @__PURE__ */ new Nt(), zr = /* @__PURE__ */ new R(), Qs = /* @__PURE__ */ new rn(), Ll = /* @__PURE__ */ new Nt(), ta = /* @__PURE__ */ new fr();
9730
+ const Al = /* @__PURE__ */ new R(), Rl = /* @__PURE__ */ new Vt(), Cl = /* @__PURE__ */ new Vt(), pd = /* @__PURE__ */ new R(), Pl = /* @__PURE__ */ new Nt(), zr = /* @__PURE__ */ new R(), Zs = /* @__PURE__ */ new rn(), Ll = /* @__PURE__ */ new Nt(), Qs = /* @__PURE__ */ new fr();
9731
9731
  class zv extends fe {
9732
9732
  /**
9733
9733
  * Constructs a new skinned mesh.
@@ -9769,7 +9769,7 @@ class zv extends fe {
9769
9769
  }
9770
9770
  raycast(t, e) {
9771
9771
  const n = this.material, i = this.matrixWorld;
9772
- n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), Qs.copy(this.boundingSphere), Qs.applyMatrix4(i), t.ray.intersectsSphere(Qs) !== !1 && (Ll.copy(i).invert(), ta.copy(t.ray).applyMatrix4(Ll), !(this.boundingBox !== null && ta.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(t, e, ta)));
9772
+ n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), Zs.copy(this.boundingSphere), Zs.applyMatrix4(i), t.ray.intersectsSphere(Zs) !== !1 && (Ll.copy(i).invert(), Qs.copy(t.ray).applyMatrix4(Ll), !(this.boundingBox !== null && Qs.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(t, e, Qs)));
9773
9773
  }
9774
9774
  getVertexPosition(t, e) {
9775
9775
  return super.getVertexPosition(t, e), this.applyBoneTransform(t, e), e;
@@ -10023,7 +10023,7 @@ class Il extends pe {
10023
10023
  return t.meshPerAttribute = this.meshPerAttribute, t.isInstancedBufferAttribute = !0, t;
10024
10024
  }
10025
10025
  }
10026
- const Mi = /* @__PURE__ */ new Nt(), Ul = /* @__PURE__ */ new Nt(), Vr = [], Nl = /* @__PURE__ */ new nn(), _d = /* @__PURE__ */ new Nt(), ji = /* @__PURE__ */ new fe(), $i = /* @__PURE__ */ new rn();
10026
+ const Mi = /* @__PURE__ */ new Nt(), Ul = /* @__PURE__ */ new Nt(), Vr = [], Nl = /* @__PURE__ */ new nn(), _d = /* @__PURE__ */ new Nt(), Yi = /* @__PURE__ */ new fe(), ji = /* @__PURE__ */ new rn();
10027
10027
  class Vv extends fe {
10028
10028
  /**
10029
10029
  * Constructs a new instanced mesh.
@@ -10057,7 +10057,7 @@ class Vv extends fe {
10057
10057
  const t = this.geometry, e = this.count;
10058
10058
  this.boundingSphere === null && (this.boundingSphere = new rn()), t.boundingSphere === null && t.computeBoundingSphere(), this.boundingSphere.makeEmpty();
10059
10059
  for (let n = 0; n < e; n++)
10060
- this.getMatrixAt(n, Mi), $i.copy(t.boundingSphere).applyMatrix4(Mi), this.boundingSphere.union($i);
10060
+ this.getMatrixAt(n, Mi), ji.copy(t.boundingSphere).applyMatrix4(Mi), this.boundingSphere.union(ji);
10061
10061
  }
10062
10062
  copy(t, e) {
10063
10063
  return super.copy(t, e), this.instanceMatrix.copy(t.instanceMatrix), t.morphTexture !== null && (this.morphTexture = t.morphTexture.clone()), t.instanceColor !== null && (this.instanceColor = t.instanceColor.clone()), this.count = t.count, t.boundingBox !== null && (this.boundingBox = t.boundingBox.clone()), t.boundingSphere !== null && (this.boundingSphere = t.boundingSphere.clone()), this;
@@ -10093,9 +10093,9 @@ class Vv extends fe {
10093
10093
  }
10094
10094
  raycast(t, e) {
10095
10095
  const n = this.matrixWorld, i = this.count;
10096
- if (ji.geometry = this.geometry, ji.material = this.material, ji.material !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), $i.copy(this.boundingSphere), $i.applyMatrix4(n), t.ray.intersectsSphere($i) !== !1))
10096
+ if (Yi.geometry = this.geometry, Yi.material = this.material, Yi.material !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), ji.copy(this.boundingSphere), ji.applyMatrix4(n), t.ray.intersectsSphere(ji) !== !1))
10097
10097
  for (let s = 0; s < i; s++) {
10098
- this.getMatrixAt(s, Mi), Ul.multiplyMatrices(n, Mi), ji.matrixWorld = Ul, ji.raycast(t, Vr);
10098
+ this.getMatrixAt(s, Mi), Ul.multiplyMatrices(n, Mi), Yi.matrixWorld = Ul, Yi.raycast(t, Vr);
10099
10099
  for (let a = 0, o = Vr.length; a < o; a++) {
10100
10100
  const l = Vr[a];
10101
10101
  l.instanceId = s, l.object = this, e.push(l);
@@ -10151,7 +10151,7 @@ class Vv extends fe {
10151
10151
  this.dispatchEvent({ type: "dispose" }), this.morphTexture !== null && (this.morphTexture.dispose(), this.morphTexture = null);
10152
10152
  }
10153
10153
  }
10154
- const ea = /* @__PURE__ */ new R(), vd = /* @__PURE__ */ new R(), xd = /* @__PURE__ */ new Ft();
10154
+ const ta = /* @__PURE__ */ new R(), vd = /* @__PURE__ */ new R(), xd = /* @__PURE__ */ new Ft();
10155
10155
  class $n {
10156
10156
  /**
10157
10157
  * Constructs a new plane.
@@ -10207,7 +10207,7 @@ class $n {
10207
10207
  * @return {Plane} A reference to this plane.
10208
10208
  */
10209
10209
  setFromCoplanarPoints(t, e, n) {
10210
- const i = ea.subVectors(n, e).cross(vd.subVectors(t, e)).normalize();
10210
+ const i = ta.subVectors(n, e).cross(vd.subVectors(t, e)).normalize();
10211
10211
  return this.setFromNormalAndCoplanarPoint(i, t), this;
10212
10212
  }
10213
10213
  /**
@@ -10274,7 +10274,7 @@ class $n {
10274
10274
  * @return {?Vector3} The intersection point.
10275
10275
  */
10276
10276
  intersectLine(t, e) {
10277
- const n = t.delta(ea), i = this.normal.dot(n);
10277
+ const n = t.delta(ta), i = this.normal.dot(n);
10278
10278
  if (i === 0)
10279
10279
  return this.distanceToPoint(t.start) === 0 ? e.copy(t.start) : null;
10280
10280
  const s = -(t.start.dot(this.normal) + this.constant) / i;
@@ -10331,7 +10331,7 @@ class $n {
10331
10331
  * @return {Plane} A reference to this plane.
10332
10332
  */
10333
10333
  applyMatrix4(t, e) {
10334
- const n = e || xd.getNormalMatrix(t), i = this.coplanarPoint(ea).applyMatrix4(t), s = this.normal.applyMatrix3(n).normalize();
10334
+ const n = e || xd.getNormalMatrix(t), i = this.coplanarPoint(ta).applyMatrix4(t), s = this.normal.applyMatrix3(n).normalize();
10335
10335
  return this.constant = -i.dot(s), this;
10336
10336
  }
10337
10337
  /**
@@ -10497,7 +10497,7 @@ class Do {
10497
10497
  return new this.constructor().copy(this);
10498
10498
  }
10499
10499
  }
10500
- class Ri extends Ve {
10500
+ class ir extends Ve {
10501
10501
  /**
10502
10502
  * Constructs a new line basic material.
10503
10503
  *
@@ -10514,7 +10514,7 @@ class Ri extends Ve {
10514
10514
  return super.copy(t), this.color.copy(t.color), this.map = t.map, this.linewidth = t.linewidth, this.linecap = t.linecap, this.linejoin = t.linejoin, this.fog = t.fog, this;
10515
10515
  }
10516
10516
  }
10517
- const fs = /* @__PURE__ */ new R(), ps = /* @__PURE__ */ new R(), Fl = /* @__PURE__ */ new Nt(), Ji = /* @__PURE__ */ new fr(), Hr = /* @__PURE__ */ new rn(), na = /* @__PURE__ */ new R(), Ol = /* @__PURE__ */ new R();
10517
+ const fs = /* @__PURE__ */ new R(), ps = /* @__PURE__ */ new R(), Fl = /* @__PURE__ */ new Nt(), $i = /* @__PURE__ */ new fr(), Hr = /* @__PURE__ */ new rn(), ea = /* @__PURE__ */ new R(), Ol = /* @__PURE__ */ new R();
10518
10518
  class lh extends ie {
10519
10519
  /**
10520
10520
  * Constructs a new line.
@@ -10522,7 +10522,7 @@ class lh extends ie {
10522
10522
  * @param {BufferGeometry} [geometry] - The line geometry.
10523
10523
  * @param {Material|Array<Material>} [material] - The line material.
10524
10524
  */
10525
- constructor(t = new he(), e = new Ri()) {
10525
+ constructor(t = new ue(), e = new ir()) {
10526
10526
  super(), this.isLine = !0, this.type = "Line", this.geometry = t, this.material = e, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
10527
10527
  }
10528
10528
  copy(t, e) {
@@ -10541,7 +10541,7 @@ class lh extends ie {
10541
10541
  const e = t.attributes.position, n = [0];
10542
10542
  for (let i = 1, s = e.count; i < s; i++)
10543
10543
  fs.fromBufferAttribute(e, i - 1), ps.fromBufferAttribute(e, i), n[i] = n[i - 1], n[i] += fs.distanceTo(ps);
10544
- t.setAttribute("lineDistance", new Gt(n, 1));
10544
+ t.setAttribute("lineDistance", new jt(n, 1));
10545
10545
  } else
10546
10546
  console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
10547
10547
  return this;
@@ -10555,26 +10555,26 @@ class lh extends ie {
10555
10555
  raycast(t, e) {
10556
10556
  const n = this.geometry, i = this.matrixWorld, s = t.params.Line.threshold, a = n.drawRange;
10557
10557
  if (n.boundingSphere === null && n.computeBoundingSphere(), Hr.copy(n.boundingSphere), Hr.applyMatrix4(i), Hr.radius += s, t.ray.intersectsSphere(Hr) === !1) return;
10558
- Fl.copy(i).invert(), Ji.copy(t.ray).applyMatrix4(Fl);
10558
+ Fl.copy(i).invert(), $i.copy(t.ray).applyMatrix4(Fl);
10559
10559
  const o = s / ((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;
10560
10560
  if (h !== null) {
10561
10561
  const f = Math.max(0, a.start), g = Math.min(h.count, a.start + a.count);
10562
10562
  for (let _ = f, m = g - 1; _ < m; _ += c) {
10563
- const p = h.getX(_), b = h.getX(_ + 1), E = Gr(this, t, Ji, l, p, b, _);
10563
+ const p = h.getX(_), b = h.getX(_ + 1), E = Gr(this, t, $i, l, p, b, _);
10564
10564
  E && e.push(E);
10565
10565
  }
10566
10566
  if (this.isLineLoop) {
10567
- const _ = h.getX(g - 1), m = h.getX(f), p = Gr(this, t, Ji, l, _, m, g - 1);
10567
+ const _ = h.getX(g - 1), m = h.getX(f), p = Gr(this, t, $i, l, _, m, g - 1);
10568
10568
  p && e.push(p);
10569
10569
  }
10570
10570
  } else {
10571
10571
  const f = Math.max(0, a.start), g = Math.min(d.count, a.start + a.count);
10572
10572
  for (let _ = f, m = g - 1; _ < m; _ += c) {
10573
- const p = Gr(this, t, Ji, l, _, _ + 1, _);
10573
+ const p = Gr(this, t, $i, l, _, _ + 1, _);
10574
10574
  p && e.push(p);
10575
10575
  }
10576
10576
  if (this.isLineLoop) {
10577
- const _ = Gr(this, t, Ji, l, g - 1, f, g - 1);
10577
+ const _ = Gr(this, t, $i, l, g - 1, f, g - 1);
10578
10578
  _ && e.push(_);
10579
10579
  }
10580
10580
  }
@@ -10599,9 +10599,9 @@ class lh extends ie {
10599
10599
  }
10600
10600
  function Gr(r, t, e, n, i, s, a) {
10601
10601
  const o = r.geometry.attributes.position;
10602
- if (fs.fromBufferAttribute(o, i), ps.fromBufferAttribute(o, s), e.distanceSqToSegment(fs, ps, na, Ol) > n) return;
10603
- na.applyMatrix4(r.matrixWorld);
10604
- const c = t.ray.origin.distanceTo(na);
10602
+ if (fs.fromBufferAttribute(o, i), ps.fromBufferAttribute(o, s), e.distanceSqToSegment(fs, ps, ea, Ol) > n) return;
10603
+ ea.applyMatrix4(r.matrixWorld);
10604
+ const c = t.ray.origin.distanceTo(ea);
10605
10605
  if (!(c < t.near || c > t.far))
10606
10606
  return {
10607
10607
  distance: c,
@@ -10616,7 +10616,7 @@ function Gr(r, t, e, n, i, s, a) {
10616
10616
  };
10617
10617
  }
10618
10618
  const Bl = /* @__PURE__ */ new R(), zl = /* @__PURE__ */ new R();
10619
- class ms extends lh {
10619
+ class ao extends lh {
10620
10620
  /**
10621
10621
  * Constructs a new line segments.
10622
10622
  *
@@ -10632,7 +10632,7 @@ class ms extends lh {
10632
10632
  const e = t.attributes.position, n = [];
10633
10633
  for (let i = 0, s = e.count; i < s; i += 2)
10634
10634
  Bl.fromBufferAttribute(e, i), zl.fromBufferAttribute(e, i + 1), n[i] = i === 0 ? 0 : n[i - 1], n[i + 1] = n[i] + Bl.distanceTo(zl);
10635
- t.setAttribute("lineDistance", new Gt(n, 1));
10635
+ t.setAttribute("lineDistance", new jt(n, 1));
10636
10636
  } else
10637
10637
  console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
10638
10638
  return this;
@@ -10649,7 +10649,7 @@ class kv extends lh {
10649
10649
  super(t, e), this.isLineLoop = !0, this.type = "LineLoop";
10650
10650
  }
10651
10651
  }
10652
- class tr extends Ve {
10652
+ class Qi extends Ve {
10653
10653
  /**
10654
10654
  * Constructs a new points material.
10655
10655
  *
@@ -10667,14 +10667,14 @@ class tr extends Ve {
10667
10667
  }
10668
10668
  }
10669
10669
  const Vl = /* @__PURE__ */ new Nt(), oo = /* @__PURE__ */ new fr(), Wr = /* @__PURE__ */ new rn(), Xr = /* @__PURE__ */ new R();
10670
- class ia extends ie {
10670
+ class na extends ie {
10671
10671
  /**
10672
10672
  * Constructs a new point cloud.
10673
10673
  *
10674
10674
  * @param {BufferGeometry} [geometry] - The points geometry.
10675
10675
  * @param {Material|Array<Material>} [material] - The points material.
10676
10676
  */
10677
- constructor(t = new he(), e = new tr()) {
10677
+ constructor(t = new ue(), e = new Qi()) {
10678
10678
  super(), this.isPoints = !0, this.type = "Points", this.geometry = t, this.material = e, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
10679
10679
  }
10680
10680
  copy(t, e) {
@@ -10788,7 +10788,7 @@ class ch extends be {
10788
10788
  return this.compareFunction !== null && (e.compareFunction = this.compareFunction), e;
10789
10789
  }
10790
10790
  }
10791
- class hh extends he {
10791
+ class hh extends ue {
10792
10792
  /**
10793
10793
  * Constructs a new cylinder geometry.
10794
10794
  *
@@ -10819,7 +10819,7 @@ class hh extends he {
10819
10819
  let g = 0;
10820
10820
  const _ = [], m = n / 2;
10821
10821
  let p = 0;
10822
- b(), a === !1 && (t > 0 && E(!0), e > 0 && E(!1)), this.setIndex(h), this.setAttribute("position", new Gt(u, 3)), this.setAttribute("normal", new Gt(d, 3)), this.setAttribute("uv", new Gt(f, 2));
10822
+ b(), a === !1 && (t > 0 && E(!0), e > 0 && E(!1)), this.setIndex(h), this.setAttribute("position", new jt(u, 3)), this.setAttribute("normal", new jt(d, 3)), this.setAttribute("uv", new jt(f, 2));
10823
10823
  function b() {
10824
10824
  const M = new R(), D = new R();
10825
10825
  let T = 0;
@@ -11188,7 +11188,7 @@ function Io() {
11188
11188
  }
11189
11189
  };
11190
11190
  }
11191
- const qr = /* @__PURE__ */ new R(), ra = /* @__PURE__ */ new Io(), sa = /* @__PURE__ */ new Io(), aa = /* @__PURE__ */ new Io();
11191
+ const qr = /* @__PURE__ */ new R(), ia = /* @__PURE__ */ new Io(), ra = /* @__PURE__ */ new Io(), sa = /* @__PURE__ */ new Io();
11192
11192
  class Sd extends wn {
11193
11193
  /**
11194
11194
  * Constructs a new Catmull-Rom curve.
@@ -11218,12 +11218,12 @@ class Sd extends wn {
11218
11218
  if (this.closed || o + 2 < s ? h = i[(o + 2) % s] : (qr.subVectors(i[s - 1], i[s - 2]).add(i[s - 1]), h = qr), this.curveType === "centripetal" || this.curveType === "chordal") {
11219
11219
  const f = this.curveType === "chordal" ? 0.5 : 0.25;
11220
11220
  let g = Math.pow(c.distanceToSquared(u), f), _ = Math.pow(u.distanceToSquared(d), f), m = Math.pow(d.distanceToSquared(h), f);
11221
- _ < 1e-4 && (_ = 1), g < 1e-4 && (g = _), m < 1e-4 && (m = _), ra.initNonuniformCatmullRom(c.x, u.x, d.x, h.x, g, _, m), sa.initNonuniformCatmullRom(c.y, u.y, d.y, h.y, g, _, m), aa.initNonuniformCatmullRom(c.z, u.z, d.z, h.z, g, _, m);
11222
- } else this.curveType === "catmullrom" && (ra.initCatmullRom(c.x, u.x, d.x, h.x, this.tension), sa.initCatmullRom(c.y, u.y, d.y, h.y, this.tension), aa.initCatmullRom(c.z, u.z, d.z, h.z, this.tension));
11221
+ _ < 1e-4 && (_ = 1), g < 1e-4 && (g = _), m < 1e-4 && (m = _), ia.initNonuniformCatmullRom(c.x, u.x, d.x, h.x, g, _, m), ra.initNonuniformCatmullRom(c.y, u.y, d.y, h.y, g, _, m), sa.initNonuniformCatmullRom(c.z, u.z, d.z, h.z, g, _, m);
11222
+ } else this.curveType === "catmullrom" && (ia.initCatmullRom(c.x, u.x, d.x, h.x, this.tension), ra.initCatmullRom(c.y, u.y, d.y, h.y, this.tension), sa.initCatmullRom(c.z, u.z, d.z, h.z, this.tension));
11223
11223
  return n.set(
11224
+ ia.calc(l),
11224
11225
  ra.calc(l),
11225
- sa.calc(l),
11226
- aa.calc(l)
11226
+ sa.calc(l)
11227
11227
  ), n;
11228
11228
  }
11229
11229
  copy(t) {
@@ -11580,7 +11580,7 @@ var Fd = /* @__PURE__ */ Object.freeze({
11580
11580
  QuadraticBezierCurve3: dh,
11581
11581
  SplineCurve: Nd
11582
11582
  });
11583
- class Ss extends he {
11583
+ class Ms extends ue {
11584
11584
  /**
11585
11585
  * Constructs a new plane geometry.
11586
11586
  *
@@ -11609,7 +11609,7 @@ class Ss extends he {
11609
11609
  const E = b + c * p, M = b + c * (p + 1), D = b + 1 + c * (p + 1), T = b + 1 + c * p;
11610
11610
  f.push(E, M, T), f.push(M, D, T);
11611
11611
  }
11612
- this.setIndex(f), this.setAttribute("position", new Gt(g, 3)), this.setAttribute("normal", new Gt(_, 3)), this.setAttribute("uv", new Gt(m, 2));
11612
+ this.setIndex(f), this.setAttribute("position", new jt(g, 3)), this.setAttribute("normal", new jt(_, 3)), this.setAttribute("uv", new jt(m, 2));
11613
11613
  }
11614
11614
  copy(t) {
11615
11615
  return super.copy(t), this.parameters = Object.assign({}, t.parameters), this;
@@ -11622,10 +11622,10 @@ class Ss extends he {
11622
11622
  * @return {PlaneGeometry} A new instance.
11623
11623
  */
11624
11624
  static fromJSON(t) {
11625
- return new Ss(t.width, t.height, t.widthSegments, t.heightSegments);
11625
+ return new Ms(t.width, t.height, t.widthSegments, t.heightSegments);
11626
11626
  }
11627
11627
  }
11628
- class Uo extends he {
11628
+ class Uo extends ue {
11629
11629
  /**
11630
11630
  * Constructs a new sphere geometry.
11631
11631
  *
@@ -11665,7 +11665,7 @@ class Uo extends he {
11665
11665
  const E = h[p][b + 1], M = h[p][b], D = h[p + 1][b], T = h[p + 1][b + 1];
11666
11666
  (p !== 0 || a > 0) && f.push(E, M, T), (p !== n - 1 || l < Math.PI) && f.push(M, D, T);
11667
11667
  }
11668
- this.setIndex(f), this.setAttribute("position", new Gt(g, 3)), this.setAttribute("normal", new Gt(_, 3)), this.setAttribute("uv", new Gt(m, 2));
11668
+ this.setIndex(f), this.setAttribute("position", new jt(g, 3)), this.setAttribute("normal", new jt(_, 3)), this.setAttribute("uv", new jt(m, 2));
11669
11669
  }
11670
11670
  copy(t) {
11671
11671
  return super.copy(t), this.parameters = Object.assign({}, t.parameters), this;
@@ -11681,7 +11681,7 @@ class Uo extends he {
11681
11681
  return new Uo(t.radius, t.widthSegments, t.heightSegments, t.phiStart, t.phiLength, t.thetaStart, t.thetaLength);
11682
11682
  }
11683
11683
  }
11684
- class fh extends he {
11684
+ class fh extends ue {
11685
11685
  /**
11686
11686
  * Constructs a new tube geometry.
11687
11687
  *
@@ -11704,7 +11704,7 @@ class fh extends he {
11704
11704
  const o = new R(), l = new R(), c = new ht();
11705
11705
  let h = new R();
11706
11706
  const u = [], d = [], f = [], g = [];
11707
- _(), this.setIndex(g), this.setAttribute("position", new Gt(u, 3)), this.setAttribute("normal", new Gt(d, 3)), this.setAttribute("uv", new Gt(f, 2));
11707
+ _(), this.setIndex(g), this.setAttribute("position", new jt(u, 3)), this.setAttribute("normal", new jt(d, 3)), this.setAttribute("uv", new jt(f, 2));
11708
11708
  function _() {
11709
11709
  for (let E = 0; E < e; E++)
11710
11710
  m(E);
@@ -11755,7 +11755,7 @@ class fh extends he {
11755
11755
  );
11756
11756
  }
11757
11757
  }
11758
- class Od extends he {
11758
+ class Od extends ue {
11759
11759
  /**
11760
11760
  * Constructs a new wireframe geometry.
11761
11761
  *
@@ -11786,7 +11786,7 @@ class Od extends he {
11786
11786
  i.fromBufferAttribute(a, h), s.fromBufferAttribute(a, u), Gl(i, s, n) === !0 && (e.push(i.x, i.y, i.z), e.push(s.x, s.y, s.z));
11787
11787
  }
11788
11788
  }
11789
- this.setAttribute("position", new Gt(e, 3));
11789
+ this.setAttribute("position", new jt(e, 3));
11790
11790
  }
11791
11791
  }
11792
11792
  copy(t) {
@@ -11825,7 +11825,7 @@ class Bd extends Ve {
11825
11825
  * by {@link Color#set}.
11826
11826
  */
11827
11827
  constructor(t) {
11828
- super(), this.isMeshStandardMaterial = !0, this.type = "MeshStandardMaterial", this.defines = { STANDARD: "" }, this.color = new bt(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new bt(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = ys, this.normalScale = new ht(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ye(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(t);
11828
+ super(), this.isMeshStandardMaterial = !0, this.type = "MeshStandardMaterial", this.defines = { STANDARD: "" }, this.color = new bt(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new bt(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = xs, this.normalScale = new ht(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ye(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(t);
11829
11829
  }
11830
11830
  copy(t) {
11831
11831
  return super.copy(t), this.defines = { STANDARD: "" }, this.color.copy(t.color), this.roughness = t.roughness, this.metalness = t.metalness, this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.emissive.copy(t.emissive), this.emissiveMap = t.emissiveMap, this.emissiveIntensity = t.emissiveIntensity, this.bumpMap = t.bumpMap, this.bumpScale = t.bumpScale, this.normalMap = t.normalMap, this.normalMapType = t.normalMapType, this.normalScale.copy(t.normalScale), this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.roughnessMap = t.roughnessMap, this.metalnessMap = t.metalnessMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.envMapIntensity = t.envMapIntensity, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.flatShading = t.flatShading, this.fog = t.fog, this;
@@ -11955,7 +11955,7 @@ class ph extends Ve {
11955
11955
  * by {@link Color#set}.
11956
11956
  */
11957
11957
  constructor(t) {
11958
- super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new bt(16777215), this.specular = new bt(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new bt(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = ys, this.normalScale = new ht(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ye(), this.combine = vs, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(t);
11958
+ super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new bt(16777215), this.specular = new bt(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new bt(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = xs, this.normalScale = new ht(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ye(), this.combine = _s, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(t);
11959
11959
  }
11960
11960
  copy(t) {
11961
11961
  return super.copy(t), this.color.copy(t.color), this.specular.copy(t.specular), this.shininess = t.shininess, this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.emissive.copy(t.emissive), this.emissiveMap = t.emissiveMap, this.emissiveIntensity = t.emissiveIntensity, this.bumpMap = t.bumpMap, this.bumpScale = t.bumpScale, this.normalMap = t.normalMap, this.normalMapType = t.normalMapType, this.normalScale.copy(t.normalScale), this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.combine = t.combine, this.reflectivity = t.reflectivity, this.refractionRatio = t.refractionRatio, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.flatShading = t.flatShading, this.fog = t.fog, this;
@@ -11972,7 +11972,7 @@ class Wv extends Ve {
11972
11972
  * by {@link Color#set}.
11973
11973
  */
11974
11974
  constructor(t) {
11975
- super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new bt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new bt(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = ys, this.normalScale = new ht(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ye(), this.combine = vs, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(t);
11975
+ super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new bt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new bt(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = xs, this.normalScale = new ht(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ye(), this.combine = _s, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(t);
11976
11976
  }
11977
11977
  copy(t) {
11978
11978
  return super.copy(t), this.color.copy(t.color), this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.emissive.copy(t.emissive), this.emissiveMap = t.emissiveMap, this.emissiveIntensity = t.emissiveIntensity, this.bumpMap = t.bumpMap, this.bumpScale = t.bumpScale, this.normalMap = t.normalMap, this.normalMapType = t.normalMapType, this.normalScale.copy(t.normalScale), this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.combine = t.combine, this.reflectivity = t.reflectivity, this.refractionRatio = t.refractionRatio, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.flatShading = t.flatShading, this.fog = t.fog, this;
@@ -12055,7 +12055,7 @@ function mh(r, t, e, n) {
12055
12055
  a = s[n], a !== void 0 && (t.push(s.time), e.push(a)), s = r[i++];
12056
12056
  while (s !== void 0);
12057
12057
  }
12058
- class Es {
12058
+ class Ss {
12059
12059
  /**
12060
12060
  * Constructs a new interpolant.
12061
12061
  *
@@ -12164,7 +12164,7 @@ class Es {
12164
12164
  intervalChanged_() {
12165
12165
  }
12166
12166
  }
12167
- class Gd extends Es {
12167
+ class Gd extends Ss {
12168
12168
  /**
12169
12169
  * Constructs a new cubic interpolant.
12170
12170
  *
@@ -12214,7 +12214,7 @@ class Gd extends Es {
12214
12214
  return s;
12215
12215
  }
12216
12216
  }
12217
- class Wd extends Es {
12217
+ class Wd extends Ss {
12218
12218
  /**
12219
12219
  * Constructs a new linear interpolant.
12220
12220
  *
@@ -12233,7 +12233,7 @@ class Wd extends Es {
12233
12233
  return s;
12234
12234
  }
12235
12235
  }
12236
- class Xd extends Es {
12236
+ class Xd extends Ss {
12237
12237
  /**
12238
12238
  * Constructs a new discrete interpolant.
12239
12239
  *
@@ -12328,10 +12328,10 @@ class sn {
12328
12328
  case hs:
12329
12329
  e = this.InterpolantFactoryMethodDiscrete;
12330
12330
  break;
12331
- case so:
12331
+ case ro:
12332
12332
  e = this.InterpolantFactoryMethodLinear;
12333
12333
  break;
12334
- case Ps:
12334
+ case Cs:
12335
12335
  e = this.InterpolantFactoryMethodSmooth;
12336
12336
  break;
12337
12337
  }
@@ -12356,9 +12356,9 @@ class sn {
12356
12356
  case this.InterpolantFactoryMethodDiscrete:
12357
12357
  return hs;
12358
12358
  case this.InterpolantFactoryMethodLinear:
12359
- return so;
12359
+ return ro;
12360
12360
  case this.InterpolantFactoryMethodSmooth:
12361
- return Ps;
12361
+ return Cs;
12362
12362
  }
12363
12363
  }
12364
12364
  /**
@@ -12463,7 +12463,7 @@ class sn {
12463
12463
  * @return {AnimationClip} A reference to this animation clip.
12464
12464
  */
12465
12465
  optimize() {
12466
- const t = this.times.slice(), e = this.values.slice(), n = this.getValueSize(), i = this.getInterpolation() === Ps, s = t.length - 1;
12466
+ const t = this.times.slice(), e = this.values.slice(), n = this.getValueSize(), i = this.getInterpolation() === Cs, s = t.length - 1;
12467
12467
  let a = 1;
12468
12468
  for (let o = 1; o < s; ++o) {
12469
12469
  let l = !1;
@@ -12512,8 +12512,8 @@ class sn {
12512
12512
  sn.prototype.ValueTypeName = "";
12513
12513
  sn.prototype.TimeBufferType = Float32Array;
12514
12514
  sn.prototype.ValueBufferType = Float32Array;
12515
- sn.prototype.DefaultInterpolation = so;
12516
- class Oi extends sn {
12515
+ sn.prototype.DefaultInterpolation = ro;
12516
+ class Fi extends sn {
12517
12517
  /**
12518
12518
  * Constructs a new boolean keyframe track.
12519
12519
  *
@@ -12528,11 +12528,11 @@ class Oi extends sn {
12528
12528
  super(t, e, n);
12529
12529
  }
12530
12530
  }
12531
- Oi.prototype.ValueTypeName = "bool";
12532
- Oi.prototype.ValueBufferType = Array;
12533
- Oi.prototype.DefaultInterpolation = hs;
12534
- Oi.prototype.InterpolantFactoryMethodLinear = void 0;
12535
- Oi.prototype.InterpolantFactoryMethodSmooth = void 0;
12531
+ Fi.prototype.ValueTypeName = "bool";
12532
+ Fi.prototype.ValueBufferType = Array;
12533
+ Fi.prototype.DefaultInterpolation = hs;
12534
+ Fi.prototype.InterpolantFactoryMethodLinear = void 0;
12535
+ Fi.prototype.InterpolantFactoryMethodSmooth = void 0;
12536
12536
  class gh extends sn {
12537
12537
  /**
12538
12538
  * Constructs a new color keyframe track.
@@ -12547,7 +12547,7 @@ class gh extends sn {
12547
12547
  }
12548
12548
  }
12549
12549
  gh.prototype.ValueTypeName = "color";
12550
- class gs extends sn {
12550
+ class ms extends sn {
12551
12551
  /**
12552
12552
  * Constructs a new number keyframe track.
12553
12553
  *
@@ -12560,8 +12560,8 @@ class gs extends sn {
12560
12560
  super(t, e, n, i);
12561
12561
  }
12562
12562
  }
12563
- gs.prototype.ValueTypeName = "number";
12564
- class qd extends Es {
12563
+ ms.prototype.ValueTypeName = "number";
12564
+ class qd extends Ss {
12565
12565
  /**
12566
12566
  * Constructs a new SLERP interpolant.
12567
12567
  *
@@ -12581,7 +12581,7 @@ class qd extends Es {
12581
12581
  return s;
12582
12582
  }
12583
12583
  }
12584
- class bs extends sn {
12584
+ class Es extends sn {
12585
12585
  /**
12586
12586
  * Constructs a new Quaternion keyframe track.
12587
12587
  *
@@ -12604,9 +12604,9 @@ class bs extends sn {
12604
12604
  return new qd(this.times, this.values, this.getValueSize(), t);
12605
12605
  }
12606
12606
  }
12607
- bs.prototype.ValueTypeName = "quaternion";
12608
- bs.prototype.InterpolantFactoryMethodSmooth = void 0;
12609
- class Bi extends sn {
12607
+ Es.prototype.ValueTypeName = "quaternion";
12608
+ Es.prototype.InterpolantFactoryMethodSmooth = void 0;
12609
+ class Oi extends sn {
12610
12610
  /**
12611
12611
  * Constructs a new string keyframe track.
12612
12612
  *
@@ -12621,12 +12621,12 @@ class Bi extends sn {
12621
12621
  super(t, e, n);
12622
12622
  }
12623
12623
  }
12624
- Bi.prototype.ValueTypeName = "string";
12625
- Bi.prototype.ValueBufferType = Array;
12626
- Bi.prototype.DefaultInterpolation = hs;
12627
- Bi.prototype.InterpolantFactoryMethodLinear = void 0;
12628
- Bi.prototype.InterpolantFactoryMethodSmooth = void 0;
12629
- class _s extends sn {
12624
+ Oi.prototype.ValueTypeName = "string";
12625
+ Oi.prototype.ValueBufferType = Array;
12626
+ Oi.prototype.DefaultInterpolation = hs;
12627
+ Oi.prototype.InterpolantFactoryMethodLinear = void 0;
12628
+ Oi.prototype.InterpolantFactoryMethodSmooth = void 0;
12629
+ class gs extends sn {
12630
12630
  /**
12631
12631
  * Constructs a new vector keyframe track.
12632
12632
  *
@@ -12639,7 +12639,7 @@ class _s extends sn {
12639
12639
  super(t, e, n, i);
12640
12640
  }
12641
12641
  }
12642
- _s.prototype.ValueTypeName = "vector";
12642
+ gs.prototype.ValueTypeName = "vector";
12643
12643
  class Xv {
12644
12644
  /**
12645
12645
  * Constructs a new animation clip.
@@ -12716,7 +12716,7 @@ class Xv {
12716
12716
  ), c.push(0, 1, 0);
12717
12717
  const h = Hd(l);
12718
12718
  l = Wl(l, 1, h), c = Wl(c, 1, h), !i && l[0] === 0 && (l.push(s), c.push(c[0])), a.push(
12719
- new gs(
12719
+ new ms(
12720
12720
  ".morphTargetInfluences[" + e[o].name + "]",
12721
12721
  l,
12722
12722
  c
@@ -12810,25 +12810,25 @@ class Xv {
12810
12810
  const E = d[g];
12811
12811
  m.push(E.time), p.push(E.morphTarget === _ ? 1 : 0);
12812
12812
  }
12813
- i.push(new gs(".morphTargetInfluence[" + _ + "]", m, p));
12813
+ i.push(new ms(".morphTargetInfluence[" + _ + "]", m, p));
12814
12814
  }
12815
12815
  l = f.length * a;
12816
12816
  } else {
12817
12817
  const f = ".bones[" + e[u].name + "]";
12818
12818
  n(
12819
- _s,
12819
+ gs,
12820
12820
  f + ".position",
12821
12821
  d,
12822
12822
  "pos",
12823
12823
  i
12824
12824
  ), n(
12825
- bs,
12825
+ Es,
12826
12826
  f + ".quaternion",
12827
12827
  d,
12828
12828
  "rot",
12829
12829
  i
12830
12830
  ), n(
12831
- _s,
12831
+ gs,
12832
12832
  f + ".scale",
12833
12833
  d,
12834
12834
  "scl",
@@ -12912,21 +12912,21 @@ function Yd(r) {
12912
12912
  case "float":
12913
12913
  case "number":
12914
12914
  case "integer":
12915
- return gs;
12915
+ return ms;
12916
12916
  case "vector":
12917
12917
  case "vector2":
12918
12918
  case "vector3":
12919
12919
  case "vector4":
12920
- return _s;
12920
+ return gs;
12921
12921
  case "color":
12922
12922
  return gh;
12923
12923
  case "quaternion":
12924
- return bs;
12924
+ return Es;
12925
12925
  case "bool":
12926
12926
  case "boolean":
12927
- return Oi;
12927
+ return Fi;
12928
12928
  case "string":
12929
- return Bi;
12929
+ return Oi;
12930
12930
  }
12931
12931
  throw new Error("THREE.KeyframeTrack: Unsupported typeName: " + r);
12932
12932
  }
@@ -13133,7 +13133,7 @@ class Jd extends Error {
13133
13133
  super(t), this.response = e;
13134
13134
  }
13135
13135
  }
13136
- class Ts extends An {
13136
+ class bs extends An {
13137
13137
  /**
13138
13138
  * Constructs a new file loader.
13139
13139
  *
@@ -13329,7 +13329,7 @@ class qv extends An {
13329
13329
  * @return {DataTexture} The data texture.
13330
13330
  */
13331
13331
  load(t, e, n, i) {
13332
- const s = this, a = new Lo(), o = new Ts(this.manager);
13332
+ const s = this, a = new Lo(), o = new bs(this.manager);
13333
13333
  return o.setResponseType("arraybuffer"), o.setRequestHeader(this.requestHeader), o.setPath(this.path), o.setWithCredentials(s.withCredentials), o.load(t, function(l) {
13334
13334
  let c;
13335
13335
  try {
@@ -13413,7 +13413,7 @@ class Yv extends mr {
13413
13413
  return super.copy(t, e), this.groundColor.copy(t.groundColor), this;
13414
13414
  }
13415
13415
  }
13416
- const oa = /* @__PURE__ */ new Nt(), Xl = /* @__PURE__ */ new R(), ql = /* @__PURE__ */ new R();
13416
+ const aa = /* @__PURE__ */ new Nt(), Xl = /* @__PURE__ */ new R(), ql = /* @__PURE__ */ new R();
13417
13417
  class No {
13418
13418
  /**
13419
13419
  * Constructs a new light shadow.
@@ -13449,7 +13449,7 @@ class No {
13449
13449
  */
13450
13450
  updateMatrices(t) {
13451
13451
  const e = this.camera, n = this.matrix;
13452
- Xl.setFromMatrixPosition(t.matrixWorld), e.position.copy(Xl), ql.setFromMatrixPosition(t.target.matrixWorld), e.lookAt(ql), e.updateMatrixWorld(), oa.multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse), this._frustum.setFromProjectionMatrix(oa), n.set(
13452
+ Xl.setFromMatrixPosition(t.matrixWorld), e.position.copy(Xl), ql.setFromMatrixPosition(t.target.matrixWorld), e.lookAt(ql), e.updateMatrixWorld(), aa.multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse), this._frustum.setFromProjectionMatrix(aa), n.set(
13453
13453
  0.5,
13454
13454
  0,
13455
13455
  0,
@@ -13466,7 +13466,7 @@ class No {
13466
13466
  0,
13467
13467
  0,
13468
13468
  1
13469
- ), n.multiply(oa);
13469
+ ), n.multiply(aa);
13470
13470
  }
13471
13471
  /**
13472
13472
  * Returns a viewport definition for the given viewport index.
@@ -13528,7 +13528,7 @@ class Qd extends No {
13528
13528
  super(new Ie(50, 1, 0.5, 500)), this.isSpotLightShadow = !0, this.focus = 1, this.aspect = 1;
13529
13529
  }
13530
13530
  updateMatrices(t) {
13531
- const e = this.camera, n = Ui * 2 * t.angle * this.focus, i = this.mapSize.width / this.mapSize.height * this.aspect, s = t.distance || e.far;
13531
+ const e = this.camera, n = Ii * 2 * t.angle * this.focus, i = this.mapSize.width / this.mapSize.height * this.aspect, s = t.distance || e.far;
13532
13532
  (n !== e.fov || i !== e.aspect || s !== e.far) && (e.fov = n, e.aspect = i, e.far = s, e.updateProjectionMatrix()), super.updateMatrices(t);
13533
13533
  }
13534
13534
  copy(t) {
@@ -13568,7 +13568,7 @@ class jv extends mr {
13568
13568
  return super.copy(t, e), this.distance = t.distance, this.angle = t.angle, this.penumbra = t.penumbra, this.decay = t.decay, this.target = t.target.clone(), this.shadow = t.shadow.clone(), this;
13569
13569
  }
13570
13570
  }
13571
- const Yl = /* @__PURE__ */ new Nt(), Ki = /* @__PURE__ */ new R(), la = /* @__PURE__ */ new R();
13571
+ const Yl = /* @__PURE__ */ new Nt(), Ji = /* @__PURE__ */ new R(), oa = /* @__PURE__ */ new R();
13572
13572
  class tf extends No {
13573
13573
  /**
13574
13574
  * Constructs a new point light shadow.
@@ -13623,7 +13623,7 @@ class tf extends No {
13623
13623
  */
13624
13624
  updateMatrices(t, e = 0) {
13625
13625
  const n = this.camera, i = this.matrix, s = t.distance || n.far;
13626
- s !== n.far && (n.far = s, n.updateProjectionMatrix()), Ki.setFromMatrixPosition(t.matrixWorld), n.position.copy(Ki), la.copy(n.position), la.add(this._cubeDirections[e]), n.up.copy(this._cubeUps[e]), n.lookAt(la), n.updateMatrixWorld(), i.makeTranslation(-Ki.x, -Ki.y, -Ki.z), Yl.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse), this._frustum.setFromProjectionMatrix(Yl);
13626
+ s !== n.far && (n.far = s, n.updateProjectionMatrix()), Ji.setFromMatrixPosition(t.matrixWorld), n.position.copy(Ji), oa.copy(n.position), oa.add(this._cubeDirections[e]), n.up.copy(this._cubeUps[e]), n.lookAt(oa), n.updateMatrixWorld(), i.makeTranslation(-Ji.x, -Ji.y, -Ji.z), Yl.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse), this._frustum.setFromProjectionMatrix(Yl);
13627
13627
  }
13628
13628
  }
13629
13629
  class $v extends mr {
@@ -13781,7 +13781,7 @@ class nf {
13781
13781
  return typeof t != "string" || t === "" ? "" : (/^https?:\/\//i.test(e) && /^\//.test(t) && (e = e.replace(/(^https?:\/\/[^\/]+).*/i, "$1")), /^(https?:)?\/\//i.test(t) || /^data:.*,.*$/i.test(t) || /^blob:.*$/i.test(t) ? t : e + t);
13782
13782
  }
13783
13783
  }
13784
- class rf extends he {
13784
+ class rf extends ue {
13785
13785
  /**
13786
13786
  * Constructs a new instanced buffer geometry.
13787
13787
  */
@@ -13796,7 +13796,7 @@ class rf extends he {
13796
13796
  return t.instanceCount = this.instanceCount, t.isInstancedBufferGeometry = !0, t;
13797
13797
  }
13798
13798
  }
13799
- const ca = /* @__PURE__ */ new WeakMap();
13799
+ const la = /* @__PURE__ */ new WeakMap();
13800
13800
  class Zv extends An {
13801
13801
  /**
13802
13802
  * Constructs a new image bitmap loader.
@@ -13831,8 +13831,8 @@ class Zv extends An {
13831
13831
  if (a !== void 0) {
13832
13832
  if (s.manager.itemStart(t), a.then) {
13833
13833
  a.then((c) => {
13834
- if (ca.has(a) === !0)
13835
- i && i(ca.get(a)), s.manager.itemError(t), s.manager.itemEnd(t);
13834
+ if (la.has(a) === !0)
13835
+ i && i(la.get(a)), s.manager.itemError(t), s.manager.itemEnd(t);
13836
13836
  else
13837
13837
  return e && e(c), s.manager.itemEnd(t), c;
13838
13838
  });
@@ -13851,7 +13851,7 @@ class Zv extends An {
13851
13851
  }).then(function(c) {
13852
13852
  return Fn.add(t, c), e && e(c), s.manager.itemEnd(t), c;
13853
13853
  }).catch(function(c) {
13854
- i && i(c), ca.set(l, c), Fn.remove(t), s.manager.itemError(t), s.manager.itemEnd(t);
13854
+ i && i(c), la.set(l, c), Fn.remove(t), s.manager.itemError(t), s.manager.itemEnd(t);
13855
13855
  });
13856
13856
  Fn.add(t, l), s.manager.itemStart(t);
13857
13857
  }
@@ -14598,7 +14598,7 @@ class vf {
14598
14598
  return new this.constructor().copy(this);
14599
14599
  }
14600
14600
  }
14601
- class Qv extends ms {
14601
+ class Qv extends ao {
14602
14602
  /**
14603
14603
  * Constructs a new grid helper.
14604
14604
  *
@@ -14615,9 +14615,9 @@ class Qv extends ms {
14615
14615
  const _ = d === s ? n : i;
14616
14616
  _.toArray(c, f), f += 3, _.toArray(c, f), f += 3, _.toArray(c, f), f += 3, _.toArray(c, f), f += 3;
14617
14617
  }
14618
- const h = new he();
14619
- h.setAttribute("position", new Gt(l, 3)), h.setAttribute("color", new Gt(c, 3));
14620
- const u = new Ri({ vertexColors: !0, toneMapped: !1 });
14618
+ const h = new ue();
14619
+ h.setAttribute("position", new jt(l, 3)), h.setAttribute("color", new jt(c, 3));
14620
+ const u = new ir({ vertexColors: !0, toneMapped: !1 });
14621
14621
  super(h, u), this.type = "GridHelper";
14622
14622
  }
14623
14623
  /**
@@ -14628,77 +14628,7 @@ class Qv extends ms {
14628
14628
  this.geometry.dispose(), this.material.dispose();
14629
14629
  }
14630
14630
  }
14631
- class t0 extends ms {
14632
- /**
14633
- * Constructs a new axes helper.
14634
- *
14635
- * @param {number} [size=1] - Size of the lines representing the axes.
14636
- */
14637
- constructor(t = 1) {
14638
- const e = [
14639
- 0,
14640
- 0,
14641
- 0,
14642
- t,
14643
- 0,
14644
- 0,
14645
- 0,
14646
- 0,
14647
- 0,
14648
- 0,
14649
- t,
14650
- 0,
14651
- 0,
14652
- 0,
14653
- 0,
14654
- 0,
14655
- 0,
14656
- t
14657
- ], n = [
14658
- 1,
14659
- 0,
14660
- 0,
14661
- 1,
14662
- 0.6,
14663
- 0,
14664
- 0,
14665
- 1,
14666
- 0,
14667
- 0.6,
14668
- 1,
14669
- 0,
14670
- 0,
14671
- 0,
14672
- 1,
14673
- 0,
14674
- 0.6,
14675
- 1
14676
- ], i = new he();
14677
- i.setAttribute("position", new Gt(e, 3)), i.setAttribute("color", new Gt(n, 3));
14678
- const s = new Ri({ vertexColors: !0, toneMapped: !1 });
14679
- super(i, s), this.type = "AxesHelper";
14680
- }
14681
- /**
14682
- * Defines the colors of the axes helper.
14683
- *
14684
- * @param {number|Color|string} xAxisColor - The color for the x axis.
14685
- * @param {number|Color|string} yAxisColor - The color for the y axis.
14686
- * @param {number|Color|string} zAxisColor - The color for the z axis.
14687
- * @return {AxesHelper} A reference to this axes helper.
14688
- */
14689
- setColors(t, e, n) {
14690
- const i = new bt(), s = this.geometry.attributes.color.array;
14691
- return i.set(t), i.toArray(s, 0), i.toArray(s, 3), i.set(e), i.toArray(s, 6), i.toArray(s, 9), i.set(n), i.toArray(s, 12), i.toArray(s, 15), this.geometry.attributes.color.needsUpdate = !0, this;
14692
- }
14693
- /**
14694
- * Frees the GPU-related resources allocated by this instance. Call this
14695
- * method whenever this instance is no longer used in your app.
14696
- */
14697
- dispose() {
14698
- this.geometry.dispose(), this.material.dispose();
14699
- }
14700
- }
14701
- class e0 extends ni {
14631
+ class t0 extends ni {
14702
14632
  /**
14703
14633
  * Constructs a new controls instance.
14704
14634
  *
@@ -14769,58 +14699,58 @@ function Zl(r, t, e, n) {
14769
14699
  case ss:
14770
14700
  return Math.floor((r + 3) / 4) * Math.floor((t + 3) / 4) * 16;
14771
14701
  // https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_pvrtc/
14772
- case Ua:
14773
- case Fa:
14774
- return Math.max(r, 16) * Math.max(t, 8) / 4;
14775
14702
  case Ia:
14776
14703
  case Na:
14704
+ return Math.max(r, 16) * Math.max(t, 8) / 4;
14705
+ case Da:
14706
+ case Ua:
14777
14707
  return Math.max(r, 8) * Math.max(t, 8) / 2;
14778
14708
  // https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_etc/
14709
+ case Fa:
14779
14710
  case Oa:
14780
- case Ba:
14781
14711
  return Math.floor((r + 3) / 4) * Math.floor((t + 3) / 4) * 8;
14782
- case za:
14712
+ case Ba:
14783
14713
  return Math.floor((r + 3) / 4) * Math.floor((t + 3) / 4) * 16;
14784
14714
  // https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_astc/
14785
- case Va:
14715
+ case za:
14786
14716
  return Math.floor((r + 3) / 4) * Math.floor((t + 3) / 4) * 16;
14787
- case ka:
14717
+ case Va:
14788
14718
  return Math.floor((r + 4) / 5) * Math.floor((t + 3) / 4) * 16;
14789
- case Ha:
14719
+ case ka:
14790
14720
  return Math.floor((r + 4) / 5) * Math.floor((t + 4) / 5) * 16;
14791
- case Ga:
14721
+ case Ha:
14792
14722
  return Math.floor((r + 5) / 6) * Math.floor((t + 4) / 5) * 16;
14793
- case Wa:
14723
+ case Ga:
14794
14724
  return Math.floor((r + 5) / 6) * Math.floor((t + 5) / 6) * 16;
14795
- case Xa:
14725
+ case Wa:
14796
14726
  return Math.floor((r + 7) / 8) * Math.floor((t + 4) / 5) * 16;
14797
- case qa:
14727
+ case Xa:
14798
14728
  return Math.floor((r + 7) / 8) * Math.floor((t + 5) / 6) * 16;
14799
- case Ya:
14729
+ case qa:
14800
14730
  return Math.floor((r + 7) / 8) * Math.floor((t + 7) / 8) * 16;
14801
- case ja:
14731
+ case Ya:
14802
14732
  return Math.floor((r + 9) / 10) * Math.floor((t + 4) / 5) * 16;
14803
- case $a:
14733
+ case ja:
14804
14734
  return Math.floor((r + 9) / 10) * Math.floor((t + 5) / 6) * 16;
14805
- case Ja:
14735
+ case $a:
14806
14736
  return Math.floor((r + 9) / 10) * Math.floor((t + 7) / 8) * 16;
14807
- case Ka:
14737
+ case Ja:
14808
14738
  return Math.floor((r + 9) / 10) * Math.floor((t + 9) / 10) * 16;
14809
- case Za:
14739
+ case Ka:
14810
14740
  return Math.floor((r + 11) / 12) * Math.floor((t + 9) / 10) * 16;
14811
- case Qa:
14741
+ case Za:
14812
14742
  return Math.floor((r + 11) / 12) * Math.floor((t + 11) / 12) * 16;
14813
14743
  // https://registry.khronos.org/webgl/extensions/EXT_texture_compression_bptc/
14814
14744
  case as:
14745
+ case Qa:
14815
14746
  case to:
14816
- case eo:
14817
14747
  return Math.ceil(r / 4) * Math.ceil(t / 4) * 16;
14818
14748
  // https://registry.khronos.org/webgl/extensions/EXT_texture_compression_rgtc/
14819
14749
  case $c:
14820
- case no:
14750
+ case eo:
14821
14751
  return Math.ceil(r / 4) * Math.ceil(t / 4) * 8;
14752
+ case no:
14822
14753
  case io:
14823
- case ro:
14824
14754
  return Math.ceil(r / 4) * Math.ceil(t / 4) * 16;
14825
14755
  }
14826
14756
  throw new Error(
@@ -19096,11 +19026,11 @@ function eg(r, t, e, n, i, s, a) {
19096
19026
  }
19097
19027
  function m(E, M) {
19098
19028
  const D = g(M);
19099
- D && (D.isCubeTexture || D.mapping === xs) ? (h === void 0 && (h = new fe(
19029
+ D && (D.isCubeTexture || D.mapping === vs) ? (h === void 0 && (h = new fe(
19100
19030
  new pr(1, 1, 1),
19101
19031
  new Tn({
19102
19032
  name: "BackgroundCubeMaterial",
19103
- uniforms: Ni(Ue.backgroundCube.uniforms),
19033
+ uniforms: Ui(Ue.backgroundCube.uniforms),
19104
19034
  vertexShader: Ue.backgroundCube.vertexShader,
19105
19035
  fragmentShader: Ue.backgroundCube.fragmentShader,
19106
19036
  side: Le,
@@ -19116,10 +19046,10 @@ function eg(r, t, e, n, i, s, a) {
19116
19046
  return this.uniforms.envMap.value;
19117
19047
  }
19118
19048
  }), i.update(h)), Xn.copy(M.backgroundRotation), Xn.x *= -1, Xn.y *= -1, Xn.z *= -1, D.isCubeTexture && D.isRenderTargetTexture === !1 && (Xn.y *= -1, Xn.z *= -1), h.material.uniforms.envMap.value = D, h.material.uniforms.flipEnvMap.value = D.isCubeTexture && D.isRenderTargetTexture === !1 ? -1 : 1, h.material.uniforms.backgroundBlurriness.value = M.backgroundBlurriness, h.material.uniforms.backgroundIntensity.value = M.backgroundIntensity, h.material.uniforms.backgroundRotation.value.setFromMatrix4(tg.makeRotationFromEuler(Xn)), h.material.toneMapped = Ht.getTransfer(D.colorSpace) !== ee, (u !== D || d !== D.version || f !== r.toneMapping) && (h.material.needsUpdate = !0, u = D, d = D.version, f = r.toneMapping), h.layers.enableAll(), E.unshift(h, h.geometry, h.material, 0, 0, null)) : D && D.isTexture && (c === void 0 && (c = new fe(
19119
- new Ss(2, 2),
19049
+ new Ms(2, 2),
19120
19050
  new Tn({
19121
19051
  name: "BackgroundMaterial",
19122
- uniforms: Ni(Ue.background.uniforms),
19052
+ uniforms: Ui(Ue.background.uniforms),
19123
19053
  vertexShader: Ue.background.vertexShader,
19124
19054
  fragmentShader: Ue.background.fragmentShader,
19125
19055
  side: bn,
@@ -19259,7 +19189,7 @@ function ng(r, t) {
19259
19189
  if (Ot === void 0) continue;
19260
19190
  const $t = Ot.buffer, Y = Ot.type, et = Ot.bytesPerElement, Mt = Y === r.INT || Y === r.UNSIGNED_INT || st.gpuType === xo;
19261
19191
  if (st.isInterleavedBufferAttribute) {
19262
- const ct = st.data, St = ct.stride, qt = st.offset;
19192
+ const ct = st.data, St = ct.stride, Xt = st.offset;
19263
19193
  if (ct.isInstancedInterleavedBuffer) {
19264
19194
  for (let Ct = 0; Ct < G.locationSize; Ct++)
19265
19195
  p(G.location + Ct, ct.meshPerAttribute);
@@ -19275,7 +19205,7 @@ function ng(r, t) {
19275
19205
  Y,
19276
19206
  lt,
19277
19207
  St * et,
19278
- (qt + yt / G.locationSize * Ct) * et,
19208
+ (Xt + yt / G.locationSize * Ct) * et,
19279
19209
  Mt
19280
19210
  );
19281
19211
  } else {
@@ -19508,12 +19438,12 @@ function sg(r) {
19508
19438
  function ag(r) {
19509
19439
  let t = /* @__PURE__ */ new WeakMap();
19510
19440
  function e(a, o) {
19511
- return o === Pa ? a.mapping = Pi : o === La && (a.mapping = Li), a;
19441
+ return o === Ca ? a.mapping = Ci : o === Pa && (a.mapping = Pi), a;
19512
19442
  }
19513
19443
  function n(a) {
19514
19444
  if (a && a.isTexture) {
19515
19445
  const o = a.mapping;
19516
- if (o === Pa || o === La)
19446
+ if (o === Ca || o === Pa)
19517
19447
  if (t.has(a)) {
19518
19448
  const l = t.get(a).texture;
19519
19449
  return e(l, a.mapping);
@@ -19542,8 +19472,8 @@ function ag(r) {
19542
19472
  dispose: s
19543
19473
  };
19544
19474
  }
19545
- const bi = 4, Ql = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Zn = 20, ha = /* @__PURE__ */ new Fo(), tc = /* @__PURE__ */ new bt();
19546
- let ua = null, da = 0, fa = 0, pa = !1;
19475
+ const bi = 4, Ql = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Zn = 20, ca = /* @__PURE__ */ new Fo(), tc = /* @__PURE__ */ new bt();
19476
+ let ha = null, ua = 0, da = 0, fa = !1;
19547
19477
  const Jn = (1 + Math.sqrt(5)) / 2, Si = 1 / Jn, ec = [
19548
19478
  /* @__PURE__ */ new R(-Jn, Si, 0),
19549
19479
  /* @__PURE__ */ new R(Jn, Si, 0),
@@ -19585,7 +19515,7 @@ class nc {
19585
19515
  size: a = 256,
19586
19516
  position: o = og
19587
19517
  } = s;
19588
- ua = this._renderer.getRenderTarget(), da = this._renderer.getActiveCubeFace(), fa = this._renderer.getActiveMipmapLevel(), pa = this._renderer.xr.enabled, this._renderer.xr.enabled = !1, this._setSize(a);
19518
+ ha = this._renderer.getRenderTarget(), ua = this._renderer.getActiveCubeFace(), da = this._renderer.getActiveMipmapLevel(), fa = this._renderer.xr.enabled, this._renderer.xr.enabled = !1, this._setSize(a);
19589
19519
  const l = this._allocateTargets();
19590
19520
  return l.depthBuffer = !0, this._sceneToCubeUV(t, n, i, l, o), e > 0 && this._blur(l, 0, 0, e), this._applyPMREM(l), this._cleanup(l), l;
19591
19521
  }
@@ -19645,10 +19575,10 @@ class nc {
19645
19575
  this._lodPlanes[t].dispose();
19646
19576
  }
19647
19577
  _cleanup(t) {
19648
- this._renderer.setRenderTarget(ua, da, fa), this._renderer.xr.enabled = pa, t.scissorTest = !1, Jr(t, 0, 0, t.width, t.height);
19578
+ this._renderer.setRenderTarget(ha, ua, da), this._renderer.xr.enabled = fa, t.scissorTest = !1, Jr(t, 0, 0, t.width, t.height);
19649
19579
  }
19650
19580
  _fromTexture(t, e) {
19651
- t.mapping === Pi || t.mapping === Li ? this._setSize(t.image.length === 0 ? 16 : t.image[0].width || t.image[0].image.width) : this._setSize(t.image.width / 4), ua = this._renderer.getRenderTarget(), da = this._renderer.getActiveCubeFace(), fa = this._renderer.getActiveMipmapLevel(), pa = this._renderer.xr.enabled, this._renderer.xr.enabled = !1;
19581
+ t.mapping === Ci || t.mapping === Pi ? this._setSize(t.image.length === 0 ? 16 : t.image[0].width || t.image[0].image.width) : this._setSize(t.image.width / 4), ha = this._renderer.getRenderTarget(), ua = this._renderer.getActiveCubeFace(), da = this._renderer.getActiveMipmapLevel(), fa = this._renderer.xr.enabled, this._renderer.xr.enabled = !1;
19652
19582
  const n = e || this._allocateTargets();
19653
19583
  return this._textureToCubeUV(t, n), this._applyPMREM(n), this._cleanup(n), n;
19654
19584
  }
@@ -19659,7 +19589,7 @@ class nc {
19659
19589
  generateMipmaps: !1,
19660
19590
  type: dr,
19661
19591
  format: qe,
19662
- colorSpace: Ii,
19592
+ colorSpace: Di,
19663
19593
  depthBuffer: !1
19664
19594
  }, i = ic(t, e, n);
19665
19595
  if (this._pingPongRenderTarget === null || this._pingPongRenderTarget.width !== t || this._pingPongRenderTarget.height !== e) {
@@ -19671,12 +19601,12 @@ class nc {
19671
19601
  }
19672
19602
  _compileMaterial(t) {
19673
19603
  const e = new fe(this._lodPlanes[0], t);
19674
- this._renderer.compile(e, ha);
19604
+ this._renderer.compile(e, ca);
19675
19605
  }
19676
19606
  _sceneToCubeUV(t, e, n, i, s) {
19677
19607
  const l = new Ie(90, 1, e, n), c = [1, -1, 1, 1, 1, 1], h = [1, 1, 1, -1, -1, -1], u = this._renderer, d = u.autoClear, f = u.toneMapping;
19678
19608
  u.getClearColor(tc), u.toneMapping = Bn, u.autoClear = !1;
19679
- const g = new Fi({
19609
+ const g = new Ni({
19680
19610
  name: "PMREM.Background",
19681
19611
  side: Le,
19682
19612
  depthWrite: !1,
@@ -19694,12 +19624,12 @@ class nc {
19694
19624
  _.geometry.dispose(), _.material.dispose(), u.toneMapping = f, u.autoClear = d, t.background = p;
19695
19625
  }
19696
19626
  _textureToCubeUV(t, e) {
19697
- const n = this._renderer, i = t.mapping === Pi || t.mapping === Li;
19627
+ const n = this._renderer, i = t.mapping === Ci || t.mapping === Pi;
19698
19628
  i ? (this._cubemapMaterial === null && (this._cubemapMaterial = sc()), this._cubemapMaterial.uniforms.flipEnvMap.value = t.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = rc());
19699
19629
  const s = i ? this._cubemapMaterial : this._equirectMaterial, a = new fe(this._lodPlanes[0], s), o = s.uniforms;
19700
19630
  o.envMap.value = t;
19701
19631
  const l = this._cubeSize;
19702
- Jr(e, 0, 0, 3 * l, 2 * l), n.setRenderTarget(e), n.render(a, ha);
19632
+ Jr(e, 0, 0, 3 * l, 2 * l), n.setRenderTarget(e), n.render(a, ca);
19703
19633
  }
19704
19634
  _applyPMREM(t) {
19705
19635
  const e = this._renderer, n = e.autoClear;
@@ -19764,7 +19694,7 @@ class nc {
19764
19694
  const { _lodMax: E } = this;
19765
19695
  d.dTheta.value = g, d.mipInt.value = E - n;
19766
19696
  const M = this._sizeLods[i], D = 3 * M * (i > E - bi ? i - E + bi : 0), T = 4 * (this._cubeSize - M);
19767
- Jr(e, D, T, 3 * M, 2 * M), l.setRenderTarget(e), l.render(u, ha);
19697
+ Jr(e, D, T, 3 * M, 2 * M), l.setRenderTarget(e), l.render(u, ca);
19768
19698
  }
19769
19699
  }
19770
19700
  function lg(r) {
@@ -19802,14 +19732,14 @@ function lg(r) {
19802
19732
  const x = [T, T, T, T, T, T];
19803
19733
  M.set(x, p * g * T);
19804
19734
  }
19805
- const D = new he();
19735
+ const D = new ue();
19806
19736
  D.setAttribute("position", new pe(b, _)), D.setAttribute("uv", new pe(E, m)), D.setAttribute("faceIndex", new pe(M, p)), t.push(D), i > bi && i--;
19807
19737
  }
19808
19738
  return { lodPlanes: t, sizeLods: e, sigmas: n };
19809
19739
  }
19810
19740
  function ic(r, t, e) {
19811
19741
  const n = new ei(r, t, e);
19812
- return n.texture.mapping = xs, n.texture.name = "PMREM.cubeUv", n.scissorTest = !0, n;
19742
+ return n.texture.mapping = vs, n.texture.name = "PMREM.cubeUv", n.scissorTest = !0, n;
19813
19743
  }
19814
19744
  function Jr(r, t, e, n, i) {
19815
19745
  r.viewport.set(t, e, n, i), r.scissor.set(t, e, n, i);
@@ -20036,7 +19966,7 @@ function hg(r) {
20036
19966
  let t = /* @__PURE__ */ new WeakMap(), e = null;
20037
19967
  function n(o) {
20038
19968
  if (o && o.isTexture) {
20039
- const l = o.mapping, c = l === Pa || l === La, h = l === Pi || l === Li;
19969
+ const l = o.mapping, c = l === Ca || l === Pa, h = l === Ci || l === Pi;
20040
19970
  if (c || h) {
20041
19971
  let u = t.get(o);
20042
19972
  const d = u !== void 0 ? u.texture.pmremVersion : 0;
@@ -20321,7 +20251,7 @@ function gg(r, t, e, n) {
20321
20251
  };
20322
20252
  }
20323
20253
  const xh = /* @__PURE__ */ new be(), ac = /* @__PURE__ */ new ch(1, 1), yh = /* @__PURE__ */ new Zc(), Mh = /* @__PURE__ */ new $u(), Sh = /* @__PURE__ */ new rh(), oc = [], lc = [], cc = new Float32Array(16), hc = new Float32Array(9), uc = new Float32Array(4);
20324
- function zi(r, t, e) {
20254
+ function Bi(r, t, e) {
20325
20255
  const n = r[0];
20326
20256
  if (n <= 0 || n > 0) return r;
20327
20257
  const i = t * e;
@@ -20343,7 +20273,7 @@ function ve(r, t) {
20343
20273
  for (let e = 0, n = t.length; e < n; e++)
20344
20274
  r[e] = t[e];
20345
20275
  }
20346
- function ws(r, t) {
20276
+ function Ts(r, t) {
20347
20277
  let e = lc[t];
20348
20278
  e === void 0 && (e = new Int32Array(t), lc[t] = e);
20349
20279
  for (let n = 0; n !== t; ++n)
@@ -20582,27 +20512,27 @@ function Og(r, t) {
20582
20512
  r.uniform1fv(this.addr, t);
20583
20513
  }
20584
20514
  function Bg(r, t) {
20585
- const e = zi(t, this.size, 2);
20515
+ const e = Bi(t, this.size, 2);
20586
20516
  r.uniform2fv(this.addr, e);
20587
20517
  }
20588
20518
  function zg(r, t) {
20589
- const e = zi(t, this.size, 3);
20519
+ const e = Bi(t, this.size, 3);
20590
20520
  r.uniform3fv(this.addr, e);
20591
20521
  }
20592
20522
  function Vg(r, t) {
20593
- const e = zi(t, this.size, 4);
20523
+ const e = Bi(t, this.size, 4);
20594
20524
  r.uniform4fv(this.addr, e);
20595
20525
  }
20596
20526
  function kg(r, t) {
20597
- const e = zi(t, this.size, 4);
20527
+ const e = Bi(t, this.size, 4);
20598
20528
  r.uniformMatrix2fv(this.addr, !1, e);
20599
20529
  }
20600
20530
  function Hg(r, t) {
20601
- const e = zi(t, this.size, 9);
20531
+ const e = Bi(t, this.size, 9);
20602
20532
  r.uniformMatrix3fv(this.addr, !1, e);
20603
20533
  }
20604
20534
  function Gg(r, t) {
20605
- const e = zi(t, this.size, 16);
20535
+ const e = Bi(t, this.size, 16);
20606
20536
  r.uniformMatrix4fv(this.addr, !1, e);
20607
20537
  }
20608
20538
  function Wg(r, t) {
@@ -20630,25 +20560,25 @@ function Kg(r, t) {
20630
20560
  r.uniform4uiv(this.addr, t);
20631
20561
  }
20632
20562
  function Zg(r, t, e) {
20633
- const n = this.cache, i = t.length, s = ws(e, i);
20563
+ const n = this.cache, i = t.length, s = Ts(e, i);
20634
20564
  _e(n, s) || (r.uniform1iv(this.addr, s), ve(n, s));
20635
20565
  for (let a = 0; a !== i; ++a)
20636
20566
  e.setTexture2D(t[a] || xh, s[a]);
20637
20567
  }
20638
20568
  function Qg(r, t, e) {
20639
- const n = this.cache, i = t.length, s = ws(e, i);
20569
+ const n = this.cache, i = t.length, s = Ts(e, i);
20640
20570
  _e(n, s) || (r.uniform1iv(this.addr, s), ve(n, s));
20641
20571
  for (let a = 0; a !== i; ++a)
20642
20572
  e.setTexture3D(t[a] || Mh, s[a]);
20643
20573
  }
20644
20574
  function t_(r, t, e) {
20645
- const n = this.cache, i = t.length, s = ws(e, i);
20575
+ const n = this.cache, i = t.length, s = Ts(e, i);
20646
20576
  _e(n, s) || (r.uniform1iv(this.addr, s), ve(n, s));
20647
20577
  for (let a = 0; a !== i; ++a)
20648
20578
  e.setTextureCube(t[a] || Sh, s[a]);
20649
20579
  }
20650
20580
  function e_(r, t, e) {
20651
- const n = this.cache, i = t.length, s = ws(e, i);
20581
+ const n = this.cache, i = t.length, s = Ts(e, i);
20652
20582
  _e(n, s) || (r.uniform1iv(this.addr, s), ve(n, s));
20653
20583
  for (let a = 0; a !== i; ++a)
20654
20584
  e.setTexture2DArray(t[a] || yh, s[a]);
@@ -20760,14 +20690,14 @@ class s_ {
20760
20690
  }
20761
20691
  }
20762
20692
  }
20763
- const ma = /(\w+)(\])?(\[|\.)?/g;
20693
+ const pa = /(\w+)(\])?(\[|\.)?/g;
20764
20694
  function dc(r, t) {
20765
20695
  r.seq.push(t), r.map[t.id] = t;
20766
20696
  }
20767
20697
  function a_(r, t, e) {
20768
20698
  const n = r.name, i = n.length;
20769
- for (ma.lastIndex = 0; ; ) {
20770
- const s = ma.exec(n), a = ma.lastIndex;
20699
+ for (pa.lastIndex = 0; ; ) {
20700
+ const s = pa.exec(n), a = pa.lastIndex;
20771
20701
  let o = s[1];
20772
20702
  const l = s[2] === "]", c = s[3];
20773
20703
  if (l && (o = o | 0), c === void 0 || c === "[" && a + 2 === i) {
@@ -20908,7 +20838,7 @@ function p_(r) {
20908
20838
  return [
20909
20839
  r.extensionClipCullDistance ? "#extension GL_ANGLE_clip_cull_distance : require" : "",
20910
20840
  r.extensionMultiDraw ? "#extension GL_ANGLE_multi_draw : require" : ""
20911
- ].filter(er).join(`
20841
+ ].filter(tr).join(`
20912
20842
  `);
20913
20843
  }
20914
20844
  function m_(r) {
@@ -20933,7 +20863,7 @@ function g_(r, t) {
20933
20863
  }
20934
20864
  return e;
20935
20865
  }
20936
- function er(r) {
20866
+ function tr(r) {
20937
20867
  return r !== "";
20938
20868
  }
20939
20869
  function gc(r, t) {
@@ -21001,11 +20931,11 @@ function E_(r) {
21001
20931
  let t = "ENVMAP_TYPE_CUBE";
21002
20932
  if (r.envMap)
21003
20933
  switch (r.envMapMode) {
20934
+ case Ci:
21004
20935
  case Pi:
21005
- case Li:
21006
20936
  t = "ENVMAP_TYPE_CUBE";
21007
20937
  break;
21008
- case xs:
20938
+ case vs:
21009
20939
  t = "ENVMAP_TYPE_CUBE_UV";
21010
20940
  break;
21011
20941
  }
@@ -21015,7 +20945,7 @@ function b_(r) {
21015
20945
  let t = "ENVMAP_MODE_REFLECTION";
21016
20946
  if (r.envMap)
21017
20947
  switch (r.envMapMode) {
21018
- case Li:
20948
+ case Pi:
21019
20949
  t = "ENVMAP_MODE_REFRACTION";
21020
20950
  break;
21021
20951
  }
@@ -21025,7 +20955,7 @@ function T_(r) {
21025
20955
  let t = "ENVMAP_BLENDING_NONE";
21026
20956
  if (r.envMap)
21027
20957
  switch (r.combine) {
21028
- case vs:
20958
+ case _s:
21029
20959
  t = "ENVMAP_BLENDING_MULTIPLY";
21030
20960
  break;
21031
20961
  case eu:
@@ -21053,13 +20983,13 @@ function A_(r, t, e, n) {
21053
20983
  "#define SHADER_TYPE " + e.shaderType,
21054
20984
  "#define SHADER_NAME " + e.shaderName,
21055
20985
  g
21056
- ].filter(er).join(`
20986
+ ].filter(tr).join(`
21057
20987
  `), m.length > 0 && (m += `
21058
20988
  `), p = [
21059
20989
  "#define SHADER_TYPE " + e.shaderType,
21060
20990
  "#define SHADER_NAME " + e.shaderName,
21061
20991
  g
21062
- ].filter(er).join(`
20992
+ ].filter(tr).join(`
21063
20993
  `), p.length > 0 && (p += `
21064
20994
  `)) : (m = [
21065
20995
  xc(e),
@@ -21193,7 +21123,7 @@ function A_(r, t, e, n) {
21193
21123
  "#endif",
21194
21124
  `
21195
21125
  `
21196
- ].filter(er).join(`
21126
+ ].filter(tr).join(`
21197
21127
  `), p = [
21198
21128
  xc(e),
21199
21129
  "#define SHADER_TYPE " + e.shaderType,
@@ -21277,7 +21207,7 @@ function A_(r, t, e, n) {
21277
21207
  e.useDepthPacking ? "#define DEPTH_PACKING " + e.depthPacking : "",
21278
21208
  `
21279
21209
  `
21280
- ].filter(er).join(`
21210
+ ].filter(tr).join(`
21281
21211
  `)), a = ho(a), a = gc(a, e), a = _c(a, e), o = ho(o), o = gc(o, e), o = _c(o, e), a = vc(a), o = vc(o), e.isRawShaderMaterial !== !0 && (b = `#version 300 es
21282
21212
  `, m = [
21283
21213
  f,
@@ -21420,7 +21350,7 @@ function L_(r, t, e, n, i, s, a) {
21420
21350
  return c.add(S), S === 0 ? "uv" : `uv${S}`;
21421
21351
  }
21422
21352
  function m(S, x, C, B, F) {
21423
- const H = B.fog, X = F.geometry, z = S.isMeshStandardMaterial ? B.environment : null, Z = (S.isMeshStandardMaterial ? e : t).get(S.envMap || z), G = Z && Z.mapping === xs ? Z.image.height : null, st = g[S.type];
21353
+ const H = B.fog, X = F.geometry, z = S.isMeshStandardMaterial ? B.environment : null, Z = (S.isMeshStandardMaterial ? e : t).get(S.envMap || z), G = Z && Z.mapping === vs ? Z.image.height : null, st = g[S.type];
21424
21354
  S.precision !== null && (f = i.getMaxPrecision(S.precision), f !== S.precision && console.warn("THREE.WebGLProgram.getParameters:", S.precision, "not supported, using", f, "instead."));
21425
21355
  const lt = X.morphAttributes.position || X.morphAttributes.normal || X.morphAttributes.color, yt = lt !== void 0 ? lt.length : 0;
21426
21356
  let Ot = 0;
@@ -21431,7 +21361,7 @@ function L_(r, t, e, n, i, s, a) {
21431
21361
  $t = Zt.vertexShader, Y = Zt.fragmentShader;
21432
21362
  } else
21433
21363
  $t = S.vertexShader, Y = S.fragmentShader, l.update(S), et = l.getVertexShaderID(S), Mt = l.getFragmentShaderID(S);
21434
- const ct = r.getRenderTarget(), St = r.state.buffers.depth.getReversed(), qt = F.isInstancedMesh === !0, Ct = F.isBatchedMesh === !0, oe = !!S.map, le = !!S.matcap, Yt = !!Z, L = !!S.aoMap, Ae = !!S.lightMap, jt = !!S.bumpMap, re = !!S.normalMap, _t = !!S.displacementMap, Wt = !!S.emissiveMap, Tt = !!S.metalnessMap, Bt = !!S.roughnessMap, me = S.anisotropy > 0, A = S.clearcoat > 0, v = S.dispersion > 0, O = S.iridescence > 0, q = S.sheen > 0, $ = S.transmission > 0, W = me && !!S.anisotropyMap, vt = A && !!S.clearcoatMap, rt = A && !!S.clearcoatNormalMap, gt = A && !!S.clearcoatRoughnessMap, xt = O && !!S.iridescenceMap, J = O && !!S.iridescenceThicknessMap, ut = q && !!S.sheenColorMap, Rt = q && !!S.sheenRoughnessMap, At = !!S.specularMap, it = !!S.specularColorMap, Dt = !!S.specularIntensityMap, I = $ && !!S.transmissionMap, at = $ && !!S.thicknessMap, K = !!S.gradientMap, ft = !!S.alphaMap, Q = S.alphaTest > 0, j = !!S.alphaHash, pt = !!S.extensions;
21364
+ const ct = r.getRenderTarget(), St = r.state.buffers.depth.getReversed(), Xt = F.isInstancedMesh === !0, Ct = F.isBatchedMesh === !0, oe = !!S.map, le = !!S.matcap, qt = !!Z, L = !!S.aoMap, Ae = !!S.lightMap, Yt = !!S.bumpMap, re = !!S.normalMap, _t = !!S.displacementMap, Gt = !!S.emissiveMap, Tt = !!S.metalnessMap, Bt = !!S.roughnessMap, me = S.anisotropy > 0, A = S.clearcoat > 0, v = S.dispersion > 0, O = S.iridescence > 0, q = S.sheen > 0, $ = S.transmission > 0, W = me && !!S.anisotropyMap, vt = A && !!S.clearcoatMap, rt = A && !!S.clearcoatNormalMap, gt = A && !!S.clearcoatRoughnessMap, xt = O && !!S.iridescenceMap, J = O && !!S.iridescenceThicknessMap, ut = q && !!S.sheenColorMap, Rt = q && !!S.sheenRoughnessMap, At = !!S.specularMap, it = !!S.specularColorMap, Dt = !!S.specularIntensityMap, I = $ && !!S.transmissionMap, at = $ && !!S.thicknessMap, K = !!S.gradientMap, ft = !!S.alphaMap, Q = S.alphaTest > 0, j = !!S.alphaHash, pt = !!S.extensions;
21435
21365
  let It = Bn;
21436
21366
  S.toneMapped && (ct === null || ct.isXRRenderTarget === !0) && (It = r.toneMapping);
21437
21367
  const se = {
@@ -21448,25 +21378,25 @@ function L_(r, t, e, n, i, s, a) {
21448
21378
  precision: f,
21449
21379
  batching: Ct,
21450
21380
  batchingColor: Ct && F._colorsTexture !== null,
21451
- instancing: qt,
21452
- instancingColor: qt && F.instanceColor !== null,
21453
- instancingMorph: qt && F.morphTexture !== null,
21381
+ instancing: Xt,
21382
+ instancingColor: Xt && F.instanceColor !== null,
21383
+ instancingMorph: Xt && F.morphTexture !== null,
21454
21384
  supportsVertexTextures: d,
21455
- outputColorSpace: ct === null ? r.outputColorSpace : ct.isXRRenderTarget === !0 ? ct.texture.colorSpace : Ii,
21385
+ outputColorSpace: ct === null ? r.outputColorSpace : ct.isXRRenderTarget === !0 ? ct.texture.colorSpace : Di,
21456
21386
  alphaToCoverage: !!S.alphaToCoverage,
21457
21387
  map: oe,
21458
21388
  matcap: le,
21459
- envMap: Yt,
21460
- envMapMode: Yt && Z.mapping,
21389
+ envMap: qt,
21390
+ envMapMode: qt && Z.mapping,
21461
21391
  envMapCubeUVHeight: G,
21462
21392
  aoMap: L,
21463
21393
  lightMap: Ae,
21464
- bumpMap: jt,
21394
+ bumpMap: Yt,
21465
21395
  normalMap: re,
21466
21396
  displacementMap: d && _t,
21467
- emissiveMap: Wt,
21397
+ emissiveMap: Gt,
21468
21398
  normalMapObjectSpace: re && S.normalMapType === mu,
21469
- normalMapTangentSpace: re && S.normalMapType === ys,
21399
+ normalMapTangentSpace: re && S.normalMapType === xs,
21470
21400
  metalnessMap: Tt,
21471
21401
  roughnessMap: Bt,
21472
21402
  anisotropy: me,
@@ -21498,10 +21428,10 @@ function L_(r, t, e, n, i, s, a) {
21498
21428
  mapUv: oe && _(S.map.channel),
21499
21429
  aoMapUv: L && _(S.aoMap.channel),
21500
21430
  lightMapUv: Ae && _(S.lightMap.channel),
21501
- bumpMapUv: jt && _(S.bumpMap.channel),
21431
+ bumpMapUv: Yt && _(S.bumpMap.channel),
21502
21432
  normalMapUv: re && _(S.normalMap.channel),
21503
21433
  displacementMapUv: _t && _(S.displacementMap.channel),
21504
- emissiveMapUv: Wt && _(S.emissiveMap.channel),
21434
+ emissiveMapUv: Gt && _(S.emissiveMap.channel),
21505
21435
  metalnessMapUv: Tt && _(S.metalnessMap.channel),
21506
21436
  roughnessMapUv: Bt && _(S.roughnessMap.channel),
21507
21437
  anisotropyMapUv: W && _(S.anisotropyMap.channel),
@@ -21554,7 +21484,7 @@ function L_(r, t, e, n, i, s, a) {
21554
21484
  shadowMapType: r.shadowMap.type,
21555
21485
  toneMapping: It,
21556
21486
  decodeVideoTexture: oe && S.map.isVideoTexture === !0 && Ht.getTransfer(S.map.colorSpace) === ee,
21557
- decodeVideoTextureEmissive: Wt && S.emissiveMap.isVideoTexture === !0 && Ht.getTransfer(S.emissiveMap.colorSpace) === ee,
21487
+ decodeVideoTextureEmissive: Gt && S.emissiveMap.isVideoTexture === !0 && Ht.getTransfer(S.emissiveMap.colorSpace) === ee,
21558
21488
  premultipliedAlpha: S.premultipliedAlpha,
21559
21489
  doubleSided: S.side === xn,
21560
21490
  flipSided: S.side === Le,
@@ -22029,7 +21959,7 @@ function G_(r, t, e) {
22029
21959
  fragmentShader: H_
22030
21960
  }), f = d.clone();
22031
21961
  f.defines.HORIZONTAL_PASS = 1;
22032
- const g = new he();
21962
+ const g = new ue();
22033
21963
  g.setAttribute(
22034
21964
  "position",
22035
21965
  new pe(
@@ -22127,14 +22057,14 @@ function G_(r, t, e) {
22127
22057
  }
22128
22058
  }
22129
22059
  const W_ = {
22130
- [Ea]: ba,
22060
+ [Sa]: Ea,
22061
+ [ba]: Aa,
22131
22062
  [Ta]: Ra,
22132
- [wa]: Ca,
22133
- [Ci]: Aa,
22134
- [ba]: Ea,
22063
+ [Ri]: wa,
22064
+ [Ea]: Sa,
22065
+ [Aa]: ba,
22135
22066
  [Ra]: Ta,
22136
- [Ca]: wa,
22137
- [Aa]: Ci
22067
+ [wa]: Ri
22138
22068
  };
22139
22069
  function X_(r, t) {
22140
22070
  function e() {
@@ -22180,28 +22110,28 @@ function X_(r, t) {
22180
22110
  setFunc: function(j) {
22181
22111
  if (at && (j = W_[j]), ft !== j) {
22182
22112
  switch (j) {
22183
- case Ea:
22113
+ case Sa:
22184
22114
  r.depthFunc(r.NEVER);
22185
22115
  break;
22186
- case ba:
22116
+ case Ea:
22187
22117
  r.depthFunc(r.ALWAYS);
22188
22118
  break;
22189
- case Ta:
22119
+ case ba:
22190
22120
  r.depthFunc(r.LESS);
22191
22121
  break;
22192
- case Ci:
22122
+ case Ri:
22193
22123
  r.depthFunc(r.LEQUAL);
22194
22124
  break;
22195
- case wa:
22125
+ case Ta:
22196
22126
  r.depthFunc(r.EQUAL);
22197
22127
  break;
22198
- case Aa:
22128
+ case wa:
22199
22129
  r.depthFunc(r.GEQUAL);
22200
22130
  break;
22201
- case Ra:
22131
+ case Aa:
22202
22132
  r.depthFunc(r.GREATER);
22203
22133
  break;
22204
- case Ca:
22134
+ case Ra:
22205
22135
  r.depthFunc(r.NOTEQUAL);
22206
22136
  break;
22207
22137
  default:
@@ -22263,14 +22193,14 @@ function X_(r, t) {
22263
22193
  return j;
22264
22194
  }
22265
22195
  const Mt = {};
22266
- Mt[r.TEXTURE_2D] = et(r.TEXTURE_2D, r.TEXTURE_2D, 1), Mt[r.TEXTURE_CUBE_MAP] = et(r.TEXTURE_CUBE_MAP, r.TEXTURE_CUBE_MAP_POSITIVE_X, 6), Mt[r.TEXTURE_2D_ARRAY] = et(r.TEXTURE_2D_ARRAY, r.TEXTURE_2D_ARRAY, 1, 1), Mt[r.TEXTURE_3D] = et(r.TEXTURE_3D, r.TEXTURE_3D, 1, 1), s.setClear(0, 0, 0, 1), a.setClear(1), o.setClear(0), ct(r.DEPTH_TEST), a.setFunc(Ci), jt(!1), re(Jo), ct(r.CULL_FACE), L(On);
22196
+ Mt[r.TEXTURE_2D] = et(r.TEXTURE_2D, r.TEXTURE_2D, 1), Mt[r.TEXTURE_CUBE_MAP] = et(r.TEXTURE_CUBE_MAP, r.TEXTURE_CUBE_MAP_POSITIVE_X, 6), Mt[r.TEXTURE_2D_ARRAY] = et(r.TEXTURE_2D_ARRAY, r.TEXTURE_2D_ARRAY, 1, 1), Mt[r.TEXTURE_3D] = et(r.TEXTURE_3D, r.TEXTURE_3D, 1, 1), s.setClear(0, 0, 0, 1), a.setClear(1), o.setClear(0), ct(r.DEPTH_TEST), a.setFunc(Ri), Yt(!1), re(Jo), ct(r.CULL_FACE), L(On);
22267
22197
  function ct(I) {
22268
22198
  h[I] !== !0 && (r.enable(I), h[I] = !0);
22269
22199
  }
22270
22200
  function St(I) {
22271
22201
  h[I] !== !1 && (r.disable(I), h[I] = !1);
22272
22202
  }
22273
- function qt(I, at) {
22203
+ function Xt(I, at) {
22274
22204
  return u[I] !== at ? (r.bindFramebuffer(I, at), u[I] = at, I === r.DRAW_FRAMEBUFFER && (u[r.FRAMEBUFFER] = at), I === r.FRAMEBUFFER && (u[r.DRAW_FRAMEBUFFER] = at), !0) : !1;
22275
22205
  }
22276
22206
  function Ct(I, at) {
@@ -22296,16 +22226,16 @@ function X_(r, t) {
22296
22226
  [zh]: r.FUNC_REVERSE_SUBTRACT
22297
22227
  };
22298
22228
  le[Vh] = r.MIN, le[kh] = r.MAX;
22299
- const Yt = {
22229
+ const qt = {
22300
22230
  [Hh]: r.ZERO,
22301
22231
  [Gh]: r.ONE,
22302
22232
  [Wh]: r.SRC_COLOR,
22303
- [Ma]: r.SRC_ALPHA,
22233
+ [ya]: r.SRC_ALPHA,
22304
22234
  [Jh]: r.SRC_ALPHA_SATURATE,
22305
22235
  [jh]: r.DST_COLOR,
22306
22236
  [qh]: r.DST_ALPHA,
22307
22237
  [Xh]: r.ONE_MINUS_SRC_COLOR,
22308
- [Sa]: r.ONE_MINUS_SRC_ALPHA,
22238
+ [Ma]: r.ONE_MINUS_SRC_ALPHA,
22309
22239
  [$h]: r.ONE_MINUS_DST_COLOR,
22310
22240
  [Yh]: r.ONE_MINUS_DST_ALPHA,
22311
22241
  [Kh]: r.CONSTANT_COLOR,
@@ -22360,16 +22290,16 @@ function X_(r, t) {
22360
22290
  }
22361
22291
  return;
22362
22292
  }
22363
- Q = Q || at, j = j || K, pt = pt || ft, (at !== p || Q !== M) && (r.blendEquationSeparate(le[at], le[Q]), p = at, M = Q), (K !== b || ft !== E || j !== D || pt !== T) && (r.blendFuncSeparate(Yt[K], Yt[ft], Yt[j], Yt[pt]), b = K, E = ft, D = j, T = pt), (It.equals(w) === !1 || se !== P) && (r.blendColor(It.r, It.g, It.b, se), w.copy(It), P = se), m = I, S = !1;
22293
+ Q = Q || at, j = j || K, pt = pt || ft, (at !== p || Q !== M) && (r.blendEquationSeparate(le[at], le[Q]), p = at, M = Q), (K !== b || ft !== E || j !== D || pt !== T) && (r.blendFuncSeparate(qt[K], qt[ft], qt[j], qt[pt]), b = K, E = ft, D = j, T = pt), (It.equals(w) === !1 || se !== P) && (r.blendColor(It.r, It.g, It.b, se), w.copy(It), P = se), m = I, S = !1;
22364
22294
  }
22365
22295
  function Ae(I, at) {
22366
22296
  I.side === xn ? St(r.CULL_FACE) : ct(r.CULL_FACE);
22367
22297
  let K = I.side === Le;
22368
- at && (K = !K), jt(K), I.blending === Ti && I.transparent === !1 ? L(On) : L(I.blending, I.blendEquation, I.blendSrc, I.blendDst, I.blendEquationAlpha, I.blendSrcAlpha, I.blendDstAlpha, I.blendColor, I.blendAlpha, I.premultipliedAlpha), a.setFunc(I.depthFunc), a.setTest(I.depthTest), a.setMask(I.depthWrite), s.setMask(I.colorWrite);
22298
+ at && (K = !K), Yt(K), I.blending === Ti && I.transparent === !1 ? L(On) : L(I.blending, I.blendEquation, I.blendSrc, I.blendDst, I.blendEquationAlpha, I.blendSrcAlpha, I.blendDstAlpha, I.blendColor, I.blendAlpha, I.premultipliedAlpha), a.setFunc(I.depthFunc), a.setTest(I.depthTest), a.setMask(I.depthWrite), s.setMask(I.colorWrite);
22369
22299
  const ft = I.stencilWrite;
22370
- o.setTest(ft), ft && (o.setMask(I.stencilWriteMask), o.setFunc(I.stencilFunc, I.stencilRef, I.stencilFuncMask), o.setOp(I.stencilFail, I.stencilZFail, I.stencilZPass)), Wt(I.polygonOffset, I.polygonOffsetFactor, I.polygonOffsetUnits), I.alphaToCoverage === !0 ? ct(r.SAMPLE_ALPHA_TO_COVERAGE) : St(r.SAMPLE_ALPHA_TO_COVERAGE);
22300
+ o.setTest(ft), ft && (o.setMask(I.stencilWriteMask), o.setFunc(I.stencilFunc, I.stencilRef, I.stencilFuncMask), o.setOp(I.stencilFail, I.stencilZFail, I.stencilZPass)), Gt(I.polygonOffset, I.polygonOffsetFactor, I.polygonOffsetUnits), I.alphaToCoverage === !0 ? ct(r.SAMPLE_ALPHA_TO_COVERAGE) : St(r.SAMPLE_ALPHA_TO_COVERAGE);
22371
22301
  }
22372
- function jt(I) {
22302
+ function Yt(I) {
22373
22303
  x !== I && (I ? r.frontFace(r.CW) : r.frontFace(r.CCW), x = I);
22374
22304
  }
22375
22305
  function re(I) {
@@ -22378,7 +22308,7 @@ function X_(r, t) {
22378
22308
  function _t(I) {
22379
22309
  I !== B && (z && r.lineWidth(I), B = I);
22380
22310
  }
22381
- function Wt(I, at, K) {
22311
+ function Gt(I, at, K) {
22382
22312
  I ? (ct(r.POLYGON_OFFSET_FILL), (F !== at || H !== K) && (r.polygonOffset(at, K), F = at, H = K)) : St(r.POLYGON_OFFSET_FILL);
22383
22313
  }
22384
22314
  function Tt(I) {
@@ -22493,15 +22423,15 @@ function X_(r, t) {
22493
22423
  },
22494
22424
  enable: ct,
22495
22425
  disable: St,
22496
- bindFramebuffer: qt,
22426
+ bindFramebuffer: Xt,
22497
22427
  drawBuffers: Ct,
22498
22428
  useProgram: oe,
22499
22429
  setBlending: L,
22500
22430
  setMaterial: Ae,
22501
- setFlipSided: jt,
22431
+ setFlipSided: Yt,
22502
22432
  setCullFace: re,
22503
22433
  setLineWidth: _t,
22504
- setPolygonOffset: Wt,
22434
+ setPolygonOffset: Gt,
22505
22435
  setScissorTest: Tt,
22506
22436
  activeTexture: Bt,
22507
22437
  bindTexture: me,
@@ -22682,15 +22612,15 @@ function q_(r, t, e, n, i, s, a) {
22682
22612
  e.bindTexture(r.TEXTURE_CUBE_MAP, O.__webglTexture, r.TEXTURE0 + v);
22683
22613
  }
22684
22614
  const st = {
22685
- [Di]: r.REPEAT,
22615
+ [Li]: r.REPEAT,
22686
22616
  [yn]: r.CLAMP_TO_EDGE,
22687
- [Da]: r.MIRRORED_REPEAT
22617
+ [La]: r.MIRRORED_REPEAT
22688
22618
  }, lt = {
22689
22619
  [ze]: r.NEAREST,
22690
22620
  [uu]: r.NEAREST_MIPMAP_NEAREST,
22691
22621
  [vr]: r.NEAREST_MIPMAP_LINEAR,
22692
22622
  [Be]: r.LINEAR,
22693
- [Cs]: r.LINEAR_MIPMAP_NEAREST,
22623
+ [Rs]: r.LINEAR_MIPMAP_NEAREST,
22694
22624
  [Nn]: r.LINEAR_MIPMAP_LINEAR
22695
22625
  }, yt = {
22696
22626
  [gu]: r.NEVER,
@@ -22703,7 +22633,7 @@ function q_(r, t, e, n, i, s, a) {
22703
22633
  [yu]: r.NOTEQUAL
22704
22634
  };
22705
22635
  function Ot(A, v) {
22706
- if (v.type === tn && t.has("OES_texture_float_linear") === !1 && (v.magFilter === Be || v.magFilter === Cs || v.magFilter === vr || v.magFilter === Nn || v.minFilter === Be || v.minFilter === Cs || v.minFilter === vr || v.minFilter === Nn) && console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(A, r.TEXTURE_WRAP_S, st[v.wrapS]), r.texParameteri(A, r.TEXTURE_WRAP_T, st[v.wrapT]), (A === r.TEXTURE_3D || A === r.TEXTURE_2D_ARRAY) && r.texParameteri(A, r.TEXTURE_WRAP_R, st[v.wrapR]), r.texParameteri(A, r.TEXTURE_MAG_FILTER, lt[v.magFilter]), r.texParameteri(A, r.TEXTURE_MIN_FILTER, lt[v.minFilter]), v.compareFunction && (r.texParameteri(A, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(A, r.TEXTURE_COMPARE_FUNC, yt[v.compareFunction])), t.has("EXT_texture_filter_anisotropic") === !0) {
22636
+ if (v.type === tn && t.has("OES_texture_float_linear") === !1 && (v.magFilter === Be || v.magFilter === Rs || v.magFilter === vr || v.magFilter === Nn || v.minFilter === Be || v.minFilter === Rs || v.minFilter === vr || v.minFilter === Nn) && console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(A, r.TEXTURE_WRAP_S, st[v.wrapS]), r.texParameteri(A, r.TEXTURE_WRAP_T, st[v.wrapT]), (A === r.TEXTURE_3D || A === r.TEXTURE_2D_ARRAY) && r.texParameteri(A, r.TEXTURE_WRAP_R, st[v.wrapR]), r.texParameteri(A, r.TEXTURE_MAG_FILTER, lt[v.magFilter]), r.texParameteri(A, r.TEXTURE_MIN_FILTER, lt[v.minFilter]), v.compareFunction && (r.texParameteri(A, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(A, r.TEXTURE_COMPARE_FUNC, yt[v.compareFunction])), t.has("EXT_texture_filter_anisotropic") === !0) {
22707
22637
  if (v.magFilter === ze || v.minFilter !== vr && v.minFilter !== Nn || v.type === tn && t.has("OES_texture_float_linear") === !1) return;
22708
22638
  if (v.anisotropy > 1 || n.get(v).__currentAnisotropy) {
22709
22639
  const O = t.get("EXT_texture_filter_anisotropic");
@@ -22917,17 +22847,17 @@ function q_(r, t, e, n, i, s, a) {
22917
22847
  const ut = Math.max(1, v.width >> W), Rt = Math.max(1, v.height >> W);
22918
22848
  $ === r.TEXTURE_3D || $ === r.TEXTURE_2D_ARRAY ? e.texImage3D($, W, gt, ut, Rt, v.depth, 0, vt, rt, null) : e.texImage2D($, W, gt, ut, Rt, 0, vt, rt, null);
22919
22849
  }
22920
- e.bindFramebuffer(r.FRAMEBUFFER, A), Wt(v) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, q, $, J.__webglTexture, 0, _t(v)) : ($ === r.TEXTURE_2D || $ >= r.TEXTURE_CUBE_MAP_POSITIVE_X && $ <= r.TEXTURE_CUBE_MAP_NEGATIVE_Z) && r.framebufferTexture2D(r.FRAMEBUFFER, q, $, J.__webglTexture, W), e.bindFramebuffer(r.FRAMEBUFFER, null);
22850
+ e.bindFramebuffer(r.FRAMEBUFFER, A), Gt(v) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, q, $, J.__webglTexture, 0, _t(v)) : ($ === r.TEXTURE_2D || $ >= r.TEXTURE_CUBE_MAP_POSITIVE_X && $ <= r.TEXTURE_CUBE_MAP_NEGATIVE_Z) && r.framebufferTexture2D(r.FRAMEBUFFER, q, $, J.__webglTexture, W), e.bindFramebuffer(r.FRAMEBUFFER, null);
22921
22851
  }
22922
- function qt(A, v, O) {
22852
+ function Xt(A, v, O) {
22923
22853
  if (r.bindRenderbuffer(r.RENDERBUFFER, A), v.depthBuffer) {
22924
22854
  const q = v.depthTexture, $ = q && q.isDepthTexture ? q.type : null, W = M(v.stencilBuffer, $), vt = v.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT, rt = _t(v);
22925
- Wt(v) ? o.renderbufferStorageMultisampleEXT(r.RENDERBUFFER, rt, W, v.width, v.height) : O ? r.renderbufferStorageMultisample(r.RENDERBUFFER, rt, W, v.width, v.height) : r.renderbufferStorage(r.RENDERBUFFER, W, v.width, v.height), r.framebufferRenderbuffer(r.FRAMEBUFFER, vt, r.RENDERBUFFER, A);
22855
+ Gt(v) ? o.renderbufferStorageMultisampleEXT(r.RENDERBUFFER, rt, W, v.width, v.height) : O ? r.renderbufferStorageMultisample(r.RENDERBUFFER, rt, W, v.width, v.height) : r.renderbufferStorage(r.RENDERBUFFER, W, v.width, v.height), r.framebufferRenderbuffer(r.FRAMEBUFFER, vt, r.RENDERBUFFER, A);
22926
22856
  } else {
22927
22857
  const q = v.textures;
22928
22858
  for (let $ = 0; $ < q.length; $++) {
22929
22859
  const W = q[$], vt = s.convert(W.format, W.colorSpace), rt = s.convert(W.type), gt = E(W.internalFormat, vt, rt, W.colorSpace), xt = _t(v);
22930
- O && Wt(v) === !1 ? r.renderbufferStorageMultisample(r.RENDERBUFFER, xt, gt, v.width, v.height) : Wt(v) ? o.renderbufferStorageMultisampleEXT(r.RENDERBUFFER, xt, gt, v.width, v.height) : r.renderbufferStorage(r.RENDERBUFFER, gt, v.width, v.height);
22860
+ O && Gt(v) === !1 ? r.renderbufferStorageMultisample(r.RENDERBUFFER, xt, gt, v.width, v.height) : Gt(v) ? o.renderbufferStorageMultisampleEXT(r.RENDERBUFFER, xt, gt, v.width, v.height) : r.renderbufferStorage(r.RENDERBUFFER, gt, v.width, v.height);
22931
22861
  }
22932
22862
  }
22933
22863
  r.bindRenderbuffer(r.RENDERBUFFER, null);
@@ -22940,9 +22870,9 @@ function q_(r, t, e, n, i, s, a) {
22940
22870
  q.__renderTarget = v, (!q.__webglTexture || v.depthTexture.image.width !== v.width || v.depthTexture.image.height !== v.height) && (v.depthTexture.image.width = v.width, v.depthTexture.image.height = v.height, v.depthTexture.needsUpdate = !0), X(v.depthTexture, 0);
22941
22871
  const $ = q.__webglTexture, W = _t(v);
22942
22872
  if (v.depthTexture.format === lr)
22943
- Wt(v) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, r.DEPTH_ATTACHMENT, r.TEXTURE_2D, $, 0, W) : r.framebufferTexture2D(r.FRAMEBUFFER, r.DEPTH_ATTACHMENT, r.TEXTURE_2D, $, 0);
22873
+ Gt(v) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, r.DEPTH_ATTACHMENT, r.TEXTURE_2D, $, 0, W) : r.framebufferTexture2D(r.FRAMEBUFFER, r.DEPTH_ATTACHMENT, r.TEXTURE_2D, $, 0);
22944
22874
  else if (v.depthTexture.format === cr)
22945
- Wt(v) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, r.DEPTH_STENCIL_ATTACHMENT, r.TEXTURE_2D, $, 0, W) : r.framebufferTexture2D(r.FRAMEBUFFER, r.DEPTH_STENCIL_ATTACHMENT, r.TEXTURE_2D, $, 0);
22875
+ Gt(v) ? o.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER, r.DEPTH_STENCIL_ATTACHMENT, r.TEXTURE_2D, $, 0, W) : r.framebufferTexture2D(r.FRAMEBUFFER, r.DEPTH_STENCIL_ATTACHMENT, r.TEXTURE_2D, $, 0);
22946
22876
  else
22947
22877
  throw new Error("Unknown depthTexture format");
22948
22878
  }
@@ -22966,7 +22896,7 @@ function q_(r, t, e, n, i, s, a) {
22966
22896
  v.__webglDepthbuffer = [];
22967
22897
  for (let q = 0; q < 6; q++)
22968
22898
  if (e.bindFramebuffer(r.FRAMEBUFFER, v.__webglFramebuffer[q]), v.__webglDepthbuffer[q] === void 0)
22969
- v.__webglDepthbuffer[q] = r.createRenderbuffer(), qt(v.__webglDepthbuffer[q], A, !1);
22899
+ v.__webglDepthbuffer[q] = r.createRenderbuffer(), Xt(v.__webglDepthbuffer[q], A, !1);
22970
22900
  else {
22971
22901
  const $ = A.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT, W = v.__webglDepthbuffer[q];
22972
22902
  r.bindRenderbuffer(r.RENDERBUFFER, W), r.framebufferRenderbuffer(r.FRAMEBUFFER, $, r.RENDERBUFFER, W);
@@ -22974,7 +22904,7 @@ function q_(r, t, e, n, i, s, a) {
22974
22904
  } else {
22975
22905
  const q = A.texture.mipmaps;
22976
22906
  if (q && q.length > 0 ? e.bindFramebuffer(r.FRAMEBUFFER, v.__webglFramebuffer[0]) : e.bindFramebuffer(r.FRAMEBUFFER, v.__webglFramebuffer), v.__webglDepthbuffer === void 0)
22977
- v.__webglDepthbuffer = r.createRenderbuffer(), qt(v.__webglDepthbuffer, A, !1);
22907
+ v.__webglDepthbuffer = r.createRenderbuffer(), Xt(v.__webglDepthbuffer, A, !1);
22978
22908
  else {
22979
22909
  const $ = A.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT, W = v.__webglDepthbuffer;
22980
22910
  r.bindRenderbuffer(r.RENDERBUFFER, W), r.framebufferRenderbuffer(r.FRAMEBUFFER, $, r.RENDERBUFFER, W);
@@ -22986,7 +22916,7 @@ function q_(r, t, e, n, i, s, a) {
22986
22916
  const q = n.get(A);
22987
22917
  v !== void 0 && St(q.__webglFramebuffer, A, A.texture, r.COLOR_ATTACHMENT0, r.TEXTURE_2D, 0), O !== void 0 && oe(A);
22988
22918
  }
22989
- function Yt(A) {
22919
+ function qt(A) {
22990
22920
  const v = A.texture, O = n.get(A), q = n.get(v);
22991
22921
  A.addEventListener("dispose", w);
22992
22922
  const $ = A.textures, W = A.isWebGLCubeRenderTarget === !0, vt = $.length > 1;
@@ -23011,7 +22941,7 @@ function q_(r, t, e, n, i, s, a) {
23011
22941
  const xt = n.get($[rt]);
23012
22942
  xt.__webglTexture === void 0 && (xt.__webglTexture = r.createTexture(), a.memory.textures++);
23013
22943
  }
23014
- if (A.samples > 0 && Wt(A) === !1) {
22944
+ if (A.samples > 0 && Gt(A) === !1) {
23015
22945
  O.__webglMultisampledFramebuffer = r.createFramebuffer(), O.__webglColorRenderbuffer = [], e.bindFramebuffer(r.FRAMEBUFFER, O.__webglMultisampledFramebuffer);
23016
22946
  for (let rt = 0; rt < $.length; rt++) {
23017
22947
  const gt = $[rt];
@@ -23019,7 +22949,7 @@ function q_(r, t, e, n, i, s, a) {
23019
22949
  const xt = s.convert(gt.format, gt.colorSpace), J = s.convert(gt.type), ut = E(gt.internalFormat, xt, J, gt.colorSpace, A.isXRRenderTarget === !0), Rt = _t(A);
23020
22950
  r.renderbufferStorageMultisample(r.RENDERBUFFER, Rt, ut, A.width, A.height), r.framebufferRenderbuffer(r.FRAMEBUFFER, r.COLOR_ATTACHMENT0 + rt, r.RENDERBUFFER, O.__webglColorRenderbuffer[rt]);
23021
22951
  }
23022
- r.bindRenderbuffer(r.RENDERBUFFER, null), A.depthBuffer && (O.__webglDepthRenderbuffer = r.createRenderbuffer(), qt(O.__webglDepthRenderbuffer, A, !0)), e.bindFramebuffer(r.FRAMEBUFFER, null);
22952
+ r.bindRenderbuffer(r.RENDERBUFFER, null), A.depthBuffer && (O.__webglDepthRenderbuffer = r.createRenderbuffer(), Xt(O.__webglDepthRenderbuffer, A, !0)), e.bindFramebuffer(r.FRAMEBUFFER, null);
23023
22953
  }
23024
22954
  }
23025
22955
  if (W) {
@@ -23058,10 +22988,10 @@ function q_(r, t, e, n, i, s, a) {
23058
22988
  }
23059
22989
  }
23060
22990
  }
23061
- const Ae = [], jt = [];
22991
+ const Ae = [], Yt = [];
23062
22992
  function re(A) {
23063
22993
  if (A.samples > 0) {
23064
- if (Wt(A) === !1) {
22994
+ if (Gt(A) === !1) {
23065
22995
  const v = A.textures, O = A.width, q = A.height;
23066
22996
  let $ = r.COLOR_BUFFER_BIT;
23067
22997
  const W = A.stencilBuffer ? r.DEPTH_STENCIL_ATTACHMENT : r.DEPTH_ATTACHMENT, vt = n.get(A), rt = v.length > 1;
@@ -23077,7 +23007,7 @@ function q_(r, t, e, n, i, s, a) {
23077
23007
  const J = n.get(v[xt]).__webglTexture;
23078
23008
  r.framebufferTexture2D(r.DRAW_FRAMEBUFFER, r.COLOR_ATTACHMENT0, r.TEXTURE_2D, J, 0);
23079
23009
  }
23080
- r.blitFramebuffer(0, 0, O, q, 0, 0, O, q, $, r.NEAREST), l === !0 && (Ae.length = 0, jt.length = 0, Ae.push(r.COLOR_ATTACHMENT0 + xt), A.depthBuffer && A.resolveDepthBuffer === !1 && (Ae.push(W), jt.push(W), r.invalidateFramebuffer(r.DRAW_FRAMEBUFFER, jt)), r.invalidateFramebuffer(r.READ_FRAMEBUFFER, Ae));
23010
+ r.blitFramebuffer(0, 0, O, q, 0, 0, O, q, $, r.NEAREST), l === !0 && (Ae.length = 0, Yt.length = 0, Ae.push(r.COLOR_ATTACHMENT0 + xt), A.depthBuffer && A.resolveDepthBuffer === !1 && (Ae.push(W), Yt.push(W), r.invalidateFramebuffer(r.DRAW_FRAMEBUFFER, Yt)), r.invalidateFramebuffer(r.READ_FRAMEBUFFER, Ae));
23081
23011
  }
23082
23012
  if (e.bindFramebuffer(r.READ_FRAMEBUFFER, null), e.bindFramebuffer(r.DRAW_FRAMEBUFFER, null), rt)
23083
23013
  for (let xt = 0; xt < v.length; xt++) {
@@ -23095,7 +23025,7 @@ function q_(r, t, e, n, i, s, a) {
23095
23025
  function _t(A) {
23096
23026
  return Math.min(i.maxSamples, A.samples);
23097
23027
  }
23098
- function Wt(A) {
23028
+ function Gt(A) {
23099
23029
  const v = n.get(A);
23100
23030
  return A.samples > 0 && t.has("WEBGL_multisampled_render_to_texture") === !0 && v.__useRenderToTexture !== !1;
23101
23031
  }
@@ -23105,12 +23035,12 @@ function q_(r, t, e, n, i, s, a) {
23105
23035
  }
23106
23036
  function Bt(A, v) {
23107
23037
  const O = A.colorSpace, q = A.format, $ = A.type;
23108
- return A.isCompressedTexture === !0 || A.isVideoTexture === !0 || O !== Ii && O !== Un && (Ht.getTransfer(O) === ee ? (q !== qe || $ !== hn) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", O)), v;
23038
+ return A.isCompressedTexture === !0 || A.isVideoTexture === !0 || O !== Di && O !== Un && (Ht.getTransfer(O) === ee ? (q !== qe || $ !== hn) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", O)), v;
23109
23039
  }
23110
23040
  function me(A) {
23111
23041
  return typeof HTMLImageElement < "u" && A instanceof HTMLImageElement ? (c.width = A.naturalWidth || A.width, c.height = A.naturalHeight || A.height) : typeof VideoFrame < "u" && A instanceof VideoFrame ? (c.width = A.displayWidth, c.height = A.displayHeight) : (c.width = A.width, c.height = A.height), c;
23112
23042
  }
23113
- this.allocateTextureUnit = F, this.resetTextureUnits = B, this.setTexture2D = X, this.setTexture2DArray = z, this.setTexture3D = Z, this.setTextureCube = G, this.rebindTextures = le, this.setupRenderTarget = Yt, this.updateRenderTargetMipmap = L, this.updateMultisampleRenderTarget = re, this.setupDepthRenderbuffer = oe, this.setupFrameBufferTexture = St, this.useMultisampledRTT = Wt;
23043
+ this.allocateTextureUnit = F, this.resetTextureUnits = B, this.setTexture2D = X, this.setTexture2DArray = z, this.setTexture3D = Z, this.setTextureCube = G, this.rebindTextures = le, this.setupRenderTarget = qt, this.updateRenderTargetMipmap = L, this.updateMultisampleRenderTarget = re, this.setupDepthRenderbuffer = oe, this.setupFrameBufferTexture = St, this.useMultisampledRTT = Gt;
23114
23044
  }
23115
23045
  function Y_(r, t) {
23116
23046
  function e(n, i = Un) {
@@ -23153,51 +23083,51 @@ function Y_(r, t) {
23153
23083
  if (n === ss) return s.COMPRESSED_RGBA_S3TC_DXT5_EXT;
23154
23084
  } else
23155
23085
  return null;
23156
- if (n === Ia || n === Ua || n === Na || n === Fa)
23086
+ if (n === Da || n === Ia || n === Ua || n === Na)
23157
23087
  if (s = t.get("WEBGL_compressed_texture_pvrtc"), s !== null) {
23158
- if (n === Ia) return s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
23159
- if (n === Ua) return s.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
23160
- if (n === Na) return s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
23161
- if (n === Fa) return s.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
23088
+ if (n === Da) return s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
23089
+ if (n === Ia) return s.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
23090
+ if (n === Ua) return s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
23091
+ if (n === Na) return s.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
23162
23092
  } else
23163
23093
  return null;
23164
- if (n === Oa || n === Ba || n === za)
23094
+ if (n === Fa || n === Oa || n === Ba)
23165
23095
  if (s = t.get("WEBGL_compressed_texture_etc"), s !== null) {
23166
- if (n === Oa || n === Ba) return a === ee ? s.COMPRESSED_SRGB8_ETC2 : s.COMPRESSED_RGB8_ETC2;
23167
- if (n === za) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : s.COMPRESSED_RGBA8_ETC2_EAC;
23096
+ if (n === Fa || n === Oa) return a === ee ? s.COMPRESSED_SRGB8_ETC2 : s.COMPRESSED_RGB8_ETC2;
23097
+ if (n === Ba) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : s.COMPRESSED_RGBA8_ETC2_EAC;
23168
23098
  } else
23169
23099
  return null;
23170
- if (n === Va || n === ka || n === Ha || n === Ga || n === Wa || n === Xa || n === qa || n === Ya || n === ja || n === $a || n === Ja || n === Ka || n === Za || n === Qa)
23100
+ if (n === za || n === Va || n === ka || n === Ha || n === Ga || n === Wa || n === Xa || n === qa || n === Ya || n === ja || n === $a || n === Ja || n === Ka || n === Za)
23171
23101
  if (s = t.get("WEBGL_compressed_texture_astc"), s !== null) {
23172
- if (n === Va) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : s.COMPRESSED_RGBA_ASTC_4x4_KHR;
23173
- if (n === ka) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : s.COMPRESSED_RGBA_ASTC_5x4_KHR;
23174
- if (n === Ha) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : s.COMPRESSED_RGBA_ASTC_5x5_KHR;
23175
- if (n === Ga) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : s.COMPRESSED_RGBA_ASTC_6x5_KHR;
23176
- if (n === Wa) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : s.COMPRESSED_RGBA_ASTC_6x6_KHR;
23177
- if (n === Xa) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : s.COMPRESSED_RGBA_ASTC_8x5_KHR;
23178
- if (n === qa) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : s.COMPRESSED_RGBA_ASTC_8x6_KHR;
23179
- if (n === Ya) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : s.COMPRESSED_RGBA_ASTC_8x8_KHR;
23180
- if (n === ja) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : s.COMPRESSED_RGBA_ASTC_10x5_KHR;
23181
- if (n === $a) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : s.COMPRESSED_RGBA_ASTC_10x6_KHR;
23182
- if (n === Ja) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : s.COMPRESSED_RGBA_ASTC_10x8_KHR;
23183
- if (n === Ka) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : s.COMPRESSED_RGBA_ASTC_10x10_KHR;
23184
- if (n === Za) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : s.COMPRESSED_RGBA_ASTC_12x10_KHR;
23185
- if (n === Qa) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : s.COMPRESSED_RGBA_ASTC_12x12_KHR;
23102
+ if (n === za) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : s.COMPRESSED_RGBA_ASTC_4x4_KHR;
23103
+ if (n === Va) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : s.COMPRESSED_RGBA_ASTC_5x4_KHR;
23104
+ if (n === ka) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : s.COMPRESSED_RGBA_ASTC_5x5_KHR;
23105
+ if (n === Ha) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : s.COMPRESSED_RGBA_ASTC_6x5_KHR;
23106
+ if (n === Ga) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : s.COMPRESSED_RGBA_ASTC_6x6_KHR;
23107
+ if (n === Wa) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : s.COMPRESSED_RGBA_ASTC_8x5_KHR;
23108
+ if (n === Xa) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : s.COMPRESSED_RGBA_ASTC_8x6_KHR;
23109
+ if (n === qa) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : s.COMPRESSED_RGBA_ASTC_8x8_KHR;
23110
+ if (n === Ya) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : s.COMPRESSED_RGBA_ASTC_10x5_KHR;
23111
+ if (n === ja) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : s.COMPRESSED_RGBA_ASTC_10x6_KHR;
23112
+ if (n === $a) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : s.COMPRESSED_RGBA_ASTC_10x8_KHR;
23113
+ if (n === Ja) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : s.COMPRESSED_RGBA_ASTC_10x10_KHR;
23114
+ if (n === Ka) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : s.COMPRESSED_RGBA_ASTC_12x10_KHR;
23115
+ if (n === Za) return a === ee ? s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : s.COMPRESSED_RGBA_ASTC_12x12_KHR;
23186
23116
  } else
23187
23117
  return null;
23188
- if (n === as || n === to || n === eo)
23118
+ if (n === as || n === Qa || n === to)
23189
23119
  if (s = t.get("EXT_texture_compression_bptc"), s !== null) {
23190
23120
  if (n === as) return a === ee ? s.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : s.COMPRESSED_RGBA_BPTC_UNORM_EXT;
23191
- if (n === to) return s.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
23192
- if (n === eo) return s.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;
23121
+ if (n === Qa) return s.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
23122
+ if (n === to) return s.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;
23193
23123
  } else
23194
23124
  return null;
23195
- if (n === $c || n === no || n === io || n === ro)
23125
+ if (n === $c || n === eo || n === no || n === io)
23196
23126
  if (s = t.get("EXT_texture_compression_rgtc"), s !== null) {
23197
23127
  if (n === as) return s.COMPRESSED_RED_RGTC1_EXT;
23198
- if (n === no) return s.COMPRESSED_SIGNED_RED_RGTC1_EXT;
23199
- if (n === io) return s.COMPRESSED_RED_GREEN_RGTC2_EXT;
23200
- if (n === ro) return s.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;
23128
+ if (n === eo) return s.COMPRESSED_SIGNED_RED_RGTC1_EXT;
23129
+ if (n === no) return s.COMPRESSED_RED_GREEN_RGTC2_EXT;
23130
+ if (n === io) return s.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;
23201
23131
  } else
23202
23132
  return null;
23203
23133
  return n === or ? r.UNSIGNED_INT_24_8 : r[n] !== void 0 ? r[n] : null;
@@ -23266,7 +23196,7 @@ class J_ {
23266
23196
  depthHeight: { value: e.w }
23267
23197
  }
23268
23198
  });
23269
- this.mesh = new fe(new Ss(20, 20), n);
23199
+ this.mesh = new fe(new Ms(20, 20), n);
23270
23200
  }
23271
23201
  return this.mesh;
23272
23202
  }
@@ -23308,13 +23238,13 @@ class K_ extends ni {
23308
23238
  let C = null, B = null;
23309
23239
  this.cameraAutoUpdate = !0, this.enabled = !1, this.isPresenting = !1, this.getController = function(Y) {
23310
23240
  let et = E[Y];
23311
- return et === void 0 && (et = new Ks(), E[Y] = et), et.getTargetRaySpace();
23241
+ return et === void 0 && (et = new Js(), E[Y] = et), et.getTargetRaySpace();
23312
23242
  }, this.getControllerGrip = function(Y) {
23313
23243
  let et = E[Y];
23314
- return et === void 0 && (et = new Ks(), E[Y] = et), et.getGripSpace();
23244
+ return et === void 0 && (et = new Js(), E[Y] = et), et.getGripSpace();
23315
23245
  }, this.getHand = function(Y) {
23316
23246
  let et = E[Y];
23317
- return et === void 0 && (et = new Ks(), E[Y] = et), et.getHandSpace();
23247
+ return et === void 0 && (et = new Js(), E[Y] = et), et.getHandSpace();
23318
23248
  };
23319
23249
  function F(Y) {
23320
23250
  const et = M.indexOf(Y.inputSource);
@@ -23352,12 +23282,12 @@ class K_ extends ni {
23352
23282
  if (p = t.getRenderTarget(), i.addEventListener("select", F), i.addEventListener("selectstart", F), i.addEventListener("selectend", F), i.addEventListener("squeeze", F), i.addEventListener("squeezestart", F), i.addEventListener("squeezeend", F), i.addEventListener("end", H), i.addEventListener("inputsourceschange", X), m.xrCompatible !== !0 && await e.makeXRCompatible(), T = t.getPixelRatio(), t.getSize(D), typeof XRWebGLBinding < "u" && "createProjectionLayer" in XRWebGLBinding.prototype) {
23353
23283
  let Mt = null, ct = null, St = null;
23354
23284
  m.depth && (St = m.stencil ? e.DEPTH24_STENCIL8 : e.DEPTH_COMPONENT24, Mt = m.stencil ? cr : lr, ct = m.stencil ? or : ti);
23355
- const qt = {
23285
+ const Xt = {
23356
23286
  colorFormat: e.RGBA8,
23357
23287
  depthFormat: St,
23358
23288
  scaleFactor: s
23359
23289
  };
23360
- u = new XRWebGLBinding(i, e), d = u.createProjectionLayer(qt), i.updateRenderState({ layers: [d] }), t.setPixelRatio(1), t.setSize(d.textureWidth, d.textureHeight, !1), b = new ei(
23290
+ u = new XRWebGLBinding(i, e), d = u.createProjectionLayer(Xt), i.updateRenderState({ layers: [d] }), t.setPixelRatio(1), t.setSize(d.textureWidth, d.textureHeight, !1), b = new ei(
23361
23291
  d.textureWidth,
23362
23292
  d.textureHeight,
23363
23293
  {
@@ -23409,12 +23339,12 @@ class K_ extends ni {
23409
23339
  const Mt = Y.added[et];
23410
23340
  let ct = M.indexOf(Mt);
23411
23341
  if (ct === -1) {
23412
- for (let qt = 0; qt < E.length; qt++)
23413
- if (qt >= M.length) {
23414
- M.push(Mt), ct = qt;
23342
+ for (let Xt = 0; Xt < E.length; Xt++)
23343
+ if (Xt >= M.length) {
23344
+ M.push(Mt), ct = Xt;
23415
23345
  break;
23416
- } else if (M[qt] === null) {
23417
- M[qt] = Mt, ct = qt;
23346
+ } else if (M[Xt] === null) {
23347
+ M[Xt] = Mt, ct = Xt;
23418
23348
  break;
23419
23349
  }
23420
23350
  if (ct === -1) break;
@@ -23426,11 +23356,11 @@ class K_ extends ni {
23426
23356
  const z = new R(), Z = new R();
23427
23357
  function G(Y, et, Mt) {
23428
23358
  z.setFromMatrixPosition(et.matrixWorld), Z.setFromMatrixPosition(Mt.matrixWorld);
23429
- const ct = z.distanceTo(Z), St = et.projectionMatrix.elements, qt = Mt.projectionMatrix.elements, Ct = St[14] / (St[10] - 1), oe = St[14] / (St[10] + 1), le = (St[9] + 1) / St[5], Yt = (St[9] - 1) / St[5], L = (St[8] - 1) / St[0], Ae = (qt[8] + 1) / qt[0], jt = Ct * L, re = Ct * Ae, _t = ct / (-L + Ae), Wt = _t * -L;
23430
- if (et.matrixWorld.decompose(Y.position, Y.quaternion, Y.scale), Y.translateX(Wt), Y.translateZ(_t), Y.matrixWorld.compose(Y.position, Y.quaternion, Y.scale), Y.matrixWorldInverse.copy(Y.matrixWorld).invert(), St[10] === -1)
23359
+ const ct = z.distanceTo(Z), St = et.projectionMatrix.elements, Xt = Mt.projectionMatrix.elements, Ct = St[14] / (St[10] - 1), oe = St[14] / (St[10] + 1), le = (St[9] + 1) / St[5], qt = (St[9] - 1) / St[5], L = (St[8] - 1) / St[0], Ae = (Xt[8] + 1) / Xt[0], Yt = Ct * L, re = Ct * Ae, _t = ct / (-L + Ae), Gt = _t * -L;
23360
+ if (et.matrixWorld.decompose(Y.position, Y.quaternion, Y.scale), Y.translateX(Gt), Y.translateZ(_t), Y.matrixWorld.compose(Y.position, Y.quaternion, Y.scale), Y.matrixWorldInverse.copy(Y.matrixWorld).invert(), St[10] === -1)
23431
23361
  Y.projectionMatrix.copy(et.projectionMatrix), Y.projectionMatrixInverse.copy(et.projectionMatrixInverse);
23432
23362
  else {
23433
- const Tt = Ct + _t, Bt = oe + _t, me = jt - Wt, A = re + (ct - Wt), v = le * oe / Bt * Tt, O = Yt * oe / Bt * Tt;
23363
+ const Tt = Ct + _t, Bt = oe + _t, me = Yt - Gt, A = re + (ct - Gt), v = le * oe / Bt * Tt, O = qt * oe / Bt * Tt;
23434
23364
  Y.projectionMatrix.makePerspective(me, A, v, O, Tt, Bt), Y.projectionMatrixInverse.copy(Y.projectionMatrix).invert();
23435
23365
  }
23436
23366
  }
@@ -23446,12 +23376,12 @@ class K_ extends ni {
23446
23376
  }), C = x.near, B = x.far), w.layers.mask = Y.layers.mask | 2, P.layers.mask = Y.layers.mask | 4, x.layers.mask = w.layers.mask | P.layers.mask;
23447
23377
  const ct = Y.parent, St = x.cameras;
23448
23378
  st(x, ct);
23449
- for (let qt = 0; qt < St.length; qt++)
23450
- st(St[qt], ct);
23379
+ for (let Xt = 0; Xt < St.length; Xt++)
23380
+ st(St[Xt], ct);
23451
23381
  St.length === 2 ? G(x, w, P) : x.projectionMatrix.copy(w.projectionMatrix), lt(Y, x, ct);
23452
23382
  };
23453
23383
  function lt(Y, et, Mt) {
23454
- Mt === null ? Y.matrix.copy(et.matrixWorld) : (Y.matrix.copy(Mt.matrixWorld), Y.matrix.invert(), Y.matrix.multiply(et.matrixWorld)), Y.matrix.decompose(Y.position, Y.quaternion, Y.scale), Y.updateMatrixWorld(!0), Y.projectionMatrix.copy(et.projectionMatrix), Y.projectionMatrixInverse.copy(et.projectionMatrixInverse), Y.isPerspectiveCamera && (Y.fov = Ui * 2 * Math.atan(1 / Y.projectionMatrix.elements[5]), Y.zoom = 1);
23384
+ Mt === null ? Y.matrix.copy(et.matrixWorld) : (Y.matrix.copy(Mt.matrixWorld), Y.matrix.invert(), Y.matrix.multiply(et.matrixWorld)), Y.matrix.decompose(Y.position, Y.quaternion, Y.scale), Y.updateMatrixWorld(!0), Y.projectionMatrix.copy(et.projectionMatrix), Y.projectionMatrixInverse.copy(et.projectionMatrixInverse), Y.isPerspectiveCamera && (Y.fov = Ii * 2 * Math.atan(1 / Y.projectionMatrix.elements[5]), Y.zoom = 1);
23455
23385
  }
23456
23386
  this.getCamera = function() {
23457
23387
  return x;
@@ -23485,8 +23415,8 @@ class K_ extends ni {
23485
23415
  L.depthStencilTexture
23486
23416
  ), t.setRenderTarget(b));
23487
23417
  }
23488
- let Yt = S[Ct];
23489
- Yt === void 0 && (Yt = new Ie(), Yt.layers.enable(Ct), Yt.viewport = new Vt(), S[Ct] = Yt), Yt.matrix.fromArray(oe.transform.matrix), Yt.matrix.decompose(Yt.position, Yt.quaternion, Yt.scale), Yt.projectionMatrix.fromArray(oe.projectionMatrix), Yt.projectionMatrixInverse.copy(Yt.projectionMatrix).invert(), Yt.viewport.set(le.x, le.y, le.width, le.height), Ct === 0 && (x.matrix.copy(Yt.matrix), x.matrix.decompose(x.position, x.quaternion, x.scale)), ct === !0 && x.cameras.push(Yt);
23418
+ let qt = S[Ct];
23419
+ qt === void 0 && (qt = new Ie(), qt.layers.enable(Ct), qt.viewport = new Vt(), S[Ct] = qt), qt.matrix.fromArray(oe.transform.matrix), qt.matrix.decompose(qt.position, qt.quaternion, qt.scale), qt.projectionMatrix.fromArray(oe.projectionMatrix), qt.projectionMatrixInverse.copy(qt.projectionMatrix).invert(), qt.viewport.set(le.x, le.y, le.width, le.height), Ct === 0 && (x.matrix.copy(qt.matrix), x.matrix.decompose(x.position, x.quaternion, x.scale)), ct === !0 && x.cameras.push(qt);
23490
23420
  }
23491
23421
  const St = i.enabledFeatures;
23492
23422
  if (St && St.includes("depth-sensing") && i.depthUsage == "gpu-optimized" && u) {
@@ -23663,7 +23593,7 @@ function tv(r, t, e, n) {
23663
23593
  dispose: p
23664
23594
  };
23665
23595
  }
23666
- class n0 {
23596
+ class e0 {
23667
23597
  /**
23668
23598
  * Constructs a new WebGL renderer.
23669
23599
  *
@@ -23718,9 +23648,9 @@ class n0 {
23718
23648
  let $t = !1;
23719
23649
  const Y = new Do();
23720
23650
  let et = !1, Mt = !1;
23721
- const ct = new Nt(), St = new Nt(), qt = new R(), Ct = new Vt(), oe = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
23651
+ const ct = new Nt(), St = new Nt(), Xt = new R(), Ct = new Vt(), oe = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
23722
23652
  let le = !1;
23723
- function Yt() {
23653
+ function qt() {
23724
23654
  return P === null ? G : 1;
23725
23655
  }
23726
23656
  let L = n;
@@ -23746,9 +23676,9 @@ class n0 {
23746
23676
  } catch (y) {
23747
23677
  throw console.error("THREE.WebGLRenderer: " + y.message), y;
23748
23678
  }
23749
- let jt, re, _t, Wt, Tt, Bt, me, A, v, O, q, $, W, vt, rt, gt, xt, J, ut, Rt, At, it, Dt, I;
23679
+ let Yt, re, _t, Gt, Tt, Bt, me, A, v, O, q, $, W, vt, rt, gt, xt, J, ut, Rt, At, it, Dt, I;
23750
23680
  function at() {
23751
- jt = new ug(L), jt.init(), it = new Y_(L, jt), re = new rg(L, jt, t, it), _t = new X_(L, jt), re.reverseDepthBuffer && d && _t.buffers.depth.setReversed(!0), Wt = new pg(L), Tt = new D_(), Bt = new q_(L, jt, _t, Tt, re, it, Wt), me = new ag(M), A = new hg(M), v = new yf(L), Dt = new ng(L, v), O = new dg(L, v, Wt, Dt), q = new gg(L, O, v, Wt), ut = new mg(L, re, Bt), gt = new sg(Tt), $ = new L_(M, me, A, jt, re, Dt, gt), W = new Q_(M, Tt), vt = new U_(), rt = new V_(jt), J = new eg(M, me, A, _t, q, f, l), xt = new G_(M, q, re), I = new tv(L, Wt, re, _t), Rt = new ig(L, jt, Wt), At = new fg(L, jt, Wt), Wt.programs = $.programs, M.capabilities = re, M.extensions = jt, M.properties = Tt, M.renderLists = vt, M.shadowMap = xt, M.state = _t, M.info = Wt;
23681
+ Yt = new ug(L), Yt.init(), it = new Y_(L, Yt), re = new rg(L, Yt, t, it), _t = new X_(L, Yt), re.reverseDepthBuffer && d && _t.buffers.depth.setReversed(!0), Gt = new pg(L), Tt = new D_(), Bt = new q_(L, Yt, _t, Tt, re, it, Gt), me = new ag(M), A = new hg(M), v = new yf(L), Dt = new ng(L, v), O = new dg(L, v, Gt, Dt), q = new gg(L, O, v, Gt), ut = new mg(L, re, Bt), gt = new sg(Tt), $ = new L_(M, me, A, Yt, re, Dt, gt), W = new Q_(M, Tt), vt = new U_(), rt = new V_(Yt), J = new eg(M, me, A, _t, q, f, l), xt = new G_(M, q, re), I = new tv(L, Gt, re, _t), Rt = new ig(L, Yt, Gt), At = new fg(L, Yt, Gt), Gt.programs = $.programs, M.capabilities = re, M.extensions = Yt, M.properties = Tt, M.renderLists = vt, M.shadowMap = xt, M.state = _t, M.info = Gt;
23752
23682
  }
23753
23683
  at();
23754
23684
  const K = new K_(M, L);
@@ -23757,10 +23687,10 @@ class n0 {
23757
23687
  }, this.getContextAttributes = function() {
23758
23688
  return L.getContextAttributes();
23759
23689
  }, this.forceContextLoss = function() {
23760
- const y = jt.get("WEBGL_lose_context");
23690
+ const y = Yt.get("WEBGL_lose_context");
23761
23691
  y && y.loseContext();
23762
23692
  }, this.forceContextRestore = function() {
23763
- const y = jt.get("WEBGL_lose_context");
23693
+ const y = Yt.get("WEBGL_lose_context");
23764
23694
  y && y.restoreContext();
23765
23695
  }, this.getPixelRatio = function() {
23766
23696
  return G;
@@ -23833,8 +23763,8 @@ class n0 {
23833
23763
  }
23834
23764
  function Q() {
23835
23765
  console.log("THREE.WebGLRenderer: Context Restored."), D = !1;
23836
- const y = Wt.autoReset, U = xt.enabled, V = xt.autoUpdate, k = xt.needsUpdate, N = xt.type;
23837
- at(), Wt.autoReset = y, xt.enabled = U, xt.autoUpdate = V, xt.needsUpdate = k, xt.type = N;
23766
+ const y = Gt.autoReset, U = xt.enabled, V = xt.autoUpdate, k = xt.needsUpdate, N = xt.type;
23767
+ at(), Gt.autoReset = y, xt.enabled = U, xt.autoUpdate = V, xt.needsUpdate = k, xt.type = N;
23838
23768
  }
23839
23769
  function j(y) {
23840
23770
  console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ", y.statusMessage);
@@ -23867,30 +23797,30 @@ class n0 {
23867
23797
  const ce = Qt - kt;
23868
23798
  if (ce < 0 || ce === 1 / 0) return;
23869
23799
  Dt.setup(N, k, mt, V, dt);
23870
- let ue, Xt = Rt;
23871
- if (dt !== null && (ue = v.get(dt), Xt = At, Xt.setIndex(ue)), N.isMesh)
23872
- k.wireframe === !0 ? (_t.setLineWidth(k.wireframeLinewidth * Yt()), Xt.setMode(L.LINES)) : Xt.setMode(L.TRIANGLES);
23800
+ let he, Wt = Rt;
23801
+ if (dt !== null && (he = v.get(dt), Wt = At, Wt.setIndex(he)), N.isMesh)
23802
+ k.wireframe === !0 ? (_t.setLineWidth(k.wireframeLinewidth * qt()), Wt.setMode(L.LINES)) : Wt.setMode(L.TRIANGLES);
23873
23803
  else if (N.isLine) {
23874
23804
  let wt = k.linewidth;
23875
- wt === void 0 && (wt = 1), _t.setLineWidth(wt * Yt()), N.isLineSegments ? Xt.setMode(L.LINES) : N.isLineLoop ? Xt.setMode(L.LINE_LOOP) : Xt.setMode(L.LINE_STRIP);
23876
- } else N.isPoints ? Xt.setMode(L.POINTS) : N.isSprite && Xt.setMode(L.TRIANGLES);
23805
+ wt === void 0 && (wt = 1), _t.setLineWidth(wt * qt()), N.isLineSegments ? Wt.setMode(L.LINES) : N.isLineLoop ? Wt.setMode(L.LINE_LOOP) : Wt.setMode(L.LINE_STRIP);
23806
+ } else N.isPoints ? Wt.setMode(L.POINTS) : N.isSprite && Wt.setMode(L.TRIANGLES);
23877
23807
  if (N.isBatchedMesh)
23878
23808
  if (N._multiDrawInstances !== null)
23879
- wi("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), Xt.renderMultiDrawInstances(N._multiDrawStarts, N._multiDrawCounts, N._multiDrawCount, N._multiDrawInstances);
23880
- else if (jt.get("WEBGL_multi_draw"))
23881
- Xt.renderMultiDraw(N._multiDrawStarts, N._multiDrawCounts, N._multiDrawCount);
23809
+ wi("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), Wt.renderMultiDrawInstances(N._multiDrawStarts, N._multiDrawCounts, N._multiDrawCount, N._multiDrawInstances);
23810
+ else if (Yt.get("WEBGL_multi_draw"))
23811
+ Wt.renderMultiDraw(N._multiDrawStarts, N._multiDrawCounts, N._multiDrawCount);
23882
23812
  else {
23883
23813
  const wt = N._multiDrawStarts, ye = N._multiDrawCounts, Jt = N._multiDrawCount, $e = dt ? v.get(dt).bytesPerElement : 1, ii = Tt.get(k).currentProgram.getUniforms();
23884
23814
  for (let Ne = 0; Ne < Jt; Ne++)
23885
- ii.setValue(L, "_gl_DrawID", Ne), Xt.render(wt[Ne] / $e, ye[Ne]);
23815
+ ii.setValue(L, "_gl_DrawID", Ne), Wt.render(wt[Ne] / $e, ye[Ne]);
23886
23816
  }
23887
23817
  else if (N.isInstancedMesh)
23888
- Xt.renderInstances(kt, ce, N.count);
23818
+ Wt.renderInstances(kt, ce, N.count);
23889
23819
  else if (V.isInstancedBufferGeometry) {
23890
23820
  const wt = V._maxInstanceCount !== void 0 ? V._maxInstanceCount : 1 / 0, ye = Math.min(V.instanceCount, wt);
23891
- Xt.renderInstances(kt, ce, ye);
23821
+ Wt.renderInstances(kt, ce, ye);
23892
23822
  } else
23893
- Xt.render(kt, ce);
23823
+ Wt.render(kt, ce);
23894
23824
  };
23895
23825
  function Zt(y, U, V) {
23896
23826
  y.transparent === !0 && y.side === xn && y.forceSinglePass === !1 ? (y.side = Le, y.needsUpdate = !0, _r(y, U, V), y.side = bn, y.needsUpdate = !0, _r(y, U, V), y.side = xn) : _r(y, U, V);
@@ -23927,7 +23857,7 @@ class n0 {
23927
23857
  }
23928
23858
  setTimeout(tt, 10);
23929
23859
  }
23930
- jt.get("KHR_parallel_shader_compile") !== null ? tt() : setTimeout(tt, 10);
23860
+ Yt.get("KHR_parallel_shader_compile") !== null ? tt() : setTimeout(tt, 10);
23931
23861
  });
23932
23862
  };
23933
23863
  let je = null;
@@ -23951,9 +23881,9 @@ class n0 {
23951
23881
  if (D === !0) return;
23952
23882
  if (y.matrixWorldAutoUpdate === !0 && y.updateMatrixWorld(), U.parent === null && U.matrixWorldAutoUpdate === !0 && U.updateMatrixWorld(), K.enabled === !0 && K.isPresenting === !0 && (K.cameraAutoUpdate === !0 && K.updateCamera(U), U = K.getCamera()), y.isScene === !0 && y.onBeforeRender(M, y, U, P), p = rt.get(y, E.length), p.init(U), E.push(p), St.multiplyMatrices(U.projectionMatrix, U.matrixWorldInverse), Y.setFromProjectionMatrix(St), Mt = this.localClippingEnabled, et = gt.init(this.clippingPlanes, Mt), m = vt.get(y, b.length), m.init(), b.push(m), K.enabled === !0 && K.isPresenting === !0) {
23953
23883
  const tt = M.xr.getDepthSensingMesh();
23954
- tt !== null && As(tt, U, -1 / 0, M.sortObjects);
23884
+ tt !== null && ws(tt, U, -1 / 0, M.sortObjects);
23955
23885
  }
23956
- As(y, U, 0, M.sortObjects), m.finish(), M.sortObjects === !0 && m.sort(st, lt), le = K.enabled === !1 || K.isPresenting === !1 || K.hasDepthSensing() === !1, le && J.addToRenderList(m, y), this.info.render.frame++, et === !0 && gt.beginShadows();
23886
+ ws(y, U, 0, M.sortObjects), m.finish(), M.sortObjects === !0 && m.sort(st, lt), le = K.enabled === !1 || K.isPresenting === !1 || K.hasDepthSensing() === !1, le && J.addToRenderList(m, y), this.info.render.frame++, et === !0 && gt.beginShadows();
23957
23887
  const V = p.state.shadowsArray;
23958
23888
  xt.render(V, y, U), et === !0 && gt.endShadows(), this.info.autoReset === !0 && this.info.reset();
23959
23889
  const k = m.opaque, N = m.transmissive;
@@ -23973,7 +23903,7 @@ class n0 {
23973
23903
  N.length > 0 && qo(k, N, y, U), le && J.render(y), Xo(m, y, U);
23974
23904
  P !== null && w === 0 && (Bt.updateMultisampleRenderTarget(P), Bt.updateRenderTargetMipmap(P)), y.isScene === !0 && y.onAfterRender(M, y, U), Dt.resetDefaultState(), S = -1, x = null, E.pop(), E.length > 0 ? (p = E[E.length - 1], et === !0 && gt.setGlobalState(M.clippingPlanes, p.state.camera)) : p = null, b.pop(), b.length > 0 ? m = b[b.length - 1] : m = null;
23975
23905
  };
23976
- function As(y, U, V, k) {
23906
+ function ws(y, U, V, k) {
23977
23907
  if (y.visible === !1) return;
23978
23908
  if (y.layers.test(U.layers)) {
23979
23909
  if (y.isGroup)
@@ -24001,7 +23931,7 @@ class n0 {
24001
23931
  }
24002
23932
  const tt = y.children;
24003
23933
  for (let ot = 0, mt = tt.length; ot < mt; ot++)
24004
- As(tt[ot], U, V, k);
23934
+ ws(tt[ot], U, V, k);
24005
23935
  }
24006
23936
  function Xo(y, U, V, k) {
24007
23937
  const N = y.opaque, tt = y.transmissive, ot = y.transparent;
@@ -24012,7 +23942,7 @@ class n0 {
24012
23942
  return;
24013
23943
  p.state.transmissionRenderTarget[k.id] === void 0 && (p.state.transmissionRenderTarget[k.id] = new ei(1, 1, {
24014
23944
  generateMipmaps: !0,
24015
- type: jt.has("EXT_color_buffer_half_float") || jt.has("EXT_color_buffer_float") ? dr : hn,
23945
+ type: Yt.has("EXT_color_buffer_half_float") || Yt.has("EXT_color_buffer_float") ? dr : hn,
24016
23946
  minFilter: Nn,
24017
23947
  samples: 4,
24018
23948
  stencilBuffer: s,
@@ -24027,13 +23957,13 @@ class n0 {
24027
23957
  const dt = M.toneMapping;
24028
23958
  M.toneMapping = Bn;
24029
23959
  const Pt = k.viewport;
24030
- if (k.viewport !== void 0 && (k.viewport = void 0), p.setupLightsView(k), et === !0 && gt.setGlobalState(M.clippingPlanes, k), gr(y, V, k), Bt.updateMultisampleRenderTarget(tt), Bt.updateRenderTargetMipmap(tt), jt.has("WEBGL_multisampled_render_to_texture") === !1) {
23960
+ if (k.viewport !== void 0 && (k.viewport = void 0), p.setupLightsView(k), et === !0 && gt.setGlobalState(M.clippingPlanes, k), gr(y, V, k), Bt.updateMultisampleRenderTarget(tt), Bt.updateRenderTargetMipmap(tt), Yt.has("WEBGL_multisampled_render_to_texture") === !1) {
24031
23961
  let Lt = !1;
24032
23962
  for (let Et = 0, kt = U.length; Et < kt; Et++) {
24033
- const Qt = U[Et], ce = Qt.object, ue = Qt.geometry, Xt = Qt.material, wt = Qt.group;
24034
- if (Xt.side === xn && ce.layers.test(k.layers)) {
24035
- const ye = Xt.side;
24036
- Xt.side = Le, Xt.needsUpdate = !0, Yo(ce, V, k, ue, Xt, wt), Xt.side = ye, Xt.needsUpdate = !0, Lt = !0;
23963
+ const Qt = U[Et], ce = Qt.object, he = Qt.geometry, Wt = Qt.material, wt = Qt.group;
23964
+ if (Wt.side === xn && ce.layers.test(k.layers)) {
23965
+ const ye = Wt.side;
23966
+ Wt.side = Le, Wt.needsUpdate = !0, Yo(ce, V, k, he, Wt, wt), Wt.side = ye, Wt.needsUpdate = !0, Lt = !0;
24037
23967
  }
24038
23968
  }
24039
23969
  Lt === !0 && (Bt.updateMultisampleRenderTarget(tt), Bt.updateRenderTargetMipmap(tt));
@@ -24078,28 +24008,28 @@ class n0 {
24078
24008
  }
24079
24009
  function Rh(y, U, V, k, N) {
24080
24010
  U.isScene !== !0 && (U = oe), Bt.resetTextureUnits();
24081
- const tt = U.fog, ot = k.isMeshStandardMaterial ? U.environment : null, mt = P === null ? M.outputColorSpace : P.isXRRenderTarget === !0 ? P.texture.colorSpace : Ii, dt = (k.isMeshStandardMaterial ? A : me).get(k.envMap || ot), Pt = k.vertexColors === !0 && !!V.attributes.color && V.attributes.color.itemSize === 4, Lt = !!V.attributes.tangent && (!!k.normalMap || k.anisotropy > 0), Et = !!V.morphAttributes.position, kt = !!V.morphAttributes.normal, Qt = !!V.morphAttributes.color;
24011
+ const tt = U.fog, ot = k.isMeshStandardMaterial ? U.environment : null, mt = P === null ? M.outputColorSpace : P.isXRRenderTarget === !0 ? P.texture.colorSpace : Di, dt = (k.isMeshStandardMaterial ? A : me).get(k.envMap || ot), Pt = k.vertexColors === !0 && !!V.attributes.color && V.attributes.color.itemSize === 4, Lt = !!V.attributes.tangent && (!!k.normalMap || k.anisotropy > 0), Et = !!V.morphAttributes.position, kt = !!V.morphAttributes.normal, Qt = !!V.morphAttributes.color;
24082
24012
  let ce = Bn;
24083
24013
  k.toneMapped && (P === null || P.isXRRenderTarget === !0) && (ce = M.toneMapping);
24084
- const ue = V.morphAttributes.position || V.morphAttributes.normal || V.morphAttributes.color, Xt = ue !== void 0 ? ue.length : 0, wt = Tt.get(k), ye = p.state.lights;
24014
+ const he = V.morphAttributes.position || V.morphAttributes.normal || V.morphAttributes.color, Wt = he !== void 0 ? he.length : 0, wt = Tt.get(k), ye = p.state.lights;
24085
24015
  if (et === !0 && (Mt === !0 || y !== x)) {
24086
24016
  const Re = y === x && k.id === S;
24087
24017
  gt.setState(k, y, Re);
24088
24018
  }
24089
24019
  let Jt = !1;
24090
- k.version === wt.__version ? (wt.needsLights && wt.lightsStateVersion !== ye.state.version || wt.outputColorSpace !== mt || N.isBatchedMesh && wt.batching === !1 || !N.isBatchedMesh && wt.batching === !0 || N.isBatchedMesh && wt.batchingColor === !0 && N.colorTexture === null || N.isBatchedMesh && wt.batchingColor === !1 && N.colorTexture !== null || N.isInstancedMesh && wt.instancing === !1 || !N.isInstancedMesh && wt.instancing === !0 || N.isSkinnedMesh && wt.skinning === !1 || !N.isSkinnedMesh && wt.skinning === !0 || N.isInstancedMesh && wt.instancingColor === !0 && N.instanceColor === null || N.isInstancedMesh && wt.instancingColor === !1 && N.instanceColor !== null || N.isInstancedMesh && wt.instancingMorph === !0 && N.morphTexture === null || N.isInstancedMesh && wt.instancingMorph === !1 && N.morphTexture !== null || wt.envMap !== dt || k.fog === !0 && wt.fog !== tt || wt.numClippingPlanes !== void 0 && (wt.numClippingPlanes !== gt.numPlanes || wt.numIntersection !== gt.numIntersection) || wt.vertexAlphas !== Pt || wt.vertexTangents !== Lt || wt.morphTargets !== Et || wt.morphNormals !== kt || wt.morphColors !== Qt || wt.toneMapping !== ce || wt.morphTargetsCount !== Xt) && (Jt = !0) : (Jt = !0, wt.__version = k.version);
24020
+ k.version === wt.__version ? (wt.needsLights && wt.lightsStateVersion !== ye.state.version || wt.outputColorSpace !== mt || N.isBatchedMesh && wt.batching === !1 || !N.isBatchedMesh && wt.batching === !0 || N.isBatchedMesh && wt.batchingColor === !0 && N.colorTexture === null || N.isBatchedMesh && wt.batchingColor === !1 && N.colorTexture !== null || N.isInstancedMesh && wt.instancing === !1 || !N.isInstancedMesh && wt.instancing === !0 || N.isSkinnedMesh && wt.skinning === !1 || !N.isSkinnedMesh && wt.skinning === !0 || N.isInstancedMesh && wt.instancingColor === !0 && N.instanceColor === null || N.isInstancedMesh && wt.instancingColor === !1 && N.instanceColor !== null || N.isInstancedMesh && wt.instancingMorph === !0 && N.morphTexture === null || N.isInstancedMesh && wt.instancingMorph === !1 && N.morphTexture !== null || wt.envMap !== dt || k.fog === !0 && wt.fog !== tt || wt.numClippingPlanes !== void 0 && (wt.numClippingPlanes !== gt.numPlanes || wt.numIntersection !== gt.numIntersection) || wt.vertexAlphas !== Pt || wt.vertexTangents !== Lt || wt.morphTargets !== Et || wt.morphNormals !== kt || wt.morphColors !== Qt || wt.toneMapping !== ce || wt.morphTargetsCount !== Wt) && (Jt = !0) : (Jt = !0, wt.__version = k.version);
24091
24021
  let $e = wt.currentProgram;
24092
24022
  Jt === !0 && ($e = _r(k, U, N));
24093
- let ii = !1, Ne = !1, Vi = !1;
24023
+ let ii = !1, Ne = !1, zi = !1;
24094
24024
  const ae = $e.getUniforms(), ke = wt.uniforms;
24095
- if (_t.useProgram($e.program) && (ii = !0, Ne = !0, Vi = !0), k.id !== S && (S = k.id, Ne = !0), ii || x !== y) {
24025
+ if (_t.useProgram($e.program) && (ii = !0, Ne = !0, zi = !0), k.id !== S && (S = k.id, Ne = !0), ii || x !== y) {
24096
24026
  _t.buffers.depth.getReversed() ? (ct.copy(y.projectionMatrix), Hu(ct), Gu(ct), ae.setValue(L, "projectionMatrix", ct)) : ae.setValue(L, "projectionMatrix", y.projectionMatrix), ae.setValue(L, "viewMatrix", y.matrixWorldInverse);
24097
24027
  const De = ae.map.cameraPosition;
24098
- De !== void 0 && De.setValue(L, qt.setFromMatrixPosition(y.matrixWorld)), re.logarithmicDepthBuffer && ae.setValue(
24028
+ De !== void 0 && De.setValue(L, Xt.setFromMatrixPosition(y.matrixWorld)), re.logarithmicDepthBuffer && ae.setValue(
24099
24029
  L,
24100
24030
  "logDepthBufFC",
24101
24031
  2 / (Math.log(y.far + 1) / Math.LN2)
24102
- ), (k.isMeshPhongMaterial || k.isMeshToonMaterial || k.isMeshLambertMaterial || k.isMeshBasicMaterial || k.isMeshStandardMaterial || k.isShaderMaterial) && ae.setValue(L, "isOrthographic", y.isOrthographicCamera === !0), x !== y && (x = y, Ne = !0, Vi = !0);
24032
+ ), (k.isMeshPhongMaterial || k.isMeshToonMaterial || k.isMeshLambertMaterial || k.isMeshBasicMaterial || k.isMeshStandardMaterial || k.isShaderMaterial) && ae.setValue(L, "isOrthographic", y.isOrthographicCamera === !0), x !== y && (x = y, Ne = !0, zi = !0);
24103
24033
  }
24104
24034
  if (N.isSkinnedMesh) {
24105
24035
  ae.setOptional(L, N, "bindMatrix"), ae.setOptional(L, N, "bindMatrixInverse");
@@ -24108,9 +24038,9 @@ class n0 {
24108
24038
  }
24109
24039
  N.isBatchedMesh && (ae.setOptional(L, N, "batchingTexture"), ae.setValue(L, "batchingTexture", N._matricesTexture, Bt), ae.setOptional(L, N, "batchingIdTexture"), ae.setValue(L, "batchingIdTexture", N._indirectTexture, Bt), ae.setOptional(L, N, "batchingColorTexture"), N._colorsTexture !== null && ae.setValue(L, "batchingColorTexture", N._colorsTexture, Bt));
24110
24040
  const He = V.morphAttributes;
24111
- if ((He.position !== void 0 || He.normal !== void 0 || He.color !== void 0) && ut.update(N, V, $e), (Ne || wt.receiveShadow !== N.receiveShadow) && (wt.receiveShadow = N.receiveShadow, ae.setValue(L, "receiveShadow", N.receiveShadow)), k.isMeshGouraudMaterial && k.envMap !== null && (ke.envMap.value = dt, ke.flipEnvMap.value = dt.isCubeTexture && dt.isRenderTargetTexture === !1 ? -1 : 1), k.isMeshStandardMaterial && k.envMap === null && U.environment !== null && (ke.envMapIntensity.value = U.environmentIntensity), Ne && (ae.setValue(L, "toneMappingExposure", M.toneMappingExposure), wt.needsLights && Ch(ke, Vi), tt && k.fog === !0 && W.refreshFogUniforms(ke, tt), W.refreshMaterialUniforms(ke, k, G, Z, p.state.transmissionRenderTarget[y.id]), os.upload(L, jo(wt), ke, Bt)), k.isShaderMaterial && k.uniformsNeedUpdate === !0 && (os.upload(L, jo(wt), ke, Bt), k.uniformsNeedUpdate = !1), k.isSpriteMaterial && ae.setValue(L, "center", N.center), ae.setValue(L, "modelViewMatrix", N.modelViewMatrix), ae.setValue(L, "normalMatrix", N.normalMatrix), ae.setValue(L, "modelMatrix", N.matrixWorld), k.isShaderMaterial || k.isRawShaderMaterial) {
24041
+ if ((He.position !== void 0 || He.normal !== void 0 || He.color !== void 0) && ut.update(N, V, $e), (Ne || wt.receiveShadow !== N.receiveShadow) && (wt.receiveShadow = N.receiveShadow, ae.setValue(L, "receiveShadow", N.receiveShadow)), k.isMeshGouraudMaterial && k.envMap !== null && (ke.envMap.value = dt, ke.flipEnvMap.value = dt.isCubeTexture && dt.isRenderTargetTexture === !1 ? -1 : 1), k.isMeshStandardMaterial && k.envMap === null && U.environment !== null && (ke.envMapIntensity.value = U.environmentIntensity), Ne && (ae.setValue(L, "toneMappingExposure", M.toneMappingExposure), wt.needsLights && Ch(ke, zi), tt && k.fog === !0 && W.refreshFogUniforms(ke, tt), W.refreshMaterialUniforms(ke, k, G, Z, p.state.transmissionRenderTarget[y.id]), os.upload(L, jo(wt), ke, Bt)), k.isShaderMaterial && k.uniformsNeedUpdate === !0 && (os.upload(L, jo(wt), ke, Bt), k.uniformsNeedUpdate = !1), k.isSpriteMaterial && ae.setValue(L, "center", N.center), ae.setValue(L, "modelViewMatrix", N.modelViewMatrix), ae.setValue(L, "normalMatrix", N.normalMatrix), ae.setValue(L, "modelMatrix", N.matrixWorld), k.isShaderMaterial || k.isRawShaderMaterial) {
24112
24042
  const Re = k.uniformsGroups;
24113
- for (let De = 0, Rs = Re.length; De < Rs; De++) {
24043
+ for (let De = 0, As = Re.length; De < As; De++) {
24114
24044
  const Vn = Re[De];
24115
24045
  I.update(Vn, $e), I.bind(Vn, $e);
24116
24046
  }
@@ -24225,23 +24155,23 @@ class n0 {
24225
24155
  this.copyTextureToTexture = function(y, U, V = null, k = null, N = 0, tt = null) {
24226
24156
  tt === null && (N !== 0 ? (wi("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), tt = N, N = 0) : tt = 0);
24227
24157
  let ot, mt, dt, Pt, Lt, Et, kt, Qt, ce;
24228
- const ue = y.isCompressedTexture ? y.mipmaps[tt] : y.image;
24158
+ const he = y.isCompressedTexture ? y.mipmaps[tt] : y.image;
24229
24159
  if (V !== null)
24230
24160
  ot = V.max.x - V.min.x, mt = V.max.y - V.min.y, dt = V.isBox3 ? V.max.z - V.min.z : 1, Pt = V.min.x, Lt = V.min.y, Et = V.isBox3 ? V.min.z : 0;
24231
24161
  else {
24232
24162
  const He = Math.pow(2, -N);
24233
- ot = Math.floor(ue.width * He), mt = Math.floor(ue.height * He), y.isDataArrayTexture ? dt = ue.depth : y.isData3DTexture ? dt = Math.floor(ue.depth * He) : dt = 1, Pt = 0, Lt = 0, Et = 0;
24163
+ ot = Math.floor(he.width * He), mt = Math.floor(he.height * He), y.isDataArrayTexture ? dt = he.depth : y.isData3DTexture ? dt = Math.floor(he.depth * He) : dt = 1, Pt = 0, Lt = 0, Et = 0;
24234
24164
  }
24235
24165
  k !== null ? (kt = k.x, Qt = k.y, ce = k.z) : (kt = 0, Qt = 0, ce = 0);
24236
- const Xt = it.convert(U.format), wt = it.convert(U.type);
24166
+ const Wt = it.convert(U.format), wt = it.convert(U.type);
24237
24167
  let ye;
24238
24168
  U.isData3DTexture ? (Bt.setTexture3D(U, 0), ye = L.TEXTURE_3D) : U.isDataArrayTexture || U.isCompressedArrayTexture ? (Bt.setTexture2DArray(U, 0), ye = L.TEXTURE_2D_ARRAY) : (Bt.setTexture2D(U, 0), ye = L.TEXTURE_2D), L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL, U.flipY), L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL, U.premultiplyAlpha), L.pixelStorei(L.UNPACK_ALIGNMENT, U.unpackAlignment);
24239
- const Jt = L.getParameter(L.UNPACK_ROW_LENGTH), $e = L.getParameter(L.UNPACK_IMAGE_HEIGHT), ii = L.getParameter(L.UNPACK_SKIP_PIXELS), Ne = L.getParameter(L.UNPACK_SKIP_ROWS), Vi = L.getParameter(L.UNPACK_SKIP_IMAGES);
24240
- L.pixelStorei(L.UNPACK_ROW_LENGTH, ue.width), L.pixelStorei(L.UNPACK_IMAGE_HEIGHT, ue.height), L.pixelStorei(L.UNPACK_SKIP_PIXELS, Pt), L.pixelStorei(L.UNPACK_SKIP_ROWS, Lt), L.pixelStorei(L.UNPACK_SKIP_IMAGES, Et);
24169
+ const Jt = L.getParameter(L.UNPACK_ROW_LENGTH), $e = L.getParameter(L.UNPACK_IMAGE_HEIGHT), ii = L.getParameter(L.UNPACK_SKIP_PIXELS), Ne = L.getParameter(L.UNPACK_SKIP_ROWS), zi = L.getParameter(L.UNPACK_SKIP_IMAGES);
24170
+ L.pixelStorei(L.UNPACK_ROW_LENGTH, he.width), L.pixelStorei(L.UNPACK_IMAGE_HEIGHT, he.height), L.pixelStorei(L.UNPACK_SKIP_PIXELS, Pt), L.pixelStorei(L.UNPACK_SKIP_ROWS, Lt), L.pixelStorei(L.UNPACK_SKIP_IMAGES, Et);
24241
24171
  const ae = y.isDataArrayTexture || y.isData3DTexture, ke = U.isDataArrayTexture || U.isData3DTexture;
24242
24172
  if (y.isDepthTexture) {
24243
- const He = Tt.get(y), Re = Tt.get(U), De = Tt.get(He.__renderTarget), Rs = Tt.get(Re.__renderTarget);
24244
- _t.bindFramebuffer(L.READ_FRAMEBUFFER, De.__webglFramebuffer), _t.bindFramebuffer(L.DRAW_FRAMEBUFFER, Rs.__webglFramebuffer);
24173
+ const He = Tt.get(y), Re = Tt.get(U), De = Tt.get(He.__renderTarget), As = Tt.get(Re.__renderTarget);
24174
+ _t.bindFramebuffer(L.READ_FRAMEBUFFER, De.__webglFramebuffer), _t.bindFramebuffer(L.DRAW_FRAMEBUFFER, As.__webglFramebuffer);
24245
24175
  for (let Vn = 0; Vn < dt; Vn++)
24246
24176
  ae && (L.framebufferTextureLayer(L.READ_FRAMEBUFFER, L.COLOR_ATTACHMENT0, Tt.get(y).__webglTexture, N, Et + Vn), L.framebufferTextureLayer(L.DRAW_FRAMEBUFFER, L.COLOR_ATTACHMENT0, Tt.get(U).__webglTexture, tt, ce + Vn)), L.blitFramebuffer(Pt, Lt, ot, mt, kt, Qt, ot, mt, L.DEPTH_BUFFER_BIT, L.NEAREST);
24247
24177
  _t.bindFramebuffer(L.READ_FRAMEBUFFER, null), _t.bindFramebuffer(L.DRAW_FRAMEBUFFER, null);
@@ -24252,8 +24182,8 @@ class n0 {
24252
24182
  ae ? L.framebufferTextureLayer(L.READ_FRAMEBUFFER, L.COLOR_ATTACHMENT0, He.__webglTexture, N, Et + De) : L.framebufferTexture2D(L.READ_FRAMEBUFFER, L.COLOR_ATTACHMENT0, L.TEXTURE_2D, He.__webglTexture, N), ke ? L.framebufferTextureLayer(L.DRAW_FRAMEBUFFER, L.COLOR_ATTACHMENT0, Re.__webglTexture, tt, ce + De) : L.framebufferTexture2D(L.DRAW_FRAMEBUFFER, L.COLOR_ATTACHMENT0, L.TEXTURE_2D, Re.__webglTexture, tt), N !== 0 ? L.blitFramebuffer(Pt, Lt, ot, mt, kt, Qt, ot, mt, L.COLOR_BUFFER_BIT, L.NEAREST) : ke ? L.copyTexSubImage3D(ye, tt, kt, Qt, ce + De, Pt, Lt, ot, mt) : L.copyTexSubImage2D(ye, tt, kt, Qt, Pt, Lt, ot, mt);
24253
24183
  _t.bindFramebuffer(L.READ_FRAMEBUFFER, null), _t.bindFramebuffer(L.DRAW_FRAMEBUFFER, null);
24254
24184
  } else
24255
- ke ? y.isDataTexture || y.isData3DTexture ? L.texSubImage3D(ye, tt, kt, Qt, ce, ot, mt, dt, Xt, wt, ue.data) : U.isCompressedArrayTexture ? L.compressedTexSubImage3D(ye, tt, kt, Qt, ce, ot, mt, dt, Xt, ue.data) : L.texSubImage3D(ye, tt, kt, Qt, ce, ot, mt, dt, Xt, wt, ue) : y.isDataTexture ? L.texSubImage2D(L.TEXTURE_2D, tt, kt, Qt, ot, mt, Xt, wt, ue.data) : y.isCompressedTexture ? L.compressedTexSubImage2D(L.TEXTURE_2D, tt, kt, Qt, ue.width, ue.height, Xt, ue.data) : L.texSubImage2D(L.TEXTURE_2D, tt, kt, Qt, ot, mt, Xt, wt, ue);
24256
- L.pixelStorei(L.UNPACK_ROW_LENGTH, Jt), L.pixelStorei(L.UNPACK_IMAGE_HEIGHT, $e), L.pixelStorei(L.UNPACK_SKIP_PIXELS, ii), L.pixelStorei(L.UNPACK_SKIP_ROWS, Ne), L.pixelStorei(L.UNPACK_SKIP_IMAGES, Vi), tt === 0 && U.generateMipmaps && L.generateMipmap(ye), _t.unbindTexture();
24185
+ ke ? y.isDataTexture || y.isData3DTexture ? L.texSubImage3D(ye, tt, kt, Qt, ce, ot, mt, dt, Wt, wt, he.data) : U.isCompressedArrayTexture ? L.compressedTexSubImage3D(ye, tt, kt, Qt, ce, ot, mt, dt, Wt, he.data) : L.texSubImage3D(ye, tt, kt, Qt, ce, ot, mt, dt, Wt, wt, he) : y.isDataTexture ? L.texSubImage2D(L.TEXTURE_2D, tt, kt, Qt, ot, mt, Wt, wt, he.data) : y.isCompressedTexture ? L.compressedTexSubImage2D(L.TEXTURE_2D, tt, kt, Qt, he.width, he.height, Wt, he.data) : L.texSubImage2D(L.TEXTURE_2D, tt, kt, Qt, ot, mt, Wt, wt, he);
24186
+ L.pixelStorei(L.UNPACK_ROW_LENGTH, Jt), L.pixelStorei(L.UNPACK_IMAGE_HEIGHT, $e), L.pixelStorei(L.UNPACK_SKIP_PIXELS, ii), L.pixelStorei(L.UNPACK_SKIP_ROWS, Ne), L.pixelStorei(L.UNPACK_SKIP_IMAGES, zi), tt === 0 && U.generateMipmaps && L.generateMipmap(ye), _t.unbindTexture();
24257
24187
  }, this.copyTextureToTexture3D = function(y, U, V = null, k = null, N = 0) {
24258
24188
  return wi('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(y, U, V, k, N);
24259
24189
  }, this.initRenderTarget = function(y) {
@@ -24348,7 +24278,7 @@ const av = (r, t, e = 10) => Math.abs(r.clientX - t.x) < e && Math.abs(r.clientY
24348
24278
  !1
24349
24279
  ), s = i.length ? i[0] : null;
24350
24280
  return !s || !s.object.visible ? null : s;
24351
- }, ga = 1e-6, ov = 2 * Math.PI, bh = ["x", "y", "z"], ur = [...bh, "nx", "ny", "nz"], lv = ["x", "z", "y", "nx", "nz", "ny"], cv = ["z", "x", "y", "nz", "nx", "ny"], fo = "Right", ls = "Top", po = "Front", mo = "Left", cs = "Bottom", go = "Back", hv = [
24281
+ }, ma = 1e-6, ov = 2 * Math.PI, bh = ["x", "y", "z"], ur = [...bh, "nx", "ny", "nz"], lv = ["x", "z", "y", "nx", "nz", "ny"], cv = ["z", "x", "y", "nz", "nx", "ny"], fo = "Right", ls = "Top", po = "Front", mo = "Left", cs = "Bottom", go = "Back", hv = [
24352
24282
  fo,
24353
24283
  ls,
24354
24284
  po,
@@ -24539,8 +24469,8 @@ const dv = (r, t = 2) => {
24539
24469
  const _ = h.length, m = t / (s * 2), p = t / (s * 6), b = 1 / _, E = new yd(u);
24540
24470
  return E.repeat.set(0.5 - 2 * m, b - 2 * p), E.offset.set(m, 1 - p), Object.assign(E, {
24541
24471
  colorSpace: ge,
24542
- wrapS: Di,
24543
- wrapT: Di,
24472
+ wrapS: Li,
24473
+ wrapT: Li,
24544
24474
  userData: {
24545
24475
  offsetX: m,
24546
24476
  offsetY: p,
@@ -24610,7 +24540,7 @@ function ko(r, t, e = 2, n = 2) {
24610
24540
  for (let w = 0; w <= t; w++)
24611
24541
  g = Math.PI / 2 * (T + w / t), _ = Math.cos(g), m = Math.sin(g), h.push(p + r * _, b + r * m, 0), u.push(E + a * _, M + l * m), w < t && (D = (t + 1) * T + w + 4, f.push(T, D, D + 1));
24612
24542
  }
24613
- return new he().setIndex(new pe(new Uint32Array(f), 1)).setAttribute(
24543
+ return new ue().setIndex(new pe(new Uint32Array(f), 1)).setAttribute(
24614
24544
  "position",
24615
24545
  new pe(new Float32Array(h), 3)
24616
24546
  ).setAttribute("uv", new pe(new Float32Array(u), 2));
@@ -24624,7 +24554,7 @@ const pv = (r, t) => {
24624
24554
  map: u,
24625
24555
  opacity: g,
24626
24556
  transparent: !0
24627
- }, p = n ? new Po(new Ms(m)) : new fe(a, new Fi(m)), b = c ? h : h[1];
24557
+ }, p = n ? new Po(new ys(m)) : new fe(a, new Ni(m)), b = c ? h : h[1];
24628
24558
  return p.position[b] = (c ? 1 : -1) * (n ? Th : 1), n || p.lookAt(e.copy(p.position).multiplyScalar(1.7)), p.scale.setScalar(f), p.renderOrder = 1, p.visible = d, p.userData = {
24629
24559
  scale: f,
24630
24560
  opacity: g,
@@ -24669,7 +24599,7 @@ const pv = (r, t) => {
24669
24599
  Vo(b, 6), u.map = b;
24670
24600
  } else
24671
24601
  u.color = i;
24672
- const m = e ? new Po(new Ms(u)) : new fe(h, new Fi(u)), p = _ * 3;
24602
+ const m = e ? new Po(new ys(u)) : new fe(h, new Ni(u)), p = _ * 3;
24673
24603
  return m.position.set(d[p], d[p + 1], d[p + 2]), e && m.position.normalize().multiplyScalar(1.7), m.scale.setScalar(a), m.lookAt(f.copy(m.position).multiplyScalar(2)), m.renderOrder = 1, m.userData = {
24674
24604
  color: i,
24675
24605
  opacity: s,
@@ -24727,7 +24657,7 @@ const pv = (r, t) => {
24727
24657
  Vo(M, e), d.map = M;
24728
24658
  } else
24729
24659
  d.color = s;
24730
- const b = n ? new Po(new Ms(d)) : new fe(u, new Fi(d)), E = p * 3;
24660
+ const b = n ? new Po(new ys(d)) : new fe(u, new Ni(d)), E = p * 3;
24731
24661
  return b.position.set(f[E], f[E + 1], f[E + 2]), n && b.position.normalize().multiplyScalar(1.7), b.scale.setScalar(o), b.up.copy(_), b.lookAt(g.copy(b.position).multiplyScalar(2)), !n && !b.position.y && (b.rotation.z = Math.PI / 2), b.renderOrder = 1, b.userData = {
24732
24662
  color: s,
24733
24663
  opacity: a,
@@ -24737,7 +24667,7 @@ const pv = (r, t) => {
24737
24667
  });
24738
24668
  };
24739
24669
  function _v(r, t = !1) {
24740
- const e = r[0].index !== null, n = new Set(Object.keys(r[0].attributes)), i = new Set(Object.keys(r[0].morphAttributes)), s = {}, a = {}, o = r[0].morphTargetsRelative, l = new he();
24670
+ const e = r[0].index !== null, n = new Set(Object.keys(r[0].attributes)), i = new Set(Object.keys(r[0].morphAttributes)), s = {}, a = {}, o = r[0].morphTargetsRelative, l = new ue();
24741
24671
  let c = 0;
24742
24672
  for (let h = 0; h < r.length; ++h) {
24743
24673
  const u = r[h];
@@ -24839,7 +24769,7 @@ const vv = (r, t) => {
24839
24769
  background: { enabled: n, color: i, opacity: s, hover: a }
24840
24770
  } = t;
24841
24771
  let o;
24842
- const l = new Fi({
24772
+ const l = new Ni({
24843
24773
  color: i,
24844
24774
  side: Le,
24845
24775
  opacity: s,
@@ -24871,7 +24801,7 @@ class wh extends rf {
24871
24801
  constructor() {
24872
24802
  super(), this.isLineSegmentsGeometry = !0, this.type = "LineSegmentsGeometry";
24873
24803
  const t = [-1, 2, 0, 1, 2, 0, -1, 1, 0, 1, 1, 0, -1, 0, 0, 1, 0, 0, -1, -1, 0, 1, -1, 0], e = [-1, 2, 1, 2, -1, 1, 1, 1, -1, -1, 1, -1, -1, -2, 1, -2], n = [0, 2, 1, 2, 3, 1, 2, 4, 3, 4, 5, 3, 4, 6, 5, 6, 7, 5];
24874
- this.setIndex(n), this.setAttribute("position", new Gt(t, 3)), this.setAttribute("uv", new Gt(e, 2));
24804
+ this.setIndex(n), this.setAttribute("position", new jt(t, 3)), this.setAttribute("uv", new jt(e, 2));
24875
24805
  }
24876
24806
  applyMatrix4(t) {
24877
24807
  const e = this.attributes.instanceStart, n = this.attributes.instanceEnd;
@@ -25398,7 +25328,7 @@ class Ho extends Tn {
25398
25328
  this.defines && (t === !0 !== this.alphaToCoverage && (this.needsUpdate = !0), t === !0 ? this.defines.USE_ALPHA_TO_COVERAGE = "" : delete this.defines.USE_ALPHA_TO_COVERAGE);
25399
25329
  }
25400
25330
  }
25401
- const _a = new Vt(), Lc = new R(), Dc = new R(), Me = new Vt(), Se = new Vt(), an = new Vt(), va = new R(), xa = new Nt(), Ee = new vf(), Ic = new R(), Qr = new nn(), ts = new rn(), on = new Vt();
25331
+ const ga = new Vt(), Lc = new R(), Dc = new R(), Me = new Vt(), Se = new Vt(), an = new Vt(), _a = new R(), va = new Nt(), Ee = new vf(), Ic = new R(), Qr = new nn(), ts = new rn(), on = new Vt();
25402
25332
  let ln, Qn;
25403
25333
  function Uc(r, t, e) {
25404
25334
  return on.set(0, 0, -t, 1).applyMatrix4(r.projectionMatrix), on.multiplyScalar(1 / on.w), on.x = Qn / e.width, on.y = Qn / e.height, on.applyMatrix4(r.projectionMatrixInverse), on.multiplyScalar(1 / on.w), Math.abs(Math.max(on.x, on.y));
@@ -25422,9 +25352,9 @@ function xv(r, t) {
25422
25352
  }
25423
25353
  function yv(r, t, e) {
25424
25354
  const n = t.projectionMatrix, i = r.material.resolution, s = r.matrixWorld, a = r.geometry, o = a.attributes.instanceStart, l = a.attributes.instanceEnd, c = Math.min(a.instanceCount, o.count), h = -t.near;
25425
- ln.at(1, an), an.w = 1, an.applyMatrix4(t.matrixWorldInverse), an.applyMatrix4(n), an.multiplyScalar(1 / an.w), an.x *= i.x / 2, an.y *= i.y / 2, an.z = 0, va.copy(an), xa.multiplyMatrices(t.matrixWorldInverse, s);
25355
+ ln.at(1, an), an.w = 1, an.applyMatrix4(t.matrixWorldInverse), an.applyMatrix4(n), an.multiplyScalar(1 / an.w), an.x *= i.x / 2, an.y *= i.y / 2, an.z = 0, _a.copy(an), va.multiplyMatrices(t.matrixWorldInverse, s);
25426
25356
  for (let u = 0, d = c; u < d; u++) {
25427
- if (Me.fromBufferAttribute(o, u), Se.fromBufferAttribute(l, u), Me.w = 1, Se.w = 1, Me.applyMatrix4(xa), Se.applyMatrix4(xa), Me.z > h && Se.z > h)
25357
+ if (Me.fromBufferAttribute(o, u), Se.fromBufferAttribute(l, u), Me.w = 1, Se.w = 1, Me.applyMatrix4(va), Se.applyMatrix4(va), Me.z > h && Se.z > h)
25428
25358
  continue;
25429
25359
  if (Me.z > h) {
25430
25360
  const p = Me.z - Se.z, b = (Me.z - h) / p;
@@ -25434,9 +25364,9 @@ function yv(r, t, e) {
25434
25364
  Se.lerp(Me, b);
25435
25365
  }
25436
25366
  Me.applyMatrix4(n), Se.applyMatrix4(n), Me.multiplyScalar(1 / Me.w), Se.multiplyScalar(1 / Se.w), Me.x *= i.x / 2, Me.y *= i.y / 2, Se.x *= i.x / 2, Se.y *= i.y / 2, Ee.start.copy(Me), Ee.start.z = 0, Ee.end.copy(Se), Ee.end.z = 0;
25437
- const f = Ee.closestPointToPointParameter(va, !0);
25367
+ const f = Ee.closestPointToPointParameter(_a, !0);
25438
25368
  Ee.at(f, Ic);
25439
- const g = zu.lerp(Me.z, Se.z, f), _ = g >= -1 && g <= 1, m = va.distanceTo(Ic) < Qn * 0.5;
25369
+ const g = zu.lerp(Me.z, Se.z, f), _ = g >= -1 && g <= 1, m = _a.distanceTo(Ic) < Qn * 0.5;
25440
25370
  if (_ && m) {
25441
25371
  Ee.start.fromBufferAttribute(o, u), Ee.end.fromBufferAttribute(l, u), Ee.start.applyMatrix4(s), Ee.end.applyMatrix4(s);
25442
25372
  const p = new R(), b = new R();
@@ -25493,7 +25423,7 @@ class Mv extends fe {
25493
25423
  }
25494
25424
  onBeforeRender(t) {
25495
25425
  const e = this.material.uniforms;
25496
- e && e.resolution && (t.getViewport(_a), this.material.uniforms.resolution.value.set(_a.z, _a.w));
25426
+ e && e.resolution && (t.getViewport(ga), this.material.uniforms.resolution.value.set(ga.z, ga.w));
25497
25427
  }
25498
25428
  }
25499
25429
  class Ah extends wh {
@@ -25556,11 +25486,11 @@ const Ev = (r) => {
25556
25486
  n.push(...s), t.enabled && n.push(...mv(r, i)), e.enabled && n.push(...gv(r, i, t.enabled ? 7 : 6));
25557
25487
  const a = vv(s, r), o = Ev(r);
25558
25488
  return [n, a, o];
25559
- }, Zi = (r, t = !0) => {
25489
+ }, Ki = (r, t = !0) => {
25560
25490
  const { material: e, userData: n } = r, { opacity: i, color: s, scale: a } = t ? n.hover : n;
25561
25491
  r.scale.setScalar(a), e.opacity = i, e.map ? fv(e.map, t) : e.color.set(s);
25562
25492
  }, Ei = /* @__PURE__ */ new Nt(), Nc = /* @__PURE__ */ new _f(), Tv = /* @__PURE__ */ new ht(), jn = /* @__PURE__ */ new R(), Fc = /* @__PURE__ */ new Vt();
25563
- class i0 extends ie {
25493
+ class n0 extends ie {
25564
25494
  /**
25565
25495
  * Creates a new ViewportGizmo instance.
25566
25496
  *
@@ -25784,7 +25714,7 @@ class i0 extends ie {
25784
25714
  }
25785
25715
  this._controls && (this._controls.enabled = !1);
25786
25716
  const n = this._clock.getDelta() * ov * this.speed;
25787
- this._quaternionStart.rotateTowards(this._quaternionEnd, n), t.applyQuaternion(this._quaternionStart).multiplyScalar(this._distance).add(this.target), e.rotateTowards(this._targetQuaternion, n), this._updateOrientation(), requestAnimationFrame(() => this.dispatchEvent({ type: "change" })), this._quaternionStart.angleTo(this._quaternionEnd) < ga && (this._controls && (this._controls.enabled = !0), this.animating = !1, this.dispatchEvent({ type: "end" }));
25717
+ this._quaternionStart.rotateTowards(this._quaternionEnd, n), t.applyQuaternion(this._quaternionStart).multiplyScalar(this._distance).add(this.target), e.rotateTowards(this._targetQuaternion, n), this._updateOrientation(), requestAnimationFrame(() => this.dispatchEvent({ type: "change" })), this._quaternionStart.angleTo(this._quaternionEnd) < ma && (this._controls && (this._controls.enabled = !0), this.animating = !1, this.dispatchEvent({ type: "end" }));
25788
25718
  }
25789
25719
  /**
25790
25720
  * Sets the camera orientation to look at the target from a specific axis.
@@ -25814,15 +25744,15 @@ class i0 extends ie {
25814
25744
  ), u = Nc.setFromVector3(h);
25815
25745
  u.theta = a - c.x, u.phi = uo(
25816
25746
  o - c.y,
25817
- ga,
25818
- Math.PI - ga
25747
+ ma,
25748
+ Math.PI - ma
25819
25749
  ), this.coordinateConversion(
25820
25750
  this.camera.position.setFromSpherical(u),
25821
25751
  !0
25822
25752
  ).add(this.target), this.camera.lookAt(this.target), this.quaternion.copy(this.camera.quaternion).invert(), this._updateOrientation(!1), this.dispatchEvent({ type: "change" });
25823
25753
  }, n = () => {
25824
25754
  if (document.removeEventListener("pointermove", e, !1), document.removeEventListener("pointerup", n, !1), !this._dragging) return this._handleClick(t);
25825
- this._focus && (Zi(this._focus, !1), this._focus = null), this._dragging = !1, this.dispatchEvent({ type: "end" });
25755
+ this._focus && (Ki(this._focus, !1), this._focus = null), this._dragging = !1, this.dispatchEvent({ type: "end" });
25826
25756
  };
25827
25757
  if (this.animating) return;
25828
25758
  t.preventDefault(), this._pointerStart.set(t.clientX, t.clientY);
@@ -25858,7 +25788,7 @@ class i0 extends ie {
25858
25788
  * @private
25859
25789
  */
25860
25790
  _onPointerLeave() {
25861
- !this.enabled || this._dragging || (this._background && Rc(this._background, !1), this._focus && Zi(this._focus, !1), this._domElement.style.cursor = "");
25791
+ !this.enabled || this._dragging || (this._background && Rc(this._background, !1), this._focus && Ki(this._focus, !1), this._domElement.style.cursor = "");
25862
25792
  }
25863
25793
  /**
25864
25794
  * Handles click events for axis selection.
@@ -25873,7 +25803,7 @@ class i0 extends ie {
25873
25803
  this._camera,
25874
25804
  this._intersections
25875
25805
  );
25876
- this._focus && (Zi(this._focus, !1), this._focus = null), e && (this._setOrientation(e.object.position), this.dispatchEvent({ type: "change" }));
25806
+ this._focus && (Ki(this._focus, !1), this._focus = null), e && (this._setOrientation(e.object.position), this.dispatchEvent({ type: "change" }));
25877
25807
  }
25878
25808
  /**
25879
25809
  * Handles hover effects for interactive elements.
@@ -25888,10 +25818,10 @@ class i0 extends ie {
25888
25818
  this._camera,
25889
25819
  this._intersections
25890
25820
  ), n = (e == null ? void 0 : e.object) || null;
25891
- this._focus !== n && (this._domElement.style.cursor = n ? "pointer" : "", this._focus && Zi(this._focus, !1), (this._focus = n) ? Zi(n, !0) : bc(this._options, this._intersections, this.camera));
25821
+ this._focus !== n && (this._domElement.style.cursor = n ? "pointer" : "", this._focus && Ki(this._focus, !1), (this._focus = n) ? Ki(n, !0) : bc(this._options, this._intersections, this.camera));
25892
25822
  }
25893
25823
  }
25894
- const wv = /^[og]\s*(.+)?/, Av = /^mtllib /, Rv = /^usemtl /, Cv = /^usemap /, Oc = /\s+/, Bc = new R(), ya = new R(), zc = new R(), Vc = new R(), We = new R(), es = new bt();
25824
+ const wv = /^[og]\s*(.+)?/, Av = /^mtllib /, Rv = /^usemtl /, Cv = /^usemap /, Oc = /\s+/, Bc = new R(), xa = new R(), zc = new R(), Vc = new R(), We = new R(), es = new bt();
25895
25825
  function Pv() {
25896
25826
  const r = {
25897
25827
  objects: [],
@@ -26001,7 +25931,7 @@ function Pv() {
26001
25931
  },
26002
25932
  addFaceNormal: function(t, e, n) {
26003
25933
  const i = this.vertices, s = this.object.geometry.normals;
26004
- Bc.fromArray(i, t), ya.fromArray(i, e), zc.fromArray(i, n), We.subVectors(zc, ya), Vc.subVectors(Bc, ya), We.cross(Vc), We.normalize(), s.push(We.x, We.y, We.z), s.push(We.x, We.y, We.z), s.push(We.x, We.y, We.z);
25934
+ Bc.fromArray(i, t), xa.fromArray(i, e), zc.fromArray(i, n), We.subVectors(zc, xa), Vc.subVectors(Bc, xa), We.cross(Vc), We.normalize(), s.push(We.x, We.y, We.z), s.push(We.x, We.y, We.z), s.push(We.x, We.y, We.z);
26005
25935
  },
26006
25936
  addColor: function(t, e, n) {
26007
25937
  const i = this.colors, s = this.object.geometry.colors;
@@ -26052,7 +25982,7 @@ function Pv() {
26052
25982
  };
26053
25983
  return r.startObject("", !1), r;
26054
25984
  }
26055
- class r0 extends An {
25985
+ class i0 extends An {
26056
25986
  /**
26057
25987
  * Constructs a new OBJ loader.
26058
25988
  *
@@ -26071,7 +26001,7 @@ class r0 extends An {
26071
26001
  * @param {onErrorCallback} onError - Executed when errors occur.
26072
26002
  */
26073
26003
  load(t, e, n, i) {
26074
- const s = this, a = new Ts(this.manager);
26004
+ const s = this, a = new bs(this.manager);
26075
26005
  a.setPath(this.path), a.setRequestHeader(this.requestHeader), a.setWithCredentials(this.withCredentials), a.load(t, function(o) {
26076
26006
  try {
26077
26007
  e(s.parse(o));
@@ -26200,28 +26130,28 @@ class r0 extends An {
26200
26130
  }
26201
26131
  }
26202
26132
  e.finalize();
26203
- const s = new Qi();
26133
+ const s = new Zi();
26204
26134
  if (s.materialLibraries = [].concat(e.materialLibraries), !(e.objects.length === 1 && e.objects[0].geometry.vertices.length === 0) === !0)
26205
26135
  for (let o = 0, l = e.objects.length; o < l; o++) {
26206
26136
  const c = e.objects[o], h = c.geometry, u = c.materials, d = h.type === "Line", f = h.type === "Points";
26207
26137
  let g = !1;
26208
26138
  if (h.vertices.length === 0) continue;
26209
- const _ = new he();
26210
- _.setAttribute("position", new Gt(h.vertices, 3)), h.normals.length > 0 && _.setAttribute("normal", new Gt(h.normals, 3)), h.colors.length > 0 && (g = !0, _.setAttribute("color", new Gt(h.colors, 3))), h.hasUVIndices === !0 && _.setAttribute("uv", new Gt(h.uvs, 2));
26139
+ const _ = new ue();
26140
+ _.setAttribute("position", new jt(h.vertices, 3)), h.normals.length > 0 && _.setAttribute("normal", new jt(h.normals, 3)), h.colors.length > 0 && (g = !0, _.setAttribute("color", new jt(h.colors, 3))), h.hasUVIndices === !0 && _.setAttribute("uv", new jt(h.uvs, 2));
26211
26141
  const m = [];
26212
26142
  for (let b = 0, E = u.length; b < E; b++) {
26213
26143
  const M = u[b], D = M.name + "_" + M.smooth + "_" + g;
26214
26144
  let T = e.materials[D];
26215
26145
  if (this.materials !== null) {
26216
- if (T = this.materials.create(M.name), d && T && !(T instanceof Ri)) {
26217
- const w = new Ri();
26146
+ if (T = this.materials.create(M.name), d && T && !(T instanceof ir)) {
26147
+ const w = new ir();
26218
26148
  Ve.prototype.copy.call(w, T), w.color.copy(T.color), T = w;
26219
- } else if (f && T && !(T instanceof tr)) {
26220
- const w = new tr({ size: 10, sizeAttenuation: !1 });
26149
+ } else if (f && T && !(T instanceof Qi)) {
26150
+ const w = new Qi({ size: 10, sizeAttenuation: !1 });
26221
26151
  Ve.prototype.copy.call(w, T), w.color.copy(T.color), w.map = T.map, T = w;
26222
26152
  }
26223
26153
  }
26224
- T === void 0 && (d ? T = new Ri() : f ? T = new tr({ size: 1, sizeAttenuation: !1 }) : T = new ph(), T.name = M.name, T.flatShading = !M.smooth, T.vertexColors = g, e.materials[D] = T), m.push(T);
26154
+ T === void 0 && (d ? T = new ir() : f ? T = new Qi({ size: 1, sizeAttenuation: !1 }) : T = new ph(), T.name = M.name, T.flatShading = !M.smooth, T.vertexColors = g, e.materials[D] = T), m.push(T);
26225
26155
  }
26226
26156
  let p;
26227
26157
  if (m.length > 1) {
@@ -26229,21 +26159,21 @@ class r0 extends An {
26229
26159
  const M = u[b];
26230
26160
  _.addGroup(M.groupStart, M.groupCount, b);
26231
26161
  }
26232
- d ? p = new ms(_, m) : f ? p = new ia(_, m) : p = new fe(_, m);
26162
+ d ? p = new ao(_, m) : f ? p = new na(_, m) : p = new fe(_, m);
26233
26163
  } else
26234
- d ? p = new ms(_, m[0]) : f ? p = new ia(_, m[0]) : p = new fe(_, m[0]);
26164
+ d ? p = new ao(_, m[0]) : f ? p = new na(_, m[0]) : p = new fe(_, m[0]);
26235
26165
  p.name = c.name, s.add(p);
26236
26166
  }
26237
26167
  else if (e.vertices.length > 0) {
26238
- const o = new tr({ size: 1, sizeAttenuation: !1 }), l = new he();
26239
- l.setAttribute("position", new Gt(e.vertices, 3)), e.colors.length > 0 && e.colors[0] !== void 0 && (l.setAttribute("color", new Gt(e.colors, 3)), o.vertexColors = !0);
26240
- const c = new ia(l, o);
26168
+ const o = new Qi({ size: 1, sizeAttenuation: !1 }), l = new ue();
26169
+ l.setAttribute("position", new jt(e.vertices, 3)), e.colors.length > 0 && e.colors[0] !== void 0 && (l.setAttribute("color", new jt(e.colors, 3)), o.vertexColors = !0);
26170
+ const c = new na(l, o);
26241
26171
  s.add(c);
26242
26172
  }
26243
26173
  return s;
26244
26174
  }
26245
26175
  }
26246
- class s0 extends An {
26176
+ class r0 extends An {
26247
26177
  constructor(t) {
26248
26178
  super(t);
26249
26179
  }
@@ -26257,7 +26187,7 @@ class s0 extends An {
26257
26187
  * @param {onErrorCallback} onError - Executed when errors occur.
26258
26188
  */
26259
26189
  load(t, e, n, i) {
26260
- const s = this, a = this.path === "" ? nf.extractUrlBase(t) : this.path, o = new Ts(this.manager);
26190
+ const s = this, a = this.path === "" ? nf.extractUrlBase(t) : this.path, o = new bs(this.manager);
26261
26191
  o.setPath(this.path), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials), o.load(t, function(l) {
26262
26192
  try {
26263
26193
  e(s.parse(l, a));
@@ -26309,7 +26239,7 @@ class s0 extends An {
26309
26239
  }
26310
26240
  class Lv {
26311
26241
  constructor(t = "", e = {}) {
26312
- this.baseUrl = t, this.options = e, this.materialsInfo = {}, this.materials = {}, this.materialsArray = [], this.nameLookup = {}, this.crossOrigin = "anonymous", this.side = this.options.side !== void 0 ? this.options.side : bn, this.wrap = this.options.wrap !== void 0 ? this.options.wrap : Di;
26242
+ this.baseUrl = t, this.options = e, this.materialsInfo = {}, this.materials = {}, this.materialsArray = [], this.nameLookup = {}, this.crossOrigin = "anonymous", this.side = this.options.side !== void 0 ? this.options.side : bn, this.wrap = this.options.wrap !== void 0 ? this.options.wrap : Li;
26313
26243
  }
26314
26244
  setCrossOrigin(t) {
26315
26245
  return this.crossOrigin = t, this;
@@ -26436,7 +26366,7 @@ class Lv {
26436
26366
  return e !== void 0 && (l.mapping = e), l;
26437
26367
  }
26438
26368
  }
26439
- class a0 extends An {
26369
+ class s0 extends An {
26440
26370
  /**
26441
26371
  * Constructs a new STL loader.
26442
26372
  *
@@ -26455,7 +26385,7 @@ class a0 extends An {
26455
26385
  * @param {onErrorCallback} onError - Executed when errors occur.
26456
26386
  */
26457
26387
  load(t, e, n, i) {
26458
- const s = this, a = new Ts(this.manager);
26388
+ const s = this, a = new bs(this.manager);
26459
26389
  a.setPath(this.path), a.setResponseType("arraybuffer"), a.setRequestHeader(this.requestHeader), a.setWithCredentials(this.withCredentials), a.load(t, function(o) {
26460
26390
  try {
26461
26391
  e(s.parse(o));
@@ -26490,7 +26420,7 @@ class a0 extends An {
26490
26420
  let d, f, g, _ = !1, m, p, b, E, M;
26491
26421
  for (let C = 0; C < 70; C++)
26492
26422
  h.getUint32(C, !1) == 1129270351 && h.getUint8(C + 4) == 82 && h.getUint8(C + 5) == 61 && (_ = !0, m = new Float32Array(u * 3 * 3), p = h.getUint8(C + 6) / 255, b = h.getUint8(C + 7) / 255, E = h.getUint8(C + 8) / 255, M = h.getUint8(C + 9) / 255);
26493
- const D = 84, T = 12 * 4 + 2, w = new he(), P = new Float32Array(u * 3 * 3), S = new Float32Array(u * 3 * 3), x = new bt();
26423
+ const D = 84, T = 12 * 4 + 2, w = new ue(), P = new Float32Array(u * 3 * 3), S = new Float32Array(u * 3 * 3), x = new bt();
26494
26424
  for (let C = 0; C < u; C++) {
26495
26425
  const B = D + C * T, F = h.getFloat32(B, !0), H = h.getFloat32(B + 4, !0), X = h.getFloat32(B + 8, !0);
26496
26426
  if (_) {
@@ -26505,7 +26435,7 @@ class a0 extends An {
26505
26435
  return w.setAttribute("position", new pe(P, 3)), w.setAttribute("normal", new pe(S, 3)), _ && (w.setAttribute("color", new pe(m, 3)), w.hasColors = !0, w.alpha = M), w;
26506
26436
  }
26507
26437
  function s(c) {
26508
- const h = new he(), u = /solid([\s\S]*?)endsolid/g, d = /facet([\s\S]*?)endfacet/g, f = /solid\s(.+)/;
26438
+ const h = new ue(), u = /solid([\s\S]*?)endsolid/g, d = /facet([\s\S]*?)endfacet/g, f = /solid\s(.+)/;
26509
26439
  let g = 0;
26510
26440
  const _ = /[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source, m = new RegExp("vertex" + _ + _ + _, "g"), p = new RegExp("normal" + _ + _ + _, "g"), b = [], E = [], M = [], D = new R();
26511
26441
  let T, w = 0, P = 0, S = 0;
@@ -26524,7 +26454,7 @@ class a0 extends An {
26524
26454
  const B = P, F = S - P;
26525
26455
  h.userData.groupNames = M, h.addGroup(B, F, w), w++;
26526
26456
  }
26527
- return h.setAttribute("position", new Gt(b, 3)), h.setAttribute("normal", new Gt(E, 3)), h;
26457
+ return h.setAttribute("position", new jt(b, 3)), h.setAttribute("normal", new jt(E, 3)), h;
26528
26458
  }
26529
26459
  function a(c) {
26530
26460
  return typeof c != "string" ? new TextDecoder().decode(c) : c;
@@ -26543,13 +26473,13 @@ class a0 extends An {
26543
26473
  }
26544
26474
  }
26545
26475
  export {
26546
- bs as $,
26476
+ Es as $,
26547
26477
  au as A,
26548
26478
  nn as B,
26549
26479
  bt as C,
26550
26480
  Jv as D,
26551
26481
  Ye as E,
26552
- Ts as F,
26482
+ bs as F,
26553
26483
  Qv as G,
26554
26484
  Yv as H,
26555
26485
  Ov as I,
@@ -26558,7 +26488,7 @@ export {
26558
26488
  $d as L,
26559
26489
  Dv as M,
26560
26490
  Ht as N,
26561
- r0 as O,
26491
+ i0 as O,
26562
26492
  Ie as P,
26563
26493
  ht as Q,
26564
26494
  bn as R,
@@ -26566,32 +26496,31 @@ export {
26566
26496
  fh as T,
26567
26497
  Fo as U,
26568
26498
  R as V,
26569
- n0 as W,
26570
- i0 as X,
26499
+ e0 as W,
26500
+ n0 as X,
26571
26501
  jv as Y,
26572
26502
  Sn as Z,
26573
- _s as _,
26503
+ gs as _,
26574
26504
  Fh as a,
26575
26505
  md as a0,
26576
- Ri as a1,
26506
+ ir as a1,
26577
26507
  zv as a2,
26578
26508
  lh as a3,
26579
- ms as a4,
26509
+ ao as a4,
26580
26510
  oh as a5,
26581
- Di as a6,
26511
+ Li as a6,
26582
26512
  yn as a7,
26583
26513
  ie as a8,
26584
26514
  _h as a9,
26585
26515
  cn as aA,
26586
26516
  be as aB,
26587
- gs as aC,
26588
- Es as aD,
26517
+ ms as aC,
26518
+ Ss as aD,
26589
26519
  rn as aE,
26590
26520
  t0 as aF,
26591
- e0 as aG,
26592
- Iv as aH,
26593
- _f as aI,
26594
- fr as aJ,
26521
+ Iv as aG,
26522
+ _f as aH,
26523
+ fr as aI,
26595
26524
  pr as aa,
26596
26525
  Uo as ab,
26597
26526
  hh as ac,
@@ -26602,24 +26531,24 @@ export {
26602
26531
  Fv as ah,
26603
26532
  Nv as ai,
26604
26533
  Gv as aj,
26605
- Ii as ak,
26534
+ Di as ak,
26606
26535
  Vv as al,
26607
26536
  Il as am,
26608
26537
  Zv as an,
26609
26538
  sh as ao,
26610
26539
  vr as ap,
26611
- Cs as aq,
26540
+ Rs as aq,
26612
26541
  uu as ar,
26613
26542
  Be as as,
26614
26543
  ze as at,
26615
- Da as au,
26544
+ La as au,
26616
26545
  Ve as av,
26617
26546
  ne as aw,
26618
26547
  kv as ax,
26619
26548
  hs as ay,
26620
- so as az,
26549
+ ro as az,
26621
26550
  ge as b,
26622
- Ss as c,
26551
+ Ms as c,
26623
26552
  Hv as d,
26624
26553
  fe as e,
26625
26554
  Kv as f,
@@ -26630,17 +26559,17 @@ export {
26630
26559
  Nt as k,
26631
26560
  zu as l,
26632
26561
  Sd as m,
26633
- Qi as n,
26634
- a0 as o,
26635
- s0 as p,
26562
+ Zi as n,
26563
+ s0 as o,
26564
+ r0 as p,
26636
26565
  An as q,
26637
- he as r,
26638
- Gt as s,
26639
- tr as t,
26640
- ia as u,
26566
+ ue as r,
26567
+ jt as s,
26568
+ Qi as t,
26569
+ na as u,
26641
26570
  qv as v,
26642
26571
  Nn as w,
26643
26572
  nf as x,
26644
- Fi as y,
26573
+ Ni as y,
26645
26574
  Zd as z
26646
26575
  };