@camstack/addon-benchmark 1.1.12 → 1.1.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/{MaskShapeCanvas-DwXCR2iE.mjs → MaskShapeCanvas-BDvrLf-K.mjs} +37 -37
- package/dist/{MotionZonesSettings-D-sZCPy7.mjs → MotionZonesSettings-DR5v-Kms.mjs} +123 -123
- package/dist/{PrivacyMaskSettings-D7V1HFBh.mjs → PrivacyMaskSettings-CNmV82I5.mjs} +22 -22
- package/dist/{ReactKonva-xvRRqI5S.mjs → ReactKonva-DXzDAU1q.mjs} +21 -21
- package/dist/_stub.js +4988 -4614
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-q1V8Mjtq.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-WGtxmN8x.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CfDgveTk.mjs +26 -0
- package/dist/{_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-Bnj8XQnA.mjs → _virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs} +1 -1
- package/dist/addon-benchmark.css +1 -1
- package/dist/{hostInit-DUdagAtd.mjs → hostInit-cvAsYTN3.mjs} +3 -3
- package/dist/index.js +15 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -6
- package/dist/index.mjs.map +1 -1
- package/dist/{player-overlays-D1-hCqsW.mjs → player-overlays-BPYk8orA.mjs} +30 -30
- package/dist/remoteEntry.js +1 -1
- package/dist/{trash-2-DiN5J6s4.mjs → trash-2-B0VQvfAb.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-De28aga9.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-CNVmLL1u.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DBUeUEtt.mjs +0 -26
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e, g as t, h as n, p as r, u as i, x as a } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
|
|
2
2
|
import { n as o, r as s, t as ee } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-SOU_VnTj.mjs";
|
|
3
|
-
import { a as te, f as c, i as ne, p as re, s as ie, t as l, u } from "./player-overlays-
|
|
4
|
-
import { n as d, r as f, t as p } from "./trash-2-
|
|
5
|
-
import { MaskShapeCanvas as m } from "./MaskShapeCanvas-
|
|
3
|
+
import { a as te, f as c, i as ne, p as re, s as ie, t as l, u } from "./player-overlays-BPYk8orA.mjs";
|
|
4
|
+
import { n as d, r as f, t as p } from "./trash-2-B0VQvfAb.mjs";
|
|
5
|
+
import { MaskShapeCanvas as m } from "./MaskShapeCanvas-BDvrLf-K.mjs";
|
|
6
6
|
var h = u("hexagon", [["path", {
|
|
7
7
|
d: "M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",
|
|
8
8
|
key: "yt0hxn"
|
|
9
9
|
}]]);
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../ui-library/src/composites/cap-settings/PrivacyMaskSettings.tsx
|
|
12
|
-
|
|
12
|
+
a();
|
|
13
13
|
var g = 120, _ = "privacy-mask", v = "rounded-md border border-border bg-surface px-2 py-1 text-[11px] font-medium text-foreground-subtle hover:bg-surface-hover disabled:opacity-40 transition-colors", y = "rounded-md border border-primary/50 bg-primary/15 px-2.5 py-1 text-[11px] font-medium text-primary hover:bg-primary/25 disabled:opacity-40 transition-colors";
|
|
14
14
|
function b(e) {
|
|
15
15
|
return e.kind === "rect" || e.kind === "polygon" ? e : null;
|
|
@@ -24,9 +24,9 @@ function S(e, t) {
|
|
|
24
24
|
for (let n = 0; n < e.length; n += 1) if (JSON.stringify(e[n]) !== JSON.stringify(t[n])) return !1;
|
|
25
25
|
return !0;
|
|
26
26
|
}
|
|
27
|
-
function C({ deviceId:
|
|
28
|
-
let u = te(ie().trpcClient,
|
|
29
|
-
|
|
27
|
+
function C({ deviceId: a }) {
|
|
28
|
+
let u = te(ie().trpcClient, a), [C, w] = t(null), [T, E] = t(!1), [D, O] = t(null), [k, A] = t(null), [j, M] = t(!1), [N, P] = t(!1), [F, I] = t(null), [L, R] = t(null), z = n(!1);
|
|
29
|
+
i(() => {
|
|
30
30
|
if (!u) return;
|
|
31
31
|
let e = !1;
|
|
32
32
|
return z.current = !1, w(null), E(!1), O(null), A(null), P(!1), I(null), R(null), (async () => {
|
|
@@ -52,23 +52,23 @@ function C({ deviceId: e }) {
|
|
|
52
52
|
e = !0;
|
|
53
53
|
};
|
|
54
54
|
}, [u]);
|
|
55
|
-
let B =
|
|
56
|
-
|
|
55
|
+
let B = r(() => D !== null && k !== null && (D.enabled !== k.enabled || !S(D.regions, k.regions)), [D, k]), V = D ? D.regions.length : 0, H = C ? C.maxRegions : 0, U = n(0);
|
|
56
|
+
i(() => {
|
|
57
57
|
U.current = H;
|
|
58
58
|
}, [H]);
|
|
59
|
-
let W = H > 0 && V >= H, G =
|
|
59
|
+
let W = H > 0 && V >= H, G = e(() => {
|
|
60
60
|
O((e) => e && {
|
|
61
61
|
...e,
|
|
62
62
|
enabled: !e.enabled
|
|
63
63
|
});
|
|
64
|
-
}, []), K =
|
|
64
|
+
}, []), K = e((e) => {
|
|
65
65
|
I(typeof e == "number" ? e : null);
|
|
66
|
-
}, []), q =
|
|
66
|
+
}, []), q = r(() => D ? D.regions.map((e) => ({
|
|
67
67
|
id: e.id,
|
|
68
68
|
shape: e.shape,
|
|
69
69
|
enabled: e.enabled,
|
|
70
70
|
label: `Zone ${String(e.id)}`
|
|
71
|
-
})) : [], [D]), J =
|
|
71
|
+
})) : [], [D]), J = e((e, t) => {
|
|
72
72
|
let n = b(t);
|
|
73
73
|
n && O((t) => t && {
|
|
74
74
|
...t,
|
|
@@ -77,7 +77,7 @@ function C({ deviceId: e }) {
|
|
|
77
77
|
shape: n
|
|
78
78
|
} : t)
|
|
79
79
|
});
|
|
80
|
-
}, []), Y =
|
|
80
|
+
}, []), Y = e((e) => {
|
|
81
81
|
let t = b(e);
|
|
82
82
|
t && (R(null), O((e) => {
|
|
83
83
|
if (!e) return e;
|
|
@@ -93,21 +93,21 @@ function C({ deviceId: e }) {
|
|
|
93
93
|
regions: [...e.regions, i]
|
|
94
94
|
};
|
|
95
95
|
}));
|
|
96
|
-
}, []), X =
|
|
96
|
+
}, []), X = e((e) => {
|
|
97
97
|
P(!0), I(null), R(e);
|
|
98
|
-
}, []), ae =
|
|
98
|
+
}, []), ae = e((e) => {
|
|
99
99
|
P(!0), R(null), I(e);
|
|
100
|
-
}, []), Z =
|
|
100
|
+
}, []), Z = e((e) => {
|
|
101
101
|
I((t) => t === e ? null : t), O((t) => t && {
|
|
102
102
|
...t,
|
|
103
103
|
regions: t.regions.filter((t) => t.id !== e)
|
|
104
104
|
});
|
|
105
|
-
}, []), oe =
|
|
105
|
+
}, []), oe = e(() => {
|
|
106
106
|
R(null), I(null), k && O({
|
|
107
107
|
enabled: k.enabled,
|
|
108
108
|
regions: k.regions
|
|
109
109
|
});
|
|
110
|
-
}, [k]), se =
|
|
110
|
+
}, [k]), se = e(async () => {
|
|
111
111
|
if (!(!u || !D)) {
|
|
112
112
|
M(!0);
|
|
113
113
|
try {
|
|
@@ -129,10 +129,10 @@ function C({ deviceId: e }) {
|
|
|
129
129
|
M(!1);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
}, [u, D]), ce =
|
|
132
|
+
}, [u, D]), ce = e(() => {
|
|
133
133
|
P((e) => (e && (R(null), I(null)), !e));
|
|
134
134
|
}, []), Q = C?.supportedShapes ?? [];
|
|
135
|
-
l(
|
|
135
|
+
l(r(() => N && !T && C && D ? {
|
|
136
136
|
id: _,
|
|
137
137
|
order: g,
|
|
138
138
|
node: /* @__PURE__ */ o(m, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, i as t, r as n, t as r } from "./rolldown-runtime-HEgqtunE.mjs";
|
|
2
|
-
import { b as i, d as a,
|
|
2
|
+
import { b as i, d as a, g as o, l as s, n as c, o as l, p as u, s as d, t as f, x as p, y as m } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
|
|
3
3
|
import { n as h, r as g } from "./lib-CVGFTwe0.mjs";
|
|
4
4
|
//#region ../../node_modules/konva/lib/Core.js
|
|
5
|
-
|
|
5
|
+
p();
|
|
6
6
|
var _ = h, v = /* @__PURE__ */ r(((e) => {
|
|
7
7
|
function t(e, t) {
|
|
8
8
|
var n = e.length;
|
|
@@ -337,7 +337,7 @@ var _ = h, v = /* @__PURE__ */ r(((e) => {
|
|
|
337
337
|
}
|
|
338
338
|
return null;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function m(e) {
|
|
341
341
|
return { current: e };
|
|
342
342
|
}
|
|
343
343
|
function h(e) {
|
|
@@ -4478,7 +4478,7 @@ var _ = h, v = /* @__PURE__ */ r(((e) => {
|
|
|
4478
4478
|
function Ga(e, t) {
|
|
4479
4479
|
Wa(e, t), (e = e.alternate) && Wa(e, t);
|
|
4480
4480
|
}
|
|
4481
|
-
var O = {}, Ka = (
|
|
4481
|
+
var O = {}, Ka = (p(), t(i)), qa = ee(), Ja = Object.assign, Ya = Symbol.for("react.element"), Xa = Symbol.for("react.transitional.element"), Za = Symbol.for("react.portal"), Qa = Symbol.for("react.fragment"), $a = Symbol.for("react.strict_mode"), eo = Symbol.for("react.profiler"), to = Symbol.for("react.consumer"), no = Symbol.for("react.context"), ro = Symbol.for("react.forward_ref"), io = Symbol.for("react.suspense"), ao = Symbol.for("react.suspense_list"), oo = Symbol.for("react.memo"), so = Symbol.for("react.lazy"), co = Symbol.for("react.activity"), lo = Symbol.for("react.memo_cache_sentinel"), uo = Symbol.iterator, fo = Symbol.for("react.client.reference"), po = Array.isArray, k = Ka.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, mo = e.rendererVersion, ho = e.rendererPackageName, go = e.extraDevToolsConfig, _o = e.getPublicInstance, vo = e.getRootHostContext, yo = e.getChildHostContext, bo = e.prepareForCommit, xo = e.resetAfterCommit, So = e.createInstance;
|
|
4482
4482
|
e.cloneMutableInstance;
|
|
4483
4483
|
var Co = e.appendInitialChild, wo = e.finalizeInitialChildren, To = e.shouldSetTextContent, Eo = e.createTextInstance;
|
|
4484
4484
|
e.cloneMutableTextInstance;
|
|
@@ -4522,7 +4522,7 @@ var _ = h, v = /* @__PURE__ */ r(((e) => {
|
|
|
4522
4522
|
return;
|
|
4523
4523
|
}
|
|
4524
4524
|
console.error(e);
|
|
4525
|
-
}, Zc = Object.prototype.hasOwnProperty, Qc, $c, el = !1, tl = /* @__PURE__ */ new WeakMap(), nl = [], rl = 0, il = null, al = 0, ol = [], sl = 0, cl = null, ll = 1, ul = "", P =
|
|
4525
|
+
}, Zc = Object.prototype.hasOwnProperty, Qc, $c, el = !1, tl = /* @__PURE__ */ new WeakMap(), nl = [], rl = 0, il = null, al = 0, ol = [], sl = 0, cl = null, ll = 1, ul = "", P = m(null), dl = m(null), fl = m(null), pl = m(null), F = null, I = null, L = !1, ml = null, hl = !1, gl = Error(a(519)), _l = m(null), vl = null, yl = null, bl = typeof AbortController < "u" ? AbortController : function() {
|
|
4526
4526
|
var e = [], t = this.signal = {
|
|
4527
4527
|
aborted: !1,
|
|
4528
4528
|
addEventListener: function(t, n) {
|
|
@@ -4545,7 +4545,7 @@ var _ = h, v = /* @__PURE__ */ r(((e) => {
|
|
|
4545
4545
|
k.S = function(e, t) {
|
|
4546
4546
|
Hu = Bc(), typeof t == "object" && t && typeof t.then == "function" && rt(e, t), Nl !== null && Nl(e, t);
|
|
4547
4547
|
};
|
|
4548
|
-
var Pl =
|
|
4548
|
+
var Pl = m(null), Fl = Error(a(460)), Il = Error(a(474)), Ll = Error(a(542)), Rl = { then: function() {} }, zl = null, Bl = null, Vl = 0, Hl = vt(!0), Ul = vt(!1), Wl = [], Gl = 0, Kl = 0, ql = !1, Jl = !1, Yl = m(null), Xl = m(0), Zl = m(null), Ql = null, z = m(0), $l = 0, B = null, V = null, H = null, eu = !1, tu = !1, nu = !1, ru = 0, iu = 0, au = null, ou = 0, su = {
|
|
4549
4549
|
readContext: y,
|
|
4550
4550
|
use: $t,
|
|
4551
4551
|
useCallback: x,
|
|
@@ -5261,11 +5261,11 @@ function xt() {}
|
|
|
5261
5261
|
function St() {
|
|
5262
5262
|
return null;
|
|
5263
5263
|
}
|
|
5264
|
-
var Ct = /* @__PURE__ */
|
|
5264
|
+
var Ct = /* @__PURE__ */ m.createContext(null);
|
|
5265
5265
|
function wt() {}
|
|
5266
5266
|
//#endregion
|
|
5267
5267
|
//#region ../../node_modules/its-fine/dist/index.js
|
|
5268
|
-
|
|
5268
|
+
p();
|
|
5269
5269
|
function Tt(e, t, n) {
|
|
5270
5270
|
if (!e) return;
|
|
5271
5271
|
if (n(e) === !0) return e;
|
|
@@ -5337,22 +5337,22 @@ function Nt() {
|
|
|
5337
5337
|
value: e.get(n)
|
|
5338
5338
|
})), (e) => /* @__PURE__ */ c(Ot, { ...e })), [e]);
|
|
5339
5339
|
}
|
|
5340
|
-
if (
|
|
5340
|
+
if (p(), m.version.indexOf("19") === -1) throw Error("react-konva version 19 is only compatible with React 19. Make sure to have the last version of react-konva and react or downgrade react-konva to version 18.");
|
|
5341
5341
|
function Pt(e) {
|
|
5342
|
-
let t =
|
|
5343
|
-
return
|
|
5342
|
+
let t = m.useRef({});
|
|
5343
|
+
return m.useLayoutEffect(() => {
|
|
5344
5344
|
t.current = e;
|
|
5345
|
-
}),
|
|
5345
|
+
}), m.useLayoutEffect(() => () => {
|
|
5346
5346
|
t.current = {};
|
|
5347
5347
|
}, []), t.current;
|
|
5348
5348
|
}
|
|
5349
5349
|
var Ft = () => {
|
|
5350
|
-
let e =
|
|
5351
|
-
return
|
|
5350
|
+
let e = m.useRef(0);
|
|
5351
|
+
return m.useMemo(() => {
|
|
5352
5352
|
e.current++;
|
|
5353
5353
|
}, []), e.current > 1;
|
|
5354
5354
|
}, It = (e) => {
|
|
5355
|
-
let t =
|
|
5355
|
+
let t = m.useRef(null), n = m.useRef(null), r = m.useRef(null), i = Pt(e), a = Nt(), o = m.useRef(null), s = (t) => {
|
|
5356
5356
|
let { forwardedRef: n } = e;
|
|
5357
5357
|
n && (typeof n == "function" ? n(t) : n.current = t);
|
|
5358
5358
|
}, c = Ft(), l = () => {
|
|
@@ -5360,15 +5360,15 @@ var Ft = () => {
|
|
|
5360
5360
|
en.updateContainer(null, r.current, null);
|
|
5361
5361
|
}), n.current?.destroy(), n.current = null;
|
|
5362
5362
|
};
|
|
5363
|
-
return
|
|
5363
|
+
return m.useLayoutEffect(() => (o.current &&= (clearTimeout(o.current), null), n.current ? s(n.current) : (n.current = new _.Stage({
|
|
5364
5364
|
width: e.width,
|
|
5365
5365
|
height: e.height,
|
|
5366
5366
|
container: t.current
|
|
5367
|
-
}), s(n.current), r.current = en.createContainer(n.current, oe.ConcurrentRoot, null, !1, null, "", console.error, console.error, console.error, null), en.updateContainer(
|
|
5367
|
+
}), s(n.current), r.current = en.createContainer(n.current, oe.ConcurrentRoot, null, !1, null, "", console.error, console.error, console.error, null), en.updateContainer(m.createElement(a, {}, e.children), r.current, null, () => {})), () => {
|
|
5368
5368
|
c ? o.current = setTimeout(l, 0) : l();
|
|
5369
|
-
}), []),
|
|
5370
|
-
s(n.current), be(n.current, e, i), en.updateContainer(
|
|
5371
|
-
}),
|
|
5369
|
+
}), []), m.useLayoutEffect(() => {
|
|
5370
|
+
s(n.current), be(n.current, e, i), en.updateContainer(m.createElement(a, {}, e.children), r.current, null), en.flushSyncWork();
|
|
5371
|
+
}), m.createElement("div", {
|
|
5372
5372
|
ref: t,
|
|
5373
5373
|
id: e.id,
|
|
5374
5374
|
accessKey: e.accessKey,
|
|
@@ -5380,7 +5380,7 @@ var Ft = () => {
|
|
|
5380
5380
|
});
|
|
5381
5381
|
}, Lt = "Layer", Rt = "FastLayer", zt = "Group", Bt = "Label", Vt = "Rect", b = "Circle", Ht = "Ellipse", x = "Wedge", Ut = "Line", Wt = "Sprite", Gt = "Image", Kt = "Text", qt = "TextPath", Jt = "Star", Yt = "Ring", Xt = "Path", S = "RegularPolygon", C = "Arrow", Zt = "Shape", Qt = "Transformer", $t = "19.2.5", en = (0, ae.default)(Se);
|
|
5382
5382
|
_e(() => en.flushSyncWork());
|
|
5383
|
-
var tn =
|
|
5383
|
+
var tn = m.forwardRef((e, t) => m.createElement(Ot, {}, m.createElement(It, {
|
|
5384
5384
|
...e,
|
|
5385
5385
|
forwardedRef: t
|
|
5386
5386
|
}))), nn = fe, rn = /* @__PURE__ */ n({
|