@realsee/dnalogel 3.49.11 → 3.49.12

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.
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ var ee = (e, n, t) => new Promise((i, r) => {
38
38
  });
39
39
  import { Camera as vE, Five as Dn, Subscribe as Na } from "@realsee/five";
40
40
  import * as C from "three";
41
- import { Vector3 as Se, Matrix4 as Dl, Object3D as yE, LineSegments as bE, Group as Zo, Raycaster as Fa, MeshBasicMaterial as Yl, CanvasTexture as AE, AnimationMixer as wE, Color as Va, TextureLoader as Z1, Vector2 as Fn, PlaneGeometry as xE, sRGBEncoding as ME, LinearFilter as Ip, Mesh as Ll, CurvePath as EE, LineCurve3 as CE, TubeGeometry as PE, ShaderMaterial as J1, SphereGeometry as _E, DoubleSide as q1, RingGeometry as IE, Quaternion as Km, Euler as gv, VideoTexture as SE, Vector4 as TE, SphereBufferGeometry as DE } from "three";
41
+ import { Vector3 as Se, Matrix4 as Dl, Object3D as yE, LineSegments as bE, Group as Jo, Raycaster as Fa, MeshBasicMaterial as Yl, CanvasTexture as AE, AnimationMixer as wE, Color as Va, TextureLoader as Z1, Vector2 as Fn, PlaneGeometry as xE, sRGBEncoding as ME, LinearFilter as Ip, Mesh as Ll, CurvePath as EE, LineCurve3 as CE, TubeGeometry as PE, ShaderMaterial as J1, SphereGeometry as _E, DoubleSide as q1, RingGeometry as IE, Quaternion as Km, Euler as gv, VideoTexture as SE, Vector4 as TE, SphereBufferGeometry as DE } from "three";
42
42
  import { CSS3DSprite as LE, CSS3DObject as Sp } from "three/examples/jsm/renderers/CSS3DRenderer";
43
43
  import Md from "hammerjs";
44
44
  import { Line as kE, THREE_Line2 as RE, LineMaterial as OE } from "@realsee/five/line";
@@ -48,7 +48,7 @@ import zE from "earcut";
48
48
  import { GLTFLoader as BE } from "@realsee/five/gltf-loader";
