next-flow-interface 0.23.5 → 0.23.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
- import { BaseTexture as Zt, Material as pt, AbstractMesh as vt, Quaternion as M, Vector3 as tr } from "@babylonjs/core";
2
- import { fileTypeFromBlob as rr, fileTypeFromStream as Y, fileTypeFromBuffer as nr } from "file-type";
3
- class er extends Error {
1
+ import { BaseTexture as vt, Material as tr, AbstractMesh as rr, Quaternion as M, Vector3 as nr } from "@babylonjs/core";
2
+ import { fileTypeFromBlob as er, fileTypeFromStream as Y, fileTypeFromBuffer as or } from "file-type";
3
+ class ur extends Error {
4
4
  constructor(n) {
5
5
  super(n), this.name = "NotFoundError";
6
6
  }
7
7
  }
8
- class ge extends er {
8
+ class He extends ur {
9
9
  constructor(n) {
10
10
  super(n), this.name = "DomNotFoundError";
11
11
  }
12
12
  }
13
- class Be extends Error {
13
+ class Ve extends Error {
14
14
  constructor(n) {
15
15
  super(`${n} is a static class and cannot be instantiated.`), this.name = "StaticClassInstantiationError";
16
16
  }
17
17
  }
18
- var or = /* @__PURE__ */ ((t) => (t[t.TOP = 0] = "TOP", t[t.RIGHT = 1] = "RIGHT", t[t.BOTTOM = 2] = "BOTTOM", t[t.LEFT = 3] = "LEFT", t[t.TOP_LEFT = 4] = "TOP_LEFT", t[t.BOTTOM_LEFT = 5] = "BOTTOM_LEFT", t[t.TOP_RIGHT = 6] = "TOP_RIGHT", t[t.BOTTOM_RIGHT = 7] = "BOTTOM_RIGHT", t[t.UNKNOWN = 8] = "UNKNOWN", t))(or || {}), ur = /* @__PURE__ */ ((t) => (t.BUTTON = "BUTTON", t.SWITCH = "SWITCH", t.DRAWER = "DRAWER", t.DIALOG = "DIALOG", t.CONTENT = "CONTENT", t.WINDOW = "WINDOW", t.SERVICE = "SERVICE", t))(ur || {}), j = /* @__PURE__ */ ((t) => (t.Default = "Default", t))(j || {});
19
- class be {
18
+ var sr = /* @__PURE__ */ ((t) => (t[t.TOP = 0] = "TOP", t[t.RIGHT = 1] = "RIGHT", t[t.BOTTOM = 2] = "BOTTOM", t[t.LEFT = 3] = "LEFT", t[t.TOP_LEFT = 4] = "TOP_LEFT", t[t.BOTTOM_LEFT = 5] = "BOTTOM_LEFT", t[t.TOP_RIGHT = 6] = "TOP_RIGHT", t[t.BOTTOM_RIGHT = 7] = "BOTTOM_RIGHT", t[t.UNKNOWN = 8] = "UNKNOWN", t))(sr || {}), ir = /* @__PURE__ */ ((t) => (t.BUTTON = "BUTTON", t.SWITCH = "SWITCH", t.DRAWER = "DRAWER", t.DIALOG = "DIALOG", t.CONTENT = "CONTENT", t.WINDOW = "WINDOW", t.SERVICE = "SERVICE", t))(ir || {}), j = /* @__PURE__ */ ((t) => (t.Default = "Default", t))(j || {});
19
+ class _e {
20
20
  constructor(n, r = null, e = "", o = j.Default, s = 0, i = 0) {
21
21
  this.nid = n, this.node = r, this.text = e, this.theme = o, this.x = s, this.y = i;
22
22
  }
@@ -31,10 +31,10 @@ class be {
31
31
  lastClickTime = 0;
32
32
  lastSp = null;
33
33
  }
34
- var sr = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(sr || {}), ir = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(ir || {}), cr = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(cr || {}), fr = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(fr || {});
34
+ var cr = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(cr || {}), fr = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(fr || {}), ar = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(ar || {}), Er = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(Er || {});
35
35
  class K {
36
- constructor(n, r, e = [], o = !1, s = 0, i = 0, a = !1, l, E = null, A = /* @__PURE__ */ new Date()) {
37
- this.options = n, this.id = r, this.lines = e, this.showIcon = o, this.x = s, this.y = i, this.closeOnOutsideClick = a, this.theme = l, this.controller = E, this.createTime = A;
36
+ constructor(n, r, e = [], o = !1, s = 0, i = 0, a = !1, l, E = null, h = /* @__PURE__ */ new Date()) {
37
+ this.options = n, this.id = r, this.lines = e, this.showIcon = o, this.x = s, this.y = i, this.closeOnOutsideClick = a, this.theme = l, this.controller = E, this.createTime = h;
38
38
  }
39
39
  static fromOptions(n, r, e) {
40
40
  let { showIcon: o } = r;
@@ -54,12 +54,12 @@ class K {
54
54
  }
55
55
  var V = /* @__PURE__ */ ((t) => (t.BUTTON = "BUTTON", t.DIVIDER = "DIVIDER", t.CHECKBOX = "CHECKBOX", t.SUB = "SUB", t.VIEW = "VIEW", t))(V || {});
56
56
  class $ {
57
- constructor(n, r, e = V.BUTTON, o = "", s = "", i = void 0, a = void 0, l = "", E = !1, A = "", N = () => {
58
- }, T = () => {
57
+ constructor(n, r, e = V.BUTTON, o = "", s = "", i = void 0, a = void 0, l = "", E = !1, h = "", T = () => {
59
58
  }, L = () => {
60
- }, B = e === V.BUTTON, b = !1, w = () => {
61
- }, P = void 0, G = /* @__PURE__ */ new Date()) {
62
- this.options = n, this.id = r, this.type = e, this.text = o, this.tip = s, this.icon = i, this.view = a, this.color = l, this.disabled = E, this.shortcut = A, this.onClick = N, this.onMouseOver = T, this.onMouseOut = L, this.closeAllOnClick = B, this.checkboxDefaultValue = b, this.onCheckboxChange = w, this.sub = P, this.createTime = G;
59
+ }, S = () => {
60
+ }, B = e === V.BUTTON, b = !1, U = () => {
61
+ }, m = void 0, G = /* @__PURE__ */ new Date()) {
62
+ this.options = n, this.id = r, this.type = e, this.text = o, this.tip = s, this.icon = i, this.view = a, this.color = l, this.disabled = E, this.shortcut = h, this.onClick = T, this.onMouseOver = L, this.onMouseOut = S, this.closeAllOnClick = B, this.checkboxDefaultValue = b, this.onCheckboxChange = U, this.sub = m, this.createTime = G;
63
63
  }
64
64
  static fromOptions(n, r) {
65
65
  return new $(
@@ -83,21 +83,21 @@ class $ {
83
83
  );
84
84
  }
85
85
  }
86
- var J = /* @__PURE__ */ ((t) => (t.GREEN = "GREEN", t.PURPLE = "PURPLE", t.BLUE = "BLUE", t.PINK = "PINK", t))(J || {}), ar = /* @__PURE__ */ ((t) => (t.LEFT = "LEFT", t.CENTER = "CENTER", t.RIGHT = "RIGHT", t))(ar || {});
86
+ var J = /* @__PURE__ */ ((t) => (t.GREEN = "GREEN", t.PURPLE = "PURPLE", t.BLUE = "BLUE", t.PINK = "PINK", t))(J || {}), lr = /* @__PURE__ */ ((t) => (t.LEFT = "LEFT", t.CENTER = "CENTER", t.RIGHT = "RIGHT", t))(lr || {});
87
87
  class Q {
88
- constructor(n, r, e = "", o = void 0, s = "", i = "LEFT", a = void 0, l = void 0, E = void 0, A = J.BLUE, N = !1, T = "", L = {}, B = "", b = "", w = !1, P = "", G = "", mt = w, xt = !1, gt = () => {
89
- }, Bt = () => !0, bt = !0, Gt = () => {
90
- }, Ht = () => {
91
- }, Vt = () => {
88
+ constructor(n, r, e = "", o = void 0, s = "", i = "LEFT", a = void 0, l = void 0, E = void 0, h = J.BLUE, T = !1, L = "", S = {}, B = "", b = "", U = !1, m = "", G = "", xt = U, Bt = !1, bt = () => {
89
+ }, Gt = () => !0, Ht = !0, Vt = () => {
92
90
  }, _t = () => {
93
91
  }, Mt = () => {
94
92
  }, Ft = () => {
95
93
  }, Wt = () => {
96
94
  }, yt = () => {
97
- }, kt = () => () => {
98
- }, zt = !0, Xt = !0, Yt = !1, jt = !0, Kt = !1, $t = P, Jt = /* @__PURE__ */ new Date(), Qt = () => {
99
- }, qt = /* @__PURE__ */ new Map()) {
100
- this.options = n, this.id = r, this.title = e, this.titleIcon = o, this.content = s, this.contentAlign = i, this.contentView = a, this.icon = l, this.view = E, this.theme = A, this.leftMode = N, this.className = T, this.style = L, this.confirmText = B, this.cancelText = b, this.enableInput = w, this.defaultValue = P, this.inputPlaceholder = G, this.autoFocus = mt, this.allowEmpty = xt, this.onChange = gt, this.onCheck = Bt, this.enableCloseButton = bt, this.onConfirm = Gt, this.onCancel = Ht, this.onClose = Vt, this.onConfirmButtonClick = _t, this.onCancelButtonClick = Mt, this.onOutsideClick = Ft, this.onCloseButtonClick = Wt, this.onRender = yt, this.onEffect = kt, this.closeOnConfirm = zt, this.closeOnCancel = Xt, this.closeOnOutsideClick = Yt, this.closeOnCloseButtonClick = jt, this.alignButton = Kt, this.inputValue = $t, this.createTime = Jt, this.focusInput = Qt, this.elements = qt;
95
+ }, kt = () => {
96
+ }, zt = () => {
97
+ }, Xt = () => () => {
98
+ }, Yt = !0, jt = !0, Kt = !1, $t = !0, Jt = !1, Qt = m, qt = /* @__PURE__ */ new Date(), Zt = () => {
99
+ }, pt = /* @__PURE__ */ new Map()) {
100
+ this.options = n, this.id = r, this.title = e, this.titleIcon = o, this.content = s, this.contentAlign = i, this.contentView = a, this.icon = l, this.view = E, this.theme = h, this.leftMode = T, this.className = L, this.style = S, this.confirmText = B, this.cancelText = b, this.enableInput = U, this.defaultValue = m, this.inputPlaceholder = G, this.autoFocus = xt, this.allowEmpty = Bt, this.onChange = bt, this.onCheck = Gt, this.enableCloseButton = Ht, this.onConfirm = Vt, this.onCancel = _t, this.onClose = Mt, this.onConfirmButtonClick = Ft, this.onCancelButtonClick = Wt, this.onOutsideClick = yt, this.onCloseButtonClick = kt, this.onRender = zt, this.onEffect = Xt, this.closeOnConfirm = Yt, this.closeOnCancel = jt, this.closeOnOutsideClick = Kt, this.closeOnCloseButtonClick = $t, this.alignButton = Jt, this.inputValue = Qt, this.createTime = qt, this.focusInput = Zt, this.elements = pt;
101
101
  }
102
102
  static fromOptions(n, r) {
103
103
  return new Q(
@@ -143,45 +143,45 @@ class Q {
143
143
  setHide = () => {
144
144
  };
145
145
  }
146
- var Er = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(Er || {}), lr = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(lr || {});
147
- const f = "*/*", u = "unknown/unknown", h = "babylonjs/scene", F = "babylonjs/mesh", q = "babylonjs/light", Z = "babylonjs/camera", O = "babylonjs/texture", C = "babylonjs/material", m = "babylonjs/uv", p = "babylonjs/animation", v = "model/gltf-binary", tt = "model/gltf+json", W = "model/stl", rt = "model/obj", nt = "audio/mpeg", et = "audio/wav", Ar = "audio/aac", hr = "audio/ogg", Or = "audio/flac", Dr = "audio/opus", ot = "image/jpeg", ut = "image/png", Rr = "image/gif", Nr = "image/bmp", Tr = "image/webp", Lr = "image/svg+xml", Ir = "image/tiff", Sr = "image/x-icon", Cr = "image/heif", dr = "image/avif", st = "video/mp4", Ur = "video/webm", wr = "video/x-msvideo", Pr = "video/mpeg", mr = "video/quicktime", xr = "video/x-ms-wmv", gr = "video/x-flv", Br = "video/ogg", br = "video/3gpp", Gr = "video/x-matroska", it = "application/json", ct = "nextflow/sync", ft = "text/plain", Hr = "text/markdown", D = [ot, ut], d = [h, v, tt, W, rt], R = [st], y = [h, F, q, Z, O, C, m, p], x = [nt, et], U = [ft], g = [it], Vr = [ct], at = [
148
- ...D,
149
- ...d,
146
+ var hr = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(hr || {}), Ar = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(Ar || {});
147
+ const f = "*/*", u = "unknown/unknown", O = "babylonjs/scene", F = "babylonjs/mesh", q = "babylonjs/light", Z = "babylonjs/camera", D = "babylonjs/texture", C = "babylonjs/material", w = "babylonjs/uv", p = "babylonjs/animation", v = "model/gltf-binary", tt = "model/gltf+json", W = "model/stl", rt = "model/obj", nt = "audio/mpeg", et = "audio/wav", Or = "audio/aac", Dr = "audio/ogg", Rr = "audio/flac", Nr = "audio/opus", ot = "image/jpeg", ut = "image/png", Tr = "image/gif", Lr = "image/bmp", Sr = "image/webp", Ir = "image/svg+xml", Cr = "image/tiff", dr = "image/x-icon", Pr = "image/heif", Ur = "image/avif", st = "video/mp4", mr = "video/webm", wr = "video/x-msvideo", gr = "video/mpeg", xr = "video/quicktime", Br = "video/x-ms-wmv", br = "video/x-flv", Gr = "video/ogg", Hr = "video/3gpp", Vr = "video/x-matroska", it = "application/json", ct = "nextflow/sync", ft = "text/plain", _r = "text/markdown", R = [ot, ut], d = [O, v, tt, W, rt], N = [st], y = [O, F, q, Z, D, C, w, p], g = [nt, et], P = [ft], x = [it], Mr = [ct], at = [
150
148
  ...R,
149
+ ...d,
150
+ ...N,
151
151
  ...y,
152
- ...x,
153
- ...U,
154
- ...g
152
+ ...g,
153
+ ...P,
154
+ ...x
155
155
  ], Et = [
156
- ...D,
157
- ...d,
158
156
  ...R,
159
- ...x,
160
- ...U,
161
- ...g
162
- ], lt = [
163
- ...D,
164
157
  ...d,
158
+ ...N,
159
+ ...g,
160
+ ...P,
161
+ ...x
162
+ ], lt = [
165
163
  ...R,
166
- ...U
167
- ], At = [...D, ...R, O], ht = [O, C, m];
164
+ ...d,
165
+ ...N,
166
+ ...P
167
+ ], ht = [...R, ...N, D], At = [D, C, w];
168
168
  async function Ot(t) {
169
169
  if (t && t instanceof Blob) {
170
170
  if (t instanceof File && t.name.endsWith(".babylon"))
171
- return h;
172
- const n = await rr(t);
171
+ return O;
172
+ const n = await er(t);
173
173
  return !n && t instanceof File && t.name.endsWith(".stl") ? W : n?.mime ?? u;
174
174
  }
175
175
  return u;
176
176
  }
177
177
  async function k(t) {
178
- return t ? t.endsWith(".babylon") ? h : (await import("mime")).default.getType(t) ?? u : u;
178
+ return t ? t.endsWith(".babylon") ? O : (await import("mime")).default.getType(t) ?? u : u;
179
179
  }
180
180
  async function Dt(t) {
181
181
  if (!t)
182
182
  return u;
183
183
  if (t.endsWith(".babylon"))
184
- return h;
184
+ return O;
185
185
  try {
186
186
  const n = await fetch(t);
187
187
  if (!n.body)
@@ -197,12 +197,12 @@ async function Dt(t) {
197
197
  return u;
198
198
  }
199
199
  async function Rt(t) {
200
- return t ? (await nr(t))?.mime ?? u : u;
200
+ return t ? (await or(t))?.mime ?? u : u;
201
201
  }
202
202
  async function Nt(t) {
203
203
  return (await Y(t))?.mime ?? u;
204
204
  }
205
- async function _r(t) {
205
+ async function Fr(t) {
206
206
  if (t) {
207
207
  if (typeof ReadableStream < "u" && t instanceof ReadableStream)
208
208
  return Nt(t);
@@ -212,66 +212,66 @@ async function _r(t) {
212
212
  return t.startsWith("http://") || t.startsWith("https://") ? Dt(t) : k(t);
213
213
  if (t instanceof ArrayBuffer || t instanceof Uint8Array)
214
214
  return Rt(t);
215
- if (t instanceof Zt)
216
- return O;
217
- if (t instanceof pt)
218
- return C;
219
215
  if (t instanceof vt)
216
+ return D;
217
+ if (t instanceof tr)
218
+ return C;
219
+ if (t instanceof rr)
220
220
  return F;
221
221
  } else return u;
222
222
  return u;
223
223
  }
224
- async function Mr(t = u) {
225
- return t === h ? "babylon" : Tt(t) || Lt(t) ? t : t === f || t === u ? "" : (await import("mime")).default.getExtension(t) ?? "";
226
- }
227
- function Fr(t = u) {
228
- return t == f ? !0 : t == u ? !1 : at.includes(t);
229
- }
230
- function Wr(t = u) {
231
- return t == f ? !0 : t == u ? !1 : Et.includes(t);
224
+ async function Wr(t = u) {
225
+ return t === O ? "babylon" : Tt(t) || Lt(t) ? t : t === f || t === u ? "" : (await import("mime")).default.getExtension(t) ?? "";
232
226
  }
233
227
  function yr(t = u) {
234
- return t == f ? !0 : t == u ? !1 : D.includes(t);
228
+ return t == f ? !0 : t == u ? !1 : at.includes(t);
235
229
  }
236
230
  function kr(t = u) {
237
- return t == f ? !0 : t == u ? !1 : d.includes(t);
231
+ return t == f ? !0 : t == u ? !1 : Et.includes(t);
238
232
  }
239
233
  function zr(t = u) {
240
234
  return t == f ? !0 : t == u ? !1 : R.includes(t);
241
235
  }
242
236
  function Xr(t = u) {
243
- return t == f ? !0 : t == u ? !1 : U.includes(t);
237
+ return t == f ? !0 : t == u ? !1 : d.includes(t);
244
238
  }
245
239
  function Yr(t = u) {
246
- return t == f ? !0 : t == u ? !1 : g.includes(t);
247
- }
248
- function Tt(t = u) {
249
- return t == f ? !0 : t == u ? !1 : y.includes(t);
240
+ return t == f ? !0 : t == u ? !1 : N.includes(t);
250
241
  }
251
242
  function jr(t = u) {
252
- return t == f ? !0 : t == u ? !1 : x.includes(t);
243
+ return t == f ? !0 : t == u ? !1 : P.includes(t);
253
244
  }
254
245
  function Kr(t = u) {
255
- return t == f ? !0 : t == u ? !1 : lt.includes(t);
246
+ return t == f ? !0 : t == u ? !1 : x.includes(t);
247
+ }
248
+ function Tt(t = u) {
249
+ return t == f ? !0 : t == u ? !1 : y.includes(t);
256
250
  }
257
251
  function $r(t = u) {
258
- return t == f ? !0 : t == u ? !1 : At.includes(t);
252
+ return t == f ? !0 : t == u ? !1 : g.includes(t);
259
253
  }
260
254
  function Jr(t = u) {
261
- return t == f ? !0 : t == u ? !1 : t == O;
255
+ return t == f ? !0 : t == u ? !1 : lt.includes(t);
262
256
  }
263
257
  function Qr(t = u) {
264
- return t == f ? !0 : t == u ? !1 : t == C;
258
+ return t == f ? !0 : t == u ? !1 : ht.includes(t);
265
259
  }
266
260
  function qr(t = u) {
267
- return t == f ? !0 : t == u ? !1 : t == m;
261
+ return t == f ? !0 : t == u ? !1 : t == D;
262
+ }
263
+ function Zr(t = u) {
264
+ return t == f ? !0 : t == u ? !1 : t == C;
265
+ }
266
+ function pr(t = u) {
267
+ return t == f ? !0 : t == u ? !1 : t == w;
268
268
  }
269
269
  function Lt(t = u) {
270
- return t == f ? !0 : t == u ? !1 : ht.includes(t);
270
+ return t == f ? !0 : t == u ? !1 : At.includes(t);
271
271
  }
272
- const Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, AAC: Ar, ANIMATION: p, ANY: f, ATTACH_LIST: ht, AVI: wr, AVIF: dr, BMP: Nr, CAMERA: Z, FLAC: Or, FLV: gr, GIF: Rr, GLB: v, GLTF: tt, GP3: br, HEIF: Cr, ICO: Sr, JPG: ot, JSON: it, LIGHT: q, MARKDOWN: Hr, MATERIAL: C, MESH: F, MKV: Gr, MOV: mr, MP3: nt, MP4: st, MPEG: Pr, NF: ct, OBJ: rt, OGG: hr, OGV: Br, OPUS: Dr, PNG: ut, SCENE: h, STL: W, SUPPORT_ALL_LIST: at, SUPPORT_AUDIO_LIST: x, SUPPORT_BABYLON_LIST: y, SUPPORT_FILE_LIST: Et, SUPPORT_IMAGE_LIST: D, SUPPORT_JSON_LIST: g, SUPPORT_MODEL_LIST: d, SUPPORT_NEXTFLOW_LIST: Vr, SUPPORT_RENDER_LIST: lt, SUPPORT_TEXTURE_LIST: At, SUPPORT_TEXT_LIST: U, SUPPORT_VIDEO_LIST: R, SVG: Lr, TEXTURE: O, TIFF: Ir, TXT: ft, UNKNOWN: u, UV: m, WAV: et, WMV: xr, WebM: Ur, WebP: Tr, getExtension: Mr, getMime: _r, getMimeByBlob: Ot, getMimeByBuffer: Rt, getMimeByPath: k, getMimeByStream: Nt, getMimeByUrl: Dt, isAttach: Lt, isBabylon: Tt, isMaterial: Qr, isSupport: Fr, isSupportAudio: jr, isSupportFile: Wr, isSupportImage: yr, isSupportJson: Yr, isSupportModel: kr, isSupportRender: Kr, isSupportText: Xr, isSupportTexture: $r, isSupportVideo: zr, isTexture: Jr, isUV: qr }, Symbol.toStringTag, { value: "Module" }));
273
- var Zr = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(Zr || {}), pr = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.PAUSED = "PAUSED", t.LOADED = "LOADED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(pr || {}), vr = /* @__PURE__ */ ((t) => (t.BLOB = "BLOB", t.OBJECT = "OBJECT", t))(vr || {}), tn = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.UPLOADING = "UPLOADING", t.PAUSED = "PAUSED", t.COMPLETED = "COMPLETED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(tn || {}), rn = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.UPLOADED = "UPLOADED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(rn || {}), nn = /* @__PURE__ */ ((t) => (t.ZH = "zh", t.EN = "en", t))(nn || {}), en = /* @__PURE__ */ ((t) => (t.PENDING = "PENDING", t.PROGRESSING = "PROGRESSING", t.ENDED = "ENDED", t.CANCELED = "CANCELED", t.BANNED = "BANNED", t))(en || {}), on = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.SELF = "SELF", t.ALL = "ALL", t))(on || {});
274
- class He {
272
+ const Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, AAC: Or, ANIMATION: p, ANY: f, ATTACH_LIST: At, AVI: wr, AVIF: Ur, BMP: Lr, CAMERA: Z, FLAC: Rr, FLV: br, GIF: Tr, GLB: v, GLTF: tt, GP3: Hr, HEIF: Pr, ICO: dr, JPG: ot, JSON: it, LIGHT: q, MARKDOWN: _r, MATERIAL: C, MESH: F, MKV: Vr, MOV: xr, MP3: nt, MP4: st, MPEG: gr, NF: ct, OBJ: rt, OGG: Dr, OGV: Gr, OPUS: Nr, PNG: ut, SCENE: O, STL: W, SUPPORT_ALL_LIST: at, SUPPORT_AUDIO_LIST: g, SUPPORT_BABYLON_LIST: y, SUPPORT_FILE_LIST: Et, SUPPORT_IMAGE_LIST: R, SUPPORT_JSON_LIST: x, SUPPORT_MODEL_LIST: d, SUPPORT_NEXTFLOW_LIST: Mr, SUPPORT_RENDER_LIST: lt, SUPPORT_TEXTURE_LIST: ht, SUPPORT_TEXT_LIST: P, SUPPORT_VIDEO_LIST: N, SVG: Ir, TEXTURE: D, TIFF: Cr, TXT: ft, UNKNOWN: u, UV: w, WAV: et, WMV: Br, WebM: mr, WebP: Sr, getExtension: Wr, getMime: Fr, getMimeByBlob: Ot, getMimeByBuffer: Rt, getMimeByPath: k, getMimeByStream: Nt, getMimeByUrl: Dt, isAttach: Lt, isBabylon: Tt, isMaterial: Zr, isSupport: yr, isSupportAudio: $r, isSupportFile: kr, isSupportImage: zr, isSupportJson: Kr, isSupportModel: Xr, isSupportRender: Jr, isSupportText: jr, isSupportTexture: Qr, isSupportVideo: Yr, isTexture: qr, isUV: pr }, Symbol.toStringTag, { value: "Module" }));
273
+ var vr = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(vr || {}), tn = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.PAUSED = "PAUSED", t.LOADED = "LOADED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(tn || {}), rn = /* @__PURE__ */ ((t) => (t.BLOB = "BLOB", t.OBJECT = "OBJECT", t))(rn || {}), nn = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.UPLOADING = "UPLOADING", t.PAUSED = "PAUSED", t.COMPLETED = "COMPLETED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(nn || {}), en = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.UPLOADED = "UPLOADED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(en || {}), on = /* @__PURE__ */ ((t) => (t.ZH = "zh", t.EN = "en", t))(on || {}), un = /* @__PURE__ */ ((t) => (t.PENDING = "PENDING", t.PROGRESSING = "PROGRESSING", t.ENDED = "ENDED", t.CANCELED = "CANCELED", t.BANNED = "BANNED", t))(un || {}), sn = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.SELF = "SELF", t.ALL = "ALL", t))(sn || {});
274
+ class Fe {
275
275
  constructor(n, r, e, o) {
276
276
  this.text = n, this.type = r, this.duration = e, this.id = o;
277
277
  }
@@ -279,41 +279,41 @@ class He {
279
279
  height = 20;
280
280
  opacity = 0;
281
281
  }
282
- var un = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.INSTALL = "INSTALL", t.ENABLE = "ENABLE", t.OPEN = "OPEN", t.CLOSE = "CLOSE", t.DISABLE = "DISABLE", t.UNINSTALL = "UNINSTALL", t.DEBUG = "DEBUG", t))(un || {}), sn = /* @__PURE__ */ ((t) => (t.DISPLAY = "DISPLAY", t.FULL = "FULL", t.HP_BOX = "HP_BOX", t.VR = "VR", t.MR = "MR", t))(sn || {}), I = /* @__PURE__ */ ((t) => (t.EDITOR = "EDITOR", t.VIEWER = "VIEWER", t.VISITOR = "VISITOR", t))(I || {}), cn = /* @__PURE__ */ ((t) => (t.DEFAULT = "DEFAULT", t.DESCRIPTION = "DESCRIPTION", t))(cn || {}), fn = /* @__PURE__ */ ((t) => (t.XS = "XS", t.SM = "SM", t.MD = "MD", t.LG = "LG", t.XL = "XL", t))(fn || {}), an = /* @__PURE__ */ ((t) => (t.DEFAULT = "DEFAULT", t.BACKGROUND = "BACKGROUND", t.LIGHT = "LIGHT", t.DARK = "DARK", t))(an || {}), En = /* @__PURE__ */ ((t) => (t.GENERAL = "GENERAL", t.RHINE = "RHINE", t))(En || {}), ln = /* @__PURE__ */ ((t) => (t.UNDO = "UNDO", t.REDO = "REDO", t))(ln || {}), An = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t))(An || {}), hn = /* @__PURE__ */ ((t) => (t.OSS = "OSS", t.URL = "URL", t))(hn || {}), On = /* @__PURE__ */ ((t) => (t.TEXT = "TEXT", t.CUBE = "CUBE", t.SPHERE = "SPHERE", t.CONE = "CONE", t.PRISM = "PRISM", t.POLYHEDRON = "POLYHEDRON", t.TORUS = "TORUS", t.CYLINDER = "CYLINDER", t.ICO_SPHERE = "ICO_SPHERE", t.CAPSULE = "CAPSULE", t.PLANE = "PLANE", t))(On || {}), Dn = /* @__PURE__ */ ((t) => (t.BASIC = "BASIC", t.PROVIDE = "PROVIDE", t.UPLOAD = "UPLOAD", t))(Dn || {}), Rn = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.INSTALL = "INSTALL", t.ENABLE = "ENABLE", t.OPEN = "OPEN", t))(Rn || {}), Nn = /* @__PURE__ */ ((t) => (t.LATEST_STABLE = "LATEST_STABLE", t.LATEST_NIGHTLY = "LATEST_NIGHTLY", t.LATEST_CANARY = "LATEST_CANARY", t))(Nn || {}), Tn = /* @__PURE__ */ ((t) => (t.TEXTURE = "TEXTURE", t.MATERIAL = "MATERIAL", t.UV = "UV", t))(Tn || {}), Ln = /* @__PURE__ */ ((t) => (t.FILE = "FILE", t.ATTACH = "ATTACH", t))(Ln || {}), In = /* @__PURE__ */ ((t) => (t.OPAQUE = "OPAQUE", t.ALPHA_TEST = "ALPHA_TEST", t.ALPHA_BLEND = "ALPHA_BLEND", t.ALPHA_TEST_AND_BLEND = "ALPHA_TEST_AND_BLEND", t))(In || {}), Sn = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.PBR = "PBR", t.STANDARD = "STANDARD", t.NODE = "NODE", t.OTHER = "OTHER", t.TERRAIN = "TERRAIN", t.FUR = "FUR", t.WATER = "WATER", t.LAVA = "LAVA", t.SKY = "SKY", t.BACKGROUND = "BACKGROUND", t.MULTI = "MULTI", t.SHADER = "SHADER", t))(Sn || {}), Cn = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.METAL = "METAL", t.PLASTIC = "PLASTIC", t.GLASS = "GLASS", t.WOOD = "WOOD", t.MIRROR = "MIRROR", t.CRYSTAL = "CRYSTAL", t.PAINT = "PAINT", t.CLOTH = "CLOTH", t))(Cn || {}), dn = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t))(dn || {}), Un = /* @__PURE__ */ ((t) => (t.SYNC = "SYNC", t.STEP = "STEP", t.SELECT = "SELECT", t.ADD = "ADD", t.UPDATE = "UPDATE", t.DELETE = "DELETE", t))(Un || {});
283
- async function wn(t) {
282
+ var cn = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.INSTALL = "INSTALL", t.ENABLE = "ENABLE", t.OPEN = "OPEN", t.CLOSE = "CLOSE", t.DISABLE = "DISABLE", t.UNINSTALL = "UNINSTALL", t.DEBUG = "DEBUG", t))(cn || {}), fn = /* @__PURE__ */ ((t) => (t.DISPLAY = "DISPLAY", t.FULL = "FULL", t.HP_BOX = "HP_BOX", t.VR = "VR", t.MR = "MR", t))(fn || {}), I = /* @__PURE__ */ ((t) => (t.EDITOR = "EDITOR", t.VIEWER = "VIEWER", t.VISITOR = "VISITOR", t))(I || {}), an = /* @__PURE__ */ ((t) => (t.DEFAULT = "DEFAULT", t.DESCRIPTION = "DESCRIPTION", t))(an || {}), En = /* @__PURE__ */ ((t) => (t.XS = "XS", t.SM = "SM", t.MD = "MD", t.LG = "LG", t.XL = "XL", t))(En || {}), ln = /* @__PURE__ */ ((t) => (t.DEFAULT = "DEFAULT", t.BACKGROUND = "BACKGROUND", t.LIGHT = "LIGHT", t.DARK = "DARK", t))(ln || {}), hn = /* @__PURE__ */ ((t) => (t.GENERAL = "GENERAL", t.RHINE = "RHINE", t))(hn || {}), An = /* @__PURE__ */ ((t) => (t.Global = "GLOBAL", t.Step = "STEP", t.Node = "NODE", t))(An || {}), On = /* @__PURE__ */ ((t) => (t.UNDO = "UNDO", t.REDO = "REDO", t))(On || {}), Dn = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t))(Dn || {}), Rn = /* @__PURE__ */ ((t) => (t.OSS = "OSS", t.URL = "URL", t))(Rn || {}), Nn = /* @__PURE__ */ ((t) => (t.TEXT = "TEXT", t.CUBE = "CUBE", t.SPHERE = "SPHERE", t.CONE = "CONE", t.PRISM = "PRISM", t.POLYHEDRON = "POLYHEDRON", t.TORUS = "TORUS", t.CYLINDER = "CYLINDER", t.ICO_SPHERE = "ICO_SPHERE", t.CAPSULE = "CAPSULE", t.PLANE = "PLANE", t))(Nn || {}), Tn = /* @__PURE__ */ ((t) => (t.BASIC = "BASIC", t.PROVIDE = "PROVIDE", t.UPLOAD = "UPLOAD", t))(Tn || {}), Ln = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.INSTALL = "INSTALL", t.ENABLE = "ENABLE", t.OPEN = "OPEN", t))(Ln || {}), Sn = /* @__PURE__ */ ((t) => (t.LATEST_STABLE = "LATEST_STABLE", t.LATEST_NIGHTLY = "LATEST_NIGHTLY", t.LATEST_CANARY = "LATEST_CANARY", t))(Sn || {}), In = /* @__PURE__ */ ((t) => (t.TEXTURE = "TEXTURE", t.MATERIAL = "MATERIAL", t.UV = "UV", t))(In || {}), Cn = /* @__PURE__ */ ((t) => (t.FILE = "FILE", t.ATTACH = "ATTACH", t))(Cn || {}), dn = /* @__PURE__ */ ((t) => (t.OPAQUE = "OPAQUE", t.ALPHA_TEST = "ALPHA_TEST", t.ALPHA_BLEND = "ALPHA_BLEND", t.ALPHA_TEST_AND_BLEND = "ALPHA_TEST_AND_BLEND", t))(dn || {}), Pn = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.PBR = "PBR", t.STANDARD = "STANDARD", t.NODE = "NODE", t.OTHER = "OTHER", t.TERRAIN = "TERRAIN", t.FUR = "FUR", t.WATER = "WATER", t.LAVA = "LAVA", t.SKY = "SKY", t.BACKGROUND = "BACKGROUND", t.MULTI = "MULTI", t.SHADER = "SHADER", t))(Pn || {}), Un = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.METAL = "METAL", t.PLASTIC = "PLASTIC", t.GLASS = "GLASS", t.WOOD = "WOOD", t.MIRROR = "MIRROR", t.CRYSTAL = "CRYSTAL", t.PAINT = "PAINT", t.CLOTH = "CLOTH", t))(Un || {}), mn = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t))(mn || {}), wn = /* @__PURE__ */ ((t) => (t.SYNC = "SYNC", t.STEP = "STEP", t.SELECT = "SELECT", t.ADD = "ADD", t.UPDATE = "UPDATE", t.DELETE = "DELETE", t))(wn || {});
283
+ async function gn(t) {
284
284
  const n = await crypto.subtle.digest("SHA-256", t);
285
285
  return Array.from(new Uint8Array(n)).map((e) => e.toString(16).padStart(2, "0")).join("");
286
286
  }
