hexagon-editor 0.1.5 → 0.1.7

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.
Files changed (117) hide show
  1. package/README.md +44 -24
  2. package/dist/MarkdownEditor.vue.d.ts +28 -26
  3. package/dist/MarkdownEditor.vue.d.ts.map +1 -1
  4. package/dist/{MarkdownEditorLinkForm-C7CGgA83.js → MarkdownEditorLinkForm-B9dEX3WT.js} +1 -1
  5. package/dist/{base-Bnv2-Te4.js → base-BPdMUtQo.js} +141 -137
  6. package/dist/components/MarkdownEditorToolbar.vue.d.ts +4 -3
  7. package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -1
  8. package/dist/configure.d.ts +0 -2
  9. package/dist/configure.d.ts.map +1 -1
  10. package/dist/configure.js +11 -12
  11. package/dist/core/basic-editor-markdown.d.ts.map +1 -1
  12. package/dist/core/basic-editor-renderers.d.ts +6 -4
  13. package/dist/core/basic-editor-renderers.d.ts.map +1 -1
  14. package/dist/core/basic-editor-types.d.ts +2 -0
  15. package/dist/core/basic-editor-types.d.ts.map +1 -1
  16. package/dist/core/basic-editor.d.ts +1 -1
  17. package/dist/core/basic-editor.d.ts.map +1 -1
  18. package/dist/core/index.d.ts +0 -2
  19. package/dist/core/index.d.ts.map +1 -1
  20. package/dist/core.js +28 -31
  21. package/dist/extensions.js +1 -1
  22. package/dist/forms/MarkdownEditorImageForm.vue.d.ts +2 -2
  23. package/dist/forms/MarkdownEditorImageForm.vue.d.ts.map +1 -1
  24. package/dist/forms/MarkdownEditorLinkForm.vue.d.ts +2 -2
  25. package/dist/forms/MarkdownEditorTextInput.vue.d.ts +2 -2
  26. package/dist/forms/MarkdownEditorTextInput.vue.d.ts.map +1 -1
  27. package/dist/forms.js +1 -1
  28. package/dist/{full-C-o2lPBX.js → full-Da8esvj2.js} +1 -1
  29. package/dist/{full-specs-Cl-ODShc.js → full-specs-hXKoMF-0.js} +1 -1
  30. package/dist/index-D_CMntQU.js +3173 -0
  31. package/dist/index.css +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +240 -236
  35. package/dist/{markup-commands-B2NMfYHE.js → markup-commands-BYsx8ADT.js} +1989 -1963
  36. package/dist/presets.js +2 -2
  37. package/dist/public-types.d.ts +22 -0
  38. package/dist/public-types.d.ts.map +1 -1
  39. package/dist/renderer/MarkdownRenderer.vue.d.ts +2 -0
  40. package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -1
  41. package/dist/renderer/markdown.d.ts +2 -1
  42. package/dist/renderer/markdown.d.ts.map +1 -1
  43. package/dist/renderer.css +1 -1
  44. package/dist/renderer.js +3590 -200
  45. package/package.json +106 -108
  46. package/dist/MarkdownEditorLinkForm.css +0 -1
  47. package/dist/abnfDiagram-N423BO3Z-DCf6sPky.js +0 -87
  48. package/dist/arc-y6UeoJpJ.js +0 -83
  49. package/dist/architectureDiagram-T3A2C74G-Cc3_3-cI.js +0 -4778
  50. package/dist/base.css +0 -1
  51. package/dist/blockDiagram-VBNYF7ZC-DWVLZwXY.js +0 -2419
  52. package/dist/c4Diagram-5PPSVZJV-CaIN7qay.js +0 -1577
  53. package/dist/channel-BwXGcavV.js +0 -5
  54. package/dist/chunk-2GRJ4B5K-O75udjPr.js +0 -68
  55. package/dist/chunk-2Q5K7J3B-CySL0lOA.js +0 -15
  56. package/dist/chunk-5RXB4S5H-BKPnLCOJ.js +0 -1408
  57. package/dist/chunk-5VM5RSS4--it1VJIv.js +0 -19
  58. package/dist/chunk-6Q2QTUOP-DNiML-50.js +0 -664
  59. package/dist/chunk-GF5L2VYU-z7A-k0-V.js +0 -1533
  60. package/dist/chunk-JWPE2WC7-DAjx3Kjr.js +0 -8
  61. package/dist/chunk-KBJHAD2P-D4R1VW0r.js +0 -19
  62. package/dist/chunk-RYQCIY6F-DmJAYxq8.js +0 -313
  63. package/dist/chunk-XXDRQBXY-CK913N-t.js +0 -8
  64. package/dist/classDiagram-JCYQIIEL-Djipq_HJ.js +0 -16
  65. package/dist/classDiagram-v2-OCEON4UE-Djipq_HJ.js +0 -16
  66. package/dist/core/optional-renderers.d.ts +0 -9
  67. package/dist/core/optional-renderers.d.ts.map +0 -1
  68. package/dist/cose-bilkent-JH36ORCC-CXuKFbXy.js +0 -2608
  69. package/dist/cynefin-VYW2F7L2-Bkk-F_Js.js +0 -23766
  70. package/dist/cynefinDiagram-MW4NZA55-DwOK40hm.js +0 -299
  71. package/dist/cytoscape.esm-3W4EOjxC.js +0 -18756
  72. package/dist/dagre-VZM6K2ZE-0VsGm8Ag.js +0 -340
  73. package/dist/defaultLocale-BgPVtth8.js +0 -171
  74. package/dist/diagram-7IWD3JNH-BrApu1hz.js +0 -350
  75. package/dist/diagram-B4RE2ZJO-CVXoBg2r.js +0 -461
  76. package/dist/diagram-LBJQPF4R-Dp0eSz2L.js +0 -142
  77. package/dist/diagram-Q27KOJAE-DWIltqIH.js +0 -528
  78. package/dist/diagram-UB23O5K3-B7z2Lj3K.js +0 -219
  79. package/dist/ebnfDiagram-BXEA7PRR-CYgE6z_2.js +0 -109
  80. package/dist/erDiagram-JOGREHBK-D3QWrPo-.js +0 -910
  81. package/dist/flowDiagram-UKHOOZJN-CfjPcHNW.js +0 -1638
  82. package/dist/ganttDiagram-PKOTCBZU-ECmaWI-9.js +0 -2711
  83. package/dist/gitGraphDiagram-DS77QQ5N-DgG1RGJ8.js +0 -815
  84. package/dist/graph-DAHC4kPm.js +0 -1545
  85. package/dist/infoDiagram-6WML65LV-B1Yl3nZV.js +0 -24
  86. package/dist/init-DjUOC4st.js +0 -16
  87. package/dist/ishikawaDiagram-WSZJBQD7-4sngaB5o.js +0 -621
  88. package/dist/journeyDiagram-NVQOT4AX-B_6AmR_j.js +0 -834
  89. package/dist/kanban-definition-27J2QSJJ-B8BO9o8J.js +0 -724
  90. package/dist/katex-ByXcxnHy.js +0 -14436
  91. package/dist/katex-DoRnZ_sp.js +0 -11682
  92. package/dist/layout-DBbo_M5I.js +0 -1519
  93. package/dist/linear-BEdRfKba.js +0 -259
  94. package/dist/map-DRdzG8Ho.js +0 -224
  95. package/dist/markup-commands.css +0 -1
  96. package/dist/mermaid.core-CR0bA2Wa.js +0 -16496
  97. package/dist/mindmap-definition-FAOFIHXS-DnPz807N.js +0 -827
  98. package/dist/optional-renderers-BalvqqvY.js +0 -11
  99. package/dist/ordinal-B6-f3MAq.js +0 -61
  100. package/dist/pegDiagram-VL7TDLO6-csGWlzs8.js +0 -95
  101. package/dist/pieDiagram-7S7Q4E2Y-Bqs8j5FX.js +0 -207
  102. package/dist/quadrantDiagram-CIZ2JOQS-jzP4lRrY.js +0 -1023
  103. package/dist/railroadDiagram-AXF67PYL-BSCyR24u.js +0 -77
  104. package/dist/renderer/mermaid-runtime.d.ts +0 -4
  105. package/dist/renderer/mermaid-runtime.d.ts.map +0 -1
  106. package/dist/requirementDiagram-LRYGKXZP-DmEkLYqX.js +0 -882
  107. package/dist/sankeyDiagram-W5VNT64P-CYvRYMTh.js +0 -847
  108. package/dist/sequenceDiagram-SI44F4Z6-CyWbDtPA.js +0 -2888
  109. package/dist/sizeCapture-X5ZJPWSS-xKhYCY84.js +0 -46
  110. package/dist/stateDiagram-OKZ733FA-DP44R2Dd.js +0 -263
  111. package/dist/stateDiagram-v2-UEYNNEHI-BvlOisND.js +0 -16
  112. package/dist/swimlanes-SLNWSIFB-BKFp8twH.js +0 -5332
  113. package/dist/swimlanesDiagram-ULZ7WXOC-CTvIFuHq.js +0 -13
  114. package/dist/timeline-definition-Z64GVDOM-B4137uIl.js +0 -1055
  115. package/dist/vennDiagram-T6HMQDX7-CPs8gXjx.js +0 -1578
  116. package/dist/wardleyDiagram-T6FBY63Y-BYp13hbI.js +0 -675
  117. package/dist/xychartDiagram-ELKLHX3M-DTT37K2u.js +0 -1388
