@tomorrowevening/hermes 0.0.13 → 0.0.14

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,74 +1,74 @@
1
- var On = Object.defineProperty;
2
- var Tn = (t, n, i) => n in t ? On(t, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[n] = i;
3
- var q = (t, n, i) => (Tn(t, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { PositionalAudio as Mn, EventDispatcher as rn, Texture as an, CubeTexture as Rn, RepeatWrapping as $t, ShaderMaterial as on, GLSL3 as Pn, DoubleSide as jn, Color as It, Mesh as _n, PlaneGeometry as Dn, Matrix4 as kn, Vector3 as G, Euler as An, Ray as In, Plane as Nn, MathUtils as Ln, MOUSE as ze, TOUCH as Ye, Quaternion as Vt, Spherical as Gt, Vector2 as ue, PerspectiveCamera as _t, MeshDepthMaterial as Fn, MeshNormalMaterial as Un, MeshBasicMaterial as Bn, OrthographicCamera as sn, Scene as cn, Group as $n, AxesHelper as ln, WebGLRenderer as Vn, Raycaster as Gn, CameraHelper as zn } from "three";
5
- import { getProject as Yn } from "@theatre/core";
6
- import "@theatre/studio";
7
- import { Pane as Wn } from "tweakpane";
8
- import * as Hn from "@tweakpane/plugin-essentials";
9
- import un, { useState as ae, useRef as we, useEffect as Ne, Component as Kn, forwardRef as Xn } from "react";
10
- import { Reorder as dn } from "framer-motion";
11
- function Ki(t, n, i) {
12
- return Math.min(n, Math.max(t, i));
13
- }
14
- function Xi(t, n) {
15
- const i = t - n;
16
- return Math.sqrt(i * i);
17
- }
18
- function Zn() {
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";
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) {
12
+ return Math.min(n, Math.max(t, a));
13
+ }
14
+ function oi(t, n) {
15
+ const a = t - n;
16
+ return Math.sqrt(a * a);
17
+ }
18
+ function ea() {
19
19
  return Math.round(Math.random() * 1e6).toString();
20
20
  }
21
- function qn(t) {
21
+ function ta(t) {
22
22
  return t.r !== void 0 && t.g !== void 0 && t.b !== void 0;
23
23
  }
24
- function Qn(t) {
25
- const n = Math.round(t.r * 255), i = Math.round(t.g * 255), e = Math.round(t.b * 255), a = (d) => {
26
- const m = d.toString(16);
27
- return m.length === 1 ? "0" + m : m;
28
- }, s = a(n), h = a(i), l = a(e);
29
- return "#" + s + h + l;
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);
27
+ return p.length === 1 ? "0" + p : p;
28
+ }, s = r(n), u = r(a), l = r(e);
29
+ return "#" + s + u + l;
30
30
  }
31
- function Mt(t, n = 1) {
31
+ function _t(t, n = 1) {
32
32
  return Number(t.toFixed(n));
33
33
  }
34
- let Dt = 0;
35
- const Jn = () => {
36
- Dt = 0;
37
- }, fn = (t) => {
34
+ let It = 0;
35
+ const aa = () => {
36
+ It = 0;
37
+ }, pn = (t) => {
38
38
  if (!t)
39
39
  return;
40
40
  let n = t.name.replace(" ", "");
41
- n.length === 0 && (n = `obj_${Dt}`, Dt++), t.parent !== null && (n = `${t.parent.uuid}.${n}`), t.uuid = n, t.children.forEach((i) => {
42
- fn(i);
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);
43
43
  });
44
- }, Zi = (t) => {
44
+ }, si = (t) => {
45
45
  t == null || t.dispose();
46
- }, ei = (t) => {
46
+ }, ia = (t) => {
47
47
  t && (Array.isArray(t) ? t.forEach((n) => n.dispose()) : t.dispose());
48
- }, hn = (t) => {
48
+ }, mn = (t) => {
49
49
  var n;
50
50
  if (t) {
51
51
  for (; t.children.length > 0; ) {
52
- const i = t.children[0];
53
- i instanceof Mn ? (i.pause(), i.parent && i.parent.remove(i)) : hn(i);
52
+ const a = t.children[0];
53
+ a instanceof jn ? (a.pause(), a.parent && a.parent.remove(a)) : mn(a);
54
54
  }
55
55
  if (t.parent && t.parent.remove(t), t.isMesh) {
56
- const i = t;
57
- (n = i.geometry) == null || n.dispose(), ei(i.material);
56
+ const a = t;
57
+ (n = a.geometry) == null || n.dispose(), ia(a.material);
58
58
  }
59
59
  t.dispose !== void 0 && t.dispose();
60
60
  }
61
61
  };
62
- class qi {
63
- constructor(n, i, e = "editor") {
64
- q(this, "channel");
65
- q(this, "components", /* @__PURE__ */ new Map());
62
+ class ci {
63
+ constructor(n, a, e = "editor") {
64
+ Z(this, "channel");
65
+ Z(this, "components", /* @__PURE__ */ new Map());
66
66
  // Protected
67
- q(this, "_mode", "app");
68
- this.editor = i && document.location.hash.search(e) > -1, i && (this.channel = new BroadcastChannel(n));
67
+ Z(this, "_mode", "app");
68
+ this.editor = a && document.location.hash.search(e) > -1, a && (this.channel = new BroadcastChannel(n));
69
69
  }
70
- addComponent(n, i) {
71
- this.components.set(n, i);
70
+ addComponent(n, a) {
71
+ this.components.set(n, a);
72
72
  }
73
73
  dispose() {
74
74
  this.components.forEach((n) => {
@@ -80,8 +80,8 @@ class qi {
80
80
  this.channel !== void 0 && this._mode !== n.target && this.channel.postMessage(n);
81
81
  }
82
82
  listen(n) {
83
- this.channel !== void 0 && (this.channel.onmessage = (i) => {
84
- n(i.data);
83
+ this.channel !== void 0 && (this.channel.onmessage = (a) => {
84
+ n(a.data);
85
85
  });
86
86
  }
87
87
  // Getters / Setters
@@ -95,7 +95,7 @@ class qi {
95
95
  n && (this._mode = "editor", document.title += " - Editor");
96
96
  }
97
97
  }
98
- const z = new rn(), Y = {
98
+ const _ = new on(), j = {
99
99
  CUSTOM: "ToolEvents::custom",
100
100
  // Components
101
101
  SELECT_DROPDOWN: "ToolEvents::selectDropdown",
@@ -111,82 +111,92 @@ const z = new rn(), Y = {
111
111
  ADD_CAMERA: "ToolEvents::addCamera",
112
112
  REMOVE_CAMERA: "ToolEvents::removeCamera"
113
113
  };
114
- class Et {
114
+ class Ct {
115
115
  constructor(n) {
116
- q(this, "app");
116
+ Z(this, "app");
117
117
  this.app = n;
118
118
  }
119
119
  dispose() {
120
120
  }
121
121
  }
122
- class Qi extends Et {
123
- selectDropdown(n, i) {
122
+ class li extends Ct {
123
+ selectDropdown(n, a) {
124
124
  this.app.send({
125
125
  event: "selectComponent",
126
126
  target: "app",
127
127
  data: {
128
128
  dropdown: n,
129
- value: i
129
+ value: a
130
130
  }
131
131
  });
132
132
  }
133
- updateDropdown(n, i) {
133
+ updateDropdown(n, a) {
134
134
  this.app.send({
135
135
  event: "draggableListUpdate",
136
136
  target: "app",
137
137
  data: {
138
138
  dropdown: n,
139
- value: i
139
+ value: a
140
140
  }
141
141
  });
142
142
  }
143
143
  }
144
- const pn = () => {
144
+ function ra(t, n) {
145
+ switch (n.event) {
146
+ case "selectComponent":
147
+ _.dispatchEvent({ type: j.SELECT_DROPDOWN, value: n.data });
148
+ break;
149
+ case "draggableListUpdate":
150
+ _.dispatchEvent({ type: j.DRAG_UPDATE, value: n.data });
151
+ break;
152
+ }
153
+ }
154
+ const gn = () => {
145
155
  };
146
- class Ji extends Et {
147
- constructor(i, e, a) {
148
- super(i);
149
- q(this, "project");
150
- q(this, "sheets");
151
- q(this, "sheetObjects");
152
- q(this, "sheetObjectCBs");
153
- q(this, "sheetObjectUnsubscribe");
154
- this.project = Yn(e, a), this.sheets = /* @__PURE__ */ new Map(), this.sheetObjects = /* @__PURE__ */ new Map(), this.sheetObjectCBs = /* @__PURE__ */ new Map(), this.sheetObjectUnsubscribe = /* @__PURE__ */ new Map();
156
+ class vn extends Ct {
157
+ constructor(a, e, r) {
158
+ super(a);
159
+ 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();
155
165
  }
156
166
  dispose() {
157
167
  this.project = void 0, this.sheets = /* @__PURE__ */ new Map(), this.sheetObjects = /* @__PURE__ */ new Map(), this.sheetObjectCBs = /* @__PURE__ */ new Map(), this.sheetObjectUnsubscribe = /* @__PURE__ */ new Map();
158
168
  }
159
- sheet(i) {
160
- var a;
169
+ sheet(a) {
170
+ var r;
161
171
  if (this.project === void 0) {
162
172
  console.error("Theatre Project hasn't been created yet.");
163
173
  return;
164
174
  }
165
- let e = this.sheets.get(i);
166
- return e !== void 0 || (e = (a = this.project) == null ? void 0 : a.sheet(i), this.sheets.set(i, e)), e;
175
+ let e = this.sheets.get(a);
176
+ return e !== void 0 || (e = (r = this.project) == null ? void 0 : r.sheet(a), this.sheets.set(a, e)), e;
167
177
  }
168
- sheetObject(i, e, a, s) {
178
+ sheetObject(a, e, r, s) {
169
179
  if (this.project === void 0) {
170
180
  console.error("Theatre Project hasn't been created yet.");
171
181
  return;
172
182
  }
173
- const h = this.sheets.get(i);
174
- if (h === void 0)
183
+ const u = this.sheets.get(a);
184
+ if (u === void 0)
175
185
  return;
176
- const l = `${i}_${e}`;
186
+ const l = `${a}_${e}`;
177
187
  let d = this.sheetObjects.get(l);
178
188
  if (d !== void 0)
179
- return d = h.object(e, { ...a, ...d.value }, { reconfigure: !0 }), d;
180
- d = h.object(e, a), this.sheetObjects.set(l, d), this.sheetObjectCBs.set(l, s !== void 0 ? s : pn);
181
- const m = d.onValuesChange((v) => {
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) => {
182
192
  if (this.app.editor) {
183
193
  for (const E in v) {
184
- const x = v[E];
185
- typeof x == "object" && qn(x) && (v[E] = {
186
- r: x.r,
187
- g: x.g,
188
- b: x.b,
189
- a: x.a
194
+ const w = v[E];
195
+ typeof w == "object" && ta(w) && (v[E] = {
196
+ r: w.r,
197
+ g: w.g,
198
+ b: w.b,
199
+ a: w.a
190
200
  });
191
201
  }
192
202
  this.app.send({
@@ -202,18 +212,87 @@ class Ji extends Et {
202
212
  E !== void 0 && E(v);
203
213
  }
204
214
  });
205
- return this.sheetObjectUnsubscribe.set(l, m), d;
215
+ return this.sheetObjectUnsubscribe.set(l, p), d;
206
216
  }
207
- unsubscribe(i) {
217
+ unsubscribe(a) {
208
218
  if (this.project === void 0) {
209
219
  console.error("Theatre Project hasn't been created yet.");
210
220
  return;
211
221
  }
212
- const e = `${i.address.sheetId}_${i.address.objectKey}`, a = this.sheetObjectUnsubscribe.get(e);
213
- a !== void 0 && a();
222
+ const e = `${a.address.sheetId}_${a.address.objectKey}`, r = this.sheetObjectUnsubscribe.get(e);
223
+ r !== void 0 && r();
214
224
  }
215
225
  }
216
- function ti(t) {
226
+ let Me;
227
+ function oa(t, n) {
228
+ t.components.forEach((a) => {
229
+ if (a instanceof vn) {
230
+ let e;
231
+ const r = a;
232
+ switch (n.event) {
233
+ case "setSheet":
234
+ e = r.sheets.get(n.data.sheet), e !== void 0 && (Me = e, rt.setSelection([e]));
235
+ break;
236
+ case "setSheetObject":
237
+ e = r.sheetObjects.get(`${n.data.sheet}_${n.data.key}`), e !== void 0 && rt.setSelection([e]);
238
+ break;
239
+ case "updateSheetObject":
240
+ e = r.sheetObjectCBs.get(n.data.sheetObject), e !== void 0 && e(n.data.values);
241
+ break;
242
+ case "updateTimeline":
243
+ e = r.sheets.get(n.data.sheet), Me !== void 0 && (Me.sequence.position = n.data.position);
244
+ break;
245
+ }
246
+ }
247
+ });
248
+ }
249
+ function sa(t) {
250
+ if (t.editor) {
251
+ let n;
252
+ t.components.forEach((s) => {
253
+ s instanceof vn && (n = s);
254
+ }), 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) {
258
+ case "Theatre_Sheet_PublicAPI":
259
+ d = "setSheet", p = {
260
+ sheet: u.address.sheetId
261
+ }, Me = n.sheets.get(u.address.sheetId);
262
+ break;
263
+ case "Theatre_SheetObject_PublicAPI":
264
+ d = "setSheetObject", l += `_${u.address.objectKey}`, p = {
265
+ id: l,
266
+ sheet: u.address.sheetId,
267
+ key: u.address.objectKey
268
+ };
269
+ break;
270
+ }
271
+ t.send({ event: d, target: "app", data: p });
272
+ });
273
+ });
274
+ let a = 0;
275
+ const e = () => {
276
+ if (Me !== void 0 && a !== Me.sequence.position) {
277
+ a = Me.sequence.position;
278
+ const s = Me;
279
+ t.send({
280
+ event: "updateTimeline",
281
+ target: "app",
282
+ data: {
283
+ position: a,
284
+ sheet: s.address.sheetId
285
+ }
286
+ });
287
+ }
288
+ }, r = () => {
289
+ e(), requestAnimationFrame(r);
290
+ };
291
+ e(), r();
292
+ } else
293
+ rt.ui.hide();
294
+ }
295
+ function ca(t) {
217
296
  if (t.name === "cameras")
218
297
  return "camera";
219
298
  if (t.name === "interactive")
@@ -227,26 +306,26 @@ function ti(t) {
227
306
  const n = t.type;
228
307
  return n.search("Helper") > -1 ? "icon_utils" : n.search("Camera") > -1 ? "camera" : n.search("Light") > -1 ? "light" : "obj3D";
229
308
  }
230
- function mn(t) {
309
+ function bn(t) {
231
310
  const n = {
232
311
  name: t.name,
233
312
  type: t.type,
234
313
  uuid: t.uuid,
235
314
  children: []
236
315
  };
237
- return t.children.forEach((i) => {
238
- n.children.push(mn(i));
316
+ return t.children.forEach((a) => {
317
+ n.children.push(bn(a));
239
318
  }), n;
240
319
  }
241
- function ni(t) {
320
+ function la(t) {
242
321
  const n = {};
243
- for (const i in t) {
244
- const e = t[i].value;
245
- n[i] = { value: e }, e === null ? n[i].value = { src: "" } : e.isTexture && (n[i].value = { src: e.image.src });
322
+ for (const a in t) {
323
+ const e = t[a].value;
324
+ n[a] = { value: e }, e === null ? n[a].value = { src: "" } : e.isTexture && (n[a].value = { src: e.image.src });
246
325
  }
247
326
  return n;
248
327
  }
249
- function ii(t) {
328
+ function ua(t) {
250
329
  switch (t) {
251
330
  case "blendSrcAlpha":
252
331
  case "blendDstAlpha":
@@ -258,36 +337,36 @@ function ii(t) {
258
337
  }
259
338
  return !1;
260
339
  }
261
- function zt(t) {
340
+ function Ht(t) {
262
341
  const n = {};
263
- for (const i in t) {
264
- if (i.substring(0, 1) === "_" || i.substring(0, 2) === "is" || ii(i))
342
+ for (const a in t) {
343
+ if (a.substring(0, 1) === "_" || a.substring(0, 2) === "is" || ua(a))
265
344
  continue;
266
- const e = typeof t[i], a = t[i];
345
+ const e = typeof t[a], r = t[a];
267
346
  switch (e) {
268
347
  case "boolean":
269
348
  case "number":
270
349
  case "string":
271
- n[i] = a;
350
+ n[a] = r;
272
351
  break;
273
352
  case "object":
274
- if (a !== null)
275
- if (n[i] = a, a.isTexture)
276
- if (a instanceof an) {
277
- const s = a.source.toJSON();
278
- n[i] = { src: s.url };
353
+ if (r !== null)
354
+ if (n[a] = r, r.isTexture)
355
+ if (r instanceof sn) {
356
+ const s = r.source.toJSON();
357
+ n[a] = { src: s.url };
279
358
  } else
280
- a instanceof Rn && (console.log("env map"), console.log(a.source.data), console.log(a.source.toJSON()), n[i] = { src: "" });
359
+ r instanceof kn && (console.log("env map"), console.log(r.source.data), console.log(r.source.toJSON()), n[a] = { src: "" });
281
360
  else
282
- i === "uniforms" && (n[i] = ni(n[i]));
361
+ a === "uniforms" && (n[a] = la(n[a]));
283
362
  else
284
- n[i] = { src: "" };
363
+ n[a] = { src: "" };
285
364
  break;
286
365
  }
287
366
  }
288
367
  return n;
289
368
  }
290
- function Rt(t) {
369
+ function jt(t) {
291
370
  t.updateMatrix();
292
371
  const n = {
293
372
  name: t.name,
@@ -308,18 +387,18 @@ function Rt(t) {
308
387
  blendMode: e.blendMode
309
388
  });
310
389
  });
311
- const i = t.type.toLowerCase();
312
- if (i.search("mesh") > -1) {
390
+ const a = t.type.toLowerCase();
391
+ if (a.search("mesh") > -1) {
313
392
  const e = t;
314
393
  if (Array.isArray(e.material)) {
315
- const a = [];
394
+ const r = [];
316
395
  e.material.forEach((s) => {
317
- a.push(zt(s));
318
- }), n.material = a;
396
+ r.push(Ht(s));
397
+ }), n.material = r;
319
398
  } else
320
- n.material = zt(e.material);
399
+ n.material = Ht(e.material);
321
400
  } else
322
- i.search("camera") > -1 ? t.type === "PerspectiveCamera" ? n.perspectiveCameraInfo = {
401
+ a.search("camera") > -1 ? t.type === "PerspectiveCamera" ? n.perspectiveCameraInfo = {
323
402
  fov: t.fov,
324
403
  zoom: t.zoom,
325
404
  near: t.near,
@@ -336,7 +415,7 @@ function Rt(t) {
336
415
  right: t.right,
337
416
  top: t.top,
338
417
  bottom: t.bottom
339
- }) : i.search("light") > -1 && (n.lightInfo = {
418
+ }) : a.search("light") > -1 && (n.lightInfo = {
340
419
  color: t.color,
341
420
  intensity: t.intensity,
342
421
  decay: t.decay,
@@ -347,109 +426,109 @@ function Rt(t) {
347
426
  });
348
427
  return n;
349
428
  }
350
- function J(t, n, i) {
429
+ function Q(t, n, a) {
351
430
  const e = n.split(".");
352
431
  switch (e.length) {
353
432
  case 1:
354
- t[e[0]] = i;
433
+ t[e[0]] = a;
355
434
  break;
356
435
  case 2:
357
- t[e[0]][e[1]] = i;
436
+ t[e[0]][e[1]] = a;
358
437
  break;
359
438
  case 3:
360
- t[e[0]][e[1]][e[2]] = i;
439
+ t[e[0]][e[1]][e[2]] = a;
361
440
  break;
362
441
  case 4:
363
- t[e[0]][e[1]][e[2]][e[3]] = i;
442
+ t[e[0]][e[1]][e[2]][e[3]] = a;
364
443
  break;
365
444
  case 5:
366
- t[e[0]][e[1]][e[2]][e[3]][e[4]] = i;
445
+ t[e[0]][e[1]][e[2]][e[3]][e[4]] = a;
367
446
  break;
368
447
  }
369
448
  }
370
- function kt(t) {
371
- return new Promise((n, i) => {
449
+ function Nt(t) {
450
+ return new Promise((n, a) => {
372
451
  const e = new Image();
373
452
  e.onload = () => {
374
- const a = new an(e);
375
- a.wrapS = $t, a.wrapT = $t, a.needsUpdate = !0, n(a);
376
- }, e.onerror = i, e.src = t;
453
+ const r = new sn(e);
454
+ r.wrapS = zt, r.wrapT = zt, r.needsUpdate = !0, n(r);
455
+ }, e.onerror = a, e.src = t;
377
456
  });
378
457
  }
379
- class er extends Et {
458
+ class ui extends Ct {
380
459
  constructor() {
381
460
  super(...arguments);
382
- q(this, "scene");
461
+ Z(this, "scene");
383
462
  }
384
- getObject(i) {
463
+ getObject(a) {
385
464
  this.app.send({
386
465
  event: "getObject",
387
466
  target: "app",
388
- data: i
467
+ data: a
389
468
  });
390
469
  }
391
- setObject(i) {
392
- const e = Rt(i);
470
+ setObject(a) {
471
+ const e = jt(a);
393
472
  this.app.send({
394
473
  event: "setObject",
395
474
  target: "editor",
396
475
  data: e
397
476
  });
398
477
  }
399
- requestMethod(i, e, a) {
478
+ requestMethod(a, e, r) {
400
479
  this.app.send({
401
480
  event: "requestMethod",
402
481
  target: "app",
403
482
  data: {
404
- uuid: i,
483
+ uuid: a,
405
484
  key: e,
406
- value: a
485
+ value: r
407
486
  }
408
487
  });
409
488
  }
410
- updateObject(i, e, a) {
489
+ updateObject(a, e, r) {
411
490
  this.app.send({
412
491
  event: "updateObject",
413
492
  target: "app",
414
493
  data: {
415
- uuid: i,
494
+ uuid: a,
416
495
  key: e,
417
- value: a
496
+ value: r
418
497
  }
419
498
  });
420
499
  }
421
- createTexture(i, e, a) {
500
+ createTexture(a, e, r) {
422
501
  this.app.send({
423
502
  event: "createTexture",
424
503
  target: "app",
425
504
  data: {
426
- uuid: i,
505
+ uuid: a,
427
506
  key: e,
428
- value: a
507
+ value: r
429
508
  }
430
509
  });
431
510
  }
432
- setScene(i) {
433
- if (i === void 0)
511
+ setScene(a) {
512
+ if (a === void 0)
434
513
  return;
435
- this.scene = i, Jn(), fn(this.scene);
436
- const e = mn(this.scene);
514
+ this.scene = a, aa(), pn(this.scene);
515
+ const e = bn(this.scene);
437
516
  this.app.send({
438
517
  event: "setScene",
439
518
  target: "editor",
440
519
  data: e
441
520
  });
442
521
  }
443
- addCamera(i) {
444
- const e = Rt(i);
522
+ addCamera(a) {
523
+ const e = jt(a);
445
524
  this.app.send({
446
525
  event: "addCamera",
447
526
  target: "editor",
448
527
  data: e
449
528
  });
450
529
  }
451
- removeCamera(i) {
452
- const e = Rt(i);
530
+ removeCamera(a) {
531
+ const e = jt(a);
453
532
  this.app.send({
454
533
  event: "removeCamera",
455
534
  target: "editor",
@@ -457,37 +536,69 @@ class er extends Et {
457
536
  });
458
537
  }
459
538
  }
460
- class tr extends Et {
461
- constructor(i) {
462
- super(i);
463
- q(this, "bindCBs");
464
- q(this, "buttonCBs");
465
- q(this, "pane");
466
- q(this, "appCallbacks", 0);
467
- q(this, "editorCallbacks", 0);
468
- q(this, "inspectorFolder");
469
- this.bindCBs = /* @__PURE__ */ new Map(), this.buttonCBs = /* @__PURE__ */ new Map(), i.editor && this.createGUI();
539
+ function da(t, n) {
540
+ switch (n.event) {
541
+ case "getObject":
542
+ _.dispatchEvent({ type: j.GET_OBJECT, value: n.data });
543
+ break;
544
+ case "updateObject":
545
+ _.dispatchEvent({ type: j.UPDATE_OBJECT, value: n.data });
546
+ break;
547
+ case "createTexture":
548
+ _.dispatchEvent({ type: j.CREATE_TEXTURE, value: n.data });
549
+ break;
550
+ case "requestMethod":
551
+ _.dispatchEvent({ type: j.REQUEST_METHOD, value: n.data });
552
+ break;
553
+ }
554
+ }
555
+ function fa(t, n) {
556
+ switch (n.event) {
557
+ case "setObject":
558
+ _.dispatchEvent({ type: j.SET_OBJECT, value: n.data });
559
+ break;
560
+ case "setScene":
561
+ _.dispatchEvent({ type: j.SET_SCENE, value: n.data });
562
+ break;
563
+ case "addCamera":
564
+ _.dispatchEvent({ type: j.ADD_CAMERA, value: n.data });
565
+ break;
566
+ case "removeCamera":
567
+ _.dispatchEvent({ type: j.REMOVE_CAMERA, value: n.data });
568
+ break;
569
+ }
570
+ }
571
+ class ha extends Ct {
572
+ constructor(a) {
573
+ super(a);
574
+ Z(this, "bindCBs");
575
+ Z(this, "buttonCBs");
576
+ Z(this, "pane");
577
+ Z(this, "appCallbacks", 0);
578
+ Z(this, "editorCallbacks", 0);
579
+ Z(this, "inspectorFolder");
580
+ this.bindCBs = /* @__PURE__ */ new Map(), this.buttonCBs = /* @__PURE__ */ new Map(), a.editor && this.createGUI();
470
581
  }
471
582
  createGUI() {
472
- this.pane = new Wn({ title: "GUI" }), this.pane.registerPlugin(Hn);
583
+ this.pane = new qn({ title: "GUI" }), this.pane.registerPlugin(Zn);
473
584
  }
474
585
  dispose() {
475
- var i;
476
- this.bindCBs.clear(), this.buttonCBs.clear(), this.appCallbacks = 0, this.editorCallbacks = 0, this.app.editor && ((i = this.pane) == null || i.dispose(), this.pane = void 0);
586
+ var a;
587
+ this.bindCBs.clear(), this.buttonCBs.clear(), this.appCallbacks = 0, this.editorCallbacks = 0, this.app.editor && ((a = this.pane) == null || a.dispose(), this.pane = void 0);
477
588
  }
478
- addFolder(i, e = void 0, a = void 0) {
589
+ addFolder(a, e = void 0, r = void 0) {
479
590
  if (this.app.editor)
480
- return this.pane === void 0 && this.createGUI(), (a !== void 0 ? a : this.pane).addFolder({
481
- title: i,
591
+ return this.pane === void 0 && this.createGUI(), (r !== void 0 ? r : this.pane).addFolder({
592
+ title: a,
482
593
  ...e
483
594
  });
484
595
  this.app.send({
485
596
  event: "addFolder",
486
597
  target: "app",
487
598
  data: {
488
- name: i,
599
+ name: a,
489
600
  params: e,
490
- parent: a
601
+ parent: r
491
602
  }
492
603
  });
493
604
  }
@@ -495,36 +606,36 @@ class tr extends Et {
495
606
  return `debug_${Math.max(this.appCallbacks, this.editorCallbacks)}`;
496
607
  }
497
608
  // Binding
498
- bind(i, e, a, s = void 0) {
499
- const h = this.bindID, l = a.onChange !== void 0 ? a.onChange : pn;
500
- this.bindCBs.set(h, l), this.app.editor ? (this.pane === void 0 && this.createGUI(), (s !== void 0 ? s : this.pane).addBinding(i, e, a).on("change", (m) => {
609
+ 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) => {
501
612
  this.app.send({
502
613
  event: "updateBind",
503
614
  target: "app",
504
615
  data: {
505
- id: h,
506
- value: m.value
616
+ id: u,
617
+ value: p.value
507
618
  }
508
619
  });
509
620
  }), this.editorCallbacks++) : (this.app.send({
510
621
  event: "bindObject",
511
622
  target: "app",
512
623
  data: {
513
- id: h,
624
+ id: u,
514
625
  name: e,
515
- params: a,
626
+ params: r,
516
627
  parent: s
517
628
  }
518
629
  }), this.appCallbacks++);
519
630
  }
520
- triggerBind(i, e) {
521
- const a = this.bindCBs.get(i);
522
- a !== void 0 ? a(e) : console.warn(`No callback for: ${i}`, e);
631
+ triggerBind(a, e) {
632
+ const r = this.bindCBs.get(a);
633
+ r !== void 0 ? r(e) : console.warn(`No callback for: ${a}`, e);
523
634
  }
524
635
  // Buttons
525
- button(i, e, a = void 0) {
636
+ button(a, e, r = void 0) {
526
637
  const s = this.bindID;
527
- this.buttonCBs.set(s, e), this.app.editor ? (this.pane === void 0 && this.createGUI(), (a !== void 0 ? a : this.pane).addButton({ title: i }).on("click", () => {
638
+ this.buttonCBs.set(s, e), this.app.editor ? (this.pane === void 0 && this.createGUI(), (r !== void 0 ? r : this.pane).addButton({ title: a }).on("click", () => {
528
639
  this.app.send({
529
640
  event: "clickButton",
530
641
  target: "app",
@@ -537,14 +648,14 @@ class tr extends Et {
537
648
  target: "app",
538
649
  data: {
539
650
  id: s,
540
- name: i,
651
+ name: a,
541
652
  callback: e,
542
- parent: a
653
+ parent: r
543
654
  }
544
655
  }), this.appCallbacks++);
545
656
  }
546
- triggerButton(i) {
547
- const e = this.buttonCBs.get(i);
657
+ triggerButton(a) {
658
+ const e = this.buttonCBs.get(a);
548
659
  e !== void 0 && e();
549
660
  }
550
661
  // Inspector
@@ -552,12 +663,37 @@ class tr extends Et {
552
663
  this.inspectorFolder = this.addFolder("Inspector", this.pane);
553
664
  }
554
665
  clearInspector() {
555
- const i = this.inspectorFolder.children.length - 1;
556
- for (let e = i; e > -1; --e)
666
+ const a = this.inspectorFolder.children.length - 1;
667
+ for (let e = a; e > -1; --e)
557
668
  this.inspectorFolder.remove(this.inspectorFolder.children[e]);
558
669
  }
559
670
  }
560
- var At = { exports: {} }, et = {};
671
+ function pa(t, n) {
672
+ t.components.forEach((a) => {
673
+ if (a instanceof ha) {
674
+ const e = a;
675
+ switch (n.event) {
676
+ case "addFolder":
677
+ e.addFolder(n.data.name, n.data.params, n.data.parent);
678
+ break;
679
+ case "bindObject":
680
+ e.bind(n.data.name, n.data.params, n.data.parent);
681
+ break;
682
+ case "updateBind":
683
+ e.triggerBind(n.data.id, n.data.value);
684
+ break;
685
+ case "addButton":
686
+ e.button(n.data.name, n.data.callback, n.data.parent);
687
+ break;
688
+ case "clickButton":
689
+ e.triggerButton(n.data.id);
690
+ break;
691
+ }
692
+ return;
693
+ }
694
+ });
695
+ }
696
+ var Lt = { exports: {} }, nt = {};
561
697
  /**
562
698
  * @license React
563
699
  * react-jsx-runtime.production.min.js
@@ -567,25 +703,25 @@ var At = { exports: {} }, et = {};
567
703
  * This source code is licensed under the MIT license found in the
568
704
  * LICENSE file in the root directory of this source tree.
569
705
  */
570
- var Yt;
571
- function ri() {
572
- if (Yt)
573
- return et;
574
- Yt = 1;
575
- var t = un, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), e = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
576
- function h(l, d, m) {
577
- var v, E = {}, x = null, R = null;
578
- m !== void 0 && (x = "" + m), d.key !== void 0 && (x = "" + d.key), d.ref !== void 0 && (R = d.ref);
706
+ var Kt;
707
+ function ma() {
708
+ if (Kt)
709
+ 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) {
713
+ 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);
579
715
  for (v in d)
580
716
  e.call(d, v) && !s.hasOwnProperty(v) && (E[v] = d[v]);
581
717
  if (l && l.defaultProps)
582
718
  for (v in d = l.defaultProps, d)
583
719
  E[v] === void 0 && (E[v] = d[v]);
584
- return { $$typeof: n, type: l, key: x, ref: R, props: E, _owner: a.current };
720
+ return { $$typeof: n, type: l, key: w, ref: R, props: E, _owner: r.current };
585
721
  }
586
- return et.Fragment = i, et.jsx = h, et.jsxs = h, et;
722
+ return nt.Fragment = a, nt.jsx = u, nt.jsxs = u, nt;
587
723
  }
588
- var tt = {};
724
+ var at = {};
589
725
  /**
590
726
  * @license React
591
727
  * react-jsx-runtime.development.js
@@ -595,91 +731,91 @@ var tt = {};
595
731
  * This source code is licensed under the MIT license found in the
596
732
  * LICENSE file in the root directory of this source tree.
597
733
  */
598
- var Wt;
599
- function ai() {
600
- return Wt || (Wt = 1, process.env.NODE_ENV !== "production" && function() {
601
- var t = un, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), T = Symbol.iterator, B = "@@iterator";
602
- function oe(r) {
603
- if (r === null || typeof r != "object")
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";
738
+ function se(i) {
739
+ if (i === null || typeof i != "object")
604
740
  return null;
605
- var f = T && r[T] || r[B];
606
- return typeof f == "function" ? f : null;
741
+ var h = T && i[T] || i[G];
742
+ return typeof h == "function" ? h : null;
607
743
  }
608
744
  var H = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
609
- function C(r) {
745
+ function C(i) {
610
746
  {
611
- for (var f = arguments.length, g = new Array(f > 1 ? f - 1 : 0), w = 1; w < f; w++)
612
- g[w - 1] = arguments[w];
613
- K("error", r, g);
747
+ for (var h = arguments.length, g = new Array(h > 1 ? h - 1 : 0), x = 1; x < h; x++)
748
+ g[x - 1] = arguments[x];
749
+ K("error", i, g);
614
750
  }
615
751
  }
616
- function K(r, f, g) {
752
+ function K(i, h, g) {
617
753
  {
618
- var w = H.ReactDebugCurrentFrame, j = w.getStackAddendum();
619
- j !== "" && (f += "%s", g = g.concat([j]));
620
- var I = g.map(function(P) {
754
+ var x = H.ReactDebugCurrentFrame, k = x.getStackAddendum();
755
+ k !== "" && (h += "%s", g = g.concat([k]));
756
+ var L = g.map(function(P) {
621
757
  return String(P);
622
758
  });
623
- I.unshift("Warning: " + f), Function.prototype.apply.call(console[r], console, I);
759
+ L.unshift("Warning: " + h), Function.prototype.apply.call(console[i], console, L);
624
760
  }
625
761
  }
626
- var de = !1, ce = !1, ee = !1, u = !1, p = !1, b;
762
+ var fe = !1, le = !1, ee = !1, f = !1, m = !1, b;
627
763
  b = Symbol.for("react.module.reference");
628
- function S(r) {
629
- return !!(typeof r == "string" || typeof r == "function" || r === e || r === s || p || r === a || r === m || r === v || u || r === R || de || ce || ee || typeof r == "object" && r !== null && (r.$$typeof === x || r.$$typeof === E || r.$$typeof === h || r.$$typeof === l || r.$$typeof === d || // This needs to include all possible module reference object
764
+ 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
630
766
  // types supported by any Flight configuration anywhere since
631
767
  // we don't know which Flight build this will end up being used
632
768
  // with.
633
- r.$$typeof === b || r.getModuleId !== void 0));
769
+ i.$$typeof === b || i.getModuleId !== void 0));
634
770
  }
635
- function F(r, f, g) {
636
- var w = r.displayName;
637
- if (w)
638
- return w;
639
- var j = f.displayName || f.name || "";
640
- return j !== "" ? g + "(" + j + ")" : g;
771
+ function B(i, h, g) {
772
+ var x = i.displayName;
773
+ if (x)
774
+ return x;
775
+ var k = h.displayName || h.name || "";
776
+ return k !== "" ? g + "(" + k + ")" : g;
641
777
  }
642
- function U(r) {
643
- return r.displayName || "Context";
778
+ function $(i) {
779
+ return i.displayName || "Context";
644
780
  }
645
- function N(r) {
646
- if (r == null)
781
+ function F(i) {
782
+ if (i == null)
647
783
  return null;
648
- if (typeof r.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
649
- return r.displayName || r.name || null;
650
- if (typeof r == "string")
651
- return r;
652
- switch (r) {
784
+ if (typeof i.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
785
+ return i.displayName || i.name || null;
786
+ if (typeof i == "string")
787
+ return i;
788
+ switch (i) {
653
789
  case e:
654
790
  return "Fragment";
655
- case i:
791
+ case a:
656
792
  return "Portal";
657
793
  case s:
658
794
  return "Profiler";
659
- case a:
795
+ case r:
660
796
  return "StrictMode";
661
- case m:
797
+ case p:
662
798
  return "Suspense";
663
799
  case v:
664
800
  return "SuspenseList";
665
801
  }
666
- if (typeof r == "object")
667
- switch (r.$$typeof) {
802
+ if (typeof i == "object")
803
+ switch (i.$$typeof) {
668
804
  case l:
669
- var f = r;
670
- return U(f) + ".Consumer";
671
- case h:
672
- var g = r;
673
- return U(g._context) + ".Provider";
805
+ var h = i;
806
+ return $(h) + ".Consumer";
807
+ case u:
808
+ var g = i;
809
+ return $(g._context) + ".Provider";
674
810
  case d:
675
- return F(r, r.render, "ForwardRef");
811
+ return B(i, i.render, "ForwardRef");
676
812
  case E:
677
- var w = r.displayName || null;
678
- return w !== null ? w : N(r.type) || "Memo";
679
- case x: {
680
- var j = r, I = j._payload, P = j._init;
813
+ var x = i.displayName || null;
814
+ return x !== null ? x : F(i.type) || "Memo";
815
+ case w: {
816
+ var k = i, L = k._payload, P = k._init;
681
817
  try {
682
- return N(P(I));
818
+ return F(P(L));
683
819
  } catch {
684
820
  return null;
685
821
  }
@@ -687,103 +823,103 @@ function ai() {
687
823
  }
688
824
  return null;
689
825
  }
690
- var D = Object.assign, L = 0, Q, M, k, X, pe, Te, He;
691
- function at() {
826
+ var D = Object.assign, U = 0, J, M, I, X, me, Re, Xe;
827
+ function ct() {
692
828
  }
693
- at.__reactDisabledLog = !0;
694
- function wt() {
829
+ ct.__reactDisabledLog = !0;
830
+ function Ot() {
695
831
  {
696
- if (L === 0) {
697
- Q = console.log, M = console.info, k = console.warn, X = console.error, pe = console.group, Te = console.groupCollapsed, He = console.groupEnd;
698
- var r = {
832
+ if (U === 0) {
833
+ J = console.log, M = console.info, I = console.warn, X = console.error, me = console.group, Re = console.groupCollapsed, Xe = console.groupEnd;
834
+ var i = {
699
835
  configurable: !0,
700
836
  enumerable: !0,
701
- value: at,
837
+ value: ct,
702
838
  writable: !0
703
839
  };
704
840
  Object.defineProperties(console, {
705
- info: r,
706
- log: r,
707
- warn: r,
708
- error: r,
709
- group: r,
710
- groupCollapsed: r,
711
- groupEnd: r
841
+ info: i,
842
+ log: i,
843
+ warn: i,
844
+ error: i,
845
+ group: i,
846
+ groupCollapsed: i,
847
+ groupEnd: i
712
848
  });
713
849
  }
714
- L++;
850
+ U++;
715
851
  }
716
852
  }
717
- function Ct() {
853
+ function Tt() {
718
854
  {
719
- if (L--, L === 0) {
720
- var r = {
855
+ if (U--, U === 0) {
856
+ var i = {
721
857
  configurable: !0,
722
858
  enumerable: !0,
723
859
  writable: !0
724
860
  };
725
861
  Object.defineProperties(console, {
726
- log: D({}, r, {
727
- value: Q
862
+ log: D({}, i, {
863
+ value: J
728
864
  }),
729
- info: D({}, r, {
865
+ info: D({}, i, {
730
866
  value: M
731
867
  }),
732
- warn: D({}, r, {
733
- value: k
868
+ warn: D({}, i, {
869
+ value: I
734
870
  }),
735
- error: D({}, r, {
871
+ error: D({}, i, {
736
872
  value: X
737
873
  }),
738
- group: D({}, r, {
739
- value: pe
874
+ group: D({}, i, {
875
+ value: me
740
876
  }),
741
- groupCollapsed: D({}, r, {
742
- value: Te
877
+ groupCollapsed: D({}, i, {
878
+ value: Re
743
879
  }),
744
- groupEnd: D({}, r, {
745
- value: He
880
+ groupEnd: D({}, i, {
881
+ value: Xe
746
882
  })
747
883
  });
748
884
  }
749
- L < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
885
+ U < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
750
886
  }
751
887
  }
752
- var Ke = H.ReactCurrentDispatcher, Xe;
753
- function Me(r, f, g) {
888
+ var qe = H.ReactCurrentDispatcher, Ze;
889
+ function Pe(i, h, g) {
754
890
  {
755
- if (Xe === void 0)
891
+ if (Ze === void 0)
756
892
  try {
757
893
  throw Error();
758
- } catch (j) {
759
- var w = j.stack.trim().match(/\n( *(at )?)/);
760
- Xe = w && w[1] || "";
894
+ } catch (k) {
895
+ var x = k.stack.trim().match(/\n( *(at )?)/);
896
+ Ze = x && x[1] || "";
761
897
  }
762
898
  return `
763
- ` + Xe + r;
899
+ ` + Ze + i;
764
900
  }
765
901
  }
766
- var Ue = !1, Re;
902
+ var $e = !1, _e;
767
903
  {
768
- var St = typeof WeakMap == "function" ? WeakMap : Map;
769
- Re = new St();
904
+ var Mt = typeof WeakMap == "function" ? WeakMap : Map;
905
+ _e = new Mt();
770
906
  }
771
- function ot(r, f) {
772
- if (!r || Ue)
907
+ function lt(i, h) {
908
+ if (!i || $e)
773
909
  return "";
774
910
  {
775
- var g = Re.get(r);
911
+ var g = _e.get(i);
776
912
  if (g !== void 0)
777
913
  return g;
778
914
  }
779
- var w;
780
- Ue = !0;
781
- var j = Error.prepareStackTrace;
915
+ var x;
916
+ $e = !0;
917
+ var k = Error.prepareStackTrace;
782
918
  Error.prepareStackTrace = void 0;
783
- var I;
784
- I = Ke.current, Ke.current = null, wt();
919
+ var L;
920
+ L = qe.current, qe.current = null, Ot();
785
921
  try {
786
- if (f) {
922
+ if (h) {
787
923
  var P = function() {
788
924
  throw Error();
789
925
  };
@@ -794,200 +930,200 @@ function ai() {
794
930
  }), typeof Reflect == "object" && Reflect.construct) {
795
931
  try {
796
932
  Reflect.construct(P, []);
797
- } catch (ye) {
798
- w = ye;
933
+ } catch (Ee) {
934
+ x = Ee;
799
935
  }
800
- Reflect.construct(r, [], P);
936
+ Reflect.construct(i, [], P);
801
937
  } else {
802
938
  try {
803
939
  P.call();
804
- } catch (ye) {
805
- w = ye;
940
+ } catch (Ee) {
941
+ x = Ee;
806
942
  }
807
- r.call(P.prototype);
943
+ i.call(P.prototype);
808
944
  }
809
945
  } else {
810
946
  try {
811
947
  throw Error();
812
- } catch (ye) {
813
- w = ye;
948
+ } catch (Ee) {
949
+ x = Ee;
814
950
  }
815
- r();
951
+ i();
816
952
  }
817
- } catch (ye) {
818
- if (ye && w && typeof ye.stack == "string") {
819
- for (var O = ye.stack.split(`
820
- `), se = w.stack.split(`
821
- `), W = O.length - 1, Z = se.length - 1; W >= 1 && Z >= 0 && O[W] !== se[Z]; )
822
- Z--;
823
- for (; W >= 1 && Z >= 0; W--, Z--)
824
- if (O[W] !== se[Z]) {
825
- if (W !== 1 || Z !== 1)
953
+ } catch (Ee) {
954
+ if (Ee && x && typeof Ee.stack == "string") {
955
+ for (var O = Ee.stack.split(`
956
+ `), ce = x.stack.split(`
957
+ `), W = O.length - 1, q = ce.length - 1; W >= 1 && q >= 0 && O[W] !== ce[q]; )
958
+ q--;
959
+ for (; W >= 1 && q >= 0; W--, q--)
960
+ if (O[W] !== ce[q]) {
961
+ if (W !== 1 || q !== 1)
826
962
  do
827
- if (W--, Z--, Z < 0 || O[W] !== se[Z]) {
828
- var me = `
963
+ if (W--, q--, q < 0 || O[W] !== ce[q]) {
964
+ var ge = `
829
965
  ` + O[W].replace(" at new ", " at ");
830
- return r.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", r.displayName)), typeof r == "function" && Re.set(r, me), me;
966
+ return i.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", i.displayName)), typeof i == "function" && _e.set(i, ge), ge;
831
967
  }
832
- while (W >= 1 && Z >= 0);
968
+ while (W >= 1 && q >= 0);
833
969
  break;
834
970
  }
835
971
  }
836
972
  } finally {
837
- Ue = !1, Ke.current = I, Ct(), Error.prepareStackTrace = j;
973
+ $e = !1, qe.current = L, Tt(), Error.prepareStackTrace = k;
838
974
  }
839
- var Ge = r ? r.displayName || r.name : "", Bt = Ge ? Me(Ge) : "";
840
- return typeof r == "function" && Re.set(r, Bt), Bt;
975
+ var Ye = i ? i.displayName || i.name : "", Vt = Ye ? Pe(Ye) : "";
976
+ return typeof i == "function" && _e.set(i, Vt), Vt;
841
977
  }
842
- function st(r, f, g) {
843
- return ot(r, !1);
978
+ function ut(i, h, g) {
979
+ return lt(i, !1);
844
980
  }
845
- function ct(r) {
846
- var f = r.prototype;
847
- return !!(f && f.isReactComponent);
981
+ function dt(i) {
982
+ var h = i.prototype;
983
+ return !!(h && h.isReactComponent);
848
984
  }
849
- function Pe(r, f, g) {
850
- if (r == null)
985
+ function je(i, h, g) {
986
+ if (i == null)
851
987
  return "";
852
- if (typeof r == "function")
853
- return ot(r, ct(r));
854
- if (typeof r == "string")
855
- return Me(r);
856
- switch (r) {
857
- case m:
858
- return Me("Suspense");
988
+ if (typeof i == "function")
989
+ return lt(i, dt(i));
990
+ if (typeof i == "string")
991
+ return Pe(i);
992
+ switch (i) {
993
+ case p:
994
+ return Pe("Suspense");
859
995
  case v:
860
- return Me("SuspenseList");
996
+ return Pe("SuspenseList");
861
997
  }
862
- if (typeof r == "object")
863
- switch (r.$$typeof) {
998
+ if (typeof i == "object")
999
+ switch (i.$$typeof) {
864
1000
  case d:
865
- return st(r.render);
1001
+ return ut(i.render);
866
1002
  case E:
867
- return Pe(r.type, f, g);
868
- case x: {
869
- var w = r, j = w._payload, I = w._init;
1003
+ return je(i.type, h, g);
1004
+ case w: {
1005
+ var x = i, k = x._payload, L = x._init;
870
1006
  try {
871
- return Pe(I(j), f, g);
1007
+ return je(L(k), h, g);
872
1008
  } catch {
873
1009
  }
874
1010
  }
875
1011
  }
876
1012
  return "";
877
1013
  }
878
- var Be = Object.prototype.hasOwnProperty, lt = {}, Ze = H.ReactDebugCurrentFrame;
879
- function Ce(r) {
880
- if (r) {
881
- var f = r._owner, g = Pe(r.type, r._source, f ? f.type : null);
882
- Ze.setExtraStackFrame(g);
1014
+ var Ge = Object.prototype.hasOwnProperty, ft = {}, Je = H.ReactDebugCurrentFrame;
1015
+ function Se(i) {
1016
+ if (i) {
1017
+ var h = i._owner, g = je(i.type, i._source, h ? h.type : null);
1018
+ Je.setExtraStackFrame(g);
883
1019
  } else
884
- Ze.setExtraStackFrame(null);
1020
+ Je.setExtraStackFrame(null);
885
1021
  }
886
- function je(r, f, g, w, j) {
1022
+ function ke(i, h, g, x, k) {
887
1023
  {
888
- var I = Function.call.bind(Be);
889
- for (var P in r)
890
- if (I(r, P)) {
1024
+ var L = Function.call.bind(Ge);
1025
+ for (var P in i)
1026
+ if (L(i, P)) {
891
1027
  var O = void 0;
892
1028
  try {
893
- if (typeof r[P] != "function") {
894
- var se = Error((w || "React class") + ": " + g + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
895
- throw se.name = "Invariant Violation", se;
1029
+ if (typeof i[P] != "function") {
1030
+ var ce = Error((x || "React class") + ": " + g + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1031
+ throw ce.name = "Invariant Violation", ce;
896
1032
  }
897
- O = r[P](f, P, w, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1033
+ O = i[P](h, P, x, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
898
1034
  } catch (W) {
899
1035
  O = W;
900
1036
  }
901
- O && !(O instanceof Error) && (Ce(j), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", g, P, typeof O), Ce(null)), O instanceof Error && !(O.message in lt) && (lt[O.message] = !0, Ce(j), C("Failed %s type: %s", g, O.message), Ce(null));
1037
+ O && !(O instanceof Error) && (Se(k), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", g, P, typeof O), Se(null)), O instanceof Error && !(O.message in ft) && (ft[O.message] = !0, Se(k), C("Failed %s type: %s", g, O.message), Se(null));
902
1038
  }
903
1039
  }
904
1040
  }
905
- var Ot = Array.isArray;
906
- function qe(r) {
907
- return Ot(r);
1041
+ var Rt = Array.isArray;
1042
+ function Qe(i) {
1043
+ return Rt(i);
908
1044
  }
909
- function ut(r) {
1045
+ function ht(i) {
910
1046
  {
911
- var f = typeof Symbol == "function" && Symbol.toStringTag, g = f && r[Symbol.toStringTag] || r.constructor.name || "Object";
1047
+ var h = typeof Symbol == "function" && Symbol.toStringTag, g = h && i[Symbol.toStringTag] || i.constructor.name || "Object";
912
1048
  return g;
913
1049
  }
914
1050
  }
915
- function Qe(r) {
1051
+ function et(i) {
916
1052
  try {
917
- return dt(r), !1;
1053
+ return pt(i), !1;
918
1054
  } catch {
919
1055
  return !0;
920
1056
  }
921
1057
  }
922
- function dt(r) {
923
- return "" + r;
1058
+ function pt(i) {
1059
+ return "" + i;
924
1060
  }
925
- function ft(r) {
926
- if (Qe(r))
927
- return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ut(r)), dt(r);
1061
+ function mt(i) {
1062
+ if (et(i))
1063
+ return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ht(i)), pt(i);
928
1064
  }
929
- var Se = H.ReactCurrentOwner, Tt = {
1065
+ var Oe = H.ReactCurrentOwner, Pt = {
930
1066
  key: !0,
931
1067
  ref: !0,
932
1068
  __self: !0,
933
1069
  __source: !0
934
- }, ht, Je, ge;
935
- ge = {};
936
- function o(r) {
937
- if (Be.call(r, "ref")) {
938
- var f = Object.getOwnPropertyDescriptor(r, "ref").get;
939
- if (f && f.isReactWarning)
1070
+ }, gt, tt, ve;
1071
+ ve = {};
1072
+ function o(i) {
1073
+ if (Ge.call(i, "ref")) {
1074
+ var h = Object.getOwnPropertyDescriptor(i, "ref").get;
1075
+ if (h && h.isReactWarning)
940
1076
  return !1;
941
1077
  }
942
- return r.ref !== void 0;
1078
+ return i.ref !== void 0;
943
1079
  }
944
- function y(r) {
945
- if (Be.call(r, "key")) {
946
- var f = Object.getOwnPropertyDescriptor(r, "key").get;
947
- if (f && f.isReactWarning)
1080
+ function y(i) {
1081
+ if (Ge.call(i, "key")) {
1082
+ var h = Object.getOwnPropertyDescriptor(i, "key").get;
1083
+ if (h && h.isReactWarning)
948
1084
  return !1;
949
1085
  }
950
- return r.key !== void 0;
1086
+ return i.key !== void 0;
951
1087
  }
952
- function _(r, f) {
953
- if (typeof r.ref == "string" && Se.current && f && Se.current.stateNode !== f) {
954
- var g = N(Se.current.type);
955
- ge[g] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(Se.current.type), r.ref), ge[g] = !0);
1088
+ function A(i, h) {
1089
+ if (typeof i.ref == "string" && Oe.current && h && Oe.current.stateNode !== h) {
1090
+ var g = F(Oe.current.type);
1091
+ ve[g] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Oe.current.type), i.ref), ve[g] = !0);
956
1092
  }
957
1093
  }
958
- function A(r, f) {
1094
+ function N(i, h) {
959
1095
  {
960
1096
  var g = function() {
961
- ht || (ht = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
1097
+ gt || (gt = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
962
1098
  };
963
- g.isReactWarning = !0, Object.defineProperty(r, "key", {
1099
+ g.isReactWarning = !0, Object.defineProperty(i, "key", {
964
1100
  get: g,
965
1101
  configurable: !0
966
1102
  });
967
1103
  }
968
1104
  }
969
- function te(r, f) {
1105
+ function te(i, h) {
970
1106
  {
971
1107
  var g = function() {
972
- Je || (Je = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
1108
+ tt || (tt = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
973
1109
  };
974
- g.isReactWarning = !0, Object.defineProperty(r, "ref", {
1110
+ g.isReactWarning = !0, Object.defineProperty(i, "ref", {
975
1111
  get: g,
976
1112
  configurable: !0
977
1113
  });
978
1114
  }
979
1115
  }
980
- var ve = function(r, f, g, w, j, I, P) {
1116
+ var be = function(i, h, g, x, k, L, P) {
981
1117
  var O = {
982
1118
  // This tag allows us to uniquely identify this as a React Element
983
1119
  $$typeof: n,
984
1120
  // Built-in properties that belong on the element
985
- type: r,
986
- key: f,
1121
+ type: i,
1122
+ key: h,
987
1123
  ref: g,
988
1124
  props: P,
989
1125
  // Record the component responsible for creating this element.
990
- _owner: I
1126
+ _owner: L
991
1127
  };
992
1128
  return O._store = {}, Object.defineProperty(O._store, "validated", {
993
1129
  configurable: !1,
@@ -998,200 +1134,200 @@ function ai() {
998
1134
  configurable: !1,
999
1135
  enumerable: !1,
1000
1136
  writable: !1,
1001
- value: w
1137
+ value: x
1002
1138
  }), Object.defineProperty(O, "_source", {
1003
1139
  configurable: !1,
1004
1140
  enumerable: !1,
1005
1141
  writable: !1,
1006
- value: j
1142
+ value: k
1007
1143
  }), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;
1008
1144
  };
1009
- function le(r, f, g, w, j) {
1145
+ function ue(i, h, g, x, k) {
1010
1146
  {
1011
- var I, P = {}, O = null, se = null;
1012
- g !== void 0 && (ft(g), O = "" + g), y(f) && (ft(f.key), O = "" + f.key), o(f) && (se = f.ref, _(f, j));
1013
- for (I in f)
1014
- Be.call(f, I) && !Tt.hasOwnProperty(I) && (P[I] = f[I]);
1015
- if (r && r.defaultProps) {
1016
- var W = r.defaultProps;
1017
- for (I in W)
1018
- P[I] === void 0 && (P[I] = W[I]);
1147
+ var L, P = {}, O = null, ce = null;
1148
+ g !== void 0 && (mt(g), O = "" + g), y(h) && (mt(h.key), O = "" + h.key), o(h) && (ce = h.ref, A(h, k));
1149
+ for (L in h)
1150
+ Ge.call(h, L) && !Pt.hasOwnProperty(L) && (P[L] = h[L]);
1151
+ if (i && i.defaultProps) {
1152
+ var W = i.defaultProps;
1153
+ for (L in W)
1154
+ P[L] === void 0 && (P[L] = W[L]);
1019
1155
  }
1020
- if (O || se) {
1021
- var Z = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
1022
- O && A(P, Z), se && te(P, Z);
1156
+ if (O || ce) {
1157
+ var q = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
1158
+ O && N(P, q), ce && te(P, q);
1023
1159
  }
1024
- return ve(r, O, se, j, w, Se.current, P);
1160
+ return be(i, O, ce, k, x, Oe.current, P);
1025
1161
  }
1026
1162
  }
1027
- var pt = H.ReactCurrentOwner, mt = H.ReactDebugCurrentFrame;
1028
- function be(r) {
1029
- if (r) {
1030
- var f = r._owner, g = Pe(r.type, r._source, f ? f.type : null);
1031
- mt.setExtraStackFrame(g);
1163
+ var vt = H.ReactCurrentOwner, bt = H.ReactDebugCurrentFrame;
1164
+ function ye(i) {
1165
+ if (i) {
1166
+ var h = i._owner, g = je(i.type, i._source, h ? h.type : null);
1167
+ bt.setExtraStackFrame(g);
1032
1168
  } else
1033
- mt.setExtraStackFrame(null);
1169
+ bt.setExtraStackFrame(null);
1034
1170
  }
1035
- var fe;
1036
- fe = !1;
1037
- function he(r) {
1038
- return typeof r == "object" && r !== null && r.$$typeof === n;
1171
+ var he;
1172
+ he = !1;
1173
+ function pe(i) {
1174
+ return typeof i == "object" && i !== null && i.$$typeof === n;
1039
1175
  }
1040
- function $e() {
1176
+ function Ve() {
1041
1177
  {
1042
- if (pt.current) {
1043
- var r = N(pt.current.type);
1044
- if (r)
1178
+ if (vt.current) {
1179
+ var i = F(vt.current.type);
1180
+ if (i)
1045
1181
  return `
1046
1182
 
1047
- Check the render method of \`` + r + "`.";
1183
+ Check the render method of \`` + i + "`.";
1048
1184
  }
1049
1185
  return "";
1050
1186
  }
1051
1187
  }
1052
- function _e(r) {
1188
+ function Ae(i) {
1053
1189
  {
1054
- if (r !== void 0) {
1055
- var f = r.fileName.replace(/^.*[\\\/]/, ""), g = r.lineNumber;
1190
+ if (i !== void 0) {
1191
+ var h = i.fileName.replace(/^.*[\\\/]/, ""), g = i.lineNumber;
1056
1192
  return `
1057
1193
 
1058
- Check your code at ` + f + ":" + g + ".";
1194
+ Check your code at ` + h + ":" + g + ".";
1059
1195
  }
1060
1196
  return "";
1061
1197
  }
1062
1198
  }
1063
- var Oe = {};
1064
- function Ve(r) {
1199
+ var Te = {};
1200
+ function ze(i) {
1065
1201
  {
1066
- var f = $e();
1067
- if (!f) {
1068
- var g = typeof r == "string" ? r : r.displayName || r.name;
1069
- g && (f = `
1202
+ var h = Ve();
1203
+ if (!h) {
1204
+ var g = typeof i == "string" ? i : i.displayName || i.name;
1205
+ g && (h = `
1070
1206
 
1071
1207
  Check the top-level render call using <` + g + ">.");
1072
1208
  }
1073
- return f;
1209
+ return h;
1074
1210
  }
1075
1211
  }
1076
- function Lt(r, f) {
1212
+ function Bt(i, h) {
1077
1213
  {
1078
- if (!r._store || r._store.validated || r.key != null)
1214
+ if (!i._store || i._store.validated || i.key != null)
1079
1215
  return;
1080
- r._store.validated = !0;
1081
- var g = Ve(f);
1082
- if (Oe[g])
1216
+ i._store.validated = !0;
1217
+ var g = ze(h);
1218
+ if (Te[g])
1083
1219
  return;
1084
- Oe[g] = !0;
1085
- var w = "";
1086
- r && r._owner && r._owner !== pt.current && (w = " It was passed a child from " + N(r._owner.type) + "."), be(r), 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, w), be(null);
1220
+ Te[g] = !0;
1221
+ var x = "";
1222
+ 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);
1087
1223
  }
1088
1224
  }
1089
- function Ft(r, f) {
1225
+ function $t(i, h) {
1090
1226
  {
1091
- if (typeof r != "object")
1227
+ if (typeof i != "object")
1092
1228
  return;
1093
- if (qe(r))
1094
- for (var g = 0; g < r.length; g++) {
1095
- var w = r[g];
1096
- he(w) && Lt(w, f);
1229
+ if (Qe(i))
1230
+ for (var g = 0; g < i.length; g++) {
1231
+ var x = i[g];
1232
+ pe(x) && Bt(x, h);
1097
1233
  }
1098
- else if (he(r))
1099
- r._store && (r._store.validated = !0);
1100
- else if (r) {
1101
- var j = oe(r);
1102
- if (typeof j == "function" && j !== r.entries)
1103
- for (var I = j.call(r), P; !(P = I.next()).done; )
1104
- he(P.value) && Lt(P.value, f);
1234
+ else if (pe(i))
1235
+ i._store && (i._store.validated = !0);
1236
+ else if (i) {
1237
+ var k = se(i);
1238
+ if (typeof k == "function" && k !== i.entries)
1239
+ for (var L = k.call(i), P; !(P = L.next()).done; )
1240
+ pe(P.value) && Bt(P.value, h);
1105
1241
  }
1106
1242
  }
1107
1243
  }
1108
- function yn(r) {
1244
+ function Cn(i) {
1109
1245
  {
1110
- var f = r.type;
1111
- if (f == null || typeof f == "string")
1246
+ var h = i.type;
1247
+ if (h == null || typeof h == "string")
1112
1248
  return;
1113
1249
  var g;
1114
- if (typeof f == "function")
1115
- g = f.propTypes;
1116
- else if (typeof f == "object" && (f.$$typeof === d || // Note: Memo only checks outer props here.
1250
+ if (typeof h == "function")
1251
+ g = h.propTypes;
1252
+ else if (typeof h == "object" && (h.$$typeof === d || // Note: Memo only checks outer props here.
1117
1253
  // Inner props are checked in the reconciler.
1118
- f.$$typeof === E))
1119
- g = f.propTypes;
1254
+ h.$$typeof === E))
1255
+ g = h.propTypes;
1120
1256
  else
1121
1257
  return;
1122
1258
  if (g) {
1123
- var w = N(f);
1124
- je(g, r.props, "prop", w, r);
1125
- } else if (f.PropTypes !== void 0 && !fe) {
1126
- fe = !0;
1127
- var j = N(f);
1128
- C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
1259
+ var x = F(h);
1260
+ ke(g, i.props, "prop", x, i);
1261
+ } else if (h.PropTypes !== void 0 && !he) {
1262
+ he = !0;
1263
+ var k = F(h);
1264
+ C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
1129
1265
  }
1130
- typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1266
+ typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1131
1267
  }
1132
1268
  }
1133
- function En(r) {
1269
+ function Sn(i) {
1134
1270
  {
1135
- for (var f = Object.keys(r.props), g = 0; g < f.length; g++) {
1136
- var w = f[g];
1137
- if (w !== "children" && w !== "key") {
1138
- be(r), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), be(null);
1271
+ for (var h = Object.keys(i.props), g = 0; g < h.length; g++) {
1272
+ var x = h[g];
1273
+ if (x !== "children" && x !== "key") {
1274
+ ye(i), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), ye(null);
1139
1275
  break;
1140
1276
  }
1141
1277
  }
1142
- r.ref !== null && (be(r), C("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
1278
+ i.ref !== null && (ye(i), C("Invalid attribute `ref` supplied to `React.Fragment`."), ye(null));
1143
1279
  }
1144
1280
  }
1145
- function Ut(r, f, g, w, j, I) {
1281
+ function Gt(i, h, g, x, k, L) {
1146
1282
  {
1147
- var P = S(r);
1283
+ var P = S(i);
1148
1284
  if (!P) {
1149
1285
  var O = "";
1150
- (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1151
- var se = _e(j);
1152
- se ? O += se : O += $e();
1286
+ (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1287
+ var ce = Ae(k);
1288
+ ce ? O += ce : O += Ve();
1153
1289
  var W;
1154
- r === null ? W = "null" : qe(r) ? W = "array" : r !== void 0 && r.$$typeof === n ? (W = "<" + (N(r.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : W = typeof r, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, O);
1290
+ i === null ? W = "null" : Qe(i) ? W = "array" : i !== void 0 && i.$$typeof === n ? (W = "<" + (F(i.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : W = typeof i, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, O);
1155
1291
  }
1156
- var Z = le(r, f, g, j, I);
1157
- if (Z == null)
1158
- return Z;
1292
+ var q = ue(i, h, g, k, L);
1293
+ if (q == null)
1294
+ return q;
1159
1295
  if (P) {
1160
- var me = f.children;
1161
- if (me !== void 0)
1162
- if (w)
1163
- if (qe(me)) {
1164
- for (var Ge = 0; Ge < me.length; Ge++)
1165
- Ft(me[Ge], r);
1166
- Object.freeze && Object.freeze(me);
1296
+ var ge = h.children;
1297
+ if (ge !== void 0)
1298
+ if (x)
1299
+ if (Qe(ge)) {
1300
+ for (var Ye = 0; Ye < ge.length; Ye++)
1301
+ $t(ge[Ye], i);
1302
+ Object.freeze && Object.freeze(ge);
1167
1303
  } else
1168
1304
  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.");
1169
1305
  else
1170
- Ft(me, r);
1306
+ $t(ge, i);
1171
1307
  }
1172
- return r === e ? En(Z) : yn(Z), Z;
1308
+ return i === e ? Sn(q) : Cn(q), q;
1173
1309
  }
1174
1310
  }
1175
- function xn(r, f, g) {
1176
- return Ut(r, f, g, !0);
1311
+ function On(i, h, g) {
1312
+ return Gt(i, h, g, !0);
1177
1313
  }
1178
- function wn(r, f, g) {
1179
- return Ut(r, f, g, !1);
1314
+ function Tn(i, h, g) {
1315
+ return Gt(i, h, g, !1);
1180
1316
  }
1181
- var Cn = wn, Sn = xn;
1182
- tt.Fragment = e, tt.jsx = Cn, tt.jsxs = Sn;
1183
- }()), tt;
1317
+ var Mn = Tn, Rn = On;
1318
+ at.Fragment = e, at.jsx = Mn, at.jsxs = Rn;
1319
+ }()), at;
1184
1320
  }
1185
- process.env.NODE_ENV === "production" ? At.exports = ri() : At.exports = ai();
1186
- var c = At.exports;
1187
- function gn(t) {
1321
+ process.env.NODE_ENV === "production" ? Lt.exports = ma() : Lt.exports = ga();
1322
+ var c = Lt.exports;
1323
+ function yn(t) {
1188
1324
  return t.title.search("<") > -1 ? /* @__PURE__ */ c.jsx("button", { className: "svg", dangerouslySetInnerHTML: { __html: t.title } }) : /* @__PURE__ */ c.jsx("button", { children: t.title });
1189
1325
  }
1190
- const oi = /* @__PURE__ */ c.jsxs("svg", { className: "closeIcon", width: "14", height: "14", fill: "none", stroke: "#666666", strokeMiterlimit: "10", children: [
1326
+ const va = /* @__PURE__ */ c.jsxs("svg", { className: "closeIcon", width: "14", height: "14", fill: "none", stroke: "#666666", strokeMiterlimit: "10", children: [
1191
1327
  /* @__PURE__ */ c.jsx("circle", { cx: "7", cy: "7", r: "6" }),
1192
1328
  /* @__PURE__ */ c.jsx("line", { x1: "4", y1: "4", x2: "10", y2: "10" }),
1193
1329
  /* @__PURE__ */ c.jsx("line", { x1: "4", y1: "10", x2: "10", y2: "4" })
1194
- ] }), si = /* @__PURE__ */ c.jsx("svg", { className: "dragIcon", width: "14", height: "14", fill: "#666666", stroke: "none", children: /* @__PURE__ */ c.jsx(
1330
+ ] }), ba = /* @__PURE__ */ c.jsx("svg", { className: "dragIcon", width: "14", height: "14", fill: "#666666", stroke: "none", children: /* @__PURE__ */ c.jsx(
1195
1331
  "path",
1196
1332
  {
1197
1333
  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
@@ -1199,45 +1335,45 @@ 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
1199
1335
  C11,8.22,10.74,8,10.43,8z`
1200
1336
  }
1201
1337
  ) });
1202
- function ci(t) {
1203
- return /* @__PURE__ */ c.jsx(dn.Item, { value: t.title, children: /* @__PURE__ */ c.jsxs("div", { children: [
1204
- si,
1338
+ function ya(t) {
1339
+ return /* @__PURE__ */ c.jsx(hn.Item, { value: t.title, children: /* @__PURE__ */ c.jsxs("div", { children: [
1340
+ ba,
1205
1341
  /* @__PURE__ */ c.jsx("span", { children: t.title }),
1206
1342
  /* @__PURE__ */ c.jsx("button", { className: "closeIcon", onClick: () => {
1207
1343
  t.onDelete(t.index);
1208
- }, children: oi })
1344
+ }, children: va })
1209
1345
  ] }) }, t.title);
1210
1346
  }
1211
- function li(t) {
1212
- const [n, i] = ae(!1), [e, a] = ae(t.options), s = (m) => {
1213
- t.onDragComplete(m), a(m);
1214
- }, h = (m) => {
1347
+ function Ea(t) {
1348
+ const [n, a] = oe(!1), [e, r] = oe(t.options), s = (p) => {
1349
+ t.onDragComplete(p), r(p);
1350
+ }, u = (p) => {
1215
1351
  const v = [...e];
1216
- v.splice(m, 1), s(v);
1352
+ v.splice(p, 1), s(v);
1217
1353
  }, l = [];
1218
- e.forEach((m, v) => {
1219
- l.push(/* @__PURE__ */ c.jsx(ci, { index: v, title: m, onDelete: h }, m));
1354
+ e.forEach((p, v) => {
1355
+ l.push(/* @__PURE__ */ c.jsx(ya, { index: v, title: p, onDelete: u }, p));
1220
1356
  });
1221
1357
  let d = "dropdown draggable";
1222
- return t.subdropdown && (d += " subdropdown"), /* @__PURE__ */ c.jsxs("div", { className: d, onMouseEnter: () => i(!0), onMouseLeave: () => i(!1), children: [
1223
- /* @__PURE__ */ c.jsx(gn, { title: t.title }),
1224
- /* @__PURE__ */ c.jsx(dn.Group, { axis: "y", values: e, onReorder: s, style: { visibility: n ? "visible" : "hidden" }, children: l })
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 })
1225
1361
  ] });
1226
1362
  }
1227
- function ui(t) {
1228
- const [n, i] = ae(!1), e = [];
1229
- t.options.map((s, h) => {
1230
- t.onSelect !== void 0 && (s.onSelect = t.onSelect), e.push(/* @__PURE__ */ c.jsx(di, { option: s }, h));
1363
+ function wa(t) {
1364
+ 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));
1231
1367
  });
1232
- let a = "dropdown";
1233
- return t.subdropdown && (a += " subdropdown"), /* @__PURE__ */ c.jsxs(
1368
+ let r = "dropdown";
1369
+ return t.subdropdown && (r += " subdropdown"), /* @__PURE__ */ c.jsxs(
1234
1370
  "div",
1235
1371
  {
1236
- className: a,
1237
- onMouseEnter: () => i(!0),
1238
- onMouseLeave: () => i(!1),
1372
+ className: r,
1373
+ onMouseEnter: () => a(!0),
1374
+ onMouseLeave: () => a(!1),
1239
1375
  children: [
1240
- /* @__PURE__ */ c.jsx(gn, { title: t.title }),
1376
+ /* @__PURE__ */ c.jsx(yn, { title: t.title }),
1241
1377
  /* @__PURE__ */ c.jsx(
1242
1378
  "ul",
1243
1379
  {
@@ -1249,13 +1385,13 @@ function ui(t) {
1249
1385
  }
1250
1386
  );
1251
1387
  }
1252
- function di(t) {
1253
- const { option: n } = t, [i, e] = ae("");
1254
- let a;
1388
+ function xa(t) {
1389
+ const { option: n } = t, [a, e] = oe("");
1390
+ let r;
1255
1391
  switch (n.type) {
1256
1392
  case "draggable":
1257
- a = /* @__PURE__ */ c.jsx(
1258
- li,
1393
+ r = /* @__PURE__ */ c.jsx(
1394
+ Ea,
1259
1395
  {
1260
1396
  title: n.title,
1261
1397
  options: n.value,
@@ -1267,8 +1403,8 @@ function di(t) {
1267
1403
  );
1268
1404
  break;
1269
1405
  case "dropdown":
1270
- a = /* @__PURE__ */ c.jsx(
1271
- ui,
1406
+ r = /* @__PURE__ */ c.jsx(
1407
+ wa,
1272
1408
  {
1273
1409
  title: n.title,
1274
1410
  options: n.value,
@@ -1278,39 +1414,41 @@ function di(t) {
1278
1414
  );
1279
1415
  break;
1280
1416
  case "option":
1281
- a = /* @__PURE__ */ c.jsx(
1417
+ r = /* @__PURE__ */ c.jsx(
1282
1418
  "button",
1283
1419
  {
1284
1420
  onClick: () => {
1285
- n.onSelect !== void 0 && n.onSelect(n.value), n.selectable && (i !== n.title ? e(n.title) : e(""));
1421
+ n.onSelect !== void 0 && n.onSelect(n.value), n.selectable && (a !== n.title ? e(n.title) : e(""));
1286
1422
  },
1287
1423
  children: n.title
1288
1424
  }
1289
1425
  );
1290
1426
  break;
1291
1427
  }
1292
- return /* @__PURE__ */ c.jsx("li", { className: i === n.title ? "selected" : "", children: a }, Zn());
1428
+ return /* @__PURE__ */ c.jsx("li", { className: a === n.title ? "selected" : "", children: r }, ea());
1293
1429
  }
1294
- function nr(t, n, i) {
1295
- function e(s) {
1296
- switch (n.forEach((h) => h(t, s)), s.event) {
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) {
1297
1435
  case "custom":
1298
- z.dispatchEvent({ type: Y.CUSTOM, value: s.data });
1436
+ _.dispatchEvent({ type: j.CUSTOM, value: u.data });
1299
1437
  break;
1300
1438
  }
1301
1439
  }
1302
- function a(s) {
1303
- switch (i.forEach((h) => h(t, s)), s.event) {
1440
+ function s(u) {
1441
+ switch (e.forEach((l) => l(t, u)), u.event) {
1304
1442
  case "custom":
1305
- z.dispatchEvent({ type: Y.CUSTOM, value: s.data });
1443
+ _.dispatchEvent({ type: j.CUSTOM, value: u.data });
1306
1444
  break;
1307
1445
  }
1308
1446
  }
1309
- t.listen((s) => {
1310
- t.editor ? a(s) : e(s);
1447
+ t.listen((u) => {
1448
+ t.editor ? s(u) : r(u);
1311
1449
  });
1312
1450
  }
1313
- const fi = `out vec3 worldPosition;
1451
+ const Ca = `out vec3 worldPosition;
1314
1452
  uniform float uDistance;
1315
1453
 
1316
1454
  void main() {
@@ -1319,7 +1457,7 @@ void main() {
1319
1457
  worldPosition.xz += cameraPosition.xz;
1320
1458
 
1321
1459
  gl_Position = projectionMatrix * modelViewMatrix * vec4(worldPosition, 1.0);
1322
- }`, hi = `out vec4 fragColor;
1460
+ }`, Sa = `out vec4 fragColor;
1323
1461
  in vec3 worldPosition;
1324
1462
 
1325
1463
  uniform float uDivisions;
@@ -1387,14 +1525,14 @@ void main() {
1387
1525
 
1388
1526
  if (fragColor.a <= 0.0) discard;
1389
1527
  }`;
1390
- class pi extends on {
1528
+ class Oa extends cn {
1391
1529
  constructor(n) {
1392
1530
  super({
1393
1531
  extensions: {
1394
1532
  derivatives: !0
1395
1533
  },
1396
- glslVersion: Pn,
1397
- side: jn,
1534
+ glslVersion: An,
1535
+ side: Dn,
1398
1536
  transparent: !0,
1399
1537
  uniforms: {
1400
1538
  uScale: {
@@ -1404,7 +1542,7 @@ class pi extends on {
1404
1542
  value: (n == null ? void 0 : n.divisions) !== void 0 ? n == null ? void 0 : n.divisions : 10
1405
1543
  },
1406
1544
  uColor: {
1407
- value: (n == null ? void 0 : n.color) !== void 0 ? n == null ? void 0 : n.color : new It(16777215)
1545
+ value: (n == null ? void 0 : n.color) !== void 0 ? n == null ? void 0 : n.color : new Ft(16777215)
1408
1546
  },
1409
1547
  uDistance: {
1410
1548
  value: (n == null ? void 0 : n.distance) !== void 0 ? n == null ? void 0 : n.distance : 1e4
@@ -1416,25 +1554,25 @@ class pi extends on {
1416
1554
  value: (n == null ? void 0 : n.gridOpacity) !== void 0 ? n == null ? void 0 : n.gridOpacity : 0.25
1417
1555
  }
1418
1556
  },
1419
- vertexShader: fi,
1420
- fragmentShader: hi,
1557
+ vertexShader: Ca,
1558
+ fragmentShader: Sa,
1421
1559
  name: "InfiniteGrid",
1422
1560
  depthWrite: !1
1423
1561
  });
1424
1562
  }
1425
1563
  }
1426
- class mi extends _n {
1564
+ class Ta extends In {
1427
1565
  constructor() {
1428
- const i = new pi();
1429
- super(new Dn(2, 2), i);
1430
- q(this, "gridMaterial");
1431
- this.gridMaterial = i, this.frustumCulled = !1, this.name = "InfiniteGridHelper", this.position.y = 0.1;
1566
+ const a = new Oa();
1567
+ super(new Nn(2, 2), a);
1568
+ Z(this, "gridMaterial");
1569
+ this.gridMaterial = a, this.frustumCulled = !1, this.name = "InfiniteGridHelper", this.position.y = 0.1;
1432
1570
  }
1433
1571
  update() {
1434
1572
  this.gridMaterial.needsUpdate = !0;
1435
1573
  }
1436
1574
  }
1437
- const gi = `#include <common>
1575
+ const Ma = `#include <common>
1438
1576
  #include <batching_pars_vertex>
1439
1577
  #include <uv_pars_vertex>
1440
1578
  #include <color_pars_vertex>
@@ -1464,7 +1602,7 @@ void main() {
1464
1602
  #include <logdepthbuf_vertex>
1465
1603
  #include <clipping_planes_vertex>
1466
1604
  #include <worldpos_vertex>
1467
- }`, vi = `
1605
+ }`, Ra = `
1468
1606
  #include <common>
1469
1607
  #include <uv_pars_fragment>
1470
1608
  #include <clipping_planes_pars_fragment>
@@ -1473,27 +1611,27 @@ void main() {
1473
1611
  #include <clipping_planes_fragment>
1474
1612
  gl_FragColor = vec4(vec3(vUv, 0.0), 1.0);
1475
1613
  }`;
1476
- class bi extends on {
1614
+ class Pa extends cn {
1477
1615
  constructor() {
1478
1616
  super({
1479
1617
  defines: {
1480
1618
  USE_UV: ""
1481
1619
  },
1482
- vertexShader: gi,
1483
- fragmentShader: vi
1620
+ vertexShader: Ma,
1621
+ fragmentShader: Ra
1484
1622
  });
1485
1623
  }
1486
1624
  }
1487
- function Nt(t) {
1488
- const [n, i] = ae(t.open !== void 0 ? t.open : !0), e = !n || t.children === void 0;
1625
+ function Ut(t) {
1626
+ const [n, a] = oe(t.open !== void 0 ? t.open : !0), e = !n || t.children === void 0;
1489
1627
  return /* @__PURE__ */ c.jsxs("div", { className: `accordion ${e ? "hide" : ""}`, children: [
1490
1628
  /* @__PURE__ */ c.jsxs(
1491
1629
  "button",
1492
1630
  {
1493
1631
  className: "toggle",
1494
1632
  onClick: () => {
1495
- const a = !n;
1496
- t.onToggle !== void 0 && t.onToggle(a), i(a);
1633
+ const r = !n;
1634
+ t.onToggle !== void 0 && t.onToggle(r), a(r);
1497
1635
  },
1498
1636
  children: [
1499
1637
  /* @__PURE__ */ c.jsx(
@@ -1511,10 +1649,10 @@ function Nt(t) {
1511
1649
  /* @__PURE__ */ c.jsx("div", { className: n ? "open" : "", children: /* @__PURE__ */ c.jsx("div", { children: t.children }) })
1512
1650
  ] });
1513
1651
  }
1514
- function vn(t) {
1515
- const [n, i] = ae(!1), e = t.child.children.length > 0, a = [];
1652
+ function En(t) {
1653
+ const [n, a] = oe(!1), e = t.child.children.length > 0, r = [];
1516
1654
  return t.child.children.length > 0 && t.child.children.map((s) => {
1517
- a.push(/* @__PURE__ */ c.jsx(vn, { child: s, three: t.three }, Math.random()));
1655
+ r.push(/* @__PURE__ */ c.jsx(En, { child: s, three: t.three }, Math.random()));
1518
1656
  }), /* @__PURE__ */ c.jsxs("div", { className: "childObject", children: [
1519
1657
  /* @__PURE__ */ c.jsxs("div", { className: "child", children: [
1520
1658
  e ? /* @__PURE__ */ c.jsx(
@@ -1525,7 +1663,7 @@ function vn(t) {
1525
1663
  backgroundPositionX: n ? "-14px" : "2px"
1526
1664
  },
1527
1665
  onClick: () => {
1528
- i(!n);
1666
+ a(!n);
1529
1667
  }
1530
1668
  }
1531
1669
  ) : null,
@@ -1542,51 +1680,48 @@ function vn(t) {
1542
1680
  children: t.child.name.length > 0 ? `${t.child.name} (${t.child.type})` : `${t.child.type}::${t.child.uuid}`
1543
1681
  }
1544
1682
  ),
1545
- /* @__PURE__ */ c.jsx("div", { className: `icon ${ti(t.child)}` })
1683
+ /* @__PURE__ */ c.jsx("div", { className: `icon ${ca(t.child)}` })
1546
1684
  ] }),
1547
- /* @__PURE__ */ c.jsx("div", { className: n ? "open" : "", children: /* @__PURE__ */ c.jsx("div", { className: "container", children: a }) })
1685
+ /* @__PURE__ */ c.jsx("div", { className: n ? "open" : "", children: /* @__PURE__ */ c.jsx("div", { className: "container", children: r }) })
1548
1686
  ] }, Math.random());
1549
1687
  }
1550
- function yi(t) {
1688
+ function _a(t) {
1551
1689
  const n = [];
1552
- return t.child.children.map((i) => {
1553
- n.push(/* @__PURE__ */ c.jsx(vn, { child: i, three: t.three }, Math.random()));
1690
+ return t.child.children.map((a) => {
1691
+ n.push(/* @__PURE__ */ c.jsx(En, { child: a, three: t.three }, Math.random()));
1554
1692
  }), /* @__PURE__ */ c.jsx("div", { className: `scene ${t.class !== void 0 ? t.class : ""}`, children: n });
1555
1693
  }
1556
- const Ei = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA5klEQVRoge2Y0Q6EIAwE6cX//+X6cCFpSMEKVTdk501OpRNKiyelFC0b8Ps6gCwoggZF0KAIGhRBgyJoUAQNiqCxjciR9SLV//eZiAyvK3U8i/QVaQO2YyLSFVvlkdTKDjJCukh2ykR5ZEW+kHmlatl90RaBtDkK/w7CYhuRUEO0ee3l+J3m55Vm+17vtwjTnV1V3QA8qfbeUXCzRWDpiLLS+OyzvRW7IzW9R+okvclsqR09743bo0yUpc1+lSJvNsa002+Euk9GKzV7SmZDRIMiaFAEDYqgQRE0KIIGRdCgCBoUQeMEMERadX7YUz8AAAAASUVORK5CYII=";
1557
- function xi(t) {
1694
+ const ja = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA5klEQVRoge2Y0Q6EIAwE6cX//+X6cCFpSMEKVTdk501OpRNKiyelFC0b8Ps6gCwoggZF0KAIGhRBgyJoUAQNiqCxjciR9SLV//eZiAyvK3U8i/QVaQO2YyLSFVvlkdTKDjJCukh2ykR5ZEW+kHmlatl90RaBtDkK/w7CYhuRUEO0ee3l+J3m55Vm+17vtwjTnV1V3QA8qfbeUXCzRWDpiLLS+OyzvRW7IzW9R+okvclsqR09743bo0yUpc1+lSJvNsa002+Euk9GKzV7SmZDRIMiaFAEDYqgQRE0KIIGRdCgCBoUQeMEMERadX7YUz8AAAAASUVORK5CYII=";
1695
+ function ka(t) {
1558
1696
  return "items" in t;
1559
1697
  }
1560
- function Le(t) {
1561
- function n(e, a) {
1562
- console.log("onChange:", e, a);
1563
- }
1564
- const i = [];
1565
- return t.items.forEach((e) => {
1566
- xi(e) ? i.push(
1567
- /* @__PURE__ */ c.jsx(Le, { title: e.title, items: e.items }, Math.random())
1568
- ) : i.push(
1698
+ function Ue(t) {
1699
+ const n = [];
1700
+ return t.items.forEach((a) => {
1701
+ ka(a) ? n.push(
1702
+ /* @__PURE__ */ c.jsx(Ue, { title: a.title, items: a.items }, Math.random())
1703
+ ) : n.push(
1569
1704
  /* @__PURE__ */ c.jsx(
1570
- nt,
1705
+ it,
1571
1706
  {
1572
- title: e.title,
1573
- prop: e.prop,
1574
- value: e.value,
1575
- type: e.type,
1576
- min: e.min,
1577
- max: e.max,
1578
- step: e.step,
1579
- disabled: e.disabled,
1580
- onChange: (a, s) => {
1581
- e.onChange !== void 0 ? e.onChange(a, s) : n(a, s);
1707
+ title: a.title,
1708
+ prop: a.prop,
1709
+ value: a.value,
1710
+ type: a.type,
1711
+ min: a.min,
1712
+ max: a.max,
1713
+ step: a.step,
1714
+ disabled: a.disabled,
1715
+ onChange: (e, r) => {
1716
+ a.onChange !== void 0 && a.onChange(e, r);
1582
1717
  }
1583
1718
  },
1584
1719
  Math.random()
1585
1720
  )
1586
1721
  );
1587
- }), /* @__PURE__ */ c.jsx(Nt, { label: t.title, open: !1, children: i });
1722
+ }), /* @__PURE__ */ c.jsx(Ut, { label: t.title, open: t.expanded === !0, children: n });
1588
1723
  }
1589
- function wi(t) {
1724
+ function Aa(t) {
1590
1725
  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");
1591
1726
  }
1592
1727
  function De(t) {
@@ -1738,166 +1873,166 @@ function De(t) {
1738
1873
  }
1739
1874
  return t;
1740
1875
  }
1741
- function Ci(t) {
1876
+ function Da(t) {
1742
1877
  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";
1743
1878
  }
1744
- function Si() {
1879
+ function Ia() {
1745
1880
  const t = document.createElement("input");
1746
- return t.type = "file", new Promise((n, i) => {
1881
+ return t.type = "file", new Promise((n, a) => {
1747
1882
  t.addEventListener("change", function() {
1748
1883
  if (t.files === null)
1749
- i();
1884
+ a();
1750
1885
  else {
1751
- const e = t.files[0], a = new FileReader();
1752
- a.onload = function(s) {
1886
+ const e = t.files[0], r = new FileReader();
1887
+ r.onload = function(s) {
1753
1888
  n(s.target.result);
1754
- }, a.readAsDataURL(e);
1889
+ }, r.readAsDataURL(e);
1755
1890
  }
1756
1891
  }), t.click();
1757
1892
  });
1758
1893
  }
1759
- function Ht(t, n, i) {
1894
+ function qt(t, n, a) {
1760
1895
  const e = [];
1761
- for (const a in t) {
1762
- if (!wi(a))
1896
+ for (const r in t) {
1897
+ if (!Aa(r))
1763
1898
  continue;
1764
- const s = typeof t[a], h = t[a];
1899
+ const s = typeof t[r], u = t[r];
1765
1900
  if (s === "boolean" || s === "number" || s === "string") {
1766
1901
  const l = {
1767
- title: De(a),
1768
- prop: a,
1902
+ title: De(r),
1903
+ prop: r,
1769
1904
  type: s,
1770
- value: h,
1905
+ value: u,
1771
1906
  min: void 0,
1772
1907
  max: void 0,
1773
- onChange: (d, m) => {
1908
+ onChange: (d, p) => {
1774
1909
  var E;
1775
- i.updateObject(n.uuid, `material.${d}`, m), s === "boolean" && i.updateObject(n.uuid, "material.needsUpdate", !0);
1776
- const v = (E = i.scene) == null ? void 0 : E.getObjectByProperty("uuid", n.uuid);
1777
- v !== void 0 && J(v, `material.${d}`, m);
1910
+ a.updateObject(n.uuid, `material.${d}`, p), s === "boolean" && a.updateObject(n.uuid, "material.needsUpdate", !0);
1911
+ const v = (E = a.scene) == null ? void 0 : E.getObjectByProperty("uuid", n.uuid);
1912
+ v !== void 0 && Q(v, `material.${d}`, p);
1778
1913
  }
1779
1914
  };
1780
- Ci(a) && (l.value = Number(h), l.type = "range", l.min = 0, l.max = 1, l.step = 0.01), e.push(l);
1915
+ Da(r) && (l.value = Number(u), l.type = "range", l.min = 0, l.max = 1, l.step = 0.01), e.push(l);
1781
1916
  } else if (s === "object")
1782
- if (h.isColor)
1917
+ if (u.isColor)
1783
1918
  e.push({
1784
- title: De(a),
1785
- prop: a,
1919
+ title: De(r),
1920
+ prop: r,
1786
1921
  type: "color",
1787
- value: h,
1922
+ value: u,
1788
1923
  onChange: (l, d) => {
1789
1924
  var E;
1790
- const m = new It(d);
1791
- i.updateObject(n.uuid, `material.${l}`, m);
1792
- const v = (E = i.scene) == null ? void 0 : E.getObjectByProperty("uuid", n.uuid);
1793
- v !== void 0 && J(v, `material.${l}`, m);
1925
+ const p = new Ft(d);
1926
+ a.updateObject(n.uuid, `material.${l}`, p);
1927
+ const v = (E = a.scene) == null ? void 0 : E.getObjectByProperty("uuid", n.uuid);
1928
+ v !== void 0 && Q(v, `material.${l}`, p);
1794
1929
  }
1795
1930
  });
1796
- else if (Array.isArray(h)) {
1931
+ else if (Array.isArray(u)) {
1797
1932
  const l = [];
1798
- for (const d in h)
1933
+ for (const d in u)
1799
1934
  l.push({
1800
1935
  title: `${d}`,
1801
- type: `${typeof h[d]}`,
1802
- value: h[d],
1803
- onChange: (m, v) => {
1804
- var x;
1805
- i.updateObject(n.uuid, `material.${a}`, v);
1806
- const E = (x = i.scene) == null ? void 0 : x.getObjectByProperty("uuid", n.uuid);
1807
- E !== void 0 && J(E, `material.${a}`, v);
1936
+ type: `${typeof u[d]}`,
1937
+ value: u[d],
1938
+ onChange: (p, v) => {
1939
+ var w;
1940
+ a.updateObject(n.uuid, `material.${r}`, v);
1941
+ const E = (w = a.scene) == null ? void 0 : w.getObjectByProperty("uuid", n.uuid);
1942
+ E !== void 0 && Q(E, `material.${r}`, v);
1808
1943
  }
1809
1944
  });
1810
1945
  e.push({
1811
- title: De(a),
1946
+ title: De(r),
1812
1947
  items: l
1813
1948
  });
1814
1949
  } else {
1815
1950
  const l = [];
1816
- for (const d in h) {
1817
- const m = h[d];
1818
- switch (typeof m) {
1951
+ for (const d in u) {
1952
+ const p = u[d];
1953
+ switch (typeof p) {
1819
1954
  case "boolean":
1820
1955
  case "number":
1821
1956
  case "string":
1822
1957
  d === "src" ? e.push({
1823
- title: De(a),
1958
+ title: De(r),
1824
1959
  type: "image",
1825
- value: m,
1826
- onChange: (E, x) => {
1960
+ value: p,
1961
+ onChange: (E, w) => {
1827
1962
  var T;
1828
- i.createTexture(n.uuid, `material.${a}`, x);
1829
- const R = (T = i.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1830
- R !== void 0 && kt(x).then((B) => {
1831
- J(R, `material.${a}`, B), J(R, "material.needsUpdate", !0);
1963
+ a.createTexture(n.uuid, `material.${r}`, w);
1964
+ const R = (T = a.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1965
+ R !== void 0 && Nt(w).then((G) => {
1966
+ Q(R, `material.${r}`, G), Q(R, "material.needsUpdate", !0);
1832
1967
  });
1833
1968
  }
1834
1969
  }) : l.push({
1835
1970
  title: `${De(d)}`,
1836
- prop: `material.${a}.${d}`,
1837
- type: `${typeof t[a][d]}`,
1838
- value: h[d],
1839
- onChange: (E, x) => {
1971
+ prop: `material.${r}.${d}`,
1972
+ type: `${typeof t[r][d]}`,
1973
+ value: u[d],
1974
+ onChange: (E, w) => {
1840
1975
  var T;
1841
- i.updateObject(n.uuid, `material.${a}.${d}`, x);
1842
- const R = (T = i.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1843
- R !== void 0 && J(R, `material.${a}.${d}`, x);
1976
+ a.updateObject(n.uuid, `material.${r}.${d}`, w);
1977
+ const R = (T = a.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1978
+ R !== void 0 && Q(R, `material.${r}.${d}`, w);
1844
1979
  }
1845
1980
  });
1846
1981
  break;
1847
1982
  case "object":
1848
- m.value !== void 0 && m.value.src !== void 0 ? l.push({
1983
+ p.value !== void 0 && p.value.src !== void 0 ? l.push({
1849
1984
  title: De(d),
1850
1985
  type: "image",
1851
- value: m.value.src,
1852
- onChange: (E, x) => {
1986
+ value: p.value.src,
1987
+ onChange: (E, w) => {
1853
1988
  var T;
1854
- i.createTexture(n.uuid, `material.${a}.${d}.value`, x);
1855
- const R = (T = i.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1856
- R !== void 0 && kt(x).then((B) => {
1857
- J(R, `material.${a}.${d}.value`, B);
1989
+ a.createTexture(n.uuid, `material.${r}.${d}.value`, w);
1990
+ const R = (T = a.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1991
+ R !== void 0 && Nt(w).then((G) => {
1992
+ Q(R, `material.${r}.${d}.value`, G);
1858
1993
  });
1859
1994
  }
1860
1995
  }) : l.push({
1861
1996
  title: d,
1862
- type: `${typeof m.value}`,
1863
- value: m.value,
1864
- onChange: (E, x) => {
1997
+ type: `${typeof p.value}`,
1998
+ value: p.value,
1999
+ onChange: (E, w) => {
1865
2000
  var T;
1866
- i.updateObject(n.uuid, `material.${a}.${d}.value`, x);
1867
- const R = (T = i.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
1868
- R !== void 0 && J(R, `material.${a}.${d}.value`, x);
2001
+ a.updateObject(n.uuid, `material.${r}.${d}.value`, w);
2002
+ const R = (T = a.scene) == null ? void 0 : T.getObjectByProperty("uuid", n.uuid);
2003
+ R !== void 0 && Q(R, `material.${r}.${d}.value`, w);
1869
2004
  }
1870
2005
  });
1871
2006
  break;
1872
2007
  }
1873
2008
  }
1874
2009
  l.length > 0 && e.push({
1875
- title: De(a),
2010
+ title: De(r),
1876
2011
  items: l
1877
2012
  });
1878
2013
  }
1879
2014
  else
1880
- h !== void 0 && console.log("other:", a, s, h);
2015
+ u !== void 0 && console.log("other:", r, s, u);
1881
2016
  }
1882
- return e.sort((a, s) => a.title < s.title ? -1 : a.title > s.title ? 1 : 0), e.push({
2017
+ return e.sort((r, s) => r.title < s.title ? -1 : r.title > s.title ? 1 : 0), e.push({
1883
2018
  title: "Update Material",
1884
2019
  type: "button",
1885
2020
  onChange: () => {
1886
- i.updateObject(n.uuid, "material.needsUpdate", !0);
2021
+ a.updateObject(n.uuid, "material.needsUpdate", !0);
1887
2022
  }
1888
2023
  }), e;
1889
2024
  }
1890
- function Oi(t, n) {
1891
- const i = t.material;
1892
- if (Array.isArray(i)) {
1893
- const e = [], a = i.length;
1894
- for (let s = 0; s < a; s++)
2025
+ function Na(t, n) {
2026
+ const a = t.material;
2027
+ if (Array.isArray(a)) {
2028
+ const e = [], r = a.length;
2029
+ for (let s = 0; s < r; s++)
1895
2030
  e.push(
1896
2031
  /* @__PURE__ */ c.jsx(
1897
- Le,
2032
+ Ue,
1898
2033
  {
1899
2034
  title: `Material ${s}`,
1900
- items: Ht(i[s], t, n)
2035
+ items: qt(a[s], t, n)
1901
2036
  },
1902
2037
  `Material ${s}`
1903
2038
  )
@@ -1905,51 +2040,51 @@ function Oi(t, n) {
1905
2040
  return /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
1906
2041
  } else
1907
2042
  return /* @__PURE__ */ c.jsx(
1908
- Le,
2043
+ Ue,
1909
2044
  {
1910
2045
  title: "Material",
1911
- items: Ht(i, t, n)
2046
+ items: qt(a, t, n)
1912
2047
  }
1913
2048
  );
1914
2049
  }
1915
- function nt(t) {
2050
+ function it(t) {
1916
2051
  let n = t.value;
1917
- n !== void 0 && n.isColor !== void 0 && (n = Qn(t.value));
1918
- const [i, e] = ae(n), a = we(null), s = we(null), h = we(null);
1919
- Ne(() => {
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);
2054
+ Fe(() => {
1920
2055
  var K;
1921
- let v = !1, E = -1, x = 0, R = Number(i);
1922
- const T = (de) => {
1923
- v = !0, x = R, E = de.clientX;
1924
- }, B = (de) => {
2056
+ let v = !1, E = -1, w = 0, R = Number(a);
2057
+ const T = (fe) => {
2058
+ v = !0, w = R, E = fe.clientX;
2059
+ }, G = (fe) => {
1925
2060
  if (!v)
1926
2061
  return;
1927
- const ce = t.step !== void 0 ? t.step : 1, ee = (de.clientX - E) * ce;
1928
- R = Number((x + ee).toFixed(4)), s.current !== null && (s.current.value = R.toString()), t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, R);
1929
- }, oe = () => {
2062
+ const le = t.step !== void 0 ? t.step : 1, ee = (fe.clientX - E) * le;
2063
+ R = Number((w + ee).toFixed(4)), s.current !== null && (s.current.value = R.toString()), t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, R);
2064
+ }, se = () => {
1930
2065
  v = !1;
1931
2066
  }, H = () => {
1932
2067
  v = !1;
1933
2068
  }, C = t.type === "number";
1934
- return C && ((K = a.current) == null || K.addEventListener("mousedown", T, !1), document.addEventListener("mouseup", oe, !1), document.addEventListener("mousemove", B, !1), document.addEventListener("contextmenu", H, !1)), () => {
1935
- var de;
1936
- C && ((de = a.current) == null || de.removeEventListener("mousedown", T), document.removeEventListener("mouseup", oe), document.removeEventListener("mousemove", B), document.removeEventListener("contextmenu", H));
2069
+ return C && ((K = r.current) == null || K.addEventListener("mousedown", T, !1), document.addEventListener("mouseup", se, !1), document.addEventListener("mousemove", G, !1), document.addEventListener("contextmenu", H, !1)), () => {
2070
+ var fe;
2071
+ C && ((fe = r.current) == null || fe.removeEventListener("mousedown", T), document.removeEventListener("mouseup", se), document.removeEventListener("mousemove", G), document.removeEventListener("contextmenu", H));
1937
2072
  };
1938
- }, [i]);
1939
- const l = t.type === "string" && (i.length > 100 || i.search(`
1940
- `) > -1), d = l || t.type === "image", m = (v) => {
2073
+ }, [a]);
2074
+ const l = t.type === "string" && (a.length > 100 || a.search(`
2075
+ `) > -1), d = l || t.type === "image", p = (v) => {
1941
2076
  let E = v.target.value;
1942
2077
  t.type === "boolean" && (E = v.target.checked), e(E), t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, E);
1943
2078
  };
1944
2079
  return /* @__PURE__ */ c.jsxs("div", { className: `field ${d ? "block" : ""}`, children: [
1945
- t.type !== "button" && /* @__PURE__ */ c.jsx("label", { ref: a, children: t.title }, "fieldLabel"),
2080
+ t.type !== "button" && /* @__PURE__ */ c.jsx("label", { ref: r, children: t.title }, "fieldLabel"),
1946
2081
  t.type === "string" && !l && /* @__PURE__ */ c.jsx(
1947
2082
  "input",
1948
2083
  {
1949
2084
  type: "text",
1950
2085
  disabled: t.disabled,
1951
- onChange: m,
1952
- value: i
2086
+ onChange: p,
2087
+ value: a
1953
2088
  }
1954
2089
  ),
1955
2090
  t.type === "string" && l && /* @__PURE__ */ c.jsx(
@@ -1958,8 +2093,8 @@ function nt(t) {
1958
2093
  cols: 50,
1959
2094
  rows: 10,
1960
2095
  disabled: !0,
1961
- onChange: m,
1962
- value: i
2096
+ onChange: p,
2097
+ value: a
1963
2098
  }
1964
2099
  ),
1965
2100
  t.type === "boolean" && /* @__PURE__ */ c.jsx(
@@ -1967,8 +2102,8 @@ function nt(t) {
1967
2102
  {
1968
2103
  type: "checkbox",
1969
2104
  disabled: t.disabled,
1970
- onChange: m,
1971
- checked: i
2105
+ onChange: p,
2106
+ checked: a
1972
2107
  }
1973
2108
  ),
1974
2109
  t.type === "number" && /* @__PURE__ */ c.jsx(
@@ -1976,31 +2111,31 @@ function nt(t) {
1976
2111
  {
1977
2112
  ref: s,
1978
2113
  type: "number",
1979
- value: i,
2114
+ value: a,
1980
2115
  min: t.min,
1981
2116
  max: t.max,
1982
2117
  step: t.step,
1983
- onChange: m
2118
+ onChange: p
1984
2119
  }
1985
2120
  ),
1986
2121
  t.type === "range" && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1987
- /* @__PURE__ */ c.jsx("input", { type: "text", value: i.toString(), onChange: m, className: "min" }),
2122
+ /* @__PURE__ */ c.jsx("input", { type: "text", value: a.toString(), onChange: p, className: "min" }),
1988
2123
  /* @__PURE__ */ c.jsx(
1989
2124
  "input",
1990
2125
  {
1991
2126
  disabled: t.disabled,
1992
2127
  type: "range",
1993
- value: i,
2128
+ value: a,
1994
2129
  min: t.min,
1995
2130
  max: t.max,
1996
2131
  step: t.step,
1997
- onChange: m
2132
+ onChange: p
1998
2133
  }
1999
2134
  )
2000
2135
  ] }),
2001
2136
  t.type === "color" && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2002
- /* @__PURE__ */ c.jsx("input", { type: "text", value: i.toString(), onChange: m, className: "color" }),
2003
- /* @__PURE__ */ c.jsx("input", { type: "color", value: i, onChange: m })
2137
+ /* @__PURE__ */ c.jsx("input", { type: "text", value: a.toString(), onChange: p, className: "color" }),
2138
+ /* @__PURE__ */ c.jsx("input", { type: "color", value: a, onChange: p })
2004
2139
  ] }),
2005
2140
  t.type === "button" && /* @__PURE__ */ c.jsx(
2006
2141
  "button",
@@ -2011,14 +2146,14 @@ function nt(t) {
2011
2146
  children: t.title
2012
2147
  }
2013
2148
  ),
2014
- t.type === "image" && /* @__PURE__ */ c.jsx("img", { ref: h, onClick: () => {
2015
- Si().then((v) => {
2016
- h.current.src = v, t.onChange !== void 0 && t.onChange(t.prop !== void 0 ? t.prop : t.title, v);
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);
2017
2152
  });
2018
- }, src: i.length > 0 ? i : Ei })
2153
+ }, src: a.length > 0 ? a : ja })
2019
2154
  ] });
2020
2155
  }
2021
- function Kt(t) {
2156
+ function Zt(t) {
2022
2157
  switch (t) {
2023
2158
  case "fov":
2024
2159
  return "FOV";
@@ -2047,71 +2182,71 @@ function Kt(t) {
2047
2182
  }
2048
2183
  return t;
2049
2184
  }
2050
- function Ti(t, n) {
2051
- const i = [];
2185
+ function La(t, n) {
2186
+ const a = [];
2052
2187
  if (t.perspectiveCameraInfo !== void 0)
2053
2188
  for (const e in t.perspectiveCameraInfo)
2054
- i.push({
2055
- title: Kt(e),
2189
+ a.push({
2190
+ title: Zt(e),
2056
2191
  prop: e,
2057
2192
  type: "number",
2058
2193
  step: 0.01,
2059
2194
  value: t.perspectiveCameraInfo[e],
2060
- onChange: (a, s) => {
2195
+ onChange: (r, s) => {
2061
2196
  var l;
2062
- n.updateObject(t.uuid, a, s), n.requestMethod(t.uuid, "updateProjectionMatrix");
2063
- const h = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2064
- h !== void 0 && (J(h, a, s), h.updateProjectionMatrix());
2197
+ 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());
2065
2200
  }
2066
2201
  });
2067
2202
  else if (t.orthographicCameraInfo !== void 0)
2068
2203
  for (const e in t.orthographicCameraInfo)
2069
- i.push({
2070
- title: Kt(e),
2204
+ a.push({
2205
+ title: Zt(e),
2071
2206
  prop: e,
2072
2207
  type: "number",
2073
2208
  step: 0.01,
2074
2209
  value: t.perspectiveCameraInfo[e],
2075
- onChange: (a, s) => {
2210
+ onChange: (r, s) => {
2076
2211
  var l;
2077
- n.updateObject(t.uuid, a, s), n.requestMethod(t.uuid, "updateProjectionMatrix");
2078
- const h = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2079
- h !== void 0 && (J(h, a, s), h.updateProjectionMatrix());
2212
+ 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());
2080
2215
  }
2081
2216
  });
2082
2217
  return /* @__PURE__ */ c.jsx(
2083
- Le,
2218
+ Ue,
2084
2219
  {
2085
2220
  title: "Camera",
2086
- items: i
2221
+ items: a
2087
2222
  }
2088
2223
  );
2089
2224
  }
2090
- const Mi = Math.PI / 180, Ri = 180 / Math.PI;
2091
- function We(t, n, i, e, a) {
2092
- return e + (t - n) * (a - e) / (i - n);
2225
+ const Fa = Math.PI / 180, Ua = 180 / Math.PI;
2226
+ function Ke(t, n, a, e, r) {
2227
+ return e + (t - n) * (r - e) / (a - n);
2093
2228
  }
2094
- function Pi(t) {
2095
- return t * Mi;
2229
+ function Ba(t) {
2230
+ return t * Fa;
2096
2231
  }
2097
- function Pt(t) {
2098
- return t * Ri;
2232
+ function kt(t) {
2233
+ return t * Ua;
2099
2234
  }
2100
- function ji(t, n) {
2101
- const i = new kn();
2102
- i.elements = t.matrix;
2103
- const e = new G(), a = new An(), s = new G();
2104
- t.uuid.length > 0 && (e.setFromMatrixPosition(i), a.setFromRotationMatrix(i), s.setFromMatrixScale(i));
2105
- const h = (d, m) => {
2235
+ function $a(t, n) {
2236
+ const a = new Ln();
2237
+ a.elements = t.matrix;
2238
+ const e = new Y(), r = new Fn(), s = new Y();
2239
+ t.uuid.length > 0 && (e.setFromMatrixPosition(a), r.setFromRotationMatrix(a), s.setFromMatrixScale(a));
2240
+ const u = (d, p) => {
2106
2241
  var E;
2107
- n.updateObject(t.uuid, d, m);
2242
+ n.updateObject(t.uuid, d, p);
2108
2243
  const v = (E = n.scene) == null ? void 0 : E.getObjectByProperty("uuid", t.uuid);
2109
- v !== void 0 && J(v, d, m);
2110
- }, l = (d, m) => {
2111
- h(d, Pi(m));
2244
+ v !== void 0 && Q(v, d, p);
2245
+ }, l = (d, p) => {
2246
+ u(d, Ba(p));
2112
2247
  };
2113
2248
  return /* @__PURE__ */ c.jsx(
2114
- Le,
2249
+ Ue,
2115
2250
  {
2116
2251
  title: "Transform",
2117
2252
  items: [
@@ -2120,27 +2255,27 @@ function ji(t, n) {
2120
2255
  prop: "position.x",
2121
2256
  type: "number",
2122
2257
  value: e.x,
2123
- onChange: h
2258
+ onChange: u
2124
2259
  },
2125
2260
  {
2126
2261
  title: "Position Y",
2127
2262
  prop: "position.y",
2128
2263
  type: "number",
2129
2264
  value: e.y,
2130
- onChange: h
2265
+ onChange: u
2131
2266
  },
2132
2267
  {
2133
2268
  title: "Position Z",
2134
2269
  prop: "position.z",
2135
2270
  type: "number",
2136
2271
  value: e.z,
2137
- onChange: h
2272
+ onChange: u
2138
2273
  },
2139
2274
  {
2140
2275
  title: "Rotation X",
2141
2276
  prop: "rotation.x",
2142
2277
  type: "number",
2143
- value: Mt(Pt(a.x)),
2278
+ value: _t(kt(r.x)),
2144
2279
  min: -360,
2145
2280
  max: 360,
2146
2281
  step: 0.1,
@@ -2150,7 +2285,7 @@ function ji(t, n) {
2150
2285
  title: "Rotation Y",
2151
2286
  prop: "rotation.y",
2152
2287
  type: "number",
2153
- value: Mt(Pt(a.y)),
2288
+ value: _t(kt(r.y)),
2154
2289
  min: -360,
2155
2290
  max: 360,
2156
2291
  step: 0.1,
@@ -2160,7 +2295,7 @@ function ji(t, n) {
2160
2295
  title: "Rotation Z",
2161
2296
  prop: "rotation.z",
2162
2297
  type: "number",
2163
- value: Mt(Pt(a.z)),
2298
+ value: _t(kt(r.z)),
2164
2299
  min: -360,
2165
2300
  max: 360,
2166
2301
  step: 0.1,
@@ -2172,7 +2307,7 @@ function ji(t, n) {
2172
2307
  type: "number",
2173
2308
  value: s.x,
2174
2309
  step: 0.01,
2175
- onChange: h
2310
+ onChange: u
2176
2311
  },
2177
2312
  {
2178
2313
  title: "Scale Y",
@@ -2180,7 +2315,7 @@ function ji(t, n) {
2180
2315
  type: "number",
2181
2316
  value: s.y,
2182
2317
  step: 0.01,
2183
- onChange: h
2318
+ onChange: u
2184
2319
  },
2185
2320
  {
2186
2321
  title: "Scale Z",
@@ -2188,13 +2323,13 @@ function ji(t, n) {
2188
2323
  type: "number",
2189
2324
  value: s.z,
2190
2325
  step: 0.01,
2191
- onChange: h
2326
+ onChange: u
2192
2327
  }
2193
2328
  ]
2194
2329
  }
2195
2330
  );
2196
2331
  }
2197
- function Xt(t) {
2332
+ function Jt(t) {
2198
2333
  switch (t) {
2199
2334
  case "color":
2200
2335
  return "Color";
@@ -2213,88 +2348,88 @@ function Xt(t) {
2213
2348
  }
2214
2349
  return t;
2215
2350
  }
2216
- function _i(t, n) {
2217
- const i = [];
2351
+ function Ga(t, n) {
2352
+ const a = [];
2218
2353
  if (t.lightInfo !== void 0)
2219
2354
  for (const e in t.lightInfo) {
2220
- const a = t.lightInfo[e];
2221
- a !== void 0 && (a.isColor !== void 0 ? i.push({
2222
- title: Xt(e),
2355
+ const r = t.lightInfo[e];
2356
+ r !== void 0 && (r.isColor !== void 0 ? a.push({
2357
+ title: Jt(e),
2223
2358
  prop: e,
2224
2359
  type: "color",
2225
- value: a,
2226
- onChange: (s, h) => {
2227
- var m;
2228
- const l = new It(h);
2360
+ value: r,
2361
+ onChange: (s, u) => {
2362
+ var p;
2363
+ const l = new Ft(u);
2229
2364
  n.updateObject(t.uuid, s, l);
2230
- const d = (m = n.scene) == null ? void 0 : m.getObjectByProperty("uuid", t.uuid);
2231
- d !== void 0 && J(d, s, l);
2365
+ const d = (p = n.scene) == null ? void 0 : p.getObjectByProperty("uuid", t.uuid);
2366
+ d !== void 0 && Q(d, s, l);
2232
2367
  }
2233
- }) : i.push({
2234
- title: Xt(e),
2368
+ }) : a.push({
2369
+ title: Jt(e),
2235
2370
  prop: e,
2236
- type: typeof a,
2237
- value: a,
2238
- step: typeof a == "number" ? 0.01 : void 0,
2239
- onChange: (s, h) => {
2371
+ type: typeof r,
2372
+ value: r,
2373
+ step: typeof r == "number" ? 0.01 : void 0,
2374
+ onChange: (s, u) => {
2240
2375
  var d;
2241
- n.updateObject(t.uuid, s, h);
2376
+ n.updateObject(t.uuid, s, u);
2242
2377
  const l = (d = n.scene) == null ? void 0 : d.getObjectByProperty("uuid", t.uuid);
2243
- l !== void 0 && J(l, s, h);
2378
+ l !== void 0 && Q(l, s, u);
2244
2379
  }
2245
2380
  }));
2246
2381
  }
2247
2382
  return /* @__PURE__ */ c.jsx(
2248
- Le,
2383
+ Ue,
2249
2384
  {
2250
2385
  title: "Light",
2251
- items: i
2386
+ items: a
2252
2387
  }
2253
2388
  );
2254
2389
  }
2255
- function Di(t, n) {
2256
- const i = [];
2390
+ function Va(t, n) {
2391
+ const a = [];
2257
2392
  return t.animations.forEach((e) => {
2258
- i.push({
2393
+ a.push({
2259
2394
  title: "Name",
2260
2395
  type: "string",
2261
2396
  prop: "name",
2262
2397
  value: e.name,
2263
2398
  disabled: !0,
2264
- onChange: (a, s) => {
2399
+ onChange: (r, s) => {
2265
2400
  var l;
2266
- n.updateObject(t.uuid, a, s);
2267
- const h = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2268
- h !== void 0 && J(h, a, s);
2401
+ 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);
2269
2404
  }
2270
- }), i.push({
2405
+ }), a.push({
2271
2406
  title: "Duration",
2272
2407
  type: "number",
2273
2408
  prop: "duration",
2274
2409
  value: e.duration,
2275
2410
  disabled: !0,
2276
- onChange: (a, s) => {
2411
+ onChange: (r, s) => {
2277
2412
  var l;
2278
- n.updateObject(t.uuid, a, s);
2279
- const h = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2280
- h !== void 0 && J(h, a, s);
2413
+ 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);
2281
2416
  }
2282
- }), i.push({
2417
+ }), a.push({
2283
2418
  title: "Blend Mode",
2284
2419
  type: "number",
2285
2420
  prop: "blendMode",
2286
2421
  value: e.blendMode,
2287
2422
  disabled: !0,
2288
- onChange: (a, s) => {
2423
+ onChange: (r, s) => {
2289
2424
  var l;
2290
- n.updateObject(t.uuid, a, s);
2291
- const h = (l = n.scene) == null ? void 0 : l.getObjectByProperty("uuid", t.uuid);
2292
- h !== void 0 && J(h, a, s);
2425
+ 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);
2293
2428
  }
2294
2429
  });
2295
- }), /* @__PURE__ */ c.jsx(Le, { title: "Animations", items: i });
2430
+ }), /* @__PURE__ */ c.jsx(Ue, { title: "Animations", items: a });
2296
2431
  }
2297
- const Zt = {
2432
+ const wn = {
2298
2433
  name: "",
2299
2434
  uuid: "",
2300
2435
  type: "",
@@ -2306,101 +2441,101 @@ const Zt = {
2306
2441
  orthographicCameraInfo: void 0,
2307
2442
  lightInfo: void 0
2308
2443
  };
2309
- function ki(t) {
2310
- const [n, i] = ae(Zt);
2311
- Ne(() => {
2312
- function a(h) {
2313
- const l = h.value;
2314
- i(l);
2444
+ let ae = { ...wn };
2445
+ function za(t) {
2446
+ const [n, a] = oe(-1);
2447
+ Fe(() => {
2448
+ function r(u) {
2449
+ ae = { ...u.value }, a(Date.now());
2315
2450
  }
2316
2451
  function s() {
2317
- i(Zt);
2452
+ ae = { ...wn }, a(Date.now());
2318
2453
  }
2319
- return z.addEventListener(Y.SET_SCENE, s), z.addEventListener(Y.SET_OBJECT, a), () => {
2320
- z.removeEventListener(Y.SET_SCENE, s), z.removeEventListener(Y.SET_OBJECT, a);
2454
+ return _.addEventListener(j.SET_SCENE, s), _.addEventListener(j.SET_OBJECT, r), () => {
2455
+ _.removeEventListener(j.SET_SCENE, s), _.removeEventListener(j.SET_OBJECT, r);
2321
2456
  };
2322
2457
  }, []);
2323
- const e = n.type.toLowerCase();
2324
- return /* @__PURE__ */ c.jsx(Nt, { label: "Inspector", children: /* @__PURE__ */ c.jsx("div", { id: "Inspector", className: t.class, children: n.uuid.length > 0 && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2458
+ 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: [
2325
2460
  /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2326
2461
  /* @__PURE__ */ c.jsx(
2327
- nt,
2462
+ it,
2328
2463
  {
2329
2464
  type: "string",
2330
2465
  title: "Name",
2331
2466
  prop: "name",
2332
- value: n.name,
2467
+ value: ae.name,
2333
2468
  disabled: !0
2334
2469
  }
2335
2470
  ),
2336
2471
  /* @__PURE__ */ c.jsx(
2337
- nt,
2472
+ it,
2338
2473
  {
2339
2474
  type: "string",
2340
2475
  title: "Type",
2341
2476
  prop: "type",
2342
- value: n.type,
2477
+ value: ae.type,
2343
2478
  disabled: !0
2344
2479
  }
2345
2480
  ),
2346
2481
  /* @__PURE__ */ c.jsx(
2347
- nt,
2482
+ it,
2348
2483
  {
2349
2484
  type: "string",
2350
2485
  title: "UUID",
2351
2486
  prop: "uuid",
2352
- value: n.uuid,
2487
+ value: ae.uuid,
2353
2488
  disabled: !0
2354
2489
  }
2355
2490
  ),
2356
2491
  /* @__PURE__ */ c.jsx(
2357
- nt,
2492
+ it,
2358
2493
  {
2359
2494
  type: "boolean",
2360
2495
  title: "Visible",
2361
2496
  prop: "visible",
2362
- value: n.visible,
2363
- onChange: (a, s) => {
2497
+ value: ae.visible,
2498
+ onChange: (r, s) => {
2364
2499
  var l;
2365
- t.three.updateObject(n.uuid, a, s);
2366
- const h = (l = t.three.scene) == null ? void 0 : l.getObjectByProperty("uuid", n.uuid);
2367
- h !== void 0 && J(h, a, s);
2500
+ 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);
2368
2503
  }
2369
2504
  }
2370
2505
  )
2371
2506
  ] }),
2372
2507
  /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2373
- ji(n, t.three),
2374
- n.animations.length > 0 ? Di(n, t.three) : null,
2375
- e.search("camera") > -1 ? Ti(n, t.three) : null,
2376
- e.search("light") > -1 ? _i(n, t.three) : null,
2377
- e.search("mesh") > -1 ? Oi(n, t.three) : null
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
2378
2513
  ] })
2379
- ] }) }) }, "Inspector");
2514
+ ] }) }, n) }, "Inspector");
2380
2515
  }
2381
- class ir extends Kn {
2382
- constructor(i) {
2383
- super(i);
2384
- q(this, "three");
2516
+ class fi extends Jn {
2517
+ constructor(a) {
2518
+ super(a);
2519
+ Z(this, "three");
2385
2520
  // Private
2386
- q(this, "setScene", (i) => {
2521
+ Z(this, "setScene", (a) => {
2387
2522
  this.setState(() => ({
2388
- scene: i.value
2523
+ scene: a.value
2389
2524
  }));
2390
2525
  });
2391
2526
  this.state = {
2392
- scene: i.scene !== void 0 ? i.scene : null
2393
- }, this.three = i.three, z.addEventListener(Y.SET_SCENE, this.setScene);
2527
+ scene: a.scene !== void 0 ? a.scene : null
2528
+ }, this.three = a.three, _.addEventListener(j.SET_SCENE, this.setScene);
2394
2529
  }
2395
2530
  componentWillUnmount() {
2396
- z.removeEventListener(Y.SET_SCENE, this.setScene);
2531
+ _.removeEventListener(j.SET_SCENE, this.setScene);
2397
2532
  }
2398
2533
  render() {
2399
- var a;
2400
- const i = this.componentState.scene !== null, e = "Hierarchy - " + (i ? `${(a = this.componentState.scene) == null ? void 0 : a.name}` : "No Scene");
2534
+ var r;
2535
+ const a = this.componentState.scene !== null, e = "Hierarchy - " + (a ? `${(r = this.componentState.scene) == null ? void 0 : r.name}` : "No Scene");
2401
2536
  return /* @__PURE__ */ c.jsx("div", { id: "SidePanel", children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2402
- /* @__PURE__ */ c.jsx(Nt, { label: e, open: !0, children: /* @__PURE__ */ c.jsx(c.Fragment, { children: i && /* @__PURE__ */ c.jsx(yi, { child: this.componentState.scene, three: this.three }) }) }),
2403
- /* @__PURE__ */ c.jsx(ki, { three: this.three })
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 })
2404
2539
  ] }) }, "SidePanel");
2405
2540
  }
2406
2541
  // Getters / Setters
@@ -2408,39 +2543,39 @@ class ir extends Kn {
2408
2543
  return this.state;
2409
2544
  }
2410
2545
  }
2411
- function rr(t) {
2546
+ function hi(t) {
2412
2547
  function n() {
2413
2548
  return t.three.scene === void 0 ? (console.log("No scene:", t.three), !1) : !0;
2414
2549
  }
2415
- const i = (l) => {
2416
- var m;
2550
+ const a = (l) => {
2551
+ var p;
2417
2552
  if (!n())
2418
2553
  return;
2419
- const d = (m = t.three.scene) == null ? void 0 : m.getObjectByProperty("uuid", l.value);
2554
+ const d = (p = t.three.scene) == null ? void 0 : p.getObjectByProperty("uuid", l.value);
2420
2555
  d !== void 0 && t.three.setObject(d);
2421
- }, e = (l, d, m) => {
2556
+ }, e = (l, d, p) => {
2422
2557
  var E;
2423
2558
  if (!n())
2424
2559
  return;
2425
2560
  const v = (E = t.three.scene) == null ? void 0 : E.getObjectByProperty("uuid", l);
2426
- v !== void 0 && J(v, d, m);
2427
- }, a = (l) => {
2561
+ v !== void 0 && Q(v, d, p);
2562
+ }, r = (l) => {
2428
2563
  if (!n())
2429
2564
  return;
2430
- const d = l.value, { key: m, value: v, uuid: E } = d;
2431
- e(E, m, v);
2565
+ const d = l.value, { key: p, value: v, uuid: E } = d;
2566
+ e(E, p, v);
2432
2567
  }, s = (l) => {
2433
2568
  if (!n())
2434
2569
  return;
2435
2570
  const d = l.value;
2436
- kt(d.value).then((m) => {
2437
- e(d.uuid, d.key, m), e(d.uuid, "material.needsUpdate", !0);
2571
+ Nt(d.value).then((p) => {
2572
+ e(d.uuid, d.key, p), e(d.uuid, "material.needsUpdate", !0);
2438
2573
  });
2439
- }, h = (l) => {
2440
- var x;
2574
+ }, u = (l) => {
2575
+ var w;
2441
2576
  if (!n())
2442
2577
  return;
2443
- const { key: d, uuid: m, value: v } = l.value, E = (x = t.three.scene) == null ? void 0 : x.getObjectByProperty("uuid", m);
2578
+ const { key: d, uuid: p, value: v } = l.value, E = (w = t.three.scene) == null ? void 0 : w.getObjectByProperty("uuid", p);
2444
2579
  if (E !== void 0)
2445
2580
  try {
2446
2581
  E[d](v);
@@ -2448,58 +2583,58 @@ function rr(t) {
2448
2583
  console.log("Error requesting method:"), console.log(R), console.log(d), console.log(v);
2449
2584
  }
2450
2585
  };
2451
- return Ne(() => (z.addEventListener(Y.GET_OBJECT, i), z.addEventListener(Y.UPDATE_OBJECT, a), z.addEventListener(Y.CREATE_TEXTURE, s), z.addEventListener(Y.REQUEST_METHOD, h), () => {
2452
- z.removeEventListener(Y.GET_OBJECT, i), z.removeEventListener(Y.UPDATE_OBJECT, a), z.removeEventListener(Y.CREATE_TEXTURE, s), z.removeEventListener(Y.REQUEST_METHOD, h);
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);
2453
2588
  }), []), null;
2454
2589
  }
2455
- const qt = { type: "change" }, jt = { type: "start" }, Qt = { type: "end" }, gt = new In(), Jt = new Nn(), Ai = Math.cos(70 * Ln.DEG2RAD);
2456
- class Ii extends rn {
2457
- constructor(n, i) {
2458
- super(), this.object = n, this.domElement = i, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new G(), this.cursor = new G(), 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: ze.ROTATE, MIDDLE: ze.DOLLY, RIGHT: ze.PAN }, this.touches = { ONE: Ye.ROTATE, TWO: Ye.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
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 {
2592
+ constructor(n, a) {
2593
+ 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() {
2459
2594
  return l.phi;
2460
2595
  }, this.getAzimuthalAngle = function() {
2461
2596
  return l.theta;
2462
2597
  }, this.getDistance = function() {
2463
2598
  return this.object.position.distanceTo(this.target);
2464
2599
  }, this.listenToKeyEvents = function(o) {
2465
- o.addEventListener("keydown", Qe), this._domElementKeyEvents = o;
2600
+ o.addEventListener("keydown", et), this._domElementKeyEvents = o;
2466
2601
  }, this.stopListenToKeyEvents = function() {
2467
- this._domElementKeyEvents.removeEventListener("keydown", Qe), this._domElementKeyEvents = null;
2602
+ this._domElementKeyEvents.removeEventListener("keydown", et), this._domElementKeyEvents = null;
2468
2603
  }, this.saveState = function() {
2469
2604
  e.target0.copy(e.target), e.position0.copy(e.object.position), e.zoom0 = e.object.zoom;
2470
2605
  }, this.reset = function() {
2471
- 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 = a.NONE;
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;
2472
2607
  }, this.update = function() {
2473
- const o = new G(), y = new Vt().setFromUnitVectors(n.up, new G(0, 1, 0)), _ = y.clone().invert(), A = new G(), te = new Vt(), ve = new G(), le = 2 * Math.PI;
2474
- return function(mt = null) {
2475
- const be = e.object.position;
2476
- o.copy(be).sub(e.target), o.applyQuaternion(y), l.setFromVector3(o), e.autoRotate && s === a.NONE && F(b(mt)), e.enableDamping ? (l.theta += d.theta * e.dampingFactor, l.phi += d.phi * e.dampingFactor) : (l.theta += d.theta, l.phi += d.phi);
2477
- let fe = e.minAzimuthAngle, he = e.maxAzimuthAngle;
2478
- isFinite(fe) && isFinite(he) && (fe < -Math.PI ? fe += le : fe > Math.PI && (fe -= le), he < -Math.PI ? he += le : he > Math.PI && (he -= le), fe <= he ? l.theta = Math.max(fe, Math.min(he, l.theta)) : l.theta = l.theta > (fe + he) / 2 ? Math.max(fe, l.theta) : Math.min(he, 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 * m), o.setFromSpherical(l), o.applyQuaternion(_), be.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));
2479
- let $e = !1;
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;
2609
+ return function(bt = null) {
2610
+ 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);
2612
+ 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));
2614
+ let Ve = !1;
2480
2615
  if (e.zoomToCursor && ee) {
2481
- let _e = null;
2616
+ let Ae = null;
2482
2617
  if (e.object.isPerspectiveCamera) {
2483
- const Oe = o.length();
2484
- _e = X(Oe * m);
2485
- const Ve = Oe - _e;
2486
- e.object.position.addScaledVector(de, Ve), e.object.updateMatrixWorld();
2618
+ const Te = o.length();
2619
+ Ae = X(Te * p);
2620
+ const ze = Te - Ae;
2621
+ e.object.position.addScaledVector(fe, ze), e.object.updateMatrixWorld();
2487
2622
  } else if (e.object.isOrthographicCamera) {
2488
- const Oe = new G(ce.x, ce.y, 0);
2489
- Oe.unproject(e.object), e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / m)), e.object.updateProjectionMatrix(), $e = !0;
2490
- const Ve = new G(ce.x, ce.y, 0);
2491
- Ve.unproject(e.object), e.object.position.sub(Ve).add(Oe), e.object.updateMatrixWorld(), _e = o.length();
2623
+ const Te = new Y(le.x, le.y, 0);
2624
+ Te.unproject(e.object), e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / p)), e.object.updateProjectionMatrix(), Ve = !0;
2625
+ const ze = new Y(le.x, le.y, 0);
2626
+ ze.unproject(e.object), e.object.position.sub(ze).add(Te), e.object.updateMatrixWorld(), Ae = o.length();
2492
2627
  } else
2493
2628
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), e.zoomToCursor = !1;
2494
- _e !== null && (this.screenSpacePanning ? e.target.set(0, 0, -1).transformDirection(e.object.matrix).multiplyScalar(_e).add(e.object.position) : (gt.origin.copy(e.object.position), gt.direction.set(0, 0, -1).transformDirection(e.object.matrix), Math.abs(e.object.up.dot(gt.direction)) < Ai ? n.lookAt(e.target) : (Jt.setFromNormalAndCoplanarPoint(e.object.up, e.target), gt.intersectPlane(Jt, e.target))));
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))));
2495
2630
  } else
2496
- e.object.isOrthographicCamera && (e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / m)), e.object.updateProjectionMatrix(), $e = !0);
2497
- return m = 1, ee = !1, $e || A.distanceToSquared(e.object.position) > h || 8 * (1 - te.dot(e.object.quaternion)) > h || ve.distanceToSquared(e.target) > 0 ? (e.dispatchEvent(qt), A.copy(e.object.position), te.copy(e.object.quaternion), ve.copy(e.target), !0) : !1;
2631
+ 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;
2498
2633
  };
2499
2634
  }(), this.dispose = function() {
2500
- e.domElement.removeEventListener("contextmenu", Se), e.domElement.removeEventListener("pointerdown", Ze), e.domElement.removeEventListener("pointercancel", je), e.domElement.removeEventListener("wheel", ut), e.domElement.removeEventListener("pointermove", Ce), e.domElement.removeEventListener("pointerup", je), e._domElementKeyEvents !== null && (e._domElementKeyEvents.removeEventListener("keydown", Qe), e._domElementKeyEvents = null);
2635
+ 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);
2501
2636
  };
2502
- const e = this, a = {
2637
+ const e = this, r = {
2503
2638
  NONE: -1,
2504
2639
  ROTATE: 0,
2505
2640
  DOLLY: 1,
@@ -2509,12 +2644,12 @@ class Ii extends rn {
2509
2644
  TOUCH_DOLLY_PAN: 5,
2510
2645
  TOUCH_DOLLY_ROTATE: 6
2511
2646
  };
2512
- let s = a.NONE;
2513
- const h = 1e-6, l = new Gt(), d = new Gt();
2514
- let m = 1;
2515
- const v = new G(), E = new ue(), x = new ue(), R = new ue(), T = new ue(), B = new ue(), oe = new ue(), H = new ue(), C = new ue(), K = new ue(), de = new G(), ce = new ue();
2647
+ let s = r.NONE;
2648
+ const u = 1e-6, l = new Wt(), d = new Wt();
2649
+ let p = 1;
2650
+ 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();
2516
2651
  let ee = !1;
2517
- const u = [], p = {};
2652
+ const f = [], m = {};
2518
2653
  function b(o) {
2519
2654
  return o !== null ? 2 * Math.PI / 60 * e.autoRotateSpeed * o : 2 * Math.PI / 60 / 60 * e.autoRotateSpeed;
2520
2655
  }
@@ -2522,160 +2657,160 @@ class Ii extends rn {
2522
2657
  const y = Math.abs(o) / (100 * (window.devicePixelRatio | 0));
2523
2658
  return Math.pow(0.95, e.zoomSpeed * y);
2524
2659
  }
2525
- function F(o) {
2660
+ function B(o) {
2526
2661
  d.theta -= o;
2527
2662
  }
2528
- function U(o) {
2663
+ function $(o) {
2529
2664
  d.phi -= o;
2530
2665
  }
2531
- const N = function() {
2532
- const o = new G();
2533
- return function(_, A) {
2534
- o.setFromMatrixColumn(A, 0), o.multiplyScalar(-_), v.add(o);
2666
+ const F = function() {
2667
+ const o = new Y();
2668
+ return function(A, N) {
2669
+ o.setFromMatrixColumn(N, 0), o.multiplyScalar(-A), v.add(o);
2535
2670
  };
2536
2671
  }(), D = function() {
2537
- const o = new G();
2538
- return function(_, A) {
2539
- e.screenSpacePanning === !0 ? o.setFromMatrixColumn(A, 1) : (o.setFromMatrixColumn(A, 0), o.crossVectors(e.object.up, o)), o.multiplyScalar(_), v.add(o);
2672
+ const o = new Y();
2673
+ return function(A, N) {
2674
+ e.screenSpacePanning === !0 ? o.setFromMatrixColumn(N, 1) : (o.setFromMatrixColumn(N, 0), o.crossVectors(e.object.up, o)), o.multiplyScalar(A), v.add(o);
2540
2675
  };
2541
- }(), L = function() {
2542
- const o = new G();
2543
- return function(_, A) {
2676
+ }(), U = function() {
2677
+ const o = new Y();
2678
+ return function(A, N) {
2544
2679
  const te = e.domElement;
2545
2680
  if (e.object.isPerspectiveCamera) {
2546
- const ve = e.object.position;
2547
- o.copy(ve).sub(e.target);
2548
- let le = o.length();
2549
- le *= Math.tan(e.object.fov / 2 * Math.PI / 180), N(2 * _ * le / te.clientHeight, e.object.matrix), D(2 * A * le / te.clientHeight, e.object.matrix);
2681
+ const be = e.object.position;
2682
+ o.copy(be).sub(e.target);
2683
+ let ue = o.length();
2684
+ ue *= Math.tan(e.object.fov / 2 * Math.PI / 180), F(2 * A * ue / te.clientHeight, e.object.matrix), D(2 * N * ue / te.clientHeight, e.object.matrix);
2550
2685
  } else
2551
- e.object.isOrthographicCamera ? (N(_ * (e.object.right - e.object.left) / e.object.zoom / te.clientWidth, e.object.matrix), D(A * (e.object.top - e.object.bottom) / e.object.zoom / te.clientHeight, e.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), e.enablePan = !1);
2686
+ e.object.isOrthographicCamera ? (F(A * (e.object.right - e.object.left) / e.object.zoom / te.clientWidth, e.object.matrix), D(N * (e.object.top - e.object.bottom) / e.object.zoom / te.clientHeight, e.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), e.enablePan = !1);
2552
2687
  };
2553
2688
  }();
2554
- function Q(o) {
2555
- e.object.isPerspectiveCamera || e.object.isOrthographicCamera ? m /= o : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2689
+ function J(o) {
2690
+ e.object.isPerspectiveCamera || e.object.isOrthographicCamera ? p /= o : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2556
2691
  }
2557
2692
  function M(o) {
2558
- e.object.isPerspectiveCamera || e.object.isOrthographicCamera ? m *= o : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2693
+ e.object.isPerspectiveCamera || e.object.isOrthographicCamera ? p *= o : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), e.enableZoom = !1);
2559
2694
  }
2560
- function k(o, y) {
2695
+ function I(o, y) {
2561
2696
  if (!e.zoomToCursor)
2562
2697
  return;
2563
2698
  ee = !0;
2564
- const _ = e.domElement.getBoundingClientRect(), A = o - _.left, te = y - _.top, ve = _.width, le = _.height;
2565
- ce.x = A / ve * 2 - 1, ce.y = -(te / le) * 2 + 1, de.set(ce.x, ce.y, 1).unproject(e.object).sub(e.object.position).normalize();
2699
+ const A = e.domElement.getBoundingClientRect(), N = o - A.left, te = y - A.top, be = A.width, ue = A.height;
2700
+ le.x = N / be * 2 - 1, le.y = -(te / ue) * 2 + 1, fe.set(le.x, le.y, 1).unproject(e.object).sub(e.object.position).normalize();
2566
2701
  }
2567
2702
  function X(o) {
2568
2703
  return Math.max(e.minDistance, Math.min(e.maxDistance, o));
2569
2704
  }
2570
- function pe(o) {
2705
+ function me(o) {
2571
2706
  E.set(o.clientX, o.clientY);
2572
2707
  }
2573
- function Te(o) {
2574
- k(o.clientX, o.clientX), H.set(o.clientX, o.clientY);
2708
+ function Re(o) {
2709
+ I(o.clientX, o.clientX), H.set(o.clientX, o.clientY);
2575
2710
  }
2576
- function He(o) {
2711
+ function Xe(o) {
2577
2712
  T.set(o.clientX, o.clientY);
2578
2713
  }
2579
- function at(o) {
2580
- x.set(o.clientX, o.clientY), R.subVectors(x, E).multiplyScalar(e.rotateSpeed);
2714
+ function ct(o) {
2715
+ w.set(o.clientX, o.clientY), R.subVectors(w, E).multiplyScalar(e.rotateSpeed);
2581
2716
  const y = e.domElement;
2582
- F(2 * Math.PI * R.x / y.clientHeight), U(2 * Math.PI * R.y / y.clientHeight), E.copy(x), e.update();
2717
+ B(2 * Math.PI * R.x / y.clientHeight), $(2 * Math.PI * R.y / y.clientHeight), E.copy(w), e.update();
2583
2718
  }
2584
- function wt(o) {
2585
- C.set(o.clientX, o.clientY), K.subVectors(C, H), K.y > 0 ? Q(S(K.y)) : K.y < 0 && M(S(K.y)), H.copy(C), e.update();
2719
+ function Ot(o) {
2720
+ C.set(o.clientX, o.clientY), K.subVectors(C, H), K.y > 0 ? J(S(K.y)) : K.y < 0 && M(S(K.y)), H.copy(C), e.update();
2586
2721
  }
2587
- function Ct(o) {
2588
- B.set(o.clientX, o.clientY), oe.subVectors(B, T).multiplyScalar(e.panSpeed), L(oe.x, oe.y), T.copy(B), e.update();
2722
+ function Tt(o) {
2723
+ G.set(o.clientX, o.clientY), se.subVectors(G, T).multiplyScalar(e.panSpeed), U(se.x, se.y), T.copy(G), e.update();
2589
2724
  }
2590
- function Ke(o) {
2591
- k(o.clientX, o.clientY), o.deltaY < 0 ? M(S(o.deltaY)) : o.deltaY > 0 && Q(S(o.deltaY)), e.update();
2725
+ function qe(o) {
2726
+ I(o.clientX, o.clientY), o.deltaY < 0 ? M(S(o.deltaY)) : o.deltaY > 0 && J(S(o.deltaY)), e.update();
2592
2727
  }
2593
- function Xe(o) {
2728
+ function Ze(o) {
2594
2729
  let y = !1;
2595
2730
  switch (o.code) {
2596
2731
  case e.keys.UP:
2597
- o.ctrlKey || o.metaKey || o.shiftKey ? U(2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : L(0, e.keyPanSpeed), y = !0;
2732
+ o.ctrlKey || o.metaKey || o.shiftKey ? $(2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : U(0, e.keyPanSpeed), y = !0;
2598
2733
  break;
2599
2734
  case e.keys.BOTTOM:
2600
- o.ctrlKey || o.metaKey || o.shiftKey ? U(-2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : L(0, -e.keyPanSpeed), y = !0;
2735
+ o.ctrlKey || o.metaKey || o.shiftKey ? $(-2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : U(0, -e.keyPanSpeed), y = !0;
2601
2736
  break;
2602
2737
  case e.keys.LEFT:
2603
- o.ctrlKey || o.metaKey || o.shiftKey ? F(2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : L(e.keyPanSpeed, 0), y = !0;
2738
+ o.ctrlKey || o.metaKey || o.shiftKey ? B(2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : U(e.keyPanSpeed, 0), y = !0;
2604
2739
  break;
2605
2740
  case e.keys.RIGHT:
2606
- o.ctrlKey || o.metaKey || o.shiftKey ? F(-2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : L(-e.keyPanSpeed, 0), y = !0;
2741
+ o.ctrlKey || o.metaKey || o.shiftKey ? B(-2 * Math.PI * e.rotateSpeed / e.domElement.clientHeight) : U(-e.keyPanSpeed, 0), y = !0;
2607
2742
  break;
2608
2743
  }
2609
2744
  y && (o.preventDefault(), e.update());
2610
2745
  }
2611
- function Me(o) {
2612
- if (u.length === 1)
2746
+ function Pe(o) {
2747
+ if (f.length === 1)
2613
2748
  E.set(o.pageX, o.pageY);
2614
2749
  else {
2615
- const y = ge(o), _ = 0.5 * (o.pageX + y.x), A = 0.5 * (o.pageY + y.y);
2616
- E.set(_, A);
2750
+ const y = ve(o), A = 0.5 * (o.pageX + y.x), N = 0.5 * (o.pageY + y.y);
2751
+ E.set(A, N);
2617
2752
  }
2618
2753
  }
2619
- function Ue(o) {
2620
- if (u.length === 1)
2754
+ function $e(o) {
2755
+ if (f.length === 1)
2621
2756
  T.set(o.pageX, o.pageY);
2622
2757
  else {
2623
- const y = ge(o), _ = 0.5 * (o.pageX + y.x), A = 0.5 * (o.pageY + y.y);
2624
- T.set(_, A);
2758
+ const y = ve(o), A = 0.5 * (o.pageX + y.x), N = 0.5 * (o.pageY + y.y);
2759
+ T.set(A, N);
2625
2760
  }
2626
2761
  }
2627
- function Re(o) {
2628
- const y = ge(o), _ = o.pageX - y.x, A = o.pageY - y.y, te = Math.sqrt(_ * _ + A * A);
2762
+ function _e(o) {
2763
+ const y = ve(o), A = o.pageX - y.x, N = o.pageY - y.y, te = Math.sqrt(A * A + N * N);
2629
2764
  H.set(0, te);
2630
2765
  }
2631
- function St(o) {
2632
- e.enableZoom && Re(o), e.enablePan && Ue(o);
2766
+ function Mt(o) {
2767
+ e.enableZoom && _e(o), e.enablePan && $e(o);
2633
2768
  }
2634
- function ot(o) {
2635
- e.enableZoom && Re(o), e.enableRotate && Me(o);
2769
+ function lt(o) {
2770
+ e.enableZoom && _e(o), e.enableRotate && Pe(o);
2636
2771
  }
2637
- function st(o) {
2638
- if (u.length == 1)
2639
- x.set(o.pageX, o.pageY);
2772
+ function ut(o) {
2773
+ if (f.length == 1)
2774
+ w.set(o.pageX, o.pageY);
2640
2775
  else {
2641
- const _ = ge(o), A = 0.5 * (o.pageX + _.x), te = 0.5 * (o.pageY + _.y);
2642
- x.set(A, te);
2776
+ const A = ve(o), N = 0.5 * (o.pageX + A.x), te = 0.5 * (o.pageY + A.y);
2777
+ w.set(N, te);
2643
2778
  }
2644
- R.subVectors(x, E).multiplyScalar(e.rotateSpeed);
2779
+ R.subVectors(w, E).multiplyScalar(e.rotateSpeed);
2645
2780
  const y = e.domElement;
2646
- F(2 * Math.PI * R.x / y.clientHeight), U(2 * Math.PI * R.y / y.clientHeight), E.copy(x);
2781
+ B(2 * Math.PI * R.x / y.clientHeight), $(2 * Math.PI * R.y / y.clientHeight), E.copy(w);
2647
2782
  }
2648
- function ct(o) {
2649
- if (u.length === 1)
2650
- B.set(o.pageX, o.pageY);
2783
+ function dt(o) {
2784
+ if (f.length === 1)
2785
+ G.set(o.pageX, o.pageY);
2651
2786
  else {
2652
- const y = ge(o), _ = 0.5 * (o.pageX + y.x), A = 0.5 * (o.pageY + y.y);
2653
- B.set(_, A);
2787
+ const y = ve(o), A = 0.5 * (o.pageX + y.x), N = 0.5 * (o.pageY + y.y);
2788
+ G.set(A, N);
2654
2789
  }
2655
- oe.subVectors(B, T).multiplyScalar(e.panSpeed), L(oe.x, oe.y), T.copy(B);
2790
+ se.subVectors(G, T).multiplyScalar(e.panSpeed), U(se.x, se.y), T.copy(G);
2656
2791
  }
2657
- function Pe(o) {
2658
- const y = ge(o), _ = o.pageX - y.x, A = o.pageY - y.y, te = Math.sqrt(_ * _ + A * A);
2659
- C.set(0, te), K.set(0, Math.pow(C.y / H.y, e.zoomSpeed)), Q(K.y), H.copy(C);
2660
- const ve = (o.pageX + y.x) * 0.5, le = (o.pageY + y.y) * 0.5;
2661
- k(ve, le);
2792
+ function je(o) {
2793
+ const y = ve(o), A = o.pageX - y.x, N = o.pageY - y.y, te = Math.sqrt(A * A + N * N);
2794
+ C.set(0, te), K.set(0, Math.pow(C.y / H.y, e.zoomSpeed)), J(K.y), H.copy(C);
2795
+ const be = (o.pageX + y.x) * 0.5, ue = (o.pageY + y.y) * 0.5;
2796
+ I(be, ue);
2662
2797
  }
2663
- function Be(o) {
2664
- e.enableZoom && Pe(o), e.enablePan && ct(o);
2798
+ function Ge(o) {
2799
+ e.enableZoom && je(o), e.enablePan && dt(o);
2665
2800
  }
2666
- function lt(o) {
2667
- e.enableZoom && Pe(o), e.enableRotate && st(o);
2801
+ function ft(o) {
2802
+ e.enableZoom && je(o), e.enableRotate && ut(o);
2668
2803
  }
2669
- function Ze(o) {
2670
- e.enabled !== !1 && (u.length === 0 && (e.domElement.setPointerCapture(o.pointerId), e.domElement.addEventListener("pointermove", Ce), e.domElement.addEventListener("pointerup", je)), Tt(o), o.pointerType === "touch" ? dt(o) : Ot(o));
2804
+ 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));
2671
2806
  }
2672
- function Ce(o) {
2673
- e.enabled !== !1 && (o.pointerType === "touch" ? ft(o) : qe(o));
2807
+ function Se(o) {
2808
+ e.enabled !== !1 && (o.pointerType === "touch" ? mt(o) : Qe(o));
2674
2809
  }
2675
- function je(o) {
2676
- ht(o), u.length === 0 && (e.domElement.releasePointerCapture(o.pointerId), e.domElement.removeEventListener("pointermove", Ce), e.domElement.removeEventListener("pointerup", je)), e.dispatchEvent(Qt), s = a.NONE;
2810
+ 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;
2677
2812
  }
2678
- function Ot(o) {
2813
+ function Rt(o) {
2679
2814
  let y;
2680
2815
  switch (o.button) {
2681
2816
  case 0:
@@ -2691,537 +2826,537 @@ class Ii extends rn {
2691
2826
  y = -1;
2692
2827
  }
2693
2828
  switch (y) {
2694
- case ze.DOLLY:
2829
+ case We.DOLLY:
2695
2830
  if (e.enableZoom === !1)
2696
2831
  return;
2697
- Te(o), s = a.DOLLY;
2832
+ Re(o), s = r.DOLLY;
2698
2833
  break;
2699
- case ze.ROTATE:
2834
+ case We.ROTATE:
2700
2835
  if (o.ctrlKey || o.metaKey || o.shiftKey) {
2701
2836
  if (e.enablePan === !1)
2702
2837
  return;
2703
- He(o), s = a.PAN;
2838
+ Xe(o), s = r.PAN;
2704
2839
  } else {
2705
2840
  if (e.enableRotate === !1)
2706
2841
  return;
2707
- pe(o), s = a.ROTATE;
2842
+ me(o), s = r.ROTATE;
2708
2843
  }
2709
2844
  break;
2710
- case ze.PAN:
2845
+ case We.PAN:
2711
2846
  if (o.ctrlKey || o.metaKey || o.shiftKey) {
2712
2847
  if (e.enableRotate === !1)
2713
2848
  return;
2714
- pe(o), s = a.ROTATE;
2849
+ me(o), s = r.ROTATE;
2715
2850
  } else {
2716
2851
  if (e.enablePan === !1)
2717
2852
  return;
2718
- He(o), s = a.PAN;
2853
+ Xe(o), s = r.PAN;
2719
2854
  }
2720
2855
  break;
2721
2856
  default:
2722
- s = a.NONE;
2857
+ s = r.NONE;
2723
2858
  }
2724
- s !== a.NONE && e.dispatchEvent(jt);
2859
+ s !== r.NONE && e.dispatchEvent(At);
2725
2860
  }
2726
- function qe(o) {
2861
+ function Qe(o) {
2727
2862
  switch (s) {
2728
- case a.ROTATE:
2863
+ case r.ROTATE:
2729
2864
  if (e.enableRotate === !1)
2730
2865
  return;
2731
- at(o);
2866
+ ct(o);
2732
2867
  break;
2733
- case a.DOLLY:
2868
+ case r.DOLLY:
2734
2869
  if (e.enableZoom === !1)
2735
2870
  return;
2736
- wt(o);
2871
+ Ot(o);
2737
2872
  break;
2738
- case a.PAN:
2873
+ case r.PAN:
2739
2874
  if (e.enablePan === !1)
2740
2875
  return;
2741
- Ct(o);
2876
+ Tt(o);
2742
2877
  break;
2743
2878
  }
2744
2879
  }
2745
- function ut(o) {
2746
- e.enabled === !1 || e.enableZoom === !1 || s !== a.NONE || (o.preventDefault(), e.dispatchEvent(jt), Ke(o), e.dispatchEvent(Qt));
2880
+ function ht(o) {
2881
+ e.enabled === !1 || e.enableZoom === !1 || s !== r.NONE || (o.preventDefault(), e.dispatchEvent(At), qe(o), e.dispatchEvent(en));
2747
2882
  }
2748
- function Qe(o) {
2749
- e.enabled === !1 || e.enablePan === !1 || Xe(o);
2883
+ function et(o) {
2884
+ e.enabled === !1 || e.enablePan === !1 || Ze(o);
2750
2885
  }
2751
- function dt(o) {
2752
- switch (Je(o), u.length) {
2886
+ function pt(o) {
2887
+ switch (tt(o), f.length) {
2753
2888
  case 1:
2754
2889
  switch (e.touches.ONE) {
2755
- case Ye.ROTATE:
2890
+ case He.ROTATE:
2756
2891
  if (e.enableRotate === !1)
2757
2892
  return;
2758
- Me(o), s = a.TOUCH_ROTATE;
2893
+ Pe(o), s = r.TOUCH_ROTATE;
2759
2894
  break;
2760
- case Ye.PAN:
2895
+ case He.PAN:
2761
2896
  if (e.enablePan === !1)
2762
2897
  return;
2763
- Ue(o), s = a.TOUCH_PAN;
2898
+ $e(o), s = r.TOUCH_PAN;
2764
2899
  break;
2765
2900
  default:
2766
- s = a.NONE;
2901
+ s = r.NONE;
2767
2902
  }
2768
2903
  break;
2769
2904
  case 2:
2770
2905
  switch (e.touches.TWO) {
2771
- case Ye.DOLLY_PAN:
2906
+ case He.DOLLY_PAN:
2772
2907
  if (e.enableZoom === !1 && e.enablePan === !1)
2773
2908
  return;
2774
- St(o), s = a.TOUCH_DOLLY_PAN;
2909
+ Mt(o), s = r.TOUCH_DOLLY_PAN;
2775
2910
  break;
2776
- case Ye.DOLLY_ROTATE:
2911
+ case He.DOLLY_ROTATE:
2777
2912
  if (e.enableZoom === !1 && e.enableRotate === !1)
2778
2913
  return;
2779
- ot(o), s = a.TOUCH_DOLLY_ROTATE;
2914
+ lt(o), s = r.TOUCH_DOLLY_ROTATE;
2780
2915
  break;
2781
2916
  default:
2782
- s = a.NONE;
2917
+ s = r.NONE;
2783
2918
  }
2784
2919
  break;
2785
2920
  default:
2786
- s = a.NONE;
2921
+ s = r.NONE;
2787
2922
  }
2788
- s !== a.NONE && e.dispatchEvent(jt);
2923
+ s !== r.NONE && e.dispatchEvent(At);
2789
2924
  }
2790
- function ft(o) {
2791
- switch (Je(o), s) {
2792
- case a.TOUCH_ROTATE:
2925
+ function mt(o) {
2926
+ switch (tt(o), s) {
2927
+ case r.TOUCH_ROTATE:
2793
2928
  if (e.enableRotate === !1)
2794
2929
  return;
2795
- st(o), e.update();
2930
+ ut(o), e.update();
2796
2931
  break;
2797
- case a.TOUCH_PAN:
2932
+ case r.TOUCH_PAN:
2798
2933
  if (e.enablePan === !1)
2799
2934
  return;
2800
- ct(o), e.update();
2935
+ dt(o), e.update();
2801
2936
  break;
2802
- case a.TOUCH_DOLLY_PAN:
2937
+ case r.TOUCH_DOLLY_PAN:
2803
2938
  if (e.enableZoom === !1 && e.enablePan === !1)
2804
2939
  return;
2805
- Be(o), e.update();
2940
+ Ge(o), e.update();
2806
2941
  break;
2807
- case a.TOUCH_DOLLY_ROTATE:
2942
+ case r.TOUCH_DOLLY_ROTATE:
2808
2943
  if (e.enableZoom === !1 && e.enableRotate === !1)
2809
2944
  return;
2810
- lt(o), e.update();
2945
+ ft(o), e.update();
2811
2946
  break;
2812
2947
  default:
2813
- s = a.NONE;
2948
+ s = r.NONE;
2814
2949
  }
2815
2950
  }
2816
- function Se(o) {
2951
+ function Oe(o) {
2817
2952
  e.enabled !== !1 && o.preventDefault();
2818
2953
  }
2819
- function Tt(o) {
2820
- u.push(o.pointerId);
2954
+ function Pt(o) {
2955
+ f.push(o.pointerId);
2821
2956
  }
2822
- function ht(o) {
2823
- delete p[o.pointerId];
2824
- for (let y = 0; y < u.length; y++)
2825
- if (u[y] == o.pointerId) {
2826
- u.splice(y, 1);
2957
+ function gt(o) {
2958
+ delete m[o.pointerId];
2959
+ for (let y = 0; y < f.length; y++)
2960
+ if (f[y] == o.pointerId) {
2961
+ f.splice(y, 1);
2827
2962
  return;
2828
2963
  }
2829
2964
  }
2830
- function Je(o) {
2831
- let y = p[o.pointerId];
2832
- y === void 0 && (y = new ue(), p[o.pointerId] = y), y.set(o.pageX, o.pageY);
2965
+ function tt(o) {
2966
+ let y = m[o.pointerId];
2967
+ y === void 0 && (y = new de(), m[o.pointerId] = y), y.set(o.pageX, o.pageY);
2833
2968
  }
2834
- function ge(o) {
2835
- const y = o.pointerId === u[0] ? u[1] : u[0];
2836
- return p[y];
2969
+ function ve(o) {
2970
+ const y = o.pointerId === f[0] ? f[1] : f[0];
2971
+ return m[y];
2837
2972
  }
2838
- e.domElement.addEventListener("contextmenu", Se), e.domElement.addEventListener("pointerdown", Ze), e.domElement.addEventListener("pointercancel", je), e.domElement.addEventListener("wheel", ut, { passive: !1 }), this.update();
2973
+ e.domElement.addEventListener("contextmenu", Oe), e.domElement.addEventListener("pointerdown", Je), e.domElement.addEventListener("pointercancel", ke), e.domElement.addEventListener("wheel", ht, { passive: !1 }), this.update();
2839
2974
  }
2840
2975
  }
2841
- const yt = (t) => {
2842
- const [n, i] = ae(t.options[t.index]), e = () => {
2976
+ const xt = (t) => {
2977
+ const [n, a] = oe(t.options[t.index]), e = () => {
2843
2978
  t.onToggle(!t.open);
2844
- }, a = (s) => {
2845
- s !== n && (t.onSelect(s), i(s)), t.onToggle(!1);
2979
+ }, r = (s) => {
2980
+ s !== n && (t.onSelect(s), a(s)), t.onToggle(!1);
2846
2981
  };
2847
2982
  return /* @__PURE__ */ c.jsxs("div", { className: `dropdown ${t.up === !0 ? "up" : ""}`, children: [
2848
2983
  /* @__PURE__ */ c.jsx("div", { className: "dropdown-toggle", onClick: e, children: n }),
2849
- t.open && /* @__PURE__ */ c.jsx("ul", { className: "dropdown-menu", children: t.options.map((s) => /* @__PURE__ */ c.jsx("li", { onClick: () => a(s), children: s }, s)) })
2984
+ t.open && /* @__PURE__ */ c.jsx("ul", { className: "dropdown-menu", children: t.options.map((s) => /* @__PURE__ */ c.jsx("li", { onClick: () => r(s), children: s }, s)) })
2850
2985
  ] });
2851
- }, ke = Xn(function(n, i) {
2852
- const [e, a] = ae(!1), s = n.options.indexOf(n.camera.name);
2986
+ }, Ie = Qn(function(n, a) {
2987
+ const [e, r] = oe(!1), s = n.options.indexOf(n.camera.name);
2853
2988
  return /* @__PURE__ */ c.jsxs("div", { className: "CameraWindow", children: [
2854
- /* @__PURE__ */ c.jsx("div", { ref: i, className: "clickable", onClick: () => {
2855
- e && a(!1);
2989
+ /* @__PURE__ */ c.jsx("div", { ref: a, className: "clickable", onClick: () => {
2990
+ e && r(!1);
2856
2991
  } }),
2857
2992
  /* @__PURE__ */ c.jsx(
2858
- yt,
2993
+ xt,
2859
2994
  {
2860
2995
  index: s,
2861
2996
  open: e,
2862
2997
  options: n.options,
2863
2998
  onSelect: n.onSelect,
2864
- onToggle: (h) => {
2865
- a(h);
2999
+ onToggle: (u) => {
3000
+ r(u);
2866
3001
  },
2867
3002
  up: !0
2868
3003
  }
2869
3004
  )
2870
3005
  ] });
2871
- }), en = [
3006
+ }), nn = [
2872
3007
  "Single",
2873
3008
  "Side by Side",
2874
3009
  "Stacked",
2875
3010
  "Quad"
2876
- ], ne = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new Map();
2877
- function Fe(t, n) {
2878
- const i = new sn(-100, 100, 100, -100, 50, 3e3);
2879
- return i.name = t, i.position.copy(n), i.lookAt(0, 0, 0), ne.set(t, i), i;
2880
- }
2881
- Fe("Top", new G(0, 1e3, 0));
2882
- Fe("Bottom", new G(0, -1e3, 0));
2883
- Fe("Left", new G(-1e3, 0, 0));
2884
- Fe("Right", new G(1e3, 0, 0));
2885
- Fe("Front", new G(0, 0, 1e3));
2886
- Fe("Back", new G(0, 0, -1e3));
2887
- Fe("Orthographic", new G(1e3, 1e3, 1e3));
2888
- const xt = new _t(60, 1, 50, 3e3);
2889
- xt.name = "Debug";
2890
- xt.position.set(500, 500, 500);
2891
- xt.lookAt(0, 0, 0);
2892
- ne.set("Debug", xt);
2893
- const tn = [
3011
+ ], ne = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), we = /* @__PURE__ */ new Map();
3012
+ function Be(t, n) {
3013
+ const a = new ln(-100, 100, 100, -100, 50, 3e3);
3014
+ return a.name = t, a.position.copy(n), a.lookAt(0, 0, 0), ne.set(t, a), a;
3015
+ }
3016
+ Be("Top", new Y(0, 1e3, 0));
3017
+ Be("Bottom", new Y(0, -1e3, 0));
3018
+ Be("Left", new Y(-1e3, 0, 0));
3019
+ Be("Right", new Y(1e3, 0, 0));
3020
+ Be("Front", new Y(0, 0, 1e3));
3021
+ Be("Back", new Y(0, 0, -1e3));
3022
+ Be("Orthographic", new Y(1e3, 1e3, 1e3));
3023
+ const St = new Dt(60, 1, 50, 3e3);
3024
+ St.name = "Debug";
3025
+ St.position.set(500, 500, 500);
3026
+ St.lookAt(0, 0, 0);
3027
+ ne.set("Debug", St);
3028
+ const an = [
2894
3029
  "Renderer",
2895
3030
  "Depth",
2896
3031
  "Normals",
2897
3032
  "UVs",
2898
3033
  "Wireframe"
2899
- ], Ni = new Fn(), Li = new Un(), Fi = new bi(), Ui = new Bn({
3034
+ ], Ha = new Gn(), Ka = new Vn(), Xa = new Pa(), qa = new zn({
2900
3035
  opacity: 0.33,
2901
3036
  transparent: !0,
2902
3037
  wireframe: !0
2903
3038
  });
2904
- let vt = "Renderer";
2905
- const V = new cn();
2906
- V.name = "Debug Scene";
2907
- let xe = new cn();
2908
- V.add(xe);
2909
- const rt = new $n();
2910
- rt.name = "helpers";
2911
- V.add(rt);
2912
- const Bi = new mi();
2913
- rt.add(Bi);
2914
- const bn = new ln(500);
2915
- bn.name = "axisHelper";
2916
- rt.add(bn);
2917
- const it = new ln(100);
2918
- it.name = "interactionHelper";
2919
- rt.add(it);
2920
- it.visible = !1;
2921
- let bt = !1, $ = ne.get("Debug"), re = ne.get("Orthographic"), Ae = ne.get("Front"), Ie = ne.get("Top"), nn = !1;
2922
- function ar(t) {
2923
- const [n, i] = ae(t.mode !== void 0 ? t.mode : "Single"), [e, a] = ae(null), [s, h] = ae(!1), [l, d] = ae(!1), [m, v] = ae(!1), [, E] = ae(Date.now()), x = we(null), R = we(null), T = we(null), B = we(null), oe = we(null), H = we(null), C = (u, p) => {
2924
- const b = ie.get(u.name);
2925
- b !== void 0 && b.dispose(), ie.delete(u.name);
2926
- const S = Ee.get(u.name);
2927
- S !== void 0 && (V.remove(S), S.dispose()), Ee.delete(u.name);
2928
- const F = new Ii(u, p);
2929
- switch (F.enableDamping = !0, F.dampingFactor = 0.05, u.name) {
3039
+ let Et = "Renderer";
3040
+ const z = new un();
3041
+ z.name = "Debug Scene";
3042
+ let xe = new un();
3043
+ z.add(xe);
3044
+ const st = new Yn();
3045
+ st.name = "helpers";
3046
+ 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);
3053
+ ot.name = "interactionHelper";
3054
+ st.add(ot);
3055
+ 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;
3057
+ 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) {
2930
3065
  case "Top":
2931
3066
  case "Bottom":
2932
3067
  case "Left":
2933
3068
  case "Right":
2934
3069
  case "Front":
2935
3070
  case "Back":
2936
- F.enableRotate = !1;
3071
+ B.enableRotate = !1;
2937
3072
  break;
2938
3073
  }
2939
- if (ie.set(u.name, F), u instanceof _t) {
2940
- const U = new zn(u);
2941
- Ee.set(u.name, U), V.add(U);
2942
- }
2943
- }, K = (u) => {
2944
- const p = Ee.get(u.name);
2945
- p !== void 0 && (V.remove(p), p.dispose(), Ee.delete(u.name));
2946
- const b = ie.get(u.name);
2947
- b !== void 0 && (b.dispose(), ie.delete(u.name));
2948
- }, de = () => {
2949
- ie.forEach((u, p) => {
2950
- u.dispose();
2951
- const b = Ee.get(p);
2952
- b !== void 0 && (V.remove(b), b.dispose()), Ee.delete(p), ie.delete(p);
2953
- }), ie.clear(), Ee.clear();
2954
- }, ce = () => {
3074
+ if (ie.set(f.name, B), f instanceof Dt) {
3075
+ const $ = new Kn(f);
3076
+ we.set(f.name, $), z.add($);
3077
+ }
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));
3083
+ }, fe = () => {
3084
+ ie.forEach((f, m) => {
3085
+ f.dispose();
3086
+ const b = we.get(m);
3087
+ b !== void 0 && (z.remove(b), b.dispose()), we.delete(m), ie.delete(m);
3088
+ }), ie.clear(), we.clear();
3089
+ }, le = () => {
2955
3090
  switch (n) {
2956
3091
  case "Single":
2957
- C($, T.current);
3092
+ C(V, T.current);
2958
3093
  break;
2959
3094
  case "Side by Side":
2960
3095
  case "Stacked":
2961
- C($, T.current), C(re, B.current);
3096
+ C(V, T.current), C(re, G.current);
2962
3097
  break;
2963
3098
  case "Quad":
2964
- C($, T.current), C(re, B.current), C(Ae, oe.current), C(Ie, H.current);
3099
+ C(V, T.current), C(re, G.current), C(Ne, se.current), C(Le, H.current);
2965
3100
  break;
2966
3101
  }
2967
3102
  };
2968
- Ne(() => {
2969
- const u = new Vn({
2970
- canvas: x.current,
3103
+ Fe(() => {
3104
+ const f = new Wn({
3105
+ canvas: w.current,
2971
3106
  stencil: !1
2972
3107
  });
2973
- u.autoClear = !1, u.shadowMap.enabled = !0, u.setPixelRatio(devicePixelRatio), u.setClearColor(0), a(u);
2974
- }, []), Ne(() => {
2975
- const u = (S) => {
2976
- hn(xe), V.remove(xe);
2977
- const F = t.scenes.get(S.value.name);
2978
- if (F !== void 0) {
2979
- const U = new F();
2980
- t.onSceneSet !== void 0 && t.onSceneSet(U), xe = U, t.three.scene = xe, V.add(xe), nn = !0;
2981
- }
2982
- }, p = (S) => {
2983
- var N;
2984
- const F = S.value, U = (N = t.three.scene) == null ? void 0 : N.getObjectByProperty("uuid", F.uuid);
2985
- U !== void 0 && ne.set(F.name, U), E(Date.now());
3108
+ f.autoClear = !1, f.shadowMap.enabled = !0, f.setPixelRatio(devicePixelRatio), f.setClearColor(0), r(f);
3109
+ }, []), Fe(() => {
3110
+ const f = (S) => {
3111
+ mn(xe), z.remove(xe);
3112
+ const B = t.scenes.get(S.value.name);
3113
+ if (B !== void 0) {
3114
+ const $ = new B();
3115
+ t.onSceneSet !== void 0 && t.onSceneSet($), xe = $, t.three.scene = xe, z.add(xe), rn = !0;
3116
+ }
3117
+ }, m = (S) => {
3118
+ var F;
3119
+ const B = S.value, $ = (F = t.three.scene) == null ? void 0 : F.getObjectByProperty("uuid", B.uuid);
3120
+ $ !== void 0 && ne.set(B.name, $), E(Date.now());
2986
3121
  }, b = (S) => {
2987
3122
  ne.delete(S.value.name), E(Date.now());
2988
3123
  };
2989
- return z.addEventListener(Y.SET_SCENE, u), z.addEventListener(Y.ADD_CAMERA, p), z.addEventListener(Y.REMOVE_CAMERA, b), () => {
2990
- z.removeEventListener(Y.SET_SCENE, u), z.removeEventListener(Y.ADD_CAMERA, p), z.removeEventListener(Y.REMOVE_CAMERA, b);
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);
2991
3126
  };
2992
- }, []), Ne(() => {
3127
+ }, []), Fe(() => {
2993
3128
  if (e === null)
2994
3129
  return;
2995
- let u = window.innerWidth, p = window.innerHeight, b = Math.floor(u / 2), S = Math.floor(p / 2), F = -1;
2996
- const U = () => {
2997
- u = window.innerWidth - 300, p = window.innerHeight, b = Math.floor(u / 2), S = Math.floor(p / 2), e.setSize(u, p);
2998
- let M = u, k = p;
3130
+ let f = window.innerWidth, m = window.innerHeight, b = Math.floor(f / 2), S = Math.floor(m / 2), B = -1;
3131
+ 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;
2999
3134
  switch (n) {
3000
3135
  case "Side by Side":
3001
- M = b, k = p;
3136
+ M = b, I = m;
3002
3137
  break;
3003
3138
  case "Stacked":
3004
- M = u, k = S;
3139
+ M = f, I = S;
3005
3140
  break;
3006
3141
  case "Quad":
3007
- M = b, k = S;
3142
+ M = b, I = S;
3008
3143
  break;
3009
3144
  }
3010
3145
  ne.forEach((X) => {
3011
- var pe;
3012
- X instanceof sn ? (X.left = M / -2, X.right = M / 2, X.top = k / 2, X.bottom = k / -2, X.updateProjectionMatrix()) : X instanceof _t && (X.aspect = M / k, X.updateProjectionMatrix(), (pe = Ee.get(X.name)) == null || pe.update());
3146
+ 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());
3013
3148
  });
3014
- }, N = () => {
3015
- e.setViewport(0, 0, u, p), e.setScissor(0, 0, u, p), e.render(V, $);
3149
+ }, F = () => {
3150
+ e.setViewport(0, 0, f, m), e.setScissor(0, 0, f, m), e.render(z, V);
3016
3151
  }, D = () => {
3017
3152
  if (n === "Side by Side")
3018
- e.setViewport(0, 0, b, p), e.setScissor(0, 0, b, p), e.render(V, $), e.setViewport(b, 0, b, p), e.setScissor(b, 0, b, p), e.render(V, re);
3153
+ 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);
3019
3154
  else {
3020
- const M = p - S;
3021
- e.setViewport(0, M, u, S), e.setScissor(0, M, u, S), e.render(V, $), e.setViewport(0, 0, u, S), e.setScissor(0, 0, u, S), e.render(V, re);
3155
+ 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);
3022
3157
  }
3023
- }, L = () => {
3024
- let M = 0, k = 0;
3025
- k = p - S, M = 0, e.setViewport(M, k, b, S), e.setScissor(M, k, b, S), e.render(V, $), M = b, e.setViewport(M, k, b, S), e.setScissor(M, k, b, S), e.render(V, re), k = 0, M = 0, e.setViewport(M, k, b, S), e.setScissor(M, k, b, S), e.render(V, Ae), M = b, e.setViewport(M, k, b, S), e.setScissor(M, k, b, S), e.render(V, Ie);
3026
- }, Q = () => {
3158
+ }, U = () => {
3159
+ let M = 0, I = 0;
3160
+ I = m - S, M = 0, e.setViewport(M, I, b, S), e.setScissor(M, I, b, S), e.render(z, V), M = b, e.setViewport(M, I, b, S), e.setScissor(M, I, b, S), e.render(z, re), I = 0, M = 0, e.setViewport(M, I, b, S), e.setScissor(M, I, b, S), e.render(z, Ne), M = b, e.setViewport(M, I, b, S), e.setScissor(M, I, b, S), e.render(z, Le);
3161
+ }, J = () => {
3027
3162
  switch (ie.forEach((M) => {
3028
3163
  M.update();
3029
- }), t.onSceneUpdate !== void 0 && nn && t.onSceneUpdate(xe), e.clear(), n) {
3164
+ }), t.onSceneUpdate !== void 0 && rn && t.onSceneUpdate(xe), e.clear(), n) {
3030
3165
  case "Single":
3031
- N();
3166
+ F();
3032
3167
  break;
3033
3168
  case "Side by Side":
3034
3169
  case "Stacked":
3035
3170
  D();
3036
3171
  break;
3037
3172
  case "Quad":
3038
- L();
3173
+ U();
3039
3174
  break;
3040
3175
  }
3041
- F = requestAnimationFrame(Q);
3176
+ B = requestAnimationFrame(J);
3042
3177
  };
3043
- return ce(), window.addEventListener("resize", U), U(), Q(), () => {
3044
- window.removeEventListener("resize", U), cancelAnimationFrame(F), F = -1;
3178
+ return le(), window.addEventListener("resize", $), $(), J(), () => {
3179
+ window.removeEventListener("resize", $), cancelAnimationFrame(B), B = -1;
3045
3180
  };
3046
- }, [n, e]), Ne(() => {
3181
+ }, [n, e]), Fe(() => {
3047
3182
  if (e !== null) {
3048
- const u = new Gn(), p = new ue(), b = (N, D, L, Q) => {
3183
+ const f = new Hn(), m = new de(), b = (F, D, U, J) => {
3049
3184
  switch (n) {
3050
3185
  case "Quad":
3051
- N < L ? D < Q ? u.setFromCamera(p, $) : u.setFromCamera(p, Ae) : D < Q ? u.setFromCamera(p, re) : u.setFromCamera(p, Ie);
3186
+ F < U ? D < J ? f.setFromCamera(m, V) : f.setFromCamera(m, Ne) : D < J ? f.setFromCamera(m, re) : f.setFromCamera(m, Le);
3052
3187
  break;
3053
3188
  case "Side by Side":
3054
- N < L ? u.setFromCamera(p, $) : u.setFromCamera(p, re);
3189
+ F < U ? f.setFromCamera(m, V) : f.setFromCamera(m, re);
3055
3190
  break;
3056
3191
  case "Single":
3057
- u.setFromCamera(p, $);
3192
+ f.setFromCamera(m, V);
3058
3193
  break;
3059
3194
  case "Stacked":
3060
- D < Q ? u.setFromCamera(p, $) : u.setFromCamera(p, re);
3195
+ D < J ? f.setFromCamera(m, V) : f.setFromCamera(m, re);
3061
3196
  break;
3062
3197
  }
3063
- }, S = (N) => {
3064
- if (!bt)
3198
+ }, S = (F) => {
3199
+ if (!wt)
3065
3200
  return;
3066
- const D = new ue();
3201
+ const D = new de();
3067
3202
  e.getSize(D);
3068
- const L = Math.min(N.clientX, D.x), Q = Math.min(N.clientY, D.y);
3069
- p.x = We(L, 0, D.x, -1, 1), p.y = We(Q, 0, D.y, 1, -1);
3070
- const M = D.x / 2, k = D.y / 2, X = () => {
3071
- L < M ? p.x = We(L, 0, M, -1, 1) : p.x = We(L, M, D.x, -1, 1);
3072
- }, pe = () => {
3073
- Q < k ? p.y = We(Q, 0, k, 1, -1) : p.y = We(Q, k, D.y, 1, -1);
3203
+ const U = Math.min(F.clientX, D.x), J = Math.min(F.clientY, D.y);
3204
+ m.x = Ke(U, 0, D.x, -1, 1), m.y = Ke(J, 0, D.y, 1, -1);
3205
+ const M = D.x / 2, I = D.y / 2, X = () => {
3206
+ U < M ? m.x = Ke(U, 0, M, -1, 1) : m.x = Ke(U, M, D.x, -1, 1);
3207
+ }, me = () => {
3208
+ J < I ? m.y = Ke(J, 0, I, 1, -1) : m.y = Ke(J, I, D.y, 1, -1);
3074
3209
  };
3075
3210
  switch (n) {
3076
3211
  case "Quad":
3077
- X(), pe();
3212
+ X(), me();
3078
3213
  break;
3079
3214
  case "Side by Side":
3080
3215
  X();
3081
3216
  break;
3082
3217
  case "Stacked":
3083
- pe(), pe();
3218
+ me(), me();
3084
3219
  break;
3085
3220
  }
3086
- b(L, Q, M, k);
3087
- const Te = u.intersectObjects(xe.children);
3088
- Te.length > 0 && it.position.copy(Te[0].point);
3089
- }, F = (N) => {
3090
- if (!bt)
3221
+ b(U, J, M, I);
3222
+ const Re = f.intersectObjects(xe.children);
3223
+ Re.length > 0 && ot.position.copy(Re[0].point);
3224
+ }, B = (F) => {
3225
+ if (!wt)
3091
3226
  return;
3092
- const D = new ue();
3093
- if (e.getSize(D), N.clientX >= D.x)
3227
+ const D = new de();
3228
+ if (e.getSize(D), F.clientX >= D.x)
3094
3229
  return;
3095
- S(N);
3096
- const L = u.intersectObjects(xe.children);
3097
- L.length > 0 && t.three.getObject(L[0].object.uuid);
3098
- }, U = R.current;
3099
- return U.addEventListener("mousemove", S, !1), U.addEventListener("click", F, !1), () => {
3100
- U.removeEventListener("mousemove", S), U.removeEventListener("click", F);
3230
+ S(F);
3231
+ const U = f.intersectObjects(xe.children);
3232
+ U.length > 0 && t.three.getObject(U[0].object.uuid);
3233
+ }, $ = R.current;
3234
+ return $.addEventListener("mousemove", S, !1), $.addEventListener("click", B, !1), () => {
3235
+ $.removeEventListener("mousemove", S), $.removeEventListener("click", B);
3101
3236
  };
3102
3237
  }
3103
3238
  }, [n, e]);
3104
3239
  const ee = [];
3105
- return ne.forEach((u, p) => {
3106
- ee.push(p);
3240
+ return ne.forEach((f, m) => {
3241
+ ee.push(m);
3107
3242
  }), /* @__PURE__ */ c.jsxs("div", { className: "multiview", children: [
3108
- /* @__PURE__ */ c.jsx("canvas", { ref: x }),
3243
+ /* @__PURE__ */ c.jsx("canvas", { ref: w }),
3109
3244
  /* @__PURE__ */ c.jsxs("div", { className: `cameras ${n === "Single" || n === "Stacked" ? "single" : ""}`, ref: R, children: [
3110
- n === "Single" && /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsx(ke, { camera: $, options: ee, ref: T, onSelect: (u) => {
3245
+ n === "Single" && /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (f) => {
3111
3246
  var b;
3112
- (b = ie.get($.name)) == null || b.dispose();
3113
- const p = ne.get(u);
3114
- p !== void 0 && (K($), $ = p, C(p, T.current));
3247
+ (b = ie.get(V.name)) == null || b.dispose();
3248
+ const m = ne.get(f);
3249
+ m !== void 0 && (K(V), V = m, C(m, T.current));
3115
3250
  } }) }),
3116
3251
  (n === "Side by Side" || n === "Stacked") && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3117
- /* @__PURE__ */ c.jsx(ke, { camera: $, options: ee, ref: T, onSelect: (u) => {
3252
+ /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (f) => {
3118
3253
  var b;
3119
- (b = ie.get($.name)) == null || b.dispose();
3120
- const p = ne.get(u);
3121
- p !== void 0 && (K($), $ = p, C(p, T.current));
3254
+ (b = ie.get(V.name)) == null || b.dispose();
3255
+ const m = ne.get(f);
3256
+ m !== void 0 && (K(V), V = m, C(m, T.current));
3122
3257
  } }),
3123
- /* @__PURE__ */ c.jsx(ke, { camera: re, options: ee, ref: B, onSelect: (u) => {
3258
+ /* @__PURE__ */ c.jsx(Ie, { camera: re, options: ee, ref: G, onSelect: (f) => {
3124
3259
  var b;
3125
3260
  (b = ie.get(re.name)) == null || b.dispose();
3126
- const p = ne.get(u);
3127
- p !== void 0 && (K(re), re = p, C(p, B.current));
3261
+ const m = ne.get(f);
3262
+ m !== void 0 && (K(re), re = m, C(m, G.current));
3128
3263
  } })
3129
3264
  ] }),
3130
3265
  n === "Quad" && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3131
- /* @__PURE__ */ c.jsx(ke, { camera: $, options: ee, ref: T, onSelect: (u) => {
3266
+ /* @__PURE__ */ c.jsx(Ie, { camera: V, options: ee, ref: T, onSelect: (f) => {
3132
3267
  var b;
3133
- (b = ie.get($.name)) == null || b.dispose();
3134
- const p = ne.get(u);
3135
- p !== void 0 && (K($), $ = p, C(p, T.current));
3268
+ (b = ie.get(V.name)) == null || b.dispose();
3269
+ const m = ne.get(f);
3270
+ m !== void 0 && (K(V), V = m, C(m, T.current));
3136
3271
  } }),
3137
- /* @__PURE__ */ c.jsx(ke, { camera: re, options: ee, ref: B, onSelect: (u) => {
3272
+ /* @__PURE__ */ c.jsx(Ie, { camera: re, options: ee, ref: G, onSelect: (f) => {
3138
3273
  var b;
3139
3274
  (b = ie.get(re.name)) == null || b.dispose();
3140
- const p = ne.get(u);
3141
- p !== void 0 && (K(re), re = p, C(p, B.current));
3275
+ const m = ne.get(f);
3276
+ m !== void 0 && (K(re), re = m, C(m, G.current));
3142
3277
  } }),
3143
- /* @__PURE__ */ c.jsx(ke, { camera: Ae, options: ee, ref: oe, onSelect: (u) => {
3278
+ /* @__PURE__ */ c.jsx(Ie, { camera: Ne, options: ee, ref: se, onSelect: (f) => {
3144
3279
  var b;
3145
- (b = ie.get(Ae.name)) == null || b.dispose();
3146
- const p = ne.get(u);
3147
- p !== void 0 && (K(Ae), Ae = p, C(p, oe.current));
3280
+ (b = ie.get(Ne.name)) == null || b.dispose();
3281
+ const m = ne.get(f);
3282
+ m !== void 0 && (K(Ne), Ne = m, C(m, se.current));
3148
3283
  } }),
3149
- /* @__PURE__ */ c.jsx(ke, { camera: Ie, options: ee, ref: H, onSelect: (u) => {
3284
+ /* @__PURE__ */ c.jsx(Ie, { camera: Le, options: ee, ref: H, onSelect: (f) => {
3150
3285
  var b;
3151
- (b = ie.get(Ie.name)) == null || b.dispose();
3152
- const p = ne.get(u);
3153
- p !== void 0 && (K(Ie), Ie = p, C(p, H.current));
3286
+ (b = ie.get(Le.name)) == null || b.dispose();
3287
+ const m = ne.get(f);
3288
+ m !== void 0 && (K(Le), Le = m, C(m, H.current));
3154
3289
  } })
3155
3290
  ] })
3156
3291
  ] }),
3157
3292
  /* @__PURE__ */ c.jsxs("div", { className: "settings", children: [
3158
3293
  /* @__PURE__ */ c.jsx(
3159
- yt,
3294
+ xt,
3160
3295
  {
3161
- index: en.indexOf(n),
3162
- options: en,
3163
- onSelect: (u) => {
3164
- u !== n && (de(), i(u));
3296
+ index: nn.indexOf(n),
3297
+ options: nn,
3298
+ onSelect: (f) => {
3299
+ f !== n && (fe(), a(f));
3165
3300
  },
3166
3301
  open: s,
3167
- onToggle: (u) => {
3168
- h(u), l && d(!1), m && v(!1);
3302
+ onToggle: (f) => {
3303
+ u(f), l && d(!1), p && v(!1);
3169
3304
  }
3170
3305
  }
3171
3306
  ),
3172
3307
  /* @__PURE__ */ c.jsx(
3173
- yt,
3308
+ xt,
3174
3309
  {
3175
- index: tn.indexOf(vt),
3176
- options: tn,
3177
- onSelect: (u) => {
3178
- if (u !== vt)
3179
- switch (vt = u, vt) {
3310
+ index: an.indexOf(Et),
3311
+ options: an,
3312
+ onSelect: (f) => {
3313
+ if (f !== Et)
3314
+ switch (Et = f, Et) {
3180
3315
  case "Depth":
3181
- V.overrideMaterial = Ni;
3316
+ z.overrideMaterial = Ha;
3182
3317
  break;
3183
3318
  case "Normals":
3184
- V.overrideMaterial = Li;
3319
+ z.overrideMaterial = Ka;
3185
3320
  break;
3186
3321
  default:
3187
3322
  case "Renderer":
3188
- V.overrideMaterial = null;
3323
+ z.overrideMaterial = null;
3189
3324
  break;
3190
3325
  case "Wireframe":
3191
- V.overrideMaterial = Ui;
3326
+ z.overrideMaterial = qa;
3192
3327
  break;
3193
3328
  case "UVs":
3194
- V.overrideMaterial = Fi;
3329
+ z.overrideMaterial = Xa;
3195
3330
  break;
3196
3331
  }
3197
3332
  },
3198
3333
  open: l,
3199
- onToggle: (u) => {
3200
- s && h(!1), d(u), m && v(!1);
3334
+ onToggle: (f) => {
3335
+ s && u(!1), d(f), p && v(!1);
3201
3336
  }
3202
3337
  }
3203
3338
  ),
3204
3339
  /* @__PURE__ */ c.jsx(
3205
- yt,
3340
+ xt,
3206
3341
  {
3207
3342
  index: 0,
3208
3343
  options: [
3209
3344
  "Orbit Mode",
3210
3345
  "Selection Mode"
3211
3346
  ],
3212
- onSelect: (u) => {
3213
- bt = u === "Selection Mode", it.visible = bt;
3347
+ onSelect: (f) => {
3348
+ wt = f === "Selection Mode", ot.visible = wt;
3214
3349
  },
3215
- open: m,
3216
- onToggle: (u) => {
3217
- s && h(!1), l && d(!1), v(u);
3350
+ open: p,
3351
+ onToggle: (f) => {
3352
+ s && u(!1), l && d(!1), v(f);
3218
3353
  }
3219
3354
  }
3220
3355
  )
3221
3356
  ] })
3222
3357
  ] });
3223
3358
  }
3224
- function or(t) {
3359
+ function mi(t) {
3225
3360
  return /* @__PURE__ */ c.jsxs("div", { className: "editor", ref: t.ref, style: t.style, children: [
3226
3361
  /* @__PURE__ */ c.jsx("header", { children: t.header }),
3227
3362
  t.children,
@@ -3229,40 +3364,40 @@ function or(t) {
3229
3364
  ] });
3230
3365
  }
3231
3366
  export {
3232
- Nt as Accordion,
3233
- qi as Application,
3234
- Et as BaseRemote,
3235
- vn as ChildObject,
3236
- yi as ContainerObject,
3237
- li as Draggable,
3238
- ci as DraggableItem,
3239
- ui as Dropdown,
3240
- di as DropdownItem,
3241
- or as Editor,
3242
- mi as InfiniteGridHelper,
3243
- ki as Inspector,
3244
- ar as MultiView,
3245
- gn as NavButton,
3246
- Qi as RemoteComponents,
3247
- nr as RemoteController,
3248
- Ji as RemoteTheatre,
3249
- er as RemoteThree,
3250
- tr as RemoteTweakpane,
3251
- rr as SceneInspector,
3252
- ir as SidePanel,
3253
- Y as ToolEvents,
3254
- bi as UVMaterial,
3255
- Ki as clamp,
3256
- Qn as colorToHex,
3257
- z as debugDispatcher,
3258
- hn as dispose,
3259
- ei as disposeMaterial,
3260
- Zi as disposeTexture,
3261
- Xi as distance,
3262
- fn as hierarchyUUID,
3263
- qn as isColor,
3264
- Zn as randomID,
3265
- Jn as resetThreeObjects,
3266
- Mt as round,
3267
- Dt as totalThreeObjects
3367
+ Ut as Accordion,
3368
+ ci as Application,
3369
+ 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,
3376
+ mi as Editor,
3377
+ Ta as InfiniteGridHelper,
3378
+ za as Inspector,
3379
+ pi as MultiView,
3380
+ yn as NavButton,
3381
+ li as RemoteComponents,
3382
+ di as RemoteController,
3383
+ vn as RemoteTheatre,
3384
+ ui as RemoteThree,
3385
+ ha as RemoteTweakpane,
3386
+ hi as SceneInspector,
3387
+ fi as SidePanel,
3388
+ j as ToolEvents,
3389
+ Pa as UVMaterial,
3390
+ ri as clamp,
3391
+ na as colorToHex,
3392
+ _ 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,
3401
+ _t as round,
3402
+ It as totalThreeObjects
3268
3403
  };