aoi-comp 1.0.6 → 1.0.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.
@@ -1,4 +1,4 @@
1
- import { V as e, u as t } from "./Geometry-CN7W9DnD.js";
1
+ import { V as e, u as t } from "./Geometry-aazo6sAf.js";
2
2
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/gpu/getTextureBatchBindGroup.mjs
3
3
  var n = {};
4
4
  function r(e, t, r) {
@@ -0,0 +1,527 @@
1
+ import { $ as e, E as t, I as n, K as r, P as i, U as a, W as o, Y as s, Z as c, ct as l, dt as u, et as d, f, o as p, pt as m, s as h, t as g, u as _, w as v, y } from "./packages-CZzUFKwt.js";
2
+ import { message as b } from "antd";
3
+ import { createContext as x, use as S, useCallback as C, useContext as w, useEffect as T, useMemo as E, useRef as D, useState as O } from "react";
4
+ //#region node_modules/.pnpm/react-i18next@17.0.13_i18ne_77b937ecedfb676debf3096b5685165d/node_modules/react-i18next/dist/es/utils.js
5
+ var k = (e, t, n, r) => {
6
+ let i = [n, {
7
+ code: t,
8
+ ...r || {}
9
+ }];
10
+ if (e?.services?.logger?.forward) return e.services.logger.forward(i, "warn", "react-i18next::", !0);
11
+ I(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), e?.services?.logger?.warn ? e.services.logger.warn(...i) : console?.warn && console.warn(...i);
12
+ }, A = {}, j = (e, t, n, r) => {
13
+ I(n) && A[n] || (I(n) && (A[n] = /* @__PURE__ */ new Date()), k(e, t, n, r));
14
+ }, M = (e, t) => () => {
15
+ if (e.isInitialized) t();
16
+ else {
17
+ let n = () => {
18
+ setTimeout(() => {
19
+ e.off("initialized", n);
20
+ }, 0), t();
21
+ };
22
+ e.on("initialized", n);
23
+ }
24
+ }, N = (e, t, n) => {
25
+ e.loadNamespaces(t, M(e, n));
26
+ }, P = (e, t, n, r) => {
27
+ if (I(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return N(e, n, r);
28
+ n.forEach((t) => {
29
+ e.options.ns.indexOf(t) < 0 && e.options.ns.push(t);
30
+ }), e.loadLanguages(t, M(e, r));
31
+ }, F = (e, t, n = {}) => !t.languages || !t.languages.length ? (j(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: t.languages }), !0) : t.hasLoadedNamespace(e, {
32
+ lng: n.lng,
33
+ precheck: (t, r) => {
34
+ if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, e)) return !1;
35
+ }
36
+ }), I = (e) => typeof e == "string", L = (e) => typeof e == "object" && !!e, R = x(), z = class {
37
+ constructor() {
38
+ this.usedNamespaces = {};
39
+ }
40
+ addUsedNamespaces(e) {
41
+ e.forEach((e) => {
42
+ this.usedNamespaces[e] || (this.usedNamespaces[e] = !0);
43
+ });
44
+ }
45
+ getUsedNamespaces() {
46
+ return Object.keys(this.usedNamespaces);
47
+ }
48
+ }, B = /* @__PURE__ */ u(((e) => {
49
+ var t = m("react");
50
+ function n(e, t) {
51
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
52
+ }
53
+ var r = typeof Object.is == "function" ? Object.is : n, i = t.useState, a = t.useEffect, o = t.useLayoutEffect, s = t.useDebugValue;
54
+ function c(e, t) {
55
+ var n = t(), r = i({ inst: {
56
+ value: n,
57
+ getSnapshot: t
58
+ } }), c = r[0].inst, u = r[1];
59
+ return o(function() {
60
+ c.value = n, c.getSnapshot = t, l(c) && u({ inst: c });
61
+ }, [
62
+ e,
63
+ n,
64
+ t
65
+ ]), a(function() {
66
+ return l(c) && u({ inst: c }), e(function() {
67
+ l(c) && u({ inst: c });
68
+ });
69
+ }, [e]), s(n), n;
70
+ }
71
+ function l(e) {
72
+ var t = e.getSnapshot;
73
+ e = e.value;
74
+ try {
75
+ var n = t();
76
+ return !r(e, n);
77
+ } catch {
78
+ return !0;
79
+ }
80
+ }
81
+ function u(e, t) {
82
+ return t();
83
+ }
84
+ var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
85
+ e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
86
+ })), V = /* @__PURE__ */ u(((e) => {
87
+ process.env.NODE_ENV !== "production" && (function() {
88
+ function t(e, t) {
89
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
90
+ }
91
+ function n(e, t) {
92
+ d || a.startTransition === void 0 || (d = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
93
+ var n = t();
94
+ if (!f) {
95
+ var i = t();
96
+ o(n, i) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
97
+ }
98
+ i = s({ inst: {
99
+ value: n,
100
+ getSnapshot: t
101
+ } });
102
+ var p = i[0].inst, m = i[1];
103
+ return l(function() {
104
+ p.value = n, p.getSnapshot = t, r(p) && m({ inst: p });
105
+ }, [
106
+ e,
107
+ n,
108
+ t
109
+ ]), c(function() {
110
+ return r(p) && m({ inst: p }), e(function() {
111
+ r(p) && m({ inst: p });
112
+ });
113
+ }, [e]), u(n), n;
114
+ }
115
+ function r(e) {
116
+ var t = e.getSnapshot;
117
+ e = e.value;
118
+ try {
119
+ var n = t();
120
+ return !o(e, n);
121
+ } catch {
122
+ return !0;
123
+ }
124
+ }
125
+ function i(e, t) {
126
+ return t();
127
+ }
128
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
129
+ var a = m("react"), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, c = a.useEffect, l = a.useLayoutEffect, u = a.useDebugValue, d = !1, f = !1, p = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? i : n;
130
+ e.useSyncExternalStore = a.useSyncExternalStore === void 0 ? p : a.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
131
+ })();
132
+ })), H = (/* @__PURE__ */ u(((e, t) => {
133
+ t.exports = process.env.NODE_ENV === "production" ? B() : V();
134
+ })))(), ee = {
135
+ t: (e, t) => {
136
+ if (I(t)) return t;
137
+ if (L(t) && I(t.defaultValue)) return t.defaultValue;
138
+ if (typeof e == "function") return "";
139
+ if (Array.isArray(e)) {
140
+ let t = e[e.length - 1];
141
+ return typeof t == "function" ? "" : t;
142
+ }
143
+ return e;
144
+ },
145
+ ready: !1
146
+ }, U = () => () => {}, W = (t, n = {}) => {
147
+ let { i18n: r } = n, { i18n: i, defaultNS: a } = w(R) || {}, o = r || i || e();
148
+ o && !o.reportNamespaces && (o.reportNamespaces = new z()), o || j(o, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");
149
+ let s = E(() => ({
150
+ ...d(),
151
+ ...o?.options?.react,
152
+ ...n
153
+ }), [o, n]), { useSuspense: c, keyPrefix: l } = s, u = t || a || o?.options?.defaultNS, f = I(u) ? [u] : u || ["translation"], p = E(() => f, f);
154
+ o?.reportNamespaces?.addUsedNamespaces?.(p);
155
+ let m = D(0), h = C((e) => {
156
+ if (!o) return U;
157
+ let { bindI18n: t, bindI18nStore: n } = s, r = () => {
158
+ m.current += 1, e();
159
+ };
160
+ return t && o.on(t, r), n && o.store.on(n, r), () => {
161
+ t && t.split(" ").forEach((e) => o.off(e, r)), n && n.split(" ").forEach((e) => o.store.off(e, r));
162
+ };
163
+ }, [o, s]), g = D(), _ = C(() => {
164
+ if (!o) return ee;
165
+ let e = !!(o.isInitialized || o.initializedStoreOnce) && p.every((e) => F(e, o, s)), t = n.lng || o.language, r = m.current, i = g.current;
166
+ if (i && i.ready === e && i.lng === t && i.keyPrefix === l && i.revision === r) return i;
167
+ let a = {
168
+ t: o.getFixedT(t, s.nsMode === "fallback" ? p : p[0], l, { scopeNs: p }),
169
+ ready: e,
170
+ lng: t,
171
+ keyPrefix: l,
172
+ revision: r
173
+ };
174
+ return g.current = a, a;
175
+ }, [
176
+ o,
177
+ p,
178
+ l,
179
+ s,
180
+ n.lng
181
+ ]), [v, y] = O(0), { t: b, ready: x } = (0, H.useSyncExternalStore)(h, _, _);
182
+ T(() => {
183
+ if (o && !x && !c) {
184
+ let e = () => y((e) => e + 1);
185
+ n.lng ? P(o, n.lng, p, e) : N(o, p, e);
186
+ }
187
+ }, [
188
+ o,
189
+ n.lng,
190
+ p,
191
+ x,
192
+ c,
193
+ v
194
+ ]);
195
+ let S = o || {}, k = D(null), A = D(), M = (e) => {
196
+ let t = Object.getOwnPropertyDescriptors(e);
197
+ t.__original && delete t.__original;
198
+ let n = Object.create(Object.getPrototypeOf(e), t);
199
+ if (!Object.prototype.hasOwnProperty.call(n, "__original")) try {
200
+ Object.defineProperty(n, "__original", {
201
+ value: e,
202
+ writable: !1,
203
+ enumerable: !1,
204
+ configurable: !1
205
+ });
206
+ } catch {}
207
+ return n;
208
+ }, L = E(() => {
209
+ let e = S, t = e?.language, n = e;
210
+ e && (k.current && k.current.__original === e && A.current === t ? n = k.current : (n = M(e), k.current = n, A.current = t));
211
+ let r = !x && !c ? (...e) => (j(o, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), b(...e)) : b, i = [
212
+ r,
213
+ n,
214
+ x
215
+ ];
216
+ return i.t = r, i.i18n = n, i.ready = x, i;
217
+ }, [
218
+ b,
219
+ S,
220
+ x,
221
+ S.resolvedLanguage,
222
+ S.language,
223
+ S.languages
224
+ ]);
225
+ if (o && c && !x) {
226
+ let e = !1;
227
+ try {
228
+ e = process.env.NODE_ENV !== "production";
229
+ } catch {}
230
+ throw e && j(o, "SUSPENDED_WHILE_LOADING", "useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"), new Promise((e) => {
231
+ let t = () => e();
232
+ n.lng ? P(o, n.lng, p, t) : N(o, p, t);
233
+ });
234
+ }
235
+ return L;
236
+ }, G = { app: x("app") }, K = (e = "app") => {
237
+ G[e] || (G[e] = x(e));
238
+ let t = S(G[e]);
239
+ if (!t) throw Error(r.use.contextErr({ key: e }));
240
+ return t;
241
+ }, q = (e) => {
242
+ let t = D(), n = D();
243
+ return t.current = e, n.current ||= (...e) => t.current(...e), n.current;
244
+ }, J = (e = {}) => {
245
+ let [t, n] = O(Object.keys(e).reduce((e, t) => (e[t] = `vast-${t}-0`, e), {})), r = D(e), i = D(!1), a = q((e) => {
246
+ let r = `vast-${e}-${v("-")}`;
247
+ n({
248
+ ...t,
249
+ [e]: r
250
+ });
251
+ }), o = (t, n = e) => {
252
+ let i = t ? n[t] : n;
253
+ if (typeof i != "object" || !i) return;
254
+ let o = new Proxy(i, {
255
+ get(e, n, r) {
256
+ let i = c(e), o = Reflect.get(e, n, i === "map" || i === "set" ? e : r);
257
+ return s(o, "function") ? [
258
+ "add",
259
+ "set",
260
+ "delete",
261
+ "clear",
262
+ "fill",
263
+ "pop",
264
+ "push",
265
+ "reverse",
266
+ "shift",
267
+ "sort",
268
+ "splice",
269
+ "unshift"
270
+ ].includes(n) ? (...r) => {
271
+ let i = o.apply(e, r);
272
+ return a(t ?? n), i;
273
+ } : (...t) => o.apply(e, t) : o;
274
+ },
275
+ set(e, n, r, i) {
276
+ if (Reflect.get(e, n, i) === r) return !0;
277
+ let o = Reflect.set(e, n, r, i);
278
+ return a(t ?? n), o;
279
+ },
280
+ deleteProperty(e, n) {
281
+ if (!Reflect.has(e, n)) return !0;
282
+ let r = Reflect.deleteProperty(e, n);
283
+ return a(t ?? n), r;
284
+ }
285
+ });
286
+ if (t) r.current[t] = o;
287
+ else return o;
288
+ };
289
+ if (!i.current) {
290
+ r.current = o();
291
+ for (let t in e) o(t);
292
+ i.current = !0;
293
+ }
294
+ return T(() => () => {
295
+ for (let e in r.current) delete r.current[e];
296
+ i.current = !1;
297
+ }, []), [t, r.current];
298
+ }, Y = (e, t) => {
299
+ let [n, r] = O(!0), i = D({
300
+ isMounted: !1,
301
+ lastCallId: 0
302
+ }).current;
303
+ T(() => {
304
+ i.isMounted = !0;
305
+ let e = !t?.length && a();
306
+ return async () => {
307
+ (await e)?.(), i.isMounted = !1;
308
+ };
309
+ }, []);
310
+ let a = C((...t) => {
311
+ let a = ++i.lastCallId;
312
+ return n || r(!0), e(...t).then((e) => (i.isMounted && a === i.lastCallId && r(!1), e), (e) => (i.isMounted && a === i.lastCallId && r(!1), e));
313
+ }, t);
314
+ return [n, a];
315
+ }, X = (e = "simple", t = []) => {
316
+ let n = {
317
+ exe: g.exe,
318
+ cv: g.cv,
319
+ db: g.db
320
+ }, i = D([
321
+ "store",
322
+ "system",
323
+ "project",
324
+ "level",
325
+ "defects",
326
+ "running",
327
+ ...t
328
+ ]).current, a = S(G.app);
329
+ switch (e) {
330
+ case "privatize": return Object.assign(n, a);
331
+ case "simple": return i.reduce((e, t) => (e[t] = a[t], e), n);
332
+ case "action": return [i.reduce((e, t) => (e[t] = a[t], e), n), {
333
+ sysAction: a.sysAction,
334
+ setRunning: a.setRunning,
335
+ proAction: a.proAction
336
+ }];
337
+ default: throw Error(r.use.patternErr({ pattern: e }));
338
+ }
339
+ }, Z = (e, t, n = { immediate: !1 }) => {
340
+ let r = D({
341
+ oldValue: null,
342
+ isInit: n.immediate,
343
+ isWatch: !0
344
+ }).current;
345
+ return T(() => {
346
+ r.isWatch && (r.isInit ? (h(t, r.oldValue) || e(t, r.oldValue), r.oldValue = p(t)) : r.isInit = !0);
347
+ }, t), () => {
348
+ r.isWatch = !1;
349
+ };
350
+ }, Q = (e = "") => {
351
+ if (!e) throw Error(r.use.prefixErr());
352
+ let { t } = W("translation", { keyPrefix: e });
353
+ return t;
354
+ }, te = (e, t, n = !1) => {
355
+ let r = q(e);
356
+ return T(() => (n && r(), o(t, r), () => a(t, r)), []), r;
357
+ }, $ = (e, t) => {
358
+ let n = D({
359
+ immediate: !1,
360
+ fps: 17,
361
+ beforeFn: null
362
+ }).current;
363
+ if (s(t, "boolean")) n.immediate = t;
364
+ else if (s(t, "number")) n.fps = t;
365
+ else if (s(t, "function")) n.beforeFn = t;
366
+ else if (s(t, "object")) for (let e in t) Object.hasOwn(n, e) && (n[e] = t[e]);
367
+ let r = y(e, 60 * n.fps);
368
+ T(() => (n.beforeFn?.(), n.immediate && r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), []);
369
+ }, ne = (e, t, n) => {
370
+ let [r, i] = O({
371
+ width: n?.width || 0,
372
+ height: n?.height || 0
373
+ }), a = D(), o = D({
374
+ immediate: !1,
375
+ fps: 17,
376
+ beforeFn: null
377
+ }).current;
378
+ if (s(n, "boolean")) o.immediate = n;
379
+ else if (s(n, "number")) o.fps = n;
380
+ else if (s(n, "function")) o.beforeFn = n;
381
+ else if (s(n, "object")) for (let e in n) Object.hasOwn(o, e) && (o[e] = n[e]);
382
+ let c = () => a.current?.observe?.(t.current), l = () => a.current?.unobserve?.(t.current), u = q((t) => {
383
+ let n = t[0].contentRect, { width: a, height: o } = n;
384
+ (a !== r.width || o !== r.height) && e?.(n, r), i({
385
+ width: a,
386
+ height: o
387
+ });
388
+ });
389
+ return T(() => {
390
+ if (t.current) return a.current = new ResizeObserver(y(u, 10 * o.fps)), a.current.observe(t.current), () => a.current?.disconnect?.();
391
+ }, [t, e]), $(() => {
392
+ if (!t.current) return;
393
+ let e = t.current;
394
+ i({
395
+ width: e.offsetWidth,
396
+ height: e.offsetHeight
397
+ });
398
+ }, n), [r, {
399
+ observe: c,
400
+ unobserve: l
401
+ }];
402
+ }, re = (e = "app", t = !1) => {
403
+ let { context: n } = X("privatize"), r = D(b.useMessage()), i = D([]), a = (e, t, { key: n, duration: a = 3, onClose: o } = {}) => {
404
+ let s = n || `msg_${v()}`;
405
+ return i.current.push(s), r.current[0].open({
406
+ key: s,
407
+ type: e,
408
+ content: t,
409
+ duration: a,
410
+ classNames: { root: "aoi-message" },
411
+ onClose: () => {
412
+ let e = i.current.indexOf(s);
413
+ e !== -1 && i.current.splice(e, 1), o?.();
414
+ }
415
+ }), s;
416
+ }, o = (e, t = {}) => a("success", e, t), s = (e, t = {}) => a("error", e, t);
417
+ return T(() => {
418
+ if (!n.msgs) return;
419
+ let i = n.msgs.get(e);
420
+ return i ? r.current = i : t || n.msgs.set(e, r.current), () => {
421
+ t && n.msgs.delete(e);
422
+ };
423
+ }, []), [{
424
+ success: o,
425
+ error: s,
426
+ info: (e, t = {}) => a("info", e, t),
427
+ warning: (e, t = {}) => a("warning", e, t),
428
+ loading: (e, t = {}) => {
429
+ let n = a("loading", e, {
430
+ duration: 0,
431
+ ...t
432
+ });
433
+ return {
434
+ key: n,
435
+ ok: (e) => o(e, { key: n }),
436
+ err: (e) => s(e, { key: n })
437
+ };
438
+ }
439
+ }, t ? r.current[1] : void 0];
440
+ }, ie = (e, n = {}) => {
441
+ let [a, o] = O(n), c = D(s(e, "function")).current, l = () => {
442
+ f(e, (e) => {
443
+ let t = {};
444
+ for (let r in n) t[r] = e?.[r] ?? n[r];
445
+ o(t);
446
+ });
447
+ }, u = (n) => {
448
+ t(e, n);
449
+ }, d = q((t, n, s = null) => {
450
+ a[t] = n, o({
451
+ ...a,
452
+ [t]: n
453
+ }), c && e(t, n), s?.(r.tool.setOk(), { key: i });
454
+ }), p = q((t, n = null) => {
455
+ o({
456
+ ...a,
457
+ ...t
458
+ }), c && e(t), n?.(r.tool.setOk(), { key: i });
459
+ });
460
+ T(() => {
461
+ c || l();
462
+ }, []);
463
+ let m = Z(([e]) => {
464
+ u(e);
465
+ }, [a]);
466
+ return c && m(), [a, {
467
+ setData: p,
468
+ setKey: d
469
+ }];
470
+ }, ae = (e, t = n) => {
471
+ let [r, i] = O([]), [a, o] = O(0), [s, c] = O({
472
+ current: 1,
473
+ pageSize: t[0]
474
+ }), l = D([]);
475
+ return [r, {
476
+ value: l.current,
477
+ current: s.current,
478
+ pageSize: s.pageSize,
479
+ options: t,
480
+ total: a,
481
+ setValue: (t, n) => {
482
+ let r = s.pageSize, a = s.current;
483
+ _(n) && (a = 1, !e && (l.current = t), o(n), c({
484
+ current: a,
485
+ pageSize: r
486
+ }));
487
+ let u = (a - 1) * r, d = u + r;
488
+ i(e ? t : t.slice(u, d));
489
+ },
490
+ onChange: (t, n) => {
491
+ let r = (t - 1) * n, a = r + n;
492
+ e ? e(t, n) : i(l.current.slice(r, a)), c({
493
+ current: t,
494
+ pageSize: n
495
+ });
496
+ }
497
+ }];
498
+ }, oe = () => {
499
+ let [e, t] = O({
500
+ ok: 0,
501
+ ng: 0
502
+ }), n = q((n) => {
503
+ let r = { ...e };
504
+ r[n ? "ok" : "ng"] += 1, t(r);
505
+ });
506
+ return {
507
+ statis: e,
508
+ data: E(() => [{
509
+ label: "OK",
510
+ value: e.ok,
511
+ color: l.ok
512
+ }, {
513
+ label: "NG",
514
+ value: e.ng,
515
+ color: l.ng
516
+ }], [e]),
517
+ increment: n,
518
+ clear: () => {
519
+ t({
520
+ ok: 0,
521
+ ng: 0
522
+ });
523
+ }
524
+ };
525
+ };
526
+ //#endregion
527
+ export { R as _, ie as a, k as b, te as c, Q as d, $ as f, W as g, Z as h, Y as i, ae as l, J as m, G as n, re as o, X as p, K as r, ne as s, oe as t, q as u, L as v, j as x, I as y };
package/dist/hooks.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./hooks-FYdXNEDe.js";
2
- export { d as Contexts, o as useAppContext, l as useAsync, i as useFileState, e as useMessage, s as useOnEvent, u as usePagination, t as usePersistFn, a as usePrefixT, f as useResize, n as useStore, r as useVastState, c as useWatch };
1
+ import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./hooks-CdZsOQlG.js";
2
+ export { c as Contexts, d as useAppContext, a as useAsync, e as useFileState, l as useMessage, f as useObserver, t as useOnEvent, o as usePagination, m as usePersistFn, n as usePrefixT, r as useResize, p as useRunStatis, u as useStore, s as useVastState, i as useWatch };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./packages-Dd2mV9Xv.js";
1
+ import { n as e, t } from "./packages-CZzUFKwt.js";
2
2
  export { t as AoiGlobal, e as aoiInit };
@@ -1,6 +1,6 @@
1
- import { B as e, R as t, T as n, V as r, d as i, et as a, f as o, i as s, it as c, l, m as u, rt as d, t as f, u as p } from "./Geometry-CN7W9DnD.js";
2
- import { t as m } from "./canvasUtils-D0KM_fKp.js";
3
- import { t as h } from "./CanvasPool-C3aVgvEX.js";
1
+ import { B as e, R as t, T as n, V as r, d as i, et as a, f as o, i as s, it as c, l, m as u, rt as d, t as f, u as p } from "./Geometry-aazo6sAf.js";
2
+ import { t as m } from "./canvasUtils-De2q5tyg.js";
3
+ import { t as h } from "./CanvasPool-BsgAe0a6.js";
4
4
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/bounds/getRenderableBounds.mjs
5
5
  var g = new a();
6
6
  function _(e, t) {
@@ -10,7 +10,7 @@ function _(e, t) {
10
10
  let r = e[n];
11
11
  if (r.globalDisplayStatus < 7) continue;
12
12
  let i = r.renderGroup ?? r.parentRenderGroup;
13
- i?.isCachedAsTexture ? t.matrix = g.copyFrom(i.textureOffsetInverseTransform).append(r.worldTransform) : i?._parentCacheAsTextureRenderGroup ? t.matrix = g.copyFrom(i._parentCacheAsTextureRenderGroup.inverseWorldTransform).append(r.groupTransform) : t.matrix = r.worldTransform, t.addBounds(r.bounds);
13
+ t.matrix = i?.isCachedAsTexture ? g.copyFrom(i.textureOffsetInverseTransform).append(r.worldTransform) : i?._parentCacheAsTextureRenderGroup ? g.copyFrom(i._parentCacheAsTextureRenderGroup.inverseWorldTransform).append(r.groupTransform) : r.worldTransform, t.addBounds(r.bounds);
14
14
  }
15
15
  return t.matrix = n, t;
16
16
  }
@@ -1,5 +1,5 @@
1
- import { B as e, C as t, D as n, M as r, N as i, Q as a, R as o, U as s, V as c, W as l, _ as u, b as d, it as f, j as p, rt as m, x as h, y as g } from "./Geometry-CN7W9DnD.js";
2
- import { r as _ } from "./canvasUtils-D0KM_fKp.js";
1
+ import { B as e, C as t, D as n, M as r, N as i, Q as a, R as o, U as s, V as c, W as l, _ as u, b as d, it as f, j as p, rt as m, x as h, y as g } from "./Geometry-aazo6sAf.js";
2
+ import { r as _ } from "./canvasUtils-De2q5tyg.js";
3
3
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/mask/utils/addMaskBounds.mjs
4
4
  var v = new e();
5
5
  function y(e, t, n) {
@@ -11,8 +11,8 @@ function y(e, t, n) {
11
11
  function b(e, t, a) {
12
12
  let o = r.get();
13
13
  e.measurable = !0;
14
- let s = i.get().identity();
15
- n(e, o, x(e, a, s)), e.measurable = !1, t.addBoundsMask(o), i.return(s), r.return(o);
14
+ let s = i.get().identity(), c = x(e, a, s);
15
+ n(e, o, c), e.measurable = !1, t.addBoundsMask(o), i.return(s), r.return(o);
16
16
  }
17
17
  function x(e, t, n) {
18
18
  return e ? (e !== t && (x(e.parent, t, n), e.updateLocalTransform(), n.append(e.localTransform)), n) : (o("Mask bounds, renderable is not inside the root container"), n);
@@ -131,7 +131,7 @@ var D = class e extends l {
131
131
  }
132
132
  }
133
133
  _videoFrameRequestCallback() {
134
- this.updateFrame(), this.destroyed ? this._videoFrameRequestCallbackHandle = null : this._videoFrameRequestCallbackHandle = this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback);
134
+ this.updateFrame(), this._videoFrameRequestCallbackHandle = this.destroyed ? null : this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback);
135
135
  }
136
136
  get isValid() {
137
137
  return !!this.resource.videoWidth && !!this.resource.videoHeight;
@@ -317,21 +317,23 @@ function B(e, t) {
317
317
  else if (o === 47) break;
318
318
  else o = 47;
319
319
  if (o === 47) {
320
- if (!(i === s - 1 || a === 1)) if (i !== s - 1 && a === 2) {
321
- if (n.length < 2 || r !== 2 || n.charCodeAt(n.length - 1) !== 46 || n.charCodeAt(n.length - 2) !== 46) {
322
- if (n.length > 2) {
323
- let e = n.lastIndexOf("/");
324
- if (e !== n.length - 1) {
325
- e === -1 ? (n = "", r = 0) : (n = n.slice(0, e), r = n.length - 1 - n.lastIndexOf("/")), i = s, a = 0;
320
+ if (i !== s - 1 && a !== 1) {
321
+ if (i !== s - 1 && a === 2) {
322
+ if (n.length < 2 || r !== 2 || n.charCodeAt(n.length - 1) !== 46 || n.charCodeAt(n.length - 2) !== 46) {
323
+ if (n.length > 2) {
324
+ let e = n.lastIndexOf("/");
325
+ if (e !== n.length - 1) {
326
+ e === -1 ? (n = "", r = 0) : (n = n.slice(0, e), r = n.length - 1 - n.lastIndexOf("/")), i = s, a = 0;
327
+ continue;
328
+ }
329
+ } else if (n.length === 2 || n.length === 1) {
330
+ n = "", r = 0, i = s, a = 0;
326
331
  continue;
327
332
  }
328
- } else if (n.length === 2 || n.length === 1) {
329
- n = "", r = 0, i = s, a = 0;
330
- continue;
331
333
  }
332
- }
333
- t && (n.length > 0 ? n += "/.." : n = "..", r = 2);
334
- } else n.length > 0 ? n += `/${e.slice(i + 1, s)}` : n = e.slice(i + 1, s), r = s - i - 1;
334
+ t && (n.length > 0 ? n += "/.." : n = "..", r = 2);
335
+ } else n.length > 0 ? n += `/${e.slice(i + 1, s)}` : n = e.slice(i + 1, s), r = s - i - 1;
336
+ }
335
337
  i = s, a = 0;
336
338
  } else o === 46 && a !== -1 ? ++a : a = -1;
337
339
  }
@@ -382,10 +384,12 @@ var V = {
382
384
  let t;
383
385
  for (let n = 0; n < e.length; ++n) {
384
386
  let r = e[n];
385
- if (I(r), r.length > 0) if (t === void 0) t = r;
386
- else {
387
- let i = e[n - 1] ?? "";
388
- this.joinExtensions.includes(this.extname(i).toLowerCase()) ? t += `/../${r}` : t += `/${r}`;
387
+ if (I(r), r.length > 0) {
388
+ if (t === void 0) t = r;
389
+ else {
390
+ let i = e[n - 1] ?? "";
391
+ this.joinExtensions.includes(this.extname(i).toLowerCase()) ? t += `/../${r}` : t += `/${r}`;
392
+ }
389
393
  }
390
394
  }
391
395
  return t === void 0 ? "." : this.normalize(t);
@@ -477,7 +481,7 @@ var V = {
477
481
  }
478
482
  s === -1 && (c = !1, s = l + 1), n === 46 ? a === -1 ? a = l : u !== 1 && (u = 1) : a !== -1 && (u = -1);
479
483
  }
480
- return a === -1 || s === -1 || u === 0 || u === 1 && a === s - 1 && a === o + 1 ? s !== -1 && (o === 0 && r ? t.base = t.name = e.slice(1, s) : t.base = t.name = e.slice(o, s)) : (o === 0 && r ? (t.name = e.slice(1, a), t.base = e.slice(1, s)) : (t.name = e.slice(o, a), t.base = e.slice(o, s)), t.ext = e.slice(a, s)), t.dir = this.dirname(e), t;
484
+ return a === -1 || s === -1 || u === 0 || u === 1 && a === s - 1 && a === o + 1 ? s !== -1 && (t.base = t.name = o === 0 && r ? e.slice(1, s) : e.slice(o, s)) : (o === 0 && r ? (t.name = e.slice(1, a), t.base = e.slice(1, s)) : (t.name = e.slice(o, a), t.base = e.slice(o, s)), t.ext = e.slice(a, s)), t.dir = this.dirname(e), t;
481
485
  },
482
486
  sep: "/",
483
487
  delimiter: ":",
@@ -646,18 +650,20 @@ var W = (e) => !Array.isArray(e), G = class {
646
650
  e = k(e);
647
651
  let n = {};
648
652
  return e.forEach((e) => {
649
- if (!this._resolverHash[e]) if (this._assetMap[e]) {
650
- let t = this._assetMap[e], n = this._getPreferredOrder(t);
651
- n?.priority.forEach((e) => {
652
- n.params[e].forEach((n) => {
653
- let r = t.filter((t) => t[e] ? t[e] === n : !1);
654
- r.length && (t = r);
655
- });
656
- }), this._resolverHash[e] = t[0];
657
- } else this._resolverHash[e] = this._buildResolvedAsset({
658
- alias: [e],
659
- src: e
660
- }, {});
653
+ if (!this._resolverHash[e]) {
654
+ if (this._assetMap[e]) {
655
+ let t = this._assetMap[e], n = this._getPreferredOrder(t);
656
+ n?.priority.forEach((e) => {
657
+ n.params[e].forEach((n) => {
658
+ let r = t.filter((t) => t[e] ? t[e] === n : !1);
659
+ r.length && (t = r);
660
+ });
661
+ }), this._resolverHash[e] = t[0];
662
+ } else this._resolverHash[e] = this._buildResolvedAsset({
663
+ alias: [e],
664
+ src: e
665
+ }, {});
666
+ }
661
667
  n[e] = this._resolverHash[e];
662
668
  }), t ? n[e[0]] : n;
663
669
  }