287
287
  const H = {
288
- computeSHA256: wn
288
+ computeSHA256: gn
289
289
  };
290
- function Pn(t, n) {
290
+ function xn(t, n) {
291
291
  const r = [];
292
292
  return r.push({ path: t, value: n }), r;
293
293
  }
294
- const Ve = {
295
- recursPathValue: Pn
294
+ const We = {
295
+ recursPathValue: xn
296
296
  };
297
- function It(t) {
297
+ function St(t) {
298
298
  const n = Math.floor(t).toString().length, r = n <= 1 ? 2 : 1;
299
299
  return t.toFixed(r);
300
300
  }
301
- function mn(t) {
301
+ function Bn(t) {
302
302
  const n = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
303
303
  let r = 0;
304
304
  for (; t >= 1024 && r < n.length - 1; )
305
305
  t /= 1024, r++;
306
- let e = It(t);
306
+ let e = St(t);
307
307
  return e.endsWith(".0") && (e = e.slice(0, -2)), e.endsWith(".00") && (e = e.slice(0, -3)), `${e} ${n[r]}`;
308
308
  }
309
- function xn(t) {
309
+ function bn(t) {
310
310
  const n = t.lastIndexOf(".");
311
311
  return n === -1 ? [t, ""] : [t.substring(0, n), t.substring(n + 1)];
312
312
  }
313
- function gn(t) {
313
+ function Gn(t) {
314
314
  return t ? t instanceof File ? [t] : t instanceof FileList ? Array.from(t) : t : [];
315
315
  }
316
- async function St(t) {
316
+ async function It(t) {
317
317
  const n = [0.25, 0.5, 0.75], r = 64 * 1024, e = 1024 * 1024;
318
318
  if (t.size <= e) {
319
319
  const E = await t.arrayBuffer();
@@ -321,22 +321,22 @@ async function St(t) {
321
321
  }
322
322
  const o = n.map((E) => Math.floor(t.size * E)), s = await Promise.all(
323
323
  o.map(async (E) => {
324
- const A = E, N = Math.min(A + r, t.size), T = t.slice(A, N), L = await T.arrayBuffer();
325
- return H.computeSHA256(L);
324
+ const h = E, T = Math.min(h + r, t.size), L = t.slice(h, T), S = await L.arrayBuffer();
325
+ return H.computeSHA256(S);
326
326
  })
327
327
  ), i = new TextEncoder(), a = s.join(""), l = i.encode(a);
328
328
  return H.computeSHA256(l);
329
329
  }
330
- async function Bn(t, n, r, e) {
330
+ async function Hn(t, n, r, e) {
331
331
  if (n === t.name && r === t.size)
332
332
  if (e) {
333
- if (e === await St(t))
333
+ if (e === await It(t))
334
334
  return !0;
335
335
  } else
336
336
  return !0;
337
337
  return !1;
338
338
  }
339
- async function bn(t) {
339
+ async function Vn(t) {
340
340
  const n = await fetch(t, { method: "HEAD" });
341
341
  if (!n.ok)
342
342
  throw new Error(`HEAD request failed with status: ${String(n.status)}`);
@@ -353,31 +353,31 @@ async function bn(t) {
353
353
  }
354
354
  return { name: new URL(t).pathname.split("/").pop() ?? "unknown", size: e };
355
355
  }
356
- const _e = {
357
- to3n: It,
358
- convertBytesToHigherUnit: mn,
359
- splitName: xn,
360
- ensureFileArray: gn,
361
- chunkHash: St,
362
- isSameFile: Bn,
363
- getFileInfo: bn
356
+ const ye = {
357
+ to3n: St,
358
+ convertBytesToHigherUnit: Bn,
359
+ splitName: bn,
360
+ ensureFileArray: Gn,
361
+ chunkHash: It,
362
+ isSameFile: Hn,
363
+ getFileInfo: Vn
364
364
  };
365
- function Gn(t) {
365
+ function _n(t) {
366
366
  return t * (180 / Math.PI);
367
367
  }
368
- function Hn(t) {
368
+ function Mn(t) {
369
369
  return t * (Math.PI / 180);
370
370
  }
371
- function Vn(t, n, r = 1e-6) {
371
+ function Fn(t, n, r = 1e-6) {
372
372
  return Math.abs(t - n) < r;
373
373
  }
374
- function _n(t, n, r, e) {
374
+ function Wn(t, n, r, e) {
375
375
  return Math.sqrt((r - t) ** 2 + (e - n) ** 2);
376
376
  }
377
- function Mn(t, n, r, e, o, s) {
377
+ function yn(t, n, r, e, o, s) {
378
378
  return Math.sqrt((e - t) ** 2 + (o - n) ** 2 + (s - r) ** 2);
379
379
  }
380
- function Fn(t, n) {
380
+ function kn(t, n) {
381
381
  let r = 1 / 0, e = -1;
382
382
  for (let o = 0; o < n.length; o++) {
383
383
  const s = Math.abs(t - n[o]);
@@ -385,13 +385,13 @@ function Fn(t, n) {
385
385
  }
386
386
  return e;
387
387
  }
388
- const Wn = {
389
- toDegrees: Gn,
390
- toRadians: Hn,
391
- approximatelyEqual: Vn,
392
- getDistance: _n,
393
- getDistance3d: Mn,
394
- getNearestNumberIndex: Fn
388
+ const zn = {
389
+ toDegrees: _n,
390
+ toRadians: Mn,
391
+ approximatelyEqual: Fn,
392
+ getDistance: Wn,
393
+ getDistance3d: yn,
394
+ getNearestNumberIndex: kn
395
395
  };
396
396
  function _(t) {
397
397
  if (t.type.includes("touch")) {
@@ -406,27 +406,27 @@ function _(t) {
406
406
  const n = t;
407
407
  return [n.clientX, n.clientY];
408
408
  }
409
- function yn(t, n) {
409
+ function Xn(t, n) {
410
410
  const [r, e] = _(t), [o, s] = _(n);
411
- return Wn.getDistance(r, e, o, s);
411
+ return zn.getDistance(r, e, o, s);
412
412
  }
413
- function kn(t) {
413
+ function Yn(t) {
414
414
  t.preventDefault();
415
415
  }
416
- function zn(t) {
416
+ function jn(t) {
417
417
  t.stopPropagation();
418
418
  }
419
- function Xn(t) {
419
+ function Kn(t) {
420
420
  t.preventDefault(), t.stopPropagation();
421
421
  }
422
- const Me = {
422
+ const ke = {
423
423
  getEventPosition: _,
424
- getDistanceBetweenEvents: yn,
425
- preventDefaultListener: kn,
426
- stopPropagationListener: zn,
427
- preventDefaultStopPropagationListener: Xn
424
+ getDistanceBetweenEvents: Xn,
425
+ preventDefaultListener: Yn,
426
+ stopPropagationListener: jn,
427
+ preventDefaultStopPropagationListener: Kn
428
428
  };
429
- async function Yn(t, n = 3) {
429
+ async function $n(t, n = 3) {
430
430
  let r;
431
431
  for (let e = 0; e < n; e++)
432
432
  try {
@@ -440,7 +440,7 @@ ${t}`);
440
440
  }
441
441
  throw r;
442
442
  }
443
- async function jn(t, n = 3) {
443
+ async function Jn(t, n = 3) {
444
444
  let r;
445
445
  for (let e = 0; e < n; e++)
446
446
  try {
@@ -454,38 +454,38 @@ ${t}`);
454
454
  }
455
455
  throw r;
456
456
  }
457
- const Fe = {
458
- fetchJsonWithRetry: Yn,
459
- fetchBlobWithRetry: jn
457
+ const ze = {
458
+ fetchJsonWithRetry: $n,
459
+ fetchBlobWithRetry: Jn
460
460
  };
461
461
  function z(t, n) {
462
462
  const r = 10 ** n;
463
463
  return Math.round(t * r) / r;
464
464
  }
465
- function Kn(t) {
465
+ function Qn(t) {
466
466
  return z(t, 2);
467
467
  }
468
- function $n(t) {
468
+ function qn(t) {
469
469
  return z(t, 3);
470
470
  }
471
- function Jn(t) {
471
+ function Zn(t) {
472
472
  return typeof t == "number" && !isNaN(t) && isFinite(t);
473
473
  }
474
474
  const c = {
475
475
  roundToX: z,
476
- r2: Kn,
477
- r3: $n,
478
- isValidNumber: Jn
476
+ r2: Qn,
477
+ r3: qn,
478
+ isValidNumber: Zn
479
479
  };
480
- function Qn(t) {
480
+ function pn(t) {
481
481
  return t === "space" ? I.EDITOR : t === "m" ? I.VISITOR : I.VIEWER;
482
482
  }
483
- function qn(t) {
483
+ function vn(t) {
484
484
  return new URLSearchParams(window.location.search).get(t) ?? void 0;
485
485
  }
486
- const We = {
487
- getPageTypeBySpaceText: Qn,
488
- getSearchParams: qn
486
+ const Xe = {
487
+ getPageTypeBySpaceText: pn,
488
+ getSearchParams: vn
489
489
  };
490
490
  function Ct(t) {
491
491
  const n = [];
@@ -498,14 +498,14 @@ function Ct(t) {
498
498
  function dt(t) {
499
499
  return t.join(".");
500
500
  }
501
- function S(t) {
501
+ function A(t) {
502
502
  return typeof t == "string" ? Ct(t) : t;
503
503
  }
504
- function Zn(t) {
504
+ function te(t) {
505
505
  return typeof t != "string" ? dt(t) : t;
506
506
  }
507
- function pn(t, n) {
508
- const r = S(n);
507
+ function re(t, n) {
508
+ const r = A(n);
509
509
  let e = t;
510
510
  for (const o of r) {
511
511
  if (e == null)
@@ -514,35 +514,55 @@ function pn(t, n) {
514
514
  }
515
515
  return e;
516
516
  }
517
- function vn(t, n, r) {
518
- const e = S(n);
517
+ function ne(t, n, r) {
518
+ const e = A(n);
519
519
  let o = t;
520
520
  for (let s = 0; s < e.length - 1; s++)
521
521
  o = o[e[s]];
522
522
  o[e[e.length - 1]] = r;
523
523
  }
524
- function te(t, n) {
525
- const r = S(t), e = S(n), o = r.length > e.length ? e.length : r.length;
524
+ function Pt(t, n) {
525
+ const r = A(t), e = A(n), o = r.length > e.length ? e.length : r.length;
526
526
  for (let s = 0; s < o; s++)
527
527
  if (r[s] != e[s])
528
528
  return !1;
529
529
  return !0;
530
530
  }
531
- const ye = {
531
+ function ee(t, n) {
532
+ const r = A(t);
533
+ return n.some((e) => Pt(r, e));
534
+ }
535
+ function Ut(t, n) {
536
+ const r = A(t), e = A(n);
537
+ if (r.length !== e.length)
538
+ return !1;
539
+ for (let o = 0; o < r.length; o++)
540
+ if (r[o] !== e[o])
541
+ return !1;
542
+ return !0;
543
+ }
544
+ function oe(t, n) {
545
+ const r = A(t);
546
+ return n.some((e) => Ut(r, e));
547
+ }
548
+ const Ye = {
532
549
  makeRvPath: Ct,
533
550
  makeRvPathString: dt,
534
- ensureRvPath: S,
535
- ensureRvPathString: Zn,
536
- getByRvPath: pn,
537
- setByRvPath: vn,
538
- checkRvPathOverlay: te
551
+ ensureRvPath: A,
552
+ ensureRvPathString: te,
553
+ getByRvPath: re,
554
+ setByRvPath: ne,
555
+ checkRvPathSame: Ut,
556
+ checkAnyRvPathSame: oe,
557
+ checkRvPathOverlay: Pt,
558
+ checkAnyRvPathOverlay: ee
539
559
  };
540
- function ke(t) {
560
+ function je(t) {
541
561
  return new Promise((n) => {
542
562
  setTimeout(n, t);
543
563
  });
544
564
  }
545
- function ze(t, n) {
565
+ function Ke(t, n) {
546
566
  if (n === 0)
547
567
  return t;
548
568
  let r, e = 0, o, s = null;
@@ -550,17 +570,17 @@ function ze(t, n) {
550
570
  e = Date.now(), r && t.apply(o, r);
551
571
  }
552
572
  return function(...l) {
553
- const E = Date.now(), A = E - e;
573
+ const E = Date.now(), h = E - e;
554
574
  if (r = l, o = this, e === 0) {
555
575
  setTimeout(i, 1);
556
576
  return;
557
577
  }
558
- s && (clearTimeout(s), s = null), A < n ? s = setTimeout(() => {
578
+ s && (clearTimeout(s), s = null), h < n ? s = setTimeout(() => {
559
579
  i(), s = null;
560
- }, n - A) : i();
580
+ }, n - h) : i();
561
581
  };
562
582
  }
563
- function re(t) {
583
+ function ue(t) {
564
584
  const n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), e = Math.floor(t % 60);
565
585
  return [
566
586
  n > 0 ? String(n).padStart(2, "0") : null,
@@ -568,52 +588,52 @@ function re(t) {
568
588
  String(e).padStart(2, "0")
569
589
  ].filter(Boolean).join(":");
570
590
  }
571
- function ne(t = /* @__PURE__ */ new Date()) {
591
+ function se(t = /* @__PURE__ */ new Date()) {
572
592
  const n = t.getFullYear().toString(), r = (t.getMonth() + 1).toString().padStart(2, "0"), e = t.getDate().toString().padStart(2, "0"), o = t.getHours().toString().padStart(2, "0"), s = t.getMinutes().toString().padStart(2, "0"), i = t.getSeconds().toString().padStart(2, "0"), a = t.getMilliseconds().toString().padStart(3, "0");
573
593
  return n + r + e + o + s + i + a;
574
594
  }
575
- function ee(t, n) {
595
+ function ie(t, n) {
576
596
  const r = n - t, e = Math.floor(r / 1e3), o = Math.floor(e / 3600), s = Math.floor(e % 3600 / 60), i = e % 60;
577
597
  return `${o > 0 ? `${o.toString().padStart(2, "0")}:` : ""}${s.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`;
578
598
  }
579
- const Xe = {
580
- convertTimeText: re,
581
- formatDateTo17Digits: ne,
582
- formatDuration: ee
599
+ const $e = {
600
+ convertTimeText: ue,
601
+ formatDateTo17Digits: se,
602
+ formatDuration: ie
583
603
  };
584
- function oe(t) {
604
+ function ce(t) {
585
605
  const n = new RegExp(`(^|&)${t}=([^&]*)(&|$)`, "i"), r = window.location.search.substring(1).match(n);
586
606
  return r != null ? decodeURIComponent(r[2]) : "";
587
607
  }
588
- function ue(t) {
608
+ function fe(t) {
589
609
  const n = new RegExp(`(^|&)${t}=([^&]*)(&|$)`, "i"), r = window.location.hash.substring(1).match(n);
590
610
  return r != null ? decodeURIComponent(r[2]) : "";
591
611
  }
592
- function se(t) {
612
+ function ae(t) {
593
613
  return new RegExp(
594
614
  "^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?:\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
595
615
  "i"
596
616
  ).test(t);
597
617
  }
598
- async function ie() {
618
+ async function Ee() {
599
619
  const t = window.location.href;
600
- return Ut(t);
620
+ return mt(t);
601
621
  }
602
- async function ce(t) {
622
+ async function le(t) {
603
623
  try {
604
624
  return await navigator.clipboard.writeText(t), !0;
605
625
  } catch {
606
626
  return !1;
607
627
  }
608
628
  }
609
- async function Ut(t) {
629
+ async function mt(t) {
610
630
  try {
611
631
  return await navigator.clipboard.writeText(t), !0;
612
632
  } catch {
613
633
  return !1;
614
634
  }
615
635
  }
616
- function fe(t, n = !0) {
636
+ function he(t, n = !0) {
617
637
  try {
618
638
  const o = new URL(t).pathname.split("/").pop() ?? "";
619
639
  return !n && o.includes(".") ? o.substring(0, o.lastIndexOf(".")) : o;
@@ -621,26 +641,26 @@ function fe(t, n = !0) {
621
641
  return "";
622
642
  }
623
643
  }
624
- const Ye = {
625
- getParam: oe,
626
- getHashParam: ue,
627
- check: se,
628
- copyCurrentUrlToClipboard: ie,
629
- copyText: ce,
630
- trySetClipboard: Ut,
631
- extractFilenameFromUrl: fe
644
+ const Je = {
645
+ getParam: ce,
646
+ getHashParam: fe,
647
+ check: ae,
648
+ copyCurrentUrlToClipboard: Ee,
649
+ copyText: le,
650
+ trySetClipboard: mt,
651
+ extractFilenameFromUrl: he
632
652
  };
633
- function ae(t, n = -1, r = [0, 0]) {
653
+ function Ae(t, n = -1, r = [0, 0]) {
634
654
  return t ? n === -1 ? [t.x, t.y] : [c.roundToX(t.x, n), c.roundToX(t.y, n)] : r;
635
655
  }
636
- function Ee(t, n = -1, r = [0, 0, 0]) {
656
+ function Oe(t, n = -1, r = [0, 0, 0]) {
637
657
  return t ? n === -1 ? [t.x, t.y, t.z] : [
638
658
  c.roundToX(t.x, n),
639
659
  c.roundToX(t.y, n),
640
660
  c.roundToX(t.z, n)
641
661
  ] : r;
642
662
  }
643
- function le(t, n = -1, r = [0, 0, 0, 0]) {
663
+ function De(t, n = -1, r = [0, 0, 0, 0]) {
644
664
  return t ? n === -1 ? [t.x, t.y, t.z, t.w] : [
645
665
  c.roundToX(t.x, n),
646
666
  c.roundToX(t.y, n),
@@ -648,159 +668,160 @@ function le(t, n = -1, r = [0, 0, 0, 0]) {
648
668
  c.roundToX(t.w, n)
649
669
  ] : r;
650
670
  }
651
- function Ae(t, n) {
671
+ function Re(t, n) {
652
672
  return { x: n.x * t, y: n.y * t, z: n.z * t };
653
673
  }
654
674
  function wt(t) {
655
675
  return { x: t.x * 180 / Math.PI, y: t.y * 180 / Math.PI, z: t.z * 180 / Math.PI };
656
676
  }
657
- function he(t) {
677
+ function Ne(t) {
658
678
  return { x: t.x * Math.PI / 180, y: t.y * Math.PI / 180, z: t.z * Math.PI / 180 };
659
679
  }
660
- function Oe(t) {
680
+ function Te(t) {
661
681
  return M.RotationYawPitchRoll(t.y, t.x, t.z);
662
682
  }
663
- function De(t) {
683
+ function Le(t) {
664
684
  return M.RotationYawPitchRoll(
665
685
  t.y * Math.PI / 180,
666
686
  t.x * Math.PI / 180,
667
687
  t.z * Math.PI / 180
668
688
  );
669
689
  }
670
- function Re(t) {
671
- return new tr(t.x, t.y, t.z);
690
+ function Se(t) {
691
+ return new nr(t.x, t.y, t.z);
672
692
  }
673
- function Ne(t) {
693
+ function Ie(t) {
674
694
  return { x: t.x, y: t.y, z: t.z };
675
695
  }
676
- function Te(t, n = 0) {
696
+ function Ce(t, n = 0) {
677
697
  return {
678
698
  x: c.roundToX(t.x, n),
679
699
  y: c.roundToX(t.y, n),
680
700
  z: c.roundToX(t.z, n)
681
701
  };
682
702
  }
683
- function Le(t) {
703
+ function de(t) {
684
704
  return isFinite(t.x) && isFinite(t.y) && isFinite(t.z);
685
705
  }
686
- function Ie(t) {
706
+ function Pe(t) {
687
707
  return t.x !== 0 && t.y !== 0 && t.z !== 0;
688
708
  }
689
- function Se(t, n) {
709
+ function Ue(t, n) {
690
710
  return { x: n.x * t, y: n.y * t, z: n.z * t, w: n.w * t };
691
711
  }
692
712
  function X(t) {
693
713
  return new M(t.x, t.y, t.z, t.w);
694
714
  }
695
- function Ce(t) {
715
+ function me(t) {
696
716
  return X(t).toEulerAngles();
697
717
  }
698
- function de(t) {
718
+ function we(t) {
699
719
  const n = X(t);
700
720
  return wt(n.toEulerAngles());
701
721
  }
702
- function Pt(t) {
722
+ function gt(t) {
703
723
  return "w" in t;
704
724
  }
705
- function Ue(t) {
706
- return Pt(t) ? [t.x, t.y, t.z, t.w] : [t.x, t.y, t.z];
725
+ function ge(t) {
726
+ return gt(t) ? [t.x, t.y, t.z, t.w] : [t.x, t.y, t.z];
707
727
  }
708
- function we(t) {
728
+ function xe(t) {
709
729
  return { x: t.x, y: t.y, z: t.z, w: t.w };
710
730
  }
711
- function Pe(t, n = 0) {
712
- return Pt(t) ? [
731
+ function Be(t, n = 0) {
732
+ return gt(t) ? [
713
733
  c.roundToX(t.x, n),
714
734
  c.roundToX(t.y, n),
715
735
  c.roundToX(t.z, n),
716
736
  c.roundToX(t.w, n)
717
737
  ] : [c.roundToX(t.x, n), c.roundToX(t.y, n), c.roundToX(t.z, n)];
718
738
  }
719
- const je = {
720
- xyToArray: ae,
721
- xyzToArray: Ee,
722
- xyzwToArray: le,
723
- scaleV3: Ae,
739
+ const Qe = {
740
+ xyToArray: Ae,
741
+ xyzToArray: Oe,
742
+ xyzwToArray: De,
743
+ scaleV3: Re,
724
744
  radiansToDegrees: wt,
725
- degreeToRadians: he,
726
- radiansToQuaternion: Oe,
727
- degreesToQuaternion: De,
728
- toVector3: Re,
729
- fromVector3: Ne,
730
- withRound: Te,
731
- isFiniteVector: Le,
732
- noZero: Ie,
733
- scaleV4: Se,
745
+ degreeToRadians: Ne,
746
+ radiansToQuaternion: Te,
747
+ degreesToQuaternion: Le,
748
+ toVector3: Se,
749
+ fromVector3: Ie,
750
+ withRound: Ce,
751
+ isFiniteVector: de,
752
+ noZero: Pe,
753
+ scaleV4: Ue,
734
754
  toQuaternionVector: X,
735
- toEulerRadians: Ce,
736
- toEulerDegrees: de,
737
- toArray: Ue,
738
- fromQuaternion: we,
739
- toArrayWithRound4: Pe
755
+ toEulerRadians: me,
756
+ toEulerDegrees: we,
757
+ toArray: ge,
758
+ fromQuaternion: xe,
759
+ toArrayWithRound4: Be
740
760
  };
741
761
  export {
742
- Ge as AcceptMime,
762
+ Me as AcceptMime,
763
+ An as AttributeType,
743
764
  K as ContextMenu,
744
765
  H as CryptoUtils,
745
- Ve as DataUtils,
766
+ We as DataUtils,
746
767
  Q as Dialog,
747
- ar as DialogContentAlign,
748
- ge as DomNotFoundError,
749
- Rn as EnableLevel,
750
- _e as FileUtils,
751
- fr as FirstLoadModelServiceEventType,
752
- cr as FirstLoadModelServiceStatus,
753
- lr as FirstLoadServiceEventType,
754
- Er as FirstLoadServiceStatus,
755
- cn as FocusMode,
756
- ln as HistoryServiceEventType,
757
- or as IconPluginPosition,
758
- be as LabelInfo,
768
+ lr as DialogContentAlign,
769
+ He as DomNotFoundError,
770
+ Ln as EnableLevel,
771
+ ye as FileUtils,
772
+ Er as FirstLoadModelServiceEventType,
773
+ ar as FirstLoadModelServiceStatus,
774
+ Ar as FirstLoadServiceEventType,
775
+ hr as FirstLoadServiceStatus,
776
+ an as FocusMode,
777
+ On as HistoryServiceEventType,
778
+ sr as IconPluginPosition,
779
+ _e as LabelInfo,
759
780
  j as LabelTheme,
760
- Zr as LocalDataServiceEventType,
761
- pr as LocalDataStatus,
762
- vr as LocalDataType,
763
- nn as Locale,
764
- Wn as MathUtils,
765
- en as MeetingStatus,
781
+ vr as LocalDataServiceEventType,
782
+ tn as LocalDataStatus,
783
+ rn as LocalDataType,
784
+ on as Locale,
785
+ zn as MathUtils,
786
+ un as MeetingStatus,
766
787
  $ as MenuLine,
767
788
  V as MenuLineType,
768
- He as Message,
769
- Me as NativeEventUtils,
770
- Fe as NetworkUtils,
771
- er as NotFoundError,
789
+ Fe as Message,
790
+ ke as NativeEventUtils,
791
+ ze as NetworkUtils,
792
+ ur as NotFoundError,
772
793
  c as NumberUtils,
773
- tn as OssUploadInstanceStatus,
774
- rn as OssUploadServiceEventType,
775
- sn as PageMode,
794
+ nn as OssUploadInstanceStatus,
795
+ en as OssUploadServiceEventType,
796
+ fn as PageMode,
776
797
  I as PageType,
777
- We as PageUtils,
778
- un as PluginEventType,
779
- ur as PluginType,
780
- sr as RsModelServiceEventType,
781
- ir as RsModelStatus,
782
- Tn as RvAttachType,
783
- On as RvBasicType,
784
- An as RvFileServiceEventType,
785
- hn as RvFileType,
786
- Sn as RvMaterialType,
787
- Dn as RvModelOrigin,
788
- Cn as RvPresetType,
789
- dn as RvResourceServiceEventType,
790
- Ln as RvResourceType,
791
- ye as RvUtils,
792
- fn as ScreenSize,
793
- on as ShareMode,
794
- Be as StaticClassInstantiationError,
795
- Un as TChangeType,
796
- an as ThemeBackground,
798
+ Xe as PageUtils,
799
+ cn as PluginEventType,
800
+ ir as PluginType,
801
+ cr as RsModelServiceEventType,
802
+ fr as RsModelStatus,
803
+ In as RvAttachType,
804
+ Nn as RvBasicType,
805
+ Dn as RvFileServiceEventType,
806
+ Rn as RvFileType,
807
+ Pn as RvMaterialType,
808
+ Tn as RvModelOrigin,
809
+ Un as RvPresetType,
810
+ mn as RvResourceServiceEventType,
811
+ Cn as RvResourceType,
812
+ Ye as RvUtils,
813
+ En as ScreenSize,
814
+ sn as ShareMode,
815
+ Ve as StaticClassInstantiationError,
816
+ wn as TChangeType,
817
+ ln as ThemeBackground,
797
818
  J as ThemeColor,
798
- En as ThemeShape,
799
- Xe as TimeUtils,
800
- In as TransparencyMode,
801
- Ye as UrlUtils,
802
- je as VectorUtils,
803
- Nn as VersionPoint,
804
- ke as sleep,
805
- ze as throttle
819
+ hn as ThemeShape,
820
+ $e as TimeUtils,
821
+ dn as TransparencyMode,
822
+ Je as UrlUtils,
823
+ Qe as VectorUtils,
824
+ Sn as VersionPoint,
825
+ je as sleep,
826
+ Ke as throttle
806
827
  };