@ucap-llm/ai-ui 1.1.26 → 1.1.28
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/{_basePickBy-B1Q0SZ5l.mjs → _basePickBy-B-Y1ybBO.mjs} +35 -35
- package/ai-ui.es.js +11 -9
- package/ai-ui.umd.js +1051 -956
- package/{arc-gFKws9xl.mjs → arc-BP1WU_sJ.mjs} +1 -1
- package/{architecture-4AB2E3PP-852INY2n.mjs → architecture-4AB2E3PP-ChduGqoJ.mjs} +1 -1
- package/{architectureDiagram-IEHRJDOE-nG1YwCX5.mjs → architectureDiagram-IEHRJDOE-CmU34Qfl.mjs} +4 -4
- package/{blockDiagram-JOT3LUYC-BJurKHWu.mjs → blockDiagram-JOT3LUYC-CoMzGtg-.mjs} +4 -4
- package/{c4Diagram-VJAJSXHY-BfYiLE5j.mjs → c4Diagram-VJAJSXHY-CzI2KqJS.mjs} +2 -2
- package/{channel-CejAFnF5.mjs → channel-Crps9hhI.mjs} +1 -1
- package/{chunk-4BMEZGHF-DVuKwMdL.mjs → chunk-4BMEZGHF-CmQYi4QV.mjs} +1 -1
- package/{chunk-A2AXSNBT-IZZMPEcI.mjs → chunk-A2AXSNBT-DK4gJ5Sk.mjs} +2 -2
- package/{chunk-AEK57VVT-DFShhDUO.mjs → chunk-AEK57VVT-DoLHs_Cj.mjs} +2 -2
- package/{chunk-D6G4REZN-CoZJQ11M.mjs → chunk-D6G4REZN-DrdSWRnr.mjs} +1 -1
- package/{chunk-RZ5BOZE2-B50k2W0x.mjs → chunk-RZ5BOZE2-DOLWsmwM.mjs} +1 -1
- package/{chunk-XZIHB7SX-CJ3zFYNb.mjs → chunk-XZIHB7SX-C18eXxNb.mjs} +1 -1
- package/{classDiagram-GIVACNV2-pXF783b7.mjs → classDiagram-GIVACNV2-CJRfuxYN.mjs} +2 -2
- package/{classDiagram-v2-COTLJTTW-pXF783b7.mjs → classDiagram-v2-COTLJTTW-CJRfuxYN.mjs} +2 -2
- package/{clone-BnmvRUeQ.mjs → clone-Dta5GhQf.mjs} +1 -1
- package/{dagre-OKDRZEBW-DQgQerCv.mjs → dagre-OKDRZEBW-DdyQjEuz.mjs} +6 -6
- package/{diagram-SSKATNLV-Bnomkkq9.mjs → diagram-SSKATNLV-De9dN6Gv.mjs} +3 -3
- package/{diagram-VNBRO52H-DtchhirZ.mjs → diagram-VNBRO52H-B1C_fv8Z.mjs} +3 -3
- package/{erDiagram-Q7BY3M3F-CNVSF5gf.mjs → erDiagram-Q7BY3M3F-BLDgyMvl.mjs} +3 -3
- package/{flowDiagram-4HSFHLVR-CH2UgnNo.mjs → flowDiagram-4HSFHLVR-Qp5H5HuN.mjs} +3 -3
- package/{ganttDiagram-APWFNJXF-B9mfNhn4.mjs → ganttDiagram-APWFNJXF-CiIw2utH.mjs} +96 -96
- package/{gitGraph-O2Q2CXLX-BmwwGYGR.mjs → gitGraph-O2Q2CXLX-Bn03P5Nl.mjs} +1 -1
- package/{gitGraphDiagram-7IBYFJ6S-BW3xLnxx.mjs → gitGraphDiagram-7IBYFJ6S-CvvjVnGn.mjs} +4 -4
- package/{graph-CXhZUCxw.mjs → graph-DQdHto4o.mjs} +3 -3
- package/{index-DCylNQ-G.mjs → index-SQJfrrLD.mjs} +78529 -39578
- package/info-4N47QTOZ-uVxEZPSK.mjs +5 -0
- package/{infoDiagram-PH2N3AL5-BCnz3pn7.mjs → infoDiagram-PH2N3AL5-DV7u7Ayz.mjs} +2 -2
- package/{journeyDiagram-U35MCT3I-BhKaIeWI.mjs → journeyDiagram-U35MCT3I-Cvr_T7q5.mjs} +3 -3
- package/{kanban-definition-NDS4AKOZ-B8b_OwFy.mjs → kanban-definition-NDS4AKOZ-Ca1W_MeS.mjs} +1 -1
- package/{layout-gf00VaFe.mjs → layout-B7iyZ2fF.mjs} +69 -69
- package/{linear-CgnnRlHf.mjs → linear-l8HrFOEh.mjs} +1 -1
- package/{mermaid-parser.core-Czt2tVIO.mjs → mermaid-parser.core-CtZK94ec.mjs} +412 -415
- package/{mindmap-definition-ALO5MXBD-DVVTGD_m.mjs → mindmap-definition-ALO5MXBD-bGPODXlp.mjs} +1 -1
- package/package.json +1 -1
- package/{packet-KVYON367-BaJso9Ah.mjs → packet-KVYON367-zEri9VBc.mjs} +1 -1
- package/pie-R6RNRRYF-DIw6RShx.mjs +5 -0
- package/{pieDiagram-IB7DONF6-z-aIrkdd.mjs → pieDiagram-IB7DONF6-CJoldLl3.mjs} +8 -8
- package/{quadrantDiagram-7GDLP6J5-5TfCtMJM.mjs → quadrantDiagram-7GDLP6J5-Ctc888cD.mjs} +2 -2
- package/{radar-MK3ICKWK-CorSSu91.mjs → radar-MK3ICKWK-D2N-oYOe.mjs} +1 -1
- package/reduce-H5wY2_7x.mjs +365 -0
- package/{requirementDiagram-KVF5MWMF-CjqeVDzF.mjs → requirementDiagram-KVF5MWMF-DFVfGh-h.mjs} +2 -2
- package/{sankeyDiagram-QLVOVGJD-DP_yqIJm.mjs → sankeyDiagram-QLVOVGJD-DVrl9Mt1.mjs} +1 -1
- package/{sequenceDiagram-X6HHIX6F-VY2nqAEL.mjs → sequenceDiagram-X6HHIX6F-BUOLFdjW.mjs} +3 -3
- package/{stateDiagram-DGXRK772-BkfL-M2T.mjs → stateDiagram-DGXRK772-ZHGllrqS.mjs} +4 -4
- package/{stateDiagram-v2-YXO3MK2T-BeQbrGsd.mjs → stateDiagram-v2-YXO3MK2T-L5Co9ky9.mjs} +2 -2
- package/style.css +2 -2
- package/{timeline-definition-BDJGKUSR-DvtZ-Kkq.mjs → timeline-definition-BDJGKUSR-Brp5Dr6o.mjs} +2 -2
- package/{xychartDiagram-VJFVF3MP-CuxTufz8.mjs → xychartDiagram-VJFVF3MP-B9a0AKck.mjs} +17 -17
- package/_baseUniq-C9ZEBtX8.mjs +0 -418
- package/info-4N47QTOZ-Dd0nN3Lt.mjs +0 -5
- package/pie-R6RNRRYF-aPfFWu41.mjs +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e, l as s, H as o, e as i, I as g } from "./index-
|
|
2
|
-
import { p } from "./mermaid-parser.core-
|
|
1
|
+
import { _ as e, l as s, H as o, e as i, I as g } from "./index-SQJfrrLD.mjs";
|
|
2
|
+
import { p } from "./mermaid-parser.core-CtZK94ec.mjs";
|
|
3
3
|
var v = {
|
|
4
4
|
parse: /* @__PURE__ */ e(async (r) => {
|
|
5
5
|
const a = await p("info", r);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as ft, g as at, f as gt, d as mt } from "./chunk-D6G4REZN-
|
|
2
|
-
import { _ as i, g as xt, s as kt, a as _t, b as vt, q as bt, p as wt, c as A, d as W, e as Tt, y as St } from "./index-
|
|
3
|
-
import { d as tt } from "./arc-
|
|
1
|
+
import { a as ft, g as at, f as gt, d as mt } from "./chunk-D6G4REZN-DrdSWRnr.mjs";
|
|
2
|
+
import { _ as i, g as xt, s as kt, a as _t, b as vt, q as bt, p as wt, c as A, d as W, e as Tt, y as St } from "./index-SQJfrrLD.mjs";
|
|
3
|
+
import { d as tt } from "./arc-BP1WU_sJ.mjs";
|
|
4
4
|
var H = function() {
|
|
5
5
|
var t = /* @__PURE__ */ i(function(g, r, a, l) {
|
|
6
6
|
for (a = a || {}, l = g.length; l--; a[g[l]] = r) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as c, l as te, c as W, H as fe, ae as ye, af as be, ag as me, U as _e, F as Y, i as G, t as Ee, J as ke, V as Se, W as le, X as ce } from "./index-
|
|
1
|
+
import { _ as c, l as te, c as W, H as fe, ae as ye, af as be, ag as me, U as _e, F as Y, i as G, t as Ee, J as ke, V as Se, W as le, X as ce } from "./index-SQJfrrLD.mjs";
|
|
2
2
|
var $ = function() {
|
|
3
3
|
var t = /* @__PURE__ */ c(function(_, s, n, a) {
|
|
4
4
|
for (n = n || {}, a = _.length; a--; n[_[a]] = s) ;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { G as g } from "./graph-
|
|
2
|
-
import { b as Te,
|
|
3
|
-
import { f as O, b as he, a as je, c as Ve, d as
|
|
4
|
-
import {
|
|
1
|
+
import { G as g } from "./graph-DQdHto4o.mjs";
|
|
2
|
+
import { b as Te, m as ce, n as le, e as z, d as ee, h as j, l as Ie, o as Me, a as Se, p as Fe, c as f, i as m, f as _, v as x, r as M } from "./reduce-H5wY2_7x.mjs";
|
|
3
|
+
import { f as O, b as he, a as je, c as Ve, d as Ae, t as V, m as w, e as P, h as ve, g as X, l as T, i as Be } from "./_basePickBy-B-Y1ybBO.mjs";
|
|
4
|
+
import { b7 as Ge, b8 as Ye, b9 as De, aO as $e, ba as qe, aT as pe, aS as we, bb as We, aN as $, az as ze, aV as Xe, aC as Ue, bc as q } from "./index-SQJfrrLD.mjs";
|
|
5
5
|
function He(e) {
|
|
6
6
|
return Ge(Ye(e, void 0, O), e + "");
|
|
7
7
|
}
|
|
8
|
-
var Je = 1,
|
|
9
|
-
function
|
|
10
|
-
return Te(e, Je |
|
|
8
|
+
var Je = 1, Ze = 4;
|
|
9
|
+
function Ke(e) {
|
|
10
|
+
return Te(e, Je | Ze);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return e == null ? e : De(e, ce(n),
|
|
12
|
+
function Qe(e, n) {
|
|
13
|
+
return e == null ? e : De(e, ce(n), $e);
|
|
14
14
|
}
|
|
15
15
|
function en(e, n) {
|
|
16
16
|
return e && le(e, ce(n));
|
|
@@ -21,7 +21,7 @@ function nn(e, n) {
|
|
|
21
21
|
function S(e, n) {
|
|
22
22
|
var r = {};
|
|
23
23
|
return n = z(n), le(e, function(t, a, i) {
|
|
24
|
-
|
|
24
|
+
qe(r, a, n(t, a, i));
|
|
25
25
|
}), r;
|
|
26
26
|
}
|
|
27
27
|
function y(e) {
|
|
@@ -61,7 +61,7 @@ function an(e, n, r) {
|
|
|
61
61
|
function on(e, n, r) {
|
|
62
62
|
n.length ? n = j(n, function(i) {
|
|
63
63
|
return we(i) ? function(o) {
|
|
64
|
-
return
|
|
64
|
+
return Ie(o, i.length === 1 ? i[0] : i);
|
|
65
65
|
} : i;
|
|
66
66
|
}) : n = [pe];
|
|
67
67
|
var t = -1;
|
|
@@ -77,11 +77,11 @@ function on(e, n, r) {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
function un(e, n) {
|
|
80
|
-
return
|
|
81
|
-
return
|
|
80
|
+
return Ae(e, n, function(r, t) {
|
|
81
|
+
return Me(e, t);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var I = He(function(e, n) {
|
|
85
85
|
return e == null ? {} : un(e, n);
|
|
86
86
|
}), dn = Math.ceil, sn = Math.max;
|
|
87
87
|
function fn(e, n, r, t) {
|
|
@@ -91,14 +91,14 @@ function fn(e, n, r, t) {
|
|
|
91
91
|
}
|
|
92
92
|
function cn(e) {
|
|
93
93
|
return function(n, r, t) {
|
|
94
|
-
return t && typeof t != "number" &&
|
|
94
|
+
return t && typeof t != "number" && $(n, r, t) && (r = t = void 0), n = V(n), r === void 0 ? (r = n, n = 0) : r = V(r), t = t === void 0 ? n < r ? 1 : -1 : V(t), fn(n, r, t);
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
var E = cn(), R = ze(function(e, n) {
|
|
98
98
|
if (e == null)
|
|
99
99
|
return [];
|
|
100
100
|
var r = n.length;
|
|
101
|
-
return r > 1 &&
|
|
101
|
+
return r > 1 && $(e, n[0], n[1]) ? n = [] : r > 2 && $(n[0], n[1], n[2]) && (n = [n[0]]), on(e, Se(n), []);
|
|
102
102
|
}), ln = 0;
|
|
103
103
|
function H(e) {
|
|
104
104
|
var n = ++ln;
|
|
@@ -155,20 +155,20 @@ function mn(e, n) {
|
|
|
155
155
|
function gn(e, n, r) {
|
|
156
156
|
for (var t = [], a = n[n.length - 1], i = n[0], o; e.nodeCount(); ) {
|
|
157
157
|
for (; o = i.dequeue(); )
|
|
158
|
-
|
|
158
|
+
A(e, n, r, o);
|
|
159
159
|
for (; o = a.dequeue(); )
|
|
160
|
-
|
|
160
|
+
A(e, n, r, o);
|
|
161
161
|
if (e.nodeCount()) {
|
|
162
162
|
for (var u = n.length - 2; u > 0; --u)
|
|
163
163
|
if (o = n[u].dequeue(), o) {
|
|
164
|
-
t = t.concat(
|
|
164
|
+
t = t.concat(A(e, n, r, o, !0));
|
|
165
165
|
break;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return t;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function A(e, n, r, t, a) {
|
|
172
172
|
var i = a ? [] : void 0;
|
|
173
173
|
return f(e.inEdges(t.v), function(o) {
|
|
174
174
|
var u = e.edge(o), d = e.node(o.v);
|
|
@@ -344,7 +344,7 @@ function Rn(e) {
|
|
|
344
344
|
}
|
|
345
345
|
function Tn(e) {
|
|
346
346
|
var n = e.graph().rankdir.toLowerCase();
|
|
347
|
-
(n === "bt" || n === "rl") &&
|
|
347
|
+
(n === "bt" || n === "rl") && In(e), (n === "lr" || n === "rl") && (Mn(e), ge(e));
|
|
348
348
|
}
|
|
349
349
|
function ge(e) {
|
|
350
350
|
f(e.nodes(), function(n) {
|
|
@@ -357,18 +357,18 @@ function ie(e) {
|
|
|
357
357
|
var n = e.width;
|
|
358
358
|
e.width = e.height, e.height = n;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function In(e) {
|
|
361
361
|
f(e.nodes(), function(n) {
|
|
362
|
-
|
|
362
|
+
B(e.node(n));
|
|
363
363
|
}), f(e.edges(), function(n) {
|
|
364
364
|
var r = e.edge(n);
|
|
365
|
-
f(r.points,
|
|
365
|
+
f(r.points, B), Object.prototype.hasOwnProperty.call(r, "y") && B(r);
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function B(e) {
|
|
369
369
|
e.y = -e.y;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Mn(e) {
|
|
372
372
|
f(e.nodes(), function(n) {
|
|
373
373
|
G(e.node(n));
|
|
374
374
|
}), f(e.edges(), function(n) {
|
|
@@ -433,7 +433,7 @@ function ye(e) {
|
|
|
433
433
|
var n = new g({ directed: !1 }), r = e.nodes()[0], t = e.nodeCount();
|
|
434
434
|
n.setNode(r, {});
|
|
435
435
|
for (var a, i; Vn(n, e) < t; )
|
|
436
|
-
a =
|
|
436
|
+
a = An(n, e), i = n.hasNode(a.v) ? C(e, a) : -C(e, a), Bn(n, e, i);
|
|
437
437
|
return n;
|
|
438
438
|
}
|
|
439
439
|
function Vn(e, n) {
|
|
@@ -445,13 +445,13 @@ function Vn(e, n) {
|
|
|
445
445
|
}
|
|
446
446
|
return f(e.nodes(), r), e.nodeCount();
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function An(e, n) {
|
|
449
449
|
return U(n.edges(), function(r) {
|
|
450
450
|
if (e.hasNode(r.v) !== e.hasNode(r.w))
|
|
451
451
|
return C(n, r);
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Bn(e, n, r) {
|
|
455
455
|
f(e.nodes(), function(t) {
|
|
456
456
|
n.node(t).rank += r;
|
|
457
457
|
});
|
|
@@ -479,8 +479,8 @@ function Yn(e, n) {
|
|
|
479
479
|
function Dn(e, n) {
|
|
480
480
|
return ke(e, n, "pre");
|
|
481
481
|
}
|
|
482
|
-
k.initLowLimValues =
|
|
483
|
-
k.initCutValues =
|
|
482
|
+
k.initLowLimValues = K;
|
|
483
|
+
k.initCutValues = Z;
|
|
484
484
|
k.calcCutValue = Ee;
|
|
485
485
|
k.leaveEdge = Le;
|
|
486
486
|
k.enterEdge = Ne;
|
|
@@ -488,17 +488,17 @@ k.exchangeEdges = Pe;
|
|
|
488
488
|
function k(e) {
|
|
489
489
|
e = On(e), J(e);
|
|
490
490
|
var n = ye(e);
|
|
491
|
-
|
|
491
|
+
K(n), Z(n, e);
|
|
492
492
|
for (var r, t; r = Le(n); )
|
|
493
493
|
t = Ne(n, e, r), Pe(n, e, r, t);
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Z(e, n) {
|
|
496
496
|
var r = Yn(e, e.nodes());
|
|
497
497
|
r = r.slice(0, r.length - 1), f(r, function(t) {
|
|
498
|
-
|
|
498
|
+
$n(e, n, t);
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function $n(e, n, r) {
|
|
502
502
|
var t = e.node(r), a = t.parent;
|
|
503
503
|
e.edge(r, a).cutvalue = Ee(e, n, r);
|
|
504
504
|
}
|
|
@@ -515,7 +515,7 @@ function Ee(e, n, r) {
|
|
|
515
515
|
}
|
|
516
516
|
}), u;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function K(e, n) {
|
|
519
519
|
arguments.length < 2 && (n = e.nodes()[0]), Oe(e, {}, 1, n);
|
|
520
520
|
}
|
|
521
521
|
function Oe(e, n, r, t, a) {
|
|
@@ -543,9 +543,9 @@ function Ne(e, n, r) {
|
|
|
543
543
|
}
|
|
544
544
|
function Pe(e, n, r, t) {
|
|
545
545
|
var a = r.v, i = r.w;
|
|
546
|
-
e.removeEdge(a, i), e.setEdge(t.v, t.w, {}),
|
|
546
|
+
e.removeEdge(a, i), e.setEdge(t.v, t.w, {}), K(e), Z(e, n), qn(e, n);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function qn(e, n) {
|
|
549
549
|
var r = X(e.nodes(), function(a) {
|
|
550
550
|
return !n.node(a).parent;
|
|
551
551
|
}), t = Dn(e, r);
|
|
@@ -587,7 +587,7 @@ function Hn(e) {
|
|
|
587
587
|
e.graph().nestingRoot = n, f(e.edges(), function(o) {
|
|
588
588
|
e.edge(o).minlen *= a;
|
|
589
589
|
});
|
|
590
|
-
var i =
|
|
590
|
+
var i = Zn(e) + 1;
|
|
591
591
|
f(e.children(), function(o) {
|
|
592
592
|
Ce(e, n, a, i, t, r, o);
|
|
593
593
|
}), e.graph().nodeRankFactor = a;
|
|
@@ -625,8 +625,8 @@ function Jn(e) {
|
|
|
625
625
|
r(t, 1);
|
|
626
626
|
}), n;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
return
|
|
628
|
+
function Zn(e) {
|
|
629
|
+
return M(
|
|
630
630
|
e.edges(),
|
|
631
631
|
function(n, r) {
|
|
632
632
|
return n + e.edge(r).weight;
|
|
@@ -634,14 +634,14 @@ function Qn(e) {
|
|
|
634
634
|
0
|
|
635
635
|
);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Kn(e) {
|
|
638
638
|
var n = e.graph();
|
|
639
639
|
e.removeNode(n.nestingRoot), delete n.nestingRoot, f(e.edges(), function(r) {
|
|
640
640
|
var t = e.edge(r);
|
|
641
641
|
t.nestingEdge && e.removeEdge(r);
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function Qn(e, n, r) {
|
|
645
645
|
var t = {}, a;
|
|
646
646
|
f(r, function(i) {
|
|
647
647
|
for (var o = e.parent(i), u, d; o; ) {
|
|
@@ -735,7 +735,7 @@ function ir(e, n) {
|
|
|
735
735
|
return w(n, function(r) {
|
|
736
736
|
var t = e.inEdges(r);
|
|
737
737
|
if (t.length) {
|
|
738
|
-
var a =
|
|
738
|
+
var a = M(
|
|
739
739
|
t,
|
|
740
740
|
function(i, o) {
|
|
741
741
|
var u = e.edge(o), d = e.node(o.v);
|
|
@@ -796,7 +796,7 @@ function ur(e) {
|
|
|
796
796
|
return !i.merged;
|
|
797
797
|
}),
|
|
798
798
|
function(i) {
|
|
799
|
-
return
|
|
799
|
+
return I(i, ["vs", "i", "barycenter", "weight"]);
|
|
800
800
|
}
|
|
801
801
|
);
|
|
802
802
|
}
|
|
@@ -865,7 +865,7 @@ function hr(e) {
|
|
|
865
865
|
for (var i = Number.POSITIVE_INFINITY, o, u = 0, d = 0; d < 4; ++u, ++d) {
|
|
866
866
|
vr(u % 2 ? r : t, u % 4 >= 2), a = F(e);
|
|
867
867
|
var s = rr(e, a);
|
|
868
|
-
s < i && (d = 0, o =
|
|
868
|
+
s < i && (d = 0, o = Ke(a), i = s);
|
|
869
869
|
}
|
|
870
870
|
fe(e, o);
|
|
871
871
|
}
|
|
@@ -880,7 +880,7 @@ function vr(e, n) {
|
|
|
880
880
|
var a = t.graph().root, i = _e(t, a, r, n);
|
|
881
881
|
f(i.vs, function(o, u) {
|
|
882
882
|
t.node(o).order = u;
|
|
883
|
-
}),
|
|
883
|
+
}), Qn(t, r, i.vs);
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
886
|
function fe(e, n) {
|
|
@@ -934,13 +934,13 @@ function mr(e, n) {
|
|
|
934
934
|
var h = yr(e, c), v = h ? e.node(h).order : d;
|
|
935
935
|
(h || c === s) && (f(i.slice(u, l + 1), function(p) {
|
|
936
936
|
f(e.predecessors(p), function(b) {
|
|
937
|
-
var N = e.node(b),
|
|
938
|
-
(
|
|
937
|
+
var N = e.node(b), Q = N.order;
|
|
938
|
+
(Q < o || v < Q) && !(N.dummy && e.node(p).dummy) && Re(r, b, p);
|
|
939
939
|
});
|
|
940
940
|
}), u = l + 1, o = v);
|
|
941
941
|
}), i;
|
|
942
942
|
}
|
|
943
|
-
return
|
|
943
|
+
return M(n, t), r;
|
|
944
944
|
}
|
|
945
945
|
function gr(e, n) {
|
|
946
946
|
var r = {};
|
|
@@ -963,7 +963,7 @@ function gr(e, n) {
|
|
|
963
963
|
t(o, s, o.length, d, i.length);
|
|
964
964
|
}), o;
|
|
965
965
|
}
|
|
966
|
-
return
|
|
966
|
+
return M(n, a), r;
|
|
967
967
|
}
|
|
968
968
|
function yr(e, n) {
|
|
969
969
|
if (e.node(n).dummy)
|
|
@@ -1046,7 +1046,7 @@ function Or(e, n, r, t) {
|
|
|
1046
1046
|
function Lr(e, n) {
|
|
1047
1047
|
return U(x(n), function(r) {
|
|
1048
1048
|
var t = Number.NEGATIVE_INFINITY, a = Number.POSITIVE_INFINITY;
|
|
1049
|
-
return
|
|
1049
|
+
return Qe(r, function(i, o) {
|
|
1050
1050
|
var u = Rr(e, o) / 2;
|
|
1051
1051
|
t = Math.max(i + u, t), a = Math.min(i - u, a);
|
|
1052
1052
|
}), t - a;
|
|
@@ -1075,7 +1075,7 @@ function Pr(e, n) {
|
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
1077
1077
|
function Cr(e) {
|
|
1078
|
-
var n = F(e), r =
|
|
1078
|
+
var n = F(e), r = q(mr(e, n), gr(e, n)), t = {}, a;
|
|
1079
1079
|
f(["u", "d"], function(o) {
|
|
1080
1080
|
a = o === "u" ? n : x(n).reverse(), f(["l", "r"], function(u) {
|
|
1081
1081
|
u === "r" && (a = w(a, function(l) {
|
|
@@ -1118,11 +1118,11 @@ function Rr(e, n) {
|
|
|
1118
1118
|
return e.node(n).width;
|
|
1119
1119
|
}
|
|
1120
1120
|
function Tr(e) {
|
|
1121
|
-
e = be(e),
|
|
1121
|
+
e = be(e), Ir(e), en(Cr(e), function(n, r) {
|
|
1122
1122
|
e.node(r).x = n;
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function Ir(e) {
|
|
1126
1126
|
var n = F(e), r = e.graph().ranksep, t = 0;
|
|
1127
1127
|
f(n, function(a) {
|
|
1128
1128
|
var i = y(
|
|
@@ -1138,12 +1138,12 @@ function Mr(e) {
|
|
|
1138
1138
|
function ot(e, n) {
|
|
1139
1139
|
var r = Cn;
|
|
1140
1140
|
r("layout", () => {
|
|
1141
|
-
var t = r(" buildLayoutGraph", () =>
|
|
1142
|
-
r(" runLayout", () =>
|
|
1141
|
+
var t = r(" buildLayoutGraph", () => $r(e));
|
|
1142
|
+
r(" runLayout", () => Mr(t, r)), r(" updateInputGraph", () => Sr(e, t));
|
|
1143
1143
|
});
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1146
|
-
n(" makeSpaceForEdgeLabels", () =>
|
|
1145
|
+
function Mr(e, n) {
|
|
1146
|
+
n(" makeSpaceForEdgeLabels", () => qr(e)), n(" removeSelfEdges", () => Qr(e)), n(" acyclic", () => kn(e)), n(" nestingGraph.run", () => Hn(e)), n(" rank", () => zn(be(e))), n(" injectEdgeLabelProxies", () => Wr(e)), n(" removeEmptyRanks", () => Nn(e)), n(" nestingGraph.cleanup", () => Kn(e)), n(" normalizeRanks", () => Ln(e)), n(" assignRankMinMax", () => zr(e)), n(" removeEdgeLabelProxies", () => Xr(e)), n(" normalize.run", () => Sn(e)), n(" parentDummyChains", () => pr(e)), n(" addBorderSegments", () => _n(e)), n(" order", () => hr(e)), n(" insertSelfEdges", () => et(e)), n(" adjustCoordinateSystem", () => Rn(e)), n(" position", () => Tr(e)), n(" positionSelfEdges", () => nt(e)), n(" removeBorderNodes", () => Kr(e)), n(" normalize.undo", () => jn(e)), n(" fixupEdgeLabelCoords", () => Jr(e)), n(" undoCoordinateSystem", () => Tn(e)), n(" translateGraph", () => Ur(e)), n(" assignNodeIntersects", () => Hr(e)), n(" reversePoints", () => Zr(e)), n(" acyclic.undo", () => En(e));
|
|
1147
1147
|
}
|
|
1148
1148
|
function Sr(e, n) {
|
|
1149
1149
|
f(e.nodes(), function(r) {
|
|
@@ -1154,7 +1154,7 @@ function Sr(e, n) {
|
|
|
1154
1154
|
t.points = a.points, Object.prototype.hasOwnProperty.call(a, "x") && (t.x = a.x, t.y = a.y);
|
|
1155
1155
|
}), e.graph().width = n.graph().width, e.graph().height = n.graph().height;
|
|
1156
1156
|
}
|
|
1157
|
-
var Fr = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], jr = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, Vr = ["acyclicer", "ranker", "rankdir", "align"],
|
|
1157
|
+
var Fr = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], jr = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, Vr = ["acyclicer", "ranker", "rankdir", "align"], Ar = ["width", "height"], Br = { width: 0, height: 0 }, Gr = ["minlen", "weight", "width", "height", "labeloffset"], Yr = {
|
|
1158
1158
|
minlen: 1,
|
|
1159
1159
|
weight: 1,
|
|
1160
1160
|
width: 0,
|
|
@@ -1162,22 +1162,22 @@ var Fr = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], jr = { ranksep
|
|
|
1162
1162
|
labeloffset: 10,
|
|
1163
1163
|
labelpos: "r"
|
|
1164
1164
|
}, Dr = ["labelpos"];
|
|
1165
|
-
function
|
|
1165
|
+
function $r(e) {
|
|
1166
1166
|
var n = new g({ multigraph: !0, compound: !0 }), r = D(e.graph());
|
|
1167
1167
|
return n.setGraph(
|
|
1168
|
-
|
|
1168
|
+
q({}, jr, Y(r, Fr), I(r, Vr))
|
|
1169
1169
|
), f(e.nodes(), function(t) {
|
|
1170
1170
|
var a = D(e.node(t));
|
|
1171
|
-
n.setNode(t,
|
|
1171
|
+
n.setNode(t, Be(Y(a, Ar), Br)), n.setParent(t, e.parent(t));
|
|
1172
1172
|
}), f(e.edges(), function(t) {
|
|
1173
1173
|
var a = D(e.edge(t));
|
|
1174
1174
|
n.setEdge(
|
|
1175
1175
|
t,
|
|
1176
|
-
|
|
1176
|
+
q({}, Yr, Y(a, Gr), I(a, Dr))
|
|
1177
1177
|
);
|
|
1178
1178
|
}), n;
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function qr(e) {
|
|
1181
1181
|
var n = e.graph();
|
|
1182
1182
|
n.ranksep /= 2, f(e.edges(), function(r) {
|
|
1183
1183
|
var t = e.edge(r);
|
|
@@ -1247,13 +1247,13 @@ function Jr(e) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
});
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function Zr(e) {
|
|
1251
1251
|
f(e.edges(), function(n) {
|
|
1252
1252
|
var r = e.edge(n);
|
|
1253
1253
|
r.reversed && r.points.reverse();
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Kr(e) {
|
|
1257
1257
|
f(e.nodes(), function(n) {
|
|
1258
1258
|
if (e.children(n).length) {
|
|
1259
1259
|
var r = e.node(n), t = e.node(r.borderTop), a = e.node(r.borderBottom), i = e.node(T(r.borderLeft)), o = e.node(T(r.borderRight));
|
|
@@ -1263,7 +1263,7 @@ function Zr(e) {
|
|
|
1263
1263
|
e.node(n).dummy === "border" && e.removeNode(n);
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function Qr(e) {
|
|
1267
1267
|
f(e.edges(), function(n) {
|
|
1268
1268
|
if (n.v === n.w) {
|
|
1269
1269
|
var r = e.node(n.v);
|
|
@@ -1311,7 +1311,7 @@ function nt(e) {
|
|
|
1311
1311
|
});
|
|
1312
1312
|
}
|
|
1313
1313
|
function Y(e, n) {
|
|
1314
|
-
return S(
|
|
1314
|
+
return S(I(e, n), Number);
|
|
1315
1315
|
}
|
|
1316
1316
|
function D(e) {
|
|
1317
1317
|
var n = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b2 as un, b3 as I, b4 as U, b5 as fn, b6 as Y } from "./index-SQJfrrLD.mjs";
|
|
2
2
|
import { i as cn } from "./init-DjUOC4st.mjs";
|
|
3
3
|
function F(n, t) {
|
|
4
4
|
return n == null || t == null ? NaN : n < t ? -1 : n > t ? 1 : n >= t ? 0 : NaN;
|