@tomorrowevening/hermes 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hermes.js CHANGED
@@ -1,65 +1,65 @@
1
- var Pn = Object.defineProperty;
2
- var _n = (t, n, a) => n in t ? Pn(t, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[n] = a;
3
- var Z = (t, n, a) => (_n(t, typeof n != "symbol" ? n + "" : n, a), a);
4
- import { PositionalAudio as jn, EventDispatcher as on, Texture as sn, CubeTexture as kn, RepeatWrapping as zt, ShaderMaterial as cn, GLSL3 as An, DoubleSide as Dn, Color as Ft, Mesh as In, PlaneGeometry as Nn, Matrix4 as Ln, Vector3 as Y, Euler as Fn, Ray as Un, Plane as Bn, MathUtils as $n, MOUSE as We, TOUCH as He, Quaternion as Yt, Spherical as Wt, Vector2 as de, PerspectiveCamera as Dt, MeshDepthMaterial as Gn, MeshNormalMaterial as Vn, MeshBasicMaterial as zn, OrthographicCamera as ln, Scene as un, Group as Yn, AxesHelper as dn, WebGLRenderer as Wn, Raycaster as Hn, CameraHelper as Kn } from "three";
5
- import { getProject as Xn } from "@theatre/core";
1
+ var _n = Object.defineProperty;
2
+ var jn = (t, n, a) => n in t ? _n(t, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[n] = a;
3
+ var Z = (t, n, a) => (jn(t, typeof n != "symbol" ? n + "" : n, a), a);
4
+ import { PositionalAudio as kn, EventDispatcher as sn, Texture as cn, CubeTexture as An, RepeatWrapping as Yt, ShaderMaterial as ln, GLSL3 as Dn, DoubleSide as In, Color as Ft, Mesh as Nn, PlaneGeometry as Ln, Matrix4 as Fn, Vector3 as Y, Euler as Un, Ray as Bn, Plane as $n, MathUtils as Gn, MOUSE as We, TOUCH as He, Quaternion as Wt, Spherical as Ht, Vector2 as de, PerspectiveCamera as Dt, MeshDepthMaterial as Vn, MeshNormalMaterial as zn, MeshBasicMaterial as Yn, OrthographicCamera as un, Scene as dn, Group as Wn, AxesHelper as fn, WebGLRenderer as Hn, Raycaster as Kn, CameraHelper as Xn } from "three";
5
+ import { getProject as qn } from "@theatre/core";
6
6
  import rt from "@theatre/studio";
7
- import { Pane as qn } from "tweakpane";
8
- import * as Zn from "@tweakpane/plugin-essentials";
9
- import fn, { useState as oe, useRef as Ce, useEffect as Fe, Component as Jn, forwardRef as Qn } from "react";
10
- import { Reorder as hn } from "framer-motion";
11
- function ri(t, n, a) {
7
+ import { Pane as Zn } from "tweakpane";
8
+ import * as Jn from "@tweakpane/plugin-essentials";
9
+ import hn, { useState as oe, useRef as Ce, useEffect as Fe, Component as Qn, forwardRef as ea } from "react";
10
+ import { Reorder as pn } from "framer-motion";
11
+ function si(t, n, a) {
12
12
  return Math.min(n, Math.max(t, a));
13
13
  }
14
- function oi(t, n) {
14
+ function ci(t, n) {
15
15
  const a = t - n;
16
16
  return Math.sqrt(a * a);
17
17
  }
18
- function ea() {
18
+ function ta() {
19
19
  return Math.round(Math.random() * 1e6).toString();
20
20
  }
21
- function ta(t) {
21
+ function na(t) {
22
22
  return t.r !== void 0 && t.g !== void 0 && t.b !== void 0;
23
23
  }
24
- function na(t) {
25
- const n = Math.round(t.r * 255), a = Math.round(t.g * 255), e = Math.round(t.b * 255), r = (d) => {
26
- const p = d.toString(16);
24
+ function aa(t) {
25
+ const n = Math.round(t.r * 255), a = Math.round(t.g * 255), e = Math.round(t.b * 255), r = (u) => {
26
+ const p = u.toString(16);
27
27
  return p.length === 1 ? "0" + p : p;
28
- }, s = r(n), u = r(a), l = r(e);
29
- return "#" + s + u + l;
28
+ }, s = r(n), f = r(a), l = r(e);
29
+ return "#" + s + f + l;
30
30
  }
31
31
  function _t(t, n = 1) {
32
32
  return Number(t.toFixed(n));
33
33
  }
34
34
  let It = 0;
35
- const aa = () => {
35
+ const ia = () => {
36
36
  It = 0;
37
- }, pn = (t) => {
37
+ }, mn = (t) => {
38
38
  if (!t)
39
39
  return;
40
40
  let n = t.name.replace(" ", "");
41
41
  n.length === 0 && (n = `obj_${It}`, It++), t.parent !== null && (n = `${t.parent.uuid}.${n}`), t.uuid = n, t.children.forEach((a) => {
42
- pn(a);
42
+ mn(a);
43
43
  });
44
- }, si = (t) => {
44
+ }, li = (t) => {
45
45
  t == null || t.dispose();
46
- }, ia = (t) => {
46
+ }, ra = (t) => {
47
47
  t && (Array.isArray(t) ? t.forEach((n) => n.dispose()) : t.dispose());
48
- }, mn = (t) => {
48
+ }, gn = (t) => {
49
49
  var n;
50
50
  if (t) {
51
51
  for (; t.children.length > 0; ) {
52
52
  const a = t.children[0];
53
- a instanceof jn ? (a.pause(), a.parent && a.parent.remove(a)) : mn(a);
53
+ a instanceof kn ? (a.pause(), a.parent && a.parent.remove(a)) : gn(a);
54
54
  }
55
55
  if (t.parent && t.parent.remove(t), t.isMesh) {
56
56
  const a = t;
57
- (n = a.geometry) == null || n.dispose(), ia(a.material);
57
+ (n = a.geometry) == null || n.dispose(), ra(a.material);
58
58
  }
59
59
  t.dispose !== void 0 && t.dispose();
60
60
  }
61
61
  };
62
- class ci {
62
+ class ui {
63
63
  constructor(n, a, e = "editor") {
64
64
  Z(this, "channel");
65
65
  Z(this, "components", /* @__PURE__ */ new Map());
@@ -88,6 +88,9 @@ class ci {
88
88
  get mode() {
89
89
  return this._mode;
90
90
  }
91
+ get isApp() {
92
+ return this._mode === "app";
93
+ }
91
94
  get editor() {
92
95
  return this._mode === "editor";
93
96
  }
@@ -95,7 +98,7 @@ class ci {
95
98
  n && (this._mode = "editor", document.title += " - Editor");
96
99
  }
97
100
  }
98
- const _ = new on(), j = {
101
+ const _ = new sn(), j = {
99
102
  CUSTOM: "ToolEvents::custom",
100
103
  // Components
101
104
  SELECT_DROPDOWN: "ToolEvents::selectDropdown",
@@ -119,7 +122,7 @@ class Ct {
119
122
  dispose() {
120
123
  }
121
124
  }
122
- class li extends Ct {
125
+ class oa extends Ct {
123
126
  selectDropdown(n, a) {
124
127
  this.app.send({
125
128
  event: "selectComponent",
@@ -141,7 +144,7 @@ class li extends Ct {
141
144
  });
142
145
  }
143
146
  }
144
- function ra(t, n) {
147
+ function sa(t, n) {
145
148
  switch (n.event) {
146
149
  case "selectComponent":
147
150
  _.dispatchEvent({ type: j.SELECT_DROPDOWN, value: n.data });
@@ -151,17 +154,19 @@ function ra(t, n) {
151
154
  break;
152
155
  }
153
156
  }
154
- const gn = () => {
157
+ const vn = () => {
155
158
  };
156
- class vn extends Ct {
157
- constructor(a, e, r) {
158
- super(a);
159
+ class Ut extends Ct {
160
+ constructor() {
161
+ super(...arguments);
159
162
  Z(this, "project");
160
- Z(this, "sheets");
161
- Z(this, "sheetObjects");
162
- Z(this, "sheetObjectCBs");
163
- Z(this, "sheetObjectUnsubscribe");
164
- this.project = Xn(e, r), this.sheets = /* @__PURE__ */ new Map(), this.sheetObjects = /* @__PURE__ */ new Map(), this.sheetObjectCBs = /* @__PURE__ */ new Map(), this.sheetObjectUnsubscribe = /* @__PURE__ */ new Map();
163
+ Z(this, "sheets", /* @__PURE__ */ new Map());
164
+ Z(this, "sheetObjects", /* @__PURE__ */ new Map());
165
+ Z(this, "sheetObjectCBs", /* @__PURE__ */ new Map());
166
+ Z(this, "sheetObjectUnsubscribe", /* @__PURE__ */ new Map());
167
+ }
168
+ init(a, e) {
169
+ this.project = qn(a, e);
165
170
  }
166
171
  dispose() {
167
172
  this.project = void 0, this.sheets = /* @__PURE__ */ new Map(), this.sheetObjects = /* @__PURE__ */ new Map(), this.sheetObjectCBs = /* @__PURE__ */ new Map(), this.sheetObjectUnsubscribe = /* @__PURE__ */ new Map();
@@ -180,19 +185,19 @@ class vn extends Ct {
180
185
  console.error("Theatre Project hasn't been created yet.");
181
186
  return;
182
187
  }
183
- const u = this.sheets.get(a);
184
- if (u === void 0)
188
+ const f = this.sheets.get(a);
189
+ if (f === void 0)
185
190
  return;
186
191
  const l = `${a}_${e}`;
187
- let d = this.sheetObjects.get(l);
188
- if (d !== void 0)
189
- return d = u.object(e, { ...r, ...d.value }, { reconfigure: !0 }), d;
190
- d = u.object(e, r), this.sheetObjects.set(l, d), this.sheetObjectCBs.set(l, s !== void 0 ? s : gn);
191
- const p = d.onValuesChange((v) => {
192
+ let u = this.sheetObjects.get(l);
193
+ if (u !== void 0)
194
+ return u = f.object(e, { ...r, ...u.value }, { reconfigure: !0 }), u;
195
+ u = f.object(e, r), this.sheetObjects.set(l, u), this.sheetObjectCBs.set(l, s !== void 0 ? s : vn);
196
+ const p = u.onValuesChange((v) => {
192
197
  if (this.app.editor) {
193
198
  for (const E in v) {
194
199
  const w = v[E];
195
- typeof w == "object" && ta(w) && (v[E] = {
200
+ typeof w == "object" && na(w) && (v[E] = {
196
201
  r: w.r,
197
202
  g: w.g,
198
203
  b: w.b,
@@ -212,7 +217,7 @@ class vn extends Ct {
212
217
  E !== void 0 && E(v);
213
218
  }
214
219
  });
215
- return this.sheetObjectUnsubscribe.set(l, p), d;
220
+ return this.sheetObjectUnsubscribe.set(l, p), u;
216
221
  }
217
222
  unsubscribe(a) {
218
223
  if (this.project === void 0) {
@@ -224,9 +229,9 @@ class vn extends Ct {
224
229
  }
225
230
  }
226
231
  let Me;
227
- function oa(t, n) {
232
+ function ca(t, n) {
228
233
  t.components.forEach((a) => {
229
- if (a instanceof vn) {
234
+ if (a instanceof Ut) {
230
235
  let e;
231
236
  const r = a;
232
237
  switch (n.event) {
@@ -246,29 +251,29 @@ function oa(t, n) {
246
251
  }
247
252
  });
248
253
  }
249
- function sa(t) {
254
+ function la(t) {
250
255
  if (t.editor) {
251
256
  let n;
252
257
  t.components.forEach((s) => {
253
- s instanceof vn && (n = s);
258
+ s instanceof Ut && (n = s);
254
259
  }), rt.ui.restore(), rt.onSelectionChange((s) => {
255
- s.length < 1 || s.forEach((u) => {
256
- let l = u.address.sheetId, d = "setSheet", p = {};
257
- switch (u.type) {
260
+ s.length < 1 || s.forEach((f) => {
261
+ let l = f.address.sheetId, u = "setSheet", p = {};
262
+ switch (f.type) {
258
263
  case "Theatre_Sheet_PublicAPI":
259
- d = "setSheet", p = {
260
- sheet: u.address.sheetId
261
- }, Me = n.sheets.get(u.address.sheetId);
264
+ u = "setSheet", p = {
265
+ sheet: f.address.sheetId
266
+ }, Me = n.sheets.get(f.address.sheetId);
262
267
  break;
263
268
  case "Theatre_SheetObject_PublicAPI":
264
- d = "setSheetObject", l += `_${u.address.objectKey}`, p = {
269
+ u = "setSheetObject", l += `_${f.address.objectKey}`, p = {
265
270
  id: l,
266
- sheet: u.address.sheetId,
267
- key: u.address.objectKey
271
+ sheet: f.address.sheetId,
272
+ key: f.address.objectKey
268
273
  };
269
274
  break;
270
275
  }
271
- t.send({ event: d, target: "app", data: p });
276
+ t.send({ event: u, target: "app", data: p });
272
277
  });
273
278
  });
274
279
  let a = 0;
@@ -292,7 +297,7 @@ function sa(t) {
292
297
  } else
293
298
  rt.ui.hide();
294
299
  }
295
- function ca(t) {
300
+ function ua(t) {
296
301
  if (t.name === "cameras")
297
302
  return "camera";
298
303
  if (t.name === "interactive")
@@ -317,7 +322,7 @@ function bn(t) {
317
322
  n.children.push(bn(a));
318
323
  }), n;
319
324
  }
320
- function la(t) {
325
+ function da(t) {
321
326
  const n = {};
322
327
  for (const a in t) {
323
328
  const e = t[a].value;
@@ -325,7 +330,7 @@ function la(t) {
325
330
  }
326
331
  return n;
327
332
  }
328
- function ua(t) {
333
+ function fa(t) {
329
334
  switch (t) {
330
335
  case "blendSrcAlpha":
331
336
  case "blendDstAlpha":
@@ -337,10 +342,10 @@ function ua(t) {
337
342
  }
338
343
  return !1;
339
344
  }
340
- function Ht(t) {
345
+ function Kt(t) {
341
346
  const n = {};
342
347
  for (const a in t) {
343
- if (a.substring(0, 1) === "_" || a.substring(0, 2) === "is" || ua(a))
348
+ if (a.substring(0, 1) === "_" || a.substring(0, 2) === "is" || fa(a))
344
349
  continue;
345
350
  const e = typeof t[a], r = t[a];
346
351
  switch (e) {
@@ -352,13 +357,13 @@ function Ht(t) {
352
357
  case "object":
353
358
  if (r !== null)
354
359
  if (n[a] = r, r.isTexture)
355
- if (r instanceof sn) {
360
+ if (r instanceof cn) {
356
361
  const s = r.source.toJSON();
357
362
  n[a] = { src: s.url };
358
363
  } else
359
- r instanceof kn && (console.log("env map"), console.log(r.source.data), console.log(r.source.toJSON()), n[a] = { src: "" });
364
+ r instanceof An && (console.log("env map"), console.log(r.source.data), console.log(r.source.toJSON()), n[a] = { src: "" });
360
365
  else
361
- a === "uniforms" && (n[a] = la(n[a]));
366
+ a === "uniforms" && (n[a] = da(n[a]));
362
367
  else
363
368
  n[a] = { src: "" };
364
369
  break;
@@ -393,10 +398,10 @@ function jt(t) {
393
398
  if (Array.isArray(e.material)) {
394
399
  const r = [];
395
400
  e.material.forEach((s) => {
396
- r.push(Ht(s));
401
+ r.push(Kt(s));
397
402
  }), n.material = r;
398
403
  } else
399
- n.material = Ht(e.material);
404
+ n.material = Kt(e.material);
400
405
  } else
401
406
  a.search("camera") > -1 ? t.type === "PerspectiveCamera" ? n.perspectiveCameraInfo = {
402
407
  fov: t.fov,
@@ -450,12 +455,12 @@ function Nt(t) {
450
455
  return new Promise((n, a) => {
451
456
  const e = new Image();
452
457
  e.onload = () => {
453
- const r = new sn(e);
454
- r.wrapS = zt, r.wrapT = zt, r.needsUpdate = !0, n(r);
458
+ const r = new cn(e);
459
+ r.wrapS = Yt, r.wrapT = Yt, r.needsUpdate = !0, n(r);
455
460
  }, e.onerror = a, e.src = t;
456
461
  });
457
462
  }
458
- class ui extends Ct {
463
+ class ha extends Ct {
459
464
  constructor() {
460
465
  super(...arguments);
461
466
  Z(this, "scene");
@@ -511,7 +516,7 @@ class ui extends Ct {
511
516
  setScene(a) {
512
517
  if (a === void 0)
513
518
  return;
514
- this.scene = a, aa(), pn(this.scene);
519
+ this.scene = a, ia(), mn(this.scene);
515
520
  const e = bn(this.scene);
516
521
  this.app.send({
517
522
  event: "setScene",
@@ -536,7 +541,7 @@ class ui extends Ct {
536
541
  });
537
542
  }
538
543
  }
539
- function da(t, n) {
544
+ function pa(t, n) {
540
545
  switch (n.event) {
541
546
  case "getObject":
542
547
  _.dispatchEvent({ type: j.GET_OBJECT, value: n.data });
@@ -552,7 +557,7 @@ function da(t, n) {
552
557
  break;
553
558
  }
554
559
  }
555
- function fa(t, n) {
560
+ function ma(t, n) {
556
561
  switch (n.event) {
557
562
  case "setObject":
558
563
  _.dispatchEvent({ type: j.SET_OBJECT, value: n.data });
@@ -568,7 +573,7 @@ function fa(t, n) {
568
573
  break;
569
574
  }
570
575
  }
571
- class ha extends Ct {
576
+ class yn extends Ct {
572
577
  constructor(a) {
573
578
  super(a);
574
579
  Z(this, "bindCBs");
@@ -580,7 +585,7 @@ class ha extends Ct {
580
585
  this.bindCBs = /* @__PURE__ */ new Map(), this.buttonCBs = /* @__PURE__ */ new Map(), a.editor && this.createGUI();
581
586
  }
582
587
  createGUI() {
583
- this.pane = new qn({ title: "GUI" }), this.pane.registerPlugin(Zn);
588
+ this.pane = new Zn({ title: "GUI" }), this.pane.registerPlugin(Jn);
584
589
  }
585
590
  dispose() {
586
591
  var a;
@@ -607,13 +612,13 @@ class ha extends Ct {
607
612
  }
608
613
  // Binding
609
614
  bind(a, e, r, s = void 0) {
610
- const u = this.bindID, l = r.onChange !== void 0 ? r.onChange : gn;
611
- this.bindCBs.set(u, l), this.app.editor ? (this.pane === void 0 && this.createGUI(), (s !== void 0 ? s : this.pane).addBinding(a, e, r).on("change", (p) => {
615
+ const f = this.bindID, l = r.onChange !== void 0 ? r.onChange : vn;
616
+ this.bindCBs.set(f, l), this.app.editor ? (this.pane === void 0 && this.createGUI(), (s !== void 0 ? s : this.pane).addBinding(a, e, r).on("change", (p) => {
612
617
  this.app.send({
613
618
  event: "updateBind",
614
619
  target: "app",
615
620
  data: {
616
- id: u,
621
+ id: f,
617
622
  value: p.value
618
623
  }
619
624
  });
@@ -621,7 +626,7 @@ class ha extends Ct {
621
626
  event: "bindObject",
622
627
  target: "app",
623
628
  data: {
624
- id: u,
629
+ id: f,
625
630
  name: e,
626
631
  params: r,
627
632
  parent: s
@@ -668,9 +673,9 @@ class ha extends Ct {
668
673
  this.inspectorFolder.remove(this.inspectorFolder.children[e]);
669
674
  }
670
675
  }
671
- function pa(t, n) {
676
+ function ga(t, n) {
672
677
  t.components.forEach((a) => {
673
- if (a instanceof ha) {
678
+ if (a instanceof yn) {
674
679
  const e = a;
675
680
  switch (n.event) {
676
681
  case "addFolder":
@@ -703,23 +708,23 @@ var Lt = { exports: {} }, nt = {};
703
708
  * This source code is licensed under the MIT license found in the
704
709
  * LICENSE file in the root directory of this source tree.
705
710
  */
706
- var Kt;
707
- function ma() {
708
- if (Kt)
711
+ var Xt;
712
+ function va() {
713
+ if (Xt)
709
714
  return nt;
710
- Kt = 1;
711
- var t = fn, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), e = Object.prototype.hasOwnProperty, r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
712
- function u(l, d, p) {
715
+ Xt = 1;
716
+ var t = hn, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), e = Object.prototype.hasOwnProperty, r = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
717
+ function f(l, u, p) {
713
718
  var v, E = {}, w = null, R = null;
714
- p !== void 0 && (w = "" + p), d.key !== void 0 && (w = "" + d.key), d.ref !== void 0 && (R = d.ref);
715
- for (v in d)
716
- e.call(d, v) && !s.hasOwnProperty(v) && (E[v] = d[v]);
719
+ p !== void 0 && (w = "" + p), u.key !== void 0 && (w = "" + u.key), u.ref !== void 0 && (R = u.ref);
720
+ for (v in u)
721
+ e.call(u, v) && !s.hasOwnProperty(v) && (E[v] = u[v]);
717
722
  if (l && l.defaultProps)
718
- for (v in d = l.defaultProps, d)
719
- E[v] === void 0 && (E[v] = d[v]);
723
+ for (v in u = l.defaultProps, u)
724
+ E[v] === void 0 && (E[v] = u[v]);
720
725
  return { $$typeof: n, type: l, key: w, ref: R, props: E, _owner: r.current };
721
726
  }
722
- return nt.Fragment = a, nt.jsx = u, nt.jsxs = u, nt;
727
+ return nt.Fragment = a, nt.jsx = f, nt.jsxs = f, nt;
723
728
  }
724
729
  var at = {};
725
730
  /**
@@ -731,10 +736,10 @@ var at = {};
731
736
  * This source code is licensed under the MIT license found in the
732
737
  * LICENSE file in the root directory of this source tree.
733
738
  */
734
- var Xt;
735
- function ga() {
736
- return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
737
- var t = fn, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), T = Symbol.iterator, G = "@@iterator";
739
+ var qt;
740
+ function ba() {
741
+ return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
742
+ var t = hn, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), T = Symbol.iterator, G = "@@iterator";
738
743
  function se(i) {
739
744
  if (i === null || typeof i != "object")
740
745
  return null;
@@ -759,10 +764,10 @@ function ga() {
759
764
  L.unshift("Warning: " + h), Function.prototype.apply.call(console[i], console, L);
760
765
  }
761
766
  }
762
- var fe = !1, le = !1, ee = !1, f = !1, m = !1, b;
767
+ var fe = !1, le = !1, ee = !1, d = !1, m = !1, b;
763
768
  b = Symbol.for("react.module.reference");
764
769
  function S(i) {
765
- return !!(typeof i == "string" || typeof i == "function" || i === e || i === s || m || i === r || i === p || i === v || f || i === R || fe || le || ee || typeof i == "object" && i !== null && (i.$$typeof === w || i.$$typeof === E || i.$$typeof === u || i.$$typeof === l || i.$$typeof === d || // This needs to include all possible module reference object
770
+ return !!(typeof i == "string" || typeof i == "function" || i === e || i === s || m || i === r || i === p || i === v || d || i === R || fe || le || ee || typeof i == "object" && i !== null && (i.$$typeof === w || i.$$typeof === E || i.$$typeof === f || i.$$typeof === l || i.$$typeof === u || // This needs to include all possible module reference object
766
771
  // types supported by any Flight configuration anywhere since
767
772
  // we don't know which Flight build this will end up being used
768
773
  // with.
@@ -804,10 +809,10 @@ function ga() {
804
809
  case l:
805
810
  var h = i;
806
811
  return $(h) + ".Consumer";
807
- case u:
812
+ case f:
808
813
  var g = i;
809
814
  return $(g._context) + ".Provider";
810
- case d:
815
+ case u:
811
816
  return B(i, i.render, "ForwardRef");
812
817
  case E:
813
818
  var x = i.displayName || null;
@@ -972,8 +977,8 @@ function ga() {
972
977
  } finally {
973
978
  $e = !1, qe.current = L, Tt(), Error.prepareStackTrace = k;
974
979
  }
975
- var Ye = i ? i.displayName || i.name : "", Vt = Ye ? Pe(Ye) : "";
976
- return typeof i == "function" && _e.set(i, Vt), Vt;
980
+ var Ye = i ? i.displayName || i.name : "", zt = Ye ? Pe(Ye) : "";
981
+ return typeof i == "function" && _e.set(i, zt), zt;
977
982
  }
978
983
  function ut(i, h, g) {
979
984
  return lt(i, !1);
@@ -997,7 +1002,7 @@ function ga() {
997
1002
  }
998
1003
  if (typeof i == "object")
999
1004
  switch (i.$$typeof) {
1000
- case d:
1005
+ case u:
1001
1006
  return ut(i.render);
1002
1007
  case E:
1003
1008
  return je(i.type, h, g);
@@ -1209,7 +1214,7 @@ Check the top-level render call using <` + g + ">.");
1209
1214
  return h;
1210
1215
  }
1211
1216
  }
1212
- function Bt(i, h) {
1217
+ function $t(i, h) {
1213
1218
  {
1214
1219
  if (!i._store || i._store.validated || i.key != null)
1215
1220
  return;
@@ -1222,14 +1227,14 @@ Check the top-level render call using <` + g + ">.");
1222
1227
  i && i._owner && i._owner !== vt.current && (x = " It was passed a child from " + F(i._owner.type) + "."), ye(i), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, x), ye(null);
1223
1228
  }
1224
1229
  }
1225
- function $t(i, h) {
1230
+ function Gt(i, h) {
1226
1231
  {
1227
1232
  if (typeof i != "object")
1228
1233
  return;
1229
1234
  if (Qe(i))
1230
1235
  for (var g = 0; g < i.length; g++) {
1231
1236
  var x = i[g];
1232
- pe(x) && Bt(x, h);
1237
+ pe(x) && $t(x, h);
1233
1238
  }
1234
1239
  else if (pe(i))
1235
1240
  i._store && (i._store.validated = !0);
@@ -1237,11 +1242,11 @@ Check the top-level render call using <` + g + ">.");
1237
1242
  var k = se(i);
1238
1243
  if (typeof k == "function" && k !== i.entries)
1239
1244
  for (var L = k.call(i), P; !(P = L.next()).done; )
1240
- pe(P.value) && Bt(P.value, h);
1245
+ pe(P.value) && $t(P.value, h);
1241
1246
  }
1242
1247
  }
1243
1248
  }
1244
- function Cn(i) {
1249
+ function Sn(i) {
1245
1250
  {
1246
1251
  var h = i.type;
1247
1252
  if (h == null || typeof h == "string")
@@ -1249,7 +1254,7 @@ Check the top-level render call using <` + g + ">.");
1249
1254
  var g;
1250
1255
  if (typeof h == "function")
1251
1256
  g = h.propTypes;
1252
- else if (typeof h == "object" && (h.$$typeof === d || // Note: Memo only checks outer props here.
1257
+ else if (typeof h == "object" && (h.$$typeof === u || // Note: Memo only checks outer props here.
1253
1258
  // Inner props are checked in the reconciler.
1254
1259
  h.$$typeof === E))
1255
1260
  g = h.propTypes;
@@ -1266,7 +1271,7 @@ Check the top-level render call using <` + g + ">.");
1266
1271
  typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1267
1272
  }
1268
1273
  }
1269
- function Sn(i) {
1274
+ function On(i) {
1270
1275
  {
1271
1276
  for (var h = Object.keys(i.props), g = 0; g < h.length; g++) {
1272
1277
  var x = h[g];
@@ -1278,7 +1283,7 @@ Check the top-level render call using <` + g + ">.");
1278
1283
  i.ref !== null && (ye(i), C("Invalid attribute `ref` supplied to `React.Fragment`."), ye(null));
1279
1284
  }
1280
1285
  }
1281
- function Gt(i, h, g, x, k, L) {
1286
+ function Vt(i, h, g, x, k, L) {
1282
1287
  {
1283
1288
  var P = S(i);
1284
1289
  if (!P) {
@@ -1298,36 +1303,36 @@ Check the top-level render call using <` + g + ">.");
1298
1303
  if (x)
1299
1304
  if (Qe(ge)) {
1300
1305
  for (var Ye = 0; Ye < ge.length; Ye++)
1301
- $t(ge[Ye], i);
1306
+ Gt(ge[Ye], i);
1302
1307
  Object.freeze && Object.freeze(ge);
1303
1308
  } else
1304
1309
  C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1305
1310
  else
1306
- $t(ge, i);
1311
+ Gt(ge, i);
1307
1312
  }
1308
- return i === e ? Sn(q) : Cn(q), q;
1313
+ return i === e ? On(q) : Sn(q), q;
1309
1314
  }
1310
1315
  }
1311
- function On(i, h, g) {
1312
- return Gt(i, h, g, !0);
1313
- }
1314
1316
  function Tn(i, h, g) {
1315
- return Gt(i, h, g, !1);
1317
+ return Vt(i, h, g, !0);
1316
1318
  }
1317
- var Mn = Tn, Rn = On;
1318
- at.Fragment = e, at.jsx = Mn, at.jsxs = Rn;
1319
+ function Mn(i, h, g) {
1320
+ return Vt(i, h, g, !1);
1321
+ }
1322
+ var Rn = Mn, Pn = Tn;
1323
+ at.Fragment = e, at.jsx = Rn, at.jsxs = Pn;
1319
1324
  }()), at;
1320
1325
  }
1321
- process.env.NODE_ENV === "production" ? Lt.exports = ma() : Lt.exports = ga();
1326
+ process.env.NODE_ENV === "production" ? Lt.exports = va() : Lt.exports = ba();
1322
1327
  var c = Lt.exports;
1323
- function yn(t) {
1328
+ function En(t) {
1324
1329
  return t.title.search("<") > -1 ? /* @__PURE__ */ c.jsx("button", { className: "svg", dangerouslySetInnerHTML: { __html: t.title } }) : /* @__PURE__ */ c.jsx("button", { children: t.title });
1325
1330
  }
1326
- const va = /* @__PURE__ */ c.jsxs("svg", { className: "closeIcon", width: "14", height: "14", fill: "none", stroke: "#666666", strokeMiterlimit: "10", children: [
1331
+ const ya = /* @__PURE__ */ c.jsxs("svg", { className: "closeIcon", width: "14", height: "14", fill: "none", stroke: "#666666", strokeMiterlimit: "10", children: [
1327
1332
  /* @__PURE__ */ c.jsx("circle", { cx: "7", cy: "7", r: "6" }),
1328
1333
  /* @__PURE__ */ c.jsx("line", { x1: "4", y1: "4", x2: "10", y2: "10" }),
1329
1334
  /* @__PURE__ */ c.jsx("line", { x1: "4", y1: "10", x2: "10", y2: "4" })
1330
- ] }), ba = /* @__PURE__ */ c.jsx("svg", { className: "dragIcon", width: "14", height: "14", fill: "#666666", stroke: "none", children: /* @__PURE__ */ c.jsx(
1335
+ ] }), Ea = /* @__PURE__ */ c.jsx("svg", { className: "dragIcon", width: "14", height: "14", fill: "#666666", stroke: "none", children: /* @__PURE__ */ c.jsx(
1331
1336
  "path",
1332
1337
  {
1333
1338
  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
@@ -1335,35 +1340,35 @@ 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
1335
1340
  C11,8.22,10.74,8,10.43,8z`
1336
1341
  }
1337
1342
  ) });
1338
- function ya(t) {
1339
- return /* @__PURE__ */ c.jsx(hn.Item, { value: t.title, children: /* @__PURE__ */ c.jsxs("div", { children: [
1340
- ba,
1343
+ function wa(t) {
1344
+ return /* @__PURE__ */ c.jsx(pn.Item, { value: t.title, children: /* @__PURE__ */ c.jsxs("div", { children: [
1345
+ Ea,
1341
1346
  /* @__PURE__ */ c.jsx("span", { children: t.title }),
1342
1347
  /* @__PURE__ */ c.jsx("button", { className: "closeIcon", onClick: () => {
1343
1348
  t.onDelete(t.index);
1344
- }, children: va })
1349
+ }, children: ya })
1345
1350
  ] }) }, t.title);
1346
1351
  }
1347
- function Ea(t) {
1352
+ function xa(t) {
1348
1353
  const [n, a] = oe(!1), [e, r] = oe(t.options), s = (p) => {
1349
1354
  t.onDragComplete(p), r(p);
1350
- }, u = (p) => {
1355
+ }, f = (p) => {
1351
1356
  const v = [...e];
1352
1357
  v.splice(p, 1), s(v);
1353
1358
  }, l = [];
1354
1359
  e.forEach((p, v) => {
1355
- l.push(/* @__PURE__ */ c.jsx(ya, { index: v, title: p, onDelete: u }, p));
1360
+ l.push(/* @__PURE__ */ c.jsx(wa, { index: v, title: p, onDelete: f }, p));
1356
1361
  });
1357
- let d = "dropdown draggable";
1358
- return t.subdropdown && (d += " subdropdown"), /* @__PURE__ */ c.jsxs("div", { className: d, onMouseEnter: () => a(!0), onMouseLeave: () => a(!1), children: [
1359
- /* @__PURE__ */ c.jsx(yn, { title: t.title }),
1360
- /* @__PURE__ */ c.jsx(hn.Group, { axis: "y", values: e, onReorder: s, style: { visibility: n ? "visible" : "hidden" }, children: l })
1362
+ let u = "dropdown draggable";
1363
+ return t.subdropdown && (u += " subdropdown"), /* @__PURE__ */ c.jsxs("div", { className: u, onMouseEnter: () => a(!0), onMouseLeave: () => a(!1), children: [
1364
+ /* @__PURE__ */ c.jsx(En, { title: t.title }),
1365
+ /* @__PURE__ */ c.jsx(pn.Group, { axis: "y", values: e, onReorder: s, style: { visibility: n ? "visible" : "hidden" }, children: l })
1361
1366
  ] });
1362
1367
  }
1363
- function wa(t) {
1368
+ function Ca(t) {
1364
1369
  const [n, a] = oe(!1), e = [];
1365
- t.options.map((s, u) => {
1366
- t.onSelect !== void 0 && (s.onSelect = t.onSelect), e.push(/* @__PURE__ */ c.jsx(xa, { option: s }, u));
1370
+ t.options.map((s, f) => {
1371
+ t.onSelect !== void 0 && (s.onSelect = t.onSelect), e.push(/* @__PURE__ */ c.jsx(Sa, { option: s }, f));
1367
1372
  });
1368
1373
  let r = "dropdown";
1369
1374
  return t.subdropdown && (r += " subdropdown"), /* @__PURE__ */ c.jsxs(
@@ -1373,7 +1378,7 @@ function wa(t) {
1373
1378
  onMouseEnter: () => a(!0),
1374
1379
  onMouseLeave: () => a(!1),
1375
1380
  children: [
1376
- /* @__PURE__ */ c.jsx(yn, { title: t.title }),
1381
+ /* @__PURE__ */ c.jsx(En, { title: t.title }),
1377
1382
  /* @__PURE__ */ c.jsx(
1378
1383
  "ul",
1379
1384
  {
@@ -1385,13 +1390,13 @@ function wa(t) {
1385
1390
  }
1386
1391
  );
1387
1392
  }
1388
- function xa(t) {
1393
+ function Sa(t) {
1389
1394
  const { option: n } = t, [a, e] = oe("");
1390
1395
  let r;
1391
1396
  switch (n.type) {
1392
1397
  case "draggable":
1393
1398
  r = /* @__PURE__ */ c.jsx(
1394
- Ea,
1399
+ xa,
1395
1400
  {
1396
1401
  title: n.title,
1397
1402
  options: n.value,
@@ -1404,7 +1409,7 @@ function xa(t) {
1404
1409
  break;
1405
1410
  case "dropdown":
1406
1411
  r = /* @__PURE__ */ c.jsx(
1407
- wa,
1412
+ Ca,
1408
1413
  {
1409
1414
  title: n.title,
1410
1415
  options: n.value,
@@ -1425,30 +1430,32 @@ function xa(t) {
1425
1430
  );
1426
1431
  break;
1427
1432
  }
1428
- return /* @__PURE__ */ c.jsx("li", { className: a === n.title ? "selected" : "", children: r }, ea());
1433
+ return /* @__PURE__ */ c.jsx("li", { className: a === n.title ? "selected" : "", children: r }, ta());
1429
1434
  }
1430
- function di(t, n) {
1431
- const a = [], e = [];
1432
- n.components && a.push(ra), n.theatre && (a.push(oa), sa(t)), n.three && (a.push(da), e.push(fa)), n.tweakpane && a.push(pa);
1433
- function r(u) {
1434
- switch (a.forEach((l) => l(t, u)), u.event) {
1435
+ function di(t) {
1436
+ const n = [], a = [];
1437
+ t.components.forEach((s) => {
1438
+ s instanceof oa ? n.push(sa) : s instanceof Ut ? (n.push(ca), la(t)) : s instanceof ha ? (n.push(pa), a.push(ma)) : s instanceof yn && n.push(ga);
1439
+ });
1440
+ function e(s) {
1441
+ switch (n.forEach((f) => f(t, s)), s.event) {
1435
1442
  case "custom":
1436
- _.dispatchEvent({ type: j.CUSTOM, value: u.data });
1443
+ _.dispatchEvent({ type: j.CUSTOM, value: s.data });
1437
1444
  break;
1438
1445
  }
1439
1446
  }
1440
- function s(u) {
1441
- switch (e.forEach((l) => l(t, u)), u.event) {
1447
+ function r(s) {
1448
+ switch (a.forEach((f) => f(t, s)), s.event) {
1442
1449
  case "custom":
1443
- _.dispatchEvent({ type: j.CUSTOM, value: u.data });
1450
+ _.dispatchEvent({ type: j.CUSTOM, value: s.data });
1444
1451
  break;
1445
1452
  }
1446
1453
  }
1447
- t.listen((u) => {
1448
- t.editor ? s(u) : r(u);
1454
+ t.listen((s) => {
1455
+ t.editor ? r(s) : e(s);
1449
1456
  });
1450
1457
  }
1451
- const Ca = `out vec3 worldPosition;
1458
+ const Oa = `out vec3 worldPosition;
1452
1459
  uniform float uDistance;
1453
1460
 
1454
1461
  void main() {
@@ -1457,7 +1464,7 @@ void main() {
1457
1464
  worldPosition.xz += cameraPosition.xz;
1458
1465
 
1459
1466
  gl_Position = projectionMatrix * modelViewMatrix * vec4(worldPosition, 1.0);
1460
- }`, Sa = `out vec4 fragColor;
1467
+ }`, Ta = `out vec4 fragColor;
1461
1468
  in vec3 worldPosition;
1462
1469
 
1463
1470
  uniform float uDivisions;
@@ -1525,14 +1532,14 @@ void main() {
1525
1532
 
1526
1533
  if (fragColor.a <= 0.0) discard;
1527
1534
  }`;
1528
- class Oa extends cn {
1535
+ class Ma extends ln {
1529
1536
  constructor(n) {
1530
1537
  super({
1531
1538
  extensions: {
1532
1539
  derivatives: !0
1533
1540
  },
1534
- glslVersion: An,
1535
- side: Dn,
1541
+ glslVersion: Dn,
1542
+ side: In,
1536
1543
  transparent: !0,
1537
1544
  uniforms: {
1538
1545
  uScale: {
@@ -1554,17 +1561,17 @@ class Oa extends cn {
1554
1561
  value: (n == null ? void 0 : n.gridOpacity) !== void 0 ? n == null ? void 0 : n.gridOpacity : 0.25
1555
1562
  }
1556
1563
  },
1557
- vertexShader: Ca,
1558
- fragmentShader: Sa,
1564
+ vertexShader: Oa,
1565
+ fragmentShader: Ta,
1559
1566
  name: "InfiniteGrid",
1560
1567
  depthWrite: !1
1561
1568
  });
1562
1569
  }
1563
1570
  }
1564
- class Ta extends In {
1571
+ class Ra extends Nn {
1565
1572
  constructor() {
1566
- const a = new Oa();
1567
- super(new Nn(2, 2), a);
1573
+ const a = new Ma();
1574
+ super(new Ln(2, 2), a);
1568
1575
  Z(this, "gridMaterial");
1569
1576
  this.gridMaterial = a, this.frustumCulled = !1, this.name = "InfiniteGridHelper", this.position.y = 0.1;
1570
1577
  }
@@ -1572,7 +1579,7 @@ class Ta extends In {
1572
1579
  this.gridMaterial.needsUpdate = !0;
1573
1580
  }
1574
1581
  }
1575
- const Ma = `#include <common>
1582
+ const Pa = `#include <common>
1576
1583
  #include <batching_pars_vertex>
1577
1584
  #include <uv_pars_vertex>
1578
1585
  #include <color_pars_vertex>
@@ -1602,7 +1609,7 @@ void main() {
1602
1609
  #include <logdepthbuf_vertex>
1603
1610
  #include <clipping_planes_vertex>
1604
1611
  #include <worldpos_vertex>
1605
- }`, Ra = `
1612
+ }`, _a = `
1606
1613
  #include <common>
1607
1614
  #include <uv_pars_fragment>
1608
1615
  #include <clipping_planes_pars_fragment>
@@ -1611,18 +1618,18 @@ void main() {
1611
1618
  #include <clipping_planes_fragment>
1612
1619
  gl_FragColor = vec4(vec3(vUv, 0.0), 1.0);
1613
1620
  }`;
1614
- class Pa extends cn {
1621
+ class ja extends ln {
1615
1622
  constructor() {
1616
1623
  super({
1617
1624
  defines: {
1618
1625
  USE_UV: ""
1619
1626
  },
1620
- vertexShader: Ma,
1621
- fragmentShader: Ra
1627
+ vertexShader: Pa,
1628
+ fragmentShader: _a
1622
1629
  });
1623
1630
  }
1624
1631
  }
1625
- function Ut(t) {
1632
+ function Bt(t) {
1626
1633
  const [n, a] = oe(t.open !== void 0 ? t.open : !0), e = !n || t.children === void 0;
1627
1634
  return /* @__PURE__ */ c.jsxs("div", { className: `accordion ${e ? "hide" : ""}`, children: [
1628
1635
  /* @__PURE__ */ c.jsxs(
@@ -1649,10 +1656,10 @@ function Ut(t) {
1649
1656
  /* @__PURE__ */ c.jsx("div", { className: n ? "open" : "", children: /* @__PURE__ */ c.jsx("div", { children: t.children }) })
1650
1657
  ] });
1651
1658
  }
1652
- function En(t) {
1659
+ function wn(t) {
1653
1660
  const [n, a] = oe(!1), e = t.child.children.length > 0, r = [];
1654
1661
  return t.child.children.length > 0 && t.child.children.map((s) => {
1655
- r.push(/* @__PURE__ */ c.jsx(En, { child: s, three: t.three }, Math.random()));
1662
+ r.push(/* @__PURE__ */ c.jsx(wn, { child: s, three: t.three }, Math.random()));
1656
1663
  }), /* @__PURE__ */ c.jsxs("div", { className: "childObject", children: [
1657
1664
  /* @__PURE__ */ c.jsxs("div", { className: "child", children: [
1658
1665
  e ? /* @__PURE__ */ c.jsx(
@@ -1680,25 +1687,25 @@ function En(t) {
1680
1687
  children: t.child.name.length > 0 ? `${t.child.name} (${t.child.type})` : `${t.child.type}::${t.child.uuid}`
1681
1688
  }
1682
1689
  ),
1683
- /* @__PURE__ */ c.jsx("div", { className: `icon ${ca(t.child)}` })
1690
+ /* @__PURE__ */ c.jsx("div", { className: `icon ${ua(t.child)}` })
1684
1691
  ] }),
1685
1692
  /* @__PURE__ */ c.jsx("div", { className: n ? "open" : "", children: /* @__PURE__ */ c.jsx("div", { className: "container", children: r }) })
1686
1693
  ] }, Math.random());
1687
1694
  }
1688
- function _a(t) {
1695
+ function ka(t) {
1689
1696
  const n = [];
1690
1697
  return t.child.children.map((a) => {
1691
- n.push(/* @__PURE__ */ c.jsx(En, { child: a, three: t.three }, Math.random()));
1698
+ n.push(/* @__PURE__ */ c.jsx(wn, { child: a, three: t.three }, Math.random()));
1692
1699
  }), /* @__PURE__ */ c.jsx("div", { className: `scene ${t.class !== void 0 ? t.class : ""}`, children: n });
1693
1700
  }
1694
- const ja = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA5klEQVRoge2Y0Q6EIAwE6cX//+X6cCFpSMEKVTdk501OpRNKiyelFC0b8Ps6gCwoggZF0KAIGhRBgyJoUAQNiqCxjciR9SLV//eZiAyvK3U8i/QVaQO2YyLSFVvlkdTKDjJCukh2ykR5ZEW+kHmlatl90RaBtDkK/w7CYhuRUEO0ee3l+J3m55Vm+17vtwjTnV1V3QA8qfbeUXCzRWDpiLLS+OyzvRW7IzW9R+okvclsqR09743bo0yUpc1+lSJvNsa002+Euk9GKzV7SmZDRIMiaFAEDYqgQRE0KIIGRdCgCBoUQeMEMERadX7YUz8AAAAASUVORK5CYII=";
1695
- function ka(t) {
1701
+ const Aa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA5klEQVRoge2Y0Q6EIAwE6cX//+X6cCFpSMEKVTdk501OpRNKiyelFC0b8Ps6gCwoggZF0KAIGhRBgyJoUAQNiqCxjciR9SLV//eZiAyvK3U8i/QVaQO2YyLSFVvlkdTKDjJCukh2ykR5ZEW+kHmlatl90RaBtDkK/w7CYhuRUEO0ee3l+J3m55Vm+17vtwjTnV1V3QA8qfbeUXCzRWDpiLLS+OyzvRW7IzW9R+okvclsqR09743bo0yUpc1+lSJvNsa002+Euk9GKzV7SmZDRIMiaFAEDYqgQRE0KIIGRdCgCBoUQeMEMERadX7YUz8AAAAASUVORK5CYII=";
1702
+ function Da(t) {
1696
1703
  return "items" in t;
1697
1704
  }
1698
1705
  function Ue(t) {
1699
1706
  const n = [];
1700
1707
  return t.items.forEach((a) => {
1701
- ka(a) ? n.push(
1708
+ Da(a) ? n.push(
1702
1709
  /* @__PURE__ */ c.jsx(Ue, { title: a.title, items: a.items }, Math.random())
1703
1710
  ) : n.push(
1704
1711
  /* @__PURE__ */ c.jsx(
@@ -1719,9 +1726,9 @@ function Ue(t) {
1719
1726
  Math.random()
1720
1727
  )
1721
1728
  );
1722
- }), /* @__PURE__ */ c.jsx(Ut, { label: t.title, open: t.expanded === !0, children: n });
1729
+ }), /* @__PURE__ */ c.jsx(Bt, { label: t.title, open: t.expanded === !0, children: n });
1723
1730
  }
1724
- function Aa(t) {
1731
+ function Ia(t) {
1725
1732
  return !(t === "alphaHash" || t === "alphaToCoverage" || t === "attenuationDistance" || t === "colorWrite" || t === "combine" || t === "defaultAttributeValues" || t === "depthFunc" || t === "forceSinglePass" || t === "glslVersion" || t === "linewidth" || t === "normalMapType" || t === "precision" || t === "premultipliedAlpha" || t === "shadowSide" || t === "side" || t === "toneMapped" || t === "uniformsGroups" || t === "uniformsNeedUpdate" || t === "userData" || t === "vertexColors" || t === "version" || t === "wireframeLinecap" || t === "wireframeLinejoin" || t === "wireframeLinewidth" || t.slice(0, 5) === "blend" || t.slice(0, 4) === "clip" || t.slice(0, 7) === "polygon" || t.slice(0, 7) === "stencil" || t.slice(0, 2) === "is");
1726
1733
  }
1727
1734
  function De(t) {
@@ -1873,10 +1880,10 @@ function De(t) {
1873
1880
  }
1874
1881
  return t;
1875
1882
  }
1876
- function Da(t) {
1883
+ function Na(t) {
1877
1884
  return t.toLowerCase().search("intensity") > -1 || t === "anisotropyRotation" || t === "bumpScale" || t === "clearcoatRoughness" || t === "displacementBias" || t === "displacementScale" || t === "metalness" || t === "opacity" || t === "reflectivity" || t === "refractionRatio" || t === "roughness" || t === "sheenRoughness" || t === "thickness";
1878
1885
  }
1879
- function Ia() {
1886
+ function La() {
1880
1887
  const t = document.createElement("input");
1881
1888
  return t.type = "file", new Promise((n, a) => {
1882
1889
  t.addEventListener("change", function() {
@@ -1891,50 +1898,50 @@ function Ia() {
1891
1898
  }), t.click();
1892
1899
  });
1893
1900
  }
1894
- function qt(t, n, a) {
1901
+ function Zt(t, n, a) {
1895
1902
  const e = [];
1896
1903
  for (const r in t) {
1897
- if (!Aa(r))
1904
+ if (!Ia(r))
1898
1905
  continue;
1899
- const s = typeof t[r], u = t[r];
1906
+ const s = typeof t[r], f = t[r];
1900
1907
  if (s === "boolean" || s === "number" || s === "string") {
1901
1908
  const l = {
1902
1909
  title: De(r),
1903
1910
  prop: r,
1904
1911
  type: s,
1905
- value: u,
1912
+ value: f,
1906
1913
  min: void 0,
1907
1914
  max: void 0,
1908
- onChange: (d, p) => {
1915
+ onChange: (u, p) => {
1909
1916
  var E;
1910
- a.updateObject(n.uuid, `material.${d}`, p), s === "boolean" && a.updateObject(n.uuid, "material.needsUpdate", !0);
1917
+ a.updateObject(n.uuid, `material.${u}`, p), s === "boolean" && a.updateObject(n.uuid, "material.needsUpdate", !0);
1911
1918
  const v = (E = a.scene) == null ? void 0 : E.getObjectByProperty("uuid", n.uuid);
1912
- v !== void 0 && Q(v, `material.${d}`, p);
1919
+ v !== void 0 && Q(v, `material.${u}`, p);
1913
1920
  }
1914
1921
  };
1915
- Da(r) && (l.value = Number(u), l.type = "range", l.min = 0, l.max = 1, l.step = 0.01), e.push(l);
1922
+ Na(r) && (l.value = Number(f), l.type = "range", l.min = 0, l.max = 1, l.step = 0.01), e.push(l);
1916
1923
  } else if (s === "object")
1917
- if (u.isColor)
1924
+ if (f.isColor)
1918
1925
  e.push({
1919
1926
  title: De(r),
1920
1927
  prop: r,
1921
1928
  type: "color",
1922
- value: u,
1923
- onChange: (l, d) => {
1929
+ value: f,
1930
+ onChange: (l, u) => {
1924
1931
  var E;
1925
- const p = new Ft(d);
1932
+ const p = new Ft(u);
1926
1933
  a.updateObject(n.uuid, `material.${l}`, p);
1927
1934
  const v = (E = a.scene) == null ? void 0 : E.getObjectByProperty("uuid", n.uuid);
1928
1935
  v !== void 0 && Q(v, `material.${l}`, p);
1929
1936
  }
1930
1937
  });
1931
- else if (Array.isArray(u)) {
1938
+ else if (Array.isArray(f)) {
1932
1939
  const l = [];
1933
- for (const d in u)
1940
+ for (const u in f)
1934
1941
  l.push({
1935
- title: `${d}`,
1936
- type: `${typeof u[d]}`,
1937
- value: u[d],
1942
+ title: `${u}`,
1943
+ type: `${typeof f[u]}`,
1944
+ value: f[u],
1938
1945
  onChange: (p, v) => {
1939
1946
  var w;
1940
1947
  a.updateObject(n.uuid, `material.${r}`, v);
@@ -1948,13 +1955,13 @@ function qt(t, n, a) {
1948
1955
  });
1949
1956
  } else {
1950
1957
  const l = [];
1951
- for (const d in u) {
1952
- const p = u[d];
1958
+ for (const u in f) {
1959
+ const p = f[u];
1953
1960
  switch (typeof p) {
1954
1961
  case "boolean":
1955
1962
  case "number":
1956
1963
  case "string":
1957
- d === "src" ? e.push({
1964
+ u === "src" ? e.push({
1958
1965
  title: De(r),
1959
1966
  type: "image",
1960
1967
  value: p,
@@ -1967,40 +1974,40 @@ function qt(t, n, a) {
1967
1974
  });
1968
1975
  }
1969
1976
  }) : l.push({
1970
- title: `${De(d)}`,
1971
- prop: `material.${r}.${d}`,
1972
- type: `${typeof t[r][d]}`,
1973
- value: u[d],
1977
+ title: `${De(u)}`,
1978
+ prop: `material.${r}.${u}`,
1979
+ type: `${typeof t[r][u]}`,
1980
+ value: f[u],
1974
1981
  onChange: (E, w) => {
1975
1982
  var T;
1976
- a.updateObject(n.uuid, `material.${r}.${d}`, w);
1983
+ a.updateObject(n.uuid, `material.${r}.${u}`, w);
1977
1984
  const R = (T = a.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1978
- R !== void 0 && Q(R, `material.${r}.${d}`, w);
1985
+ R !== void 0 && Q(R, `material.${r}.${u}`, w);
1979
1986
  }
1980
1987
  });
1981
1988
  break;
1982
1989
  case "object":
1983
1990
  p.value !== void 0 && p.value.src !== void 0 ? l.push({
1984
- title: De(d),
1991
+ title: De(u),
1985
1992
  type: "image",
1986
1993
  value: p.value.src,
1987
1994
  onChange: (E, w) => {
1988
1995
  var T;
1989
- a.createTexture(n.uuid, `material.${r}.${d}.value`, w);
1996
+ a.createTexture(n.uuid, `material.${r}.${u}.value`, w);
1990
1997
  const R = (T = a.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1991
1998
  R !== void 0 && Nt(w).then((G) => {
1992
- Q(R, `material.${r}.${d}.value`, G);
1999
+ Q(R, `material.${r}.${u}.value`, G);
1993
2000
  });
1994
2001
  }
1995
2002
  }) : l.push({
1996
- title: d,
2003
+ title: u,
1997
2004
  type: `${typeof p.value}`,
1998
2005
  value: p.value,
1999
2006
  onChange: (E, w) => {
2000
2007
  var T;
2001
- a.updateObject(n.uuid, `material.${r}.${d}.value`, w);
2008
+ a.updateObject(n.uuid, `material.${r}.${u}.value`, w);
2002
2009
  const R = (T = a.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
2003
- R !== void 0 && Q(R, `material.${r}.${d}.value`, w);
2010
+ R !== void 0 && Q(R, `material.${r}.${u}.value`, w);
2004
2011
  }
2005
2012
  });
2006
2013
  break;
@@ -2012,7 +2019,7 @@ function qt(t, n, a) {
2012
2019
  });
2013
2020
  }
2014
2021
  else
2015
- u !== void 0 && console.log("other:", r, s, u);
2022
+ f !== void 0 && console.log("other:", r, s, f);
2016
2023
  }
2017
2024
  return e.sort((r, s) => r.title < s.title ? -1 : r.title > s.title ? 1 : 0), e.push({
2018
2025
  title: "Update Material",
@@ -2022,7 +2029,7 @@ function qt(t, n, a) {
2022
2029
  }
2023
2030
  }), e;
2024
2031
  }
2025
- function Na(t, n) {
2032
+ function Fa(t, n) {
2026
2033
  const a = t.material;
2027
2034
  if (Array.isArray(a)) {
2028
2035
  const e = [], r = a.length;
@@ -2032,7 +2039,7 @@ function Na(t, n) {
2032
2039
  Ue,
2033
2040
  {
2034
2041
  title: `Material ${s}`,
2035
- items: qt(a[s], t, n)
2042
+ items: Zt(a[s], t, n)
2036
2043
  },
2037
2044
  `Material ${s}`
2038
2045
  )
@@ -2043,14 +2050,14 @@ function Na(t, n) {
2043
2050
  Ue,
2044
2051
  {
2045
2052
  title: "Material",
2046
- items: qt(a, t, n)
2053
+ items: Zt(a, t, n)
2047
2054
  }
2048
2055
  );
2049
2056
  }
2050
2057
  function it(t) {
2051
2058
  let n = t.value;
2052
- n !== void 0 && n.isColor !== void 0 && (n = na(t.value));
2053
- const [a, e] = oe(n), r = Ce(null), s = Ce(null), u = Ce(null);
2059
+ n !== void 0 && n.isColor !== void 0 && (n = aa(t.value));
2060
+ const [a, e] = oe(n), r = Ce(null), s = Ce(null), f = Ce(null);
2054
2061
  Fe(() => {
2055
2062
  var K;
2056
2063
  let v = !1, E = -1, w = 0, R = Number(a);
@@ -2072,11 +2079,11 @@ function it(t) {
2072
2079
  };
2073
2080
  }, [a]);
2074
2081
  const l = t.type === "string" && (a.length > 100 || a.search(`
2075
- `) > -1), d = l || t.type === "image", p = (v) => {
2082
+ `) > -1), u = l || t.type === "image", p = (v) => {
2076
2083
  let E = v.target.value;
2077
2084
  t.type === "boolean" && (E = v.target.checked), e(E), t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, E);
2078
2085
  };
2079
- return /* @__PURE__ */ c.jsxs("div", { className: `field ${d ? "block" : ""}`, children: [
2086
+ return /* @__PURE__ */ c.jsxs("div", { className: `field ${u ? "block" : ""}`, children: [
2080
2087
  t.type !== "button" && /* @__PURE__ */ c.jsx("label", { ref: r, children: t.title }, "fieldLabel"),
2081
2088
  t.type === "string" && !l && /* @__PURE__ */ c.jsx(
2082
2089
  "input",
@@ -2146,14 +2153,14 @@ function it(t) {
2146
2153
  children: t.title
2147
2154
  }
2148
2155
  ),
2149
- t.type === "image" && /* @__PURE__ */ c.jsx("img", { ref: u, onClick: () => {
2150
- Ia().then((v) => {
2151
- u.current.src = v, t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, v);
2156
+ t.type === "image" && /* @__PURE__ */ c.jsx("img", { ref: f, onClick: () => {
2157
+ La().then((v) => {
2158
+ f.current.src = v, t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, v);
2152
2159
  });
2153
- }, src: a.length > 0 ? a : ja })
2160
+ }, src: a.length > 0 ? a : Aa })
2154
2161
  ] });
2155
2162
  }
2156
- function Zt(t) {
2163
+ function Jt(t) {
2157
2164
  switch (t) {
2158
2165
  case "fov":
2159
2166
  return "FOV";
@@ -2182,12 +2189,12 @@ function Zt(t) {
2182
2189
  }
2183
2190
  return t;
2184
2191
  }
2185
- function La(t, n) {
2192
+ function Ua(t, n) {
2186
2193
  const a = [];
2187
2194
  if (t.perspectiveCameraInfo !== void 0)
2188
2195
  for (const e in t.perspectiveCameraInfo)
2189
2196
  a.push({
2190
- title: Zt(e),
2197
+ title: Jt(e),
2191
2198
  prop: e,
2192
2199
  type: "number",
2193
2200
  step: 0.01,
@@ -2195,14 +2202,14 @@ function La(t, n) {
2195
2202
  onChange: (r, s) => {
2196
2203
  var l;
2197
2204
  n.updateObject(t.uuid, r, s), n.requestMethod(t.uuid, "updateProjectionMatrix");
2198
- const u = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2199
- u !== void 0 && (Q(u, r, s), u.updateProjectionMatrix());
2205
+ const f = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2206
+ f !== void 0 && (Q(f, r, s), f.updateProjectionMatrix());
2200
2207
  }
2201
2208
  });
2202
2209
  else if (t.orthographicCameraInfo !== void 0)
2203
2210
  for (const e in t.orthographicCameraInfo)
2204
2211
  a.push({
2205
- title: Zt(e),
2212
+ title: Jt(e),
2206
2213
  prop: e,
2207
2214
  type: "number",
2208
2215
  step: 0.01,
@@ -2210,8 +2217,8 @@ function La(t, n) {
2210
2217
  onChange: (r, s) => {
2211
2218
  var l;
2212
2219
  n.updateObject(t.uuid, r, s), n.requestMethod(t.uuid, "updateProjectionMatrix");
2213
- const u = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2214
- u !== void 0 && (Q(u, r, s), u.updateProjectionMatrix());
2220
+ const f = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2221
+ f !== void 0 && (Q(f, r, s), f.updateProjectionMatrix());
2215
2222
  }
2216
2223
  });
2217
2224
  return /* @__PURE__ */ c.jsx(
@@ -2222,28 +2229,28 @@ function La(t, n) {
2222
2229
  }
2223
2230
  );
2224
2231
  }
2225
- const Fa = Math.PI / 180, Ua = 180 / Math.PI;
2232
+ const Ba = Math.PI / 180, $a = 180 / Math.PI;
2226
2233
  function Ke(t, n, a, e, r) {
2227
2234
  return e + (t - n) * (r - e) / (a - n);
2228
2235
  }
2229
- function Ba(t) {
2230
- return t * Fa;
2236
+ function Ga(t) {
2237
+ return t * Ba;
2231
2238
  }
2232
2239
  function kt(t) {
2233
- return t * Ua;
2240
+ return t * $a;
2234
2241
  }
2235
- function $a(t, n) {
2236
- const a = new Ln();
2242
+ function Va(t, n) {
2243
+ const a = new Fn();
2237
2244
  a.elements = t.matrix;
2238
- const e = new Y(), r = new Fn(), s = new Y();
2245
+ const e = new Y(), r = new Un(), s = new Y();
2239
2246
  t.uuid.length > 0 && (e.setFromMatrixPosition(a), r.setFromRotationMatrix(a), s.setFromMatrixScale(a));
2240
- const u = (d, p) => {
2247
+ const f = (u, p) => {
2241
2248
  var E;
2242
- n.updateObject(t.uuid, d, p);
2249
+ n.updateObject(t.uuid, u, p);
2243
2250
  const v = (E = n.scene) == null ? void 0 : E.getObjectByProperty("uuid", t.uuid);
2244
- v !== void 0 && Q(v, d, p);
2245
- }, l = (d, p) => {
2246
- u(d, Ba(p));
2251
+ v !== void 0 && Q(v, u, p);
2252
+ }, l = (u, p) => {
2253
+ f(u, Ga(p));
2247
2254
  };
2248
2255
  return /* @__PURE__ */ c.jsx(
2249
2256
  Ue,
@@ -2255,21 +2262,21 @@ function $a(t, n) {
2255
2262
  prop: "position.x",
2256
2263
  type: "number",
2257
2264
  value: e.x,
2258
- onChange: u
2265
+ onChange: f
2259
2266
  },
2260
2267
  {
2261
2268
  title: "Position Y",
2262
2269
  prop: "position.y",
2263
2270
  type: "number",
2264
2271
  value: e.y,
2265
- onChange: u
2272
+ onChange: f
2266
2273
  },
2267
2274
  {
2268
2275
  title: "Position Z",
2269
2276
  prop: "position.z",
2270
2277
  type: "number",
2271
2278
  value: e.z,
2272
- onChange: u
2279
+ onChange: f
2273
2280
  },
2274
2281
  {
2275
2282
  title: "Rotation X",
@@ -2307,7 +2314,7 @@ function $a(t, n) {
2307
2314
  type: "number",
2308
2315
  value: s.x,
2309
2316
  step: 0.01,
2310
- onChange: u
2317
+ onChange: f
2311
2318
  },
2312
2319
  {
2313
2320
  title: "Scale Y",
@@ -2315,7 +2322,7 @@ function $a(t, n) {
2315
2322
  type: "number",
2316
2323
  value: s.y,
2317
2324
  step: 0.01,
2318
- onChange: u
2325
+ onChange: f
2319
2326
  },
2320
2327
  {
2321
2328
  title: "Scale Z",
@@ -2323,13 +2330,13 @@ function $a(t, n) {
2323
2330
  type: "number",
2324
2331
  value: s.z,
2325
2332
  step: 0.01,
2326
- onChange: u
2333
+ onChange: f
2327
2334
  }
2328
2335
  ]
2329
2336
  }
2330
2337
  );
2331
2338
  }
2332
- function Jt(t) {
2339
+ function Qt(t) {
2333
2340
  switch (t) {
2334
2341
  case "color":
2335
2342
  return "Color";
@@ -2348,34 +2355,34 @@ function Jt(t) {
2348
2355
  }
2349
2356
  return t;
2350
2357
  }
2351
- function Ga(t, n) {
2358
+ function za(t, n) {
2352
2359
  const a = [];
2353
2360
  if (t.lightInfo !== void 0)
2354
2361
  for (const e in t.lightInfo) {
2355
2362
  const r = t.lightInfo[e];
2356
2363
  r !== void 0 && (r.isColor !== void 0 ? a.push({
2357
- title: Jt(e),
2364
+ title: Qt(e),
2358
2365
  prop: e,
2359
2366
  type: "color",
2360
2367
  value: r,
2361
- onChange: (s, u) => {
2368
+ onChange: (s, f) => {
2362
2369
  var p;
2363
- const l = new Ft(u);
2370
+ const l = new Ft(f);
2364
2371
  n.updateObject(t.uuid, s, l);
2365
- const d = (p = n.scene) == null ? void 0 : p.getObjectByProperty("uuid", t.uuid);
2366
- d !== void 0 && Q(d, s, l);
2372
+ const u = (p = n.scene) == null ? void 0 : p.getObjectByProperty("uuid", t.uuid);
2373
+ u !== void 0 && Q(u, s, l);
2367
2374
  }
2368
2375
  }) : a.push({
2369
- title: Jt(e),
2376
+ title: Qt(e),
2370
2377
  prop: e,
2371
2378
  type: typeof r,
2372
2379
  value: r,
2373
2380
  step: typeof r == "number" ? 0.01 : void 0,
2374
- onChange: (s, u) => {
2375
- var d;
2376
- n.updateObject(t.uuid, s, u);
2377
- const l = (d = n.scene) == null ? void 0 : d.getObjectByProperty("uuid", t.uuid);
2378
- l !== void 0 && Q(l, s, u);
2381
+ onChange: (s, f) => {
2382
+ var u;
2383
+ n.updateObject(t.uuid, s, f);
2384
+ const l = (u = n.scene) == null ? void 0 : u.getObjectByProperty("uuid", t.uuid);
2385
+ l !== void 0 && Q(l, s, f);
2379
2386
  }
2380
2387
  }));
2381
2388
  }
@@ -2387,7 +2394,7 @@ function Ga(t, n) {
2387
2394
  }
2388
2395
  );
2389
2396
  }
2390
- function Va(t, n) {
2397
+ function Ya(t, n) {
2391
2398
  const a = [];
2392
2399
  return t.animations.forEach((e) => {
2393
2400
  a.push({
@@ -2399,8 +2406,8 @@ function Va(t, n) {
2399
2406
  onChange: (r, s) => {
2400
2407
  var l;
2401
2408
  n.updateObject(t.uuid, r, s);
2402
- const u = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2403
- u !== void 0 && Q(u, r, s);
2409
+ const f = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2410
+ f !== void 0 && Q(f, r, s);
2404
2411
  }
2405
2412
  }), a.push({
2406
2413
  title: "Duration",
@@ -2411,8 +2418,8 @@ function Va(t, n) {
2411
2418
  onChange: (r, s) => {
2412
2419
  var l;
2413
2420
  n.updateObject(t.uuid, r, s);
2414
- const u = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2415
- u !== void 0 && Q(u, r, s);
2421
+ const f = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2422
+ f !== void 0 && Q(f, r, s);
2416
2423
  }
2417
2424
  }), a.push({
2418
2425
  title: "Blend Mode",
@@ -2423,13 +2430,13 @@ function Va(t, n) {
2423
2430
  onChange: (r, s) => {
2424
2431
  var l;
2425
2432
  n.updateObject(t.uuid, r, s);
2426
- const u = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2427
- u !== void 0 && Q(u, r, s);
2433
+ const f = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2434
+ f !== void 0 && Q(f, r, s);
2428
2435
  }
2429
2436
  });
2430
2437
  }), /* @__PURE__ */ c.jsx(Ue, { title: "Animations", items: a });
2431
2438
  }
2432
- const wn = {
2439
+ const xn = {
2433
2440
  name: "",
2434
2441
  uuid: "",
2435
2442
  type: "",
@@ -2441,22 +2448,22 @@ const wn = {
2441
2448
  orthographicCameraInfo: void 0,
2442
2449
  lightInfo: void 0
2443
2450
  };
2444
- let ae = { ...wn };
2445
- function za(t) {
2451
+ let ae = { ...xn };
2452
+ function Wa(t) {
2446
2453
  const [n, a] = oe(-1);
2447
2454
  Fe(() => {
2448
- function r(u) {
2449
- ae = { ...u.value }, a(Date.now());
2455
+ function r(f) {
2456
+ ae = { ...f.value }, a(Date.now());
2450
2457
  }
2451
2458
  function s() {
2452
- ae = { ...wn }, a(Date.now());
2459
+ ae = { ...xn }, a(Date.now());
2453
2460
  }
2454
2461
  return _.addEventListener(j.SET_SCENE, s), _.addEventListener(j.SET_OBJECT, r), () => {
2455
2462
  _.removeEventListener(j.SET_SCENE, s), _.removeEventListener(j.SET_OBJECT, r);
2456
2463
  };
2457
2464
  }, []);
2458
2465
  const e = ae.type.toLowerCase();
2459
- return /* @__PURE__ */ c.jsx(Ut, { label: "Inspector", children: /* @__PURE__ */ c.jsx("div", { id: "Inspector", className: t.class, children: ae.uuid.length > 0 && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2466
+ return /* @__PURE__ */ c.jsx(Bt, { label: "Inspector", children: /* @__PURE__ */ c.jsx("div", { id: "Inspector", className: t.class, children: ae.uuid.length > 0 && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2460
2467
  /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2461
2468
  /* @__PURE__ */ c.jsx(
2462
2469
  it,
@@ -2498,22 +2505,22 @@ function za(t) {
2498
2505
  onChange: (r, s) => {
2499
2506
  var l;
2500
2507
  t.three.updateObject(ae.uuid, r, s);
2501
- const u = (l = t.three.scene) == null ? void 0 : l.getObjectByProperty("uuid", ae.uuid);
2502
- u !== void 0 && Q(u, r, s);
2508
+ const f = (l = t.three.scene) == null ? void 0 : l.getObjectByProperty("uuid", ae.uuid);
2509
+ f !== void 0 && Q(f, r, s);
2503
2510
  }
2504
2511
  }
2505
2512
  )
2506
2513
  ] }),
2507
2514
  /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2508
- $a(ae, t.three),
2509
- ae.animations.length > 0 ? Va(ae, t.three) : null,
2510
- e.search("camera") > -1 ? La(ae, t.three) : null,
2511
- e.search("light") > -1 ? Ga(ae, t.three) : null,
2512
- e.search("mesh") > -1 ? Na(ae, t.three) : null
2515
+ Va(ae, t.three),
2516
+ ae.animations.length > 0 ? Ya(ae, t.three) : null,
2517
+ e.search("camera") > -1 ? Ua(ae, t.three) : null,
2518
+ e.search("light") > -1 ? za(ae, t.three) : null,
2519
+ e.search("mesh") > -1 ? Fa(ae, t.three) : null
2513
2520
  ] })
2514
2521
  ] }) }, n) }, "Inspector");
2515
2522
  }
2516
- class fi extends Jn {
2523
+ class fi extends Qn {
2517
2524
  constructor(a) {
2518
2525
  super(a);
2519
2526
  Z(this, "three");
@@ -2534,8 +2541,8 @@ class fi extends Jn {
2534
2541
  var r;
2535
2542
  const a = this.componentState.scene !== null, e = "Hierarchy - " + (a ? `${(r = this.componentState.scene) == null ? void 0 : r.name}` : "No Scene");
2536
2543
  return /* @__PURE__ */ c.jsx("div", { id: "SidePanel", children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2537
- /* @__PURE__ */ c.jsx(Ut, { label: e, open: !0, children: /* @__PURE__ */ c.jsx(c.Fragment, { children: a && /* @__PURE__ */ c.jsx(_a, { child: this.componentState.scene, three: this.three }) }) }),
2538
- /* @__PURE__ */ c.jsx(za, { three: this.three })
2544
+ /* @__PURE__ */ c.jsx(Bt, { label: e, open: !0, children: /* @__PURE__ */ c.jsx(c.Fragment, { children: a && /* @__PURE__ */ c.jsx(ka, { child: this.componentState.scene, three: this.three }) }) }),
2545
+ /* @__PURE__ */ c.jsx(Wa, { three: this.three })
2539
2546
  ] }) }, "SidePanel");
2540
2547
  }
2541
2548
  // Getters / Setters
@@ -2551,44 +2558,44 @@ function hi(t) {
2551
2558
  var p;
2552
2559
  if (!n())
2553
2560
  return;
2554
- const d = (p = t.three.scene) == null ? void 0 : p.getObjectByProperty("uuid", l.value);
2555
- d !== void 0 && t.three.setObject(d);
2556
- }, e = (l, d, p) => {
2561
+ const u = (p = t.three.scene) == null ? void 0 : p.getObjectByProperty("uuid", l.value);
2562
+ u !== void 0 && t.three.setObject(u);
2563
+ }, e = (l, u, p) => {
2557
2564
  var E;
2558
2565
  if (!n())
2559
2566
  return;
2560
2567
  const v = (E = t.three.scene) == null ? void 0 : E.getObjectByProperty("uuid", l);
2561
- v !== void 0 && Q(v, d, p);
2568
+ v !== void 0 && Q(v, u, p);
2562
2569
  }, r = (l) => {
2563
2570
  if (!n())
2564
2571
  return;
2565
- const d = l.value, { key: p, value: v, uuid: E } = d;
2572
+ const u = l.value, { key: p, value: v, uuid: E } = u;
2566
2573
  e(E, p, v);
2567
2574
  }, s = (l) => {
2568
2575
  if (!n())
2569
2576
  return;
2570
- const d = l.value;
2571
- Nt(d.value).then((p) => {
2572
- e(d.uuid, d.key, p), e(d.uuid, "material.needsUpdate", !0);
2577
+ const u = l.value;
2578
+ Nt(u.value).then((p) => {
2579
+ e(u.uuid, u.key, p), e(u.uuid, "material.needsUpdate", !0);
2573
2580
  });
2574
- }, u = (l) => {
2581
+ }, f = (l) => {
2575
2582
  var w;
2576
2583
  if (!n())
2577
2584
  return;
2578
- const { key: d, uuid: p, value: v } = l.value, E = (w = t.three.scene) == null ? void 0 : w.getObjectByProperty("uuid", p);
2585
+ const { key: u, uuid: p, value: v } = l.value, E = (w = t.three.scene) == null ? void 0 : w.getObjectByProperty("uuid", p);
2579
2586
  if (E !== void 0)
2580
2587
  try {
2581
- E[d](v);
2588
+ E[u](v);
2582
2589
  } catch (R) {
2583
- console.log("Error requesting method:"), console.log(R), console.log(d), console.log(v);
2590
+ console.log("Error requesting method:"), console.log(R), console.log(u), console.log(v);
2584
2591
  }
2585
2592
  };
2586
- return Fe(() => (_.addEventListener(j.GET_OBJECT, a), _.addEventListener(j.UPDATE_OBJECT, r), _.addEventListener(j.CREATE_TEXTURE, s), _.addEventListener(j.REQUEST_METHOD, u), () => {
2587
- _.removeEventListener(j.GET_OBJECT, a), _.removeEventListener(j.UPDATE_OBJECT, r), _.removeEventListener(j.CREATE_TEXTURE, s), _.removeEventListener(j.REQUEST_METHOD, u);
2593
+ return Fe(() => (_.addEventListener(j.GET_OBJECT, a), _.addEventListener(j.UPDATE_OBJECT, r), _.addEventListener(j.CREATE_TEXTURE, s), _.addEventListener(j.REQUEST_METHOD, f), () => {
2594
+ _.removeEventListener(j.GET_OBJECT, a), _.removeEventListener(j.UPDATE_OBJECT, r), _.removeEventListener(j.CREATE_TEXTURE, s), _.removeEventListener(j.REQUEST_METHOD, f);
2588
2595
  }), []), null;
2589
2596
  }
2590
- const Qt = { type: "change" }, At = { type: "start" }, en = { type: "end" }, yt = new Un(), tn = new Bn(), Ya = Math.cos(70 * $n.DEG2RAD);
2591
- class Wa extends on {
2597
+ const en = { type: "change" }, At = { type: "start" }, tn = { type: "end" }, yt = new Bn(), nn = new $n(), Ha = Math.cos(70 * Gn.DEG2RAD);
2598
+ class Ka extends sn {
2592
2599
  constructor(n, a) {
2593
2600
  super(), this.object = n, this.domElement = a, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new Y(), this.cursor = new Y(), 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: We.ROTATE, MIDDLE: We.DOLLY, RIGHT: We.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() {
2594
2601
  return l.phi;
@@ -2603,14 +2610,14 @@ class Wa extends on {
2603
2610
  }, this.saveState = function() {
2604
2611
  e.target0.copy(e.target), e.position0.copy(e.object.position), e.zoom0 = e.object.zoom;
2605
2612
  }, this.reset = function() {
2606
- e.target.copy(e.target0), e.object.position.copy(e.position0), e.object.zoom = e.zoom0, e.object.updateProjectionMatrix(), e.dispatchEvent(Qt), e.update(), s = r.NONE;
2613
+ e.target.copy(e.target0), e.object.position.copy(e.position0), e.object.zoom = e.zoom0, e.object.updateProjectionMatrix(), e.dispatchEvent(en), e.update(), s = r.NONE;
2607
2614
  }, this.update = function() {
2608
- const o = new Y(), y = new Yt().setFromUnitVectors(n.up, new Y(0, 1, 0)), A = y.clone().invert(), N = new Y(), te = new Yt(), be = new Y(), ue = 2 * Math.PI;
2615
+ const o = new Y(), y = new Wt().setFromUnitVectors(n.up, new Y(0, 1, 0)), A = y.clone().invert(), N = new Y(), te = new Wt(), be = new Y(), ue = 2 * Math.PI;
2609
2616
  return function(bt = null) {
2610
2617
  const ye = e.object.position;
2611
- o.copy(ye).sub(e.target), o.applyQuaternion(y), l.setFromVector3(o), e.autoRotate && s === r.NONE && B(b(bt)), e.enableDamping ? (l.theta += d.theta * e.dampingFactor, l.phi += d.phi * e.dampingFactor) : (l.theta += d.theta, l.phi += d.phi);
2618
+ o.copy(ye).sub(e.target), o.applyQuaternion(y), l.setFromVector3(o), e.autoRotate && s === r.NONE && B(b(bt)), e.enableDamping ? (l.theta += u.theta * e.dampingFactor, l.phi += u.phi * e.dampingFactor) : (l.theta += u.theta, l.phi += u.phi);
2612
2619
  let he = e.minAzimuthAngle, pe = e.maxAzimuthAngle;
2613
- isFinite(he) && isFinite(pe) && (he < -Math.PI ? he += ue : he > Math.PI && (he -= ue), pe < -Math.PI ? pe += ue : pe > Math.PI && (pe -= ue), he <= pe ? l.theta = Math.max(he, Math.min(pe, l.theta)) : l.theta = l.theta > (he + pe) / 2 ? Math.max(he, l.theta) : Math.min(pe, l.theta)), l.phi = Math.max(e.minPolarAngle, Math.min(e.maxPolarAngle, l.phi)), l.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 && ee || e.object.isOrthographicCamera ? l.radius = X(l.radius) : l.radius = X(l.radius * p), o.setFromSpherical(l), o.applyQuaternion(A), ye.copy(e.target).add(o), e.object.lookAt(e.target), e.enableDamping === !0 ? (d.theta *= 1 - e.dampingFactor, d.phi *= 1 - e.dampingFactor, v.multiplyScalar(1 - e.dampingFactor)) : (d.set(0, 0, 0), v.set(0, 0, 0));
2620
+ isFinite(he) && isFinite(pe) && (he < -Math.PI ? he += ue : he > Math.PI && (he -= ue), pe < -Math.PI ? pe += ue : pe > Math.PI && (pe -= ue), he <= pe ? l.theta = Math.max(he, Math.min(pe, l.theta)) : l.theta = l.theta > (he + pe) / 2 ? Math.max(he, l.theta) : Math.min(pe, l.theta)), l.phi = Math.max(e.minPolarAngle, Math.min(e.maxPolarAngle, l.phi)), l.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 && ee || e.object.isOrthographicCamera ? l.radius = X(l.radius) : l.radius = X(l.radius * p), o.setFromSpherical(l), o.applyQuaternion(A), ye.copy(e.target).add(o), 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));
2614
2621
  let Ve = !1;
2615
2622
  if (e.zoomToCursor && ee) {
2616
2623
  let Ae = null;
@@ -2626,10 +2633,10 @@ class Wa extends on {
2626
2633
  ze.unproject(e.object), e.object.position.sub(ze).add(Te), e.object.updateMatrixWorld(), Ae = o.length();
2627
2634
  } else
2628
2635
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), e.zoomToCursor = !1;
2629
- Ae !== null && (this.screenSpacePanning ? e.target.set(0, 0, -1).transformDirection(e.object.matrix).multiplyScalar(Ae).add(e.object.position) : (yt.origin.copy(e.object.position), yt.direction.set(0, 0, -1).transformDirection(e.object.matrix), Math.abs(e.object.up.dot(yt.direction)) < Ya ? n.lookAt(e.target) : (tn.setFromNormalAndCoplanarPoint(e.object.up, e.target), yt.intersectPlane(tn, e.target))));
2636
+ Ae !== null && (this.screenSpacePanning ? e.target.set(0, 0, -1).transformDirection(e.object.matrix).multiplyScalar(Ae).add(e.object.position) : (yt.origin.copy(e.object.position), yt.direction.set(0, 0, -1).transformDirection(e.object.matrix), Math.abs(e.object.up.dot(yt.direction)) < Ha ? n.lookAt(e.target) : (nn.setFromNormalAndCoplanarPoint(e.object.up, e.target), yt.intersectPlane(nn, e.target))));
2630
2637
  } else
2631
2638
  e.object.isOrthographicCamera && (e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / p)), e.object.updateProjectionMatrix(), Ve = !0);
2632
- return p = 1, ee = !1, Ve || N.distanceToSquared(e.object.position) > u || 8 * (1 - te.dot(e.object.quaternion)) > u || be.distanceToSquared(e.target) > 0 ? (e.dispatchEvent(Qt), N.copy(e.object.position), te.copy(e.object.quaternion), be.copy(e.target), !0) : !1;
2639
+ return p = 1, ee = !1, Ve || N.distanceToSquared(e.object.position) > f || 8 * (1 - te.dot(e.object.quaternion)) > f || be.distanceToSquared(e.target) > 0 ? (e.dispatchEvent(en), N.copy(e.object.position), te.copy(e.object.quaternion), be.copy(e.target), !0) : !1;
2633
2640
  };
2634
2641
  }(), this.dispose = function() {
2635
2642
  e.domElement.removeEventListener("contextmenu", Oe), e.domElement.removeEventListener("pointerdown", Je), e.domElement.removeEventListener("pointercancel", ke), e.domElement.removeEventListener("wheel", ht), e.domElement.removeEventListener("pointermove", Se), e.domElement.removeEventListener("pointerup", ke), e._domElementKeyEvents !== null && (e._domElementKeyEvents.removeEventListener("keydown", et), e._domElementKeyEvents = null);
@@ -2645,11 +2652,11 @@ class Wa extends on {
2645
2652
  TOUCH_DOLLY_ROTATE: 6
2646
2653
  };
2647
2654
  let s = r.NONE;
2648
- const u = 1e-6, l = new Wt(), d = new Wt();
2655
+ const f = 1e-6, l = new Ht(), u = new Ht();
2649
2656
  let p = 1;
2650
2657
  const v = new Y(), E = new de(), w = new de(), R = new de(), T = new de(), G = new de(), se = new de(), H = new de(), C = new de(), K = new de(), fe = new Y(), le = new de();
2651
2658
  let ee = !1;
2652
- const f = [], m = {};
2659
+ const d = [], m = {};
2653
2660
  function b(o) {
2654
2661
  return o !== null ? 2 * Math.PI / 60 * e.autoRotateSpeed * o : 2 * Math.PI / 60 / 60 * e.autoRotateSpeed;
2655
2662
  }
@@ -2658,10 +2665,10 @@ class Wa extends on {
2658
2665
  return Math.pow(0.95, e.zoomSpeed * y);
2659
2666
  }
2660
2667
  function B(o) {
2661
- d.theta -= o;
2668
+ u.theta -= o;
2662
2669
  }
2663
2670
  function $(o) {
2664
- d.phi -= o;
2671
+ u.phi -= o;
2665
2672
  }
2666
2673
  const F = function() {
2667
2674
  const o = new Y();
@@ -2744,7 +2751,7 @@ class Wa extends on {
2744
2751
  y && (o.preventDefault(), e.update());
2745
2752
  }
2746
2753
  function Pe(o) {
2747
- if (f.length === 1)
2754
+ if (d.length === 1)
2748
2755
  E.set(o.pageX, o.pageY);
2749
2756
  else {
2750
2757
  const y = ve(o), A = 0.5 * (o.pageX + y.x), N = 0.5 * (o.pageY + y.y);
@@ -2752,7 +2759,7 @@ class Wa extends on {
2752
2759
  }
2753
2760
  }
2754
2761
  function $e(o) {
2755
- if (f.length === 1)
2762
+ if (d.length === 1)
2756
2763
  T.set(o.pageX, o.pageY);
2757
2764
  else {
2758
2765
  const y = ve(o), A = 0.5 * (o.pageX + y.x), N = 0.5 * (o.pageY + y.y);
@@ -2770,7 +2777,7 @@ class Wa extends on {
2770
2777
  e.enableZoom && _e(o), e.enableRotate && Pe(o);
2771
2778
  }
2772
2779
  function ut(o) {
2773
- if (f.length == 1)
2780
+ if (d.length == 1)
2774
2781
  w.set(o.pageX, o.pageY);
2775
2782
  else {
2776
2783
  const A = ve(o), N = 0.5 * (o.pageX + A.x), te = 0.5 * (o.pageY + A.y);
@@ -2781,7 +2788,7 @@ class Wa extends on {
2781
2788
  B(2 * Math.PI * R.x / y.clientHeight), $(2 * Math.PI * R.y / y.clientHeight), E.copy(w);
2782
2789
  }
2783
2790
  function dt(o) {
2784
- if (f.length === 1)
2791
+ if (d.length === 1)
2785
2792
  G.set(o.pageX, o.pageY);
2786
2793
  else {
2787
2794
  const y = ve(o), A = 0.5 * (o.pageX + y.x), N = 0.5 * (o.pageY + y.y);
@@ -2802,13 +2809,13 @@ class Wa extends on {
2802
2809
  e.enableZoom && je(o), e.enableRotate && ut(o);
2803
2810
  }
2804
2811
  function Je(o) {
2805
- e.enabled !== !1 && (f.length === 0 && (e.domElement.setPointerCapture(o.pointerId), e.domElement.addEventListener("pointermove", Se), e.domElement.addEventListener("pointerup", ke)), Pt(o), o.pointerType === "touch" ? pt(o) : Rt(o));
2812
+ e.enabled !== !1 && (d.length === 0 && (e.domElement.setPointerCapture(o.pointerId), e.domElement.addEventListener("pointermove", Se), e.domElement.addEventListener("pointerup", ke)), Pt(o), o.pointerType === "touch" ? pt(o) : Rt(o));
2806
2813
  }
2807
2814
  function Se(o) {
2808
2815
  e.enabled !== !1 && (o.pointerType === "touch" ? mt(o) : Qe(o));
2809
2816
  }
2810
2817
  function ke(o) {
2811
- gt(o), f.length === 0 && (e.domElement.releasePointerCapture(o.pointerId), e.domElement.removeEventListener("pointermove", Se), e.domElement.removeEventListener("pointerup", ke)), e.dispatchEvent(en), s = r.NONE;
2818
+ gt(o), d.length === 0 && (e.domElement.releasePointerCapture(o.pointerId), e.domElement.removeEventListener("pointermove", Se), e.domElement.removeEventListener("pointerup", ke)), e.dispatchEvent(tn), s = r.NONE;
2812
2819
  }
2813
2820
  function Rt(o) {
2814
2821
  let y;
@@ -2878,13 +2885,13 @@ class Wa extends on {
2878
2885
  }
2879
2886
  }
2880
2887
  function ht(o) {
2881
- e.enabled === !1 || e.enableZoom === !1 || s !== r.NONE || (o.preventDefault(), e.dispatchEvent(At), qe(o), e.dispatchEvent(en));
2888
+ e.enabled === !1 || e.enableZoom === !1 || s !== r.NONE || (o.preventDefault(), e.dispatchEvent(At), qe(o), e.dispatchEvent(tn));
2882
2889
  }
2883
2890
  function et(o) {
2884
2891
  e.enabled === !1 || e.enablePan === !1 || Ze(o);
2885
2892
  }
2886
2893
  function pt(o) {
2887
- switch (tt(o), f.length) {
2894
+ switch (tt(o), d.length) {
2888
2895
  case 1:
2889
2896
  switch (e.touches.ONE) {
2890
2897
  case He.ROTATE:
@@ -2952,13 +2959,13 @@ class Wa extends on {
2952
2959
  e.enabled !== !1 && o.preventDefault();
2953
2960
  }
2954
2961
  function Pt(o) {
2955
- f.push(o.pointerId);
2962
+ d.push(o.pointerId);
2956
2963
  }
2957
2964
  function gt(o) {
2958
2965
  delete m[o.pointerId];
2959
- for (let y = 0; y < f.length; y++)
2960
- if (f[y] == o.pointerId) {
2961
- f.splice(y, 1);
2966
+ for (let y = 0; y < d.length; y++)
2967
+ if (d[y] == o.pointerId) {
2968
+ d.splice(y, 1);
2962
2969
  return;
2963
2970
  }
2964
2971
  }
@@ -2967,7 +2974,7 @@ class Wa extends on {
2967
2974
  y === void 0 && (y = new de(), m[o.pointerId] = y), y.set(o.pageX, o.pageY);
2968
2975
  }
2969
2976
  function ve(o) {
2970
- const y = o.pointerId === f[0] ? f[1] : f[0];
2977
+ const y = o.pointerId === d[0] ? d[1] : d[0];
2971
2978
  return m[y];
2972
2979
  }
2973
2980
  e.domElement.addEventListener("contextmenu", Oe), e.domElement.addEventListener("pointerdown", Je), e.domElement.addEventListener("pointercancel", ke), e.domElement.addEventListener("wheel", ht, { passive: !1 }), this.update();
@@ -2983,7 +2990,7 @@ const xt = (t) => {
2983
2990
  /* @__PURE__ */ c.jsx("div", { className: "dropdown-toggle", onClick: e, children: n }),
2984
2991
  t.open && /* @__PURE__ */ c.jsx("ul", { className: "dropdown-menu", children: t.options.map((s) => /* @__PURE__ */ c.jsx("li", { onClick: () => r(s), children: s }, s)) })
2985
2992
  ] });
2986
- }, Ie = Qn(function(n, a) {
2993
+ }, Ie = ea(function(n, a) {
2987
2994
  const [e, r] = oe(!1), s = n.options.indexOf(n.camera.name);
2988
2995
  return /* @__PURE__ */ c.jsxs("div", { className: "CameraWindow", children: [
2989
2996
  /* @__PURE__ */ c.jsx("div", { ref: a, className: "clickable", onClick: () => {
@@ -2996,21 +3003,21 @@ const xt = (t) => {
2996
3003
  open: e,
2997
3004
  options: n.options,
2998
3005
  onSelect: n.onSelect,
2999
- onToggle: (u) => {
3000
- r(u);
3006
+ onToggle: (f) => {
3007
+ r(f);
3001
3008
  },
3002
3009
  up: !0
3003
3010
  }
3004
3011
  )
3005
3012
  ] });
3006
- }), nn = [
3013
+ }), an = [
3007
3014
  "Single",
3008
3015
  "Side by Side",
3009
3016
  "Stacked",
3010
3017
  "Quad"
3011
3018
  ], ne = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), we = /* @__PURE__ */ new Map();
3012
3019
  function Be(t, n) {
3013
- const a = new ln(-100, 100, 100, -100, 50, 3e3);
3020
+ const a = new un(-100, 100, 100, -100, 50, 3e3);
3014
3021
  return a.name = t, a.position.copy(n), a.lookAt(0, 0, 0), ne.set(t, a), a;
3015
3022
  }
3016
3023
  Be("Top", new Y(0, 1e3, 0));
@@ -3025,43 +3032,43 @@ St.name = "Debug";
3025
3032
  St.position.set(500, 500, 500);
3026
3033
  St.lookAt(0, 0, 0);
3027
3034
  ne.set("Debug", St);
3028
- const an = [
3035
+ const rn = [
3029
3036
  "Renderer",
3030
3037
  "Depth",
3031
3038
  "Normals",
3032
3039
  "UVs",
3033
3040
  "Wireframe"
3034
- ], Ha = new Gn(), Ka = new Vn(), Xa = new Pa(), qa = new zn({
3041
+ ], Xa = new Vn(), qa = new zn(), Za = new ja(), Ja = new Yn({
3035
3042
  opacity: 0.33,
3036
3043
  transparent: !0,
3037
3044
  wireframe: !0
3038
3045
  });
3039
3046
  let Et = "Renderer";
3040
- const z = new un();
3047
+ const z = new dn();
3041
3048
  z.name = "Debug Scene";
3042
- let xe = new un();
3049
+ let xe = new dn();
3043
3050
  z.add(xe);
3044
- const st = new Yn();
3051
+ const st = new Wn();
3045
3052
  st.name = "helpers";
3046
3053
  z.add(st);
3047
- const Za = new Ta();
3048
- st.add(Za);
3049
- const xn = new dn(500);
3050
- xn.name = "axisHelper";
3051
- st.add(xn);
3052
- const ot = new dn(100);
3054
+ const Qa = new Ra();
3055
+ st.add(Qa);
3056
+ const Cn = new fn(500);
3057
+ Cn.name = "axisHelper";
3058
+ st.add(Cn);
3059
+ const ot = new fn(100);
3053
3060
  ot.name = "interactionHelper";
3054
3061
  st.add(ot);
3055
3062
  ot.visible = !1;
3056
- let wt = !1, V = ne.get("Debug"), re = ne.get("Orthographic"), Ne = ne.get("Front"), Le = ne.get("Top"), rn = !1;
3063
+ let wt = !1, V = ne.get("Debug"), re = ne.get("Orthographic"), Ne = ne.get("Front"), Le = ne.get("Top"), on = !1;
3057
3064
  function pi(t) {
3058
- const [n, a] = oe(t.mode !== void 0 ? t.mode : "Single"), [e, r] = oe(null), [s, u] = oe(!1), [l, d] = oe(!1), [p, v] = oe(!1), [, E] = oe(Date.now()), w = Ce(null), R = Ce(null), T = Ce(null), G = Ce(null), se = Ce(null), H = Ce(null), C = (f, m) => {
3059
- const b = ie.get(f.name);
3060
- b !== void 0 && b.dispose(), ie.delete(f.name);
3061
- const S = we.get(f.name);
3062
- S !== void 0 && (z.remove(S), S.dispose()), we.delete(f.name);
3063
- const B = new Wa(f, m);
3064
- switch (B.enableDamping = !0, B.dampingFactor = 0.05, f.name) {
3065
+ const [n, a] = oe(t.mode !== void 0 ? t.mode : "Single"), [e, r] = oe(null), [s, f] = oe(!1), [l, u] = oe(!1), [p, v] = oe(!1), [, E] = oe(Date.now()), w = Ce(null), R = Ce(null), T = Ce(null), G = Ce(null), se = Ce(null), H = Ce(null), C = (d, m) => {
3066
+ const b = ie.get(d.name);
3067
+ b !== void 0 && b.dispose(), ie.delete(d.name);
3068
+ const S = we.get(d.name);
3069
+ S !== void 0 && (z.remove(S), S.dispose()), we.delete(d.name);
3070
+ const B = new Ka(d, m);
3071
+ switch (B.enableDamping = !0, B.dampingFactor = 0.05, d.name) {
3065
3072
  case "Top":
3066
3073
  case "Bottom":
3067
3074
  case "Left":
@@ -3071,18 +3078,18 @@ function pi(t) {
3071
3078
  B.enableRotate = !1;
3072
3079
  break;
3073
3080
  }
3074
- if (ie.set(f.name, B), f instanceof Dt) {
3075
- const $ = new Kn(f);
3076
- we.set(f.name, $), z.add($);
3081
+ if (ie.set(d.name, B), d instanceof Dt) {
3082
+ const $ = new Xn(d);
3083
+ we.set(d.name, $), z.add($);
3077
3084
  }
3078
- }, K = (f) => {
3079
- const m = we.get(f.name);
3080
- m !== void 0 && (z.remove(m), m.dispose(), we.delete(f.name));
3081
- const b = ie.get(f.name);
3082
- b !== void 0 && (b.dispose(), ie.delete(f.name));
3085
+ }, K = (d) => {
3086
+ const m = we.get(d.name);
3087
+ m !== void 0 && (z.remove(m), m.dispose(), we.delete(d.name));
3088
+ const b = ie.get(d.name);
3089
+ b !== void 0 && (b.dispose(), ie.delete(d.name));
3083
3090
  }, fe = () => {
3084
- ie.forEach((f, m) => {
3085
- f.dispose();
3091
+ ie.forEach((d, m) => {
3092
+ d.dispose();
3086
3093
  const b = we.get(m);
3087
3094
  b !== void 0 && (z.remove(b), b.dispose()), we.delete(m), ie.delete(m);
3088
3095
  }), ie.clear(), we.clear();
@@ -3101,18 +3108,18 @@ function pi(t) {
3101
3108
  }
3102
3109
  };
3103
3110
  Fe(() => {
3104
- const f = new Wn({
3111
+ const d = new Hn({
3105
3112
  canvas: w.current,
3106
3113
  stencil: !1
3107
3114
  });
3108
- f.autoClear = !1, f.shadowMap.enabled = !0, f.setPixelRatio(devicePixelRatio), f.setClearColor(0), r(f);
3115
+ d.autoClear = !1, d.shadowMap.enabled = !0, d.setPixelRatio(devicePixelRatio), d.setClearColor(0), r(d);
3109
3116
  }, []), Fe(() => {
3110
- const f = (S) => {
3111
- mn(xe), z.remove(xe);
3117
+ const d = (S) => {
3118
+ gn(xe), z.remove(xe);
3112
3119
  const B = t.scenes.get(S.value.name);
3113
3120
  if (B !== void 0) {
3114
3121
  const $ = new B();
3115
- t.onSceneSet !== void 0 && t.onSceneSet($), xe = $, t.three.scene = xe, z.add(xe), rn = !0;
3122
+ t.onSceneSet !== void 0 && t.onSceneSet($), xe = $, t.three.scene = xe, z.add(xe), on = !0;
3116
3123
  }
3117
3124
  }, m = (S) => {
3118
3125
  var F;
@@ -3121,22 +3128,22 @@ function pi(t) {
3121
3128
  }, b = (S) => {
3122
3129
  ne.delete(S.value.name), E(Date.now());
3123
3130
  };
3124
- return _.addEventListener(j.SET_SCENE, f), _.addEventListener(j.ADD_CAMERA, m), _.addEventListener(j.REMOVE_CAMERA, b), () => {
3125
- _.removeEventListener(j.SET_SCENE, f), _.removeEventListener(j.ADD_CAMERA, m), _.removeEventListener(j.REMOVE_CAMERA, b);
3131
+ return _.addEventListener(j.SET_SCENE, d), _.addEventListener(j.ADD_CAMERA, m), _.addEventListener(j.REMOVE_CAMERA, b), () => {
3132
+ _.removeEventListener(j.SET_SCENE, d), _.removeEventListener(j.ADD_CAMERA, m), _.removeEventListener(j.REMOVE_CAMERA, b);
3126
3133
  };
3127
3134
  }, []), Fe(() => {
3128
3135
  if (e === null)
3129
3136
  return;
3130
- let f = window.innerWidth, m = window.innerHeight, b = Math.floor(f / 2), S = Math.floor(m / 2), B = -1;
3137
+ let d = window.innerWidth, m = window.innerHeight, b = Math.floor(d / 2), S = Math.floor(m / 2), B = -1;
3131
3138
  const $ = () => {
3132
- f = window.innerWidth - 300, m = window.innerHeight, b = Math.floor(f / 2), S = Math.floor(m / 2), e.setSize(f, m);
3133
- let M = f, I = m;
3139
+ d = window.innerWidth - 300, m = window.innerHeight, b = Math.floor(d / 2), S = Math.floor(m / 2), e.setSize(d, m);
3140
+ let M = d, I = m;
3134
3141
  switch (n) {
3135
3142
  case "Side by Side":
3136
3143
  M = b, I = m;
3137
3144
  break;
3138
3145
  case "Stacked":
3139
- M = f, I = S;
3146
+ M = d, I = S;
3140
3147
  break;
3141
3148
  case "Quad":
3142
3149
  M = b, I = S;
@@ -3144,16 +3151,16 @@ function pi(t) {
3144
3151
  }
3145
3152
  ne.forEach((X) => {
3146
3153
  var me;
3147
- X instanceof ln ? (X.left = M / -2, X.right = M / 2, X.top = I / 2, X.bottom = I / -2, X.updateProjectionMatrix()) : X instanceof Dt && (X.aspect = M / I, X.updateProjectionMatrix(), (me = we.get(X.name)) == null || me.update());
3154
+ X instanceof un ? (X.left = M / -2, X.right = M / 2, X.top = I / 2, X.bottom = I / -2, X.updateProjectionMatrix()) : X instanceof Dt && (X.aspect = M / I, X.updateProjectionMatrix(), (me = we.get(X.name)) == null || me.update());
3148
3155
  });
3149
3156
  }, F = () => {
3150
- e.setViewport(0, 0, f, m), e.setScissor(0, 0, f, m), e.render(z, V);
3157
+ e.setViewport(0, 0, d, m), e.setScissor(0, 0, d, m), e.render(z, V);
3151
3158
  }, D = () => {
3152
3159
  if (n === "Side by Side")
3153
3160
  e.setViewport(0, 0, b, m), e.setScissor(0, 0, b, m), e.render(z, V), e.setViewport(b, 0, b, m), e.setScissor(b, 0, b, m), e.render(z, re);
3154
3161
  else {
3155
3162
  const M = m - S;
3156
- e.setViewport(0, M, f, S), e.setScissor(0, M, f, S), e.render(z, V), e.setViewport(0, 0, f, S), e.setScissor(0, 0, f, S), e.render(z, re);
3163
+ e.setViewport(0, M, d, S), e.setScissor(0, M, d, S), e.render(z, V), e.setViewport(0, 0, d, S), e.setScissor(0, 0, d, S), e.render(z, re);
3157
3164
  }
3158
3165
  }, U = () => {
3159
3166
  let M = 0, I = 0;
@@ -3161,7 +3168,7 @@ function pi(t) {
3161
3168
  }, J = () => {
3162
3169
  switch (ie.forEach((M) => {
3163
3170
  M.update();
3164
- }), t.onSceneUpdate !== void 0 && rn && t.onSceneUpdate(xe), e.clear(), n) {
3171
+ }), t.onSceneUpdate !== void 0 && on && t.onSceneUpdate(xe), e.clear(), n) {
3165
3172
  case "Single":
3166
3173
  F();
3167
3174
  break;
@@ -3180,19 +3187,19 @@ function pi(t) {
3180
3187
  };
3181
3188
  }, [n, e]), Fe(() => {
3182
3189
  if (e !== null) {
3183
- const f = new Hn(), m = new de(), b = (F, D, U, J) => {
3190
+ const d = new Kn(), m = new de(), b = (F, D, U, J) => {
3184
3191
  switch (n) {
3185
3192
  case "Quad":
3186
- F < U ? D < J ? f.setFromCamera(m, V) : f.setFromCamera(m, Ne) : D < J ? f.setFromCamera(m, re) : f.setFromCamera(m, Le);
3193
+ F < U ? D < J ? d.setFromCamera(m, V) : d.setFromCamera(m, Ne) : D < J ? d.setFromCamera(m, re) : d.setFromCamera(m, Le);
3187
3194
  break;
3188
3195
  case "Side by Side":
3189
- F < U ? f.setFromCamera(m, V) : f.setFromCamera(m, re);
3196
+ F < U ? d.setFromCamera(m, V) : d.setFromCamera(m, re);
3190
3197
  break;
3191
3198
  case "Single":
3192
- f.setFromCamera(m, V);
3199
+ d.setFromCamera(m, V);
3193
3200
  break;
3194
3201
  case "Stacked":
3195
- D < J ? f.setFromCamera(m, V) : f.setFromCamera(m, re);
3202
+ D < J ? d.setFromCamera(m, V) : d.setFromCamera(m, re);
3196
3203
  break;
3197
3204
  }
3198
3205
  }, S = (F) => {
@@ -3219,7 +3226,7 @@ function pi(t) {
3219
3226
  break;
3220
3227
  }
3221
3228
  b(U, J, M, I);
3222
- const Re = f.intersectObjects(xe.children);
3229
+ const Re = d.intersectObjects(xe.children);
3223
3230
  Re.length > 0 && ot.position.copy(Re[0].point);
3224
3231
  }, B = (F) => {
3225
3232
  if (!wt)
@@ -3228,7 +3235,7 @@ function pi(t) {
3228
3235
  if (e.getSize(D), F.clientX >= D.x)
3229
3236
  return;
3230
3237
  S(F);
3231
- const U = f.intersectObjects(xe.children);
3238
+ const U = d.intersectObjects(xe.children);
3232
3239
  U.length > 0 && t.three.getObject(U[0].object.uuid);
3233
3240
  }, $ = R.current;
3234
3241
  return $.addEventListener("mousemove", S, !1), $.addEventListener("click", B, !1), () => {
@@ -3237,54 +3244,54 @@ function pi(t) {
3237
3244
  }
3238
3245
  }, [n, e]);
3239
3246
  const ee = [];
3240
- return ne.forEach((f, m) => {
3247
+ return ne.forEach((d, m) => {
3241
3248
  ee.push(m);
3242
3249
  }), /* @__PURE__ */ c.jsxs("div", { className: "multiview", children: [
3243
3250
  /* @__PURE__ */ c.jsx("canvas", { ref: w }),
3244
3251
  /* @__PURE__ */ c.jsxs("div", { className: `cameras ${n === "Single" || n === "Stacked" ? "single" : ""}`, ref: R, children: [
3245
- n === "Single" && /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (f) => {
3252
+ n === "Single" && /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (d) => {
3246
3253
  var b;
3247
3254
  (b = ie.get(V.name)) == null || b.dispose();
3248
- const m = ne.get(f);
3255
+ const m = ne.get(d);
3249
3256
  m !== void 0 && (K(V), V = m, C(m, T.current));
3250
3257
  } }) }),
3251
3258
  (n === "Side by Side" || n === "Stacked") && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3252
- /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (f) => {
3259
+ /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (d) => {
3253
3260
  var b;
3254
3261
  (b = ie.get(V.name)) == null || b.dispose();
3255
- const m = ne.get(f);
3262
+ const m = ne.get(d);
3256
3263
  m !== void 0 && (K(V), V = m, C(m, T.current));
3257
3264
  } }),
3258
- /* @__PURE__ */ c.jsx(Ie, { camera: re, options: ee, ref: G, onSelect: (f) => {
3265
+ /* @__PURE__ */ c.jsx(Ie, { camera: re, options: ee, ref: G, onSelect: (d) => {
3259
3266
  var b;
3260
3267
  (b = ie.get(re.name)) == null || b.dispose();
3261
- const m = ne.get(f);
3268
+ const m = ne.get(d);
3262
3269
  m !== void 0 && (K(re), re = m, C(m, G.current));
3263
3270
  } })
3264
3271
  ] }),
3265
3272
  n === "Quad" && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3266
- /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (f) => {
3273
+ /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (d) => {
3267
3274
  var b;
3268
3275
  (b = ie.get(V.name)) == null || b.dispose();
3269
- const m = ne.get(f);
3276
+ const m = ne.get(d);
3270
3277
  m !== void 0 && (K(V), V = m, C(m, T.current));
3271
3278
  } }),
3272
- /* @__PURE__ */ c.jsx(Ie, { camera: re, options: ee, ref: G, onSelect: (f) => {
3279
+ /* @__PURE__ */ c.jsx(Ie, { camera: re, options: ee, ref: G, onSelect: (d) => {
3273
3280
  var b;
3274
3281
  (b = ie.get(re.name)) == null || b.dispose();
3275
- const m = ne.get(f);
3282
+ const m = ne.get(d);
3276
3283
  m !== void 0 && (K(re), re = m, C(m, G.current));
3277
3284
  } }),
3278
- /* @__PURE__ */ c.jsx(Ie, { camera: Ne, options: ee, ref: se, onSelect: (f) => {
3285
+ /* @__PURE__ */ c.jsx(Ie, { camera: Ne, options: ee, ref: se, onSelect: (d) => {
3279
3286
  var b;
3280
3287
  (b = ie.get(Ne.name)) == null || b.dispose();
3281
- const m = ne.get(f);
3288
+ const m = ne.get(d);
3282
3289
  m !== void 0 && (K(Ne), Ne = m, C(m, se.current));
3283
3290
  } }),
3284
- /* @__PURE__ */ c.jsx(Ie, { camera: Le, options: ee, ref: H, onSelect: (f) => {
3291
+ /* @__PURE__ */ c.jsx(Ie, { camera: Le, options: ee, ref: H, onSelect: (d) => {
3285
3292
  var b;
3286
3293
  (b = ie.get(Le.name)) == null || b.dispose();
3287
- const m = ne.get(f);
3294
+ const m = ne.get(d);
3288
3295
  m !== void 0 && (K(Le), Le = m, C(m, H.current));
3289
3296
  } })
3290
3297
  ] })
@@ -3293,46 +3300,46 @@ function pi(t) {
3293
3300
  /* @__PURE__ */ c.jsx(
3294
3301
  xt,
3295
3302
  {
3296
- index: nn.indexOf(n),
3297
- options: nn,
3298
- onSelect: (f) => {
3299
- f !== n && (fe(), a(f));
3303
+ index: an.indexOf(n),
3304
+ options: an,
3305
+ onSelect: (d) => {
3306
+ d !== n && (fe(), a(d));
3300
3307
  },
3301
3308
  open: s,
3302
- onToggle: (f) => {
3303
- u(f), l && d(!1), p && v(!1);
3309
+ onToggle: (d) => {
3310
+ f(d), l && u(!1), p && v(!1);
3304
3311
  }
3305
3312
  }
3306
3313
  ),
3307
3314
  /* @__PURE__ */ c.jsx(
3308
3315
  xt,
3309
3316
  {
3310
- index: an.indexOf(Et),
3311
- options: an,
3312
- onSelect: (f) => {
3313
- if (f !== Et)
3314
- switch (Et = f, Et) {
3317
+ index: rn.indexOf(Et),
3318
+ options: rn,
3319
+ onSelect: (d) => {
3320
+ if (d !== Et)
3321
+ switch (Et = d, Et) {
3315
3322
  case "Depth":
3316
- z.overrideMaterial = Ha;
3323
+ z.overrideMaterial = Xa;
3317
3324
  break;
3318
3325
  case "Normals":
3319
- z.overrideMaterial = Ka;
3326
+ z.overrideMaterial = qa;
3320
3327
  break;
3321
3328
  default:
3322
3329
  case "Renderer":
3323
3330
  z.overrideMaterial = null;
3324
3331
  break;
3325
3332
  case "Wireframe":
3326
- z.overrideMaterial = qa;
3333
+ z.overrideMaterial = Ja;
3327
3334
  break;
3328
3335
  case "UVs":
3329
- z.overrideMaterial = Xa;
3336
+ z.overrideMaterial = Za;
3330
3337
  break;
3331
3338
  }
3332
3339
  },
3333
3340
  open: l,
3334
- onToggle: (f) => {
3335
- s && u(!1), d(f), p && v(!1);
3341
+ onToggle: (d) => {
3342
+ s && f(!1), u(d), p && v(!1);
3336
3343
  }
3337
3344
  }
3338
3345
  ),
@@ -3344,12 +3351,12 @@ function pi(t) {
3344
3351
  "Orbit Mode",
3345
3352
  "Selection Mode"
3346
3353
  ],
3347
- onSelect: (f) => {
3348
- wt = f === "Selection Mode", ot.visible = wt;
3354
+ onSelect: (d) => {
3355
+ wt = d === "Selection Mode", ot.visible = wt;
3349
3356
  },
3350
3357
  open: p,
3351
- onToggle: (f) => {
3352
- s && u(!1), l && d(!1), v(f);
3358
+ onToggle: (d) => {
3359
+ s && f(!1), l && u(!1), v(d);
3353
3360
  }
3354
3361
  }
3355
3362
  )
@@ -3364,40 +3371,40 @@ function mi(t) {
3364
3371
  ] });
3365
3372
  }
3366
3373
  export {
3367
- Ut as Accordion,
3368
- ci as Application,
3374
+ Bt as Accordion,
3375
+ ui as Application,
3369
3376
  Ct as BaseRemote,
3370
- En as ChildObject,
3371
- _a as ContainerObject,
3372
- Ea as Draggable,
3373
- ya as DraggableItem,
3374
- wa as Dropdown,
3375
- xa as DropdownItem,
3377
+ wn as ChildObject,
3378
+ ka as ContainerObject,
3379
+ xa as Draggable,
3380
+ wa as DraggableItem,
3381
+ Ca as Dropdown,
3382
+ Sa as DropdownItem,
3376
3383
  mi as Editor,
3377
- Ta as InfiniteGridHelper,
3378
- za as Inspector,
3384
+ Ra as InfiniteGridHelper,
3385
+ Wa as Inspector,
3379
3386
  pi as MultiView,
3380
- yn as NavButton,
3381
- li as RemoteComponents,
3387
+ En as NavButton,
3388
+ oa as RemoteComponents,
3382
3389
  di as RemoteController,
3383
- vn as RemoteTheatre,
3384
- ui as RemoteThree,
3385
- ha as RemoteTweakpane,
3390
+ Ut as RemoteTheatre,
3391
+ ha as RemoteThree,
3392
+ yn as RemoteTweakpane,
3386
3393
  hi as SceneInspector,
3387
3394
  fi as SidePanel,
3388
3395
  j as ToolEvents,
3389
- Pa as UVMaterial,
3390
- ri as clamp,
3391
- na as colorToHex,
3396
+ ja as UVMaterial,
3397
+ si as clamp,
3398
+ aa as colorToHex,
3392
3399
  _ as debugDispatcher,
3393
- mn as dispose,
3394
- ia as disposeMaterial,
3395
- si as disposeTexture,
3396
- oi as distance,
3397
- pn as hierarchyUUID,
3398
- ta as isColor,
3399
- ea as randomID,
3400
- aa as resetThreeObjects,
3400
+ gn as dispose,
3401
+ ra as disposeMaterial,
3402
+ li as disposeTexture,
3403
+ ci as distance,
3404
+ mn as hierarchyUUID,
3405
+ na as isColor,
3406
+ ta as randomID,
3407
+ ia as resetThreeObjects,
3401
3408
  _t as round,
3402
3409
  It as totalThreeObjects
3403
3410
  };