iflow-engine-base 4.0.15 → 4.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { aR as w } from "./three-vendor-rBTtPKhu.js";
2
- const S = "__BIM_ENGINE_SDK_ASSET_BASE__", g = "__BIM_ENGINE_SDK_ASSET_FILE_MAP__", b = "__BIM_ENGINE_SDK_ASSET_FILE_URLS__", A = "__BIM_ENGINE_SDK_ASSET_FILE_SESSION__", j = "https://unpkg.com/iflow-engine-base-3d@3.12.21/dist/", L = "https://__bim_engine_sdk_asset__/", R = ["assets/", "fonts/", "draco/", "basis/", "texture/", "prompt/"];
1
+ import { D as w } from "./three-vendor-Ds9cgGKb.js";
2
+ const S = "__BIM_ENGINE_SDK_ASSET_BASE__", g = "__BIM_ENGINE_SDK_ASSET_FILE_MAP__", b = "__BIM_ENGINE_SDK_ASSET_FILE_URLS__", A = "__BIM_ENGINE_SDK_ASSET_FILE_SESSION__", j = "https://unpkg.com/iflow-engine-base-3d@3.12.21/dist/", L = "https://__bim_engine_sdk_asset__/", M = ["assets/", "fonts/", "draco/", "basis/", "texture/", "prompt/"];
3
3
  let _ = null;
4
- async function M() {
5
- return _ || (_ = import("./sdk-vendor-DtYOqJWo.js").then((t) => t.j).then((t) => t.default ?? t)), _;
4
+ async function R() {
5
+ return _ || (_ = import("./sdk-vendor-CVc1LiJj.js").then((t) => t.j).then((t) => t.default ?? t)), _;
6
6
  }
7
7
  function a() {
8
8
  return typeof globalThis < "u" ? globalThis : null;
@@ -46,15 +46,15 @@ function U() {
46
46
  const e = a()?.[g];
47
47
  return e instanceof Map ? e : null;
48
48
  }
49
- function K() {
49
+ function D() {
50
50
  const e = a()?.[b];
51
51
  return Array.isArray(e) ? e : [];
52
52
  }
53
53
  function O() {
54
54
  const t = a();
55
- t && (K().forEach((e) => URL.revokeObjectURL(e)), delete t[g], delete t[b], delete t[A]);
55
+ t && (D().forEach((e) => URL.revokeObjectURL(e)), delete t[g], delete t[b], delete t[A]);
56
56
  }
57
- function D(t, e) {
57
+ function K(t, e) {
58
58
  const n = a();
59
59
  n && (O(), n[g] = t, n[b] = e, n[A] = T());
60
60
  }
@@ -63,7 +63,7 @@ function N(t, e, n) {
63
63
  o >= 0 && r.add(s.slice(o + 5));
64
64
  const c = s.indexOf("public/");
65
65
  c >= 0 && r.add(s.slice(c + 7));
66
- for (const i of R) {
66
+ for (const i of M) {
67
67
  const E = s.indexOf(i);
68
68
  E >= 0 && r.add(s.slice(E));
69
69
  }
@@ -103,7 +103,7 @@ async function P(t) {
103
103
  for (const n of t) {
104
104
  const s = l(n.webkitRelativePath || n.name);
105
105
  if (F(n)) {
106
- const o = await (await M()).loadAsync(n), c = Object.values(o.files);
106
+ const o = await (await R()).loadAsync(n), c = Object.values(o.files);
107
107
  for (const i of c)
108
108
  i.dir || e.push({
109
109
  path: l(i.name),
@@ -171,7 +171,7 @@ async function $(t) {
171
171
  n.forEach((o) => {
172
172
  const c = URL.createObjectURL(o.blob);
173
173
  r.push(c), N(s, o.path, c);
174
- }), D(s, r);
174
+ }), K(s, r);
175
175
  }
176
176
  async function V(t) {
177
177
  await $(t ? [t] : null);