likec4 1.25.0 → 1.25.1
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/__app__/src/chunks/{-index-overview-BQqR8e0d.js → -index-overview-CKkCSnRi.js} +4 -4
- package/__app__/src/chunks/{likec4-DRDnYFvy.js → likec4-CyM7Z_P_.js} +255 -266
- package/__app__/src/chunks/{main-iM8EmCL0.js → main-BWk4fT0y.js} +4216 -4176
- package/__app__/src/chunks/{mantine-B7q9iXnB.js → mantine-BYP9_27v.js} +97 -96
- package/__app__/src/chunks/{tanstack-router-MjA2OK6n.js → tanstack-router-x-0typxf.js} +1 -1
- package/__app__/src/main.js +1 -1
- package/__app__/src/style.css +1 -1
- package/dist/cli/index.mjs +157 -157
- package/dist/index.mjs +1 -1
- package/dist/shared/{likec4.DX7xzn9M.mjs → likec4.8R_NjvKs.mjs} +23 -23
- package/package.json +20 -20
- package/react/index.d.ts +7 -8
- package/react/index.js +458 -428
- package/react/style.css +1 -1
|
@@ -225,20 +225,20 @@ function Ha(e) {
|
|
|
225
225
|
(c = i[d]) && (l = e.call(c, c.__data__, d, i)) && ("__data__" in c && (l.__data__ = c.__data__), a[d] = l);
|
|
226
226
|
return new de(o, this._parents);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Oa(e) {
|
|
229
229
|
return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Va() {
|
|
232
232
|
return [];
|
|
233
233
|
}
|
|
234
234
|
function Sr(e) {
|
|
235
|
-
return e == null ?
|
|
235
|
+
return e == null ? Va : function() {
|
|
236
236
|
return this.querySelectorAll(e);
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
function Ra(e) {
|
|
240
240
|
return function() {
|
|
241
|
-
return
|
|
241
|
+
return Oa(e.apply(this, arguments));
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
244
|
function La(e) {
|
|
@@ -295,11 +295,11 @@ function Mr(e) {
|
|
|
295
295
|
function Ua() {
|
|
296
296
|
return new de(this._enter || this._groups.map(Mr), this._parents);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Ot(e, t) {
|
|
299
299
|
this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
|
|
300
300
|
}
|
|
301
|
-
|
|
302
|
-
constructor:
|
|
301
|
+
Ot.prototype = {
|
|
302
|
+
constructor: Ot,
|
|
303
303
|
appendChild: function(e) {
|
|
304
304
|
return this._parent.insertBefore(e, this._next);
|
|
305
305
|
},
|
|
@@ -320,7 +320,7 @@ function Qa(e) {
|
|
|
320
320
|
}
|
|
321
321
|
function Ja(e, t, n, o, r, i) {
|
|
322
322
|
for (var s = 0, a, c = t.length, l = i.length; s < l; ++s)
|
|
323
|
-
(a = t[s]) ? (a.__data__ = i[s], o[s] = a) : n[s] = new
|
|
323
|
+
(a = t[s]) ? (a.__data__ = i[s], o[s] = a) : n[s] = new Ot(e, i[s]);
|
|
324
324
|
for (; s < c; ++s)
|
|
325
325
|
(a = t[s]) && (r[s] = a);
|
|
326
326
|
}
|
|
@@ -329,7 +329,7 @@ function ja(e, t, n, o, r, i, s) {
|
|
|
329
329
|
for (a = 0; a < d; ++a)
|
|
330
330
|
(c = t[a]) && (f[a] = h = s.call(c, c.__data__, a, t) + "", l.has(h) ? r[a] = c : l.set(h, c));
|
|
331
331
|
for (a = 0; a < u; ++a)
|
|
332
|
-
h = s.call(e, i[a], a, i) + "", (c = l.get(h)) ? (o[a] = c, c.__data__ = i[a], l.delete(h)) : n[a] = new
|
|
332
|
+
h = s.call(e, i[a], a, i) + "", (c = l.get(h)) ? (o[a] = c, c.__data__ = i[a], l.delete(h)) : n[a] = new Ot(e, i[a]);
|
|
333
333
|
for (a = 0; a < d; ++a)
|
|
334
334
|
(c = t[a]) && l.get(f[a]) === c && (r[a] = c);
|
|
335
335
|
}
|
|
@@ -568,10 +568,10 @@ function Hc(e) {
|
|
|
568
568
|
this.textContent = t ?? "";
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function Oc(e) {
|
|
572
572
|
return arguments.length ? this.each(e == null ? Tc : (typeof e == "function" ? Hc : Dc)(e)) : this.node().textContent;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Vc() {
|
|
575
575
|
this.innerHTML = "";
|
|
576
576
|
}
|
|
577
577
|
function Rc(e) {
|
|
@@ -586,7 +586,7 @@ function Lc(e) {
|
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
588
|
function Bc(e) {
|
|
589
|
-
return arguments.length ? this.each(e == null ?
|
|
589
|
+
return arguments.length ? this.each(e == null ? Vc : (typeof e == "function" ? Lc : Rc)(e)) : this.node().innerHTML;
|
|
590
590
|
}
|
|
591
591
|
function Fc() {
|
|
592
592
|
this.nextSibling && this.parentNode.appendChild(this);
|
|
@@ -742,7 +742,7 @@ de.prototype = xt.prototype = {
|
|
|
742
742
|
style: Nc,
|
|
743
743
|
property: $c,
|
|
744
744
|
classed: zc,
|
|
745
|
-
text:
|
|
745
|
+
text: Oc,
|
|
746
746
|
html: Bc,
|
|
747
747
|
raise: Xc,
|
|
748
748
|
lower: Zc,
|
|
@@ -837,7 +837,7 @@ function pl(e, t) {
|
|
|
837
837
|
function ml() {
|
|
838
838
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function Or() {
|
|
841
841
|
var e = hl, t = gl, n = pl, o = ml, r = {}, i = Kt("start", "drag", "end"), s = 0, a, c, l, d, u = 0;
|
|
842
842
|
function f(w) {
|
|
843
843
|
w.on("mousedown.drag", h).filter(o).on("touchstart.drag", b).on("touchmove.drag", x, fl).on("touchend.drag touchcancel.drag", _).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
@@ -878,20 +878,20 @@ function Vr() {
|
|
|
878
878
|
(P = r[N[S].identifier]) && (wn(w), P("end", w, N[S]));
|
|
879
879
|
}
|
|
880
880
|
function p(w, N, k, S, P, I) {
|
|
881
|
-
var A = i.copy(),
|
|
881
|
+
var A = i.copy(), O = he(I || k, N), D, H, m;
|
|
882
882
|
if ((m = n.call(w, new kn("beforestart", {
|
|
883
883
|
sourceEvent: k,
|
|
884
884
|
target: f,
|
|
885
885
|
identifier: P,
|
|
886
886
|
active: s,
|
|
887
|
-
x:
|
|
888
|
-
y:
|
|
887
|
+
x: O[0],
|
|
888
|
+
y: O[1],
|
|
889
889
|
dx: 0,
|
|
890
890
|
dy: 0,
|
|
891
891
|
dispatch: A
|
|
892
892
|
}), S)) != null)
|
|
893
|
-
return D = m.x -
|
|
894
|
-
var M =
|
|
893
|
+
return D = m.x - O[0] || 0, H = m.y - O[1] || 0, function E(v, C, $) {
|
|
894
|
+
var M = O, T;
|
|
895
895
|
switch (v) {
|
|
896
896
|
case "start":
|
|
897
897
|
r[P] = E, T = s++;
|
|
@@ -899,7 +899,7 @@ function Vr() {
|
|
|
899
899
|
case "end":
|
|
900
900
|
delete r[P], --s;
|
|
901
901
|
case "drag":
|
|
902
|
-
|
|
902
|
+
O = he($ || C, N), T = s;
|
|
903
903
|
break;
|
|
904
904
|
}
|
|
905
905
|
A.call(
|
|
@@ -911,10 +911,10 @@ function Vr() {
|
|
|
911
911
|
target: f,
|
|
912
912
|
identifier: P,
|
|
913
913
|
active: T,
|
|
914
|
-
x:
|
|
915
|
-
y:
|
|
916
|
-
dx:
|
|
917
|
-
dy:
|
|
914
|
+
x: O[0] + D,
|
|
915
|
+
y: O[1] + H,
|
|
916
|
+
dx: O[0] - M[0],
|
|
917
|
+
dy: O[1] - M[1],
|
|
918
918
|
dispatch: A
|
|
919
919
|
}),
|
|
920
920
|
S
|
|
@@ -939,14 +939,14 @@ function Vr() {
|
|
|
939
939
|
function Un(e, t, n) {
|
|
940
940
|
e.prototype = t.prototype = n, n.constructor = e;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function Vr(e, t) {
|
|
943
943
|
var n = Object.create(e.prototype);
|
|
944
944
|
for (var o in t) n[o] = t[o];
|
|
945
945
|
return n;
|
|
946
946
|
}
|
|
947
947
|
function vt() {
|
|
948
948
|
}
|
|
949
|
-
var lt = 0.7,
|
|
949
|
+
var lt = 0.7, Vt = 1 / lt, Fe = "\\s*([+-]?\\d+)\\s*", ut = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", we = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", yl = /^#([0-9a-f]{3,8})$/, wl = new RegExp(`^rgb\\(${Fe},${Fe},${Fe}\\)$`), xl = new RegExp(`^rgb\\(${we},${we},${we}\\)$`), vl = new RegExp(`^rgba\\(${Fe},${Fe},${Fe},${ut}\\)$`), _l = new RegExp(`^rgba\\(${we},${we},${we},${ut}\\)$`), bl = new RegExp(`^hsl\\(${ut},${we},${we}\\)$`), El = new RegExp(`^hsla\\(${ut},${we},${we},${ut}\\)$`), xo = {
|
|
950
950
|
aliceblue: 15792383,
|
|
951
951
|
antiquewhite: 16444375,
|
|
952
952
|
aqua: 65535,
|
|
@@ -1142,9 +1142,9 @@ function $n(e, t, n, o) {
|
|
|
1142
1142
|
function ce(e, t, n, o) {
|
|
1143
1143
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +o;
|
|
1144
1144
|
}
|
|
1145
|
-
Un(ce, $n,
|
|
1145
|
+
Un(ce, $n, Vr(vt, {
|
|
1146
1146
|
brighter(e) {
|
|
1147
|
-
return e = e == null ?
|
|
1147
|
+
return e = e == null ? Vt : Math.pow(Vt, e), new ce(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1148
1148
|
},
|
|
1149
1149
|
darker(e) {
|
|
1150
1150
|
return e = e == null ? lt : Math.pow(lt, e), new ce(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
@@ -1201,9 +1201,9 @@ function kl(e, t, n, o) {
|
|
|
1201
1201
|
function ge(e, t, n, o) {
|
|
1202
1202
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +o;
|
|
1203
1203
|
}
|
|
1204
|
-
Un(ge, kl,
|
|
1204
|
+
Un(ge, kl, Vr(vt, {
|
|
1205
1205
|
brighter(e) {
|
|
1206
|
-
return e = e == null ?
|
|
1206
|
+
return e = e == null ? Vt : Math.pow(Vt, e), new ge(this.h, this.s, this.l * e, this.opacity);
|
|
1207
1207
|
},
|
|
1208
1208
|
darker(e) {
|
|
1209
1209
|
return e = e == null ? lt : Math.pow(lt, e), new ge(this.h, this.s, this.l * e, this.opacity);
|
|
@@ -1349,7 +1349,7 @@ function Xr(e, t, n, o) {
|
|
|
1349
1349
|
};
|
|
1350
1350
|
};
|
|
1351
1351
|
}
|
|
1352
|
-
var
|
|
1352
|
+
var Ol = Xr(Dl, "px, ", "px)", "deg)"), Vl = Xr(Hl, ", ", ")", ")"), Rl = 1e-12;
|
|
1353
1353
|
function $o(e) {
|
|
1354
1354
|
return ((e = Math.exp(e)) + 1 / e) / 2;
|
|
1355
1355
|
}
|
|
@@ -1388,14 +1388,14 @@ const Fl = function e(t, n, o) {
|
|
|
1388
1388
|
return e(s, a, c);
|
|
1389
1389
|
}, r;
|
|
1390
1390
|
}(Math.SQRT2, 2, 4);
|
|
1391
|
-
var Ze = 0, rt = 0, nt = 0, Yr = 1e3, Lt, it, Bt = 0,
|
|
1391
|
+
var Ze = 0, rt = 0, nt = 0, Yr = 1e3, Lt, it, Bt = 0, Oe = 0, Qt = 0, ft = typeof performance == "object" && performance.now ? performance : Date, Zr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
1392
1392
|
setTimeout(e, 17);
|
|
1393
1393
|
};
|
|
1394
1394
|
function Qn() {
|
|
1395
|
-
return
|
|
1395
|
+
return Oe || (Zr(Xl), Oe = ft.now() + Qt);
|
|
1396
1396
|
}
|
|
1397
1397
|
function Xl() {
|
|
1398
|
-
|
|
1398
|
+
Oe = 0;
|
|
1399
1399
|
}
|
|
1400
1400
|
function Ft() {
|
|
1401
1401
|
this._call = this._time = this._next = null;
|
|
@@ -1417,15 +1417,15 @@ function Wr(e, t, n) {
|
|
|
1417
1417
|
function Yl() {
|
|
1418
1418
|
Qn(), ++Ze;
|
|
1419
1419
|
for (var e = Lt, t; e; )
|
|
1420
|
-
(t =
|
|
1420
|
+
(t = Oe - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
1421
1421
|
--Ze;
|
|
1422
1422
|
}
|
|
1423
1423
|
function Io() {
|
|
1424
|
-
|
|
1424
|
+
Oe = (Bt = ft.now()) + Qt, Ze = rt = 0;
|
|
1425
1425
|
try {
|
|
1426
1426
|
Yl();
|
|
1427
1427
|
} finally {
|
|
1428
|
-
Ze = 0, Wl(),
|
|
1428
|
+
Ze = 0, Wl(), Oe = 0;
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
1431
|
function Zl() {
|
|
@@ -1440,7 +1440,7 @@ function Wl() {
|
|
|
1440
1440
|
function Pn(e) {
|
|
1441
1441
|
if (!Ze) {
|
|
1442
1442
|
rt && (rt = clearTimeout(rt));
|
|
1443
|
-
var t = e -
|
|
1443
|
+
var t = e - Oe;
|
|
1444
1444
|
t > 24 ? (e < 1 / 0 && (rt = setTimeout(Io, e - ft.now() - Qt)), nt && (nt = clearInterval(nt))) : (nt || (Bt = ft.now(), nt = setInterval(Zl, Yr)), Ze = 1, Zr(Io));
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
@@ -1632,7 +1632,7 @@ function iu(e, t, n) {
|
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
1634
|
function su(e, t) {
|
|
1635
|
-
var n = Ut(e), o = n === "transform" ?
|
|
1635
|
+
var n = Ut(e), o = n === "transform" ? Vl : Gr;
|
|
1636
1636
|
return this.attrTween(e, typeof t == "function" ? (n.local ? iu : ru)(n, o, jn(this, "attr." + e, t)) : t == null ? (n.local ? tu : eu)(n) : (n.local ? ou : nu)(n, o, t));
|
|
1637
1637
|
}
|
|
1638
1638
|
function au(e, t) {
|
|
@@ -1818,11 +1818,11 @@ function Hu(e, t) {
|
|
|
1818
1818
|
(l !== n || r !== d) && (o = (n = l).copy()).on(s, r = d), c.on = o;
|
|
1819
1819
|
};
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1822
|
-
var o = (e += "") == "transform" ?
|
|
1821
|
+
function Ou(e, t, n) {
|
|
1822
|
+
var o = (e += "") == "transform" ? Ol : Gr;
|
|
1823
1823
|
return t == null ? this.styleTween(e, zu(e, o)).on("end.style." + e, Kr(e)) : typeof t == "function" ? this.styleTween(e, Du(e, o, jn(this, "style." + e, t))).each(Hu(this._id, e)) : this.styleTween(e, Tu(e, o, t), n).on("end.style." + e, null);
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function Vu(e, t, n) {
|
|
1826
1826
|
return function(o) {
|
|
1827
1827
|
this.style.setProperty(e, t.call(this, o), n);
|
|
1828
1828
|
};
|
|
@@ -1831,7 +1831,7 @@ function Ru(e, t, n) {
|
|
|
1831
1831
|
var o, r;
|
|
1832
1832
|
function i() {
|
|
1833
1833
|
var s = t.apply(this, arguments);
|
|
1834
|
-
return s !== r && (o = (r = s) &&
|
|
1834
|
+
return s !== r && (o = (r = s) && Vu(e, s, n)), o;
|
|
1835
1835
|
}
|
|
1836
1836
|
return i._value = t, i;
|
|
1837
1837
|
}
|
|
@@ -1929,7 +1929,7 @@ Se.prototype = {
|
|
|
1929
1929
|
on: Cu,
|
|
1930
1930
|
attr: su,
|
|
1931
1931
|
attrTween: du,
|
|
1932
|
-
style:
|
|
1932
|
+
style: Ou,
|
|
1933
1933
|
styleTween: Lu,
|
|
1934
1934
|
text: Xu,
|
|
1935
1935
|
textTween: Wu,
|
|
@@ -2060,7 +2060,7 @@ function id(e, t, n) {
|
|
|
2060
2060
|
function Jr() {
|
|
2061
2061
|
var e = td, t = nd, n = id, o = od, r = rd, i = [0, 1 / 0], s = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], a = 250, c = Fl, l = Kt("start", "zoom", "end"), d, u, f, h = 500, g = 150, y = 0, b = 10;
|
|
2062
2062
|
function x(m) {
|
|
2063
|
-
m.property("__zoom", To).on("wheel.zoom", P, { passive: !1 }).on("mousedown.zoom", I).on("dblclick.zoom", A).filter(r).on("touchstart.zoom",
|
|
2063
|
+
m.property("__zoom", To).on("wheel.zoom", P, { passive: !1 }).on("mousedown.zoom", I).on("dblclick.zoom", A).filter(r).on("touchstart.zoom", O).on("touchmove.zoom", D).on("touchend.zoom touchcancel.zoom", H).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
2064
2064
|
}
|
|
2065
2065
|
x.transform = function(m, E, v, C) {
|
|
2066
2066
|
var $ = m.selection ? m.selection() : m;
|
|
@@ -2074,8 +2074,8 @@ function Jr() {
|
|
|
2074
2074
|
}, v, C);
|
|
2075
2075
|
}, x.scaleTo = function(m, E, v, C) {
|
|
2076
2076
|
x.transform(m, function() {
|
|
2077
|
-
var $ = t.apply(this, arguments), M = this.__zoom, T = v == null ? w($) : typeof v == "function" ? v.apply(this, arguments) : v,
|
|
2078
|
-
return n(p(_(M, R), T,
|
|
2077
|
+
var $ = t.apply(this, arguments), M = this.__zoom, T = v == null ? w($) : typeof v == "function" ? v.apply(this, arguments) : v, V = M.invert(T), R = typeof E == "function" ? E.apply(this, arguments) : E;
|
|
2078
|
+
return n(p(_(M, R), T, V), $, s);
|
|
2079
2079
|
}, v, C);
|
|
2080
2080
|
}, x.translateBy = function(m, E, v, C) {
|
|
2081
2081
|
x.transform(m, function() {
|
|
@@ -2086,8 +2086,8 @@ function Jr() {
|
|
|
2086
2086
|
}, null, C);
|
|
2087
2087
|
}, x.translateTo = function(m, E, v, C, $) {
|
|
2088
2088
|
x.transform(m, function() {
|
|
2089
|
-
var M = t.apply(this, arguments), T = this.__zoom,
|
|
2090
|
-
return n(jt.translate(
|
|
2089
|
+
var M = t.apply(this, arguments), T = this.__zoom, V = C == null ? w(M) : typeof C == "function" ? C.apply(this, arguments) : C;
|
|
2090
|
+
return n(jt.translate(V[0], V[1]).scale(T.k).translate(
|
|
2091
2091
|
typeof E == "function" ? -E.apply(this, arguments) : -E,
|
|
2092
2092
|
typeof v == "function" ? -v.apply(this, arguments) : -v
|
|
2093
2093
|
), M, s);
|
|
@@ -2109,7 +2109,7 @@ function Jr() {
|
|
|
2109
2109
|
}).on("interrupt.zoom end.zoom", function() {
|
|
2110
2110
|
k(this, arguments).event(C).end();
|
|
2111
2111
|
}).tween("zoom", function() {
|
|
2112
|
-
var $ = this, M = arguments, T = k($, M).event(C),
|
|
2112
|
+
var $ = this, M = arguments, T = k($, M).event(C), V = t.apply($, M), R = v == null ? w(V) : typeof v == "function" ? v.apply($, M) : v, Y = Math.max(V[1][0] - V[0][0], V[1][1] - V[0][1]), X = $.__zoom, F = typeof E == "function" ? E.apply($, M) : E, Z = c(X.invert(R).concat(Y / X.k), F.invert(R).concat(Y / F.k));
|
|
2113
2113
|
return function(L) {
|
|
2114
2114
|
if (L === 1) L = F;
|
|
2115
2115
|
else {
|
|
@@ -2170,11 +2170,11 @@ function Jr() {
|
|
|
2170
2170
|
}
|
|
2171
2171
|
function I(m, ...E) {
|
|
2172
2172
|
if (f || !e.apply(this, arguments)) return;
|
|
2173
|
-
var v = m.currentTarget, C = k(this, E, !0).event(m), $ = le(m.view).on("mousemove.zoom", R, !0).on("mouseup.zoom", Y, !0), M = he(m, v), T = m.clientX,
|
|
2173
|
+
var v = m.currentTarget, C = k(this, E, !0).event(m), $ = le(m.view).on("mousemove.zoom", R, !0).on("mouseup.zoom", Y, !0), M = he(m, v), T = m.clientX, V = m.clientY;
|
|
2174
2174
|
Dr(m.view), _n(m), C.mouse = [M, this.__zoom.invert(M)], Ht(this), C.start();
|
|
2175
2175
|
function R(X) {
|
|
2176
2176
|
if (ot(X), !C.moved) {
|
|
2177
|
-
var F = X.clientX - T, Z = X.clientY -
|
|
2177
|
+
var F = X.clientX - T, Z = X.clientY - V;
|
|
2178
2178
|
C.moved = F * F + Z * Z > y;
|
|
2179
2179
|
}
|
|
2180
2180
|
C.event(X).zoom("mouse", n(p(C.that.__zoom, C.mouse[0] = he(X, v), C.mouse[1]), C.extent, s));
|
|
@@ -2189,11 +2189,11 @@ function Jr() {
|
|
|
2189
2189
|
ot(m), a > 0 ? le(this).transition().duration(a).call(N, T, C, m) : le(this).call(x.transform, T, C, m);
|
|
2190
2190
|
}
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function O(m, ...E) {
|
|
2193
2193
|
if (e.apply(this, arguments)) {
|
|
2194
|
-
var v = m.touches, C = v.length, $ = k(this, E, m.changedTouches.length === C).event(m), M, T,
|
|
2194
|
+
var v = m.touches, C = v.length, $ = k(this, E, m.changedTouches.length === C).event(m), M, T, V, R;
|
|
2195
2195
|
for (_n(m), T = 0; T < C; ++T)
|
|
2196
|
-
|
|
2196
|
+
V = v[T], R = he(V, this), R = [R, this.__zoom.invert(R), V.identifier], $.touch0 ? !$.touch1 && $.touch0[2] !== R[2] && ($.touch1 = R, $.taps = 0) : ($.touch0 = R, M = !0, $.taps = 1 + !!d);
|
|
2197
2197
|
d && (d = clearTimeout(d)), M && ($.taps < 2 && (u = R[0], d = setTimeout(function() {
|
|
2198
2198
|
d = null;
|
|
2199
2199
|
}, h)), Ht(this), $.start());
|
|
@@ -2201,15 +2201,15 @@ function Jr() {
|
|
|
2201
2201
|
}
|
|
2202
2202
|
function D(m, ...E) {
|
|
2203
2203
|
if (this.__zooming) {
|
|
2204
|
-
var v = k(this, E).event(m), C = m.changedTouches, $ = C.length, M, T,
|
|
2204
|
+
var v = k(this, E).event(m), C = m.changedTouches, $ = C.length, M, T, V, R;
|
|
2205
2205
|
for (ot(m), M = 0; M < $; ++M)
|
|
2206
|
-
T = C[M],
|
|
2206
|
+
T = C[M], V = he(T, this), v.touch0 && v.touch0[2] === T.identifier ? v.touch0[0] = V : v.touch1 && v.touch1[2] === T.identifier && (v.touch1[0] = V);
|
|
2207
2207
|
if (T = v.that.__zoom, v.touch1) {
|
|
2208
2208
|
var Y = v.touch0[0], X = v.touch0[1], F = v.touch1[0], Z = v.touch1[1], L = (L = F[0] - Y[0]) * L + (L = F[1] - Y[1]) * L, W = (W = Z[0] - X[0]) * W + (W = Z[1] - X[1]) * W;
|
|
2209
|
-
T = _(T, Math.sqrt(L / W)),
|
|
2210
|
-
} else if (v.touch0)
|
|
2209
|
+
T = _(T, Math.sqrt(L / W)), V = [(Y[0] + F[0]) / 2, (Y[1] + F[1]) / 2], R = [(X[0] + Z[0]) / 2, (X[1] + Z[1]) / 2];
|
|
2210
|
+
} else if (v.touch0) V = v.touch0[0], R = v.touch0[1];
|
|
2211
2211
|
else return;
|
|
2212
|
-
v.zoom("touch", n(p(T,
|
|
2212
|
+
v.zoom("touch", n(p(T, V, R), v.extent, s));
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
2215
|
function H(m, ...E) {
|
|
@@ -2221,8 +2221,8 @@ function Jr() {
|
|
|
2221
2221
|
T = C[M], v.touch0 && v.touch0[2] === T.identifier ? delete v.touch0 : v.touch1 && v.touch1[2] === T.identifier && delete v.touch1;
|
|
2222
2222
|
if (v.touch1 && !v.touch0 && (v.touch0 = v.touch1, delete v.touch1), v.touch0) v.touch0[1] = this.__zoom.invert(v.touch0[0]);
|
|
2223
2223
|
else if (v.end(), v.taps === 2 && (T = he(T, this), Math.hypot(u[0] - T[0], u[1] - T[1]) < b)) {
|
|
2224
|
-
var
|
|
2225
|
-
|
|
2224
|
+
var V = le(this).on("dblclick.zoom");
|
|
2225
|
+
V && V.apply(this, arguments);
|
|
2226
2226
|
}
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
@@ -2394,7 +2394,7 @@ function ri({ nodeId: e, nextPosition: t, nodeLookup: n, nodeOrigin: o = [0, 0],
|
|
|
2394
2394
|
[s.extent[0][0] + c, s.extent[0][1] + l],
|
|
2395
2395
|
[s.extent[1][0] + c, s.extent[1][1] + l]
|
|
2396
2396
|
]);
|
|
2397
|
-
const f = Ke(u) ?
|
|
2397
|
+
const f = Ke(u) ? Ve(t, u, s.measured) : t;
|
|
2398
2398
|
return (s.measured.width === void 0 || s.measured.height === void 0) && i?.("015", xe.error015()), {
|
|
2399
2399
|
position: {
|
|
2400
2400
|
x: f.x - c + (s.measured.width ?? 0) * d[0],
|
|
@@ -2425,13 +2425,13 @@ async function ld({ nodesToRemove: e = [], edgesToRemove: t = [], nodes: n, edge
|
|
|
2425
2425
|
});
|
|
2426
2426
|
return typeof u == "boolean" ? u ? { edges: d, nodes: s } : { edges: [], nodes: [] } : u;
|
|
2427
2427
|
}
|
|
2428
|
-
const qe = (e, t = 0, n = 1) => Math.min(Math.max(e, t), n),
|
|
2428
|
+
const qe = (e, t = 0, n = 1) => Math.min(Math.max(e, t), n), Ve = (e = { x: 0, y: 0 }, t, n) => ({
|
|
2429
2429
|
x: qe(e.x, t[0][0], t[1][0] - (n?.width ?? 0)),
|
|
2430
2430
|
y: qe(e.y, t[0][1], t[1][1] - (n?.height ?? 0))
|
|
2431
2431
|
});
|
|
2432
2432
|
function ii(e, t, n) {
|
|
2433
2433
|
const { width: o, height: r } = Ce(n), { x: i, y: s } = n.internals.positionAbsolute;
|
|
2434
|
-
return
|
|
2434
|
+
return Ve(e, [
|
|
2435
2435
|
[i, s],
|
|
2436
2436
|
[i + o, s + r]
|
|
2437
2437
|
], t);
|
|
@@ -2444,7 +2444,7 @@ const Ho = (e, t, n) => e < t ? qe(Math.abs(e - t), 1, t) / t : e > n ? -qe(Math
|
|
|
2444
2444
|
y: Math.min(e.y, t.y),
|
|
2445
2445
|
x2: Math.max(e.x2, t.x2),
|
|
2446
2446
|
y2: Math.max(e.y2, t.y2)
|
|
2447
|
-
}),
|
|
2447
|
+
}), On = ({ x: e, y: t, width: n, height: o }) => ({
|
|
2448
2448
|
x: e,
|
|
2449
2449
|
y: t,
|
|
2450
2450
|
x2: e + n,
|
|
@@ -2470,10 +2470,10 @@ const Ho = (e, t, n) => e < t ? qe(Math.abs(e - t), 1, t) / t : e > n ? -qe(Math
|
|
|
2470
2470
|
x2: n + (e.measured?.width ?? e.width ?? e.initialWidth ?? 0),
|
|
2471
2471
|
y2: o + (e.measured?.height ?? e.height ?? e.initialHeight ?? 0)
|
|
2472
2472
|
};
|
|
2473
|
-
}, ai = (e, t) => tn(en(
|
|
2473
|
+
}, ai = (e, t) => tn(en(On(e), On(t))), pt = (e, t) => {
|
|
2474
2474
|
const n = Math.max(0, Math.min(e.x + e.width, t.x + t.width) - Math.max(e.x, t.x)), o = Math.max(0, Math.min(e.y + e.height, t.y + t.height) - Math.max(e.y, t.y));
|
|
2475
2475
|
return Math.ceil(n * o);
|
|
2476
|
-
},
|
|
2476
|
+
}, Oo = (e) => pe(e.width) && pe(e.height) && pe(e.x) && pe(e.y), pe = (e) => !isNaN(e) && isFinite(e), ud = (e, t) => {
|
|
2477
2477
|
}, nn = (e, t = [1, 1]) => ({
|
|
2478
2478
|
x: t[0] * Math.round(e.x / t[0]),
|
|
2479
2479
|
y: t[1] * Math.round(e.y / t[1])
|
|
@@ -2510,7 +2510,7 @@ function ui(e, t = { width: 0, height: 0 }, n, o, r) {
|
|
|
2510
2510
|
}
|
|
2511
2511
|
return i;
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function Vo(e, t) {
|
|
2514
2514
|
if (e.size !== t.size)
|
|
2515
2515
|
return !1;
|
|
2516
2516
|
for (const n of e)
|
|
@@ -2530,7 +2530,7 @@ const on = (e) => ({
|
|
|
2530
2530
|
width: e.offsetWidth,
|
|
2531
2531
|
height: e.offsetHeight
|
|
2532
2532
|
}), di = (e) => e?.getRootNode?.() || window?.document, dd = ["INPUT", "SELECT", "TEXTAREA"];
|
|
2533
|
-
function
|
|
2533
|
+
function Vn(e) {
|
|
2534
2534
|
const t = e.composedPath?.()?.[0] || e.target;
|
|
2535
2535
|
return t?.nodeType !== 1 ? !1 : dd.includes(t.nodeName) || t.hasAttribute("contenteditable") || !!t.closest(".nokey");
|
|
2536
2536
|
}
|
|
@@ -2688,8 +2688,8 @@ function wd({ source: e, sourcePosition: t = B.Bottom, target: n, targetPosition
|
|
|
2688
2688
|
const H = u === "x" ? "y" : "x", m = s[u] === a[H], E = c[H] > l[H], v = c[H] < l[H];
|
|
2689
2689
|
(s[u] === 1 && (!m && E || m && v) || s[u] !== 1 && (!m && v || m && E)) && (h = u === "x" ? S : P);
|
|
2690
2690
|
}
|
|
2691
|
-
const I = { x: c.x + b.x, y: c.y + b.y }, A = { x: l.x + x.x, y: l.y + x.y },
|
|
2692
|
-
|
|
2691
|
+
const I = { x: c.x + b.x, y: c.y + b.y }, A = { x: l.x + x.x, y: l.y + x.y }, O = Math.max(Math.abs(I.x - h[0].x), Math.abs(A.x - h[0].x)), D = Math.max(Math.abs(I.y - h[0].y), Math.abs(A.y - h[0].y));
|
|
2692
|
+
O >= D ? (g = (I.x + A.x) / 2, y = h[0].y) : (g = h[0].x, y = (I.y + A.y) / 2);
|
|
2693
2693
|
}
|
|
2694
2694
|
return [[
|
|
2695
2695
|
e,
|
|
@@ -2840,7 +2840,7 @@ function Sd(e, t, n) {
|
|
|
2840
2840
|
if (r.parentId)
|
|
2841
2841
|
ro(r, e, t, o);
|
|
2842
2842
|
else {
|
|
2843
|
-
const i = _t(r, o.nodeOrigin), s = Ke(r.extent) ? r.extent : o.nodeExtent, a =
|
|
2843
|
+
const i = _t(r, o.nodeOrigin), s = Ke(r.extent) ? r.extent : o.nodeExtent, a = Ve(i, s, Ce(r));
|
|
2844
2844
|
r.internals.positionAbsolute = a;
|
|
2845
2845
|
}
|
|
2846
2846
|
}
|
|
@@ -2852,7 +2852,7 @@ function Bn(e, t, n, o) {
|
|
|
2852
2852
|
if (r.checkEquality && a === c?.internals.userNode)
|
|
2853
2853
|
t.set(a.id, c);
|
|
2854
2854
|
else {
|
|
2855
|
-
const l = _t(a, r.nodeOrigin), d = Ke(a.extent) ? a.extent : r.nodeExtent, u =
|
|
2855
|
+
const l = _t(a, r.nodeOrigin), d = Ke(a.extent) ? a.extent : r.nodeExtent, u = Ve(l, d, Ce(a));
|
|
2856
2856
|
c = {
|
|
2857
2857
|
...r.defaults,
|
|
2858
2858
|
...a,
|
|
@@ -2899,8 +2899,8 @@ function yi(e, t) {
|
|
|
2899
2899
|
return (pe(e.zIndex) ? e.zIndex : 0) + (e.selected ? t : 0);
|
|
2900
2900
|
}
|
|
2901
2901
|
function Cd(e, t, n, o, r) {
|
|
2902
|
-
const { x: i, y: s } = t.internals.positionAbsolute, a = Ce(e), c = _t(e, n), l = Ke(e.extent) ?
|
|
2903
|
-
let d =
|
|
2902
|
+
const { x: i, y: s } = t.internals.positionAbsolute, a = Ce(e), c = _t(e, n), l = Ke(e.extent) ? Ve(c, e.extent, a) : c;
|
|
2903
|
+
let d = Ve({ x: i + l.x, y: s + l.y }, o, a);
|
|
2904
2904
|
e.extent === "parent" && (d = ii(d, a, t));
|
|
2905
2905
|
const u = yi(e, r), f = t.internals.z ?? 0;
|
|
2906
2906
|
return {
|
|
@@ -2971,7 +2971,7 @@ function Md(e, t, n, o, r, i) {
|
|
|
2971
2971
|
if (!!(g.width && g.height && (y || !h.internals.handleBounds || f.force))) {
|
|
2972
2972
|
const x = f.nodeElement.getBoundingClientRect(), _ = Ke(h.extent) ? h.extent : i;
|
|
2973
2973
|
let { positionAbsolute: p } = h.internals;
|
|
2974
|
-
h.parentId && h.extent === "parent" ? p = ii(p, g, t.get(h.parentId)) : _ && (p =
|
|
2974
|
+
h.parentId && h.extent === "parent" ? p = ii(p, g, t.get(h.parentId)) : _ && (p = Ve(p, _, g));
|
|
2975
2975
|
const w = {
|
|
2976
2976
|
...h,
|
|
2977
2977
|
measured: g,
|
|
@@ -3102,25 +3102,25 @@ function Id({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
3102
3102
|
let i = { x: null, y: null }, s = 0, a = /* @__PURE__ */ new Map(), c = !1, l = { x: 0, y: 0 }, d = null, u = !1, f = null, h = !1;
|
|
3103
3103
|
function g({ noDragClassName: b, handleSelector: x, domNode: _, isSelectable: p, nodeId: w, nodeClickDistance: N = 0 }) {
|
|
3104
3104
|
f = le(_);
|
|
3105
|
-
function k({ x: A, y:
|
|
3106
|
-
const { nodeLookup: H, nodeExtent: m, snapGrid: E, snapToGrid: v, nodeOrigin: C, onNodeDrag: $, onSelectionDrag: M, onError: T, updateNodePositions:
|
|
3107
|
-
i = { x: A, y:
|
|
3105
|
+
function k({ x: A, y: O }, D) {
|
|
3106
|
+
const { nodeLookup: H, nodeExtent: m, snapGrid: E, snapToGrid: v, nodeOrigin: C, onNodeDrag: $, onSelectionDrag: M, onError: T, updateNodePositions: V } = t();
|
|
3107
|
+
i = { x: A, y: O };
|
|
3108
3108
|
let R = !1, Y = { x: 0, y: 0, x2: 0, y2: 0 };
|
|
3109
3109
|
if (a.size > 1 && m) {
|
|
3110
3110
|
const X = Ue(a);
|
|
3111
|
-
Y =
|
|
3111
|
+
Y = On(X);
|
|
3112
3112
|
}
|
|
3113
3113
|
for (const [X, F] of a) {
|
|
3114
3114
|
if (!H.has(X))
|
|
3115
3115
|
continue;
|
|
3116
|
-
let Z = { x: A - F.distance.x, y:
|
|
3116
|
+
let Z = { x: A - F.distance.x, y: O - F.distance.y };
|
|
3117
3117
|
v && (Z = nn(Z, E));
|
|
3118
3118
|
let L = [
|
|
3119
3119
|
[m[0][0], m[0][1]],
|
|
3120
3120
|
[m[1][0], m[1][1]]
|
|
3121
3121
|
];
|
|
3122
3122
|
if (a.size > 1 && m && !F.extent) {
|
|
3123
|
-
const { positionAbsolute:
|
|
3123
|
+
const { positionAbsolute: ee } = F.internals, Q = ee.x - Y.x + m[0][0], q = ee.x + F.measured.width - Y.x2 + m[1][0], U = ee.y - Y.y + m[0][1], oe = ee.y + F.measured.height - Y.y2 + m[1][1];
|
|
3124
3124
|
L = [
|
|
3125
3125
|
[Q, U],
|
|
3126
3126
|
[q, oe]
|
|
@@ -3136,7 +3136,7 @@ function Id({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
3136
3136
|
});
|
|
3137
3137
|
R = R || F.position.x !== W.x || F.position.y !== W.y, F.position = W, F.internals.positionAbsolute = G;
|
|
3138
3138
|
}
|
|
3139
|
-
if (R && (
|
|
3139
|
+
if (R && (V(a, !0), D && (o || $ || !w && M))) {
|
|
3140
3140
|
const [X, F] = bn({
|
|
3141
3141
|
nodeId: w,
|
|
3142
3142
|
dragItems: a,
|
|
@@ -3148,35 +3148,35 @@ function Id({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
3148
3148
|
async function S() {
|
|
3149
3149
|
if (!d)
|
|
3150
3150
|
return;
|
|
3151
|
-
const { transform: A, panBy:
|
|
3151
|
+
const { transform: A, panBy: O, autoPanSpeed: D, autoPanOnNodeDrag: H } = t();
|
|
3152
3152
|
if (!H) {
|
|
3153
3153
|
c = !1, cancelAnimationFrame(s);
|
|
3154
3154
|
return;
|
|
3155
3155
|
}
|
|
3156
3156
|
const [m, E] = si(l, d, D);
|
|
3157
|
-
(m !== 0 || E !== 0) && (i.x = (i.x ?? 0) - m / A[2], i.y = (i.y ?? 0) - E / A[2], await
|
|
3157
|
+
(m !== 0 || E !== 0) && (i.x = (i.x ?? 0) - m / A[2], i.y = (i.y ?? 0) - E / A[2], await O({ x: m, y: E }) && k(i, null)), s = requestAnimationFrame(S);
|
|
3158
3158
|
}
|
|
3159
3159
|
function P(A) {
|
|
3160
|
-
const { nodeLookup:
|
|
3161
|
-
u = !0, (!C || !p) && !D && w && (
|
|
3162
|
-
const
|
|
3163
|
-
if (i =
|
|
3160
|
+
const { nodeLookup: O, multiSelectionActive: D, nodesDraggable: H, transform: m, snapGrid: E, snapToGrid: v, selectNodesOnDrag: C, onNodeDragStart: $, onSelectionDragStart: M, unselectNodesAndEdges: T } = t();
|
|
3161
|
+
u = !0, (!C || !p) && !D && w && (O.get(w)?.selected || T()), p && C && w && e?.(w);
|
|
3162
|
+
const V = st(A.sourceEvent, { transform: m, snapGrid: E, snapToGrid: v, containerBounds: d });
|
|
3163
|
+
if (i = V, a = $d(O, H, V, w), a.size > 0 && (n || $ || !w && M)) {
|
|
3164
3164
|
const [R, Y] = bn({
|
|
3165
3165
|
nodeId: w,
|
|
3166
3166
|
dragItems: a,
|
|
3167
|
-
nodeLookup:
|
|
3167
|
+
nodeLookup: O
|
|
3168
3168
|
});
|
|
3169
3169
|
n?.(A.sourceEvent, a, R, Y), $?.(A.sourceEvent, R, Y), w || M?.(A.sourceEvent, Y);
|
|
3170
3170
|
}
|
|
3171
3171
|
}
|
|
3172
|
-
const I =
|
|
3173
|
-
const { domNode:
|
|
3174
|
-
d =
|
|
3172
|
+
const I = Or().clickDistance(N).on("start", (A) => {
|
|
3173
|
+
const { domNode: O, nodeDragThreshold: D, transform: H, snapGrid: m, snapToGrid: E } = t();
|
|
3174
|
+
d = O?.getBoundingClientRect() || null, h = !1, D === 0 && P(A), i = st(A.sourceEvent, { transform: H, snapGrid: m, snapToGrid: E, containerBounds: d }), l = Ee(A.sourceEvent, d);
|
|
3175
3175
|
}).on("drag", (A) => {
|
|
3176
|
-
const { autoPanOnNodeDrag:
|
|
3176
|
+
const { autoPanOnNodeDrag: O, transform: D, snapGrid: H, snapToGrid: m, nodeDragThreshold: E, nodeLookup: v } = t(), C = st(A.sourceEvent, { transform: D, snapGrid: H, snapToGrid: m, containerBounds: d });
|
|
3177
3177
|
if ((A.sourceEvent.type === "touchmove" && A.sourceEvent.touches.length > 1 || // if user deletes a node while dragging, we need to abort the drag to prevent errors
|
|
3178
3178
|
w && !v.has(w)) && (h = !0), !h) {
|
|
3179
|
-
if (!c &&
|
|
3179
|
+
if (!c && O && u && (c = !0, S()), !u) {
|
|
3180
3180
|
const $ = C.xSnapped - (i.x ?? 0), M = C.ySnapped - (i.y ?? 0);
|
|
3181
3181
|
Math.sqrt($ * $ + M * M) > E && P(A);
|
|
3182
3182
|
}
|
|
@@ -3184,20 +3184,20 @@ function Id({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
3184
3184
|
}
|
|
3185
3185
|
}).on("end", (A) => {
|
|
3186
3186
|
if (!(!u || h) && (c = !1, u = !1, cancelAnimationFrame(s), a.size > 0)) {
|
|
3187
|
-
const { nodeLookup:
|
|
3187
|
+
const { nodeLookup: O, updateNodePositions: D, onNodeDragStop: H, onSelectionDragStop: m } = t();
|
|
3188
3188
|
if (D(a, !1), r || H || !w && m) {
|
|
3189
3189
|
const [E, v] = bn({
|
|
3190
3190
|
nodeId: w,
|
|
3191
3191
|
dragItems: a,
|
|
3192
|
-
nodeLookup:
|
|
3192
|
+
nodeLookup: O,
|
|
3193
3193
|
dragging: !1
|
|
3194
3194
|
});
|
|
3195
3195
|
r?.(A.sourceEvent, a, E, v), H?.(A.sourceEvent, E, v), w || m?.(A.sourceEvent, v);
|
|
3196
3196
|
}
|
|
3197
3197
|
}
|
|
3198
3198
|
}).filter((A) => {
|
|
3199
|
-
const
|
|
3200
|
-
return !A.button && (!b || !qo(
|
|
3199
|
+
const O = A.target;
|
|
3200
|
+
return !A.button && (!b || !qo(O, `.${b}`, _)) && (!x || qo(O, x, _));
|
|
3201
3201
|
});
|
|
3202
3202
|
f.call(I);
|
|
3203
3203
|
}
|
|
@@ -3259,18 +3259,18 @@ const bi = () => !0;
|
|
|
3259
3259
|
function Dd(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r, edgeUpdaterType: i, isTarget: s, domNode: a, nodeLookup: c, lib: l, autoPanOnConnect: d, flowId: u, panBy: f, cancelConnection: h, onConnectStart: g, onConnect: y, onConnectEnd: b, isValidConnection: x = bi, onReconnectEnd: _, updateConnection: p, getTransform: w, getFromHandle: N, autoPanSpeed: k }) {
|
|
3260
3260
|
const S = di(e.target);
|
|
3261
3261
|
let P = 0, I;
|
|
3262
|
-
const { x: A, y:
|
|
3262
|
+
const { x: A, y: O } = Ee(e), D = S?.elementFromPoint(A, O), H = _i(i, D), m = a?.getBoundingClientRect();
|
|
3263
3263
|
if (!m || !H)
|
|
3264
3264
|
return;
|
|
3265
3265
|
const E = vi(r, H, o, c, t);
|
|
3266
3266
|
if (!E)
|
|
3267
3267
|
return;
|
|
3268
3268
|
let v = Ee(e, m), C = !1, $ = null, M = !1, T = null;
|
|
3269
|
-
function
|
|
3269
|
+
function V() {
|
|
3270
3270
|
if (!d || !m)
|
|
3271
3271
|
return;
|
|
3272
|
-
const [G,
|
|
3273
|
-
f({ x: G, y:
|
|
3272
|
+
const [G, ee] = si(v, m, k);
|
|
3273
|
+
f({ x: G, y: ee }), P = requestAnimationFrame(V);
|
|
3274
3274
|
}
|
|
3275
3275
|
const R = {
|
|
3276
3276
|
...E,
|
|
@@ -3297,8 +3297,8 @@ function Dd(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
|
|
|
3297
3297
|
W(G);
|
|
3298
3298
|
return;
|
|
3299
3299
|
}
|
|
3300
|
-
const
|
|
3301
|
-
v = Ee(G, m), I = zd(bt(v,
|
|
3300
|
+
const ee = w();
|
|
3301
|
+
v = Ee(G, m), I = zd(bt(v, ee, !1, [1, 1]), n, c, R), C || (V(), C = !0);
|
|
3302
3302
|
const Q = Ei(G, {
|
|
3303
3303
|
handle: I,
|
|
3304
3304
|
connectionMode: t,
|
|
@@ -3316,7 +3316,7 @@ function Dd(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
|
|
|
3316
3316
|
// from stays the same
|
|
3317
3317
|
...Z,
|
|
3318
3318
|
isValid: M,
|
|
3319
|
-
to: I && M ? ci({ x: I.x, y: I.y },
|
|
3319
|
+
to: I && M ? ci({ x: I.x, y: I.y }, ee) : v,
|
|
3320
3320
|
toHandle: Q.toHandle,
|
|
3321
3321
|
toPosition: M && Q.toHandle ? Q.toHandle.position : Do[R.position],
|
|
3322
3322
|
toNode: Q.toHandle ? c.get(Q.toHandle.nodeId) : null
|
|
@@ -3325,7 +3325,7 @@ function Dd(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
|
|
|
3325
3325
|
}
|
|
3326
3326
|
function W(G) {
|
|
3327
3327
|
(I || T) && $ && M && y?.($);
|
|
3328
|
-
const { inProgress:
|
|
3328
|
+
const { inProgress: ee, ...Q } = Z, q = {
|
|
3329
3329
|
...Q,
|
|
3330
3330
|
toPosition: Z.toHandle ? Z.toPosition : null
|
|
3331
3331
|
};
|
|
@@ -3409,7 +3409,7 @@ function Hd({ domNode: e, panZoom: t, getTransform: n, getViewScale: o }) {
|
|
|
3409
3409
|
pointer: he
|
|
3410
3410
|
};
|
|
3411
3411
|
}
|
|
3412
|
-
const
|
|
3412
|
+
const Od = (e, t) => e.x !== t.x || e.y !== t.y || e.zoom !== t.k, rn = (e) => ({
|
|
3413
3413
|
x: e.x,
|
|
3414
3414
|
y: e.y,
|
|
3415
3415
|
zoom: e.k
|
|
@@ -3421,7 +3421,7 @@ const Vd = (e, t) => e.x !== t.x || e.y !== t.y || e.zoom !== t.k, rn = (e) => (
|
|
|
3421
3421
|
const t = e.ctrlKey && Zt() ? 10 : 1;
|
|
3422
3422
|
return -e.deltaY * (e.deltaMode === 1 ? 0.05 : e.deltaMode ? 1 : 2e-3) * t;
|
|
3423
3423
|
};
|
|
3424
|
-
function
|
|
3424
|
+
function Vd({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: o, panOnScrollMode: r, panOnScrollSpeed: i, zoomOnPinch: s, onPanZoomStart: a, onPanZoom: c, onPanZoomEnd: l }) {
|
|
3425
3425
|
return (d) => {
|
|
3426
3426
|
if (Re(d, t))
|
|
3427
3427
|
return !1;
|
|
@@ -3469,7 +3469,7 @@ function Bd({ zoomPanValues: e, panOnDrag: t, onPaneContextMenu: n, onTransformC
|
|
|
3469
3469
|
}
|
|
3470
3470
|
function Fd({ zoomPanValues: e, panOnDrag: t, panOnScroll: n, onDraggingChange: o, onPanZoomEnd: r, onPaneContextMenu: i }) {
|
|
3471
3471
|
return (s) => {
|
|
3472
|
-
if (!s.sourceEvent?.internal && (e.isZoomingOrPanning = !1, i && Si(t, e.mouseButton ?? 0) && !e.usedRightMouseButton && s.sourceEvent && i(s.sourceEvent), e.usedRightMouseButton = !1, o(!1), r &&
|
|
3472
|
+
if (!s.sourceEvent?.internal && (e.isZoomingOrPanning = !1, i && Si(t, e.mouseButton ?? 0) && !e.usedRightMouseButton && s.sourceEvent && i(s.sourceEvent), e.usedRightMouseButton = !1, o(!1), r && Od(e.prevViewport, s.transform))) {
|
|
3473
3473
|
const a = rn(s.transform);
|
|
3474
3474
|
e.prevViewport = a, clearTimeout(e.timerId), e.timerId = setTimeout(
|
|
3475
3475
|
() => {
|
|
@@ -3521,16 +3521,16 @@ function Yd({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: o, translat
|
|
|
3521
3521
|
f?.transform(Sn(h, H?.duration, () => m(!0)), D);
|
|
3522
3522
|
}) : Promise.resolve(!1);
|
|
3523
3523
|
}
|
|
3524
|
-
function x({ noWheelClassName: D, noPanClassName: H, onPaneContextMenu: m, userSelectionActive: E, panOnScroll: v, panOnDrag: C, panOnScrollMode: $, panOnScrollSpeed: M, preventScrolling: T, zoomOnPinch:
|
|
3524
|
+
function x({ noWheelClassName: D, noPanClassName: H, onPaneContextMenu: m, userSelectionActive: E, panOnScroll: v, panOnDrag: C, panOnScrollMode: $, panOnScrollSpeed: M, preventScrolling: T, zoomOnPinch: V, zoomOnScroll: R, zoomOnDoubleClick: Y, zoomActivationKeyPressed: X, lib: F, onTransformChange: Z }) {
|
|
3525
3525
|
E && !d.isZoomingOrPanning && _();
|
|
3526
|
-
const W = v && !X && !E ?
|
|
3526
|
+
const W = v && !X && !E ? Vd({
|
|
3527
3527
|
zoomPanValues: d,
|
|
3528
3528
|
noWheelClassName: D,
|
|
3529
3529
|
d3Selection: h,
|
|
3530
3530
|
d3Zoom: f,
|
|
3531
3531
|
panOnScrollMode: $,
|
|
3532
3532
|
panOnScrollSpeed: M,
|
|
3533
|
-
zoomOnPinch:
|
|
3533
|
+
zoomOnPinch: V,
|
|
3534
3534
|
onPanZoomStart: a,
|
|
3535
3535
|
onPanZoom: s,
|
|
3536
3536
|
onPanZoomEnd: c
|
|
@@ -3540,12 +3540,12 @@ function Yd({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: o, translat
|
|
|
3540
3540
|
d3ZoomHandler: g
|
|
3541
3541
|
});
|
|
3542
3542
|
if (h.on("wheel.zoom", W, { passive: !1 }), !E) {
|
|
3543
|
-
const
|
|
3543
|
+
const ee = Ld({
|
|
3544
3544
|
zoomPanValues: d,
|
|
3545
3545
|
onDraggingChange: l,
|
|
3546
3546
|
onPanZoomStart: a
|
|
3547
3547
|
});
|
|
3548
|
-
f.on("start",
|
|
3548
|
+
f.on("start", ee);
|
|
3549
3549
|
const Q = Bd({
|
|
3550
3550
|
zoomPanValues: d,
|
|
3551
3551
|
panOnDrag: C,
|
|
@@ -3570,7 +3570,7 @@ function Yd({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: o, translat
|
|
|
3570
3570
|
zoomOnScroll: R,
|
|
3571
3571
|
panOnScroll: v,
|
|
3572
3572
|
zoomOnDoubleClick: Y,
|
|
3573
|
-
zoomOnPinch:
|
|
3573
|
+
zoomOnPinch: V,
|
|
3574
3574
|
userSelectionActive: E,
|
|
3575
3575
|
noPanClassName: H,
|
|
3576
3576
|
noWheelClassName: D,
|
|
@@ -3615,7 +3615,7 @@ function Yd({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: o, translat
|
|
|
3615
3615
|
function A(D) {
|
|
3616
3616
|
f?.translateExtent(D);
|
|
3617
3617
|
}
|
|
3618
|
-
function
|
|
3618
|
+
function O(D) {
|
|
3619
3619
|
const H = !pe(D) || D < 0 ? 0 : D;
|
|
3620
3620
|
f?.clickDistance(H);
|
|
3621
3621
|
}
|
|
@@ -3630,7 +3630,7 @@ function Yd({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: o, translat
|
|
|
3630
3630
|
setScaleExtent: I,
|
|
3631
3631
|
setTranslateExtent: A,
|
|
3632
3632
|
syncViewport: N,
|
|
3633
|
-
setClickDistance:
|
|
3633
|
+
setClickDistance: O
|
|
3634
3634
|
};
|
|
3635
3635
|
}
|
|
3636
3636
|
var at;
|
|
@@ -3666,15 +3666,15 @@ function qd(e, t, n, o, r, i, s, a) {
|
|
|
3666
3666
|
let { affectsX: c, affectsY: l } = t;
|
|
3667
3667
|
const { isHorizontal: d, isVertical: u } = t, f = d && u, { xSnapped: h, ySnapped: g } = n, { minWidth: y, maxWidth: b, minHeight: x, maxHeight: _ } = o, { x: p, y: w, width: N, height: k, aspectRatio: S } = e;
|
|
3668
3668
|
let P = Math.floor(d ? h - e.pointerX : 0), I = Math.floor(u ? g - e.pointerY : 0);
|
|
3669
|
-
const A = N + (c ? -P : P),
|
|
3670
|
-
let m = It(A, y, b), E = It(
|
|
3669
|
+
const A = N + (c ? -P : P), O = k + (l ? -I : I), D = -i[0] * N, H = -i[1] * k;
|
|
3670
|
+
let m = It(A, y, b), E = It(O, x, _);
|
|
3671
3671
|
if (s) {
|
|
3672
3672
|
let $ = 0, M = 0;
|
|
3673
|
-
c && P < 0 ? $ = Me(p + P + D, s[0][0]) : !c && P > 0 && ($ = ke(p + A + D, s[1][0])), l && I < 0 ? M = Me(w + I + H, s[0][1]) : !l && I > 0 && (M = ke(w +
|
|
3673
|
+
c && P < 0 ? $ = Me(p + P + D, s[0][0]) : !c && P > 0 && ($ = ke(p + A + D, s[1][0])), l && I < 0 ? M = Me(w + I + H, s[0][1]) : !l && I > 0 && (M = ke(w + O + H, s[1][1])), m = Math.max(m, $), E = Math.max(E, M);
|
|
3674
3674
|
}
|
|
3675
3675
|
if (a) {
|
|
3676
3676
|
let $ = 0, M = 0;
|
|
3677
|
-
c && P > 0 ? $ = ke(p + P, a[0][0]) : !c && P < 0 && ($ = Me(p + A, a[1][0])), l && I > 0 ? M = ke(w + I, a[0][1]) : !l && I < 0 && (M = Me(w +
|
|
3677
|
+
c && P > 0 ? $ = ke(p + P, a[0][0]) : !c && P < 0 && ($ = Me(p + A, a[1][0])), l && I > 0 ? M = ke(w + I, a[0][1]) : !l && I < 0 && (M = Me(w + O, a[1][1])), m = Math.max(m, $), E = Math.max(E, M);
|
|
3678
3678
|
}
|
|
3679
3679
|
if (r) {
|
|
3680
3680
|
if (d) {
|
|
@@ -3689,18 +3689,18 @@ function qd(e, t, n, o, r, i, s, a) {
|
|
|
3689
3689
|
}
|
|
3690
3690
|
}
|
|
3691
3691
|
if (u) {
|
|
3692
|
-
const $ = It(
|
|
3692
|
+
const $ = It(O * S, y, b) / S;
|
|
3693
3693
|
if (E = Math.max(E, $), s) {
|
|
3694
3694
|
let M = 0;
|
|
3695
|
-
!c && !l || l && !c && f ? M = ke(p +
|
|
3695
|
+
!c && !l || l && !c && f ? M = ke(p + O * S + D, s[1][0]) / S : M = Me(p + (l ? I : -I) * S + D, s[0][0]) / S, E = Math.max(E, M);
|
|
3696
3696
|
}
|
|
3697
3697
|
if (a) {
|
|
3698
3698
|
let M = 0;
|
|
3699
|
-
!c && !l || l && !c && f ? M = Me(p +
|
|
3699
|
+
!c && !l || l && !c && f ? M = Me(p + O * S, a[1][0]) / S : M = ke(p + (l ? I : -I) * S, a[0][0]) / S, E = Math.max(E, M);
|
|
3700
3700
|
}
|
|
3701
3701
|
}
|
|
3702
3702
|
}
|
|
3703
|
-
I = I + (I < 0 ? E : -E), P = P + (P < 0 ? m : -m), r && (f ? A >
|
|
3703
|
+
I = I + (I < 0 ? E : -E), P = P + (P < 0 ? m : -m), r && (f ? A > O * S ? I = (Go(c, l) ? -P : P) / S : P = (Go(c, l) ? -I : I) * S : d ? (I = P / S, l = c) : (P = I * S, c = l));
|
|
3704
3704
|
const v = c ? p + P : p, C = l ? w + I : w;
|
|
3705
3705
|
return {
|
|
3706
3706
|
width: N + (c ? -P : P),
|
|
@@ -3734,13 +3734,13 @@ function Qd({ domNode: e, nodeId: t, getStoreItems: n, onChange: o, onEnd: r })
|
|
|
3734
3734
|
let y = { ...Ci }, b = { ...Gd };
|
|
3735
3735
|
const x = Wd(c);
|
|
3736
3736
|
let _, p = null, w = [], N, k, S;
|
|
3737
|
-
const P =
|
|
3738
|
-
const { nodeLookup: A, transform:
|
|
3737
|
+
const P = Or().on("start", (I) => {
|
|
3738
|
+
const { nodeLookup: A, transform: O, snapGrid: D, snapToGrid: H, nodeOrigin: m, paneDomNode: E } = n();
|
|
3739
3739
|
if (_ = A.get(t), !_)
|
|
3740
3740
|
return;
|
|
3741
3741
|
p = E?.getBoundingClientRect() ?? null;
|
|
3742
3742
|
const { xSnapped: v, ySnapped: C } = st(I.sourceEvent, {
|
|
3743
|
-
transform:
|
|
3743
|
+
transform: O,
|
|
3744
3744
|
snapGrid: D,
|
|
3745
3745
|
snapToGrid: H,
|
|
3746
3746
|
containerBounds: p
|
|
@@ -3770,39 +3770,39 @@ function Qd({ domNode: e, nodeId: t, getStoreItems: n, onChange: o, onEnd: r })
|
|
|
3770
3770
|
}
|
|
3771
3771
|
u?.(I, { ...y });
|
|
3772
3772
|
}).on("drag", (I) => {
|
|
3773
|
-
const { transform: A, snapGrid:
|
|
3773
|
+
const { transform: A, snapGrid: O, snapToGrid: D, nodeOrigin: H } = n(), m = st(I.sourceEvent, {
|
|
3774
3774
|
transform: A,
|
|
3775
|
-
snapGrid:
|
|
3775
|
+
snapGrid: O,
|
|
3776
3776
|
snapToGrid: D,
|
|
3777
3777
|
containerBounds: p
|
|
3778
3778
|
}), E = [];
|
|
3779
3779
|
if (!_)
|
|
3780
3780
|
return;
|
|
3781
|
-
const { x: v, y: C, width: $, height: M } = y, T = {},
|
|
3781
|
+
const { x: v, y: C, width: $, height: M } = y, T = {}, V = _.origin ?? H, { width: R, height: Y, x: X, y: F } = qd(b, x, m, l, d, V, k, S), Z = R !== $, L = Y !== M, W = X !== v && Z, G = F !== C && L;
|
|
3782
3782
|
if (!W && !G && !Z && !L)
|
|
3783
3783
|
return;
|
|
3784
|
-
if ((W || G ||
|
|
3784
|
+
if ((W || G || V[0] === 1 || V[1] === 1) && (T.x = W ? X : y.x, T.y = G ? F : y.y, y.x = T.x, y.y = T.y, w.length > 0)) {
|
|
3785
3785
|
const U = X - v, oe = F - C;
|
|
3786
3786
|
for (const ae of w)
|
|
3787
3787
|
ae.position = {
|
|
3788
|
-
x: ae.position.x - U +
|
|
3789
|
-
y: ae.position.y - oe +
|
|
3788
|
+
x: ae.position.x - U + V[0] * (R - $),
|
|
3789
|
+
y: ae.position.y - oe + V[1] * (Y - M)
|
|
3790
3790
|
}, E.push(ae);
|
|
3791
3791
|
}
|
|
3792
3792
|
if ((Z || L) && (T.width = Z ? R : y.width, T.height = L ? Y : y.height, y.width = T.width, y.height = T.height), N && _.expandParent) {
|
|
3793
|
-
const U =
|
|
3793
|
+
const U = V[0] * (T.width ?? 0);
|
|
3794
3794
|
T.x && T.x < U && (y.x = U, b.x = b.x - (T.x - U));
|
|
3795
|
-
const oe =
|
|
3795
|
+
const oe = V[1] * (T.height ?? 0);
|
|
3796
3796
|
T.y && T.y < oe && (y.y = oe, b.y = b.y - (T.y - oe));
|
|
3797
3797
|
}
|
|
3798
|
-
const
|
|
3798
|
+
const ee = Zd({
|
|
3799
3799
|
width: y.width,
|
|
3800
3800
|
prevWidth: $,
|
|
3801
3801
|
height: y.height,
|
|
3802
3802
|
prevHeight: M,
|
|
3803
3803
|
affectsX: x.affectsX,
|
|
3804
3804
|
affectsY: x.affectsY
|
|
3805
|
-
}), Q = { ...y, direction:
|
|
3805
|
+
}), Q = { ...y, direction: ee };
|
|
3806
3806
|
g?.(I, Q) !== !1 && (f?.(I, Q), o(T, E));
|
|
3807
3807
|
}).on("end", (I) => {
|
|
3808
3808
|
h?.(I, { ...y }), r?.();
|
|
@@ -3846,7 +3846,7 @@ const Uo = (e, t) => {
|
|
|
3846
3846
|
const n = jd(e), o = (r, i = t) => Mi(n, r, i);
|
|
3847
3847
|
return Object.assign(o, n), o;
|
|
3848
3848
|
}, of = (e, t) => e ? Uo(e, t) : Uo;
|
|
3849
|
-
function
|
|
3849
|
+
function te(e, t) {
|
|
3850
3850
|
if (Object.is(e, t))
|
|
3851
3851
|
return !0;
|
|
3852
3852
|
if (typeof e != "object" || e === null || typeof t != "object" || t === null)
|
|
@@ -3880,7 +3880,7 @@ function K(e, t) {
|
|
|
3880
3880
|
throw new Error(ki);
|
|
3881
3881
|
return Mi(n, e, t);
|
|
3882
3882
|
}
|
|
3883
|
-
function
|
|
3883
|
+
function ne() {
|
|
3884
3884
|
const e = wt(sn);
|
|
3885
3885
|
if (e === null)
|
|
3886
3886
|
throw new Error(ki);
|
|
@@ -3925,10 +3925,10 @@ const hf = (e) => {
|
|
|
3925
3925
|
return { selectedNodes: t, selectedEdges: n };
|
|
3926
3926
|
}, At = (e) => e.id;
|
|
3927
3927
|
function gf(e, t) {
|
|
3928
|
-
return
|
|
3928
|
+
return te(e.selectedNodes.map(At), t.selectedNodes.map(At)) && te(e.selectedEdges.map(At), t.selectedEdges.map(At));
|
|
3929
3929
|
}
|
|
3930
3930
|
function pf({ onSelectionChange: e }) {
|
|
3931
|
-
const t =
|
|
3931
|
+
const t = ne(), { selectedNodes: n, selectedEdges: o } = K(hf, gf);
|
|
3932
3932
|
return j(() => {
|
|
3933
3933
|
const r = { nodes: n, edges: o };
|
|
3934
3934
|
e?.(r), t.getState().onSelectionChangeHandlers.forEach((i) => i(r));
|
|
@@ -4021,7 +4021,7 @@ const Ai = [0, 0], wf = { x: 0, y: 0, zoom: 1 }, xf = [
|
|
|
4021
4021
|
paneClickDistance: 0
|
|
4022
4022
|
};
|
|
4023
4023
|
function _f(e) {
|
|
4024
|
-
const { setNodes: t, setEdges: n, setMinZoom: o, setMaxZoom: r, setTranslateExtent: i, setNodeExtent: s, reset: a, setDefaultNodesAndEdges: c, setPaneClickDistance: l } = K(vf,
|
|
4024
|
+
const { setNodes: t, setEdges: n, setMinZoom: o, setMaxZoom: r, setTranslateExtent: i, setNodeExtent: s, reset: a, setDefaultNodesAndEdges: c, setPaneClickDistance: l } = K(vf, te), d = ne();
|
|
4025
4025
|
j(() => (c(e.defaultNodes, e.defaultEdges), () => {
|
|
4026
4026
|
u.current = jo, a();
|
|
4027
4027
|
}), []);
|
|
@@ -4072,12 +4072,12 @@ function yt(e = null, t = { target: tr, actInsideInputWithModifier: !0 }) {
|
|
|
4072
4072
|
const c = t?.target || tr;
|
|
4073
4073
|
if (e !== null) {
|
|
4074
4074
|
const l = (f) => {
|
|
4075
|
-
if (r.current = f.ctrlKey || f.metaKey || f.shiftKey, (!r.current || r.current && !t.actInsideInputWithModifier) &&
|
|
4075
|
+
if (r.current = f.ctrlKey || f.metaKey || f.shiftKey, (!r.current || r.current && !t.actInsideInputWithModifier) && Vn(f))
|
|
4076
4076
|
return !1;
|
|
4077
4077
|
const g = or(f.code, a);
|
|
4078
4078
|
i.current.add(f[g]), nr(s, i.current, !1) && (f.preventDefault(), o(!0));
|
|
4079
4079
|
}, d = (f) => {
|
|
4080
|
-
if ((!r.current || r.current && !t.actInsideInputWithModifier) &&
|
|
4080
|
+
if ((!r.current || r.current && !t.actInsideInputWithModifier) && Vn(f))
|
|
4081
4081
|
return !1;
|
|
4082
4082
|
const g = or(f.code, a);
|
|
4083
4083
|
nr(s, i.current, !0) ? (o(!1), i.current.clear()) : i.current.delete(f[g]), f.key === "Meta" && i.current.clear(), r.current = !1;
|
|
@@ -4097,7 +4097,7 @@ function or(e, t) {
|
|
|
4097
4097
|
return t.includes(e) ? "code" : "key";
|
|
4098
4098
|
}
|
|
4099
4099
|
const Ef = () => {
|
|
4100
|
-
const e =
|
|
4100
|
+
const e = ne();
|
|
4101
4101
|
return me(() => ({
|
|
4102
4102
|
zoomIn: (t) => {
|
|
4103
4103
|
const { panZoom: n } = e.getState();
|
|
@@ -4284,7 +4284,7 @@ function Mf(e) {
|
|
|
4284
4284
|
}
|
|
4285
4285
|
const Hi = Zn(null);
|
|
4286
4286
|
function kf({ children: e }) {
|
|
4287
|
-
const t =
|
|
4287
|
+
const t = ne(), n = ue((a) => {
|
|
4288
4288
|
const { nodes: c = [], setNodes: l, hasDefaultNodes: d, onNodesChange: u, nodeLookup: f } = t.getState();
|
|
4289
4289
|
let h = c;
|
|
4290
4290
|
for (const g of a)
|
|
@@ -4313,7 +4313,7 @@ function $f() {
|
|
|
4313
4313
|
}
|
|
4314
4314
|
const If = (e) => !!e.panZoom;
|
|
4315
4315
|
function so() {
|
|
4316
|
-
const e = Ef(), t =
|
|
4316
|
+
const e = Ef(), t = ne(), n = $f(), o = K(If), r = me(() => {
|
|
4317
4317
|
const i = (u) => t.getState().nodeLookup.get(u), s = (u) => {
|
|
4318
4318
|
n.nodeQueue.push(u);
|
|
4319
4319
|
}, a = (u) => {
|
|
@@ -4393,7 +4393,7 @@ function so() {
|
|
|
4393
4393
|
return (P || S) && p?.({ nodes: N, edges: k }), { deletedNodes: N, deletedEdges: k };
|
|
4394
4394
|
},
|
|
4395
4395
|
getIntersectingNodes: (u, f = !0, h) => {
|
|
4396
|
-
const g =
|
|
4396
|
+
const g = Oo(u), y = g ? u : c(u), b = h !== void 0;
|
|
4397
4397
|
return y ? (h || t.getState().nodes).filter((x) => {
|
|
4398
4398
|
const _ = t.getState().nodeLookup.get(x.id);
|
|
4399
4399
|
if (_ && !g && (x.id === u.id || !_.internals.positionAbsolute))
|
|
@@ -4403,7 +4403,7 @@ function so() {
|
|
|
4403
4403
|
}) : [];
|
|
4404
4404
|
},
|
|
4405
4405
|
isNodeIntersecting: (u, f, h = !0) => {
|
|
4406
|
-
const y =
|
|
4406
|
+
const y = Oo(u) ? u : c(u);
|
|
4407
4407
|
if (!y)
|
|
4408
4408
|
return !1;
|
|
4409
4409
|
const b = pt(y, f);
|
|
@@ -4439,7 +4439,7 @@ function so() {
|
|
|
4439
4439
|
}
|
|
4440
4440
|
const cr = (e) => e.selected, Af = { actInsideInputWithModifier: !1 }, Pf = typeof window < "u" ? window : void 0;
|
|
4441
4441
|
function zf({ deleteKeyCode: e, multiSelectionKeyCode: t }) {
|
|
4442
|
-
const n =
|
|
4442
|
+
const n = ne(), { deleteElements: o } = so(), r = yt(e, Af), i = yt(t, { target: Pf });
|
|
4443
4443
|
j(() => {
|
|
4444
4444
|
if (r) {
|
|
4445
4445
|
const { edges: s, nodes: a } = n.getState();
|
|
@@ -4450,7 +4450,7 @@ function zf({ deleteKeyCode: e, multiSelectionKeyCode: t }) {
|
|
|
4450
4450
|
}, [i]);
|
|
4451
4451
|
}
|
|
4452
4452
|
function Tf(e) {
|
|
4453
|
-
const t =
|
|
4453
|
+
const t = ne();
|
|
4454
4454
|
j(() => {
|
|
4455
4455
|
const n = () => {
|
|
4456
4456
|
if (!e.current)
|
|
@@ -4478,10 +4478,10 @@ const cn = {
|
|
|
4478
4478
|
lib: e.lib
|
|
4479
4479
|
});
|
|
4480
4480
|
function Hf({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: o = !1, panOnScrollSpeed: r = 0.5, panOnScrollMode: i = He.Free, zoomOnDoubleClick: s = !0, panOnDrag: a = !0, defaultViewport: c, translateExtent: l, minZoom: d, maxZoom: u, zoomActivationKeyCode: f, preventScrolling: h = !0, children: g, noWheelClassName: y, noPanClassName: b, onViewportChange: x, isControlledViewport: _, paneClickDistance: p }) {
|
|
4481
|
-
const w =
|
|
4481
|
+
const w = ne(), N = J(null), { userSelectionActive: k, lib: S } = K(Df, te), P = yt(f), I = J();
|
|
4482
4482
|
Tf(N);
|
|
4483
|
-
const A = ue((
|
|
4484
|
-
x?.({ x:
|
|
4483
|
+
const A = ue((O) => {
|
|
4484
|
+
x?.({ x: O[0], y: O[1], zoom: O[2] }), _ || w.setState({ transform: O });
|
|
4485
4485
|
}, [x, _]);
|
|
4486
4486
|
return j(() => {
|
|
4487
4487
|
if (N.current) {
|
|
@@ -4506,10 +4506,10 @@ function Hf({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, p
|
|
|
4506
4506
|
C?.(m, E), v?.(E);
|
|
4507
4507
|
}
|
|
4508
4508
|
});
|
|
4509
|
-
const { x:
|
|
4509
|
+
const { x: O, y: D, zoom: H } = I.current.getViewport();
|
|
4510
4510
|
return w.setState({
|
|
4511
4511
|
panZoom: I.current,
|
|
4512
|
-
transform: [
|
|
4512
|
+
transform: [O, D, H],
|
|
4513
4513
|
domNode: N.current.closest(".react-flow")
|
|
4514
4514
|
}), () => {
|
|
4515
4515
|
I.current?.destroy();
|
|
@@ -4551,12 +4551,12 @@ function Hf({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, p
|
|
|
4551
4551
|
A
|
|
4552
4552
|
]), z("div", { className: "react-flow__renderer", ref: N, style: cn, children: g });
|
|
4553
4553
|
}
|
|
4554
|
-
const
|
|
4554
|
+
const Of = (e) => ({
|
|
4555
4555
|
userSelectionActive: e.userSelectionActive,
|
|
4556
4556
|
userSelectionRect: e.userSelectionRect
|
|
4557
4557
|
});
|
|
4558
|
-
function
|
|
4559
|
-
const { userSelectionActive: e, userSelectionRect: t } = K(
|
|
4558
|
+
function Vf() {
|
|
4559
|
+
const { userSelectionActive: e, userSelectionRect: t } = K(Of, te);
|
|
4560
4560
|
return e && t ? z("div", { className: "react-flow__selection react-flow__container", style: {
|
|
4561
4561
|
width: t.width,
|
|
4562
4562
|
height: t.height,
|
|
@@ -4571,7 +4571,7 @@ const Nn = (e, t) => (n) => {
|
|
|
4571
4571
|
dragging: e.paneDragging
|
|
4572
4572
|
});
|
|
4573
4573
|
function Lf({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = gt.Full, panOnDrag: o, selectionOnDrag: r, onSelectionStart: i, onSelectionEnd: s, onPaneClick: a, onPaneContextMenu: c, onPaneScroll: l, onPaneMouseEnter: d, onPaneMouseMove: u, onPaneMouseLeave: f, children: h }) {
|
|
4574
|
-
const g =
|
|
4574
|
+
const g = ne(), { userSelectionActive: y, elementsSelectable: b, dragging: x } = K(Rf, te), _ = b && (e || y), p = J(null), w = J(), N = J(/* @__PURE__ */ new Set()), k = J(/* @__PURE__ */ new Set()), S = J(!1), P = J(!1), I = (v) => {
|
|
4575
4575
|
if (S.current) {
|
|
4576
4576
|
S.current = !1;
|
|
4577
4577
|
return;
|
|
@@ -4583,7 +4583,7 @@ function Lf({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = gt.Full
|
|
|
4583
4583
|
return;
|
|
4584
4584
|
}
|
|
4585
4585
|
c?.(v);
|
|
4586
|
-
},
|
|
4586
|
+
}, O = l ? (v) => l(v) : void 0, D = (v) => {
|
|
4587
4587
|
const { resetSelectedElements: C, domNode: $ } = g.getState();
|
|
4588
4588
|
if (w.current = $?.getBoundingClientRect(), !b || !e || v.button !== 0 || v.target !== p.current || !w.current)
|
|
4589
4589
|
return;
|
|
@@ -4600,7 +4600,7 @@ function Lf({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = gt.Full
|
|
|
4600
4600
|
}
|
|
4601
4601
|
}), i?.(v);
|
|
4602
4602
|
}, H = (v) => {
|
|
4603
|
-
const { userSelectionRect: C, transform: $, nodeLookup: M, edgeLookup: T, connectionLookup:
|
|
4603
|
+
const { userSelectionRect: C, transform: $, nodeLookup: M, edgeLookup: T, connectionLookup: V, triggerNodeChanges: R, triggerEdgeChanges: Y, defaultEdgeOptions: X } = g.getState();
|
|
4604
4604
|
if (!w.current || !C)
|
|
4605
4605
|
return;
|
|
4606
4606
|
S.current = !0;
|
|
@@ -4611,22 +4611,22 @@ function Lf({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = gt.Full
|
|
|
4611
4611
|
y: Z < W ? Z : W,
|
|
4612
4612
|
width: Math.abs(F - L),
|
|
4613
4613
|
height: Math.abs(Z - W)
|
|
4614
|
-
},
|
|
4614
|
+
}, ee = N.current, Q = k.current;
|
|
4615
4615
|
N.current = new Set(oi(M, G, $, n === gt.Partial, !0).map((U) => U.id)), k.current = /* @__PURE__ */ new Set();
|
|
4616
4616
|
const q = X?.selectable ?? !0;
|
|
4617
4617
|
for (const U of N.current) {
|
|
4618
|
-
const oe =
|
|
4618
|
+
const oe = V.get(U);
|
|
4619
4619
|
if (oe)
|
|
4620
4620
|
for (const { edgeId: ae } of oe.values()) {
|
|
4621
4621
|
const Pe = T.get(ae);
|
|
4622
4622
|
Pe && (Pe.selectable ?? q) && k.current.add(ae);
|
|
4623
4623
|
}
|
|
4624
4624
|
}
|
|
4625
|
-
if (!
|
|
4625
|
+
if (!Vo(ee, N.current)) {
|
|
4626
4626
|
const U = Le(M, N.current, !0);
|
|
4627
4627
|
R(U);
|
|
4628
4628
|
}
|
|
4629
|
-
if (!
|
|
4629
|
+
if (!Vo(Q, k.current)) {
|
|
4630
4630
|
const U = Le(T, k.current);
|
|
4631
4631
|
Y(U);
|
|
4632
4632
|
}
|
|
@@ -4646,7 +4646,7 @@ function Lf({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = gt.Full
|
|
|
4646
4646
|
nodesSelectionActive: N.current.size > 0
|
|
4647
4647
|
}), s?.(v), (t || r) && (S.current = !1), P.current = !1;
|
|
4648
4648
|
}, E = o === !0 || Array.isArray(o) && o.includes(0);
|
|
4649
|
-
return se("div", { className: re(["react-flow__pane", { draggable: E, dragging: x, selection: e }]), onClick: _ ? void 0 : Nn(I, p), onContextMenu: Nn(A, p), onWheel: Nn(
|
|
4649
|
+
return se("div", { className: re(["react-flow__pane", { draggable: E, dragging: x, selection: e }]), onClick: _ ? void 0 : Nn(I, p), onContextMenu: Nn(A, p), onWheel: Nn(O, p), onPointerEnter: _ ? void 0 : d, onPointerDown: _ ? D : u, onPointerMove: _ ? H : u, onPointerUp: _ ? m : void 0, onPointerLeave: f, ref: p, style: cn, children: [h, z(Vf, {})] });
|
|
4650
4650
|
}
|
|
4651
4651
|
function Xn({ id: e, store: t, unselect: n = !1, nodeRef: o }) {
|
|
4652
4652
|
const { addSelectedNodes: r, unselectNodesAndEdges: i, multiSelectionActive: s, nodeLookup: a, onError: c } = t.getState(), l = a.get(e);
|
|
@@ -4656,8 +4656,8 @@ function Xn({ id: e, store: t, unselect: n = !1, nodeRef: o }) {
|
|
|
4656
4656
|
}
|
|
4657
4657
|
t.setState({ nodesSelectionActive: !1 }), l.selected ? (n || l.selected && s) && (i({ nodes: [l], edges: [] }), requestAnimationFrame(() => o?.current?.blur())) : r([e]);
|
|
4658
4658
|
}
|
|
4659
|
-
function
|
|
4660
|
-
const a =
|
|
4659
|
+
function Oi({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector: o, nodeId: r, isSelectable: i, nodeClickDistance: s }) {
|
|
4660
|
+
const a = ne(), [c, l] = fe(!1), d = J();
|
|
4661
4661
|
return j(() => {
|
|
4662
4662
|
d.current = Id({
|
|
4663
4663
|
getStoreItems: () => a.getState(),
|
|
@@ -4692,8 +4692,8 @@ function Vi({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
|
|
|
4692
4692
|
}, [n, o, t, i, e, r]), c;
|
|
4693
4693
|
}
|
|
4694
4694
|
const Bf = (e) => (t) => t.selected && (t.draggable || e && typeof t.draggable > "u");
|
|
4695
|
-
function
|
|
4696
|
-
const e =
|
|
4695
|
+
function Vi() {
|
|
4696
|
+
const e = ne();
|
|
4697
4697
|
return ue((n) => {
|
|
4698
4698
|
const { nodeExtent: o, snapToGrid: r, snapGrid: i, nodesDraggable: s, onError: a, updateNodePositions: c, nodeLookup: l, nodeOrigin: d } = e.getState(), u = /* @__PURE__ */ new Map(), f = Bf(s), h = r ? i[0] : 5, g = r ? i[1] : 5, y = n.direction.x * h * n.factor, b = n.direction.y * g * n.factor;
|
|
4699
4699
|
for (const [, x] of l) {
|
|
@@ -4736,7 +4736,7 @@ const co = () => wt(ao), Xf = (e) => ({
|
|
|
4736
4736
|
};
|
|
4737
4737
|
};
|
|
4738
4738
|
function Zf({ type: e = "source", position: t = B.Top, isValidConnection: n, isConnectable: o = !0, isConnectableStart: r = !0, isConnectableEnd: i = !0, id: s, onConnect: a, children: c, className: l, onMouseDown: d, onTouchStart: u, ...f }, h) {
|
|
4739
|
-
const g = s || null, y = e === "target", b =
|
|
4739
|
+
const g = s || null, y = e === "target", b = ne(), x = co(), { connectOnClick: _, noPanClassName: p, rfId: w } = K(Xf, te), { connectingFrom: N, connectingTo: k, clickConnecting: S, isPossibleEndHandle: P, connectionInProcess: I, clickConnectionInProcess: A, valid: O } = K(Yf(x, g, e), te);
|
|
4740
4740
|
x || b.getState().onError?.("010", xe.error010());
|
|
4741
4741
|
const D = (E) => {
|
|
4742
4742
|
const { defaultEdgeOptions: v, onConnect: C, hasDefaultEdges: $ } = b.getState(), M = {
|
|
@@ -4744,8 +4744,8 @@ function Zf({ type: e = "source", position: t = B.Top, isValidConnection: n, isC
|
|
|
4744
4744
|
...E
|
|
4745
4745
|
};
|
|
4746
4746
|
if ($) {
|
|
4747
|
-
const { edges: T, setEdges:
|
|
4748
|
-
|
|
4747
|
+
const { edges: T, setEdges: V } = b.getState();
|
|
4748
|
+
V(md(M, T));
|
|
4749
4749
|
}
|
|
4750
4750
|
C?.(M), a?.(M);
|
|
4751
4751
|
}, H = (E) => {
|
|
@@ -4779,7 +4779,7 @@ function Zf({ type: e = "source", position: t = B.Top, isValidConnection: n, isC
|
|
|
4779
4779
|
}
|
|
4780
4780
|
v ? d?.(E) : u?.(E);
|
|
4781
4781
|
}, m = (E) => {
|
|
4782
|
-
const { onClickConnectStart: v, onClickConnectEnd: C, connectionClickStartHandle: $, connectionMode: M, isValidConnection: T, lib:
|
|
4782
|
+
const { onClickConnectStart: v, onClickConnectEnd: C, connectionClickStartHandle: $, connectionMode: M, isValidConnection: T, lib: V, rfId: R, nodeLookup: Y, connection: X } = b.getState();
|
|
4783
4783
|
if (!x || !$ && !r)
|
|
4784
4784
|
return;
|
|
4785
4785
|
if (!$) {
|
|
@@ -4799,7 +4799,7 @@ function Zf({ type: e = "source", position: t = B.Top, isValidConnection: n, isC
|
|
|
4799
4799
|
isValidConnection: Z,
|
|
4800
4800
|
flowId: R,
|
|
4801
4801
|
doc: F,
|
|
4802
|
-
lib:
|
|
4802
|
+
lib: V,
|
|
4803
4803
|
nodeLookup: Y
|
|
4804
4804
|
});
|
|
4805
4805
|
W && L && D(L);
|
|
@@ -4821,7 +4821,7 @@ function Zf({ type: e = "source", position: t = B.Top, isValidConnection: n, isC
|
|
|
4821
4821
|
clickconnecting: S,
|
|
4822
4822
|
connectingfrom: N,
|
|
4823
4823
|
connectingto: k,
|
|
4824
|
-
valid:
|
|
4824
|
+
valid: O,
|
|
4825
4825
|
/*
|
|
4826
4826
|
* shows where you can start a connection from
|
|
4827
4827
|
* and where you can end it while connecting
|
|
@@ -4875,12 +4875,12 @@ const Qf = (e) => {
|
|
|
4875
4875
|
};
|
|
4876
4876
|
};
|
|
4877
4877
|
function Jf({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y: n }) {
|
|
4878
|
-
const o =
|
|
4878
|
+
const o = ne(), { width: r, height: i, transformString: s, userSelectionActive: a } = K(Qf, te), c = Vi(), l = J(null);
|
|
4879
4879
|
if (j(() => {
|
|
4880
4880
|
n || l.current?.focus({
|
|
4881
4881
|
preventScroll: !0
|
|
4882
4882
|
});
|
|
4883
|
-
}, [n]),
|
|
4883
|
+
}, [n]), Oi({
|
|
4884
4884
|
nodeRef: l
|
|
4885
4885
|
}), a || !r || !i)
|
|
4886
4886
|
return null;
|
|
@@ -4901,14 +4901,14 @@ function Jf({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y:
|
|
|
4901
4901
|
} }) });
|
|
4902
4902
|
}
|
|
4903
4903
|
const ur = typeof window < "u" ? window : void 0, jf = (e) => ({ nodesSelectionActive: e.nodesSelectionActive, userSelectionActive: e.userSelectionActive });
|
|
4904
|
-
function Ri({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: o, onPaneMouseLeave: r, onPaneContextMenu: i, onPaneScroll: s, paneClickDistance: a, deleteKeyCode: c, selectionKeyCode: l, selectionOnDrag: d, selectionMode: u, onSelectionStart: f, onSelectionEnd: h, multiSelectionKeyCode: g, panActivationKeyCode: y, zoomActivationKeyCode: b, elementsSelectable: x, zoomOnScroll: _, zoomOnPinch: p, panOnScroll: w, panOnScrollSpeed: N, panOnScrollMode: k, zoomOnDoubleClick: S, panOnDrag: P, defaultViewport: I, translateExtent: A, minZoom:
|
|
4905
|
-
const { nodesSelectionActive: T, userSelectionActive:
|
|
4906
|
-
return zf({ deleteKeyCode: c, multiSelectionKeyCode: g }), z(Hf, { onPaneContextMenu: i, elementsSelectable: x, zoomOnScroll: _, zoomOnPinch: p, panOnScroll: F, panOnScrollSpeed: N, panOnScrollMode: k, zoomOnDoubleClick: S, panOnDrag: !R && X, defaultViewport: I, translateExtent: A, minZoom:
|
|
4904
|
+
function Ri({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: o, onPaneMouseLeave: r, onPaneContextMenu: i, onPaneScroll: s, paneClickDistance: a, deleteKeyCode: c, selectionKeyCode: l, selectionOnDrag: d, selectionMode: u, onSelectionStart: f, onSelectionEnd: h, multiSelectionKeyCode: g, panActivationKeyCode: y, zoomActivationKeyCode: b, elementsSelectable: x, zoomOnScroll: _, zoomOnPinch: p, panOnScroll: w, panOnScrollSpeed: N, panOnScrollMode: k, zoomOnDoubleClick: S, panOnDrag: P, defaultViewport: I, translateExtent: A, minZoom: O, maxZoom: D, preventScrolling: H, onSelectionContextMenu: m, noWheelClassName: E, noPanClassName: v, disableKeyboardA11y: C, onViewportChange: $, isControlledViewport: M }) {
|
|
4905
|
+
const { nodesSelectionActive: T, userSelectionActive: V } = K(jf), R = yt(l, { target: ur }), Y = yt(y, { target: ur }), X = Y || P, F = Y || w, Z = d && X !== !0, L = R || V || Z;
|
|
4906
|
+
return zf({ deleteKeyCode: c, multiSelectionKeyCode: g }), z(Hf, { onPaneContextMenu: i, elementsSelectable: x, zoomOnScroll: _, zoomOnPinch: p, panOnScroll: F, panOnScrollSpeed: N, panOnScrollMode: k, zoomOnDoubleClick: S, panOnDrag: !R && X, defaultViewport: I, translateExtent: A, minZoom: O, maxZoom: D, zoomActivationKeyCode: b, preventScrolling: H, noWheelClassName: E, noPanClassName: v, onViewportChange: $, isControlledViewport: M, paneClickDistance: a, children: se(Lf, { onSelectionStart: f, onSelectionEnd: h, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: o, onPaneMouseLeave: r, onPaneContextMenu: i, onPaneScroll: s, panOnDrag: X, isSelecting: !!L, selectionMode: u, selectionKeyPressed: R, selectionOnDrag: Z, children: [e, T && z(Jf, { onSelectionContextMenu: m, noPanClassName: v, disableKeyboardA11y: C })] }) });
|
|
4907
4907
|
}
|
|
4908
4908
|
Ri.displayName = "FlowRenderer";
|
|
4909
4909
|
const eh = ie(Ri), th = (e) => (t) => e ? oi(t.nodeLookup, { x: 0, y: 0, width: t.width, height: t.height }, t.transform, !0).map((n) => n.id) : Array.from(t.nodeLookup.keys());
|
|
4910
4910
|
function nh(e) {
|
|
4911
|
-
return K(ue(th(e), [e]),
|
|
4911
|
+
return K(ue(th(e), [e]), te);
|
|
4912
4912
|
}
|
|
4913
4913
|
const oh = (e) => e.updateNodeInternals;
|
|
4914
4914
|
function rh() {
|
|
@@ -4928,7 +4928,7 @@ function rh() {
|
|
|
4928
4928
|
}, [t]), t;
|
|
4929
4929
|
}
|
|
4930
4930
|
function ih({ node: e, nodeType: t, hasDimensions: n, resizeObserver: o }) {
|
|
4931
|
-
const r =
|
|
4931
|
+
const r = ne(), i = J(null), s = J(null), a = J(e.sourcePosition), c = J(e.targetPosition), l = J(t), d = n && !!e.internals.handleBounds;
|
|
4932
4932
|
return j(() => {
|
|
4933
4933
|
i.current && !e.hidden && (!d || s.current !== i.current) && (s.current && o?.unobserve(s.current), o?.observe(i.current), s.current = i.current);
|
|
4934
4934
|
}, [d, e.hidden]), j(() => () => {
|
|
@@ -4948,10 +4948,10 @@ function sh({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
|
|
|
4948
4948
|
internals: W.internals,
|
|
4949
4949
|
isParent: G
|
|
4950
4950
|
};
|
|
4951
|
-
},
|
|
4951
|
+
}, te);
|
|
4952
4952
|
let k = p.type || "default", S = b?.[k] || lr[k];
|
|
4953
4953
|
S === void 0 && (_?.("003", xe.error003(k)), k = "default", S = lr.default);
|
|
4954
|
-
const P = !!(p.draggable || a && typeof p.draggable > "u"), I = !!(p.selectable || c && typeof p.selectable > "u"), A = !!(p.connectable || l && typeof p.connectable > "u"),
|
|
4954
|
+
const P = !!(p.draggable || a && typeof p.draggable > "u"), I = !!(p.selectable || c && typeof p.selectable > "u"), A = !!(p.connectable || l && typeof p.connectable > "u"), O = !!(p.focusable || d && typeof p.focusable > "u"), D = ne(), H = li(p), m = ih({ node: p, nodeType: k, hasDimensions: H, resizeObserver: u }), E = Oi({
|
|
4955
4955
|
nodeRef: m,
|
|
4956
4956
|
disabled: p.hidden || !P,
|
|
4957
4957
|
noDragClassName: f,
|
|
@@ -4959,10 +4959,10 @@ function sh({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
|
|
|
4959
4959
|
nodeId: e,
|
|
4960
4960
|
isSelectable: I,
|
|
4961
4961
|
nodeClickDistance: x
|
|
4962
|
-
}), v =
|
|
4962
|
+
}), v = Vi();
|
|
4963
4963
|
if (p.hidden)
|
|
4964
4964
|
return null;
|
|
4965
|
-
const C = Ce(p), $ = Uf(p), M = I || P || t || n || o || r, T = n ? (L) => n(L, { ...w.userNode }) : void 0,
|
|
4965
|
+
const C = Ce(p), $ = Uf(p), M = I || P || t || n || o || r, T = n ? (L) => n(L, { ...w.userNode }) : void 0, V = o ? (L) => o(L, { ...w.userNode }) : void 0, R = r ? (L) => r(L, { ...w.userNode }) : void 0, Y = i ? (L) => i(L, { ...w.userNode }) : void 0, X = s ? (L) => s(L, { ...w.userNode }) : void 0, F = (L) => {
|
|
4966
4966
|
const { selectNodesOnDrag: W, nodeDragThreshold: G } = D.getState();
|
|
4967
4967
|
I && (!W || !P || G > 0) && Xn({
|
|
4968
4968
|
id: e,
|
|
@@ -4970,7 +4970,7 @@ function sh({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
|
|
|
4970
4970
|
nodeRef: m
|
|
4971
4971
|
}), t && t(L, { ...w.userNode });
|
|
4972
4972
|
}, Z = (L) => {
|
|
4973
|
-
if (!(
|
|
4973
|
+
if (!(Vn(L.nativeEvent) || g))
|
|
4974
4974
|
if (jr.includes(L.key) && I) {
|
|
4975
4975
|
const W = L.key === "Escape";
|
|
4976
4976
|
Xn({
|
|
@@ -5008,7 +5008,7 @@ function sh({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
|
|
|
5008
5008
|
visibility: H ? "visible" : "hidden",
|
|
5009
5009
|
...p.style,
|
|
5010
5010
|
...$
|
|
5011
|
-
}, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: T, onMouseMove:
|
|
5011
|
+
}, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: T, onMouseMove: V, onMouseLeave: R, onContextMenu: Y, onClick: F, onDoubleClick: X, onKeyDown: O ? Z : void 0, tabIndex: O ? 0 : void 0, role: O ? "button" : void 0, "aria-describedby": g ? void 0 : `${$i}-${y}`, "aria-label": p.ariaLabel, children: z(Ff, { value: e, children: z(S, { id: e, data: p.data, type: k, positionAbsoluteX: w.positionAbsolute.x, positionAbsoluteY: w.positionAbsolute.y, selected: p.selected ?? !1, selectable: I, draggable: P, deletable: p.deletable ?? !0, isConnectable: A, sourcePosition: p.sourcePosition, targetPosition: p.targetPosition, dragging: E, dragHandle: p.dragHandle, zIndex: w.z, parentId: p.parentId, ...C }) }) });
|
|
5012
5012
|
}
|
|
5013
5013
|
const ah = (e) => ({
|
|
5014
5014
|
nodesDraggable: e.nodesDraggable,
|
|
@@ -5018,7 +5018,7 @@ const ah = (e) => ({
|
|
|
5018
5018
|
onError: e.onError
|
|
5019
5019
|
});
|
|
5020
5020
|
function Li(e) {
|
|
5021
|
-
const { nodesDraggable: t, nodesConnectable: n, nodesFocusable: o, elementsSelectable: r, onError: i } = K(ah,
|
|
5021
|
+
const { nodesDraggable: t, nodesConnectable: n, nodesFocusable: o, elementsSelectable: r, onError: i } = K(ah, te), s = nh(e.onlyRenderVisibleElements), a = rh();
|
|
5022
5022
|
return z("div", { className: "react-flow__nodes", style: cn, children: s.map((c) => (
|
|
5023
5023
|
/*
|
|
5024
5024
|
* The split of responsibilities between NodeRenderer and
|
|
@@ -5067,7 +5067,7 @@ function lh(e) {
|
|
|
5067
5067
|
}) && o.push(r.id);
|
|
5068
5068
|
}
|
|
5069
5069
|
return o;
|
|
5070
|
-
}, [e]),
|
|
5070
|
+
}, [e]), te);
|
|
5071
5071
|
}
|
|
5072
5072
|
const uh = ({ color: e = "none", strokeWidth: t = 1 }) => z("polyline", { style: {
|
|
5073
5073
|
stroke: e,
|
|
@@ -5081,7 +5081,7 @@ const uh = ({ color: e = "none", strokeWidth: t = 1 }) => z("polyline", { style:
|
|
|
5081
5081
|
[Xt.ArrowClosed]: dh
|
|
5082
5082
|
};
|
|
5083
5083
|
function fh(e) {
|
|
5084
|
-
const t =
|
|
5084
|
+
const t = ne();
|
|
5085
5085
|
return me(() => Object.prototype.hasOwnProperty.call(dr, e) ? dr[e] : (t.getState().onError?.("009", xe.error009(e)), null), [e]);
|
|
5086
5086
|
}
|
|
5087
5087
|
const hh = ({ id: e, type: t, color: n, width: o = 12.5, height: r = 12.5, markerUnits: i = "strokeWidth", strokeWidth: s, orient: a = "auto-start-reverse" }) => {
|
|
@@ -5238,14 +5238,14 @@ function mr({ position: e, centerX: t, centerY: n, radius: o = 10, onMouseDown:
|
|
|
5238
5238
|
return z("circle", { onMouseDown: r, onMouseEnter: i, onMouseOut: s, className: re([pr, `${pr}-${a}`]), cx: vh(t, o, e), cy: _h(n, o, e), r: o, stroke: "transparent", fill: "transparent" });
|
|
5239
5239
|
}
|
|
5240
5240
|
function bh({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: o, sourceY: r, targetX: i, targetY: s, sourcePosition: a, targetPosition: c, onReconnect: l, onReconnectStart: d, onReconnectEnd: u, setReconnecting: f, setUpdateHover: h }) {
|
|
5241
|
-
const g =
|
|
5241
|
+
const g = ne(), y = (w, N) => {
|
|
5242
5242
|
if (w.button !== 0)
|
|
5243
5243
|
return;
|
|
5244
|
-
const { autoPanOnConnect: k, domNode: S, isValidConnection: P, connectionMode: I, connectionRadius: A, lib:
|
|
5244
|
+
const { autoPanOnConnect: k, domNode: S, isValidConnection: P, connectionMode: I, connectionRadius: A, lib: O, onConnectStart: D, onConnectEnd: H, cancelConnection: m, nodeLookup: E, rfId: v, panBy: C, updateConnection: $ } = g.getState(), M = N.type === "target";
|
|
5245
5245
|
f(!0), d?.(w, n, N.type);
|
|
5246
5246
|
const T = (R, Y) => {
|
|
5247
5247
|
f(!1), u?.(R, n, N.type, Y);
|
|
5248
|
-
},
|
|
5248
|
+
}, V = (R) => l?.(n, R);
|
|
5249
5249
|
Fn.onPointerDown(w.nativeEvent, {
|
|
5250
5250
|
autoPanOnConnect: k,
|
|
5251
5251
|
connectionMode: I,
|
|
@@ -5256,12 +5256,12 @@ function bh({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: o, sourc
|
|
|
5256
5256
|
nodeLookup: E,
|
|
5257
5257
|
isTarget: M,
|
|
5258
5258
|
edgeUpdaterType: N.type,
|
|
5259
|
-
lib:
|
|
5259
|
+
lib: O,
|
|
5260
5260
|
flowId: v,
|
|
5261
5261
|
cancelConnection: m,
|
|
5262
5262
|
panBy: C,
|
|
5263
5263
|
isValidConnection: P,
|
|
5264
|
-
onConnect:
|
|
5264
|
+
onConnect: V,
|
|
5265
5265
|
onConnectStart: D,
|
|
5266
5266
|
onConnectEnd: H,
|
|
5267
5267
|
onReconnectEnd: T,
|
|
@@ -5278,7 +5278,7 @@ function Eh({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
5278
5278
|
p = w ? { ...w, ...p } : p;
|
|
5279
5279
|
let N = p.type || "default", k = y?.[N] || hr[N];
|
|
5280
5280
|
k === void 0 && (x?.("011", xe.error011(N)), N = "default", k = hr.default);
|
|
5281
|
-
const S = !!(p.focusable || t && typeof p.focusable > "u"), P = typeof u < "u" && (p.reconnectable || n && typeof p.reconnectable > "u"), I = !!(p.selectable || o && typeof p.selectable > "u"), A = J(null), [
|
|
5281
|
+
const S = !!(p.focusable || t && typeof p.focusable > "u"), P = typeof u < "u" && (p.reconnectable || n && typeof p.reconnectable > "u"), I = !!(p.selectable || o && typeof p.selectable > "u"), A = J(null), [O, D] = fe(!1), [H, m] = fe(!1), E = ne(), { zIndex: v, sourceX: C, sourceY: $, targetX: M, targetY: T, sourcePosition: V, targetPosition: R } = K(ue((q) => {
|
|
5282
5282
|
const U = q.nodeLookup.get(p.source), oe = q.nodeLookup.get(p.target);
|
|
5283
5283
|
if (!U || !oe)
|
|
5284
5284
|
return {
|
|
@@ -5304,7 +5304,7 @@ function Eh({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
5304
5304
|
}),
|
|
5305
5305
|
...ae || gr
|
|
5306
5306
|
};
|
|
5307
|
-
}, [p.source, p.target, p.sourceHandle, p.targetHandle, p.selected, p.zIndex]),
|
|
5307
|
+
}, [p.source, p.target, p.sourceHandle, p.targetHandle, p.selected, p.zIndex]), te), Y = me(() => p.markerStart ? `url('#${Ln(p.markerStart, g)}')` : void 0, [p.markerStart, g]), X = me(() => p.markerEnd ? `url('#${Ln(p.markerEnd, g)}')` : void 0, [p.markerEnd, g]);
|
|
5308
5308
|
if (p.hidden || C === null || $ === null || M === null || T === null)
|
|
5309
5309
|
return null;
|
|
5310
5310
|
const F = (q) => {
|
|
@@ -5318,7 +5318,7 @@ function Eh({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
5318
5318
|
a(q, { ...p });
|
|
5319
5319
|
} : void 0, G = c ? (q) => {
|
|
5320
5320
|
c(q, { ...p });
|
|
5321
|
-
} : void 0,
|
|
5321
|
+
} : void 0, ee = l ? (q) => {
|
|
5322
5322
|
l(q, { ...p });
|
|
5323
5323
|
} : void 0, Q = (q) => {
|
|
5324
5324
|
if (!_ && jr.includes(q.key) && I) {
|
|
@@ -5335,10 +5335,10 @@ function Eh({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
5335
5335
|
selected: p.selected,
|
|
5336
5336
|
animated: p.animated,
|
|
5337
5337
|
inactive: !I && !r,
|
|
5338
|
-
updating:
|
|
5338
|
+
updating: O,
|
|
5339
5339
|
selectable: I
|
|
5340
5340
|
}
|
|
5341
|
-
]), onClick: F, onDoubleClick: Z, onContextMenu: L, onMouseEnter: W, onMouseMove: G, onMouseLeave:
|
|
5341
|
+
]), onClick: F, onDoubleClick: Z, onContextMenu: L, onMouseEnter: W, onMouseMove: G, onMouseLeave: ee, onKeyDown: S ? Q : void 0, tabIndex: S ? 0 : void 0, role: S ? "button" : "img", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": p.ariaLabel === null ? void 0 : p.ariaLabel || `Edge from ${p.source} to ${p.target}`, "aria-describedby": S ? `${Ii}-${g}` : void 0, ref: A, children: [!H && z(k, { id: e, source: p.source, target: p.target, type: p.type, selected: p.selected, animated: p.animated, selectable: I, deletable: p.deletable ?? !0, label: p.label, labelStyle: p.labelStyle, labelShowBg: p.labelShowBg, labelBgStyle: p.labelBgStyle, labelBgPadding: p.labelBgPadding, labelBgBorderRadius: p.labelBgBorderRadius, sourceX: C, sourceY: $, targetX: M, targetY: T, sourcePosition: V, targetPosition: R, data: p.data, style: p.style, sourceHandleId: p.sourceHandle, targetHandleId: p.targetHandle, markerStart: Y, markerEnd: X, pathOptions: "pathOptions" in p ? p.pathOptions : void 0, interactionWidth: p.interactionWidth }), P && z(bh, { edge: p, isReconnectable: P, reconnectRadius: d, onReconnect: u, onReconnectStart: f, onReconnectEnd: h, sourceX: C, sourceY: $, targetX: M, targetY: T, sourcePosition: V, targetPosition: R, setUpdateHover: D, setReconnecting: m })] }) });
|
|
5342
5342
|
}
|
|
5343
5343
|
const Sh = (e) => ({
|
|
5344
5344
|
edgesFocusable: e.edgesFocusable,
|
|
@@ -5348,7 +5348,7 @@ const Sh = (e) => ({
|
|
|
5348
5348
|
onError: e.onError
|
|
5349
5349
|
});
|
|
5350
5350
|
function ts({ defaultMarkerColor: e, onlyRenderVisibleElements: t, rfId: n, edgeTypes: o, noPanClassName: r, onReconnect: i, onEdgeContextMenu: s, onEdgeMouseEnter: a, onEdgeMouseMove: c, onEdgeMouseLeave: l, onEdgeClick: d, reconnectRadius: u, onEdgeDoubleClick: f, onReconnectStart: h, onReconnectEnd: g, disableKeyboardA11y: y }) {
|
|
5351
|
-
const { edgesFocusable: b, edgesReconnectable: x, elementsSelectable: _, onError: p } = K(Sh,
|
|
5351
|
+
const { edgesFocusable: b, edgesReconnectable: x, elementsSelectable: _, onError: p } = K(Sh, te), w = lh(t);
|
|
5352
5352
|
return se("div", { className: "react-flow__edges", children: [z(gh, { defaultColor: e, rfId: n }), w.map((N) => z(Eh, { id: N, edgesFocusable: b, edgesReconnectable: x, elementsSelectable: _, noPanClassName: r, onReconnect: i, onContextMenu: s, onMouseEnter: a, onMouseMove: c, onMouseLeave: l, onClick: d, reconnectRadius: u, onDoubleClick: f, onReconnectStart: h, onReconnectEnd: g, rfId: n, onError: p, edgeTypes: o, disableKeyboardA11y: y }, N))] });
|
|
5353
5353
|
}
|
|
5354
5354
|
ts.displayName = "EdgeRenderer";
|
|
@@ -5365,7 +5365,7 @@ function kh(e) {
|
|
|
5365
5365
|
}
|
|
5366
5366
|
const $h = (e) => e.panZoom?.syncViewport;
|
|
5367
5367
|
function Ih(e) {
|
|
5368
|
-
const t = K($h), n =
|
|
5368
|
+
const t = K($h), n = ne();
|
|
5369
5369
|
return j(() => {
|
|
5370
5370
|
e && (t?.(e), n.setState({ transform: [e.x, e.y, e.zoom] }));
|
|
5371
5371
|
}, [e, t]), null;
|
|
@@ -5378,7 +5378,7 @@ function Ph(e) {
|
|
|
5378
5378
|
}
|
|
5379
5379
|
function zh(e) {
|
|
5380
5380
|
const t = Ph();
|
|
5381
|
-
return K(t,
|
|
5381
|
+
return K(t, te);
|
|
5382
5382
|
}
|
|
5383
5383
|
const Th = (e) => ({
|
|
5384
5384
|
nodesConnectable: e.nodesConnectable,
|
|
@@ -5388,7 +5388,7 @@ const Th = (e) => ({
|
|
|
5388
5388
|
height: e.height
|
|
5389
5389
|
});
|
|
5390
5390
|
function Dh({ containerStyle: e, style: t, type: n, component: o }) {
|
|
5391
|
-
const { nodesConnectable: r, width: i, height: s, isValid: a, inProgress: c } = K(Th,
|
|
5391
|
+
const { nodesConnectable: r, width: i, height: s, isValid: a, inProgress: c } = K(Th, te);
|
|
5392
5392
|
return !(i && r && c) ? null : z("svg", { style: e, width: i, height: s, className: "react-flow__connectionline react-flow__container", children: z("g", { className: re(["react-flow__connection", ti(a)]), children: z(ns, { style: t, type: n, CustomComponent: o, isValid: a }) }) });
|
|
5393
5393
|
}
|
|
5394
5394
|
const ns = ({ style: e, type: t = Ie.Bezier, CustomComponent: n, isValid: o }) => {
|
|
@@ -5430,18 +5430,18 @@ const ns = ({ style: e, type: t = Ie.Bezier, CustomComponent: n, isValid: o }) =
|
|
|
5430
5430
|
ns.displayName = "ConnectionLine";
|
|
5431
5431
|
const Hh = {};
|
|
5432
5432
|
function yr(e = Hh) {
|
|
5433
|
-
J(e),
|
|
5433
|
+
J(e), ne(), j(() => {
|
|
5434
5434
|
}, [e]);
|
|
5435
5435
|
}
|
|
5436
|
-
function
|
|
5437
|
-
|
|
5436
|
+
function Oh() {
|
|
5437
|
+
ne(), J(!1), j(() => {
|
|
5438
5438
|
}, []);
|
|
5439
5439
|
}
|
|
5440
|
-
function os({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: o, onEdgeClick: r, onNodeDoubleClick: i, onEdgeDoubleClick: s, onNodeMouseEnter: a, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: d, onSelectionContextMenu: u, onSelectionStart: f, onSelectionEnd: h, connectionLineType: g, connectionLineStyle: y, connectionLineComponent: b, connectionLineContainerStyle: x, selectionKeyCode: _, selectionOnDrag: p, selectionMode: w, multiSelectionKeyCode: N, panActivationKeyCode: k, zoomActivationKeyCode: S, deleteKeyCode: P, onlyRenderVisibleElements: I, elementsSelectable: A, defaultViewport:
|
|
5441
|
-
return yr(e), yr(t),
|
|
5440
|
+
function os({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: o, onEdgeClick: r, onNodeDoubleClick: i, onEdgeDoubleClick: s, onNodeMouseEnter: a, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: d, onSelectionContextMenu: u, onSelectionStart: f, onSelectionEnd: h, connectionLineType: g, connectionLineStyle: y, connectionLineComponent: b, connectionLineContainerStyle: x, selectionKeyCode: _, selectionOnDrag: p, selectionMode: w, multiSelectionKeyCode: N, panActivationKeyCode: k, zoomActivationKeyCode: S, deleteKeyCode: P, onlyRenderVisibleElements: I, elementsSelectable: A, defaultViewport: O, translateExtent: D, minZoom: H, maxZoom: m, preventScrolling: E, defaultMarkerColor: v, zoomOnScroll: C, zoomOnPinch: $, panOnScroll: M, panOnScrollSpeed: T, panOnScrollMode: V, zoomOnDoubleClick: R, panOnDrag: Y, onPaneClick: X, onPaneMouseEnter: F, onPaneMouseMove: Z, onPaneMouseLeave: L, onPaneScroll: W, onPaneContextMenu: G, paneClickDistance: ee, nodeClickDistance: Q, onEdgeContextMenu: q, onEdgeMouseEnter: U, onEdgeMouseMove: oe, onEdgeMouseLeave: ae, reconnectRadius: Pe, onReconnect: un, onReconnectStart: dn, onReconnectEnd: fn, noDragClassName: Qe, noWheelClassName: hn, noPanClassName: Je, disableKeyboardA11y: je, nodeExtent: gn, rfId: et, viewport: tt, onViewportChange: Et }) {
|
|
5441
|
+
return yr(e), yr(t), Oh(), kh(n), Ih(tt), z(eh, { onPaneClick: X, onPaneMouseEnter: F, onPaneMouseMove: Z, onPaneMouseLeave: L, onPaneContextMenu: G, onPaneScroll: W, paneClickDistance: ee, deleteKeyCode: P, selectionKeyCode: _, selectionOnDrag: p, selectionMode: w, onSelectionStart: f, onSelectionEnd: h, multiSelectionKeyCode: N, panActivationKeyCode: k, zoomActivationKeyCode: S, elementsSelectable: A, zoomOnScroll: C, zoomOnPinch: $, zoomOnDoubleClick: R, panOnScroll: M, panOnScrollSpeed: T, panOnScrollMode: V, panOnDrag: Y, defaultViewport: O, translateExtent: D, minZoom: H, maxZoom: m, onSelectionContextMenu: u, preventScrolling: E, noDragClassName: Qe, noWheelClassName: hn, noPanClassName: Je, disableKeyboardA11y: je, onViewportChange: Et, isControlledViewport: !!tt, children: se(Mh, { children: [z(Nh, { edgeTypes: t, onEdgeClick: r, onEdgeDoubleClick: s, onReconnect: un, onReconnectStart: dn, onReconnectEnd: fn, onlyRenderVisibleElements: I, onEdgeContextMenu: q, onEdgeMouseEnter: U, onEdgeMouseMove: oe, onEdgeMouseLeave: ae, reconnectRadius: Pe, defaultMarkerColor: v, noPanClassName: Je, disableKeyboardA11y: je, rfId: et }), z(Dh, { style: y, type: g, component: b, containerStyle: x }), z("div", { className: "react-flow__edgelabel-renderer" }), z(ch, { nodeTypes: e, onNodeClick: o, onNodeDoubleClick: i, onNodeMouseEnter: a, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: d, nodeClickDistance: Q, onlyRenderVisibleElements: I, noPanClassName: Je, noDragClassName: Qe, disableKeyboardA11y: je, nodeExtent: gn, rfId: et }), z("div", { className: "react-flow__viewport-portal" })] }) });
|
|
5442
5442
|
}
|
|
5443
5443
|
os.displayName = "GraphView";
|
|
5444
|
-
const
|
|
5444
|
+
const Vh = ie(os), wr = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, width: r, height: i, fitView: s, nodeOrigin: a, nodeExtent: c } = {}) => {
|
|
5445
5445
|
const l = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), h = o ?? t ?? [], g = n ?? e ?? [], y = a ?? [0, 0], b = c ?? ht;
|
|
5446
5446
|
wi(u, f, h), Bn(g, l, d, {
|
|
5447
5447
|
nodeOrigin: y,
|
|
@@ -5727,11 +5727,11 @@ const Fh = {
|
|
|
5727
5727
|
position: "relative",
|
|
5728
5728
|
zIndex: 0
|
|
5729
5729
|
};
|
|
5730
|
-
function Xh({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, className: r, nodeTypes: i, edgeTypes: s, onNodeClick: a, onEdgeClick: c, onInit: l, onMove: d, onMoveStart: u, onMoveEnd: f, onConnect: h, onConnectStart: g, onConnectEnd: y, onClickConnectStart: b, onClickConnectEnd: x, onNodeMouseEnter: _, onNodeMouseMove: p, onNodeMouseLeave: w, onNodeContextMenu: N, onNodeDoubleClick: k, onNodeDragStart: S, onNodeDrag: P, onNodeDragStop: I, onNodesDelete: A, onEdgesDelete:
|
|
5730
|
+
function Xh({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, className: r, nodeTypes: i, edgeTypes: s, onNodeClick: a, onEdgeClick: c, onInit: l, onMove: d, onMoveStart: u, onMoveEnd: f, onConnect: h, onConnectStart: g, onConnectEnd: y, onClickConnectStart: b, onClickConnectEnd: x, onNodeMouseEnter: _, onNodeMouseMove: p, onNodeMouseLeave: w, onNodeContextMenu: N, onNodeDoubleClick: k, onNodeDragStart: S, onNodeDrag: P, onNodeDragStop: I, onNodesDelete: A, onEdgesDelete: O, onDelete: D, onSelectionChange: H, onSelectionDragStart: m, onSelectionDrag: E, onSelectionDragStop: v, onSelectionContextMenu: C, onSelectionStart: $, onSelectionEnd: M, onBeforeDelete: T, connectionMode: V, connectionLineType: R = Ie.Bezier, connectionLineStyle: Y, connectionLineComponent: X, connectionLineContainerStyle: F, deleteKeyCode: Z = "Backspace", selectionKeyCode: L = "Shift", selectionOnDrag: W = !1, selectionMode: G = gt.Full, panActivationKeyCode: ee = "Space", multiSelectionKeyCode: Q = Zt() ? "Meta" : "Control", zoomActivationKeyCode: q = Zt() ? "Meta" : "Control", snapToGrid: U, snapGrid: oe, onlyRenderVisibleElements: ae = !1, selectNodesOnDrag: Pe, nodesDraggable: un, nodesConnectable: dn, nodesFocusable: fn, nodeOrigin: Qe = Ai, edgesFocusable: hn, edgesReconnectable: Je, elementsSelectable: je = !0, defaultViewport: gn = wf, minZoom: et = 0.5, maxZoom: tt = 2, translateExtent: Et = ht, preventScrolling: as = !0, nodeExtent: pn, defaultMarkerColor: cs = "#b1b1b7", zoomOnScroll: ls = !0, zoomOnPinch: us = !0, panOnScroll: ds = !1, panOnScrollSpeed: fs = 0.5, panOnScrollMode: hs = He.Free, zoomOnDoubleClick: gs = !0, panOnDrag: ps = !0, onPaneClick: ms, onPaneMouseEnter: ys, onPaneMouseMove: ws, onPaneMouseLeave: xs, onPaneScroll: vs, onPaneContextMenu: _s, paneClickDistance: lo = 0, nodeClickDistance: bs = 0, children: Es, onReconnect: Ss, onReconnectStart: Ns, onReconnectEnd: Cs, onEdgeContextMenu: Ms, onEdgeDoubleClick: ks, onEdgeMouseEnter: $s, onEdgeMouseMove: Is, onEdgeMouseLeave: As, reconnectRadius: Ps = 10, onNodesChange: zs, onEdgesChange: Ts, noDragClassName: Ds = "nodrag", noWheelClassName: Hs = "nowheel", noPanClassName: uo = "nopan", fitView: fo, fitViewOptions: Os, connectOnClick: Vs, attributionPosition: Rs, proOptions: Ls, defaultEdgeOptions: Bs, elevateNodesOnSelect: Fs, elevateEdgesOnSelect: Xs, disableKeyboardA11y: ho = !1, autoPanOnConnect: Ys, autoPanOnNodeDrag: Zs, autoPanSpeed: Ws, connectionRadius: qs, isValidConnection: Gs, onError: Ks, style: Us, id: go, nodeDragThreshold: Qs, viewport: Js, onViewportChange: js, width: ea, height: ta, colorMode: na = "light", debug: oa, onScroll: po, ...ra }, ia) {
|
|
5731
5731
|
const mn = go || "1", sa = bf(na), aa = ue((mo) => {
|
|
5732
5732
|
mo.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), po?.(mo);
|
|
5733
5733
|
}, [po]);
|
|
5734
|
-
return z("div", { "data-testid": "rf__wrapper", ...ra, onScroll: aa, style: { ...Us, ...Fh }, ref: ia, className: re(["react-flow", r, sa]), id: go, children: se(Bh, { nodes: e, edges: t, width: ea, height: ta, fitView: fo, nodeOrigin: Qe, nodeExtent: pn, children: [z(
|
|
5734
|
+
return z("div", { "data-testid": "rf__wrapper", ...ra, onScroll: aa, style: { ...Us, ...Fh }, ref: ia, className: re(["react-flow", r, sa]), id: go, children: se(Bh, { nodes: e, edges: t, width: ea, height: ta, fitView: fo, nodeOrigin: Qe, nodeExtent: pn, children: [z(Vh, { onInit: l, onNodeClick: a, onEdgeClick: c, onNodeMouseEnter: _, onNodeMouseMove: p, onNodeMouseLeave: w, onNodeContextMenu: N, onNodeDoubleClick: k, nodeTypes: i, edgeTypes: s, connectionLineType: R, connectionLineStyle: Y, connectionLineComponent: X, connectionLineContainerStyle: F, selectionKeyCode: L, selectionOnDrag: W, selectionMode: G, deleteKeyCode: Z, multiSelectionKeyCode: Q, panActivationKeyCode: ee, zoomActivationKeyCode: q, onlyRenderVisibleElements: ae, defaultViewport: gn, translateExtent: Et, minZoom: et, maxZoom: tt, preventScrolling: as, zoomOnScroll: ls, zoomOnPinch: us, zoomOnDoubleClick: gs, panOnScroll: ds, panOnScrollSpeed: fs, panOnScrollMode: hs, panOnDrag: ps, onPaneClick: ms, onPaneMouseEnter: ys, onPaneMouseMove: ws, onPaneMouseLeave: xs, onPaneScroll: vs, onPaneContextMenu: _s, paneClickDistance: lo, nodeClickDistance: bs, onSelectionContextMenu: C, onSelectionStart: $, onSelectionEnd: M, onReconnect: Ss, onReconnectStart: Ns, onReconnectEnd: Cs, onEdgeContextMenu: Ms, onEdgeDoubleClick: ks, onEdgeMouseEnter: $s, onEdgeMouseMove: Is, onEdgeMouseLeave: As, reconnectRadius: Ps, defaultMarkerColor: cs, noDragClassName: Ds, noWheelClassName: Hs, noPanClassName: uo, rfId: mn, disableKeyboardA11y: ho, nodeExtent: pn, viewport: Js, onViewportChange: js }), z(_f, { nodes: e, edges: t, defaultNodes: n, defaultEdges: o, onConnect: h, onConnectStart: g, onConnectEnd: y, onClickConnectStart: b, onClickConnectEnd: x, nodesDraggable: un, nodesConnectable: dn, nodesFocusable: fn, edgesFocusable: hn, edgesReconnectable: Je, elementsSelectable: je, elevateNodesOnSelect: Fs, elevateEdgesOnSelect: Xs, minZoom: et, maxZoom: tt, nodeExtent: pn, onNodesChange: zs, onEdgesChange: Ts, snapToGrid: U, snapGrid: oe, connectionMode: V, translateExtent: Et, connectOnClick: Vs, defaultEdgeOptions: Bs, fitView: fo, fitViewOptions: Os, onNodesDelete: A, onEdgesDelete: O, onDelete: D, onNodeDragStart: S, onNodeDrag: P, onNodeDragStop: I, onSelectionDrag: E, onSelectionDragStart: m, onSelectionDragStop: v, onMove: d, onMoveStart: u, onMoveEnd: f, noPanClassName: uo, nodeOrigin: Qe, rfId: mn, autoPanOnConnect: Ys, autoPanOnNodeDrag: Zs, autoPanSpeed: Ws, onError: Ks, connectionRadius: qs, isValidConnection: Gs, selectNodesOnDrag: Pe, nodeDragThreshold: Qs, onBeforeDelete: T, paneClickDistance: lo, debug: oa }), z(yf, { onSelectionChange: H }), Es, z(ff, { proOptions: Ls, position: Rs }), z(uf, { rfId: mn, disableKeyboardA11y: ho })] }) });
|
|
5735
5735
|
}
|
|
5736
5736
|
var _g = Di(Xh);
|
|
5737
5737
|
const Yh = (e) => e.domNode?.querySelector(".react-flow__edgelabel-renderer");
|
|
@@ -5747,18 +5747,8 @@ function Sg(e) {
|
|
|
5747
5747
|
const [t, n] = fe(e), o = ue((r) => n((i) => Ti(r, i)), []);
|
|
5748
5748
|
return [t, n, o];
|
|
5749
5749
|
}
|
|
5750
|
-
function Ng(
|
|
5751
|
-
|
|
5752
|
-
j(() => {
|
|
5753
|
-
o.setState({ onViewportChangeStart: e });
|
|
5754
|
-
}, [e]), j(() => {
|
|
5755
|
-
o.setState({ onViewportChange: t });
|
|
5756
|
-
}, [t]), j(() => {
|
|
5757
|
-
o.setState({ onViewportChangeEnd: n });
|
|
5758
|
-
}, [n]);
|
|
5759
|
-
}
|
|
5760
|
-
function Cg(e) {
|
|
5761
|
-
return K(ue((n) => n.nodeLookup.get(e), [e]), ne);
|
|
5750
|
+
function Ng(e) {
|
|
5751
|
+
return K(ue((n) => n.nodeLookup.get(e), [e]), te);
|
|
5762
5752
|
}
|
|
5763
5753
|
function Zh({ dimensions: e, lineWidth: t, variant: n, className: o }) {
|
|
5764
5754
|
return z("path", { strokeWidth: t, d: `M${e[0] / 2} 0 V${e[1]} M0 ${e[1] / 2} H${e[0]}`, className: re(["react-flow__background-pattern", n, o]) });
|
|
@@ -5790,7 +5780,7 @@ function rs({
|
|
|
5790
5780
|
className: l,
|
|
5791
5781
|
patternClassName: d
|
|
5792
5782
|
}) {
|
|
5793
|
-
const u = J(null), { transform: f, patternId: h } = K(Gh,
|
|
5783
|
+
const u = J(null), { transform: f, patternId: h } = K(Gh, te), g = o || qh[t], y = t === Ae.Dots, b = t === Ae.Cross, x = Array.isArray(n) ? n : [n, n], _ = [x[0] * f[2] || 1, x[1] * f[2] || 1], p = g * f[2], w = Array.isArray(i) ? i : [i, i], N = b ? [p, p] : _, k = [
|
|
5794
5784
|
w[0] * f[2] || 1 + N[0] / 2,
|
|
5795
5785
|
w[1] * f[2] || 1 + N[1] / 2
|
|
5796
5786
|
], S = `${h}${e || ""}`;
|
|
@@ -5802,7 +5792,7 @@ function rs({
|
|
|
5802
5792
|
}, ref: u, "data-testid": "rf__background", children: [z("pattern", { id: S, x: f[0] % _[0], y: f[1] % _[1], width: _[0], height: _[1], patternUnits: "userSpaceOnUse", patternTransform: `translate(-${k[0]},-${k[1]})`, children: y ? z(Wh, { radius: p / 2, className: d }) : z(Zh, { dimensions: N, lineWidth: r, variant: t, className: d }) }), z("rect", { x: "0", y: "0", width: "100%", height: "100%", fill: `url(#${S})` })] });
|
|
5803
5793
|
}
|
|
5804
5794
|
rs.displayName = "Background";
|
|
5805
|
-
const
|
|
5795
|
+
const Cg = ie(rs);
|
|
5806
5796
|
function Kh() {
|
|
5807
5797
|
return z("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", children: z("path", { d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z" }) });
|
|
5808
5798
|
}
|
|
@@ -5827,7 +5817,7 @@ const eg = (e) => ({
|
|
|
5827
5817
|
maxZoomReached: e.transform[2] >= e.maxZoom
|
|
5828
5818
|
});
|
|
5829
5819
|
function is({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive: o = !0, fitViewOptions: r, onZoomIn: i, onZoomOut: s, onFitView: a, onInteractiveChange: c, className: l, children: d, position: u = "bottom-left", orientation: f = "vertical", "aria-label": h = "React Flow controls" }) {
|
|
5830
|
-
const g =
|
|
5820
|
+
const g = ne(), { isInteractive: y, minZoomReached: b, maxZoomReached: x } = K(eg, te), { zoomIn: _, zoomOut: p, fitView: w } = so(), N = () => {
|
|
5831
5821
|
_(), i?.();
|
|
5832
5822
|
}, k = () => {
|
|
5833
5823
|
p(), s?.();
|
|
@@ -5866,7 +5856,7 @@ function rg({
|
|
|
5866
5856
|
nodeComponent: i = ng,
|
|
5867
5857
|
onClick: s
|
|
5868
5858
|
}) {
|
|
5869
|
-
const a = K(og,
|
|
5859
|
+
const a = K(og, te), c = Cn(t), l = Cn(e), d = Cn(n), u = typeof window > "u" || window.chrome ? "crispEdges" : "geometricPrecision";
|
|
5870
5860
|
return z(Ne, { children: a.map((f) => (
|
|
5871
5861
|
/*
|
|
5872
5862
|
* The split of responsibilities between MiniMapNodes and
|
|
@@ -5888,7 +5878,7 @@ function ig({ id: e, nodeColorFunc: t, nodeStrokeColorFunc: n, nodeClassNameFunc
|
|
|
5888
5878
|
width: _,
|
|
5889
5879
|
height: p
|
|
5890
5880
|
};
|
|
5891
|
-
},
|
|
5881
|
+
}, te);
|
|
5892
5882
|
return !l || l.hidden || !li(l) ? null : z(a, { x: d, y: u, width: f, height: h, style: l.style, selected: !!l.selected, className: o(l), color: t(l), borderRadius: r, strokeColor: n(l), strokeWidth: i, shapeRendering: s, onClick: c, id: l.id });
|
|
5893
5883
|
}
|
|
5894
5884
|
const sg = ie(ig);
|
|
@@ -5937,7 +5927,7 @@ function ss({
|
|
|
5937
5927
|
zoomStep: p = 10,
|
|
5938
5928
|
offsetScale: w = 5
|
|
5939
5929
|
}) {
|
|
5940
|
-
const N =
|
|
5930
|
+
const N = ne(), k = J(null), { boundingRect: S, viewBB: P, rfId: I, panZoom: A, translateExtent: O, flowWidth: D, flowHeight: H } = K(ug, te), m = e?.width ?? cg, E = e?.height ?? lg, v = S.width / m, C = S.height / E, $ = Math.max(v, C), M = $ * m, T = $ * E, V = w * $, R = S.x - (M - S.width) / 2 - V, Y = S.y - (T - S.height) / 2 - V, X = M + V * 2, F = T + V * 2, Z = `${dg}-${I}`, L = J(0), W = J();
|
|
5941
5931
|
L.current = $, j(() => {
|
|
5942
5932
|
if (k.current && A)
|
|
5943
5933
|
return W.current = Hd({
|
|
@@ -5950,7 +5940,7 @@ function ss({
|
|
|
5950
5940
|
};
|
|
5951
5941
|
}, [A]), j(() => {
|
|
5952
5942
|
W.current?.update({
|
|
5953
|
-
translateExtent:
|
|
5943
|
+
translateExtent: O,
|
|
5954
5944
|
width: D,
|
|
5955
5945
|
height: H,
|
|
5956
5946
|
inversePan: _,
|
|
@@ -5958,11 +5948,11 @@ function ss({
|
|
|
5958
5948
|
zoomStep: p,
|
|
5959
5949
|
zoomable: b
|
|
5960
5950
|
});
|
|
5961
|
-
}, [y, b, _, p,
|
|
5951
|
+
}, [y, b, _, p, O, D, H]);
|
|
5962
5952
|
const G = h ? (Q) => {
|
|
5963
5953
|
const [q, U] = W.current?.pointer(Q) || [0, 0];
|
|
5964
5954
|
h(Q, { x: q, y: U });
|
|
5965
|
-
} : void 0,
|
|
5955
|
+
} : void 0, ee = g ? ue((Q, q) => {
|
|
5966
5956
|
const U = N.getState().nodeLookup.get(q);
|
|
5967
5957
|
g(Q, U);
|
|
5968
5958
|
}, []) : void 0;
|
|
@@ -5975,45 +5965,45 @@ function ss({
|
|
|
5975
5965
|
"--xy-minimap-node-background-color-props": typeof o == "string" ? o : void 0,
|
|
5976
5966
|
"--xy-minimap-node-stroke-color-props": typeof n == "string" ? n : void 0,
|
|
5977
5967
|
"--xy-minimap-node-stroke-width-props": typeof s == "string" ? s : void 0
|
|
5978
|
-
}, className: re(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: se("svg", { width: m, height: E, viewBox: `${R} ${Y} ${X} ${F}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": Z, ref: k, onClick: G, children: [x && z("title", { id: Z, children: x }), z(ag, { onClick:
|
|
5968
|
+
}, className: re(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: se("svg", { width: m, height: E, viewBox: `${R} ${Y} ${X} ${F}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": Z, ref: k, onClick: G, children: [x && z("title", { id: Z, children: x }), z(ag, { onClick: ee, nodeColor: o, nodeStrokeColor: n, nodeBorderRadius: i, nodeClassName: r, nodeStrokeWidth: s, nodeComponent: a }), z("path", { className: "react-flow__minimap-mask", d: `M${R - V},${Y - V}h${X + V * 2}v${F + V * 2}h${-X - V * 2}z
|
|
5979
5969
|
M${P.x},${P.y}h${P.width}v${P.height}h${-P.width}z`, fillRule: "evenodd", pointerEvents: "none" })] }) });
|
|
5980
5970
|
}
|
|
5981
5971
|
ss.displayName = "MiniMap";
|
|
5982
5972
|
ie(ss);
|
|
5983
5973
|
function fg({ nodeId: e, position: t, variant: n = at.Handle, className: o, style: r = {}, children: i, color: s, minWidth: a = 10, minHeight: c = 10, maxWidth: l = Number.MAX_VALUE, maxHeight: d = Number.MAX_VALUE, keepAspectRatio: u = !1, shouldResize: f, onResizeStart: h, onResize: g, onResizeEnd: y }) {
|
|
5984
|
-
const b = co(), x = typeof e == "string" ? e : b, _ =
|
|
5974
|
+
const b = co(), x = typeof e == "string" ? e : b, _ = ne(), p = J(null), w = n === at.Line ? "right" : "bottom-right", N = t ?? w, k = J(null);
|
|
5985
5975
|
j(() => {
|
|
5986
5976
|
if (!(!p.current || !x))
|
|
5987
5977
|
return k.current || (k.current = Qd({
|
|
5988
5978
|
domNode: p.current,
|
|
5989
5979
|
nodeId: x,
|
|
5990
5980
|
getStoreItems: () => {
|
|
5991
|
-
const { nodeLookup: A, transform:
|
|
5981
|
+
const { nodeLookup: A, transform: O, snapGrid: D, snapToGrid: H, nodeOrigin: m, domNode: E } = _.getState();
|
|
5992
5982
|
return {
|
|
5993
5983
|
nodeLookup: A,
|
|
5994
|
-
transform:
|
|
5984
|
+
transform: O,
|
|
5995
5985
|
snapGrid: D,
|
|
5996
5986
|
snapToGrid: H,
|
|
5997
5987
|
nodeOrigin: m,
|
|
5998
5988
|
paneDomNode: E
|
|
5999
5989
|
};
|
|
6000
5990
|
},
|
|
6001
|
-
onChange: (A,
|
|
5991
|
+
onChange: (A, O) => {
|
|
6002
5992
|
const { triggerNodeChanges: D, nodeLookup: H, parentLookup: m, nodeOrigin: E } = _.getState(), v = [], C = { x: A.x, y: A.y }, $ = H.get(x);
|
|
6003
5993
|
if ($ && $.expandParent && $.parentId) {
|
|
6004
|
-
const M = $.origin ?? E, T = A.width ?? $.measured.width ?? 0,
|
|
5994
|
+
const M = $.origin ?? E, T = A.width ?? $.measured.width ?? 0, V = A.height ?? $.measured.height ?? 0, R = {
|
|
6005
5995
|
id: $.id,
|
|
6006
5996
|
parentId: $.parentId,
|
|
6007
5997
|
rect: {
|
|
6008
5998
|
width: T,
|
|
6009
|
-
height:
|
|
5999
|
+
height: V,
|
|
6010
6000
|
...ui({
|
|
6011
6001
|
x: A.x ?? $.position.x,
|
|
6012
6002
|
y: A.y ?? $.position.y
|
|
6013
|
-
}, { width: T, height:
|
|
6003
|
+
}, { width: T, height: V }, $.parentId, H, M)
|
|
6014
6004
|
}
|
|
6015
6005
|
}, Y = io([R], H, m, E);
|
|
6016
|
-
v.push(...Y), C.x = A.x ? Math.max(M[0] * T, A.x) : void 0, C.y = A.y ? Math.max(M[1] *
|
|
6006
|
+
v.push(...Y), C.x = A.x ? Math.max(M[0] * T, A.x) : void 0, C.y = A.y ? Math.max(M[1] * V, A.y) : void 0;
|
|
6017
6007
|
}
|
|
6018
6008
|
if (C.x !== void 0 && C.y !== void 0) {
|
|
6019
6009
|
const M = {
|
|
@@ -6036,7 +6026,7 @@ function fg({ nodeId: e, position: t, variant: n = at.Handle, className: o, styl
|
|
|
6036
6026
|
};
|
|
6037
6027
|
v.push(M);
|
|
6038
6028
|
}
|
|
6039
|
-
for (const M of
|
|
6029
|
+
for (const M of O) {
|
|
6040
6030
|
const T = {
|
|
6041
6031
|
...M,
|
|
6042
6032
|
type: "position"
|
|
@@ -6103,11 +6093,11 @@ const pg = (e, t) => e?.internals.positionAbsolute.x !== t?.internals.positionAb
|
|
|
6103
6093
|
zoom: e.transform[2],
|
|
6104
6094
|
selectedNodesCount: e.nodes.filter((t) => t.selected).length
|
|
6105
6095
|
});
|
|
6106
|
-
function
|
|
6096
|
+
function Mg({ nodeId: e, children: t, className: n, style: o, isVisible: r, position: i = B.Top, offset: s = 10, align: a = "center", ...c }) {
|
|
6107
6097
|
const l = co(), d = ue((N) => (Array.isArray(e) ? e : [e || l || ""]).reduce((P, I) => {
|
|
6108
6098
|
const A = N.nodeLookup.get(I);
|
|
6109
6099
|
return A && P.set(A.id, A), P;
|
|
6110
|
-
}, /* @__PURE__ */ new Map()), [e, l]), u = K(d, mg), { x: f, y: h, zoom: g, selectedNodesCount: y } = K(yg,
|
|
6100
|
+
}, /* @__PURE__ */ new Map()), [e, l]), u = K(d, mg), { x: f, y: h, zoom: g, selectedNodesCount: y } = K(yg, te);
|
|
6111
6101
|
if (!(typeof r == "boolean" ? r : u.size === 1 && u.values().next().value?.selected && y === 1) || !u.size)
|
|
6112
6102
|
return null;
|
|
6113
6103
|
const x = Ue(u), _ = Array.from(u.values()), p = Math.max(..._.map((N) => N.internals.z + 1)), w = {
|
|
@@ -6122,29 +6112,28 @@ export {
|
|
|
6122
6112
|
ln as B,
|
|
6123
6113
|
bg as E,
|
|
6124
6114
|
Wt as H,
|
|
6125
|
-
|
|
6115
|
+
Mg as N,
|
|
6126
6116
|
B as P,
|
|
6127
6117
|
Lh as R,
|
|
6128
6118
|
Sg as a,
|
|
6129
|
-
|
|
6119
|
+
Cg as b,
|
|
6130
6120
|
Ae as c,
|
|
6131
|
-
|
|
6121
|
+
ne as d,
|
|
6132
6122
|
K as e,
|
|
6133
6123
|
so as f,
|
|
6134
|
-
|
|
6124
|
+
Ng as g,
|
|
6135
6125
|
Ce as h,
|
|
6136
6126
|
_g as i,
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
Ge as t,
|
|
6127
|
+
la as j,
|
|
6128
|
+
gi as k,
|
|
6129
|
+
an as l,
|
|
6130
|
+
to as m,
|
|
6131
|
+
Ti as n,
|
|
6132
|
+
zi as o,
|
|
6133
|
+
Zt as p,
|
|
6134
|
+
ai as q,
|
|
6135
|
+
tn as r,
|
|
6136
|
+
Ge as s,
|
|
6148
6137
|
Eg as u,
|
|
6149
6138
|
ka as w
|
|
6150
6139
|
};
|