49
49
  function NE() {
50
50
  console.debug(
51
- "%c %c@realsee/dnalogel %cv3.49.11",
51
+ "%c %c@realsee/dnalogel %cv3.49.12",
52
52
  [
53
53
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
54
54
  "background-repeat: no-repeat",
@@ -245,7 +245,7 @@ var Ki = Object.freeze({
245
245
  }
246
246
  };
247
247
  }
248
- }), No = function() {
248
+ }), Fo = function() {
249
249
  return performance.now();
250
250
  }, ew = (
251
251
  /** @class */
@@ -265,7 +265,7 @@ var Ki = Object.freeze({
265
265
  }, e.prototype.remove = function(n) {
266
266
  delete this._tweens[n.getId()], delete this._tweensAddedDuringUpdate[n.getId()];
267
267
  }, e.prototype.update = function(n, t) {
268
- n === void 0 && (n = No()), t === void 0 && (t = !1);
268
+ n === void 0 && (n = Fo()), t === void 0 && (t = !1);
269
269
  var i = Object.keys(this._tweens);
270
270
  if (i.length === 0)
271
271
  return !1;
@@ -350,7 +350,7 @@ var Ki = Object.freeze({
350
350
  }, e.prototype.dynamic = function(n) {
351
351
  return n === void 0 && (n = !1), this._isDynamic = n, this;
352
352
  }, e.prototype.start = function(n, t) {
353
- if (n === void 0 && (n = No()), t === void 0 && (t = !1), this._isPlaying)
353
+ if (n === void 0 && (n = Fo()), t === void 0 && (t = !1), this._isPlaying)
354
354
  return this;
355
355
  if (this._group && this._group.add(this), this._repeat = this._initialRepeat, this._reversed) {
356
356
  this._reversed = !1;
@@ -410,9 +410,9 @@ var Ki = Object.freeze({
410
410
  }, e.prototype.end = function() {
411
411
  return this._goToEnd = !0, this.update(1 / 0), this;
412
412
  }, e.prototype.pause = function(n) {
413
- return n === void 0 && (n = No()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = n, this._group && this._group.remove(this), this);
413
+ return n === void 0 && (n = Fo()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = n, this._group && this._group.remove(this), this);
414
414
  }, e.prototype.resume = function(n) {
415
- return n === void 0 && (n = No()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += n - this._pauseStart, this._pauseStart = 0, this._group && this._group.add(this), this);
415
+ return n === void 0 && (n = Fo()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += n - this._pauseStart, this._pauseStart = 0, this._group && this._group.add(this), this);
416
416
  }, e.prototype.stopChainedTweens = function() {
417
417
  for (var n = 0, t = this._chainedTweens.length; n < t; n++)
418
418
  this._chainedTweens[n].stop();
@@ -449,7 +449,7 @@ var Ki = Object.freeze({
449
449
  return this._onStopCallback = n, this;
450
450
  }, e.prototype.update = function(n, t) {
451
451
  var i = this, r;
452
- if (n === void 0 && (n = No()), t === void 0 && (t = !0), this._isPaused)
452
+ if (n === void 0 && (n = Fo()), t === void 0 && (t = !0), this._isPaused)
453
453
  return !0;
454
454
  var s, o = this._startTime + this._duration;
455
455
  if (!this._goToEnd && !this._isPlaying) {
@@ -499,7 +499,7 @@ var Ki = Object.freeze({
499
499
  Easing: Ki,
500
500
  Group: ew,
501
501
  Interpolation: Bs,
502
- now: No,
502
+ now: Fo,
503
503
  Sequence: $m,
504
504
  nextId: UE,
505
505
  Tween: Ed,
@@ -1783,7 +1783,7 @@ class rw extends C.Object3D {
1783
1783
  (t = this.planeMesh.material.map) == null || t.dispose();
1784
1784
  }
1785
1785
  }
1786
- const MC = 16777215, Mv = 16777215, EC = 2, ia = 0.6;
1786
+ const MC = 16777215, Mv = 16777215, EC = 2, ra = 0.6;
1787
1787
  class sw extends kE {
1788
1788
  constructor(...n) {
1789
1789
  super(...n);
@@ -1841,7 +1841,7 @@ Object.assign === void 0 && (Object.assign = function(e) {
1841
1841
  }
1842
1842
  return n;
1843
1843
  });
1844
- const _C = "117", IC = 0, Ev = 1, SC = 2, ow = 1, TC = 2, Cl = 3, Vc = 0, xn = 1, Cd = 2, aw = 1, ts = 0, Ol = 1, Cv = 2, Pv = 3, _v = 4, DC = 5, Oo = 100, LC = 101, kC = 102, Iv = 103, Sv = 104, RC = 200, OC = 201, zC = 202, BC = 203, lw = 204, cw = 205, NC = 206, FC = 207, VC = 208, GC = 209, jC = 210, HC = 0, UC = 1, WC = 2, kp = 3, QC = 4, YC = 5, XC = 6, ZC = 7, Pd = 0, JC = 1, qC = 2, zl = 0, hw = 1, KC = 2, $C = 3, eP = 4, tP = 5, ng = 300, ig = 301, rg = 302, uw = 303, sg = 304, dw = 305, Gc = 306, og = 307, wu = 1e3, Kn = 1001, xu = 1002, mn = 1003, Rp = 1004, Op = 1005, Bn = 1006, fw = 1007, _d = 1008, jc = 1009, nP = 1010, iP = 1011, Mu = 1012, rP = 1013, fu = 1014, qr = 1015, Eu = 1016, sP = 1017, oP = 1018, aP = 1019, Bl = 1020, lP = 1021, Fs = 1022, Ti = 1023, cP = 1024, hP = 1025, uP = Ti, Jo = 1026, Xl = 1027, dP = 1028, fP = 1029, pP = 1030, mP = 1031, gP = 1032, vP = 1033, Tv = 33776, Dv = 33777, Lv = 33778, kv = 33779, Rv = 35840, Ov = 35841, zv = 35842, Bv = 35843, yP = 36196, Nv = 37492, Fv = 37496, bP = 37808, AP = 37809, wP = 37810, xP = 37811, MP = 37812, EP = 37813, CP = 37814, PP = 37815, _P = 37816, IP = 37817, SP = 37818, TP = 37819, DP = 37820, LP = 37821, kP = 36492, RP = 37840, OP = 37841, zP = 37842, BP = 37843, NP = 37844, FP = 37845, VP = 37846, GP = 37847, jP = 37848, HP = 37849, UP = 37850, WP = 37851, QP = 37852, YP = 37853, XP = 2200, ZP = 2201, JP = 2202, Cu = 2300, pu = 2301, vf = 2302, ra = 2400, Fo = 2401, Pu = 2402, ag = 2500, pw = 2501, qP = 0, $n = 3e3, Id = 3001, lg = 3007, cg = 3002, KP = 3003, mw = 3004, gw = 3005, vw = 3006, $P = 3200, e2 = 3201, Ga = 0, t2 = 1, yf = 7680, n2 = 519, Sd = 35044, Zl = 35048;
1844
+ const _C = "117", IC = 0, Ev = 1, SC = 2, ow = 1, TC = 2, Cl = 3, Vc = 0, xn = 1, Cd = 2, aw = 1, ts = 0, Ol = 1, Cv = 2, Pv = 3, _v = 4, DC = 5, zo = 100, LC = 101, kC = 102, Iv = 103, Sv = 104, RC = 200, OC = 201, zC = 202, BC = 203, lw = 204, cw = 205, NC = 206, FC = 207, VC = 208, GC = 209, jC = 210, HC = 0, UC = 1, WC = 2, kp = 3, QC = 4, YC = 5, XC = 6, ZC = 7, Pd = 0, JC = 1, qC = 2, zl = 0, hw = 1, KC = 2, $C = 3, eP = 4, tP = 5, ng = 300, ig = 301, rg = 302, uw = 303, sg = 304, dw = 305, Gc = 306, og = 307, wu = 1e3, Kn = 1001, xu = 1002, mn = 1003, Rp = 1004, Op = 1005, Bn = 1006, fw = 1007, _d = 1008, jc = 1009, nP = 1010, iP = 1011, Mu = 1012, rP = 1013, fu = 1014, qr = 1015, Eu = 1016, sP = 1017, oP = 1018, aP = 1019, Bl = 1020, lP = 1021, Fs = 1022, Ti = 1023, cP = 1024, hP = 1025, uP = Ti, qo = 1026, Xl = 1027, dP = 1028, fP = 1029, pP = 1030, mP = 1031, gP = 1032, vP = 1033, Tv = 33776, Dv = 33777, Lv = 33778, kv = 33779, Rv = 35840, Ov = 35841, zv = 35842, Bv = 35843, yP = 36196, Nv = 37492, Fv = 37496, bP = 37808, AP = 37809, wP = 37810, xP = 37811, MP = 37812, EP = 37813, CP = 37814, PP = 37815, _P = 37816, IP = 37817, SP = 37818, TP = 37819, DP = 37820, LP = 37821, kP = 36492, RP = 37840, OP = 37841, zP = 37842, BP = 37843, NP = 37844, FP = 37845, VP = 37846, GP = 37847, jP = 37848, HP = 37849, UP = 37850, WP = 37851, QP = 37852, YP = 37853, XP = 2200, ZP = 2201, JP = 2202, Cu = 2300, pu = 2301, vf = 2302, sa = 2400, Vo = 2401, Pu = 2402, ag = 2500, pw = 2501, qP = 0, $n = 3e3, Id = 3001, lg = 3007, cg = 3002, KP = 3003, mw = 3004, gw = 3005, vw = 3006, $P = 3200, e2 = 3201, Ga = 0, t2 = 1, yf = 7680, n2 = 519, Sd = 35044, Zl = 35048;
1845
1845
  function Or() {
1846
1846
  }
1847
1847
  Object.assign(Or.prototype, {
@@ -2292,7 +2292,7 @@ Object.assign(Qn.prototype, {
2292
2292
  return e[n] = t[0], e[n + 1] = t[1], e[n + 2] = t[2], e[n + 3] = t[3], e[n + 4] = t[4], e[n + 5] = t[5], e[n + 6] = t[6], e[n + 7] = t[7], e[n + 8] = t[8], e;
2293
2293
  }
2294
2294
  });
2295
- var uo, Qs = {
2295
+ var fo, Ys = {
2296
2296
  getDataURL: function(e) {
2297
2297
  var n;
2298
2298
  if (typeof HTMLCanvasElement == "undefined")
@@ -2300,9 +2300,9 @@ var uo, Qs = {
2300
2300
  if (e instanceof HTMLCanvasElement)
2301
2301
  n = e;
2302
2302
  else {
2303
- uo === void 0 && (uo = document.createElementNS("http://www.w3.org/1999/xhtml", "canvas")), uo.width = e.width, uo.height = e.height;
2304
- var t = uo.getContext("2d");
2305
- e instanceof ImageData ? t.putImageData(e, 0, 0) : t.drawImage(e, 0, 0, e.width, e.height), n = uo;
2303
+ fo === void 0 && (fo = document.createElementNS("http://www.w3.org/1999/xhtml", "canvas")), fo.width = e.width, fo.height = e.height;
2304
+ var t = fo.getContext("2d");
2305
+ e instanceof ImageData ? t.putImageData(e, 0, 0) : t.drawImage(e, 0, 0, e.width, e.height), n = fo;
2306
2306
  }
2307
2307
  return n.width > 2048 || n.height > 2048 ? n.toDataURL("image/jpeg", 0.6) : n.toDataURL("image/png");
2308
2308
  }
@@ -2359,9 +2359,9 @@ Wt.prototype = Object.assign(Object.create(Or.prototype), {
2359
2359
  if (Array.isArray(i)) {
2360
2360
  r = [];
2361
2361
  for (var s = 0, o = i.length; s < o; s++)
2362
- r.push(Qs.getDataURL(i[s]));
2362
+ r.push(Ys.getDataURL(i[s]));
2363
2363
  } else
2364
- r = Qs.getDataURL(i);
2364
+ r = Ys.getDataURL(i);
2365
2365
  e.images[i.uuid] = {
2366
2366
  uuid: i.uuid,
2367
2367
  url: r
@@ -3081,7 +3081,7 @@ Object.assign(B.prototype, {
3081
3081
  return this.x = Math.random(), this.y = Math.random(), this.z = Math.random(), this;
3082
3082
  }
3083
3083
  });
3084
- var fo = new B(), xi = new Mt(), r2 = new B(0, 0, 0), s2 = new B(1, 1, 1), Gr = new B(), mh = new B(), ni = new B();
3084
+ var po = new B(), xi = new Mt(), r2 = new B(0, 0, 0), s2 = new B(1, 1, 1), Gr = new B(), mh = new B(), ni = new B();
3085
3085
  function Mt() {
3086
3086
  this.elements = [
3087
3087
  1,
@@ -3163,7 +3163,7 @@ Object.assign(Mt.prototype, {
3163
3163
  ), this;
3164
3164
  },
3165
3165
  extractRotation: function(e) {
3166
- var n = this.elements, t = e.elements, i = 1 / fo.setFromMatrixColumn(e, 0).length(), r = 1 / fo.setFromMatrixColumn(e, 1).length(), s = 1 / fo.setFromMatrixColumn(e, 2).length();
3166
+ var n = this.elements, t = e.elements, i = 1 / po.setFromMatrixColumn(e, 0).length(), r = 1 / po.setFromMatrixColumn(e, 1).length(), s = 1 / po.setFromMatrixColumn(e, 2).length();
3167
3167
  return n[0] = t[0] * i, n[1] = t[1] * i, n[2] = t[2] * i, n[3] = 0, n[4] = t[4] * r, n[5] = t[5] * r, n[6] = t[6] * r, n[7] = 0, n[8] = t[8] * s, n[9] = t[9] * s, n[10] = t[10] * s, n[11] = 0, n[12] = 0, n[13] = 0, n[14] = 0, n[15] = 1, this;
3168
3168
  },
3169
3169
  makeRotationFromEuler: function(e) {
@@ -3388,7 +3388,7 @@ Object.assign(Mt.prototype, {
3388
3388
  return i[0] = (1 - (m + g)) * w, i[1] = (d + A) * w, i[2] = (f - b) * w, i[3] = 0, i[4] = (d - A) * x, i[5] = (1 - (u + g)) * x, i[6] = (p + y) * x, i[7] = 0, i[8] = (f + b) * M, i[9] = (p - y) * M, i[10] = (1 - (u + m)) * M, i[11] = 0, i[12] = e.x, i[13] = e.y, i[14] = e.z, i[15] = 1, this;
3389
3389
  },
3390
3390
  decompose: function(e, n, t) {
3391
- var i = this.elements, r = fo.set(i[0], i[1], i[2]).length(), s = fo.set(i[4], i[5], i[6]).length(), o = fo.set(i[8], i[9], i[10]).length(), a = this.determinant();
3391
+ var i = this.elements, r = po.set(i[0], i[1], i[2]).length(), s = po.set(i[4], i[5], i[6]).length(), o = po.set(i[8], i[9], i[10]).length(), a = this.determinant();
3392
3392
  a < 0 && (r = -r), e.x = i[12], e.y = i[13], e.z = i[14], xi.copy(this);
3393
3393
  var l = 1 / r, c = 1 / s, h = 1 / o;
3394
3394
  return xi.elements[0] *= l, xi.elements[1] *= l, xi.elements[2] *= l, xi.elements[4] *= c, xi.elements[5] *= c, xi.elements[6] *= c, xi.elements[8] *= h, xi.elements[9] *= h, xi.elements[10] *= h, n.setFromRotationMatrix(xi), t.x = r, t.y = s, t.z = o, this;
@@ -3551,7 +3551,7 @@ Object.assign(hg.prototype, {
3551
3551
  }
3552
3552
  });
3553
3553
  let o2 = 0;
3554
- const Uv = new B(), po = new Mn(), gr = new Mt(), gh = new B(), cl = new B(), a2 = new B(), l2 = new Mn(), Wv = new B(1, 0, 0), Qv = new B(0, 1, 0), Yv = new B(0, 0, 1), c2 = { type: "added" }, h2 = { type: "removed" };
3554
+ const Uv = new B(), mo = new Mn(), gr = new Mt(), gh = new B(), cl = new B(), a2 = new B(), l2 = new Mn(), Wv = new B(1, 0, 0), Qv = new B(0, 1, 0), Yv = new B(0, 0, 1), c2 = { type: "added" }, h2 = { type: "removed" };
3555
3555
  function je() {
3556
3556
  Object.defineProperty(this, "id", { value: o2++ }), this.uuid = wt.generateUUID(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = je.DefaultUp.clone();
3557
3557
  var e = new B(), n = new ja(), t = new Mn(), i = new B(1, 1, 1);
@@ -3618,10 +3618,10 @@ je.prototype = Object.assign(Object.create(Or.prototype), {
3618
3618
  this.quaternion.copy(e);
3619
3619
  },
3620
3620
  rotateOnAxis: function(e, n) {
3621
- return po.setFromAxisAngle(e, n), this.quaternion.multiply(po), this;
3621
+ return mo.setFromAxisAngle(e, n), this.quaternion.multiply(mo), this;
3622
3622
  },
3623
3623
  rotateOnWorldAxis: function(e, n) {
3624
- return po.setFromAxisAngle(e, n), this.quaternion.premultiply(po), this;
3624
+ return mo.setFromAxisAngle(e, n), this.quaternion.premultiply(mo), this;
3625
3625
  },
3626
3626
  rotateX: function(e) {
3627
3627
  return this.rotateOnAxis(Wv, e);
@@ -3653,7 +3653,7 @@ je.prototype = Object.assign(Object.create(Or.prototype), {
3653
3653
  lookAt: function(e, n, t) {
3654
3654
  e.isVector3 ? gh.copy(e) : gh.set(e, n, t);
3655
3655
  var i = this.parent;
3656
- this.updateWorldMatrix(!0, !1), cl.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? gr.lookAt(cl, gh, this.up) : gr.lookAt(gh, cl, this.up), this.quaternion.setFromRotationMatrix(gr), i && (gr.extractRotation(i.matrixWorld), po.setFromRotationMatrix(gr), this.quaternion.premultiply(po.inverse()));
3656
+ this.updateWorldMatrix(!0, !1), cl.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? gr.lookAt(cl, gh, this.up) : gr.lookAt(gh, cl, this.up), this.quaternion.setFromRotationMatrix(gr), i && (gr.extractRotation(i.matrixWorld), mo.setFromRotationMatrix(gr), this.quaternion.premultiply(mo.inverse()));
3657
3657
  },
3658
3658
  add: function(e) {
3659
3659
  if (arguments.length > 1) {
@@ -3832,7 +3832,7 @@ var vr = [
3832
3832
  new B(),
3833
3833
  new B(),
3834
3834
  new B()
3835
- ], hl = new B(), Af = new mi(), mo = new B(), go = new B(), vo = new B(), jr = new B(), Hr = new B(), _s = new B(), ul = new B(), vh = new B(), yh = new B(), Is = new B();
3835
+ ], hl = new B(), Af = new mi(), go = new B(), vo = new B(), yo = new B(), jr = new B(), Hr = new B(), _s = new B(), ul = new B(), vh = new B(), yh = new B(), Is = new B();
3836
3836
  function mi(e, n) {
3837
3837
  this.min = e !== void 0 ? e : new B(1 / 0, 1 / 0, 1 / 0), this.max = n !== void 0 ? n : new B(-1 / 0, -1 / 0, -1 / 0);
3838
3838
  }
@@ -3929,7 +3929,7 @@ Object.assign(mi.prototype, {
3929
3929
  intersectsTriangle: function(e) {
3930
3930
  if (this.isEmpty())
3931
3931
  return !1;
3932
- this.getCenter(ul), vh.subVectors(this.max, ul), mo.subVectors(e.a, ul), go.subVectors(e.b, ul), vo.subVectors(e.c, ul), jr.subVectors(go, mo), Hr.subVectors(vo, go), _s.subVectors(mo, vo);
3932
+ this.getCenter(ul), vh.subVectors(this.max, ul), go.subVectors(e.a, ul), vo.subVectors(e.b, ul), yo.subVectors(e.c, ul), jr.subVectors(vo, go), Hr.subVectors(yo, vo), _s.subVectors(go, yo);
3933
3933
  var n = [
3934
3934
  0,
3935
3935
  -jr.z,
@@ -3959,7 +3959,7 @@ Object.assign(mi.prototype, {
3959
3959
  _s.x,
3960
3960
  0
3961
3961
  ];
3962
- return !wf(n, mo, go, vo, vh) || (n = [1, 0, 0, 0, 1, 0, 0, 0, 1], !wf(n, mo, go, vo, vh)) ? !1 : (yh.crossVectors(jr, Hr), n = [yh.x, yh.y, yh.z], wf(n, mo, go, vo, vh));
3962
+ return !wf(n, go, vo, yo, vh) || (n = [1, 0, 0, 0, 1, 0, 0, 0, 1], !wf(n, go, vo, yo, vh)) ? !1 : (yh.crossVectors(jr, Hr), n = [yh.x, yh.y, yh.z], wf(n, go, vo, yo, vh));
3963
3963
  },
3964
3964
  clampPoint: function(e, n) {
3965
3965
  return n === void 0 && (console.warn("THREE.Box3: .clampPoint() target is now required"), n = new B()), n.copy(e).clamp(this.min, this.max);
@@ -4249,7 +4249,7 @@ Object.assign(Yi.prototype, {
4249
4249
  return e.normal.equals(this.normal) && e.constant === this.constant;
4250
4250
  }
4251
4251
  });
4252
- var Ci = new B(), wr = new B(), Pf = new B(), br = new B(), yo = new B(), bo = new B(), Xv = new B(), _f = new B(), If = new B(), Sf = new B();
4252
+ var Ci = new B(), wr = new B(), Pf = new B(), br = new B(), bo = new B(), Ao = new B(), Xv = new B(), _f = new B(), If = new B(), Sf = new B();
4253
4253
  function Ln(e, n, t) {
4254
4254
  this.a = e !== void 0 ? e : new B(), this.b = n !== void 0 ? n : new B(), this.c = t !== void 0 ? t : new B();
4255
4255
  }
@@ -4322,29 +4322,29 @@ Object.assign(Ln.prototype, {
4322
4322
  closestPointToPoint: function(e, n) {
4323
4323
  n === void 0 && (console.warn("THREE.Triangle: .closestPointToPoint() target is now required"), n = new B());
4324
4324
  var t = this.a, i = this.b, r = this.c, s, o;
4325
- yo.subVectors(i, t), bo.subVectors(r, t), _f.subVectors(e, t);
4326
- var a = yo.dot(_f), l = bo.dot(_f);
4325
+ bo.subVectors(i, t), Ao.subVectors(r, t), _f.subVectors(e, t);
4326
+ var a = bo.dot(_f), l = Ao.dot(_f);
4327
4327
  if (a <= 0 && l <= 0)
4328
4328
  return n.copy(t);
4329
4329
  If.subVectors(e, i);
4330
- var c = yo.dot(If), h = bo.dot(If);
4330
+ var c = bo.dot(If), h = Ao.dot(If);
4331
4331
  if (c >= 0 && h <= c)
4332
4332
  return n.copy(i);
4333
4333
  var u = a * h - c * l;
4334
4334
  if (u <= 0 && a >= 0 && c <= 0)
4335
- return s = a / (a - c), n.copy(t).addScaledVector(yo, s);
4335
+ return s = a / (a - c), n.copy(t).addScaledVector(bo, s);
4336
4336
  Sf.subVectors(e, r);
4337
- var d = yo.dot(Sf), f = bo.dot(Sf);
4337
+ var d = bo.dot(Sf), f = Ao.dot(Sf);
4338
4338
  if (f >= 0 && d <= f)
4339
4339
  return n.copy(r);
4340
4340
  var m = d * l - a * f;
4341
4341
  if (m <= 0 && l >= 0 && f <= 0)
4342
- return o = l / (l - f), n.copy(t).addScaledVector(bo, o);
4342
+ return o = l / (l - f), n.copy(t).addScaledVector(Ao, o);
4343
4343
  var p = c * f - d * h;
4344
4344
  if (p <= 0 && h - c >= 0 && d - f >= 0)
4345
4345
  return Xv.subVectors(r, i), o = (h - c) / (h - c + (d - f)), n.copy(i).addScaledVector(Xv, o);
4346
4346
  var g = 1 / (p + m + u);
4347
- return s = m * g, o = u * g, n.copy(t).addScaledVector(yo, s).addScaledVector(bo, o);
4347
+ return s = m * g, o = u * g, n.copy(t).addScaledVector(bo, s).addScaledVector(Ao, o);
4348
4348
  },
4349
4349
  equals: function(e) {
4350
4350
  return e.a.equals(this.a) && e.b.equals(this.b) && e.c.equals(this.c);
@@ -4698,7 +4698,7 @@ Object.assign(_u.prototype, {
4698
4698
  });
4699
4699
  var p2 = 0;
4700
4700
  function dt() {
4701
- Object.defineProperty(this, "id", { value: p2++ }), this.uuid = wt.generateUUID(), this.name = "", this.type = "Material", this.fog = !0, this.blending = Ol, this.side = Vc, this.flatShading = !1, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = lw, this.blendDst = cw, this.blendEquation = Oo, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = kp, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = n2, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = yf, this.stencilZFail = yf, this.stencilZPass = yf, 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.alphaTest = 0, this.premultipliedAlpha = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0;
4701
+ Object.defineProperty(this, "id", { value: p2++ }), this.uuid = wt.generateUUID(), this.name = "", this.type = "Material", this.fog = !0, this.blending = Ol, this.side = Vc, this.flatShading = !1, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = lw, this.blendDst = cw, this.blendEquation = zo, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = kp, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = n2, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = yf, this.stencilZFail = yf, this.stencilZPass = yf, 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.alphaTest = 0, this.premultipliedAlpha = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0;
4702
4702
  }
4703
4703
  dt.prototype = Object.assign(Object.create(Or.prototype), {
4704
4704
  constructor: dt,
@@ -5042,7 +5042,7 @@ function Aw(e) {
5042
5042
  e[t] > n && (n = e[t]);
5043
5043
  return n;
5044
5044
  }
5045
- var m2 = 1, Ui = new Mt(), kf = new je(), Ao = new B(), ii = new mi(), dl = new mi(), fn = new B();
5045
+ var m2 = 1, Ui = new Mt(), kf = new je(), wo = new B(), ii = new mi(), dl = new mi(), fn = new B();
5046
5046
  function Xe() {
5047
5047
  Object.defineProperty(this, "id", { value: m2 += 2 }), this.uuid = wt.generateUUID(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
5048
5048
  }
@@ -5107,7 +5107,7 @@ Xe.prototype = Object.assign(Object.create(Or.prototype), {
5107
5107
  return kf.lookAt(e), kf.updateMatrix(), this.applyMatrix4(kf.matrix), this;
5108
5108
  },
5109
5109
  center: function() {
5110
- return this.computeBoundingBox(), this.boundingBox.getCenter(Ao).negate(), this.translate(Ao.x, Ao.y, Ao.z), this;
5110
+ return this.computeBoundingBox(), this.boundingBox.getCenter(wo).negate(), this.translate(wo.x, wo.y, wo.z), this;
5111
5111
  },
5112
5112
  setFromObject: function(e) {
5113
5113
  var n = e.geometry;
@@ -5208,7 +5208,7 @@ Xe.prototype = Object.assign(Object.create(Or.prototype), {
5208
5208
  if (n)
5209
5209
  for (var i = 0, r = n.length; i < r; i++)
5210
5210
  for (var s = n[i], a = this.morphTargetsRelative, l = 0, c = s.count; l < c; l++)
5211
- fn.fromBufferAttribute(s, l), a && (Ao.fromBufferAttribute(e, l), fn.add(Ao)), o = Math.max(o, t.distanceToSquared(fn));
5211
+ fn.fromBufferAttribute(s, l), a && (wo.fromBufferAttribute(e, l), fn.add(wo)), o = Math.max(o, t.distanceToSquared(fn));
5212
5212
  this.boundingSphere.radius = Math.sqrt(o), isNaN(this.boundingSphere.radius) && console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this);
5213
5213
  }
5214
5214
  },
@@ -5360,7 +5360,7 @@ Xe.prototype = Object.assign(Object.create(Or.prototype), {
5360
5360
  this.dispatchEvent({ type: "dispose" });
5361
5361
  }
5362
5362
  });
5363
- var Zv = new Mt(), Ss = new Ha(), Rf = new cr(), Wr = new B(), Qr = new B(), Yr = new B(), Of = new B(), zf = new B(), Bf = new B(), xh = new B(), Mh = new B(), Eh = new B(), Vo = new pe(), Go = new pe(), jo = new pe(), Nl = new B(), Ch = new B();
5363
+ var Zv = new Mt(), Ss = new Ha(), Rf = new cr(), Wr = new B(), Qr = new B(), Yr = new B(), Of = new B(), zf = new B(), Bf = new B(), xh = new B(), Mh = new B(), Eh = new B(), Go = new pe(), jo = new pe(), Ho = new pe(), Nl = new B(), Ch = new B();
5364
5364
  function en(e, n) {
5365
5365
  je.call(this), this.type = "Mesh", this.geometry = e !== void 0 ? e : new Xe(), this.material = n !== void 0 ? n : new ki(), this.updateMorphTargets();
5366
5366
  }
@@ -5415,7 +5415,7 @@ en.prototype = Object.assign(Object.create(je.prototype), {
5415
5415
  if (ne !== void 0 && (T = O[te.a], z = O[te.b], D = O[te.c], s = ww(this, ne, e, Ss, T, z, D, Nl), s)) {
5416
5416
  if (S && S[q]) {
5417
5417
  var de = S[q];
5418
- Vo.copy(de[0]), Go.copy(de[1]), jo.copy(de[2]), s.uv = Ln.getUV(Nl, T, z, D, Vo, Go, jo, new pe());
5418
+ Go.copy(de[0]), jo.copy(de[1]), Ho.copy(de[2]), s.uv = Ln.getUV(Nl, T, z, D, Go, jo, Ho, new pe());
5419
5419
  }
5420
5420
  s.face = te, s.faceIndex = q, n.push(s);
5421
5421
  }
@@ -5453,7 +5453,7 @@ function Ph(e, n, t, i, r, s, o, a, l, c, h, u) {
5453
5453
  e.isSkinnedMesh && (e.boneTransform(c, Wr), e.boneTransform(h, Qr), e.boneTransform(u, Yr));
5454
5454
  var y = ww(e, n, t, i, Wr, Qr, Yr, Nl);
5455
5455
  if (y) {
5456
- a && (Vo.fromBufferAttribute(a, c), Go.fromBufferAttribute(a, h), jo.fromBufferAttribute(a, u), y.uv = Ln.getUV(Nl, Wr, Qr, Yr, Vo, Go, jo, new pe())), l && (Vo.fromBufferAttribute(l, c), Go.fromBufferAttribute(l, h), jo.fromBufferAttribute(l, u), y.uv2 = Ln.getUV(Nl, Wr, Qr, Yr, Vo, Go, jo, new pe()));
5456
+ a && (Go.fromBufferAttribute(a, c), jo.fromBufferAttribute(a, h), Ho.fromBufferAttribute(a, u), y.uv = Ln.getUV(Nl, Wr, Qr, Yr, Go, jo, Ho, new pe())), l && (Go.fromBufferAttribute(l, c), jo.fromBufferAttribute(l, h), Ho.fromBufferAttribute(l, u), y.uv2 = Ln.getUV(Nl, Wr, Qr, Yr, Go, jo, Ho, new pe()));
5457
5457
  var b = new _u(c, h, u);
5458
5458
  Ln.getNormal(Wr, Qr, Yr, b.normal), y.face = b;
5459
5459
  }
@@ -5893,7 +5893,7 @@ class Td extends Xe {
5893
5893
  }
5894
5894
  }
5895
5895
  }
5896
- function sa(e) {
5896
+ function oa(e) {
5897
5897
  var n = {};
5898
5898
  for (var t in e) {
5899
5899
  n[t] = {};
@@ -5906,13 +5906,13 @@ function sa(e) {
5906
5906
  }
5907
5907
  function zn(e) {
5908
5908
  for (var n = {}, t = 0; t < e.length; t++) {
5909
- var i = sa(e[t]);
5909
+ var i = oa(e[t]);
5910
5910
  for (var r in i)
5911
5911
  n[r] = i[r];
5912
5912
  }
5913
5913
  return n;
5914
5914
  }
5915
- var y2 = { clone: sa, merge: zn }, b2 = `void main() {
5915
+ var y2 = { clone: oa, merge: zn }, b2 = `void main() {
5916
5916
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
5917
5917
  }`, A2 = `void main() {
5918
5918
  gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
@@ -5937,7 +5937,7 @@ ei.prototype = Object.create(dt.prototype);
5937
5937
  ei.prototype.constructor = ei;
5938
5938
  ei.prototype.isShaderMaterial = !0;
5939
5939
  ei.prototype.copy = function(e) {
5940
- return dt.prototype.copy.call(this, e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = sa(e.uniforms), this.defines = Object.assign({}, e.defines), this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.lights = e.lights, this.clipping = e.clipping, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this.extensions = Object.assign({}, e.extensions), this;
5940
+ return dt.prototype.copy.call(this, e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = oa(e.uniforms), this.defines = Object.assign({}, e.defines), this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.lights = e.lights, this.clipping = e.clipping, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this.extensions = Object.assign({}, e.extensions), this;
5941
5941
  };
5942
5942
  ei.prototype.toJSON = function(e) {
5943
5943
  var n = dt.prototype.toJSON.call(this, e);
@@ -6101,24 +6101,24 @@ An.prototype = Object.assign(Object.create(_r.prototype), {
6101
6101
  return n.object.fov = this.fov, n.object.zoom = this.zoom, n.object.near = this.near, n.object.far = this.far, n.object.focus = this.focus, n.object.aspect = this.aspect, this.view !== null && (n.object.view = Object.assign({}, this.view)), n.object.filmGauge = this.filmGauge, n.object.filmOffset = this.filmOffset, n;
6102
6102
  }
6103
6103
  });
6104
- var wo = 90, xo = 1;
6104
+ var xo = 90, Mo = 1;
6105
6105
  function $l(e, n, t) {
6106
6106
  if (je.call(this), this.type = "CubeCamera", t.isWebGLCubeRenderTarget !== !0) {
6107
6107
  console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");
6108
6108
  return;
6109
6109
  }
6110
6110
  this.renderTarget = t;
6111
- var i = new An(wo, xo, e, n);
6111
+ var i = new An(xo, Mo, e, n);
6112
6112
  i.layers = this.layers, i.up.set(0, -1, 0), i.lookAt(new B(1, 0, 0)), this.add(i);
6113
- var r = new An(wo, xo, e, n);
6113
+ var r = new An(xo, Mo, e, n);
6114
6114
  r.layers = this.layers, r.up.set(0, -1, 0), r.lookAt(new B(-1, 0, 0)), this.add(r);
6115
- var s = new An(wo, xo, e, n);
6115
+ var s = new An(xo, Mo, e, n);
6116
6116
  s.layers = this.layers, s.up.set(0, 0, 1), s.lookAt(new B(0, 1, 0)), this.add(s);
6117
- var o = new An(wo, xo, e, n);
6117
+ var o = new An(xo, Mo, e, n);
6118
6118
  o.layers = this.layers, o.up.set(0, 0, -1), o.lookAt(new B(0, -1, 0)), this.add(o);
6119
- var a = new An(wo, xo, e, n);
6119
+ var a = new An(xo, Mo, e, n);
6120
6120
  a.layers = this.layers, a.up.set(0, -1, 0), a.lookAt(new B(0, 0, 1)), this.add(a);
6121
- var l = new An(wo, xo, e, n);
6121
+ var l = new An(xo, Mo, e, n);
6122
6122
  l.layers = this.layers, l.up.set(0, -1, 0), l.lookAt(new B(0, 0, -1)), this.add(l), this.update = function(c, h) {
6123
6123
  this.parent === null && this.updateMatrixWorld();
6124
6124
  var u = c.xr.enabled, d = c.getRenderTarget();
@@ -6170,7 +6170,7 @@ ec.prototype.fromEquirectangularTexture = function(e, n) {
6170
6170
  `)
6171
6171
  }, r = new ei({
6172
6172
  type: "CubemapFromEquirect",
6173
- uniforms: sa(i.uniforms),
6173
+ uniforms: oa(i.uniforms),
6174
6174
  vertexShader: i.vertexShader,
6175
6175
  fragmentShader: i.fragmentShader,
6176
6176
  side: xn,
@@ -6182,13 +6182,13 @@ ec.prototype.fromEquirectangularTexture = function(e, n) {
6182
6182
  var o = new $l(1, 10, this);
6183
6183
  return o.update(e, t), s.geometry.dispose(), s.material.dispose(), this;
6184
6184
  };
6185
- function oa(e, n, t, i, r, s, o, a, l, c, h, u) {
6185
+ function aa(e, n, t, i, r, s, o, a, l, c, h, u) {
6186
6186
  Wt.call(this, null, s, o, a, l, c, i, r, h, u), this.image = { data: e || null, width: n || 1, height: t || 1 }, this.magFilter = l !== void 0 ? l : mn, this.minFilter = c !== void 0 ? c : mn, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1, this.needsUpdate = !0;
6187
6187
  }
6188
- oa.prototype = Object.create(Wt.prototype);
6189
- oa.prototype.constructor = oa;
6190
- oa.prototype.isDataTexture = !0;
6191
- var Mo = new cr(), Ih = new B();
6188
+ aa.prototype = Object.create(Wt.prototype);
6189
+ aa.prototype.constructor = aa;
6190
+ aa.prototype.isDataTexture = !0;
6191
+ var Eo = new cr(), Ih = new B();
6192
6192
  function Hc(e, n, t, i, r, s) {
6193
6193
  this.planes = [
6194
6194
  e !== void 0 ? e : new Yi(),
@@ -6218,10 +6218,10 @@ Object.assign(Hc.prototype, {
6218
6218
  },
6219
6219
  intersectsObject: function(e) {
6220
6220
  var n = e.geometry;
6221
- return n.boundingSphere === null && n.computeBoundingSphere(), Mo.copy(n.boundingSphere).applyMatrix4(e.matrixWorld), this.intersectsSphere(Mo);
6221
+ return n.boundingSphere === null && n.computeBoundingSphere(), Eo.copy(n.boundingSphere).applyMatrix4(e.matrixWorld), this.intersectsSphere(Eo);
6222
6222
  },
6223
6223
  intersectsSprite: function(e) {
6224
- return Mo.center.set(0, 0, 0), Mo.radius = 0.7071067811865476, Mo.applyMatrix4(e.matrixWorld), this.intersectsSphere(Mo);
6224
+ return Eo.center.set(0, 0, 0), Eo.radius = 0.7071067811865476, Eo.applyMatrix4(e.matrixWorld), this.intersectsSphere(Eo);
6225
6225
  },
6226
6226
  intersectsSphere: function(e) {
6227
6227
  for (var n = this.planes, t = e.center, i = -e.radius, r = 0; r < 6; r++) {
@@ -6453,11 +6453,11 @@ function Iu(e, n, t, i) {
6453
6453
  height: n,
6454
6454
  widthSegments: t,
6455
6455
  heightSegments: i
6456
- }, this.fromBufferGeometry(new aa(e, n, t, i)), this.mergeVertices();
6456
+ }, this.fromBufferGeometry(new la(e, n, t, i)), this.mergeVertices();
6457
6457
  }
6458
6458
  Iu.prototype = Object.create(pt.prototype);
6459
6459
  Iu.prototype.constructor = Iu;
6460
- function aa(e, n, t, i) {
6460
+ function la(e, n, t, i) {
6461
6461
  Xe.call(this), this.type = "PlaneBufferGeometry", this.parameters = {
6462
6462
  width: e,
6463
6463
  height: n,
@@ -6479,8 +6479,8 @@ function aa(e, n, t, i) {
6479
6479
  }
6480
6480
  this.setIndex(m), this.setAttribute("position", new ze(p, 3)), this.setAttribute("normal", new ze(g, 3)), this.setAttribute("uv", new ze(y, 2));
6481
6481
  }
6482
- aa.prototype = Object.create(Xe.prototype);
6483
- aa.prototype.constructor = aa;
6482
+ la.prototype = Object.create(Xe.prototype);
6483
+ la.prototype.constructor = la;
6484
6484
  var x2 = `#ifdef USE_ALPHAMAP
6485
6485
  diffuseColor.a *= texture2D( alphaMap, vUv ).g;
6486
6486
  #endif`, M2 = `#ifdef USE_ALPHAMAP
@@ -9554,7 +9554,7 @@ function GI(e, n, t, i) {
9554
9554
  new Td(1, 1, 1),
9555
9555
  new ei({
9556
9556
  type: "BackgroundCubeMaterial",
9557
- uniforms: sa(Mr.cube.uniforms),
9557
+ uniforms: oa(Mr.cube.uniforms),
9558
9558
  vertexShader: Mr.cube.vertexShader,
9559
9559
  fragmentShader: Mr.cube.fragmentShader,
9560
9560
  side: xn,
@@ -9573,10 +9573,10 @@ function GI(e, n, t, i) {
9573
9573
  a.material.uniforms.envMap.value = w, a.material.uniforms.flipEnvMap.value = w.isCubeTexture ? -1 : 1, (l !== y || c !== w.version || h !== e.toneMapping) && (a.material.needsUpdate = !0, l = y, c = w.version, h = e.toneMapping), f.unshift(a, a.geometry, a.material, 0, 0, null);
9574
9574
  } else
9575
9575
  y && y.isTexture && (o === void 0 && (o = new en(
9576
- new aa(2, 2),
9576
+ new la(2, 2),
9577
9577
  new ei({
9578
9578
  type: "BackgroundMaterial",
9579
- uniforms: sa(Mr.background.uniforms),
9579
+ uniforms: oa(Mr.background.uniforms),
9580
9580
  vertexShader: Mr.background.vertexShader,
9581
9581
  fragmentShader: Mr.background.fragmentShader,
9582
9582
  side: Vc,
@@ -11271,22 +11271,22 @@ function o3() {
11271
11271
  dispose: i
11272
11272
  };
11273
11273
  }
11274
- function Ys(e) {
11274
+ function Xs(e) {
11275
11275
  dt.call(this), this.type = "MeshDepthMaterial", this.depthPacking = $P, this.skinning = !1, this.morphTargets = !1, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.setValues(e);
11276
11276
  }
11277
- Ys.prototype = Object.create(dt.prototype);
11278
- Ys.prototype.constructor = Ys;
11279
- Ys.prototype.isMeshDepthMaterial = !0;
11280
- Ys.prototype.copy = function(e) {
11277
+ Xs.prototype = Object.create(dt.prototype);
11278
+ Xs.prototype.constructor = Xs;
11279
+ Xs.prototype.isMeshDepthMaterial = !0;
11280
+ Xs.prototype.copy = function(e) {
11281
11281
  return dt.prototype.copy.call(this, e), this.depthPacking = e.depthPacking, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this;
11282
11282
  };
11283
- function Xs(e) {
11283
+ function Zs(e) {
11284
11284
  dt.call(this), this.type = "MeshDistanceMaterial", this.referencePosition = new B(), this.nearDistance = 1, this.farDistance = 1e3, this.skinning = !1, this.morphTargets = !1, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.fog = !1, this.setValues(e);
11285
11285
  }
11286
- Xs.prototype = Object.create(dt.prototype);
11287
- Xs.prototype.constructor = Xs;
11288
- Xs.prototype.isMeshDistanceMaterial = !0;
11289
- Xs.prototype.copy = function(e) {
11286
+ Zs.prototype = Object.create(dt.prototype);
11287
+ Zs.prototype.constructor = Zs;
11288
+ Zs.prototype.isMeshDistanceMaterial = !0;
11289
+ Zs.prototype.copy = function(e) {
11290
11290
  return dt.prototype.copy.call(this, e), this.referencePosition.copy(e.referencePosition), this.nearDistance = e.nearDistance, this.farDistance = e.farDistance, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this;
11291
11291
  };
11292
11292
  var a3 = `uniform sampler2D shadow_pass;
@@ -11380,7 +11380,7 @@ function Tw(e, n, t) {
11380
11380
  }
11381
11381
  function y(x, M, P) {
11382
11382
  var I = x << 0 | M << 1 | P << 2, T = a[I];
11383
- return T === void 0 && (T = new Ys({
11383
+ return T === void 0 && (T = new Xs({
11384
11384
  depthPacking: e2,
11385
11385
  morphTargets: x,
11386
11386
  skinning: M
@@ -11388,7 +11388,7 @@ function Tw(e, n, t) {
11388
11388
  }
11389
11389
  function b(x, M, P) {
11390
11390
  var I = x << 0 | M << 1 | P << 2, T = l[I];
11391
- return T === void 0 && (T = new Xs({
11391
+ return T === void 0 && (T = new Zs({
11392
11392
  morphTargets: x,
11393
11393
  skinning: M
11394
11394
  }), l[I] = T), T;
@@ -11579,7 +11579,7 @@ function c3(e, n, t) {
11579
11579
  return p !== $ ? (e.useProgram($), p = $, !0) : !1;
11580
11580
  }
11581
11581
  var Te = {
11582
- [Oo]: 32774,
11582
+ [zo]: 32774,
11583
11583
  [LC]: 32778,
11584
11584
  [kC]: 32779
11585
11585
  };
@@ -11609,7 +11609,7 @@ function c3(e, n, t) {
11609
11609
  }
11610
11610
  if (g || (Be(3042), g = !0), $ !== DC) {
11611
11611
  if ($ !== y || Ht !== I) {
11612
- if ((b !== Oo || x !== Oo) && (e.blendEquation(32774), b = Oo, x = Oo), Ht)
11612
+ if ((b !== zo || x !== zo) && (e.blendEquation(32774), b = zo, x = zo), Ht)
11613
11613
  switch ($) {
11614
11614
  case Ol:
11615
11615
  e.blendFuncSeparate(1, 771, 1, 771);
@@ -11938,7 +11938,7 @@ function h3(e, n, t, i, r, s, o) {
11938
11938
  de(me, j, he);
11939
11939
  var Re, tt = j.mipmaps;
11940
11940
  if (j.isDepthTexture)
11941
- lt = 6402, a ? j.type === qr ? lt = 36012 : j.type === fu ? lt = 33190 : j.type === Bl ? lt = 35056 : lt = 33189 : j.type === qr && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), j.format === Jo && lt === 6402 && j.type !== Mu && j.type !== fu && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), j.type = Mu, et = s.convert(j.type)), j.format === Xl && lt === 6402 && (lt = 34041, j.type !== Bl && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), j.type = Bl, et = s.convert(j.type))), t.texImage2D(3553, 0, lt, Ae.width, Ae.height, 0, st, et, null);
11941
+ lt = 6402, a ? j.type === qr ? lt = 36012 : j.type === fu ? lt = 33190 : j.type === Bl ? lt = 35056 : lt = 33189 : j.type === qr && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), j.format === qo && lt === 6402 && j.type !== Mu && j.type !== fu && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), j.type = Mu, et = s.convert(j.type)), j.format === Xl && lt === 6402 && (lt = 34041, j.type !== Bl && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), j.type = Bl, et = s.convert(j.type))), t.texImage2D(3553, 0, lt, Ae.width, Ae.height, 0, st, et, null);
11942
11942
  else if (j.isDataTexture)
11943
11943
  if (tt.length > 0 && he) {
11944
11944
  for (var Ze = 0, Ke = tt.length; Ze < Ke; Ze++)
@@ -12002,7 +12002,7 @@ function h3(e, n, t, i, r, s, o) {
12002
12002
  throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");
12003
12003
  (!i.get(j.depthTexture).__webglTexture || j.depthTexture.image.width !== j.width || j.depthTexture.image.height !== j.height) && (j.depthTexture.image.width = j.width, j.depthTexture.image.height = j.height, j.depthTexture.needsUpdate = !0), G(j.depthTexture, 0);
12004
12004
  var me = i.get(j.depthTexture).__webglTexture;
12005
- if (j.depthTexture.format === Jo)
12005
+ if (j.depthTexture.format === qo)
12006
12006
  e.framebufferTexture2D(36160, 36096, 3553, me, 0);
12007
12007
  else if (j.depthTexture.format === Xl)
12008
12008
  e.framebufferTexture2D(36160, 33306, 3553, me, 0);
@@ -12116,7 +12116,7 @@ function u3(e, n, t) {
12116
12116
  return 6409;
12117
12117
  if (s === hP)
12118
12118
  return 6410;
12119
- if (s === Jo)
12119
+ if (s === qo)
12120
12120
  return 6402;
12121
12121
  if (s === Xl)
12122
12122
  return 34041;
@@ -12774,7 +12774,7 @@ function Lw(e) {
12774
12774
  Zt = wt.ceilPowerOfTwo(Zt), Zt = Math.max(Zt, 4);
12775
12775
  var dr = new Float32Array(Zt * Zt * 4);
12776
12776
  dr.set(yn.boneMatrices);
12777
- var ln = new oa(dr, Zt, Zt, Ti, qr);
12777
+ var ln = new aa(dr, Zt, Zt, Ti, qr);
12778
12778
  yn.boneMatrices = dr, yn.boneTexture = ln, yn.boneTextureSize = Zt;
12779
12779
  }
12780
12780
  Et.setValue(ae, "boneTexture", yn.boneTexture, He), Et.setValue(ae, "boneTextureSize", yn.boneTextureSize);
@@ -12991,19 +12991,19 @@ Object.assign($r.prototype, {
12991
12991
  };
12992
12992
  }
12993
12993
  });
12994
- function Zs(e) {
12994
+ function Js(e) {
12995
12995
  dt.call(this), this.type = "SpriteMaterial", this.color = new Qe(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.setValues(e);
12996
12996
  }
12997
- Zs.prototype = Object.create(dt.prototype);
12998
- Zs.prototype.constructor = Zs;
12999
- Zs.prototype.isSpriteMaterial = !0;
13000
- Zs.prototype.copy = function(e) {
12997
+ Js.prototype = Object.create(dt.prototype);
12998
+ Js.prototype.constructor = Js;
12999
+ Js.prototype.isSpriteMaterial = !0;
13000
+ Js.prototype.copy = function(e) {
13001
13001
  return dt.prototype.copy.call(this, e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.rotation = e.rotation, this.sizeAttenuation = e.sizeAttenuation, this;
13002
13002
  };
13003
- var Eo, pl = new B(), Co = new B(), Po = new B(), _o = new pe(), ml = new pe(), kw = new Mt(), Sh = new B(), gl = new B(), Th = new B(), h0 = new pe(), Vf = new pe(), u0 = new pe();
13003
+ var Co, pl = new B(), Po = new B(), _o = new B(), Io = new pe(), ml = new pe(), kw = new Mt(), Sh = new B(), gl = new B(), Th = new B(), h0 = new pe(), Vf = new pe(), u0 = new pe();
13004
13004
  function Qp(e) {
13005
- if (je.call(this), this.type = "Sprite", Eo === void 0) {
13006
- Eo = new Xe();
13005
+ if (je.call(this), this.type = "Sprite", Co === void 0) {
13006
+ Co = new Xe();
13007
13007
  var n = new Float32Array([
13008
13008
  -0.5,
13009
13009
  -0.5,
@@ -13026,21 +13026,21 @@ function Qp(e) {
13026
13026
  0,
13027
13027
  1
13028
13028
  ]), t = new ls(n, 5);
13029
- Eo.setIndex([0, 1, 2, 0, 2, 3]), Eo.setAttribute("position", new $r(t, 3, 0, !1)), Eo.setAttribute("uv", new $r(t, 2, 3, !1));
13029
+ Co.setIndex([0, 1, 2, 0, 2, 3]), Co.setAttribute("position", new $r(t, 3, 0, !1)), Co.setAttribute("uv", new $r(t, 2, 3, !1));
13030
13030
  }
13031
- this.geometry = Eo, this.material = e !== void 0 ? e : new Zs(), this.center = new pe(0.5, 0.5);
13031
+ this.geometry = Co, this.material = e !== void 0 ? e : new Js(), this.center = new pe(0.5, 0.5);
13032
13032
  }
13033
13033
  Qp.prototype = Object.assign(Object.create(je.prototype), {
13034
13034
  constructor: Qp,
13035
13035
  isSprite: !0,
13036
13036
  raycast: function(e, n) {
13037
- e.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'), Co.setFromMatrixScale(this.matrixWorld), kw.copy(e.camera.matrixWorld), this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse, this.matrixWorld), Po.setFromMatrixPosition(this.modelViewMatrix), e.camera.isPerspectiveCamera && this.material.sizeAttenuation === !1 && Co.multiplyScalar(-Po.z);
13037
+ e.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'), Po.setFromMatrixScale(this.matrixWorld), kw.copy(e.camera.matrixWorld), this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse, this.matrixWorld), _o.setFromMatrixPosition(this.modelViewMatrix), e.camera.isPerspectiveCamera && this.material.sizeAttenuation === !1 && Po.multiplyScalar(-_o.z);
13038
13038
  var t = this.material.rotation, i, r;
13039
13039
  t !== 0 && (r = Math.cos(t), i = Math.sin(t));
13040
13040
  var s = this.center;
13041
- Dh(Sh.set(-0.5, -0.5, 0), Po, s, Co, i, r), Dh(gl.set(0.5, -0.5, 0), Po, s, Co, i, r), Dh(Th.set(0.5, 0.5, 0), Po, s, Co, i, r), h0.set(0, 0), Vf.set(1, 0), u0.set(1, 1);
13041
+ Dh(Sh.set(-0.5, -0.5, 0), _o, s, Po, i, r), Dh(gl.set(0.5, -0.5, 0), _o, s, Po, i, r), Dh(Th.set(0.5, 0.5, 0), _o, s, Po, i, r), h0.set(0, 0), Vf.set(1, 0), u0.set(1, 1);
13042
13042
  var o = e.ray.intersectTriangle(Sh, gl, Th, !1, pl);
13043
- if (!(o === null && (Dh(gl.set(-0.5, 0.5, 0), Po, s, Co, i, r), Vf.set(0, 1), o = e.ray.intersectTriangle(Sh, Th, gl, !1, pl), o === null))) {
13043
+ if (!(o === null && (Dh(gl.set(-0.5, 0.5, 0), _o, s, Po, i, r), Vf.set(0, 1), o = e.ray.intersectTriangle(Sh, Th, gl, !1, pl), o === null))) {
13044
13044
  var a = e.ray.origin.distanceTo(pl);
13045
13045
  a < e.near || a > e.far || n.push({
13046
13046
  distance: a,
@@ -13059,7 +13059,7 @@ Qp.prototype = Object.assign(Object.create(je.prototype), {
13059
13059
  }
13060
13060
  });
13061
13061
  function Dh(e, n, t, i, r, s) {
13062
- _o.subVectors(e, t).addScalar(0.5).multiply(i), r !== void 0 ? (ml.x = s * _o.x - r * _o.y, ml.y = r * _o.x + s * _o.y) : ml.copy(_o), e.copy(n), e.x += ml.x, e.y += ml.y, e.applyMatrix4(kw);
13062
+ Io.subVectors(e, t).addScalar(0.5).multiply(i), r !== void 0 ? (ml.x = s * Io.x - r * Io.y, ml.y = r * Io.x + s * Io.y) : ml.copy(Io), e.copy(n), e.x += ml.x, e.y += ml.y, e.applyMatrix4(kw);
13063
13063
  }
13064
13064
  var Lh = new B(), d0 = new B();
13065
13065
  function Tu() {
@@ -13403,18 +13403,18 @@ Jp.prototype = Object.assign(Object.create(vi.prototype), {
13403
13403
  constructor: Jp,
13404
13404
  isLineLoop: !0
13405
13405
  });
13406
- function Js(e) {
13406
+ function qs(e) {
13407
13407
  dt.call(this), this.type = "PointsMaterial", this.color = new Qe(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.morphTargets = !1, this.setValues(e);
13408
13408
  }
13409
- Js.prototype = Object.create(dt.prototype);
13410
- Js.prototype.constructor = Js;
13411
- Js.prototype.isPointsMaterial = !0;
13412
- Js.prototype.copy = function(e) {
13409
+ qs.prototype = Object.create(dt.prototype);
13410
+ qs.prototype.constructor = qs;
13411
+ qs.prototype.isPointsMaterial = !0;
13412
+ qs.prototype.copy = function(e) {
13413
13413
  return dt.prototype.copy.call(this, e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.morphTargets = e.morphTargets, this;
13414
13414
  };
13415
13415
  var A0 = new Mt(), qp = new Ha(), Nh = new cr(), Fh = new B();
13416
13416
  function Kp(e, n) {
13417
- je.call(this), this.type = "Points", this.geometry = e !== void 0 ? e : new Xe(), this.material = n !== void 0 ? n : new Js(), this.updateMorphTargets();
13417
+ je.call(this), this.type = "Points", this.geometry = e !== void 0 ? e : new Xe(), this.material = n !== void 0 ? n : new qs(), this.updateMorphTargets();
13418
13418
  }
13419
13419
  Kp.prototype = Object.assign(Object.create(je.prototype), {
13420
13420
  constructor: Kp,
@@ -13500,9 +13500,9 @@ Du.prototype = Object.create(Wt.prototype);
13500
13500
  Du.prototype.constructor = Du;
13501
13501
  Du.prototype.isCanvasTexture = !0;
13502
13502
  function Lu(e, n, t, i, r, s, o, a, l, c) {
13503
- if (c = c !== void 0 ? c : Jo, c !== Jo && c !== Xl)
13503
+ if (c = c !== void 0 ? c : qo, c !== qo && c !== Xl)
13504
13504
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
13505
- t === void 0 && c === Jo && (t = Mu), t === void 0 && c === Xl && (t = Bl), Wt.call(this, null, i, r, s, o, a, c, t, l), this.image = { width: e, height: n }, this.magFilter = o !== void 0 ? o : mn, this.minFilter = a !== void 0 ? a : mn, this.flipY = !1, this.generateMipmaps = !1;
13505
+ t === void 0 && c === qo && (t = Mu), t === void 0 && c === Xl && (t = Bl), Wt.call(this, null, i, r, s, o, a, c, t, l), this.image = { width: e, height: n }, this.magFilter = o !== void 0 ? o : mn, this.minFilter = a !== void 0 ? a : mn, this.flipY = !1, this.generateMipmaps = !1;
13506
13506
  }
13507
13507
  Lu.prototype = Object.create(Wt.prototype);
13508
13508
  Lu.prototype.constructor = Lu;
@@ -13699,11 +13699,11 @@ function zu(e, n) {
13699
13699
  pt.call(this), this.type = "OctahedronGeometry", this.parameters = {
13700
13700
  radius: e,
13701
13701
  detail: n
13702
- }, this.fromBufferGeometry(new la(e, n)), this.mergeVertices();
13702
+ }, this.fromBufferGeometry(new ca(e, n)), this.mergeVertices();
13703
13703
  }
13704
13704
  zu.prototype = Object.create(pt.prototype);
13705
13705
  zu.prototype.constructor = zu;
13706
- function la(e, n) {
13706
+ function ca(e, n) {
13707
13707
  var t = [
13708
13708
  1,
13709
13709
  0,
@@ -13754,8 +13754,8 @@ function la(e, n) {
13754
13754
  detail: n
13755
13755
  };
13756
13756
  }
13757
- la.prototype = Object.create(oi.prototype);
13758
- la.prototype.constructor = la;
13757
+ ca.prototype = Object.create(oi.prototype);
13758
+ ca.prototype.constructor = ca;
13759
13759
  function Bu(e, n) {
13760
13760
  pt.call(this), this.type = "IcosahedronGeometry", this.parameters = {
13761
13761
  radius: e,
@@ -14070,12 +14070,12 @@ function Fu(e, n, t, i, r, s) {
14070
14070
  radialSegments: i,
14071
14071
  closed: r
14072
14072
  }, s !== void 0 && console.warn("THREE.TubeGeometry: taper has been removed.");
14073
- var o = new ca(e, n, t, i, r);
14073
+ var o = new ha(e, n, t, i, r);
14074
14074
  this.tangents = o.tangents, this.normals = o.normals, this.binormals = o.binormals, this.fromBufferGeometry(o), this.mergeVertices();
14075
14075
  }
14076
14076
  Fu.prototype = Object.create(pt.prototype);
14077
14077
  Fu.prototype.constructor = Fu;
14078
- function ca(e, n, t, i, r) {
14078
+ function ha(e, n, t, i, r) {
14079
14079
  Xe.call(this), this.type = "TubeBufferGeometry", this.parameters = {
14080
14080
  path: e,
14081
14081
  tubularSegments: n,
@@ -14113,9 +14113,9 @@ function ca(e, n, t, i, r) {
14113
14113
  l.x = h / n, l.y = u / i, m.push(l.x, l.y);
14114
14114
  }
14115
14115
  }
14116
- ca.prototype = Object.create(Xe.prototype);
14117
- ca.prototype.constructor = ca;
14118
- ca.prototype.toJSON = function() {
14116
+ ha.prototype = Object.create(Xe.prototype);
14117
+ ha.prototype.constructor = ha;
14118
+ ha.prototype.toJSON = function() {
14119
14119
  var e = Xe.prototype.toJSON.call(this);
14120
14120
  return e.path = this.parameters.path.toJSON(), e;
14121
14121
  };
@@ -14256,7 +14256,7 @@ function m3(e) {
14256
14256
  if (Kt(n, t, i) >= 0)
14257
14257
  return !1;
14258
14258
  for (var r = e.next.next; r !== e.prev; ) {
14259
- if (Ho(n.x, n.y, t.x, t.y, i.x, i.y, r.x, r.y) && Kt(r.prev, r, r.next) >= 0)
14259
+ if (Uo(n.x, n.y, t.x, t.y, i.x, i.y, r.x, r.y) && Kt(r.prev, r, r.next) >= 0)
14260
14260
  return !1;
14261
14261
  r = r.next;
14262
14262
  }
@@ -14267,17 +14267,17 @@ function g3(e, n, t, i) {
14267
14267
  if (Kt(r, s, o) >= 0)
14268
14268
  return !1;
14269
14269
  for (var a = r.x < s.x ? r.x < o.x ? r.x : o.x : s.x < o.x ? s.x : o.x, l = r.y < s.y ? r.y < o.y ? r.y : o.y : s.y < o.y ? s.y : o.y, c = r.x > s.x ? r.x > o.x ? r.x : o.x : s.x > o.x ? s.x : o.x, h = r.y > s.y ? r.y > o.y ? r.y : o.y : s.y > o.y ? s.y : o.y, u = $p(a, l, n, t, i), d = $p(c, h, n, t, i), f = e.prevZ, m = e.nextZ; f && f.z >= u && m && m.z <= d; ) {
14270
- if (f !== e.prev && f !== e.next && Ho(r.x, r.y, s.x, s.y, o.x, o.y, f.x, f.y) && Kt(f.prev, f, f.next) >= 0 || (f = f.prevZ, m !== e.prev && m !== e.next && Ho(r.x, r.y, s.x, s.y, o.x, o.y, m.x, m.y) && Kt(m.prev, m, m.next) >= 0))
14270
+ if (f !== e.prev && f !== e.next && Uo(r.x, r.y, s.x, s.y, o.x, o.y, f.x, f.y) && Kt(f.prev, f, f.next) >= 0 || (f = f.prevZ, m !== e.prev && m !== e.next && Uo(r.x, r.y, s.x, s.y, o.x, o.y, m.x, m.y) && Kt(m.prev, m, m.next) >= 0))
14271
14271
  return !1;
14272
14272
  m = m.nextZ;
14273
14273
  }
14274
14274
  for (; f && f.z >= u; ) {
14275
- if (f !== e.prev && f !== e.next && Ho(r.x, r.y, s.x, s.y, o.x, o.y, f.x, f.y) && Kt(f.prev, f, f.next) >= 0)
14275
+ if (f !== e.prev && f !== e.next && Uo(r.x, r.y, s.x, s.y, o.x, o.y, f.x, f.y) && Kt(f.prev, f, f.next) >= 0)
14276
14276
  return !1;
14277
14277
  f = f.prevZ;
14278
14278
  }
14279
14279
  for (; m && m.z <= d; ) {
14280
- if (m !== e.prev && m !== e.next && Ho(r.x, r.y, s.x, s.y, o.x, o.y, m.x, m.y) && Kt(m.prev, m, m.next) >= 0)
14280
+ if (m !== e.prev && m !== e.next && Uo(r.x, r.y, s.x, s.y, o.x, o.y, m.x, m.y) && Kt(m.prev, m, m.next) >= 0)
14281
14281
  return !1;
14282
14282
  m = m.nextZ;
14283
14283
  }
@@ -14346,7 +14346,7 @@ function x3(e, n) {
14346
14346
  var l = o, c = o.x, h = o.y, u = 1 / 0, d;
14347
14347
  t = o;
14348
14348
  do
14349
- i >= t.x && t.x >= c && i !== t.x && Ho(r < h ? i : s, r, c, h, r < h ? s : i, r, t.x, t.y) && (d = Math.abs(r - t.y) / (i - t.x), fc(t, e) && (d < u || d === u && (t.x > o.x || t.x === o.x && M3(o, t))) && (o = t, u = d)), t = t.next;
14349
+ i >= t.x && t.x >= c && i !== t.x && Uo(r < h ? i : s, r, c, h, r < h ? s : i, r, t.x, t.y) && (d = Math.abs(r - t.y) / (i - t.x), fc(t, e) && (d < u || d === u && (t.x > o.x || t.x === o.x && M3(o, t))) && (o = t, u = d)), t = t.next;
14350
14350
  while (t !== l);
14351
14351
  return o;
14352
14352
  }
@@ -14384,7 +14384,7 @@ function P3(e) {
14384
14384
  while (n !== e);
14385
14385
  return t;
14386
14386
  }
14387
- function Ho(e, n, t, i, r, s, o, a) {
14387
+ function Uo(e, n, t, i, r, s, o, a) {
14388
14388
  return (r - o) * (n - a) - (e - o) * (s - a) >= 0 && (e - o) * (i - a) - (t - o) * (n - a) >= 0 && (t - o) * (s - a) - (r - o) * (i - a) >= 0;
14389
14389
  }
14390
14390
  function _3(e, n) {
@@ -14477,15 +14477,15 @@ function E0(e, n) {
14477
14477
  for (var t = 0; t < n.length; t++)
14478
14478
  e.push(n[t].x), e.push(n[t].y);
14479
14479
  }
14480
- function ha(e, n) {
14480
+ function ua(e, n) {
14481
14481
  pt.call(this), this.type = "ExtrudeGeometry", this.parameters = {
14482
14482
  shapes: e,
14483
14483
  options: n
14484
14484
  }, this.fromBufferGeometry(new Ir(e, n)), this.mergeVertices();
14485
14485
  }
14486
- ha.prototype = Object.create(pt.prototype);
14487
- ha.prototype.constructor = ha;
14488
- ha.prototype.toJSON = function() {
14486
+ ua.prototype = Object.create(pt.prototype);
14487
+ ua.prototype.constructor = ua;
14488
+ ua.prototype.toJSON = function() {
14489
14489
  var e = pt.prototype.toJSON.call(this), n = this.parameters.shapes, t = this.parameters.options;
14490
14490
  return Bw(n, t, e);
14491
14491
  };
@@ -14680,11 +14680,11 @@ function Hu(e, n, t, i, r, s, o) {
14680
14680
  phiLength: r,
14681
14681
  thetaStart: s,
14682
14682
  thetaLength: o
14683
- }, this.fromBufferGeometry(new ua(e, n, t, i, r, s, o)), this.mergeVertices();
14683
+ }, this.fromBufferGeometry(new da(e, n, t, i, r, s, o)), this.mergeVertices();
14684
14684
  }
14685
14685
  Hu.prototype = Object.create(pt.prototype);
14686
14686
  Hu.prototype.constructor = Hu;
14687
- function ua(e, n, t, i, r, s, o) {
14687
+ function da(e, n, t, i, r, s, o) {
14688
14688
  Xe.call(this), this.type = "SphereBufferGeometry", this.parameters = {
14689
14689
  radius: e,
14690
14690
  widthSegments: n,
@@ -14710,8 +14710,8 @@ function ua(e, n, t, i, r, s, o) {
14710
14710
  }
14711
14711
  this.setIndex(m), this.setAttribute("position", new ze(p, 3)), this.setAttribute("normal", new ze(g, 3)), this.setAttribute("uv", new ze(y, 2));
14712
14712
  }
14713
- ua.prototype = Object.create(Xe.prototype);
14714
- ua.prototype.constructor = ua;
14713
+ da.prototype = Object.create(Xe.prototype);
14714
+ da.prototype.constructor = da;
14715
14715
  function Uu(e, n, t, i, r, s) {
14716
14716
  pt.call(this), this.type = "RingGeometry", this.parameters = {
14717
14717
  innerRadius: e,
@@ -14788,19 +14788,19 @@ function vc(e, n, t, i) {
14788
14788
  }
14789
14789
  vc.prototype = Object.create(Xe.prototype);
14790
14790
  vc.prototype.constructor = vc;
14791
- function da(e, n) {
14791
+ function fa(e, n) {
14792
14792
  pt.call(this), this.type = "ShapeGeometry", typeof n == "object" && (console.warn("THREE.ShapeGeometry: Options parameter has been removed."), n = n.curveSegments), this.parameters = {
14793
14793
  shapes: e,
14794
14794
  curveSegments: n
14795
- }, this.fromBufferGeometry(new fa(e, n)), this.mergeVertices();
14795
+ }, this.fromBufferGeometry(new pa(e, n)), this.mergeVertices();
14796
14796
  }
14797
- da.prototype = Object.create(pt.prototype);
14798
- da.prototype.constructor = da;
14799
- da.prototype.toJSON = function() {
14797
+ fa.prototype = Object.create(pt.prototype);
14798
+ fa.prototype.constructor = fa;
14799
+ fa.prototype.toJSON = function() {
14800
14800
  var e = pt.prototype.toJSON.call(this), n = this.parameters.shapes;
14801
14801
  return Nw(n, e);
14802
14802
  };
14803
- function fa(e, n) {
14803
+ function pa(e, n) {
14804
14804
  Xe.call(this), this.type = "ShapeBufferGeometry", this.parameters = {
14805
14805
  shapes: e,
14806
14806
  curveSegments: n
@@ -14829,9 +14829,9 @@ function fa(e, n) {
14829
14829
  }
14830
14830
  }
14831
14831
  }
14832
- fa.prototype = Object.create(Xe.prototype);
14833
- fa.prototype.constructor = fa;
14834
- fa.prototype.toJSON = function() {
14832
+ pa.prototype = Object.create(Xe.prototype);
14833
+ pa.prototype.constructor = pa;
14834
+ pa.prototype.toJSON = function() {
14835
14835
  var e = Xe.prototype.toJSON.call(this), n = this.parameters.shapes;
14836
14836
  return Nw(n, e);
14837
14837
  };
@@ -14865,7 +14865,7 @@ function Qu(e, n) {
14865
14865
  }
14866
14866
  Qu.prototype = Object.create(Xe.prototype);
14867
14867
  Qu.prototype.constructor = Qu;
14868
- function pa(e, n, t, i, r, s, o, a) {
14868
+ function ma(e, n, t, i, r, s, o, a) {
14869
14869
  pt.call(this), this.type = "CylinderGeometry", this.parameters = {
14870
14870
  radiusTop: e,
14871
14871
  radiusBottom: n,
@@ -14877,8 +14877,8 @@ function pa(e, n, t, i, r, s, o, a) {
14877
14877
  thetaLength: a
14878
14878
  }, this.fromBufferGeometry(new hs(e, n, t, i, r, s, o, a)), this.mergeVertices();
14879
14879
  }
14880
- pa.prototype = Object.create(pt.prototype);
14881
- pa.prototype.constructor = pa;
14880
+ ma.prototype = Object.create(pt.prototype);
14881
+ ma.prototype.constructor = ma;
14882
14882
  function hs(e, n, t, i, r, s, o, a) {
14883
14883
  Xe.call(this), this.type = "CylinderBufferGeometry", this.parameters = {
14884
14884
  radiusTop: e,
@@ -14929,7 +14929,7 @@ function hs(e, n, t, i, r, s, o, a) {
14929
14929
  hs.prototype = Object.create(Xe.prototype);
14930
14930
  hs.prototype.constructor = hs;
14931
14931
  function Yu(e, n, t, i, r, s, o) {
14932
- pa.call(this, 0, e, n, t, i, r, s, o), this.type = "ConeGeometry", this.parameters = {
14932
+ ma.call(this, 0, e, n, t, i, r, s, o), this.type = "ConeGeometry", this.parameters = {
14933
14933
  radius: e,
14934
14934
  height: n,
14935
14935
  radialSegments: t,
@@ -14939,7 +14939,7 @@ function Yu(e, n, t, i, r, s, o) {
14939
14939
  thetaLength: o
14940
14940
  };
14941
14941
  }
14942
- Yu.prototype = Object.create(pa.prototype);
14942
+ Yu.prototype = Object.create(ma.prototype);
14943
14943
  Yu.prototype.constructor = Yu;
14944
14944
  function Xu(e, n, t, i, r, s, o) {
14945
14945
  hs.call(this, 0, e, n, t, i, r, s, o), this.type = "ConeBufferGeometry", this.parameters = {
@@ -14990,7 +14990,7 @@ var Un = /* @__PURE__ */ Object.freeze({
14990
14990
  TetrahedronGeometry: Ou,
14991
14991
  TetrahedronBufferGeometry: ac,
14992
14992
  OctahedronGeometry: zu,
14993
- OctahedronBufferGeometry: la,
14993
+ OctahedronBufferGeometry: ca,
14994
14994
  IcosahedronGeometry: Bu,
14995
14995
  IcosahedronBufferGeometry: lc,
14996
14996
  DodecahedronGeometry: Nu,
@@ -14998,7 +14998,7 @@ var Un = /* @__PURE__ */ Object.freeze({
14998
14998
  PolyhedronGeometry: Ru,
14999
14999
  PolyhedronBufferGeometry: oi,
15000
15000
  TubeGeometry: Fu,
15001
- TubeBufferGeometry: ca,
15001
+ TubeBufferGeometry: ha,
15002
15002
  TorusKnotGeometry: Vu,
15003
15003
  TorusKnotBufferGeometry: hc,
15004
15004
  TorusGeometry: Gu,
@@ -15006,34 +15006,34 @@ var Un = /* @__PURE__ */ Object.freeze({
15006
15006
  TextGeometry: ju,
15007
15007
  TextBufferGeometry: mc,
15008
15008
  SphereGeometry: Hu,
15009
- SphereBufferGeometry: ua,
15009
+ SphereBufferGeometry: da,
15010
15010
  RingGeometry: Uu,
15011
15011
  RingBufferGeometry: gc,
15012
15012
  PlaneGeometry: Iu,
15013
- PlaneBufferGeometry: aa,
15013
+ PlaneBufferGeometry: la,
15014
15014
  LatheGeometry: Wu,
15015
15015
  LatheBufferGeometry: vc,
15016
- ShapeGeometry: da,
15017
- ShapeBufferGeometry: fa,
15018
- ExtrudeGeometry: ha,
15016
+ ShapeGeometry: fa,
15017
+ ShapeBufferGeometry: pa,
15018
+ ExtrudeGeometry: ua,
15019
15019
  ExtrudeBufferGeometry: Ir,
15020
15020
  EdgesGeometry: Qu,
15021
15021
  ConeGeometry: Yu,
15022
15022
  ConeBufferGeometry: Xu,
15023
- CylinderGeometry: pa,
15023
+ CylinderGeometry: ma,
15024
15024
  CylinderBufferGeometry: hs,
15025
15025
  CircleGeometry: Zu,
15026
15026
  CircleBufferGeometry: yc,
15027
15027
  BoxGeometry: v2,
15028
15028
  BoxBufferGeometry: Td
15029
15029
  });
15030
- function ma(e) {
15030
+ function ga(e) {
15031
15031
  dt.call(this), this.type = "ShadowMaterial", this.color = new Qe(0), this.transparent = !0, this.setValues(e);
15032
15032
  }
15033
- ma.prototype = Object.create(dt.prototype);
15034
- ma.prototype.constructor = ma;
15035
- ma.prototype.isShadowMaterial = !0;
15036
- ma.prototype.copy = function(e) {
15033
+ ga.prototype = Object.create(dt.prototype);
15034
+ ga.prototype.constructor = ga;
15035
+ ga.prototype.isShadowMaterial = !0;
15036
+ ga.prototype.copy = function(e) {
15037
15037
  return dt.prototype.copy.call(this, e), this.color.copy(e.color), this;
15038
15038
  };
15039
15039
  function us(e) {
@@ -15051,93 +15051,93 @@ Sr.prototype.isMeshStandardMaterial = !0;
15051
15051
  Sr.prototype.copy = function(e) {
15052
15052
  return dt.prototype.copy.call(this, e), this.defines = { STANDARD: "" }, this.color.copy(e.color), this.roughness = e.roughness, this.metalness = e.metalness, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.roughnessMap = e.roughnessMap, this.metalnessMap = e.metalnessMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapIntensity = e.envMapIntensity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this.vertexTangents = e.vertexTangents, this;
15053
15053
  };
15054
- function ga(e) {
15054
+ function va(e) {
15055
15055
  Sr.call(this), this.defines = {
15056
15056
  STANDARD: "",
15057
15057
  PHYSICAL: ""
15058
15058
  }, this.type = "MeshPhysicalMaterial", this.clearcoat = 0, this.clearcoatMap = null, this.clearcoatRoughness = 0, this.clearcoatRoughnessMap = null, this.clearcoatNormalScale = new pe(1, 1), this.clearcoatNormalMap = null, this.reflectivity = 0.5, this.sheen = null, this.transparency = 0, this.setValues(e);
15059
15059
  }
15060
- ga.prototype = Object.create(Sr.prototype);
15061
- ga.prototype.constructor = ga;
15062
- ga.prototype.isMeshPhysicalMaterial = !0;
15063
- ga.prototype.copy = function(e) {
15060
+ va.prototype = Object.create(Sr.prototype);
15061
+ va.prototype.constructor = va;
15062
+ va.prototype.isMeshPhysicalMaterial = !0;
15063
+ va.prototype.copy = function(e) {
15064
15064
  return Sr.prototype.copy.call(this, e), this.defines = {
15065
15065
  STANDARD: "",
15066
15066
  PHYSICAL: ""
15067
15067
  }, this.clearcoat = e.clearcoat, this.clearcoatMap = e.clearcoatMap, this.clearcoatRoughness = e.clearcoatRoughness, this.clearcoatRoughnessMap = e.clearcoatRoughnessMap, this.clearcoatNormalMap = e.clearcoatNormalMap, this.clearcoatNormalScale.copy(e.clearcoatNormalScale), this.reflectivity = e.reflectivity, e.sheen ? this.sheen = (this.sheen || new Qe()).copy(e.sheen) : this.sheen = null, this.transparency = e.transparency, this;
15068
15068
  };
15069
- function qs(e) {
15069
+ function Ks(e) {
15070
15070
  dt.call(this), this.type = "MeshPhongMaterial", this.color = new Qe(16777215), this.specular = new Qe(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Qe(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Ga, this.normalScale = new pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Pd, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15071
15071
  }
15072
- qs.prototype = Object.create(dt.prototype);
15073
- qs.prototype.constructor = qs;
15074
- qs.prototype.isMeshPhongMaterial = !0;
15075
- qs.prototype.copy = function(e) {
15072
+ Ks.prototype = Object.create(dt.prototype);
15073
+ Ks.prototype.constructor = Ks;
15074
+ Ks.prototype.isMeshPhongMaterial = !0;
15075
+ Ks.prototype.copy = function(e) {
15076
15076
  return dt.prototype.copy.call(this, e), this.color.copy(e.color), this.specular.copy(e.specular), this.shininess = e.shininess, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15077
15077
  };
15078
- function va(e) {
15079
- dt.call(this), this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new Qe(16777215), this.specular = new Qe(1118481), this.shininess = 30, this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Qe(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Ga, this.normalScale = new pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15080
- }
15081
- va.prototype = Object.create(dt.prototype);
15082
- va.prototype.constructor = va;
15083
- va.prototype.isMeshToonMaterial = !0;
15084
- va.prototype.copy = function(e) {
15085
- return dt.prototype.copy.call(this, e), this.color.copy(e.color), this.specular.copy(e.specular), this.shininess = e.shininess, this.map = e.map, this.gradientMap = e.gradientMap, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15086
- };
15087
15078
  function ya(e) {
15088
- dt.call(this), this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Ga, this.normalScale = new pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15079
+ dt.call(this), this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new Qe(16777215), this.specular = new Qe(1118481), this.shininess = 30, this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Qe(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Ga, this.normalScale = new pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15089
15080
  }
15090
15081
  ya.prototype = Object.create(dt.prototype);
15091
15082
  ya.prototype.constructor = ya;
15092
- ya.prototype.isMeshNormalMaterial = !0;
15083
+ ya.prototype.isMeshToonMaterial = !0;
15093
15084
  ya.prototype.copy = function(e) {
15094
- return dt.prototype.copy.call(this, e), this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15085
+ return dt.prototype.copy.call(this, e), this.color.copy(e.color), this.specular.copy(e.specular), this.shininess = e.shininess, this.map = e.map, this.gradientMap = e.gradientMap, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15095
15086
  };
15096
15087
  function ba(e) {
15097
- dt.call(this), this.type = "MeshLambertMaterial", this.color = new Qe(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Qe(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Pd, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15088
+ dt.call(this), this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Ga, this.normalScale = new pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15098
15089
  }
15099
15090
  ba.prototype = Object.create(dt.prototype);
15100
15091
  ba.prototype.constructor = ba;
15101
- ba.prototype.isMeshLambertMaterial = !0;
15092
+ ba.prototype.isMeshNormalMaterial = !0;
15102
15093
  ba.prototype.copy = function(e) {
15103
- return dt.prototype.copy.call(this, e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15094
+ return dt.prototype.copy.call(this, e), this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15104
15095
  };
15105
15096
  function Aa(e) {
15106
- dt.call(this), this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new Qe(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Ga, this.normalScale = new pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15097
+ dt.call(this), this.type = "MeshLambertMaterial", this.color = new Qe(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Qe(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Pd, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15107
15098
  }
15108
15099
  Aa.prototype = Object.create(dt.prototype);
15109
15100
  Aa.prototype.constructor = Aa;
15110
- Aa.prototype.isMeshMatcapMaterial = !0;
15101
+ Aa.prototype.isMeshLambertMaterial = !0;
15111
15102
  Aa.prototype.copy = function(e) {
15112
- return dt.prototype.copy.call(this, e), this.defines = { MATCAP: "" }, this.color.copy(e.color), this.matcap = e.matcap, this.map = e.map, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.alphaMap = e.alphaMap, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15103
+ return dt.prototype.copy.call(this, e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15113
15104
  };
15114
15105
  function wa(e) {
15115
- un.call(this), this.type = "LineDashedMaterial", this.scale = 1, this.dashSize = 3, this.gapSize = 1, this.setValues(e);
15106
+ dt.call(this), this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new Qe(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Ga, this.normalScale = new pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15116
15107
  }
15117
- wa.prototype = Object.create(un.prototype);
15108
+ wa.prototype = Object.create(dt.prototype);
15118
15109
  wa.prototype.constructor = wa;
15119
- wa.prototype.isLineDashedMaterial = !0;
15110
+ wa.prototype.isMeshMatcapMaterial = !0;
15120
15111
  wa.prototype.copy = function(e) {
15112
+ return dt.prototype.copy.call(this, e), this.defines = { MATCAP: "" }, this.color.copy(e.color), this.matcap = e.matcap, this.map = e.map, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.alphaMap = e.alphaMap, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15113
+ };
15114
+ function xa(e) {
15115
+ un.call(this), this.type = "LineDashedMaterial", this.scale = 1, this.dashSize = 3, this.gapSize = 1, this.setValues(e);
15116
+ }
15117
+ xa.prototype = Object.create(un.prototype);
15118
+ xa.prototype.constructor = xa;
15119
+ xa.prototype.isLineDashedMaterial = !0;
15120
+ xa.prototype.copy = function(e) {
15121
15121
  return un.prototype.copy.call(this, e), this.scale = e.scale, this.dashSize = e.dashSize, this.gapSize = e.gapSize, this;
15122
15122
  };
15123
15123
  var L3 = /* @__PURE__ */ Object.freeze({
15124
15124
  __proto__: null,
15125
- ShadowMaterial: ma,
15126
- SpriteMaterial: Zs,
15125
+ ShadowMaterial: ga,
15126
+ SpriteMaterial: Js,
15127
15127
  RawShaderMaterial: us,
15128
15128
  ShaderMaterial: ei,
15129
- PointsMaterial: Js,
15130
- MeshPhysicalMaterial: ga,
15129
+ PointsMaterial: qs,
15130
+ MeshPhysicalMaterial: va,
15131
15131
  MeshStandardMaterial: Sr,
15132
- MeshPhongMaterial: qs,
15133
- MeshToonMaterial: va,
15134
- MeshNormalMaterial: ya,
15135
- MeshLambertMaterial: ba,
15136
- MeshDepthMaterial: Ys,
15137
- MeshDistanceMaterial: Xs,
15132
+ MeshPhongMaterial: Ks,
15133
+ MeshToonMaterial: ya,
15134
+ MeshNormalMaterial: ba,
15135
+ MeshLambertMaterial: Aa,
15136
+ MeshDepthMaterial: Xs,
15137
+ MeshDistanceMaterial: Zs,
15138
15138
  MeshBasicMaterial: ki,
15139
- MeshMatcapMaterial: Aa,
15140
- LineDashedMaterial: wa,
15139
+ MeshMatcapMaterial: wa,
15140
+ LineDashedMaterial: xa,
15141
15141
  LineBasicMaterial: un,
15142
15142
  Material: dt
15143
15143
  }), qt = {
@@ -15348,14 +15348,14 @@ function tm(e, n, t, i) {
15348
15348
  tm.prototype = Object.assign(Object.create(pi.prototype), {
15349
15349
  constructor: tm,
15350
15350
  DefaultSettings_: {
15351
- endingStart: ra,
15352
- endingEnd: ra
15351
+ endingStart: sa,
15352
+ endingEnd: sa
15353
15353
  },
15354
15354
  intervalChanged_: function(e, n, t) {
15355
15355
  var i = this.parameterPositions, r = e - 2, s = e + 1, o = i[r], a = i[s];
15356
15356
  if (o === void 0)
15357
15357
  switch (this.getSettings_().endingStart) {
15358
- case Fo:
15358
+ case Vo:
15359
15359
  r = e, o = 2 * n - t;
15360
15360
  break;
15361
15361
  case Pu:
@@ -15366,7 +15366,7 @@ tm.prototype = Object.assign(Object.create(pi.prototype), {
15366
15366
  }
15367
15367
  if (a === void 0)
15368
15368
  switch (this.getSettings_().endingEnd) {
15369
- case Fo:
15369
+ case Vo:
15370
15370
  s = e, a = 2 * t - n;
15371
15371
  break;
15372
15372
  case Pu:
@@ -15835,7 +15835,7 @@ Object.assign(Pi.prototype, {
15835
15835
  return new Pi(this.name, this.duration, e, this.blendMode);
15836
15836
  }
15837
15837
  });
15838
- var xa = {
15838
+ var Ma = {
15839
15839
  enabled: !1,
15840
15840
  files: {},
15841
15841
  add: function(e, n) {
@@ -15914,7 +15914,7 @@ tr.prototype = Object.assign(Object.create(Vt.prototype), {
15914
15914
  constructor: tr,
15915
15915
  load: function(e, n, t, i) {
15916
15916
  e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
15917
- var r = this, s = xa.get(e);
15917
+ var r = this, s = Ma.get(e);
15918
15918
  if (s !== void 0)
15919
15919
  return r.manager.itemStart(e), setTimeout(function() {
15920
15920
  n && n(s), r.manager.itemEnd(e);
@@ -15969,7 +15969,7 @@ tr.prototype = Object.assign(Object.create(Vt.prototype), {
15969
15969
  g.open("GET", e, !0), g.addEventListener("load", function(b) {
15970
15970
  var A = this.response, w = Ei[e];
15971
15971
  if (delete Ei[e], this.status === 200 || this.status === 0) {
15972
- this.status === 0 && console.warn("THREE.FileLoader: HTTP Status 0 received."), xa.add(e, A);
15972
+ this.status === 0 && console.warn("THREE.FileLoader: HTTP Status 0 received."), Ma.add(e, A);
15973
15973
  for (var x = 0, M = w.length; x < M; x++) {
15974
15974
  var P = w[x];
15975
15975
  P.onLoad && P.onLoad(A);
@@ -16089,7 +16089,7 @@ function _0(e) {
16089
16089
  _0.prototype = Object.assign(Object.create(Vt.prototype), {
16090
16090
  constructor: _0,
16091
16091
  load: function(e, n, t, i) {
16092
- var r = this, s = new oa(), o = new tr(this.manager);
16092
+ var r = this, s = new aa(), o = new tr(this.manager);
16093
16093
  return o.setResponseType("arraybuffer"), o.setPath(this.path), o.load(e, function(a) {
16094
16094
  var l = r.parse(a);
16095
16095
  l && (l.image !== void 0 ? s.image = l.image : l.data !== void 0 && (s.image.width = l.width, s.image.height = l.height, s.image.data = l.data), s.wrapS = l.wrapS !== void 0 ? l.wrapS : Kn, s.wrapT = l.wrapT !== void 0 ? l.wrapT : Kn, s.magFilter = l.magFilter !== void 0 ? l.magFilter : Bn, s.minFilter = l.minFilter !== void 0 ? l.minFilter : Bn, s.anisotropy = l.anisotropy !== void 0 ? l.anisotropy : 1, l.format !== void 0 && (s.format = l.format), l.type !== void 0 && (s.type = l.type), l.mipmaps !== void 0 && (s.mipmaps = l.mipmaps, s.minFilter = _d), l.mipmapCount === 1 && (s.minFilter = Bn), s.needsUpdate = !0, n && n(s, l));
@@ -16103,14 +16103,14 @@ wc.prototype = Object.assign(Object.create(Vt.prototype), {
16103
16103
  constructor: wc,
16104
16104
  load: function(e, n, t, i) {
16105
16105
  this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
16106
- var r = this, s = xa.get(e);
16106
+ var r = this, s = Ma.get(e);
16107
16107
  if (s !== void 0)
16108
16108
  return r.manager.itemStart(e), setTimeout(function() {
16109
16109
  n && n(s), r.manager.itemEnd(e);
16110
16110
  }, 0), s;
16111
16111
  var o = document.createElementNS("http://www.w3.org/1999/xhtml", "img");
16112
16112
  function a() {
16113
- o.removeEventListener("load", a, !1), o.removeEventListener("error", l, !1), xa.add(e, this), n && n(this), r.manager.itemEnd(e);
16113
+ o.removeEventListener("load", a, !1), o.removeEventListener("error", l, !1), Ma.add(e, this), n && n(this), r.manager.itemEnd(e);
16114
16114
  }
16115
16115
  function l(c) {
16116
16116
  o.removeEventListener("load", a, !1), o.removeEventListener("error", l, !1), i && i(c), r.manager.itemError(e), r.manager.itemEnd(e);
@@ -17237,11 +17237,11 @@ var Vw = {
17237
17237
  return n === -1 ? "./" : e.substr(0, n + 1);
17238
17238
  }
17239
17239
  };
17240
- function Ma() {
17240
+ function Ea() {
17241
17241
  Xe.call(this), this.type = "InstancedBufferGeometry", this.instanceCount = 1 / 0;
17242
17242
  }
17243
- Ma.prototype = Object.assign(Object.create(Xe.prototype), {
17244
- constructor: Ma,
17243
+ Ea.prototype = Object.assign(Object.create(Xe.prototype), {
17244
+ constructor: Ea,
17245
17245
  isInstancedBufferGeometry: !0,
17246
17246
  copy: function(e) {
17247
17247
  return Xe.prototype.copy.call(this, e), this.instanceCount = e.instanceCount, this;
@@ -17284,7 +17284,7 @@ wm.prototype = Object.assign(Object.create(Vt.prototype), {
17284
17284
  }, t, i);
17285
17285
  },
17286
17286
  parse: function(e) {
17287
- var n = e.isInstancedBufferGeometry ? new Ma() : new Xe(), t = e.data.index;
17287
+ var n = e.isInstancedBufferGeometry ? new Ea() : new Xe(), t = e.data.index;
17288
17288
  if (t !== void 0) {
17289
17289
  var i = new Wf[t.type](t.array);
17290
17290
  n.setIndex(new ut(i, 1));
@@ -17750,7 +17750,7 @@ D0.prototype = Object.assign(Object.create(Vt.prototype), {
17750
17750
  },
17751
17751
  load: function(e, n, t, i) {
17752
17752
  e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
17753
- var r = this, s = xa.get(e);
17753
+ var r = this, s = Ma.get(e);
17754
17754
  if (s !== void 0)
17755
17755
  return r.manager.itemStart(e), setTimeout(function() {
17756
17756
  n && n(s), r.manager.itemEnd(e);
@@ -17760,7 +17760,7 @@ D0.prototype = Object.assign(Object.create(Vt.prototype), {
17760
17760
  }).then(function(o) {
17761
17761
  return r.options === void 0 ? createImageBitmap(o) : createImageBitmap(o, r.options);
17762
17762
  }).then(function(o) {
17763
- xa.add(e, o), n && n(o), r.manager.itemEnd(e);
17763
+ Ma.add(e, o), n && n(o), r.manager.itemEnd(e);
17764
17764
  }).catch(function(o) {
17765
17765
  i && i(o), r.manager.itemError(e), r.manager.itemEnd(e);
17766
17766
  }), r.manager.itemStart(e);
@@ -18735,8 +18735,8 @@ Object.assign(iT.prototype, {
18735
18735
  function Xw(e, n, t, i) {
18736
18736
  this._mixer = e, this._clip = n, this._localRoot = t || null, this.blendMode = i || n.blendMode;
18737
18737
  for (var r = n.tracks, s = r.length, o = new Array(s), a = {
18738
- endingStart: ra,
18739
- endingEnd: ra
18738
+ endingStart: sa,
18739
+ endingEnd: sa
18740
18740
  }, l = 0; l !== s; ++l) {
18741
18741
  var c = r[l].createInterpolant(null);
18742
18742
  o[l] = c, c.settings = a;
@@ -18944,7 +18944,7 @@ Object.assign(Xw.prototype, {
18944
18944
  },
18945
18945
  _setEndings: function(e, n, t) {
18946
18946
  var i = this._interpolantSettings;
18947
- t ? (i.endingStart = Fo, i.endingEnd = Fo) : (e ? i.endingStart = this.zeroSlopeAtStart ? Fo : ra : i.endingStart = Pu, n ? i.endingEnd = this.zeroSlopeAtEnd ? Fo : ra : i.endingEnd = Pu);
18947
+ t ? (i.endingStart = Vo, i.endingEnd = Vo) : (e ? i.endingStart = this.zeroSlopeAtStart ? Vo : sa : i.endingStart = Pu, n ? i.endingEnd = this.zeroSlopeAtEnd ? Vo : sa : i.endingEnd = Pu);
18948
18948
  },
18949
18949
  _scheduleFading: function(e, n, t) {
18950
18950
  var i = this._mixer, r = i.time, s = this._weightInterpolant;
@@ -19493,7 +19493,7 @@ function Kw(e) {
19493
19493
  n.push.apply(n, Kw(e.children[t]));
19494
19494
  return n;
19495
19495
  }
19496
- function Ea(e) {
19496
+ function Ca(e) {
19497
19497
  for (var n = Kw(e), t = new Xe(), i = [], r = [], s = new Qe(0, 0, 1), o = new Qe(0, 1, 0), a = 0; a < n.length; a++) {
19498
19498
  var l = n[a];
19499
19499
  l.parent && l.parent.isBone && (i.push(0, 0, 0), i.push(0, 0, 0), r.push(s.r, s.g, s.b), r.push(o.r, o.g, o.b));
@@ -19502,10 +19502,10 @@ function Ea(e) {
19502
19502
  var c = new un({ vertexColors: !0, depthTest: !1, depthWrite: !1, toneMapped: !1, transparent: !0 });
19503
19503
  gn.call(this, t, c), this.type = "SkeletonHelper", this.root = e, this.bones = n, this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1;
19504
19504
  }
19505
- Ea.prototype = Object.create(gn.prototype);
19506
- Ea.prototype.constructor = Ea;
19507
- Ea.prototype.isSkeletonHelper = !0;
19508
- Ea.prototype.updateMatrixWorld = function(e) {
19505
+ Ca.prototype = Object.create(gn.prototype);
19506
+ Ca.prototype.constructor = Ca;
19507
+ Ca.prototype.isSkeletonHelper = !0;
19508
+ Ca.prototype.updateMatrixWorld = function(e) {
19509
19509
  var n = this.bones, t = this.geometry, i = t.getAttribute("position");
19510
19510
  Qf.getInverse(this.root.matrixWorld);
19511
19511
  for (var r = 0, s = 0; r < n.length; r++) {
@@ -19516,7 +19516,7 @@ Ea.prototype.updateMatrixWorld = function(e) {
19516
19516
  };
19517
19517
  function Pc(e, n, t) {
19518
19518
  this.light = e, this.light.updateMatrixWorld(), this.color = t;
19519
- var i = new ua(n, 4, 2), r = new ki({ wireframe: !0, fog: !1, toneMapped: !1 });
19519
+ var i = new da(n, 4, 2), r = new ki({ wireframe: !0, fog: !1, toneMapped: !1 });
19520
19520
  en.call(this, i, r), this.type = "PointLightHelper", this.matrix = this.light.matrixWorld, this.matrixAutoUpdate = !1, this.update();
19521
19521
  }
19522
19522
  Pc.prototype = Object.create(en.prototype);
@@ -19530,7 +19530,7 @@ Pc.prototype.update = function() {
19530
19530
  var oT = new B(), Q0 = new Qe(), Y0 = new Qe();
19531
19531
  function _c(e, n, t) {
19532
19532
  je.call(this), this.light = e, this.light.updateMatrixWorld(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.color = t;
19533
- var i = new la(n);
19533
+ var i = new ca(n);
19534
19534
  i.rotateY(Math.PI * 0.5), this.material = new ki({ wireframe: !0, fog: !1, toneMapped: !1 }), this.color === void 0 && (this.material.vertexColors = !0);
19535
19535
  var r = i.getAttribute("position"), s = new Float32Array(r.count * 3);
19536
19536
  i.setAttribute("color", new ut(s, 3)), this.add(new en(i, this.material)), this.update();
@@ -19649,26 +19649,26 @@ function cn(e, n, t, i, r, s, o) {
19649
19649
  l.setXYZ(a[c], Yh.x, Yh.y, Yh.z);
19650
19650
  }
19651
19651
  var Xh = new mi();
19652
- function Ks(e, n) {
19652
+ function $s(e, n) {
19653
19653
  this.object = e, n === void 0 && (n = 16776960);
19654
19654
  var t = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = new Float32Array(8 * 3), r = new Xe();
19655
19655
  r.setIndex(new ut(t, 1)), r.setAttribute("position", new ut(i, 3)), gn.call(this, r, new un({ color: n, toneMapped: !1 })), this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update();
19656
19656
  }
19657
- Ks.prototype = Object.create(gn.prototype);
19658
- Ks.prototype.constructor = Ks;
19659
- Ks.prototype.update = function(e) {
19657
+ $s.prototype = Object.create(gn.prototype);
19658
+ $s.prototype.constructor = $s;
19659
+ $s.prototype.update = function(e) {
19660
19660
  if (e !== void 0 && console.warn("THREE.BoxHelper: .update() has no longer arguments."), this.object !== void 0 && Xh.setFromObject(this.object), !Xh.isEmpty()) {
19661
19661
  var n = Xh.min, t = Xh.max, i = this.geometry.attributes.position, r = i.array;
19662
19662
  r[0] = t.x, r[1] = t.y, r[2] = t.z, r[3] = n.x, r[4] = t.y, r[5] = t.z, r[6] = n.x, r[7] = n.y, r[8] = t.z, r[9] = t.x, r[10] = n.y, r[11] = t.z, r[12] = t.x, r[13] = t.y, r[14] = n.z, r[15] = n.x, r[16] = t.y, r[17] = n.z, r[18] = n.x, r[19] = n.y, r[20] = n.z, r[21] = t.x, r[22] = n.y, r[23] = n.z, i.needsUpdate = !0, this.geometry.computeBoundingSphere();
19663
19663
  }
19664
19664
  };
19665
- Ks.prototype.setFromObject = function(e) {
19665
+ $s.prototype.setFromObject = function(e) {
19666
19666
  return this.object = e, this.update(), this;
19667
19667
  };
19668
- Ks.prototype.copy = function(e) {
19668
+ $s.prototype.copy = function(e) {
19669
19669
  return gn.prototype.copy.call(this, e), this.object = e.object, this;
19670
19670
  };
19671
- Ks.prototype.clone = function() {
19671
+ $s.prototype.clone = function() {
19672
19672
  return new this.constructor().copy(this);
19673
19673
  };
19674
19674
  function td(e, n) {
@@ -19771,7 +19771,7 @@ function Im(e) {
19771
19771
  }
19772
19772
  Im.prototype = Object.create(gn.prototype);
19773
19773
  Im.prototype.constructor = Im;
19774
- var qo = 4, rs = 8, Qi = Math.pow(2, rs), $w = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], ex = rs - qo + 1 + $w.length, zo = 20, Zi = {
19774
+ var Ko = 4, rs = 8, Qi = Math.pow(2, rs), $w = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], ex = rs - Ko + 1 + $w.length, Bo = 20, Zi = {
19775
19775
  [$n]: 0,
19776
19776
  [Id]: 1,
19777
19777
  [cg]: 2,
@@ -19779,20 +19779,20 @@ var qo = 4, rs = 8, Qi = Math.pow(2, rs), $w = [0.125, 0.215, 0.35, 0.446, 0.526
19779
19779
  [gw]: 4,
19780
19780
  [vw]: 5,
19781
19781
  [lg]: 6
19782
- }, Xf = new Mc(), { _lodPlanes: yl, _sizeLods: q0, _sigmas: Jh } = lT(), Zf = null, zs = (1 + Math.sqrt(5)) / 2, Io = 1 / zs, K0 = [
19782
+ }, Xf = new Mc(), { _lodPlanes: yl, _sizeLods: q0, _sigmas: Jh } = lT(), Zf = null, zs = (1 + Math.sqrt(5)) / 2, So = 1 / zs, K0 = [
19783
19783
  new B(1, 1, 1),
19784
19784
  new B(-1, 1, 1),
19785
19785
  new B(1, 1, -1),
19786
19786
  new B(-1, 1, -1),
19787
- new B(0, zs, Io),
19788
- new B(0, zs, -Io),
19789
- new B(Io, 0, zs),
19790
- new B(-Io, 0, zs),
19791
- new B(zs, Io, 0),
19792
- new B(-zs, Io, 0)
19787
+ new B(0, zs, So),
19788
+ new B(0, zs, -So),
19789
+ new B(So, 0, zs),
19790
+ new B(-So, 0, zs),
19791
+ new B(zs, So, 0),
19792
+ new B(-zs, So, 0)
19793
19793
  ];
19794
19794
  function $0(e) {
19795
- this._renderer = e, this._pingPongRenderTarget = null, this._blurMaterial = cT(zo), this._equirectShader = null, this._cubemapShader = null, this._compileMaterial(this._blurMaterial);
19795
+ this._renderer = e, this._pingPongRenderTarget = null, this._blurMaterial = cT(Bo), this._equirectShader = null, this._cubemapShader = null, this._compileMaterial(this._blurMaterial);
19796
19796
  }
19797
19797
  $0.prototype = {
19798
19798
  constructor: $0,
@@ -19941,16 +19941,16 @@ $0.prototype = {
19941
19941
  s !== "latitudinal" && s !== "longitudinal" && console.error(
19942
19942
  "blur direction must be either latitudinal or longitudinal!"
19943
19943
  );
19944
- var c = 3, h = new en(yl[i], l), u = l.uniforms, d = q0[t] - 1, f = isFinite(r) ? Math.PI / (2 * d) : 2 * Math.PI / (2 * zo - 1), m = r / f, p = isFinite(r) ? 1 + Math.floor(c * m) : zo;
19945
- p > zo && console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${p} samples when the maximum is set to ${zo}`);
19946
- for (var g = [], y = 0, b = 0; b < zo; ++b) {
19944
+ var c = 3, h = new en(yl[i], l), u = l.uniforms, d = q0[t] - 1, f = isFinite(r) ? Math.PI / (2 * d) : 2 * Math.PI / (2 * Bo - 1), m = r / f, p = isFinite(r) ? 1 + Math.floor(c * m) : Bo;
19945
+ p > Bo && console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${p} samples when the maximum is set to ${Bo}`);
19946
+ for (var g = [], y = 0, b = 0; b < Bo; ++b) {
19947
19947
  var x = b / m, A = Math.exp(-x * x / 2);
19948
19948
  g.push(A), b == 0 ? y += A : b < p && (y += 2 * A);
19949
19949
  }
19950
19950
  for (var b = 0; b < g.length; b++)
19951
19951
  g[b] = g[b] / y;
19952
19952
  u.envMap.value = e.texture, u.samples.value = p, u.weights.value = g, u.latitudinal.value = s === "latitudinal", o && (u.poleAxis.value = o), u.dTheta.value = f, u.mipInt.value = rs - t, u.inputEncoding.value = Zi[e.texture.encoding], u.outputEncoding.value = Zi[e.texture.encoding];
19953
- var w = q0[i], x = 3 * Math.max(0, Qi - 2 * w), M = (i === 0 ? 0 : 2 * Qi) + 2 * w * (i > rs - qo ? i - rs + qo : 0);
19953
+ var w = q0[i], x = 3 * Math.max(0, Qi - 2 * w), M = (i === 0 ? 0 : 2 * Qi) + 2 * w * (i > rs - Ko ? i - rs + Ko : 0);
19954
19954
  Jf(n, x, M, 3 * w, 2 * w), a.setRenderTarget(n), a.render(h, Xf);
19955
19955
  }
19956
19956
  };
@@ -19962,7 +19962,7 @@ function lT() {
19962
19962
  var s = Math.pow(2, i);
19963
19963
  n.push(s);
19964
19964
  var o = 1 / s;
19965
- r > rs - qo ? o = $w[r - rs + qo - 1] : r == 0 && (o = 0), t.push(o);
19965
+ r > rs - Ko ? o = $w[r - rs + Ko - 1] : r == 0 && (o = 0), t.push(o);
19966
19966
  for (var a = 1 / (s - 1), l = -a / 2, c = 1 + a / 2, h = [l, l, c, l, c, c, l, l, c, c, l, c], u = 6, d = 6, f = 3, m = 2, p = 1, g = new Float32Array(f * d * u), y = new Float32Array(m * d * u), b = new Float32Array(p * d * u), A = 0; A < u; A++) {
19967
19967
  var w = A % 3 * 2 / 3 - 1, x = A > 2 ? 0 : -1, M = [
19968
19968
  w,
@@ -19989,7 +19989,7 @@ function lT() {
19989
19989
  b.set(P, p * d * A);
19990
19990
  }
19991
19991
  var I = new Xe();
19992
- I.setAttribute("position", new ut(g, f)), I.setAttribute("uv", new ut(y, m)), I.setAttribute("faceIndex", new ut(b, p)), e.push(I), i > qo && i--;
19992
+ I.setAttribute("position", new ut(g, f)), I.setAttribute("uv", new ut(y, m)), I.setAttribute("faceIndex", new ut(b, p)), e.push(I), i > Ko && i--;
19993
19993
  }
19994
19994
  return { _lodPlanes: e, _sizeLods: n, _sigmas: t };
19995
19995
  }
@@ -20271,7 +20271,7 @@ Object.assign(tx.prototype, {
20271
20271
  Pm.prototype.setColors = function() {
20272
20272
  console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.");
20273
20273
  };
20274
- Ea.prototype.update = function() {
20274
+ Ca.prototype.update = function() {
20275
20275
  console.error("THREE.SkeletonHelper: update() no longer needs to be called.");
20276
20276
  };
20277
20277
  Object.assign(Vt.prototype, {
@@ -20465,10 +20465,10 @@ Object.assign(Vs.prototype, {
20465
20465
  return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."), this.extractPoints(e);
20466
20466
  },
20467
20467
  extrude: function(e) {
20468
- return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."), new ha(this, e);
20468
+ return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."), new ua(this, e);
20469
20469
  },
20470
20470
  makeGeometry: function(e) {
20471
- return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."), new da(this, e);
20471
+ return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."), new fa(this, e);
20472
20472
  }
20473
20473
  });
20474
20474
  Object.assign(pe.prototype, {
@@ -20740,7 +20740,7 @@ Object.defineProperties(Xe.prototype, {
20740
20740
  }
20741
20741
  }
20742
20742
  });
20743
- Object.defineProperties(Ma.prototype, {
20743
+ Object.defineProperties(Ea.prototype, {
20744
20744
  maxInstancedCount: {
20745
20745
  get: function() {
20746
20746
  return console.warn("THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount."), this.instanceCount;
@@ -20840,7 +20840,7 @@ Object.defineProperties(dt.prototype, {
20840
20840
  }
20841
20841
  }
20842
20842
  });
20843
- Object.defineProperties(qs.prototype, {
20843
+ Object.defineProperties(Ks.prototype, {
20844
20844
  metal: {
20845
20845
  get: function() {
20846
20846
  return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."), !1;
@@ -21119,37 +21119,37 @@ Ww.prototype.getData = function() {
21119
21119
  $l.prototype.updateCubeMap = function(e, n) {
21120
21120
  return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."), this.update(e, n);
21121
21121
  };
21122
- Qs.crossOrigin = void 0;
21123
- Qs.loadTexture = function(e, n, t, i) {
21122
+ Ys.crossOrigin = void 0;
21123
+ Ys.loadTexture = function(e, n, t, i) {
21124
21124
  console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");
21125
21125
  var r = new lm();
21126
21126
  r.setCrossOrigin(this.crossOrigin);
21127
21127
  var s = r.load(e, t, void 0, i);
21128
21128
  return n && (s.mapping = n), s;
21129
21129
  };
21130
- Qs.loadTextureCube = function(e, n, t, i) {
21130
+ Ys.loadTextureCube = function(e, n, t, i) {
21131
21131
  console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");
21132
21132
  var r = new am();
21133
21133
  r.setCrossOrigin(this.crossOrigin);
21134
21134
  var s = r.load(e, t, void 0, i);
21135
21135
  return n && (s.mapping = n), s;
21136
21136
  };
21137
- Qs.loadCompressedTexture = function() {
21137
+ Ys.loadCompressedTexture = function() {
21138
21138
  console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.");
21139
21139
  };
21140
- Qs.loadCompressedTextureCube = function() {
21140
+ Ys.loadCompressedTextureCube = function() {
21141
21141
  console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.");
21142
21142
  };
21143
21143
  typeof __THREE_DEVTOOLS__ != "undefined" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: {
21144
21144
  revision: _C
21145
21145
  } }));
21146
- var Ko = function() {
21147
- Ma.call(this), this.type = "LineSegmentsGeometry";
21146
+ var $o = function() {
21147
+ Ea.call(this), this.type = "LineSegmentsGeometry";
21148
21148
  var e = [-1, 2, 0, 1, 2, 0, -1, 1, 0, 1, 1, 0, -1, 0, 0, 1, 0, 0, -1, -1, 0, 1, -1, 0], n = [-1, 2, 1, 2, -1, 1, 1, 1, -1, -1, 1, -1, -1, -2, 1, -2], t = [0, 2, 1, 2, 3, 1, 2, 4, 3, 4, 5, 3, 4, 6, 5, 6, 7, 5];
21149
21149
  this.setIndex(t), this.setAttribute("position", new ze(e, 3)), this.setAttribute("uv", new ze(n, 2));
21150
21150
  };
21151
- Ko.prototype = Object.assign(Object.create(Ma.prototype), {
21152
- constructor: Ko,
21151
+ $o.prototype = Object.assign(Object.create(Ea.prototype), {
21152
+ constructor: $o,
21153
21153
  isLineSegmentsGeometry: !0,
21154
21154
  applyMatrix4: function(e) {
21155
21155
  var n = this.attributes.instanceStart, t = this.attributes.instanceEnd;
@@ -21209,20 +21209,20 @@ Ko.prototype = Object.assign(Object.create(Ma.prototype), {
21209
21209
  }
21210
21210
  });
21211
21211
  var Gl = function() {
21212
- Ko.call(this), this.type = "LineGeometry";
21212
+ $o.call(this), this.type = "LineGeometry";
21213
21213
  };
21214
- Gl.prototype = Object.assign(Object.create(Ko.prototype), {
21214
+ Gl.prototype = Object.assign(Object.create($o.prototype), {
21215
21215
  constructor: Gl,
21216
21216
  isLineGeometry: !0,
21217
21217
  setPositions: function(e) {
21218
21218
  for (var n = e.length - 3, t = new Float32Array(2 * n), i = 0; i < n; i += 3)
21219
21219
  t[2 * i] = e[i], t[2 * i + 1] = e[i + 1], t[2 * i + 2] = e[i + 2], t[2 * i + 3] = e[i + 3], t[2 * i + 4] = e[i + 4], t[2 * i + 5] = e[i + 5];
21220
- return Ko.prototype.setPositions.call(this, t), this;
21220
+ return $o.prototype.setPositions.call(this, t), this;
21221
21221
  },
21222
21222
  setColors: function(e) {
21223
21223
  for (var n = e.length - 3, t = new Float32Array(2 * n), i = 0; i < n; i += 3)
21224
21224
  t[2 * i] = e[i], t[2 * i + 1] = e[i + 1], t[2 * i + 2] = e[i + 2], t[2 * i + 3] = e[i + 3], t[2 * i + 4] = e[i + 4], t[2 * i + 5] = e[i + 5];
21225
- return Ko.prototype.setColors.call(this, t), this;
21225
+ return $o.prototype.setColors.call(this, t), this;
21226
21226
  },
21227
21227
  fromLine: function(e) {
21228
21228
  var n = e.geometry;
@@ -21394,7 +21394,7 @@ function id(e, n) {
21394
21394
  }
21395
21395
  }
21396
21396
  const iy = "LightTagContainer_shgjakdhwakjdhsja", uT = new C.Vector2();
21397
- class Ca {
21397
+ class Gs {
21398
21398
  constructor(n, t, i) {
21399
21399
  v(this, "container");
21400
21400
  v(this, "visible", !1);
@@ -21510,13 +21510,16 @@ class Ca {
21510
21510
  }
21511
21511
  }
21512
21512
  function dT(e, n, t) {
21513
- return new Ca(e, n, t);
21513
+ return new Gs(e, n, t);
21514
21514
  }
21515
21515
  function vg(e) {
21516
21516
  ry(e), e.traverse((n) => ry(n));
21517
21517
  }
21518
21518
  function ry(e) {
21519
- Array.isArray(e.lengthDoms) && e.lengthDoms[0] instanceof Ca && e.lengthDoms.forEach((t) => t.destroy()), e.areaDom instanceof Ca && e.areaDom.destroy();
21519
+ const n = e;
21520
+ Array.isArray(n.doms) && n.doms[0] instanceof Gs && n.doms.forEach((i) => i.destroy());
21521
+ const t = e;
21522
+ t.dom && t.dom instanceof Gs && t.dom.destroy(), e.areaDom instanceof Gs && e.areaDom.destroy();
21520
21523
  }
21521
21524
  function yg(e) {
21522
21525
  if (!document.getElementById("LineLengthTagStyle")) {
@@ -21530,6 +21533,7 @@ function yg(e) {
21530
21533
  color: white;
21531
21534
  left: 50%;
21532
21535
  transform: translate(-50%, -100%);
21536
+ text-wrap: nowrap;
21533
21537
  }
21534
21538
  .LineLengthTag div:first-child {
21535
21539
  position: absolute;
@@ -21684,7 +21688,7 @@ class Oi extends ti {
21684
21688
  i ? r === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : r === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0, this.line.material.opacity === 1 ? this.backLine.material.setDashed(!0) : this.backLine.material.setDashed(this.line.material.dashed)) : (this.line.material.depthTest = !0, this.backLine.visible = !1), this.needsRender = !0;
21685
21689
  }
21686
21690
  highlight() {
21687
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * ia, this.backLine.material.opacity = this.backLine.material.opacity * ia, this.needsRender = !0);
21691
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * ra, this.backLine.material.opacity = this.backLine.material.opacity * ra, this.needsRender = !0);
21688
21692
  }
21689
21693
  unhighlight() {
21690
21694
  this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
@@ -21705,7 +21709,7 @@ class Oi extends ti {
21705
21709
  var c;
21706
21710
  const a = lr(r, s);
21707
21711
  this.doms[o] = (c = this.doms[o]) != null ? c : (() => {
21708
- const h = new Ca(this.five);
21712
+ const h = new Gs(this.five);
21709
21713
  return h.intersectCheck = !1, h.simulate3D = !0, h;
21710
21714
  })(), this.doms[o].setPosition(a, [r, s]);
21711
21715
  const l = (h) => {
@@ -22543,7 +22547,7 @@ class UT extends fx {
22543
22547
  }), super.add(...t), this;
22544
22548
  }
22545
22549
  }
22546
- const WT = 3, Sm = "CSS3DRenderer", Il = `${Sm}@${WT}`, So = () => {
22550
+ const WT = 3, Sm = "CSS3DRenderer", Il = `${Sm}@${WT}`, To = () => {
22547
22551
  console.error(`${Il} is disposed`);
22548
22552
  }, pn = {
22549
22553
  css3DObjects: [],
@@ -22612,7 +22616,7 @@ class Lc {
22612
22616
  */
22613
22617
  v(this, "create3DElement", (n, t, i) => {
22614
22618
  if (this.state.disposed)
22615
- return So();
22619
+ return To();
22616
22620
  const r = (() => {
22617
22621
  const x = {
22618
22622
  ratio: 216e-5,
@@ -22694,7 +22698,7 @@ class Lc {
22694
22698
  }
22695
22699
  setState(n, t = { userAction: !0 }) {
22696
22700
  if (this.state.disposed)
22697
- return So();
22701
+ return To();
22698
22702
  const i = R({}, this.state);
22699
22703
  this.state = Object.assign(this.state, n), i.visible !== this.state.visible && (n.visible ? this.handleShow() : this.handleHide()), i.enabled !== this.state.enabled && (n.enabled ? this.handleEnable() : this.handleDisable()), i.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: t.userAction });
22700
22704
  }
@@ -22704,25 +22708,25 @@ class Lc {
22704
22708
  show() {
22705
22709
  return ee(this, arguments, function* ({ userAction: n } = { userAction: !0 }) {
22706
22710
  if (this.state.disposed)
22707
- return So();
22711
+ return To();
22708
22712
  this.setState({ visible: !0 }, { userAction: n }), this.hooks.emit("show", { userAction: n });
22709
22713
  });
22710
22714
  }
22711
22715
  hide() {
22712
22716
  return ee(this, arguments, function* ({ userAction: n } = { userAction: !0 }) {
22713
22717
  if (this.state.disposed)
22714
- return So();
22718
+ return To();
22715
22719
  this.setState({ visible: !1 }, { userAction: n }), this.hooks.emit("hide", { userAction: n });
22716
22720
  });
22717
22721
  }
22718
22722
  enable({ userAction: n } = { userAction: !0 }) {
22719
22723
  if (this.state.disposed)
22720
- return So();
22724
+ return To();
22721
22725
  this.setState({ enabled: !0 }, { userAction: n }), this.hooks.emit("enable", { userAction: n });
22722
22726
  }
22723
22727
  disable({ userAction: n } = { userAction: !0 }) {
22724
22728
  if (this.state.disposed)
22725
- return So();
22729
+ return To();
22726
22730
  this.setState({ enabled: !1 }, { userAction: n }), this.hooks.emit("disable", { userAction: n });
22727
22731
  }
22728
22732
  getFrontCSS3DScene({ createSceneIfNotExists: n = !1 } = {}) {
@@ -22988,7 +22992,7 @@ const N6 = (e) => {
22988
22992
  e.off("intersectionOnModelUpdate", t), e.off("intersectionHidden", i);
22989
22993
  });
22990
22994
  const r = (h, u = 2, d = 0.1) => {
22991
- const f = u / 2, p = c(h, d), g = new Zo();
22995
+ const f = u / 2, p = c(h, d), g = new Jo();
22992
22996
  g.add(
22993
22997
  np(
22994
22998
  new Se(p.x + f, p.y, p.z),
@@ -23110,20 +23114,20 @@ function dy(e) {
23110
23114
  }
23111
23115
  const yx = typeof window != "undefined";
23112
23116
  let xg = yx ? () => window.performance.now() : () => Date.now(), Mg = yx ? (e) => requestAnimationFrame(e) : ue;
23113
- const $o = /* @__PURE__ */ new Set();
23117
+ const ea = /* @__PURE__ */ new Set();
23114
23118
  function bx(e) {
23115
- $o.forEach((n) => {
23116
- n.c(e) || ($o.delete(n), n.f());
23117
- }), $o.size !== 0 && Mg(bx);
23119
+ ea.forEach((n) => {
23120
+ n.c(e) || (ea.delete(n), n.f());
23121
+ }), ea.size !== 0 && Mg(bx);
23118
23122
  }
23119
23123
  function Eg(e) {
23120
23124
  let n;
23121
- return $o.size === 0 && Mg(bx), {
23125
+ return ea.size === 0 && Mg(bx), {
23122
23126
  promise: new Promise((t) => {
23123
- $o.add(n = { c: e, f: t });
23127
+ ea.add(n = { c: e, f: t });
23124
23128
  }),
23125
23129
  abort() {
23126
- $o.delete(n);
23130
+ ea.delete(n);
23127
23131
  }
23128
23132
  };
23129
23133
  }
@@ -23338,8 +23342,8 @@ function Ka(e, n) {
23338
23342
  const t = e.$$.callbacks[n.type];
23339
23343
  t && t.slice().forEach((i) => i.call(this, n));
23340
23344
  }
23341
- const Bo = [], Qt = [];
23342
- let ea = [];
23345
+ const No = [], Qt = [];
23346
+ let ta = [];
23343
23347
  const Dm = [], Ex = /* @__PURE__ */ Promise.resolve();
23344
23348
  let Lm = !1;
23345
23349
  function Cx() {
@@ -23349,34 +23353,34 @@ function fy() {
23349
23353
  return Cx(), Ex;
23350
23354
  }
23351
23355
  function sn(e) {
23352
- ea.push(e);
23356
+ ta.push(e);
23353
23357
  }
23354
23358
  function _g(e) {
23355
23359
  Dm.push(e);
23356
23360
  }
23357
23361
  const ip = /* @__PURE__ */ new Set();
23358
- let To = 0;
23362
+ let Do = 0;
23359
23363
  function Ig() {
23360
- if (To !== 0)
23364
+ if (Do !== 0)
23361
23365
  return;
23362
23366
  const e = kc;
23363
23367
  do {
23364
23368
  try {
23365
- for (; To < Bo.length; ) {
23366
- const n = Bo[To];
23367
- To++, Pr(n), sD(n.$$);
23369
+ for (; Do < No.length; ) {
23370
+ const n = No[Do];
23371
+ Do++, Pr(n), sD(n.$$);
23368
23372
  }
23369
23373
  } catch (n) {
23370
- throw Bo.length = 0, To = 0, n;
23374
+ throw No.length = 0, Do = 0, n;
23371
23375
  }
23372
- for (Pr(null), Bo.length = 0, To = 0; Qt.length; )
23376
+ for (Pr(null), No.length = 0, Do = 0; Qt.length; )
23373
23377
  Qt.pop()();
23374
- for (let n = 0; n < ea.length; n += 1) {
23375
- const t = ea[n];
23378
+ for (let n = 0; n < ta.length; n += 1) {
23379
+ const t = ta[n];
23376
23380
  ip.has(t) || (ip.add(t), t());
23377
23381
  }
23378
- ea.length = 0;
23379
- } while (Bo.length);
23382
+ ta.length = 0;
23383
+ } while (No.length);
23380
23384
  for (; Dm.length; )
23381
23385
  Dm.pop()();
23382
23386
  Lm = !1, ip.clear(), Pr(e);
@@ -23390,7 +23394,7 @@ function sD(e) {
23390
23394
  }
23391
23395
  function oD(e) {
23392
23396
  const n = [], t = [];
23393
- ea.forEach((i) => e.indexOf(i) === -1 ? n.push(i) : t.push(i)), t.forEach((i) => i()), ea = n;
23397
+ ta.forEach((i) => e.indexOf(i) === -1 ? n.push(i) : t.push(i)), t.forEach((i) => i()), ta = n;
23394
23398
  }
23395
23399
  let bl;
23396
23400
  function Sg() {
@@ -23398,7 +23402,7 @@ function Sg() {
23398
23402
  bl = null;
23399
23403
  })), bl;
23400
23404
  }
23401
- function Gs(e, n, t) {
23405
+ function js(e, n, t) {
23402
23406
  e.dispatchEvent(wx(`${n ? "intro" : "outro"}${t}`));
23403
23407
  }
23404
23408
  const mu = /* @__PURE__ */ new Set();
@@ -23438,10 +23442,10 @@ function ys(e, n, t) {
23438
23442
  const { delay: d = 0, duration: f = 300, easing: m = Rr, tick: p = ue, css: g } = r || Tg;
23439
23443
  g && (o = ld(e, 0, 1, f, d, m, g, l++)), p(0, 1);
23440
23444
  const y = xg() + d, b = y + f;
23441
- a && a.abort(), s = !0, sn(() => Gs(e, !0, "start")), a = Eg((A) => {
23445
+ a && a.abort(), s = !0, sn(() => js(e, !0, "start")), a = Eg((A) => {
23442
23446
  if (s) {
23443
23447
  if (A >= b)
23444
- return p(1, 0), Gs(e, !0, "end"), c(), s = !1;
23448
+ return p(1, 0), js(e, !0, "end"), c(), s = !1;
23445
23449
  if (A >= y) {
23446
23450
  const w = m((A - y) / f);
23447
23451
  p(w, 1 - w);
@@ -23472,10 +23476,10 @@ function $a(e, n, t) {
23472
23476
  const { delay: c = 0, duration: h = 300, easing: u = Rr, tick: d = ue, css: f } = r || Tg;
23473
23477
  f && (o = ld(e, 1, 0, h, c, u, f));
23474
23478
  const m = xg() + c, p = m + h;
23475
- sn(() => Gs(e, !1, "start")), Eg((g) => {
23479
+ sn(() => js(e, !1, "start")), Eg((g) => {
23476
23480
  if (s) {
23477
23481
  if (g >= p)
23478
- return d(0, 1), Gs(e, !1, "end"), --a.r || vn(a.c), !1;
23482
+ return d(0, 1), js(e, !1, "end"), --a.r || vn(a.c), !1;
23479
23483
  if (g >= m) {
23480
23484
  const y = u((g - m) / h);
23481
23485
  d(1 - y, y);
@@ -23515,10 +23519,10 @@ function or(e, n, t, i) {
23515
23519
  start: xg() + m,
23516
23520
  b: f
23517
23521
  };
23518
- f || (A.group = Ji, Ji.r += 1), a || l ? l = A : (b && (h(), c = ld(e, o, f, p, m, g, b)), f && y(0, 1), a = u(A, p), sn(() => Gs(e, f, "start")), Eg((w) => {
23519
- if (l && w > l.start && (a = u(l, p), l = null, Gs(e, a.b, "start"), b && (h(), c = ld(e, o, a.b, a.duration, 0, g, s.css))), a) {
23522
+ f || (A.group = Ji, Ji.r += 1), a || l ? l = A : (b && (h(), c = ld(e, o, f, p, m, g, b)), f && y(0, 1), a = u(A, p), sn(() => js(e, f, "start")), Eg((w) => {
23523
+ if (l && w > l.start && (a = u(l, p), l = null, js(e, a.b, "start"), b && (h(), c = ld(e, o, a.b, a.duration, 0, g, s.css))), a) {
23520
23524
  if (w >= a.end)
23521
- y(o = a.b, 1 - o), Gs(e, a.b, "end"), l || (a.b ? h() : --a.group.r || vn(a.group.c)), a = null;
23525
+ y(o = a.b, 1 - o), js(e, a.b, "end"), l || (a.b ? h() : --a.group.r || vn(a.group.c)), a = null;
23522
23526
  else if (w >= a.start) {
23523
23527
  const x = w - a.start;
23524
23528
  o = a.a + a.d * g(x / a.duration), y(o, 1 - o);
@@ -23650,7 +23654,7 @@ function _e(e, n) {
23650
23654
  t.fragment !== null && (oD(t.after_update), vn(t.on_destroy), t.fragment && t.fragment.d(n), t.on_destroy = t.fragment = null, t.ctx = []);
23651
23655
  }
23652
23656
  function lD(e, n) {
23653
- e.$$.dirty[0] === -1 && (Bo.push(e), Cx(), e.$$.dirty.fill(0)), e.$$.dirty[n / 31 | 0] |= 1 << n % 31;
23657
+ e.$$.dirty[0] === -1 && (No.push(e), Cx(), e.$$.dirty.fill(0)), e.$$.dirty[n / 31 | 0] |= 1 << n % 31;
23654
23658
  }
23655
23659
  function Le(e, n, t, i, r, s, o, a = [-1]) {
23656
23660
  const l = kc;
@@ -24370,8 +24374,8 @@ const F6 = (e) => new ND(e), V6 = {
24370
24374
  name: "ModelRoomLabelPlugin",
24371
24375
  version: 0
24372
24376
  };
24373
- var js = /* @__PURE__ */ ((e) => (e[e.FLOOR = 1] = "FLOOR", e[e.CEILING = 2] = "CEILING", e[e.BOUNDING_CENTER = 3] = "BOUNDING_CENTER", e))(js || {});
24374
- function $s(e) {
24377
+ var Hs = /* @__PURE__ */ ((e) => (e[e.FLOOR = 1] = "FLOOR", e[e.CEILING = 2] = "CEILING", e[e.BOUNDING_CENTER = 3] = "BOUNDING_CENTER", e))(Hs || {});
24378
+ function eo(e) {
24375
24379
  return ee(this, null, function* () {
24376
24380
  try {
24377
24381
  return [null, yield e];
@@ -24420,19 +24424,19 @@ function fd(e, { delay: n = 0, speed: t, duration: i, easing: r = Ta } = {}) {
24420
24424
  `
24421
24425
  };
24422
24426
  }
24423
- const Do = [];
24427
+ const Lo = [];
24424
24428
  function kg(e, n = ue) {
24425
24429
  let t;
24426
24430
  const i = /* @__PURE__ */ new Set();
24427
24431
  function r(a) {
24428
24432
  if (De(e, a) && (e = a, t)) {
24429
- const l = !Do.length;
24433
+ const l = !Lo.length;
24430
24434
  for (const c of i)
24431
- c[1](), Do.push(c, e);
24435
+ c[1](), Lo.push(c, e);
24432
24436
  if (l) {
24433
- for (let c = 0; c < Do.length; c += 2)
24434
- Do[c][0](Do[c + 1]);
24435
- Do.length = 0;
24437
+ for (let c = 0; c < Lo.length; c += 2)
24438
+ Lo[c][0](Lo[c + 1]);
24439
+ Lo.length = 0;
24436
24440
  }
24437
24441
  }
24438
24442
  }
@@ -25472,16 +25476,16 @@ function hL(e) {
25472
25476
  }
25473
25477
  };
25474
25478
  }
25475
- const Lo = 1e3, ko = 180;
25479
+ const ko = 1e3, Ro = 180;
25476
25480
  function uL(e, n, t) {
25477
25481
  let { type: i } = n, { data: r } = n, { bounding: s } = n, { getRuleDistanceText: o } = n;
25478
- const a = i === "top" || i === "bottom", l = s.max.x - s.min.x - (Lo - ko) * 2, c = s.max.y - s.min.y - (Lo - ko) * 2, h = r.map(([m, p]) => a ? [m.x, p.x] : [m.y, p.y]).flat().sort().filter((m, p, g) => p === 0 ? !0 : m !== g[p - 1]), u = h.map((m) => {
25479
- const p = a ? (m - s.min.x - Lo + ko) / l : 0, g = a ? 0 : (m - s.min.y - Lo + ko) / c;
25482
+ const a = i === "top" || i === "bottom", l = s.max.x - s.min.x - (ko - Ro) * 2, c = s.max.y - s.min.y - (ko - Ro) * 2, h = r.map(([m, p]) => a ? [m.x, p.x] : [m.y, p.y]).flat().sort().filter((m, p, g) => p === 0 ? !0 : m !== g[p - 1]), u = h.map((m) => {
25483
+ const p = a ? (m - s.min.x - ko + Ro) / l : 0, g = a ? 0 : (m - s.min.y - ko + Ro) / c;
25480
25484
  return { left: p, bottom: g };
25481
25485
  });
25482
25486
  u.unshift({ left: 0, bottom: 0 }), u.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
25483
25487
  const d = h[h.length - 1] - h[0], f = h.map((m, p, g) => {
25484
- const y = p === 0 ? 0 : m - g[p - 1], b = p === 0 ? 0 : (m + g[p - 1]) / 2, A = a ? (b - s.min.x - Lo + ko) / l : 0, w = a ? 0 : (b - s.min.y - Lo + ko) / c;
25488
+ const y = p === 0 ? 0 : m - g[p - 1], b = p === 0 ? 0 : (m + g[p - 1]) / 2, A = a ? (b - s.min.x - ko + Ro) / l : 0, w = a ? 0 : (b - s.min.y - ko + Ro) / c;
25485
25489
  return { left: A, bottom: w, distance: y };
25486
25490
  }).filter(({ distance: m }) => m / d > 0.1);
25487
25491
  return e.$$set = (m) => {
@@ -27785,9 +27789,9 @@ function Wy(e, n) {
27785
27789
  const t = Math.max(...e.work.observers.map((i) => i.floorIndex));
27786
27790
  return n > t ? e.model.bounding.max.y : Math.max(...e.work.observers.filter((i) => i.floorIndex === n).map((i) => i.standingPosition.y));
27787
27791
  }
27788
- function zg(e, n, t = js.BOUNDING_CENTER) {
27792
+ function zg(e, n, t = Hs.BOUNDING_CENTER) {
27789
27793
  const i = Wy(e, n), r = Wy(e, n + 1);
27790
- return t === js.BOUNDING_CENTER ? (e.model.bounding.max.y + e.model.bounding.min.y) / 2 : t === js.CEILING ? r : i;
27794
+ return t === Hs.BOUNDING_CENTER ? (e.model.bounding.max.y + e.model.bounding.min.y) / 2 : t === Hs.CEILING ? r : i;
27791
27795
  }
27792
27796
  function Bg(e, n, t, i) {
27793
27797
  const r = zg(e, t, i == null ? void 0 : i.attachedTo), s = new C.Vector3(0, r, 0), o = new C.Vector3(1, r, 0), a = s.clone().project(e.camera), l = o.clone().project(e.camera);
@@ -27798,7 +27802,7 @@ let ws = class {
27798
27802
  /**
27799
27803
  * @realsee/dnalogel 版本号
27800
27804
  */
27801
- v(this, "VERSION", "3.49.11");
27805
+ v(this, "VERSION", "3.49.12");
27802
27806
  v(this, "NAME");
27803
27807
  v(this, "five");
27804
27808
  v(this, "workUtil");
@@ -27837,14 +27841,14 @@ let ws = class {
27837
27841
  };
27838
27842
  var Jn = /* @__PURE__ */ ((e) => (e.UnknownError = "UnknownError", e.DataNotLoaded = "DataNotLoaded", e.UpdateSizeError = "UpdateSizeError", e.BreakOffByHide = "BreakOffByHide", e.BreakOffByDisable = "BreakOffByDisable", e.ModelNotLoaded = "ModelNotLoaded", e.ChangeModeError = "ChangeModeError", e.UpdateCameraError = "UpdateCameraError", e))(Jn || {});
27839
27843
  const Bx = 500, Ak = 80;
27840
- function Hs(e, n, t = 4) {
27844
+ function Us(e, n, t = 4) {
27841
27845
  return Math.abs(e - n) < Math.pow(10, -t);
27842
27846
  }
27843
27847
  function Nx(e, n, t = 4) {
27844
27848
  const i = Math.PI * 2, r = e % i, s = n % i, o = Math.min(r, s), a = Math.max(r, s);
27845
- return Hs(o, a, t) || Hs(o + i, a, t);
27849
+ return Us(o, a, t) || Us(o + i, a, t);
27846
27850
  }
27847
- Object.assign(window, { nearlyEqual: Hs, nearlyEqualRad: Nx });
27851
+ Object.assign(window, { nearlyEqual: Us, nearlyEqualRad: Nx });
27848
27852
  function wk(e) {
27849
27853
  return Object.prototype.toString.call(e) === "[object Object]";
27850
27854
  }
@@ -27853,7 +27857,7 @@ function Qy(e) {
27853
27857
  }
27854
27858
  function Ng(e, n) {
27855
27859
  return ee(this, null, function* () {
27856
- const [t] = yield $s(e.changeMode(...n));
27860
+ const [t] = yield eo(e.changeMode(...n));
27857
27861
  if (t)
27858
27862
  throw new Error("change mode canceled");
27859
27863
  yield new Promise((o) => {
@@ -27872,14 +27876,14 @@ function Ng(e, n) {
27872
27876
  function xk(e, n) {
27873
27877
  return Object.keys(e).every((t) => {
27874
27878
  const i = n[t], r = e[t];
27875
- return i === void 0 || r === void 0 ? !0 : t === "longitude" || t === "latitude" ? Nx(i, r, 2) : typeof i == "number" && typeof r == "number" ? Hs(i, r, 2) : Qy(r) && Qy(i) ? r.distanceTo(i) < 0.01 : i === r;
27879
+ return i === void 0 || r === void 0 ? !0 : t === "longitude" || t === "latitude" ? Nx(i, r, 2) : typeof i == "number" && typeof r == "number" ? Us(i, r, 2) : Qy(r) && Qy(i) ? r.distanceTo(i) < 0.01 : i === r;
27876
27880
  });
27877
27881
  }
27878
27882
  function Mk(e, n) {
27879
27883
  if (e.currentMode !== n.mode)
27880
27884
  return !1;
27881
27885
  const { latitude: t, longitude: i, fov: r, offset: s } = n, { latitude: o, longitude: a, offset: l } = e.getCurrentState(), c = e.camera.fov;
27882
- return !(!Hs(t, o, 2) || !Hs(i, a, 2) || s !== void 0 && s.distanceTo(l) > 0.01 || !Hs(r, c, 2));
27886
+ return !(!Us(t, o, 2) || !Us(i, a, 2) || s !== void 0 && s.distanceTo(l) > 0.01 || !Us(r, c, 2));
27883
27887
  }
27884
27888
  function Fx(e, n, t = !0) {
27885
27889
  return ee(this, null, function* () {
@@ -27887,7 +27891,7 @@ function Fx(e, n, t = !0) {
27887
27891
  return;
27888
27892
  const r = e.getCurrentState();
27889
27893
  if (r.mode !== n.mode) {
27890
- const [h] = yield $s(Ng(e, [n.mode, n, void 0, t]));
27894
+ const [h] = yield eo(Ng(e, [n.mode, n, void 0, t]));
27891
27895
  if (h)
27892
27896
  throw h;
27893
27897
  return;
@@ -27900,7 +27904,7 @@ function Fx(e, n, t = !0) {
27900
27904
  (o > Math.PI ? 2 * Math.PI - o : o) * 500,
27901
27905
  typeof n.fov == "number" ? Math.abs(a - n.fov) * 10 : 1 / 0
27902
27906
  )
27903
- ), [c] = yield $s(e.updateCamera(Da(n, ["mode"]), l, t));
27907
+ ), [c] = yield eo(e.updateCamera(Da(n, ["mode"]), l, t));
27904
27908
  if (c)
27905
27909
  throw new Error(Jn.UpdateCameraError);
27906
27910
  });
@@ -28027,7 +28031,7 @@ let Pk = class extends Br {
28027
28031
  this.showRejection = (u) => {
28028
28032
  a = !0, l = u;
28029
28033
  };
28030
- const [c] = yield $s(Fx(this.five, this.showState, r.userAction));
28034
+ const [c] = yield eo(Fx(this.five, this.showState, r.userAction));
28031
28035
  if (c)
28032
28036
  throw c;
28033
28037
  if (a)
@@ -28149,7 +28153,7 @@ let Pk = class extends Br {
28149
28153
  roomDimensionEnable: !0,
28150
28154
  adaptiveRoomLabelVisibleEnable: !0,
28151
28155
  cameraImageUrl: ps,
28152
- attachedTo: js.BOUNDING_CENTER,
28156
+ attachedTo: Hs.BOUNDING_CENTER,
28153
28157
  getLabelElement: void 0,
28154
28158
  missingFloorConfig: R(R({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
28155
28159
  i18n: (u) => u,
@@ -28366,7 +28370,7 @@ let Sk = class extends Br {
28366
28370
  this.showRejection = (u) => {
28367
28371
  a = !0, l = u;
28368
28372
  };
28369
- const [c] = yield $s(Fx(this.five, this.showState, r.userAction));
28373
+ const [c] = yield eo(Fx(this.five, this.showState, r.userAction));
28370
28374
  if (c)
28371
28375
  throw c;
28372
28376
  if (a)
@@ -28483,7 +28487,7 @@ let Sk = class extends Br {
28483
28487
  roomNameEnable: !0,
28484
28488
  roomDimensionEnable: !0,
28485
28489
  cameraImageUrl: ps,
28486
- attachedTo: js.BOUNDING_CENTER,
28490
+ attachedTo: Hs.BOUNDING_CENTER,
28487
28491
  getLabelElement: void 0,
28488
28492
  adaptiveRoomLabelVisibleEnable: !0,
28489
28493
  missingFloorConfig: R(R({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
@@ -28712,7 +28716,7 @@ let Tk = class extends Br {
28712
28716
  roomNameEnable: !0,
28713
28717
  roomDimensionEnable: !0,
28714
28718
  cameraImageUrl: ps,
28715
- attachedTo: js.BOUNDING_CENTER,
28719
+ attachedTo: Hs.BOUNDING_CENTER,
28716
28720
  getLabelElement: void 0,
28717
28721
  missingFloorConfig: R(R({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
28718
28722
  i18n: (h) => h,
@@ -30949,7 +30953,7 @@ function A5() {
30949
30953
  };
30950
30954
  }
30951
30955
  const w5 = new C.TextureLoader();
30952
- function Us(e) {
30956
+ function Ws(e) {
30953
30957
  return ee(this, null, function* () {
30954
30958
  return new Promise((n, t) => {
30955
30959
  w5.load(e, n, void 0, t);
@@ -30958,7 +30962,7 @@ function Us(e) {
30958
30962
  }
30959
30963
  function Ux(e) {
30960
30964
  return ee(this, null, function* () {
30961
- return Us(e).then((n) => {
30965
+ return Ws(e).then((n) => {
30962
30966
  const t = e.startsWith("data:") ? e.includes("png") : new URL(e, location.href).pathname.toLowerCase().endsWith(".png");
30963
30967
  return { texture: n, transparent: t };
30964
30968
  });
@@ -31174,7 +31178,7 @@ class x5 extends Br {
31174
31178
  }
31175
31179
  loadCompassMesh() {
31176
31180
  return ee(this, null, function* () {
31177
- const t = this.state.config.compassImageUrl, i = yield Us(t), r = new C.CircleGeometry(0.7, 32), s = new C.MeshBasicMaterial({
31181
+ const t = this.state.config.compassImageUrl, i = yield Ws(t), r = new C.CircleGeometry(0.7, 32), s = new C.MeshBasicMaterial({
31178
31182
  map: i,
31179
31183
  transparent: !0,
31180
31184
  opacity: 0,
@@ -31187,7 +31191,7 @@ class x5 extends Br {
31187
31191
  return ee(this, null, function* () {
31188
31192
  if (!this.state.config.logoURL)
31189
31193
  return;
31190
- const t = this.state.config.logoURL, i = yield Us(t);
31194
+ const t = this.state.config.logoURL, i = yield Ws(t);
31191
31195
  i.minFilter = C.NearestFilter, i.magFilter = C.NearestFilter;
31192
31196
  const r = new C.PlaneBufferGeometry(0.4, 0.4), s = new C.MeshBasicMaterial({
31193
31197
  map: i,
@@ -31200,7 +31204,7 @@ class x5 extends Br {
31200
31204
  }
31201
31205
  loadEntryDoorMesh() {
31202
31206
  return ee(this, null, function* () {
31203
- const t = this.state.config.entryDoorImageUrl, i = yield Us(t), r = new C.PlaneGeometry(0.2, 0.16), s = new C.MeshBasicMaterial({
31207
+ const t = this.state.config.entryDoorImageUrl, i = yield Ws(t), r = new C.PlaneGeometry(0.2, 0.16), s = new C.MeshBasicMaterial({
31204
31208
  map: i,
31205
31209
  transparent: !0,
31206
31210
  opacity: 0.8,
@@ -31247,7 +31251,7 @@ function sb(e, n) {
31247
31251
  const [t, i] = e.points, r = n === "light" ? k5 : L5, s = R5(t.position, i.position, r);
31248
31252
  return s.name = "normalLine_" + e.id, s;
31249
31253
  }
31250
- function eo(e) {
31254
+ function to(e) {
31251
31255
  const { x: n, y: t, z: i } = e;
31252
31256
  return !(Math.abs(n) > 1 || Math.abs(t) > 1 || Math.abs(i) > 1);
31253
31257
  }
@@ -31921,7 +31925,7 @@ function Z5(e, n) {
31921
31925
  if (r)
31922
31926
  return Me(R({}, r), { raycaster: n, isVirtual: !1 });
31923
31927
  }
31924
- const ab = `url("data:image/svg+xml,%3Csvg width='12px' height='12px' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6,12 C9.3137085,12 12,9.3137085 12,6 C12,2.6862915 9.3137085,0 6,0 C2.6862915,0 0,2.6862915 0,6 C0,9.3137085 2.6862915,12 6,12 Z' fill='%23FF5959'%3E%3C/path%3E%3Cg transform='translate(2, 2)' stroke='%23FFFFFF'%3E%3Ccircle cx='4' cy='4' r='4'%3E%3C/circle%3E%3Cline x1='1.07141075' y1='1.23997894' x2='6.64700843' y2='6.81557662'%3E%3C/line%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 6 6, auto`, J5 = new C.Vector3(), Ro = () => !1;
31928
+ const ab = `url("data:image/svg+xml,%3Csvg width='12px' height='12px' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6,12 C9.3137085,12 12,9.3137085 12,6 C12,2.6862915 9.3137085,0 6,0 C2.6862915,0 0,2.6862915 0,6 C0,9.3137085 2.6862915,12 6,12 Z' fill='%23FF5959'%3E%3C/path%3E%3Cg transform='translate(2, 2)' stroke='%23FFFFFF'%3E%3Ccircle cx='4' cy='4' r='4'%3E%3C/circle%3E%3Cline x1='1.07141075' y1='1.23997894' x2='6.64700843' y2='6.81557662'%3E%3C/line%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 6 6, auto`, J5 = new C.Vector3(), Oo = () => !1;
31925
31929
  class eM extends En {
31926
31930
  constructor(t, i) {
31927
31931
  var o, a, l;
@@ -32126,14 +32130,14 @@ class eM extends En {
32126
32130
  const t = this.five.getElement();
32127
32131
  if (!t)
32128
32132
  throw new Error("five element not found");
32129
- this.hammer || (this.hammer = new Md(t)), this.mode === "cursor" ? (this.five.on("wantsMoveToPano", Ro), this.five.on("wantsChangeMode", Ro), this.five.on("wantsTapGesture", Ro), t.addEventListener("mousemove", this.updateByMousePosition), Rc || t.addEventListener("wheel", this.onMouseWheel), t.addEventListener("click", this.onClick), t.addEventListener("mouseenter", this.onEnter), t.addEventListener("mouseout", this.onLeave), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panoArrived", this.renderScreenCenter), this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1, this.emit("enable");
32133
+ this.hammer || (this.hammer = new Md(t)), this.mode === "cursor" ? (this.five.on("wantsMoveToPano", Oo), this.five.on("wantsChangeMode", Oo), this.five.on("wantsTapGesture", Oo), t.addEventListener("mousemove", this.updateByMousePosition), Rc || t.addEventListener("wheel", this.onMouseWheel), t.addEventListener("click", this.onClick), t.addEventListener("mouseenter", this.onEnter), t.addEventListener("mouseout", this.onLeave), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panoArrived", this.renderScreenCenter), this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1, this.emit("enable");
32130
32134
  }
32131
32135
  disable() {
32132
32136
  if (!this.enabled)
32133
32137
  return;
32134
32138
  this.enabled = !1, this.pointSelectorHelper.disable(), this.five.getElement().style.cursor = "";
32135
32139
  const t = this.five.getElement();
32136
- this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", Ro), this.five.off("wantsChangeMode", Ro), this.five.off("wantsTapGesture", Ro), this.five.helperVisible = this.lastFiveHelperVisible, t == null || t.removeEventListener("mousemove", this.updateByMousePosition), t == null || t.removeEventListener("wheel", this.onMouseWheel), t == null || t.removeEventListener("mouseenter", this.onEnter), t == null || t.removeEventListener("mouseout", this.onLeave), t == null || t.removeEventListener("click", this.onClick), this.hammer.off("pan", this.onPan), this.hammer.off("press", this.onPress), this.hammer.off("panend", this.onPanEnd), this.five.off("panoArrived", this.renderScreenCenter), this.five.off("panGesture", this.renderScreenCenter), this.five.off("interiaPan", this.renderScreenCenter), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate), this.emit("disable");
32140
+ this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", Oo), this.five.off("wantsChangeMode", Oo), this.five.off("wantsTapGesture", Oo), this.five.helperVisible = this.lastFiveHelperVisible, t == null || t.removeEventListener("mousemove", this.updateByMousePosition), t == null || t.removeEventListener("wheel", this.onMouseWheel), t == null || t.removeEventListener("mouseenter", this.onEnter), t == null || t.removeEventListener("mouseout", this.onLeave), t == null || t.removeEventListener("click", this.onClick), this.hammer.off("pan", this.onPan), this.hammer.off("press", this.onPress), this.hammer.off("panend", this.onPanEnd), this.five.off("panoArrived", this.renderScreenCenter), this.five.off("panGesture", this.renderScreenCenter), this.five.off("interiaPan", this.renderScreenCenter), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate), this.emit("disable");
32137
32141
  }
32138
32142
  dispose() {
32139
32143
  this.disable(), this.pointSelectorHelper.dispose();
@@ -32419,7 +32423,7 @@ class Kr extends Vd {
32419
32423
  return;
32420
32424
  const o = this.five.camera, a = s.point.clone().project(o), l = this.container.clientWidth, c = this.container.clientHeight, h = new Fn(a.x * l, a.y * c), u = this.model.getAllLines().map((y) => {
32421
32425
  const [b, A] = y.points, w = b.position.clone().project(o), x = A.position.clone().project(o);
32422
- if (!eo(w) && !eo(x))
32426
+ if (!to(w) && !to(x))
32423
32427
  return null;
32424
32428
  const M = new Fn(w.x * l, w.y * c), P = new Fn(x.x * l, x.y * c);
32425
32429
  return { id: y.id, points: [M, P] };
@@ -32586,7 +32590,7 @@ function t4(e, n, t, i) {
32586
32590
  return null;
32587
32591
  const s = { width: r.clientWidth, height: r.clientHeight }, o = n.map((a) => {
32588
32592
  const l = a.position.clone().project(e.camera);
32589
- return eo(l) ? { distance: e4(l, s).distanceTo(t), point: a } : { distance: 1 / 0, point: a };
32593
+ return to(l) ? { distance: e4(l, s).distanceTo(t), point: a } : { distance: 1 / 0, point: a };
32590
32594
  }).sort((a, l) => a.distance - l.distance);
32591
32595
  return typeof i == "number" && o[0].distance > i ? null : o[0];
32592
32596
  }
@@ -32671,7 +32675,7 @@ class fb extends Vd {
32671
32675
  return;
32672
32676
  const a = this.five.camera, l = o.point.clone().project(a), c = this.container.clientWidth, h = this.container.clientHeight, u = new Fn(l.x * c, l.y * h), d = this.model.getAllLines().map((y) => {
32673
32677
  const [b, A] = y.points, w = b.position.clone().project(a), x = A.position.clone().project(a);
32674
- if (!eo(w) && !eo(x))
32678
+ if (!to(w) && !to(x))
32675
32679
  return null;
32676
32680
  const M = new Fn(w.x * c, w.y * h), P = new Fn(x.x * c, x.y * h);
32677
32681
  return { id: y.id, points: [M, P] };
@@ -32870,7 +32874,7 @@ function nM(e) {
32870
32874
  const n = (y = e.isMobile) != null ? y : !0, t = (b = e.useNormalVector) != null ? b : !0;
32871
32875
  let i = 10349931;
32872
32876
  t && e.ballColor >= 0 && (i = e.ballColor);
32873
- const r = new Zo(), s = new xE(0.3, 0.3), o = n ? i4 : r4, a = new Z1().load(o);
32877
+ const r = new Jo(), s = new xE(0.3, 0.3), o = n ? i4 : r4, a = new Z1().load(o);
32874
32878
  a.encoding = ME, a.minFilter = Ip;
32875
32879
  const l = new Yl({
32876
32880
  map: a,
@@ -33025,7 +33029,7 @@ class wl extends Vd {
33025
33029
  return;
33026
33030
  const s = this.five.camera, o = r.point.clone().project(s), a = this.container.clientWidth, l = this.container.clientHeight, c = new Fn(o.x * a, o.y * l), h = this.model.getAllLines().map((m) => {
33027
33031
  const [p, g] = m.points, y = p.position.clone().project(s), b = g.position.clone().project(s);
33028
- if (!eo(y) && !eo(b))
33032
+ if (!to(y) && !to(b))
33029
33033
  return null;
33030
33034
  const A = new Fn(y.x * a, y.y * l), w = new Fn(b.x * a, b.y * l);
33031
33035
  return { id: m.id, points: [A, w] };
@@ -34993,7 +34997,7 @@ class eR {
34993
34997
  return this.measureController.getCurrentMode() === "Watch" ? this.measureController.disable() : this.measureController.save().changeMode("Watch");
34994
34998
  }
34995
34999
  }
34996
- function to(e) {
35000
+ function no(e) {
34997
35001
  return typeof e == "object" ? e === null ? {} : e : {};
34998
35002
  }
34999
35003
  class tR extends ws {
@@ -35056,7 +35060,7 @@ class tR extends ws {
35056
35060
  this.five = t, this.hook = this.hooks, this.params = i, this.config = Da(i, ["openParams", "magnifierParams"]), this.model = new tM(this.config), this.isMobile = (a = (o = i == null ? void 0 : i.openParams) == null ? void 0 : o.isMobile) != null ? a : !1, this.magnifier = new tg(
35057
35061
  t,
35058
35062
  (u = (h = i.magnifierParams) != null ? h : (c = (l = i.pointSelectorConfig) == null ? void 0 : l.helper) == null ? void 0 : c.magnifierParams) != null ? u : { width: 190, height: 190, scale: 2 }
35059
- ), this.allowMeasureType = Array.from(new Set((f = (d = i.editParams) == null ? void 0 : d.allowMeasureType) != null ? f : ["line"])), this.currentMeasureType = (m = this.allowMeasureType[0]) != null ? m : "line", this.group = new Zo(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
35063
+ ), this.allowMeasureType = Array.from(new Set((f = (d = i.editParams) == null ? void 0 : d.allowMeasureType) != null ? f : ["line"])), this.currentMeasureType = (m = this.allowMeasureType[0]) != null ? m : "line", this.group = new Jo(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
35060
35064
  const r = (g = (p = i.editParams) == null ? void 0 : p.pointSelectorMode) != null ? g : Rc ? "fixed" : "cursor", s = (y = this.params.openParams) != null ? y : {};
35061
35065
  if (this.params.useUIController !== !1) {
35062
35066
  const b = R({
@@ -35065,7 +35069,7 @@ class tR extends ws {
35065
35069
  i18n: i.i18n,
35066
35070
  pointSelectorMode: r,
35067
35071
  useNewUI: this.allowMeasureType.length > 1
35068
- }, to(this.params.useUIController));
35072
+ }, no(this.params.useUIController));
35069
35073
  this.useUIController = new W4(this, b);
35070
35074
  }
35071
35075
  if (this.params.useGuideController !== !1) {
@@ -35073,7 +35077,7 @@ class tR extends ws {
35073
35077
  container: this.container,
35074
35078
  pointSelectorMode: r,
35075
35079
  i18n: i.i18n
35076
- }, to(this.params.useGuideController));
35080
+ }, no(this.params.useGuideController));
35077
35081
  this.useGuideController = new $4(this, b);
35078
35082
  }
35079
35083
  }
@@ -35882,7 +35886,7 @@ const ap = 1e-3, Nb = 0.01, mR = "https://vrlab-image4.ljcdn.com/release/web/Pan
35882
35886
  dispose: K
35883
35887
  };
35884
35888
  };
35885
- var Uo = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MIDLLE = "middle", e.LARGE = "large", e.EXTRA_LARGE = "x-large", e))(Uo || {}), Fm = {}, gR = {
35889
+ var Wo = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MIDLLE = "middle", e.LARGE = "large", e.EXTRA_LARGE = "x-large", e))(Wo || {}), Fm = {}, gR = {
35886
35890
  get exports() {
35887
35891
  return Fm;
35888
35892
  },
@@ -36156,13 +36160,13 @@ function ER(e, n, t) {
36156
36160
  }, b = (O) => `translate(${O[0]}px, ${O[1]}px)`, A = (O, G) => m.length === 0 ? !1 : !!m.find((U) => O[0] >= U[0] - G && O[0] <= U[0] + G || O[1] >= U[1] - Gb && O[1] <= U[1] + Gb);
36157
36161
  function w(O, G) {
36158
36162
  switch (G) {
36159
- case Uo.SMALL:
36163
+ case Wo.SMALL:
36160
36164
  return Math.ceil(-27.78 * O + 85);
36161
- case Uo.MIDLLE:
36165
+ case Wo.MIDLLE:
36162
36166
  return Math.ceil(-38.9 * O + 130);
36163
- case Uo.LARGE:
36167
+ case Wo.LARGE:
36164
36168
  return Math.ceil(-44.44 * O + 140);
36165
- case Uo.EXTRA_LARGE:
36169
+ case Wo.EXTRA_LARGE:
36166
36170
  return Math.ceil(-92.59 * O + 300);
36167
36171
  }
36168
36172
  }
@@ -36267,7 +36271,7 @@ const yG = (e, n) => {
36267
36271
  app: void 0,
36268
36272
  hooks: new Na(),
36269
36273
  modelOcclusionEnable: (d = n == null ? void 0 : n.modelOcclusionEnable) != null ? d : !0,
36270
- displayStrategyType: (f = n == null ? void 0 : n.displayStrategyType) != null ? f : Uo.SMALL
36274
+ displayStrategyType: (f = n == null ? void 0 : n.displayStrategyType) != null ? f : Wo.SMALL
36271
36275
  };
36272
36276
  t.container.setAttribute("class", "model-item-label-plugin-container"), t.container.style.cssText = `
36273
36277
  position: absolute;
@@ -36488,7 +36492,7 @@ const IR = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
36488
36492
  });
36489
36493
  }), { enable: a, disable: l, load: d, dispose: g, state: t, css3DRenderPlugin: i };
36490
36494
  };
36491
- var Wo = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MIDLLE = "middle", e.LARGE = "large", e.EXTRA_LARGE = "x-large", e))(Wo || {});
36495
+ var Qo = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MIDLLE = "middle", e.LARGE = "large", e.EXTRA_LARGE = "x-large", e))(Qo || {});
36492
36496
  function TR(e) {
36493
36497
  Ue(e, "svelte-1jhufeh", `.item-label-item.svelte-1jhufeh.svelte-1jhufeh{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-1jhufeh-fadeIn .3s ease-in}.item-label-item.fold.svelte-1jhufeh>.item-label-item__text-wrap.svelte-1jhufeh{visibility:hidden}.item-label-item.fold.svelte-1jhufeh>.item-label-item__bar.anchor.svelte-1jhufeh{visibility:hidden}.item-label-item.fold.svelte-1jhufeh>.item-label-item__bar.anchor.svelte-1jhufeh:after{visibility:visible}.item-label-item__text-wrap.svelte-1jhufeh.svelte-1jhufeh{height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-1jhufeh.svelte-1jhufeh{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-1jhufeh.svelte-1jhufeh{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-1jhufeh.svelte-1jhufeh{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-1jhufeh.svelte-1jhufeh{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-1jhufeh.svelte-1jhufeh{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-1jhufeh.svelte-1jhufeh{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-1jhufeh.svelte-1jhufeh{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-1jhufeh.svelte-1jhufeh:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAABcVBMVEUAAAAAAAD////////+/v45OTn////////39/fp6enPz8/7+/vw8PD+/v7x8fHc3NzHx8f////////+/v77+/vr6+v////7+/v5+fn////z8/P////////q6uqgoKD+/v79/f3m5ub+/v7////////////////39/f39/f////z8/P////t7e3s7Oz29vb////5+fn////h4eH////g4ODV1dX////////BwcH///////////+Ojo5zc3MlJSX////////////////////////7+/v////////////v7+/u7u7n5+f////39/f////09PT6+vr09PT+/v76+vr////5+fnv7+/09PTk5OT////////////////Jycn///++vr7///////+0tLT///9TU1P///8SEhL////////+/v76+vr////8/Pz39/ft7e3t7e36+vr////////X19fV1dX///+xsbF9fX1iYmL///////+K8mOEAAAAenRSTlMaAIDy8CD41cWRX9uk7Kl1VVEw6dWT/M/NvKyVkY475eWIgx0Z39rHv7axnZyZmIuKhn56emZjX1FEPTU0Kx4PCAX69fTgxcKkopWL7crJuri2sa6rnIyHhX54bVtZVU9NSUcsJSIcFROno6Hcwp+ekHVxbWhnRC8nDLc9s8oAAAOGSURBVEjHpdd3X9pAGAfwkBBDAoQmBJmWvUWWiIDIHoJb66x7a4d78Op7pBQ1J5DY33987vnyXEIu3CGy/0hvnDthM+l0hj3JScSudDKOdhNPpl1i8Ut624Gi6+trI3zW1tcdqGM7/SIC5/ZRR2SNJEm7JkHt7FAJjR18WIs40P3cAFxIOaIRna6ZOHxGunk+TDR1ukjUkSr0w86bcKShiz1OI4JMP8YAD9+4emM2Gm407IfIhzm0NxrhKNsLH4SvQ+RktyvUfZIMXYcPPsSFCcvY6EYW6ZPsxuiYZaLwAW5bDY70Da5paxjvm8d+UcjAUL/GzPtCnDF/mwFWhJ75Zs68x05gxxFRGQfa+RYXokHVCC4O4yOqYLTwBjNB+ncWEZnsbzrIvOLz4CW9g4jODn0ZPO/iZN0UmhaPp0Omq+Q/nLu6NO0hErJnurjKdTBzEdAhkqILXDAdbFkJ7EnDe4EVy198srpiwhE4X1RKDFOqviBwcNPK6gmPmeWlGDz+VdHqRPEVHo0tLTM8RpcX4G+flLe6kU/Cs1pYRnm8uriQhfoC+0ZDvbMLi6ttfO5fDCDCKFrvooAKAov+c4BZvy8EzaolCHRdIZ+fBThl9G0Ih1RCrBJWbPiMKYAZ409oMSqFWAktzJ9GBuDvRoVGOIQJMSas0CiM39u45v0M9tbaeLc6F5M+7dhcbRfgg+pcU/oNa85VDwDOzBtmpP9UKsN8BuCzeb1P+kPi08+fASyr6fVPUh/PJ72+xj/bZk5PSV0YlJ4z83iC4EipS5LkiAkeHxGcQerLwMARRzyW+QklhUgKpST8nXfYg+fHkjS89MPz0MFnhKdCSWpc8RBnPAZB3RUvLt7i3oob7f5juDzuikY81tjcHlcHg9xabdyUWDvF2ay3slecr1ptimNx9lhhs1bzXQxy5NZa6VMx9pS2Wt1H77cVjFartYvBdlDICDc0cbVa3Twd2NcOyuLwVqo+K1ebjgdcr0k+O1uXwThfl8vlhqm+99kASup5GINsYhhmG8d7UXzcBgo2e21cd9WlUll5/7G958ql8uxu7y0zS5SGSkOGBA51TRiGQAi232Y9v4kVQZGavpt6c6l3tLpNsc38gGOC01IeLg4Xi8NaLz1KkqO0VzvcTrFscYo4oLjiRAsKEXeJPRqxW0bsFWLGLVbiocyZSm5vbW0nU9BsIfyp/AGqAvfOkBaFawAAAABJRU5ErkJggg==');background-position:center;background-size:contain;transform:translate(-0.65625rem, 50%)}@keyframes svelte-1jhufeh-fadeIn{from{opacity:0
36494
36498
  }to{opacity:1
@@ -36702,13 +36706,13 @@ const { Raycaster: zR, Vector3: wG } = C, Hb = (e, n, t, i) => {
36702
36706
  return o && o.distance + 0.01 < i;
36703
36707
  }, BR = (e, n) => {
36704
36708
  switch (n) {
36705
- case Wo.SMALL:
36709
+ case Qo.SMALL:
36706
36710
  return Math.ceil(-27.78 * e + 85);
36707
- case Wo.MIDLLE:
36711
+ case Qo.MIDLLE:
36708
36712
  return Math.ceil(-38.9 * e + 130);
36709
- case Wo.LARGE:
36713
+ case Qo.LARGE:
36710
36714
  return Math.ceil(-44.44 * e + 140);
36711
- case Wo.EXTRA_LARGE:
36715
+ case Qo.EXTRA_LARGE:
36712
36716
  return Math.ceil(-92.59 * e + 300);
36713
36717
  }
36714
36718
  }, NR = (e) => `translate(${e[0]}px, ${e[1]}px)`;
@@ -37033,7 +37037,7 @@ const WR = void 0, xG = (e, n) => {
37033
37037
  hooks: new Na(),
37034
37038
  modelOcclusionEnable: (d = n == null ? void 0 : n.modelOcclusionEnable) != null ? d : !0,
37035
37039
  onlyVisibleInPanorama: (f = n == null ? void 0 : n.onlyVisibleInPanorama) != null ? f : !0,
37036
- displayStrategyType: (m = n == null ? void 0 : n.displayStrategyType) != null ? m : Wo.SMALL,
37040
+ displayStrategyType: (m = n == null ? void 0 : n.displayStrategyType) != null ? m : Qo.SMALL,
37037
37041
  maxVisibleDistance: (p = n == null ? void 0 : n.maxVisibleDistance) != null ? p : WR
37038
37042
  };
37039
37043
  t.container.setAttribute("class", "item-label-plugin-container"), t.container.style.cssText = `
@@ -40126,7 +40130,7 @@ const tB = (e, n) => {
40126
40130
  const t = n.x - e.x, i = n.y - e.y;
40127
40131
  return Math.sqrt(t * t + i * i);
40128
40132
  };
40129
- function ta(e, n, t) {
40133
+ function na(e, n, t) {
40130
40134
  return Math.max(e, Math.min(n, t));
40131
40135
  }
40132
40136
  function nB(e, n) {
@@ -40247,7 +40251,7 @@ function uB({
40247
40251
  particlesToScroll: i,
40248
40252
  particlesCount: r
40249
40253
  }) {
40250
- return ta(
40254
+ return na(
40251
40255
  0,
40252
40256
  Math.min(n + e * i, r - t),
40253
40257
  r - 1
@@ -40259,7 +40263,7 @@ function dB({
40259
40263
  particlesCount: t,
40260
40264
  particlesToShow: i
40261
40265
  }) {
40262
- return ta(
40266
+ return na(
40263
40267
  0,
40264
40268
  Math.min(e * n, t - i),
40265
40269
  t - 1
@@ -40386,7 +40390,7 @@ var kB = Array.prototype, RB = Function.prototype, EM = Object.prototype, up = Z
40386
40390
  }(), CM = RB.toString, Jg = EM.hasOwnProperty, PM = EM.toString, OB = RegExp(
40387
40391
  "^" + CM.call(Jg).replace(PB, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
40388
40392
  ), AA = Zg.Symbol, zB = kB.splice, BB = _M(Zg, "Map"), Oc = _M(Object, "create"), wA = AA ? AA.prototype : void 0, xA = wA ? wA.toString : void 0;
40389
- function no(e) {
40393
+ function io(e) {
40390
40394
  var n = -1, t = e ? e.length : 0;
40391
40395
  for (this.clear(); ++n < t; ) {
40392
40396
  var i = e[n];
@@ -40415,11 +40419,11 @@ function jB(e, n) {
40415
40419
  var t = this.__data__;
40416
40420
  return t[e] = Oc && n === void 0 ? xM : n, this;
40417
40421
  }
40418
- no.prototype.clear = NB;
40419
- no.prototype.delete = FB;
40420
- no.prototype.get = VB;
40421
- no.prototype.has = GB;
40422
- no.prototype.set = jB;
40422
+ io.prototype.clear = NB;
40423
+ io.prototype.delete = FB;
40424
+ io.prototype.get = VB;
40425
+ io.prototype.has = GB;
40426
+ io.prototype.set = jB;
40423
40427
  function el(e) {
40424
40428
  var n = -1, t = e ? e.length : 0;
40425
40429
  for (this.clear(); ++n < t; ) {
@@ -40453,7 +40457,7 @@ el.prototype.delete = UB;
40453
40457
  el.prototype.get = WB;
40454
40458
  el.prototype.has = QB;
40455
40459
  el.prototype.set = YB;
40456
- function so(e) {
40460
+ function oo(e) {
40457
40461
  var n = -1, t = e ? e.length : 0;
40458
40462
  for (this.clear(); ++n < t; ) {
40459
40463
  var i = e[n];
@@ -40462,9 +40466,9 @@ function so(e) {
40462
40466
  }
40463
40467
  function XB() {
40464
40468
  this.__data__ = {
40465
- hash: new no(),
40469
+ hash: new io(),
40466
40470
  map: new (BB || el)(),
40467
- string: new no()
40471
+ string: new io()
40468
40472
  };
40469
40473
  }
40470
40474
  function ZB(e) {
@@ -40479,11 +40483,11 @@ function qB(e) {
40479
40483
  function KB(e, n) {
40480
40484
  return Ud(this, e).set(e, n), this;
40481
40485
  }
40482
- so.prototype.clear = XB;
40483
- so.prototype.delete = ZB;
40484
- so.prototype.get = JB;
40485
- so.prototype.has = qB;
40486
- so.prototype.set = KB;
40486
+ oo.prototype.clear = XB;
40487
+ oo.prototype.delete = ZB;
40488
+ oo.prototype.get = JB;
40489
+ oo.prototype.has = qB;
40490
+ oo.prototype.set = KB;
40487
40491
  function Hd(e, n) {
40488
40492
  for (var t = e.length; t--; )
40489
40493
  if (c9(e[t][0], n))
@@ -40570,9 +40574,9 @@ function qg(e, n) {
40570
40574
  var o = e.apply(this, i);
40571
40575
  return t.cache = s.set(r, o), o;
40572
40576
  };
40573
- return t.cache = new (qg.Cache || so)(), t;
40577
+ return t.cache = new (qg.Cache || oo)(), t;
40574
40578
  }
40575
- qg.Cache = so;
40579
+ qg.Cache = oo;
40576
40580
  function c9(e, n) {
40577
40581
  return e === n || e !== e && n !== n;
40578
40582
  }
@@ -40713,21 +40717,21 @@ var ou = f9, vd = {}, p9 = {
40713
40717
  this.__data__ = [];
40714
40718
  }
40715
40719
  function Tt(E) {
40716
- var L = this.__data__, J = ao(L, E);
40720
+ var L = this.__data__, J = lo(L, E);
40717
40721
  if (J < 0)
40718
40722
  return !1;
40719
40723
  var le = L.length - 1;
40720
40724
  return J == le ? L.pop() : $e.call(L, J, 1), !0;
40721
40725
  }
40722
40726
  function It(E) {
40723
- var L = this.__data__, J = ao(L, E);
40727
+ var L = this.__data__, J = lo(L, E);
40724
40728
  return J < 0 ? void 0 : L[J][1];
40725
40729
  }
40726
40730
  function vt(E) {
40727
- return ao(this.__data__, E) > -1;
40731
+ return lo(this.__data__, E) > -1;
40728
40732
  }
40729
40733
  function Et(E, L) {
40730
- var J = this.__data__, le = ao(J, E);
40734
+ var J = this.__data__, le = lo(J, E);
40731
40735
  return le < 0 ? J.push([E, L]) : J[le][1] = L, this;
40732
40736
  }
40733
40737
  it.prototype.clear = Ut, it.prototype.delete = Tt, it.prototype.get = It, it.prototype.has = vt, it.prototype.set = Et;
@@ -40784,8 +40788,8 @@ var ou = f9, vd = {}, p9 = {
40784
40788
  return J.set(E, L), this;
40785
40789
  }
40786
40790
  ln.prototype.clear = xs, ln.prototype.delete = tl, ln.prototype.get = Qd, ln.prototype.has = Yd, ln.prototype.set = Xd;
40787
- function oo(E, L) {
40788
- var J = sl(E) || co(E) ? Te(E.length, String) : [], le = J.length, bt = !!le;
40791
+ function ao(E, L) {
40792
+ var J = sl(E) || ho(E) ? Te(E.length, String) : [], le = J.length, bt = !!le;
40789
40793
  for (var rt in E)
40790
40794
  (L || st.call(E, rt)) && !(bt && (rt == "length" || cf(rt, le))) && J.push(rt);
40791
40795
  return J;
@@ -40794,7 +40798,7 @@ var ou = f9, vd = {}, p9 = {
40794
40798
  var le = E[L];
40795
40799
  (!(st.call(E, L) && ih(le, J)) || J === void 0 && !(L in E)) && (E[L] = J);
40796
40800
  }
40797
- function ao(E, L) {
40801
+ function lo(E, L) {
40798
40802
  for (var J = E.length; J--; )
40799
40803
  if (ih(E[J][0], L))
40800
40804
  return J;
@@ -40816,7 +40820,7 @@ var ou = f9, vd = {}, p9 = {
40816
40820
  } else {
40817
40821
  var zt = pr(E), Rn = zt == h || zt == u;
40818
40822
  if (rh(E))
40819
- return lo(E, L);
40823
+ return co(E, L);
40820
40824
  if (zt == m || zt == s || Rn && !rt) {
40821
40825
  if (mt(E))
40822
40826
  return rt ? E : {};
@@ -40862,7 +40866,7 @@ var ou = f9, vd = {}, p9 = {
40862
40866
  st.call(E, J) && J != "constructor" && L.push(J);
40863
40867
  return L;
40864
40868
  }
40865
- function lo(E, L) {
40869
+ function co(E, L) {
40866
40870
  if (L)
40867
40871
  return E.slice();
40868
40872
  var J = new E.constructor(E.length);
@@ -41014,15 +41018,15 @@ var ou = f9, vd = {}, p9 = {
41014
41018
  function ih(E, L) {
41015
41019
  return E === L || E !== E && L !== L;
41016
41020
  }
41017
- function co(E) {
41021
+ function ho(E) {
41018
41022
  return df(E) && st.call(E, "callee") && (!We.call(E, "callee") || et.call(E) == s);
41019
41023
  }
41020
41024
  var sl = Array.isArray;
41021
- function ho(E) {
41025
+ function uo(E) {
41022
41026
  return E != null && sh(E.length) && !ol(E);
41023
41027
  }
41024
41028
  function df(E) {
41025
- return oh(E) && ho(E);
41029
+ return oh(E) && uo(E);
41026
41030
  }
41027
41031
  var rh = Ye || pf;
41028
41032
  function ol(E) {
@@ -41040,7 +41044,7 @@ var ou = f9, vd = {}, p9 = {
41040
41044
  return !!E && typeof E == "object";
41041
41045
  }
41042
41046
  function al(E) {
41043
- return ho(E) ? oo(E) : $d(E);
41047
+ return uo(E) ? ao(E) : $d(E);
41044
41048
  }
41045
41049
  function ff() {
41046
41050
  return [];
@@ -41167,21 +41171,21 @@ var yd = {}, g9 = {
41167
41171
  this.__data__ = [], this.size = 0;
41168
41172
  }
41169
41173
  function yn(E) {
41170
- var L = this.__data__, J = lo(L, E);
41174
+ var L = this.__data__, J = co(L, E);
41171
41175
  if (J < 0)
41172
41176
  return !1;
41173
41177
  var le = L.length - 1;
41174
41178
  return J == le ? L.pop() : Ht.call(L, J, 1), --this.size, !0;
41175
41179
  }
41176
41180
  function ur(E) {
41177
- var L = this.__data__, J = lo(L, E);
41181
+ var L = this.__data__, J = co(L, E);
41178
41182
  return J < 0 ? void 0 : L[J][1];
41179
41183
  }
41180
41184
  function Zt(E) {
41181
- return lo(this.__data__, E) > -1;
41185
+ return co(this.__data__, E) > -1;
41182
41186
  }
41183
41187
  function dr(E, L) {
41184
- var J = this.__data__, le = lo(J, E);
41188
+ var J = this.__data__, le = co(J, E);
41185
41189
  return le < 0 ? (++this.size, J.push([E, L])) : J[le][1] = L, this;
41186
41190
  }
41187
41191
  Dt.prototype.clear = jn, Dt.prototype.delete = yn, Dt.prototype.get = ur, Dt.prototype.has = Zt, Dt.prototype.set = dr;
@@ -41214,7 +41218,7 @@ var yd = {}, g9 = {
41214
41218
  return J.set(E, L), this.size += J.size == le ? 0 : 1, this;
41215
41219
  }
41216
41220
  ln.prototype.clear = xs, ln.prototype.delete = tl, ln.prototype.get = Qd, ln.prototype.has = Yd, ln.prototype.set = Xd;
41217
- function oo(E) {
41221
+ function ao(E) {
41218
41222
  var L = -1, J = E == null ? 0 : E.length;
41219
41223
  for (this.__data__ = new ln(); ++L < J; )
41220
41224
  this.add(E[L]);
@@ -41222,10 +41226,10 @@ var yd = {}, g9 = {
41222
41226
  function Kc(E) {
41223
41227
  return this.__data__.set(E, i), this;
41224
41228
  }
41225
- function ao(E) {
41229
+ function lo(E) {
41226
41230
  return this.__data__.has(E);
41227
41231
  }
41228
- oo.prototype.add = oo.prototype.push = Kc, oo.prototype.has = ao;
41232
+ ao.prototype.add = ao.prototype.push = Kc, ao.prototype.has = lo;
41229
41233
  function Gi(E) {
41230
41234
  var L = this.__data__ = new Dt(E);
41231
41235
  this.size = L.size;
@@ -41255,7 +41259,7 @@ var yd = {}, g9 = {
41255
41259
  }
41256
41260
  Gi.prototype.clear = nl, Gi.prototype.delete = Zd, Gi.prototype.get = Jd, Gi.prototype.has = qd, Gi.prototype.set = Kd;
41257
41261
  function $d(E, L) {
41258
- var J = co(E), le = !J && ih(E), bt = !J && !le && ho(E), rt = !J && !le && !bt && oh(E), St = J || le || bt || rt, Lt = St ? j(E.length, String) : [], dn = Lt.length;
41262
+ var J = ho(E), le = !J && ih(E), bt = !J && !le && uo(E), rt = !J && !le && !bt && oh(E), St = J || le || bt || rt, Lt = St ? j(E.length, String) : [], dn = Lt.length;
41259
41263
  for (var zt in E)
41260
41264
  (L || Ke.call(E, zt)) && !(St && // Safari 9 has enumerable `arguments.length` in strict mode.
41261
41265
  (zt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -41264,7 +41268,7 @@ var yd = {}, g9 = {
41264
41268
  lf(zt, dn))) && Lt.push(zt);
41265
41269
  return Lt;
41266
41270
  }
41267
- function lo(E, L) {
41271
+ function co(E, L) {
41268
41272
  for (var J = E.length; J--; )
41269
41273
  if (nh(E[J][0], L))
41270
41274
  return J;
@@ -41272,7 +41276,7 @@ var yd = {}, g9 = {
41272
41276
  }
41273
41277
  function il(E, L, J) {
41274
41278
  var le = L(E);
41275
- return co(E) ? le : Ne(le, J(E));
41279
+ return ho(E) ? le : Ne(le, J(E));
41276
41280
  }
41277
41281
  function Ms(E) {
41278
41282
  return E == null ? E === void 0 ? T : y : Xt && Xt in Object(E) ? pr(E) : th(E);
@@ -41284,11 +41288,11 @@ var yd = {}, g9 = {
41284
41288
  return E === L ? !0 : E == null || L == null || !Hi(E) && !Hi(L) ? E !== E && L !== L : ef(E, L, J, le, eh, bt);
41285
41289
  }
41286
41290
  function ef(E, L, J, le, bt, rt) {
41287
- var St = co(E), Lt = co(L), dn = St ? l : ji(E), zt = Lt ? l : ji(L);
41291
+ var St = ho(E), Lt = ho(L), dn = St ? l : ji(E), zt = Lt ? l : ji(L);
41288
41292
  dn = dn == a ? b : dn, zt = zt == a ? b : zt;
41289
41293
  var Rn = dn == b, Zn = zt == b, bn = dn == zt;
41290
- if (bn && ho(E)) {
41291
- if (!ho(L))
41294
+ if (bn && uo(E)) {
41295
+ if (!uo(L))
41292
41296
  return !1;
41293
41297
  St = !0, Rn = !1;
41294
41298
  }
@@ -41327,7 +41331,7 @@ var yd = {}, g9 = {
41327
41331
  var zt = rt.get(E);
41328
41332
  if (zt && rt.get(L))
41329
41333
  return zt == L;
41330
- var Rn = -1, Zn = !0, bn = J & s ? new oo() : void 0;
41334
+ var Rn = -1, Zn = !0, bn = J & s ? new ao() : void 0;
41331
41335
  for (rt.set(E, L), rt.set(L, E); ++Rn < Lt; ) {
41332
41336
  var On = E[Rn], In = L[Rn];
41333
41337
  if (le)
@@ -41499,11 +41503,11 @@ var yd = {}, g9 = {
41499
41503
  return arguments;
41500
41504
  }()) ? $c : function(E) {
41501
41505
  return Hi(E) && Ke.call(E, "callee") && !Ot.call(E, "callee");
41502
- }, co = Array.isArray;
41506
+ }, ho = Array.isArray;
41503
41507
  function sl(E) {
41504
41508
  return E != null && ol(E.length) && !rh(E);
41505
41509
  }
41506
- var ho = on || pf;
41510
+ var uo = on || pf;
41507
41511
  function df(E, L) {
41508
41512
  return eh(E, L);
41509
41513
  }
@@ -41633,7 +41637,7 @@ function C9({
41633
41637
  particlesToShow: r,
41634
41638
  particlesToScroll: s
41635
41639
  }) {
41636
- const o = ta(0, n, t - 1);
41640
+ const o = na(0, n, t - 1);
41637
41641
  let a = o - 1, l = o + 1;
41638
41642
  a = e ? a < 0 ? t - 1 : a : Math.max(0, a), l = e ? l > t - 1 ? 0 : l : Math.min(t - 1, l);
41639
41643
  const c = [.../* @__PURE__ */ new Set([
@@ -41786,14 +41790,14 @@ function S9(e) {
41786
41790
  });
41787
41791
  },
41788
41792
  setParticlesToShow({ data: o }) {
41789
- o.particlesToShow = ta(
41793
+ o.particlesToShow = na(
41790
41794
  1,
41791
41795
  o.particlesToShowInit,
41792
41796
  o.particlesCountWithoutClones
41793
41797
  );
41794
41798
  },
41795
41799
  setParticlesToScroll({ data: o }) {
41796
- o.particlesToScroll = ta(
41800
+ o.particlesToScroll = na(
41797
41801
  1,
41798
41802
  o.particlesToScrollInit,
41799
41803
  o.particlesCountWithoutClones
@@ -41824,7 +41828,7 @@ function S9(e) {
41824
41828
  });
41825
41829
  },
41826
41830
  _moveToParticle({ data: o }, a) {
41827
- o.currentParticleIndex = ta(
41831
+ o.currentParticleIndex = na(
41828
41832
  0,
41829
41833
  a,
41830
41834
  o.particlesCount - 1
@@ -45684,7 +45688,7 @@ function GN(e) {
45684
45688
  return {
45685
45689
  c() {
45686
45690
  n = H("img"), _(n, "alt", "tag-icon"), _(n, "class", "icon-image svelte-316sq3"), Cn(n.src, t = /*iconUrl*/
45687
- e[7]) || _(n, "src", t), W(n, "width", qi(Qo({
45691
+ e[7]) || _(n, "src", t), W(n, "width", qi(Yo({
45688
45692
  originWidth: (
45689
45693
  /*width*/
45690
45694
  e[1]
@@ -45706,7 +45710,7 @@ function GN(e) {
45706
45710
  n1(i), r & /*iconUrl*/
45707
45711
  128 && !Cn(n.src, t = /*iconUrl*/
45708
45712
  i[7]) && _(n, "src", t), r & /*iconUrl, iconRatio, iconScale, iconWidth*/
45709
- 184 && W(n, "width", qi(Qo({
45713
+ 184 && W(n, "width", qi(Yo({
45710
45714
  originWidth: (
45711
45715
  /*width*/
45712
45716
  i[1]
@@ -45739,7 +45743,7 @@ function UN(e) {
45739
45743
  e[17] - 1})`;
45740
45744
  return {
45741
45745
  c() {
45742
- n = H("div"), _(n, "class", "icon-keyframe svelte-316sq3"), W(n, "width", qi(Qo({
45746
+ n = H("div"), _(n, "class", "icon-keyframe svelte-316sq3"), W(n, "width", qi(Yo({
45743
45747
  originWidth: (
45744
45748
  /*width*/
45745
45749
  e[1]
@@ -45756,7 +45760,7 @@ function UN(e) {
45756
45760
  /*iconWidth*/
45757
45761
  e[3]
45758
45762
  )
45759
- }).width)), W(n, "height", qi(Qo({
45763
+ }).width)), W(n, "height", qi(Yo({
45760
45764
  originWidth: (
45761
45765
  /*width*/
45762
45766
  e[1]
@@ -45785,7 +45789,7 @@ function UN(e) {
45785
45789
  },
45786
45790
  p(r, s) {
45787
45791
  i1(r), s & /*iconUrl, iconSteps, iconFps, iconRatio, iconScale, iconWidth*/
45788
- 252 && W(n, "width", qi(Qo({
45792
+ 252 && W(n, "width", qi(Yo({
45789
45793
  originWidth: (
45790
45794
  /*width*/
45791
45795
  r[1]
@@ -45803,7 +45807,7 @@ function UN(e) {
45803
45807
  r[3]
45804
45808
  )
45805
45809
  }).width)), s & /*iconUrl, iconSteps, iconFps, iconRatio, iconScale, iconWidth*/
45806
- 252 && W(n, "height", qi(Qo({
45810
+ 252 && W(n, "height", qi(Yo({
45807
45811
  originWidth: (
45808
45812
  /*width*/
45809
45813
  r[1]
@@ -45870,7 +45874,7 @@ function QN(e) {
45870
45874
  }
45871
45875
  };
45872
45876
  }
45873
- function Qo(e) {
45877
+ function Yo(e) {
45874
45878
  const { originWidth: n, originHeight: t, scale: i = 1, wantedWidth: r } = e, s = (r != null ? r : n) * i, o = typeof t == "number" ? s * (t / n) : void 0;
45875
45879
  return Me(R({}, e), { width: s, height: o });
45876
45880
  }
@@ -47138,7 +47142,7 @@ class ev {
47138
47142
  /** 通过射线检测标签可用性 */
47139
47143
  computeVisibleByIntersect(n) {
47140
47144
  var l, c, h, u;
47141
- const t = to(to((l = this.getConfig().visibleConfig) != null ? l : {}).intersectRaycaster), i = n != null ? n : this.five.getCurrentState().panoIndex, r = Ns(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(i) : this.five.camera.position;
47145
+ const t = no(no((l = this.getConfig().visibleConfig) != null ? l : {}).intersectRaycaster), i = n != null ? n : this.five.getCurrentState().panoIndex, r = Ns(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(i) : this.five.camera.position;
47142
47146
  if (r === void 0)
47143
47147
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: i } };
47144
47148
  const s = zr(
@@ -48470,9 +48474,9 @@ class R8 extends k8 {
48470
48474
  super(t);
48471
48475
  v(this, "rendererMap", /* @__PURE__ */ new Map());
48472
48476
  v(this, "contentTypeMap", /* @__PURE__ */ new Map());
48473
- v(this, "group", new Zo());
48474
- v(this, "imagePlaneGroup", new Zo());
48475
- v(this, "gltfObjectGroup", new Zo());
48477
+ v(this, "group", new Jo());
48478
+ v(this, "imagePlaneGroup", new Jo());
48479
+ v(this, "gltfObjectGroup", new Jo());
48476
48480
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
48477
48481
  v(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
48478
48482
  /** 临时状态 */
@@ -48659,7 +48663,7 @@ class O8 {
48659
48663
  closeIntersectRaycaster() {
48660
48664
  this.plugin.tags.forEach((n) => {
48661
48665
  var t;
48662
- to((t = n == null ? void 0 : n.initialConfig) == null ? void 0 : t.visibleConfig).intersectRaycaster && (n.initialConfig.visibleConfig.intersectRaycaster.enabled = !1);
48666
+ no((t = n == null ? void 0 : n.initialConfig) == null ? void 0 : t.visibleConfig).intersectRaycaster && (n.initialConfig.visibleConfig.intersectRaycaster.enabled = !1);
48663
48667
  }), this.plugin.changeGlobalConfig({
48664
48668
  visibleConfig: {
48665
48669
  intersectRaycaster: {
@@ -49950,13 +49954,13 @@ class Wm extends R8 {
49950
49954
  if (i.state && r !== void 0) {
49951
49955
  if (r === !0 && i.screenPosition) {
49952
49956
  const s = i.getConfig().unfoldedConfig;
49953
- to(s).keep !== "unfolded" && (t = !0);
49957
+ no(s).keep !== "unfolded" && (t = !0);
49954
49958
  }
49955
49959
  i.state.unfolded = r;
49956
49960
  }
49957
49961
  }), t && this.filterPointTag.forEach((i) => {
49958
49962
  const r = i.getConfig().unfoldedConfig;
49959
- typeof r == "object" && (r.autoUnfold || r.autoUnfold === !1 || to(r.autoUnfold).enable === !1 || r.keep) || i.state && (i.state.unfolded = !1);
49963
+ typeof r == "object" && (r.autoUnfold || r.autoUnfold === !1 || no(r.autoUnfold).enable === !1 || r.keep) || i.state && (i.state.unfolded = !1);
49960
49964
  });
49961
49965
  }
49962
49966
  changeTagMode(t, i) {
@@ -50579,7 +50583,7 @@ class Qm {
50579
50583
  setTextureUrl(n) {
50580
50584
  if (this.disposed)
50581
50585
  return this.logError("disposed");
50582
- this.textureUrl = n, Us(n).then((t) => {
50586
+ this.textureUrl = n, Ws(n).then((t) => {
50583
50587
  this.disposed || this.textureUrl === n && (t.wrapT = C.RepeatWrapping, this.textureHasLoaded = !0, this.meshWithDepthTest.material.uniforms.map.value = t, this.meshWithoutDepthTest.material.uniforms.map.value = t, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.meshWithDepthTest.material.needsUpdate = !0, this.meshWithoutDepthTest.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
50584
50588
  });
50585
50589
  }
@@ -51452,11 +51456,11 @@ class QM {
51452
51456
  walk(n) {
51453
51457
  return ee(this, null, function* () {
51454
51458
  if (this.hooks.emit("walkStart", { userAction: !0 }), this.panoramaItem.panoGroup.length) {
51455
- const t = R({ panoIndexList: this.panoramaItem.panoGroup }, n), [i] = yield $s(gF(this.five, t));
51459
+ const t = R({ panoIndexList: this.panoramaItem.panoGroup }, n), [i] = yield eo(gF(this.five, t));
51456
51460
  if (i)
51457
51461
  return this.logError(i.message);
51458
51462
  } else {
51459
- const t = { path: this.panoramaItem.curvePath }, [i] = yield $s(mF(this.five, t));
51463
+ const t = { path: this.panoramaItem.curvePath }, [i] = yield eo(mF(this.five, t));
51460
51464
  if (i)
51461
51465
  return this.logError(i.message);
51462
51466
  }
@@ -51795,7 +51799,7 @@ const yp = {
51795
51799
  Y: 4765519,
51796
51800
  Z: 4227839
51797
51801
  };
51798
- class na {
51802
+ class ia {
51799
51803
  static get X() {
51800
51804
  return new C.Color(yp.X).convertSRGBToLinear().clone();
51801
51805
  }
@@ -51816,7 +51820,7 @@ class _F extends bF {
51816
51820
  v(this, "xArrow");
51817
51821
  v(this, "yArrow");
51818
51822
  v(this, "zArrow");
51819
- i.xArrowEnable !== !1 && (this.xArrow = new vp({ direction: "x", color: na.X })), i.yArrowEnable !== !1 && (this.yArrow = new vp({ direction: "y", color: na.Y })), i.zArrowEnable !== !1 && (this.zArrow = new vp({ direction: "z", color: na.Z })), this.add(...[this.xArrow, this.yArrow, this.zArrow].filter(Boolean));
51823
+ i.xArrowEnable !== !1 && (this.xArrow = new vp({ direction: "x", color: ia.X })), i.yArrowEnable !== !1 && (this.yArrow = new vp({ direction: "y", color: ia.Y })), i.zArrowEnable !== !1 && (this.zArrow = new vp({ direction: "z", color: ia.Z })), this.add(...[this.xArrow, this.yArrow, this.zArrow].filter(Boolean));
51820
51824
  }
51821
51825
  show() {
51822
51826
  super.show(), this.xArrow && (this.xArrow.visible = !0), this.yArrow && (this.yArrow.visible = !0), this.zArrow && (this.zArrow.visible = !0);
@@ -51831,7 +51835,7 @@ class _F extends bF {
51831
51835
  this.remove(...[this.xArrow, this.yArrow, this.zArrow].filter(Boolean)), super.dispose();
51832
51836
  }
51833
51837
  }
51834
- function Ws(e, n) {
51838
+ function Qs(e, n) {
51835
51839
  return IF(document.createElement(n != null ? n : "div"), e);
51836
51840
  }
51837
51841
  function IF(e, n) {
@@ -51842,7 +51846,7 @@ function IF(e, n) {
51842
51846
  return e;
51843
51847
  }
51844
51848
  function SF(e) {
51845
- const n = Ws(R({
51849
+ const n = Qs(R({
51846
51850
  position: "absolute",
51847
51851
  display: "block",
51848
51852
  borderRadius: "4px",
@@ -51876,7 +51880,7 @@ class TF extends wF {
51876
51880
  v(this, "children", []);
51877
51881
  v(this, "angleTips");
51878
51882
  v(this, "container");
51879
- (i == null ? void 0 : i.yzCircleEnable) !== !1 && (this.xCircle = new bp({ direction: "x", color: na.X })), (i == null ? void 0 : i.xzCircleEnable) !== !1 && (this.yCircle = new bp({ direction: "y", color: na.Y })), (i == null ? void 0 : i.xyCircleEnable) !== !1 && (this.zCircle = new bp({ direction: "z", color: na.Z })), i != null && i.container && (i == null ? void 0 : i.angleTipsEnable) !== !1 && (this.container = i == null ? void 0 : i.container, this.angleTips = SF({ display: "none" }), this.container.appendChild(this.angleTips.element)), this.add(...[this.xCircle, this.yCircle, this.zCircle].filter(Boolean)), this.show();
51883
+ (i == null ? void 0 : i.yzCircleEnable) !== !1 && (this.xCircle = new bp({ direction: "x", color: ia.X })), (i == null ? void 0 : i.xzCircleEnable) !== !1 && (this.yCircle = new bp({ direction: "y", color: ia.Y })), (i == null ? void 0 : i.xyCircleEnable) !== !1 && (this.zCircle = new bp({ direction: "z", color: ia.Z })), i != null && i.container && (i == null ? void 0 : i.angleTipsEnable) !== !1 && (this.container = i == null ? void 0 : i.container, this.angleTips = SF({ display: "none" }), this.container.appendChild(this.angleTips.element)), this.add(...[this.xCircle, this.yCircle, this.zCircle].filter(Boolean)), this.show();
51880
51884
  }
51881
51885
  hide() {
51882
51886
  this.children.forEach((t) => t.hide());
@@ -51987,14 +51991,14 @@ class kF extends C.Mesh {
51987
51991
  }
51988
51992
  }
51989
51993
  function RF() {
51990
- const e = Ws({
51994
+ const e = Qs({
51991
51995
  width: "100%",
51992
51996
  height: "100%",
51993
51997
  left: "0",
51994
51998
  top: "0",
51995
51999
  position: "absolute",
51996
52000
  pointerEvents: "none"
51997
- }), n = Ws({
52001
+ }), n = Qs({
51998
52002
  boxSizing: "border-box",
51999
52003
  width: "100%",
52000
52004
  height: "100%",
@@ -52004,7 +52008,7 @@ function RF() {
52004
52008
  display: "flex",
52005
52009
  alignItems: "center",
52006
52010
  justifyContent: "center"
52007
- }), t = Ws({
52011
+ }), t = Qs({
52008
52012
  boxSizing: "border-box",
52009
52013
  width: "100%",
52010
52014
  height: "100%",
@@ -52027,13 +52031,13 @@ function RF() {
52027
52031
  ] };
52028
52032
  }
52029
52033
  function Zr(e) {
52030
- const n = Ws(R({
52034
+ const n = Qs(R({
52031
52035
  background: "#FFFFFF",
52032
52036
  width: "9px",
52033
52037
  height: "9px",
52034
52038
  position: "absolute",
52035
52039
  pointerEvents: "none"
52036
- }, e)), t = Ws({
52040
+ }, e)), t = Qs({
52037
52041
  width: "15px",
52038
52042
  height: "15px",
52039
52043
  position: "absolute",
@@ -52041,7 +52045,7 @@ function Zr(e) {
52041
52045
  top: "50%",
52042
52046
  transform: "translate(-50%, -50%)",
52043
52047
  pointerEvents: "none"
52044
- }), i = Ws({
52048
+ }), i = Qs({
52045
52049
  width: "15px",
52046
52050
  height: "15px",
52047
52051
  cursor: e == null ? void 0 : e.cursor,
@@ -52634,7 +52638,7 @@ class Zc {
52634
52638
  }
52635
52639
  }
52636
52640
  const BF = new C.Vector3();
52637
- function io(e) {
52641
+ function ro(e) {
52638
52642
  var d;
52639
52643
  const { raycaster: n, line: t, clampToLine: i = !0 } = e;
52640
52644
  if (((d = n.camera) == null ? void 0 : d.type) === "OrthographicCamera") {
@@ -52759,7 +52763,7 @@ class NF extends Zc {
52759
52763
  move(t) {
52760
52764
  if (!this.startInfo)
52761
52765
  return this.dragEnd();
52762
- const { line: i, startVectorProject: r } = this.startInfo, s = this.originObject3D, o = io({ raycaster: t, line: i, clampToLine: !1 }), a = o.clone().sub(r), l = new C.Matrix4();
52766
+ const { line: i, startVectorProject: r } = this.startInfo, s = this.originObject3D, o = ro({ raycaster: t, line: i, clampToLine: !1 }), a = o.clone().sub(r), l = new C.Matrix4();
52763
52767
  l.setPosition(a);
52764
52768
  const c = s.position.clone().applyMatrix4(l);
52765
52769
  this.hooks.emit("wantToMove", c) || (s.applyMatrix4(l), r.copy(o), this.internalHooks.emit("applyObjectPosition", { matrix: l }), this.hooks.emit("move", c));
@@ -53231,7 +53235,7 @@ class qF extends Zc {
53231
53235
  this.isDragging = !0;
53232
53236
  const { intersect: i } = t, r = this.camera.position, s = i.object, o = s.scalePosition.basePosition.clone(), l = s.scalePosition.handlePosition.clone().clone().sub(o).clone(), c = new C.Line3(o, o.clone().add(l.normalize().multiplyScalar(5)));
53233
53237
  c.applyMatrix4(this.helperObject3D.matrixWorld);
53234
- const h = new C.Raycaster(r, i.point.clone().sub(r)), u = io({ raycaster: h, line: c });
53238
+ const h = new C.Raycaster(r, i.point.clone().sub(r)), u = ro({ raycaster: h, line: c });
53235
53239
  this.startInfo = { line: c, scaleStartPoint: u, draggingObject: s }, this.hooks.emit("scaleStart");
53236
53240
  });
53237
53241
  v(this, "dragging", (t) => {
@@ -53244,7 +53248,7 @@ class qF extends Zc {
53244
53248
  var c, h;
53245
53249
  if (!this.startInfo)
53246
53250
  return;
53247
- const { line: i, scaleStartPoint: r, draggingObject: s } = this.startInfo, { scalePosition: o } = s, { basePosition: a } = o, l = io({ raycaster: t, line: i });
53251
+ const { line: i, scaleStartPoint: r, draggingObject: s } = this.startInfo, { scalePosition: o } = s, { basePosition: a } = o, l = ro({ raycaster: t, line: i });
53248
53252
  l.applyMatrix4(new C.Matrix4().getInverse(this.helperObject3D.matrixWorld.clone())), (h = (c = this.config) == null ? void 0 : c.scaleCallback) == null || h.call(c, {
53249
53253
  ratio: l.distanceTo(a) / r.distanceTo(a),
53250
53254
  intersectPoint: l,
@@ -54051,7 +54055,7 @@ const gV = (
54051
54055
  }
54052
54056
  `
54053
54057
  );
54054
- class Yo extends C.Mesh {
54058
+ class Xo extends C.Mesh {
54055
54059
  constructor(t, i = vV) {
54056
54060
  super();
54057
54061
  v(this, "geometryConfig", {
@@ -54067,9 +54071,9 @@ class Yo extends C.Mesh {
54067
54071
  v(this, "opacityAnime");
54068
54072
  /** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
54069
54073
  v(this, "uPreMeter", 1);
54070
- t.geometryConfig && (this.geometryConfig = R(R({}, this.geometryConfig), t.geometryConfig)), this.customID = t.id || this.uuid, this.pathPoints = t.path, this.path = Yo.calculatePath(t.path.map((l) => new C.Vector3().fromArray(l))), this.pathLength = this.path.getLength(), this.texture = Yo.formatTexture(t.texture);
54071
- const { radius: r, tubularSegments: s, radialSegments: o } = this.geometryConfig, a = Yo.formatTexture(t.texture);
54072
- this.geometry = Yo.formatGeometryUV(
54074
+ t.geometryConfig && (this.geometryConfig = R(R({}, this.geometryConfig), t.geometryConfig)), this.customID = t.id || this.uuid, this.pathPoints = t.path, this.path = Xo.calculatePath(t.path.map((l) => new C.Vector3().fromArray(l))), this.pathLength = this.path.getLength(), this.texture = Xo.formatTexture(t.texture);
54075
+ const { radius: r, tubularSegments: s, radialSegments: o } = this.geometryConfig, a = Xo.formatTexture(t.texture);
54076
+ this.geometry = Xo.formatGeometryUV(
54073
54077
  new C.TubeBufferGeometry(this.path, s, r, o),
54074
54078
  this.pathLength,
54075
54079
  this.uPreMeter
@@ -54168,7 +54172,7 @@ const yV = (
54168
54172
  }
54169
54173
  `
54170
54174
  );
54171
- class bV extends Yo {
54175
+ class bV extends Xo {
54172
54176
  constructor(t) {
54173
54177
  super(t, yV);
54174
54178
  /** 初始状态下,当前水管内的水流在整体管道上的位移
@@ -54484,7 +54488,7 @@ let AV = class extends Br {
54484
54488
  const i = this.texturePromiseCache.get(t);
54485
54489
  if (i)
54486
54490
  return i;
54487
- const r = Us(t);
54491
+ const r = Ws(t);
54488
54492
  return this.texturePromiseCache.set(t, r), r;
54489
54493
  });
54490
54494
  }
@@ -55408,7 +55412,7 @@ class SV extends ws {
55408
55412
  reloadTexture(t) {
55409
55413
  return ee(this, null, function* () {
55410
55414
  if (this.mesh.material.map = null, t !== "") {
55411
- const i = Us(t);
55415
+ const i = Ws(t);
55412
55416
  this.textureLoadingPromise = i;
55413
55417
  const r = yield i;
55414
55418
  r.minFilter = C.LinearFilter, this.textureLoadingPromise === i && (this.onTextureLoaded(r), this.textureLoadingPromise = null);
@@ -55526,13 +55530,13 @@ class Bc extends ti {
55526
55530
  var d, f;
55527
55531
  super();
55528
55532
  v(this, "name", "PointMesh");
55533
+ v(this, "dom");
55529
55534
  v(this, "opacityBeforeHighlight");
55530
55535
  v(this, "highlighted", !1);
55531
55536
  v(this, "fontMesh");
55532
55537
  v(this, "backgroundMesh");
55533
55538
  v(this, "lastRenderDomItem");
55534
55539
  v(this, "paramsStyle");
55535
- v(this, "dom");
55536
55540
  const u = t != null ? t : {}, { point: i } = u, r = Ps(u, ["point"]);
55537
55541
  this.paramsStyle = r != null ? r : {};
55538
55542
  const s = new C.BufferGeometry();
@@ -55570,7 +55574,7 @@ class Bc extends ti {
55570
55574
  At(t.color) && (this.fontMesh.material.setValues({ color: t.color }), this.backgroundMesh.material.setValues({ color: t.color })), At(t.size) && (this.fontMesh.material.setValues({ side: t.size }), this.backgroundMesh.material.setValues({ side: t.size })), At(t.occlusionVisibility) && (t.occlusionVisibility ? t.occlusionMode === "depthTest" ? (this.fontMesh.material.depthTest = !1, this.backgroundMesh.visible = !1) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !0) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !1));
55571
55575
  }
55572
55576
  highlight() {
55573
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.fontMesh.material.opacity, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight * ia }));
55577
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.fontMesh.material.opacity, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight * ra }));
55574
55578
  }
55575
55579
  unhighlight() {
55576
55580
  this.highlighted && (this.highlighted = !1, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight }));
@@ -55582,7 +55586,7 @@ class Bc extends ti {
55582
55586
  }
55583
55587
  updateDom() {
55584
55588
  const t = this.paramsStyle.tip;
55585
- t && !this.dom && (this.dom = new Ca(this.five), this.dom.intersectCheck = !1, this.dom.simulate3D = !0);
55589
+ t && !this.dom && (this.dom = new Gs(this.five), this.dom.intersectCheck = !1, this.dom.simulate3D = !0);
55586
55590
  const i = (r) => {
55587
55591
  this.dom && this.dom.__text !== r && (this.dom.__text = r, r ? this.dom.container.innerHTML = yg(r) : this.dom.container.innerHTML = "");
55588
55592
  };
@@ -55717,7 +55721,7 @@ class eE extends ti {
55717
55721
  this.lines.forEach((t) => t.unhighlight());
55718
55722
  }
55719
55723
  }
55720
- class ro extends eE {
55724
+ class so extends eE {
55721
55725
  constructor(...t) {
55722
55726
  super(Me(R({}, t[0]), { withDots: !1 }));
55723
55727
  v(this, "name", "PolylineMesh");
@@ -56367,9 +56371,9 @@ function XV(e, n, t) {
56367
56371
  const i = e.parent;
56368
56372
  if (!i)
56369
56373
  return;
56370
- const { promise: r, resolve: s, reject: o } = hv(), a = (x = t == null ? void 0 : t.limit) != null ? x : "none", l = new ro(e.style);
56374
+ const { promise: r, resolve: s, reject: o } = hv(), a = (x = t == null ? void 0 : t.limit) != null ? x : "none", l = new so(e.style);
56371
56375
  i.add(l);
56372
- const c = new ro(Me(R({}, e.style), { dashed: !0, lengthEnable: !1 }));
56376
+ const c = new so(Me(R({}, e.style), { dashed: !0, lengthEnable: !1 }));
56373
56377
  i.add(c), n.enable();
56374
56378
  const h = [];
56375
56379
  let u, d, f;
@@ -56592,7 +56596,7 @@ class bd extends uv {
56592
56596
  return t && (this.planeHelperNeedUpdate && this.updatePlaneHelper(), this.planeHelper ? this.planeHelper.projectPoint(t, new C.Vector3()) : t);
56593
56597
  }
56594
56598
  highlight() {
56595
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.opacity, this.setStyle({ opacity: this.opacity * ia }), this.needsRender = !0);
56599
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.opacity, this.setStyle({ opacity: this.opacity * ra }), this.needsRender = !0);
56596
56600
  }
56597
56601
  unhighlight() {
56598
56602
  this.highlighted && (this.highlighted = !1, this.setStyle({ opacity: this.opacityBeforeHighlight }), this.needsRender = !0);
@@ -56611,7 +56615,7 @@ class bd extends uv {
56611
56615
  if (!this.five)
56612
56616
  return console.error("Five not found");
56613
56617
  this.areaDom = (r = this.areaDom) != null ? r : (() => {
56614
- const s = new Ca(this.five);
56618
+ const s = new Gs(this.five);
56615
56619
  return s.intersectCheck = !1, s.simulate3D = !0, s;
56616
56620
  })(), this.areaDom.setPosition(this.center);
56617
56621
  const i = this.geometryInfo.area.toFixed(2);
@@ -56623,7 +56627,7 @@ class Ad extends bd {
56623
56627
  const s = t != null ? t : {}, { points: i } = s, r = Ps(s, ["points"]);
56624
56628
  super();
56625
56629
  v(this, "name", "PolygonWithEdgeMesh");
56626
- v(this, "line", new ro());
56630
+ v(this, "line", new so());
56627
56631
  i && this.setPoints(i), r && this.setStyle(r);
56628
56632
  }
56629
56633
  get style() {
@@ -56736,9 +56740,9 @@ function oE(e, n, t) {
56736
56740
  s(new Error("No container"));
56737
56741
  return;
56738
56742
  }
56739
- const a = (I = t == null ? void 0 : t.limit) != null ? I : "none", l = new ro(Me(R({}, e.style), { opacity: 1 }));
56743
+ const a = (I = t == null ? void 0 : t.limit) != null ? I : "none", l = new so(Me(R({}, e.style), { opacity: 1 }));
56740
56744
  o == null || o.add(l);
56741
- const c = new ro(Me(R({}, e.style), { dashed: !0, lengthEnable: !1 }));
56745
+ const c = new so(Me(R({}, e.style), { dashed: !0, lengthEnable: !1 }));
56742
56746
  o == null || o.add(c), n.enable();
56743
56747
  const h = [];
56744
56748
  let u, d, f = !1, m;
@@ -56940,7 +56944,7 @@ function $V(e, n) {
56940
56944
  }, u = (m) => {
56941
56945
  if (!(m != null && m.raycaster))
56942
56946
  return;
56943
- const p = io({
56947
+ const p = ro({
56944
56948
  raycaster: m.raycaster,
56945
56949
  line: new C.Line3(o, a)
56946
56950
  });
@@ -57008,7 +57012,7 @@ class Ql extends aE {
57008
57012
  const s = t != null ? t : {}, { points: i } = s, r = Ps(s, ["points"]);
57009
57013
  super();
57010
57014
  v(this, "name", "RectangleWithEdgeMesh");
57011
- v(this, "line", new ro());
57015
+ v(this, "line", new so());
57012
57016
  i && this.setPoints(i), r && this.setStyle(r);
57013
57017
  }
57014
57018
  get style() {
@@ -57153,7 +57157,7 @@ class r6 extends uv {
57153
57157
  this.geometry = new C.CircleGeometry(s, o), this.position.copy(i), this.lookAt(r.clone().add(i)), this.normal = r.clone().normalize(), this.needsRender = !0;
57154
57158
  }
57155
57159
  highlight() {
57156
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.opacity, this.setStyle({ opacity: this.opacity * ia }), this.needsRender = !0);
57160
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.opacity, this.setStyle({ opacity: this.opacity * ra }), this.needsRender = !0);
57157
57161
  }
57158
57162
  unhighlight() {
57159
57163
  this.highlighted && (this.highlighted = !1, this.setStyle({ opacity: this.opacityBeforeHighlight }), this.needsRender = !0);
@@ -57223,7 +57227,7 @@ function hE(e, n) {
57223
57227
  i(new Error("No container"));
57224
57228
  return;
57225
57229
  }
57226
- const s = new ro({ dashed: !0 });
57230
+ const s = new so({ dashed: !0 });
57227
57231
  r.add(s), n.enable();
57228
57232
  let o, a;
57229
57233
  const l = (d) => {
@@ -57293,7 +57297,7 @@ class G1 extends ti {
57293
57297
  this.params = R(R({}, this.params), t), At(t.color) && this.bottomCircle.setStyle({ color: t.color }), At(t.color) && this.topCircle.setStyle({ color: t.color });
57294
57298
  }
57295
57299
  highlight() {
57296
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.edgeMesh.opacity, this.edgeMesh.setStyle({ opacity: this.edgeMesh.opacity * ia }), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
57300
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.edgeMesh.opacity, this.edgeMesh.setStyle({ opacity: this.edgeMesh.opacity * ra }), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
57297
57301
  }
57298
57302
  unhighlight() {
57299
57303
  this.highlighted && (this.highlighted = !1, this.edgeMesh.setStyle({ opacity: this.opacityBeforeHighlight }), this.bottomCircle.unhighlight(), this.topCircle.unhighlight(), this.needsRender = !0);
@@ -57393,7 +57397,7 @@ function o6(e, n) {
57393
57397
  }, u = (m) => {
57394
57398
  if (!(m != null && m.raycaster))
57395
57399
  return;
57396
- const p = io({
57400
+ const p = ro({
57397
57401
  raycaster: m.raycaster,
57398
57402
  line: new C.Line3(o, a)
57399
57403
  }), y = new C.Plane().setFromNormalAndCoplanarPoint(e.normal, e.bottomCenter).projectPoint(p, new C.Vector3()), b = p.clone().sub(y), A = e.bottomCenter.clone().add(b);
@@ -57569,7 +57573,7 @@ function l6(e, n) {
57569
57573
  }, u = (m) => {
57570
57574
  if (!(m != null && m.raycaster))
57571
57575
  return;
57572
- const p = io({
57576
+ const p = ro({
57573
57577
  raycaster: m.raycaster,
57574
57578
  line: new C.Line3(l, c)
57575
57579
  });
@@ -57667,7 +57671,7 @@ function h6(e, n, t) {
57667
57671
  return T();
57668
57672
  f = I;
57669
57673
  const z = h.at(-1).clone();
57670
- a === "none" ? (u = I.point, l.setPoints([z, u])) : a === "xoz" ? (n.plane = d, d = d != null ? d : new C.Plane().setFromNormalAndCoplanarPoint(new C.Vector3(0, 1, 0), h[0]), u = d.projectPoint(I.point, W1), l.setPoints([z, u]), c.setPoints([u, I.point])) : a === "y" && (I.isVirtual ? (u = io({
57674
+ a === "none" ? (u = I.point, l.setPoints([z, u])) : a === "xoz" ? (n.plane = d, d = d != null ? d : new C.Plane().setFromNormalAndCoplanarPoint(new C.Vector3(0, 1, 0), h[0]), u = d.projectPoint(I.point, W1), l.setPoints([z, u]), c.setPoints([u, I.point])) : a === "y" && (I.isVirtual ? (u = ro({
57671
57675
  raycaster: I.raycaster,
57672
57676
  line: new C.Line3(h[0].clone(), new C.Vector3(0, 1, 0).add(h[0])),
57673
57677
  clampToLine: !1
@@ -57685,7 +57689,7 @@ function h6(e, n, t) {
57685
57689
  redo: b
57686
57690
  };
57687
57691
  }
57688
- const Xo = class extends En {
57692
+ const Zo = class extends En {
57689
57693
  constructor(t, i) {
57690
57694
  super();
57691
57695
  v(this, "group");
@@ -57706,11 +57710,11 @@ const Xo = class extends En {
57706
57710
  var t;
57707
57711
  console.log("redo"), (t = this.creatingItem) == null || t.redo(), this.five.needsRender = !0;
57708
57712
  });
57709
- this.five = t, this.theme = i, this.group = new ti(), this.group.name = "Sculpt", t.scene.add(this.group), Xo.modules.init(t), ri("ctrl+z", this.undo), ri("ctrl+shift+z", this.redo), Xo.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: r, origDomEvent: s }) => {
57713
+ this.five = t, this.theme = i, this.group = new ti(), this.group.name = "Sculpt", t.scene.add(this.group), Zo.modules.init(t), ri("ctrl+z", this.undo), ri("ctrl+shift+z", this.redo), Zo.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: r, origDomEvent: s }) => {
57710
57714
  var a;
57711
57715
  const o = $M((a = r == null ? void 0 : r[0]) == null ? void 0 : a.object, (l) => l.isSculptObject);
57712
57716
  return o && !o.editing ? this.emit("click", s, o) : !1;
57713
- }), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ = Xo.modules;
57717
+ }), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ = Zo.modules;
57714
57718
  }
57715
57719
  get data() {
57716
57720
  return {
@@ -57753,7 +57757,7 @@ const Xo = class extends En {
57753
57757
  putObject(t) {
57754
57758
  var s;
57755
57759
  this.group.add(t);
57756
- const i = Xo.modules.object3DHelper, r = i.addObject3DHelper(t);
57760
+ const i = Zo.modules.object3DHelper, r = i.addObject3DHelper(t);
57757
57761
  return (s = r == null ? void 0 : r.moveController) == null || s.moveByMouse(), i;
57758
57762
  }
57759
57763
  /**
@@ -57861,7 +57865,7 @@ const Xo = class extends En {
57861
57865
  });
57862
57866
  }
57863
57867
  };
57864
- let hn = Xo;
57868
+ let hn = Zo;
57865
57869
  v(hn, "modules", KM);
57866
57870
  const XG = (e) => new hn(e);
57867
57871
  function u6(e, ...n) {
@@ -58204,14 +58208,14 @@ export {
58204
58208
  zG as CruisePluginTypes,
58205
58209
  YG as CurrentPanoImagePlugin,
58206
58210
  Sl as DIRECTION,
58207
- Uo as DISPLAY_STRATEGY_TYPE,
58211
+ Wo as DISPLAY_STRATEGY_TYPE,
58208
58212
  v8 as DimensionType,
58209
- js as FLOOR_PLAN_ATTACHED_TO,
58213
+ Hs as FLOOR_PLAN_ATTACHED_TO,
58210
58214
  tG as FLOOR_TYPE_MAP,
58211
58215
  RG as GuideLineItem,
58212
58216
  LG as GuideLineModeItem,
58213
58217
  YM as GuideLinePlugin,
58214
- Wo as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
58218
+ Qo as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
58215
58219
  xG as ItemLabelPlugin,
58216
58220
  tg as Magnifier,
58217
58221
  Z6 as MapviewFloorplanPlugin,