@camstack/addon-osd-manager 0.1.156 → 0.1.157
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-BEVxAjNq.mjs → MaskShapeCanvas-BT714ljC.mjs} +113 -113
- package/dist/MotionZonesSettings-vYt4dibj.mjs +310 -0
- package/dist/{PrivacyMaskSettings-Ci65qYWB.mjs → PrivacyMaskSettings-BiQ78hst.mjs} +35 -60
- package/dist/{SceneMonitorEditor-BG9mHyrC.mjs → SceneMonitorEditor-CJtJIyMf.mjs} +307 -307
- package/dist/_stub.js +11764 -4485
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BDKvyj3r.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-DdAtpC7z.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BtgV-Ym5.mjs +26 -0
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CHxDN0gE.mjs +26 -0
- package/dist/{_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs → _virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C5jUMd7X.mjs} +1 -1
- package/dist/{_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_2_dom__loadShare__.js-C0K4h_0e.mjs → _virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_2_dom__loadShare__.js-qB5uHZAd.mjs} +8 -7
- package/dist/addon-osd-manager.css +1 -1
- package/dist/{hostInit-DdhUwSkK.mjs → hostInit-0Mc7Fm1R.mjs} +2 -2
- package/dist/index.js +537 -31
- package/dist/index.mjs +537 -31
- package/dist/{player-overlays-C_Gmuzev.mjs → player-overlays-BPyna-eI.mjs} +14 -14
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-C-9Ko8kt.mjs → responsive-B0yDP9vf.mjs} +31 -27
- package/dist/{scene-monitor-copy-DudW1LZg.mjs → scene-monitor-copy-BzX20O6q.mjs} +13 -13
- package/dist/{square-CpweDmax.mjs → square-BOMOn_6j.mjs} +29 -4
- package/dist/{trash-2-cb_YtxOy.mjs → trash-2-BolGRl2P.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Dly_n9Qj.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-UY9P_4V2.mjs} +1 -1
- package/package.json +1 -1
- package/dist/MotionZonesSettings-DaDfau7A.mjs +0 -310
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BTkfkwrM.mjs +0 -26
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DmzTg7Gl.mjs +0 -25
|
@@ -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 {
|
|
2
|
+
import { a as i, b as a, c as o, f as s, g as c, h as l, l as u, m as d, n as f, o as p, s as m, t as h, u as g, v as _, y as v } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C5jUMd7X.mjs";
|
|
3
3
|
import { n as y, r as b } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
|
|
4
4
|
//#region ../../node_modules/konva/lib/Global.js
|
|
5
|
-
|
|
5
|
+
a();
|
|
6
6
|
var x = Math.PI / 180;
|
|
7
7
|
function S() {
|
|
8
8
|
return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
|
|
@@ -7956,7 +7956,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
7956
7956
|
}
|
|
7957
7957
|
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
7958
7958
|
}
|
|
7959
|
-
function
|
|
7959
|
+
function o(e) {
|
|
7960
7960
|
var t = e, n = e;
|
|
7961
7961
|
if (e.alternate) for (; t.return;) t = t.return;
|
|
7962
7962
|
else {
|
|
@@ -7967,43 +7967,43 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
7967
7967
|
}
|
|
7968
7968
|
return t.tag === 3 ? n : null;
|
|
7969
7969
|
}
|
|
7970
|
-
function o(e) {
|
|
7971
|
-
if (a(e) !== e) throw Error(i(188));
|
|
7972
|
-
}
|
|
7973
7970
|
function s(e) {
|
|
7971
|
+
if (o(e) !== e) throw Error(i(188));
|
|
7972
|
+
}
|
|
7973
|
+
function c(e) {
|
|
7974
7974
|
var t = e.alternate;
|
|
7975
7975
|
if (!t) {
|
|
7976
|
-
if (t =
|
|
7976
|
+
if (t = o(e), t === null) throw Error(i(188));
|
|
7977
7977
|
return t === e ? e : null;
|
|
7978
7978
|
}
|
|
7979
7979
|
for (var n = e, r = t;;) {
|
|
7980
|
-
var
|
|
7981
|
-
if (
|
|
7982
|
-
var c =
|
|
7980
|
+
var a = n.return;
|
|
7981
|
+
if (a === null) break;
|
|
7982
|
+
var c = a.alternate;
|
|
7983
7983
|
if (c === null) {
|
|
7984
|
-
if (r =
|
|
7984
|
+
if (r = a.return, r !== null) {
|
|
7985
7985
|
n = r;
|
|
7986
7986
|
continue;
|
|
7987
7987
|
}
|
|
7988
7988
|
break;
|
|
7989
7989
|
}
|
|
7990
|
-
if (
|
|
7991
|
-
for (c =
|
|
7992
|
-
if (c === n) return
|
|
7993
|
-
if (c === r) return
|
|
7990
|
+
if (a.child === c.child) {
|
|
7991
|
+
for (c = a.child; c;) {
|
|
7992
|
+
if (c === n) return s(a), e;
|
|
7993
|
+
if (c === r) return s(a), t;
|
|
7994
7994
|
c = c.sibling;
|
|
7995
7995
|
}
|
|
7996
7996
|
throw Error(i(188));
|
|
7997
7997
|
}
|
|
7998
|
-
if (n.return !== r.return) n =
|
|
7998
|
+
if (n.return !== r.return) n = a, r = c;
|
|
7999
7999
|
else {
|
|
8000
|
-
for (var l = !1, u =
|
|
8000
|
+
for (var l = !1, u = a.child; u;) {
|
|
8001
8001
|
if (u === n) {
|
|
8002
|
-
l = !0, n =
|
|
8002
|
+
l = !0, n = a, r = c;
|
|
8003
8003
|
break;
|
|
8004
8004
|
}
|
|
8005
8005
|
if (u === r) {
|
|
8006
|
-
l = !0, r =
|
|
8006
|
+
l = !0, r = a, n = c;
|
|
8007
8007
|
break;
|
|
8008
8008
|
}
|
|
8009
8009
|
u = u.sibling;
|
|
@@ -8011,11 +8011,11 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8011
8011
|
if (!l) {
|
|
8012
8012
|
for (u = c.child; u;) {
|
|
8013
8013
|
if (u === n) {
|
|
8014
|
-
l = !0, n = c, r =
|
|
8014
|
+
l = !0, n = c, r = a;
|
|
8015
8015
|
break;
|
|
8016
8016
|
}
|
|
8017
8017
|
if (u === r) {
|
|
8018
|
-
l = !0, r = c, n =
|
|
8018
|
+
l = !0, r = c, n = a;
|
|
8019
8019
|
break;
|
|
8020
8020
|
}
|
|
8021
8021
|
u = u.sibling;
|
|
@@ -8028,28 +8028,28 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8028
8028
|
if (n.tag !== 3) throw Error(i(188));
|
|
8029
8029
|
return n.stateNode.current === n ? e : t;
|
|
8030
8030
|
}
|
|
8031
|
-
function
|
|
8031
|
+
function l(e) {
|
|
8032
8032
|
var t = e.tag;
|
|
8033
8033
|
if (t === 5 || t === 26 || t === 27 || t === 6) return e;
|
|
8034
8034
|
for (e = e.child; e !== null;) {
|
|
8035
|
-
if (t =
|
|
8035
|
+
if (t = l(e), t !== null) return t;
|
|
8036
8036
|
e = e.sibling;
|
|
8037
8037
|
}
|
|
8038
8038
|
return null;
|
|
8039
8039
|
}
|
|
8040
|
-
function
|
|
8040
|
+
function u(e) {
|
|
8041
8041
|
var t = e.tag;
|
|
8042
8042
|
if (t === 5 || t === 26 || t === 27 || t === 6) return e;
|
|
8043
8043
|
for (e = e.child; e !== null;) {
|
|
8044
|
-
if (e.tag !== 4 && (t =
|
|
8044
|
+
if (e.tag !== 4 && (t = u(e), t !== null)) return t;
|
|
8045
8045
|
e = e.sibling;
|
|
8046
8046
|
}
|
|
8047
8047
|
return null;
|
|
8048
8048
|
}
|
|
8049
|
-
function
|
|
8049
|
+
function d(e) {
|
|
8050
8050
|
return typeof e != "object" || !e ? null : (e = Ya && e[Ya] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
8051
8051
|
}
|
|
8052
|
-
function
|
|
8052
|
+
function f(e) {
|
|
8053
8053
|
if (e == null) return null;
|
|
8054
8054
|
if (typeof e == "function") return e.$$typeof === Xa ? null : e.displayName || e.name || null;
|
|
8055
8055
|
if (typeof e == "string") return e;
|
|
@@ -8068,28 +8068,28 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8068
8068
|
case Ha:
|
|
8069
8069
|
var t = e.render;
|
|
8070
8070
|
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
8071
|
-
case Ga: return t = e.displayName || null, t === null ?
|
|
8071
|
+
case Ga: return t = e.displayName || null, t === null ? f(e.type) || "Memo" : t;
|
|
8072
8072
|
case Ka:
|
|
8073
8073
|
t = e._payload, e = e._init;
|
|
8074
8074
|
try {
|
|
8075
|
-
return
|
|
8075
|
+
return f(e(t));
|
|
8076
8076
|
} catch {}
|
|
8077
8077
|
}
|
|
8078
8078
|
return null;
|
|
8079
8079
|
}
|
|
8080
|
-
function
|
|
8080
|
+
function p(e) {
|
|
8081
8081
|
return { current: e };
|
|
8082
8082
|
}
|
|
8083
|
-
function
|
|
8083
|
+
function m(e) {
|
|
8084
8084
|
0 > _c || (e.current = gc[_c], gc[_c] = null, _c--);
|
|
8085
8085
|
}
|
|
8086
|
-
function
|
|
8086
|
+
function h(e, t) {
|
|
8087
8087
|
_c++, gc[_c] = e.current, e.current = t;
|
|
8088
8088
|
}
|
|
8089
|
-
function
|
|
8089
|
+
function g(e) {
|
|
8090
8090
|
return e >>>= 0, e === 0 ? 32 : 31 - (bc(e) / xc | 0) | 0;
|
|
8091
8091
|
}
|
|
8092
|
-
function
|
|
8092
|
+
function _(e) {
|
|
8093
8093
|
var t = e & 42;
|
|
8094
8094
|
if (t !== 0) return t;
|
|
8095
8095
|
switch (e & -e) {
|
|
@@ -8133,7 +8133,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8133
8133
|
var i = 0, a = e.suspendedLanes, o = e.pingedLanes;
|
|
8134
8134
|
e = e.warmLanes;
|
|
8135
8135
|
var s = r & 134217727;
|
|
8136
|
-
return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i =
|
|
8136
|
+
return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = _(n))) : i = _(o) : i = _(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = _(n))) : i = _(o)) : i = _(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
|
|
8137
8137
|
}
|
|
8138
8138
|
function b(e, t) {
|
|
8139
8139
|
return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
|
|
@@ -8409,18 +8409,18 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8409
8409
|
Yc[Xc++] = Qc, Yc[Xc++] = $c, Yc[Xc++] = Zc, Qc = t.id, $c = t.overflow, Zc = e;
|
|
8410
8410
|
}
|
|
8411
8411
|
function me(e, t) {
|
|
8412
|
-
|
|
8412
|
+
h(nl, t), h(tl, e), h(el, null), e = no(t), m(el), h(el, e);
|
|
8413
8413
|
}
|
|
8414
8414
|
function he() {
|
|
8415
|
-
|
|
8415
|
+
m(el), m(tl), m(nl);
|
|
8416
8416
|
}
|
|
8417
8417
|
function ge(e) {
|
|
8418
|
-
e.memoizedState !== null &&
|
|
8418
|
+
e.memoizedState !== null && h(rl, e);
|
|
8419
8419
|
var t = el.current, n = ro(t, e.type);
|
|
8420
|
-
t !== n && (
|
|
8420
|
+
t !== n && (h(tl, e), h(el, n));
|
|
8421
8421
|
}
|
|
8422
8422
|
function k(e) {
|
|
8423
|
-
tl.current === e && (
|
|
8423
|
+
tl.current === e && (m(el), m(tl)), rl.current === e && (m(rl), ho ? Po._currentValue = No : Po._currentValue2 = No);
|
|
8424
8424
|
}
|
|
8425
8425
|
function _e(e) {
|
|
8426
8426
|
throw Ce(ce(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), sl;
|
|
@@ -8468,11 +8468,11 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8468
8468
|
al === null ? al = [e] : al.push(e);
|
|
8469
8469
|
}
|
|
8470
8470
|
function we(e, t, n) {
|
|
8471
|
-
ho ? (
|
|
8471
|
+
ho ? (h(cl, t._currentValue), t._currentValue = n) : (h(cl, t._currentValue2), t._currentValue2 = n);
|
|
8472
8472
|
}
|
|
8473
8473
|
function Te(e) {
|
|
8474
8474
|
var t = cl.current;
|
|
8475
|
-
ho ? e._currentValue = t : e._currentValue2 = t,
|
|
8475
|
+
ho ? e._currentValue = t : e._currentValue2 = t, m(cl);
|
|
8476
8476
|
}
|
|
8477
8477
|
function Ee(e, t, n) {
|
|
8478
8478
|
for (; e !== null;) {
|
|
@@ -8709,7 +8709,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8709
8709
|
return e === null ? X.pooledCache : e;
|
|
8710
8710
|
}
|
|
8711
8711
|
function Je(e, t) {
|
|
8712
|
-
t === null ?
|
|
8712
|
+
t === null ? h(El, El.current) : h(El, t.pool);
|
|
8713
8713
|
}
|
|
8714
8714
|
function Ye() {
|
|
8715
8715
|
var e = qe();
|
|
@@ -8813,7 +8813,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8813
8813
|
function l(e, t, n, r) {
|
|
8814
8814
|
return t === null || t.tag !== 6 ? (t = xa(n, e.mode, r), t.return = e, t) : (t = o(t, n), t.return = e, t);
|
|
8815
8815
|
}
|
|
8816
|
-
function
|
|
8816
|
+
function u(e, t, n, r) {
|
|
8817
8817
|
var i = n.type;
|
|
8818
8818
|
return i === La ? p(e, t, n.props.children, r, n.key) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === Ka && Qe(i) === t.type) ? (t = o(t, n.props), nt(t, n), t.return = e, t) : (t = ya(n.type, n.key, n.props, null, e.mode, r), nt(t, n), t.return = e, t);
|
|
8819
8819
|
}
|
|
@@ -8831,7 +8831,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8831
8831
|
case Ia: return t = Ca(t, e.mode, n), t.return = e, t;
|
|
8832
8832
|
case Ka: return t = Qe(t), m(e, t, n);
|
|
8833
8833
|
}
|
|
8834
|
-
if (Za(t) ||
|
|
8834
|
+
if (Za(t) || d(t)) return t = ba(t, e.mode, n, null), t.return = e, t;
|
|
8835
8835
|
if (typeof t.then == "function") return m(e, tt(t), n);
|
|
8836
8836
|
if (t.$$typeof === Va) return m(e, Me(e, t), n);
|
|
8837
8837
|
rt(e, t);
|
|
@@ -8843,11 +8843,11 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8843
8843
|
if (typeof n == "string" && n !== "" || typeof n == "number" || typeof n == "bigint") return i === null ? l(e, t, "" + n, r) : null;
|
|
8844
8844
|
if (typeof n == "object" && n) {
|
|
8845
8845
|
switch (n.$$typeof) {
|
|
8846
|
-
case Fa: return n.key === i ?
|
|
8846
|
+
case Fa: return n.key === i ? u(e, t, n, r) : null;
|
|
8847
8847
|
case Ia: return n.key === i ? f(e, t, n, r) : null;
|
|
8848
8848
|
case Ka: return n = Qe(n), h(e, t, n, r);
|
|
8849
8849
|
}
|
|
8850
|
-
if (Za(n) ||
|
|
8850
|
+
if (Za(n) || d(n)) return i === null ? p(e, t, n, r, null) : null;
|
|
8851
8851
|
if (typeof n.then == "function") return h(e, t, tt(n), r);
|
|
8852
8852
|
if (n.$$typeof === Va) return h(e, t, Me(e, n), r);
|
|
8853
8853
|
rt(e, n);
|
|
@@ -8858,11 +8858,11 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8858
8858
|
if (typeof r == "string" && r !== "" || typeof r == "number" || typeof r == "bigint") return e = e.get(n) || null, l(t, e, "" + r, i);
|
|
8859
8859
|
if (typeof r == "object" && r) {
|
|
8860
8860
|
switch (r.$$typeof) {
|
|
8861
|
-
case Fa: return e = e.get(r.key === null ? n : r.key) || null,
|
|
8861
|
+
case Fa: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
|
|
8862
8862
|
case Ia: return e = e.get(r.key === null ? n : r.key) || null, f(t, e, r, i);
|
|
8863
8863
|
case Ka: return r = Qe(r), g(e, t, n, r, i);
|
|
8864
8864
|
}
|
|
8865
|
-
if (Za(r) ||
|
|
8865
|
+
if (Za(r) || d(r)) return e = e.get(n) || null, p(t, e, r, i, null);
|
|
8866
8866
|
if (typeof r.then == "function") return g(e, t, n, tt(r), i);
|
|
8867
8867
|
if (r.$$typeof === Va) return g(e, t, n, Me(t, r), i);
|
|
8868
8868
|
rt(t, r);
|
|
@@ -8953,8 +8953,8 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
8953
8953
|
case Ka: return a = Qe(a), y(e, n, a, s);
|
|
8954
8954
|
}
|
|
8955
8955
|
if (Za(a)) return _(e, n, a, s);
|
|
8956
|
-
if (
|
|
8957
|
-
if (l =
|
|
8956
|
+
if (d(a)) {
|
|
8957
|
+
if (l = d(a), typeof l != "function") throw Error(i(150));
|
|
8958
8958
|
return a = l.call(a), v(e, n, a, s);
|
|
8959
8959
|
}
|
|
8960
8960
|
if (typeof a.then == "function") return y(e, n, tt(a), s);
|
|
@@ -9162,29 +9162,29 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
9162
9162
|
if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) yt(n[e], t);
|
|
9163
9163
|
}
|
|
9164
9164
|
function N(e, t) {
|
|
9165
|
-
e = Au,
|
|
9165
|
+
e = Au, h(Hl, e), h(Vl, t), Au = e | t.baseLanes;
|
|
9166
9166
|
}
|
|
9167
9167
|
function P() {
|
|
9168
|
-
|
|
9168
|
+
h(Hl, Au), h(Vl, Vl.current);
|
|
9169
9169
|
}
|
|
9170
9170
|
function xt() {
|
|
9171
|
-
Au = Hl.current,
|
|
9171
|
+
Au = Hl.current, m(Vl), m(Hl);
|
|
9172
9172
|
}
|
|
9173
9173
|
function St(e) {
|
|
9174
9174
|
var t = e.alternate;
|
|
9175
|
-
|
|
9175
|
+
h(Gl, Gl.current & 1), h(Ul, e), Wl === null && (t === null || Vl.current !== null || t.memoizedState !== null) && (Wl = e);
|
|
9176
9176
|
}
|
|
9177
9177
|
function Ct(e) {
|
|
9178
|
-
|
|
9178
|
+
h(Gl, Gl.current), h(Ul, e), Wl === null && (Wl = e);
|
|
9179
9179
|
}
|
|
9180
9180
|
function wt(e) {
|
|
9181
|
-
e.tag === 22 ? (
|
|
9181
|
+
e.tag === 22 ? (h(Gl, Gl.current), h(Ul, e), Wl === null && (Wl = e)) : Tt(e);
|
|
9182
9182
|
}
|
|
9183
9183
|
function Tt() {
|
|
9184
|
-
|
|
9184
|
+
h(Gl, Gl.current), h(Ul, Ul.current);
|
|
9185
9185
|
}
|
|
9186
9186
|
function Et(e) {
|
|
9187
|
-
|
|
9187
|
+
m(Ul), Wl === e && (Wl = null), m(Gl);
|
|
9188
9188
|
}
|
|
9189
9189
|
function Dt(e) {
|
|
9190
9190
|
for (var t = e; t !== null;) {
|
|
@@ -10175,7 +10175,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
10175
10175
|
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
|
|
10176
10176
|
r = r.children;
|
|
10177
10177
|
var o = Gl.current, s = (o & 2) != 0;
|
|
10178
|
-
if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1,
|
|
10178
|
+
if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, h(Gl, o), Zn(e, t, r, n), r = K ? Jc : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
|
|
10179
10179
|
if (e.tag === 13) e.memoizedState !== null && vr(e, n, t);
|
|
10180
10180
|
else if (e.tag === 19) vr(e, n, t);
|
|
10181
10181
|
else if (e.child !== null) {
|
|
@@ -10255,7 +10255,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
10255
10255
|
if (r) return br(e, t, n);
|
|
10256
10256
|
t.flags |= 128;
|
|
10257
10257
|
}
|
|
10258
|
-
if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null),
|
|
10258
|
+
if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), h(Gl, Gl.current), r) break;
|
|
10259
10259
|
return null;
|
|
10260
10260
|
case 22: return t.lanes = 0, tr(e, t, n, t.pendingProps);
|
|
10261
10261
|
case 24: we(t, ml, e.memoizedState.cache);
|
|
@@ -10285,7 +10285,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
10285
10285
|
break a;
|
|
10286
10286
|
}
|
|
10287
10287
|
}
|
|
10288
|
-
throw t =
|
|
10288
|
+
throw t = f(e) || e, Error(i(306, t, ""));
|
|
10289
10289
|
}
|
|
10290
10290
|
}
|
|
10291
10291
|
return t;
|
|
@@ -10559,13 +10559,13 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
10559
10559
|
case 4: return he(), Ar(e, t), e === null && bo(t.stateNode.containerInfo), R(t), null;
|
|
10560
10560
|
case 10: return Te(t.type), R(t), null;
|
|
10561
10561
|
case 19:
|
|
10562
|
-
if (
|
|
10562
|
+
if (m(Gl), r = t.memoizedState, r === null) return R(t), null;
|
|
10563
10563
|
if (a = (t.flags & 128) != 0, o = r.rendering, o === null) if (a) Fr(r, !1);
|
|
10564
10564
|
else {
|
|
10565
10565
|
if (ju !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
|
|
10566
10566
|
if (o = Dt(e), o !== null) {
|
|
10567
10567
|
for (t.flags |= 128, Fr(r, !1), e = o.updateQueue, t.updateQueue = e, Pr(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) va(n, e), n = n.sibling;
|
|
10568
|
-
return
|
|
10568
|
+
return h(Gl, Gl.current & 1 | 2), K && le(t, r.treeForkCount), t.child;
|
|
10569
10569
|
}
|
|
10570
10570
|
e = e.sibling;
|
|
10571
10571
|
}
|
|
@@ -10577,9 +10577,9 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
10577
10577
|
} else 2 * kc() - r.renderingStartTime > Hu && n !== 536870912 && (t.flags |= 128, a = !0, Fr(r, !1), t.lanes = 4194304);
|
|
10578
10578
|
r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);
|
|
10579
10579
|
}
|
|
10580
|
-
return r.tail === null ? (R(t), null) : (e = r.tail, r.rendering = e, r.tail = e.sibling, r.renderingStartTime = kc(), e.sibling = null, n = Gl.current,
|
|
10580
|
+
return r.tail === null ? (R(t), null) : (e = r.tail, r.rendering = e, r.tail = e.sibling, r.renderingStartTime = kc(), e.sibling = null, n = Gl.current, h(Gl, a ? n & 1 | 2 : n & 1), K && le(t, r.treeForkCount), e);
|
|
10581
10581
|
case 22:
|
|
10582
|
-
case 23: return Et(t), xt(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (R(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : R(t), n = t.updateQueue, n !== null && Pr(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null &&
|
|
10582
|
+
case 23: return Et(t), xt(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (R(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : R(t), n = t.updateQueue, n !== null && Pr(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && m(El), null;
|
|
10583
10583
|
case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), Te(ml), R(t), null;
|
|
10584
10584
|
case 25: return null;
|
|
10585
10585
|
case 30: return null;
|
|
@@ -10605,11 +10605,11 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
10605
10605
|
xe();
|
|
10606
10606
|
}
|
|
10607
10607
|
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
|
|
10608
|
-
case 19: return
|
|
10608
|
+
case 19: return m(Gl), null;
|
|
10609
10609
|
case 4: return he(), null;
|
|
10610
10610
|
case 10: return Te(t.type), null;
|
|
10611
10611
|
case 22:
|
|
10612
|
-
case 23: return Et(t), xt(), e !== null &&
|
|
10612
|
+
case 23: return Et(t), xt(), e !== null && m(El), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
|
|
10613
10613
|
case 24: return Te(ml), null;
|
|
10614
10614
|
case 25: return null;
|
|
10615
10615
|
default: return null;
|
|
@@ -10635,14 +10635,14 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
10635
10635
|
Et(t);
|
|
10636
10636
|
break;
|
|
10637
10637
|
case 19:
|
|
10638
|
-
|
|
10638
|
+
m(Gl);
|
|
10639
10639
|
break;
|
|
10640
10640
|
case 10:
|
|
10641
10641
|
Te(t.type);
|
|
10642
10642
|
break;
|
|
10643
10643
|
case 22:
|
|
10644
10644
|
case 23:
|
|
10645
|
-
Et(t), xt(), e !== null &&
|
|
10645
|
+
Et(t), xt(), e !== null && m(El);
|
|
10646
10646
|
break;
|
|
10647
10647
|
case 24: Te(ml);
|
|
10648
10648
|
}
|
|
@@ -11575,7 +11575,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
11575
11575
|
}
|
|
11576
11576
|
function Di(e) {
|
|
11577
11577
|
switch (e.$$typeof) {
|
|
11578
|
-
case yu: return "<" + (
|
|
11578
|
+
case yu: return "<" + (f(e.value) || "Unknown") + ">";
|
|
11579
11579
|
case bu: return ":has(" + (Di(e) || "") + ")";
|
|
11580
11580
|
case xu: return "[role=\"" + e.value + "\"]";
|
|
11581
11581
|
case Cu: return "\"" + e.value + "\"";
|
|
@@ -12204,7 +12204,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
12204
12204
|
function Da(e) {
|
|
12205
12205
|
var t = e._reactInternals;
|
|
12206
12206
|
if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));
|
|
12207
|
-
return e =
|
|
12207
|
+
return e = c(t), e = e === null ? null : l(e), e === null ? null : to(e.stateNode);
|
|
12208
12208
|
}
|
|
12209
12209
|
function Oa(e, t, n, r, i, a) {
|
|
12210
12210
|
i = Ea(i), r.context === null ? r.context = i : r.pendingContext = i, r = pt(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = mt(e, r, t), n !== null && (Mi(n, e, t), ht(n, e, t));
|
|
@@ -12218,7 +12218,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
12218
12218
|
function Aa(e, t) {
|
|
12219
12219
|
ka(e, t), (e = e.alternate) && ka(e, t);
|
|
12220
12220
|
}
|
|
12221
|
-
var U = {}, ja = (
|
|
12221
|
+
var U = {}, ja = (a(), t(v)), Ma = Yi(), Na = Object.assign, Pa = Symbol.for("react.element"), Fa = Symbol.for("react.transitional.element"), Ia = Symbol.for("react.portal"), La = Symbol.for("react.fragment"), Ra = Symbol.for("react.strict_mode"), za = Symbol.for("react.profiler"), Ba = Symbol.for("react.consumer"), Va = Symbol.for("react.context"), Ha = Symbol.for("react.forward_ref"), Ua = Symbol.for("react.suspense"), Wa = Symbol.for("react.suspense_list"), Ga = Symbol.for("react.memo"), Ka = Symbol.for("react.lazy"), qa = Symbol.for("react.activity"), Ja = Symbol.for("react.memo_cache_sentinel"), Ya = Symbol.iterator, Xa = Symbol.for("react.client.reference"), Za = Array.isArray, W = ja.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Qa = e.rendererVersion, $a = e.rendererPackageName, eo = e.extraDevToolsConfig, to = e.getPublicInstance, no = e.getRootHostContext, ro = e.getChildHostContext, io = e.prepareForCommit, ao = e.resetAfterCommit, oo = e.createInstance;
|
|
12222
12222
|
e.cloneMutableInstance;
|
|
12223
12223
|
var so = e.appendInitialChild, co = e.finalizeInitialChildren, lo = e.shouldSetTextContent, uo = e.createTextInstance;
|
|
12224
12224
|
e.cloneMutableTextInstance;
|
|
@@ -12248,7 +12248,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
12248
12248
|
e.clearActivityBoundaryFromContainer;
|
|
12249
12249
|
var Ws = e.clearSuspenseBoundaryFromContainer, Gs = e.hideDehydratedBoundary, Ks = e.unhideDehydratedBoundary, qs = e.shouldDeleteUnhydratedTailInstances;
|
|
12250
12250
|
e.diffHydratedPropsForDevWarnings, e.diffHydratedTextForDevWarnings, e.describeHydratableInstanceForDevWarnings;
|
|
12251
|
-
var Js = e.validateHydratableInstance, Ys = e.validateHydratableTextInstance, Xs = e.supportsResources, Zs = e.isHostHoistableType, Qs = e.getHoistableRoot, $s = e.getResource, ec = e.acquireResource, tc = e.releaseResource, nc = e.hydrateHoistable, rc = e.mountHoistable, ic = e.unmountHoistable, ac = e.createHoistableInstance, oc = e.prepareToCommitHoistables, sc = e.mayResourceSuspendCommit, cc = e.preloadResource, lc = e.suspendResource, uc = e.supportsSingletons, dc = e.resolveSingletonInstance, fc = e.acquireSingletonInstance, pc = e.releaseSingletonInstance, mc = e.isHostSingletonType, hc = e.isSingletonScope, gc = [], _c = -1, vc = {}, yc = Math.clz32 ? Math.clz32 :
|
|
12251
|
+
var Js = e.validateHydratableInstance, Ys = e.validateHydratableTextInstance, Xs = e.supportsResources, Zs = e.isHostHoistableType, Qs = e.getHoistableRoot, $s = e.getResource, ec = e.acquireResource, tc = e.releaseResource, nc = e.hydrateHoistable, rc = e.mountHoistable, ic = e.unmountHoistable, ac = e.createHoistableInstance, oc = e.prepareToCommitHoistables, sc = e.mayResourceSuspendCommit, cc = e.preloadResource, lc = e.suspendResource, uc = e.supportsSingletons, dc = e.resolveSingletonInstance, fc = e.acquireSingletonInstance, pc = e.releaseSingletonInstance, mc = e.isHostSingletonType, hc = e.isSingletonScope, gc = [], _c = -1, vc = {}, yc = Math.clz32 ? Math.clz32 : g, bc = Math.log, xc = Math.LN2, Sc = 256, Cc = 262144, wc = 4194304, Tc = Ma.unstable_scheduleCallback, Ec = Ma.unstable_cancelCallback, Dc = Ma.unstable_shouldYield, Oc = Ma.unstable_requestPaint, kc = Ma.unstable_now, Ac = Ma.unstable_ImmediatePriority, jc = Ma.unstable_UserBlockingPriority, Mc = Ma.unstable_NormalPriority, Nc = Ma.unstable_IdlePriority, Pc = Ma.log, Fc = Ma.unstable_setDisableYieldValue, Ic = null, Lc = null, Rc = typeof Object.is == "function" ? Object.is : ae, zc = typeof reportError == "function" ? reportError : function(e) {
|
|
12252
12252
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
12253
12253
|
var t = new window.ErrorEvent("error", {
|
|
12254
12254
|
bubbles: !0,
|
|
@@ -12262,7 +12262,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
12262
12262
|
return;
|
|
12263
12263
|
}
|
|
12264
12264
|
console.error(e);
|
|
12265
|
-
}, Bc = Object.prototype.hasOwnProperty, Vc, Hc, Uc = !1, Wc = /* @__PURE__ */ new WeakMap(), Gc = [], Kc = 0, qc = null, Jc = 0, Yc = [], Xc = 0, Zc = null, Qc = 1, $c = "", el =
|
|
12265
|
+
}, Bc = Object.prototype.hasOwnProperty, Vc, Hc, Uc = !1, Wc = /* @__PURE__ */ new WeakMap(), Gc = [], Kc = 0, qc = null, Jc = 0, Yc = [], Xc = 0, Zc = null, Qc = 1, $c = "", el = p(null), tl = p(null), nl = p(null), rl = p(null), il = null, G = null, K = !1, al = null, ol = !1, sl = Error(i(519)), cl = p(null), ll = null, ul = null, dl = typeof AbortController < "u" ? AbortController : function() {
|
|
12266
12266
|
var e = [], t = this.signal = {
|
|
12267
12267
|
aborted: !1,
|
|
12268
12268
|
addEventListener: function(t, n) {
|
|
@@ -12285,7 +12285,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
12285
12285
|
W.S = function(e, t) {
|
|
12286
12286
|
Vu = kc(), typeof t == "object" && t && typeof t.then == "function" && We(e, t), Tl !== null && Tl(e, t);
|
|
12287
12287
|
};
|
|
12288
|
-
var El =
|
|
12288
|
+
var El = p(null), Dl = Error(i(460)), Ol = Error(i(474)), kl = Error(i(542)), Al = { then: function() {} }, jl = null, Ml = null, Nl = 0, Pl = it(!0), Fl = it(!1), Il = [], Ll = 0, Rl = 0, zl = !1, Bl = !1, Vl = p(null), Hl = p(0), Ul = p(null), Wl = null, Gl = p(0), Kl = 0, q = null, J = null, ql = null, Jl = !1, Yl = !1, Xl = !1, Zl = 0, Ql = 0, $l = null, eu = 0, tu = {
|
|
12289
12289
|
readContext: je,
|
|
12290
12290
|
use: zt,
|
|
12291
12291
|
useCallback: F,
|
|
@@ -12553,7 +12553,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
12553
12553
|
switch (e.tag) {
|
|
12554
12554
|
case 3:
|
|
12555
12555
|
if (e = e.stateNode, e.current.memoizedState.isDehydrated) {
|
|
12556
|
-
var t =
|
|
12556
|
+
var t = _(e.pendingLanes);
|
|
12557
12557
|
if (t !== 0) {
|
|
12558
12558
|
for (e.pendingLanes |= 2, e.entangledLanes |= 2; t;) {
|
|
12559
12559
|
var n = 1 << 31 - yc(t);
|
|
@@ -12648,7 +12648,7 @@ var qi = Un, Ji = /* @__PURE__ */ r(((e) => {
|
|
|
12648
12648
|
}
|
|
12649
12649
|
return e;
|
|
12650
12650
|
}, U.findHostInstance = Da, U.findHostInstanceWithNoPortals = function(e) {
|
|
12651
|
-
return e =
|
|
12651
|
+
return e = c(e), e = e === null ? null : u(e), e === null ? null : to(e.stateNode);
|
|
12652
12652
|
}, U.findHostInstanceWithWarning = function(e) {
|
|
12653
12653
|
return Da(e);
|
|
12654
12654
|
}, U.flushPassiveEffects = oa, U.flushSyncFromReconciler = function(e) {
|
|
@@ -12997,11 +12997,11 @@ function mo() {}
|
|
|
12997
12997
|
function ho() {
|
|
12998
12998
|
return null;
|
|
12999
12999
|
}
|
|
13000
|
-
var go = /* @__PURE__ */
|
|
13000
|
+
var go = /* @__PURE__ */ _.createContext(null);
|
|
13001
13001
|
function _o() {}
|
|
13002
13002
|
//#endregion
|
|
13003
13003
|
//#region ../../node_modules/its-fine/dist/index.js
|
|
13004
|
-
|
|
13004
|
+
a();
|
|
13005
13005
|
function vo(e, t, n) {
|
|
13006
13006
|
if (!e) return;
|
|
13007
13007
|
if (n(e) === !0) return e;
|
|
@@ -13032,16 +13032,16 @@ function yo(e) {
|
|
|
13032
13032
|
return e;
|
|
13033
13033
|
}
|
|
13034
13034
|
}
|
|
13035
|
-
var bo = /* @__PURE__ */ yo(/* @__PURE__ */ h(null)), xo = class extends
|
|
13035
|
+
var bo = /* @__PURE__ */ yo(/* @__PURE__ */ h(null)), xo = class extends p {
|
|
13036
13036
|
render() {
|
|
13037
|
-
return /* @__PURE__ */
|
|
13037
|
+
return /* @__PURE__ */ f(bo.Provider, { value: this._reactInternals }, this.props.children);
|
|
13038
13038
|
}
|
|
13039
13039
|
};
|
|
13040
13040
|
function So() {
|
|
13041
|
-
let e =
|
|
13041
|
+
let e = u(bo);
|
|
13042
13042
|
if (e === null) throw Error("its-fine: useFiber must be called within a <FiberProvider />!");
|
|
13043
13043
|
let t = s();
|
|
13044
|
-
return
|
|
13044
|
+
return d(() => {
|
|
13045
13045
|
for (let n of [e, e?.alternate]) {
|
|
13046
13046
|
if (!n) continue;
|
|
13047
13047
|
let e = vo(n, !1, (e) => {
|
|
@@ -13068,43 +13068,43 @@ function To() {
|
|
|
13068
13068
|
}
|
|
13069
13069
|
function Eo() {
|
|
13070
13070
|
let e = To();
|
|
13071
|
-
return
|
|
13071
|
+
return d(() => Array.from(e.keys()).reduce((t, n) => (r) => /* @__PURE__ */ f(t, null, /* @__PURE__ */ f(n.Provider, {
|
|
13072
13072
|
...r,
|
|
13073
13073
|
value: e.get(n)
|
|
13074
|
-
})), (e) => /* @__PURE__ */
|
|
13074
|
+
})), (e) => /* @__PURE__ */ f(xo, { ...e })), [e]);
|
|
13075
13075
|
}
|
|
13076
|
-
if (
|
|
13076
|
+
if (a(), _.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.");
|
|
13077
13077
|
function Do(e) {
|
|
13078
|
-
let t =
|
|
13079
|
-
return
|
|
13078
|
+
let t = _.useRef({});
|
|
13079
|
+
return _.useLayoutEffect(() => {
|
|
13080
13080
|
t.current = e;
|
|
13081
|
-
}),
|
|
13081
|
+
}), _.useLayoutEffect(() => () => {
|
|
13082
13082
|
t.current = {};
|
|
13083
13083
|
}, []), t.current;
|
|
13084
13084
|
}
|
|
13085
13085
|
var Oo = () => {
|
|
13086
|
-
let e =
|
|
13087
|
-
return
|
|
13086
|
+
let e = _.useRef(0);
|
|
13087
|
+
return _.useMemo(() => {
|
|
13088
13088
|
e.current++;
|
|
13089
13089
|
}, []), e.current > 1;
|
|
13090
13090
|
}, ko = (e) => {
|
|
13091
|
-
let t =
|
|
13091
|
+
let t = _.useRef(null), n = _.useRef(null), r = _.useRef(null), i = Do(e), a = Eo(), o = _.useRef(null), s = (t) => {
|
|
13092
13092
|
let { forwardedRef: n } = e;
|
|
13093
13093
|
n && (typeof n == "function" ? n(t) : n.current = t);
|
|
13094
|
-
},
|
|
13095
|
-
|
|
13094
|
+
}, c = Oo(), l = () => {
|
|
13095
|
+
s(null), Lo.flushSyncFromReconciler(() => {
|
|
13096
13096
|
Lo.updateContainer(null, r.current, null);
|
|
13097
13097
|
}), n.current?.destroy(), n.current = null;
|
|
13098
13098
|
};
|
|
13099
|
-
return
|
|
13099
|
+
return _.useLayoutEffect(() => (o.current &&= (clearTimeout(o.current), null), n.current ? s(n.current) : (n.current = new qi.Stage({
|
|
13100
13100
|
width: e.width,
|
|
13101
13101
|
height: e.height,
|
|
13102
13102
|
container: t.current
|
|
13103
|
-
}),
|
|
13104
|
-
|
|
13105
|
-
}), []),
|
|
13106
|
-
|
|
13107
|
-
}),
|
|
13103
|
+
}), s(n.current), r.current = Lo.createContainer(n.current, ta.ConcurrentRoot, null, !1, null, "", console.error, console.error, console.error, null), Lo.updateContainer(_.createElement(a, {}, e.children), r.current, null, () => {})), () => {
|
|
13104
|
+
c ? o.current = setTimeout(l, 0) : l();
|
|
13105
|
+
}), []), _.useLayoutEffect(() => {
|
|
13106
|
+
s(n.current), pa(n.current, e, i), Lo.updateContainer(_.createElement(a, {}, e.children), r.current, null), Lo.flushSyncWork();
|
|
13107
|
+
}), _.createElement("div", {
|
|
13108
13108
|
ref: t,
|
|
13109
13109
|
id: e.id,
|
|
13110
13110
|
accessKey: e.accessKey,
|
|
@@ -13116,13 +13116,13 @@ var Oo = () => {
|
|
|
13116
13116
|
});
|
|
13117
13117
|
}, Ao = "Layer", jo = "Group", Mo = "Rect", No = "Circle", Po = "Line", Fo = "Text", Io = "Arrow", Lo = (0, ea.default)(ha);
|
|
13118
13118
|
ua(() => Lo.flushSyncWork());
|
|
13119
|
-
var Ro =
|
|
13119
|
+
var Ro = _.forwardRef((e, t) => _.createElement(xo, {}, _.createElement(ko, {
|
|
13120
13120
|
...e,
|
|
13121
13121
|
forwardedRef: t
|
|
13122
13122
|
})));
|
|
13123
13123
|
//#endregion
|
|
13124
13124
|
//#region ../ui-library/src/composites/cap-settings/MaskShapeCanvas.tsx
|
|
13125
|
-
|
|
13125
|
+
a();
|
|
13126
13126
|
var zo = {
|
|
13127
13127
|
rect: "#ef4444",
|
|
13128
13128
|
polygon: "#3b82f6",
|
|
@@ -13172,8 +13172,8 @@ function es(e, t) {
|
|
|
13172
13172
|
function ts(e) {
|
|
13173
13173
|
return e.kind === "polygon" || e.kind === "line";
|
|
13174
13174
|
}
|
|
13175
|
-
function ns({ items: e, selectedId: t, onSelect: n, onShapeChange: r, onDrawComplete: i, drawingKind: a, supportedShapes: s, transparent:
|
|
13176
|
-
let m =
|
|
13175
|
+
function ns({ items: e, selectedId: t, onSelect: n, onShapeChange: r, onDrawComplete: i, drawingKind: a, supportedShapes: s, transparent: u = !1, backdrop: d, polygonVertices: f, grid: p }) {
|
|
13176
|
+
let m = l(null), [h, _] = c({
|
|
13177
13177
|
w: 800,
|
|
13178
13178
|
h: 450
|
|
13179
13179
|
}), [v, x] = c([]), [S, C] = c(null), [w, T] = c(null), [ee, te] = c(null), E = a !== null && s.includes(a);
|
|
@@ -13192,7 +13192,7 @@ function ns({ items: e, selectedId: t, onSelect: n, onShapeChange: r, onDrawComp
|
|
|
13192
13192
|
let t = e[0];
|
|
13193
13193
|
if (!t) return;
|
|
13194
13194
|
let { width: n, height: r } = t.contentRect;
|
|
13195
|
-
_(
|
|
13195
|
+
_(u ? {
|
|
13196
13196
|
w: n,
|
|
13197
13197
|
h: r
|
|
13198
13198
|
} : {
|
|
@@ -13201,7 +13201,7 @@ function ns({ items: e, selectedId: t, onSelect: n, onShapeChange: r, onDrawComp
|
|
|
13201
13201
|
});
|
|
13202
13202
|
});
|
|
13203
13203
|
return t.observe(e), () => t.disconnect();
|
|
13204
|
-
}, [
|
|
13204
|
+
}, [u]), g(() => {
|
|
13205
13205
|
!E && S !== null && C(null);
|
|
13206
13206
|
}, [E, S]);
|
|
13207
13207
|
let ne = o((e) => {
|
|
@@ -13283,7 +13283,7 @@ function ns({ items: e, selectedId: t, onSelect: n, onShapeChange: r, onDrawComp
|
|
|
13283
13283
|
a,
|
|
13284
13284
|
v,
|
|
13285
13285
|
ne
|
|
13286
|
-
]), ae =
|
|
13286
|
+
]), ae = l(null), oe = l(null);
|
|
13287
13287
|
g(() => () => {
|
|
13288
13288
|
ae.current !== null && cancelAnimationFrame(ae.current);
|
|
13289
13289
|
}, []);
|
|
@@ -13293,7 +13293,7 @@ function ns({ items: e, selectedId: t, onSelect: n, onShapeChange: r, onDrawComp
|
|
|
13293
13293
|
t && (oe.current = t.getPointerPosition() ?? null, ae.current === null && (ae.current = requestAnimationFrame(() => {
|
|
13294
13294
|
ae.current = null, C(oe.current);
|
|
13295
13295
|
})));
|
|
13296
|
-
}, [E]), O =
|
|
13296
|
+
}, [E]), O = l(!1), se = l(!0), ce = l(/* @__PURE__ */ new Set()), le = o((e, t, n, i) => {
|
|
13297
13297
|
let a = t.gridWidth * t.gridHeight;
|
|
13298
13298
|
if (n < 0 || n >= a || t.cells[n] === i) return;
|
|
13299
13299
|
let o = [...t.cells];
|
|
@@ -13303,7 +13303,7 @@ function ns({ items: e, selectedId: t, onSelect: n, onShapeChange: r, onDrawComp
|
|
|
13303
13303
|
cells: o
|
|
13304
13304
|
});
|
|
13305
13305
|
}, [r]), ue = [];
|
|
13306
|
-
if (!
|
|
13306
|
+
if (!u) {
|
|
13307
13307
|
for (let e = 1; e < Ko; e++) {
|
|
13308
13308
|
let t = h.w / Ko * e;
|
|
13309
13309
|
ue.push(/* @__PURE__ */ y(Po, {
|
|
@@ -13335,10 +13335,10 @@ function ns({ items: e, selectedId: t, onSelect: n, onShapeChange: r, onDrawComp
|
|
|
13335
13335
|
}
|
|
13336
13336
|
return /* @__PURE__ */ b("div", {
|
|
13337
13337
|
ref: m,
|
|
13338
|
-
className:
|
|
13338
|
+
className: u ? "absolute inset-0" : "relative w-full bg-zinc-900 rounded-lg overflow-hidden",
|
|
13339
13339
|
style: { cursor: E ? "crosshair" : "default" },
|
|
13340
13340
|
children: [
|
|
13341
|
-
d && !
|
|
13341
|
+
d && !u ? /* @__PURE__ */ y("div", {
|
|
13342
13342
|
className: "absolute inset-0 pointer-events-none [&>*]:w-full [&>*]:h-full [&>img]:object-cover [&>video]:object-cover",
|
|
13343
13343
|
style: {
|
|
13344
13344
|
width: h.w,
|
|
@@ -13801,6 +13801,6 @@ function ss({ item: e, shape: t, color: n, selected: r, dimmed: i, editable: a,
|
|
|
13801
13801
|
]
|
|
13802
13802
|
});
|
|
13803
13803
|
}
|
|
13804
|
-
var cs =
|
|
13804
|
+
var cs = i(ns);
|
|
13805
13805
|
//#endregion
|
|
13806
13806
|
export { cs as MaskShapeCanvas };
|