@peasant-labs/fairtrade 0.0.51 → 0.0.53
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/lib/base.css +1 -1
- package/dist/lib/commons.js +544 -522
- package/dist/lib/components.css +1 -1
- package/dist/lib/share.js +2 -2
- package/dist/lib/tokens.css +2 -2
- package/dist/lib/tokens.json +2 -2
- package/dist/lib/types/AppSidebar.d.ts +9 -11
- package/dist/lib/types/Avatar.d.ts +2 -2
- package/dist/lib/types/Breadcrumb.d.ts +12 -5
- package/dist/lib/types/Dialog.d.ts +1 -1
- package/dist/lib/types/Input.d.ts +3 -3
- package/dist/lib/types/OverflowList.d.ts +1 -1
- package/dist/lib/types/RepoPicker.d.ts +3 -1
- package/dist/lib/types/Switch.d.ts +3 -3
- package/dist/lib/types/commons/Explore.d.ts +1 -1
- package/dist/lib/types/commons/types.d.ts +12 -0
- package/dist/lib/{ui-Do7A_I-0.js → ui-suNzomre.js} +1682 -1623
- package/dist/lib/ui.js +1 -1
- package/package.json +1 -1
- package/dist/lib/abnfDiagram-WEYOIA3C-D4LMNFIJ.js +0 -89
- package/dist/lib/arc-1xTxsoRi.js +0 -80
- package/dist/lib/architecture-WOLXFQ4H-c6RsZuzu.js +0 -3
- package/dist/lib/architectureDiagram-ZHVYKT53-DTINqD5R.js +0 -4145
- package/dist/lib/array-CApNbSU9.js +0 -6
- package/dist/lib/blockDiagram-RJAE7QA3-CUYHoR3g.js +0 -1946
- package/dist/lib/c4Diagram-XDPPPE54-Cdx6_DsI.js +0 -2990
- package/dist/lib/channel-DagAO2vE.js +0 -5
- package/dist/lib/chunk-2E7WHVMD-BzhgXW3b.js +0 -490
- package/dist/lib/chunk-2Q5K7J3B-DWNwIK5Y.js +0 -15
- package/dist/lib/chunk-4EMNKR2T-DhFrQz9k.js +0 -236
- package/dist/lib/chunk-55XCU76K-CI0GXDkJ.js +0 -61
- package/dist/lib/chunk-5VM5RSS4-BAQ-46g4.js +0 -5
- package/dist/lib/chunk-7S6XSTFO-CMt_p-O6.js +0 -1373
- package/dist/lib/chunk-AQDTSKZB-DrZccIQa.js +0 -1847
- package/dist/lib/chunk-DSNLSHJZ-CpA9d2CJ.js +0 -4044
- package/dist/lib/chunk-DUW6YSOI-C-tN4Kiv.js +0 -10
- package/dist/lib/chunk-EJLWFMJV-B30MNYvY.js +0 -75
- package/dist/lib/chunk-HAGFOTED-DMU2JNZM.js +0 -4487
- package/dist/lib/chunk-HNE4Q36P-BIA0n2gA.js +0 -363
- package/dist/lib/chunk-J5ZVWO5B-CA_-jk8G.js +0 -12
- package/dist/lib/chunk-JWPE2WC7-KRpHbrIX.js +0 -8
- package/dist/lib/chunk-LNGE3PJU-CMGaAEAh.js +0 -1513
- package/dist/lib/chunk-NGNAAXSQ-D7Dvct7J.js +0 -19774
- package/dist/lib/chunk-NQOKRVIF-MK9F46y3.js +0 -4258
- package/dist/lib/chunk-OYAV6JZA-B1yICcbU.js +0 -10
- package/dist/lib/chunk-UHW7PFBP-CLrOaA0y.js +0 -67
- package/dist/lib/chunk-VQ5W62QI-_ZR3gKe4.js +0 -26
- package/dist/lib/chunk-WQQL4CDK-DFtyhYZq.js +0 -693
- package/dist/lib/chunk-XXDRQBXY-uzyNBbgx.js +0 -9
- package/dist/lib/chunk-Y2CYZVJY-BYzrzvCI.js +0 -12
- package/dist/lib/chunk-YZO67HFG-D1jKt78p.js +0 -275
- package/dist/lib/chunk-ZAUX2LTX-7XO0Yj1z.js +0 -37
- package/dist/lib/chunk-ZCHMQSOR-CxoKltfF.js +0 -349
- package/dist/lib/classDiagram-v2-4MYWR3UA-BPvwhZqw.js +0 -3397
- package/dist/lib/cose-bilkent-JH36ORCC-Oj79uOIQ.js +0 -2250
- package/dist/lib/cynefin-EF2NZ3EQ-COX3NRum.js +0 -3
- package/dist/lib/cynefinDiagram-WF24UDRP-UzTptNAX.js +0 -349
- package/dist/lib/cytoscape.esm-0ojxgO9x.js +0 -18161
- package/dist/lib/dagre-NK4GIZVX-DWZr-NGm.js +0 -2356
- package/dist/lib/defaultLocale-BbgDuMnp.js +0 -201
- package/dist/lib/diagram-CBK3MWTC-CsyKuv-w.js +0 -525
- package/dist/lib/diagram-I5XIIV2D-DWY2JSPC.js +0 -134
- package/dist/lib/diagram-ODIL2UCW-DUptj0JZ.js +0 -301
- package/dist/lib/diagram-PFBEJUXE-N5XnIBqM.js +0 -447
- package/dist/lib/diagram-RJA3I4VV-B9XgohYo.js +0 -214
- package/dist/lib/diagram-TYUNFSNR-XnsJIeAd.js +0 -5084
- package/dist/lib/dist-AMlsjiDX.js +0 -59
- package/dist/lib/ebnfDiagram-V4P3TTPT-BssHqFox.js +0 -100
- package/dist/lib/elk-QONTBCTQ-DwmwqYgP.js +0 -47944
- package/dist/lib/erDiagram-KYQIGQAA-BQiXw1Tw.js +0 -1970
- package/dist/lib/eventmodeling-K75KTNOO-DDb--yMc.js +0 -3
- package/dist/lib/flowDiagram-IUGLLWBU-BEqqF1y2.js +0 -17
- package/dist/lib/ganttDiagram-R7GPNTJY-BWtGXxEF.js +0 -3094
- package/dist/lib/gitGraph-VSP46ZUC-BSwOaak_.js +0 -3
- package/dist/lib/gitGraphDiagram-PDYL7XHY-CHGNuGbk.js +0 -729
- package/dist/lib/graphlib-Dndp26xU.js +0 -1267
- package/dist/lib/info-OHQRW6UA-Dk06sZRe.js +0 -3
- package/dist/lib/infoDiagram-MVDRKAX5-Cdhxnjmi.js +0 -20
- package/dist/lib/init-Bwwdo3M6.js +0 -15
- package/dist/lib/ishikawaDiagram-HPEHV2GE-Dzhti-GJ.js +0 -719
- package/dist/lib/journeyDiagram-BOSHW7O7-C3_vsSjw.js +0 -884
- package/dist/lib/kanban-definition-FNSA4HC5-XsfCEsjn.js +0 -976
- package/dist/lib/katex-Dw0PnoPU.js +0 -21850
- package/dist/lib/line-C9krU3Sv.js +0 -34
- package/dist/lib/linear-Cvilv3OA.js +0 -289
- package/dist/lib/mermaid-parser.core-I7qQ_fxz.js +0 -638
- package/dist/lib/mermaid.core-UNHMAbBP.js +0 -1126
- package/dist/lib/mindmap-definition-6OY57UG3-CAua-JvB.js +0 -1011
- package/dist/lib/ordinal-C55HfHHp.js +0 -65
- package/dist/lib/packet-JDAUHWVQ-DZ-MKx4I.js +0 -3
- package/dist/lib/path-DNvJyUE8.js +0 -85
- package/dist/lib/pegDiagram-ECIUJNBX-BCxa_IO0.js +0 -94
- package/dist/lib/pie-XZMESJXO-DpCa-Nnq.js +0 -3
- package/dist/lib/pieDiagram-GNMPY74T-CE_C3dCB.js +0 -205
- package/dist/lib/quadrantDiagram-D57K4MC3-CDgzdMoL.js +0 -2001
- package/dist/lib/radar-ABXABTNO-BOVK7L9p.js +0 -3
- package/dist/lib/railroad-I3PHUGI6-B6spKM0Z.js +0 -3
- package/dist/lib/railroad-abnf-LNEFI6M7-DEWqfByZ.js +0 -3
- package/dist/lib/railroad-ebnf-DWYD2UWJ-CWRLtxHB.js +0 -3
- package/dist/lib/railroad-peg-JR7BVNR7-C-3NHSsk.js +0 -3
- package/dist/lib/railroadDiagram-Y72NRBL7-a8YVk8LT.js +0 -76
- package/dist/lib/requirementDiagram-EQYSW5RA-B9HolqxU.js +0 -2228
- package/dist/lib/rough.esm-a8mysczE.js +0 -1352
- package/dist/lib/sankeyDiagram-SY24JHO5-CLFMtMJG.js +0 -970
- package/dist/lib/sequenceDiagram-BLEHNHQU-B5wfSV85.js +0 -4253
- package/dist/lib/sizeCapture-INFHLROL-BWGCc9aa.js +0 -46
- package/dist/lib/src-Dcy0zUZH.js +0 -2153
- package/dist/lib/stateDiagram-v2-A6IESKWZ-C92vye4N.js +0 -2143
- package/dist/lib/swimlanes-B3ENRKFQ-B6-i-tPc.js +0 -4764
- package/dist/lib/swimlanesDiagram-AYQRV4AK-CbkBeql-.js +0 -28
- package/dist/lib/timeline-definition-JXYKGLGB-D2Ip4r72.js +0 -1073
- package/dist/lib/treeView-D4JQ5SDB-CFaKQ_2T.js +0 -3
- package/dist/lib/treemap-SAJKECNS-BQ6z7Z3g.js +0 -3
- package/dist/lib/usecaseDiagram-WPOLBNNX-BK1Anch1.js +0 -7190
- package/dist/lib/vennDiagram-Q3Y3IDCW-B6YTBqTS.js +0 -1880
- package/dist/lib/wardley-7MLQ67FV-DChYwu4i.js +0 -3
- package/dist/lib/wardleyDiagram-IVAIDKWA-D5I1qLUK.js +0 -645
- package/dist/lib/xychartDiagram-4URNHDU4-B6RXyhTO.js +0 -2218
|
@@ -1,1126 +0,0 @@
|
|
|
1
|
-
import { h as e, m as t, p as n } from "./src-Dcy0zUZH.js";
|
|
2
|
-
import { n as r } from "./chunk-Y2CYZVJY-BYzrzvCI.js";
|
|
3
|
-
import { $ as i, I as a, J as o, K as s, L as c, N as l, P as u, Q as d, S as f, T as p, V as m, W as h, Z as g, c as _, et as v, f as y, g as b, j as x, l as S, m as C, n as w, p as T, r as ee, t as te, u as E, w as ne, x as D, y as O } from "./chunk-DSNLSHJZ-CpA9d2CJ.js";
|
|
4
|
-
import { S as re, _ as k, a as ie, b as ae, g as oe, i as se, l as ce, o as le, p as ue, x as de, y as fe } from "./chunk-7S6XSTFO-CMt_p-O6.js";
|
|
5
|
-
import { t as pe } from "./chunk-OYAV6JZA-B1yICcbU.js";
|
|
6
|
-
import { r as me } from "./chunk-YZO67HFG-D1jKt78p.js";
|
|
7
|
-
import { a as he } from "./chunk-AQDTSKZB-DrZccIQa.js";
|
|
8
|
-
import "./chunk-UHW7PFBP-CLrOaA0y.js";
|
|
9
|
-
import "./chunk-HAGFOTED-DMU2JNZM.js";
|
|
10
|
-
import "./chunk-ZAUX2LTX-7XO0Yj1z.js";
|
|
11
|
-
import "./chunk-WQQL4CDK-DFtyhYZq.js";
|
|
12
|
-
import "./chunk-HNE4Q36P-BIA0n2gA.js";
|
|
13
|
-
import { n as ge } from "./chunk-EJLWFMJV-B30MNYvY.js";
|
|
14
|
-
import { n as _e, t as ve } from "./chunk-LNGE3PJU-CMGaAEAh.js";
|
|
15
|
-
//#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs
|
|
16
|
-
function ye(e) {
|
|
17
|
-
let t = e?.constructor;
|
|
18
|
-
return e === (typeof t == "function" ? t.prototype : Object.prototype);
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs
|
|
22
|
-
function be(e) {
|
|
23
|
-
if (e == null) return !0;
|
|
24
|
-
if (fe(e)) return typeof e.splice != "function" && typeof e != "string" && !de(e) && !re(e) && !ae(e) ? !1 : e.length === 0;
|
|
25
|
-
if (typeof e == "object" || typeof e == "function") {
|
|
26
|
-
if (e instanceof Map || e instanceof Set) return e.size === 0;
|
|
27
|
-
let t = Object.keys(e);
|
|
28
|
-
return ye(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
|
|
29
|
-
}
|
|
30
|
-
return !0;
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Enum.js
|
|
34
|
-
var xe = "comm", Se = "rule", Ce = "decl", we = "@import", Te = "@namespace", Ee = "@keyframes", De = "@layer", Oe = Math.abs, A = String.fromCharCode;
|
|
35
|
-
function ke(e) {
|
|
36
|
-
return e.trim();
|
|
37
|
-
}
|
|
38
|
-
function j(e, t, n) {
|
|
39
|
-
return e.replace(t, n);
|
|
40
|
-
}
|
|
41
|
-
function M(e, t) {
|
|
42
|
-
return e.charCodeAt(t) | 0;
|
|
43
|
-
}
|
|
44
|
-
function N(e, t, n) {
|
|
45
|
-
return e.slice(t, n);
|
|
46
|
-
}
|
|
47
|
-
function P(e) {
|
|
48
|
-
return e.length;
|
|
49
|
-
}
|
|
50
|
-
function Ae(e) {
|
|
51
|
-
return e.length;
|
|
52
|
-
}
|
|
53
|
-
function F(e, t) {
|
|
54
|
-
return t.push(e), e;
|
|
55
|
-
}
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Tokenizer.js
|
|
58
|
-
var I = 1, L = 1, je = 0, R = 0, z = 0, B = "";
|
|
59
|
-
function Me(e, t, n, r, i, a, o, s) {
|
|
60
|
-
return {
|
|
61
|
-
value: e,
|
|
62
|
-
root: t,
|
|
63
|
-
parent: n,
|
|
64
|
-
type: r,
|
|
65
|
-
props: i,
|
|
66
|
-
children: a,
|
|
67
|
-
line: I,
|
|
68
|
-
column: L,
|
|
69
|
-
length: o,
|
|
70
|
-
return: "",
|
|
71
|
-
siblings: s
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function Ne() {
|
|
75
|
-
return z;
|
|
76
|
-
}
|
|
77
|
-
function Pe() {
|
|
78
|
-
return z = R > 0 ? M(B, --R) : 0, L--, z === 10 && (L = 1, I--), z;
|
|
79
|
-
}
|
|
80
|
-
function V() {
|
|
81
|
-
return z = R < je ? M(B, R++) : 0, L++, z === 10 && (L = 1, I++), z;
|
|
82
|
-
}
|
|
83
|
-
function H() {
|
|
84
|
-
return M(B, R);
|
|
85
|
-
}
|
|
86
|
-
function U() {
|
|
87
|
-
return R;
|
|
88
|
-
}
|
|
89
|
-
function W(e, t) {
|
|
90
|
-
return N(B, e, t);
|
|
91
|
-
}
|
|
92
|
-
function G(e) {
|
|
93
|
-
switch (e) {
|
|
94
|
-
case 0:
|
|
95
|
-
case 9:
|
|
96
|
-
case 10:
|
|
97
|
-
case 13:
|
|
98
|
-
case 32: return 5;
|
|
99
|
-
case 33:
|
|
100
|
-
case 43:
|
|
101
|
-
case 44:
|
|
102
|
-
case 47:
|
|
103
|
-
case 62:
|
|
104
|
-
case 64:
|
|
105
|
-
case 126:
|
|
106
|
-
case 59:
|
|
107
|
-
case 123:
|
|
108
|
-
case 125: return 4;
|
|
109
|
-
case 58: return 3;
|
|
110
|
-
case 34:
|
|
111
|
-
case 39:
|
|
112
|
-
case 40:
|
|
113
|
-
case 91: return 2;
|
|
114
|
-
case 41:
|
|
115
|
-
case 93: return 1;
|
|
116
|
-
}
|
|
117
|
-
return 0;
|
|
118
|
-
}
|
|
119
|
-
function Fe(e) {
|
|
120
|
-
return I = L = 1, je = P(B = e), R = 0, [];
|
|
121
|
-
}
|
|
122
|
-
function Ie(e) {
|
|
123
|
-
return B = "", e;
|
|
124
|
-
}
|
|
125
|
-
function Le(e) {
|
|
126
|
-
return ke(W(R - 1, Be(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
127
|
-
}
|
|
128
|
-
function Re(e) {
|
|
129
|
-
for (; (z = H()) && z < 33;) V();
|
|
130
|
-
return G(e) > 2 || G(z) > 3 ? "" : " ";
|
|
131
|
-
}
|
|
132
|
-
function ze(e, t) {
|
|
133
|
-
for (; --t && V() && !(z < 48 || z > 102 || z > 57 && z < 65 || z > 70 && z < 97););
|
|
134
|
-
return W(e, U() + (t < 6 && H() == 32 && V() == 32));
|
|
135
|
-
}
|
|
136
|
-
function Be(e) {
|
|
137
|
-
for (; V();) switch (z) {
|
|
138
|
-
case e: return R;
|
|
139
|
-
case 34:
|
|
140
|
-
case 39:
|
|
141
|
-
e !== 34 && e !== 39 && Be(z);
|
|
142
|
-
break;
|
|
143
|
-
case 40:
|
|
144
|
-
e === 41 && Be(e);
|
|
145
|
-
break;
|
|
146
|
-
case 92:
|
|
147
|
-
V();
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
return R;
|
|
151
|
-
}
|
|
152
|
-
function Ve(e, t) {
|
|
153
|
-
for (; V() && e + z !== 57 && !(e + z === 84 && H() === 47););
|
|
154
|
-
return "/*" + W(t, R - 1) + "*" + A(e === 47 ? e : V());
|
|
155
|
-
}
|
|
156
|
-
function He(e) {
|
|
157
|
-
for (; !G(H());) V();
|
|
158
|
-
return W(e, R);
|
|
159
|
-
}
|
|
160
|
-
//#endregion
|
|
161
|
-
//#region node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Parser.js
|
|
162
|
-
function Ue(e) {
|
|
163
|
-
return Ie(K("", null, null, null, [""], e = Fe(e), 0, [0], e));
|
|
164
|
-
}
|
|
165
|
-
function K(e, t, n, r, i, a, o, s, c) {
|
|
166
|
-
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = 0, b = "", x = i, S = a, C = r, w = b; g;) switch (m = y, y = V()) {
|
|
167
|
-
case 40:
|
|
168
|
-
m != 108 && M(w, d - 1) == 58 ? (v++, w += "(") : w += Le(y);
|
|
169
|
-
break;
|
|
170
|
-
case 41:
|
|
171
|
-
v--, w += ")";
|
|
172
|
-
break;
|
|
173
|
-
case 34:
|
|
174
|
-
case 39:
|
|
175
|
-
case 91:
|
|
176
|
-
w += Le(y);
|
|
177
|
-
break;
|
|
178
|
-
case 9:
|
|
179
|
-
case 10:
|
|
180
|
-
case 13:
|
|
181
|
-
case 32:
|
|
182
|
-
if (v > 0) {
|
|
183
|
-
w += A(y);
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
w += Re(m);
|
|
187
|
-
break;
|
|
188
|
-
case 92:
|
|
189
|
-
w += ze(U() - 1, 7);
|
|
190
|
-
continue;
|
|
191
|
-
case 47:
|
|
192
|
-
switch (H()) {
|
|
193
|
-
case 42:
|
|
194
|
-
case 47:
|
|
195
|
-
F(Ge(Ve(V(), U()), t, n, c), c), (G(m || 1) == 5 || G(H() || 1) == 5) && P(w) && N(w, -1, void 0) !== " " && (w += " ");
|
|
196
|
-
break;
|
|
197
|
-
default: w += "/";
|
|
198
|
-
}
|
|
199
|
-
break;
|
|
200
|
-
case 123 * h: s[l++] = P(w) * _;
|
|
201
|
-
case 125 * h:
|
|
202
|
-
case 59:
|
|
203
|
-
case 0:
|
|
204
|
-
if (v > 0 && y) {
|
|
205
|
-
w += A(y);
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
|
-
switch (y) {
|
|
209
|
-
case 0:
|
|
210
|
-
case 125: g = 0;
|
|
211
|
-
case 59 + u:
|
|
212
|
-
_ == -1 && (w = j(w, /\f/g, "")), p > 0 && (P(w) - d || h === 0) && F(p > 32 ? Ke(w + ";", r, n, d - 1, c) : Ke(j(w, " ", "") + ";", r, n, d - 2, c), c);
|
|
213
|
-
break;
|
|
214
|
-
case 59: w += ";";
|
|
215
|
-
default: if (F(C = We(w, t, n, l, u, i, s, b, x = [], S = [], d, a), a), y === 123) if (u === 0) K(w, t, C, C, x, a, d, s, S);
|
|
216
|
-
else {
|
|
217
|
-
switch (f) {
|
|
218
|
-
case 99: if (M(w, 3) === 110) break;
|
|
219
|
-
case 108: if (M(w, 2) === 97) break;
|
|
220
|
-
default: u = 0;
|
|
221
|
-
case 100:
|
|
222
|
-
case 109:
|
|
223
|
-
case 115:
|
|
224
|
-
}
|
|
225
|
-
u ? K(e, C, C, r && F(We(e, C, C, 0, 0, i, s, b, i, x = [], d, S), S), i, S, d, s, r ? x : S) : K(w, C, C, C, [""], S, 0, s, S);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
l = u = p = 0, h = _ = 1, b = w = "", d = o;
|
|
229
|
-
break;
|
|
230
|
-
case 58: d = 1 + P(w), p = m;
|
|
231
|
-
default:
|
|
232
|
-
if (h < 1) {
|
|
233
|
-
if (y == 123) --h;
|
|
234
|
-
else if (y == 125 && h++ == 0 && Pe() == 125) continue;
|
|
235
|
-
}
|
|
236
|
-
switch (w += A(y), y * h) {
|
|
237
|
-
case 38:
|
|
238
|
-
_ = u > 0 ? 1 : (w += "\f", -1);
|
|
239
|
-
break;
|
|
240
|
-
case 44:
|
|
241
|
-
if (v > 0) break;
|
|
242
|
-
s[l++] = (P(w) - 1) * _, _ = 1;
|
|
243
|
-
break;
|
|
244
|
-
case 64:
|
|
245
|
-
H() === 45 && (w += Le(V())), f = H(), u = d = P(b = w += He(U())), y++;
|
|
246
|
-
break;
|
|
247
|
-
case 45: m === 45 && P(w) == 2 && (h = 0);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
return a;
|
|
251
|
-
}
|
|
252
|
-
function We(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
253
|
-
for (var f = i - 1, p = i === 0 ? a : [""], m = Ae(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = N(e, f + 1, f = Oe(g = o[h])), b = e; v < m; ++v) (b = ke(g > 0 ? p[v] + " " + y : j(y, /&\f/g, p[v]))) && (c[_++] = b);
|
|
254
|
-
return Me(e, t, n, i === 0 ? Se : s, c, l, u, d);
|
|
255
|
-
}
|
|
256
|
-
function Ge(e, t, n, r) {
|
|
257
|
-
return Me(e, t, n, xe, A(Ne()), N(e, 2, -2), 0, r);
|
|
258
|
-
}
|
|
259
|
-
function Ke(e, t, n, r, i) {
|
|
260
|
-
return Me(e, t, n, Ce, N(e, 0, r), N(e, r + 1, -1), r, i);
|
|
261
|
-
}
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Serializer.js
|
|
264
|
-
function qe(e, t) {
|
|
265
|
-
for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
|
|
266
|
-
return n;
|
|
267
|
-
}
|
|
268
|
-
function Je(e, t, n, r) {
|
|
269
|
-
switch (e.type) {
|
|
270
|
-
case De: if (e.children.length) break;
|
|
271
|
-
case we:
|
|
272
|
-
case Te:
|
|
273
|
-
case Ce: return e.return = e.return || e.value;
|
|
274
|
-
case xe: return "";
|
|
275
|
-
case Ee: return e.return = e.value + "{" + qe(e.children, r) + "}";
|
|
276
|
-
case Se: if (!P(e.value = e.props.join(","))) return "";
|
|
277
|
-
}
|
|
278
|
-
return P(n = qe(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
279
|
-
}
|
|
280
|
-
//#endregion
|
|
281
|
-
//#region node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Middleware.js
|
|
282
|
-
function Ye(e) {
|
|
283
|
-
var t = Ae(e);
|
|
284
|
-
return function(n, r, i, a) {
|
|
285
|
-
for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
|
|
286
|
-
return o;
|
|
287
|
-
};
|
|
288
|
-
}
|
|
289
|
-
//#endregion
|
|
290
|
-
//#region node_modules/.pnpm/mermaid@12.2.0/node_modules/mermaid/dist/mermaid.core.mjs
|
|
291
|
-
var Xe = "c4", Ze = {
|
|
292
|
-
id: Xe,
|
|
293
|
-
detector: /* @__PURE__ */ r((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
|
|
294
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
295
|
-
let { diagram: e } = await import("./c4Diagram-XDPPPE54-Cdx6_DsI.js");
|
|
296
|
-
return {
|
|
297
|
-
id: Xe,
|
|
298
|
-
diagram: e
|
|
299
|
-
};
|
|
300
|
-
}, "loader")
|
|
301
|
-
}, Qe = "flowchart-v2", $e = {
|
|
302
|
-
id: Qe,
|
|
303
|
-
detector: /* @__PURE__ */ r((e) => /^\s*(graph|flowchart)/.test(e), "detector"),
|
|
304
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
305
|
-
let { diagram: e } = await import("./flowDiagram-IUGLLWBU-BEqqF1y2.js");
|
|
306
|
-
return {
|
|
307
|
-
id: Qe,
|
|
308
|
-
diagram: e
|
|
309
|
-
};
|
|
310
|
-
}, "loader")
|
|
311
|
-
}, et = "agentflow", tt = {
|
|
312
|
-
id: et,
|
|
313
|
-
detector: /* @__PURE__ */ r((e) => /^\s*agentflow-beta\b/.test(e), "detector"),
|
|
314
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
315
|
-
let { diagram: e } = await import("./diagram-TYUNFSNR-XnsJIeAd.js");
|
|
316
|
-
return {
|
|
317
|
-
id: et,
|
|
318
|
-
diagram: e
|
|
319
|
-
};
|
|
320
|
-
}, "loader")
|
|
321
|
-
}, nt = "swimlane", rt = {
|
|
322
|
-
id: nt,
|
|
323
|
-
detector: /* @__PURE__ */ r((e) => /^\s*swimlane-beta\b/.test(e), "detector"),
|
|
324
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
325
|
-
let { diagram: e } = await import("./swimlanesDiagram-AYQRV4AK-CbkBeql-.js");
|
|
326
|
-
return {
|
|
327
|
-
id: nt,
|
|
328
|
-
diagram: e
|
|
329
|
-
};
|
|
330
|
-
}, "loader")
|
|
331
|
-
}, it = "er", at = {
|
|
332
|
-
id: it,
|
|
333
|
-
detector: /* @__PURE__ */ r((e) => /^\s*erDiagram/.test(e), "detector"),
|
|
334
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
335
|
-
let { diagram: e } = await import("./erDiagram-KYQIGQAA-BQiXw1Tw.js");
|
|
336
|
-
return {
|
|
337
|
-
id: it,
|
|
338
|
-
diagram: e
|
|
339
|
-
};
|
|
340
|
-
}, "loader")
|
|
341
|
-
}, ot = "gitGraph", st = {
|
|
342
|
-
id: ot,
|
|
343
|
-
detector: /* @__PURE__ */ r((e) => /^\s*gitGraph/.test(e), "detector"),
|
|
344
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
345
|
-
let { diagram: e } = await import("./gitGraphDiagram-PDYL7XHY-CHGNuGbk.js");
|
|
346
|
-
return {
|
|
347
|
-
id: ot,
|
|
348
|
-
diagram: e
|
|
349
|
-
};
|
|
350
|
-
}, "loader")
|
|
351
|
-
}, ct = "gantt", lt = {
|
|
352
|
-
id: ct,
|
|
353
|
-
detector: /* @__PURE__ */ r((e) => /^\s*gantt/.test(e), "detector"),
|
|
354
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
355
|
-
let { diagram: e } = await import("./ganttDiagram-R7GPNTJY-BWtGXxEF.js");
|
|
356
|
-
return {
|
|
357
|
-
id: ct,
|
|
358
|
-
diagram: e
|
|
359
|
-
};
|
|
360
|
-
}, "loader")
|
|
361
|
-
}, ut = "info", dt = {
|
|
362
|
-
id: ut,
|
|
363
|
-
detector: /* @__PURE__ */ r((e) => /^\s*info/.test(e), "detector"),
|
|
364
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
365
|
-
let { diagram: e } = await import("./infoDiagram-MVDRKAX5-Cdhxnjmi.js");
|
|
366
|
-
return {
|
|
367
|
-
id: ut,
|
|
368
|
-
diagram: e
|
|
369
|
-
};
|
|
370
|
-
}, "loader")
|
|
371
|
-
}, ft = "pie", pt = {
|
|
372
|
-
id: ft,
|
|
373
|
-
detector: /* @__PURE__ */ r((e) => /^\s*pie/.test(e), "detector"),
|
|
374
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
375
|
-
let { diagram: e } = await import("./pieDiagram-GNMPY74T-CE_C3dCB.js");
|
|
376
|
-
return {
|
|
377
|
-
id: ft,
|
|
378
|
-
diagram: e
|
|
379
|
-
};
|
|
380
|
-
}, "loader")
|
|
381
|
-
}, mt = "quadrantChart", ht = {
|
|
382
|
-
id: mt,
|
|
383
|
-
detector: /* @__PURE__ */ r((e) => /^\s*quadrantChart/.test(e), "detector"),
|
|
384
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
385
|
-
let { diagram: e } = await import("./quadrantDiagram-D57K4MC3-CDgzdMoL.js");
|
|
386
|
-
return {
|
|
387
|
-
id: mt,
|
|
388
|
-
diagram: e
|
|
389
|
-
};
|
|
390
|
-
}, "loader")
|
|
391
|
-
}, gt = "xychart", _t = {
|
|
392
|
-
id: gt,
|
|
393
|
-
detector: /* @__PURE__ */ r((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
|
|
394
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
395
|
-
let { diagram: e } = await import("./xychartDiagram-4URNHDU4-B6RXyhTO.js");
|
|
396
|
-
return {
|
|
397
|
-
id: gt,
|
|
398
|
-
diagram: e
|
|
399
|
-
};
|
|
400
|
-
}, "loader")
|
|
401
|
-
}, vt = "requirement", yt = {
|
|
402
|
-
id: vt,
|
|
403
|
-
detector: /* @__PURE__ */ r((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
|
|
404
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
405
|
-
let { diagram: e } = await import("./requirementDiagram-EQYSW5RA-B9HolqxU.js");
|
|
406
|
-
return {
|
|
407
|
-
id: vt,
|
|
408
|
-
diagram: e
|
|
409
|
-
};
|
|
410
|
-
}, "loader")
|
|
411
|
-
}, bt = "sequence", xt = {
|
|
412
|
-
id: bt,
|
|
413
|
-
detector: /* @__PURE__ */ r((e) => /^\s*sequenceDiagram/.test(e), "detector"),
|
|
414
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
415
|
-
let { diagram: e } = await import("./sequenceDiagram-BLEHNHQU-B5wfSV85.js");
|
|
416
|
-
return {
|
|
417
|
-
id: bt,
|
|
418
|
-
diagram: e
|
|
419
|
-
};
|
|
420
|
-
}, "loader")
|
|
421
|
-
}, St = "classDiagram", Ct = {
|
|
422
|
-
id: St,
|
|
423
|
-
detector: /* @__PURE__ */ r((e) => /^\s*classDiagram/.test(e), "detector"),
|
|
424
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
425
|
-
let { diagram: e } = await import("./classDiagram-v2-4MYWR3UA-BPvwhZqw.js");
|
|
426
|
-
return {
|
|
427
|
-
id: St,
|
|
428
|
-
diagram: e
|
|
429
|
-
};
|
|
430
|
-
}, "loader")
|
|
431
|
-
}, wt = "stateDiagram", Tt = {
|
|
432
|
-
id: wt,
|
|
433
|
-
detector: /* @__PURE__ */ r((e) => /^\s*stateDiagram/.test(e), "detector"),
|
|
434
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
435
|
-
let { diagram: e } = await import("./stateDiagram-v2-A6IESKWZ-C92vye4N.js");
|
|
436
|
-
return {
|
|
437
|
-
id: wt,
|
|
438
|
-
diagram: e
|
|
439
|
-
};
|
|
440
|
-
}, "loader")
|
|
441
|
-
}, Et = "journey", Dt = {
|
|
442
|
-
id: Et,
|
|
443
|
-
detector: /* @__PURE__ */ r((e) => /^\s*journey/.test(e), "detector"),
|
|
444
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
445
|
-
let { diagram: e } = await import("./journeyDiagram-BOSHW7O7-C3_vsSjw.js");
|
|
446
|
-
return {
|
|
447
|
-
id: Et,
|
|
448
|
-
diagram: e
|
|
449
|
-
};
|
|
450
|
-
}, "loader")
|
|
451
|
-
}, q = 4, J = 75, Ot = /* @__PURE__ */ r((e) => {
|
|
452
|
-
let t = [];
|
|
453
|
-
for (let n of e.split(/\s+/)) {
|
|
454
|
-
let e = [...n];
|
|
455
|
-
for (; e.length > J;) t.push(e.slice(0, J).join("")), e = e.slice(J);
|
|
456
|
-
e.length > 0 && t.push(e.join(""));
|
|
457
|
-
}
|
|
458
|
-
let n = [], r = "";
|
|
459
|
-
for (let e of t) {
|
|
460
|
-
let t = r ? `${r} ${e}` : e;
|
|
461
|
-
[...t].length > J ? (n.push(r), r = e) : r = t;
|
|
462
|
-
}
|
|
463
|
-
if (r && n.push(r), n.length > q) {
|
|
464
|
-
n.length = q;
|
|
465
|
-
let e = n[q - 1] ?? "";
|
|
466
|
-
n[q - 1] = `${[...e].slice(0, J - 3).join("")}...`;
|
|
467
|
-
}
|
|
468
|
-
return n;
|
|
469
|
-
}, "wrapErrorMessage"), kt = { draw: /* @__PURE__ */ r((e, n, r, i) => {
|
|
470
|
-
t.debug("rendering svg for syntax error\n");
|
|
471
|
-
let a = pe(n), o = a.append("g"), s = Ot(i?.db.getErrorMessage?.() ?? ""), c = s.length > 0 ? 500 + s.length * 56 : 512;
|
|
472
|
-
a.attr("viewBox", `0 0 2412 ${c}`), _(a, 100, c, !0), o.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), o.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), o.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), o.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), o.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), o.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), o.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), o.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${r}`), s.forEach((e, t) => {
|
|
473
|
-
o.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 510 + t * 56).attr("font-size", "42px").style("text-anchor", "middle").text(e);
|
|
474
|
-
});
|
|
475
|
-
}, "draw") }, At = kt, jt, Mt = {
|
|
476
|
-
db: {
|
|
477
|
-
clear() {
|
|
478
|
-
jt = void 0;
|
|
479
|
-
},
|
|
480
|
-
setErrorMessage(e) {
|
|
481
|
-
jt = e;
|
|
482
|
-
},
|
|
483
|
-
getErrorMessage() {
|
|
484
|
-
return jt;
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
renderer: kt,
|
|
488
|
-
parser: { parse: /* @__PURE__ */ r(() => {}, "parse") }
|
|
489
|
-
}, Nt = "flowchart-elk", Pt = {
|
|
490
|
-
id: Nt,
|
|
491
|
-
detector: /* @__PURE__ */ r((e, t = {}) => /^\s*flowchart-elk/.test(e) ? (t.layout = "elk", !0) : !1, "detector"),
|
|
492
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
493
|
-
let { diagram: e } = await import("./flowDiagram-IUGLLWBU-BEqqF1y2.js");
|
|
494
|
-
return {
|
|
495
|
-
id: Nt,
|
|
496
|
-
diagram: e
|
|
497
|
-
};
|
|
498
|
-
}, "loader")
|
|
499
|
-
}, Ft = "timeline", It = {
|
|
500
|
-
id: Ft,
|
|
501
|
-
detector: /* @__PURE__ */ r((e) => /^\s*timeline/.test(e), "detector"),
|
|
502
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
503
|
-
let { diagram: e } = await import("./timeline-definition-JXYKGLGB-D2Ip4r72.js");
|
|
504
|
-
return {
|
|
505
|
-
id: Ft,
|
|
506
|
-
diagram: e
|
|
507
|
-
};
|
|
508
|
-
}, "loader")
|
|
509
|
-
}, Lt = "mindmap", Rt = {
|
|
510
|
-
id: Lt,
|
|
511
|
-
detector: /* @__PURE__ */ r((e) => /^\s*mindmap/.test(e), "detector"),
|
|
512
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
513
|
-
let { diagram: e } = await import("./mindmap-definition-6OY57UG3-CAua-JvB.js");
|
|
514
|
-
return {
|
|
515
|
-
id: Lt,
|
|
516
|
-
diagram: e
|
|
517
|
-
};
|
|
518
|
-
}, "loader")
|
|
519
|
-
}, zt = "kanban", Bt = {
|
|
520
|
-
id: zt,
|
|
521
|
-
detector: /* @__PURE__ */ r((e) => /^\s*kanban/.test(e), "detector"),
|
|
522
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
523
|
-
let { diagram: e } = await import("./kanban-definition-FNSA4HC5-XsfCEsjn.js");
|
|
524
|
-
return {
|
|
525
|
-
id: zt,
|
|
526
|
-
diagram: e
|
|
527
|
-
};
|
|
528
|
-
}, "loader")
|
|
529
|
-
}, Vt = "sankey", Ht = {
|
|
530
|
-
id: Vt,
|
|
531
|
-
detector: /* @__PURE__ */ r((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
|
|
532
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
533
|
-
let { diagram: e } = await import("./sankeyDiagram-SY24JHO5-CLFMtMJG.js");
|
|
534
|
-
return {
|
|
535
|
-
id: Vt,
|
|
536
|
-
diagram: e
|
|
537
|
-
};
|
|
538
|
-
}, "loader")
|
|
539
|
-
}, Ut = "packet", Wt = {
|
|
540
|
-
id: Ut,
|
|
541
|
-
detector: /* @__PURE__ */ r((e) => /^\s*packet(-beta)?/.test(e), "detector"),
|
|
542
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
543
|
-
let { diagram: e } = await import("./diagram-I5XIIV2D-DWY2JSPC.js");
|
|
544
|
-
return {
|
|
545
|
-
id: Ut,
|
|
546
|
-
diagram: e
|
|
547
|
-
};
|
|
548
|
-
}, "loader")
|
|
549
|
-
}, Gt = "radar", Kt = {
|
|
550
|
-
id: Gt,
|
|
551
|
-
detector: /* @__PURE__ */ r((e) => /^\s*radar-beta/.test(e), "detector"),
|
|
552
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
553
|
-
let { diagram: e } = await import("./diagram-RJA3I4VV-B9XgohYo.js");
|
|
554
|
-
return {
|
|
555
|
-
id: Gt,
|
|
556
|
-
diagram: e
|
|
557
|
-
};
|
|
558
|
-
}, "loader")
|
|
559
|
-
}, qt = "block", Jt = {
|
|
560
|
-
id: qt,
|
|
561
|
-
detector: /* @__PURE__ */ r((e) => /^\s*block(-beta)?/.test(e), "detector"),
|
|
562
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
563
|
-
let { diagram: e } = await import("./blockDiagram-RJAE7QA3-CUYHoR3g.js");
|
|
564
|
-
return {
|
|
565
|
-
id: qt,
|
|
566
|
-
diagram: e
|
|
567
|
-
};
|
|
568
|
-
}, "loader")
|
|
569
|
-
}, Yt = "treeView", Xt = {
|
|
570
|
-
id: Yt,
|
|
571
|
-
detector: /* @__PURE__ */ r((e) => /^\s*treeView-beta/.test(e), "detector"),
|
|
572
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
573
|
-
let { diagram: e } = await import("./diagram-ODIL2UCW-DUptj0JZ.js");
|
|
574
|
-
return {
|
|
575
|
-
id: Yt,
|
|
576
|
-
diagram: e
|
|
577
|
-
};
|
|
578
|
-
}, "loader")
|
|
579
|
-
}, Zt = "architecture", Qt = {
|
|
580
|
-
id: Zt,
|
|
581
|
-
detector: /* @__PURE__ */ r((e) => /^\s*architecture/.test(e), "detector"),
|
|
582
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
583
|
-
let { diagram: e } = await import("./architectureDiagram-ZHVYKT53-DTINqD5R.js");
|
|
584
|
-
return {
|
|
585
|
-
id: Zt,
|
|
586
|
-
diagram: e
|
|
587
|
-
};
|
|
588
|
-
}, "loader")
|
|
589
|
-
}, $t = "eventmodeling", en = {
|
|
590
|
-
id: $t,
|
|
591
|
-
detector: /* @__PURE__ */ r((e) => /^\s*eventmodeling/.test(e), "detector"),
|
|
592
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
593
|
-
let { diagram: e } = await import("./diagram-PFBEJUXE-N5XnIBqM.js");
|
|
594
|
-
return {
|
|
595
|
-
id: $t,
|
|
596
|
-
diagram: e
|
|
597
|
-
};
|
|
598
|
-
}, "loader")
|
|
599
|
-
}, tn = "ishikawa", nn = {
|
|
600
|
-
id: tn,
|
|
601
|
-
detector: /* @__PURE__ */ r((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"),
|
|
602
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
603
|
-
let { diagram: e } = await import("./ishikawaDiagram-HPEHV2GE-Dzhti-GJ.js");
|
|
604
|
-
return {
|
|
605
|
-
id: tn,
|
|
606
|
-
diagram: e
|
|
607
|
-
};
|
|
608
|
-
}, "loader")
|
|
609
|
-
}, rn = "venn", an = {
|
|
610
|
-
id: rn,
|
|
611
|
-
detector: /* @__PURE__ */ r((e) => /^\s*venn-beta/.test(e), "detector"),
|
|
612
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
613
|
-
let { diagram: e } = await import("./vennDiagram-Q3Y3IDCW-B6YTBqTS.js");
|
|
614
|
-
return {
|
|
615
|
-
id: rn,
|
|
616
|
-
diagram: e
|
|
617
|
-
};
|
|
618
|
-
}, "loader")
|
|
619
|
-
}, on = "treemap", sn = {
|
|
620
|
-
id: on,
|
|
621
|
-
detector: /* @__PURE__ */ r((e) => /^\s*treemap/.test(e), "detector"),
|
|
622
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
623
|
-
let { diagram: e } = await import("./diagram-CBK3MWTC-CsyKuv-w.js");
|
|
624
|
-
return {
|
|
625
|
-
id: on,
|
|
626
|
-
diagram: e
|
|
627
|
-
};
|
|
628
|
-
}, "loader")
|
|
629
|
-
}, cn = "usecase", ln = {
|
|
630
|
-
id: cn,
|
|
631
|
-
detector: /* @__PURE__ */ r((e) => /^\s*usecase-beta(?:\s|$)/.test(e), "detector"),
|
|
632
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
633
|
-
let { diagram: e } = await import("./usecaseDiagram-WPOLBNNX-BK1Anch1.js");
|
|
634
|
-
return {
|
|
635
|
-
id: cn,
|
|
636
|
-
diagram: e
|
|
637
|
-
};
|
|
638
|
-
}, "loader")
|
|
639
|
-
}, un = "wardley", dn = {
|
|
640
|
-
id: un,
|
|
641
|
-
detector: /* @__PURE__ */ r((e) => /^\s*wardley-beta/i.test(e), "detector"),
|
|
642
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
643
|
-
let { diagram: e } = await import("./wardleyDiagram-IVAIDKWA-D5I1qLUK.js");
|
|
644
|
-
return {
|
|
645
|
-
id: un,
|
|
646
|
-
diagram: e
|
|
647
|
-
};
|
|
648
|
-
}, "loader")
|
|
649
|
-
}, fn = "cynefin", pn = {
|
|
650
|
-
id: fn,
|
|
651
|
-
detector: /* @__PURE__ */ r((e) => /^\s*cynefin-beta(?:[\s:]|$)/.test(e), "detector"),
|
|
652
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
653
|
-
let { diagram: e } = await import("./cynefinDiagram-WF24UDRP-UzTptNAX.js");
|
|
654
|
-
return {
|
|
655
|
-
id: fn,
|
|
656
|
-
diagram: e
|
|
657
|
-
};
|
|
658
|
-
}, "loader")
|
|
659
|
-
}, mn = "railroad", hn = {
|
|
660
|
-
id: mn,
|
|
661
|
-
detector: /* @__PURE__ */ r((e) => /^\s*railroad-beta/i.test(e), "detector"),
|
|
662
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
663
|
-
let { diagram: e } = await import("./railroadDiagram-Y72NRBL7-a8YVk8LT.js");
|
|
664
|
-
return {
|
|
665
|
-
id: mn,
|
|
666
|
-
diagram: e
|
|
667
|
-
};
|
|
668
|
-
}, "loader")
|
|
669
|
-
}, gn = "railroadEbnf", _n = {
|
|
670
|
-
id: gn,
|
|
671
|
-
detector: /* @__PURE__ */ r((e) => /^\s*railroad-ebnf-beta/i.test(e), "detector"),
|
|
672
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
673
|
-
let { diagram: e } = await import("./ebnfDiagram-V4P3TTPT-BssHqFox.js");
|
|
674
|
-
return {
|
|
675
|
-
id: gn,
|
|
676
|
-
diagram: e
|
|
677
|
-
};
|
|
678
|
-
}, "loader")
|
|
679
|
-
}, vn = "railroadAbnf", yn = {
|
|
680
|
-
id: vn,
|
|
681
|
-
detector: /* @__PURE__ */ r((e) => /^\s*railroad-abnf-beta/i.test(e), "detector"),
|
|
682
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
683
|
-
let { diagram: e } = await import("./abnfDiagram-WEYOIA3C-D4LMNFIJ.js");
|
|
684
|
-
return {
|
|
685
|
-
id: vn,
|
|
686
|
-
diagram: e
|
|
687
|
-
};
|
|
688
|
-
}, "loader")
|
|
689
|
-
}, bn = "railroadPeg", xn = {
|
|
690
|
-
id: bn,
|
|
691
|
-
detector: /* @__PURE__ */ r((e) => /^\s*railroad-peg-beta/i.test(e), "detector"),
|
|
692
|
-
loader: /* @__PURE__ */ r(async () => {
|
|
693
|
-
let { diagram: e } = await import("./pegDiagram-ECIUJNBX-BCxa_IO0.js");
|
|
694
|
-
return {
|
|
695
|
-
id: bn,
|
|
696
|
-
diagram: e
|
|
697
|
-
};
|
|
698
|
-
}, "loader")
|
|
699
|
-
}, Sn = !1, Y = /* @__PURE__ */ r(() => {
|
|
700
|
-
Sn || (Sn = !0, l("error", Mt, (e) => e.toLowerCase().trim() === "error"), l("---", {
|
|
701
|
-
db: { clear: /* @__PURE__ */ r(() => {}, "clear") },
|
|
702
|
-
styles: {},
|
|
703
|
-
renderer: { draw: /* @__PURE__ */ r(() => {}, "draw") },
|
|
704
|
-
parser: { parse: /* @__PURE__ */ r(() => {
|
|
705
|
-
throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks");
|
|
706
|
-
}, "parse") },
|
|
707
|
-
init: /* @__PURE__ */ r(() => null, "init")
|
|
708
|
-
}, (e) => e.toLowerCase().trimStart().startsWith("---")), u(Pt, Rt, Qt), u(tt, Ze, Bt, Ct, at, lt, dt, pt, yt, xt, rt, $e, It, st, Tt, Dt, ht, Ht, Wt, _t, Jt, en, Xt, Kt, nn, sn, hn, _n, yn, xn, an, dn, pn, ln));
|
|
709
|
-
}, "addDiagrams"), Cn = /* @__PURE__ */ r(async () => {
|
|
710
|
-
t.debug("Loading registered diagrams");
|
|
711
|
-
let e = (await Promise.allSettled(Object.entries(C).map(async ([e, { detector: n, loader: r }]) => {
|
|
712
|
-
if (r) try {
|
|
713
|
-
D(e);
|
|
714
|
-
} catch {
|
|
715
|
-
try {
|
|
716
|
-
let { diagram: e, id: t } = await r();
|
|
717
|
-
l(t, e, n);
|
|
718
|
-
} catch (n) {
|
|
719
|
-
throw t.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete C[e], n;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}))).filter((e) => e.status === "rejected");
|
|
723
|
-
if (e.length > 0) {
|
|
724
|
-
t.error(`Failed to load ${e.length} external diagrams`);
|
|
725
|
-
for (let n of e) t.error(n);
|
|
726
|
-
throw Error(`Failed to load ${e.length} external diagrams`);
|
|
727
|
-
}
|
|
728
|
-
}, "loadRegisteredDiagrams"), wn = "graphics-document document";
|
|
729
|
-
function Tn(e, t) {
|
|
730
|
-
e.attr("role", wn), t !== "" && e.attr("aria-roledescription", t);
|
|
731
|
-
}
|
|
732
|
-
r(Tn, "setA11yDiagramInfo");
|
|
733
|
-
function En(e, t, n, r) {
|
|
734
|
-
if (e.insert !== void 0) {
|
|
735
|
-
if (n) {
|
|
736
|
-
let t = `chart-desc-${r}`;
|
|
737
|
-
e.attr("aria-describedby", t), e.insert("desc", ":first-child").attr("id", t).text(n);
|
|
738
|
-
}
|
|
739
|
-
if (t) {
|
|
740
|
-
let n = `chart-title-${r}`;
|
|
741
|
-
e.attr("aria-labelledby", n), e.insert("title", ":first-child").attr("id", n).text(t);
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
r(En, "addSVGa11yTitleDescription");
|
|
746
|
-
var X = class e {
|
|
747
|
-
constructor(e, t, n, r, i) {
|
|
748
|
-
this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
|
|
749
|
-
}
|
|
750
|
-
static {
|
|
751
|
-
r(this, "Diagram");
|
|
752
|
-
}
|
|
753
|
-
static async fromText(n, r = {}) {
|
|
754
|
-
let i = typeof n == "string" ? {
|
|
755
|
-
raw: n,
|
|
756
|
-
cleaned: n
|
|
757
|
-
} : n, a = O(), o = T(i.cleaned, a);
|
|
758
|
-
try {
|
|
759
|
-
D(o);
|
|
760
|
-
} catch {
|
|
761
|
-
let e = f(o);
|
|
762
|
-
if (!e) throw new te(`Diagram ${o} not found.`);
|
|
763
|
-
let { id: t, diagram: n } = await e();
|
|
764
|
-
l(t, n);
|
|
765
|
-
}
|
|
766
|
-
let { db: s, parser: c, renderer: u, init: d } = D(o);
|
|
767
|
-
c.parser && (c.parser.yy = s), s.clear?.(), d?.(a), r.title && s.setDiagramTitle?.(r.title);
|
|
768
|
-
let p = i.cleaned;
|
|
769
|
-
if (s.preserveCommentsWhenParsing && i.withComments) {
|
|
770
|
-
let e = a.maxTextSize ?? y.maxTextSize;
|
|
771
|
-
i.withComments.length > e ? t.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${e}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`) : p = i.withComments;
|
|
772
|
-
}
|
|
773
|
-
let m = le(p) + "\n";
|
|
774
|
-
return i.frontmatterLineOffset && s.setFrontmatterLineOffset?.(i.frontmatterLineOffset), await c.parse(m), new e(o, m, s, c, u);
|
|
775
|
-
}
|
|
776
|
-
async render(e, t) {
|
|
777
|
-
await this.renderer.draw(this.text, e, t, this);
|
|
778
|
-
}
|
|
779
|
-
getParser() {
|
|
780
|
-
return this.parser;
|
|
781
|
-
}
|
|
782
|
-
getType() {
|
|
783
|
-
return this.type;
|
|
784
|
-
}
|
|
785
|
-
}, Dn = [], On = /* @__PURE__ */ r(() => {
|
|
786
|
-
Dn.forEach((e) => {
|
|
787
|
-
e();
|
|
788
|
-
}), Dn = [];
|
|
789
|
-
}, "attachFunctions"), kn = /* @__PURE__ */ r((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
|
|
790
|
-
function An(e) {
|
|
791
|
-
let t = x(e);
|
|
792
|
-
if (!t) return {
|
|
793
|
-
text: e,
|
|
794
|
-
metadata: {}
|
|
795
|
-
};
|
|
796
|
-
let n = t.indent, r = _e(n ? t.body.split("\n").map((e) => e.startsWith(n) ? e.slice(n.length) : e).join("\n") : t.body, { schema: ve }) ?? {};
|
|
797
|
-
r = typeof r == "object" && !Array.isArray(r) ? r : {};
|
|
798
|
-
let i = {};
|
|
799
|
-
return r.displayMode && (i.displayMode = r.displayMode.toString()), r.title && (i.title = r.title.toString()), r.config && (i.config = r.config), {
|
|
800
|
-
text: e.slice(t.length),
|
|
801
|
-
metadata: i
|
|
802
|
-
};
|
|
803
|
-
}
|
|
804
|
-
r(An, "extractFrontMatter");
|
|
805
|
-
var jn = /* @__PURE__ */ r((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), Mn = /* @__PURE__ */ r((e) => {
|
|
806
|
-
let { text: t, metadata: n } = An(e), { displayMode: r, title: i, config: a = {} } = n;
|
|
807
|
-
return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
|
|
808
|
-
title: i,
|
|
809
|
-
config: a,
|
|
810
|
-
text: t
|
|
811
|
-
};
|
|
812
|
-
}, "processFrontmatter"), Nn = /* @__PURE__ */ r((e) => {
|
|
813
|
-
let t = k.detectInit(e) ?? {}, n = k.detectDirective(e, "wrap");
|
|
814
|
-
return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
|
|
815
|
-
text: oe(e),
|
|
816
|
-
directive: t
|
|
817
|
-
};
|
|
818
|
-
}, "processDirectives");
|
|
819
|
-
function Pn(e) {
|
|
820
|
-
let t = e, n = jn(e), r = Mn(n), i = Nn(r.text), a = se(r.config, i.directive), o = i.text;
|
|
821
|
-
return {
|
|
822
|
-
code: {
|
|
823
|
-
raw: t,
|
|
824
|
-
cleaned: kn(o),
|
|
825
|
-
withComments: o,
|
|
826
|
-
frontmatterLineOffset: n.length > r.text.length ? (n.substring(0, n.length - r.text.length).match(/\n/g) ?? []).length : 0
|
|
827
|
-
},
|
|
828
|
-
title: r.title,
|
|
829
|
-
config: a
|
|
830
|
-
};
|
|
831
|
-
}
|
|
832
|
-
r(Pn, "preprocessDiagram");
|
|
833
|
-
function Fn(e) {
|
|
834
|
-
let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
|
|
835
|
-
return btoa(n);
|
|
836
|
-
}
|
|
837
|
-
r(Fn, "toBase64");
|
|
838
|
-
var In = 5e4, Ln = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", Rn = "sandbox", zn = "loose", Bn = "http://www.w3.org/2000/svg", Vn = "http://www.w3.org/1999/xlink", Hn = "http://www.w3.org/1999/xhtml", Un = "100%", Wn = "100%", Gn = "border:0;margin:0;", Kn = "margin:0", qn = "allow-top-navigation-by-user-activation allow-popups", Jn = "The \"iframe\" tag is not supported by your browser.", Yn = ["foreignobject"], Xn = ["dominant-baseline"];
|
|
839
|
-
function Zn(e) {
|
|
840
|
-
let t = Pn(e);
|
|
841
|
-
a();
|
|
842
|
-
let n;
|
|
843
|
-
try {
|
|
844
|
-
n = T(t.code.cleaned, O());
|
|
845
|
-
} catch {
|
|
846
|
-
n = void 0;
|
|
847
|
-
}
|
|
848
|
-
return s(n), w(t.config ?? {}), t;
|
|
849
|
-
}
|
|
850
|
-
r(Zn, "processAndSetConfigs");
|
|
851
|
-
async function Qn(e, t) {
|
|
852
|
-
Y();
|
|
853
|
-
try {
|
|
854
|
-
let { code: t, config: n } = Zn(e);
|
|
855
|
-
return {
|
|
856
|
-
diagramType: (await X.fromText(t)).type,
|
|
857
|
-
config: n
|
|
858
|
-
};
|
|
859
|
-
} catch (e) {
|
|
860
|
-
if (t?.suppressErrors) return !1;
|
|
861
|
-
throw e;
|
|
862
|
-
} finally {
|
|
863
|
-
s(void 0);
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
r(Qn, "parse");
|
|
867
|
-
var $n = /* @__PURE__ */ r((e, t, n = []) => `.${e} ${t} ${c(`{ ${n.join(" !important; ")} !important; }`)}`, "cssImportantStyles"), er = /* @__PURE__ */ r((e, t = /* @__PURE__ */ new Map()) => {
|
|
868
|
-
let n = new CSSStyleSheet();
|
|
869
|
-
if (e.fontFamily !== void 0 && n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`, n.cssRules.length), e.altFontFamily !== void 0 && n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`, n.cssRules.length), t instanceof Map) {
|
|
870
|
-
let r = ne(e) ? ["> *", "span"] : [
|
|
871
|
-
"rect",
|
|
872
|
-
"polygon",
|
|
873
|
-
"ellipse",
|
|
874
|
-
"circle",
|
|
875
|
-
"path"
|
|
876
|
-
];
|
|
877
|
-
t.forEach((e) => {
|
|
878
|
-
be(e.styles) || r.forEach((t) => {
|
|
879
|
-
n.insertRule($n(e.id, t, e.styles), n.cssRules.length);
|
|
880
|
-
}), be(e.textStyles) || n.insertRule($n(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))), n.cssRules.length);
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
|
-
let r = "";
|
|
884
|
-
if (e.themeCSS !== void 0) if (typeof n.replaceSync == "function") {
|
|
885
|
-
let t = new CSSStyleSheet();
|
|
886
|
-
t.replaceSync(e.themeCSS), r = S(t) + "\n";
|
|
887
|
-
} else r += `${e.themeCSS}
|
|
888
|
-
`;
|
|
889
|
-
return r + S(n);
|
|
890
|
-
}, "createCssStyles"), tr = /* @__PURE__ */ r((e, n) => qe(Ue(`${e}{${n}}`), Ye([/* @__PURE__ */ r(function(n, r, i, a) {
|
|
891
|
-
if (n.type === "rule" && Array.isArray(n.props)) {
|
|
892
|
-
if (n.parent && n.parent.type === "@keyframes") return;
|
|
893
|
-
n.props = n.props.map((t) => t === e && Array.isArray(n.children) && n.children.every((e) => e.type === "decl" ? (/* @__PURE__ */ new Set([
|
|
894
|
-
"font-family",
|
|
895
|
-
"font-size",
|
|
896
|
-
"fill"
|
|
897
|
-
])).has(e.props) : !1) || (t.startsWith(`${e} `) || t.startsWith(`${e}>`)) && !t.startsWith(`${e} ||`) ? t : `${e} ${t}`);
|
|
898
|
-
} else n.type.startsWith("@") && ([
|
|
899
|
-
"@media",
|
|
900
|
-
"@supports",
|
|
901
|
-
"@layer",
|
|
902
|
-
"@scope",
|
|
903
|
-
"@container",
|
|
904
|
-
"@starting-style",
|
|
905
|
-
"@keyframes"
|
|
906
|
-
].includes(n.type) || (t.warn(`Removing unsupported at-rule ${n.type} from CSS`), n.type = xe));
|
|
907
|
-
}, "addNamespace"), Je])), "compileCSS"), nr = /* @__PURE__ */ r((e, t, n, r) => tr(r, g(t, er(e, n), {
|
|
908
|
-
...e.themeVariables,
|
|
909
|
-
theme: e.theme,
|
|
910
|
-
look: e.look
|
|
911
|
-
}, r)), "createUserStyles"), rr = /* @__PURE__ */ r((e = "", t, n) => {
|
|
912
|
-
let r = e;
|
|
913
|
-
return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = ie(r), r = r.replace(/<br>/g, "<br/>"), r;
|
|
914
|
-
}, "cleanUpSvgCode"), ir = /* @__PURE__ */ r((e = "", t) => `<iframe style="width:${Un};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : Wn};${Gn}" src="data:text/html;charset=UTF-8;base64,${Fn(`<body style="${Kn}">${e}</body>`)}" sandbox="${qn}">
|
|
915
|
-
${Jn}
|
|
916
|
-
</iframe>`, "putIntoIFrame"), ar = /* @__PURE__ */ r((e, t, n, r, i) => {
|
|
917
|
-
let a = e.append("div");
|
|
918
|
-
a.attr("id", n), r && a.attr("style", r);
|
|
919
|
-
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", Bn);
|
|
920
|
-
return i && o.attr("xmlns:xlink", i), o.append("g"), e;
|
|
921
|
-
}, "appendDivSvgG");
|
|
922
|
-
function or(e, t) {
|
|
923
|
-
return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
|
|
924
|
-
}
|
|
925
|
-
r(or, "sandboxedIframe");
|
|
926
|
-
var sr = /* @__PURE__ */ r((e, t, n, r) => {
|
|
927
|
-
e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
|
|
928
|
-
}, "removeExistingElements"), cr = /* @__PURE__ */ r(async function(e, i, a) {
|
|
929
|
-
Y();
|
|
930
|
-
let o = Zn(i), s = o.code;
|
|
931
|
-
i = s.cleaned;
|
|
932
|
-
let c = O();
|
|
933
|
-
t.debug(c), i.length > (c?.maxTextSize ?? In) && (i = Ln, s = {
|
|
934
|
-
raw: i,
|
|
935
|
-
cleaned: i
|
|
936
|
-
});
|
|
937
|
-
let l = `#${e}`, u = "i" + e, d = "#" + u, f = "d" + e, p = "#" + f, m = /* @__PURE__ */ r(() => {
|
|
938
|
-
let e = n(g ? d : p).node();
|
|
939
|
-
e && "remove" in e && e.remove();
|
|
940
|
-
}, "removeTempElements"), h = n(document.body), g = c.securityLevel === Rn, _ = c.securityLevel === zn, y = c.fontFamily;
|
|
941
|
-
a === void 0 ? (sr(document, e, f, u), g ? (h = n(or(n(document.body), u).nodes()[0].contentDocument.body), h.node().style.margin = "0") : h = n("body"), ar(h, e, f)) : (a && (a.innerHTML = ""), g ? (h = n(or(n(a), u).nodes()[0].contentDocument.body), h.node().style.margin = "0") : h = n(a), ar(h, e, f, `font-family: ${y}`, Vn));
|
|
942
|
-
let x, S;
|
|
943
|
-
try {
|
|
944
|
-
x = await X.fromText(s, { title: o.title });
|
|
945
|
-
} catch (e) {
|
|
946
|
-
if (c.suppressErrorRendering) throw m(), e;
|
|
947
|
-
x = await X.fromText("error"), S = e, x.db.setErrorMessage?.(ce(e));
|
|
948
|
-
}
|
|
949
|
-
let C = h.select(p).node(), w = x.type, T = C.firstChild, ee = T.firstChild, te = x.renderer.getClasses?.(i, x), E = nr(c, w, te, l), ne = document.createElement("style");
|
|
950
|
-
ne.innerHTML = E, T.insertBefore(ne, ee);
|
|
951
|
-
try {
|
|
952
|
-
await x.renderer.draw(i, e, "12.2.0", x);
|
|
953
|
-
} catch (t) {
|
|
954
|
-
throw c.suppressErrorRendering ? m() : At.draw(i, e, "12.2.0"), t;
|
|
955
|
-
}
|
|
956
|
-
let D = h.select(`${p} svg`), re = x.db.getAccTitle?.(), k = x.db.getAccDescription?.();
|
|
957
|
-
fr(w, D, re, k);
|
|
958
|
-
let ie = (/* @__PURE__ */ r(() => {
|
|
959
|
-
h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", Hn);
|
|
960
|
-
let n = h.select(p).node().innerHTML;
|
|
961
|
-
if (t.debug("config.arrowMarkerAbsolute", c.arrowMarkerAbsolute), n = rr(n, g, b(c.arrowMarkerAbsolute)), g) {
|
|
962
|
-
let e = h.select(p + " svg").node();
|
|
963
|
-
n = ir(n, e);
|
|
964
|
-
} else _ || (n = v.sanitize(n, {
|
|
965
|
-
ADD_TAGS: Yn,
|
|
966
|
-
ADD_ATTR: Xn,
|
|
967
|
-
HTML_INTEGRATION_POINTS: { foreignobject: !0 }
|
|
968
|
-
}));
|
|
969
|
-
return On(), n;
|
|
970
|
-
}, "serializeSvg"))();
|
|
971
|
-
if (S) throw S;
|
|
972
|
-
return m(), {
|
|
973
|
-
diagramType: w,
|
|
974
|
-
svg: ie,
|
|
975
|
-
bindFunctions: x.db.bindFunctions
|
|
976
|
-
};
|
|
977
|
-
}, "renderDiagram"), lr = /* @__PURE__ */ r(async function(e, t, n) {
|
|
978
|
-
try {
|
|
979
|
-
return await cr(e, t, n);
|
|
980
|
-
} finally {
|
|
981
|
-
s(void 0);
|
|
982
|
-
}
|
|
983
|
-
}, "render");
|
|
984
|
-
function ur(t = {}) {
|
|
985
|
-
let n = ee({}, t);
|
|
986
|
-
n?.fontFamily && !n.themeVariables?.fontFamily && (n.themeVariables ||= {}, n.themeVariables.fontFamily = n.fontFamily), m(n);
|
|
987
|
-
let r = E.theme;
|
|
988
|
-
n?.theme && Object.hasOwn(d, n.theme) ? n.themeVariables = d[n.theme].getThemeVariables(n.themeVariables) : n && (n.theme != null && n.theme !== "null" && (n.theme = r), n.themeVariables = d[r].getThemeVariables(n.themeVariables)), e((typeof n == "object" ? o(n) : p()).logLevel), Y();
|
|
989
|
-
}
|
|
990
|
-
r(ur, "initialize");
|
|
991
|
-
var dr = /* @__PURE__ */ r((e, t = {}) => {
|
|
992
|
-
let { code: n } = Pn(e);
|
|
993
|
-
return X.fromText(n, t);
|
|
994
|
-
}, "getDiagramFromText");
|
|
995
|
-
function fr(e, t, n, r) {
|
|
996
|
-
Tn(t, e), En(t, n, r, t.attr("id"));
|
|
997
|
-
}
|
|
998
|
-
r(fr, "addA11yInfo");
|
|
999
|
-
var Z = Object.freeze({
|
|
1000
|
-
render: lr,
|
|
1001
|
-
parse: Qn,
|
|
1002
|
-
getDiagramFromText: dr,
|
|
1003
|
-
initialize: ur,
|
|
1004
|
-
getConfig: O,
|
|
1005
|
-
setConfig: h,
|
|
1006
|
-
getSiteConfig: p,
|
|
1007
|
-
updateSiteConfig: i,
|
|
1008
|
-
reset: /* @__PURE__ */ r(() => {
|
|
1009
|
-
a();
|
|
1010
|
-
}, "reset"),
|
|
1011
|
-
globalReset: /* @__PURE__ */ r(() => {
|
|
1012
|
-
a(E);
|
|
1013
|
-
}, "globalReset"),
|
|
1014
|
-
defaultConfig: E
|
|
1015
|
-
});
|
|
1016
|
-
e(O().logLevel), a(O());
|
|
1017
|
-
var pr = /* @__PURE__ */ r((e, n, r) => {
|
|
1018
|
-
t.warn(e), ue(e) ? (r && r(e.str, e.hash), n.push({
|
|
1019
|
-
...e,
|
|
1020
|
-
message: e.str,
|
|
1021
|
-
error: e
|
|
1022
|
-
})) : (r && r(e), e instanceof Error && n.push({
|
|
1023
|
-
str: e.message,
|
|
1024
|
-
message: e.message,
|
|
1025
|
-
hash: e.name,
|
|
1026
|
-
error: e
|
|
1027
|
-
}));
|
|
1028
|
-
}, "handleError"), mr = /* @__PURE__ */ r(async function(e = { querySelector: ".mermaid" }) {
|
|
1029
|
-
try {
|
|
1030
|
-
await hr(e);
|
|
1031
|
-
} catch (n) {
|
|
1032
|
-
if (ue(n) && t.error(n.str), $.parseError && $.parseError(n), !e.suppressErrors) throw t.error("Use the suppressErrors option to suppress these errors"), n;
|
|
1033
|
-
}
|
|
1034
|
-
}, "run"), hr = /* @__PURE__ */ r(async function({ postRenderCallback: e, querySelector: n, nodes: r } = { querySelector: ".mermaid" }) {
|
|
1035
|
-
let i = Z.getConfig();
|
|
1036
|
-
t.debug(`${e ? "" : "No "}Callback function found`);
|
|
1037
|
-
let a;
|
|
1038
|
-
if (r) a = r;
|
|
1039
|
-
else if (n) a = document.querySelectorAll(n);
|
|
1040
|
-
else throw Error("Nodes and querySelector are both undefined");
|
|
1041
|
-
t.debug(`Found ${a.length} diagrams`), i?.startOnLoad !== void 0 && (t.debug("Start On Load: " + i?.startOnLoad), Z.updateSiteConfig({ startOnLoad: i?.startOnLoad }));
|
|
1042
|
-
let o = new k.InitIDGenerator(i.deterministicIds, i.deterministicIDSeed), s, c = [];
|
|
1043
|
-
for (let n of Array.from(a)) {
|
|
1044
|
-
if (t.info("Rendering diagram: " + n.id), n.getAttribute("data-processed")) continue;
|
|
1045
|
-
n.setAttribute("data-processed", "true");
|
|
1046
|
-
let r = `mermaid-${o.next()}`;
|
|
1047
|
-
s = n.innerHTML, s = he(k.entityDecode(s)).trim().replace(/<br\s*\/?>/gi, "<br/>");
|
|
1048
|
-
let i = k.detectInit(s);
|
|
1049
|
-
i && t.debug("Detected early reinit: ", i);
|
|
1050
|
-
try {
|
|
1051
|
-
let { svg: t, bindFunctions: i } = await wr(r, s, n);
|
|
1052
|
-
n.innerHTML = t, e && await e(r), i && i(n);
|
|
1053
|
-
} catch (e) {
|
|
1054
|
-
pr(e, c, $.parseError);
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
if (c.length > 0) throw c[0];
|
|
1058
|
-
}, "runThrowsErrors"), gr = /* @__PURE__ */ r(function(e) {
|
|
1059
|
-
Z.initialize(e);
|
|
1060
|
-
}, "initialize"), _r = /* @__PURE__ */ r(async function(e, n, r) {
|
|
1061
|
-
t.warn("mermaid.init is deprecated. Please use run instead."), e && gr(e);
|
|
1062
|
-
let i = {
|
|
1063
|
-
postRenderCallback: r,
|
|
1064
|
-
querySelector: ".mermaid"
|
|
1065
|
-
};
|
|
1066
|
-
typeof n == "string" ? i.querySelector = n : n && (n instanceof HTMLElement ? i.nodes = [n] : i.nodes = n), await mr(i);
|
|
1067
|
-
}, "init"), vr = /* @__PURE__ */ r(async (e, { lazyLoad: t = !0 } = {}) => {
|
|
1068
|
-
Y(), u(...e), t === !1 && await Cn();
|
|
1069
|
-
}, "registerExternalDiagrams"), yr = /* @__PURE__ */ r(function() {
|
|
1070
|
-
if ($.startOnLoad) {
|
|
1071
|
-
let { startOnLoad: e } = Z.getConfig();
|
|
1072
|
-
e && $.run().catch((e) => t.error("Mermaid failed to initialize", e));
|
|
1073
|
-
}
|
|
1074
|
-
}, "contentLoaded");
|
|
1075
|
-
typeof document < "u" && window.addEventListener("load", yr, !1);
|
|
1076
|
-
var br = /* @__PURE__ */ r(function(e) {
|
|
1077
|
-
$.parseError = e;
|
|
1078
|
-
}, "setParseErrorHandler"), Q = [], xr = !1, Sr = /* @__PURE__ */ r(async () => {
|
|
1079
|
-
if (!xr) {
|
|
1080
|
-
for (xr = !0; Q.length > 0;) {
|
|
1081
|
-
let e = Q.shift();
|
|
1082
|
-
if (e) try {
|
|
1083
|
-
await e();
|
|
1084
|
-
} catch (e) {
|
|
1085
|
-
t.error("Error executing queue", e);
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
xr = !1;
|
|
1089
|
-
}
|
|
1090
|
-
}, "executeQueue"), Cr = /* @__PURE__ */ r(async (e, n) => new Promise((i, a) => {
|
|
1091
|
-
let o = /* @__PURE__ */ r(() => new Promise((r, o) => {
|
|
1092
|
-
Z.parse(e, n).then((e) => {
|
|
1093
|
-
r(e), i(e);
|
|
1094
|
-
}, (e) => {
|
|
1095
|
-
t.error("Error parsing", e), $.parseError?.(e), o(e), a(e);
|
|
1096
|
-
});
|
|
1097
|
-
}), "performCall");
|
|
1098
|
-
Q.push(o), Sr().catch(a);
|
|
1099
|
-
}), "parse"), wr = /* @__PURE__ */ r((e, n, i) => new Promise((a, o) => {
|
|
1100
|
-
let s = /* @__PURE__ */ r(() => new Promise((r, s) => {
|
|
1101
|
-
Z.render(e, n, i).then((e) => {
|
|
1102
|
-
r(e), a(e);
|
|
1103
|
-
}, (e) => {
|
|
1104
|
-
t.error("Error parsing", e), $.parseError?.(e), s(e), o(e);
|
|
1105
|
-
});
|
|
1106
|
-
}), "performCall");
|
|
1107
|
-
Q.push(s), Sr().catch(o);
|
|
1108
|
-
}), "render"), $ = {
|
|
1109
|
-
startOnLoad: !0,
|
|
1110
|
-
mermaidAPI: Z,
|
|
1111
|
-
parse: Cr,
|
|
1112
|
-
render: wr,
|
|
1113
|
-
init: _r,
|
|
1114
|
-
run: mr,
|
|
1115
|
-
registerExternalDiagrams: vr,
|
|
1116
|
-
registerLayoutLoaders: ge,
|
|
1117
|
-
initialize: gr,
|
|
1118
|
-
parseError: void 0,
|
|
1119
|
-
contentLoaded: yr,
|
|
1120
|
-
setParseErrorHandler: br,
|
|
1121
|
-
detectType: T,
|
|
1122
|
-
registerIconPacks: me,
|
|
1123
|
-
getRegisteredDiagramsMetadata: /* @__PURE__ */ r(() => Object.keys(C).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
|
|
1124
|
-
}, Tr = $;
|
|
1125
|
-
//#endregion
|
|
1126
|
-
export { Tr as default };
|