@ucap-llm/ai-ui 1.1.13 → 1.1.15
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-DMehTBs0-8955b30b.mjs +151 -0
- package/_basePickBy-e7598e72.mjs +153 -0
- package/{_baseUniq-2bcae05e.mjs → _baseUniq-8cd7fbc4.mjs} +150 -150
- package/_baseUniq-DPnX6tpB-5eb6efbd.mjs +615 -0
- package/ai-ui.es.js +9 -8
- package/ai-ui.umd.js +3425 -923
- package/arc-8909f880.mjs +85 -0
- package/arc-qimaJRLH-591a6072.mjs +85 -0
- package/architecture-4AB2E3PP-DFmEpUnA-62fe65dd.mjs +10 -0
- package/architecture-4AB2E3PP-b04ae9dd.mjs +10 -0
- package/{architectureDiagram-IEHRJDOE-e4684ef3.mjs → architectureDiagram-IEHRJDOE-1ccc2c64.mjs} +123 -123
- package/architectureDiagram-IEHRJDOE-BRVAVUEE-c068faae.mjs +4641 -0
- package/{blockDiagram-JOT3LUYC-504ee31e.mjs → blockDiagram-JOT3LUYC-63569de5.mjs} +5 -5
- package/blockDiagram-JOT3LUYC-Cs4tSRey-54d8e29b.mjs +2251 -0
- package/{c4Diagram-VJAJSXHY-c5ba6af4.mjs → c4Diagram-VJAJSXHY-355a4170.mjs} +23 -23
- package/c4Diagram-VJAJSXHY-C3F9fO0L-0df97cd8.mjs +1583 -0
- package/channel-CuHzivgY-bb3d765a.mjs +5 -0
- package/channel-a1f4f18c.mjs +5 -0
- package/{chunk-4BMEZGHF-8d9a2e4f.mjs → chunk-4BMEZGHF-705995af.mjs} +1 -1
- package/chunk-4BMEZGHF-btTOjzEX-c9c5432c.mjs +9 -0
- package/{chunk-A2AXSNBT-41ae29f2.mjs → chunk-A2AXSNBT-3a857566.mjs} +10 -10
- package/chunk-A2AXSNBT-CPBZRsS7-a80df701.mjs +1373 -0
- package/{chunk-AEK57VVT-69e121d6.mjs → chunk-AEK57VVT-6c60e1ee.mjs} +45 -45
- package/chunk-AEK57VVT-D62Iwyam-238a3d85.mjs +1361 -0
- package/{chunk-D6G4REZN-472adc5b.mjs → chunk-D6G4REZN-11c52918.mjs} +5 -5
- package/chunk-D6G4REZN-HlFmQTJy-20704636.mjs +64 -0
- package/chunk-RZ5BOZE2-DIFgOqDt-495bec03.mjs +24 -0
- package/{chunk-RZ5BOZE2-b7d5d4f5.mjs → chunk-RZ5BOZE2-d6db8103.mjs} +9 -9
- package/chunk-XZIHB7SX-CCrbsG0u-f30e4124.mjs +15 -0
- package/{chunk-XZIHB7SX-56c08d07.mjs → chunk-XZIHB7SX-fafd3ca2.mjs} +1 -1
- package/classDiagram-GIVACNV2-Bv5U0XPL-622b22ed.mjs +18 -0
- package/{classDiagram-v2-COTLJTTW-1deea5cc.mjs → classDiagram-GIVACNV2-eca9aeb6.mjs} +5 -5
- package/classDiagram-v2-COTLJTTW-Bv5U0XPL-622b22ed.mjs +18 -0
- package/{classDiagram-GIVACNV2-1deea5cc.mjs → classDiagram-v2-COTLJTTW-eca9aeb6.mjs} +5 -5
- package/{clone-1f18a17f.mjs → clone-327a1426.mjs} +1 -1
- package/clone-Csc9uFbU-6c4f28bd.mjs +8 -0
- package/cytoscape.esm-Swd9B-1A-3101f241.mjs +18730 -0
- package/{dagre-OKDRZEBW-74e73dcf.mjs → dagre-OKDRZEBW-9059bb36.mjs} +81 -81
- package/dagre-OKDRZEBW-CoMQYlxF-96274fb0.mjs +448 -0
- package/{diagram-SSKATNLV-1a562cb0.mjs → diagram-SSKATNLV-70f68e72.mjs} +34 -34
- package/diagram-SSKATNLV-CPuZUaGP-50edcaa0.mjs +225 -0
- package/{diagram-VNBRO52H-b765e46f.mjs → diagram-VNBRO52H-39273710.mjs} +35 -35
- package/diagram-VNBRO52H-DIIZ-Sll-969266e6.mjs +130 -0
- package/{erDiagram-Q7BY3M3F-022c4343.mjs → erDiagram-Q7BY3M3F-96ba3906.mjs} +3 -3
- package/erDiagram-Q7BY3M3F-ZKWAM_uE-41c0350d.mjs +843 -0
- package/{flowDiagram-4HSFHLVR-6036e284.mjs → flowDiagram-4HSFHLVR-795e3830.mjs} +29 -29
- package/flowDiagram-4HSFHLVR-CUJXGEG3-801dde13.mjs +1624 -0
- package/{ganttDiagram-APWFNJXF-be871387.mjs → ganttDiagram-APWFNJXF-736e67b6.mjs} +398 -398
- package/ganttDiagram-APWFNJXF-C1pgubbs-20beffc3.mjs +2527 -0
- package/gitGraph-O2Q2CXLX-00465db9.mjs +10 -0
- package/gitGraph-O2Q2CXLX-BYavwGzs-e5f1990e.mjs +10 -0
- package/{gitGraphDiagram-7IBYFJ6S-da63c888.mjs → gitGraphDiagram-7IBYFJ6S-115329ab.mjs} +88 -88
- package/gitGraphDiagram-7IBYFJ6S-CndxirR4-b39d4089.mjs +716 -0
- package/{graph-e71f0e3e.mjs → graph-9e073c5f.mjs} +8 -8
- package/graph-DOmtxVvg-727f4e14.mjs +247 -0
- package/index-433e2395.mjs +168385 -0
- package/info-4N47QTOZ-688db415.mjs +10 -0
- package/info-4N47QTOZ-DPyDFN1Z-821cf2f7.mjs +10 -0
- package/{infoDiagram-PH2N3AL5-3e1c1c1f.mjs → infoDiagram-PH2N3AL5-29e9585a.mjs} +9 -9
- package/infoDiagram-PH2N3AL5-BkSS3vpU-ef4bf66d.mjs +26 -0
- package/init-DjUOC4st-87c930f1.mjs +16 -0
- package/{journeyDiagram-U35MCT3I-6d29748d.mjs → journeyDiagram-U35MCT3I-7c5644d1.mjs} +41 -41
- package/journeyDiagram-U35MCT3I-BN-kCDeJ-ac350902.mjs +811 -0
- package/{kanban-definition-NDS4AKOZ-c231ae4c.mjs → kanban-definition-NDS4AKOZ-eff441f9.mjs} +47 -47
- package/kanban-definition-NDS4AKOZ-gaDUOiKt-efdba942.mjs +720 -0
- package/{layout-b9b9e407.mjs → layout-501d22f0.mjs} +19 -19
- package/layout-8X5HiOVA-b6e13cf9.mjs +1323 -0
- package/linear-BgV5F0PU-8137edad.mjs +447 -0
- package/{linear-99040ddc.mjs → linear-fd3cd932.mjs} +56 -56
- package/{mermaid-parser.core-55f134dc.mjs → mermaid-parser.core-6eb44241.mjs} +160 -160
- package/mermaid-parser.core-BTS3sfcL-8c80284a.mjs +12810 -0
- package/{mindmap-definition-ALO5MXBD-938e2e65.mjs → mindmap-definition-ALO5MXBD-2fe3c748.mjs} +1 -1
- package/mindmap-definition-ALO5MXBD-B8q_1sIj-c3599d3c.mjs +3225 -0
- package/ordinal-DfAQgscy-1c8e46a9.mjs +65 -0
- package/package.json +2 -2
- package/packet-KVYON367-DcfdOX-U-afac932a.mjs +10 -0
- package/packet-KVYON367-c82af3fe.mjs +10 -0
- package/pie-R6RNRRYF-DKruFncB-d07f60c2.mjs +10 -0
- package/pie-R6RNRRYF-eb27797b.mjs +10 -0
- package/pieDiagram-IB7DONF6-Bijui6_Q-db9fdf3a.mjs +166 -0
- package/{pieDiagram-IB7DONF6-6a11673b.mjs → pieDiagram-IB7DONF6-e6863984.mjs} +36 -36
- package/{quadrantDiagram-7GDLP6J5-a4a4d9ac.mjs → quadrantDiagram-7GDLP6J5-88df12c2.mjs} +15 -15
- package/quadrantDiagram-7GDLP6J5-DzIzViUj-b13add98.mjs +1027 -0
- package/radar-MK3ICKWK-723229d0.mjs +10 -0
- package/radar-MK3ICKWK-D8wbkmr5-3165faf6.mjs +10 -0
- package/{requirementDiagram-KVF5MWMF-a7093c74.mjs → requirementDiagram-KVF5MWMF-7228051c.mjs} +50 -50
- package/requirementDiagram-KVF5MWMF-Hqsbdpfq-23374f24.mjs +853 -0
- package/{sankeyDiagram-QLVOVGJD-f4bcbb2d.mjs → sankeyDiagram-QLVOVGJD-00a31a99.mjs} +87 -87
- package/sankeyDiagram-QLVOVGJD-DGCeusqJ-8ca7e64d.mjs +826 -0
- package/{sequenceDiagram-X6HHIX6F-9071cfff.mjs → sequenceDiagram-X6HHIX6F-de203309.mjs} +3 -3
- package/sequenceDiagram-X6HHIX6F-kuEE9wSd-5f0ec5cd.mjs +2283 -0
- package/{stateDiagram-DGXRK772-fb22a7a5.mjs → stateDiagram-DGXRK772-2341237a.mjs} +48 -48
- package/stateDiagram-DGXRK772-Cq-Ce3WP-266efa7f.mjs +274 -0
- package/{stateDiagram-v2-YXO3MK2T-67326b76.mjs → stateDiagram-v2-YXO3MK2T-8c81deed.mjs} +5 -5
- package/stateDiagram-v2-YXO3MK2T-CplwFWn1-c0024e4e.mjs +18 -0
- package/style.css +10 -1
- package/timeline-definition-BDJGKUSR-USv5sZzx-22548912.mjs +806 -0
- package/{timeline-definition-BDJGKUSR-44f50d45.mjs → timeline-definition-BDJGKUSR-e615901b.mjs} +79 -79
- package/{xychartDiagram-VJFVF3MP-2df503f6.mjs → xychartDiagram-VJFVF3MP-9ad66a6b.mjs} +28 -28
- package/xychartDiagram-VJFVF3MP-CXCfFZBM-e5ca151e.mjs +1306 -0
- package/_basePickBy-12958109.mjs +0 -153
- package/arc-14f9a207.mjs +0 -85
- package/architecture-4AB2E3PP-bb512ddb.mjs +0 -10
- package/channel-7bd711b4.mjs +0 -5
- package/gitGraph-O2Q2CXLX-83cfcbef.mjs +0 -10
- package/index-f83d4b07.mjs +0 -97448
- package/info-4N47QTOZ-20cf90f5.mjs +0 -10
- package/katex-2e45926a.mjs +0 -11700
- package/packet-KVYON367-453a49e8.mjs +0 -10
- package/pie-R6RNRRYF-4d95c8dc.mjs +0 -10
- package/radar-MK3ICKWK-100e8fa4.mjs +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bz as p, bF as lt, bC as _t, bB as xt, bD as vt, bE as bt, bQ as wt, bP as St, bW as Lt, bH as Et, bX as At, bL as Y, cB as Tt } from "./index-433e2395.mjs";
|
|
2
2
|
import { o as Mt } from "./ordinal-980380c7.mjs";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "./init-f9637058.mjs";
|
|
@@ -7,7 +7,7 @@ function Nt(t) {
|
|
|
7
7
|
i[a] = "#" + t.slice(a * 6, ++a * 6);
|
|
8
8
|
return i;
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const Pt = Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
|
|
11
11
|
function ct(t, e) {
|
|
12
12
|
let i;
|
|
13
13
|
if (e === void 0)
|
|
@@ -44,7 +44,7 @@ function nt(t, e) {
|
|
|
44
44
|
}
|
|
45
45
|
return i;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function It(t) {
|
|
48
48
|
return t.target.depth;
|
|
49
49
|
}
|
|
50
50
|
function Ct(t) {
|
|
@@ -57,32 +57,32 @@ function mt(t, e) {
|
|
|
57
57
|
return t.sourceLinks.length ? t.depth : e - 1;
|
|
58
58
|
}
|
|
59
59
|
function Dt(t) {
|
|
60
|
-
return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks,
|
|
60
|
+
return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, It) - 1 : 0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Q(t) {
|
|
63
63
|
return function() {
|
|
64
64
|
return t;
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
function ut(t, e) {
|
|
68
|
-
return
|
|
68
|
+
return q(t.source, e.source) || t.index - e.index;
|
|
69
69
|
}
|
|
70
70
|
function ht(t, e) {
|
|
71
|
-
return
|
|
71
|
+
return q(t.target, e.target) || t.index - e.index;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function q(t, e) {
|
|
74
74
|
return t.y0 - e.y0;
|
|
75
75
|
}
|
|
76
76
|
function it(t) {
|
|
77
77
|
return t.value;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function zt(t) {
|
|
80
80
|
return t.index;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function $t(t) {
|
|
83
83
|
return t.nodes;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function jt(t) {
|
|
86
86
|
return t.links;
|
|
87
87
|
}
|
|
88
88
|
function ft(t, e) {
|
|
@@ -101,7 +101,7 @@ function yt({ nodes: t }) {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
function Bt() {
|
|
104
|
-
let t = 0, e = 0, i = 1, a = 1, h = 24, d = 8, m, _ =
|
|
104
|
+
let t = 0, e = 0, i = 1, a = 1, h = 24, d = 8, m, _ = zt, s = mt, o, l, x = $t, v = jt, y = 6;
|
|
105
105
|
function b() {
|
|
106
106
|
const n = { nodes: x.apply(null, arguments), links: v.apply(null, arguments) };
|
|
107
107
|
return M(n), T(n), N(n), C(n), S(n), yt(n), n;
|
|
@@ -109,9 +109,9 @@ function Bt() {
|
|
|
109
109
|
b.update = function(n) {
|
|
110
110
|
return yt(n), n;
|
|
111
111
|
}, b.nodeId = function(n) {
|
|
112
|
-
return arguments.length ? (_ = typeof n == "function" ? n :
|
|
112
|
+
return arguments.length ? (_ = typeof n == "function" ? n : Q(n), b) : _;
|
|
113
113
|
}, b.nodeAlign = function(n) {
|
|
114
|
-
return arguments.length ? (s = typeof n == "function" ? n :
|
|
114
|
+
return arguments.length ? (s = typeof n == "function" ? n : Q(n), b) : s;
|
|
115
115
|
}, b.nodeSort = function(n) {
|
|
116
116
|
return arguments.length ? (o = n, b) : o;
|
|
117
117
|
}, b.nodeWidth = function(n) {
|
|
@@ -119,9 +119,9 @@ function Bt() {
|
|
|
119
119
|
}, b.nodePadding = function(n) {
|
|
120
120
|
return arguments.length ? (d = m = +n, b) : d;
|
|
121
121
|
}, b.nodes = function(n) {
|
|
122
|
-
return arguments.length ? (x = typeof n == "function" ? n :
|
|
122
|
+
return arguments.length ? (x = typeof n == "function" ? n : Q(n), b) : x;
|
|
123
123
|
}, b.links = function(n) {
|
|
124
|
-
return arguments.length ? (v = typeof n == "function" ? n :
|
|
124
|
+
return arguments.length ? (v = typeof n == "function" ? n : Q(n), b) : v;
|
|
125
125
|
}, b.linkSort = function(n) {
|
|
126
126
|
return arguments.length ? (l = n, b) : l;
|
|
127
127
|
}, b.size = function(n) {
|
|
@@ -187,7 +187,7 @@ function Bt() {
|
|
|
187
187
|
r.sort(o);
|
|
188
188
|
return c;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function F(n) {
|
|
191
191
|
const f = pt(n, (u) => (a - e - (u.length - 1) * m) / nt(u, it));
|
|
192
192
|
for (const u of n) {
|
|
193
193
|
let c = e;
|
|
@@ -206,51 +206,51 @@ function Bt() {
|
|
|
206
206
|
}
|
|
207
207
|
function S(n) {
|
|
208
208
|
const f = O(n);
|
|
209
|
-
m = Math.min(d, (a - e) / (ct(f, (u) => u.length) - 1)),
|
|
209
|
+
m = Math.min(d, (a - e) / (ct(f, (u) => u.length) - 1)), F(f);
|
|
210
210
|
for (let u = 0; u < y; ++u) {
|
|
211
211
|
const c = Math.pow(0.99, u), r = Math.max(1 - c, (u + 1) / y);
|
|
212
|
-
|
|
212
|
+
j(f, c, r), I(f, c, r);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function I(n, f, u) {
|
|
216
216
|
for (let c = 1, r = n.length; c < r; ++c) {
|
|
217
217
|
const k = n[c];
|
|
218
218
|
for (const w of k) {
|
|
219
|
-
let L = 0,
|
|
219
|
+
let L = 0, R = 0;
|
|
220
220
|
for (const { source: U, value: et } of w.targetLinks) {
|
|
221
221
|
let G = et * (w.layer - U.layer);
|
|
222
|
-
L +=
|
|
222
|
+
L += $(U, w) * G, R += G;
|
|
223
223
|
}
|
|
224
|
-
if (!(
|
|
224
|
+
if (!(R > 0))
|
|
225
225
|
continue;
|
|
226
|
-
let W = (L /
|
|
226
|
+
let W = (L / R - w.y0) * f;
|
|
227
227
|
w.y0 += W, w.y1 += W, E(w);
|
|
228
228
|
}
|
|
229
|
-
o === void 0 && k.sort(
|
|
229
|
+
o === void 0 && k.sort(q), D(k, u);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function j(n, f, u) {
|
|
233
233
|
for (let c = n.length, r = c - 2; r >= 0; --r) {
|
|
234
234
|
const k = n[r];
|
|
235
235
|
for (const w of k) {
|
|
236
|
-
let L = 0,
|
|
236
|
+
let L = 0, R = 0;
|
|
237
237
|
for (const { target: U, value: et } of w.sourceLinks) {
|
|
238
238
|
let G = et * (U.layer - w.layer);
|
|
239
|
-
L +=
|
|
239
|
+
L += P(w, U) * G, R += G;
|
|
240
240
|
}
|
|
241
|
-
if (!(
|
|
241
|
+
if (!(R > 0))
|
|
242
242
|
continue;
|
|
243
|
-
let W = (L /
|
|
243
|
+
let W = (L / R - w.y0) * f;
|
|
244
244
|
w.y0 += W, w.y1 += W, E(w);
|
|
245
245
|
}
|
|
246
|
-
o === void 0 && k.sort(
|
|
246
|
+
o === void 0 && k.sort(q), D(k, u);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
function D(n, f) {
|
|
250
250
|
const u = n.length >> 1, c = n[u];
|
|
251
|
-
g(n, c.y0 - m, u - 1, f),
|
|
251
|
+
g(n, c.y0 - m, u - 1, f), z(n, c.y1 + m, u + 1, f), g(n, a, n.length - 1, f), z(n, e, 0, f);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function z(n, f, u, c) {
|
|
254
254
|
for (; u < n.length; ++u) {
|
|
255
255
|
const r = n[u], k = (f - r.y0) * c;
|
|
256
256
|
k > 1e-6 && (r.y0 += k, r.y1 += k), f = r.y1 + m;
|
|
@@ -275,7 +275,7 @@ function Bt() {
|
|
|
275
275
|
for (const { sourceLinks: f, targetLinks: u } of n)
|
|
276
276
|
f.sort(ht), u.sort(ut);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function $(n, f) {
|
|
279
279
|
let u = n.y0 - (n.sourceLinks.length - 1) * m / 2;
|
|
280
280
|
for (const { target: c, width: r } of n.sourceLinks) {
|
|
281
281
|
if (c === f)
|
|
@@ -289,7 +289,7 @@ function Bt() {
|
|
|
289
289
|
}
|
|
290
290
|
return u;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function P(n, f) {
|
|
293
293
|
let u = f.y0 - (f.targetLinks.length - 1) * m / 2;
|
|
294
294
|
for (const { source: c, width: r } of f.targetLinks) {
|
|
295
295
|
if (c === n)
|
|
@@ -305,7 +305,7 @@ function Bt() {
|
|
|
305
305
|
}
|
|
306
306
|
return b;
|
|
307
307
|
}
|
|
308
|
-
var st = Math.PI, rt = 2 * st,
|
|
308
|
+
var st = Math.PI, rt = 2 * st, V = 1e-6, Ft = rt - V;
|
|
309
309
|
function ot() {
|
|
310
310
|
this._x0 = this._y0 = // start of current subpath
|
|
311
311
|
this._x1 = this._y1 = null, this._ = "";
|
|
@@ -337,12 +337,12 @@ ot.prototype = kt.prototype = {
|
|
|
337
337
|
throw new Error("negative radius: " + h);
|
|
338
338
|
if (this._x1 === null)
|
|
339
339
|
this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
|
|
340
|
-
else if (x >
|
|
341
|
-
if (!(Math.abs(l * _ - s * o) >
|
|
340
|
+
else if (x > V)
|
|
341
|
+
if (!(Math.abs(l * _ - s * o) > V) || !h)
|
|
342
342
|
this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
|
|
343
343
|
else {
|
|
344
|
-
var v = i - d, y = a - m, b = _ * _ + s * s, M = v * v + y * y, T = Math.sqrt(b), N = Math.sqrt(x), C = h * Math.tan((st - Math.acos((b + x - M) / (2 * T * N))) / 2), O = C / N,
|
|
345
|
-
Math.abs(O - 1) >
|
|
344
|
+
var v = i - d, y = a - m, b = _ * _ + s * s, M = v * v + y * y, T = Math.sqrt(b), N = Math.sqrt(x), C = h * Math.tan((st - Math.acos((b + x - M) / (2 * T * N))) / 2), O = C / N, F = C / T;
|
|
345
|
+
Math.abs(O - 1) > V && (this._ += "L" + (t + O * o) + "," + (e + O * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * v > o * y) + "," + (this._x1 = t + F * _) + "," + (this._y1 = e + F * s);
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
348
|
arc: function(t, e, i, a, h, d) {
|
|
@@ -350,7 +350,7 @@ ot.prototype = kt.prototype = {
|
|
|
350
350
|
var m = i * Math.cos(a), _ = i * Math.sin(a), s = t + m, o = e + _, l = 1 ^ d, x = d ? a - h : h - a;
|
|
351
351
|
if (i < 0)
|
|
352
352
|
throw new Error("negative radius: " + i);
|
|
353
|
-
this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) >
|
|
353
|
+
this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > V || Math.abs(this._y1 - o) > V) && (this._ += "L" + s + "," + o), i && (x < 0 && (x = x % rt + rt), x > Ft ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - m) + "," + (e - _) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : x > V && (this._ += "A" + i + "," + i + ",0," + +(x >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
|
|
354
354
|
},
|
|
355
355
|
rect: function(t, e, i, a) {
|
|
356
356
|
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +i + "v" + +a + "h" + -i + "Z";
|
|
@@ -364,10 +364,10 @@ function dt(t) {
|
|
|
364
364
|
return t;
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Rt(t) {
|
|
368
368
|
return t[0];
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Vt(t) {
|
|
371
371
|
return t[1];
|
|
372
372
|
}
|
|
373
373
|
var Wt = Array.prototype.slice;
|
|
@@ -377,8 +377,8 @@ function Ut(t) {
|
|
|
377
377
|
function Gt(t) {
|
|
378
378
|
return t.target;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
var e = Ut, i = Gt, a =
|
|
380
|
+
function Ht(t) {
|
|
381
|
+
var e = Ut, i = Gt, a = Rt, h = Vt, d = null;
|
|
382
382
|
function m() {
|
|
383
383
|
var _, s = Wt.call(arguments), o = e.apply(this, s), l = i.apply(this, s);
|
|
384
384
|
if (d || (d = _ = kt()), t(d, +a.apply(this, (s[0] = o, s)), +h.apply(this, s), +a.apply(this, (s[0] = l, s)), +h.apply(this, s)), _)
|
|
@@ -396,20 +396,20 @@ function Yt(t) {
|
|
|
396
396
|
return arguments.length ? (d = _ ?? null, m) : d;
|
|
397
397
|
}, m;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Xt(t, e, i, a, h) {
|
|
400
400
|
t.moveTo(e, i), t.bezierCurveTo(e = (e + a) / 2, i, e, h, a, h);
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
return
|
|
402
|
+
function Yt() {
|
|
403
|
+
return Ht(Xt);
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Qt(t) {
|
|
406
406
|
return [t.source.x1, t.y0];
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function qt(t) {
|
|
409
409
|
return [t.target.x0, t.y1];
|
|
410
410
|
}
|
|
411
411
|
function Kt() {
|
|
412
|
-
return
|
|
412
|
+
return Yt().source(Qt).target(qt);
|
|
413
413
|
}
|
|
414
414
|
var at = function() {
|
|
415
415
|
var t = /* @__PURE__ */ p(function(_, s, o, l) {
|
|
@@ -451,14 +451,14 @@ var at = function() {
|
|
|
451
451
|
}
|
|
452
452
|
}, "parseError"),
|
|
453
453
|
parse: /* @__PURE__ */ p(function(s) {
|
|
454
|
-
var o = this, l = [0], x = [], v = [null], y = [], b = this.table, M = "", T = 0, N = 0, C = 2, O = 1,
|
|
455
|
-
for (var
|
|
456
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
457
|
-
S.setInput(s,
|
|
454
|
+
var o = this, l = [0], x = [], v = [null], y = [], b = this.table, M = "", T = 0, N = 0, C = 2, O = 1, F = y.slice.call(arguments, 1), S = Object.create(this.lexer), I = { yy: {} };
|
|
455
|
+
for (var j in this.yy)
|
|
456
|
+
Object.prototype.hasOwnProperty.call(this.yy, j) && (I.yy[j] = this.yy[j]);
|
|
457
|
+
S.setInput(s, I.yy), I.yy.lexer = S, I.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
|
|
458
458
|
var D = S.yylloc;
|
|
459
459
|
y.push(D);
|
|
460
|
-
var
|
|
461
|
-
typeof
|
|
460
|
+
var z = S.options && S.options.ranges;
|
|
461
|
+
typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
462
462
|
function g(L) {
|
|
463
463
|
l.length = l.length - 2 * L, v.length = v.length - L, y.length = y.length - L;
|
|
464
464
|
}
|
|
@@ -468,11 +468,11 @@ var at = function() {
|
|
|
468
468
|
return L = x.pop() || S.lex() || O, typeof L != "number" && (L instanceof Array && (x = L, L = x.pop()), L = o.symbols_[L] || L), L;
|
|
469
469
|
}
|
|
470
470
|
p(E, "lex");
|
|
471
|
-
for (var A,
|
|
472
|
-
if (
|
|
471
|
+
for (var A, $, P, n, f = {}, u, c, r, k; ; ) {
|
|
472
|
+
if ($ = l[l.length - 1], this.defaultActions[$] ? P = this.defaultActions[$] : ((A === null || typeof A > "u") && (A = E()), P = b[$] && b[$][A]), typeof P > "u" || !P.length || !P[0]) {
|
|
473
473
|
var w = "";
|
|
474
474
|
k = [];
|
|
475
|
-
for (u in b[
|
|
475
|
+
for (u in b[$])
|
|
476
476
|
this.terminals_[u] && u > C && k.push("'" + this.terminals_[u] + "'");
|
|
477
477
|
S.showPosition ? w = "Parse error on line " + (T + 1) + `:
|
|
478
478
|
` + S.showPosition() + `
|
|
@@ -484,32 +484,32 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
484
484
|
expected: k
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
|
-
if (
|
|
488
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
489
|
-
switch (
|
|
487
|
+
if (P[0] instanceof Array && P.length > 1)
|
|
488
|
+
throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + A);
|
|
489
|
+
switch (P[0]) {
|
|
490
490
|
case 1:
|
|
491
|
-
l.push(A), v.push(S.yytext), y.push(S.yylloc), l.push(
|
|
491
|
+
l.push(A), v.push(S.yytext), y.push(S.yylloc), l.push(P[1]), A = null, N = S.yyleng, M = S.yytext, T = S.yylineno, D = S.yylloc;
|
|
492
492
|
break;
|
|
493
493
|
case 2:
|
|
494
|
-
if (c = this.productions_[
|
|
494
|
+
if (c = this.productions_[P[1]][1], f.$ = v[v.length - c], f._$ = {
|
|
495
495
|
first_line: y[y.length - (c || 1)].first_line,
|
|
496
496
|
last_line: y[y.length - 1].last_line,
|
|
497
497
|
first_column: y[y.length - (c || 1)].first_column,
|
|
498
498
|
last_column: y[y.length - 1].last_column
|
|
499
|
-
},
|
|
499
|
+
}, z && (f._$.range = [
|
|
500
500
|
y[y.length - (c || 1)].range[0],
|
|
501
501
|
y[y.length - 1].range[1]
|
|
502
502
|
]), n = this.performAction.apply(f, [
|
|
503
503
|
M,
|
|
504
504
|
N,
|
|
505
505
|
T,
|
|
506
|
-
|
|
507
|
-
|
|
506
|
+
I.yy,
|
|
507
|
+
P[1],
|
|
508
508
|
v,
|
|
509
509
|
y
|
|
510
|
-
].concat(
|
|
510
|
+
].concat(F)), typeof n < "u")
|
|
511
511
|
return n;
|
|
512
|
-
c && (l = l.slice(0, -1 * c * 2), v = v.slice(0, -1 * c), y = y.slice(0, -1 * c)), l.push(this.productions_[
|
|
512
|
+
c && (l = l.slice(0, -1 * c * 2), v = v.slice(0, -1 * c), y = y.slice(0, -1 * c)), l.push(this.productions_[P[1]][0]), v.push(f.$), y.push(f._$), r = b[l[l.length - 2]][l[l.length - 1]], l.push(r);
|
|
513
513
|
break;
|
|
514
514
|
case 3:
|
|
515
515
|
return !0;
|
|
@@ -721,17 +721,17 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
721
721
|
at.parser = at;
|
|
722
722
|
var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */ p(() => {
|
|
723
723
|
J = [], tt = [], Z = /* @__PURE__ */ new Map(), Lt();
|
|
724
|
-
}, "clear"),
|
|
724
|
+
}, "clear"), H, Jt = (H = class {
|
|
725
725
|
constructor(e, i, a = 0) {
|
|
726
726
|
this.source = e, this.target = i, this.value = a;
|
|
727
727
|
}
|
|
728
|
-
}, p(
|
|
728
|
+
}, p(H, "SankeyLink"), H), te = /* @__PURE__ */ p((t, e, i) => {
|
|
729
729
|
J.push(new Jt(t, e, i));
|
|
730
|
-
}, "addLink"),
|
|
730
|
+
}, "addLink"), X, ee = (X = class {
|
|
731
731
|
constructor(e) {
|
|
732
732
|
this.ID = e;
|
|
733
733
|
}
|
|
734
|
-
}, p(
|
|
734
|
+
}, p(X, "SankeyNode"), X), ne = /* @__PURE__ */ p((t) => {
|
|
735
735
|
t = Et.sanitizeText(t, lt());
|
|
736
736
|
let e = Z.get(t);
|
|
737
737
|
return e === void 0 && (e = new ee(t), Z.set(t, e), tt.push(e)), e;
|
|
@@ -775,39 +775,39 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
|
|
|
775
775
|
}, le = /* @__PURE__ */ p(function(t, e, i, a) {
|
|
776
776
|
const { securityLevel: h, sankey: d } = lt(), m = At.sankey;
|
|
777
777
|
let _;
|
|
778
|
-
h === "sandbox" && (_ =
|
|
779
|
-
const s = h === "sandbox" ?
|
|
778
|
+
h === "sandbox" && (_ = Y("#i" + e));
|
|
779
|
+
const s = h === "sandbox" ? Y(_.nodes()[0].contentDocument.body) : Y("body"), o = h === "sandbox" ? s.select(`[id="${e}"]`) : Y(`[id="${e}"]`), l = (d == null ? void 0 : d.width) ?? m.width, x = (d == null ? void 0 : d.height) ?? m.width, v = (d == null ? void 0 : d.useMaxWidth) ?? m.useMaxWidth, y = (d == null ? void 0 : d.nodeAlignment) ?? m.nodeAlignment, b = (d == null ? void 0 : d.prefix) ?? m.prefix, M = (d == null ? void 0 : d.suffix) ?? m.suffix, T = (d == null ? void 0 : d.showValues) ?? m.showValues, N = a.db.getGraph(), C = ae[y], O = 10;
|
|
780
780
|
Bt().nodeId((g) => g.id).nodeWidth(O).nodePadding(10 + (T ? 15 : 0)).nodeAlign(C).extent([
|
|
781
781
|
[0, 0],
|
|
782
782
|
[l, x]
|
|
783
783
|
])(N);
|
|
784
|
-
const S = Mt(
|
|
784
|
+
const S = Mt(Pt);
|
|
785
785
|
o.append("g").attr("class", "nodes").selectAll(".node").data(N.nodes).join("g").attr("class", "node").attr("id", (g) => (g.uid = gt.next("node-")).id).attr("transform", function(g) {
|
|
786
786
|
return "translate(" + g.x0 + "," + g.y0 + ")";
|
|
787
787
|
}).attr("x", (g) => g.x0).attr("y", (g) => g.y0).append("rect").attr("height", (g) => g.y1 - g.y0).attr("width", (g) => g.x1 - g.x0).attr("fill", (g) => S(g.id));
|
|
788
|
-
const
|
|
788
|
+
const I = /* @__PURE__ */ p(({ id: g, value: E }) => T ? `${g}
|
|
789
789
|
${b}${Math.round(E * 100) / 100}${M}` : g, "getText");
|
|
790
|
-
o.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(N.nodes).join("text").attr("x", (g) => g.x0 < l / 2 ? g.x1 + 6 : g.x0 - 6).attr("y", (g) => (g.y1 + g.y0) / 2).attr("dy", `${T ? "0" : "0.35"}em`).attr("text-anchor", (g) => g.x0 < l / 2 ? "start" : "end").text(
|
|
791
|
-
const
|
|
790
|
+
o.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(N.nodes).join("text").attr("x", (g) => g.x0 < l / 2 ? g.x1 + 6 : g.x0 - 6).attr("y", (g) => (g.y1 + g.y0) / 2).attr("dy", `${T ? "0" : "0.35"}em`).attr("text-anchor", (g) => g.x0 < l / 2 ? "start" : "end").text(I);
|
|
791
|
+
const j = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(N.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), D = (d == null ? void 0 : d.linkColor) ?? "gradient";
|
|
792
792
|
if (D === "gradient") {
|
|
793
|
-
const g =
|
|
793
|
+
const g = j.append("linearGradient").attr("id", (E) => (E.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (E) => E.source.x1).attr("x2", (E) => E.target.x0);
|
|
794
794
|
g.append("stop").attr("offset", "0%").attr("stop-color", (E) => S(E.source.id)), g.append("stop").attr("offset", "100%").attr("stop-color", (E) => S(E.target.id));
|
|
795
795
|
}
|
|
796
|
-
let
|
|
796
|
+
let z;
|
|
797
797
|
switch (D) {
|
|
798
798
|
case "gradient":
|
|
799
|
-
|
|
799
|
+
z = /* @__PURE__ */ p((g) => g.uid, "coloring");
|
|
800
800
|
break;
|
|
801
801
|
case "source":
|
|
802
|
-
|
|
802
|
+
z = /* @__PURE__ */ p((g) => S(g.source.id), "coloring");
|
|
803
803
|
break;
|
|
804
804
|
case "target":
|
|
805
|
-
|
|
805
|
+
z = /* @__PURE__ */ p((g) => S(g.target.id), "coloring");
|
|
806
806
|
break;
|
|
807
807
|
default:
|
|
808
|
-
|
|
808
|
+
z = D;
|
|
809
809
|
}
|
|
810
|
-
|
|
810
|
+
j.append("path").attr("d", Kt()).attr("stroke", z).attr("stroke-width", (g) => Math.max(1, g.width)), Tt(void 0, o, 0, v);
|
|
811
811
|
}, "draw"), ce = {
|
|
812
812
|
draw: le
|
|
813
813
|
}, ue = /* @__PURE__ */ p((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
|