@tomorrowevening/hermes 0.0.38 → 0.0.39

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.
@@ -1,38 +1,38 @@
1
- import { PositionalAudio as Vn, EventDispatcher as un, Texture as dn, CubeTexture as Wn, RepeatWrapping as Kt, ShaderMaterial as hn, GLSL3 as Hn, DoubleSide as fn, Color as Tt, Mesh as qn, PlaneGeometry as Kn, FrontSide as Xn, BackSide as Zn, NoBlending as Jn, NormalBlending as Qn, AdditiveBlending as ea, SubtractiveBlending as ta, MultiplyBlending as na, CustomBlending as aa, AddEquation as ia, SubtractEquation as ra, ReverseSubtractEquation as sa, MinEquation as oa, MaxEquation as ca, ZeroFactor as pn, OneFactor as mn, SrcColorFactor as vn, OneMinusSrcColorFactor as gn, SrcAlphaFactor as bn, OneMinusSrcAlphaFactor as yn, DstAlphaFactor as En, OneMinusDstAlphaFactor as Cn, DstColorFactor as xn, OneMinusDstColorFactor as Sn, SrcAlphaSaturateFactor as la, ConstantColorFactor as wn, OneMinusConstantColorFactor as On, ConstantAlphaFactor as Mn, OneMinusConstantAlphaFactor as Tn, Matrix4 as ua, Vector3 as X, Euler as da, Ray as ha, Plane as fa, MathUtils as pa, MOUSE as Ve, TOUCH as We, Quaternion as Xt, Spherical as Zt, Vector2 as ue, PerspectiveCamera as zt, MeshDepthMaterial as ma, MeshNormalMaterial as va, MeshBasicMaterial as ga, OrthographicCamera as Rn, Scene as _n, Group as ba, AxesHelper as An, WebGLRenderer as ya, Raycaster as Ea, CameraHelper as Ca } from "three";
2
- import { getProject as xa, createRafDriver as Sa } from "@theatre/core";
1
+ import { PositionalAudio as Vn, EventDispatcher as un, Texture as dn, CubeTexture as Hn, RepeatWrapping as Kt, ShaderMaterial as hn, GLSL3 as Wn, DoubleSide as fn, Color as Tt, Mesh as qn, PlaneGeometry as Kn, FrontSide as Xn, BackSide as Zn, NoBlending as Jn, NormalBlending as Qn, AdditiveBlending as ea, SubtractiveBlending as ta, MultiplyBlending as na, CustomBlending as aa, AddEquation as ia, SubtractEquation as ra, ReverseSubtractEquation as oa, MinEquation as sa, MaxEquation as ca, ZeroFactor as pn, OneFactor as mn, SrcColorFactor as vn, OneMinusSrcColorFactor as gn, SrcAlphaFactor as bn, OneMinusSrcAlphaFactor as yn, DstAlphaFactor as En, OneMinusDstAlphaFactor as Cn, DstColorFactor as xn, OneMinusDstColorFactor as wn, SrcAlphaSaturateFactor as la, ConstantColorFactor as Sn, OneMinusConstantColorFactor as On, ConstantAlphaFactor as Mn, OneMinusConstantAlphaFactor as Tn, Matrix4 as ua, Vector3 as X, Euler as da, Ray as ha, Plane as fa, MathUtils as pa, MOUSE as Ve, TOUCH as He, Quaternion as Xt, Spherical as Zt, Vector2 as ue, PerspectiveCamera as zt, MeshDepthMaterial as ma, MeshNormalMaterial as va, MeshBasicMaterial as ga, OrthographicCamera as Rn, Scene as _n, Group as ba, AxesHelper as An, WebGLRenderer as ya, Raycaster as Ea, CameraHelper as Ca } from "three";
2
+ import { getProject as xa, createRafDriver as wa } from "@theatre/core";
3
3
  import at from "@theatre/studio";
4
- import { Pane as wa } from "tweakpane";
4
+ import { Pane as Sa } from "tweakpane";
5
5
  import * as Oa from "@tweakpane/plugin-essentials";
6
- import Pn, { useState as se, useRef as Ee, useEffect as Fe, Component as Ma, forwardRef as Ta } from "react";
6
+ import Pn, { useState as ae, useRef as Ee, useEffect as Oe, forwardRef as Ma } from "react";
7
7
  import { Reorder as kn } from "framer-motion";
8
8
  function lt(t) {
9
9
  return t.substring(0, 1).toUpperCase() + t.substring(1);
10
10
  }
