@marimo-team/islands 0.12.1-dev2 → 0.12.1-dev21
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/dist/{ConnectedDataExplorerComponent-BUkHSSQ3.js → ConnectedDataExplorerComponent-DNQoDjFe.js} +8 -8
- package/dist/{VegaLite-D2gsHKuf.js → VegaLite-C61XFnJy.js} +2456 -2455
- package/dist/{_baseUniq-CGdEI3Nv.js → _baseUniq-BVJ8xAuG.js} +1 -1
- package/dist/{any-language-editor-CKyudq2-.js → any-language-editor-OJReD1ph.js} +176 -177
- package/dist/architectureDiagram-IEHRJDOE-C5szj5L-.js +4634 -0
- package/dist/assets/{save-worker-J2nVA3vw.js → save-worker-CYdkP5Ic.js} +5 -5
- package/dist/assets/{worker-6ypxTHEH.js → worker-CH7zxkMA.js} +5 -5
- package/dist/assets/{worker-0hM8VAjI.js → worker-DEw2ZetQ.js} +5 -5
- package/dist/{blockDiagram-ZHA2E4KO-BlCDChLH.js → blockDiagram-JOT3LUYC-6huJKNk4.js} +4 -4
- package/dist/{c4Diagram-6F5ED5ID-niLscHfK.js → c4Diagram-VJAJSXHY-DLdlB4_f.js} +2 -2
- package/dist/{channel-Bt8mGm9q.js → channel-C4MpN-FJ.js} +1 -1
- package/dist/{chunk-TMUBEWPD-CQLP9BEl.js → chunk-4BMEZGHF-CczBKfna.js} +1 -1
- package/dist/chunk-A2AXSNBT-BsMPztSQ.js +1372 -0
- package/dist/chunk-AEK57VVT-B6c3n8K2.js +1415 -0
- package/dist/{chunk-ASOPGD6M-DCxLLtgf.js → chunk-D6G4REZN-X8xBS5rG.js} +1 -1
- package/dist/{chunk-5HRBRIJM-DjjlC6eW.js → chunk-RZ5BOZE2-CUqnF2K6.js} +1 -1
- package/dist/{chunk-KFBOBJHC-DPkQurpv.js → chunk-XZIHB7SX-CSouwcyb.js} +1 -1
- package/dist/classDiagram-GIVACNV2-CG_R_HQh.js +16 -0
- package/dist/classDiagram-v2-COTLJTTW-CG_R_HQh.js +16 -0
- package/dist/{clike-BLr83cjT.js → clike-BUuHEmgZ.js} +19 -17
- package/dist/{clone-COI_V4qE.js → clone-DK3J-MiR.js} +1 -1
- package/dist/{dagre-4EVJKHTY-DPsWdzds.js → dagre-OKDRZEBW-D8zhCeNW.js} +46 -46
- package/dist/{data-editor-D2rMsHxb.js → data-editor-BHWBseKi.js} +27 -22
- package/dist/diagram-SSKATNLV-pHZ4gvQ1.js +221 -0
- package/dist/{diagram-QW4FP2JN-D4dzrYii.js → diagram-VNBRO52H-D5_43LWo.js} +28 -28
- package/dist/{dockerfile-CFG_IPGn.js → dockerfile-DIy8NleC.js} +1 -1
- package/dist/erDiagram-Q7BY3M3F-CqUXZyK-.js +841 -0
- package/dist/{factor-DJHfQ4a1.js → factor-DDOC7X6P.js} +1 -1
- package/dist/flowDiagram-4HSFHLVR-DwhP_PW-.js +1622 -0
- package/dist/ganttDiagram-APWFNJXF-Coo7g8mK.js +1681 -0
- package/dist/{gitGraphDiagram-NRZ2UAAF-CO9Yfk-1.js → gitGraphDiagram-7IBYFJ6S-CJM5LDZc.js} +55 -55
- package/dist/{graph-j21MX5m5.js → graph-DXseY-wc.js} +3 -3
- package/dist/{groovy-CdgvOO23.js → groovy-DZeT_VM-.js} +1 -1
- package/dist/{index-DwhNQhNY.js → index-B-lvhTmE.js} +1 -1
- package/dist/{index-CZoype9l.js → index-B4nMPVvH.js} +1 -1
- package/dist/{index-C-FP0asF.js → index-BJcH72DF.js} +1 -1
- package/dist/{index-DATq7mzH.js → index-BUjAylGO.js} +1 -1
- package/dist/{index-CNYIP8n0.js → index-BeNQgFqm.js} +1 -1
- package/dist/{index-CqtUFj8g.js → index-BfQvDHaW.js} +1 -1
- package/dist/{index-D83p58Zi.js → index-BnGDaicg.js} +1 -1
- package/dist/{index-CxqVUOhW.js → index-C2ispfH7.js} +1 -1
- package/dist/{index-Cr0IVnKP.js → index-C31uOHRg.js} +3 -3
- package/dist/{index-4YXC3aOd.js → index-CwJWNsd3.js} +1 -1
- package/dist/{index-Wlh2yRsy.js → index-DC3Cnx5t.js} +1 -1
- package/dist/{index-_v--1fvH.js → index-DCcdmTNw.js} +1 -1
- package/dist/{index-Ec1JnxMr.js → index-DMfwuBgb.js} +1 -1
- package/dist/{index-VZAogpU3.js → index-DWPlo8vh.js} +1 -1
- package/dist/{index-B8argTgS.js → index-DYFTJIXf.js} +1 -1
- package/dist/{infoDiagram-A4XQUW5V-D6HtVB0K.js → infoDiagram-PH2N3AL5-CAFARnGi.js} +5 -5
- package/dist/{journeyDiagram-G5WM74LC-DMj7UaUs.js → journeyDiagram-U35MCT3I-CxCG-gu9.js} +34 -35
- package/dist/{kanban-definition-QRCXZQQD-C9sAvwvv.js → kanban-definition-NDS4AKOZ-DXWk4fBs.js} +26 -25
- package/dist/{layout-DnpJ8ssh.js → layout-DCbiAC-B.js} +4 -4
- package/dist/{linear-C7S_zUSg.js → linear-C-BjrWtA.js} +1 -1
- package/dist/{main-jjvPwD9F.js → main-VRYALaFR.js} +31084 -30575
- package/dist/main.js +1 -1
- package/dist/mermaid-3srgUkji.js +11991 -0
- package/dist/{min-DNi_26db.js → min-C6jNU-8q.js} +2 -2
- package/dist/{mindmap-definition-GWI6TPTV-Bbg64FAI.js → mindmap-definition-ALO5MXBD-ItSGCYxS.js} +3 -2
- package/dist/{nsis-BtA0qkjU.js → nsis-fePjrhq7.js} +1 -1
- package/dist/{pascal-ixanSKUz.js → pascal-De0D6mP7.js} +1 -1
- package/dist/{pieDiagram-YF2LJOPJ-Cr3o9epk.js → pieDiagram-IB7DONF6-DvX9YZO3.js} +38 -38
- package/dist/{quadrantDiagram-OS5C2QUG-CTdokV-X.js → quadrantDiagram-7GDLP6J5-BbXv1kiZ.js} +2 -2
- package/dist/{gitGraph-YCYPL57B-C6vjpJLv.js → radar-MK3ICKWK-Chc5umY2.js} +3259 -2897
- package/dist/{react-plotly-D7fFNQUF.js → react-plotly--Re2eJt2.js} +1 -1
- package/dist/requirementDiagram-KVF5MWMF-0r_3Jc_R.js +851 -0
- package/dist/{sankeyDiagram-Y46BX6SQ-CtGs7dt9.js → sankeyDiagram-QLVOVGJD-eycVAOR9.js} +152 -149
- package/dist/sequenceDiagram-X6HHIX6F-DQpYFs9_.js +2281 -0
- package/dist/{simple-mode-HGTvdazT.js → simple-mode-B0dvCdAA.js} +15 -14
- package/dist/slides-component-BM71y3QA.js +3782 -0
- package/dist/{stateDiagram-MAYHULR4-HCOwrhPJ.js → stateDiagram-DGXRK772--5awulBB.js} +41 -39
- package/dist/stateDiagram-v2-YXO3MK2T-CrxS4RqA.js +16 -0
- package/dist/style.css +1 -1
- package/dist/{time-Cf454IRV.js → time-aNhcx3m7.js} +2 -2
- package/dist/{timeline-definition-U7ZMHBDA-AcXJneLr.js → timeline-definition-BDJGKUSR-D5qQYaXU.js} +25 -25
- package/dist/{vega-component-DN01b8IT.js → vega-component-IC6ZSnx9.js} +2 -2
- package/dist/{xquery-xQxle02u.js → xquery-BUQdORAS.js} +72 -76
- package/dist/{xychartDiagram-6QU3TZC5-B3SwzwIL.js → xychartDiagram-VJFVF3MP-Ceb_sCs0.js} +11 -11
- package/package.json +25 -23
- package/dist/architectureDiagram-UYN6MBPD-C8FCwy4e.js +0 -4595
- package/dist/chunk-7U56Z5CX-D1T9hvBU.js +0 -1215
- package/dist/chunk-T2TOU4HS-DcM_xxju.js +0 -1303
- package/dist/classDiagram-LNE6IOMH-XbDq3sOW.js +0 -14
- package/dist/classDiagram-v2-MQ7JQ4JX-XbDq3sOW.js +0 -14
- package/dist/erDiagram-6RL3IURR-13ULGiOU.js +0 -938
- package/dist/flowDiagram-7ASYPVHJ-CMtLojGE.js +0 -1484
- package/dist/ganttDiagram-NTVNEXSI-Crv4rrPG.js +0 -1679
- package/dist/mermaid-BwpuxK20.js +0 -12937
- package/dist/requirementDiagram-MIRIMTAZ-Bz15K_7J.js +0 -769
- package/dist/sequenceDiagram-G6AWOVSC-D0hnYjDZ.js +0 -2274
- package/dist/slides-component-DM7nuuqG.js +0 -3776
- package/dist/stateDiagram-v2-4JROLMXI-Cj6uqksM.js +0 -14
- package/dist/stex-92raWT1r.js +0 -129
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as p, q as xt, t as vt, s as wt, g as bt, b as St, a as Lt, c as lt, A as Et, d as H, T as At, z as Tt, k as Mt } from "./mermaid-3srgUkji.js";
|
|
2
2
|
import { o as Nt } from "./ordinal-CYN5qNoq.js";
|
|
3
3
|
import { c as It } from "./colors-BD7LS4qt.js";
|
|
4
4
|
const Pt = It("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
|
|
@@ -43,7 +43,7 @@ function ct(t, e) {
|
|
|
43
43
|
(i = e(t[r], r, t)) != null && i > a && (a = i);
|
|
44
44
|
return a;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function mt(t, e) {
|
|
47
47
|
var o = t.length, r = -1, i, a;
|
|
48
48
|
if (e == null) {
|
|
49
49
|
for (; ++r < o; )
|
|
@@ -67,22 +67,22 @@ function nt(t, e) {
|
|
|
67
67
|
(i = +e(t[r], r, t)) && (a += i);
|
|
68
68
|
return a;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function zt(t) {
|
|
71
71
|
return t.target.depth;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Dt(t) {
|
|
74
74
|
return t.depth;
|
|
75
75
|
}
|
|
76
76
|
function $t(t, e) {
|
|
77
77
|
return e - 1 - t.height;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function kt(t, e) {
|
|
80
80
|
return t.sourceLinks.length ? t.depth : e - 1;
|
|
81
81
|
}
|
|
82
82
|
function jt(t) {
|
|
83
|
-
return t.targetLinks.length ? t.depth : t.sourceLinks.length ?
|
|
83
|
+
return t.targetLinks.length ? t.depth : t.sourceLinks.length ? mt(t.sourceLinks, zt) - 1 : 0;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function X(t) {
|
|
86
86
|
return function() {
|
|
87
87
|
return t;
|
|
88
88
|
};
|
|
@@ -105,7 +105,7 @@ function Bt(t) {
|
|
|
105
105
|
function Rt(t) {
|
|
106
106
|
return t.nodes;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Ft(t) {
|
|
109
109
|
return t.links;
|
|
110
110
|
}
|
|
111
111
|
function ft(t, e) {
|
|
@@ -122,8 +122,8 @@ function yt({ nodes: t }) {
|
|
|
122
122
|
i.y1 = r + i.width / 2, r += i.width;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
let t = 0, e = 0, o = 1, r = 1, i = 24, a = 8,
|
|
125
|
+
function Vt() {
|
|
126
|
+
let t = 0, e = 0, o = 1, r = 1, i = 24, a = 8, m, _ = Bt, s = kt, c, u, x = Rt, v = Ft, g = 6;
|
|
127
127
|
function w() {
|
|
128
128
|
const n = { nodes: x.apply(null, arguments), links: v.apply(null, arguments) };
|
|
129
129
|
return M(n), T(n), N(n), C(n), S(n), yt(n), n;
|
|
@@ -131,19 +131,19 @@ function Ft() {
|
|
|
131
131
|
w.update = function(n) {
|
|
132
132
|
return yt(n), n;
|
|
133
133
|
}, w.nodeId = function(n) {
|
|
134
|
-
return arguments.length ? (_ = typeof n == "function" ? n :
|
|
134
|
+
return arguments.length ? (_ = typeof n == "function" ? n : X(n), w) : _;
|
|
135
135
|
}, w.nodeAlign = function(n) {
|
|
136
|
-
return arguments.length ? (s = typeof n == "function" ? n :
|
|
136
|
+
return arguments.length ? (s = typeof n == "function" ? n : X(n), w) : s;
|
|
137
137
|
}, w.nodeSort = function(n) {
|
|
138
138
|
return arguments.length ? (c = n, w) : c;
|
|
139
139
|
}, w.nodeWidth = function(n) {
|
|
140
140
|
return arguments.length ? (i = +n, w) : i;
|
|
141
141
|
}, w.nodePadding = function(n) {
|
|
142
|
-
return arguments.length ? (a =
|
|
142
|
+
return arguments.length ? (a = m = +n, w) : a;
|
|
143
143
|
}, w.nodes = function(n) {
|
|
144
|
-
return arguments.length ? (x = typeof n == "function" ? n :
|
|
144
|
+
return arguments.length ? (x = typeof n == "function" ? n : X(n), w) : x;
|
|
145
145
|
}, w.links = function(n) {
|
|
146
|
-
return arguments.length ? (v = typeof n == "function" ? n :
|
|
146
|
+
return arguments.length ? (v = typeof n == "function" ? n : X(n), w) : v;
|
|
147
147
|
}, w.linkSort = function(n) {
|
|
148
148
|
return arguments.length ? (u = n, w) : u;
|
|
149
149
|
}, w.size = function(n) {
|
|
@@ -159,8 +159,8 @@ function Ft() {
|
|
|
159
159
|
const f = new Map(n.map((h, l) => [_(h, l, n), h]));
|
|
160
160
|
for (const [h, l] of y.entries()) {
|
|
161
161
|
l.index = h;
|
|
162
|
-
let { source:
|
|
163
|
-
typeof
|
|
162
|
+
let { source: k, target: b } = l;
|
|
163
|
+
typeof k != "object" && (k = l.source = ft(f, k)), typeof b != "object" && (b = l.target = ft(f, b)), k.sourceLinks.push(l), b.targetLinks.push(l);
|
|
164
164
|
}
|
|
165
165
|
if (u != null)
|
|
166
166
|
for (const { sourceLinks: h, targetLinks: l } of n)
|
|
@@ -174,9 +174,9 @@ function Ft() {
|
|
|
174
174
|
const y = n.length;
|
|
175
175
|
let f = new Set(n), h = /* @__PURE__ */ new Set(), l = 0;
|
|
176
176
|
for (; f.size; ) {
|
|
177
|
-
for (const
|
|
178
|
-
|
|
179
|
-
for (const { target: b } of
|
|
177
|
+
for (const k of f) {
|
|
178
|
+
k.depth = l;
|
|
179
|
+
for (const { target: b } of k.sourceLinks)
|
|
180
180
|
h.add(b);
|
|
181
181
|
}
|
|
182
182
|
if (++l > y) throw new Error("circular link");
|
|
@@ -187,45 +187,45 @@ function Ft() {
|
|
|
187
187
|
const y = n.length;
|
|
188
188
|
let f = new Set(n), h = /* @__PURE__ */ new Set(), l = 0;
|
|
189
189
|
for (; f.size; ) {
|
|
190
|
-
for (const
|
|
191
|
-
|
|
192
|
-
for (const { source: b } of
|
|
190
|
+
for (const k of f) {
|
|
191
|
+
k.height = l;
|
|
192
|
+
for (const { source: b } of k.targetLinks)
|
|
193
193
|
h.add(b);
|
|
194
194
|
}
|
|
195
195
|
if (++l > y) throw new Error("circular link");
|
|
196
196
|
f = h, h = /* @__PURE__ */ new Set();
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function D({ nodes: n }) {
|
|
200
200
|
const y = ct(n, (l) => l.depth) + 1, f = (o - t - i) / (y - 1), h = new Array(y);
|
|
201
201
|
for (const l of n) {
|
|
202
|
-
const
|
|
203
|
-
l.layer =
|
|
202
|
+
const k = Math.max(0, Math.min(y - 1, Math.floor(s.call(null, l, y))));
|
|
203
|
+
l.layer = k, l.x0 = t + k * f, l.x1 = l.x0 + i, h[k] ? h[k].push(l) : h[k] = [l];
|
|
204
204
|
}
|
|
205
205
|
if (c) for (const l of h)
|
|
206
206
|
l.sort(c);
|
|
207
207
|
return h;
|
|
208
208
|
}
|
|
209
209
|
function R(n) {
|
|
210
|
-
const y =
|
|
210
|
+
const y = mt(n, (f) => (r - e - (f.length - 1) * m) / nt(f, it));
|
|
211
211
|
for (const f of n) {
|
|
212
212
|
let h = e;
|
|
213
213
|
for (const l of f) {
|
|
214
|
-
l.y0 = h, l.y1 = h + l.value * y, h = l.y1 +
|
|
215
|
-
for (const
|
|
216
|
-
|
|
214
|
+
l.y0 = h, l.y1 = h + l.value * y, h = l.y1 + m;
|
|
215
|
+
for (const k of l.sourceLinks)
|
|
216
|
+
k.width = k.value * y;
|
|
217
217
|
}
|
|
218
|
-
h = (r - h +
|
|
218
|
+
h = (r - h + m) / (f.length + 1);
|
|
219
219
|
for (let l = 0; l < f.length; ++l) {
|
|
220
|
-
const
|
|
221
|
-
|
|
220
|
+
const k = f[l];
|
|
221
|
+
k.y0 += h * (l + 1), k.y1 += h * (l + 1);
|
|
222
222
|
}
|
|
223
223
|
A(f);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
function S(n) {
|
|
227
|
-
const y =
|
|
228
|
-
|
|
227
|
+
const y = D(n);
|
|
228
|
+
m = Math.min(a, (r - e) / (ct(y, (f) => f.length) - 1)), R(y);
|
|
229
229
|
for (let f = 0; f < g; ++f) {
|
|
230
230
|
const h = Math.pow(0.99, f), l = Math.max(1 - h, (f + 1) / g);
|
|
231
231
|
B(y, h, l), P(y, h, l);
|
|
@@ -233,50 +233,50 @@ function Ft() {
|
|
|
233
233
|
}
|
|
234
234
|
function P(n, y, f) {
|
|
235
235
|
for (let h = 1, l = n.length; h < l; ++h) {
|
|
236
|
-
const
|
|
237
|
-
for (const b of
|
|
238
|
-
let L = 0,
|
|
236
|
+
const k = n[h];
|
|
237
|
+
for (const b of k) {
|
|
238
|
+
let L = 0, F = 0;
|
|
239
239
|
for (const { source: Y, value: et } of b.targetLinks) {
|
|
240
|
-
let
|
|
241
|
-
L += $(Y, b) *
|
|
240
|
+
let q = et * (b.layer - Y.layer);
|
|
241
|
+
L += $(Y, b) * q, F += q;
|
|
242
242
|
}
|
|
243
|
-
if (!(
|
|
244
|
-
let G = (L /
|
|
243
|
+
if (!(F > 0)) continue;
|
|
244
|
+
let G = (L / F - b.y0) * y;
|
|
245
245
|
b.y0 += G, b.y1 += G, E(b);
|
|
246
246
|
}
|
|
247
|
-
c === void 0 &&
|
|
247
|
+
c === void 0 && k.sort(Q), O(k, f);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
function B(n, y, f) {
|
|
251
251
|
for (let h = n.length, l = h - 2; l >= 0; --l) {
|
|
252
|
-
const
|
|
253
|
-
for (const b of
|
|
254
|
-
let L = 0,
|
|
252
|
+
const k = n[l];
|
|
253
|
+
for (const b of k) {
|
|
254
|
+
let L = 0, F = 0;
|
|
255
255
|
for (const { target: Y, value: et } of b.sourceLinks) {
|
|
256
|
-
let
|
|
257
|
-
L += I(b, Y) *
|
|
256
|
+
let q = et * (Y.layer - b.layer);
|
|
257
|
+
L += I(b, Y) * q, F += q;
|
|
258
258
|
}
|
|
259
|
-
if (!(
|
|
260
|
-
let G = (L /
|
|
259
|
+
if (!(F > 0)) continue;
|
|
260
|
+
let G = (L / F - b.y0) * y;
|
|
261
261
|
b.y0 += G, b.y1 += G, E(b);
|
|
262
262
|
}
|
|
263
|
-
c === void 0 &&
|
|
263
|
+
c === void 0 && k.sort(Q), O(k, f);
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
function O(n, y) {
|
|
267
267
|
const f = n.length >> 1, h = n[f];
|
|
268
|
-
d(n, h.y0 -
|
|
268
|
+
d(n, h.y0 - m, f - 1, y), z(n, h.y1 + m, f + 1, y), d(n, r, n.length - 1, y), z(n, e, 0, y);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function z(n, y, f, h) {
|
|
271
271
|
for (; f < n.length; ++f) {
|
|
272
|
-
const l = n[f],
|
|
273
|
-
|
|
272
|
+
const l = n[f], k = (y - l.y0) * h;
|
|
273
|
+
k > 1e-6 && (l.y0 += k, l.y1 += k), y = l.y1 + m;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
function d(n, y, f, h) {
|
|
277
277
|
for (; f >= 0; --f) {
|
|
278
|
-
const l = n[f],
|
|
279
|
-
|
|
278
|
+
const l = n[f], k = (l.y1 - y) * h;
|
|
279
|
+
k > 1e-6 && (l.y0 -= k, l.y1 -= k), y = l.y0 - m;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
function E({ sourceLinks: n, targetLinks: y }) {
|
|
@@ -293,10 +293,10 @@ function Ft() {
|
|
|
293
293
|
y.sort(ht), f.sort(ut);
|
|
294
294
|
}
|
|
295
295
|
function $(n, y) {
|
|
296
|
-
let f = n.y0 - (n.sourceLinks.length - 1) *
|
|
296
|
+
let f = n.y0 - (n.sourceLinks.length - 1) * m / 2;
|
|
297
297
|
for (const { target: h, width: l } of n.sourceLinks) {
|
|
298
298
|
if (h === y) break;
|
|
299
|
-
f += l +
|
|
299
|
+
f += l + m;
|
|
300
300
|
}
|
|
301
301
|
for (const { source: h, width: l } of y.targetLinks) {
|
|
302
302
|
if (h === n) break;
|
|
@@ -305,10 +305,10 @@ function Ft() {
|
|
|
305
305
|
return f;
|
|
306
306
|
}
|
|
307
307
|
function I(n, y) {
|
|
308
|
-
let f = y.y0 - (y.targetLinks.length - 1) *
|
|
308
|
+
let f = y.y0 - (y.targetLinks.length - 1) * m / 2;
|
|
309
309
|
for (const { source: h, width: l } of y.targetLinks) {
|
|
310
310
|
if (h === n) break;
|
|
311
|
-
f += l +
|
|
311
|
+
f += l + m;
|
|
312
312
|
}
|
|
313
313
|
for (const { target: h, width: l } of n.sourceLinks) {
|
|
314
314
|
if (h === y) break;
|
|
@@ -318,7 +318,7 @@ function Ft() {
|
|
|
318
318
|
}
|
|
319
319
|
return w;
|
|
320
320
|
}
|
|
321
|
-
var rt = Math.PI, st = 2 * rt,
|
|
321
|
+
var rt = Math.PI, st = 2 * rt, V = 1e-6, Wt = st - V;
|
|
322
322
|
function ot() {
|
|
323
323
|
this._x0 = this._y0 = // start of current subpath
|
|
324
324
|
this._x1 = this._y1 = null, this._ = "";
|
|
@@ -345,22 +345,22 @@ ot.prototype = _t.prototype = {
|
|
|
345
345
|
},
|
|
346
346
|
arcTo: function(t, e, o, r, i) {
|
|
347
347
|
t = +t, e = +e, o = +o, r = +r, i = +i;
|
|
348
|
-
var a = this._x1,
|
|
348
|
+
var a = this._x1, m = this._y1, _ = o - t, s = r - e, c = a - t, u = m - e, x = c * c + u * u;
|
|
349
349
|
if (i < 0) throw new Error("negative radius: " + i);
|
|
350
350
|
if (this._x1 === null)
|
|
351
351
|
this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
|
|
352
|
-
else if (x >
|
|
352
|
+
else if (x > V) if (!(Math.abs(u * _ - s * c) > V) || !i)
|
|
353
353
|
this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
|
|
354
354
|
else {
|
|
355
|
-
var v = o - a, g = r -
|
|
356
|
-
Math.abs(
|
|
355
|
+
var v = o - a, g = r - m, w = _ * _ + s * s, M = v * v + g * g, T = Math.sqrt(w), N = Math.sqrt(x), C = i * Math.tan((rt - Math.acos((w + x - M) / (2 * T * N))) / 2), D = C / N, R = C / T;
|
|
356
|
+
Math.abs(D - 1) > V && (this._ += "L" + (t + D * c) + "," + (e + D * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * v > c * g) + "," + (this._x1 = t + R * _) + "," + (this._y1 = e + R * s);
|
|
357
357
|
}
|
|
358
358
|
},
|
|
359
359
|
arc: function(t, e, o, r, i, a) {
|
|
360
360
|
t = +t, e = +e, o = +o, a = !!a;
|
|
361
|
-
var
|
|
361
|
+
var m = o * Math.cos(r), _ = o * Math.sin(r), s = t + m, c = e + _, u = 1 ^ a, x = a ? r - i : i - r;
|
|
362
362
|
if (o < 0) throw new Error("negative radius: " + o);
|
|
363
|
-
this._x1 === null ? this._ += "M" + s + "," + c : (Math.abs(this._x1 - s) >
|
|
363
|
+
this._x1 === null ? this._ += "M" + s + "," + c : (Math.abs(this._x1 - s) > V || Math.abs(this._y1 - c) > V) && (this._ += "L" + s + "," + c), o && (x < 0 && (x = x % st + st), x > Wt ? this._ += "A" + o + "," + o + ",0,1," + u + "," + (t - m) + "," + (e - _) + "A" + o + "," + o + ",0,1," + u + "," + (this._x1 = s) + "," + (this._y1 = c) : x > V && (this._ += "A" + o + "," + o + ",0," + +(x >= rt) + "," + u + "," + (this._x1 = t + o * Math.cos(i)) + "," + (this._y1 = e + o * Math.sin(i))));
|
|
364
364
|
},
|
|
365
365
|
rect: function(t, e, o, r) {
|
|
366
366
|
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +o + "v" + +r + "h" + -o + "Z";
|
|
@@ -381,35 +381,35 @@ function Gt(t) {
|
|
|
381
381
|
return t[1];
|
|
382
382
|
}
|
|
383
383
|
var Yt = Array.prototype.slice;
|
|
384
|
-
function
|
|
384
|
+
function qt(t) {
|
|
385
385
|
return t.source;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Ht(t) {
|
|
388
388
|
return t.target;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
var e =
|
|
392
|
-
function
|
|
390
|
+
function Xt(t) {
|
|
391
|
+
var e = qt, o = Ht, r = Ut, i = Gt, a = null;
|
|
392
|
+
function m() {
|
|
393
393
|
var _, s = Yt.call(arguments), c = e.apply(this, s), u = o.apply(this, s);
|
|
394
394
|
if (a || (a = _ = _t()), t(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = u, s)), +i.apply(this, s)), _) return a = null, _ + "" || null;
|
|
395
395
|
}
|
|
396
|
-
return
|
|
397
|
-
return arguments.length ? (e = _,
|
|
398
|
-
},
|
|
399
|
-
return arguments.length ? (o = _,
|
|
400
|
-
},
|
|
401
|
-
return arguments.length ? (r = typeof _ == "function" ? _ : gt(+_),
|
|
402
|
-
},
|
|
403
|
-
return arguments.length ? (i = typeof _ == "function" ? _ : gt(+_),
|
|
404
|
-
},
|
|
405
|
-
return arguments.length ? (a = _ ?? null,
|
|
406
|
-
},
|
|
396
|
+
return m.source = function(_) {
|
|
397
|
+
return arguments.length ? (e = _, m) : e;
|
|
398
|
+
}, m.target = function(_) {
|
|
399
|
+
return arguments.length ? (o = _, m) : o;
|
|
400
|
+
}, m.x = function(_) {
|
|
401
|
+
return arguments.length ? (r = typeof _ == "function" ? _ : gt(+_), m) : r;
|
|
402
|
+
}, m.y = function(_) {
|
|
403
|
+
return arguments.length ? (i = typeof _ == "function" ? _ : gt(+_), m) : i;
|
|
404
|
+
}, m.context = function(_) {
|
|
405
|
+
return arguments.length ? (a = _ ?? null, m) : a;
|
|
406
|
+
}, m;
|
|
407
407
|
}
|
|
408
408
|
function Qt(t, e, o, r, i) {
|
|
409
409
|
t.moveTo(e, o), t.bezierCurveTo(e = (e + r) / 2, o, e, i, r, i);
|
|
410
410
|
}
|
|
411
411
|
function Kt() {
|
|
412
|
-
return
|
|
412
|
+
return Xt(Qt);
|
|
413
413
|
}
|
|
414
414
|
function Zt(t) {
|
|
415
415
|
return [t.source.x1, t.y0];
|
|
@@ -421,17 +421,17 @@ function te() {
|
|
|
421
421
|
return Kt().source(Zt).target(Jt);
|
|
422
422
|
}
|
|
423
423
|
var at = function() {
|
|
424
|
-
var t = /* @__PURE__ */
|
|
424
|
+
var t = /* @__PURE__ */ p(function(_, s, c, u) {
|
|
425
425
|
for (c = c || {}, u = _.length; u--; c[_[u]] = s) ;
|
|
426
426
|
return c;
|
|
427
427
|
}, "o"), e = [1, 9], o = [1, 10], r = [1, 5, 10, 12], i = {
|
|
428
|
-
trace: /* @__PURE__ */
|
|
428
|
+
trace: /* @__PURE__ */ p(function() {
|
|
429
429
|
}, "trace"),
|
|
430
430
|
yy: {},
|
|
431
431
|
symbols_: { error: 2, start: 3, SANKEY: 4, NEWLINE: 5, csv: 6, opt_eof: 7, record: 8, csv_tail: 9, EOF: 10, "field[source]": 11, COMMA: 12, "field[target]": 13, "field[value]": 14, field: 15, escaped: 16, non_escaped: 17, DQUOTE: 18, ESCAPED_TEXT: 19, NON_ESCAPED_TEXT: 20, $accept: 0, $end: 1 },
|
|
432
432
|
terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
|
|
433
433
|
productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
|
|
434
|
-
performAction: /* @__PURE__ */
|
|
434
|
+
performAction: /* @__PURE__ */ p(function(s, c, u, x, v, g, w) {
|
|
435
435
|
var M = g.length - 1;
|
|
436
436
|
switch (v) {
|
|
437
437
|
case 7:
|
|
@@ -450,7 +450,7 @@ var at = function() {
|
|
|
450
450
|
}, "anonymous"),
|
|
451
451
|
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: o }, { 1: [2, 6], 7: 11, 10: [1, 12] }, t(o, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, t(r, [2, 8]), t(r, [2, 9]), { 19: [1, 16] }, t(r, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, t(o, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: o }, { 15: 18, 16: 7, 17: 8, 18: e, 20: o }, { 18: [1, 19] }, t(o, [2, 3]), { 12: [1, 20] }, t(r, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: e, 20: o }, t([1, 5, 10], [2, 7])],
|
|
452
452
|
defaultActions: { 11: [2, 1], 12: [2, 5] },
|
|
453
|
-
parseError: /* @__PURE__ */
|
|
453
|
+
parseError: /* @__PURE__ */ p(function(s, c) {
|
|
454
454
|
if (c.recoverable)
|
|
455
455
|
this.trace(s);
|
|
456
456
|
else {
|
|
@@ -458,38 +458,38 @@ var at = function() {
|
|
|
458
458
|
throw u.hash = c, u;
|
|
459
459
|
}
|
|
460
460
|
}, "parseError"),
|
|
461
|
-
parse: /* @__PURE__ */
|
|
462
|
-
var c = this, u = [0], x = [], v = [null], g = [], w = this.table, M = "", T = 0, N = 0, C = 2,
|
|
461
|
+
parse: /* @__PURE__ */ p(function(s) {
|
|
462
|
+
var c = this, u = [0], x = [], v = [null], g = [], w = this.table, M = "", T = 0, N = 0, C = 2, D = 1, R = g.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} };
|
|
463
463
|
for (var B in this.yy)
|
|
464
464
|
Object.prototype.hasOwnProperty.call(this.yy, B) && (P.yy[B] = this.yy[B]);
|
|
465
465
|
S.setInput(s, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
|
|
466
466
|
var O = S.yylloc;
|
|
467
467
|
g.push(O);
|
|
468
|
-
var
|
|
468
|
+
var z = S.options && S.options.ranges;
|
|
469
469
|
typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
470
470
|
function d(L) {
|
|
471
471
|
u.length = u.length - 2 * L, v.length = v.length - L, g.length = g.length - L;
|
|
472
472
|
}
|
|
473
|
-
|
|
473
|
+
p(d, "popStack");
|
|
474
474
|
function E() {
|
|
475
475
|
var L;
|
|
476
|
-
return L = x.pop() || S.lex() ||
|
|
476
|
+
return L = x.pop() || S.lex() || D, typeof L != "number" && (L instanceof Array && (x = L, L = x.pop()), L = c.symbols_[L] || L), L;
|
|
477
477
|
}
|
|
478
|
-
|
|
479
|
-
for (var A, $, I, n, y = {}, f, h, l,
|
|
478
|
+
p(E, "lex");
|
|
479
|
+
for (var A, $, I, n, y = {}, f, h, l, k; ; ) {
|
|
480
480
|
if ($ = u[u.length - 1], this.defaultActions[$] ? I = this.defaultActions[$] : ((A === null || typeof A > "u") && (A = E()), I = w[$] && w[$][A]), typeof I > "u" || !I.length || !I[0]) {
|
|
481
481
|
var b = "";
|
|
482
|
-
|
|
482
|
+
k = [];
|
|
483
483
|
for (f in w[$])
|
|
484
|
-
this.terminals_[f] && f > C &&
|
|
484
|
+
this.terminals_[f] && f > C && k.push("'" + this.terminals_[f] + "'");
|
|
485
485
|
S.showPosition ? b = "Parse error on line " + (T + 1) + `:
|
|
486
486
|
` + S.showPosition() + `
|
|
487
|
-
Expecting ` +
|
|
487
|
+
Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : b = "Parse error on line " + (T + 1) + ": Unexpected " + (A == D ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(b, {
|
|
488
488
|
text: S.match,
|
|
489
489
|
token: this.terminals_[A] || A,
|
|
490
490
|
line: S.yylineno,
|
|
491
491
|
loc: O,
|
|
492
|
-
expected:
|
|
492
|
+
expected: k
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
495
|
if (I[0] instanceof Array && I.length > 1)
|
|
@@ -504,7 +504,7 @@ Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : b = "
|
|
|
504
504
|
last_line: g[g.length - 1].last_line,
|
|
505
505
|
first_column: g[g.length - (h || 1)].first_column,
|
|
506
506
|
last_column: g[g.length - 1].last_column
|
|
507
|
-
},
|
|
507
|
+
}, z && (y._$.range = [
|
|
508
508
|
g[g.length - (h || 1)].range[0],
|
|
509
509
|
g[g.length - 1].range[1]
|
|
510
510
|
]), n = this.performAction.apply(y, [
|
|
@@ -528,14 +528,14 @@ Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : b = "
|
|
|
528
528
|
}, a = /* @__PURE__ */ function() {
|
|
529
529
|
var _ = {
|
|
530
530
|
EOF: 1,
|
|
531
|
-
parseError: /* @__PURE__ */
|
|
531
|
+
parseError: /* @__PURE__ */ p(function(c, u) {
|
|
532
532
|
if (this.yy.parser)
|
|
533
533
|
this.yy.parser.parseError(c, u);
|
|
534
534
|
else
|
|
535
535
|
throw new Error(c);
|
|
536
536
|
}, "parseError"),
|
|
537
537
|
// resets the lexer, sets new input
|
|
538
|
-
setInput: /* @__PURE__ */
|
|
538
|
+
setInput: /* @__PURE__ */ p(function(s, c) {
|
|
539
539
|
return this.yy = c || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
540
540
|
first_line: 1,
|
|
541
541
|
first_column: 0,
|
|
@@ -544,14 +544,14 @@ Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : b = "
|
|
|
544
544
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
545
545
|
}, "setInput"),
|
|
546
546
|
// consumes and returns one char from the input
|
|
547
|
-
input: /* @__PURE__ */
|
|
547
|
+
input: /* @__PURE__ */ p(function() {
|
|
548
548
|
var s = this._input[0];
|
|
549
549
|
this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
|
|
550
550
|
var c = s.match(/(?:\r\n?|\n).*/g);
|
|
551
551
|
return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
|
|
552
552
|
}, "input"),
|
|
553
553
|
// unshifts one char (or a string) into the input
|
|
554
|
-
unput: /* @__PURE__ */
|
|
554
|
+
unput: /* @__PURE__ */ p(function(s) {
|
|
555
555
|
var c = s.length, u = s.split(/(?:\r\n?|\n)/g);
|
|
556
556
|
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
|
|
557
557
|
var x = this.match.split(/(?:\r\n?|\n)/g);
|
|
@@ -565,11 +565,11 @@ Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : b = "
|
|
|
565
565
|
}, this.options.ranges && (this.yylloc.range = [v[0], v[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
|
|
566
566
|
}, "unput"),
|
|
567
567
|
// When called from action, caches matched text and appends it on next action
|
|
568
|
-
more: /* @__PURE__ */
|
|
568
|
+
more: /* @__PURE__ */ p(function() {
|
|
569
569
|
return this._more = !0, this;
|
|
570
570
|
}, "more"),
|
|
571
571
|
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
572
|
-
reject: /* @__PURE__ */
|
|
572
|
+
reject: /* @__PURE__ */ p(function() {
|
|
573
573
|
if (this.options.backtrack_lexer)
|
|
574
574
|
this._backtrack = !0;
|
|
575
575
|
else
|
|
@@ -582,27 +582,27 @@ Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : b = "
|
|
|
582
582
|
return this;
|
|
583
583
|
}, "reject"),
|
|
584
584
|
// retain first n characters of the match
|
|
585
|
-
less: /* @__PURE__ */
|
|
585
|
+
less: /* @__PURE__ */ p(function(s) {
|
|
586
586
|
this.unput(this.match.slice(s));
|
|
587
587
|
}, "less"),
|
|
588
588
|
// displays already matched input, i.e. for error messages
|
|
589
|
-
pastInput: /* @__PURE__ */
|
|
589
|
+
pastInput: /* @__PURE__ */ p(function() {
|
|
590
590
|
var s = this.matched.substr(0, this.matched.length - this.match.length);
|
|
591
591
|
return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
|
|
592
592
|
}, "pastInput"),
|
|
593
593
|
// displays upcoming input, i.e. for error messages
|
|
594
|
-
upcomingInput: /* @__PURE__ */
|
|
594
|
+
upcomingInput: /* @__PURE__ */ p(function() {
|
|
595
595
|
var s = this.match;
|
|
596
596
|
return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
597
597
|
}, "upcomingInput"),
|
|
598
598
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
599
|
-
showPosition: /* @__PURE__ */
|
|
599
|
+
showPosition: /* @__PURE__ */ p(function() {
|
|
600
600
|
var s = this.pastInput(), c = new Array(s.length + 1).join("-");
|
|
601
601
|
return s + this.upcomingInput() + `
|
|
602
602
|
` + c + "^";
|
|
603
603
|
}, "showPosition"),
|
|
604
604
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
605
|
-
test_match: /* @__PURE__ */
|
|
605
|
+
test_match: /* @__PURE__ */ p(function(s, c) {
|
|
606
606
|
var u, x, v;
|
|
607
607
|
if (this.options.backtrack_lexer && (v = {
|
|
608
608
|
yylineno: this.yylineno,
|
|
@@ -638,7 +638,7 @@ Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : b = "
|
|
|
638
638
|
return !1;
|
|
639
639
|
}, "test_match"),
|
|
640
640
|
// return next match in input
|
|
641
|
-
next: /* @__PURE__ */
|
|
641
|
+
next: /* @__PURE__ */ p(function() {
|
|
642
642
|
if (this.done)
|
|
643
643
|
return this.EOF;
|
|
644
644
|
this._input || (this.done = !0);
|
|
@@ -665,37 +665,37 @@ Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : b = "
|
|
|
665
665
|
});
|
|
666
666
|
}, "next"),
|
|
667
667
|
// return next match that has a token
|
|
668
|
-
lex: /* @__PURE__ */
|
|
668
|
+
lex: /* @__PURE__ */ p(function() {
|
|
669
669
|
var c = this.next();
|
|
670
670
|
return c || this.lex();
|
|
671
671
|
}, "lex"),
|
|
672
672
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
673
|
-
begin: /* @__PURE__ */
|
|
673
|
+
begin: /* @__PURE__ */ p(function(c) {
|
|
674
674
|
this.conditionStack.push(c);
|
|
675
675
|
}, "begin"),
|
|
676
676
|
// pop the previously active lexer condition state off the condition stack
|
|
677
|
-
popState: /* @__PURE__ */
|
|
677
|
+
popState: /* @__PURE__ */ p(function() {
|
|
678
678
|
var c = this.conditionStack.length - 1;
|
|
679
679
|
return c > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
680
680
|
}, "popState"),
|
|
681
681
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
682
|
-
_currentRules: /* @__PURE__ */
|
|
682
|
+
_currentRules: /* @__PURE__ */ p(function() {
|
|
683
683
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
684
684
|
}, "_currentRules"),
|
|
685
685
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
686
|
-
topState: /* @__PURE__ */
|
|
686
|
+
topState: /* @__PURE__ */ p(function(c) {
|
|
687
687
|
return c = this.conditionStack.length - 1 - Math.abs(c || 0), c >= 0 ? this.conditionStack[c] : "INITIAL";
|
|
688
688
|
}, "topState"),
|
|
689
689
|
// alias for begin(condition)
|
|
690
|
-
pushState: /* @__PURE__ */
|
|
690
|
+
pushState: /* @__PURE__ */ p(function(c) {
|
|
691
691
|
this.begin(c);
|
|
692
692
|
}, "pushState"),
|
|
693
693
|
// return the number of states currently on the stack
|
|
694
|
-
stateStackSize: /* @__PURE__ */
|
|
694
|
+
stateStackSize: /* @__PURE__ */ p(function() {
|
|
695
695
|
return this.conditionStack.length;
|
|
696
696
|
}, "stateStackSize"),
|
|
697
697
|
options: { "case-insensitive": !0 },
|
|
698
|
-
performAction: /* @__PURE__ */
|
|
698
|
+
performAction: /* @__PURE__ */ p(function(c, u, x, v) {
|
|
699
699
|
switch (x) {
|
|
700
700
|
case 0:
|
|
701
701
|
return this.pushState("csv"), 4;
|
|
@@ -721,29 +721,29 @@ Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : b = "
|
|
|
721
721
|
return _;
|
|
722
722
|
}();
|
|
723
723
|
i.lexer = a;
|
|
724
|
-
function
|
|
724
|
+
function m() {
|
|
725
725
|
this.yy = {};
|
|
726
726
|
}
|
|
727
|
-
return
|
|
727
|
+
return p(m, "Parser"), m.prototype = i, i.Parser = m, new m();
|
|
728
728
|
}();
|
|
729
729
|
at.parser = at;
|
|
730
|
-
var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */
|
|
730
|
+
var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ p(() => {
|
|
731
731
|
J = [], tt = [], Z = /* @__PURE__ */ new Map(), Tt();
|
|
732
732
|
}, "clear"), W, ne = (W = class {
|
|
733
733
|
constructor(e, o, r = 0) {
|
|
734
734
|
this.source = e, this.target = o, this.value = r;
|
|
735
735
|
}
|
|
736
|
-
},
|
|
736
|
+
}, p(W, "SankeyLink"), W), ie = /* @__PURE__ */ p((t, e, o) => {
|
|
737
737
|
J.push(new ne(t, e, o));
|
|
738
738
|
}, "addLink"), U, re = (U = class {
|
|
739
739
|
constructor(e) {
|
|
740
740
|
this.ID = e;
|
|
741
741
|
}
|
|
742
|
-
},
|
|
742
|
+
}, p(U, "SankeyNode"), U), se = /* @__PURE__ */ p((t) => {
|
|
743
743
|
t = Mt.sanitizeText(t, lt());
|
|
744
744
|
let e = Z.get(t);
|
|
745
745
|
return e === void 0 && (e = new re(t), Z.set(t, e), tt.push(e)), e;
|
|
746
|
-
}, "findOrCreateNode"), oe = /* @__PURE__ */
|
|
746
|
+
}, "findOrCreateNode"), oe = /* @__PURE__ */ p(() => tt, "getNodes"), ae = /* @__PURE__ */ p(() => J, "getLinks"), le = /* @__PURE__ */ p(() => ({
|
|
747
747
|
nodes: tt.map((t) => ({ id: t.ID })),
|
|
748
748
|
links: J.map((t) => ({
|
|
749
749
|
source: t.source.ID,
|
|
@@ -752,7 +752,7 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */
|
|
|
752
752
|
}))
|
|
753
753
|
}), "getGraph"), ce = {
|
|
754
754
|
nodesMap: Z,
|
|
755
|
-
getConfig: /* @__PURE__ */
|
|
755
|
+
getConfig: /* @__PURE__ */ p(() => lt().sankey, "getConfig"),
|
|
756
756
|
getNodes: oe,
|
|
757
757
|
getLinks: ae,
|
|
758
758
|
getGraph: le,
|
|
@@ -775,17 +775,17 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */
|
|
|
775
775
|
toString() {
|
|
776
776
|
return "url(" + this.href + ")";
|
|
777
777
|
}
|
|
778
|
-
},
|
|
779
|
-
left:
|
|
778
|
+
}, p(j, "Uid"), j.count = 0, j), ue = {
|
|
779
|
+
left: Dt,
|
|
780
780
|
right: $t,
|
|
781
781
|
center: jt,
|
|
782
|
-
justify:
|
|
783
|
-
}, he = /* @__PURE__ */
|
|
784
|
-
const { securityLevel: i, sankey: a } = lt(),
|
|
782
|
+
justify: kt
|
|
783
|
+
}, he = /* @__PURE__ */ p(function(t, e, o, r) {
|
|
784
|
+
const { securityLevel: i, sankey: a } = lt(), m = Et.sankey;
|
|
785
785
|
let _;
|
|
786
|
-
i === "sandbox" && (_ =
|
|
787
|
-
const s = i === "sandbox" ?
|
|
788
|
-
|
|
786
|
+
i === "sandbox" && (_ = H("#i" + e));
|
|
787
|
+
const s = i === "sandbox" ? H(_.nodes()[0].contentDocument.body) : H("body"), c = i === "sandbox" ? s.select(`[id="${e}"]`) : H(`[id="${e}"]`), u = (a == null ? void 0 : a.width) ?? m.width, x = (a == null ? void 0 : a.height) ?? m.width, v = (a == null ? void 0 : a.useMaxWidth) ?? m.useMaxWidth, g = (a == null ? void 0 : a.nodeAlignment) ?? m.nodeAlignment, w = (a == null ? void 0 : a.prefix) ?? m.prefix, M = (a == null ? void 0 : a.suffix) ?? m.suffix, T = (a == null ? void 0 : a.showValues) ?? m.showValues, N = r.db.getGraph(), C = ue[g];
|
|
788
|
+
Vt().nodeId((d) => d.id).nodeWidth(10).nodePadding(10 + (T ? 15 : 0)).nodeAlign(C).extent([
|
|
789
789
|
[0, 0],
|
|
790
790
|
[u, x]
|
|
791
791
|
])(N);
|
|
@@ -793,39 +793,42 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */
|
|
|
793
793
|
c.append("g").attr("class", "nodes").selectAll(".node").data(N.nodes).join("g").attr("class", "node").attr("id", (d) => (d.uid = dt.next("node-")).id).attr("transform", function(d) {
|
|
794
794
|
return "translate(" + d.x0 + "," + d.y0 + ")";
|
|
795
795
|
}).attr("x", (d) => d.x0).attr("y", (d) => d.y0).append("rect").attr("height", (d) => d.y1 - d.y0).attr("width", (d) => d.x1 - d.x0).attr("fill", (d) => S(d.id));
|
|
796
|
-
const P = /* @__PURE__ */
|
|
796
|
+
const P = /* @__PURE__ */ p(({ id: d, value: E }) => T ? `${d}
|
|
797
797
|
${w}${Math.round(E * 100) / 100}${M}` : d, "getText");
|
|
798
|
-
c.append("g").attr("class", "node-labels").attr("font-
|
|
798
|
+
c.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(N.nodes).join("text").attr("x", (d) => d.x0 < u / 2 ? d.x1 + 6 : d.x0 - 6).attr("y", (d) => (d.y1 + d.y0) / 2).attr("dy", `${T ? "0" : "0.35"}em`).attr("text-anchor", (d) => d.x0 < u / 2 ? "start" : "end").text(P);
|
|
799
799
|
const B = c.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 = (a == null ? void 0 : a.linkColor) ?? "gradient";
|
|
800
800
|
if (O === "gradient") {
|
|
801
801
|
const d = B.append("linearGradient").attr("id", (E) => (E.uid = dt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (E) => E.source.x1).attr("x2", (E) => E.target.x0);
|
|
802
802
|
d.append("stop").attr("offset", "0%").attr("stop-color", (E) => S(E.source.id)), d.append("stop").attr("offset", "100%").attr("stop-color", (E) => S(E.target.id));
|
|
803
803
|
}
|
|
804
|
-
let
|
|
804
|
+
let z;
|
|
805
805
|
switch (O) {
|
|
806
806
|
case "gradient":
|
|
807
|
-
|
|
807
|
+
z = /* @__PURE__ */ p((d) => d.uid, "coloring");
|
|
808
808
|
break;
|
|
809
809
|
case "source":
|
|
810
|
-
|
|
810
|
+
z = /* @__PURE__ */ p((d) => S(d.source.id), "coloring");
|
|
811
811
|
break;
|
|
812
812
|
case "target":
|
|
813
|
-
|
|
813
|
+
z = /* @__PURE__ */ p((d) => S(d.target.id), "coloring");
|
|
814
814
|
break;
|
|
815
815
|
default:
|
|
816
|
-
|
|
816
|
+
z = O;
|
|
817
817
|
}
|
|
818
|
-
B.append("path").attr("d", te()).attr("stroke",
|
|
818
|
+
B.append("path").attr("d", te()).attr("stroke", z).attr("stroke-width", (d) => Math.max(1, d.width)), At(void 0, c, 0, v);
|
|
819
819
|
}, "draw"), fe = {
|
|
820
820
|
draw: he
|
|
821
|
-
}, ye = /* @__PURE__ */
|
|
822
|
-
`).trim(), "prepareTextForParsing"), ge =
|
|
823
|
-
|
|
824
|
-
|
|
821
|
+
}, ye = /* @__PURE__ */ p((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
|
|
822
|
+
`).trim(), "prepareTextForParsing"), ge = /* @__PURE__ */ p((t) => `.label {
|
|
823
|
+
font-family: ${t.fontFamily};
|
|
824
|
+
}`, "getStyles"), de = ge, pe = K.parse.bind(K);
|
|
825
|
+
K.parse = (t) => pe(ye(t));
|
|
826
|
+
var xe = {
|
|
827
|
+
styles: de,
|
|
825
828
|
parser: K,
|
|
826
829
|
db: ce,
|
|
827
830
|
renderer: fe
|
|
828
831
|
};
|
|
829
832
|
export {
|
|
830
|
-
|
|
833
|
+
xe as diagram
|
|
831
834
|
};
|