@ucap-llm/ai-ui 1.1.20 → 1.1.22
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-49aBLVXj.mjs +151 -0
- package/_baseUniq-Duw-LCxN.mjs +418 -0
- package/ai-ui.es.js +5 -5
- package/ai-ui.umd.js +441 -398
- package/{arc-e33cf4bd.mjs → arc-CxnBoKcf.mjs} +3 -5
- package/architecture-4AB2E3PP-DpATI33S.mjs +5 -0
- package/{architectureDiagram-IEHRJDOE-8c0644d3.mjs → architectureDiagram-IEHRJDOE-CaoKd3s2.mjs} +774 -781
- package/{blockDiagram-JOT3LUYC-2e03b1f8.mjs → blockDiagram-JOT3LUYC-Dno4VG8f.mjs} +17 -21
- package/{c4Diagram-VJAJSXHY-0d7e02b1.mjs → c4Diagram-VJAJSXHY-D5HK6aXG.mjs} +45 -47
- package/channel-CjgQSUhn.mjs +5 -0
- package/{chunk-4BMEZGHF-c55a79e8.mjs → chunk-4BMEZGHF-B5q96F5j.mjs} +1 -1
- package/{chunk-A2AXSNBT-72cb8e03.mjs → chunk-A2AXSNBT-CwIw1dro.mjs} +31 -32
- package/{chunk-AEK57VVT-103a8016.mjs → chunk-AEK57VVT-CgqpfRdv.mjs} +29 -30
- package/{chunk-D6G4REZN-eb0c0a03.mjs → chunk-D6G4REZN-BuQQgKKf.mjs} +24 -24
- package/chunk-RZ5BOZE2-nBulgjak.mjs +24 -0
- package/{chunk-XZIHB7SX-697eddab.mjs → chunk-XZIHB7SX-ChfFX5tX.mjs} +1 -1
- package/classDiagram-GIVACNV2-DW4s6Pgr.mjs +16 -0
- package/classDiagram-v2-COTLJTTW-DW4s6Pgr.mjs +16 -0
- package/{clone-e06e1908.mjs → clone-BWxZJOIB.mjs} +1 -1
- package/{cytoscape.esm-9ffb4bbe.mjs → cytoscape.esm-D1A2YP3J.mjs} +133 -240
- package/{dagre-OKDRZEBW-1380cf0d.mjs → dagre-OKDRZEBW-BF7VSsgY.mjs} +25 -26
- package/{diagram-SSKATNLV-1e22cab7.mjs → diagram-SSKATNLV-BHV-tmQz.mjs} +48 -52
- package/{diagram-VNBRO52H-63b9b854.mjs → diagram-VNBRO52H-DhnmXzVl.mjs} +31 -35
- package/{erDiagram-Q7BY3M3F-6f4f40c6.mjs → erDiagram-Q7BY3M3F-yoOr4S3e.mjs} +32 -34
- package/{flowDiagram-4HSFHLVR-217f422a.mjs → flowDiagram-4HSFHLVR-Dypn-7OY.mjs} +21 -23
- package/{ganttDiagram-APWFNJXF-b1c138fc.mjs → ganttDiagram-APWFNJXF-Bpg6PwzQ.mjs} +933 -961
- package/gitGraph-O2Q2CXLX-B57Ivesv.mjs +5 -0
- package/{gitGraphDiagram-7IBYFJ6S-a40cd00c.mjs → gitGraphDiagram-7IBYFJ6S-C2SKSevj.mjs} +27 -31
- package/{graph-c2e1b9d5.mjs → graph-BqoU6xY2.mjs} +7 -9
- package/{index-4283477e.mjs → index-LXAHF7dZ.mjs} +56792 -32545
- package/info-4N47QTOZ-rUYWBWKH.mjs +5 -0
- package/infoDiagram-PH2N3AL5-Dwh9BN3B.mjs +22 -0
- package/{journeyDiagram-U35MCT3I-ea34e89d.mjs → journeyDiagram-U35MCT3I-BuJo6oNZ.mjs} +26 -28
- package/{kanban-definition-NDS4AKOZ-3dc1bdfc.mjs → kanban-definition-NDS4AKOZ-3bBL0X_A.mjs} +22 -23
- package/{layout-b7402112.mjs → layout-UCl5QdSx.mjs} +288 -308
- package/{linear-6028b26a.mjs → linear-5kjmVbWx.mjs} +136 -160
- package/{mermaid-parser.core-89f41f6f.mjs → mermaid-parser.core-BTQeWTCL.mjs} +2510 -2520
- package/{mindmap-definition-ALO5MXBD-cf0036bd.mjs → mindmap-definition-ALO5MXBD-pyGAc115.mjs} +309 -311
- package/{ordinal-980380c7.mjs → ordinal-C0oynhte.mjs} +4 -8
- package/package.json +2 -2
- package/packet-KVYON367-B0aEJOd2.mjs +5 -0
- package/pie-R6RNRRYF-mat_xgAT.mjs +5 -0
- package/pieDiagram-IB7DONF6-Dfr5jCmu.mjs +161 -0
- package/{quadrantDiagram-7GDLP6J5-4e41575d.mjs → quadrantDiagram-7GDLP6J5-CUP0tYJI.mjs} +28 -31
- package/radar-MK3ICKWK-ae8hsHN1.mjs +5 -0
- package/{requirementDiagram-KVF5MWMF-edfb0543.mjs → requirementDiagram-KVF5MWMF-O1db62rc.mjs} +47 -49
- package/{sankeyDiagram-QLVOVGJD-c0853822.mjs → sankeyDiagram-QLVOVGJD-CCf-MSR0.mjs} +113 -131
- package/{sequenceDiagram-X6HHIX6F-96ff1e7c.mjs → sequenceDiagram-X6HHIX6F-CrB4QPFZ.mjs} +40 -42
- package/{stateDiagram-DGXRK772-7c6ceb1c.mjs → stateDiagram-DGXRK772-DWFrvHEL.mjs} +8 -12
- package/stateDiagram-v2-YXO3MK2T-BuEm2W4g.mjs +16 -0
- package/style.css +10 -1
- package/{timeline-definition-BDJGKUSR-23f3d39c.mjs → timeline-definition-BDJGKUSR-ThsfvZPa.mjs} +11 -13
- package/{xychartDiagram-VJFVF3MP-9b2268b5.mjs → xychartDiagram-VJFVF3MP-D7Ns77UK.mjs} +161 -163
- package/_basePickBy-576eaf6e.mjs +0 -153
- package/_baseUniq-83e8b0cb.mjs +0 -440
- package/architecture-4AB2E3PP-1faad353.mjs +0 -10
- package/channel-283b31f1.mjs +0 -5
- package/chunk-RZ5BOZE2-97e0c31b.mjs +0 -24
- package/classDiagram-GIVACNV2-306a98b6.mjs +0 -18
- package/classDiagram-v2-COTLJTTW-306a98b6.mjs +0 -18
- package/gitGraph-O2Q2CXLX-804a8ebe.mjs +0 -10
- package/info-4N47QTOZ-6f3c3677.mjs +0 -10
- package/infoDiagram-PH2N3AL5-4c0f80b6.mjs +0 -26
- package/packet-KVYON367-3ead67ef.mjs +0 -10
- package/pie-R6RNRRYF-41122910.mjs +0 -10
- package/pieDiagram-IB7DONF6-9b4a5b06.mjs +0 -167
- package/radar-MK3ICKWK-0d996d37.mjs +0 -10
- package/stateDiagram-v2-YXO3MK2T-012aec41.mjs +0 -18
- /package/{init-f9637058.mjs → init-DjUOC4st.mjs} +0 -0
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { _ as p,
|
|
2
|
-
import { o as Mt } from "./ordinal-
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./init-f9637058.mjs";
|
|
1
|
+
import { _ as p, p as _t, q as xt, s as vt, g as bt, b as wt, a as St, c as lt, z as Lt, d as H, U as Et, y as At, k as Tt } from "./index-LXAHF7dZ.mjs";
|
|
2
|
+
import { o as Mt } from "./ordinal-C0oynhte.mjs";
|
|
5
3
|
function Nt(t) {
|
|
6
|
-
for (var e = t.length / 6 | 0, i = new Array(e), a = 0; a < e; )
|
|
7
|
-
i[a] = "#" + t.slice(a * 6, ++a * 6);
|
|
4
|
+
for (var e = t.length / 6 | 0, i = new Array(e), a = 0; a < e; ) i[a] = "#" + t.slice(a * 6, ++a * 6);
|
|
8
5
|
return i;
|
|
9
6
|
}
|
|
10
7
|
const It = Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
|
|
@@ -56,10 +53,10 @@ function Ot(t, e) {
|
|
|
56
53
|
function mt(t, e) {
|
|
57
54
|
return t.sourceLinks.length ? t.depth : e - 1;
|
|
58
55
|
}
|
|
59
|
-
function
|
|
56
|
+
function zt(t) {
|
|
60
57
|
return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Pt) - 1 : 0;
|
|
61
58
|
}
|
|
62
|
-
function
|
|
59
|
+
function X(t) {
|
|
63
60
|
return function() {
|
|
64
61
|
return t;
|
|
65
62
|
};
|
|
@@ -76,19 +73,18 @@ function Q(t, e) {
|
|
|
76
73
|
function it(t) {
|
|
77
74
|
return t.value;
|
|
78
75
|
}
|
|
79
|
-
function
|
|
76
|
+
function Dt(t) {
|
|
80
77
|
return t.index;
|
|
81
78
|
}
|
|
82
|
-
function
|
|
79
|
+
function $t(t) {
|
|
83
80
|
return t.nodes;
|
|
84
81
|
}
|
|
85
|
-
function
|
|
82
|
+
function jt(t) {
|
|
86
83
|
return t.links;
|
|
87
84
|
}
|
|
88
85
|
function ft(t, e) {
|
|
89
86
|
const i = t.get(e);
|
|
90
|
-
if (!i)
|
|
91
|
-
throw new Error("missing: " + e);
|
|
87
|
+
if (!i) throw new Error("missing: " + e);
|
|
92
88
|
return i;
|
|
93
89
|
}
|
|
94
90
|
function yt({ nodes: t }) {
|
|
@@ -101,7 +97,7 @@ function yt({ nodes: t }) {
|
|
|
101
97
|
}
|
|
102
98
|
}
|
|
103
99
|
function Bt() {
|
|
104
|
-
let t = 0, e = 0, i = 1, a = 1, h = 24, d = 8, m, _ =
|
|
100
|
+
let t = 0, e = 0, i = 1, a = 1, h = 24, d = 8, m, _ = Dt, s = mt, o, l, x = $t, v = jt, y = 6;
|
|
105
101
|
function b() {
|
|
106
102
|
const n = { nodes: x.apply(null, arguments), links: v.apply(null, arguments) };
|
|
107
103
|
return M(n), T(n), N(n), C(n), S(n), yt(n), n;
|
|
@@ -109,9 +105,9 @@ function Bt() {
|
|
|
109
105
|
b.update = function(n) {
|
|
110
106
|
return yt(n), n;
|
|
111
107
|
}, b.nodeId = function(n) {
|
|
112
|
-
return arguments.length ? (_ = typeof n == "function" ? n :
|
|
108
|
+
return arguments.length ? (_ = typeof n == "function" ? n : X(n), b) : _;
|
|
113
109
|
}, b.nodeAlign = function(n) {
|
|
114
|
-
return arguments.length ? (s = typeof n == "function" ? n :
|
|
110
|
+
return arguments.length ? (s = typeof n == "function" ? n : X(n), b) : s;
|
|
115
111
|
}, b.nodeSort = function(n) {
|
|
116
112
|
return arguments.length ? (o = n, b) : o;
|
|
117
113
|
}, b.nodeWidth = function(n) {
|
|
@@ -119,9 +115,9 @@ function Bt() {
|
|
|
119
115
|
}, b.nodePadding = function(n) {
|
|
120
116
|
return arguments.length ? (d = m = +n, b) : d;
|
|
121
117
|
}, b.nodes = function(n) {
|
|
122
|
-
return arguments.length ? (x = typeof n == "function" ? n :
|
|
118
|
+
return arguments.length ? (x = typeof n == "function" ? n : X(n), b) : x;
|
|
123
119
|
}, b.links = function(n) {
|
|
124
|
-
return arguments.length ? (v = typeof n == "function" ? n :
|
|
120
|
+
return arguments.length ? (v = typeof n == "function" ? n : X(n), b) : v;
|
|
125
121
|
}, b.linkSort = function(n) {
|
|
126
122
|
return arguments.length ? (l = n, b) : l;
|
|
127
123
|
}, b.size = function(n) {
|
|
@@ -157,8 +153,7 @@ function Bt() {
|
|
|
157
153
|
for (const { target: w } of k.sourceLinks)
|
|
158
154
|
c.add(w);
|
|
159
155
|
}
|
|
160
|
-
if (++r > f)
|
|
161
|
-
throw new Error("circular link");
|
|
156
|
+
if (++r > f) throw new Error("circular link");
|
|
162
157
|
u = c, c = /* @__PURE__ */ new Set();
|
|
163
158
|
}
|
|
164
159
|
}
|
|
@@ -171,20 +166,18 @@ function Bt() {
|
|
|
171
166
|
for (const { source: w } of k.targetLinks)
|
|
172
167
|
c.add(w);
|
|
173
168
|
}
|
|
174
|
-
if (++r > f)
|
|
175
|
-
throw new Error("circular link");
|
|
169
|
+
if (++r > f) throw new Error("circular link");
|
|
176
170
|
u = c, c = /* @__PURE__ */ new Set();
|
|
177
171
|
}
|
|
178
172
|
}
|
|
179
|
-
function
|
|
173
|
+
function D({ nodes: n }) {
|
|
180
174
|
const f = ct(n, (r) => r.depth) + 1, u = (i - t - h) / (f - 1), c = new Array(f);
|
|
181
175
|
for (const r of n) {
|
|
182
176
|
const k = Math.max(0, Math.min(f - 1, Math.floor(s.call(null, r, f))));
|
|
183
177
|
r.layer = k, r.x0 = t + k * u, r.x1 = r.x0 + h, c[k] ? c[k].push(r) : c[k] = [r];
|
|
184
178
|
}
|
|
185
|
-
if (o)
|
|
186
|
-
|
|
187
|
-
r.sort(o);
|
|
179
|
+
if (o) for (const r of c)
|
|
180
|
+
r.sort(o);
|
|
188
181
|
return c;
|
|
189
182
|
}
|
|
190
183
|
function R(n) {
|
|
@@ -205,52 +198,50 @@ function Bt() {
|
|
|
205
198
|
}
|
|
206
199
|
}
|
|
207
200
|
function S(n) {
|
|
208
|
-
const f =
|
|
201
|
+
const f = D(n);
|
|
209
202
|
m = Math.min(d, (a - e) / (ct(f, (u) => u.length) - 1)), R(f);
|
|
210
203
|
for (let u = 0; u < y; ++u) {
|
|
211
204
|
const c = Math.pow(0.99, u), r = Math.max(1 - c, (u + 1) / y);
|
|
212
|
-
|
|
205
|
+
B(f, c, r), P(f, c, r);
|
|
213
206
|
}
|
|
214
207
|
}
|
|
215
208
|
function P(n, f, u) {
|
|
216
209
|
for (let c = 1, r = n.length; c < r; ++c) {
|
|
217
210
|
const k = n[c];
|
|
218
211
|
for (const w of k) {
|
|
219
|
-
let L = 0,
|
|
220
|
-
for (const { source:
|
|
221
|
-
let
|
|
222
|
-
L +=
|
|
212
|
+
let L = 0, F = 0;
|
|
213
|
+
for (const { source: Y, value: et } of w.targetLinks) {
|
|
214
|
+
let q = et * (w.layer - Y.layer);
|
|
215
|
+
L += $(Y, w) * q, F += q;
|
|
223
216
|
}
|
|
224
|
-
if (!(
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
w.y0 += W, w.y1 += W, E(w);
|
|
217
|
+
if (!(F > 0)) continue;
|
|
218
|
+
let G = (L / F - w.y0) * f;
|
|
219
|
+
w.y0 += G, w.y1 += G, E(w);
|
|
228
220
|
}
|
|
229
|
-
o === void 0 && k.sort(Q),
|
|
221
|
+
o === void 0 && k.sort(Q), O(k, u);
|
|
230
222
|
}
|
|
231
223
|
}
|
|
232
|
-
function
|
|
224
|
+
function B(n, f, u) {
|
|
233
225
|
for (let c = n.length, r = c - 2; r >= 0; --r) {
|
|
234
226
|
const k = n[r];
|
|
235
227
|
for (const w of k) {
|
|
236
|
-
let L = 0,
|
|
237
|
-
for (const { target:
|
|
238
|
-
let
|
|
239
|
-
L += I(w,
|
|
228
|
+
let L = 0, F = 0;
|
|
229
|
+
for (const { target: Y, value: et } of w.sourceLinks) {
|
|
230
|
+
let q = et * (Y.layer - w.layer);
|
|
231
|
+
L += I(w, Y) * q, F += q;
|
|
240
232
|
}
|
|
241
|
-
if (!(
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
w.y0 += W, w.y1 += W, E(w);
|
|
233
|
+
if (!(F > 0)) continue;
|
|
234
|
+
let G = (L / F - w.y0) * f;
|
|
235
|
+
w.y0 += G, w.y1 += G, E(w);
|
|
245
236
|
}
|
|
246
|
-
o === void 0 && k.sort(Q),
|
|
237
|
+
o === void 0 && k.sort(Q), O(k, u);
|
|
247
238
|
}
|
|
248
239
|
}
|
|
249
|
-
function
|
|
240
|
+
function O(n, f) {
|
|
250
241
|
const u = n.length >> 1, c = n[u];
|
|
251
|
-
g(n, c.y0 - m, u - 1, f),
|
|
242
|
+
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
243
|
}
|
|
253
|
-
function
|
|
244
|
+
function z(n, f, u, c) {
|
|
254
245
|
for (; u < n.length; ++u) {
|
|
255
246
|
const r = n[u], k = (f - r.y0) * c;
|
|
256
247
|
k > 1e-6 && (r.y0 += k, r.y1 += k), f = r.y1 + m;
|
|
@@ -275,16 +266,14 @@ function Bt() {
|
|
|
275
266
|
for (const { sourceLinks: f, targetLinks: u } of n)
|
|
276
267
|
f.sort(ht), u.sort(ut);
|
|
277
268
|
}
|
|
278
|
-
function
|
|
269
|
+
function $(n, f) {
|
|
279
270
|
let u = n.y0 - (n.sourceLinks.length - 1) * m / 2;
|
|
280
271
|
for (const { target: c, width: r } of n.sourceLinks) {
|
|
281
|
-
if (c === f)
|
|
282
|
-
break;
|
|
272
|
+
if (c === f) break;
|
|
283
273
|
u += r + m;
|
|
284
274
|
}
|
|
285
275
|
for (const { source: c, width: r } of f.targetLinks) {
|
|
286
|
-
if (c === n)
|
|
287
|
-
break;
|
|
276
|
+
if (c === n) break;
|
|
288
277
|
u -= r;
|
|
289
278
|
}
|
|
290
279
|
return u;
|
|
@@ -292,20 +281,18 @@ function Bt() {
|
|
|
292
281
|
function I(n, f) {
|
|
293
282
|
let u = f.y0 - (f.targetLinks.length - 1) * m / 2;
|
|
294
283
|
for (const { source: c, width: r } of f.targetLinks) {
|
|
295
|
-
if (c === n)
|
|
296
|
-
break;
|
|
284
|
+
if (c === n) break;
|
|
297
285
|
u += r + m;
|
|
298
286
|
}
|
|
299
287
|
for (const { target: c, width: r } of n.sourceLinks) {
|
|
300
|
-
if (c === f)
|
|
301
|
-
break;
|
|
288
|
+
if (c === f) break;
|
|
302
289
|
u -= r;
|
|
303
290
|
}
|
|
304
291
|
return u;
|
|
305
292
|
}
|
|
306
293
|
return b;
|
|
307
294
|
}
|
|
308
|
-
var st = Math.PI, rt = 2 * st,
|
|
295
|
+
var st = Math.PI, rt = 2 * st, V = 1e-6, Rt = rt - V;
|
|
309
296
|
function ot() {
|
|
310
297
|
this._x0 = this._y0 = // start of current subpath
|
|
311
298
|
this._x1 = this._y1 = null, this._ = "";
|
|
@@ -333,24 +320,21 @@ ot.prototype = kt.prototype = {
|
|
|
333
320
|
arcTo: function(t, e, i, a, h) {
|
|
334
321
|
t = +t, e = +e, i = +i, a = +a, h = +h;
|
|
335
322
|
var d = this._x1, m = this._y1, _ = i - t, s = a - e, o = d - t, l = m - e, x = o * o + l * l;
|
|
336
|
-
if (h < 0)
|
|
337
|
-
throw new Error("negative radius: " + h);
|
|
323
|
+
if (h < 0) throw new Error("negative radius: " + h);
|
|
338
324
|
if (this._x1 === null)
|
|
339
325
|
this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
|
|
340
|
-
else if (x >
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}
|
|
326
|
+
else if (x > V) if (!(Math.abs(l * _ - s * o) > V) || !h)
|
|
327
|
+
this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
|
|
328
|
+
else {
|
|
329
|
+
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), D = C / N, R = C / T;
|
|
330
|
+
Math.abs(D - 1) > V && (this._ += "L" + (t + D * o) + "," + (e + D * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * v > o * y) + "," + (this._x1 = t + R * _) + "," + (this._y1 = e + R * s);
|
|
331
|
+
}
|
|
347
332
|
},
|
|
348
333
|
arc: function(t, e, i, a, h, d) {
|
|
349
334
|
t = +t, e = +e, i = +i, d = !!d;
|
|
350
335
|
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
|
-
if (i < 0)
|
|
352
|
-
|
|
353
|
-
this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > F || Math.abs(this._y1 - o) > F) && (this._ += "L" + s + "," + o), i && (x < 0 && (x = x % rt + rt), x > Rt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - m) + "," + (e - _) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : x > F && (this._ += "A" + i + "," + i + ",0," + +(x >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
|
|
336
|
+
if (i < 0) throw new Error("negative radius: " + i);
|
|
337
|
+
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 > Rt ? 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
338
|
},
|
|
355
339
|
rect: function(t, e, i, a) {
|
|
356
340
|
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +i + "v" + +a + "h" + -i + "Z";
|
|
@@ -364,10 +348,10 @@ function dt(t) {
|
|
|
364
348
|
return t;
|
|
365
349
|
};
|
|
366
350
|
}
|
|
367
|
-
function
|
|
351
|
+
function Ft(t) {
|
|
368
352
|
return t[0];
|
|
369
353
|
}
|
|
370
|
-
function
|
|
354
|
+
function Vt(t) {
|
|
371
355
|
return t[1];
|
|
372
356
|
}
|
|
373
357
|
var Wt = Array.prototype.slice;
|
|
@@ -378,11 +362,10 @@ function Gt(t) {
|
|
|
378
362
|
return t.target;
|
|
379
363
|
}
|
|
380
364
|
function Yt(t) {
|
|
381
|
-
var e = Ut, i = Gt, a =
|
|
365
|
+
var e = Ut, i = Gt, a = Ft, h = Vt, d = null;
|
|
382
366
|
function m() {
|
|
383
367
|
var _, s = Wt.call(arguments), o = e.apply(this, s), l = i.apply(this, s);
|
|
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)), _)
|
|
385
|
-
return d = null, _ + "" || null;
|
|
368
|
+
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)), _) return d = null, _ + "" || null;
|
|
386
369
|
}
|
|
387
370
|
return m.source = function(_) {
|
|
388
371
|
return arguments.length ? (e = _, m) : e;
|
|
@@ -396,25 +379,24 @@ function Yt(t) {
|
|
|
396
379
|
return arguments.length ? (d = _ ?? null, m) : d;
|
|
397
380
|
}, m;
|
|
398
381
|
}
|
|
399
|
-
function
|
|
382
|
+
function qt(t, e, i, a, h) {
|
|
400
383
|
t.moveTo(e, i), t.bezierCurveTo(e = (e + a) / 2, i, e, h, a, h);
|
|
401
384
|
}
|
|
402
|
-
function
|
|
403
|
-
return Yt(
|
|
385
|
+
function Ht() {
|
|
386
|
+
return Yt(qt);
|
|
404
387
|
}
|
|
405
|
-
function
|
|
388
|
+
function Xt(t) {
|
|
406
389
|
return [t.source.x1, t.y0];
|
|
407
390
|
}
|
|
408
391
|
function Qt(t) {
|
|
409
392
|
return [t.target.x0, t.y1];
|
|
410
393
|
}
|
|
411
394
|
function Kt() {
|
|
412
|
-
return
|
|
395
|
+
return Ht().source(Xt).target(Qt);
|
|
413
396
|
}
|
|
414
397
|
var at = function() {
|
|
415
398
|
var t = /* @__PURE__ */ p(function(_, s, o, l) {
|
|
416
|
-
for (o = o || {}, l = _.length; l--; o[_[l]] = s)
|
|
417
|
-
;
|
|
399
|
+
for (o = o || {}, l = _.length; l--; o[_[l]] = s) ;
|
|
418
400
|
return o;
|
|
419
401
|
}, "o"), e = [1, 9], i = [1, 10], a = [1, 5, 10, 12], h = {
|
|
420
402
|
trace: /* @__PURE__ */ p(function() {
|
|
@@ -451,13 +433,13 @@ var at = function() {
|
|
|
451
433
|
}
|
|
452
434
|
}, "parseError"),
|
|
453
435
|
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,
|
|
455
|
-
for (var
|
|
456
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
436
|
+
var o = this, l = [0], x = [], v = [null], y = [], b = this.table, M = "", T = 0, N = 0, C = 2, D = 1, R = y.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} };
|
|
437
|
+
for (var B in this.yy)
|
|
438
|
+
Object.prototype.hasOwnProperty.call(this.yy, B) && (P.yy[B] = this.yy[B]);
|
|
457
439
|
S.setInput(s, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
|
|
458
|
-
var
|
|
459
|
-
y.push(
|
|
460
|
-
var
|
|
440
|
+
var O = S.yylloc;
|
|
441
|
+
y.push(O);
|
|
442
|
+
var z = S.options && S.options.ranges;
|
|
461
443
|
typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
462
444
|
function g(L) {
|
|
463
445
|
l.length = l.length - 2 * L, v.length = v.length - L, y.length = y.length - L;
|
|
@@ -465,30 +447,30 @@ var at = function() {
|
|
|
465
447
|
p(g, "popStack");
|
|
466
448
|
function E() {
|
|
467
449
|
var L;
|
|
468
|
-
return L = x.pop() || S.lex() ||
|
|
450
|
+
return L = x.pop() || S.lex() || D, typeof L != "number" && (L instanceof Array && (x = L, L = x.pop()), L = o.symbols_[L] || L), L;
|
|
469
451
|
}
|
|
470
452
|
p(E, "lex");
|
|
471
|
-
for (var A,
|
|
472
|
-
if (
|
|
453
|
+
for (var A, $, I, n, f = {}, u, c, r, k; ; ) {
|
|
454
|
+
if ($ = l[l.length - 1], this.defaultActions[$] ? I = this.defaultActions[$] : ((A === null || typeof A > "u") && (A = E()), I = b[$] && b[$][A]), typeof I > "u" || !I.length || !I[0]) {
|
|
473
455
|
var w = "";
|
|
474
456
|
k = [];
|
|
475
|
-
for (u in b[
|
|
457
|
+
for (u in b[$])
|
|
476
458
|
this.terminals_[u] && u > C && k.push("'" + this.terminals_[u] + "'");
|
|
477
459
|
S.showPosition ? w = "Parse error on line " + (T + 1) + `:
|
|
478
460
|
` + S.showPosition() + `
|
|
479
|
-
Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A ==
|
|
461
|
+
Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A == D ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(w, {
|
|
480
462
|
text: S.match,
|
|
481
463
|
token: this.terminals_[A] || A,
|
|
482
464
|
line: S.yylineno,
|
|
483
|
-
loc:
|
|
465
|
+
loc: O,
|
|
484
466
|
expected: k
|
|
485
467
|
});
|
|
486
468
|
}
|
|
487
469
|
if (I[0] instanceof Array && I.length > 1)
|
|
488
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
470
|
+
throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + A);
|
|
489
471
|
switch (I[0]) {
|
|
490
472
|
case 1:
|
|
491
|
-
l.push(A), v.push(S.yytext), y.push(S.yylloc), l.push(I[1]), A = null, N = S.yyleng, M = S.yytext, T = S.yylineno,
|
|
473
|
+
l.push(A), v.push(S.yytext), y.push(S.yylloc), l.push(I[1]), A = null, N = S.yyleng, M = S.yytext, T = S.yylineno, O = S.yylloc;
|
|
492
474
|
break;
|
|
493
475
|
case 2:
|
|
494
476
|
if (c = this.productions_[I[1]][1], f.$ = v[v.length - c], f._$ = {
|
|
@@ -496,7 +478,7 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
496
478
|
last_line: y[y.length - 1].last_line,
|
|
497
479
|
first_column: y[y.length - (c || 1)].first_column,
|
|
498
480
|
last_column: y[y.length - 1].last_column
|
|
499
|
-
},
|
|
481
|
+
}, z && (f._$.range = [
|
|
500
482
|
y[y.length - (c || 1)].range[0],
|
|
501
483
|
y[y.length - 1].range[1]
|
|
502
484
|
]), n = this.performAction.apply(f, [
|
|
@@ -720,19 +702,19 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
720
702
|
}();
|
|
721
703
|
at.parser = at;
|
|
722
704
|
var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */ p(() => {
|
|
723
|
-
J = [], tt = [], Z = /* @__PURE__ */ new Map(),
|
|
724
|
-
}, "clear"),
|
|
705
|
+
J = [], tt = [], Z = /* @__PURE__ */ new Map(), At();
|
|
706
|
+
}, "clear"), W, Jt = (W = class {
|
|
725
707
|
constructor(e, i, a = 0) {
|
|
726
708
|
this.source = e, this.target = i, this.value = a;
|
|
727
709
|
}
|
|
728
|
-
}, p(
|
|
710
|
+
}, p(W, "SankeyLink"), W), te = /* @__PURE__ */ p((t, e, i) => {
|
|
729
711
|
J.push(new Jt(t, e, i));
|
|
730
|
-
}, "addLink"),
|
|
712
|
+
}, "addLink"), U, ee = (U = class {
|
|
731
713
|
constructor(e) {
|
|
732
714
|
this.ID = e;
|
|
733
715
|
}
|
|
734
|
-
}, p(
|
|
735
|
-
t =
|
|
716
|
+
}, p(U, "SankeyNode"), U), ne = /* @__PURE__ */ p((t) => {
|
|
717
|
+
t = Tt.sanitizeText(t, lt());
|
|
736
718
|
let e = Z.get(t);
|
|
737
719
|
return e === void 0 && (e = new ee(t), Z.set(t, e), tt.push(e)), e;
|
|
738
720
|
}, "findOrCreateNode"), ie = /* @__PURE__ */ p(() => tt, "getNodes"), se = /* @__PURE__ */ p(() => J, "getLinks"), re = /* @__PURE__ */ p(() => ({
|
|
@@ -750,16 +732,16 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
|
|
|
750
732
|
getGraph: re,
|
|
751
733
|
addLink: te,
|
|
752
734
|
findOrCreateNode: ne,
|
|
753
|
-
getAccTitle:
|
|
754
|
-
setAccTitle:
|
|
755
|
-
getAccDescription:
|
|
756
|
-
setAccDescription:
|
|
757
|
-
getDiagramTitle:
|
|
758
|
-
setDiagramTitle:
|
|
735
|
+
getAccTitle: St,
|
|
736
|
+
setAccTitle: wt,
|
|
737
|
+
getAccDescription: bt,
|
|
738
|
+
setAccDescription: vt,
|
|
739
|
+
getDiagramTitle: xt,
|
|
740
|
+
setDiagramTitle: _t,
|
|
759
741
|
clear: Zt
|
|
760
|
-
},
|
|
742
|
+
}, j, gt = (j = class {
|
|
761
743
|
static next(e) {
|
|
762
|
-
return new
|
|
744
|
+
return new j(e + ++j.count);
|
|
763
745
|
}
|
|
764
746
|
constructor(e) {
|
|
765
747
|
this.id = e, this.href = `#${e}`;
|
|
@@ -767,17 +749,17 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
|
|
|
767
749
|
toString() {
|
|
768
750
|
return "url(" + this.href + ")";
|
|
769
751
|
}
|
|
770
|
-
}, p(
|
|
752
|
+
}, p(j, "Uid"), j.count = 0, j), ae = {
|
|
771
753
|
left: Ct,
|
|
772
754
|
right: Ot,
|
|
773
|
-
center:
|
|
755
|
+
center: zt,
|
|
774
756
|
justify: mt
|
|
775
757
|
}, le = /* @__PURE__ */ p(function(t, e, i, a) {
|
|
776
|
-
const { securityLevel: h, sankey: d } = lt(), m =
|
|
758
|
+
const { securityLevel: h, sankey: d } = lt(), m = Lt.sankey;
|
|
777
759
|
let _;
|
|
778
|
-
h === "sandbox" && (_ =
|
|
779
|
-
const s = h === "sandbox" ?
|
|
780
|
-
Bt().nodeId((g) => g.id).nodeWidth(
|
|
760
|
+
h === "sandbox" && (_ = H("#i" + e));
|
|
761
|
+
const s = h === "sandbox" ? H(_.nodes()[0].contentDocument.body) : H("body"), o = h === "sandbox" ? s.select(`[id="${e}"]`) : H(`[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];
|
|
762
|
+
Bt().nodeId((g) => g.id).nodeWidth(10).nodePadding(10 + (T ? 15 : 0)).nodeAlign(C).extent([
|
|
781
763
|
[0, 0],
|
|
782
764
|
[l, x]
|
|
783
765
|
])(N);
|
|
@@ -788,26 +770,26 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
|
|
|
788
770
|
const P = /* @__PURE__ */ p(({ id: g, value: E }) => T ? `${g}
|
|
789
771
|
${b}${Math.round(E * 100) / 100}${M}` : g, "getText");
|
|
790
772
|
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(P);
|
|
791
|
-
const
|
|
792
|
-
if (
|
|
793
|
-
const g =
|
|
773
|
+
const B = 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"), O = (d == null ? void 0 : d.linkColor) ?? "gradient";
|
|
774
|
+
if (O === "gradient") {
|
|
775
|
+
const g = B.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
776
|
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
777
|
}
|
|
796
|
-
let
|
|
797
|
-
switch (
|
|
778
|
+
let z;
|
|
779
|
+
switch (O) {
|
|
798
780
|
case "gradient":
|
|
799
|
-
|
|
781
|
+
z = /* @__PURE__ */ p((g) => g.uid, "coloring");
|
|
800
782
|
break;
|
|
801
783
|
case "source":
|
|
802
|
-
|
|
784
|
+
z = /* @__PURE__ */ p((g) => S(g.source.id), "coloring");
|
|
803
785
|
break;
|
|
804
786
|
case "target":
|
|
805
|
-
|
|
787
|
+
z = /* @__PURE__ */ p((g) => S(g.target.id), "coloring");
|
|
806
788
|
break;
|
|
807
789
|
default:
|
|
808
|
-
|
|
790
|
+
z = O;
|
|
809
791
|
}
|
|
810
|
-
|
|
792
|
+
B.append("path").attr("d", Kt()).attr("stroke", z).attr("stroke-width", (g) => Math.max(1, g.width)), Et(void 0, o, 0, v);
|
|
811
793
|
}, "draw"), ce = {
|
|
812
794
|
draw: le
|
|
813
795
|
}, ue = /* @__PURE__ */ p((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
|
|
@@ -815,12 +797,12 @@ ${b}${Math.round(E * 100) / 100}${M}` : g, "getText");
|
|
|
815
797
|
font-family: ${t.fontFamily};
|
|
816
798
|
}`, "getStyles"), fe = he, ye = K.parse.bind(K);
|
|
817
799
|
K.parse = (t) => ye(ue(t));
|
|
818
|
-
var
|
|
800
|
+
var pe = {
|
|
819
801
|
styles: fe,
|
|
820
802
|
parser: K,
|
|
821
803
|
db: oe,
|
|
822
804
|
renderer: ce
|
|
823
805
|
};
|
|
824
806
|
export {
|
|
825
|
-
|
|
807
|
+
pe as diagram
|
|
826
808
|
};
|