11
- function Pi(t, n, a) {
11
+ function Ai(t, n, a) {
12
12
  return Math.min(n, Math.max(t, a));
13
13
  }
14
- function ki(t, n) {
14
+ function Pi(t, n) {
15
15
  const a = t - n;
16
16
  return Math.sqrt(a * a);
17
17
  }
18
- function Ra() {
18
+ function Ta() {
19
19
  return Math.round(Math.random() * 1e6).toString();
20
20
  }
21
- function _a(t) {
21
+ function Ra(t) {
22
22
  return t.r !== void 0 && t.g !== void 0 && t.b !== void 0;
23
23
  }
24
- function Aa(t) {
25
- const n = Math.round(t.r * 255), a = Math.round(t.g * 255), e = Math.round(t.b * 255), s = (u) => {
24
+ function _a(t) {
25
+ const n = Math.round(t.r * 255), a = Math.round(t.g * 255), e = Math.round(t.b * 255), o = (u) => {
26
26
  const f = u.toString(16);
27
27
  return f.length === 1 ? "0" + f : f;
28
- }, o = s(n), p = s(a), c = s(e);
29
- return "#" + o + p + c;
28
+ }, s = o(n), p = o(a), c = o(e);
29
+ return "#" + s + p + c;
30
30
  }
31
31
  function Ft(t, n = 1) {
32
32
  return Number(t.toFixed(n));
33
33
  }
34
34
  let Yt = 0;
35
- const Pa = () => {
35
+ const Aa = () => {
36
36
  Yt = 0;
37
37
  }, jn = (t) => {
38
38
  if (!t)
@@ -41,9 +41,9 @@ const Pa = () => {
41
41
  n.length === 0 && (n = `obj_${Yt}`, Yt++), t.parent !== null && (n = `${t.parent.uuid}.${n}`), t.uuid = n, t.children.forEach((a) => {
42
42
  jn(a);
43
43
  });
44
- }, ji = (t) => {
44
+ }, ki = (t) => {
45
45
  t?.dispose();
46
- }, ka = (t) => {
46
+ }, Pa = (t) => {
47
47
  t && (Array.isArray(t) ? t.forEach((n) => n.dispose()) : t.dispose());
48
48
  }, Dn = (t) => {
49
49
  if (t) {
@@ -53,12 +53,12 @@ const Pa = () => {
53
53
  }
54
54
  if (t.parent && t.parent.remove(t), t.isMesh) {
55
55
  const n = t;
56
- n.geometry?.dispose(), ka(n.material);
56
+ n.geometry?.dispose(), Pa(n.material);
57
57
  }
58
58
  t.dispose !== void 0 && t.dispose();
59
59
  }
60
60
  };
61
- class Di {
61
+ class ji {
62
62
  components = /* @__PURE__ */ new Map();
63
63
  listen;
64
64
  // Protected
@@ -154,7 +154,7 @@ class Rt {
154
154
  handleEditorApp() {
155
155
  }
156
156
  }
157
- class Ii extends Rt {
157
+ class Di extends Rt {
158
158
  selectDropdown(n, a) {
159
159
  this.app.send({
160
160
  event: "selectComponent",
@@ -191,7 +191,7 @@ class Ii extends Rt {
191
191
  const In = () => {
192
192
  };
193
193
  let ge;
194
- class ot extends Rt {
194
+ class st extends Rt {
195
195
  project;
196
196
  sheets = /* @__PURE__ */ new Map();
197
197
  sheetObjects = /* @__PURE__ */ new Map();
@@ -236,22 +236,22 @@ class ot extends Rt {
236
236
  e.search(`${n}_`) > -1 && this.unsubscribe(a);
237
237
  });
238
238
  }
239
- sheetObject(n, a, e, s) {
239
+ sheetObject(n, a, e, o) {
240
240
  if (this.project === void 0) {
241
241
  console.error("Theatre Project hasn't been created yet.");
242
242
  return;
243
243
  }
244
- const o = this.sheet(n);
245
- if (o === void 0)
244
+ const s = this.sheet(n);
245
+ if (s === void 0)
246
246
  return;
247
247
  const p = `${n}_${a}`;
248
248
  let c = this.sheetObjects.get(p);
249
- c !== void 0 ? c = o.object(a, { ...e, ...c.value }, { reconfigure: !0 }) : c = o.object(a, e), this.sheetObjects.set(p, c), this.sheetObjectCBs.set(p, s !== void 0 ? s : In);
249
+ c !== void 0 ? c = s.object(a, { ...e, ...c.value }, { reconfigure: !0 }) : c = s.object(a, e), this.sheetObjects.set(p, c), this.sheetObjectCBs.set(p, o !== void 0 ? o : In);
250
250
  const u = c.onValuesChange((f) => {
251
251
  if (this.app.editor) {
252
252
  for (const b in f) {
253
253
  const E = f[b];
254
- typeof E == "object" && _a(E) && (f[b] = {
254
+ typeof E == "object" && Ra(E) && (f[b] = {
255
255
  r: E.r,
256
256
  g: E.g,
257
257
  b: E.b,
@@ -280,8 +280,8 @@ class ot extends Rt {
280
280
  }
281
281
  const a = n.address.sheetId, e = n.address.objectKey;
282
282
  this.sheets.get(a)?.detachObject(e);
283
- const o = `${a}_${e}`, p = this.sheetObjectUnsubscribe.get(o);
284
- p !== void 0 && (this.sheetObjects.delete(o), this.sheetObjectCBs.delete(o), this.sheetObjectUnsubscribe.delete(o), p());
283
+ const s = `${a}_${e}`, p = this.sheetObjectUnsubscribe.get(s);
284
+ p !== void 0 && (this.sheetObjects.delete(s), this.sheetObjectCBs.delete(s), this.sheetObjectUnsubscribe.delete(s), p());
285
285
  }
286
286
  // Remote Controller
287
287
  // Receives App events
@@ -317,21 +317,21 @@ class ot extends Rt {
317
317
  // Runs only in-editor
318
318
  handleEditorApp() {
319
319
  if (this.app.editor) {
320
- at.ui.restore(), at.onSelectionChange((s) => {
321
- s.length < 1 || s.forEach((o) => {
322
- let p = o.address.sheetId, c = "setSheet", u = {};
323
- switch (o.type) {
320
+ at.ui.restore(), at.onSelectionChange((o) => {
321
+ o.length < 1 || o.forEach((s) => {
322
+ let p = s.address.sheetId, c = "setSheet", u = {};
323
+ switch (s.type) {
324
324
  case "Theatre_Sheet_PublicAPI":
325
325
  c = "setSheet", u = {
326
- sheet: o.address.sheetId
327
- }, ge = this.sheets.get(o.address.sheetId);
326
+ sheet: s.address.sheetId
327
+ }, ge = this.sheets.get(s.address.sheetId);
328
328
  break;
329
329
  case "Theatre_SheetObject_PublicAPI":
330
- c = "setSheetObject", p += `_${o.address.objectKey}`, u = {
330
+ c = "setSheetObject", p += `_${s.address.objectKey}`, u = {
331
331
  id: p,
332
- sheet: o.address.sheetId,
333
- key: o.address.objectKey
334
- }, ge = this.sheets.get(o.address.sheetId);
332
+ sheet: s.address.sheetId,
333
+ key: s.address.objectKey
334
+ }, ge = this.sheets.get(s.address.sheetId);
335
335
  break;
336
336
  }
337
337
  this.app.send({ event: c, target: "app", data: u });
@@ -339,15 +339,15 @@ class ot extends Rt {
339
339
  });
340
340
  let n = -1;
341
341
  const a = () => {
342
- if (ot.getRafDriver().tick(performance.now()), ge !== void 0 && n !== ge.sequence.position) {
342
+ if (st.getRafDriver().tick(performance.now()), ge !== void 0 && n !== ge.sequence.position) {
343
343
  n = ge.sequence.position;
344
- const s = ge;
344
+ const o = ge;
345
345
  this.app.send({
346
346
  event: "updateTimeline",
347
347
  target: "app",
348
348
  data: {
349
349
  position: n,
350
- sheet: s.address.sheetId
350
+ sheet: o.address.sheetId
351
351
  }
352
352
  });
353
353
  }
@@ -359,10 +359,10 @@ class ot extends Rt {
359
359
  at.ui.hide();
360
360
  }
361
361
  static getRafDriver() {
362
- return ot.rafDriver || (ot.rafDriver = Sa()), ot.rafDriver;
362
+ return st.rafDriver || (st.rafDriver = wa()), st.rafDriver;
363
363
  }
364
364
  }
365
- function ja(t) {
365
+ function ka(t) {
366
366
  if (t.name === "cameras")
367
367
  return "camera";
368
368
  if (t.name === "interactive")
@@ -387,7 +387,7 @@ function Ln(t) {
387
387
  n.children.push(Ln(a));
388
388
  }), n;
389
389
  }
390
- function Da(t) {
390
+ function ja(t) {
391
391
  const n = {};
392
392
  for (const a in t) {
393
393
  const e = t[a].value;
@@ -395,7 +395,7 @@ function Da(t) {
395
395
  }
396
396
  return n;
397
397
  }
398
- function Ia(t) {
398
+ function Da(t) {
399
399
  switch (t) {
400
400
  case "blendSrcAlpha":
401
401
  case "blendDstAlpha":
@@ -407,28 +407,28 @@ function Ia(t) {
407
407
  }
408
408
  return !1;
409
409
  }
410
- function He(t) {
410
+ function We(t) {
411
411
  const n = {};
412
412
  for (const a in t) {
413
- if (a.substring(0, 1) === "_" || a.substring(0, 2) === "is" || Ia(a))
413
+ if (a.substring(0, 1) === "_" || a.substring(0, 2) === "is" || Da(a))
414
414
  continue;
415
- const e = typeof t[a], s = t[a];
415
+ const e = typeof t[a], o = t[a];
416
416
  switch (e) {
417
417
  case "boolean":
418
418
  case "number":
419
419
  case "string":
420
- n[a] = s;
420
+ n[a] = o;
421
421
  break;
422
422
  case "object":
423
- if (s !== null)
424
- if (n[a] = s, s.isTexture)
425
- if (s instanceof dn) {
426
- const o = s.source.toJSON();
427
- n[a] = { src: o.url };
423
+ if (o !== null)
424
+ if (n[a] = o, o.isTexture)
425
+ if (o instanceof dn) {
426
+ const s = o.source.toJSON();
427
+ n[a] = { src: s.url };
428
428
  } else
429
- s instanceof Wn && (console.log("env map"), console.log(s.source.data), console.log(s.source.toJSON()), n[a] = { src: "" });
429
+ o instanceof Hn && (console.log("env map"), console.log(o.source.data), console.log(o.source.toJSON()), n[a] = { src: "" });
430
430
  else
431
- a === "uniforms" && (n[a] = Da(n[a]));
431
+ a === "uniforms" && (n[a] = ja(n[a]));
432
432
  else
433
433
  n[a] = { src: "" };
434
434
  break;
@@ -461,30 +461,30 @@ function Bt(t) {
461
461
  if (a.search("mesh") > -1) {
462
462
  const e = t;
463
463
  if (Array.isArray(e.material)) {
464
- const s = [];
465
- e.material.forEach((o) => {
466
- s.push(He(o));
467
- }), n.material = s;
464
+ const o = [];
465
+ e.material.forEach((s) => {
466
+ o.push(We(s));
467
+ }), n.material = o;
468
468
  } else
469
- n.material = He(e.material);
469
+ n.material = We(e.material);
470
470
  } else if (a.search("points") > -1) {
471
471
  const e = t;
472
472
  if (Array.isArray(e.material)) {
473
- const s = [];
474
- e.material.forEach((o) => {
475
- s.push(He(o));
476
- }), n.material = s;
473
+ const o = [];
474
+ e.material.forEach((s) => {
475
+ o.push(We(s));
476
+ }), n.material = o;
477
477
  } else
478
- n.material = He(e.material);
478
+ n.material = We(e.material);
479
479
  } else if (a.search("line") > -1) {
480
480
  const e = t;
481
481
  if (Array.isArray(e.material)) {
482
- const s = [];
483
- e.material.forEach((o) => {
484
- s.push(He(o));
485
- }), n.material = s;
482
+ const o = [];
483
+ e.material.forEach((s) => {
484
+ o.push(We(s));
485
+ }), n.material = o;
486
486
  } else
487
- n.material = He(e.material);
487
+ n.material = We(e.material);
488
488
  } else
489
489
  a.search("camera") > -1 ? t.type === "PerspectiveCamera" ? n.perspectiveCameraInfo = {
490
490
  fov: t.fov,
@@ -514,7 +514,7 @@ function Bt(t) {
514
514
  });
515
515
  return n;
516
516
  }
517
- function La(t, n) {
517
+ function Ia(t, n) {
518
518
  const a = n.split(".");
519
519
  switch (a.length) {
520
520
  case 1:
@@ -555,12 +555,12 @@ function Gt(t) {
555
555
  return new Promise((n, a) => {
556
556
  const e = new Image();
557
557
  e.onload = () => {
558
- const s = new dn(e);
559
- s.wrapS = Kt, s.wrapT = Kt, s.needsUpdate = !0, n(s);
558
+ const o = new dn(e);
559
+ o.wrapS = Kt, o.wrapT = Kt, o.needsUpdate = !0, n(o);
560
560
  }, e.onerror = a, e.src = t;
561
561
  });
562
562
  }
563
- class Li extends Rt {
563
+ class Ii extends Rt {
564
564
  scene = void 0;
565
565
  getObject(n) {
566
566
  this.app.debugEnabled && this.app.send({
@@ -577,7 +577,7 @@ class Li extends Rt {
577
577
  data: a
578
578
  });
579
579
  }
580
- requestMethod(n, a, e, s) {
580
+ requestMethod(n, a, e, o) {
581
581
  this.app.send({
582
582
  event: "requestMethod",
583
583
  target: "app",
@@ -585,7 +585,7 @@ class Li extends Rt {
585
585
  uuid: n,
586
586
  key: a,
587
587
  value: e,
588
- subitem: s
588
+ subitem: o
589
589
  }
590
590
  });
591
591
  }
@@ -614,7 +614,7 @@ class Li extends Rt {
614
614
  setScene(n) {
615
615
  if (n === void 0 || (this.scene = n, !this.app.debugEnabled))
616
616
  return;
617
- Pa(), jn(this.scene);
617
+ Aa(), jn(this.scene);
618
618
  const a = Ln(this.scene);
619
619
  this.app.send({
620
620
  event: "setScene",
@@ -678,7 +678,7 @@ class Li extends Rt {
678
678
  }
679
679
  }
680
680
  }
681
- class Ni extends Rt {
681
+ class Li extends Rt {
682
682
  bindCBs;
683
683
  buttonCBs;
684
684
  pane = void 0;
@@ -689,7 +689,7 @@ class Ni extends Rt {
689
689
  super(n), this.bindCBs = /* @__PURE__ */ new Map(), this.buttonCBs = /* @__PURE__ */ new Map(), n.editor && this.createGUI();
690
690
  }
691
691
  createGUI() {
692
- this.pane = new wa({ title: "GUI" }), this.pane.registerPlugin(Oa);
692
+ this.pane = new Sa({ title: "GUI" }), this.pane.registerPlugin(Oa);
693
693
  }
694
694
  dispose() {
695
695
  this.bindCBs.clear(), this.buttonCBs.clear(), this.appCallbacks = 0, this.editorCallbacks = 0, this.app.editor && (this.pane?.dispose(), this.pane = void 0);
@@ -714,14 +714,14 @@ class Ni extends Rt {
714
714
  return `debug_${Math.max(this.appCallbacks, this.editorCallbacks)}`;
715
715
  }
716
716
  // Binding
717
- bind(n, a, e, s = void 0) {
718
- const o = this.bindID, p = e.onChange !== void 0 ? e.onChange : In;
719
- this.bindCBs.set(o, p), this.app.editor ? (this.pane === void 0 && this.createGUI(), (s !== void 0 ? s : this.pane).addBinding(n, a, e).on("change", (u) => {
717
+ bind(n, a, e, o = void 0) {
718
+ const s = this.bindID, p = e.onChange !== void 0 ? e.onChange : In;
719
+ this.bindCBs.set(s, p), this.app.editor ? (this.pane === void 0 && this.createGUI(), (o !== void 0 ? o : this.pane).addBinding(n, a, e).on("change", (u) => {
720
720
  this.app.send({
721
721
  event: "updateBind",
722
722
  target: "app",
723
723
  data: {
724
- id: o,
724
+ id: s,
725
725
  value: u.value
726
726
  }
727
727
  });
@@ -729,10 +729,10 @@ class Ni extends Rt {
729
729
  event: "bindObject",
730
730
  target: "app",
731
731
  data: {
732
- id: o,
732
+ id: s,
733
733
  name: a,
734
734
  params: e,
735
- parent: s
735
+ parent: o
736
736
  }
737
737
  }), this.appCallbacks++);
738
738
  }
@@ -742,20 +742,20 @@ class Ni extends Rt {
742
742
  }
743
743
  // Buttons
744
744
  button(n, a, e = void 0) {
745
- const s = this.bindID;
746
- this.buttonCBs.set(s, a), this.app.editor ? (this.pane === void 0 && this.createGUI(), (e !== void 0 ? e : this.pane).addButton({ title: n }).on("click", () => {
745
+ const o = this.bindID;
746
+ this.buttonCBs.set(o, a), this.app.editor ? (this.pane === void 0 && this.createGUI(), (e !== void 0 ? e : this.pane).addButton({ title: n }).on("click", () => {
747
747
  this.app.send({
748
748
  event: "clickButton",
749
749
  target: "app",
750
750
  data: {
751
- id: s
751
+ id: o
752
752
  }
753
753
  });
754
754
  }), this.editorCallbacks++) : (this.app.send({
755
755
  event: "addButton",
756
756
  target: "app",
757
757
  data: {
758
- id: s,
758
+ id: o,
759
759
  name: n,
760
760
  callback: a,
761
761
  parent: e
@@ -808,20 +808,20 @@ var Vt = { exports: {} }, it = {};
808
808
  * LICENSE file in the root directory of this source tree.
809
809
  */
810
810
  var Jt;
811
- function Na() {
811
+ function La() {
812
812
  if (Jt)
813
813
  return it;
814
814
  Jt = 1;
815
- var t = Pn, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), e = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
815
+ var t = Pn, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), e = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
816
816
  function p(c, u, f) {
817
817
  var v, b = {}, E = null, x = null;
818
818
  f !== void 0 && (E = "" + f), u.key !== void 0 && (E = "" + u.key), u.ref !== void 0 && (x = u.ref);
819
819
  for (v in u)
820
- e.call(u, v) && !o.hasOwnProperty(v) && (b[v] = u[v]);
820
+ e.call(u, v) && !s.hasOwnProperty(v) && (b[v] = u[v]);
821
821
  if (c && c.defaultProps)
822
822
  for (v in u = c.defaultProps, u)
823
823
  b[v] === void 0 && (b[v] = u[v]);
824
- return { $$typeof: n, type: c, key: E, ref: x, props: b, _owner: s.current };
824
+ return { $$typeof: n, type: c, key: E, ref: x, props: b, _owner: o.current };
825
825
  }
826
826
  return it.Fragment = a, it.jsx = p, it.jsxs = p, it;
827
827
  }
@@ -836,17 +836,17 @@ var rt = {};
836
836
  * LICENSE file in the root directory of this source tree.
837
837
  */
838
838
  var Qt;
839
- function Fa() {
839
+ function Na() {
840
840
  return Qt || (Qt = 1, process.env.NODE_ENV !== "production" && function() {
841
- var t = Pn, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), M = Symbol.iterator, P = "@@iterator";
842
- function W(i) {
841
+ var t = Pn, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), M = Symbol.iterator, P = "@@iterator";
842
+ function H(i) {
843
843
  if (i === null || typeof i != "object")
844
844
  return null;
845
845
  var h = M && i[M] || i[P];
846
846
  return typeof h == "function" ? h : null;
847
847
  }
848
848
  var B = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
849
- function S(i) {
849
+ function w(i) {
850
850
  {
851
851
  for (var h = arguments.length, g = new Array(h > 1 ? h - 1 : 0), C = 1; C < h; C++)
852
852
  g[C - 1] = arguments[C];
@@ -863,14 +863,14 @@ function Fa() {
863
863
  F.unshift("Warning: " + h), Function.prototype.apply.call(console[i], console, F);
864
864
  }
865
865
  }
866
- var Ce = !1, le = !1, oe = !1, d = !1, m = !1, w;
867
- w = Symbol.for("react.module.reference");
866
+ var Ce = !1, le = !1, se = !1, d = !1, m = !1, S;
867
+ S = Symbol.for("react.module.reference");
868
868
  function _(i) {
869
- return !!(typeof i == "string" || typeof i == "function" || i === e || i === o || m || i === s || i === f || i === v || d || i === x || Ce || le || oe || typeof i == "object" && i !== null && (i.$$typeof === E || i.$$typeof === b || i.$$typeof === p || i.$$typeof === c || i.$$typeof === u || // This needs to include all possible module reference object
869
+ return !!(typeof i == "string" || typeof i == "function" || i === e || i === s || m || i === o || i === f || i === v || d || i === x || Ce || le || se || typeof i == "object" && i !== null && (i.$$typeof === E || i.$$typeof === b || i.$$typeof === p || i.$$typeof === c || i.$$typeof === u || // This needs to include all possible module reference object
870
870
  // types supported by any Flight configuration anywhere since
871
871
  // we don't know which Flight build this will end up being used
872
872
  // with.
873
- i.$$typeof === w || i.getModuleId !== void 0));
873
+ i.$$typeof === S || i.getModuleId !== void 0));
874
874
  }
875
875
  function Y(i, h, g) {
876
876
  var C = i.displayName;
@@ -885,7 +885,7 @@ function Fa() {
885
885
  function $(i) {
886
886
  if (i == null)
887
887
  return null;
888
- if (typeof i.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
888
+ if (typeof i.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
889
889
  return i.displayName || i.name || null;
890
890
  if (typeof i == "string")
891
891
  return i;
@@ -894,9 +894,9 @@ function Fa() {
894
894
  return "Fragment";
895
895
  case a:
896
896
  return "Portal";
897
- case o:
898
- return "Profiler";
899
897
  case s:
898
+ return "Profiler";
899
+ case o:
900
900
  return "StrictMode";
901
901
  case f:
902
902
  return "Suspense";
@@ -927,13 +927,13 @@ function Fa() {
927
927
  }
928
928
  return null;
929
929
  }
930
- var I = Object.assign, H = 0, q, T, N, J, me, xe, ht;
930
+ var I = Object.assign, W = 0, q, T, N, J, me, xe, ht;
931
931
  function Ke() {
932
932
  }
933
933
  Ke.__reactDisabledLog = !0;
934
934
  function At() {
935
935
  {
936
- if (H === 0) {
936
+ if (W === 0) {
937
937
  q = console.log, T = console.info, N = console.warn, J = console.error, me = console.group, xe = console.groupCollapsed, ht = console.groupEnd;
938
938
  var i = {
939
939
  configurable: !0,
@@ -951,12 +951,12 @@ function Fa() {
951
951
  groupEnd: i
952
952
  });
953
953
  }
954
- H++;
954
+ W++;
955
955
  }
956
956
  }
957
957
  function Pt() {
958
958
  {
959
- if (H--, H === 0) {
959
+ if (W--, W === 0) {
960
960
  var i = {
961
961
  configurable: !0,
962
962
  enumerable: !0,
@@ -986,7 +986,7 @@ function Fa() {
986
986
  })
987
987
  });
988
988
  }
989
- H < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
989
+ W < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
990
990
  }
991
991
  }
992
992
  var Xe = B.ReactCurrentDispatcher, Ze;
@@ -1003,16 +1003,16 @@ function Fa() {
1003
1003
  ` + Ze + i;
1004
1004
  }
1005
1005
  }
1006
- var ze = !1, Oe;
1006
+ var ze = !1, Me;
1007
1007
  {
1008
1008
  var ft = typeof WeakMap == "function" ? WeakMap : Map;
1009
- Oe = new ft();
1009
+ Me = new ft();
1010
1010
  }
1011
1011
  function pt(i, h) {
1012
1012
  if (!i || ze)
1013
1013
  return "";
1014
1014
  {
1015
- var g = Oe.get(i);
1015
+ var g = Me.get(i);
1016
1016
  if (g !== void 0)
1017
1017
  return g;
1018
1018
  }
@@ -1067,7 +1067,7 @@ function Fa() {
1067
1067
  if (Z--, Q--, Q < 0 || R[Z] !== ce[Q]) {
1068
1068
  var fe = `
1069
1069
  ` + R[Z].replace(" at new ", " at ");
1070
- return i.displayName && fe.includes("<anonymous>") && (fe = fe.replace("<anonymous>", i.displayName)), typeof i == "function" && Oe.set(i, fe), fe;
1070
+ return i.displayName && fe.includes("<anonymous>") && (fe = fe.replace("<anonymous>", i.displayName)), typeof i == "function" && Me.set(i, fe), fe;
1071
1071
  }
1072
1072
  while (Z >= 1 && Q >= 0);
1073
1073
  break;
@@ -1077,7 +1077,7 @@ function Fa() {
1077
1077
  ze = !1, Xe.current = F, Pt(), Error.prepareStackTrace = D;
1078
1078
  }
1079
1079
  var Ge = i ? i.displayName || i.name : "", qt = Ge ? $e(Ge) : "";
1080
- return typeof i == "function" && Oe.set(i, qt), qt;
1080
+ return typeof i == "function" && Me.set(i, qt), qt;
1081
1081
  }
1082
1082
  function kt(i, h, g) {
1083
1083
  return pt(i, !1);
@@ -1086,7 +1086,7 @@ function Fa() {
1086
1086
  var h = i.prototype;
1087
1087
  return !!(h && h.isReactComponent);
1088
1088
  }
1089
- function Me(i, h, g) {
1089
+ function Te(i, h, g) {
1090
1090
  if (i == null)
1091
1091
  return "";
1092
1092
  if (typeof i == "function")
@@ -1104,28 +1104,28 @@ function Fa() {
1104
1104
  case u:
1105
1105
  return kt(i.render);
1106
1106
  case b:
1107
- return Me(i.type, h, g);
1107
+ return Te(i.type, h, g);
1108
1108
  case E: {
1109
1109
  var C = i, D = C._payload, F = C._init;
1110
1110
  try {
1111
- return Me(F(D), h, g);
1111
+ return Te(F(D), h, g);
1112
1112
  } catch {
1113
1113
  }
1114
1114
  }
1115
1115
  }
1116
1116
  return "";
1117
1117
  }
1118
- var Te = Object.prototype.hasOwnProperty, vt = {}, gt = B.ReactDebugCurrentFrame;
1119
- function Re(i) {
1118
+ var Re = Object.prototype.hasOwnProperty, vt = {}, gt = B.ReactDebugCurrentFrame;
1119
+ function _e(i) {
1120
1120
  if (i) {
1121
- var h = i._owner, g = Me(i.type, i._source, h ? h.type : null);
1121
+ var h = i._owner, g = Te(i.type, i._source, h ? h.type : null);
1122
1122
  gt.setExtraStackFrame(g);
1123
1123
  } else
1124
1124
  gt.setExtraStackFrame(null);
1125
1125
  }
1126
1126
  function Je(i, h, g, C, D) {
1127
1127
  {
1128
- var F = Function.call.bind(Te);
1128
+ var F = Function.call.bind(Re);
1129
1129
  for (var A in i)
1130
1130
  if (F(i, A)) {
1131
1131
  var R = void 0;
@@ -1138,13 +1138,13 @@ function Fa() {
1138
1138
  } catch (Z) {
1139
1139
  R = Z;
1140
1140
  }
1141
- R && !(R instanceof Error) && (Re(D), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", C || "React class", g, A, typeof R), Re(null)), R instanceof Error && !(R.message in vt) && (vt[R.message] = !0, Re(D), S("Failed %s type: %s", g, R.message), Re(null));
1141
+ R && !(R instanceof Error) && (_e(D), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", C || "React class", g, A, typeof R), _e(null)), R instanceof Error && !(R.message in vt) && (vt[R.message] = !0, _e(D), w("Failed %s type: %s", g, R.message), _e(null));
1142
1142
  }
1143
1143
  }
1144
1144
  }
1145
- var _e = Array.isArray;
1145
+ var Ae = Array.isArray;
1146
1146
  function Qe(i) {
1147
- return _e(i);
1147
+ return Ae(i);
1148
1148
  }
1149
1149
  function jt(i) {
1150
1150
  {
@@ -1164,9 +1164,9 @@ function Fa() {
1164
1164
  }
1165
1165
  function Et(i) {
1166
1166
  if (bt(i))
1167
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jt(i)), yt(i);
1167
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jt(i)), yt(i);
1168
1168
  }
1169
- var Se = B.ReactCurrentOwner, et = {
1169
+ var we = B.ReactCurrentOwner, et = {
1170
1170
  key: !0,
1171
1171
  ref: !0,
1172
1172
  __self: !0,
@@ -1174,7 +1174,7 @@ function Fa() {
1174
1174
  }, tt, Ct, Ye;
1175
1175
  Ye = {};
1176
1176
  function Dt(i) {
1177
- if (Te.call(i, "ref")) {
1177
+ if (Re.call(i, "ref")) {
1178
1178
  var h = Object.getOwnPropertyDescriptor(i, "ref").get;
1179
1179
  if (h && h.isReactWarning)
1180
1180
  return !1;
@@ -1182,7 +1182,7 @@ function Fa() {
1182
1182
  return i.ref !== void 0;
1183
1183
  }
1184
1184
  function It(i) {
1185
- if (Te.call(i, "key")) {
1185
+ if (Re.call(i, "key")) {
1186
1186
  var h = Object.getOwnPropertyDescriptor(i, "key").get;
1187
1187
  if (h && h.isReactWarning)
1188
1188
  return !1;
@@ -1190,15 +1190,15 @@ function Fa() {
1190
1190
  return i.key !== void 0;
1191
1191
  }
1192
1192
  function xt(i, h) {
1193
- if (typeof i.ref == "string" && Se.current && h && Se.current.stateNode !== h) {
1194
- var g = $(Se.current.type);
1195
- Ye[g] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(Se.current.type), i.ref), Ye[g] = !0);
1193
+ if (typeof i.ref == "string" && we.current && h && we.current.stateNode !== h) {
1194
+ var g = $(we.current.type);
1195
+ Ye[g] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(we.current.type), i.ref), Ye[g] = !0);
1196
1196
  }
1197
1197
  }
1198
- function we(i, h) {
1198
+ function Se(i, h) {
1199
1199
  {
1200
1200
  var g = function() {
1201
- tt || (tt = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
1201
+ tt || (tt = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
1202
1202
  };
1203
1203
  g.isReactWarning = !0, Object.defineProperty(i, "key", {
1204
1204
  get: g,
@@ -1206,10 +1206,10 @@ function Fa() {
1206
1206
  });
1207
1207
  }
1208
1208
  }
1209
- function Ht(i, h) {
1209
+ function Wt(i, h) {
1210
1210
  {
1211
1211
  var g = function() {
1212
- Ct || (Ct = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
1212
+ Ct || (Ct = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
1213
1213
  };
1214
1214
  g.isReactWarning = !0, Object.defineProperty(i, "ref", {
1215
1215
  get: g,
@@ -1251,7 +1251,7 @@ function Fa() {
1251
1251
  var F, A = {}, R = null, ce = null;
1252
1252
  g !== void 0 && (Et(g), R = "" + g), It(h) && (Et(h.key), R = "" + h.key), Dt(h) && (ce = h.ref, xt(h, D));
1253
1253
  for (F in h)
1254
- Te.call(h, F) && !et.hasOwnProperty(F) && (A[F] = h[F]);
1254
+ Re.call(h, F) && !et.hasOwnProperty(F) && (A[F] = h[F]);
1255
1255
  if (i && i.defaultProps) {
1256
1256
  var Z = i.defaultProps;
1257
1257
  for (F in Z)
@@ -1259,22 +1259,22 @@ function Fa() {
1259
1259
  }
1260
1260
  if (R || ce) {
1261
1261
  var Q = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
1262
- R && we(A, Q), ce && Ht(A, Q);
1262
+ R && Se(A, Q), ce && Wt(A, Q);
1263
1263
  }
1264
- return r(i, R, ce, D, C, Se.current, A);
1264
+ return r(i, R, ce, D, C, we.current, A);
1265
1265
  }
1266
1266
  }
1267
1267
  var O = B.ReactCurrentOwner, L = B.ReactDebugCurrentFrame;
1268
1268
  function K(i) {
1269
1269
  if (i) {
1270
- var h = i._owner, g = Me(i.type, i._source, h ? h.type : null);
1270
+ var h = i._owner, g = Te(i.type, i._source, h ? h.type : null);
1271
1271
  L.setExtraStackFrame(g);
1272
1272
  } else
1273
1273
  L.setExtraStackFrame(null);
1274
1274
  }
1275
1275
  var de;
1276
1276
  de = !1;
1277
- function ae(i) {
1277
+ function ie(i) {
1278
1278
  return typeof i == "object" && i !== null && i.$$typeof === n;
1279
1279
  }
1280
1280
  function Lt() {
@@ -1323,29 +1323,29 @@ Check the top-level render call using <` + g + ">.");
1323
1323
  return;
1324
1324
  nt[g] = !0;
1325
1325
  var C = "";
1326
- i && i._owner && i._owner !== O.current && (C = " It was passed a child from " + $(i._owner.type) + "."), K(i), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, C), K(null);
1326
+ i && i._owner && i._owner !== O.current && (C = " It was passed a child from " + $(i._owner.type) + "."), K(i), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, C), K(null);
1327
1327
  }
1328
1328
  }
1329
- function Ae(i, h) {
1329
+ function Pe(i, h) {
1330
1330
  {
1331
1331
  if (typeof i != "object")
1332
1332
  return;
1333
1333
  if (Qe(i))
1334
1334
  for (var g = 0; g < i.length; g++) {
1335
1335
  var C = i[g];
1336
- ae(C) && he(C, h);
1336
+ ie(C) && he(C, h);
1337
1337
  }
1338
- else if (ae(i))
1338
+ else if (ie(i))
1339
1339
  i._store && (i._store.validated = !0);
1340
1340
  else if (i) {
1341
- var D = W(i);
1341
+ var D = H(i);
1342
1342
  if (typeof D == "function" && D !== i.entries)
1343
1343
  for (var F = D.call(i), A; !(A = F.next()).done; )
1344
- ae(A.value) && he(A.value, h);
1344
+ ie(A.value) && he(A.value, h);
1345
1345
  }
1346
1346
  }
1347
1347
  }
1348
- function Pe(i) {
1348
+ function ke(i) {
1349
1349
  {
1350
1350
  var h = i.type;
1351
1351
  if (h == null || typeof h == "string")
@@ -1365,24 +1365,24 @@ Check the top-level render call using <` + g + ">.");
1365
1365
  } else if (h.PropTypes !== void 0 && !de) {
1366
1366
  de = !0;
1367
1367
  var D = $(h);
1368
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
1368
+ w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
1369
1369
  }
1370
- typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1370
+ typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1371
1371
  }
1372
1372
  }
1373
- function ke(i) {
1373
+ function je(i) {
1374
1374
  {
1375
1375
  for (var h = Object.keys(i.props), g = 0; g < h.length; g++) {
1376
1376
  var C = h[g];
1377
1377
  if (C !== "children" && C !== "key") {
1378
- K(i), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), K(null);
1378
+ K(i), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), K(null);
1379
1379
  break;
1380
1380
  }
1381
1381
  }
1382
- i.ref !== null && (K(i), S("Invalid attribute `ref` supplied to `React.Fragment`."), K(null));
1382
+ i.ref !== null && (K(i), w("Invalid attribute `ref` supplied to `React.Fragment`."), K(null));
1383
1383
  }
1384
1384
  }
1385
- function je(i, h, g, C, D, F) {
1385
+ function De(i, h, g, C, D, F) {
1386
1386
  {
1387
1387
  var A = _(i);
1388
1388
  if (!A) {
@@ -1391,7 +1391,7 @@ Check the top-level render call using <` + g + ">.");
1391
1391
  var ce = Nt(D);
1392
1392
  ce ? R += ce : R += Lt();
1393
1393
  var Z;
1394
- i === null ? Z = "null" : Qe(i) ? Z = "array" : i !== void 0 && i.$$typeof === n ? (Z = "<" + ($(i.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof i, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, R);
1394
+ i === null ? Z = "null" : Qe(i) ? Z = "array" : i !== void 0 && i.$$typeof === n ? (Z = "<" + ($(i.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof i, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, R);
1395
1395
  }
1396
1396
  var Q = y(i, h, g, D, F);
1397
1397
  if (Q == null)
@@ -1402,36 +1402,36 @@ Check the top-level render call using <` + g + ">.");
1402
1402
  if (C)
1403
1403
  if (Qe(fe)) {
1404
1404
  for (var Ge = 0; Ge < fe.length; Ge++)
1405
- Ae(fe[Ge], i);
1405
+ Pe(fe[Ge], i);
1406
1406
  Object.freeze && Object.freeze(fe);
1407
1407
  } else
1408
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1408
+ w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1409
1409
  else
1410
- Ae(fe, i);
1410
+ Pe(fe, i);
1411
1411
  }
1412
- return i === e ? ke(Q) : Pe(Q), Q;
1412
+ return i === e ? je(Q) : ke(Q), Q;
1413
1413
  }
1414
1414
  }
1415
1415
  function $n(i, h, g) {
1416
- return je(i, h, g, !0);
1416
+ return De(i, h, g, !0);
1417
1417
  }
1418
1418
  function zn(i, h, g) {
1419
- return je(i, h, g, !1);
1419
+ return De(i, h, g, !1);
1420
1420
  }
1421
1421
  var Yn = zn, Gn = $n;
1422
1422
  rt.Fragment = e, rt.jsx = Yn, rt.jsxs = Gn;
1423
1423
  }()), rt;
1424
1424
  }
1425
- process.env.NODE_ENV === "production" ? Vt.exports = Na() : Vt.exports = Fa();
1425
+ process.env.NODE_ENV === "production" ? Vt.exports = La() : Vt.exports = Na();
1426
1426
  var l = Vt.exports;
1427
1427
  function Nn(t) {
1428
1428
  return t.title.search("<") > -1 ? /* @__PURE__ */ l.jsx("button", { className: "svg", dangerouslySetInnerHTML: { __html: t.title } }) : /* @__PURE__ */ l.jsx("button", { children: t.title });
1429
1429
  }
1430
- const Ba = /* @__PURE__ */ l.jsxs("svg", { className: "closeIcon", width: "14", height: "14", fill: "none", stroke: "#666666", strokeMiterlimit: "10", children: [
1430
+ const Fa = /* @__PURE__ */ l.jsxs("svg", { className: "closeIcon", width: "14", height: "14", fill: "none", stroke: "#666666", strokeMiterlimit: "10", children: [
1431
1431
  /* @__PURE__ */ l.jsx("circle", { cx: "7", cy: "7", r: "6" }),
1432
1432
  /* @__PURE__ */ l.jsx("line", { x1: "4", y1: "4", x2: "10", y2: "10" }),
1433
1433
  /* @__PURE__ */ l.jsx("line", { x1: "4", y1: "10", x2: "10", y2: "4" })
1434
- ] }), Ua = /* @__PURE__ */ l.jsx("svg", { className: "dragIcon", width: "14", height: "14", fill: "#666666", stroke: "none", children: /* @__PURE__ */ l.jsx(
1434
+ ] }), Ba = /* @__PURE__ */ l.jsx("svg", { className: "dragIcon", width: "14", height: "14", fill: "#666666", stroke: "none", children: /* @__PURE__ */ l.jsx(
1435
1435
  "path",
1436
1436
  {
1437
1437
  d: `M10.43,4H3.57C3.26,4,3,4.22,3,4.5v1C3,5.78,3.26,6,3.57,6h6.86C10.74,6,11,5.78,11,5.5v-1
@@ -1439,41 +1439,41 @@ C11,4.22,10.74,4,10.43,4z M10.43,8H3.57C3.26,8,3,8.22,3,8.5v1C3,9.78,3.26,10,3.5
1439
1439
  C11,8.22,10.74,8,10.43,8z`
1440
1440
  }
1441
1441
  ) });
1442
- function $a(t) {
1442
+ function Ua(t) {
1443
1443
  return /* @__PURE__ */ l.jsx(kn.Item, { value: t.title, children: /* @__PURE__ */ l.jsxs("div", { children: [
1444
- Ua,
1444
+ Ba,
1445
1445
  /* @__PURE__ */ l.jsx("span", { children: t.title }),
1446
1446
  /* @__PURE__ */ l.jsx("button", { className: "closeIcon", onClick: () => {
1447
1447
  t.onDelete(t.index);
1448
- }, children: Ba })
1448
+ }, children: Fa })
1449
1449
  ] }) }, t.title);
1450
1450
  }
1451
- function za(t) {
1452
- const [n, a] = se(!1), [e, s] = se(t.options), o = (f) => {
1453
- t.onDragComplete(f), s(f);
1451
+ function $a(t) {
1452
+ const [n, a] = ae(!1), [e, o] = ae(t.options), s = (f) => {
1453
+ t.onDragComplete(f), o(f);
1454
1454
  }, p = (f) => {
1455
1455
  const v = [...e];
1456
- v.splice(f, 1), o(v);
1456
+ v.splice(f, 1), s(v);
1457
1457
  }, c = [];
1458
1458
  e.forEach((f, v) => {
1459
- c.push(/* @__PURE__ */ l.jsx($a, { index: v, title: f, onDelete: p }, f));
1459
+ c.push(/* @__PURE__ */ l.jsx(Ua, { index: v, title: f, onDelete: p }, f));
1460
1460
  });
1461
1461
  let u = "dropdown draggable";
1462
1462
  return t.subdropdown && (u += " subdropdown"), /* @__PURE__ */ l.jsxs("div", { className: u, onMouseEnter: () => a(!0), onMouseLeave: () => a(!1), children: [
1463
1463
  /* @__PURE__ */ l.jsx(Nn, { title: t.title }),
1464
- /* @__PURE__ */ l.jsx(kn.Group, { axis: "y", values: e, onReorder: o, style: { visibility: n ? "visible" : "hidden" }, children: c })
1464
+ /* @__PURE__ */ l.jsx(kn.Group, { axis: "y", values: e, onReorder: s, style: { visibility: n ? "visible" : "hidden" }, children: c })
1465
1465
  ] });
1466
1466
  }
1467
- function Ya(t) {
1468
- const [n, a] = se(!1), e = [];
1469
- t.options.map((o, p) => {
1470
- t.onSelect !== void 0 && (o.onSelect = t.onSelect), e.push(/* @__PURE__ */ l.jsx(Ga, { option: o }, p));
1467
+ function za(t) {
1468
+ const [n, a] = ae(!1), e = [];
1469
+ t.options.map((s, p) => {
1470
+ t.onSelect !== void 0 && (s.onSelect = t.onSelect), e.push(/* @__PURE__ */ l.jsx(Ya, { option: s }, p));
1471
1471
  });
1472
- let s = "dropdown";
1473
- return t.subdropdown && (s += " subdropdown"), /* @__PURE__ */ l.jsxs(
1472
+ let o = "dropdown";
1473
+ return t.subdropdown && (o += " subdropdown"), /* @__PURE__ */ l.jsxs(
1474
1474
  "div",
1475
1475
  {
1476
- className: s,
1476
+ className: o,
1477
1477
  onMouseEnter: () => a(!0),
1478
1478
  onMouseLeave: () => a(!1),
1479
1479
  children: [
@@ -1489,26 +1489,26 @@ function Ya(t) {
1489
1489
  }
1490
1490
  );
1491
1491
  }
1492
- function Ga(t) {
1493
- const { option: n } = t, [a, e] = se("");
1494
- let s;
1492
+ function Ya(t) {
1493
+ const { option: n } = t, [a, e] = ae("");
1494
+ let o;
1495
1495
  switch (n.type) {
1496
1496
  case "draggable":
1497
- s = /* @__PURE__ */ l.jsx(
1498
- za,
1497
+ o = /* @__PURE__ */ l.jsx(
1498
+ $a,
1499
1499
  {
1500
1500
  title: n.title,
1501
1501
  options: n.value,
1502
- onDragComplete: (o) => {
1503
- n.onDragComplete !== void 0 && n.onDragComplete(o);
1502
+ onDragComplete: (s) => {
1503
+ n.onDragComplete !== void 0 && n.onDragComplete(s);
1504
1504
  },
1505
1505
  subdropdown: !0
1506
1506
  }
1507
1507
  );
1508
1508
  break;
1509
1509
  case "dropdown":
1510
- s = /* @__PURE__ */ l.jsx(
1511
- Ya,
1510
+ o = /* @__PURE__ */ l.jsx(
1511
+ za,
1512
1512
  {
1513
1513
  title: n.title,
1514
1514
  options: n.value,
@@ -1518,7 +1518,7 @@ function Ga(t) {
1518
1518
  );
1519
1519
  break;
1520
1520
  case "option":
1521
- s = /* @__PURE__ */ l.jsx(
1521
+ o = /* @__PURE__ */ l.jsx(
1522
1522
  "button",
1523
1523
  {
1524
1524
  onClick: () => {
@@ -1529,12 +1529,12 @@ function Ga(t) {
1529
1529
  );
1530
1530
  break;
1531
1531
  }
1532
- return /* @__PURE__ */ l.jsx("li", { className: a === n.title ? "selected" : "", children: s }, Ra());
1532
+ return /* @__PURE__ */ l.jsx("li", { className: a === n.title ? "selected" : "", children: o }, Ta());
1533
1533
  }
1534
- function Fi(t) {
1534
+ function Ni(t) {
1535
1535
  function n(e) {
1536
- switch (t.components.forEach((s) => {
1537
- s.handleApp(e);
1536
+ switch (t.components.forEach((o) => {
1537
+ o.handleApp(e);
1538
1538
  }), e.event) {
1539
1539
  case "custom":
1540
1540
  k.dispatchEvent({ type: j.CUSTOM, value: e.data });
@@ -1542,8 +1542,8 @@ function Fi(t) {
1542
1542
  }
1543
1543
  }
1544
1544
  function a(e) {
1545
- switch (t.components.forEach((s) => {
1546
- s.handleEditor(e);
1545
+ switch (t.components.forEach((o) => {
1546
+ o.handleEditor(e);
1547
1547
  }), e.event) {
1548
1548
  case "custom":
1549
1549
  k.dispatchEvent({ type: j.CUSTOM, value: e.data });
@@ -1554,7 +1554,7 @@ function Fi(t) {
1554
1554
  e.target === "editor" ? a(e) : n(e);
1555
1555
  };
1556
1556
  }
1557
- const Va = `out vec3 worldPosition;
1557
+ const Ga = `out vec3 worldPosition;
1558
1558
  uniform float uDistance;
1559
1559
 
1560
1560
  void main() {
@@ -1563,7 +1563,7 @@ void main() {
1563
1563
  worldPosition.xz += cameraPosition.xz;
1564
1564
 
1565
1565
  gl_Position = projectionMatrix * modelViewMatrix * vec4(worldPosition, 1.0);
1566
- }`, Wa = `out vec4 fragColor;
1566
+ }`, Va = `out vec4 fragColor;
1567
1567
  in vec3 worldPosition;
1568
1568
 
1569
1569
  uniform float uDivisions;
@@ -1637,7 +1637,7 @@ class Ha extends hn {
1637
1637
  extensions: {
1638
1638
  derivatives: !0
1639
1639
  },
1640
- glslVersion: Hn,
1640
+ glslVersion: Wn,
1641
1641
  side: fn,
1642
1642
  transparent: !0,
1643
1643
  uniforms: {
@@ -1660,14 +1660,14 @@ class Ha extends hn {
1660
1660
  value: n?.gridOpacity !== void 0 ? n?.gridOpacity : 0.25
1661
1661
  }
1662
1662
  },
1663
- vertexShader: Va,
1664
- fragmentShader: Wa,
1663
+ vertexShader: Ga,
1664
+ fragmentShader: Va,
1665
1665
  name: "InfiniteGrid",
1666
1666
  depthWrite: !1
1667
1667
  });
1668
1668
  }
1669
1669
  }
1670
- class qa extends qn {
1670
+ class Wa extends qn {
1671
1671
  gridMaterial;
1672
1672
  constructor() {
1673
1673
  const n = new Ha();
@@ -1677,7 +1677,7 @@ class qa extends qn {
1677
1677
  this.gridMaterial.needsUpdate = !0;
1678
1678
  }
1679
1679
  }
1680
- const Ka = `#include <common>
1680
+ const qa = `#include <common>
1681
1681
  #include <batching_pars_vertex>
1682
1682
  #include <uv_pars_vertex>
1683
1683
  #include <color_pars_vertex>
@@ -1707,7 +1707,7 @@ void main() {
1707
1707
  #include <logdepthbuf_vertex>
1708
1708
  #include <clipping_planes_vertex>
1709
1709
  #include <worldpos_vertex>
1710
- }`, Xa = `
1710
+ }`, Ka = `
1711
1711
  #include <common>
1712
1712
  #include <uv_pars_fragment>
1713
1713
  #include <clipping_planes_pars_fragment>
@@ -1716,27 +1716,27 @@ void main() {
1716
1716
  #include <clipping_planes_fragment>
1717
1717
  gl_FragColor = vec4(vec3(vUv, 0.0), 1.0);
1718
1718
  }`;
1719
- class Za extends hn {
1719
+ class Xa extends hn {
1720
1720
  constructor() {
1721
1721
  super({
1722
1722
  defines: {
1723
1723
  USE_UV: ""
1724
1724
  },
1725
- vertexShader: Ka,
1726
- fragmentShader: Xa
1725
+ vertexShader: qa,
1726
+ fragmentShader: Ka
1727
1727
  });
1728
1728
  }
1729
1729
  }
1730
- function Wt(t) {
1731
- const [n, a] = se(t.open !== void 0 ? t.open : !0), e = !n || t.children === void 0;
1730
+ function Ht(t) {
1731
+ const [n, a] = ae(t.open !== void 0 ? t.open : !0), e = !n || t.children === void 0;
1732
1732
  return /* @__PURE__ */ l.jsxs("div", { className: `accordion ${e ? "hide" : ""}`, children: [
1733
1733
  /* @__PURE__ */ l.jsxs(
1734
1734
  "button",
1735
1735
  {
1736
1736
  className: "toggle",
1737
1737
  onClick: () => {
1738
- const s = !n;
1739
- t.onToggle !== void 0 && t.onToggle(s), a(s);
1738
+ const o = !n;
1739
+ t.onToggle !== void 0 && t.onToggle(o), a(o);
1740
1740
  },
1741
1741
  children: [
1742
1742
  /* @__PURE__ */ l.jsx(
@@ -1755,9 +1755,9 @@ function Wt(t) {
1755
1755
  ] });
1756
1756
  }
1757
1757
  function Fn(t) {
1758
- const [n, a] = se(!1), e = t.child.children.length > 0, s = [];
1759
- return t.child.children.length > 0 && t.child.children.map((o) => {
1760
- s.push(/* @__PURE__ */ l.jsx(Fn, { child: o, three: t.three }, Math.random()));
1758
+ const [n, a] = ae(!1), e = t.child.children.length > 0, o = [];
1759
+ return t.child.children.length > 0 && t.child.children.map((s) => {
1760
+ o.push(/* @__PURE__ */ l.jsx(Fn, { child: s, three: t.three }, Math.random()));
1761
1761
  }), /* @__PURE__ */ l.jsxs("div", { className: "childObject", children: [
1762
1762
  /* @__PURE__ */ l.jsxs("div", { className: "child", children: [
1763
1763
  e ? /* @__PURE__ */ l.jsx(
@@ -1785,25 +1785,25 @@ function Fn(t) {
1785
1785
  children: t.child.name.length > 0 ? `${t.child.name} (${t.child.type})` : `${t.child.type}::${t.child.uuid}`
1786
1786
  }
1787
1787
  ),
1788
- /* @__PURE__ */ l.jsx("div", { className: `icon ${ja(t.child)}` })
1788
+ /* @__PURE__ */ l.jsx("div", { className: `icon ${ka(t.child)}` })
1789
1789
  ] }),
1790
- /* @__PURE__ */ l.jsx("div", { className: n ? "open" : "", children: /* @__PURE__ */ l.jsx("div", { className: "container", children: s }) })
1790
+ /* @__PURE__ */ l.jsx("div", { className: n ? "open" : "", children: /* @__PURE__ */ l.jsx("div", { className: "container", children: o }) })
1791
1791
  ] }, Math.random());
1792
1792
  }
1793
- function Ja(t) {
1793
+ function Za(t) {
1794
1794
  const n = [];
1795
1795
  return t.child.children.map((a) => {
1796
1796
  n.push(/* @__PURE__ */ l.jsx(Fn, { child: a, three: t.three }, Math.random()));
1797
1797
  }), /* @__PURE__ */ l.jsx("div", { className: `scene ${t.class !== void 0 ? t.class : ""}`, children: n });
1798
1798
  }
1799
- const Qa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA5klEQVRoge2Y0Q6EIAwE6cX//+X6cCFpSMEKVTdk501OpRNKiyelFC0b8Ps6gCwoggZF0KAIGhRBgyJoUAQNiqCxjciR9SLV//eZiAyvK3U8i/QVaQO2YyLSFVvlkdTKDjJCukh2ykR5ZEW+kHmlatl90RaBtDkK/w7CYhuRUEO0ee3l+J3m55Vm+17vtwjTnV1V3QA8qfbeUXCzRWDpiLLS+OyzvRW7IzW9R+okvclsqR09743bo0yUpc1+lSJvNsa002+Euk9GKzV7SmZDRIMiaFAEDYqgQRE0KIIGRdCgCBoUQeMEMERadX7YUz8AAAAASUVORK5CYII=";
1800
- function ei(t) {
1799
+ const Ja = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA5klEQVRoge2Y0Q6EIAwE6cX//+X6cCFpSMEKVTdk501OpRNKiyelFC0b8Ps6gCwoggZF0KAIGhRBgyJoUAQNiqCxjciR9SLV//eZiAyvK3U8i/QVaQO2YyLSFVvlkdTKDjJCukh2ykR5ZEW+kHmlatl90RaBtDkK/w7CYhuRUEO0ee3l+J3m55Vm+17vtwjTnV1V3QA8qfbeUXCzRWDpiLLS+OyzvRW7IzW9R+okvclsqR09743bo0yUpc1+lSJvNsa002+Euk9GKzV7SmZDRIMiaFAEDYqgQRE0KIIGRdCgCBoUQeMEMERadX7YUz8AAAAASUVORK5CYII=";
1800
+ function Qa(t) {
1801
1801
  return "items" in t;
1802
1802
  }
1803
1803
  function Be(t) {
1804
1804
  const n = [];
1805
1805
  return t.items.forEach((a) => {
1806
- ei(a) ? n.push(
1806
+ Qa(a) ? n.push(
1807
1807
  /* @__PURE__ */ l.jsx(Be, { title: lt(a.title), items: a.items }, Math.random())
1808
1808
  ) : n.push(
1809
1809
  /* @__PURE__ */ l.jsx(
@@ -1818,19 +1818,19 @@ function Be(t) {
1818
1818
  step: a.step,
1819
1819
  disabled: a.disabled,
1820
1820
  options: a.options,
1821
- onChange: (e, s) => {
1822
- a.onChange !== void 0 && a.onChange(e, s);
1821
+ onChange: (e, o) => {
1822
+ a.onChange !== void 0 && a.onChange(e, o);
1823
1823
  }
1824
1824
  },
1825
1825
  Math.random()
1826
1826
  )
1827
1827
  );
1828
- }), /* @__PURE__ */ l.jsx(Wt, { label: t.title, open: t.expanded === !0, children: n });
1828
+ }), /* @__PURE__ */ l.jsx(Ht, { label: t.title, open: t.expanded === !0, children: n });
1829
1829
  }
1830
- function ti(t) {
1830
+ function ei(t) {
1831
1831
  return !(t === "alphaHash" || t === "alphaToCoverage" || t === "attenuationDistance" || t === "blendDstAlpha" || t === "colorWrite" || t === "combine" || t === "defaultAttributeValues" || t === "depthFunc" || t === "forceSinglePass" || t === "glslVersion" || t === "linecap" || t === "linejoin" || t === "linewidth" || t === "normalMapType" || t === "precision" || t === "premultipliedAlpha" || t === "shadowSide" || t === "toneMapped" || t === "uniformsGroups" || t === "uniformsNeedUpdate" || t === "userData" || t === "vertexColors" || t === "version" || t === "wireframeLinecap" || t === "wireframeLinejoin" || t === "wireframeLinewidth" || t.slice(0, 4) === "clip" || t.slice(0, 7) === "polygon" || t.slice(0, 7) === "stencil" || t.slice(0, 2) === "is");
1832
1832
  }
1833
- function De(t) {
1833
+ function Ie(t) {
1834
1834
  switch (t) {
1835
1835
  case "alphaMap":
1836
1836
  return "Alpha Map";
@@ -2003,25 +2003,25 @@ function De(t) {
2003
2003
  }
2004
2004
  return t;
2005
2005
  }
2006
- function ni(t) {
2006
+ function ti(t) {
2007
2007
  return t.toLowerCase().search("intensity") > -1 || t === "anisotropyRotation" || t === "blendAlpha" || t === "bumpScale" || t === "clearcoatRoughness" || t === "displacementBias" || t === "displacementScale" || t === "metalness" || t === "opacity" || t === "reflectivity" || t === "refractionRatio" || t === "roughness" || t === "sheenRoughness" || t === "thickness";
2008
2008
  }
2009
- function ai() {
2009
+ function ni() {
2010
2010
  const t = document.createElement("input");
2011
2011
  return t.type = "file", new Promise((n, a) => {
2012
2012
  t.addEventListener("change", function() {
2013
2013
  if (t.files === null)
2014
2014
  a();
2015
2015
  else {
2016
- const e = t.files[0], s = new FileReader();
2017
- s.onload = function(o) {
2018
- n(o.target.result);
2019
- }, s.readAsDataURL(e);
2016
+ const e = t.files[0], o = new FileReader();
2017
+ o.onload = function(s) {
2018
+ n(s.target.result);
2019
+ }, o.readAsDataURL(e);
2020
2020
  }
2021
2021
  }), t.click();
2022
2022
  });
2023
2023
  }
2024
- const ii = [
2024
+ const ai = [
2025
2025
  {
2026
2026
  title: "Front",
2027
2027
  value: Xn
@@ -2034,7 +2034,7 @@ const ii = [
2034
2034
  title: "Double",
2035
2035
  value: fn
2036
2036
  }
2037
- ], ri = [
2037
+ ], ii = [
2038
2038
  {
2039
2039
  title: "No Blending",
2040
2040
  value: Jn
@@ -2059,7 +2059,7 @@ const ii = [
2059
2059
  title: "Custom",
2060
2060
  value: aa
2061
2061
  }
2062
- ], si = [
2062
+ ], ri = [
2063
2063
  {
2064
2064
  title: "Add",
2065
2065
  value: ia
@@ -2070,11 +2070,11 @@ const ii = [
2070
2070
  },
2071
2071
  {
2072
2072
  title: "Reverse Subtract",
2073
- value: sa
2073
+ value: oa
2074
2074
  },
2075
2075
  {
2076
2076
  title: "Min",
2077
- value: oa
2077
+ value: sa
2078
2078
  },
2079
2079
  {
2080
2080
  title: "Max",
@@ -2119,7 +2119,7 @@ const ii = [
2119
2119
  },
2120
2120
  {
2121
2121
  title: "One Minus Dst Color",
2122
- valye: Sn
2122
+ valye: wn
2123
2123
  },
2124
2124
  {
2125
2125
  title: "Src Alpha Saturate",
@@ -2127,7 +2127,7 @@ const ii = [
2127
2127
  },
2128
2128
  {
2129
2129
  title: "Constant Color",
2130
- valye: wn
2130
+ valye: Sn
2131
2131
  },
2132
2132
  {
2133
2133
  title: "One Minus Constant Color",
@@ -2141,7 +2141,7 @@ const ii = [
2141
2141
  title: "One Minus Constant Alpha",
2142
2142
  valye: Tn
2143
2143
  }
2144
- ], ci = [
2144
+ ], si = [
2145
2145
  {
2146
2146
  title: "Zero",
2147
2147
  valye: pn
@@ -2180,11 +2180,11 @@ const ii = [
2180
2180
  },
2181
2181
  {
2182
2182
  title: "One Minus Dst Color",
2183
- valye: Sn
2183
+ valye: wn
2184
2184
  },
2185
2185
  {
2186
2186
  title: "Constant Color",
2187
- valye: wn
2187
+ valye: Sn
2188
2188
  },
2189
2189
  {
2190
2190
  title: "One Minus Constant Color",
@@ -2199,65 +2199,65 @@ const ii = [
2199
2199
  valye: Tn
2200
2200
  }
2201
2201
  ];
2202
- function st(t, n) {
2202
+ function ot(t, n) {
2203
2203
  t.needsUpdate = !0, t.type = "option", t.options = n;
2204
2204
  }
2205
2205
  function en(t, n, a) {
2206
2206
  const e = [];
2207
- for (const s in t) {
2208
- if (!ti(s))
2207
+ for (const o in t) {
2208
+ if (!ei(o))
2209
2209
  continue;
2210
- const o = typeof t[s], p = t[s];
2211
- if (o === "boolean" || o === "number" || o === "string") {
2210
+ const s = typeof t[o], p = t[o];
2211
+ if (s === "boolean" || s === "number" || s === "string") {
2212
2212
  const c = {
2213
- title: De(s),
2214
- prop: s,
2215
- type: o,
2213
+ title: Ie(o),
2214
+ prop: o,
2215
+ type: s,
2216
2216
  value: p,
2217
2217
  min: void 0,
2218
2218
  max: void 0,
2219
- needsUpdate: o === "boolean",
2219
+ needsUpdate: s === "boolean",
2220
2220
  onChange: (f, v) => {
2221
2221
  a.updateObject(n.uuid, `material.${f}`, v), c.needsUpdate && a.updateObject(n.uuid, "material.needsUpdate", !0);
2222
2222
  const b = a.scene?.getObjectByProperty("uuid", n.uuid);
2223
2223
  b !== void 0 && ee(b, `material.${f}`, v);
2224
2224
  }
2225
2225
  };
2226
- switch (s) {
2226
+ switch (o) {
2227
2227
  case "blending":
2228
- st(c, ri);
2228
+ ot(c, ii);
2229
2229
  break;
2230
2230
  case "blendDst":
2231
- st(c, ci);
2231
+ ot(c, si);
2232
2232
  break;
2233
2233
  case "blendEquation":
2234
- st(c, si);
2234
+ ot(c, ri);
2235
2235
  break;
2236
2236
  case "blendSrc":
2237
- st(c, oi);
2237
+ ot(c, oi);
2238
2238
  break;
2239
2239
  case "side":
2240
- st(c, ii);
2240
+ ot(c, ai);
2241
2241
  break;
2242
2242
  }
2243
- ni(s) && (c.value = Number(p), c.type = "range", c.min = 0, c.max = 1, c.step = 0.01);
2244
- const u = o === "string" && (s === "vertexShader" || s === "fragmentShader");
2243
+ ti(o) && (c.value = Number(p), c.type = "range", c.min = 0, c.max = 1, c.step = 0.01);
2244
+ const u = s === "string" && (o === "vertexShader" || o === "fragmentShader");
2245
2245
  u && (c.disabled = !1, c.latest = c.value, c.onChange = (f, v) => {
2246
2246
  c.latest = v;
2247
2247
  }), e.push(c), u && e.push({
2248
- title: `${lt(s)} - Update`,
2248
+ title: `${lt(o)} - Update`,
2249
2249
  type: "button",
2250
2250
  onChange: () => {
2251
- a.updateObject(n.uuid, `material.${s}`, c.latest), a.updateObject(n.uuid, "material.needsUpdate", !0);
2251
+ a.updateObject(n.uuid, `material.${o}`, c.latest), a.updateObject(n.uuid, "material.needsUpdate", !0);
2252
2252
  const f = a.scene?.getObjectByProperty("uuid", n.uuid);
2253
- f !== void 0 && (ee(f, `material.${s}`, c.latest), f.material.needsUpdate = !0);
2253
+ f !== void 0 && (ee(f, `material.${o}`, c.latest), f.material.needsUpdate = !0);
2254
2254
  }
2255
2255
  });
2256
- } else if (o === "object")
2256
+ } else if (s === "object")
2257
2257
  if (p.isColor)
2258
2258
  e.push({
2259
- title: De(s),
2260
- prop: s,
2259
+ title: Ie(o),
2260
+ prop: o,
2261
2261
  type: "color",
2262
2262
  value: p,
2263
2263
  onChange: (c, u) => {
@@ -2275,13 +2275,13 @@ function en(t, n, a) {
2275
2275
  type: `${typeof p[u]}`,
2276
2276
  value: p[u],
2277
2277
  onChange: (f, v) => {
2278
- a.updateObject(n.uuid, `material.${s}`, v);
2278
+ a.updateObject(n.uuid, `material.${o}`, v);
2279
2279
  const b = a.scene?.getObjectByProperty("uuid", n.uuid);
2280
- b !== void 0 && ee(b, `material.${s}`, v);
2280
+ b !== void 0 && ee(b, `material.${o}`, v);
2281
2281
  }
2282
2282
  });
2283
2283
  e.push({
2284
- title: De(s),
2284
+ title: Ie(o),
2285
2285
  items: c
2286
2286
  });
2287
2287
  } else {
@@ -2293,53 +2293,53 @@ function en(t, n, a) {
2293
2293
  case "number":
2294
2294
  case "string":
2295
2295
  u === "src" ? e.push({
2296
- title: De(s),
2296
+ title: Ie(o),
2297
2297
  type: "image",
2298
2298
  value: f,
2299
2299
  onChange: (b, E) => {
2300
- a.createTexture(n.uuid, `material.${s}`, E);
2300
+ a.createTexture(n.uuid, `material.${o}`, E);
2301
2301
  const x = a.scene?.getObjectByProperty("uuid", n.uuid);
2302
2302
  x !== void 0 && Gt(E).then((M) => {
2303
- ee(x, `material.${s}`, M), ee(x, "material.needsUpdate", !0);
2303
+ ee(x, `material.${o}`, M), ee(x, "material.needsUpdate", !0);
2304
2304
  });
2305
2305
  }
2306
2306
  }) : c.push({
2307
- title: `${De(u)}`,
2308
- prop: `material.${s}.${u}`,
2309
- type: `${typeof t[s][u]}`,
2307
+ title: `${Ie(u)}`,
2308
+ prop: `material.${o}.${u}`,
2309
+ type: `${typeof t[o][u]}`,
2310
2310
  value: p[u],
2311
2311
  onChange: (b, E) => {
2312
- a.updateObject(n.uuid, `material.${s}.${u}`, E);
2312
+ a.updateObject(n.uuid, `material.${o}.${u}`, E);
2313
2313
  const x = a.scene?.getObjectByProperty("uuid", n.uuid);
2314
- x !== void 0 && ee(x, `material.${s}.${u}`, E);
2314
+ x !== void 0 && ee(x, `material.${o}.${u}`, E);
2315
2315
  }
2316
2316
  });
2317
2317
  break;
2318
2318
  case "object":
2319
2319
  if (f.value !== void 0 && f.value.src !== void 0)
2320
2320
  c.push({
2321
- title: De(u),
2321
+ title: Ie(u),
2322
2322
  type: "image",
2323
2323
  value: f.value.src,
2324
2324
  onChange: (b, E) => {
2325
- a.createTexture(n.uuid, `material.${s}.${u}.value`, p);
2325
+ a.createTexture(n.uuid, `material.${o}.${u}.value`, p);
2326
2326
  const x = a.scene?.getObjectByProperty("uuid", n.uuid);
2327
2327
  x !== void 0 && Gt(E).then((M) => {
2328
- ee(x, `material.${s}.${u}.value`, M);
2328
+ ee(x, `material.${o}.${u}.value`, M);
2329
2329
  });
2330
2330
  }
2331
2331
  });
2332
- else if (s === "uniforms") {
2332
+ else if (o === "uniforms") {
2333
2333
  const b = f.value, E = (x, M, P) => ({
2334
2334
  title: x,
2335
2335
  type: "number",
2336
2336
  value: P,
2337
2337
  step: 0.01,
2338
- onChange: (W, B) => {
2339
- const S = `material.uniforms.${u}.value.${M}`;
2340
- a.updateObject(n.uuid, S, B);
2338
+ onChange: (H, B) => {
2339
+ const w = `material.uniforms.${u}.value.${M}`;
2340
+ a.updateObject(n.uuid, w, B);
2341
2341
  const z = a.scene?.getObjectByProperty("uuid", n.uuid);
2342
- z !== void 0 && ee(z, S, B);
2342
+ z !== void 0 && ee(z, w, B);
2343
2343
  }
2344
2344
  });
2345
2345
  if (typeof f.value == "number")
@@ -2348,10 +2348,10 @@ function en(t, n, a) {
2348
2348
  type: "number",
2349
2349
  value: f.value,
2350
2350
  onChange: (x, M) => {
2351
- const P = `material.${s}.${x}.value`;
2351
+ const P = `material.${o}.${x}.value`;
2352
2352
  a.updateObject(n.uuid, P, M);
2353
- const W = a.scene?.getObjectByProperty("uuid", n.uuid);
2354
- W !== void 0 && ee(W, P, M);
2353
+ const H = a.scene?.getObjectByProperty("uuid", n.uuid);
2354
+ H !== void 0 && ee(H, P, M);
2355
2355
  }
2356
2356
  });
2357
2357
  else if (b.r !== void 0 && b.g !== void 0 && b.b !== void 0)
@@ -2360,10 +2360,10 @@ function en(t, n, a) {
2360
2360
  type: "color",
2361
2361
  value: f.value,
2362
2362
  onChange: (x, M) => {
2363
- const P = new Tt(M), W = `material.${s}.${x}.value`;
2364
- a.updateObject(n.uuid, W, P);
2363
+ const P = new Tt(M), H = `material.${o}.${x}.value`;
2364
+ a.updateObject(n.uuid, H, P);
2365
2365
  const B = a.scene?.getObjectByProperty("uuid", n.uuid);
2366
- B !== void 0 && ee(B, W, P);
2366
+ B !== void 0 && ee(B, H, P);
2367
2367
  }
2368
2368
  });
2369
2369
  else if (b.x !== void 0 && b.y !== void 0 && b.z === void 0 && b.w === void 0)
@@ -2417,23 +2417,23 @@ function en(t, n, a) {
2417
2417
  type: `${typeof f.value}`,
2418
2418
  value: f.value,
2419
2419
  onChange: (b, E) => {
2420
- a.updateObject(n.uuid, `material.${s}.${u}.value`, E);
2420
+ a.updateObject(n.uuid, `material.${o}.${u}.value`, E);
2421
2421
  const x = a.scene?.getObjectByProperty("uuid", n.uuid);
2422
- x !== void 0 && ee(x, `material.${s}.${u}.value`, E);
2422
+ x !== void 0 && ee(x, `material.${o}.${u}.value`, E);
2423
2423
  }
2424
2424
  });
2425
2425
  break;
2426
2426
  }
2427
2427
  }
2428
2428
  c.length > 0 && e.push({
2429
- title: De(s),
2429
+ title: Ie(o),
2430
2430
  items: c
2431
2431
  });
2432
2432
  }
2433
2433
  else
2434
- p !== void 0 && console.log("other:", s, o, p);
2434
+ p !== void 0 && console.log("other:", o, s, p);
2435
2435
  }
2436
- return e.sort((s, o) => s.title < o.title ? -1 : s.title > o.title ? 1 : 0), e.push({
2436
+ return e.sort((o, s) => o.title < s.title ? -1 : o.title > s.title ? 1 : 0), e.push({
2437
2437
  title: "Update Material",
2438
2438
  type: "button",
2439
2439
  onChange: () => {
@@ -2441,19 +2441,19 @@ function en(t, n, a) {
2441
2441
  }
2442
2442
  }), e;
2443
2443
  }
2444
- function li(t, n) {
2444
+ function ci(t, n) {
2445
2445
  const a = t.material;
2446
2446
  if (Array.isArray(a)) {
2447
- const e = [], s = a.length;
2448
- for (let o = 0; o < s; o++)
2447
+ const e = [], o = a.length;
2448
+ for (let s = 0; s < o; s++)
2449
2449
  e.push(
2450
2450
  /* @__PURE__ */ l.jsx(
2451
2451
  Be,
2452
2452
  {
2453
- title: `Material ${o}`,
2454
- items: en(a[o], t, n)
2453
+ title: `Material ${s}`,
2454
+ items: en(a[s], t, n)
2455
2455
  },
2456
- `Material ${o}`
2456
+ `Material ${s}`
2457
2457
  )
2458
2458
  );
2459
2459
  return /* @__PURE__ */ l.jsx(l.Fragment, { children: e });
@@ -2468,9 +2468,9 @@ function li(t, n) {
2468
2468
  }
2469
2469
  function ct(t) {
2470
2470
  let n = t.value;
2471
- n !== void 0 && n.isColor !== void 0 && (n = Aa(t.value));
2472
- const [a, e] = se(n), s = Ee(null), o = Ee(null), p = Ee(null);
2473
- Fe(() => {
2471
+ n !== void 0 && n.isColor !== void 0 && (n = _a(t.value));
2472
+ const [a, e] = ae(n), o = Ee(null), s = Ee(null), p = Ee(null);
2473
+ Oe(() => {
2474
2474
  let v = !1, b = -1, E = 0, x = Number(a);
2475
2475
  const M = (z) => {
2476
2476
  v = !0, E = x, b = z.clientX;
@@ -2478,14 +2478,14 @@ function ct(t) {
2478
2478
  if (!v)
2479
2479
  return;
2480
2480
  const Ce = t.step !== void 0 ? t.step : 1, le = (z.clientX - b) * Ce;
2481
- x = Number((E + le).toFixed(4)), o.current !== null && (o.current.value = x.toString()), t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, x);
2482
- }, W = () => {
2481
+ x = Number((E + le).toFixed(4)), s.current !== null && (s.current.value = x.toString()), t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, x);
2482
+ }, H = () => {
2483
2483
  v = !1;
2484
2484
  }, B = () => {
2485
2485
  v = !1;
2486
- }, S = t.type === "number";
2487
- return S && (s.current?.addEventListener("mousedown", M, !1), document.addEventListener("mouseup", W, !1), document.addEventListener("mousemove", P, !1), document.addEventListener("contextmenu", B, !1)), () => {
2488
- S && (s.current?.removeEventListener("mousedown", M), document.removeEventListener("mouseup", W), document.removeEventListener("mousemove", P), document.removeEventListener("contextmenu", B));
2486
+ }, w = t.type === "number";
2487
+ return w && (o.current?.addEventListener("mousedown", M, !1), document.addEventListener("mouseup", H, !1), document.addEventListener("mousemove", P, !1), document.addEventListener("contextmenu", B, !1)), () => {
2488
+ w && (o.current?.removeEventListener("mousedown", M), document.removeEventListener("mouseup", H), document.removeEventListener("mousemove", P), document.removeEventListener("contextmenu", B));
2489
2489
  };
2490
2490
  }, [a]);
2491
2491
  const c = t.type === "string" && (a.length > 100 || a.search(`
@@ -2494,7 +2494,7 @@ function ct(t) {
2494
2494
  t.type === "boolean" ? b = v.target.checked : t.type === "option" && (b = t.options[b].value), e(b), t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, b);
2495
2495
  };
2496
2496
  return /* @__PURE__ */ l.jsxs("div", { className: `field ${u ? "block" : ""}`, children: [
2497
- t.type !== "button" && /* @__PURE__ */ l.jsx("label", { ref: s, children: lt(t.title) }, "fieldLabel"),
2497
+ t.type !== "button" && /* @__PURE__ */ l.jsx("label", { ref: o, children: lt(t.title) }, "fieldLabel"),
2498
2498
  t.type === "string" && !c && /* @__PURE__ */ l.jsx(
2499
2499
  "input",
2500
2500
  {
@@ -2526,7 +2526,7 @@ function ct(t) {
2526
2526
  t.type === "number" && /* @__PURE__ */ l.jsx(
2527
2527
  "input",
2528
2528
  {
2529
- ref: o,
2529
+ ref: s,
2530
2530
  type: "number",
2531
2531
  value: a,
2532
2532
  min: t.min,
@@ -2566,10 +2566,10 @@ function ct(t) {
2566
2566
  }
2567
2567
  ),
2568
2568
  t.type === "image" && /* @__PURE__ */ l.jsx("img", { ref: p, onClick: () => {
2569
- ai().then((v) => {
2569
+ ni().then((v) => {
2570
2570
  p.current.src = v, t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, v);
2571
2571
  });
2572
- }, src: a.length > 0 ? a : Qa }),
2572
+ }, src: a.length > 0 ? a : Ja }),
2573
2573
  t.type === "option" && /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx("select", { onChange: f, disabled: t.disabled, defaultValue: t.value, children: t.options?.map((v, b) => /* @__PURE__ */ l.jsx("option", { value: v.value, children: lt(v.title) }, b)) }) })
2574
2574
  ] });
2575
2575
  }
@@ -2602,7 +2602,7 @@ function tn(t) {
2602
2602
  }
2603
2603
  return t;
2604
2604
  }
2605
- function ui(t, n) {
2605
+ function li(t, n) {
2606
2606
  const a = [];
2607
2607
  if (t.perspectiveCameraInfo !== void 0)
2608
2608
  for (const e in t.perspectiveCameraInfo)
@@ -2612,10 +2612,10 @@ function ui(t, n) {
2612
2612
  type: "number",
2613
2613
  step: 0.01,
2614
2614
  value: t.perspectiveCameraInfo[e],
2615
- onChange: (s, o) => {
2616
- n.updateObject(t.uuid, s, o), n.requestMethod(t.uuid, "updateProjectionMatrix");
2615
+ onChange: (o, s) => {
2616
+ n.updateObject(t.uuid, o, s), n.requestMethod(t.uuid, "updateProjectionMatrix");
2617
2617
  const p = n.scene?.getObjectByProperty("uuid", t.uuid);
2618
- p !== void 0 && (ee(p, s, o), p.updateProjectionMatrix());
2618
+ p !== void 0 && (ee(p, o, s), p.updateProjectionMatrix());
2619
2619
  }
2620
2620
  });
2621
2621
  else if (t.orthographicCameraInfo !== void 0)
@@ -2626,10 +2626,10 @@ function ui(t, n) {
2626
2626
  type: "number",
2627
2627
  step: 0.01,
2628
2628
  value: t.perspectiveCameraInfo[e],
2629
- onChange: (s, o) => {
2630
- n.updateObject(t.uuid, s, o), n.requestMethod(t.uuid, "updateProjectionMatrix");
2629
+ onChange: (o, s) => {
2630
+ n.updateObject(t.uuid, o, s), n.requestMethod(t.uuid, "updateProjectionMatrix");
2631
2631
  const p = n.scene?.getObjectByProperty("uuid", t.uuid);
2632
- p !== void 0 && (ee(p, s, o), p.updateProjectionMatrix());
2632
+ p !== void 0 && (ee(p, o, s), p.updateProjectionMatrix());
2633
2633
  }
2634
2634
  });
2635
2635
  return /* @__PURE__ */ l.jsx(
@@ -2640,27 +2640,27 @@ function ui(t, n) {
2640
2640
  }
2641
2641
  );
2642
2642
  }
2643
- const di = Math.PI / 180, hi = 180 / Math.PI;
2644
- function qe(t, n, a, e, s) {
2645
- return e + (t - n) * (s - e) / (a - n);
2643
+ const ui = Math.PI / 180, di = 180 / Math.PI;
2644
+ function qe(t, n, a, e, o) {
2645
+ return e + (t - n) * (o - e) / (a - n);
2646
2646
  }
2647
- function fi(t) {
2648
- return t * di;
2647
+ function hi(t) {
2648
+ return t * ui;
2649
2649
  }
2650
2650
  function Ut(t) {
2651
- return t * hi;
2651
+ return t * di;
2652
2652
  }
2653
- function pi(t, n) {
2653
+ function fi(t, n) {
2654
2654
  const a = new ua();
2655
2655
  a.elements = t.matrix;
2656
- const e = new X(), s = new da(), o = new X();
2657
- t.uuid.length > 0 && (e.setFromMatrixPosition(a), s.setFromRotationMatrix(a), o.setFromMatrixScale(a));
2656
+ const e = new X(), o = new da(), s = new X();
2657
+ t.uuid.length > 0 && (e.setFromMatrixPosition(a), o.setFromRotationMatrix(a), s.setFromMatrixScale(a));
2658
2658
  const p = (u, f) => {
2659
2659
  n.updateObject(t.uuid, u, f);
2660
2660
  const v = n.scene?.getObjectByProperty("uuid", t.uuid);
2661
2661
  v !== void 0 && ee(v, u, f);
2662
2662
  }, c = (u, f) => {
2663
- p(u, fi(f));
2663
+ p(u, hi(f));
2664
2664
  };
2665
2665
  return /* @__PURE__ */ l.jsx(
2666
2666
  Be,
@@ -2692,7 +2692,7 @@ function pi(t, n) {
2692
2692
  title: "Rotation X",
2693
2693
  prop: "rotation.x",
2694
2694
  type: "number",
2695
- value: Ft(Ut(s.x)),
2695
+ value: Ft(Ut(o.x)),
2696
2696
  min: -360,
2697
2697
  max: 360,
2698
2698
  step: 0.1,
@@ -2702,7 +2702,7 @@ function pi(t, n) {
2702
2702
  title: "Rotation Y",
2703
2703
  prop: "rotation.y",
2704
2704
  type: "number",
2705
- value: Ft(Ut(s.y)),
2705
+ value: Ft(Ut(o.y)),
2706
2706
  min: -360,
2707
2707
  max: 360,
2708
2708
  step: 0.1,
@@ -2712,7 +2712,7 @@ function pi(t, n) {
2712
2712
  title: "Rotation Z",
2713
2713
  prop: "rotation.z",
2714
2714
  type: "number",
2715
- value: Ft(Ut(s.z)),
2715
+ value: Ft(Ut(o.z)),
2716
2716
  min: -360,
2717
2717
  max: 360,
2718
2718
  step: 0.1,
@@ -2722,7 +2722,7 @@ function pi(t, n) {
2722
2722
  title: "Scale X",
2723
2723
  prop: "scale.x",
2724
2724
  type: "number",
2725
- value: o.x,
2725
+ value: s.x,
2726
2726
  step: 0.01,
2727
2727
  onChange: p
2728
2728
  },
@@ -2730,7 +2730,7 @@ function pi(t, n) {
2730
2730
  title: "Scale Y",
2731
2731
  prop: "scale.y",
2732
2732
  type: "number",
2733
- value: o.y,
2733
+ value: s.y,
2734
2734
  step: 0.01,
2735
2735
  onChange: p
2736
2736
  },
@@ -2738,7 +2738,7 @@ function pi(t, n) {
2738
2738
  title: "Scale Z",
2739
2739
  prop: "scale.z",
2740
2740
  type: "number",
2741
- value: o.z,
2741
+ value: s.z,
2742
2742
  step: 0.01,
2743
2743
  onChange: p
2744
2744
  }
@@ -2765,32 +2765,32 @@ function nn(t) {
2765
2765
  }
2766
2766
  return t;
2767
2767
  }
2768
- function mi(t, n) {
2768
+ function pi(t, n) {
2769
2769
  const a = [];
2770
2770
  if (t.lightInfo !== void 0)
2771
2771
  for (const e in t.lightInfo) {
2772
- const s = t.lightInfo[e];
2773
- s !== void 0 && (s.isColor !== void 0 ? a.push({
2772
+ const o = t.lightInfo[e];
2773
+ o !== void 0 && (o.isColor !== void 0 ? a.push({
2774
2774
  title: nn(e),
2775
2775
  prop: e,
2776
2776
  type: "color",
2777
- value: s,
2778
- onChange: (o, p) => {
2777
+ value: o,
2778
+ onChange: (s, p) => {
2779
2779
  const c = new Tt(p);
2780
- n.updateObject(t.uuid, o, c);
2780
+ n.updateObject(t.uuid, s, c);
2781
2781
  const u = n.scene?.getObjectByProperty("uuid", t.uuid);
2782
- u !== void 0 && ee(u, o, c);
2782
+ u !== void 0 && ee(u, s, c);
2783
2783
  }
2784
2784
  }) : a.push({
2785
2785
  title: nn(e),
2786
2786
  prop: e,
2787
- type: typeof s,
2788
- value: s,
2789
- step: typeof s == "number" ? 0.01 : void 0,
2790
- onChange: (o, p) => {
2791
- n.updateObject(t.uuid, o, p);
2787
+ type: typeof o,
2788
+ value: o,
2789
+ step: typeof o == "number" ? 0.01 : void 0,
2790
+ onChange: (s, p) => {
2791
+ n.updateObject(t.uuid, s, p);
2792
2792
  const c = n.scene?.getObjectByProperty("uuid", t.uuid);
2793
- c !== void 0 && ee(c, o, p);
2793
+ c !== void 0 && ee(c, s, p);
2794
2794
  }
2795
2795
  }));
2796
2796
  }
@@ -2802,11 +2802,11 @@ function mi(t, n) {
2802
2802
  }
2803
2803
  );
2804
2804
  }
2805
- function vi(t, n) {
2805
+ function mi(t, n) {
2806
2806
  const a = [], e = [];
2807
- let s = 0;
2807
+ let o = 0;
2808
2808
  t.animations.forEach((c) => {
2809
- s = Math.max(s, c.duration), c.duration > 0 && e.push({
2809
+ o = Math.max(o, c.duration), c.duration > 0 && e.push({
2810
2810
  title: c.name,
2811
2811
  items: [
2812
2812
  {
@@ -2836,10 +2836,10 @@ function vi(t, n) {
2836
2836
  title: "Animations",
2837
2837
  items: e
2838
2838
  });
2839
- const o = n.scene?.getObjectByProperty("uuid", t.uuid);
2839
+ const s = n.scene?.getObjectByProperty("uuid", t.uuid);
2840
2840
  let p = !1;
2841
- if (o !== void 0) {
2842
- const c = o.mixer;
2841
+ if (s !== void 0) {
2842
+ const c = s.mixer;
2843
2843
  if (p = c !== void 0, p) {
2844
2844
  const u = [
2845
2845
  {
@@ -2881,9 +2881,9 @@ const Bn = {
2881
2881
  lightInfo: void 0
2882
2882
  };
2883
2883
  let te = { ...Bn };
2884
- function gi(t) {
2885
- const [n, a] = se(-1);
2886
- Fe(() => {
2884
+ function vi(t) {
2885
+ const [n, a] = ae(-1);
2886
+ Oe(() => {
2887
2887
  function p(u) {
2888
2888
  te = { ...u.value }, a(Date.now());
2889
2889
  }
@@ -2894,8 +2894,8 @@ function gi(t) {
2894
2894
  k.removeEventListener(j.SET_SCENE, c), k.removeEventListener(j.SET_OBJECT, p);
2895
2895
  };
2896
2896
  }, []);
2897
- const e = te.type.toLowerCase(), s = te.animations.length > 0 || te.mixer !== void 0, o = e.search("mesh") > -1 || e.search("line") > -1 || e.search("points") > -1;
2898
- return /* @__PURE__ */ l.jsx(Wt, { label: "Inspector", children: /* @__PURE__ */ l.jsx("div", { id: "Inspector", className: t.class, children: te.uuid.length > 0 && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2897
+ const e = te.type.toLowerCase(), o = te.animations.length > 0 || te.mixer !== void 0, s = e.search("mesh") > -1 || e.search("line") > -1 || e.search("points") > -1;
2898
+ return /* @__PURE__ */ l.jsx(Ht, { label: "Inspector", children: /* @__PURE__ */ l.jsx("div", { id: "Inspector", className: t.class, children: te.uuid.length > 0 && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2899
2899
  /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2900
2900
  /* @__PURE__ */ l.jsx(
2901
2901
  ct,
@@ -2943,43 +2943,31 @@ function gi(t) {
2943
2943
  )
2944
2944
  ] }),
2945
2945
  /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2946
- pi(te, t.three),
2947
- s ? vi(te, t.three) : null,
2948
- e.search("camera") > -1 ? ui(te, t.three) : null,
2949
- e.search("light") > -1 ? mi(te, t.three) : null,
2950
- o ? li(te, t.three) : null
2946
+ fi(te, t.three),
2947
+ o ? mi(te, t.three) : null,
2948
+ e.search("camera") > -1 ? li(te, t.three) : null,
2949
+ e.search("light") > -1 ? pi(te, t.three) : null,
2950
+ s ? ci(te, t.three) : null
2951
2951
  ] })
2952
2952
  ] }) }, n) }, "Inspector");
2953
2953
  }
2954
- class Bi extends Ma {
2955
- three;
2956
- constructor(n) {
2957
- super(n), this.state = {
2958
- scene: n.scene !== void 0 ? n.scene : null
2959
- }, this.three = n.three, k.addEventListener(j.SET_SCENE, this.setScene);
2960
- }
2961
- componentWillUnmount() {
2962
- k.removeEventListener(j.SET_SCENE, this.setScene);
2963
- }
2964
- render() {
2965
- const n = this.componentState.scene !== null, a = "Hierarchy - " + (n ? `${this.componentState.scene?.name}` : "No Scene");
2966
- return /* @__PURE__ */ l.jsx("div", { id: "SidePanel", children: /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2967
- /* @__PURE__ */ l.jsx(Wt, { label: a, open: !0, children: /* @__PURE__ */ l.jsx(l.Fragment, { children: n && /* @__PURE__ */ l.jsx(Ja, { child: this.componentState.scene, three: this.three }) }) }),
2968
- /* @__PURE__ */ l.jsx(gi, { three: this.three })
2969
- ] }) }, "SidePanel");
2970
- }
2971
- // Private
2972
- setScene = (n) => {
2973
- this.setState(() => ({
2974
- scene: n.value
2975
- }));
2976
- };
2977
- // Getters / Setters
2978
- get componentState() {
2979
- return this.state;
2980
- }
2954
+ function Fi(t) {
2955
+ const [n, a] = ae(t.scene);
2956
+ Oe(() => {
2957
+ const s = (p) => {
2958
+ a(p.value);
2959
+ };
2960
+ return k.addEventListener(j.SET_SCENE, s), () => {
2961
+ k.removeEventListener(j.SET_SCENE, s);
2962
+ };
2963
+ }, []);
2964
+ const e = n !== null, o = "Hierarchy - " + (e ? `${n?.name}` : "No Scene");
2965
+ return /* @__PURE__ */ l.jsxs("div", { id: "SidePanel", children: [
2966
+ /* @__PURE__ */ l.jsx(Ht, { label: o, open: !0, children: /* @__PURE__ */ l.jsx(l.Fragment, { children: e && /* @__PURE__ */ l.jsx(Za, { child: n, three: t.three }) }) }),
2967
+ /* @__PURE__ */ l.jsx(vi, { three: t.three })
2968
+ ] }, "SidePanel");
2981
2969
  }
2982
- function Ui(t) {
2970
+ function Bi(t) {
2983
2971
  function n() {
2984
2972
  return t.three.scene === void 0 ? (console.log("No scene:", t.three), !1) : !0;
2985
2973
  }
@@ -2993,12 +2981,12 @@ function Ui(t) {
2993
2981
  return;
2994
2982
  const v = t.three.scene?.getObjectByProperty("uuid", c);
2995
2983
  v !== void 0 && ee(v, u, f);
2996
- }, s = (c) => {
2984
+ }, o = (c) => {
2997
2985
  if (!n())
2998
2986
  return;
2999
2987
  const u = c.value, { key: f, value: v, uuid: b } = u;
3000
2988
  e(b, f, v);
3001
- }, o = (c) => {
2989
+ }, s = (c) => {
3002
2990
  if (!n())
3003
2991
  return;
3004
2992
  const u = c.value;
@@ -3011,19 +2999,19 @@ function Ui(t) {
3011
2999
  const { key: u, uuid: f, value: v, subitem: b } = c.value, E = t.three.scene?.getObjectByProperty("uuid", f);
3012
3000
  if (E !== void 0)
3013
3001
  try {
3014
- b !== void 0 ? La(E, b)[u](v) : E[u](v);
3002
+ b !== void 0 ? Ia(E, b)[u](v) : E[u](v);
3015
3003
  } catch (x) {
3016
3004
  console.log("Error requesting method:"), console.log(x), console.log(u), console.log(v);
3017
3005
  }
3018
3006
  };
3019
- return Fe(() => (k.addEventListener(j.GET_OBJECT, a), k.addEventListener(j.UPDATE_OBJECT, s), k.addEventListener(j.CREATE_TEXTURE, o), k.addEventListener(j.REQUEST_METHOD, p), () => {
3020
- k.removeEventListener(j.GET_OBJECT, a), k.removeEventListener(j.UPDATE_OBJECT, s), k.removeEventListener(j.CREATE_TEXTURE, o), k.removeEventListener(j.REQUEST_METHOD, p);
3007
+ return Oe(() => (k.addEventListener(j.GET_OBJECT, a), k.addEventListener(j.UPDATE_OBJECT, o), k.addEventListener(j.CREATE_TEXTURE, s), k.addEventListener(j.REQUEST_METHOD, p), () => {
3008
+ k.removeEventListener(j.GET_OBJECT, a), k.removeEventListener(j.UPDATE_OBJECT, o), k.removeEventListener(j.CREATE_TEXTURE, s), k.removeEventListener(j.REQUEST_METHOD, p);
3021
3009
  }), []), null;
3022
3010
  }
3023
- const an = { type: "change" }, $t = { type: "start" }, rn = { type: "end" }, St = new ha(), sn = new fa(), bi = Math.cos(70 * pa.DEG2RAD);
3024
- class yi extends un {
3011
+ const an = { type: "change" }, $t = { type: "start" }, rn = { type: "end" }, wt = new ha(), on = new fa(), gi = Math.cos(70 * pa.DEG2RAD);
3012
+ class bi extends un {
3025
3013
  constructor(n, a) {
3026
- super(), this.object = n, this.domElement = a, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new X(), this.cursor = new X(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Ve.ROTATE, MIDDLE: Ve.DOLLY, RIGHT: Ve.PAN }, this.touches = { ONE: We.ROTATE, TWO: We.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
3014
+ super(), this.object = n, this.domElement = a, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new X(), this.cursor = new X(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Ve.ROTATE, MIDDLE: Ve.DOLLY, RIGHT: Ve.PAN }, this.touches = { ONE: He.ROTATE, TWO: He.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
3027
3015
  return c.phi;
3028
3016
  }, this.getAzimuthalAngle = function() {
3029
3017
  return c.theta;
@@ -3036,38 +3024,38 @@ class yi extends un {
3036
3024
  }, this.saveState = function() {
3037
3025
  e.target0.copy(e.target), e.position0.copy(e.object.position), e.zoom0 = e.object.zoom;
3038
3026
  }, this.reset = function() {
3039
- e.target.copy(e.target0), e.object.position.copy(e.position0), e.object.zoom = e.zoom0, e.object.updateProjectionMatrix(), e.dispatchEvent(an), e.update(), o = s.NONE;
3027
+ e.target.copy(e.target0), e.object.position.copy(e.position0), e.object.zoom = e.zoom0, e.object.updateProjectionMatrix(), e.dispatchEvent(an), e.update(), s = o.NONE;
3040
3028
  }, this.update = function() {
3041
- const r = new X(), y = new Xt().setFromUnitVectors(n.up, new X(0, 1, 0)), O = y.clone().invert(), L = new X(), K = new Xt(), de = new X(), ae = 2 * Math.PI;
3029
+ const r = new X(), y = new Xt().setFromUnitVectors(n.up, new X(0, 1, 0)), O = y.clone().invert(), L = new X(), K = new Xt(), de = new X(), ie = 2 * Math.PI;
3042
3030
  return function(Nt = null) {
3043
3031
  const nt = e.object.position;
3044
- r.copy(nt).sub(e.target), r.applyQuaternion(y), c.setFromVector3(r), e.autoRotate && o === s.NONE && U(_(Nt)), e.enableDamping ? (c.theta += u.theta * e.dampingFactor, c.phi += u.phi * e.dampingFactor) : (c.theta += u.theta, c.phi += u.phi);
3032
+ r.copy(nt).sub(e.target), r.applyQuaternion(y), c.setFromVector3(r), e.autoRotate && s === o.NONE && U(_(Nt)), e.enableDamping ? (c.theta += u.theta * e.dampingFactor, c.phi += u.phi * e.dampingFactor) : (c.theta += u.theta, c.phi += u.phi);
3045
3033
  let pe = e.minAzimuthAngle, he = e.maxAzimuthAngle;
3046
- isFinite(pe) && isFinite(he) && (pe < -Math.PI ? pe += ae : pe > Math.PI && (pe -= ae), he < -Math.PI ? he += ae : he > Math.PI && (he -= ae), pe <= he ? c.theta = Math.max(pe, Math.min(he, c.theta)) : c.theta = c.theta > (pe + he) / 2 ? Math.max(pe, c.theta) : Math.min(he, c.theta)), c.phi = Math.max(e.minPolarAngle, Math.min(e.maxPolarAngle, c.phi)), c.makeSafe(), e.enableDamping === !0 ? e.target.addScaledVector(v, e.dampingFactor) : e.target.add(v), e.target.sub(e.cursor), e.target.clampLength(e.minTargetRadius, e.maxTargetRadius), e.target.add(e.cursor), e.zoomToCursor && oe || e.object.isOrthographicCamera ? c.radius = me(c.radius) : c.radius = me(c.radius * f), r.setFromSpherical(c), r.applyQuaternion(O), nt.copy(e.target).add(r), e.object.lookAt(e.target), e.enableDamping === !0 ? (u.theta *= 1 - e.dampingFactor, u.phi *= 1 - e.dampingFactor, v.multiplyScalar(1 - e.dampingFactor)) : (u.set(0, 0, 0), v.set(0, 0, 0));
3047
- let Ae = !1;
3048
- if (e.zoomToCursor && oe) {
3049
- let Pe = null;
3034
+ isFinite(pe) && isFinite(he) && (pe < -Math.PI ? pe += ie : pe > Math.PI && (pe -= ie), he < -Math.PI ? he += ie : he > Math.PI && (he -= ie), pe <= he ? c.theta = Math.max(pe, Math.min(he, c.theta)) : c.theta = c.theta > (pe + he) / 2 ? Math.max(pe, c.theta) : Math.min(he, c.theta)), c.phi = Math.max(e.minPolarAngle, Math.min(e.maxPolarAngle, c.phi)), c.makeSafe(), e.enableDamping === !0 ? e.target.addScaledVector(v, e.dampingFactor) : e.target.add(v), e.target.sub(e.cursor), e.target.clampLength(e.minTargetRadius, e.maxTargetRadius), e.target.add(e.cursor), e.zoomToCursor && se || e.object.isOrthographicCamera ? c.radius = me(c.radius) : c.radius = me(c.radius * f), r.setFromSpherical(c), r.applyQuaternion(O), nt.copy(e.target).add(r), e.object.lookAt(e.target), e.enableDamping === !0 ? (u.theta *= 1 - e.dampingFactor, u.phi *= 1 - e.dampingFactor, v.multiplyScalar(1 - e.dampingFactor)) : (u.set(0, 0, 0), v.set(0, 0, 0));
3035
+ let Pe = !1;
3036
+ if (e.zoomToCursor && se) {
3037
+ let ke = null;
3050
3038
  if (e.object.isPerspectiveCamera) {
3051
- const ke = r.length();
3052
- Pe = me(ke * f);
3053
- const je = ke - Pe;
3054
- e.object.position.addScaledVector(Ce, je), e.object.updateMatrixWorld();
3039
+ const je = r.length();
3040
+ ke = me(je * f);
3041
+ const De = je - ke;
3042
+ e.object.position.addScaledVector(Ce, De), e.object.updateMatrixWorld();
3055
3043
  } else if (e.object.isOrthographicCamera) {
3056
- const ke = new X(le.x, le.y, 0);
3057
- ke.unproject(e.object), e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / f)), e.object.updateProjectionMatrix(), Ae = !0;
3058
3044
  const je = new X(le.x, le.y, 0);
3059
- je.unproject(e.object), e.object.position.sub(je).add(ke), e.object.updateMatrixWorld(), Pe = r.length();
3045
+ je.unproject(e.object), e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / f)), e.object.updateProjectionMatrix(), Pe = !0;
3046
+ const De = new X(le.x, le.y, 0);
3047
+ De.unproject(e.object), e.object.position.sub(De).add(je), e.object.updateMatrixWorld(), ke = r.length();
3060
3048
  } else
3061
3049
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), e.zoomToCursor = !1;
3062
- Pe !== null && (this.screenSpacePanning ? e.target.set(0, 0, -1).transformDirection(e.object.matrix).multiplyScalar(Pe).add(e.object.position) : (St.origin.copy(e.object.position), St.direction.set(0, 0, -1).transformDirection(e.object.matrix), Math.abs(e.object.up.dot(St.direction)) < bi ? n.lookAt(e.target) : (sn.setFromNormalAndCoplanarPoint(e.object.up, e.target), St.intersectPlane(sn, e.target))));
3050
+ ke !== null && (this.screenSpacePanning ? e.target.set(0, 0, -1).transformDirection(e.object.matrix).multiplyScalar(ke).add(e.object.position) : (wt.origin.copy(e.object.position), wt.direction.set(0, 0, -1).transformDirection(e.object.matrix), Math.abs(e.object.up.dot(wt.direction)) < gi ? n.lookAt(e.target) : (on.setFromNormalAndCoplanarPoint(e.object.up, e.target), wt.intersectPlane(on, e.target))));
3063
3051
  } else
3064
- e.object.isOrthographicCamera && (Ae = f !== 1, Ae && (e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / f)), e.object.updateProjectionMatrix()));
3065
- return f = 1, oe = !1, Ae || L.distanceToSquared(e.object.position) > p || 8 * (1 - K.dot(e.object.quaternion)) > p || de.distanceToSquared(e.target) > 0 ? (e.dispatchEvent(an), L.copy(e.object.position), K.copy(e.object.quaternion), de.copy(e.target), !0) : !1;
3052
+ e.object.isOrthographicCamera && (Pe = f !== 1, Pe && (e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / f)), e.object.updateProjectionMatrix()));
3053
+ return f = 1, se = !1, Pe || L.distanceToSquared(e.object.position) > p || 8 * (1 - K.dot(e.object.quaternion)) > p || de.distanceToSquared(e.target) > 0 ? (e.dispatchEvent(an), L.copy(e.object.position), K.copy(e.object.quaternion), de.copy(e.target), !0) : !1;
3066
3054
  };
3067
3055
  }(), this.dispose = function() {
3068
- e.domElement.removeEventListener("contextmenu", Ye), e.domElement.removeEventListener("pointerdown", Re), e.domElement.removeEventListener("pointercancel", _e), e.domElement.removeEventListener("wheel", bt), e.domElement.removeEventListener("pointermove", Je), e.domElement.removeEventListener("pointerup", _e), e._domElementKeyEvents !== null && (e._domElementKeyEvents.removeEventListener("keydown", et), e._domElementKeyEvents = null);
3056
+ e.domElement.removeEventListener("contextmenu", Ye), e.domElement.removeEventListener("pointerdown", _e), e.domElement.removeEventListener("pointercancel", Ae), e.domElement.removeEventListener("wheel", bt), e.domElement.removeEventListener("pointermove", Je), e.domElement.removeEventListener("pointerup", Ae), e._domElementKeyEvents !== null && (e._domElementKeyEvents.removeEventListener("keydown", et), e._domElementKeyEvents = null);
3069
3057
  };
3070
- const e = this, s = {
3058
+ const e = this, o = {
3071
3059
  NONE: -1,
3072
3060
  ROTATE: 0,
3073
3061
  DOLLY: 1,
@@ -3077,13 +3065,13 @@ class yi extends un {
3077
3065
  TOUCH_DOLLY_PAN: 5,
3078
3066
  TOUCH_DOLLY_ROTATE: 6
3079
3067
  };
3080
- let o = s.NONE;
3068
+ let s = o.NONE;
3081
3069
  const p = 1e-6, c = new Zt(), u = new Zt();
3082
3070
  let f = 1;
3083
- const v = new X(), b = new ue(), E = new ue(), x = new ue(), M = new ue(), P = new ue(), W = new ue(), B = new ue(), S = new ue(), z = new ue(), Ce = new X(), le = new ue();
3084
- let oe = !1;
3071
+ const v = new X(), b = new ue(), E = new ue(), x = new ue(), M = new ue(), P = new ue(), H = new ue(), B = new ue(), w = new ue(), z = new ue(), Ce = new X(), le = new ue();
3072
+ let se = !1;
3085
3073
  const d = [], m = {};
3086
- let w = !1;
3074
+ let S = !1;
3087
3075
  function _(r) {
3088
3076
  return r !== null ? 2 * Math.PI / 60 * e.autoRotateSpeed * r : 2 * Math.PI / 60 / 60 * e.autoRotateSpeed;
3089
3077
  }
@@ -3102,7 +3090,7 @@ class yi extends un {
3102
3090
  return function(O, L) {
3103
3091
  r.setFromMatrixColumn(L, 0), r.multiplyScalar(-O), v.add(r);
3104
3092
  };
3105
- }(), H = function() {
3093
+ }(), W = function() {
3106
3094
  const r = new X();
3107
3095
  return function(O, L) {
3108
3096
  e.screenSpacePanning === !0 ? r.setFromMatrixColumn(L, 1) : (r.setFromMatrixColumn(L, 0), r.crossVectors(e.object.up, r)), r.multiplyScalar(O), v.add(r);
@@ -3114,10 +3102,10 @@ class yi extends un {
3114
3102
  if (e.object.isPerspectiveCamera) {
3115
3103
  const de = e.object.position;
3116
3104
  r.copy(de).sub(e.target);
3117
- let ae = r.length();
3118
- ae *= Math.tan(e.object.fov / 2 * Math.PI / 180), I(2 * O * ae / K.clientHeight, e.object.matrix), H(2 * L * ae / K.clientHeight, e.object.matrix);
3105
+ let ie = r.length();
3106
+ ie *= Math.tan(e.object.fov / 2 * Math.PI / 180), I(2 * O * ie / K.clientHeight, e.object.matrix), W(2 * L * ie / K.clientHeight, e.object.matrix);
3119
3107
  } else
3120
- e.object.isOrthographicCamera ? (I(O * (e.object.right - e.object.left) / e.object.zoom / K.clientWidth, e.object.matrix), H(L * (e.object.top - e.object.bottom) / e.object.zoom / K.clientHeight, e.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), e.enablePan = !1);
3108
+ e.object.isOrthographicCamera ? (I(O * (e.object.right - e.object.left) / e.object.zoom / K.clientWidth, e.object.matrix), W(L * (e.object.top - e.object.bottom) / e.object.zoom / K.clientHeight, e.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), e.enablePan = !1);
3121
3109
  };
3122
3110
  }();
3123
3111
  function T(r) {
@@ -3129,9 +3117,9 @@ class yi extends un {
3129
3117
  function J(r, y) {
3130
3118
  if (!e.zoomToCursor)
3131
3119
  return;
3132
- oe = !0;
3133
- const O = e.domElement.getBoundingClientRect(), L = r - O.left, K = y - O.top, de = O.width, ae = O.height;
3134
- le.x = L / de * 2 - 1, le.y = -(K / ae) * 2 + 1, Ce.set(le.x, le.y, 1).unproject(e.object).sub(e.object.position).normalize();
3120
+ se = !0;
3121
+ const O = e.domElement.getBoundingClientRect(), L = r - O.left, K = y - O.top, de = O.width, ie = O.height;
3122
+ le.x = L / de * 2 - 1, le.y = -(K / ie) * 2 + 1, Ce.set(le.x, le.y, 1).unproject(e.object).sub(e.object.position).normalize();
3135
3123
  }
3136
3124
  function me(r) {
3137
3125
  return Math.max(e.minDistance, Math.min(e.maxDistance, r));
@@ -3151,10 +3139,10 @@ class yi extends un {
3151
3139
  U(2 * Math.PI * x.x / y.clientHeight), $(2 * Math.PI * x.y / y.clientHeight), b.copy(E), e.update();
3152
3140
  }
3153
3141
  function Pt(r) {
3154
- S.set(r.clientX, r.clientY), z.subVectors(S, B), z.y > 0 ? T(Y(z.y)) : z.y < 0 && N(Y(z.y)), B.copy(S), e.update();
3142
+ w.set(r.clientX, r.clientY), z.subVectors(w, B), z.y > 0 ? T(Y(z.y)) : z.y < 0 && N(Y(z.y)), B.copy(w), e.update();
3155
3143
  }
3156
3144
  function Xe(r) {
3157
- P.set(r.clientX, r.clientY), W.subVectors(P, M).multiplyScalar(e.panSpeed), q(W.x, W.y), M.copy(P), e.update();
3145
+ P.set(r.clientX, r.clientY), H.subVectors(P, M).multiplyScalar(e.panSpeed), q(H.x, H.y), M.copy(P), e.update();
3158
3146
  }
3159
3147
  function Ze(r) {
3160
3148
  J(r.clientX, r.clientY), r.deltaY < 0 ? N(Y(r.deltaY)) : r.deltaY > 0 && T(Y(r.deltaY)), e.update();
@@ -3181,24 +3169,24 @@ class yi extends un {
3181
3169
  if (d.length === 1)
3182
3170
  b.set(r.pageX, r.pageY);
3183
3171
  else {
3184
- const y = we(r), O = 0.5 * (r.pageX + y.x), L = 0.5 * (r.pageY + y.y);
3172
+ const y = Se(r), O = 0.5 * (r.pageX + y.x), L = 0.5 * (r.pageY + y.y);
3185
3173
  b.set(O, L);
3186
3174
  }
3187
3175
  }
3188
- function Oe(r) {
3176
+ function Me(r) {
3189
3177
  if (d.length === 1)
3190
3178
  M.set(r.pageX, r.pageY);
3191
3179
  else {
3192
- const y = we(r), O = 0.5 * (r.pageX + y.x), L = 0.5 * (r.pageY + y.y);
3180
+ const y = Se(r), O = 0.5 * (r.pageX + y.x), L = 0.5 * (r.pageY + y.y);
3193
3181
  M.set(O, L);
3194
3182
  }
3195
3183
  }
3196
3184
  function ft(r) {
3197
- const y = we(r), O = r.pageX - y.x, L = r.pageY - y.y, K = Math.sqrt(O * O + L * L);
3185
+ const y = Se(r), O = r.pageX - y.x, L = r.pageY - y.y, K = Math.sqrt(O * O + L * L);
3198
3186
  B.set(0, K);
3199
3187
  }
3200
3188
  function pt(r) {
3201
- e.enableZoom && ft(r), e.enablePan && Oe(r);
3189
+ e.enableZoom && ft(r), e.enablePan && Me(r);
3202
3190
  }
3203
3191
  function kt(r) {
3204
3192
  e.enableZoom && ft(r), e.enableRotate && ze(r);
@@ -3207,44 +3195,44 @@ class yi extends un {
3207
3195
  if (d.length == 1)
3208
3196
  E.set(r.pageX, r.pageY);
3209
3197
  else {
3210
- const O = we(r), L = 0.5 * (r.pageX + O.x), K = 0.5 * (r.pageY + O.y);
3198
+ const O = Se(r), L = 0.5 * (r.pageX + O.x), K = 0.5 * (r.pageY + O.y);
3211
3199
  E.set(L, K);
3212
3200
  }
3213
3201
  x.subVectors(E, b).multiplyScalar(e.rotateSpeed);
3214
3202
  const y = e.domElement;
3215
3203
  U(2 * Math.PI * x.x / y.clientHeight), $(2 * Math.PI * x.y / y.clientHeight), b.copy(E);
3216
3204
  }
3217
- function Me(r) {
3205
+ function Te(r) {
3218
3206
  if (d.length === 1)
3219
3207
  P.set(r.pageX, r.pageY);
3220
3208
  else {
3221
- const y = we(r), O = 0.5 * (r.pageX + y.x), L = 0.5 * (r.pageY + y.y);
3209
+ const y = Se(r), O = 0.5 * (r.pageX + y.x), L = 0.5 * (r.pageY + y.y);
3222
3210
  P.set(O, L);
3223
3211
  }
3224
- W.subVectors(P, M).multiplyScalar(e.panSpeed), q(W.x, W.y), M.copy(P);
3212
+ H.subVectors(P, M).multiplyScalar(e.panSpeed), q(H.x, H.y), M.copy(P);
3225
3213
  }
3226
- function Te(r) {
3227
- const y = we(r), O = r.pageX - y.x, L = r.pageY - y.y, K = Math.sqrt(O * O + L * L);
3228
- S.set(0, K), z.set(0, Math.pow(S.y / B.y, e.zoomSpeed)), T(z.y), B.copy(S);
3229
- const de = (r.pageX + y.x) * 0.5, ae = (r.pageY + y.y) * 0.5;
3230
- J(de, ae);
3214
+ function Re(r) {
3215
+ const y = Se(r), O = r.pageX - y.x, L = r.pageY - y.y, K = Math.sqrt(O * O + L * L);
3216
+ w.set(0, K), z.set(0, Math.pow(w.y / B.y, e.zoomSpeed)), T(z.y), B.copy(w);
3217
+ const de = (r.pageX + y.x) * 0.5, ie = (r.pageY + y.y) * 0.5;
3218
+ J(de, ie);
3231
3219
  }
3232
3220
  function vt(r) {
3233
- e.enableZoom && Te(r), e.enablePan && Me(r);
3221
+ e.enableZoom && Re(r), e.enablePan && Te(r);
3234
3222
  }
3235
3223
  function gt(r) {
3236
- e.enableZoom && Te(r), e.enableRotate && mt(r);
3224
+ e.enableZoom && Re(r), e.enableRotate && mt(r);
3237
3225
  }
3238
- function Re(r) {
3239
- e.enabled !== !1 && (d.length === 0 && (e.domElement.setPointerCapture(r.pointerId), e.domElement.addEventListener("pointermove", Je), e.domElement.addEventListener("pointerup", _e)), Dt(r), r.pointerType === "touch" ? tt(r) : Qe(r));
3226
+ function _e(r) {
3227
+ e.enabled !== !1 && (d.length === 0 && (e.domElement.setPointerCapture(r.pointerId), e.domElement.addEventListener("pointermove", Je), e.domElement.addEventListener("pointerup", Ae)), Dt(r), r.pointerType === "touch" ? tt(r) : Qe(r));
3240
3228
  }
3241
3229
  function Je(r) {
3242
3230
  e.enabled !== !1 && (r.pointerType === "touch" ? Ct(r) : jt(r));
3243
3231
  }
3244
- function _e(r) {
3232
+ function Ae(r) {
3245
3233
  switch (It(r), d.length) {
3246
3234
  case 0:
3247
- e.domElement.releasePointerCapture(r.pointerId), e.domElement.removeEventListener("pointermove", Je), e.domElement.removeEventListener("pointerup", _e), e.dispatchEvent(rn), o = s.NONE;
3235
+ e.domElement.releasePointerCapture(r.pointerId), e.domElement.removeEventListener("pointermove", Je), e.domElement.removeEventListener("pointerup", Ae), e.dispatchEvent(rn), s = o.NONE;
3248
3236
  break;
3249
3237
  case 1:
3250
3238
  const y = d[0], O = m[y];
@@ -3271,48 +3259,48 @@ class yi extends un {
3271
3259
  case Ve.DOLLY:
3272
3260
  if (e.enableZoom === !1)
3273
3261
  return;
3274
- ht(r), o = s.DOLLY;
3262
+ ht(r), s = o.DOLLY;
3275
3263
  break;
3276
3264
  case Ve.ROTATE:
3277
3265
  if (r.ctrlKey || r.metaKey || r.shiftKey) {
3278
3266
  if (e.enablePan === !1)
3279
3267
  return;
3280
- Ke(r), o = s.PAN;
3268
+ Ke(r), s = o.PAN;
3281
3269
  } else {
3282
3270
  if (e.enableRotate === !1)
3283
3271
  return;
3284
- xe(r), o = s.ROTATE;
3272
+ xe(r), s = o.ROTATE;
3285
3273
  }
3286
3274
  break;
3287
3275
  case Ve.PAN:
3288
3276
  if (r.ctrlKey || r.metaKey || r.shiftKey) {
3289
3277
  if (e.enableRotate === !1)
3290
3278
  return;
3291
- xe(r), o = s.ROTATE;
3279
+ xe(r), s = o.ROTATE;
3292
3280
  } else {
3293
3281
  if (e.enablePan === !1)
3294
3282
  return;
3295
- Ke(r), o = s.PAN;
3283
+ Ke(r), s = o.PAN;
3296
3284
  }
3297
3285
  break;
3298
3286
  default:
3299
- o = s.NONE;
3287
+ s = o.NONE;
3300
3288
  }
3301
- o !== s.NONE && e.dispatchEvent($t);
3289
+ s !== o.NONE && e.dispatchEvent($t);
3302
3290
  }
3303
3291
  function jt(r) {
3304
- switch (o) {
3305
- case s.ROTATE:
3292
+ switch (s) {
3293
+ case o.ROTATE:
3306
3294
  if (e.enableRotate === !1)
3307
3295
  return;
3308
3296
  At(r);
3309
3297
  break;
3310
- case s.DOLLY:
3298
+ case o.DOLLY:
3311
3299
  if (e.enableZoom === !1)
3312
3300
  return;
3313
3301
  Pt(r);
3314
3302
  break;
3315
- case s.PAN:
3303
+ case o.PAN:
3316
3304
  if (e.enablePan === !1)
3317
3305
  return;
3318
3306
  Xe(r);
@@ -3320,7 +3308,7 @@ class yi extends un {
3320
3308
  }
3321
3309
  }
3322
3310
  function bt(r) {
3323
- e.enabled === !1 || e.enableZoom === !1 || o !== s.NONE || (r.preventDefault(), e.dispatchEvent($t), Ze(yt(r)), e.dispatchEvent(rn));
3311
+ e.enabled === !1 || e.enableZoom === !1 || s !== o.NONE || (r.preventDefault(), e.dispatchEvent($t), Ze(yt(r)), e.dispatchEvent(rn));
3324
3312
  }
3325
3313
  function yt(r) {
3326
3314
  const y = r.deltaMode, O = {
@@ -3336,13 +3324,13 @@ class yi extends un {
3336
3324
  O.deltaY *= 100;
3337
3325
  break;
3338
3326
  }
3339
- return r.ctrlKey && !w && (O.deltaY *= 10), O;
3327
+ return r.ctrlKey && !S && (O.deltaY *= 10), O;
3340
3328
  }
3341
3329
  function Et(r) {
3342
- r.key === "Control" && (w = !0, e.domElement.getRootNode().addEventListener("keyup", Se, { passive: !0, capture: !0 }));
3330
+ r.key === "Control" && (S = !0, e.domElement.getRootNode().addEventListener("keyup", we, { passive: !0, capture: !0 }));
3343
3331
  }
3344
- function Se(r) {
3345
- r.key === "Control" && (w = !1, e.domElement.getRootNode().removeEventListener("keyup", Se, { passive: !0, capture: !0 }));
3332
+ function we(r) {
3333
+ r.key === "Control" && (S = !1, e.domElement.getRootNode().removeEventListener("keyup", we, { passive: !0, capture: !0 }));
3346
3334
  }
3347
3335
  function et(r) {
3348
3336
  e.enabled === !1 || e.enablePan === !1 || $e(r);
@@ -3351,65 +3339,65 @@ class yi extends un {
3351
3339
  switch (xt(r), d.length) {
3352
3340
  case 1:
3353
3341
  switch (e.touches.ONE) {
3354
- case We.ROTATE:
3342
+ case He.ROTATE:
3355
3343
  if (e.enableRotate === !1)
3356
3344
  return;
3357
- ze(r), o = s.TOUCH_ROTATE;
3345
+ ze(r), s = o.TOUCH_ROTATE;
3358
3346
  break;
3359
- case We.PAN:
3347
+ case He.PAN:
3360
3348
  if (e.enablePan === !1)
3361
3349
  return;
3362
- Oe(r), o = s.TOUCH_PAN;
3350
+ Me(r), s = o.TOUCH_PAN;
3363
3351
  break;
3364
3352
  default:
3365
- o = s.NONE;
3353
+ s = o.NONE;
3366
3354
  }
3367
3355
  break;
3368
3356
  case 2:
3369
3357
  switch (e.touches.TWO) {
3370
- case We.DOLLY_PAN:
3358
+ case He.DOLLY_PAN:
3371
3359
  if (e.enableZoom === !1 && e.enablePan === !1)
3372
3360
  return;
3373
- pt(r), o = s.TOUCH_DOLLY_PAN;
3361
+ pt(r), s = o.TOUCH_DOLLY_PAN;
3374
3362
  break;
3375
- case We.DOLLY_ROTATE:
3363
+ case He.DOLLY_ROTATE:
3376
3364
  if (e.enableZoom === !1 && e.enableRotate === !1)
3377
3365
  return;
3378
- kt(r), o = s.TOUCH_DOLLY_ROTATE;
3366
+ kt(r), s = o.TOUCH_DOLLY_ROTATE;
3379
3367
  break;
3380
3368
  default:
3381
- o = s.NONE;
3369
+ s = o.NONE;
3382
3370
  }
3383
3371
  break;
3384
3372
  default:
3385
- o = s.NONE;
3373
+ s = o.NONE;
3386
3374
  }
3387
- o !== s.NONE && e.dispatchEvent($t);
3375
+ s !== o.NONE && e.dispatchEvent($t);
3388
3376
  }
3389
3377
  function Ct(r) {
3390
- switch (xt(r), o) {
3391
- case s.TOUCH_ROTATE:
3378
+ switch (xt(r), s) {
3379
+ case o.TOUCH_ROTATE:
3392
3380
  if (e.enableRotate === !1)
3393
3381
  return;
3394
3382
  mt(r), e.update();
3395
3383
  break;
3396
- case s.TOUCH_PAN:
3384
+ case o.TOUCH_PAN:
3397
3385
  if (e.enablePan === !1)
3398
3386
  return;
3399
- Me(r), e.update();
3387
+ Te(r), e.update();
3400
3388
  break;
3401
- case s.TOUCH_DOLLY_PAN:
3389
+ case o.TOUCH_DOLLY_PAN:
3402
3390
  if (e.enableZoom === !1 && e.enablePan === !1)
3403
3391
  return;
3404
3392
  vt(r), e.update();
3405
3393
  break;
3406
- case s.TOUCH_DOLLY_ROTATE:
3394
+ case o.TOUCH_DOLLY_ROTATE:
3407
3395
  if (e.enableZoom === !1 && e.enableRotate === !1)
3408
3396
  return;
3409
3397
  gt(r), e.update();
3410
3398
  break;
3411
3399
  default:
3412
- o = s.NONE;
3400
+ s = o.NONE;
3413
3401
  }
3414
3402
  }
3415
3403
  function Ye(r) {
@@ -3430,49 +3418,49 @@ class yi extends un {
3430
3418
  let y = m[r.pointerId];
3431
3419
  y === void 0 && (y = new ue(), m[r.pointerId] = y), y.set(r.pageX, r.pageY);
3432
3420
  }
3433
- function we(r) {
3421
+ function Se(r) {
3434
3422
  const y = r.pointerId === d[0] ? d[1] : d[0];
3435
3423
  return m[y];
3436
3424
  }
3437
- e.domElement.addEventListener("contextmenu", Ye), e.domElement.addEventListener("pointerdown", Re), e.domElement.addEventListener("pointercancel", _e), e.domElement.addEventListener("wheel", bt, { passive: !1 }), e.domElement.getRootNode().addEventListener("keydown", Et, { passive: !0, capture: !0 }), this.update();
3425
+ e.domElement.addEventListener("contextmenu", Ye), e.domElement.addEventListener("pointerdown", _e), e.domElement.addEventListener("pointercancel", Ae), e.domElement.addEventListener("wheel", bt, { passive: !1 }), e.domElement.getRootNode().addEventListener("keydown", Et, { passive: !0, capture: !0 }), this.update();
3438
3426
  }
3439
3427
  }
3440
3428
  const Mt = (t) => {
3441
- const [n, a] = se(t.options[t.index]), e = () => {
3429
+ const [n, a] = ae(t.options[t.index]), e = () => {
3442
3430
  t.onToggle(!t.open);
3443
- }, s = (o) => {
3444
- o !== n && (t.onSelect(o), a(o)), t.onToggle(!1);
3431
+ }, o = (s) => {
3432
+ s !== n && (t.onSelect(s), a(s)), t.onToggle(!1);
3445
3433
  };
3446
3434
  return /* @__PURE__ */ l.jsxs("div", { className: `dropdown ${t.up === !0 ? "up" : ""}`, children: [
3447
3435
  /* @__PURE__ */ l.jsx("div", { className: "dropdown-toggle", onClick: e, children: n }),
3448
- t.open && /* @__PURE__ */ l.jsx("ul", { className: "dropdown-menu", children: t.options.map((o) => /* @__PURE__ */ l.jsx("li", { onClick: () => s(o), children: o }, o)) })
3436
+ t.open && /* @__PURE__ */ l.jsx("ul", { className: "dropdown-menu", children: t.options.map((s) => /* @__PURE__ */ l.jsx("li", { onClick: () => o(s), children: s }, s)) })
3449
3437
  ] });
3450
- }, Ie = Ta(function(n, a) {
3451
- const [e, s] = se(!1), o = n.options.indexOf(n.camera.name);
3438
+ }, Le = Ma(function(n, a) {
3439
+ const [e, o] = ae(!1), s = n.options.indexOf(n.camera.name);
3452
3440
  return /* @__PURE__ */ l.jsxs("div", { className: "CameraWindow", children: [
3453
3441
  /* @__PURE__ */ l.jsx("div", { ref: a, className: "clickable", onClick: () => {
3454
- e && s(!1);
3442
+ e && o(!1);
3455
3443
  } }),
3456
3444
  /* @__PURE__ */ l.jsx(
3457
3445
  Mt,
3458
3446
  {
3459
- index: o,
3447
+ index: s,
3460
3448
  open: e,
3461
3449
  options: n.options,
3462
3450
  onSelect: n.onSelect,
3463
3451
  onToggle: (p) => {
3464
- s(p);
3452
+ o(p);
3465
3453
  },
3466
3454
  up: !0
3467
3455
  }
3468
3456
  )
3469
3457
  ] });
3470
- }), on = [
3458
+ }), sn = [
3471
3459
  "Single",
3472
3460
  "Side by Side",
3473
3461
  "Stacked",
3474
3462
  "Quad"
3475
- ], ne = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map();
3463
+ ], ne = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map();
3476
3464
  function Ue(t, n) {
3477
3465
  const a = new Rn(-100, 100, 100, -100, 50, 3e3);
3478
3466
  return a.name = t, a.position.copy(n), a.lookAt(0, 0, 0), ne.set(t, a), a;
@@ -3495,12 +3483,12 @@ const cn = [
3495
3483
  "Normals",
3496
3484
  "UVs",
3497
3485
  "Wireframe"
3498
- ], Ei = new ma(), Ci = new va(), xi = new Za(), Si = new ga({
3486
+ ], yi = new ma(), Ei = new va(), Ci = new Xa(), xi = new ga({
3499
3487
  opacity: 0.33,
3500
3488
  transparent: !0,
3501
3489
  wireframe: !0
3502
3490
  });
3503
- let wt = "Renderer";
3491
+ let St = "Renderer";
3504
3492
  const V = new _n();
3505
3493
  V.name = "Debug Scene";
3506
3494
  let ye = new _n();
@@ -3508,7 +3496,7 @@ V.add(ye);
3508
3496
  const dt = new ba();
3509
3497
  dt.name = "helpers";
3510
3498
  V.add(dt);
3511
- const wi = new qa();
3499
+ const wi = new Wa();
3512
3500
  dt.add(wi);
3513
3501
  const Un = new An(500);
3514
3502
  Un.name = "axisHelper";
@@ -3517,14 +3505,14 @@ const ut = new An(100);
3517
3505
  ut.name = "interactionHelper";
3518
3506
  dt.add(ut);
3519
3507
  ut.visible = !1;
3520
- let Ot = !1, G = ne.get("Debug"), re = ne.get("Orthographic"), Le = ne.get("Front"), Ne = ne.get("Top"), ln = !1;
3521
- function $i(t) {
3522
- const [n, a] = se(t.mode !== void 0 ? t.mode : "Single"), [e, s] = se(null), [o, p] = se(!1), [c, u] = se(!1), [f, v] = se(!1), [, b] = se(Date.now()), E = Ee(null), x = Ee(null), M = Ee(null), P = Ee(null), W = Ee(null), B = Ee(null), S = (d, m) => {
3523
- const w = ie.get(d.name);
3524
- w !== void 0 && w.dispose(), ie.delete(d.name);
3508
+ let Ot = !1, G = ne.get("Debug"), oe = ne.get("Orthographic"), Ne = ne.get("Front"), Fe = ne.get("Top"), ln = !1;
3509
+ function Ui(t) {
3510
+ const [n, a] = ae(t.mode !== void 0 ? t.mode : "Single"), [e, o] = ae(null), [s, p] = ae(!1), [c, u] = ae(!1), [f, v] = ae(!1), [, b] = ae(Date.now()), E = Ee(null), x = Ee(null), M = Ee(null), P = Ee(null), H = Ee(null), B = Ee(null), w = (d, m) => {
3511
+ const S = re.get(d.name);
3512
+ S !== void 0 && S.dispose(), re.delete(d.name);
3525
3513
  const _ = be.get(d.name);
3526
3514
  _ !== void 0 && (V.remove(_), _.dispose()), be.delete(d.name);
3527
- const Y = new yi(d, m);
3515
+ const Y = new bi(d, m);
3528
3516
  switch (Y.enableDamping = !0, Y.dampingFactor = 0.05, d.name) {
3529
3517
  case "Top":
3530
3518
  case "Bottom":
@@ -3535,42 +3523,42 @@ function $i(t) {
3535
3523
  Y.enableRotate = !1;
3536
3524
  break;
3537
3525
  }
3538
- if (ie.set(d.name, Y), d instanceof zt) {
3526
+ if (re.set(d.name, Y), d instanceof zt) {
3539
3527
  const U = new Ca(d);
3540
3528
  be.set(d.name, U), V.add(U);
3541
3529
  }
3542
3530
  }, z = (d) => {
3543
3531
  const m = be.get(d.name);
3544
3532
  m !== void 0 && (V.remove(m), m.dispose(), be.delete(d.name));
3545
- const w = ie.get(d.name);
3546
- w !== void 0 && (w.dispose(), ie.delete(d.name));
3533
+ const S = re.get(d.name);
3534
+ S !== void 0 && (S.dispose(), re.delete(d.name));
3547
3535
  }, Ce = () => {
3548
- ie.forEach((d, m) => {
3536
+ re.forEach((d, m) => {
3549
3537
  d.dispose();
3550
- const w = be.get(m);
3551
- w !== void 0 && (V.remove(w), w.dispose()), be.delete(m), ie.delete(m);
3552
- }), ie.clear(), be.clear();
3538
+ const S = be.get(m);
3539
+ S !== void 0 && (V.remove(S), S.dispose()), be.delete(m), re.delete(m);
3540
+ }), re.clear(), be.clear();
3553
3541
  }, le = () => {
3554
3542
  switch (n) {
3555
3543
  case "Single":
3556
- S(G, M.current);
3544
+ w(G, M.current);
3557
3545
  break;
3558
3546
  case "Side by Side":
3559
3547
  case "Stacked":
3560
- S(G, M.current), S(re, P.current);
3548
+ w(G, M.current), w(oe, P.current);
3561
3549
  break;
3562
3550
  case "Quad":
3563
- S(G, M.current), S(re, P.current), S(Le, W.current), S(Ne, B.current);
3551
+ w(G, M.current), w(oe, P.current), w(Ne, H.current), w(Fe, B.current);
3564
3552
  break;
3565
3553
  }
3566
3554
  };
3567
- Fe(() => {
3555
+ Oe(() => {
3568
3556
  const d = new ya({
3569
3557
  canvas: E.current,
3570
3558
  stencil: !1
3571
3559
  });
3572
- d.autoClear = !1, d.shadowMap.enabled = !0, d.setPixelRatio(devicePixelRatio), d.setClearColor(0), s(d);
3573
- }, []), Fe(() => {
3560
+ d.autoClear = !1, d.shadowMap.enabled = !0, d.setPixelRatio(devicePixelRatio), d.setClearColor(0), o(d);
3561
+ }, []), Oe(() => {
3574
3562
  const d = (_) => {
3575
3563
  Dn(ye), V.remove(ye);
3576
3564
  const Y = t.scenes.get(_.value.name);
@@ -3581,28 +3569,28 @@ function $i(t) {
3581
3569
  }, m = (_) => {
3582
3570
  const Y = _.value, U = t.three.scene?.getObjectByProperty("uuid", Y.uuid);
3583
3571
  U !== void 0 && ne.set(Y.name, U), b(Date.now());
3584
- }, w = (_) => {
3572
+ }, S = (_) => {
3585
3573
  ne.delete(_.value.name), b(Date.now());
3586
3574
  };
3587
- return k.addEventListener(j.SET_SCENE, d), k.addEventListener(j.ADD_CAMERA, m), k.addEventListener(j.REMOVE_CAMERA, w), () => {
3588
- k.removeEventListener(j.SET_SCENE, d), k.removeEventListener(j.ADD_CAMERA, m), k.removeEventListener(j.REMOVE_CAMERA, w);
3575
+ return k.addEventListener(j.SET_SCENE, d), k.addEventListener(j.ADD_CAMERA, m), k.addEventListener(j.REMOVE_CAMERA, S), () => {
3576
+ k.removeEventListener(j.SET_SCENE, d), k.removeEventListener(j.ADD_CAMERA, m), k.removeEventListener(j.REMOVE_CAMERA, S);
3589
3577
  };
3590
- }, []), Fe(() => {
3578
+ }, []), Oe(() => {
3591
3579
  if (e === null)
3592
3580
  return;
3593
- let d = window.innerWidth, m = window.innerHeight, w = Math.floor(d / 2), _ = Math.floor(m / 2), Y = -1;
3581
+ let d = window.innerWidth, m = window.innerHeight, S = Math.floor(d / 2), _ = Math.floor(m / 2), Y = -1;
3594
3582
  const U = () => {
3595
- d = window.innerWidth - 300, m = window.innerHeight, w = Math.floor(d / 2), _ = Math.floor(m / 2), e.setSize(d, m);
3583
+ d = window.innerWidth - 300, m = window.innerHeight, S = Math.floor(d / 2), _ = Math.floor(m / 2), e.setSize(d, m);
3596
3584
  let T = d, N = m;
3597
3585
  switch (n) {
3598
3586
  case "Side by Side":
3599
- T = w, N = m;
3587
+ T = S, N = m;
3600
3588
  break;
3601
3589
  case "Stacked":
3602
3590
  T = d, N = _;
3603
3591
  break;
3604
3592
  case "Quad":
3605
- T = w, N = _;
3593
+ T = S, N = _;
3606
3594
  break;
3607
3595
  }
3608
3596
  ne.forEach((J) => {
@@ -3612,16 +3600,16 @@ function $i(t) {
3612
3600
  e.setViewport(0, 0, d, m), e.setScissor(0, 0, d, m), e.render(V, G);
3613
3601
  }, I = () => {
3614
3602
  if (n === "Side by Side")
3615
- e.setViewport(0, 0, w, m), e.setScissor(0, 0, w, m), e.render(V, G), e.setViewport(w, 0, w, m), e.setScissor(w, 0, w, m), e.render(V, re);
3603
+ e.setViewport(0, 0, S, m), e.setScissor(0, 0, S, m), e.render(V, G), e.setViewport(S, 0, S, m), e.setScissor(S, 0, S, m), e.render(V, oe);
3616
3604
  else {
3617
3605
  const T = m - _;
3618
- e.setViewport(0, T, d, _), e.setScissor(0, T, d, _), e.render(V, G), e.setViewport(0, 0, d, _), e.setScissor(0, 0, d, _), e.render(V, re);
3606
+ e.setViewport(0, T, d, _), e.setScissor(0, T, d, _), e.render(V, G), e.setViewport(0, 0, d, _), e.setScissor(0, 0, d, _), e.render(V, oe);
3619
3607
  }
3620
- }, H = () => {
3608
+ }, W = () => {
3621
3609
  let T = 0, N = 0;
3622
- N = m - _, T = 0, e.setViewport(T, N, w, _), e.setScissor(T, N, w, _), e.render(V, G), T = w, e.setViewport(T, N, w, _), e.setScissor(T, N, w, _), e.render(V, re), N = 0, T = 0, e.setViewport(T, N, w, _), e.setScissor(T, N, w, _), e.render(V, Le), T = w, e.setViewport(T, N, w, _), e.setScissor(T, N, w, _), e.render(V, Ne);
3610
+ N = m - _, T = 0, e.setViewport(T, N, S, _), e.setScissor(T, N, S, _), e.render(V, G), T = S, e.setViewport(T, N, S, _), e.setScissor(T, N, S, _), e.render(V, oe), N = 0, T = 0, e.setViewport(T, N, S, _), e.setScissor(T, N, S, _), e.render(V, Ne), T = S, e.setViewport(T, N, S, _), e.setScissor(T, N, S, _), e.render(V, Fe);
3623
3611
  }, q = () => {
3624
- switch (ie.forEach((T) => {
3612
+ switch (re.forEach((T) => {
3625
3613
  T.update();
3626
3614
  }), t.onSceneUpdate !== void 0 && ln && t.onSceneUpdate(ye), e.clear(), n) {
3627
3615
  case "Single":
@@ -3632,7 +3620,7 @@ function $i(t) {
3632
3620
  I();
3633
3621
  break;
3634
3622
  case "Quad":
3635
- H();
3623
+ W();
3636
3624
  break;
3637
3625
  }
3638
3626
  Y = requestAnimationFrame(q);
@@ -3640,21 +3628,21 @@ function $i(t) {
3640
3628
  return le(), window.addEventListener("resize", U), U(), q(), () => {
3641
3629
  window.removeEventListener("resize", U), cancelAnimationFrame(Y), Y = -1;
3642
3630
  };
3643
- }, [n, e]), Fe(() => {
3631
+ }, [n, e]), Oe(() => {
3644
3632
  if (e !== null) {
3645
- const d = new Ea(), m = new ue(), w = ($, I, H, q) => {
3633
+ const d = new Ea(), m = new ue(), S = ($, I, W, q) => {
3646
3634
  switch (n) {
3647
3635
  case "Quad":
3648
- $ < H ? I < q ? d.setFromCamera(m, G) : d.setFromCamera(m, Le) : I < q ? d.setFromCamera(m, re) : d.setFromCamera(m, Ne);
3636
+ $ < W ? I < q ? d.setFromCamera(m, G) : d.setFromCamera(m, Ne) : I < q ? d.setFromCamera(m, oe) : d.setFromCamera(m, Fe);
3649
3637
  break;
3650
3638
  case "Side by Side":
3651
- $ < H ? d.setFromCamera(m, G) : d.setFromCamera(m, re);
3639
+ $ < W ? d.setFromCamera(m, G) : d.setFromCamera(m, oe);
3652
3640
  break;
3653
3641
  case "Single":
3654
3642
  d.setFromCamera(m, G);
3655
3643
  break;
3656
3644
  case "Stacked":
3657
- I < q ? d.setFromCamera(m, G) : d.setFromCamera(m, re);
3645
+ I < q ? d.setFromCamera(m, G) : d.setFromCamera(m, oe);
3658
3646
  break;
3659
3647
  }
3660
3648
  }, _ = ($) => {
@@ -3662,10 +3650,10 @@ function $i(t) {
3662
3650
  return;
3663
3651
  const I = new ue();
3664
3652
  e.getSize(I);
3665
- const H = Math.min($.clientX, I.x), q = Math.min($.clientY, I.y);
3666
- m.x = qe(H, 0, I.x, -1, 1), m.y = qe(q, 0, I.y, 1, -1);
3653
+ const W = Math.min($.clientX, I.x), q = Math.min($.clientY, I.y);
3654
+ m.x = qe(W, 0, I.x, -1, 1), m.y = qe(q, 0, I.y, 1, -1);
3667
3655
  const T = I.x / 2, N = I.y / 2, J = () => {
3668
- H < T ? m.x = qe(H, 0, T, -1, 1) : m.x = qe(H, T, I.x, -1, 1);
3656
+ W < T ? m.x = qe(W, 0, T, -1, 1) : m.x = qe(W, T, I.x, -1, 1);
3669
3657
  }, me = () => {
3670
3658
  q < N ? m.y = qe(q, 0, N, 1, -1) : m.y = qe(q, N, I.y, 1, -1);
3671
3659
  };
@@ -3680,7 +3668,7 @@ function $i(t) {
3680
3668
  me(), me();
3681
3669
  break;
3682
3670
  }
3683
- w(H, q, T, N);
3671
+ S(W, q, T, N);
3684
3672
  const xe = d.intersectObjects(ye.children);
3685
3673
  xe.length > 0 && ut.position.copy(xe[0].point);
3686
3674
  }, Y = ($) => {
@@ -3690,57 +3678,57 @@ function $i(t) {
3690
3678
  if (e.getSize(I), $.clientX >= I.x)
3691
3679
  return;
3692
3680
  _($);
3693
- const H = d.intersectObjects(ye.children);
3694
- H.length > 0 && t.three.getObject(H[0].object.uuid);
3681
+ const W = d.intersectObjects(ye.children);
3682
+ W.length > 0 && t.three.getObject(W[0].object.uuid);
3695
3683
  }, U = x.current;
3696
3684
  return U.addEventListener("mousemove", _, !1), U.addEventListener("click", Y, !1), () => {
3697
3685
  U.removeEventListener("mousemove", _), U.removeEventListener("click", Y);
3698
3686
  };
3699
3687
  }
3700
3688
  }, [n, e]);
3701
- const oe = [];
3689
+ const se = [];
3702
3690
  return ne.forEach((d, m) => {
3703
- oe.push(m);
3691
+ se.push(m);
3704
3692
  }), /* @__PURE__ */ l.jsxs("div", { className: "multiview", children: [
3705
3693
  /* @__PURE__ */ l.jsx("canvas", { ref: E }),
3706
3694
  /* @__PURE__ */ l.jsxs("div", { className: `cameras ${n === "Single" || n === "Stacked" ? "single" : ""}`, ref: x, children: [
3707
- n === "Single" && /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx(Ie, { camera: G, options: oe, ref: M, onSelect: (d) => {
3708
- ie.get(G.name)?.dispose();
3695
+ n === "Single" && /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx(Le, { camera: G, options: se, ref: M, onSelect: (d) => {
3696
+ re.get(G.name)?.dispose();
3709
3697
  const m = ne.get(d);
3710
- m !== void 0 && (z(G), G = m, S(m, M.current));
3698
+ m !== void 0 && (z(G), G = m, w(m, M.current));
3711
3699
  } }) }),
3712
3700
  (n === "Side by Side" || n === "Stacked") && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
3713
- /* @__PURE__ */ l.jsx(Ie, { camera: G, options: oe, ref: M, onSelect: (d) => {
3714
- ie.get(G.name)?.dispose();
3701
+ /* @__PURE__ */ l.jsx(Le, { camera: G, options: se, ref: M, onSelect: (d) => {
3702
+ re.get(G.name)?.dispose();
3715
3703
  const m = ne.get(d);
3716
- m !== void 0 && (z(G), G = m, S(m, M.current));
3704
+ m !== void 0 && (z(G), G = m, w(m, M.current));
3717
3705
  } }),
3718
- /* @__PURE__ */ l.jsx(Ie, { camera: re, options: oe, ref: P, onSelect: (d) => {
3719
- ie.get(re.name)?.dispose();
3706
+ /* @__PURE__ */ l.jsx(Le, { camera: oe, options: se, ref: P, onSelect: (d) => {
3707
+ re.get(oe.name)?.dispose();
3720
3708
  const m = ne.get(d);
3721
- m !== void 0 && (z(re), re = m, S(m, P.current));
3709
+ m !== void 0 && (z(oe), oe = m, w(m, P.current));
3722
3710
  } })
3723
3711
  ] }),
3724
3712
  n === "Quad" && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
3725
- /* @__PURE__ */ l.jsx(Ie, { camera: G, options: oe, ref: M, onSelect: (d) => {
3726
- ie.get(G.name)?.dispose();
3713
+ /* @__PURE__ */ l.jsx(Le, { camera: G, options: se, ref: M, onSelect: (d) => {
3714
+ re.get(G.name)?.dispose();
3727
3715
  const m = ne.get(d);
3728
- m !== void 0 && (z(G), G = m, S(m, M.current));
3716
+ m !== void 0 && (z(G), G = m, w(m, M.current));
3729
3717
  } }),
3730
- /* @__PURE__ */ l.jsx(Ie, { camera: re, options: oe, ref: P, onSelect: (d) => {
3731
- ie.get(re.name)?.dispose();
3718
+ /* @__PURE__ */ l.jsx(Le, { camera: oe, options: se, ref: P, onSelect: (d) => {
3719
+ re.get(oe.name)?.dispose();
3732
3720
  const m = ne.get(d);
3733
- m !== void 0 && (z(re), re = m, S(m, P.current));
3721
+ m !== void 0 && (z(oe), oe = m, w(m, P.current));
3734
3722
  } }),
3735
- /* @__PURE__ */ l.jsx(Ie, { camera: Le, options: oe, ref: W, onSelect: (d) => {
3736
- ie.get(Le.name)?.dispose();
3723
+ /* @__PURE__ */ l.jsx(Le, { camera: Ne, options: se, ref: H, onSelect: (d) => {
3724
+ re.get(Ne.name)?.dispose();
3737
3725
  const m = ne.get(d);
3738
- m !== void 0 && (z(Le), Le = m, S(m, W.current));
3726
+ m !== void 0 && (z(Ne), Ne = m, w(m, H.current));
3739
3727
  } }),
3740
- /* @__PURE__ */ l.jsx(Ie, { camera: Ne, options: oe, ref: B, onSelect: (d) => {
3741
- ie.get(Ne.name)?.dispose();
3728
+ /* @__PURE__ */ l.jsx(Le, { camera: Fe, options: se, ref: B, onSelect: (d) => {
3729
+ re.get(Fe.name)?.dispose();
3742
3730
  const m = ne.get(d);
3743
- m !== void 0 && (z(Ne), Ne = m, S(m, B.current));
3731
+ m !== void 0 && (z(Fe), Fe = m, w(m, B.current));
3744
3732
  } })
3745
3733
  ] })
3746
3734
  ] }),
@@ -3748,12 +3736,12 @@ function $i(t) {
3748
3736
  /* @__PURE__ */ l.jsx(
3749
3737
  Mt,
3750
3738
  {
3751
- index: on.indexOf(n),
3752
- options: on,
3739
+ index: sn.indexOf(n),
3740
+ options: sn,
3753
3741
  onSelect: (d) => {
3754
3742
  d !== n && (Ce(), a(d));
3755
3743
  },
3756
- open: o,
3744
+ open: s,
3757
3745
  onToggle: (d) => {
3758
3746
  p(d), c && u(!1), f && v(!1);
3759
3747
  }
@@ -3762,32 +3750,32 @@ function $i(t) {
3762
3750
  /* @__PURE__ */ l.jsx(
3763
3751
  Mt,
3764
3752
  {
3765
- index: cn.indexOf(wt),
3753
+ index: cn.indexOf(St),
3766
3754
  options: cn,
3767
3755
  onSelect: (d) => {
3768
- if (d !== wt)
3769
- switch (wt = d, wt) {
3756
+ if (d !== St)
3757
+ switch (St = d, St) {
3770
3758
  case "Depth":
3771
- V.overrideMaterial = Ei;
3759
+ V.overrideMaterial = yi;
3772
3760
  break;
3773
3761
  case "Normals":
3774
- V.overrideMaterial = Ci;
3762
+ V.overrideMaterial = Ei;
3775
3763
  break;
3776
3764
  default:
3777
3765
  case "Renderer":
3778
3766
  V.overrideMaterial = null;
3779
3767
  break;
3780
3768
  case "Wireframe":
3781
- V.overrideMaterial = Si;
3769
+ V.overrideMaterial = xi;
3782
3770
  break;
3783
3771
  case "UVs":
3784
- V.overrideMaterial = xi;
3772
+ V.overrideMaterial = Ci;
3785
3773
  break;
3786
3774
  }
3787
3775
  },
3788
3776
  open: c,
3789
3777
  onToggle: (d) => {
3790
- o && p(!1), u(d), f && v(!1);
3778
+ s && p(!1), u(d), f && v(!1);
3791
3779
  }
3792
3780
  }
3793
3781
  ),
@@ -3804,14 +3792,14 @@ function $i(t) {
3804
3792
  },
3805
3793
  open: f,
3806
3794
  onToggle: (d) => {
3807
- o && p(!1), c && u(!1), v(d);
3795
+ s && p(!1), c && u(!1), v(d);
3808
3796
  }
3809
3797
  }
3810
3798
  )
3811
3799
  ] })
3812
3800
  ] });
3813
3801
  }
3814
- function zi(t) {
3802
+ function $i(t) {
3815
3803
  return /* @__PURE__ */ l.jsxs("div", { className: "editor", ref: t.ref, style: t.style, children: [
3816
3804
  /* @__PURE__ */ l.jsx("header", { children: t.header }),
3817
3805
  t.children,
@@ -3819,41 +3807,41 @@ function zi(t) {
3819
3807
  ] });
3820
3808
  }
3821
3809
  export {
3822
- Wt as Accordion,
3823
- Di as Application,
3810
+ Ht as Accordion,
3811
+ ji as Application,
3824
3812
  Rt as BaseRemote,
3825
3813
  Fn as ChildObject,
3826
- Ja as ContainerObject,
3827
- za as Draggable,
3828
- $a as DraggableItem,
3829
- Ya as Dropdown,
3830
- Ga as DropdownItem,
3831
- zi as Editor,
3832
- qa as InfiniteGridHelper,
3833
- gi as Inspector,
3834
- $i as MultiView,
3814
+ Za as ContainerObject,
3815
+ $a as Draggable,
3816
+ Ua as DraggableItem,
3817
+ za as Dropdown,
3818
+ Ya as DropdownItem,
3819
+ $i as Editor,
3820
+ Wa as InfiniteGridHelper,
3821
+ vi as Inspector,
3822
+ Ui as MultiView,
3835
3823
  Nn as NavButton,
3836
- Ii as RemoteComponents,
3837
- Fi as RemoteController,
3838
- ot as RemoteTheatre,
3839
- Li as RemoteThree,
3840
- Ni as RemoteTweakpane,
3841
- Ui as SceneInspector,
3842
- Bi as SidePanel,
3824
+ Di as RemoteComponents,
3825
+ Ni as RemoteController,
3826
+ st as RemoteTheatre,
3827
+ Ii as RemoteThree,
3828
+ Li as RemoteTweakpane,
3829
+ Bi as SceneInspector,
3830
+ Fi as SidePanel,
3843
3831
  j as ToolEvents,
3844
- Za as UVMaterial,
3832
+ Xa as UVMaterial,
3845
3833
  lt as capitalize,
3846
- Pi as clamp,
3847
- Aa as colorToHex,
3834
+ Ai as clamp,
3835
+ _a as colorToHex,
3848
3836
  k as debugDispatcher,
3849
3837
  Dn as dispose,
3850
- ka as disposeMaterial,
3851
- ji as disposeTexture,
3852
- ki as distance,
3838
+ Pa as disposeMaterial,
3839
+ ki as disposeTexture,
3840
+ Pi as distance,
3853
3841
  jn as hierarchyUUID,
3854
- _a as isColor,
3855
- Ra as randomID,
3856
- Pa as resetThreeObjects,
3842
+ Ra as isColor,
3843
+ Ta as randomID,
3844
+ Aa as resetThreeObjects,
3857
3845
  Ft as round,
3858
3846
  Yt as totalThreeObjects
3859
3847
  };