@keycloak/keycloak-admin-ui 26.0.6 → 26.0.8
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/lib/.vite/manifest.json +19 -19
- package/lib/{CreateFlow-AKNUj4xH.js → CreateFlow-D3hVgFZr.js} +13 -13
- package/lib/{CreateFlow-AKNUj4xH.js.map → CreateFlow-D3hVgFZr.js.map} +1 -1
- package/lib/{DetailOrganization-fHSCAfco.js → DetailOrganization-DUNwCft_.js} +16 -16
- package/lib/{DetailOrganization-fHSCAfco.js.map → DetailOrganization-DUNwCft_.js.map} +1 -1
- package/lib/{ExecutorForm-C6wtF7z6.js → ExecutorForm-Dp7Iqxos.js} +12 -12
- package/lib/{ExecutorForm-C6wtF7z6.js.map → ExecutorForm-Dp7Iqxos.js.map} +1 -1
- package/lib/{FlowDetails-D0SIiw_v.js → FlowDetails-SHMxH_Rb.js} +433 -433
- package/lib/{FlowDetails-D0SIiw_v.js.map → FlowDetails-SHMxH_Rb.js.map} +1 -1
- package/lib/{NewOrganization-BRMgSU_K.js → NewOrganization-CQAjr9Dn.js} +12 -12
- package/lib/{NewOrganization-BRMgSU_K.js.map → NewOrganization-CQAjr9Dn.js.map} +1 -1
- package/lib/{PermissionDetails-BaVH-D-s.js → PermissionDetails-xk5HiPzx.js} +47 -47
- package/lib/{PermissionDetails-BaVH-D-s.js.map → PermissionDetails-xk5HiPzx.js.map} +1 -1
- package/lib/{ResourceDetails-DDENIxhY.js → ResourceDetails-CbJWQn4F.js} +28 -28
- package/lib/{ResourceDetails-DDENIxhY.js.map → ResourceDetails-CbJWQn4F.js.map} +1 -1
- package/lib/{ScopeDetails-Bns9MuWV.js → ScopeDetails-BtYWOGtn.js} +21 -21
- package/lib/{ScopeDetails-Bns9MuWV.js.map → ScopeDetails-BtYWOGtn.js.map} +1 -1
- package/lib/clients/routes/Client.d.ts +1 -1
- package/lib/components/dynamic/CheckboxFilterComponent.d.ts +16 -0
- package/lib/components/dynamic/SearchInputComponent.d.ts +10 -0
- package/lib/context/whoami/WhoAmI.d.ts +1 -0
- package/lib/events/UserEvents.d.ts +6 -0
- package/lib/{index-CP_jjwyA.js → index-6gx7hHms.js} +16329 -16062
- package/lib/index-6gx7hHms.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/keycloak-admin-ui.js +283 -281
- package/lib/style.css +1 -1
- package/lib/user/Organizations.d.ts +6 -1
- package/lib/user/routes/User.d.ts +1 -1
- package/lib/util.d.ts +1 -0
- package/package.json +4 -4
- package/lib/index-CP_jjwyA.js.map +0 -1
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsx as N, jsxs as re, Fragment as Ne } from "react/jsx-runtime";
|
2
|
-
import { _ as Bs,
|
2
|
+
import { _ as Bs, g as Ot, B as Ee, h as lt, i as Ym, s as Ur, k as oh, L as ah, C as Wm, u as tn, U as zs, b as _r, M as Nn, l as Mn, F as br, m as In, N as Xm, d as vt, n as Zm, o as An, p as jm, x as Qm, P as sh, R as Jm, X as nr, j as Dc, I as ev, q as $c, r as Fc, T as tv, v as nv, w as rv, y as iv, z as ch, D as ov, E as nn, G as wr, H as Rn, J as uh, K as xe, O as Er, Q as Tn, S as av, W as Hs, Y as sv, Z as lh, $ as xr, a0 as cv, a1 as kn, a2 as dh, a3 as Vs, a4 as Gs, a5 as Us, a6 as uv, a7 as lv, a8 as dv, a9 as Sr, aa as Ln, ab as fh, ac as qn, ad as hh, ae as fv, af as ph, ag as Ks, ah as Ys, ai as gh, aj as hv, ak as pv, al as mh, am as Ws, an as gv, ao as Xs, ap as vh, aq as Zs, ar as mv, as as vv, at as yv, au as _v, av as bv, aw as yh, ax as _h, ay as bh, az as wh, aA as Eh, aB as Wt, aC as Cr, aD as wv, aE as xh, aF as Ev, aG as Tt, aH as vs, aI as xv, aJ as Sv, aK as Cv, aL as Nv, A as Mv, aM as Sh, aN as Iv, aO as Av, aP as Rv, aQ as Tv, aR as kv, aS as Lv, aT as qv, aU as Ch, aV as Nh, aW as Ov, aX as Pv, a as Dv, aY as Bc, t as $v, aZ as Fv, f as Bv, a_ as zv, V as Hv, a$ as Vv, b0 as Gv, b1 as Kr, b2 as Uv, b3 as Kv, b4 as Yv } from "./index-6gx7hHms.js";
|
3
3
|
import * as Re from "react";
|
4
4
|
import R, { useEffect as ce, useState as ae, useMemo as Fe, createContext as Mh, memo as ue, forwardRef as Ih, useRef as ee, useContext as Nr, useCallback as ve } from "react";
|
5
5
|
import { useTranslation as Be, Trans as zc } from "react-i18next";
|
6
|
-
import { useParams as
|
6
|
+
import { useParams as Wv, useNavigate as Xv } from "react-router-dom";
|
7
7
|
import "react-dom";
|
8
8
|
const Ah = (e) => {
|
9
9
|
var { className: t = "", isExpanded: n = !1, "aria-controls": r = "", "aria-label": i = "Details", rowid: o = "", id: a, buttonProps: s } = e, u = Bs(e, ["className", "isExpanded", "aria-controls", "aria-label", "rowid", "id", "buttonProps"]);
|
@@ -19,7 +19,7 @@ const Ah = (e) => {
|
|
19
19
|
Re.createElement(
|
20
20
|
"div",
|
21
21
|
{ className: Ot(Ur.dataListToggleIcon) },
|
22
|
-
Re.createElement(
|
22
|
+
Re.createElement(Ym, null)
|
23
23
|
)
|
24
24
|
)
|
25
25
|
)
|
@@ -69,14 +69,14 @@ const Rh = (e) => {
|
|
69
69
|
return Re.createElement("div", Object.assign({ className: Ot(Pt.toggleGroup, r && Pt.modifiers.compact, t), role: "group", "aria-label": o }, a), s);
|
70
70
|
};
|
71
71
|
Rh.displayName = "ToggleGroup";
|
72
|
-
const
|
72
|
+
const Zv = {
|
73
73
|
name: "DomainIcon",
|
74
74
|
height: 1024,
|
75
75
|
width: 1024,
|
76
76
|
svgPath: "M544,511.9 C561.476067,511.948945 575.664266,525.962873 575.994253,543.371439 L576,543.9 L576,991.9 C575.951055,1009.37607 561.937127,1023.56427 544.528561,1023.89425 L544,1023.9 L352,1023.9 C334.523933,1023.85105 320.335734,1009.83713 320.005747,992.428561 L320,991.9 L320,543.9 C320.048945,526.423933 334.062873,512.235734 351.471439,511.905747 L352,511.9 L544,511.9 Z M704,576 L704,960 L640,960 L640,576 L704,576 Z M512,896 L384,896 L384,960 L512,960 L512,896 Z M960,513.1 L960,513.2 C960,665.4 884.1,799.9 768,880.9 L768,880.9 L768,799.4 C773.3,794.6 778.4,789.8 783.5,784.7 C855.624209,712.728348 896.108133,614.991161 896,513.1 L896,513.1 L960,513.1 Z M149.8,385 C100.714385,524.561202 135.973879,679.905126 240.5,784.6 C245.5,789.7 250.7,794.6 256,799.3 L256,799.3 L256,880.8 C139.9,799.8 63.9999013,665.3 63.9999013,513.1 C63.9712238,469.725105 70.236499,426.575548 82.6,385 L82.6,385 Z M512.1,704 L384,704 L384,832 L512.1,832 L512.1,704 Z M512,576 L448,576 L448,640 L512,640 L512,576 Z M864,-1.13686838e-13 C881.496381,-1.13686838e-13 895.713128,14.0417829 895.995713,31.4708215 L896,32 L896,406 C896,423.496381 881.958217,437.713128 864.529179,437.995713 L864,438 L608,438 C590.503619,438 576.286872,423.958217 576.004287,406.529179 L576,406 L576,32 C576,14.5036191 590.041783,0.286872383 607.470821,0.00428708574 L608,-1.13686838e-13 L864,-1.13686838e-13 Z M1024,64 L1024,384 L960,384 L960,64 L1024,64 Z M832,256 L640,256 L640,352 L832,352 L832,256 Z M224,-5.68434189e-14 C241.476067,0.0489452394 255.664266,14.0628726 255.994253,31.4714395 L256,32 L256,288 C255.951055,305.476067 241.937127,319.664266 224.528561,319.994253 L224,320 L32,320 C14.5239331,319.951055 0.335734448,305.937127 0.00574685353,288.528561 L0,288 L0,32 C0.0489452394,14.5239331 14.0628726,0.335734448 31.4714395,0.00574685353 L32,-5.68434189e-14 L224,-5.68434189e-14 Z M192,192 L64,192 L64,256 L192,256 L192,192 Z M512,65 L512,129 C460.642759,128.90985 409.795141,139.181409 362.5,159.2 C347.917219,165.399771 333.724426,172.47947 320,180.4 L320,180.4 L320,108.2 C380.012207,79.7623165 445.590913,65.0071076 512,65 L512,65 Z M832,64 L736,64 L736,160 L832,160 L832,64 Z M192,64 L128,64 L128,128 L192,128 L192,64 Z",
|
77
77
|
yOffset: 0,
|
78
78
|
xOffset: 0
|
79
|
-
}, jv = oh(
|
79
|
+
}, jv = oh(Zv), Qv = {
|
80
80
|
name: "TableIcon",
|
81
81
|
height: 512,
|
82
82
|
width: 512,
|
@@ -87,7 +87,7 @@ const Xv = {
|
|
87
87
|
icon: ey
|
88
88
|
}, ny = () => {
|
89
89
|
const { t: e } = Be();
|
90
|
-
return /* @__PURE__ */ N(ah, { icon: /* @__PURE__ */ N(
|
90
|
+
return /* @__PURE__ */ N(ah, { icon: /* @__PURE__ */ N(Wm, { className: ty.icon }), children: e("buildIn") });
|
91
91
|
}, ry = ({ flow: e, toggleDialog: t }) => {
|
92
92
|
const { adminClient: n } = tn(), { t: r } = Be(), { addAlert: i, addError: o } = zs(), a = _r({ mode: "onChange" }), { reset: s, handleSubmit: u } = a;
|
93
93
|
ce(() => s(e), [e]);
|
@@ -137,7 +137,7 @@ const Xv = {
|
|
137
137
|
id: "edit-flow-form",
|
138
138
|
onSubmit: u(l),
|
139
139
|
isHorizontal: !0,
|
140
|
-
children: /* @__PURE__ */ N(
|
140
|
+
children: /* @__PURE__ */ N(Xm, {})
|
141
141
|
}
|
142
142
|
) })
|
143
143
|
}
|
@@ -159,7 +159,7 @@ const Xv = {
|
|
159
159
|
},
|
160
160
|
n.id
|
161
161
|
)) }) }), js = ({ name: e, type: t, onSelect: n }) => {
|
162
|
-
const { adminClient: r } = tn(), { t: i } = Be(), [o, a] = ae(), [s, u] = ae(), [l, c] = ae(10), [d, f] = ae(0), [h, g] = ae(""), p =
|
162
|
+
const { adminClient: r } = tn(), { t: i } = Be(), [o, a] = ae(), [s, u] = ae(), [l, c] = ae(10), [d, f] = ae(0), [h, g] = ae(""), p = Zm();
|
163
163
|
An(
|
164
164
|
async () => {
|
165
165
|
switch (t) {
|
@@ -398,7 +398,7 @@ function Se(e) {
|
|
398
398
|
e[n] && (t += (t && " ") + n);
|
399
399
|
return t;
|
400
400
|
}
|
401
|
-
var _s = { exports: {} },
|
401
|
+
var _s = { exports: {} }, Yr = {}, Fn = { exports: {} }, Wr = {};
|
402
402
|
/**
|
403
403
|
* @license React
|
404
404
|
* use-sync-external-store-shim.production.min.js
|
@@ -410,7 +410,7 @@ var _s = { exports: {} }, Wr = {}, Fn = { exports: {} }, Yr = {};
|
|
410
410
|
*/
|
411
411
|
var Vc;
|
412
412
|
function sy() {
|
413
|
-
if (Vc) return
|
413
|
+
if (Vc) return Wr;
|
414
414
|
Vc = 1;
|
415
415
|
var e = R;
|
416
416
|
function t(d, f) {
|
@@ -441,9 +441,9 @@ function sy() {
|
|
441
441
|
return f();
|
442
442
|
}
|
443
443
|
var c = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : s;
|
444
|
-
return
|
444
|
+
return Wr.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : c, Wr;
|
445
445
|
}
|
446
|
-
var
|
446
|
+
var Xr = {};
|
447
447
|
/**
|
448
448
|
* @license React
|
449
449
|
* use-sync-external-store-shim.development.js
|
@@ -521,8 +521,8 @@ function cy() {
|
|
521
521
|
return _();
|
522
522
|
}
|
523
523
|
var p = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", m = !p, v = m ? g : f, b = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v;
|
524
|
-
|
525
|
-
}()),
|
524
|
+
Xr.useSyncExternalStore = b, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
525
|
+
}()), Xr;
|
526
526
|
}
|
527
527
|
var Uc;
|
528
528
|
function Th() {
|
@@ -539,14 +539,14 @@ function Th() {
|
|
539
539
|
*/
|
540
540
|
var Kc;
|
541
541
|
function uy() {
|
542
|
-
if (Kc) return
|
542
|
+
if (Kc) return Yr;
|
543
543
|
Kc = 1;
|
544
544
|
var e = R, t = Th();
|
545
545
|
function n(l, c) {
|
546
546
|
return l === c && (l !== 0 || 1 / l === 1 / c) || l !== l && c !== c;
|
547
547
|
}
|
548
548
|
var r = typeof Object.is == "function" ? Object.is : n, i = t.useSyncExternalStore, o = e.useRef, a = e.useEffect, s = e.useMemo, u = e.useDebugValue;
|
549
|
-
return
|
549
|
+
return Yr.useSyncExternalStoreWithSelector = function(l, c, d, f, h) {
|
550
550
|
var g = o(null);
|
551
551
|
if (g.current === null) {
|
552
552
|
var p = { hasValue: !1, value: null };
|
@@ -576,9 +576,9 @@ function uy() {
|
|
576
576
|
return a(function() {
|
577
577
|
p.hasValue = !0, p.value = m;
|
578
578
|
}, [m]), u(m), m;
|
579
|
-
},
|
579
|
+
}, Yr;
|
580
580
|
}
|
581
|
-
var
|
581
|
+
var Zr = {};
|
582
582
|
/**
|
583
583
|
* @license React
|
584
584
|
* use-sync-external-store-shim/with-selector.development.js
|
@@ -588,9 +588,9 @@ var Xr = {};
|
|
588
588
|
* This source code is licensed under the MIT license found in the
|
589
589
|
* LICENSE file in the root directory of this source tree.
|
590
590
|
*/
|
591
|
-
var
|
591
|
+
var Yc;
|
592
592
|
function ly() {
|
593
|
-
return
|
593
|
+
return Yc || (Yc = 1, process.env.NODE_ENV !== "production" && function() {
|
594
594
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
595
595
|
var e = R, t = Th();
|
596
596
|
function n(c, d) {
|
@@ -631,12 +631,12 @@ function ly() {
|
|
631
631
|
m.hasValue = !0, m.value = _;
|
632
632
|
}, [_]), u(_), _;
|
633
633
|
}
|
634
|
-
|
635
|
-
}()),
|
634
|
+
Zr.useSyncExternalStoreWithSelector = l, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
635
|
+
}()), Zr;
|
636
636
|
}
|
637
637
|
process.env.NODE_ENV === "production" ? _s.exports = uy() : _s.exports = ly();
|
638
638
|
var dy = _s.exports;
|
639
|
-
const fy = /* @__PURE__ */ rv(dy), hy = { BASE_URL: "./", DEV: !1, MODE: "production", PROD: !0, SSR: !1 },
|
639
|
+
const fy = /* @__PURE__ */ rv(dy), hy = { BASE_URL: "./", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Wc = (e) => {
|
640
640
|
let t;
|
641
641
|
const n = /* @__PURE__ */ new Set(), r = (c, d) => {
|
642
642
|
const f = typeof c == "function" ? c(t) : c;
|
@@ -650,7 +650,7 @@ const fy = /* @__PURE__ */ rv(dy), hy = { BASE_URL: "./", DEV: !1, MODE: "produc
|
|
650
650
|
), n.clear();
|
651
651
|
} }, l = t = e(r, i, u);
|
652
652
|
return u;
|
653
|
-
}, py = (e) => e ?
|
653
|
+
}, py = (e) => e ? Wc(e) : Wc, { useDebugValue: gy } = R, { useSyncExternalStoreWithSelector: my } = fy, vy = (e) => e;
|
654
654
|
function kh(e, t = vy, n) {
|
655
655
|
const r = my(
|
656
656
|
e.subscribe,
|
@@ -661,10 +661,10 @@ function kh(e, t = vy, n) {
|
|
661
661
|
);
|
662
662
|
return gy(r), r;
|
663
663
|
}
|
664
|
-
const
|
664
|
+
const Xc = (e, t) => {
|
665
665
|
const n = py(e), r = (i, o = t) => kh(n, i, o);
|
666
666
|
return Object.assign(r, n), r;
|
667
|
-
}, yy = (e, t) => e ?
|
667
|
+
}, yy = (e, t) => e ? Xc(e, t) : Xc;
|
668
668
|
function ye(e, t) {
|
669
669
|
if (Object.is(e, t))
|
670
670
|
return !0;
|
@@ -721,8 +721,8 @@ Qn.prototype = Mr.prototype = {
|
|
721
721
|
}
|
722
722
|
if (t != null && typeof t != "function") throw new Error("invalid callback: " + t);
|
723
723
|
for (; ++o < a; )
|
724
|
-
if (i = (e = r[o]).type) n[i] =
|
725
|
-
else if (t == null) for (i in n) n[i] =
|
724
|
+
if (i = (e = r[o]).type) n[i] = Zc(n[i], e.name, t);
|
725
|
+
else if (t == null) for (i in n) n[i] = Zc(n[i], e.name, null);
|
726
726
|
return this;
|
727
727
|
},
|
728
728
|
copy: function() {
|
@@ -745,7 +745,7 @@ function wy(e, t) {
|
|
745
745
|
if ((i = e[n]).name === t)
|
746
746
|
return i.value;
|
747
747
|
}
|
748
|
-
function
|
748
|
+
function Zc(e, t, n) {
|
749
749
|
for (var r = 0, i = e.length; r < i; ++r)
|
750
750
|
if (e[r].name === t) {
|
751
751
|
e[r] = _y, e = e.slice(0, r).concat(e.slice(r + 1));
|
@@ -926,11 +926,11 @@ function Uy(e) {
|
|
926
926
|
function Ky() {
|
927
927
|
return new Pe(this._exit || this._groups.map(Dh), this._parents);
|
928
928
|
}
|
929
|
-
function
|
929
|
+
function Yy(e, t, n) {
|
930
930
|
var r = this.enter(), i = this, o = this.exit();
|
931
931
|
return typeof e == "function" ? (r = e(r), r && (r = r.selection())) : r = r.append(e + ""), t != null && (i = t(i), i && (i = i.selection())), n == null ? o.remove() : n(o), r && i ? r.merge(i).order() : i;
|
932
932
|
}
|
933
|
-
function
|
933
|
+
function Wy(e) {
|
934
934
|
for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, i = n.length, o = r.length, a = Math.min(i, o), s = new Array(i), u = 0; u < a; ++u)
|
935
935
|
for (var l = n[u], c = r[u], d = l.length, f = s[u] = new Array(d), h, g = 0; g < d; ++g)
|
936
936
|
(h = l[g] || c[g]) && (f[g] = h);
|
@@ -938,13 +938,13 @@ function Yy(e) {
|
|
938
938
|
s[u] = n[u];
|
939
939
|
return new Pe(s, this._parents);
|
940
940
|
}
|
941
|
-
function
|
941
|
+
function Xy() {
|
942
942
|
for (var e = this._groups, t = -1, n = e.length; ++t < n; )
|
943
943
|
for (var r = e[t], i = r.length - 1, o = r[i], a; --i >= 0; )
|
944
944
|
(a = r[i]) && (o && a.compareDocumentPosition(o) ^ 4 && o.parentNode.insertBefore(a, o), o = a);
|
945
945
|
return this;
|
946
946
|
}
|
947
|
-
function
|
947
|
+
function Zy(e) {
|
948
948
|
e || (e = jy);
|
949
949
|
function t(d, f) {
|
950
950
|
return d && f ? e(d.__data__, f.__data__) : !d - !f;
|
@@ -1226,7 +1226,7 @@ function K0(e) {
|
|
1226
1226
|
}
|
1227
1227
|
};
|
1228
1228
|
}
|
1229
|
-
function
|
1229
|
+
function Y0(e, t, n) {
|
1230
1230
|
return function() {
|
1231
1231
|
var r = this.__on, i, o = G0(t);
|
1232
1232
|
if (r) {
|
@@ -1239,7 +1239,7 @@ function W0(e, t, n) {
|
|
1239
1239
|
this.addEventListener(e.type, o, n), i = { type: e.type, name: e.name, value: t, listener: o, options: n }, r ? r.push(i) : this.__on = [i];
|
1240
1240
|
};
|
1241
1241
|
}
|
1242
|
-
function
|
1242
|
+
function W0(e, t, n) {
|
1243
1243
|
var r = U0(e + ""), i, o = r.length, a;
|
1244
1244
|
if (arguments.length < 2) {
|
1245
1245
|
var s = this.node().__on;
|
@@ -1251,25 +1251,25 @@ function Y0(e, t, n) {
|
|
1251
1251
|
}
|
1252
1252
|
return;
|
1253
1253
|
}
|
1254
|
-
for (s = t ?
|
1254
|
+
for (s = t ? Y0 : K0, i = 0; i < o; ++i) this.each(s(r[i], t, n));
|
1255
1255
|
return this;
|
1256
1256
|
}
|
1257
1257
|
function Vh(e, t, n) {
|
1258
1258
|
var r = $h(e), i = r.CustomEvent;
|
1259
1259
|
typeof i == "function" ? i = new i(t, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(t, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(t, !1, !1)), e.dispatchEvent(i);
|
1260
1260
|
}
|
1261
|
-
function
|
1261
|
+
function X0(e, t) {
|
1262
1262
|
return function() {
|
1263
1263
|
return Vh(this, e, t);
|
1264
1264
|
};
|
1265
1265
|
}
|
1266
|
-
function
|
1266
|
+
function Z0(e, t) {
|
1267
1267
|
return function() {
|
1268
1268
|
return Vh(this, e, t.apply(this, arguments));
|
1269
1269
|
};
|
1270
1270
|
}
|
1271
1271
|
function j0(e, t) {
|
1272
|
-
return this.each((typeof t == "function" ?
|
1272
|
+
return this.each((typeof t == "function" ? Z0 : X0)(e, t));
|
1273
1273
|
}
|
1274
1274
|
function* Q0() {
|
1275
1275
|
for (var e = this._groups, t = 0, n = e.length; t < n; ++t)
|
@@ -1296,11 +1296,11 @@ Pe.prototype = On.prototype = {
|
|
1296
1296
|
data: Gy,
|
1297
1297
|
enter: Fy,
|
1298
1298
|
exit: Ky,
|
1299
|
-
join:
|
1300
|
-
merge:
|
1299
|
+
join: Yy,
|
1300
|
+
merge: Wy,
|
1301
1301
|
selection: J0,
|
1302
|
-
order:
|
1303
|
-
sort:
|
1302
|
+
order: Xy,
|
1303
|
+
sort: Zy,
|
1304
1304
|
call: Qy,
|
1305
1305
|
nodes: Jy,
|
1306
1306
|
node: e0,
|
@@ -1320,7 +1320,7 @@ Pe.prototype = On.prototype = {
|
|
1320
1320
|
remove: F0,
|
1321
1321
|
clone: H0,
|
1322
1322
|
datum: V0,
|
1323
|
-
on:
|
1323
|
+
on: W0,
|
1324
1324
|
dispatch: j0,
|
1325
1325
|
[Symbol.iterator]: Q0
|
1326
1326
|
};
|
@@ -1350,16 +1350,16 @@ const t_ = { passive: !1 }, yn = { capture: !0, passive: !1 };
|
|
1350
1350
|
function jr(e) {
|
1351
1351
|
e.stopImmediatePropagation();
|
1352
1352
|
}
|
1353
|
-
function
|
1353
|
+
function Xt(e) {
|
1354
1354
|
e.preventDefault(), e.stopImmediatePropagation();
|
1355
1355
|
}
|
1356
1356
|
function Uh(e) {
|
1357
|
-
var t = e.document.documentElement, n = De(e).on("dragstart.drag",
|
1358
|
-
"onselectstart" in t ? n.on("selectstart.drag",
|
1357
|
+
var t = e.document.documentElement, n = De(e).on("dragstart.drag", Xt, yn);
|
1358
|
+
"onselectstart" in t ? n.on("selectstart.drag", Xt, yn) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
|
1359
1359
|
}
|
1360
1360
|
function Kh(e, t) {
|
1361
1361
|
var n = e.document.documentElement, r = De(e).on("dragstart.drag", null);
|
1362
|
-
t && (r.on("click.drag",
|
1362
|
+
t && (r.on("click.drag", Xt, yn), setTimeout(function() {
|
1363
1363
|
r.on("click.drag", null);
|
1364
1364
|
}, 0)), "onselectstart" in n ? r.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect);
|
1365
1365
|
}
|
@@ -1418,14 +1418,14 @@ function a_() {
|
|
1418
1418
|
}
|
1419
1419
|
}
|
1420
1420
|
function g(_) {
|
1421
|
-
if (
|
1421
|
+
if (Xt(_), !l) {
|
1422
1422
|
var C = _.clientX - s, E = _.clientY - u;
|
1423
1423
|
l = C * C + E * E > d;
|
1424
1424
|
}
|
1425
1425
|
i.mouse("drag", _);
|
1426
1426
|
}
|
1427
1427
|
function p(_) {
|
1428
|
-
De(_.view).on("mousemove.drag mouseup.drag", null), Kh(_.view, l),
|
1428
|
+
De(_.view).on("mousemove.drag mouseup.drag", null), Kh(_.view, l), Xt(_), i.mouse("end", _);
|
1429
1429
|
}
|
1430
1430
|
function m(_, C) {
|
1431
1431
|
if (e.call(this, _, C)) {
|
@@ -1437,7 +1437,7 @@ function a_() {
|
|
1437
1437
|
function v(_) {
|
1438
1438
|
var C = _.changedTouches, E = C.length, M, T;
|
1439
1439
|
for (M = 0; M < E; ++M)
|
1440
|
-
(T = i[C[M].identifier]) && (
|
1440
|
+
(T = i[C[M].identifier]) && (Xt(_), T("drag", _, C[M]));
|
1441
1441
|
}
|
1442
1442
|
function b(_) {
|
1443
1443
|
var C = _.changedTouches, E = C.length, M, T;
|
@@ -1508,14 +1508,14 @@ function a_() {
|
|
1508
1508
|
function tc(e, t, n) {
|
1509
1509
|
e.prototype = t.prototype = n, n.constructor = e;
|
1510
1510
|
}
|
1511
|
-
function
|
1511
|
+
function Yh(e, t) {
|
1512
1512
|
var n = Object.create(e.prototype);
|
1513
1513
|
for (var r in t) n[r] = t[r];
|
1514
1514
|
return n;
|
1515
1515
|
}
|
1516
1516
|
function Pn() {
|
1517
1517
|
}
|
1518
|
-
var _n = 0.7, ar = 1 / _n,
|
1518
|
+
var _n = 0.7, ar = 1 / _n, Zt = "\\s*([+-]?\\d+)\\s*", bn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", et = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", s_ = /^#([0-9a-f]{3,8})$/, c_ = new RegExp(`^rgb\\(${Zt},${Zt},${Zt}\\)$`), u_ = new RegExp(`^rgb\\(${et},${et},${et}\\)$`), l_ = new RegExp(`^rgba\\(${Zt},${Zt},${Zt},${bn}\\)$`), d_ = new RegExp(`^rgba\\(${et},${et},${et},${bn}\\)$`), f_ = new RegExp(`^hsl\\(${bn},${et},${et}\\)$`), h_ = new RegExp(`^hsla\\(${bn},${et},${et},${bn}\\)$`), Qc = {
|
1519
1519
|
aliceblue: 15792383,
|
1520
1520
|
antiquewhite: 16444375,
|
1521
1521
|
aqua: 65535,
|
@@ -1687,7 +1687,7 @@ function p_() {
|
|
1687
1687
|
return this.rgb().formatHex8();
|
1688
1688
|
}
|
1689
1689
|
function g_() {
|
1690
|
-
return
|
1690
|
+
return Wh(this).formatHsl();
|
1691
1691
|
}
|
1692
1692
|
function eu() {
|
1693
1693
|
return this.rgb().formatRgb();
|
@@ -1711,7 +1711,7 @@ function Es(e, t, n, r) {
|
|
1711
1711
|
function Te(e, t, n, r) {
|
1712
1712
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
1713
1713
|
}
|
1714
|
-
tc(Te, Es,
|
1714
|
+
tc(Te, Es, Yh(Pn, {
|
1715
1715
|
brighter(e) {
|
1716
1716
|
return e = e == null ? ar : Math.pow(ar, e), new Te(this.r * e, this.g * e, this.b * e, this.opacity);
|
1717
1717
|
},
|
@@ -1756,7 +1756,7 @@ function kt(e) {
|
|
1756
1756
|
function iu(e, t, n, r) {
|
1757
1757
|
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new Ue(e, t, n, r);
|
1758
1758
|
}
|
1759
|
-
function
|
1759
|
+
function Wh(e) {
|
1760
1760
|
if (e instanceof Ue) return new Ue(e.h, e.s, e.l, e.opacity);
|
1761
1761
|
if (e instanceof Pn || (e = wn(e)), !e) return new Ue();
|
1762
1762
|
if (e instanceof Ue) return e;
|
@@ -1765,12 +1765,12 @@ function Yh(e) {
|
|
1765
1765
|
return s ? (t === o ? a = (n - r) / s + (n < r) * 6 : n === o ? a = (r - t) / s + 2 : a = (t - n) / s + 4, s /= u < 0.5 ? o + i : 2 - o - i, a *= 60) : s = u > 0 && u < 1 ? 0 : a, new Ue(a, s, u, e.opacity);
|
1766
1766
|
}
|
1767
1767
|
function y_(e, t, n, r) {
|
1768
|
-
return arguments.length === 1 ?
|
1768
|
+
return arguments.length === 1 ? Wh(e) : new Ue(e, t, n, r ?? 1);
|
1769
1769
|
}
|
1770
1770
|
function Ue(e, t, n, r) {
|
1771
1771
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
1772
1772
|
}
|
1773
|
-
tc(Ue, y_,
|
1773
|
+
tc(Ue, y_, Yh(Pn, {
|
1774
1774
|
brighter(e) {
|
1775
1775
|
return e = e == null ? ar : Math.pow(ar, e), new Ue(this.h, this.s, this.l * e, this.opacity);
|
1776
1776
|
},
|
@@ -1806,7 +1806,7 @@ function Hn(e) {
|
|
1806
1806
|
function Qr(e, t, n) {
|
1807
1807
|
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
1808
1808
|
}
|
1809
|
-
const
|
1809
|
+
const Xh = (e) => () => e;
|
1810
1810
|
function __(e, t) {
|
1811
1811
|
return function(n) {
|
1812
1812
|
return e + n * t;
|
@@ -1818,18 +1818,18 @@ function b_(e, t, n) {
|
|
1818
1818
|
};
|
1819
1819
|
}
|
1820
1820
|
function w_(e) {
|
1821
|
-
return (e = +e) == 1 ?
|
1822
|
-
return n - t ? b_(t, n, e) :
|
1821
|
+
return (e = +e) == 1 ? Zh : function(t, n) {
|
1822
|
+
return n - t ? b_(t, n, e) : Xh(isNaN(t) ? n : t);
|
1823
1823
|
};
|
1824
1824
|
}
|
1825
|
-
function
|
1825
|
+
function Zh(e, t) {
|
1826
1826
|
var n = t - e;
|
1827
|
-
return n ? __(e, n) :
|
1827
|
+
return n ? __(e, n) : Xh(isNaN(e) ? t : e);
|
1828
1828
|
}
|
1829
1829
|
const au = function e(t) {
|
1830
1830
|
var n = w_(t);
|
1831
1831
|
function r(i, o) {
|
1832
|
-
var a = n((i = Es(i)).r, (o = Es(o)).r), s = n(i.g, o.g), u = n(i.b, o.b), l =
|
1832
|
+
var a = n((i = Es(i)).r, (o = Es(o)).r), s = n(i.g, o.g), u = n(i.b, o.b), l = Zh(i.opacity, o.opacity);
|
1833
1833
|
return function(c) {
|
1834
1834
|
return i.r = a(c), i.g = s(c), i.b = u(c), i.opacity = l(c), i + "";
|
1835
1835
|
};
|
@@ -2041,16 +2041,16 @@ function Rr(e, t, n, r, i, o) {
|
|
2041
2041
|
});
|
2042
2042
|
}
|
2043
2043
|
function rc(e, t) {
|
2044
|
-
var n =
|
2044
|
+
var n = We(e, t);
|
2045
2045
|
if (n.state > np) throw new Error("too late; already scheduled");
|
2046
2046
|
return n;
|
2047
2047
|
}
|
2048
2048
|
function tt(e, t) {
|
2049
|
-
var n =
|
2049
|
+
var n = We(e, t);
|
2050
2050
|
if (n.state > Jn) throw new Error("too late; already running");
|
2051
2051
|
return n;
|
2052
2052
|
}
|
2053
|
-
function
|
2053
|
+
function We(e, t) {
|
2054
2054
|
var n = e.__transition;
|
2055
2055
|
if (!n || !(n = n[t])) throw new Error("transition not found");
|
2056
2056
|
return n;
|
@@ -2142,7 +2142,7 @@ function H_(e, t, n) {
|
|
2142
2142
|
function V_(e, t) {
|
2143
2143
|
var n = this._id;
|
2144
2144
|
if (e += "", arguments.length < 2) {
|
2145
|
-
for (var r =
|
2145
|
+
for (var r = We(this.node(), n).tween, i = 0, o = r.length, a; i < o; ++i)
|
2146
2146
|
if ((a = r[i]).name === e)
|
2147
2147
|
return a.value;
|
2148
2148
|
return null;
|
@@ -2155,7 +2155,7 @@ function ic(e, t, n) {
|
|
2155
2155
|
var i = tt(this, r);
|
2156
2156
|
(i.value || (i.value = {}))[t] = n.apply(this, arguments);
|
2157
2157
|
}), function(i) {
|
2158
|
-
return
|
2158
|
+
return We(i, r).value[t];
|
2159
2159
|
};
|
2160
2160
|
}
|
2161
2161
|
function rp(e, t) {
|
@@ -2179,30 +2179,30 @@ function K_(e, t, n) {
|
|
2179
2179
|
return a === i ? null : a === r ? o : o = t(r = a, n);
|
2180
2180
|
};
|
2181
2181
|
}
|
2182
|
-
function
|
2182
|
+
function Y_(e, t, n) {
|
2183
2183
|
var r, i = n + "", o;
|
2184
2184
|
return function() {
|
2185
2185
|
var a = this.getAttributeNS(e.space, e.local);
|
2186
2186
|
return a === i ? null : a === r ? o : o = t(r = a, n);
|
2187
2187
|
};
|
2188
2188
|
}
|
2189
|
-
function
|
2189
|
+
function W_(e, t, n) {
|
2190
2190
|
var r, i, o;
|
2191
2191
|
return function() {
|
2192
2192
|
var a, s = n(this), u;
|
2193
2193
|
return s == null ? void this.removeAttribute(e) : (a = this.getAttribute(e), u = s + "", a === u ? null : a === r && u === i ? o : (i = u, o = t(r = a, s)));
|
2194
2194
|
};
|
2195
2195
|
}
|
2196
|
-
function
|
2196
|
+
function X_(e, t, n) {
|
2197
2197
|
var r, i, o;
|
2198
2198
|
return function() {
|
2199
2199
|
var a, s = n(this), u;
|
2200
2200
|
return s == null ? void this.removeAttributeNS(e.space, e.local) : (a = this.getAttributeNS(e.space, e.local), u = s + "", a === u ? null : a === r && u === i ? o : (i = u, o = t(r = a, s)));
|
2201
2201
|
};
|
2202
2202
|
}
|
2203
|
-
function
|
2203
|
+
function Z_(e, t) {
|
2204
2204
|
var n = Ir(e), r = n === "transform" ? I_ : rp;
|
2205
|
-
return this.attrTween(e, typeof t == "function" ? (n.local ?
|
2205
|
+
return this.attrTween(e, typeof t == "function" ? (n.local ? X_ : W_)(n, r, ic(this, "attr." + e, t)) : t == null ? (n.local ? U_ : G_)(n) : (n.local ? Y_ : K_)(n, r, t));
|
2206
2206
|
}
|
2207
2207
|
function j_(e, t) {
|
2208
2208
|
return function(n) {
|
@@ -2250,7 +2250,7 @@ function rb(e, t) {
|
|
2250
2250
|
}
|
2251
2251
|
function ib(e) {
|
2252
2252
|
var t = this._id;
|
2253
|
-
return arguments.length ? this.each((typeof e == "function" ? nb : rb)(t, e)) :
|
2253
|
+
return arguments.length ? this.each((typeof e == "function" ? nb : rb)(t, e)) : We(this.node(), t).delay;
|
2254
2254
|
}
|
2255
2255
|
function ob(e, t) {
|
2256
2256
|
return function() {
|
@@ -2264,7 +2264,7 @@ function ab(e, t) {
|
|
2264
2264
|
}
|
2265
2265
|
function sb(e) {
|
2266
2266
|
var t = this._id;
|
2267
|
-
return arguments.length ? this.each((typeof e == "function" ? ob : ab)(t, e)) :
|
2267
|
+
return arguments.length ? this.each((typeof e == "function" ? ob : ab)(t, e)) : We(this.node(), t).duration;
|
2268
2268
|
}
|
2269
2269
|
function cb(e, t) {
|
2270
2270
|
if (typeof t != "function") throw new Error();
|
@@ -2274,7 +2274,7 @@ function cb(e, t) {
|
|
2274
2274
|
}
|
2275
2275
|
function ub(e) {
|
2276
2276
|
var t = this._id;
|
2277
|
-
return arguments.length ? this.each(cb(t, e)) :
|
2277
|
+
return arguments.length ? this.each(cb(t, e)) : We(this.node(), t).ease;
|
2278
2278
|
}
|
2279
2279
|
function lb(e, t) {
|
2280
2280
|
return function() {
|
@@ -2318,7 +2318,7 @@ function gb(e, t, n) {
|
|
2318
2318
|
}
|
2319
2319
|
function mb(e, t) {
|
2320
2320
|
var n = this._id;
|
2321
|
-
return arguments.length < 2 ?
|
2321
|
+
return arguments.length < 2 ? We(this.node(), n).on.on(e) : this.each(gb(n, e, t));
|
2322
2322
|
}
|
2323
2323
|
function vb(e) {
|
2324
2324
|
return function() {
|
@@ -2335,7 +2335,7 @@ function _b(e) {
|
|
2335
2335
|
typeof e != "function" && (e = Js(e));
|
2336
2336
|
for (var r = this._groups, i = r.length, o = new Array(i), a = 0; a < i; ++a)
|
2337
2337
|
for (var s = r[a], u = s.length, l = o[a] = new Array(u), c, d, f = 0; f < u; ++f)
|
2338
|
-
(c = s[f]) && (d = e.call(c, c.__data__, f, s)) && ("__data__" in c && (d.__data__ = c.__data__), l[f] = d, Rr(l[f], t, n, f, l,
|
2338
|
+
(c = s[f]) && (d = e.call(c, c.__data__, f, s)) && ("__data__" in c && (d.__data__ = c.__data__), l[f] = d, Rr(l[f], t, n, f, l, We(c, n)));
|
2339
2339
|
return new dt(o, this._parents, t, n);
|
2340
2340
|
}
|
2341
2341
|
function bb(e) {
|
@@ -2344,7 +2344,7 @@ function bb(e) {
|
|
2344
2344
|
for (var r = this._groups, i = r.length, o = [], a = [], s = 0; s < i; ++s)
|
2345
2345
|
for (var u = r[s], l = u.length, c, d = 0; d < l; ++d)
|
2346
2346
|
if (c = u[d]) {
|
2347
|
-
for (var f = e.call(c, c.__data__, d, u), h, g =
|
2347
|
+
for (var f = e.call(c, c.__data__, d, u), h, g = We(c, n), p = 0, m = f.length; p < m; ++p)
|
2348
2348
|
(h = f[p]) && Rr(h, t, n, p, f, g);
|
2349
2349
|
o.push(f), a.push(c);
|
2350
2350
|
}
|
@@ -2449,7 +2449,7 @@ function Db() {
|
|
2449
2449
|
for (var e = this._name, t = this._id, n = op(), r = this._groups, i = r.length, o = 0; o < i; ++o)
|
2450
2450
|
for (var a = r[o], s = a.length, u, l = 0; l < s; ++l)
|
2451
2451
|
if (u = a[l]) {
|
2452
|
-
var c =
|
2452
|
+
var c = We(u, t);
|
2453
2453
|
Rr(u, e, n, l, a, {
|
2454
2454
|
time: c.time + c.delay + c.duration,
|
2455
2455
|
delay: 0,
|
@@ -2496,7 +2496,7 @@ dt.prototype = {
|
|
2496
2496
|
empty: it.empty,
|
2497
2497
|
each: it.each,
|
2498
2498
|
on: mb,
|
2499
|
-
attr:
|
2499
|
+
attr: Z_,
|
2500
2500
|
attrTween: tb,
|
2501
2501
|
style: Mb,
|
2502
2502
|
styleTween: Rb,
|
@@ -2609,13 +2609,13 @@ function Kb() {
|
|
2609
2609
|
function hu() {
|
2610
2610
|
return this.__zoom || ut;
|
2611
2611
|
}
|
2612
|
-
function
|
2612
|
+
function Yb(e) {
|
2613
2613
|
return -e.deltaY * (e.deltaMode === 1 ? 0.05 : e.deltaMode ? 1 : 2e-3) * (e.ctrlKey ? 10 : 1);
|
2614
2614
|
}
|
2615
|
-
function
|
2615
|
+
function Wb() {
|
2616
2616
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
2617
2617
|
}
|
2618
|
-
function
|
2618
|
+
function Xb(e, t, n) {
|
2619
2619
|
var r = e.invertX(t[0][0]) - n[0][0], i = e.invertX(t[1][0]) - n[1][0], o = e.invertY(t[0][1]) - n[0][1], a = e.invertY(t[1][1]) - n[1][1];
|
2620
2620
|
return e.translate(
|
2621
2621
|
i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i),
|
@@ -2623,7 +2623,7 @@ function Zb(e, t, n) {
|
|
2623
2623
|
);
|
2624
2624
|
}
|
2625
2625
|
function ap() {
|
2626
|
-
var e = Ub, t = Kb, n =
|
2626
|
+
var e = Ub, t = Kb, n = Xb, r = Yb, i = Wb, o = [0, 1 / 0], a = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], s = 250, u = k_, l = Mr("start", "zoom", "end"), c, d, f, h = 500, g = 150, p = 0, m = 10;
|
2627
2627
|
function v(y) {
|
2628
2628
|
y.property("__zoom", hu).on("wheel.zoom", T, { passive: !1 }).on("mousedown.zoom", I).on("dblclick.zoom", q).filter(i).on("touchstart.zoom", P).on("touchmove.zoom", F).on("touchend.zoom touchcancel.zoom", O).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
2629
2629
|
}
|
@@ -2674,12 +2674,12 @@ function ap() {
|
|
2674
2674
|
}).on("interrupt.zoom end.zoom", function() {
|
2675
2675
|
E(this, arguments).event(k).end();
|
2676
2676
|
}).tween("zoom", function() {
|
2677
|
-
var D = this, S = arguments, L = E(D, S).event(k), $ = t.apply(D, S), B = x == null ? _($) : typeof x == "function" ? x.apply(D, S) : x, G = Math.max($[1][0] - $[0][0], $[1][1] - $[0][1]), H = D.__zoom,
|
2677
|
+
var D = this, S = arguments, L = E(D, S).event(k), $ = t.apply(D, S), B = x == null ? _($) : typeof x == "function" ? x.apply(D, S) : x, G = Math.max($[1][0] - $[0][0], $[1][1] - $[0][1]), H = D.__zoom, X = typeof A == "function" ? A.apply(D, S) : A, J = u(H.invert(B).concat(G / H.k), X.invert(B).concat(G / X.k));
|
2678
2678
|
return function(z) {
|
2679
|
-
if (z === 1) z =
|
2679
|
+
if (z === 1) z = X;
|
2680
2680
|
else {
|
2681
|
-
var V = J(z),
|
2682
|
-
z = new at(
|
2681
|
+
var V = J(z), W = G / V[2];
|
2682
|
+
z = new at(W, B[0] - V[0] * W, B[1] - V[1] * W);
|
2683
2683
|
}
|
2684
2684
|
L.zoom(null, z);
|
2685
2685
|
};
|
@@ -2740,8 +2740,8 @@ function ap() {
|
|
2740
2740
|
Uh(y.view), ei(y), k.mouse = [S, this.__zoom.invert(S)], tr(this), k.start();
|
2741
2741
|
function B(H) {
|
2742
2742
|
if (cn(H), !k.moved) {
|
2743
|
-
var
|
2744
|
-
k.moved =
|
2743
|
+
var X = H.clientX - L, J = H.clientY - $;
|
2744
|
+
k.moved = X * X + J * J > p;
|
2745
2745
|
}
|
2746
2746
|
k.event(H).zoom("mouse", n(w(k.that.__zoom, k.mouse[0] = Ge(H, x), k.mouse[1]), k.extent, a));
|
2747
2747
|
}
|
@@ -2771,8 +2771,8 @@ function ap() {
|
|
2771
2771
|
for (cn(y), S = 0; S < D; ++S)
|
2772
2772
|
L = k[S], $ = Ge(L, this), x.touch0 && x.touch0[2] === L.identifier ? x.touch0[0] = $ : x.touch1 && x.touch1[2] === L.identifier && (x.touch1[0] = $);
|
2773
2773
|
if (L = x.that.__zoom, x.touch1) {
|
2774
|
-
var G = x.touch0[0], H = x.touch0[1],
|
2775
|
-
L = b(L, Math.sqrt(z / V)), $ = [(G[0] +
|
2774
|
+
var G = x.touch0[0], H = x.touch0[1], X = x.touch1[0], J = x.touch1[1], z = (z = X[0] - G[0]) * z + (z = X[1] - G[1]) * z, V = (V = J[0] - H[0]) * V + (V = J[1] - H[1]) * V;
|
2775
|
+
L = b(L, Math.sqrt(z / V)), $ = [(G[0] + X[0]) / 2, (G[1] + X[1]) / 2], B = [(H[0] + J[0]) / 2, (H[1] + J[1]) / 2];
|
2776
2776
|
} else if (x.touch0) $ = x.touch0[0], B = x.touch0[1];
|
2777
2777
|
else return;
|
2778
2778
|
x.zoom("touch", n(w(L, $, B), x.extent, a));
|
@@ -2819,7 +2819,7 @@ function ap() {
|
|
2819
2819
|
return arguments.length ? (m = +y, v) : m;
|
2820
2820
|
}, v;
|
2821
2821
|
}
|
2822
|
-
const Tr = Mh(null),
|
2822
|
+
const Tr = Mh(null), Zb = Tr.Provider, Ye = {
|
2823
2823
|
error001: () => "[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",
|
2824
2824
|
error002: () => "It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",
|
2825
2825
|
error003: (e) => `Node type "${e}" not found. Using fallback type "default".`,
|
@@ -2832,7 +2832,7 @@ const Tr = Mh(null), Xb = Tr.Provider, We = {
|
|
2832
2832
|
error010: () => "Handle: No node id found. Make sure to only use a Handle inside a custom Node.",
|
2833
2833
|
error011: (e) => `Edge type "${e}" not found. Using fallback type "default".`,
|
2834
2834
|
error012: (e) => `Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`
|
2835
|
-
}, sp =
|
2835
|
+
}, sp = Ye.error001();
|
2836
2836
|
function le(e, t) {
|
2837
2837
|
const n = Nr(Tr);
|
2838
2838
|
if (n === null)
|
@@ -3192,7 +3192,7 @@ const fc = Mh(null), uw = fc.Provider;
|
|
3192
3192
|
fc.Consumer;
|
3193
3193
|
const lw = () => Nr(fc), dw = (e) => "id" in e && "source" in e && "target" in e, fw = ({ source: e, sourceHandle: t, target: n, targetHandle: r }) => `reactflow__edge-${e}${t || ""}-${n}${r || ""}`, Ts = (e, t) => typeof e > "u" ? "" : typeof e == "string" ? e : `${t ? `${t}__` : ""}${Object.keys(e).sort().map((r) => `${r}=${e[r]}`).join("&")}`, hw = (e, t) => t.some((n) => n.source === e.source && n.target === e.target && (n.sourceHandle === e.sourceHandle || !n.sourceHandle && !e.sourceHandle) && (n.targetHandle === e.targetHandle || !n.targetHandle && !e.targetHandle)), pw = (e, t) => {
|
3194
3194
|
if (!e.source || !e.target)
|
3195
|
-
return hp("006",
|
3195
|
+
return hp("006", Ye.error006()), t;
|
3196
3196
|
let n;
|
3197
3197
|
return dw(e) ? n = { ...e } : n = {
|
3198
3198
|
...e,
|
@@ -3427,7 +3427,7 @@ const wu = () => !0, _w = (e) => ({
|
|
3427
3427
|
};
|
3428
3428
|
}, Cp = Ih(({ type: e = "source", position: t = U.Top, isValidConnection: n, isConnectable: r = !0, isConnectableStart: i = !0, isConnectableEnd: o = !0, id: a, onConnect: s, children: u, className: l, onMouseDown: c, onTouchStart: d, ...f }, h) => {
|
3429
3429
|
const g = a || null, p = e === "target", m = _e(), v = lw(), { connectOnClick: b, noPanClassName: w } = le(_w, ye), { connecting: _, clickConnecting: C } = le(bw(v, g, e), ye);
|
3430
|
-
v || m.getState().onError?.("010",
|
3430
|
+
v || m.getState().onError?.("010", Ye.error010());
|
3431
3431
|
const E = (I) => {
|
3432
3432
|
const { defaultEdgeOptions: q, onConnect: P, hasDefaultEdges: F } = m.getState(), O = {
|
3433
3433
|
...q,
|
@@ -3554,14 +3554,14 @@ function ne(e, t, n) {
|
|
3554
3554
|
typeof t < "u" && n({ [e]: t });
|
3555
3555
|
}, [t]);
|
3556
3556
|
}
|
3557
|
-
const Nw = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: i, onConnectStart: o, onConnectEnd: a, onClickConnectStart: s, onClickConnectEnd: u, nodesDraggable: l, nodesConnectable: c, nodesFocusable: d, edgesFocusable: f, edgesUpdatable: h, elevateNodesOnSelect: g, minZoom: p, maxZoom: m, nodeExtent: v, onNodesChange: b, onEdgesChange: w, elementsSelectable: _, connectionMode: C, snapGrid: E, snapToGrid: M, translateExtent: T, connectOnClick: I, defaultEdgeOptions: q, fitView: P, fitViewOptions: F, onNodesDelete: O, onEdgesDelete: y, onNodeDrag: A, onNodeDragStart: x, onNodeDragStop: k, onSelectionDrag: D, onSelectionDragStart: S, onSelectionDragStop: L, noPanClassName: $, nodeOrigin: B, rfId: G, autoPanOnConnect: H, autoPanOnNodeDrag:
|
3558
|
-
const { setNodes: j, setEdges: ie, setDefaultNodesAndEdges: oe, setMinZoom: de, setMaxZoom: me, setTranslateExtent:
|
3557
|
+
const Nw = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: i, onConnectStart: o, onConnectEnd: a, onClickConnectStart: s, onClickConnectEnd: u, nodesDraggable: l, nodesConnectable: c, nodesFocusable: d, edgesFocusable: f, edgesUpdatable: h, elevateNodesOnSelect: g, minZoom: p, maxZoom: m, nodeExtent: v, onNodesChange: b, onEdgesChange: w, elementsSelectable: _, connectionMode: C, snapGrid: E, snapToGrid: M, translateExtent: T, connectOnClick: I, defaultEdgeOptions: q, fitView: P, fitViewOptions: F, onNodesDelete: O, onEdgesDelete: y, onNodeDrag: A, onNodeDragStart: x, onNodeDragStop: k, onSelectionDrag: D, onSelectionDragStart: S, onSelectionDragStop: L, noPanClassName: $, nodeOrigin: B, rfId: G, autoPanOnConnect: H, autoPanOnNodeDrag: X, onError: J, connectionRadius: z, isValidConnection: V, nodeDragThreshold: W }) => {
|
3558
|
+
const { setNodes: j, setEdges: ie, setDefaultNodesAndEdges: oe, setMinZoom: de, setMaxZoom: me, setTranslateExtent: Z, setNodeExtent: be, reset: Y } = le(Cw, ye), K = _e();
|
3559
3559
|
return ce(() => {
|
3560
3560
|
const he = r?.map((He) => ({ ...He, ...q }));
|
3561
3561
|
return oe(n, he), () => {
|
3562
|
-
|
3562
|
+
Y();
|
3563
3563
|
};
|
3564
|
-
}, []), ne("defaultEdgeOptions", q, K.setState), ne("connectionMode", C, K.setState), ne("onConnect", i, K.setState), ne("onConnectStart", o, K.setState), ne("onConnectEnd", a, K.setState), ne("onClickConnectStart", s, K.setState), ne("onClickConnectEnd", u, K.setState), ne("nodesDraggable", l, K.setState), ne("nodesConnectable", c, K.setState), ne("nodesFocusable", d, K.setState), ne("edgesFocusable", f, K.setState), ne("edgesUpdatable", h, K.setState), ne("elementsSelectable", _, K.setState), ne("elevateNodesOnSelect", g, K.setState), ne("snapToGrid", M, K.setState), ne("snapGrid", E, K.setState), ne("onNodesChange", b, K.setState), ne("onEdgesChange", w, K.setState), ne("connectOnClick", I, K.setState), ne("fitViewOnInit", P, K.setState), ne("fitViewOnInitOptions", F, K.setState), ne("onNodesDelete", O, K.setState), ne("onEdgesDelete", y, K.setState), ne("onNodeDrag", A, K.setState), ne("onNodeDragStart", x, K.setState), ne("onNodeDragStop", k, K.setState), ne("onSelectionDrag", D, K.setState), ne("onSelectionDragStart", S, K.setState), ne("onSelectionDragStop", L, K.setState), ne("noPanClassName", $, K.setState), ne("nodeOrigin", B, K.setState), ne("rfId", G, K.setState), ne("autoPanOnConnect", H, K.setState), ne("autoPanOnNodeDrag",
|
3564
|
+
}, []), ne("defaultEdgeOptions", q, K.setState), ne("connectionMode", C, K.setState), ne("onConnect", i, K.setState), ne("onConnectStart", o, K.setState), ne("onConnectEnd", a, K.setState), ne("onClickConnectStart", s, K.setState), ne("onClickConnectEnd", u, K.setState), ne("nodesDraggable", l, K.setState), ne("nodesConnectable", c, K.setState), ne("nodesFocusable", d, K.setState), ne("edgesFocusable", f, K.setState), ne("edgesUpdatable", h, K.setState), ne("elementsSelectable", _, K.setState), ne("elevateNodesOnSelect", g, K.setState), ne("snapToGrid", M, K.setState), ne("snapGrid", E, K.setState), ne("onNodesChange", b, K.setState), ne("onEdgesChange", w, K.setState), ne("connectOnClick", I, K.setState), ne("fitViewOnInit", P, K.setState), ne("fitViewOnInitOptions", F, K.setState), ne("onNodesDelete", O, K.setState), ne("onEdgesDelete", y, K.setState), ne("onNodeDrag", A, K.setState), ne("onNodeDragStart", x, K.setState), ne("onNodeDragStop", k, K.setState), ne("onSelectionDrag", D, K.setState), ne("onSelectionDragStart", S, K.setState), ne("onSelectionDragStop", L, K.setState), ne("noPanClassName", $, K.setState), ne("nodeOrigin", B, K.setState), ne("rfId", G, K.setState), ne("autoPanOnConnect", H, K.setState), ne("autoPanOnNodeDrag", X, K.setState), ne("onError", J, K.setState), ne("connectionRadius", z, K.setState), ne("isValidConnection", V, K.setState), ne("nodeDragThreshold", W, K.setState), Vt(e, j), Vt(t, ie), Vt(p, de), Vt(m, me), Vt(T, Z), Vt(v, be), null;
|
3565
3565
|
}, Eu = { display: "none" }, Mw = {
|
3566
3566
|
position: "absolute",
|
3567
3567
|
width: 1,
|
@@ -3708,7 +3708,7 @@ function Lw(e, t) {
|
|
3708
3708
|
return r && (n.selected = r.selected), n;
|
3709
3709
|
});
|
3710
3710
|
}
|
3711
|
-
function
|
3711
|
+
function Yn({ changedNodes: e, changedEdges: t, get: n, set: r }) {
|
3712
3712
|
const { nodeInternals: i, edges: o, onNodesChange: a, onEdgesChange: s, hasDefaultNodes: u, hasDefaultEdges: l } = n();
|
3713
3713
|
e?.length && (u && r({ nodeInternals: kw(e, i) }), a?.(e)), t?.length && (l && r({ edges: Lw(t, o) }), s?.(t));
|
3714
3714
|
}
|
@@ -3922,7 +3922,7 @@ function Fw(e) {
|
|
3922
3922
|
if (!e.current)
|
3923
3923
|
return;
|
3924
3924
|
const i = ac(e.current);
|
3925
|
-
(i.height === 0 || i.width === 0) && t.getState().onError?.("004",
|
3925
|
+
(i.height === 0 || i.width === 0) && t.getState().onError?.("004", Ye.error004()), t.setState({ width: i.width || 500, height: i.height || 500 });
|
3926
3926
|
};
|
3927
3927
|
return r(), window.addEventListener("resize", r), e.current && (n = new ResizeObserver(() => r()), n.observe(e.current)), () => {
|
3928
3928
|
window.removeEventListener("resize", r), n && e.current && n.unobserve(e.current);
|
@@ -3935,7 +3935,7 @@ const mc = {
|
|
3935
3935
|
height: "100%",
|
3936
3936
|
top: 0,
|
3937
3937
|
left: 0
|
3938
|
-
}, Bw = (e, t) => e.x !== t.x || e.y !== t.y || e.zoom !== t.k,
|
3938
|
+
}, Bw = (e, t) => e.x !== t.x || e.y !== t.y || e.zoom !== t.k, Wn = (e) => ({
|
3939
3939
|
x: e.x,
|
3940
3940
|
y: e.y,
|
3941
3941
|
zoom: e.k
|
@@ -3971,7 +3971,7 @@ const mc = {
|
|
3971
3971
|
S.preventDefault(), S.stopImmediatePropagation();
|
3972
3972
|
const L = F.property("__zoom").k || 1;
|
3973
3973
|
if (S.ctrlKey && o) {
|
3974
|
-
const V = Ge(S),
|
3974
|
+
const V = Ge(S), W = Nu(S), j = L * Math.pow(2, W);
|
3975
3975
|
P.scaleTo(F, j, V, S);
|
3976
3976
|
return;
|
3977
3977
|
}
|
@@ -3984,8 +3984,8 @@ const mc = {
|
|
3984
3984
|
// @ts-ignore
|
3985
3985
|
{ internal: !0 }
|
3986
3986
|
);
|
3987
|
-
const H =
|
3988
|
-
clearTimeout(D.current), k.current || (k.current = !0, t?.(S, H),
|
3987
|
+
const H = Wn(F.property("__zoom")), { onViewportChangeStart: X, onViewportChange: J, onViewportChangeEnd: z } = E.getState();
|
3988
|
+
clearTimeout(D.current), k.current || (k.current = !0, t?.(S, H), X?.(H)), k.current && (e?.(S, H), J?.(H), D.current = setTimeout(() => {
|
3989
3989
|
n?.(S, H), z?.(H), k.current = !1;
|
3990
3990
|
}, 150));
|
3991
3991
|
}, { passive: !1 }) : typeof O < "u" && F.on("wheel.zoom", function(S, L) {
|
@@ -4012,14 +4012,14 @@ const mc = {
|
|
4012
4012
|
if (!S.sourceEvent || S.sourceEvent.internal)
|
4013
4013
|
return null;
|
4014
4014
|
x.current = S.sourceEvent?.button;
|
4015
|
-
const { onViewportChangeStart: L } = E.getState(), $ =
|
4015
|
+
const { onViewportChangeStart: L } = E.getState(), $ = Wn(S.transform);
|
4016
4016
|
M.current = !0, q.current = $, S.sourceEvent?.type === "mousedown" && E.setState({ paneDragging: !0 }), L?.($), t?.(S.sourceEvent, $);
|
4017
4017
|
});
|
4018
4018
|
}, [P, t]), ce(() => {
|
4019
4019
|
P && (y && !M.current ? P.on("zoom", null) : y || P.on("zoom", (S) => {
|
4020
4020
|
const { onViewportChange: L } = E.getState();
|
4021
4021
|
if (E.setState({ transform: [S.transform.x, S.transform.y, S.transform.k] }), T.current = !!(r && Cu(d, x.current ?? 0)), (e || L) && !S.sourceEvent?.internal) {
|
4022
|
-
const $ =
|
4022
|
+
const $ = Wn(S.transform);
|
4023
4023
|
L?.($), e?.(S.sourceEvent, $);
|
4024
4024
|
}
|
4025
4025
|
}));
|
@@ -4029,7 +4029,7 @@ const mc = {
|
|
4029
4029
|
return null;
|
4030
4030
|
const { onViewportChangeEnd: L } = E.getState();
|
4031
4031
|
if (M.current = !1, E.setState({ paneDragging: !1 }), r && Cu(d, x.current ?? 0) && !T.current && r(S.sourceEvent), T.current = !1, (n || L) && Bw(q.current, S.transform)) {
|
4032
|
-
const $ =
|
4032
|
+
const $ = Wn(S.transform);
|
4033
4033
|
q.current = $, clearTimeout(C.current), C.current = setTimeout(() => {
|
4034
4034
|
L?.($), n?.(S.sourceEvent, $);
|
4035
4035
|
}, a ? 150 : 0);
|
@@ -4126,7 +4126,7 @@ const _t = (e, t) => ({
|
|
4126
4126
|
type: "select",
|
4127
4127
|
selected: t
|
4128
4128
|
});
|
4129
|
-
function
|
4129
|
+
function Yt(e, t) {
|
4130
4130
|
return e.reduce((n, r) => {
|
4131
4131
|
const i = t.includes(r.id);
|
4132
4132
|
return !r.selected && i ? (r.selected = !0, n.push(_t(r.id, !0))) : r.selected && !i && (r.selected = !1, n.push(_t(r.id, !1))), n;
|
@@ -4169,25 +4169,25 @@ const ri = (e, t) => (n) => {
|
|
4169
4169
|
if (!e || !m.current || !y)
|
4170
4170
|
return;
|
4171
4171
|
h.setState({ userSelectionActive: !0, nodesSelectionActive: !1 });
|
4172
|
-
const B = xt(O, m.current), G = y.startX ?? 0, H = y.startY ?? 0,
|
4172
|
+
const B = xt(O, m.current), G = y.startX ?? 0, H = y.startY ?? 0, X = {
|
4173
4173
|
...y,
|
4174
4174
|
x: B.x < G ? B.x : G,
|
4175
4175
|
y: B.y < H ? B.y : H,
|
4176
4176
|
width: Math.abs(B.x - G),
|
4177
4177
|
height: Math.abs(B.y - H)
|
4178
|
-
}, J = $(), z = _p(A,
|
4179
|
-
if (g.current !==
|
4180
|
-
g.current =
|
4181
|
-
const j =
|
4178
|
+
}, J = $(), z = _p(A, X, k, t === Sn.Partial, !0, L), V = bp(z, x).map((j) => j.id), W = z.map((j) => j.id);
|
4179
|
+
if (g.current !== W.length) {
|
4180
|
+
g.current = W.length;
|
4181
|
+
const j = Yt(J, W);
|
4182
4182
|
j.length && D?.(j);
|
4183
4183
|
}
|
4184
4184
|
if (p.current !== V.length) {
|
4185
4185
|
p.current = V.length;
|
4186
|
-
const j =
|
4186
|
+
const j = Yt(x, V);
|
4187
4187
|
j.length && S?.(j);
|
4188
4188
|
}
|
4189
4189
|
h.setState({
|
4190
|
-
userSelectionRect:
|
4190
|
+
userSelectionRect: X
|
4191
4191
|
});
|
4192
4192
|
}, q = (O) => {
|
4193
4193
|
if (O.button !== 0)
|
@@ -4223,7 +4223,7 @@ function Iu(e, t, n) {
|
|
4223
4223
|
} while (r);
|
4224
4224
|
return !1;
|
4225
4225
|
}
|
4226
|
-
function
|
4226
|
+
function Yw(e, t, n, r) {
|
4227
4227
|
return Array.from(e.values()).filter((i) => (i.selected || i.id === r) && (!i.parentNode || i.parentId || !Bp(i, e)) && (i.draggable || t && typeof i.draggable > "u")).map((i) => ({
|
4228
4228
|
id: i.id,
|
4229
4229
|
position: i.position || { x: 0, y: 0 },
|
@@ -4244,11 +4244,11 @@ function Ww(e, t, n, r) {
|
|
4244
4244
|
expandParent: i.expandParent
|
4245
4245
|
}));
|
4246
4246
|
}
|
4247
|
-
function
|
4247
|
+
function Ww(e, t) {
|
4248
4248
|
return !t || t === "parent" ? t : [t[0], [t[1][0] - (e.width || 0), t[1][1] - (e.height || 0)]];
|
4249
4249
|
}
|
4250
4250
|
function zp(e, t, n, r, i = [0, 0], o) {
|
4251
|
-
const a =
|
4251
|
+
const a = Ww(e, e.extent || r);
|
4252
4252
|
let s = a;
|
4253
4253
|
const u = e.parentNode || e.parentId;
|
4254
4254
|
if (e.extent === "parent" && !e.expandParent)
|
@@ -4262,7 +4262,7 @@ function zp(e, t, n, r, i = [0, 0], o) {
|
|
4262
4262
|
]
|
4263
4263
|
] : s;
|
4264
4264
|
} else
|
4265
|
-
o?.("005",
|
4265
|
+
o?.("005", Ye.error005()), s = a;
|
4266
4266
|
else if (e.extent && u && e.extent !== "parent") {
|
4267
4267
|
const d = n.get(u), { x: f, y: h } = $t(d, i).positionAbsolute;
|
4268
4268
|
s = [
|
@@ -4320,12 +4320,12 @@ function ln(e, t, n) {
|
|
4320
4320
|
function qs({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
|
4321
4321
|
const { addSelectedNodes: i, unselectNodesAndEdges: o, multiSelectionActive: a, nodeInternals: s, onError: u } = t.getState(), l = s.get(e);
|
4322
4322
|
if (!l) {
|
4323
|
-
u?.("012",
|
4323
|
+
u?.("012", Ye.error012(e));
|
4324
4324
|
return;
|
4325
4325
|
}
|
4326
4326
|
t.setState({ nodesSelectionActive: !1 }), l.selected ? (n || l.selected && a) && (o({ nodes: [l], edges: [] }), requestAnimationFrame(() => r?.current?.blur())) : i([e]);
|
4327
4327
|
}
|
4328
|
-
function
|
4328
|
+
function Xw() {
|
4329
4329
|
const e = _e();
|
4330
4330
|
return ve(({ sourceEvent: n }) => {
|
4331
4331
|
const { transform: r, snapGrid: i, snapToGrid: o } = e.getState(), a = n.touches ? n.touches[0].clientX : n.clientX, s = n.touches ? n.touches[0].clientY : n.clientY, u = {
|
@@ -4343,7 +4343,7 @@ function oi(e) {
|
|
4343
4343
|
return (t, n, r) => e?.(t, r);
|
4344
4344
|
}
|
4345
4345
|
function Hp({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector: r, nodeId: i, isSelectable: o, selectNodesOnDrag: a }) {
|
4346
|
-
const s = _e(), [u, l] = ae(!1), c = ee([]), d = ee({ x: null, y: null }), f = ee(0), h = ee(null), g = ee({ x: 0, y: 0 }), p = ee(null), m = ee(!1), v = ee(!1), b = ee(!1), w =
|
4346
|
+
const s = _e(), [u, l] = ae(!1), c = ee([]), d = ee({ x: null, y: null }), f = ee(0), h = ee(null), g = ee({ x: 0, y: 0 }), p = ee(null), m = ee(!1), v = ee(!1), b = ee(!1), w = Xw();
|
4347
4347
|
return ce(() => {
|
4348
4348
|
if (e?.current) {
|
4349
4349
|
const _ = De(e.current), C = ({ x: T, y: I }) => {
|
@@ -4362,8 +4362,8 @@ function Hp({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
|
|
4362
4362
|
[y[1][0], y[1][1]]
|
4363
4363
|
];
|
4364
4364
|
c.current.length > 1 && y && !B.extent && (H[0][0] = B.positionAbsolute.x - L.x + y[0][0], H[1][0] = B.positionAbsolute.x + (B.width ?? 0) - L.x2 + y[1][0], H[0][1] = B.positionAbsolute.y - L.y + y[0][1], H[1][1] = B.positionAbsolute.y + (B.height ?? 0) - L.y2 + y[1][1]);
|
4365
|
-
const
|
4366
|
-
return S = S || B.position.x !==
|
4365
|
+
const X = zp(B, G, q, H, k, D);
|
4366
|
+
return S = S || B.position.x !== X.position.x || B.position.y !== X.position.y, B.position = X.position, B.positionAbsolute = X.positionAbsolute, B;
|
4367
4367
|
}), !S)
|
4368
4368
|
return;
|
4369
4369
|
O(c.current, !0, !0), l(!0);
|
@@ -4395,7 +4395,7 @@ function Hp({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
|
|
4395
4395
|
nodeRef: e
|
4396
4396
|
});
|
4397
4397
|
const x = w(T);
|
4398
|
-
if (d.current = x, c.current =
|
4398
|
+
if (d.current = x, c.current = Yw(I, P, x, i), A && c.current) {
|
4399
4399
|
const [k, D] = ii({
|
4400
4400
|
nodeId: i,
|
4401
4401
|
dragItems: c.current,
|
@@ -4477,7 +4477,7 @@ const jt = {
|
|
4477
4477
|
};
|
4478
4478
|
var dn = (e) => {
|
4479
4479
|
const t = ({ id: n, type: r, data: i, xPos: o, yPos: a, xPosOrigin: s, yPosOrigin: u, selected: l, onClick: c, onMouseEnter: d, onMouseMove: f, onMouseLeave: h, onContextMenu: g, onDoubleClick: p, style: m, className: v, isDraggable: b, isSelectable: w, isConnectable: _, isFocusable: C, selectNodesOnDrag: E, sourcePosition: M, targetPosition: T, hidden: I, resizeObserver: q, dragHandle: P, zIndex: F, isParent: O, noDragClassName: y, noPanClassName: A, initialized: x, disableKeyboardA11y: k, ariaLabel: D, rfId: S, hasHandleBounds: L }) => {
|
4480
|
-
const $ = _e(), B = ee(null), G = ee(null), H = ee(M),
|
4480
|
+
const $ = _e(), B = ee(null), G = ee(null), H = ee(M), X = ee(T), J = ee(r), z = w || b || c || d || f || h, V = Vp(), W = ln(n, $.getState, d), j = ln(n, $.getState, f), ie = ln(n, $.getState, h), oe = ln(n, $.getState, g), de = ln(n, $.getState, p), me = (Y) => {
|
4481
4481
|
const { nodeDragThreshold: K } = $.getState();
|
4482
4482
|
if (w && (!E || !b || K > 0) && qs({
|
4483
4483
|
id: n,
|
@@ -4485,36 +4485,36 @@ var dn = (e) => {
|
|
4485
4485
|
nodeRef: B
|
4486
4486
|
}), c) {
|
4487
4487
|
const he = $.getState().nodeInternals.get(n);
|
4488
|
-
he && c(
|
4488
|
+
he && c(Y, { ...he });
|
4489
4489
|
}
|
4490
|
-
},
|
4491
|
-
if (!As(
|
4492
|
-
if (fp.includes(
|
4493
|
-
const K =
|
4490
|
+
}, Z = (Y) => {
|
4491
|
+
if (!As(Y) && !k)
|
4492
|
+
if (fp.includes(Y.key) && w) {
|
4493
|
+
const K = Y.key === "Escape";
|
4494
4494
|
qs({
|
4495
4495
|
id: n,
|
4496
4496
|
store: $,
|
4497
4497
|
unselect: K,
|
4498
4498
|
nodeRef: B
|
4499
4499
|
});
|
4500
|
-
} else b && l && Object.prototype.hasOwnProperty.call(jt,
|
4501
|
-
ariaLiveMessage: `Moved selected node ${
|
4500
|
+
} else b && l && Object.prototype.hasOwnProperty.call(jt, Y.key) && ($.setState({
|
4501
|
+
ariaLiveMessage: `Moved selected node ${Y.key.replace("Arrow", "").toLowerCase()}. New position, x: ${~~o}, y: ${~~a}`
|
4502
4502
|
}), V({
|
4503
|
-
x: jt[
|
4504
|
-
y: jt[
|
4505
|
-
isShiftPressed:
|
4503
|
+
x: jt[Y.key].x,
|
4504
|
+
y: jt[Y.key].y,
|
4505
|
+
isShiftPressed: Y.shiftKey
|
4506
4506
|
}));
|
4507
4507
|
};
|
4508
4508
|
ce(() => () => {
|
4509
4509
|
G.current && (q?.unobserve(G.current), G.current = null);
|
4510
4510
|
}, []), ce(() => {
|
4511
4511
|
if (B.current && !I) {
|
4512
|
-
const
|
4513
|
-
(!x || !L || G.current !==
|
4512
|
+
const Y = B.current;
|
4513
|
+
(!x || !L || G.current !== Y) && (G.current && q?.unobserve(G.current), q?.observe(Y), G.current = Y);
|
4514
4514
|
}
|
4515
4515
|
}, [I, x, L]), ce(() => {
|
4516
|
-
const
|
4517
|
-
B.current && (
|
4516
|
+
const Y = J.current !== r, K = H.current !== M, he = X.current !== T;
|
4517
|
+
B.current && (Y || K || he) && (Y && (J.current = r), K && (H.current = M), he && (X.current = T), $.getState().updateNodeDimensions([{ id: n, nodeElement: B.current, forceUpdate: !0 }]));
|
4518
4518
|
}, [n, r, M, T]);
|
4519
4519
|
const be = Hp({
|
4520
4520
|
nodeRef: B,
|
@@ -4547,7 +4547,7 @@ var dn = (e) => {
|
|
4547
4547
|
pointerEvents: z ? "all" : "none",
|
4548
4548
|
visibility: x ? "visible" : "hidden",
|
4549
4549
|
...m
|
4550
|
-
}, "data-id": n, "data-testid": `rf__node-${n}`, onMouseEnter:
|
4550
|
+
}, "data-id": n, "data-testid": `rf__node-${n}`, onMouseEnter: W, onMouseMove: j, onMouseLeave: ie, onContextMenu: oe, onClick: me, onDoubleClick: de, onKeyDown: C ? Z : void 0, tabIndex: C ? 0 : void 0, role: C ? "button" : void 0, "aria-describedby": k ? void 0 : `${kp}-${S}`, "aria-label": D },
|
4551
4551
|
R.createElement(
|
4552
4552
|
uw,
|
4553
4553
|
{ value: n },
|
@@ -4557,7 +4557,7 @@ var dn = (e) => {
|
|
4557
4557
|
};
|
4558
4558
|
return t.displayName = "NodeWrapper", ue(t);
|
4559
4559
|
};
|
4560
|
-
const
|
4560
|
+
const Zw = (e) => {
|
4561
4561
|
const t = e.getNodes().filter((n) => n.selected);
|
4562
4562
|
return {
|
4563
4563
|
...Lr(t, e.nodeOrigin),
|
@@ -4566,7 +4566,7 @@ const Xw = (e) => {
|
|
4566
4566
|
};
|
4567
4567
|
};
|
4568
4568
|
function jw({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y: n }) {
|
4569
|
-
const r = _e(), { width: i, height: o, x: a, y: s, transformString: u, userSelectionActive: l } = le(
|
4569
|
+
const r = _e(), { width: i, height: o, x: a, y: s, transformString: u, userSelectionActive: l } = le(Zw, ye), c = Vp(), d = ee(null);
|
4570
4570
|
if (ce(() => {
|
4571
4571
|
n || d.current?.focus({
|
4572
4572
|
preventScroll: !0
|
@@ -4600,13 +4600,13 @@ function jw({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y:
|
|
4600
4600
|
}
|
4601
4601
|
var Qw = ue(jw);
|
4602
4602
|
const Jw = (e) => e.nodesSelectionActive, Gp = ({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: i, onPaneContextMenu: o, onPaneScroll: a, deleteKeyCode: s, onMove: u, onMoveStart: l, onMoveEnd: c, selectionKeyCode: d, selectionOnDrag: f, selectionMode: h, onSelectionStart: g, onSelectionEnd: p, multiSelectionKeyCode: m, panActivationKeyCode: v, zoomActivationKeyCode: b, elementsSelectable: w, zoomOnScroll: _, zoomOnPinch: C, panOnScroll: E, panOnScrollSpeed: M, panOnScrollMode: T, zoomOnDoubleClick: I, panOnDrag: q, defaultViewport: P, translateExtent: F, minZoom: O, maxZoom: y, preventScrolling: A, onSelectionContextMenu: x, noWheelClassName: k, noPanClassName: D, disableKeyboardA11y: S }) => {
|
4603
|
-
const L = le(Jw), $ = Cn(d), B = Cn(v), G = B || q, H = B || E,
|
4603
|
+
const L = le(Jw), $ = Cn(d), B = Cn(v), G = B || q, H = B || E, X = $ || f && G !== !0;
|
4604
4604
|
return $w({ deleteKeyCode: s, multiSelectionKeyCode: m }), R.createElement(
|
4605
4605
|
Hw,
|
4606
4606
|
{ onMove: u, onMoveStart: l, onMoveEnd: c, onPaneContextMenu: o, elementsSelectable: w, zoomOnScroll: _, zoomOnPinch: C, panOnScroll: H, panOnScrollSpeed: M, panOnScrollMode: T, zoomOnDoubleClick: I, panOnDrag: !$ && G, defaultViewport: P, translateExtent: F, minZoom: O, maxZoom: y, zoomActivationKeyCode: b, preventScrolling: A, noWheelClassName: k, noPanClassName: D },
|
4607
4607
|
R.createElement(
|
4608
4608
|
Fp,
|
4609
|
-
{ onSelectionStart: g, onSelectionEnd: p, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: i, onPaneContextMenu: o, onPaneScroll: a, panOnDrag: G, isSelecting: !!
|
4609
|
+
{ onSelectionStart: g, onSelectionEnd: p, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: i, onPaneContextMenu: o, onPaneScroll: a, panOnDrag: G, isSelecting: !!X, selectionMode: h },
|
4610
4610
|
e,
|
4611
4611
|
L && R.createElement(Qw, { onSelectionContextMenu: x, noPanClassName: D, disableKeyboardA11y: S })
|
4612
4612
|
)
|
@@ -4657,7 +4657,7 @@ const r1 = ({ x: e, y: t, width: n, height: r, origin: i }) => !n || !r ? { x: e
|
|
4657
4657
|
u?.current?.disconnect();
|
4658
4658
|
}, []), R.createElement("div", { className: "react-flow__nodes", style: mc }, s.map((c) => {
|
4659
4659
|
let d = c.type || "default";
|
4660
|
-
e.nodeTypes[d] || (a?.("003",
|
4660
|
+
e.nodeTypes[d] || (a?.("003", Ye.error003(d)), d = "default");
|
4661
4661
|
const f = e.nodeTypes[d] || e.nodeTypes.default, h = !!(c.draggable || t && typeof c.draggable > "u"), g = !!(c.selectable || i && typeof c.selectable > "u"), p = !!(c.connectable || n && typeof c.connectable > "u"), m = !!(c.focusable || r && typeof c.focusable > "u"), v = e.nodeExtent ? sc(c.positionAbsolute, e.nodeExtent) : c.positionAbsolute, b = v?.x ?? 0, w = v?.y ?? 0, _ = r1({
|
4662
4662
|
x: b,
|
4663
4663
|
y: w,
|
@@ -4672,17 +4672,17 @@ Up.displayName = "NodeRenderer";
|
|
4672
4672
|
var o1 = ue(Up);
|
4673
4673
|
const a1 = (e, t, n) => n === U.Left ? e - t : n === U.Right ? e + t : e, s1 = (e, t, n) => n === U.Top ? e - t : n === U.Bottom ? e + t : e, Ru = "react-flow__edgeupdater", Tu = ({ position: e, centerX: t, centerY: n, radius: r = 10, onMouseDown: i, onMouseEnter: o, onMouseOut: a, type: s }) => R.createElement("circle", { onMouseDown: i, onMouseEnter: o, onMouseOut: a, className: Se([Ru, `${Ru}-${s}`]), cx: a1(t, r, e), cy: s1(n, r, e), r, stroke: "transparent", fill: "transparent" }), c1 = () => !0;
|
4674
4674
|
var Kt = (e) => {
|
4675
|
-
const t = ({ id: n, className: r, type: i, data: o, onClick: a, onEdgeDoubleClick: s, selected: u, animated: l, label: c, labelStyle: d, labelShowBg: f, labelBgStyle: h, labelBgPadding: g, labelBgBorderRadius: p, style: m, source: v, target: b, sourceX: w, sourceY: _, targetX: C, targetY: E, sourcePosition: M, targetPosition: T, elementsSelectable: I, hidden: q, sourceHandleId: P, targetHandleId: F, onContextMenu: O, onMouseEnter: y, onMouseMove: A, onMouseLeave: x, reconnectRadius: k, onReconnect: D, onReconnectStart: S, onReconnectEnd: L, markerEnd: $, markerStart: B, rfId: G, ariaLabel: H, isFocusable:
|
4676
|
-
const j = ee(null), [ie, oe] = ae(!1), [de, me] = ae(!1),
|
4675
|
+
const t = ({ id: n, className: r, type: i, data: o, onClick: a, onEdgeDoubleClick: s, selected: u, animated: l, label: c, labelStyle: d, labelShowBg: f, labelBgStyle: h, labelBgPadding: g, labelBgBorderRadius: p, style: m, source: v, target: b, sourceX: w, sourceY: _, targetX: C, targetY: E, sourcePosition: M, targetPosition: T, elementsSelectable: I, hidden: q, sourceHandleId: P, targetHandleId: F, onContextMenu: O, onMouseEnter: y, onMouseMove: A, onMouseLeave: x, reconnectRadius: k, onReconnect: D, onReconnectStart: S, onReconnectEnd: L, markerEnd: $, markerStart: B, rfId: G, ariaLabel: H, isFocusable: X, isReconnectable: J, pathOptions: z, interactionWidth: V, disableKeyboardA11y: W }) => {
|
4676
|
+
const j = ee(null), [ie, oe] = ae(!1), [de, me] = ae(!1), Z = _e(), be = Fe(() => `url('#${Ts(B, G)}')`, [B, G]), Y = Fe(() => `url('#${Ts($, G)}')`, [$, G]);
|
4677
4677
|
if (q)
|
4678
4678
|
return null;
|
4679
4679
|
const K = (we) => {
|
4680
|
-
const { edges: qe, addSelectedEdges: Ce, unselectNodesAndEdges: Ie, multiSelectionActive: Ht } =
|
4681
|
-
Qe && (I && (
|
4682
|
-
}, he = un(n,
|
4680
|
+
const { edges: qe, addSelectedEdges: Ce, unselectNodesAndEdges: Ie, multiSelectionActive: Ht } = Z.getState(), Qe = qe.find((It) => It.id === n);
|
4681
|
+
Qe && (I && (Z.setState({ nodesSelectionActive: !1 }), Qe.selected && Ht ? (Ie({ nodes: [], edges: [Qe] }), j.current?.blur()) : Ce([n])), a && a(we, Qe));
|
4682
|
+
}, he = un(n, Z.getState, s), He = un(n, Z.getState, O), Ze = un(n, Z.getState, y), Me = un(n, Z.getState, A), ge = un(n, Z.getState, x), Ae = (we, qe) => {
|
4683
4683
|
if (we.button !== 0)
|
4684
4684
|
return;
|
4685
|
-
const { edges: Ce, isValidConnection: Ie } =
|
4685
|
+
const { edges: Ce, isValidConnection: Ie } = Z.getState(), Ht = qe ? b : v, Qe = (qe ? F : P) || null, It = qe ? "target" : "source", zr = Ie || c1, Hr = qe, an = Ce.find((At) => At.id === n);
|
4686
4686
|
me(!0), S?.(we, an, It);
|
4687
4687
|
const Vr = (At) => {
|
4688
4688
|
me(!1), L?.(At, an, It);
|
@@ -4693,15 +4693,15 @@ var Kt = (e) => {
|
|
4693
4693
|
nodeId: Ht,
|
4694
4694
|
onConnect: (At) => D?.(an, At),
|
4695
4695
|
isTarget: Hr,
|
4696
|
-
getState:
|
4697
|
-
setState:
|
4696
|
+
getState: Z.getState,
|
4697
|
+
setState: Z.setState,
|
4698
4698
|
isValidConnection: zr,
|
4699
4699
|
edgeUpdaterType: It,
|
4700
4700
|
onReconnectEnd: Vr
|
4701
4701
|
});
|
4702
4702
|
}, Ve = (we) => Ae(we, !0), nt = (we) => Ae(we, !1), je = () => oe(!0), Le = () => oe(!1), rt = !I && !a, pt = (we) => {
|
4703
|
-
if (!
|
4704
|
-
const { unselectNodesAndEdges: qe, addSelectedEdges: Ce, edges: Ie } =
|
4703
|
+
if (!W && fp.includes(we.key) && I) {
|
4704
|
+
const { unselectNodesAndEdges: qe, addSelectedEdges: Ce, edges: Ie } = Z.getState();
|
4705
4705
|
we.key === "Escape" ? (j.current?.blur(), qe({ edges: [Ie.find((Qe) => Qe.id === n)] })) : Ce([n]);
|
4706
4706
|
}
|
4707
4707
|
};
|
@@ -4712,8 +4712,8 @@ var Kt = (e) => {
|
|
4712
4712
|
`react-flow__edge-${i}`,
|
4713
4713
|
r,
|
4714
4714
|
{ selected: u, animated: l, inactive: rt, updating: ie }
|
4715
|
-
]), onClick: K, onDoubleClick: he, onContextMenu: He, onMouseEnter:
|
4716
|
-
!de && R.createElement(e, { id: n, source: v, target: b, selected: u, animated: l, label: c, labelStyle: d, labelShowBg: f, labelBgStyle: h, labelBgPadding: g, labelBgBorderRadius: p, data: o, style: m, sourceX: w, sourceY: _, targetX: C, targetY: E, sourcePosition: M, targetPosition: T, sourceHandleId: P, targetHandleId: F, markerStart: be, markerEnd:
|
4715
|
+
]), onClick: K, onDoubleClick: he, onContextMenu: He, onMouseEnter: Ze, onMouseMove: Me, onMouseLeave: ge, onKeyDown: X ? pt : void 0, tabIndex: X ? 0 : void 0, role: X ? "button" : "img", "data-testid": `rf__edge-${n}`, "aria-label": H === null ? void 0 : H || `Edge from ${v} to ${b}`, "aria-describedby": X ? `${Lp}-${G}` : void 0, ref: j },
|
4716
|
+
!de && R.createElement(e, { id: n, source: v, target: b, selected: u, animated: l, label: c, labelStyle: d, labelShowBg: f, labelBgStyle: h, labelBgPadding: g, labelBgBorderRadius: p, data: o, style: m, sourceX: w, sourceY: _, targetX: C, targetY: E, sourcePosition: M, targetPosition: T, sourceHandleId: P, targetHandleId: F, markerStart: be, markerEnd: Y, pathOptions: z, interactionWidth: V }),
|
4717
4717
|
J && R.createElement(
|
4718
4718
|
R.Fragment,
|
4719
4719
|
null,
|
@@ -4854,7 +4854,7 @@ const g1 = ({ color: e = "none", strokeWidth: t = 1 }) => R.createElement("polyl
|
|
4854
4854
|
};
|
4855
4855
|
function v1(e) {
|
4856
4856
|
const t = _e();
|
4857
|
-
return Fe(() => Object.prototype.hasOwnProperty.call(Ou, e) ? Ou[e] : (t.getState().onError?.("009",
|
4857
|
+
return Fe(() => Object.prototype.hasOwnProperty.call(Ou, e) ? Ou[e] : (t.getState().onError?.("009", Ye.error009(e)), null), [e]);
|
4858
4858
|
}
|
4859
4859
|
const y1 = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, markerUnits: o = "strokeWidth", strokeWidth: a, orient: s = "auto-start-reverse" }) => {
|
4860
4860
|
const u = v1(t);
|
@@ -4891,7 +4891,7 @@ const w1 = (e) => ({
|
|
4891
4891
|
connectionMode: e.connectionMode,
|
4892
4892
|
nodeInternals: e.nodeInternals,
|
4893
4893
|
onError: e.onError
|
4894
|
-
}),
|
4894
|
+
}), Yp = ({ defaultMarkerColor: e, onlyRenderVisibleElements: t, elevateEdgesOnSelect: n, rfId: r, edgeTypes: i, noPanClassName: o, onEdgeContextMenu: a, onEdgeMouseEnter: s, onEdgeMouseMove: u, onEdgeMouseLeave: l, onEdgeClick: c, onEdgeDoubleClick: d, onReconnect: f, onReconnectStart: h, onReconnectEnd: g, reconnectRadius: p, children: m, disableKeyboardA11y: v }) => {
|
4895
4895
|
const { edgesFocusable: b, edgesUpdatable: w, elementsSelectable: _, width: C, height: E, connectionMode: M, nodeInternals: T, onError: I } = le(w1, ye), q = p1(t, T, n);
|
4896
4896
|
return C ? R.createElement(
|
4897
4897
|
R.Fragment,
|
@@ -4905,19 +4905,19 @@ const w1 = (e) => ({
|
|
4905
4905
|
if (!k || !L)
|
4906
4906
|
return null;
|
4907
4907
|
let $ = y.type || "default";
|
4908
|
-
i[$] || (I?.("011",
|
4909
|
-
const B = i[$] || i.default, G = M === Bt.Strict ? S.target : (S.target ?? []).concat(S.source ?? []), H = Lu(x.source, y.sourceHandle),
|
4910
|
-
if (!H || !
|
4911
|
-
return I?.("008",
|
4912
|
-
const { sourceX: ie, sourceY: oe, targetX: de, targetY: me } = l1(A, H, J, D,
|
4908
|
+
i[$] || (I?.("011", Ye.error011($)), $ = "default");
|
4909
|
+
const B = i[$] || i.default, G = M === Bt.Strict ? S.target : (S.target ?? []).concat(S.source ?? []), H = Lu(x.source, y.sourceHandle), X = Lu(G, y.targetHandle), J = H?.position || U.Bottom, z = X?.position || U.Top, V = !!(y.focusable || b && typeof y.focusable > "u"), W = y.reconnectable || y.updatable, j = typeof f < "u" && (W || w && typeof W > "u");
|
4910
|
+
if (!H || !X)
|
4911
|
+
return I?.("008", Ye.error008(H, y)), null;
|
4912
|
+
const { sourceX: ie, sourceY: oe, targetX: de, targetY: me } = l1(A, H, J, D, X, z);
|
4913
4913
|
return R.createElement(B, { key: y.id, id: y.id, className: Se([y.className, o]), type: $, data: y.data, selected: !!y.selected, animated: !!y.animated, hidden: !!y.hidden, label: y.label, labelStyle: y.labelStyle, labelShowBg: y.labelShowBg, labelBgStyle: y.labelBgStyle, labelBgPadding: y.labelBgPadding, labelBgBorderRadius: y.labelBgBorderRadius, style: y.style, source: y.source, target: y.target, sourceHandleId: y.sourceHandle, targetHandleId: y.targetHandle, markerEnd: y.markerEnd, markerStart: y.markerStart, sourceX: ie, sourceY: oe, targetX: de, targetY: me, sourcePosition: J, targetPosition: z, elementsSelectable: _, onContextMenu: a, onMouseEnter: s, onMouseMove: u, onMouseLeave: l, onClick: c, onEdgeDoubleClick: d, onReconnect: f, onReconnectStart: h, onReconnectEnd: g, reconnectRadius: p, rfId: r, ariaLabel: y.ariaLabel, isFocusable: V, isReconnectable: j, pathOptions: "pathOptions" in y ? y.pathOptions : void 0, interactionWidth: y.interactionWidth, disableKeyboardA11y: v });
|
4914
4914
|
}))
|
4915
4915
|
)),
|
4916
4916
|
m
|
4917
4917
|
) : null;
|
4918
4918
|
};
|
4919
|
-
|
4920
|
-
var E1 = ue(
|
4919
|
+
Yp.displayName = "EdgeRenderer";
|
4920
|
+
var E1 = ue(Yp);
|
4921
4921
|
const x1 = (e) => `translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;
|
4922
4922
|
function S1({ children: e }) {
|
4923
4923
|
const t = le(x1);
|
@@ -4934,7 +4934,7 @@ const N1 = {
|
|
4934
4934
|
[U.Right]: U.Left,
|
4935
4935
|
[U.Top]: U.Bottom,
|
4936
4936
|
[U.Bottom]: U.Top
|
4937
|
-
},
|
4937
|
+
}, Wp = ({ nodeId: e, handleType: t, style: n, type: r = bt.Bezier, CustomComponent: i, connectionStatus: o }) => {
|
4938
4938
|
const { fromNode: a, handleId: s, toX: u, toY: l, connectionMode: c } = le(ve((E) => ({
|
4939
4939
|
fromNode: E.nodeInternals.get(e),
|
4940
4940
|
handleId: E.connectionHandleId,
|
@@ -4964,7 +4964,7 @@ const N1 = {
|
|
4964
4964
|
borderRadius: 0
|
4965
4965
|
}) : r === bt.SmoothStep ? [_] = Rs(C) : r === bt.SimpleBezier ? [_] = vp(C) : _ = `M${m},${v} ${u},${l}`, R.createElement("path", { d: _, fill: "none", className: "react-flow__connection-path", style: n });
|
4966
4966
|
};
|
4967
|
-
|
4967
|
+
Wp.displayName = "ConnectionLine";
|
4968
4968
|
const M1 = (e) => ({
|
4969
4969
|
nodeId: e.connectionNodeId,
|
4970
4970
|
handleType: e.connectionHandleType,
|
@@ -4981,7 +4981,7 @@ function I1({ containerStyle: e, style: t, type: n, component: r }) {
|
|
4981
4981
|
R.createElement(
|
4982
4982
|
"g",
|
4983
4983
|
{ className: Se(["react-flow__connection", l]) },
|
4984
|
-
R.createElement(
|
4984
|
+
R.createElement(Wp, { nodeId: i, handleType: o, style: t, type: n, CustomComponent: r, connectionStatus: l })
|
4985
4985
|
)
|
4986
4986
|
);
|
4987
4987
|
}
|
@@ -4990,22 +4990,22 @@ function Pu(e, t) {
|
|
4990
4990
|
return Fe(() => {
|
4991
4991
|
if (process.env.NODE_ENV === "development") {
|
4992
4992
|
const o = Object.keys(e);
|
4993
|
-
ye(n.current, o) && r.getState().onError?.("002",
|
4993
|
+
ye(n.current, o) && r.getState().onError?.("002", Ye.error002()), n.current = o;
|
4994
4994
|
}
|
4995
4995
|
return t(e);
|
4996
4996
|
}, [e]);
|
4997
4997
|
}
|
4998
|
-
const
|
4998
|
+
const Xp = ({ nodeTypes: e, edgeTypes: t, onMove: n, onMoveStart: r, onMoveEnd: i, onInit: o, onNodeClick: a, onEdgeClick: s, onNodeDoubleClick: u, onEdgeDoubleClick: l, onNodeMouseEnter: c, onNodeMouseMove: d, onNodeMouseLeave: f, onNodeContextMenu: h, onSelectionContextMenu: g, onSelectionStart: p, onSelectionEnd: m, connectionLineType: v, connectionLineStyle: b, connectionLineComponent: w, connectionLineContainerStyle: _, selectionKeyCode: C, selectionOnDrag: E, selectionMode: M, multiSelectionKeyCode: T, panActivationKeyCode: I, zoomActivationKeyCode: q, deleteKeyCode: P, onlyRenderVisibleElements: F, elementsSelectable: O, selectNodesOnDrag: y, defaultViewport: A, translateExtent: x, minZoom: k, maxZoom: D, preventScrolling: S, defaultMarkerColor: L, zoomOnScroll: $, zoomOnPinch: B, panOnScroll: G, panOnScrollSpeed: H, panOnScrollMode: X, zoomOnDoubleClick: J, panOnDrag: z, onPaneClick: V, onPaneMouseEnter: W, onPaneMouseMove: j, onPaneMouseLeave: ie, onPaneScroll: oe, onPaneContextMenu: de, onEdgeContextMenu: me, onEdgeMouseEnter: Z, onEdgeMouseMove: be, onEdgeMouseLeave: Y, onReconnect: K, onReconnectStart: he, onReconnectEnd: He, reconnectRadius: Ze, noDragClassName: Me, noWheelClassName: ge, noPanClassName: Ae, elevateEdgesOnSelect: Ve, disableKeyboardA11y: nt, nodeOrigin: je, nodeExtent: Le, rfId: rt }) => {
|
4999
4999
|
const pt = Pu(e, n1), we = Pu(t, u1);
|
5000
5000
|
return C1(o), R.createElement(
|
5001
5001
|
e1,
|
5002
|
-
{ onPaneClick: V, onPaneMouseEnter:
|
5002
|
+
{ onPaneClick: V, onPaneMouseEnter: W, onPaneMouseMove: j, onPaneMouseLeave: ie, onPaneContextMenu: de, onPaneScroll: oe, deleteKeyCode: P, selectionKeyCode: C, selectionOnDrag: E, selectionMode: M, onSelectionStart: p, onSelectionEnd: m, multiSelectionKeyCode: T, panActivationKeyCode: I, zoomActivationKeyCode: q, elementsSelectable: O, onMove: n, onMoveStart: r, onMoveEnd: i, zoomOnScroll: $, zoomOnPinch: B, zoomOnDoubleClick: J, panOnScroll: G, panOnScrollSpeed: H, panOnScrollMode: X, panOnDrag: z, defaultViewport: A, translateExtent: x, minZoom: k, maxZoom: D, onSelectionContextMenu: g, preventScrolling: S, noDragClassName: Me, noWheelClassName: ge, noPanClassName: Ae, disableKeyboardA11y: nt },
|
5003
5003
|
R.createElement(
|
5004
5004
|
S1,
|
5005
5005
|
null,
|
5006
5006
|
R.createElement(
|
5007
5007
|
E1,
|
5008
|
-
{ edgeTypes: we, onEdgeClick: s, onEdgeDoubleClick: l, onlyRenderVisibleElements: F, onEdgeContextMenu: me, onEdgeMouseEnter:
|
5008
|
+
{ edgeTypes: we, onEdgeClick: s, onEdgeDoubleClick: l, onlyRenderVisibleElements: F, onEdgeContextMenu: me, onEdgeMouseEnter: Z, onEdgeMouseMove: be, onEdgeMouseLeave: Y, onReconnect: K, onReconnectStart: he, onReconnectEnd: He, reconnectRadius: Ze, defaultMarkerColor: L, noPanClassName: Ae, elevateEdgesOnSelect: !!Ve, disableKeyboardA11y: nt, rfId: rt },
|
5009
5009
|
R.createElement(I1, { style: b, type: v, component: w, containerStyle: _ })
|
5010
5010
|
),
|
5011
5011
|
R.createElement("div", { className: "react-flow__edgelabel-renderer" }),
|
@@ -5013,8 +5013,8 @@ const Zp = ({ nodeTypes: e, edgeTypes: t, onMove: n, onMoveStart: r, onMoveEnd:
|
|
5013
5013
|
)
|
5014
5014
|
);
|
5015
5015
|
};
|
5016
|
-
|
5017
|
-
var A1 = ue(
|
5016
|
+
Xp.displayName = "GraphView";
|
5017
|
+
var A1 = ue(Xp);
|
5018
5018
|
const Os = [
|
5019
5019
|
[Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY],
|
5020
5020
|
[Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY]
|
@@ -5153,7 +5153,7 @@ const Os = [
|
|
5153
5153
|
addSelectedNodes: (n) => {
|
5154
5154
|
const { multiSelectionActive: r, edges: i, getNodes: o } = t();
|
5155
5155
|
let a, s = null;
|
5156
|
-
r ? a = n.map((u) => _t(u, !0)) : (a =
|
5156
|
+
r ? a = n.map((u) => _t(u, !0)) : (a = Yt(o(), n), s = Yt(i, [])), Yn({
|
5157
5157
|
changedNodes: a,
|
5158
5158
|
changedEdges: s,
|
5159
5159
|
get: t,
|
@@ -5163,7 +5163,7 @@ const Os = [
|
|
5163
5163
|
addSelectedEdges: (n) => {
|
5164
5164
|
const { multiSelectionActive: r, edges: i, getNodes: o } = t();
|
5165
5165
|
let a, s = null;
|
5166
|
-
r ? a = n.map((u) => _t(u, !0)) : (a =
|
5166
|
+
r ? a = n.map((u) => _t(u, !0)) : (a = Yt(i, n), s = Yt(o(), [])), Yn({
|
5167
5167
|
changedNodes: s,
|
5168
5168
|
changedEdges: a,
|
5169
5169
|
get: t,
|
@@ -5172,7 +5172,7 @@ const Os = [
|
|
5172
5172
|
},
|
5173
5173
|
unselectNodesAndEdges: ({ nodes: n, edges: r } = {}) => {
|
5174
5174
|
const { edges: i, getNodes: o } = t(), a = n || o(), s = r || i, u = a.map((c) => (c.selected = !1, _t(c.id, !1))), l = s.map((c) => _t(c.id, !1));
|
5175
|
-
|
5175
|
+
Yn({
|
5176
5176
|
changedNodes: u,
|
5177
5177
|
changedEdges: l,
|
5178
5178
|
get: t,
|
@@ -5192,7 +5192,7 @@ const Os = [
|
|
5192
5192
|
},
|
5193
5193
|
resetSelectedElements: () => {
|
5194
5194
|
const { edges: n, getNodes: r } = t(), o = r().filter((s) => s.selected).map((s) => _t(s.id, !1)), a = n.filter((s) => s.selected).map((s) => _t(s.id, !1));
|
5195
|
-
|
5195
|
+
Yn({
|
5196
5196
|
changedNodes: o,
|
5197
5197
|
changedEdges: a,
|
5198
5198
|
get: t,
|
@@ -5227,12 +5227,12 @@ const Os = [
|
|
5227
5227
|
connectionEndHandle: gt.connectionEndHandle
|
5228
5228
|
}),
|
5229
5229
|
reset: () => e({ ...gt })
|
5230
|
-
}), Object.is),
|
5230
|
+
}), Object.is), Zp = ({ children: e }) => {
|
5231
5231
|
const t = ee(null);
|
5232
|
-
return t.current || (t.current = R1()), R.createElement(
|
5232
|
+
return t.current || (t.current = R1()), R.createElement(Zb, { value: t.current }, e);
|
5233
5233
|
};
|
5234
|
-
|
5235
|
-
const jp = ({ children: e }) => Nr(Tr) ? R.createElement(R.Fragment, null, e) : R.createElement(
|
5234
|
+
Zp.displayName = "ReactFlowProvider";
|
5235
|
+
const jp = ({ children: e }) => Nr(Tr) ? R.createElement(R.Fragment, null, e) : R.createElement(Zp, null, e);
|
5236
5236
|
jp.displayName = "ReactFlowWrapper";
|
5237
5237
|
const T1 = {
|
5238
5238
|
input: Ip,
|
@@ -5251,7 +5251,7 @@ const T1 = {
|
|
5251
5251
|
overflow: "hidden",
|
5252
5252
|
position: "relative",
|
5253
5253
|
zIndex: 0
|
5254
|
-
}, Qp = Ih(({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: o = T1, edgeTypes: a = k1, onNodeClick: s, onEdgeClick: u, onInit: l, onMove: c, onMoveStart: d, onMoveEnd: f, onConnect: h, onConnectStart: g, onConnectEnd: p, onClickConnectStart: m, onClickConnectEnd: v, onNodeMouseEnter: b, onNodeMouseMove: w, onNodeMouseLeave: _, onNodeContextMenu: C, onNodeDoubleClick: E, onNodeDragStart: M, onNodeDrag: T, onNodeDragStop: I, onNodesDelete: q, onEdgesDelete: P, onSelectionChange: F, onSelectionDragStart: O, onSelectionDrag: y, onSelectionDragStop: A, onSelectionContextMenu: x, onSelectionStart: k, onSelectionEnd: D, connectionMode: S = Bt.Strict, connectionLineType: L = bt.Bezier, connectionLineStyle: $, connectionLineComponent: B, connectionLineContainerStyle: G, deleteKeyCode: H = "Backspace", selectionKeyCode:
|
5254
|
+
}, Qp = Ih(({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: o = T1, edgeTypes: a = k1, onNodeClick: s, onEdgeClick: u, onInit: l, onMove: c, onMoveStart: d, onMoveEnd: f, onConnect: h, onConnectStart: g, onConnectEnd: p, onClickConnectStart: m, onClickConnectEnd: v, onNodeMouseEnter: b, onNodeMouseMove: w, onNodeMouseLeave: _, onNodeContextMenu: C, onNodeDoubleClick: E, onNodeDragStart: M, onNodeDrag: T, onNodeDragStop: I, onNodesDelete: q, onEdgesDelete: P, onSelectionChange: F, onSelectionDragStart: O, onSelectionDrag: y, onSelectionDragStop: A, onSelectionContextMenu: x, onSelectionStart: k, onSelectionEnd: D, connectionMode: S = Bt.Strict, connectionLineType: L = bt.Bezier, connectionLineStyle: $, connectionLineComponent: B, connectionLineContainerStyle: G, deleteKeyCode: H = "Backspace", selectionKeyCode: X = "Shift", selectionOnDrag: J = !1, selectionMode: z = Sn.Full, panActivationKeyCode: V = "Space", multiSelectionKeyCode: W = dr() ? "Meta" : "Control", zoomActivationKeyCode: j = dr() ? "Meta" : "Control", snapToGrid: ie = !1, snapGrid: oe = q1, onlyRenderVisibleElements: de = !1, selectNodesOnDrag: me = !0, nodesDraggable: Z, nodesConnectable: be, nodesFocusable: Y, nodeOrigin: K = L1, edgesFocusable: he, edgesUpdatable: He, elementsSelectable: Ze, defaultViewport: Me = O1, minZoom: ge = 0.5, maxZoom: Ae = 2, translateExtent: Ve = Os, preventScrolling: nt = !0, nodeExtent: je, defaultMarkerColor: Le = "#b1b1b7", zoomOnScroll: rt = !0, zoomOnPinch: pt = !0, panOnScroll: we = !1, panOnScrollSpeed: qe = 0.5, panOnScrollMode: Ce = Lt.Free, zoomOnDoubleClick: Ie = !0, panOnDrag: Ht = !0, onPaneClick: Qe, onPaneMouseEnter: It, onPaneMouseMove: zr, onPaneMouseLeave: Hr, onPaneScroll: an, onPaneContextMenu: Vr, children: Lc, onEdgeContextMenu: At, onEdgeDoubleClick: pm, onEdgeMouseEnter: gm, onEdgeMouseMove: mm, onEdgeMouseLeave: vm, onEdgeUpdate: ym, onEdgeUpdateStart: _m, onEdgeUpdateEnd: bm, onReconnect: wm, onReconnectStart: Em, onReconnectEnd: xm, reconnectRadius: Sm = 10, edgeUpdaterRadius: Cm = 10, onNodesChange: Nm, onEdgesChange: Mm, noDragClassName: Im = "nodrag", noWheelClassName: Am = "nowheel", noPanClassName: qc = "nopan", fitView: Rm = !1, fitViewOptions: Tm, connectOnClick: km = !0, attributionPosition: Lm, proOptions: qm, defaultEdgeOptions: Om, elevateNodesOnSelect: Pm = !0, elevateEdgesOnSelect: Dm = !1, disableKeyboardA11y: Oc = !1, autoPanOnConnect: $m = !0, autoPanOnNodeDrag: Fm = !0, connectionRadius: Bm = 20, isValidConnection: zm, onError: Hm, style: Vm, id: Pc, nodeDragThreshold: Gm, ...Um }, Km) => {
|
5255
5255
|
const Gr = Pc || "1";
|
5256
5256
|
return R.createElement(
|
5257
5257
|
"div",
|
@@ -5259,8 +5259,8 @@ const T1 = {
|
|
5259
5259
|
R.createElement(
|
5260
5260
|
jp,
|
5261
5261
|
null,
|
5262
|
-
R.createElement(A1, { onInit: l, onMove: c, onMoveStart: d, onMoveEnd: f, onNodeClick: s, onEdgeClick: u, onNodeMouseEnter: b, onNodeMouseMove: w, onNodeMouseLeave: _, onNodeContextMenu: C, onNodeDoubleClick: E, nodeTypes: o, edgeTypes: a, connectionLineType: L, connectionLineStyle: $, connectionLineComponent: B, connectionLineContainerStyle: G, selectionKeyCode:
|
5263
|
-
R.createElement(Nw, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: h, onConnectStart: g, onConnectEnd: p, onClickConnectStart: m, onClickConnectEnd: v, nodesDraggable:
|
5262
|
+
R.createElement(A1, { onInit: l, onMove: c, onMoveStart: d, onMoveEnd: f, onNodeClick: s, onEdgeClick: u, onNodeMouseEnter: b, onNodeMouseMove: w, onNodeMouseLeave: _, onNodeContextMenu: C, onNodeDoubleClick: E, nodeTypes: o, edgeTypes: a, connectionLineType: L, connectionLineStyle: $, connectionLineComponent: B, connectionLineContainerStyle: G, selectionKeyCode: X, selectionOnDrag: J, selectionMode: z, deleteKeyCode: H, multiSelectionKeyCode: W, panActivationKeyCode: V, zoomActivationKeyCode: j, onlyRenderVisibleElements: de, selectNodesOnDrag: me, defaultViewport: Me, translateExtent: Ve, minZoom: ge, maxZoom: Ae, preventScrolling: nt, zoomOnScroll: rt, zoomOnPinch: pt, zoomOnDoubleClick: Ie, panOnScroll: we, panOnScrollSpeed: qe, panOnScrollMode: Ce, panOnDrag: Ht, onPaneClick: Qe, onPaneMouseEnter: It, onPaneMouseMove: zr, onPaneMouseLeave: Hr, onPaneScroll: an, onPaneContextMenu: Vr, onSelectionContextMenu: x, onSelectionStart: k, onSelectionEnd: D, onEdgeContextMenu: At, onEdgeDoubleClick: pm, onEdgeMouseEnter: gm, onEdgeMouseMove: mm, onEdgeMouseLeave: vm, onReconnect: wm ?? ym, onReconnectStart: Em ?? _m, onReconnectEnd: xm ?? bm, reconnectRadius: Sm ?? Cm, defaultMarkerColor: Le, noDragClassName: Im, noWheelClassName: Am, noPanClassName: qc, elevateEdgesOnSelect: Dm, rfId: Gr, disableKeyboardA11y: Oc, nodeOrigin: K, nodeExtent: je }),
|
5263
|
+
R.createElement(Nw, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: h, onConnectStart: g, onConnectEnd: p, onClickConnectStart: m, onClickConnectEnd: v, nodesDraggable: Z, nodesConnectable: be, nodesFocusable: Y, edgesFocusable: he, edgesUpdatable: He, elementsSelectable: Ze, elevateNodesOnSelect: Pm, minZoom: ge, maxZoom: Ae, nodeExtent: je, onNodesChange: Nm, onEdgesChange: Mm, snapToGrid: ie, snapGrid: oe, connectionMode: S, translateExtent: Ve, connectOnClick: km, defaultEdgeOptions: Om, fitView: Rm, fitViewOptions: Tm, onNodesDelete: q, onEdgesDelete: P, onNodeDragStart: M, onNodeDrag: T, onNodeDragStop: I, onSelectionDrag: y, onSelectionDragStart: O, onSelectionDragStop: A, noPanClassName: qc, nodeOrigin: K, rfId: Gr, autoPanOnConnect: $m, autoPanOnNodeDrag: Fm, onError: Hm, connectionRadius: Bm, isValidConnection: zm, nodeDragThreshold: Gm }),
|
5264
5264
|
R.createElement(Sw, { onSelectionChange: F }),
|
5265
5265
|
Lc,
|
5266
5266
|
R.createElement(Qb, { proOptions: qm, position: Lm }),
|
@@ -5312,7 +5312,7 @@ const G1 = 200, U1 = 150, K1 = (e) => {
|
|
5312
5312
|
boundingRect: t.length > 0 ? tw(Lr(t, e.nodeOrigin), n) : n,
|
5313
5313
|
rfId: e.rfId
|
5314
5314
|
};
|
5315
|
-
},
|
5315
|
+
}, Y1 = "react-flow__minimap-desc";
|
5316
5316
|
function tg({
|
5317
5317
|
style: e,
|
5318
5318
|
className: t,
|
@@ -5337,39 +5337,39 @@ function tg({
|
|
5337
5337
|
zoomStep: b = 10,
|
5338
5338
|
offsetScale: w = 5
|
5339
5339
|
}) {
|
5340
|
-
const _ = _e(), C = ee(null), { boundingRect: E, viewBB: M, rfId: T } = le(K1, ye), I = e?.width ?? G1, q = e?.height ?? U1, P = E.width / I, F = E.height / q, O = Math.max(P, F), y = O * I, A = O * q, x = w * O, k = E.x - (y - E.width) / 2 - x, D = E.y - (A - E.height) / 2 - x, S = y + x * 2, L = A + x * 2, $ = `${
|
5340
|
+
const _ = _e(), C = ee(null), { boundingRect: E, viewBB: M, rfId: T } = le(K1, ye), I = e?.width ?? G1, q = e?.height ?? U1, P = E.width / I, F = E.height / q, O = Math.max(P, F), y = O * I, A = O * q, x = w * O, k = E.x - (y - E.width) / 2 - x, D = E.y - (A - E.height) / 2 - x, S = y + x * 2, L = A + x * 2, $ = `${Y1}-${T}`, B = ee(0);
|
5341
5341
|
B.current = O, ce(() => {
|
5342
5342
|
if (C.current) {
|
5343
|
-
const
|
5343
|
+
const X = De(C.current), J = (W) => {
|
5344
5344
|
const { transform: j, d3Selection: ie, d3Zoom: oe } = _.getState();
|
5345
|
-
if (
|
5345
|
+
if (W.sourceEvent.type !== "wheel" || !ie || !oe)
|
5346
5346
|
return;
|
5347
|
-
const de = -
|
5347
|
+
const de = -W.sourceEvent.deltaY * (W.sourceEvent.deltaMode === 1 ? 0.05 : W.sourceEvent.deltaMode ? 1 : 2e-3) * b, me = j[2] * Math.pow(2, de);
|
5348
5348
|
oe.scaleTo(ie, me);
|
5349
|
-
}, z = (
|
5350
|
-
const { transform: j, d3Selection: ie, d3Zoom: oe, translateExtent: de, width: me, height:
|
5351
|
-
if (
|
5349
|
+
}, z = (W) => {
|
5350
|
+
const { transform: j, d3Selection: ie, d3Zoom: oe, translateExtent: de, width: me, height: Z } = _.getState();
|
5351
|
+
if (W.sourceEvent.type !== "mousemove" || !ie || !oe)
|
5352
5352
|
return;
|
5353
|
-
const be = B.current * Math.max(1, j[2]) * (v ? -1 : 1),
|
5354
|
-
x: j[0] -
|
5355
|
-
y: j[1] -
|
5353
|
+
const be = B.current * Math.max(1, j[2]) * (v ? -1 : 1), Y = {
|
5354
|
+
x: j[0] - W.sourceEvent.movementX * be,
|
5355
|
+
y: j[1] - W.sourceEvent.movementY * be
|
5356
5356
|
}, K = [
|
5357
5357
|
[0, 0],
|
5358
|
-
[me,
|
5359
|
-
], he = ut.translate(
|
5358
|
+
[me, Z]
|
5359
|
+
], he = ut.translate(Y.x, Y.y).scale(j[2]), He = oe.constrain()(he, K, de);
|
5360
5360
|
oe.transform(ie, He);
|
5361
5361
|
}, V = ap().on("zoom", g ? z : null).on("zoom.wheel", p ? J : null);
|
5362
|
-
return
|
5363
|
-
|
5362
|
+
return X.call(V), () => {
|
5363
|
+
X.on("zoom", null);
|
5364
5364
|
};
|
5365
5365
|
}
|
5366
5366
|
}, [g, p, v, b]);
|
5367
|
-
const G = f ? (
|
5368
|
-
const J = Ge(
|
5369
|
-
f(
|
5370
|
-
} : void 0, H = h ? (
|
5367
|
+
const G = f ? (X) => {
|
5368
|
+
const J = Ge(X);
|
5369
|
+
f(X, { x: J[0], y: J[1] });
|
5370
|
+
} : void 0, H = h ? (X, J) => {
|
5371
5371
|
const z = _.getState().nodeInternals.get(J);
|
5372
|
-
h(
|
5372
|
+
h(X, z);
|
5373
5373
|
} : void 0;
|
5374
5374
|
return R.createElement(
|
5375
5375
|
oc,
|
@@ -5385,15 +5385,15 @@ function tg({
|
|
5385
5385
|
);
|
5386
5386
|
}
|
5387
5387
|
tg.displayName = "MiniMap";
|
5388
|
-
var
|
5389
|
-
function
|
5388
|
+
var W1 = ue(tg);
|
5389
|
+
function X1() {
|
5390
5390
|
return R.createElement(
|
5391
5391
|
"svg",
|
5392
5392
|
{ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" },
|
5393
5393
|
R.createElement("path", { d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z" })
|
5394
5394
|
);
|
5395
5395
|
}
|
5396
|
-
function
|
5396
|
+
function Z1() {
|
5397
5397
|
return R.createElement(
|
5398
5398
|
"svg",
|
5399
5399
|
{ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 5" },
|
@@ -5455,12 +5455,12 @@ const eE = (e) => ({
|
|
5455
5455
|
R.createElement(
|
5456
5456
|
pn,
|
5457
5457
|
{ onClick: C, className: "react-flow__controls-zoomin", title: "zoom in", "aria-label": "zoom in", disabled: v },
|
5458
|
-
R.createElement(
|
5458
|
+
R.createElement(X1, null)
|
5459
5459
|
),
|
5460
5460
|
R.createElement(
|
5461
5461
|
pn,
|
5462
5462
|
{ onClick: E, className: "react-flow__controls-zoomout", title: "zoom out", "aria-label": "zoom out", disabled: m },
|
5463
|
-
R.createElement(
|
5463
|
+
R.createElement(Z1, null)
|
5464
5464
|
)
|
5465
5465
|
),
|
5466
5466
|
n && R.createElement(
|
@@ -5636,10 +5636,10 @@ function fE() {
|
|
5636
5636
|
}
|
5637
5637
|
return mi = n, mi;
|
5638
5638
|
}
|
5639
|
-
var vi,
|
5639
|
+
var vi, Yu;
|
5640
5640
|
function bc() {
|
5641
|
-
if (
|
5642
|
-
|
5641
|
+
if (Yu) return vi;
|
5642
|
+
Yu = 1;
|
5643
5643
|
function e(t, n) {
|
5644
5644
|
for (var r = -1, i = n.length, o = t.length; ++r < i; )
|
5645
5645
|
t[o + r] = n[r];
|
@@ -5647,10 +5647,10 @@ function bc() {
|
|
5647
5647
|
}
|
5648
5648
|
return vi = e, vi;
|
5649
5649
|
}
|
5650
|
-
var yi,
|
5650
|
+
var yi, Wu;
|
5651
5651
|
function ag() {
|
5652
|
-
if (
|
5653
|
-
|
5652
|
+
if (Wu) return yi;
|
5653
|
+
Wu = 1;
|
5654
5654
|
var e = bc(), t = uh, n = _c(), r = og(), i = Object.getOwnPropertySymbols, o = i ? function(a) {
|
5655
5655
|
for (var s = []; a; )
|
5656
5656
|
e(s, n(a)), a = t(a);
|
@@ -5658,20 +5658,20 @@ function ag() {
|
|
5658
5658
|
} : r;
|
5659
5659
|
return yi = o, yi;
|
5660
5660
|
}
|
5661
|
-
var _i,
|
5661
|
+
var _i, Xu;
|
5662
5662
|
function hE() {
|
5663
|
-
if (
|
5664
|
-
|
5663
|
+
if (Xu) return _i;
|
5664
|
+
Xu = 1;
|
5665
5665
|
var e = wr, t = ag();
|
5666
5666
|
function n(r, i) {
|
5667
5667
|
return e(r, t(r), i);
|
5668
5668
|
}
|
5669
5669
|
return _i = n, _i;
|
5670
5670
|
}
|
5671
|
-
var bi,
|
5671
|
+
var bi, Zu;
|
5672
5672
|
function sg() {
|
5673
|
-
if (
|
5674
|
-
|
5673
|
+
if (Zu) return bi;
|
5674
|
+
Zu = 1;
|
5675
5675
|
var e = bc(), t = xe;
|
5676
5676
|
function n(r, i, o) {
|
5677
5677
|
var a = i(r);
|
@@ -5871,43 +5871,43 @@ var Di, hl;
|
|
5871
5871
|
function lg() {
|
5872
5872
|
if (hl) return Di;
|
5873
5873
|
hl = 1;
|
5874
|
-
var e = Gs, t = vc(), n = Us(), r = lE(), i = dE(), o = uv, a = lv, s = fE(), u = hE(), l = cg(), c = pE(), d = rn(), f = yE(), h = EE(), g = dv, p = xe, m = Sr, v = SE(), b = Ln, w = NE(), _ = Mt(), C = Rn, E = 1, M = 2, T = 4, I = "[object Arguments]", q = "[object Array]", P = "[object Boolean]", F = "[object Date]", O = "[object Error]", y = "[object Function]", A = "[object GeneratorFunction]", x = "[object Map]", k = "[object Number]", D = "[object Object]", S = "[object RegExp]", L = "[object Set]", $ = "[object String]", B = "[object Symbol]", G = "[object WeakMap]", H = "[object ArrayBuffer]",
|
5875
|
-
|
5876
|
-
function be(
|
5874
|
+
var e = Gs, t = vc(), n = Us(), r = lE(), i = dE(), o = uv, a = lv, s = fE(), u = hE(), l = cg(), c = pE(), d = rn(), f = yE(), h = EE(), g = dv, p = xe, m = Sr, v = SE(), b = Ln, w = NE(), _ = Mt(), C = Rn, E = 1, M = 2, T = 4, I = "[object Arguments]", q = "[object Array]", P = "[object Boolean]", F = "[object Date]", O = "[object Error]", y = "[object Function]", A = "[object GeneratorFunction]", x = "[object Map]", k = "[object Number]", D = "[object Object]", S = "[object RegExp]", L = "[object Set]", $ = "[object String]", B = "[object Symbol]", G = "[object WeakMap]", H = "[object ArrayBuffer]", X = "[object DataView]", J = "[object Float32Array]", z = "[object Float64Array]", V = "[object Int8Array]", W = "[object Int16Array]", j = "[object Int32Array]", ie = "[object Uint8Array]", oe = "[object Uint8ClampedArray]", de = "[object Uint16Array]", me = "[object Uint32Array]", Z = {};
|
5875
|
+
Z[I] = Z[q] = Z[H] = Z[X] = Z[P] = Z[F] = Z[J] = Z[z] = Z[V] = Z[W] = Z[j] = Z[x] = Z[k] = Z[D] = Z[S] = Z[L] = Z[$] = Z[B] = Z[ie] = Z[oe] = Z[de] = Z[me] = !0, Z[O] = Z[y] = Z[G] = !1;
|
5876
|
+
function be(Y, K, he, He, Ze, Me) {
|
5877
5877
|
var ge, Ae = K & E, Ve = K & M, nt = K & T;
|
5878
|
-
if (he && (ge =
|
5878
|
+
if (he && (ge = Ze ? he(Y, He, Ze, Me) : he(Y)), ge !== void 0)
|
5879
5879
|
return ge;
|
5880
|
-
if (!b(
|
5881
|
-
return
|
5882
|
-
var je = p(
|
5880
|
+
if (!b(Y))
|
5881
|
+
return Y;
|
5882
|
+
var je = p(Y);
|
5883
5883
|
if (je) {
|
5884
|
-
if (ge = f(
|
5885
|
-
return a(
|
5884
|
+
if (ge = f(Y), !Ae)
|
5885
|
+
return a(Y, ge);
|
5886
5886
|
} else {
|
5887
|
-
var Le = d(
|
5888
|
-
if (m(
|
5889
|
-
return o(
|
5890
|
-
if (Le == D || Le == I || rt && !
|
5891
|
-
if (ge = Ve || rt ? {} : g(
|
5892
|
-
return Ve ? u(
|
5887
|
+
var Le = d(Y), rt = Le == y || Le == A;
|
5888
|
+
if (m(Y))
|
5889
|
+
return o(Y, Ae);
|
5890
|
+
if (Le == D || Le == I || rt && !Ze) {
|
5891
|
+
if (ge = Ve || rt ? {} : g(Y), !Ae)
|
5892
|
+
return Ve ? u(Y, i(ge, Y)) : s(Y, r(ge, Y));
|
5893
5893
|
} else {
|
5894
|
-
if (!
|
5895
|
-
return
|
5896
|
-
ge = h(
|
5894
|
+
if (!Z[Le])
|
5895
|
+
return Ze ? Y : {};
|
5896
|
+
ge = h(Y, Le, Ae);
|
5897
5897
|
}
|
5898
5898
|
}
|
5899
5899
|
Me || (Me = new e());
|
5900
|
-
var pt = Me.get(
|
5900
|
+
var pt = Me.get(Y);
|
5901
5901
|
if (pt)
|
5902
5902
|
return pt;
|
5903
|
-
Me.set(
|
5904
|
-
ge.add(be(Ce, K, he, Ce,
|
5905
|
-
}) : v(
|
5906
|
-
ge.set(Ie, be(Ce, K, he, Ie,
|
5903
|
+
Me.set(Y, ge), w(Y) ? Y.forEach(function(Ce) {
|
5904
|
+
ge.add(be(Ce, K, he, Ce, Y, Me));
|
5905
|
+
}) : v(Y) && Y.forEach(function(Ce, Ie) {
|
5906
|
+
ge.set(Ie, be(Ce, K, he, Ie, Y, Me));
|
5907
5907
|
});
|
5908
|
-
var we = nt ? Ve ? c : l : Ve ? C : _, qe = je ? void 0 : we(
|
5909
|
-
return t(qe ||
|
5910
|
-
qe && (Ie = Ce, Ce =
|
5908
|
+
var we = nt ? Ve ? c : l : Ve ? C : _, qe = je ? void 0 : we(Y);
|
5909
|
+
return t(qe || Y, function(Ce, Ie) {
|
5910
|
+
qe && (Ie = Ce, Ce = Y[Ie]), n(ge, Ie, be(Ce, K, he, Ie, Y, Me));
|
5911
5911
|
}), ge;
|
5912
5912
|
}
|
5913
5913
|
return Di = be, Di;
|
@@ -6005,18 +6005,18 @@ function RE() {
|
|
6005
6005
|
}
|
6006
6006
|
return Ki = t, Ki;
|
6007
6007
|
}
|
6008
|
-
var
|
6008
|
+
var Yi, xl;
|
6009
6009
|
function TE() {
|
6010
|
-
if (xl) return
|
6010
|
+
if (xl) return Yi;
|
6011
6011
|
xl = 1;
|
6012
6012
|
function e(t) {
|
6013
6013
|
return this.__data__.has(t);
|
6014
6014
|
}
|
6015
|
-
return
|
6015
|
+
return Yi = e, Yi;
|
6016
6016
|
}
|
6017
|
-
var
|
6017
|
+
var Wi, Sl;
|
6018
6018
|
function pg() {
|
6019
|
-
if (Sl) return
|
6019
|
+
if (Sl) return Wi;
|
6020
6020
|
Sl = 1;
|
6021
6021
|
var e = hh, t = RE(), n = TE();
|
6022
6022
|
function r(i) {
|
@@ -6024,11 +6024,11 @@ function pg() {
|
|
6024
6024
|
for (this.__data__ = new e(); ++o < a; )
|
6025
6025
|
this.add(i[o]);
|
6026
6026
|
}
|
6027
|
-
return r.prototype.add = r.prototype.push = t, r.prototype.has = n,
|
6027
|
+
return r.prototype.add = r.prototype.push = t, r.prototype.has = n, Wi = r, Wi;
|
6028
6028
|
}
|
6029
|
-
var
|
6029
|
+
var Xi, Cl;
|
6030
6030
|
function kE() {
|
6031
|
-
if (Cl) return
|
6031
|
+
if (Cl) return Xi;
|
6032
6032
|
Cl = 1;
|
6033
6033
|
function e(t, n) {
|
6034
6034
|
for (var r = -1, i = t == null ? 0 : t.length; ++r < i; )
|
@@ -6036,16 +6036,16 @@ function kE() {
|
|
6036
6036
|
return !0;
|
6037
6037
|
return !1;
|
6038
6038
|
}
|
6039
|
-
return
|
6039
|
+
return Xi = e, Xi;
|
6040
6040
|
}
|
6041
|
-
var
|
6041
|
+
var Zi, Nl;
|
6042
6042
|
function gg() {
|
6043
|
-
if (Nl) return
|
6043
|
+
if (Nl) return Zi;
|
6044
6044
|
Nl = 1;
|
6045
6045
|
function e(t, n) {
|
6046
6046
|
return t.has(n);
|
6047
6047
|
}
|
6048
|
-
return
|
6048
|
+
return Zi = e, Zi;
|
6049
6049
|
}
|
6050
6050
|
var ji, Ml;
|
6051
6051
|
function mg() {
|
@@ -6413,20 +6413,20 @@ function bg() {
|
|
6413
6413
|
}
|
6414
6414
|
return vo = t, vo;
|
6415
6415
|
}
|
6416
|
-
var yo,
|
6416
|
+
var yo, Yl;
|
6417
6417
|
function Pr() {
|
6418
|
-
if (
|
6419
|
-
|
6418
|
+
if (Yl) return yo;
|
6419
|
+
Yl = 1;
|
6420
6420
|
var e = xe, t = xc(), n = HE(), r = bg();
|
6421
6421
|
function i(o, a) {
|
6422
6422
|
return e(o) ? o : t(o, a) ? [o] : n(r(o));
|
6423
6423
|
}
|
6424
6424
|
return yo = i, yo;
|
6425
6425
|
}
|
6426
|
-
var _o,
|
6426
|
+
var _o, Wl;
|
6427
6427
|
function $n() {
|
6428
|
-
if (
|
6429
|
-
|
6428
|
+
if (Wl) return _o;
|
6429
|
+
Wl = 1;
|
6430
6430
|
var e = on(), t = 1 / 0;
|
6431
6431
|
function n(r) {
|
6432
6432
|
if (typeof r == "string" || e(r))
|
@@ -6436,10 +6436,10 @@ function $n() {
|
|
6436
6436
|
}
|
6437
6437
|
return _o = n, _o;
|
6438
6438
|
}
|
6439
|
-
var bo,
|
6439
|
+
var bo, Xl;
|
6440
6440
|
function Dr() {
|
6441
|
-
if (
|
6442
|
-
|
6441
|
+
if (Xl) return bo;
|
6442
|
+
Xl = 1;
|
6443
6443
|
var e = Pr(), t = $n();
|
6444
6444
|
function n(r, i) {
|
6445
6445
|
i = e(i, r);
|
@@ -6449,10 +6449,10 @@ function Dr() {
|
|
6449
6449
|
}
|
6450
6450
|
return bo = n, bo;
|
6451
6451
|
}
|
6452
|
-
var wo,
|
6452
|
+
var wo, Zl;
|
6453
6453
|
function GE() {
|
6454
|
-
if (
|
6455
|
-
|
6454
|
+
if (Zl) return wo;
|
6455
|
+
Zl = 1;
|
6456
6456
|
var e = Dr();
|
6457
6457
|
function t(n, r, i) {
|
6458
6458
|
var o = n == null ? void 0 : e(n, r);
|
@@ -6473,7 +6473,7 @@ var xo, Ql;
|
|
6473
6473
|
function wg() {
|
6474
6474
|
if (Ql) return xo;
|
6475
6475
|
Ql = 1;
|
6476
|
-
var e = Pr(), t =
|
6476
|
+
var e = Pr(), t = Ys, n = xe, r = gh, i = hv, o = $n();
|
6477
6477
|
function a(s, u, l) {
|
6478
6478
|
u = e(u, s);
|
6479
6479
|
for (var c = -1, d = u.length, f = !1; ++c < d; ) {
|
@@ -6521,7 +6521,7 @@ function xg() {
|
|
6521
6521
|
return No = e, No;
|
6522
6522
|
}
|
6523
6523
|
var Mo, nd;
|
6524
|
-
function
|
6524
|
+
function YE() {
|
6525
6525
|
if (nd) return Mo;
|
6526
6526
|
nd = 1;
|
6527
6527
|
var e = Dr();
|
@@ -6533,10 +6533,10 @@ function WE() {
|
|
6533
6533
|
return Mo = t, Mo;
|
6534
6534
|
}
|
6535
6535
|
var Io, rd;
|
6536
|
-
function
|
6536
|
+
function WE() {
|
6537
6537
|
if (rd) return Io;
|
6538
6538
|
rd = 1;
|
6539
|
-
var e = xg(), t =
|
6539
|
+
var e = xg(), t = YE(), n = xc(), r = $n();
|
6540
6540
|
function i(o) {
|
6541
6541
|
return n(o) ? e(r(o)) : t(o);
|
6542
6542
|
}
|
@@ -6546,7 +6546,7 @@ var Ao, id;
|
|
6546
6546
|
function ht() {
|
6547
6547
|
if (id) return Ao;
|
6548
6548
|
id = 1;
|
6549
|
-
var e = FE(), t = KE(), n = qn, r = xe, i =
|
6549
|
+
var e = FE(), t = KE(), n = qn, r = xe, i = WE();
|
6550
6550
|
function o(a) {
|
6551
6551
|
return typeof a == "function" ? a : a == null ? n : typeof a == "object" ? r(a) ? t(a[0], a[1]) : e(a) : i(a);
|
6552
6552
|
}
|
@@ -6564,7 +6564,7 @@ function Sg() {
|
|
6564
6564
|
return Ro = i, Ro;
|
6565
6565
|
}
|
6566
6566
|
var To, ad;
|
6567
|
-
function
|
6567
|
+
function XE() {
|
6568
6568
|
if (ad) return To;
|
6569
6569
|
ad = 1;
|
6570
6570
|
var e = Object.prototype, t = e.hasOwnProperty;
|
@@ -6577,17 +6577,17 @@ var ko, sd;
|
|
6577
6577
|
function Cg() {
|
6578
6578
|
if (sd) return ko;
|
6579
6579
|
sd = 1;
|
6580
|
-
var e =
|
6580
|
+
var e = XE(), t = wg();
|
6581
6581
|
function n(r, i) {
|
6582
6582
|
return r != null && t(r, i, e);
|
6583
6583
|
}
|
6584
6584
|
return ko = n, ko;
|
6585
6585
|
}
|
6586
6586
|
var Lo, cd;
|
6587
|
-
function
|
6587
|
+
function ZE() {
|
6588
6588
|
if (cd) return Lo;
|
6589
6589
|
cd = 1;
|
6590
|
-
var e = yc(), t = rn(), n =
|
6590
|
+
var e = yc(), t = rn(), n = Ys, r = xe, i = nn, o = Sr, a = ch, s = Ks, u = "[object Map]", l = "[object Set]", c = Object.prototype, d = c.hasOwnProperty;
|
6591
6591
|
function f(h) {
|
6592
6592
|
if (h == null)
|
6593
6593
|
return !0;
|
@@ -6753,19 +6753,19 @@ function ox() {
|
|
6753
6753
|
}
|
6754
6754
|
return Ko = c, Ko;
|
6755
6755
|
}
|
6756
|
-
var
|
6756
|
+
var Yo, Ed;
|
6757
6757
|
function ax() {
|
6758
|
-
if (Ed) return
|
6758
|
+
if (Ed) return Yo;
|
6759
6759
|
Ed = 1;
|
6760
|
-
var e = xr, t =
|
6760
|
+
var e = xr, t = Ys, n = xe, r = e ? e.isConcatSpreadable : void 0;
|
6761
6761
|
function i(o) {
|
6762
6762
|
return n(o) || t(o) || !!(r && o && o[r]);
|
6763
6763
|
}
|
6764
|
-
return
|
6764
|
+
return Yo = i, Yo;
|
6765
6765
|
}
|
6766
|
-
var
|
6766
|
+
var Wo, xd;
|
6767
6767
|
function Sc() {
|
6768
|
-
if (xd) return
|
6768
|
+
if (xd) return Wo;
|
6769
6769
|
xd = 1;
|
6770
6770
|
var e = bc(), t = ax();
|
6771
6771
|
function n(r, i, o, a, s) {
|
@@ -6776,11 +6776,11 @@ function Sc() {
|
|
6776
6776
|
}
|
6777
6777
|
return s;
|
6778
6778
|
}
|
6779
|
-
return
|
6779
|
+
return Wo = n, Wo;
|
6780
6780
|
}
|
6781
|
-
var
|
6781
|
+
var Xo, Sd;
|
6782
6782
|
function Rg() {
|
6783
|
-
if (Sd) return
|
6783
|
+
if (Sd) return Xo;
|
6784
6784
|
Sd = 1;
|
6785
6785
|
function e(t, n, r, i) {
|
6786
6786
|
for (var o = t.length, a = r + (i ? 1 : -1); i ? a-- : ++a < o; )
|
@@ -6788,16 +6788,16 @@ function Rg() {
|
|
6788
6788
|
return a;
|
6789
6789
|
return -1;
|
6790
6790
|
}
|
6791
|
-
return
|
6791
|
+
return Xo = e, Xo;
|
6792
6792
|
}
|
6793
|
-
var
|
6793
|
+
var Zo, Cd;
|
6794
6794
|
function sx() {
|
6795
|
-
if (Cd) return
|
6795
|
+
if (Cd) return Zo;
|
6796
6796
|
Cd = 1;
|
6797
6797
|
function e(t) {
|
6798
6798
|
return t !== t;
|
6799
6799
|
}
|
6800
|
-
return
|
6800
|
+
return Zo = e, Zo;
|
6801
6801
|
}
|
6802
6802
|
var jo, Nd;
|
6803
6803
|
function cx() {
|
@@ -6895,7 +6895,7 @@ var ia, Ld;
|
|
6895
6895
|
function gx() {
|
6896
6896
|
if (Ld) return ia;
|
6897
6897
|
Ld = 1;
|
6898
|
-
var e = Sc(), t =
|
6898
|
+
var e = Sc(), t = Ws, n = px(), r = gv, i = t(function(o) {
|
6899
6899
|
return n(e(o, 1, r, !0));
|
6900
6900
|
});
|
6901
6901
|
return ia = i, ia;
|
@@ -6927,7 +6927,7 @@ function ze() {
|
|
6927
6927
|
if (Pd) return sa;
|
6928
6928
|
Pd = 1;
|
6929
6929
|
var e;
|
6930
|
-
if (typeof
|
6930
|
+
if (typeof Xs == "function")
|
6931
6931
|
try {
|
6932
6932
|
e = {
|
6933
6933
|
clone: ME(),
|
@@ -6936,7 +6936,7 @@ function ze() {
|
|
6936
6936
|
filter: Sg(),
|
6937
6937
|
has: Cg(),
|
6938
6938
|
isArray: xe,
|
6939
|
-
isEmpty:
|
6939
|
+
isEmpty: ZE(),
|
6940
6940
|
isFunction: mh,
|
6941
6941
|
isUndefined: Ng(),
|
6942
6942
|
keys: Mt(),
|
@@ -7369,10 +7369,10 @@ function Ex() {
|
|
7369
7369
|
}
|
7370
7370
|
return va;
|
7371
7371
|
}
|
7372
|
-
var ya,
|
7372
|
+
var ya, Yd;
|
7373
7373
|
function xx() {
|
7374
|
-
if (
|
7375
|
-
|
7374
|
+
if (Yd) return ya;
|
7375
|
+
Yd = 1;
|
7376
7376
|
var e = ze();
|
7377
7377
|
ya = n;
|
7378
7378
|
var t = e.constant(1);
|
@@ -7407,10 +7407,10 @@ function xx() {
|
|
7407
7407
|
}
|
7408
7408
|
return ya;
|
7409
7409
|
}
|
7410
|
-
var _a,
|
7410
|
+
var _a, Wd;
|
7411
7411
|
function Og() {
|
7412
|
-
if (
|
7413
|
-
|
7412
|
+
if (Wd) return _a;
|
7413
|
+
Wd = 1;
|
7414
7414
|
var e = ze();
|
7415
7415
|
_a = t, t.CycleException = n;
|
7416
7416
|
function t(r) {
|
@@ -7428,10 +7428,10 @@ function Og() {
|
|
7428
7428
|
}
|
7429
7429
|
return n.prototype = new Error(), _a;
|
7430
7430
|
}
|
7431
|
-
var ba,
|
7431
|
+
var ba, Xd;
|
7432
7432
|
function Sx() {
|
7433
|
-
if (
|
7434
|
-
|
7433
|
+
if (Xd) return ba;
|
7434
|
+
Xd = 1;
|
7435
7435
|
var e = Og();
|
7436
7436
|
ba = t;
|
7437
7437
|
function t(n) {
|
@@ -7446,10 +7446,10 @@ function Sx() {
|
|
7446
7446
|
}
|
7447
7447
|
return ba;
|
7448
7448
|
}
|
7449
|
-
var wa,
|
7449
|
+
var wa, Zd;
|
7450
7450
|
function Pg() {
|
7451
|
-
if (
|
7452
|
-
|
7451
|
+
if (Zd) return wa;
|
7452
|
+
Zd = 1;
|
7453
7453
|
var e = ze();
|
7454
7454
|
wa = t;
|
7455
7455
|
function t(r, i, o) {
|
@@ -7553,13 +7553,13 @@ function Ax() {
|
|
7553
7553
|
}, Na;
|
7554
7554
|
}
|
7555
7555
|
var pr;
|
7556
|
-
if (typeof
|
7556
|
+
if (typeof Xs == "function")
|
7557
7557
|
try {
|
7558
7558
|
pr = Ax();
|
7559
7559
|
} catch {
|
7560
7560
|
}
|
7561
7561
|
pr || (pr = window.graphlib);
|
7562
|
-
var
|
7562
|
+
var Xe = pr, Ma, nf;
|
7563
7563
|
function Rx() {
|
7564
7564
|
if (nf) return Ma;
|
7565
7565
|
nf = 1;
|
@@ -7573,7 +7573,7 @@ var Ia, rf;
|
|
7573
7573
|
function Tx() {
|
7574
7574
|
if (rf) return Ia;
|
7575
7575
|
rf = 1;
|
7576
|
-
var e =
|
7576
|
+
var e = Ws, t = ph, n = Zs, r = Rn, i = Object.prototype, o = i.hasOwnProperty, a = e(function(s, u) {
|
7577
7577
|
s = Object(s);
|
7578
7578
|
var l = -1, c = u.length, d = c > 2 ? u[2] : void 0;
|
7579
7579
|
for (d && n(u[0], u[1], d) && (c = 1); ++l < c; )
|
@@ -7803,28 +7803,28 @@ function Ux() {
|
|
7803
7803
|
}
|
7804
7804
|
return Ka = r, Ka;
|
7805
7805
|
}
|
7806
|
-
var
|
7806
|
+
var Ya, xf;
|
7807
7807
|
function Kx() {
|
7808
|
-
if (xf) return
|
7808
|
+
if (xf) return Ya;
|
7809
7809
|
xf = 1;
|
7810
7810
|
var e = Nc(), t = ht(), n = Fg();
|
7811
7811
|
function r(i, o) {
|
7812
7812
|
return i && i.length ? e(i, t(o, 2), n) : void 0;
|
7813
7813
|
}
|
7814
|
-
return
|
7814
|
+
return Ya = r, Ya;
|
7815
7815
|
}
|
7816
|
-
var
|
7817
|
-
function
|
7818
|
-
if (Sf) return
|
7816
|
+
var Wa, Sf;
|
7817
|
+
function Yx() {
|
7818
|
+
if (Sf) return Wa;
|
7819
7819
|
Sf = 1;
|
7820
7820
|
var e = Tn, t = function() {
|
7821
7821
|
return e.Date.now();
|
7822
7822
|
};
|
7823
|
-
return
|
7823
|
+
return Wa = t, Wa;
|
7824
7824
|
}
|
7825
|
-
var
|
7826
|
-
function
|
7827
|
-
if (Cf) return
|
7825
|
+
var Xa, Cf;
|
7826
|
+
function Wx() {
|
7827
|
+
if (Cf) return Xa;
|
7828
7828
|
Cf = 1;
|
7829
7829
|
var e = Us(), t = Pr(), n = gh, r = Ln, i = $n();
|
7830
7830
|
function o(a, s, u, l) {
|
@@ -7843,13 +7843,13 @@ function Yx() {
|
|
7843
7843
|
}
|
7844
7844
|
return a;
|
7845
7845
|
}
|
7846
|
-
return
|
7846
|
+
return Xa = o, Xa;
|
7847
7847
|
}
|
7848
|
-
var
|
7849
|
-
function
|
7850
|
-
if (Nf) return
|
7848
|
+
var Za, Nf;
|
7849
|
+
function Xx() {
|
7850
|
+
if (Nf) return Za;
|
7851
7851
|
Nf = 1;
|
7852
|
-
var e = Dr(), t =
|
7852
|
+
var e = Dr(), t = Wx(), n = Pr();
|
7853
7853
|
function r(i, o, a) {
|
7854
7854
|
for (var s = -1, u = o.length, l = {}; ++s < u; ) {
|
7855
7855
|
var c = o[s], d = e(i, c);
|
@@ -7857,13 +7857,13 @@ function Zx() {
|
|
7857
7857
|
}
|
7858
7858
|
return l;
|
7859
7859
|
}
|
7860
|
-
return
|
7860
|
+
return Za = r, Za;
|
7861
7861
|
}
|
7862
7862
|
var ja, Mf;
|
7863
|
-
function
|
7863
|
+
function Zx() {
|
7864
7864
|
if (Mf) return ja;
|
7865
7865
|
Mf = 1;
|
7866
|
-
var e =
|
7866
|
+
var e = Xx(), t = Eg();
|
7867
7867
|
function n(r, i) {
|
7868
7868
|
return e(r, i, function(o, a) {
|
7869
7869
|
return t(r, a);
|
@@ -7885,7 +7885,7 @@ var Ja, Af;
|
|
7885
7885
|
function Qx() {
|
7886
7886
|
if (Af) return Ja;
|
7887
7887
|
Af = 1;
|
7888
|
-
var e =
|
7888
|
+
var e = Zx(), t = jx(), n = t(function(r, i) {
|
7889
7889
|
return r == null ? {} : e(r, i);
|
7890
7890
|
});
|
7891
7891
|
return Ja = n, Ja;
|
@@ -7906,7 +7906,7 @@ var ts, Tf;
|
|
7906
7906
|
function eS() {
|
7907
7907
|
if (Tf) return ts;
|
7908
7908
|
Tf = 1;
|
7909
|
-
var e = Jx(), t =
|
7909
|
+
var e = Jx(), t = Zs, n = Dg();
|
7910
7910
|
function r(i) {
|
7911
7911
|
return function(o, a, s) {
|
7912
7912
|
return s && typeof s != "number" && t(o, a, s) && (a = s = void 0), o = n(o), a === void 0 ? (a = o, o = 0) : a = n(a), s = s === void 0 ? o < a ? 1 : -1 : n(s), e(o, a, s, i);
|
@@ -7998,7 +7998,7 @@ var ss, Df;
|
|
7998
7998
|
function aS() {
|
7999
7999
|
if (Df) return ss;
|
8000
8000
|
Df = 1;
|
8001
|
-
var e = Sc(), t = oS(), n =
|
8001
|
+
var e = Sc(), t = oS(), n = Ws, r = Zs, i = n(function(o, a) {
|
8002
8002
|
if (o == null)
|
8003
8003
|
return [];
|
8004
8004
|
var s = a.length;
|
@@ -8041,7 +8041,7 @@ function uS() {
|
|
8041
8041
|
return ls = n, ls;
|
8042
8042
|
}
|
8043
8043
|
var gr;
|
8044
|
-
if (typeof
|
8044
|
+
if (typeof Xs == "function")
|
8045
8045
|
try {
|
8046
8046
|
gr = {
|
8047
8047
|
cloneDeep: Rx(),
|
@@ -8062,7 +8062,7 @@ if (typeof Zs == "function")
|
|
8062
8062
|
merge: Gx(),
|
8063
8063
|
min: Ux(),
|
8064
8064
|
minBy: Kx(),
|
8065
|
-
now:
|
8065
|
+
now: Yx(),
|
8066
8066
|
pick: Qx(),
|
8067
8067
|
range: tS(),
|
8068
8068
|
reduce: Ag(),
|
@@ -8100,7 +8100,7 @@ function dS(e, t) {
|
|
8100
8100
|
if (e !== "_next" && e !== "_prev")
|
8101
8101
|
return t;
|
8102
8102
|
}
|
8103
|
-
var st = fe, fS =
|
8103
|
+
var st = fe, fS = Xe.Graph, hS = lS, pS = mS, gS = st.constant(1);
|
8104
8104
|
function mS(e, t) {
|
8105
8105
|
if (e.nodeCount() <= 1)
|
8106
8106
|
return [];
|
@@ -8188,7 +8188,7 @@ function xS(e) {
|
|
8188
8188
|
}
|
8189
8189
|
});
|
8190
8190
|
}
|
8191
|
-
var se = fe, zg =
|
8191
|
+
var se = fe, zg = Xe.Graph, ke = {
|
8192
8192
|
addDummyNode: Hg,
|
8193
8193
|
simplify: SS,
|
8194
8194
|
asNonCompoundGraph: CS,
|
@@ -8352,7 +8352,7 @@ function BS(e) {
|
|
8352
8352
|
i = e.successors(t)[0], e.removeNode(t), r.points.push({ x: n.x, y: n.y }), n.dummy === "edge-label" && (r.x = n.x, r.y = n.y, r.width = n.width, r.height = n.height), t = i, n = e.node(t);
|
8353
8353
|
});
|
8354
8354
|
}
|
8355
|
-
var
|
8355
|
+
var Xn = fe, Fr = {
|
8356
8356
|
longestPath: zS,
|
8357
8357
|
slack: HS
|
8358
8358
|
};
|
@@ -8360,27 +8360,27 @@ function zS(e) {
|
|
8360
8360
|
var t = {};
|
8361
8361
|
function n(r) {
|
8362
8362
|
var i = e.node(r);
|
8363
|
-
if (
|
8363
|
+
if (Xn.has(t, r))
|
8364
8364
|
return i.rank;
|
8365
8365
|
t[r] = !0;
|
8366
|
-
var o =
|
8366
|
+
var o = Xn.min(Xn.map(e.outEdges(r), function(a) {
|
8367
8367
|
return n(a.w) - e.edge(a).minlen;
|
8368
8368
|
}));
|
8369
8369
|
return (o === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
|
8370
8370
|
o === void 0 || // return value of _.map([]) for Lodash 4
|
8371
8371
|
o === null) && (o = 0), i.rank = o;
|
8372
8372
|
}
|
8373
|
-
|
8373
|
+
Xn.forEach(e.sources(), n);
|
8374
8374
|
}
|
8375
8375
|
function HS(e, t) {
|
8376
8376
|
return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
|
8377
8377
|
}
|
8378
|
-
var mr = fe, VS =
|
8378
|
+
var mr = fe, VS = Xe.Graph, vr = Fr.slack, Ug = GS;
|
8379
8379
|
function GS(e) {
|
8380
8380
|
var t = new VS({ directed: !1 }), n = e.nodes()[0], r = e.nodeCount();
|
8381
8381
|
t.setNode(n, {});
|
8382
8382
|
for (var i, o; US(t, e) < r; )
|
8383
|
-
i = KS(t, e), o = t.hasNode(i.v) ? vr(e, i) : -vr(e, i),
|
8383
|
+
i = KS(t, e), o = t.hasNode(i.v) ? vr(e, i) : -vr(e, i), YS(t, e, o);
|
8384
8384
|
return t;
|
8385
8385
|
}
|
8386
8386
|
function US(e, t) {
|
@@ -8398,24 +8398,24 @@ function KS(e, t) {
|
|
8398
8398
|
return vr(t, n);
|
8399
8399
|
});
|
8400
8400
|
}
|
8401
|
-
function
|
8401
|
+
function YS(e, t, n) {
|
8402
8402
|
mr.forEach(e.nodes(), function(r) {
|
8403
8403
|
t.node(r).rank += n;
|
8404
8404
|
});
|
8405
8405
|
}
|
8406
|
-
var ft = fe,
|
8406
|
+
var ft = fe, WS = Ug, XS = Fr.slack, ZS = Fr.longestPath, jS = Xe.alg.preorder, QS = Xe.alg.postorder, JS = ke.simplify, eC = zt;
|
8407
8407
|
zt.initLowLimValues = Ic;
|
8408
8408
|
zt.initCutValues = Mc;
|
8409
8409
|
zt.calcCutValue = Kg;
|
8410
|
-
zt.leaveEdge =
|
8411
|
-
zt.enterEdge =
|
8412
|
-
zt.exchangeEdges =
|
8410
|
+
zt.leaveEdge = Wg;
|
8411
|
+
zt.enterEdge = Xg;
|
8412
|
+
zt.exchangeEdges = Zg;
|
8413
8413
|
function zt(e) {
|
8414
|
-
e = JS(e),
|
8415
|
-
var t =
|
8414
|
+
e = JS(e), ZS(e);
|
8415
|
+
var t = WS(e);
|
8416
8416
|
Ic(t), Mc(t, e);
|
8417
|
-
for (var n, r; n =
|
8418
|
-
r =
|
8417
|
+
for (var n, r; n = Wg(t); )
|
8418
|
+
r = Xg(t, e, n), Zg(t, e, n, r);
|
8419
8419
|
}
|
8420
8420
|
function Mc(e, t) {
|
8421
8421
|
var n = QS(e, e.nodes());
|
@@ -8441,20 +8441,20 @@ function Kg(e, t, n) {
|
|
8441
8441
|
}), s;
|
8442
8442
|
}
|
8443
8443
|
function Ic(e, t) {
|
8444
|
-
arguments.length < 2 && (t = e.nodes()[0]),
|
8444
|
+
arguments.length < 2 && (t = e.nodes()[0]), Yg(e, {}, 1, t);
|
8445
8445
|
}
|
8446
|
-
function
|
8446
|
+
function Yg(e, t, n, r, i) {
|
8447
8447
|
var o = n, a = e.node(r);
|
8448
8448
|
return t[r] = !0, ft.forEach(e.neighbors(r), function(s) {
|
8449
|
-
ft.has(t, s) || (n =
|
8449
|
+
ft.has(t, s) || (n = Yg(e, t, n, s, r));
|
8450
8450
|
}), a.low = o, a.lim = n++, i ? a.parent = i : delete a.parent, n;
|
8451
8451
|
}
|
8452
|
-
function
|
8452
|
+
function Wg(e) {
|
8453
8453
|
return ft.find(e.edges(), function(t) {
|
8454
8454
|
return e.edge(t).cutvalue < 0;
|
8455
8455
|
});
|
8456
8456
|
}
|
8457
|
-
function
|
8457
|
+
function Xg(e, t, n) {
|
8458
8458
|
var r = n.v, i = n.w;
|
8459
8459
|
t.hasEdge(r, i) || (r = n.w, i = n.v);
|
8460
8460
|
var o = e.node(r), a = e.node(i), s = o, u = !1;
|
@@ -8463,10 +8463,10 @@ function Zg(e, t, n) {
|
|
8463
8463
|
return u === zf(e, e.node(c.v), s) && u !== zf(e, e.node(c.w), s);
|
8464
8464
|
});
|
8465
8465
|
return ft.minBy(l, function(c) {
|
8466
|
-
return
|
8466
|
+
return XS(t, c);
|
8467
8467
|
});
|
8468
8468
|
}
|
8469
|
-
function
|
8469
|
+
function Zg(e, t, n, r) {
|
8470
8470
|
var i = n.v, o = n.w;
|
8471
8471
|
e.removeEdge(i, o), e.setEdge(r.v, r.w, {}), Ic(e), Mc(e, t), nC(e, t);
|
8472
8472
|
}
|
@@ -8821,11 +8821,11 @@ function em(e, t, n, r) {
|
|
8821
8821
|
wt.forEach(l, function(g) {
|
8822
8822
|
if (e.children(g.v).length) {
|
8823
8823
|
var p = em(e, g.v, n, r);
|
8824
|
-
u[g.v] = p, wt.has(p, "barycenter") &&
|
8824
|
+
u[g.v] = p, wt.has(p, "barycenter") && WC(g, p);
|
8825
8825
|
}
|
8826
8826
|
});
|
8827
8827
|
var c = GC(l, n);
|
8828
|
-
|
8828
|
+
YC(c, u);
|
8829
8829
|
var d = UC(c, r);
|
8830
8830
|
if (a && (d.vs = wt.flatten([a, d.vs, s], !0), e.predecessors(a).length)) {
|
8831
8831
|
var f = e.node(e.predecessors(a)[0]), h = e.node(e.predecessors(s)[0]);
|
@@ -8833,19 +8833,19 @@ function em(e, t, n, r) {
|
|
8833
8833
|
}
|
8834
8834
|
return d;
|
8835
8835
|
}
|
8836
|
-
function
|
8836
|
+
function YC(e, t) {
|
8837
8837
|
wt.forEach(e, function(n) {
|
8838
8838
|
n.vs = wt.flatten(n.vs.map(function(r) {
|
8839
8839
|
return t[r] ? t[r].vs : r;
|
8840
8840
|
}), !0);
|
8841
8841
|
});
|
8842
8842
|
}
|
8843
|
-
function
|
8843
|
+
function WC(e, t) {
|
8844
8844
|
wt.isUndefined(e.barycenter) ? (e.barycenter = t.barycenter, e.weight = t.weight) : (e.barycenter = (e.barycenter * e.weight + t.barycenter * t.weight) / (e.weight + t.weight), e.weight += t.weight);
|
8845
8845
|
}
|
8846
|
-
var mn = fe,
|
8846
|
+
var mn = fe, XC = Xe.Graph, ZC = jC;
|
8847
8847
|
function jC(e, t, n) {
|
8848
|
-
var r = QC(e), i = new
|
8848
|
+
var r = QC(e), i = new XC({ compound: !0 }).setGraph({ root: r }).setDefaultNodeLabel(function(o) {
|
8849
8849
|
return e.node(o);
|
8850
8850
|
});
|
8851
8851
|
return mn.forEach(e.nodes(), function(o) {
|
@@ -8876,18 +8876,18 @@ function tN(e, t, n) {
|
|
8876
8876
|
}
|
8877
8877
|
});
|
8878
8878
|
}
|
8879
|
-
var St = fe, nN = IC, rN = RC, iN = KC, oN =
|
8879
|
+
var St = fe, nN = IC, rN = RC, iN = KC, oN = ZC, aN = eN, sN = Xe.Graph, Yf = ke, cN = uN;
|
8880
8880
|
function uN(e) {
|
8881
|
-
var t =
|
8882
|
-
|
8881
|
+
var t = Yf.maxRank(e), n = Wf(e, St.range(1, t + 1), "inEdges"), r = Wf(e, St.range(t - 1, -1, -1), "outEdges"), i = nN(e);
|
8882
|
+
Xf(e, i);
|
8883
8883
|
for (var o = Number.POSITIVE_INFINITY, a, s = 0, u = 0; u < 4; ++s, ++u) {
|
8884
|
-
lN(s % 2 ? n : r, s % 4 >= 2), i =
|
8884
|
+
lN(s % 2 ? n : r, s % 4 >= 2), i = Yf.buildLayerMatrix(e);
|
8885
8885
|
var l = rN(e, i);
|
8886
8886
|
l < o && (u = 0, a = St.cloneDeep(i), o = l);
|
8887
8887
|
}
|
8888
|
-
|
8888
|
+
Xf(e, a);
|
8889
8889
|
}
|
8890
|
-
function
|
8890
|
+
function Wf(e, t, n) {
|
8891
8891
|
return St.map(t, function(r) {
|
8892
8892
|
return oN(e, r, n);
|
8893
8893
|
});
|
@@ -8901,14 +8901,14 @@ function lN(e, t) {
|
|
8901
8901
|
}), aN(r, n, o.vs);
|
8902
8902
|
});
|
8903
8903
|
}
|
8904
|
-
function
|
8904
|
+
function Xf(e, t) {
|
8905
8905
|
St.forEach(t, function(n) {
|
8906
8906
|
St.forEach(n, function(r, i) {
|
8907
8907
|
e.node(r).order = i;
|
8908
8908
|
});
|
8909
8909
|
});
|
8910
8910
|
}
|
8911
|
-
var Q = fe, dN =
|
8911
|
+
var Q = fe, dN = Xe.Graph, fN = ke, hN = {
|
8912
8912
|
positionX: mN,
|
8913
8913
|
findType1Conflicts: tm,
|
8914
8914
|
findType2Conflicts: nm,
|
@@ -9137,7 +9137,7 @@ function EN(e) {
|
|
9137
9137
|
}), r += o + n;
|
9138
9138
|
});
|
9139
9139
|
}
|
9140
|
-
var te = fe,
|
9140
|
+
var te = fe, Zf = bS, jf = DS, xN = sC, SN = ke.normalizeRanks, CN = dC, NN = ke.removeEmptyRanks, Qf = gC, MN = wC, Jf = xC, IN = cN, AN = bN, Nt = ke, RN = Xe.Graph, TN = kN;
|
9141
9141
|
function kN(e, t) {
|
9142
9142
|
var n = t && t.debugTiming ? Nt.time : Nt.notime;
|
9143
9143
|
n("layout", function() {
|
@@ -9157,7 +9157,7 @@ function LN(e, t) {
|
|
9157
9157
|
}), t(" removeSelfEdges", function() {
|
9158
9158
|
JN(e);
|
9159
9159
|
}), t(" acyclic", function() {
|
9160
|
-
|
9160
|
+
Zf.run(e);
|
9161
9161
|
}), t(" nestingGraph.run", function() {
|
9162
9162
|
Qf.run(e);
|
9163
9163
|
}), t(" rank", function() {
|
@@ -9173,7 +9173,7 @@ function LN(e, t) {
|
|
9173
9173
|
}), t(" assignRankMinMax", function() {
|
9174
9174
|
KN(e);
|
9175
9175
|
}), t(" removeEdgeLabelProxies", function() {
|
9176
|
-
|
9176
|
+
YN(e);
|
9177
9177
|
}), t(" normalize.run", function() {
|
9178
9178
|
jf.run(e);
|
9179
9179
|
}), t(" parentDummyChains", function() {
|
@@ -9195,17 +9195,17 @@ function LN(e, t) {
|
|
9195
9195
|
}), t(" normalize.undo", function() {
|
9196
9196
|
jf.undo(e);
|
9197
9197
|
}), t(" fixupEdgeLabelCoords", function() {
|
9198
|
-
|
9198
|
+
ZN(e);
|
9199
9199
|
}), t(" undoCoordinateSystem", function() {
|
9200
9200
|
Jf.undo(e);
|
9201
9201
|
}), t(" translateGraph", function() {
|
9202
|
-
|
9202
|
+
WN(e);
|
9203
9203
|
}), t(" assignNodeIntersects", function() {
|
9204
|
-
|
9204
|
+
XN(e);
|
9205
9205
|
}), t(" reversePoints", function() {
|
9206
9206
|
jN(e);
|
9207
9207
|
}), t(" acyclic.undo", function() {
|
9208
|
-
|
9208
|
+
Zf.undo(e);
|
9209
9209
|
});
|
9210
9210
|
}
|
9211
9211
|
function qN(e, t) {
|
@@ -9268,13 +9268,13 @@ function KN(e) {
|
|
9268
9268
|
r.borderTop && (r.minRank = e.node(r.borderTop).rank, r.maxRank = e.node(r.borderBottom).rank, t = te.max(t, r.maxRank));
|
9269
9269
|
}), e.graph().maxRank = t;
|
9270
9270
|
}
|
9271
|
-
function
|
9271
|
+
function YN(e) {
|
9272
9272
|
te.forEach(e.nodes(), function(t) {
|
9273
9273
|
var n = e.node(t);
|
9274
9274
|
n.dummy === "edge-proxy" && (e.edge(n.e).labelRank = n.rank, e.removeNode(t));
|
9275
9275
|
});
|
9276
9276
|
}
|
9277
|
-
function
|
9277
|
+
function WN(e) {
|
9278
9278
|
var t = Number.POSITIVE_INFINITY, n = 0, r = Number.POSITIVE_INFINITY, i = 0, o = e.graph(), a = o.marginx || 0, s = o.marginy || 0;
|
9279
9279
|
function u(l) {
|
9280
9280
|
var c = l.x, d = l.y, f = l.width, h = l.height;
|
@@ -9295,13 +9295,13 @@ function YN(e) {
|
|
9295
9295
|
}), te.has(c, "x") && (c.x -= t), te.has(c, "y") && (c.y -= r);
|
9296
9296
|
}), o.width = n - t + a, o.height = i - r + s;
|
9297
9297
|
}
|
9298
|
-
function
|
9298
|
+
function XN(e) {
|
9299
9299
|
te.forEach(e.edges(), function(t) {
|
9300
9300
|
var n = e.edge(t), r = e.node(t.v), i = e.node(t.w), o, a;
|
9301
9301
|
n.points ? (o = n.points[0], a = n.points[n.points.length - 1]) : (n.points = [], o = i, a = r), n.points.unshift(Nt.intersectRect(r, o)), n.points.push(Nt.intersectRect(i, a));
|
9302
9302
|
});
|
9303
9303
|
}
|
9304
|
-
function
|
9304
|
+
function ZN(e) {
|
9305
9305
|
te.forEach(e.edges(), function(t) {
|
9306
9306
|
var n = e.edge(t);
|
9307
9307
|
if (te.has(n, "x"))
|
@@ -9382,24 +9382,24 @@ function ms(e) {
|
|
9382
9382
|
t[r.toLowerCase()] = n;
|
9383
9383
|
}), t;
|
9384
9384
|
}
|
9385
|
-
var
|
9385
|
+
var Zn = fe, n2 = ke, r2 = Xe.Graph, i2 = {
|
9386
9386
|
debugOrdering: o2
|
9387
9387
|
};
|
9388
9388
|
function o2(e) {
|
9389
9389
|
var t = n2.buildLayerMatrix(e), n = new r2({ compound: !0, multigraph: !0 }).setGraph({});
|
9390
|
-
return
|
9390
|
+
return Zn.forEach(e.nodes(), function(r) {
|
9391
9391
|
n.setNode(r, { label: r }), n.setParent(r, "layer" + e.node(r).rank);
|
9392
|
-
}),
|
9392
|
+
}), Zn.forEach(e.edges(), function(r) {
|
9393
9393
|
n.setEdge(r.v, r.w, {}, r.name);
|
9394
|
-
}),
|
9394
|
+
}), Zn.forEach(t, function(r, i) {
|
9395
9395
|
var o = "layer" + i;
|
9396
|
-
n.setNode(o, { rank: "same" }),
|
9396
|
+
n.setNode(o, { rank: "same" }), Zn.reduce(r, function(a, s) {
|
9397
9397
|
return n.setEdge(a, s, { style: "invis" }), s;
|
9398
9398
|
});
|
9399
9399
|
}), n;
|
9400
9400
|
}
|
9401
9401
|
var a2 = "0.8.5", Rc = {
|
9402
|
-
graphlib:
|
9402
|
+
graphlib: Xe,
|
9403
9403
|
layout: TN,
|
9404
9404
|
debug: i2,
|
9405
9405
|
util: {
|
@@ -9660,7 +9660,7 @@ const C2 = ({
|
|
9660
9660
|
},
|
9661
9661
|
nodesConnectable: !1,
|
9662
9662
|
children: [
|
9663
|
-
/* @__PURE__ */ N(
|
9663
|
+
/* @__PURE__ */ N(W1, {}),
|
9664
9664
|
/* @__PURE__ */ N(tE, {}),
|
9665
9665
|
/* @__PURE__ */ N(sE, {})
|
9666
9666
|
]
|
@@ -9681,9 +9681,9 @@ const C2 = ({
|
|
9681
9681
|
{
|
9682
9682
|
className: "keycloak__authentication__header",
|
9683
9683
|
dataListCells: [
|
9684
|
-
/* @__PURE__ */ N(
|
9685
|
-
/* @__PURE__ */ N(
|
9686
|
-
/* @__PURE__ */ N(
|
9684
|
+
/* @__PURE__ */ N(Wt, { id: "headerName", children: e("steps") }, "step"),
|
9685
|
+
/* @__PURE__ */ N(Wt, { children: e("requirement") }, "requirement"),
|
9686
|
+
/* @__PURE__ */ N(Wt, {}, "config")
|
9687
9687
|
]
|
9688
9688
|
}
|
9689
9689
|
)
|
@@ -10074,7 +10074,7 @@ const C2 = ({
|
|
10074
10074
|
Eh,
|
10075
10075
|
{
|
10076
10076
|
dataListCells: [
|
10077
|
-
/* @__PURE__ */ re(
|
10077
|
+
/* @__PURE__ */ re(Wt, { children: [
|
10078
10078
|
!t.authenticationFlow && /* @__PURE__ */ N(
|
10079
10079
|
T2,
|
10080
10080
|
{
|
@@ -10096,14 +10096,14 @@ const C2 = ({
|
|
10096
10096
|
] })
|
10097
10097
|
] })
|
10098
10098
|
] }, `${t.id}-name`),
|
10099
|
-
/* @__PURE__ */ N(
|
10099
|
+
/* @__PURE__ */ N(Wt, { children: /* @__PURE__ */ N(
|
10100
10100
|
R2,
|
10101
10101
|
{
|
10102
10102
|
flow: t,
|
10103
10103
|
onChange: r
|
10104
10104
|
}
|
10105
10105
|
) }, `${t.id}-requirement`),
|
10106
|
-
/* @__PURE__ */ re(
|
10106
|
+
/* @__PURE__ */ re(Wt, { children: [
|
10107
10107
|
/* @__PURE__ */ N(A2, { execution: t }),
|
10108
10108
|
t.authenticationFlow && !e && /* @__PURE__ */ re(Ne, { children: [
|
10109
10109
|
/* @__PURE__ */ N(
|
@@ -10236,16 +10236,16 @@ class kc {
|
|
10236
10236
|
}
|
10237
10237
|
const yr = (e) => e.displayName?.startsWith("Condition ");
|
10238
10238
|
function $2() {
|
10239
|
-
const { adminClient: e } = tn(), { t } = Be(), { realm: n } = Dv(), { addAlert: r, addError: i } = zs(), { id: o, usedBy: a, builtIn: s } =
|
10239
|
+
const { adminClient: e } = tn(), { t } = Be(), { realm: n } = Dv(), { addAlert: r, addError: i } = zs(), { id: o, usedBy: a, builtIn: s } = Wv(), u = Xv(), [l, c] = ae(0), d = () => c((/* @__PURE__ */ new Date()).getTime()), [f, h] = ae(!0), [g, p] = ae(), [m, v] = ae(), [b, w] = ae(""), [_, C] = ae(), [E, M] = ae(), [T, I] = ae(), [q, P, F] = vs(), [O, y] = ae(!1), [A, x] = vs();
|
10240
10240
|
An(
|
10241
10241
|
async () => {
|
10242
10242
|
const V = (await e.authenticationManagement.getFlows()).find((j) => j.id === o);
|
10243
10243
|
if (!V)
|
10244
10244
|
throw new Error(t("notFound"));
|
10245
|
-
const
|
10245
|
+
const W = await e.authenticationManagement.getExecutions({
|
10246
10246
|
flow: V.alias
|
10247
10247
|
});
|
10248
|
-
return { flow: V, executions:
|
10248
|
+
return { flow: V, executions: W };
|
10249
10249
|
},
|
10250
10250
|
({ flow: z, executions: V }) => {
|
10251
10251
|
p(z), v(new kc(V));
|
@@ -10254,14 +10254,14 @@ function $2() {
|
|
10254
10254
|
);
|
10255
10255
|
const k = async (z, V) => {
|
10256
10256
|
try {
|
10257
|
-
let
|
10257
|
+
let W = z.id;
|
10258
10258
|
if ("parent" in V) {
|
10259
10259
|
let ie = {};
|
10260
10260
|
"authenticationConfig" in z && (ie = await e.authenticationManagement.getConfig({
|
10261
10261
|
id: z.authenticationConfig
|
10262
10262
|
}));
|
10263
10263
|
try {
|
10264
|
-
await e.authenticationManagement.delExecution({ id:
|
10264
|
+
await e.authenticationManagement.delExecution({ id: W });
|
10265
10265
|
} catch {
|
10266
10266
|
}
|
10267
10267
|
if ("authenticationFlow" in z) {
|
@@ -10272,11 +10272,11 @@ function $2() {
|
|
10272
10272
|
provider: z.providerId,
|
10273
10273
|
type: "basic-flow"
|
10274
10274
|
});
|
10275
|
-
|
10276
|
-
(me,
|
10275
|
+
W = de.id, z.executionList?.forEach(
|
10276
|
+
(me, Z) => k(me, {
|
10277
10277
|
parent: { ...z, id: de.id },
|
10278
|
-
newIndex:
|
10279
|
-
oldIndex:
|
10278
|
+
newIndex: Z,
|
10279
|
+
oldIndex: Z
|
10280
10280
|
})
|
10281
10281
|
);
|
10282
10282
|
} else {
|
@@ -10292,22 +10292,22 @@ function $2() {
|
|
10292
10292
|
};
|
10293
10293
|
await e.authenticationManagement.createConfig(de);
|
10294
10294
|
}
|
10295
|
-
|
10295
|
+
W = oe.id;
|
10296
10296
|
}
|
10297
10297
|
}
|
10298
10298
|
const j = V.newIndex - V.oldIndex;
|
10299
10299
|
for (let ie = 0; ie < Math.abs(j); ie++)
|
10300
10300
|
j > 0 ? await e.authenticationManagement.lowerPriorityExecution({
|
10301
|
-
id:
|
10301
|
+
id: W
|
10302
10302
|
}) : await e.authenticationManagement.raisePriorityExecution({
|
10303
|
-
id:
|
10303
|
+
id: W
|
10304
10304
|
});
|
10305
10305
|
d(), r(t("updateFlowSuccess"), vt.success);
|
10306
|
-
} catch (
|
10307
|
-
i("updateFlowError",
|
10306
|
+
} catch (W) {
|
10307
|
+
i("updateFlowError", W);
|
10308
10308
|
}
|
10309
10309
|
}, D = async (z) => {
|
10310
|
-
const { executionList: V, isCollapsed:
|
10310
|
+
const { executionList: V, isCollapsed: W, ...j } = z;
|
10311
10311
|
try {
|
10312
10312
|
await e.authenticationManagement.updateExecution(
|
10313
10313
|
{ flow: g?.alias },
|
@@ -10322,15 +10322,15 @@ function $2() {
|
|
10322
10322
|
flow: z,
|
10323
10323
|
provider: V.id
|
10324
10324
|
}), d(), r(t("updateFlowSuccess"), vt.success);
|
10325
|
-
} catch (
|
10326
|
-
i("updateFlowError",
|
10325
|
+
} catch (W) {
|
10326
|
+
i("updateFlowError", W);
|
10327
10327
|
}
|
10328
|
-
}, L = async (z, { name: V, description:
|
10328
|
+
}, L = async (z, { name: V, description: W = "", type: j, provider: ie }) => {
|
10329
10329
|
try {
|
10330
10330
|
await e.authenticationManagement.addFlowToFlow({
|
10331
10331
|
flow: z,
|
10332
10332
|
alias: V,
|
10333
|
-
description:
|
10333
|
+
description: W,
|
10334
10334
|
provider: ie,
|
10335
10335
|
type: j
|
10336
10336
|
}), d(), r(t("updateFlowSuccess"), vt.success);
|
@@ -10373,7 +10373,7 @@ function $2() {
|
|
10373
10373
|
i("deleteFlowError", z);
|
10374
10374
|
}
|
10375
10375
|
}
|
10376
|
-
}),
|
10376
|
+
}), X = m?.expandableList.length !== 0, J = [
|
10377
10377
|
...a !== "DEFAULT" ? [
|
10378
10378
|
/* @__PURE__ */ N(
|
10379
10379
|
Tt,
|
@@ -10460,7 +10460,7 @@ function $2() {
|
|
10460
10460
|
}
|
10461
10461
|
),
|
10462
10462
|
/* @__PURE__ */ re(sh, { variant: "light", children: [
|
10463
|
-
m &&
|
10463
|
+
m && X && /* @__PURE__ */ re(Ne, { children: [
|
10464
10464
|
/* @__PURE__ */ N(Vv, { id: "toolbar", children: /* @__PURE__ */ re(Gv, { children: [
|
10465
10465
|
/* @__PURE__ */ N(Kr, { children: /* @__PURE__ */ re(Rh, { children: [
|
10466
10466
|
/* @__PURE__ */ N(
|
@@ -10517,18 +10517,18 @@ function $2() {
|
|
10517
10517
|
},
|
10518
10518
|
onDrop: (z, V) => {
|
10519
10519
|
if (V) {
|
10520
|
-
const
|
10520
|
+
const W = m.findExecution(z.index), j = m.order().map((de) => de.id);
|
10521
10521
|
w(
|
10522
|
-
t("onDragFinish", { list:
|
10522
|
+
t("onDragFinish", { list: W.displayName })
|
10523
10523
|
);
|
10524
10524
|
const [ie] = j.splice(z.index, 1);
|
10525
10525
|
j.splice(V.index, 0, ie);
|
10526
|
-
const oe = m.getChange(
|
10527
|
-
return k(
|
10526
|
+
const oe = m.getChange(W, j);
|
10527
|
+
return k(W, oe), !0;
|
10528
10528
|
} else
|
10529
10529
|
return w(t("onDragCancel")), !1;
|
10530
10530
|
},
|
10531
|
-
children: /* @__PURE__ */ N(Kv, { hasNoWrapper: !0, children: /* @__PURE__ */ re(
|
10531
|
+
children: /* @__PURE__ */ N(Kv, { hasNoWrapper: !0, children: /* @__PURE__ */ re(Yv, { "aria-label": t("flows"), children: [
|
10532
10532
|
/* @__PURE__ */ N(N2, {}),
|
10533
10533
|
/* @__PURE__ */ N(Ne, { children: m.expandableList.map((z) => /* @__PURE__ */ N(
|
10534
10534
|
fm,
|
@@ -10539,8 +10539,8 @@ function $2() {
|
|
10539
10539
|
V.isCollapsed = !V.isCollapsed, v(m.clone());
|
10540
10540
|
},
|
10541
10541
|
onRowChange: D,
|
10542
|
-
onAddExecution: (V,
|
10543
|
-
onAddFlow: (V,
|
10542
|
+
onAddExecution: (V, W) => S(V.displayName, W),
|
10543
|
+
onAddFlow: (V, W) => L(V.displayName, W),
|
10544
10544
|
onDelete: (V) => {
|
10545
10545
|
I(V), $();
|
10546
10546
|
}
|
@@ -10575,7 +10575,7 @@ function $2() {
|
|
10575
10575
|
/* @__PURE__ */ N("div", { className: "pf-v5-screen-reader", "aria-live": "assertive", children: b })
|
10576
10576
|
] }),
|
10577
10577
|
!f && m?.expandableList && /* @__PURE__ */ N(C2, { executionList: m }),
|
10578
|
-
!m?.expandableList || g && !
|
10578
|
+
!m?.expandableList || g && !X && /* @__PURE__ */ N(
|
10579
10579
|
ay,
|
10580
10580
|
{
|
10581
10581
|
flow: g,
|
@@ -10590,4 +10590,4 @@ export {
|
|
10590
10590
|
$2 as default,
|
10591
10591
|
yr as providerConditionFilter
|
10592
10592
|
};
|
10593
|
-
//# sourceMappingURL=FlowDetails-
|
10593
|
+
//# sourceMappingURL=FlowDetails-SHMxH_Rb.js.map
|