@@ -1,1638 +0,0 @@
1
- import { g as Xe } from "./chunk-5VM5RSS4--it1VJIv.js";
2
- import { g as Qe } from "./chunk-XXDRQBXY-CK913N-t.js";
3
- import { s as Je } from "./chunk-KBJHAD2P-D4R1VW0r.js";
4
- import { _ as k, b6 as Ze, F as Me, l as J, c as g1, u as $e, v as et, x as re, b as tt, s as st, n as it, a as rt, g as at, o as nt, k as ut, G as ot, J as lt, bp as ct, q as se, d as ie, N as ht, p as dt, b9 as pt, r as ft } from "./mermaid.core-CR0bA2Wa.js";
5
- import { f as gt } from "./chunk-2GRJ4B5K-O75udjPr.js";
6
- import { c as bt } from "./channel-BwXGcavV.js";
7
- var At = "flowchart-", G1, kt = (G1 = class {
8
- // cspell:ignore funs
9
- constructor() {
10
- this.vertexCounter = 0, this.config = g1(), this.diagramId = "", this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = tt, this.setAccDescription = st, this.setDiagramTitle = it, this.getAccTitle = rt, this.getAccDescription = at, this.getDiagramTitle = nt, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = {
11
- firstGraph: this.firstGraph.bind(this)
12
- }, this.clear(), this.setGen("gen-2");
13
- }
14
- sanitizeText(i) {
15
- return ut.sanitizeText(i, this.config);
16
- }
17
- sanitizeNodeLabelType(i) {
18
- switch (i) {
19
- case "markdown":
20
- case "string":
21
- case "text":
22
- return i;
23
- default:
24
- return "markdown";
25
- }
26
- }
27
- /**
28
- * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
29
- * across multiple diagrams on the same page.
30
- */
31
- setDiagramId(i) {
32
- this.diagramId = i;
33
- }
34
- /**
35
- * Function to lookup domId from id in the graph definition.
36
- * When diagramId is set, returns the prefixed version for DOM uniqueness.
37
- *
38
- * @param id - id of the node
39
- */
40
- lookUpDomId(i) {
41
- for (const r of this.vertices.values())
42
- if (r.id === i)
43
- return this.diagramId ? `${this.diagramId}-${r.domId}` : r.domId;
44
- return this.diagramId ? `${this.diagramId}-${i}` : i;
45
- }
46
- /**
47
- * Function called by parser when a node definition has been found
48
- */
49
- addVertex(i, r, a, n, l, p, c = {}, g) {
50
- if (!i || i.trim().length === 0)
51
- return;
52
- let u;
53
- if (g !== void 0) {
54
- let m;
55
- g.includes(`
56
- `) ? m = g + `
57
- ` : m = `{
58
- ` + g + `
59
- }`, u = ot(m, { schema: lt });
60
- }
61
- const A = this.edges.find((m) => m.id === i);
62
- if (A) {
63
- const m = u;
64
- m?.animate !== void 0 && (A.animate = m.animate), m?.animation !== void 0 && (A.animation = m.animation), m?.curve !== void 0 && (A.interpolate = m.curve);
65
- return;
66
- }
67
- let v, b = this.vertices.get(i);
68
- if (b === void 0 && (r === void 0 && a === void 0 && n !== void 0 && n !== null && J.warn(
69
- `Style applied to unknown node "${i}". This may indicate a typo. The node will be created automatically.`
70
- ), b = {
71
- id: i,
72
- labelType: "text",
73
- domId: At + i + "-" + this.vertexCounter,
74
- styles: [],
75
- classes: []
76
- }, this.vertices.set(i, b)), this.vertexCounter++, r !== void 0 ? (this.config = g1(), v = this.sanitizeText(r.text.trim()), b.labelType = r.type, v.startsWith('"') && v.endsWith('"') && (v = v.substring(1, v.length - 1)), b.text = v) : b.text === void 0 && (b.text = i), a !== void 0 && (b.type = a), n?.forEach((m) => {
77
- b.styles.push(m);
78
- }), l?.forEach((m) => {
79
- b.classes.push(m);
80
- }), p !== void 0 && (b.dir = p), b.props === void 0 ? b.props = c : c !== void 0 && Object.assign(b.props, c), u !== void 0) {
81
- if (u.shape) {
82
- if (u.shape !== u.shape.toLowerCase() || u.shape.includes("_"))
83
- throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);
84
- if (!ct(u.shape))
85
- throw new Error(`No such shape: ${u.shape}.`);
86
- b.type = u?.shape;
87
- }
88
- u?.label && (b.text = u?.label, b.labelType = this.sanitizeNodeLabelType(u?.labelType)), u?.icon && (b.icon = u?.icon, !u.label?.trim() && b.text === i && (b.text = "")), u?.form && (b.form = u?.form), u?.pos && (b.pos = u?.pos), u?.img && (b.img = u?.img, !u.label?.trim() && b.text === i && (b.text = "")), u?.constraint && (b.constraint = u.constraint), u.w && (b.assetWidth = Number(u.w)), u.h && (b.assetHeight = Number(u.h));
89
- }
90
- }
91
- /**
92
- * Function called by parser when a link/edge definition has been found
93
- *
94
- */
95
- addSingleLink(i, r, a, n) {
96
- const c = {
97
- start: i,
98
- end: r,
99
- type: void 0,
100
- text: "",
101
- labelType: "text",
102
- classes: [],
103
- isUserDefinedId: !1,
104
- interpolate: this.edges.defaultInterpolate
105
- };
106
- J.info("abc78 Got edge...", c);
107
- const g = a.text;
108
- if (g !== void 0 && (c.text = this.sanitizeText(g.text.trim()), c.text.startsWith('"') && c.text.endsWith('"') && (c.text = c.text.substring(1, c.text.length - 1)), c.labelType = this.sanitizeNodeLabelType(g.type)), a !== void 0 && (c.type = a.type, c.stroke = a.stroke, c.length = a.length > 10 ? 10 : a.length), n && !this.edges.some((u) => u.id === n))
109
- c.id = n, c.isUserDefinedId = !0;
110
- else {
111
- const u = this.edges.filter((A) => A.start === c.start && A.end === c.end);
112
- u.length === 0 ? c.id = se(c.start, c.end, { counter: 0, prefix: "L" }) : c.id = se(c.start, c.end, {
113
- counter: u.length + 1,
114
- prefix: "L"
115
- });
116
- }
117
- if (this.edges.length < (this.config.maxEdges ?? 500))
118
- J.info("Pushing edge..."), this.edges.push(c);
119
- else
120
- throw new Error(
121
- `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
122
-
123
- Initialize mermaid with maxEdges set to a higher number to allow more edges.
124
- You cannot set this config via configuration inside the diagram as it is a secure config.
125
- You have to call mermaid.initialize.`
126
- );
127
- }
128
- isLinkData(i) {
129
- return i !== null && typeof i == "object" && "id" in i && typeof i.id == "string";
130
- }
131
- addLink(i, r, a) {
132
- const n = this.isLinkData(a) ? a.id.replace("@", "") : void 0;
133
- J.info("addLink", i, r, n);
134
- for (const l of i)
135
- for (const p of r) {
136
- const c = l === i[i.length - 1], g = p === r[0];
137
- c && g ? this.addSingleLink(l, p, a, n) : this.addSingleLink(l, p, a, void 0);
138
- }
139
- }
140
- /**
141
- * Updates a link's line interpolation algorithm
142
- */
143
- updateLinkInterpolate(i, r) {
144
- i.forEach((a) => {
145
- a === "default" ? this.edges.defaultInterpolate = r : this.edges[a].interpolate = r;
146
- });
147
- }
148
- /**
149
- * Updates a link with a style
150
- *
151
- */
152
- updateLink(i, r) {
153
- i.forEach((a) => {
154
- if (typeof a == "number" && a >= this.edges.length)
155
- throw new Error(
156
- `The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length - 1}. (Help: Ensure that the index is within the range of existing edges.)`
157
- );
158
- a === "default" ? this.edges.defaultStyle = r : (this.edges[a].style = r, (this.edges[a]?.style?.length ?? 0) > 0 && !this.edges[a]?.style?.some((n) => n?.startsWith("fill")) && this.edges[a]?.style?.push("fill:none"));
159
- });
160
- }
161
- addClass(i, r) {
162
- const a = r.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
163
- i.split(",").forEach((n) => {
164
- let l = this.classes.get(n);
165
- l === void 0 && (l = { id: n, styles: [], textStyles: [] }, this.classes.set(n, l)), a?.forEach((p) => {
166
- if (/color/.exec(p)) {
167
- const c = p.replace("fill", "bgFill");
168
- l.textStyles.push(c);
169
- }
170
- l.styles.push(p);
171
- });
172
- });
173
- }
174
- /**
175
- * Called by parser when a graph definition is found, stores the direction of the chart.
176
- *
177
- */
178
- setDirection(i) {
179
- this.direction = i.trim(), /.*</.exec(this.direction) && (this.direction = "RL"), /.*\^/.exec(this.direction) && (this.direction = "BT"), /.*>/.exec(this.direction) && (this.direction = "LR"), /.*v/.exec(this.direction) && (this.direction = "TB"), this.direction === "TD" && (this.direction = "TB");
180
- }
181
- /**
182
- * Called by parser when a special node is found, e.g. a clickable element.
183
- *
184
- * @param ids - Comma separated list of ids
185
- * @param className - Class to add
186
- */
187
- setClass(i, r) {
188
- for (const a of i.split(",")) {
189
- const n = this.vertices.get(a);
190
- n && n.classes.push(r);
191
- const l = this.edges.find((c) => c.id === a);
192
- l && l.classes.push(r);
193
- const p = this.subGraphLookup.get(a);
194
- p && p.classes.push(r);
195
- }
196
- }
197
- setTooltip(i, r) {
198
- if (r !== void 0) {
199
- r = this.sanitizeText(r);
200
- for (const a of i.split(","))
201
- this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(a) : a, r);
202
- }
203
- }
204
- setClickFun(i, r, a) {
205
- if (g1().securityLevel !== "loose" || r === void 0)
206
- return;
207
- let n = [];
208
- if (typeof a == "string") {
209
- n = a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
210
- for (let p = 0; p < n.length; p++) {
211
- let c = n[p].trim();
212
- c.startsWith('"') && c.endsWith('"') && (c = c.substr(1, c.length - 2)), n[p] = c;
213
- }
214
- }
215
- n.length === 0 && n.push(i);
216
- const l = this.vertices.get(i);
217
- l && (l.haveCallback = !0, this.funs.push(() => {
218
- const p = this.lookUpDomId(i), c = document.querySelector(`[id="${p}"]`);
219
- c !== null && c.addEventListener(
220
- "click",
221
- () => {
222
- re.runFunc(r, ...n);
223
- },
224
- !1
225
- );
226
- }));
227
- }
228
- /**
229
- * Called by parser when a link is found. Adds the URL to the vertex data.
230
- *
231
- * @param ids - Comma separated list of ids
232
- * @param linkStr - URL to create a link for
233
- * @param target - Target attribute for the link
234
- */
235
- setLink(i, r, a) {
236
- i.split(",").forEach((n) => {
237
- const l = this.vertices.get(n);
238
- l !== void 0 && (l.link = re.formatUrl(r, this.config), l.linkTarget = a);
239
- }), this.setClass(i, "clickable");
240
- }
241
- getTooltip(i) {
242
- return this.tooltips.get(i);
243
- }
244
- /**
245
- * Called by parser when a click definition is found. Registers an event handler.
246
- *
247
- * @param ids - Comma separated list of ids
248
- * @param functionName - Function to be called on click
249
- * @param functionArgs - Arguments to be passed to the function
250
- */
251
- setClickEvent(i, r, a) {
252
- i.split(",").forEach((n) => {
253
- this.setClickFun(n, r, a);
254
- }), this.setClass(i, "clickable");
255
- }
256
- bindFunctions(i) {
257
- this.funs.forEach((r) => {
258
- r(i);
259
- });
260
- }
261
- getDirection() {
262
- return this.direction?.trim();
263
- }
264
- /**
265
- * Retrieval function for fetching the found nodes after parsing has completed.
266
- *
267
- */
268
- getVertices() {
269
- return this.vertices;
270
- }
271
- /**
272
- * Retrieval function for fetching the found links after parsing has completed.
273
- *
274
- */
275
- getEdges() {
276
- return this.edges;
277
- }
278
- /**
279
- * Retrieval function for fetching the found class definitions after parsing has completed.
280
- *
281
- */
282
- getClasses() {
283
- return this.classes;
284
- }
285
- setupToolTips(i) {
286
- const r = gt();
287
- ie(i).select("svg").selectAll("g.node").on("mouseover", (l) => {
288
- const p = ie(l.currentTarget), c = p.attr("title");
289
- if (c === null)
290
- return;
291
- const g = l.currentTarget?.getBoundingClientRect();
292
- r.transition().duration(200).style("opacity", ".9"), r.text(p.attr("title")).style("left", window.scrollX + g.left + (g.right - g.left) / 2 + "px").style("top", window.scrollY + g.bottom + "px"), r.html(ht.sanitize(c)), p.classed("hover", !0);
293
- }).on("mouseout", (l) => {
294
- r.transition().duration(500).style("opacity", 0), ie(l.currentTarget).classed("hover", !1);
295
- });
296
- }
297
- /**
298
- * Clears the internal graph db so that a new graph can be parsed.
299
- *
300
- */
301
- clear(i = "gen-2") {
302
- this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.diagramId = "", this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = i, this.config = g1(), dt();
303
- }
304
- setGen(i) {
305
- this.version = i || "gen-2";
306
- }
307
- defaultStyle() {
308
- return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
309
- }
310
- addSubGraph(i, r, a) {
311
- let n = i.text.trim(), l = a.text;
312
- i === a && /\s/.exec(a.text) && (n = void 0);
313
- const c = (/* @__PURE__ */ k((S) => {
314
- const B = { boolean: {}, number: {}, string: {} }, b1 = [];
315
- let A1;
316
- return { nodeList: S.filter(function(K) {
317
- const h1 = typeof K;
318
- return K.stmt && K.stmt === "dir" ? (A1 = K.value, !1) : K.trim() === "" ? !1 : h1 in B ? B[h1].hasOwnProperty(K) ? !1 : B[h1][K] = !0 : b1.includes(K) ? !1 : b1.push(K);
319
- }), dir: A1 };
320
- }, "uniq"))(r.flat()), g = c.nodeList, u = c.dir, A = u !== void 0, v = g1().flowchart ?? {}, b = u ?? (v.inheritDir ? this.getDirection() ?? g1().direction ?? void 0 : void 0);
321
- if (this.version === "gen-1")
322
- for (let S = 0; S < g.length; S++)
323
- g[S] = this.lookUpDomId(g[S]);
324
- n = n ?? "subGraph" + this.subCount, l = l || "", l = this.sanitizeText(l), this.subCount = this.subCount + 1;
325
- const m = {
326
- id: n,
327
- nodes: g,
328
- title: l.trim(),
329
- classes: [],
330
- dir: b,
331
- hasExplicitDir: A,
332
- labelType: this.sanitizeNodeLabelType(a?.type)
333
- };
334
- return J.info("Adding", m.id, m.nodes, m.dir), m.nodes = this.makeUniq(m, this.subGraphs).nodes, this.subGraphs.push(m), this.subGraphLookup.set(n, m), n;
335
- }
336
- getPosForId(i) {
337
- for (const [r, a] of this.subGraphs.entries())
338
- if (a.id === i)
339
- return r;
340
- return -1;
341
- }
342
- indexNodes2(i, r) {
343
- const a = this.subGraphs[r].nodes;
344
- if (this.secCount = this.secCount + 1, this.secCount > 2e3)
345
- return {
346
- result: !1,
347
- count: 0
348
- };
349
- if (this.posCrossRef[this.secCount] = r, this.subGraphs[r].id === i)
350
- return {
351
- result: !0,
352
- count: 0
353
- };
354
- let n = 0, l = 1;
355
- for (; n < a.length; ) {
356
- const p = this.getPosForId(a[n]);
357
- if (p >= 0) {
358
- const c = this.indexNodes2(i, p);
359
- if (c.result)
360
- return {
361
- result: !0,
362
- count: l + c.count
363
- };
364
- l = l + c.count;
365
- }
366
- n = n + 1;
367
- }
368
- return {
369
- result: !1,
370
- count: l
371
- };
372
- }
373
- getDepthFirstPos(i) {
374
- return this.posCrossRef[i];
375
- }
376
- indexNodes() {
377
- this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
378
- }
379
- getSubGraphs() {
380
- return this.subGraphs;
381
- }
382
- firstGraph() {
383
- return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
384
- }
385
- destructStartLink(i) {
386
- let r = i.trim(), a = "arrow_open";
387
- switch (r[0]) {
388
- case "<":
389
- a = "arrow_point", r = r.slice(1);
390
- break;
391
- case "x":
392
- a = "arrow_cross", r = r.slice(1);
393
- break;
394
- case "o":
395
- a = "arrow_circle", r = r.slice(1);
396
- break;
397
- }
398
- let n = "normal";
399
- return r.includes("=") && (n = "thick"), r.includes(".") && (n = "dotted"), { type: a, stroke: n };
400
- }
401
- countChar(i, r) {
402
- const a = r.length;
403
- let n = 0;
404
- for (let l = 0; l < a; ++l)
405
- r[l] === i && ++n;
406
- return n;
407
- }
408
- destructEndLink(i) {
409
- const r = i.trim();
410
- let a = r.slice(0, -1), n = "arrow_open";
411
- switch (r.slice(-1)) {
412
- case "x":
413
- n = "arrow_cross", r.startsWith("x") && (n = "double_" + n, a = a.slice(1));
414
- break;
415
- case ">":
416
- n = "arrow_point", r.startsWith("<") && (n = "double_" + n, a = a.slice(1));
417
- break;
418
- case "o":
419
- n = "arrow_circle", r.startsWith("o") && (n = "double_" + n, a = a.slice(1));
420
- break;
421
- }
422
- let l = "normal", p = a.length - 1;
423
- a.startsWith("=") && (l = "thick"), a.startsWith("~") && (l = "invisible");
424
- const c = this.countChar(".", a);
425
- return c && (l = "dotted", p = c), { type: n, stroke: l, length: p };
426
- }
427
- destructLink(i, r) {
428
- const a = this.destructEndLink(i);
429
- let n;
430
- if (r) {
431
- if (n = this.destructStartLink(r), n.stroke !== a.stroke)
432
- return { type: "INVALID", stroke: "INVALID" };
433
- if (n.type === "arrow_open")
434
- n.type = a.type;
435
- else {
436
- if (n.type !== a.type)
437
- return { type: "INVALID", stroke: "INVALID" };
438
- n.type = "double_" + n.type;
439
- }
440
- return n.type === "double_arrow" && (n.type = "double_arrow_point"), n.length = a.length, n;
441
- }
442
- return a;
443
- }
444
- // Todo optimizer this by caching existing nodes
445
- exists(i, r) {
446
- for (const a of i)
447
- if (a.nodes.includes(r))
448
- return !0;
449
- return !1;
450
- }
451
- /**
452
- * Deletes an id from all subgraphs
453
- *
454
- */
455
- makeUniq(i, r) {
456
- const a = [];
457
- return i.nodes.forEach((n, l) => {
458
- this.exists(r, n) || a.push(i.nodes[l]);
459
- }), { nodes: a };
460
- }
461
- getTypeFromVertex(i) {
462
- if (i.img)
463
- return "imageSquare";
464
- if (i.icon)
465
- return i.form === "circle" ? "iconCircle" : i.form === "square" ? "iconSquare" : i.form === "rounded" ? "iconRounded" : "icon";
466
- switch (i.type) {
467
- case "square":
468
- case void 0:
469
- return "squareRect";
470
- case "round":
471
- return "roundedRect";
472
- case "ellipse":
473
- return "ellipse";
474
- default:
475
- return i.type;
476
- }
477
- }
478
- findNode(i, r) {
479
- return i.find((a) => a.id === r);
480
- }
481
- destructEdgeType(i) {
482
- let r = "none", a = "arrow_point";
483
- switch (i) {
484
- case "arrow_point":
485
- case "arrow_circle":
486
- case "arrow_cross":
487
- a = i;
488
- break;
489
- case "double_arrow_point":
490
- case "double_arrow_circle":
491
- case "double_arrow_cross":
492
- r = i.replace("double_", ""), a = r;
493
- break;
494
- }
495
- return { arrowTypeStart: r, arrowTypeEnd: a };
496
- }
497
- addNodeFromVertex(i, r, a, n, l, p) {
498
- const c = a.get(i.id), g = n.get(i.id) ?? !1, u = this.findNode(r, i.id);
499
- if (u)
500
- u.cssStyles = i.styles, u.cssCompiledStyles = this.getCompiledStyles(i.classes), u.cssClasses = i.classes.join(" ");
501
- else {
502
- const A = {
503
- id: i.id,
504
- label: i.text,
505
- labelType: i.labelType,
506
- labelStyle: "",
507
- parentId: c,
508
- padding: l.flowchart?.padding || 8,
509
- cssStyles: i.styles,
510
- cssCompiledStyles: this.getCompiledStyles(["default", "node", ...i.classes]),
511
- cssClasses: "default " + i.classes.join(" "),
512
- dir: i.dir,
513
- domId: i.domId,
514
- look: p,
515
- link: i.link,
516
- linkTarget: i.linkTarget,
517
- tooltip: this.getTooltip(i.id),
518
- icon: i.icon,
519
- pos: i.pos,
520
- img: i.img,
521
- assetWidth: i.assetWidth,
522
- assetHeight: i.assetHeight,
523
- constraint: i.constraint
524
- };
525
- g ? r.push({
526
- ...A,
527
- isGroup: !0,
528
- shape: "rect"
529
- }) : r.push({
530
- ...A,
531
- isGroup: !1,
532
- shape: this.getTypeFromVertex(i)
533
- });
534
- }
535
- }
536
- getCompiledStyles(i) {
537
- let r = [];
538
- for (const a of i) {
539
- const n = this.classes.get(a);
540
- n?.styles && (r = [...r, ...n.styles ?? []].map((l) => l.trim())), n?.textStyles && (r = [...r, ...n.textStyles ?? []].map((l) => l.trim()));
541
- }
542
- return r;
543
- }
544
- getData() {
545
- const i = g1(), r = [], a = [], n = this.getSubGraphs(), l = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
546
- for (let u = n.length - 1; u >= 0; u--) {
547
- const A = n[u];
548
- A.nodes.length > 0 && p.set(A.id, !0);
549
- for (const v of A.nodes)
550
- l.set(v, A.id);
551
- }
552
- for (let u = n.length - 1; u >= 0; u--) {
553
- const A = n[u];
554
- r.push({
555
- id: A.id,
556
- label: A.title,
557
- labelStyle: "",
558
- labelType: A.labelType,
559
- parentId: l.get(A.id),
560
- padding: 8,
561
- cssCompiledStyles: this.getCompiledStyles(A.classes),
562
- cssClasses: A.classes.join(" "),
563
- shape: "rect",
564
- dir: A.dir === "TD" ? "TB" : A.dir,
565
- // normalize TD→TB for dagre
566
- explicitDir: A.hasExplicitDir,
567
- // true only when the user wrote an explicit 'direction X' keyword
568
- isGroup: !0,
569
- look: i.look
570
- });
571
- }
572
- this.getVertices().forEach((u) => {
573
- this.addNodeFromVertex(u, r, l, p, i, i.look || "classic");
574
- });
575
- const g = this.getEdges();
576
- return g.forEach((u, A) => {
577
- const { arrowTypeStart: v, arrowTypeEnd: b } = this.destructEdgeType(u.type), m = [...g.defaultStyle ?? []];
578
- u.style && m.push(...u.style);
579
- const S = {
580
- id: se(u.start, u.end, { counter: A, prefix: "L" }, u.id),
581
- isUserDefinedId: u.isUserDefinedId,
582
- start: u.start,
583
- end: u.end,
584
- type: u.type ?? "normal",
585
- label: u.text,
586
- labelType: u.labelType,
587
- labelpos: "c",
588
- thickness: u.stroke,
589
- minlen: u.length,
590
- classes: u?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
591
- arrowTypeStart: u?.stroke === "invisible" || u?.type === "arrow_open" ? "none" : v,
592
- arrowTypeEnd: u?.stroke === "invisible" || u?.type === "arrow_open" ? "none" : b,
593
- arrowheadStyle: "fill: #333",
594
- cssCompiledStyles: this.getCompiledStyles(u.classes),
595
- labelStyle: m,
596
- style: m,
597
- pattern: u.stroke,
598
- look: i.look,
599
- animate: u.animate,
600
- animation: u.animation,
601
- curve: u.interpolate || this.edges.defaultInterpolate || i.flowchart?.curve
602
- };
603
- a.push(S);
604
- }), { nodes: r, edges: a, other: {}, config: i };
605
- }
606
- defaultConfig() {
607
- return pt.flowchart;
608
- }
609
- }, k(G1, "FlowDB"), G1), mt = /* @__PURE__ */ k(function(s, i) {
610
- return i.db.getClasses();
611
- }, "getClasses"), Dt = /* @__PURE__ */ k(async function(s, i, r, a, n) {
612
- J.info("REF0:"), J.info("Drawing state diagram (v2)", i);
613
- const { securityLevel: l, flowchart: p, layout: c } = g1();
614
- a.db.setDiagramId(i), J.debug("Before getData: ");
615
- const g = a.db.getData();
616
- J.debug("Data: ", g);
617
- const u = Qe(i, l), A = a.db.getDirection();
618
- g.type = a.type, g.layoutAlgorithm = $e(c), g.layoutAlgorithm === "dagre" && c === "elk" && J.warn(
619
- "flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."
620
- ), g.direction = A, g.nodeSpacing = p?.nodeSpacing || 50, g.rankSpacing = p?.rankSpacing || 50, g.markers = ["point", "circle", "cross"], g.diagramId = i, J.debug("REF1:", g), await et(g, u, n);
621
- const v = g.config.flowchart?.diagramPadding ?? 8;
622
- re.insertTitle(
623
- u,
624
- "flowchartTitleText",
625
- p?.titleTopMargin || 0,
626
- a.db.getDiagramTitle()
627
- ), Je(u, v, "flowchart", p?.useMaxWidth || !1);
628
- }, "draw"), Ct = {
629
- getClasses: mt,
630
- draw: Dt
631
- }, ae = (function() {
632
- var s = /* @__PURE__ */ k(function(f1, h, d, f) {
633
- for (d = d || {}, f = f1.length; f--; d[f1[f]] = h) ;
634
- return d;
635
- }, "o"), i = [1, 4], r = [1, 3], a = [1, 5], n = [1, 8, 9, 10, 11, 27, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124, 125], l = [2, 2], p = [1, 13], c = [1, 14], g = [1, 15], u = [1, 16], A = [1, 23], v = [1, 25], b = [1, 26], m = [1, 27], S = [1, 50], B = [1, 49], b1 = [1, 29], A1 = [1, 30], P1 = [1, 31], K = [1, 32], h1 = [1, 33], V = [1, 45], I = [1, 47], w = [1, 43], R = [1, 48], N = [1, 44], G = [1, 51], P = [1, 46], O = [1, 52], M = [1, 53], M1 = [1, 34], U1 = [1, 35], z1 = [1, 36], W1 = [1, 37], j1 = [1, 38], d1 = [1, 58], y = [1, 8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124, 125], $ = [1, 62], e1 = [1, 61], t1 = [1, 63], C1 = [8, 9, 11, 75, 77, 78], ne = [1, 79], E1 = [1, 92], T1 = [1, 97], S1 = [1, 96], y1 = [1, 93], x1 = [1, 89], F1 = [1, 95], _1 = [1, 91], B1 = [1, 98], v1 = [1, 94], L1 = [1, 99], V1 = [1, 90], k1 = [8, 9, 10, 11, 40, 75, 77, 78], z = [8, 9, 10, 11, 40, 46, 75, 77, 78], H = [8, 9, 10, 11, 29, 40, 44, 46, 48, 50, 52, 54, 56, 58, 60, 63, 65, 67, 68, 70, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], ue = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], I1 = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], oe = [1, 122], le = [1, 123], K1 = [1, 125], Y1 = [1, 124], ce = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], he = [1, 134], de = [1, 148], pe = [1, 149], fe = [1, 150], ge = [1, 151], be = [1, 136], Ae = [1, 138], ke = [1, 142], me = [1, 143], De = [1, 144], Ce = [1, 145], Ee = [1, 146], Te = [1, 147], Se = [1, 152], ye = [1, 153], xe = [1, 132], Fe = [1, 133], _e = [1, 140], Be = [1, 135], ve = [1, 139], Le = [1, 137], Q1 = [8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124, 125], Ve = [1, 155], Ie = [1, 157], _ = [8, 9, 11], q = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], D = [1, 177], W = [1, 173], j = [1, 174], C = [1, 178], E = [1, 175], T = [1, 176], w1 = [77, 116, 119], x = [8, 9, 10, 11, 12, 14, 27, 29, 32, 44, 60, 75, 84, 85, 86, 87, 88, 89, 90, 105, 109, 111, 114, 115, 116], we = [10, 106], p1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], s1 = [1, 248], i1 = [1, 246], r1 = [1, 250], a1 = [1, 244], n1 = [1, 245], u1 = [1, 247], o1 = [1, 249], l1 = [1, 251], R1 = [1, 269], Re = [8, 9, 11, 106], Z = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], J1 = {
636
- trace: /* @__PURE__ */ k(function() {
637
- }, "trace"),
638
- yy: {},
639
- symbols_: { error: 2, start: 3, graphConfig: 4, document: 5, line: 6, statement: 7, SEMI: 8, NEWLINE: 9, SPACE: 10, EOF: 11, GRAPH: 12, NODIR: 13, DIR: 14, FirstStmtSeparator: 15, ending: 16, endToken: 17, spaceList: 18, spaceListNewline: 19, vertexStatement: 20, separator: 21, styleStatement: 22, linkStyleStatement: 23, classDefStatement: 24, classStatement: 25, clickStatement: 26, subgraph: 27, textNoTags: 28, SQS: 29, text: 30, SQE: 31, end: 32, direction: 33, acc_title: 34, acc_title_value: 35, acc_descr: 36, acc_descr_value: 37, acc_descr_multiline_value: 38, shapeData: 39, SHAPE_DATA: 40, link: 41, node: 42, styledVertex: 43, AMP: 44, vertex: 45, STYLE_SEPARATOR: 46, idString: 47, DOUBLECIRCLESTART: 48, DOUBLECIRCLEEND: 49, PS: 50, PE: 51, "(-": 52, "-)": 53, STADIUMSTART: 54, STADIUMEND: 55, SUBROUTINESTART: 56, SUBROUTINEEND: 57, VERTEX_WITH_PROPS_START: 58, "NODE_STRING[field]": 59, COLON: 60, "NODE_STRING[value]": 61, PIPE: 62, CYLINDERSTART: 63, CYLINDEREND: 64, DIAMOND_START: 65, DIAMOND_STOP: 66, TAGEND: 67, TRAPSTART: 68, TRAPEND: 69, INVTRAPSTART: 70, INVTRAPEND: 71, linkStatement: 72, arrowText: 73, TESTSTR: 74, START_LINK: 75, edgeText: 76, LINK: 77, LINK_ID: 78, edgeTextToken: 79, STR: 80, MD_STR: 81, textToken: 82, keywords: 83, STYLE: 84, LINKSTYLE: 85, CLASSDEF: 86, CLASS: 87, CLICK: 88, DOWN: 89, UP: 90, textNoTagsToken: 91, stylesOpt: 92, "idString[vertex]": 93, "idString[class]": 94, CALLBACKNAME: 95, CALLBACKARGS: 96, HREF: 97, LINK_TARGET: 98, "STR[link]": 99, "STR[tooltip]": 100, alphaNum: 101, DEFAULT: 102, numList: 103, INTERPOLATE: 104, NUM: 105, COMMA: 106, style: 107, styleComponent: 108, NODE_STRING: 109, UNIT: 110, BRKT: 111, PCT: 112, idStringToken: 113, MINUS: 114, MULT: 115, UNICODE_TEXT: 116, TEXT: 117, TAGSTART: 118, EDGE_TEXT: 119, alphaNumToken: 120, direction_tb: 121, direction_bt: 122, direction_rl: 123, direction_lr: 124, direction_td: 125, $accept: 0, $end: 1 },
640
- terminals_: { 2: "error", 8: "SEMI", 9: "NEWLINE", 10: "SPACE", 11: "EOF", 12: "GRAPH", 13: "NODIR", 14: "DIR", 27: "subgraph", 29: "SQS", 31: "SQE", 32: "end", 34: "acc_title", 35: "acc_title_value", 36: "acc_descr", 37: "acc_descr_value", 38: "acc_descr_multiline_value", 40: "SHAPE_DATA", 44: "AMP", 46: "STYLE_SEPARATOR", 48: "DOUBLECIRCLESTART", 49: "DOUBLECIRCLEEND", 50: "PS", 51: "PE", 52: "(-", 53: "-)", 54: "STADIUMSTART", 55: "STADIUMEND", 56: "SUBROUTINESTART", 57: "SUBROUTINEEND", 58: "VERTEX_WITH_PROPS_START", 59: "NODE_STRING[field]", 60: "COLON", 61: "NODE_STRING[value]", 62: "PIPE", 63: "CYLINDERSTART", 64: "CYLINDEREND", 65: "DIAMOND_START", 66: "DIAMOND_STOP", 67: "TAGEND", 68: "TRAPSTART", 69: "TRAPEND", 70: "INVTRAPSTART", 71: "INVTRAPEND", 74: "TESTSTR", 75: "START_LINK", 77: "LINK", 78: "LINK_ID", 80: "STR", 81: "MD_STR", 84: "STYLE", 85: "LINKSTYLE", 86: "CLASSDEF", 87: "CLASS", 88: "CLICK", 89: "DOWN", 90: "UP", 93: "idString[vertex]", 94: "idString[class]", 95: "CALLBACKNAME", 96: "CALLBACKARGS", 97: "HREF", 98: "LINK_TARGET", 99: "STR[link]", 100: "STR[tooltip]", 102: "DEFAULT", 104: "INTERPOLATE", 105: "NUM", 106: "COMMA", 109: "NODE_STRING", 110: "UNIT", 111: "BRKT", 112: "PCT", 114: "MINUS", 115: "MULT", 116: "UNICODE_TEXT", 117: "TEXT", 118: "TAGSTART", 119: "EDGE_TEXT", 121: "direction_tb", 122: "direction_bt", 123: "direction_rl", 124: "direction_lr", 125: "direction_td" },
641
- productions_: [0, [3, 2], [5, 0], [5, 2], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [4, 2], [4, 2], [4, 2], [4, 3], [16, 2], [16, 1], [17, 1], [17, 1], [17, 1], [15, 1], [15, 1], [15, 2], [19, 2], [19, 2], [19, 1], [19, 1], [18, 2], [18, 1], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 9], [7, 6], [7, 4], [7, 1], [7, 2], [7, 2], [7, 1], [21, 1], [21, 1], [21, 1], [39, 2], [39, 1], [20, 4], [20, 3], [20, 4], [20, 2], [20, 2], [20, 1], [42, 1], [42, 6], [42, 5], [43, 1], [43, 3], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 8], [45, 4], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 4], [45, 4], [45, 1], [41, 2], [41, 3], [41, 3], [41, 1], [41, 3], [41, 4], [76, 1], [76, 2], [76, 1], [76, 1], [72, 1], [72, 2], [73, 3], [30, 1], [30, 2], [30, 1], [30, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [28, 1], [28, 2], [28, 1], [28, 1], [24, 5], [25, 5], [26, 2], [26, 4], [26, 3], [26, 5], [26, 3], [26, 5], [26, 5], [26, 7], [26, 2], [26, 4], [26, 2], [26, 4], [26, 4], [26, 6], [22, 5], [23, 5], [23, 5], [23, 9], [23, 9], [23, 7], [23, 7], [103, 1], [103, 3], [92, 1], [92, 3], [107, 1], [107, 2], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [82, 1], [82, 1], [82, 1], [82, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [79, 1], [79, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [47, 1], [47, 2], [101, 1], [101, 2], [33, 1], [33, 1], [33, 1], [33, 1], [33, 1]],
642
- performAction: /* @__PURE__ */ k(function(h, d, f, o, F, e, O1) {
643
- var t = e.length - 1;
644
- switch (F) {
645
- case 2:
646
- this.$ = [];
647
- break;
648
- case 3:
649
- (!Array.isArray(e[t]) || e[t].length > 0) && e[t - 1].push(e[t]), this.$ = e[t - 1];
650
- break;
651
- case 4:
652
- case 183:
653
- this.$ = e[t];
654
- break;
655
- case 11:
656
- o.setDirection("TB"), this.$ = "TB";
657
- break;
658
- case 12:
659
- o.setDirection(e[t - 1]), this.$ = e[t - 1];
660
- break;
661
- case 27:
662
- this.$ = e[t - 1].nodes;
663
- break;
664
- case 28:
665
- case 29:
666
- case 30:
667
- case 31:
668
- case 32:
669
- this.$ = [];
670
- break;
671
- case 33:
672
- this.$ = o.addSubGraph(e[t - 6], e[t - 1], e[t - 4]);
673
- break;
674
- case 34:
675
- this.$ = o.addSubGraph(e[t - 3], e[t - 1], e[t - 3]);
676
- break;
677
- case 35:
678
- this.$ = o.addSubGraph(void 0, e[t - 1], void 0);
679
- break;
680
- case 37:
681
- this.$ = e[t].trim(), o.setAccTitle(this.$);
682
- break;
683
- case 38:
684
- case 39:
685
- this.$ = e[t].trim(), o.setAccDescription(this.$);
686
- break;
687
- case 43:
688
- this.$ = e[t - 1] + e[t];
689
- break;
690
- case 44:
691
- this.$ = e[t];
692
- break;
693
- case 45:
694
- o.addVertex(e[t - 1][e[t - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[t]), o.addLink(e[t - 3].stmt, e[t - 1], e[t - 2]), this.$ = { stmt: e[t - 1], nodes: e[t - 1].concat(e[t - 3].nodes) };
695
- break;
696
- case 46:
697
- o.addLink(e[t - 2].stmt, e[t], e[t - 1]), this.$ = { stmt: e[t], nodes: e[t].concat(e[t - 2].nodes) };
698
- break;
699
- case 47:
700
- o.addLink(e[t - 3].stmt, e[t - 1], e[t - 2]), this.$ = { stmt: e[t - 1], nodes: e[t - 1].concat(e[t - 3].nodes) };
701
- break;
702
- case 48:
703
- this.$ = { stmt: e[t - 1], nodes: e[t - 1] };
704
- break;
705
- case 49:
706
- o.addVertex(e[t - 1][e[t - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[t]), this.$ = { stmt: e[t - 1], nodes: e[t - 1], shapeData: e[t] };
707
- break;
708
- case 50:
709
- this.$ = { stmt: e[t], nodes: e[t] };
710
- break;
711
- case 51:
712
- this.$ = [e[t]];
713
- break;
714
- case 52:
715
- o.addVertex(e[t - 5][e[t - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[t - 4]), this.$ = e[t - 5].concat(e[t]);
716
- break;
717
- case 53:
718
- this.$ = e[t - 4].concat(e[t]);
719
- break;
720
- case 54:
721
- this.$ = e[t];
722
- break;
723
- case 55:
724
- this.$ = e[t - 2], o.setClass(e[t - 2], e[t]);
725
- break;
726
- case 56:
727
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "square");
728
- break;
729
- case 57:
730
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "doublecircle");
731
- break;
732
- case 58:
733
- this.$ = e[t - 5], o.addVertex(e[t - 5], e[t - 2], "circle");
734
- break;
735
- case 59:
736
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "ellipse");
737
- break;
738
- case 60:
739
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "stadium");
740
- break;
741
- case 61:
742
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "subroutine");
743
- break;
744
- case 62:
745
- this.$ = e[t - 7], o.addVertex(e[t - 7], e[t - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[e[t - 5], e[t - 3]]]));
746
- break;
747
- case 63:
748
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "cylinder");
749
- break;
750
- case 64:
751
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "round");
752
- break;
753
- case 65:
754
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "diamond");
755
- break;
756
- case 66:
757
- this.$ = e[t - 5], o.addVertex(e[t - 5], e[t - 2], "hexagon");
758
- break;
759
- case 67:
760
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "odd");
761
- break;
762
- case 68:
763
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "trapezoid");
764
- break;
765
- case 69:
766
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "inv_trapezoid");
767
- break;
768
- case 70:
769
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "lean_right");
770
- break;
771
- case 71:
772
- this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "lean_left");
773
- break;
774
- case 72:
775
- this.$ = e[t], o.addVertex(e[t]);
776
- break;
777
- case 73:
778
- e[t - 1].text = e[t], this.$ = e[t - 1];
779
- break;
780
- case 74:
781
- case 75:
782
- e[t - 2].text = e[t - 1], this.$ = e[t - 2];
783
- break;
784
- case 76:
785
- this.$ = e[t];
786
- break;
787
- case 77:
788
- var L = o.destructLink(e[t], e[t - 2]);
789
- this.$ = { type: L.type, stroke: L.stroke, length: L.length, text: e[t - 1] };
790
- break;
791
- case 78:
792
- var L = o.destructLink(e[t], e[t - 2]);
793
- this.$ = { type: L.type, stroke: L.stroke, length: L.length, text: e[t - 1], id: e[t - 3] };
794
- break;
795
- case 79:
796
- this.$ = { text: e[t], type: "text" };
797
- break;
798
- case 80:
799
- this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
800
- break;
801
- case 81:
802
- this.$ = { text: e[t], type: "string" };
803
- break;
804
- case 82:
805
- this.$ = { text: e[t], type: "markdown" };
806
- break;
807
- case 83:
808
- var L = o.destructLink(e[t]);
809
- this.$ = { type: L.type, stroke: L.stroke, length: L.length };
810
- break;
811
- case 84:
812
- var L = o.destructLink(e[t]);
813
- this.$ = { type: L.type, stroke: L.stroke, length: L.length, id: e[t - 1] };
814
- break;
815
- case 85:
816
- this.$ = e[t - 1];
817
- break;
818
- case 86:
819
- this.$ = { text: e[t], type: "text" };
820
- break;
821
- case 87:
822
- this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
823
- break;
824
- case 88:
825
- this.$ = { text: e[t], type: "string" };
826
- break;
827
- case 89:
828
- case 104:
829
- this.$ = { text: e[t], type: "markdown" };
830
- break;
831
- case 101:
832
- this.$ = { text: e[t], type: "text" };
833
- break;
834
- case 102:
835
- this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
836
- break;
837
- case 103:
838
- this.$ = { text: e[t], type: "text" };
839
- break;
840
- case 105:
841
- this.$ = e[t - 4], o.addClass(e[t - 2], e[t]);
842
- break;
843
- case 106:
844
- this.$ = e[t - 4], o.setClass(e[t - 2], e[t]);
845
- break;
846
- case 107:
847
- case 115:
848
- this.$ = e[t - 1], o.setClickEvent(e[t - 1], e[t]);
849
- break;
850
- case 108:
851
- case 116:
852
- this.$ = e[t - 3], o.setClickEvent(e[t - 3], e[t - 2]), o.setTooltip(e[t - 3], e[t]);
853
- break;
854
- case 109:
855
- this.$ = e[t - 2], o.setClickEvent(e[t - 2], e[t - 1], e[t]);
856
- break;
857
- case 110:
858
- this.$ = e[t - 4], o.setClickEvent(e[t - 4], e[t - 3], e[t - 2]), o.setTooltip(e[t - 4], e[t]);
859
- break;
860
- case 111:
861
- this.$ = e[t - 2], o.setLink(e[t - 2], e[t]);
862
- break;
863
- case 112:
864
- this.$ = e[t - 4], o.setLink(e[t - 4], e[t - 2]), o.setTooltip(e[t - 4], e[t]);
865
- break;
866
- case 113:
867
- this.$ = e[t - 4], o.setLink(e[t - 4], e[t - 2], e[t]);
868
- break;
869
- case 114:
870
- this.$ = e[t - 6], o.setLink(e[t - 6], e[t - 4], e[t]), o.setTooltip(e[t - 6], e[t - 2]);
871
- break;
872
- case 117:
873
- this.$ = e[t - 1], o.setLink(e[t - 1], e[t]);
874
- break;
875
- case 118:
876
- this.$ = e[t - 3], o.setLink(e[t - 3], e[t - 2]), o.setTooltip(e[t - 3], e[t]);
877
- break;
878
- case 119:
879
- this.$ = e[t - 3], o.setLink(e[t - 3], e[t - 2], e[t]);
880
- break;
881
- case 120:
882
- this.$ = e[t - 5], o.setLink(e[t - 5], e[t - 4], e[t]), o.setTooltip(e[t - 5], e[t - 2]);
883
- break;
884
- case 121:
885
- this.$ = e[t - 4], o.addVertex(e[t - 2], void 0, void 0, e[t]);
886
- break;
887
- case 122:
888
- this.$ = e[t - 4], o.updateLink([e[t - 2]], e[t]);
889
- break;
890
- case 123:
891
- this.$ = e[t - 4], o.updateLink(e[t - 2], e[t]);
892
- break;
893
- case 124:
894
- this.$ = e[t - 8], o.updateLinkInterpolate([e[t - 6]], e[t - 2]), o.updateLink([e[t - 6]], e[t]);
895
- break;
896
- case 125:
897
- this.$ = e[t - 8], o.updateLinkInterpolate(e[t - 6], e[t - 2]), o.updateLink(e[t - 6], e[t]);
898
- break;
899
- case 126:
900
- this.$ = e[t - 6], o.updateLinkInterpolate([e[t - 4]], e[t]);
901
- break;
902
- case 127:
903
- this.$ = e[t - 6], o.updateLinkInterpolate(e[t - 4], e[t]);
904
- break;
905
- case 128:
906
- case 130:
907
- this.$ = [e[t]];
908
- break;
909
- case 129:
910
- case 131:
911
- e[t - 2].push(e[t]), this.$ = e[t - 2];
912
- break;
913
- case 133:
914
- this.$ = e[t - 1] + e[t];
915
- break;
916
- case 181:
917
- this.$ = e[t];
918
- break;
919
- case 182:
920
- this.$ = e[t - 1] + "" + e[t];
921
- break;
922
- case 184:
923
- this.$ = e[t - 1] + "" + e[t];
924
- break;
925
- case 185:
926
- this.$ = { stmt: "dir", value: "TB" };
927
- break;
928
- case 186:
929
- this.$ = { stmt: "dir", value: "BT" };
930
- break;
931
- case 187:
932
- this.$ = { stmt: "dir", value: "RL" };
933
- break;
934
- case 188:
935
- this.$ = { stmt: "dir", value: "LR" };
936
- break;
937
- case 189:
938
- this.$ = { stmt: "dir", value: "TD" };
939
- break;
940
- }
941
- }, "anonymous"),
942
- table: [{ 3: 1, 4: 2, 9: i, 10: r, 12: a }, { 1: [3] }, s(n, l, { 5: 6 }), { 4: 7, 9: i, 10: r, 12: a }, { 4: 8, 9: i, 10: r, 12: a }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: p, 9: c, 10: g, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 33: 24, 34: v, 36: b, 38: m, 42: 28, 43: 39, 44: S, 45: 40, 47: 41, 60: B, 84: b1, 85: A1, 86: P1, 87: K, 88: h1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: M1, 122: U1, 123: z1, 124: W1, 125: j1 }, s(n, [2, 9]), s(n, [2, 10]), s(n, [2, 11]), { 8: [1, 55], 9: [1, 56], 10: d1, 15: 54, 18: 57 }, s(y, [2, 3]), s(y, [2, 4]), s(y, [2, 5]), s(y, [2, 6]), s(y, [2, 7]), s(y, [2, 8]), { 8: $, 9: e1, 11: t1, 21: 59, 41: 60, 72: 64, 75: [1, 65], 77: [1, 67], 78: [1, 66] }, { 8: $, 9: e1, 11: t1, 21: 68 }, { 8: $, 9: e1, 11: t1, 21: 69 }, { 8: $, 9: e1, 11: t1, 21: 70 }, { 8: $, 9: e1, 11: t1, 21: 71 }, { 8: $, 9: e1, 11: t1, 21: 72 }, { 8: $, 9: e1, 10: [1, 73], 11: t1, 21: 74 }, s(y, [2, 36]), { 35: [1, 75] }, { 37: [1, 76] }, s(y, [2, 39]), s(C1, [2, 50], { 18: 77, 39: 78, 10: d1, 40: ne }), { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 10: [1, 83] }, { 14: E1, 44: T1, 60: S1, 80: [1, 87], 89: y1, 95: [1, 84], 97: [1, 85], 101: 86, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 88 }, s(y, [2, 185]), s(y, [2, 186]), s(y, [2, 187]), s(y, [2, 188]), s(y, [2, 189]), s(k1, [2, 51]), s(k1, [2, 54], { 46: [1, 100] }), s(z, [2, 72], { 113: 113, 29: [1, 101], 44: S, 48: [1, 102], 50: [1, 103], 52: [1, 104], 54: [1, 105], 56: [1, 106], 58: [1, 107], 60: B, 63: [1, 108], 65: [1, 109], 67: [1, 110], 68: [1, 111], 70: [1, 112], 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), s(H, [2, 181]), s(H, [2, 142]), s(H, [2, 143]), s(H, [2, 144]), s(H, [2, 145]), s(H, [2, 146]), s(H, [2, 147]), s(H, [2, 148]), s(H, [2, 149]), s(H, [2, 150]), s(H, [2, 151]), s(H, [2, 152]), s(n, [2, 12]), s(n, [2, 18]), s(n, [2, 19]), { 9: [1, 114] }, s(ue, [2, 26], { 18: 115, 10: d1 }), s(y, [2, 27]), { 42: 116, 43: 39, 44: S, 45: 40, 47: 41, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(y, [2, 40]), s(y, [2, 41]), s(y, [2, 42]), s(I1, [2, 76], { 73: 117, 62: [1, 119], 74: [1, 118] }), { 76: 120, 79: 121, 80: oe, 81: le, 116: K1, 119: Y1 }, { 75: [1, 126], 77: [1, 127] }, s(ce, [2, 83]), s(y, [2, 28]), s(y, [2, 29]), s(y, [2, 30]), s(y, [2, 31]), s(y, [2, 32]), { 10: he, 12: de, 14: pe, 27: fe, 28: 128, 32: ge, 44: be, 60: Ae, 75: ke, 80: [1, 130], 81: [1, 131], 83: 141, 84: me, 85: De, 86: Ce, 87: Ee, 88: Te, 89: Se, 90: ye, 91: 129, 105: xe, 109: Fe, 111: _e, 114: Be, 115: ve, 116: Le }, s(Q1, l, { 5: 154 }), s(y, [2, 37]), s(y, [2, 38]), s(C1, [2, 48], { 44: Ve }), s(C1, [2, 49], { 18: 156, 10: d1, 40: Ie }), s(k1, [2, 44]), { 44: S, 47: 158, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 102: [1, 159], 103: 160, 105: [1, 161] }, { 44: S, 47: 162, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 44: S, 47: 163, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(_, [2, 107], { 10: [1, 164], 96: [1, 165] }), { 80: [1, 166] }, s(_, [2, 115], { 120: 168, 10: [1, 167], 14: E1, 44: T1, 60: S1, 89: y1, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(_, [2, 117], { 10: [1, 169] }), s(q, [2, 183]), s(q, [2, 170]), s(q, [2, 171]), s(q, [2, 172]), s(q, [2, 173]), s(q, [2, 174]), s(q, [2, 175]), s(q, [2, 176]), s(q, [2, 177]), s(q, [2, 178]), s(q, [2, 179]), s(q, [2, 180]), { 44: S, 47: 170, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 30: 171, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 30: 179, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 30: 181, 50: [1, 180], 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 30: 182, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 30: 183, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 30: 184, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 109: [1, 185] }, { 30: 186, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 30: 187, 65: [1, 188], 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 30: 189, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 30: 190, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 30: 191, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, s(H, [2, 182]), s(n, [2, 20]), s(ue, [2, 25]), s(C1, [2, 46], { 39: 192, 18: 193, 10: d1, 40: ne }), s(I1, [2, 73], { 10: [1, 194] }), { 10: [1, 195] }, { 30: 196, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 77: [1, 197], 79: 198, 116: K1, 119: Y1 }, s(w1, [2, 79]), s(w1, [2, 81]), s(w1, [2, 82]), s(w1, [2, 168]), s(w1, [2, 169]), { 76: 199, 79: 121, 80: oe, 81: le, 116: K1, 119: Y1 }, s(ce, [2, 84]), { 8: $, 9: e1, 10: he, 11: t1, 12: de, 14: pe, 21: 201, 27: fe, 29: [1, 200], 32: ge, 44: be, 60: Ae, 75: ke, 83: 141, 84: me, 85: De, 86: Ce, 87: Ee, 88: Te, 89: Se, 90: ye, 91: 202, 105: xe, 109: Fe, 111: _e, 114: Be, 115: ve, 116: Le }, s(x, [2, 101]), s(x, [2, 103]), s(x, [2, 104]), s(x, [2, 157]), s(x, [2, 158]), s(x, [2, 159]), s(x, [2, 160]), s(x, [2, 161]), s(x, [2, 162]), s(x, [2, 163]), s(x, [2, 164]), s(x, [2, 165]), s(x, [2, 166]), s(x, [2, 167]), s(x, [2, 90]), s(x, [2, 91]), s(x, [2, 92]), s(x, [2, 93]), s(x, [2, 94]), s(x, [2, 95]), s(x, [2, 96]), s(x, [2, 97]), s(x, [2, 98]), s(x, [2, 99]), s(x, [2, 100]), { 6: 11, 7: 12, 8: p, 9: c, 10: g, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 32: [1, 203], 33: 24, 34: v, 36: b, 38: m, 42: 28, 43: 39, 44: S, 45: 40, 47: 41, 60: B, 84: b1, 85: A1, 86: P1, 87: K, 88: h1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: M1, 122: U1, 123: z1, 124: W1, 125: j1 }, { 10: d1, 18: 204 }, { 44: [1, 205] }, s(k1, [2, 43]), { 10: [1, 206], 44: S, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 113, 114: P, 115: O, 116: M }, { 10: [1, 207] }, { 10: [1, 208], 106: [1, 209] }, s(we, [2, 128]), { 10: [1, 210], 44: S, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 113, 114: P, 115: O, 116: M }, { 10: [1, 211], 44: S, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 113, 114: P, 115: O, 116: M }, { 80: [1, 212] }, s(_, [2, 109], { 10: [1, 213] }), s(_, [2, 111], { 10: [1, 214] }), { 80: [1, 215] }, s(q, [2, 184]), { 80: [1, 216], 98: [1, 217] }, s(k1, [2, 55], { 113: 113, 44: S, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), { 31: [1, 218], 67: D, 82: 219, 116: C, 117: E, 118: T }, s(p1, [2, 86]), s(p1, [2, 88]), s(p1, [2, 89]), s(p1, [2, 153]), s(p1, [2, 154]), s(p1, [2, 155]), s(p1, [2, 156]), { 49: [1, 220], 67: D, 82: 219, 116: C, 117: E, 118: T }, { 30: 221, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 51: [1, 222], 67: D, 82: 219, 116: C, 117: E, 118: T }, { 53: [1, 223], 67: D, 82: 219, 116: C, 117: E, 118: T }, { 55: [1, 224], 67: D, 82: 219, 116: C, 117: E, 118: T }, { 57: [1, 225], 67: D, 82: 219, 116: C, 117: E, 118: T }, { 60: [1, 226] }, { 64: [1, 227], 67: D, 82: 219, 116: C, 117: E, 118: T }, { 66: [1, 228], 67: D, 82: 219, 116: C, 117: E, 118: T }, { 30: 229, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, { 31: [1, 230], 67: D, 82: 219, 116: C, 117: E, 118: T }, { 67: D, 69: [1, 231], 71: [1, 232], 82: 219, 116: C, 117: E, 118: T }, { 67: D, 69: [1, 234], 71: [1, 233], 82: 219, 116: C, 117: E, 118: T }, s(C1, [2, 45], { 18: 156, 10: d1, 40: Ie }), s(C1, [2, 47], { 44: Ve }), s(I1, [2, 75]), s(I1, [2, 74]), { 62: [1, 235], 67: D, 82: 219, 116: C, 117: E, 118: T }, s(I1, [2, 77]), s(w1, [2, 80]), { 77: [1, 236], 79: 198, 116: K1, 119: Y1 }, { 30: 237, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, s(Q1, l, { 5: 238 }), s(x, [2, 102]), s(y, [2, 35]), { 43: 239, 44: S, 45: 40, 47: 41, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 10: d1, 18: 240 }, { 10: s1, 60: i1, 84: r1, 92: 241, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 252, 104: [1, 253], 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 254, 104: [1, 255], 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 105: [1, 256] }, { 10: s1, 60: i1, 84: r1, 92: 257, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 44: S, 47: 258, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(_, [2, 108]), { 80: [1, 259] }, { 80: [1, 260], 98: [1, 261] }, s(_, [2, 116]), s(_, [2, 118], { 10: [1, 262] }), s(_, [2, 119]), s(z, [2, 56]), s(p1, [2, 87]), s(z, [2, 57]), { 51: [1, 263], 67: D, 82: 219, 116: C, 117: E, 118: T }, s(z, [2, 64]), s(z, [2, 59]), s(z, [2, 60]), s(z, [2, 61]), { 109: [1, 264] }, s(z, [2, 63]), s(z, [2, 65]), { 66: [1, 265], 67: D, 82: 219, 116: C, 117: E, 118: T }, s(z, [2, 67]), s(z, [2, 68]), s(z, [2, 70]), s(z, [2, 69]), s(z, [2, 71]), s([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), s(I1, [2, 78]), { 31: [1, 266], 67: D, 82: 219, 116: C, 117: E, 118: T }, { 6: 11, 7: 12, 8: p, 9: c, 10: g, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 32: [1, 267], 33: 24, 34: v, 36: b, 38: m, 42: 28, 43: 39, 44: S, 45: 40, 47: 41, 60: B, 84: b1, 85: A1, 86: P1, 87: K, 88: h1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: M1, 122: U1, 123: z1, 124: W1, 125: j1 }, s(k1, [2, 53]), { 43: 268, 44: S, 45: 40, 47: 41, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(_, [2, 121], { 106: R1 }), s(Re, [2, 130], { 108: 270, 10: s1, 60: i1, 84: r1, 105: a1, 109: n1, 110: u1, 111: o1, 112: l1 }), s(Z, [2, 132]), s(Z, [2, 134]), s(Z, [2, 135]), s(Z, [2, 136]), s(Z, [2, 137]), s(Z, [2, 138]), s(Z, [2, 139]), s(Z, [2, 140]), s(Z, [2, 141]), s(_, [2, 122], { 106: R1 }), { 10: [1, 271] }, s(_, [2, 123], { 106: R1 }), { 10: [1, 272] }, s(we, [2, 129]), s(_, [2, 105], { 106: R1 }), s(_, [2, 106], { 113: 113, 44: S, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), s(_, [2, 110]), s(_, [2, 112], { 10: [1, 273] }), s(_, [2, 113]), { 98: [1, 274] }, { 51: [1, 275] }, { 62: [1, 276] }, { 66: [1, 277] }, { 8: $, 9: e1, 11: t1, 21: 278 }, s(y, [2, 34]), s(k1, [2, 52]), { 10: s1, 60: i1, 84: r1, 105: a1, 107: 279, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, s(Z, [2, 133]), { 14: E1, 44: T1, 60: S1, 89: y1, 101: 280, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 88 }, { 14: E1, 44: T1, 60: S1, 89: y1, 101: 281, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 88 }, { 98: [1, 282] }, s(_, [2, 120]), s(z, [2, 58]), { 30: 283, 67: D, 80: W, 81: j, 82: 172, 116: C, 117: E, 118: T }, s(z, [2, 66]), s(Q1, l, { 5: 284 }), s(Re, [2, 131], { 108: 270, 10: s1, 60: i1, 84: r1, 105: a1, 109: n1, 110: u1, 111: o1, 112: l1 }), s(_, [2, 126], { 120: 168, 10: [1, 285], 14: E1, 44: T1, 60: S1, 89: y1, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(_, [2, 127], { 120: 168, 10: [1, 286], 14: E1, 44: T1, 60: S1, 89: y1, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(_, [2, 114]), { 31: [1, 287], 67: D, 82: 219, 116: C, 117: E, 118: T }, { 6: 11, 7: 12, 8: p, 9: c, 10: g, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 32: [1, 288], 33: 24, 34: v, 36: b, 38: m, 42: 28, 43: 39, 44: S, 45: 40, 47: 41, 60: B, 84: b1, 85: A1, 86: P1, 87: K, 88: h1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: M1, 122: U1, 123: z1, 124: W1, 125: j1 }, { 10: s1, 60: i1, 84: r1, 92: 289, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 290, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, s(z, [2, 62]), s(y, [2, 33]), s(_, [2, 124], { 106: R1 }), s(_, [2, 125], { 106: R1 })],
943
- defaultActions: {},
944
- parseError: /* @__PURE__ */ k(function(h, d) {
945
- if (d.recoverable)
946
- this.trace(h);
947
- else {
948
- var f = new Error(h);
949
- throw f.hash = d, f;
950
- }
951
- }, "parseError"),
952
- parse: /* @__PURE__ */ k(function(h) {
953
- var d = this, f = [0], o = [], F = [null], e = [], O1 = this.table, t = "", L = 0, Ne = 0, Ke = 2, Ge = 1, Ye = e.slice.call(arguments, 1), U = Object.create(this.lexer), m1 = { yy: {} };
954
- for (var Z1 in this.yy)
955
- Object.prototype.hasOwnProperty.call(this.yy, Z1) && (m1.yy[Z1] = this.yy[Z1]);
956
- U.setInput(h, m1.yy), m1.yy.lexer = U, m1.yy.parser = this, typeof U.yylloc > "u" && (U.yylloc = {});
957
- var $1 = U.yylloc;
958
- e.push($1);
959
- var He = U.options && U.options.ranges;
960
- typeof m1.yy.parseError == "function" ? this.parseError = m1.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
961
- function qe(X) {
962
- f.length = f.length - 2 * X, F.length = F.length - X, e.length = e.length - X;
963
- }
964
- k(qe, "popStack");
965
- function Pe() {
966
- var X;
967
- return X = o.pop() || U.lex() || Ge, typeof X != "number" && (X instanceof Array && (o = X, X = o.pop()), X = d.symbols_[X] || X), X;
968
- }
969
- k(Pe, "lex");
970
- for (var Y, D1, Q, ee, N1 = {}, q1, c1, Oe, X1; ; ) {
971
- if (D1 = f[f.length - 1], this.defaultActions[D1] ? Q = this.defaultActions[D1] : ((Y === null || typeof Y > "u") && (Y = Pe()), Q = O1[D1] && O1[D1][Y]), typeof Q > "u" || !Q.length || !Q[0]) {
972
- var te = "";
973
- X1 = [];
974
- for (q1 in O1[D1])
975
- this.terminals_[q1] && q1 > Ke && X1.push("'" + this.terminals_[q1] + "'");
976
- U.showPosition ? te = "Parse error on line " + (L + 1) + `:
977
- ` + U.showPosition() + `
978
- Expecting ` + X1.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : te = "Parse error on line " + (L + 1) + ": Unexpected " + (Y == Ge ? "end of input" : "'" + (this.terminals_[Y] || Y) + "'"), this.parseError(te, {
979
- text: U.match,
980
- token: this.terminals_[Y] || Y,
981
- line: U.yylineno,
982
- loc: $1,
983
- expected: X1
984
- });
985
- }
986
- if (Q[0] instanceof Array && Q.length > 1)
987
- throw new Error("Parse Error: multiple actions possible at state: " + D1 + ", token: " + Y);
988
- switch (Q[0]) {
989
- case 1:
990
- f.push(Y), F.push(U.yytext), e.push(U.yylloc), f.push(Q[1]), Y = null, Ne = U.yyleng, t = U.yytext, L = U.yylineno, $1 = U.yylloc;
991
- break;
992
- case 2:
993
- if (c1 = this.productions_[Q[1]][1], N1.$ = F[F.length - c1], N1._$ = {
994
- first_line: e[e.length - (c1 || 1)].first_line,
995
- last_line: e[e.length - 1].last_line,
996
- first_column: e[e.length - (c1 || 1)].first_column,
997
- last_column: e[e.length - 1].last_column
998
- }, He && (N1._$.range = [
999
- e[e.length - (c1 || 1)].range[0],
1000
- e[e.length - 1].range[1]
1001
- ]), ee = this.performAction.apply(N1, [
1002
- t,
1003
- Ne,
1004
- L,
1005
- m1.yy,
1006
- Q[1],
1007
- F,
1008
- e
1009
- ].concat(Ye)), typeof ee < "u")
1010
- return ee;
1011
- c1 && (f = f.slice(0, -1 * c1 * 2), F = F.slice(0, -1 * c1), e = e.slice(0, -1 * c1)), f.push(this.productions_[Q[1]][0]), F.push(N1.$), e.push(N1._$), Oe = O1[f[f.length - 2]][f[f.length - 1]], f.push(Oe);
1012
- break;
1013
- case 3:
1014
- return !0;
1015
- }
1016
- }
1017
- return !0;
1018
- }, "parse")
1019
- }, je = /* @__PURE__ */ (function() {
1020
- var f1 = {
1021
- EOF: 1,
1022
- parseError: /* @__PURE__ */ k(function(d, f) {
1023
- if (this.yy.parser)
1024
- this.yy.parser.parseError(d, f);
1025
- else
1026
- throw new Error(d);
1027
- }, "parseError"),
1028
- // resets the lexer, sets new input
1029
- setInput: /* @__PURE__ */ k(function(h, d) {
1030
- return this.yy = d || this.yy || {}, this._input = h, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1031
- first_line: 1,
1032
- first_column: 0,
1033
- last_line: 1,
1034
- last_column: 0
1035
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1036
- }, "setInput"),
1037
- // consumes and returns one char from the input
1038
- input: /* @__PURE__ */ k(function() {
1039
- var h = this._input[0];
1040
- this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
1041
- var d = h.match(/(?:\r\n?|\n).*/g);
1042
- return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
1043
- }, "input"),
1044
- // unshifts one char (or a string) into the input
1045
- unput: /* @__PURE__ */ k(function(h) {
1046
- var d = h.length, f = h.split(/(?:\r\n?|\n)/g);
1047
- this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
1048
- var o = this.match.split(/(?:\r\n?|\n)/g);
1049
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), f.length - 1 && (this.yylineno -= f.length - 1);
1050
- var F = this.yylloc.range;
1051
- return this.yylloc = {
1052
- first_line: this.yylloc.first_line,
1053
- last_line: this.yylineno + 1,
1054
- first_column: this.yylloc.first_column,
1055
- last_column: f ? (f.length === o.length ? this.yylloc.first_column : 0) + o[o.length - f.length].length - f[0].length : this.yylloc.first_column - d
1056
- }, this.options.ranges && (this.yylloc.range = [F[0], F[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
1057
- }, "unput"),
1058
- // When called from action, caches matched text and appends it on next action
1059
- more: /* @__PURE__ */ k(function() {
1060
- return this._more = !0, this;
1061
- }, "more"),
1062
- // 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.
1063
- reject: /* @__PURE__ */ k(function() {
1064
- if (this.options.backtrack_lexer)
1065
- this._backtrack = !0;
1066
- else
1067
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
1068
- ` + this.showPosition(), {
1069
- text: "",
1070
- token: null,
1071
- line: this.yylineno
1072
- });
1073
- return this;
1074
- }, "reject"),
1075
- // retain first n characters of the match
1076
- less: /* @__PURE__ */ k(function(h) {
1077
- this.unput(this.match.slice(h));
1078
- }, "less"),
1079
- // displays already matched input, i.e. for error messages
1080
- pastInput: /* @__PURE__ */ k(function() {
1081
- var h = this.matched.substr(0, this.matched.length - this.match.length);
1082
- return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
1083
- }, "pastInput"),
1084
- // displays upcoming input, i.e. for error messages
1085
- upcomingInput: /* @__PURE__ */ k(function() {
1086
- var h = this.match;
1087
- return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
1088
- }, "upcomingInput"),
1089
- // displays the character position where the lexing error occurred, i.e. for error messages
1090
- showPosition: /* @__PURE__ */ k(function() {
1091
- var h = this.pastInput(), d = new Array(h.length + 1).join("-");
1092
- return h + this.upcomingInput() + `
1093
- ` + d + "^";
1094
- }, "showPosition"),
1095
- // test the lexed token: return FALSE when not a match, otherwise return token
1096
- test_match: /* @__PURE__ */ k(function(h, d) {
1097
- var f, o, F;
1098
- if (this.options.backtrack_lexer && (F = {
1099
- yylineno: this.yylineno,
1100
- yylloc: {
1101
- first_line: this.yylloc.first_line,
1102
- last_line: this.last_line,
1103
- first_column: this.yylloc.first_column,
1104
- last_column: this.yylloc.last_column
1105
- },
1106
- yytext: this.yytext,
1107
- match: this.match,
1108
- matches: this.matches,
1109
- matched: this.matched,
1110
- yyleng: this.yyleng,
1111
- offset: this.offset,
1112
- _more: this._more,
1113
- _input: this._input,
1114
- yy: this.yy,
1115
- conditionStack: this.conditionStack.slice(0),
1116
- done: this.done
1117
- }, this.options.ranges && (F.yylloc.range = this.yylloc.range.slice(0))), o = h[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
1118
- first_line: this.yylloc.last_line,
1119
- last_line: this.yylineno + 1,
1120
- first_column: this.yylloc.last_column,
1121
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
1122
- }, this.yytext += h[0], this.match += h[0], this.matches = h, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(h[0].length), this.matched += h[0], f = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), f)
1123
- return f;
1124
- if (this._backtrack) {
1125
- for (var e in F)
1126
- this[e] = F[e];
1127
- return !1;
1128
- }
1129
- return !1;
1130
- }, "test_match"),
1131
- // return next match in input
1132
- next: /* @__PURE__ */ k(function() {
1133
- if (this.done)
1134
- return this.EOF;
1135
- this._input || (this.done = !0);
1136
- var h, d, f, o;
1137
- this._more || (this.yytext = "", this.match = "");
1138
- for (var F = this._currentRules(), e = 0; e < F.length; e++)
1139
- if (f = this._input.match(this.rules[F[e]]), f && (!d || f[0].length > d[0].length)) {
1140
- if (d = f, o = e, this.options.backtrack_lexer) {
1141
- if (h = this.test_match(f, F[e]), h !== !1)
1142
- return h;
1143
- if (this._backtrack) {
1144
- d = !1;
1145
- continue;
1146
- } else
1147
- return !1;
1148
- } else if (!this.options.flex)
1149
- break;
1150
- }
1151
- return d ? (h = this.test_match(d, F[o]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1152
- ` + this.showPosition(), {
1153
- text: "",
1154
- token: null,
1155
- line: this.yylineno
1156
- });
1157
- }, "next"),
1158
- // return next match that has a token
1159
- lex: /* @__PURE__ */ k(function() {
1160
- var d = this.next();
1161
- return d || this.lex();
1162
- }, "lex"),
1163
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1164
- begin: /* @__PURE__ */ k(function(d) {
1165
- this.conditionStack.push(d);
1166
- }, "begin"),
1167
- // pop the previously active lexer condition state off the condition stack
1168
- popState: /* @__PURE__ */ k(function() {
1169
- var d = this.conditionStack.length - 1;
1170
- return d > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1171
- }, "popState"),
1172
- // produce the lexer rule set which is active for the currently active lexer condition state
1173
- _currentRules: /* @__PURE__ */ k(function() {
1174
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1175
- }, "_currentRules"),
1176
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1177
- topState: /* @__PURE__ */ k(function(d) {
1178
- return d = this.conditionStack.length - 1 - Math.abs(d || 0), d >= 0 ? this.conditionStack[d] : "INITIAL";
1179
- }, "topState"),
1180
- // alias for begin(condition)
1181
- pushState: /* @__PURE__ */ k(function(d) {
1182
- this.begin(d);
1183
- }, "pushState"),
1184
- // return the number of states currently on the stack
1185
- stateStackSize: /* @__PURE__ */ k(function() {
1186
- return this.conditionStack.length;
1187
- }, "stateStackSize"),
1188
- options: {},
1189
- performAction: /* @__PURE__ */ k(function(d, f, o, F) {
1190
- switch (o) {
1191
- case 0:
1192
- return this.begin("acc_title"), 34;
1193
- case 1:
1194
- return this.popState(), "acc_title_value";
1195
- case 2:
1196
- return this.begin("acc_descr"), 36;
1197
- case 3:
1198
- return this.popState(), "acc_descr_value";
1199
- case 4:
1200
- this.begin("acc_descr_multiline");
1201
- break;
1202
- case 5:
1203
- this.popState();
1204
- break;
1205
- case 6:
1206
- return "acc_descr_multiline_value";
1207
- case 7:
1208
- return this.pushState("shapeData"), f.yytext = "", 40;
1209
- case 8:
1210
- return this.pushState("shapeDataStr"), 40;
1211
- case 9:
1212
- return this.popState(), 40;
1213
- case 10:
1214
- const e = /\n\s*/g;
1215
- return f.yytext = f.yytext.replace(e, "<br/>"), 40;
1216
- case 11:
1217
- return 40;
1218
- case 12:
1219
- this.popState();
1220
- break;
1221
- case 13:
1222
- this.begin("callbackname");
1223
- break;
1224
- case 14:
1225
- this.popState();
1226
- break;
1227
- case 15:
1228
- this.popState(), this.begin("callbackargs");
1229
- break;
1230
- case 16:
1231
- return 95;
1232
- case 17:
1233
- this.popState();
1234
- break;
1235
- case 18:
1236
- return 96;
1237
- case 19:
1238
- return "MD_STR";
1239
- case 20:
1240
- this.popState();
1241
- break;
1242
- case 21:
1243
- this.begin("md_string");
1244
- break;
1245
- case 22:
1246
- return "STR";
1247
- case 23:
1248
- this.popState();
1249
- break;
1250
- case 24:
1251
- this.pushState("string");
1252
- break;
1253
- case 25:
1254
- return 84;
1255
- case 26:
1256
- return 102;
1257
- case 27:
1258
- return 85;
1259
- case 28:
1260
- return 104;
1261
- case 29:
1262
- return 86;
1263
- case 30:
1264
- return 87;
1265
- case 31:
1266
- return 97;
1267
- case 32:
1268
- this.begin("click");
1269
- break;
1270
- case 33:
1271
- this.popState();
1272
- break;
1273
- case 34:
1274
- return 88;
1275
- case 35:
1276
- return d.lex.firstGraph() && this.begin("dir"), 12;
1277
- case 36:
1278
- return d.lex.firstGraph() && this.begin("dir"), 12;
1279
- case 37:
1280
- return d.lex.firstGraph() && this.begin("dir"), 12;
1281
- case 38:
1282
- return d.lex.firstGraph() && this.begin("dir"), 12;
1283
- case 39:
1284
- return 27;
1285
- case 40:
1286
- return 32;
1287
- case 41:
1288
- return 98;
1289
- case 42:
1290
- return 98;
1291
- case 43:
1292
- return 98;
1293
- case 44:
1294
- return 98;
1295
- case 45:
1296
- return this.popState(), 13;
1297
- case 46:
1298
- return this.popState(), 14;
1299
- case 47:
1300
- return this.popState(), 14;
1301
- case 48:
1302
- return this.popState(), 14;
1303
- case 49:
1304
- return this.popState(), 14;
1305
- case 50:
1306
- return this.popState(), 14;
1307
- case 51:
1308
- return this.popState(), 14;
1309
- case 52:
1310
- return this.popState(), 14;
1311
- case 53:
1312
- return this.popState(), 14;
1313
- case 54:
1314
- return this.popState(), 14;
1315
- case 55:
1316
- return this.popState(), 14;
1317
- case 56:
1318
- return 121;
1319
- case 57:
1320
- return 122;
1321
- case 58:
1322
- return 123;
1323
- case 59:
1324
- return 124;
1325
- case 60:
1326
- return 125;
1327
- case 61:
1328
- return 78;
1329
- case 62:
1330
- return 105;
1331
- case 63:
1332
- return 111;
1333
- case 64:
1334
- return 46;
1335
- case 65:
1336
- return 60;
1337
- case 66:
1338
- return 44;
1339
- case 67:
1340
- return 8;
1341
- case 68:
1342
- return 106;
1343
- case 69:
1344
- return 115;
1345
- case 70:
1346
- return this.popState(), 77;
1347
- case 71:
1348
- return this.pushState("edgeText"), 75;
1349
- case 72:
1350
- return 119;
1351
- case 73:
1352
- return this.popState(), 77;
1353
- case 74:
1354
- return this.pushState("thickEdgeText"), 75;
1355
- case 75:
1356
- return 119;
1357
- case 76:
1358
- return this.popState(), 77;
1359
- case 77:
1360
- return this.pushState("dottedEdgeText"), 75;
1361
- case 78:
1362
- return 119;
1363
- case 79:
1364
- return 77;
1365
- case 80:
1366
- return this.popState(), 53;
1367
- case 81:
1368
- return "TEXT";
1369
- case 82:
1370
- return this.pushState("ellipseText"), 52;
1371
- case 83:
1372
- return this.popState(), 55;
1373
- case 84:
1374
- return this.pushState("text"), 54;
1375
- case 85:
1376
- return this.popState(), 57;
1377
- case 86:
1378
- return this.pushState("text"), 56;
1379
- case 87:
1380
- return 58;
1381
- case 88:
1382
- return this.pushState("text"), 67;
1383
- case 89:
1384
- return this.popState(), 64;
1385
- case 90:
1386
- return this.pushState("text"), 63;
1387
- case 91:
1388
- return this.popState(), 49;
1389
- case 92:
1390
- return this.pushState("text"), 48;
1391
- case 93:
1392
- return this.popState(), 69;
1393
- case 94:
1394
- return this.popState(), 71;
1395
- case 95:
1396
- return 117;
1397
- case 96:
1398
- return this.pushState("trapText"), 68;
1399
- case 97:
1400
- return this.pushState("trapText"), 70;
1401
- case 98:
1402
- return 118;
1403
- case 99:
1404
- return 67;
1405
- case 100:
1406
- return 90;
1407
- case 101:
1408
- return "SEP";
1409
- case 102:
1410
- return 89;
1411
- case 103:
1412
- return 115;
1413
- case 104:
1414
- return 111;
1415
- case 105:
1416
- return 44;
1417
- case 106:
1418
- return 109;
1419
- case 107:
1420
- return 114;
1421
- case 108:
1422
- return 116;
1423
- case 109:
1424
- return this.popState(), 62;
1425
- case 110:
1426
- return this.pushState("text"), 62;
1427
- case 111:
1428
- return this.popState(), 51;
1429
- case 112:
1430
- return this.pushState("text"), 50;
1431
- case 113:
1432
- return this.popState(), 31;
1433
- case 114:
1434
- return this.pushState("text"), 29;
1435
- case 115:
1436
- return this.popState(), 66;
1437
- case 116:
1438
- return this.pushState("text"), 65;
1439
- case 117:
1440
- return "TEXT";
1441
- case 118:
1442
- return "QUOTE";
1443
- case 119:
1444
- return 9;
1445
- case 120:
1446
- return 10;
1447
- case 121:
1448
- return 11;
1449
- }
1450
- }, "anonymous"),
1451
- rules: [/^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:@\{)/, /^(?:["])/, /^(?:["])/, /^(?:[^\"]+)/, /^(?:[^}^"]+)/, /^(?:\})/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["][`])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:["])/, /^(?:style\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\b)/, /^(?:class\b)/, /^(?:href[\s])/, /^(?:click[\s]+)/, /^(?:[\s\n])/, /^(?:[^\s\n]*)/, /^(?:flowchart-elk\b)/, /^(?:swimlane-beta\b)/, /^(?:graph\b)/, /^(?:flowchart\b)/, /^(?:subgraph\b)/, /^(?:end\b\s*)/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:(\r?\n)*\s*\n)/, /^(?:\s*LR\b)/, /^(?:\s*RL\b)/, /^(?:\s*TB\b)/, /^(?:\s*BT\b)/, /^(?:\s*TD\b)/, /^(?:\s*BR\b)/, /^(?:\s*<)/, /^(?:\s*>)/, /^(?:\s*\^)/, /^(?:\s*v\b)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:.*direction\s+TD[^\n]*)/, /^(?:[^\s\"]+@(?=[^\{\"]))/, /^(?:[0-9]+)/, /^(?:#)/, /^(?::::)/, /^(?::)/, /^(?:&)/, /^(?:;)/, /^(?:,)/, /^(?:\*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:[^-]|-(?!-)+)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:[^=]|=(?!))/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:[^\.]|\.(?!))/, /^(?:\s*~~[\~]+\s*)/, /^(?:[-/\)][\)])/, /^(?:[^\(\)\[\]\{\}]|!\)+)/, /^(?:\(-)/, /^(?:\]\))/, /^(?:\(\[)/, /^(?:\]\])/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:>)/, /^(?:\)\])/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\(\(\()/, /^(?:[\\(?=\])][\]])/, /^(?:\/(?=\])\])/, /^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:<)/, /^(?:>)/, /^(?:\^)/, /^(?:\\\|)/, /^(?:v\b)/, /^(?:\*)/, /^(?:#)/, /^(?:&)/, /^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/, /^(?:-)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\|)/, /^(?:\|)/, /^(?:\))/, /^(?:\()/, /^(?:\])/, /^(?:\[)/, /^(?:(\}))/, /^(?:\{)/, /^(?:[^\[\]\(\)\{\}\|\"]+)/, /^(?:")/, /^(?:(\r?\n)+)/, /^(?:\s)/, /^(?:$)/],
1452
- conditions: { shapeDataEndBracket: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, shapeDataStr: { rules: [9, 10, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, shapeData: { rules: [8, 11, 12, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, callbackargs: { rules: [17, 18, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, callbackname: { rules: [14, 15, 16, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, href: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, click: { rules: [21, 24, 33, 34, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, dottedEdgeText: { rules: [21, 24, 76, 78, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, thickEdgeText: { rules: [21, 24, 73, 75, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, edgeText: { rules: [21, 24, 70, 72, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, trapText: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 93, 94, 95, 96, 97, 110, 112, 114, 116], inclusive: !1 }, ellipseText: { rules: [21, 24, 79, 80, 81, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, text: { rules: [21, 24, 79, 82, 83, 84, 85, 86, 89, 90, 91, 92, 96, 97, 109, 110, 111, 112, 113, 114, 115, 116, 117], inclusive: !1 }, vertex: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, dir: { rules: [21, 24, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, acc_descr: { rules: [3, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, acc_title: { rules: [1, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, md_string: { rules: [19, 20, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, string: { rules: [21, 22, 23, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 13, 21, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 73, 74, 76, 77, 79, 82, 84, 86, 87, 88, 90, 92, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 110, 112, 114, 116, 118, 119, 120, 121], inclusive: !0 } }
1453
- };
1454
- return f1;
1455
- })();
1456
- J1.lexer = je;
1457
- function H1() {
1458
- this.yy = {};
1459
- }
1460
- return k(H1, "Parser"), H1.prototype = J1, J1.Parser = H1, new H1();
1461
- })();
1462
- ae.parser = ae;
1463
- var Ue = ae, ze = Object.assign({}, Ue);
1464
- ze.parse = (s) => {
1465
- const i = s.replace(/}\s*\n/g, `}
1466
- `);
1467
- return Ue.parse(i);
1468
- };
1469
- var Et = ze, Tt = /* @__PURE__ */ k((s, i) => {
1470
- const r = bt, a = r(s, "r"), n = r(s, "g"), l = r(s, "b");
1471
- return ft(a, n, l, i);
1472
- }, "fade"), St = /* @__PURE__ */ k((s) => `.label {
1473
- font-family: ${s.fontFamily};
1474
- color: ${s.nodeTextColor || s.textColor};
1475
- }
1476
- .cluster-label text {
1477
- fill: ${s.titleColor};
1478
- }
1479
- .cluster-label span {
1480
- color: ${s.titleColor};
1481
- }
1482
- .cluster-label span p {
1483
- background-color: transparent;
1484
- }
1485
-
1486
- .label text,span {
1487
- fill: ${s.nodeTextColor || s.textColor};
1488
- color: ${s.nodeTextColor || s.textColor};
1489
- }
1490
-
1491
- .node rect,
1492
- .node circle,
1493
- .node ellipse,
1494
- .node polygon,
1495
- .node path {
1496
- fill: ${s.mainBkg};
1497
- stroke: ${s.nodeBorder};
1498
- stroke-width: ${s.strokeWidth ?? 1}px;
1499
- }
1500
- .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
1501
- text-anchor: middle;
1502
- }
1503
-
1504
- .node .katex path {
1505
- fill: #000;
1506
- stroke: #000;
1507
- stroke-width: 1px;
1508
- }
1509
-
1510
- .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
1511
- text-align: center;
1512
- }
1513
- .node.clickable {
1514
- cursor: pointer;
1515
- }
1516
-
1517
-
1518
- .root .anchor path {
1519
- fill: ${s.lineColor} !important;
1520
- stroke-width: 0;
1521
- stroke: ${s.lineColor};
1522
- }
1523
-
1524
- .arrowheadPath {
1525
- fill: ${s.arrowheadColor};
1526
- }
1527
-
1528
- .edgePath .path {
1529
- stroke: ${s.lineColor};
1530
- stroke-width: ${s.strokeWidth ?? 2}px;
1531
- }
1532
-
1533
- .flowchart-link {
1534
- stroke: ${s.lineColor};
1535
- fill: none;
1536
- }
1537
-
1538
- .edgeLabel {
1539
- background-color: ${s.edgeLabelBackground};
1540
- p {
1541
- background-color: ${s.edgeLabelBackground};
1542
- }
1543
- rect {
1544
- opacity: 0.5;
1545
- background-color: ${s.edgeLabelBackground};
1546
- fill: ${s.edgeLabelBackground};
1547
- }
1548
- text-align: center;
1549
- }
1550
-
1551
- /* For html labels only */
1552
- .labelBkg {
1553
- background-color: ${Tt(s.edgeLabelBackground, 0.5)};
1554
- // background-color:
1555
- }
1556
-
1557
- .cluster rect {
1558
- fill: ${s.clusterBkg};
1559
- stroke: ${s.clusterBorder};
1560
- stroke-width: 1px;
1561
- }
1562
-
1563
- .cluster text {
1564
- fill: ${s.titleColor};
1565
- }
1566
-
1567
- .cluster span {
1568
- color: ${s.titleColor};
1569
- }
1570
- /* .cluster div {
1571
- color: ${s.titleColor};
1572
- } */
1573
-
1574
- div.mermaidTooltip {
1575
- position: absolute;
1576
- text-align: center;
1577
- max-width: 200px;
1578
- padding: 2px;
1579
- font-family: ${s.fontFamily};
1580
- font-size: 12px;
1581
- background: ${s.tertiaryColor};
1582
- border: 1px solid ${s.border2};
1583
- border-radius: 2px;
1584
- pointer-events: none;
1585
- z-index: 100;
1586
- }
1587
-
1588
- .flowchartTitleText {
1589
- text-anchor: middle;
1590
- font-size: 18px;
1591
- fill: ${s.textColor};
1592
- }
1593
-
1594
- rect.text {
1595
- fill: none;
1596
- stroke-width: 0;
1597
- }
1598
-
1599
- .icon-shape, .image-shape {
1600
- background-color: ${s.edgeLabelBackground};
1601
- p {
1602
- background-color: ${s.edgeLabelBackground};
1603
- padding: 2px;
1604
- }
1605
- .label rect {
1606
- opacity: 0.5;
1607
- background-color: ${s.edgeLabelBackground};
1608
- fill: ${s.edgeLabelBackground};
1609
- }
1610
- text-align: center;
1611
- }
1612
- ${Xe()}
1613
- `, "getStyles"), yt = St, We = /* @__PURE__ */ k(({
1614
- defaultLayout: s,
1615
- styles: i = yt
1616
- } = {}) => ({
1617
- parser: Et,
1618
- get db() {
1619
- return new kt();
1620
- },
1621
- renderer: Ct,
1622
- styles: i,
1623
- init: /* @__PURE__ */ k((r) => {
1624
- r.flowchart || (r.flowchart = {});
1625
- const a = Ze().layout ?? s ?? r.layout;
1626
- a && Me({ layout: a }), r.flowchart.arrowMarkerAbsolute = r.arrowMarkerAbsolute, Me({ flowchart: { arrowMarkerAbsolute: r.arrowMarkerAbsolute } });
1627
- }, "init")
1628
- }), "createFlowDiagram"), xt = We();
1629
- const It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1630
- __proto__: null,
1631
- createFlowDiagram: We,
1632
- diagram: xt
1633
- }, Symbol.toStringTag, { value: "Module" }));
1634
- export {
1635
- We as c,
1636
- It as f,
1637
- yt as s
1638
- };