@life-exe/wiki-engine 0.1.0

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 (89) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +180 -0
  3. package/dist/analytics/index.d.ts +10 -0
  4. package/dist/chunks/abnfDiagram-VCTEODGH-DyAP6Aua.js +87 -0
  5. package/dist/chunks/arc-OroUeRL_.js +83 -0
  6. package/dist/chunks/architectureDiagram-5GKGNRK7-FjmrDCl4.js +4784 -0
  7. package/dist/chunks/blockDiagram-I7D4REHJ-BF3oIDlI.js +1416 -0
  8. package/dist/chunks/c4Diagram-7LVT6UL2-Cmdq0LZr.js +1511 -0
  9. package/dist/chunks/channel-Bdy1QZHo.js +5 -0
  10. package/dist/chunks/chunk-2Q5K7J3B-BwxRSEKd.js +15 -0
  11. package/dist/chunks/chunk-5VM5RSS4-BtHwUU4T.js +19 -0
  12. package/dist/chunks/chunk-F27PBJKO-DF4TGftR.js +68 -0
  13. package/dist/chunks/chunk-IMKFNOWR-DkBQ-1aV.js +1421 -0
  14. package/dist/chunks/chunk-JWPE2WC7-BIokdAUW.js +9 -0
  15. package/dist/chunks/chunk-POPQ4Y6H-CcjOsf9X.js +20 -0
  16. package/dist/chunks/chunk-SHT3W25Y-lYp5BdEg.js +1695 -0
  17. package/dist/chunks/chunk-SVP7TREG-DN-ravNt.js +664 -0
  18. package/dist/chunks/chunk-TICWLB2K-CtTJ0xaY.js +1534 -0
  19. package/dist/chunks/chunk-XXDRQBXY-BovkWFC0.js +8 -0
  20. package/dist/chunks/classDiagram-ZZMXUADV-CMYS0pHw.js +16 -0
  21. package/dist/chunks/classDiagram-v2-VYDZK3BY-CMYS0pHw.js +16 -0
  22. package/dist/chunks/common-BJ4q25wy.js +12633 -0
  23. package/dist/chunks/cose-bilkent-JH36ORCC-CaMqpJY7.js +2608 -0
  24. package/dist/chunks/cynefin-OW5HDTMX-Bzjecpt-.js +23853 -0
  25. package/dist/chunks/cynefinDiagram-5FMLGOSQ-C0NuKLt0.js +299 -0
  26. package/dist/chunks/cytoscape.esm-DmPrb1GM.js +18787 -0
  27. package/dist/chunks/dagre-GXQ25YYZ-Ds09_NdN.js +461 -0
  28. package/dist/chunks/defaultLocale-BgPVtth8.js +171 -0
  29. package/dist/chunks/diagram-S7CK7UJ4-IvSazk1O.js +349 -0
  30. package/dist/chunks/diagram-UQ7AKVKN-58epdx5V.js +223 -0
  31. package/dist/chunks/diagram-VSXAHHWV-BrzRGMeV.js +466 -0
  32. package/dist/chunks/diagram-VX7I27RA-DPL0Nw6d.js +530 -0
  33. package/dist/chunks/diagram-Z3DM3KII-8VWVu0I5.js +143 -0
  34. package/dist/chunks/ebnfDiagram-PWID7BFC-DeByR_ze.js +109 -0
  35. package/dist/chunks/erDiagram-RLTQ6QDP-C9uo9iE1.js +1060 -0
  36. package/dist/chunks/flowDiagram-HODETNUW-BpoY3OMp.js +7 -0
  37. package/dist/chunks/ganttDiagram-EL5Y4UJY-psdwnC-T.js +2711 -0
  38. package/dist/chunks/gitGraphDiagram-WWUBYQGX-vsDfkn_Q.js +828 -0
  39. package/dist/chunks/index-f7Uzykhj.js +38262 -0
  40. package/dist/chunks/infoDiagram-27XIBGKW-8K-eQZiU.js +24 -0
  41. package/dist/chunks/init-DjUOC4st.js +16 -0
  42. package/dist/chunks/ishikawaDiagram-5VMMS53U-CuqR1k5i.js +622 -0
  43. package/dist/chunks/journeyDiagram-3NMN7TZE-BPW1nmwZ.js +834 -0
  44. package/dist/chunks/kanban-definition-UXKFOSKX-iY6-d6jO.js +726 -0
  45. package/dist/chunks/katex-jHfnQmlp.js +11682 -0
  46. package/dist/chunks/layout-CgV9vOdp.js +1704 -0
  47. package/dist/chunks/linear-BzcaSMTS.js +259 -0
  48. package/dist/chunks/mindmap-definition-YA3MSWOX-CaLfHyv0.js +831 -0
  49. package/dist/chunks/ordinal-DfAQgscy.js +61 -0
  50. package/dist/chunks/pegDiagram-XKGWAZYB-6Y28VvVh.js +95 -0
  51. package/dist/chunks/pieDiagram-E7YTZNPT-OrjeRxhs.js +209 -0
  52. package/dist/chunks/quadrantDiagram-AXDQQJYC-rgw2lV2J.js +1025 -0
  53. package/dist/chunks/railroadDiagram-O6MQD6OU-D6QNO5r1.js +77 -0
  54. package/dist/chunks/requirementDiagram-BXWQKSXE-a8tNRSuE.js +884 -0
  55. package/dist/chunks/sankeyDiagram-P5KCCOFB-CdaC8rLw.js +847 -0
  56. package/dist/chunks/sequenceDiagram-WJ2MYXX4-CGLi38Hj.js +2898 -0
  57. package/dist/chunks/sizeCapture-INFHLROL-g5RJXnik.js +47 -0
  58. package/dist/chunks/stateDiagram-D77RDMKH-Cou0eVl1.js +262 -0
  59. package/dist/chunks/stateDiagram-v2-MP3YSRHH-BHQspnUg.js +16 -0
  60. package/dist/chunks/swimlanes-42K2YHIH-BU7S1WgJ.js +5239 -0
  61. package/dist/chunks/swimlanesDiagram-VR7AAH4N-BsEplbno.js +13 -0
  62. package/dist/chunks/timeline-definition-24CTP7MA-BB-IyxWL.js +1066 -0
  63. package/dist/chunks/vennDiagram-4TSXK5OY-BToYolPI.js +1585 -0
  64. package/dist/chunks/wardleyDiagram-VM6X3IG4-BgoueOw_.js +684 -0
  65. package/dist/chunks/xychartDiagram-S5SC5T6Z-CF0fWv-W.js +1492 -0
  66. package/dist/components/CodeBlock.d.ts +5 -0
  67. package/dist/components/CommunityLinks.d.ts +21 -0
  68. package/dist/components/CookieConsent.d.ts +2 -0
  69. package/dist/components/DocLinkCard.d.ts +6 -0
  70. package/dist/components/LecturePageView.d.ts +3 -0
  71. package/dist/components/MermaidDiagram.d.ts +3 -0
  72. package/dist/components/SearchPopup.d.ts +6 -0
  73. package/dist/components/WikiApp.d.ts +9 -0
  74. package/dist/components/WikiLayout.d.ts +2 -0
  75. package/dist/components/WikiPageView.d.ts +6 -0
  76. package/dist/components/ZoomableImage.d.ts +2 -0
  77. package/dist/context/LangContext.d.ts +2 -0
  78. package/dist/context/WikiContext.d.ts +18 -0
  79. package/dist/data.d.ts +8 -0
  80. package/dist/hooks/useLanguage.d.ts +4 -0
  81. package/dist/hooks/useTheme.d.ts +5 -0
  82. package/dist/hooks/useWiki.d.ts +2 -0
  83. package/dist/index.d.ts +24 -0
  84. package/dist/index.js +45 -0
  85. package/dist/languages/ue-cpp.d.ts +7 -0
  86. package/dist/languages/ue-cpp.js +21 -0
  87. package/dist/types.d.ts +119 -0
  88. package/dist/wiki-engine.css +1 -0
  89. package/package.json +76 -0
@@ -0,0 +1,1695 @@
1
+ import { g as H1 } from "./chunk-5VM5RSS4-BtHwUU4T.js";
2
+ import { g as X1 } from "./chunk-XXDRQBXY-BovkWFC0.js";
3
+ import { s as Q1 } from "./chunk-POPQ4Y6H-CcjOsf9X.js";
4
+ import { _ as k, n as J1, o as M1, l as $, c as ke, p as Z1, r as $1, u as r1, b as et, s as tt, q as st, a as it, g as rt, t as at, k as nt, v as ut, J as ot, x as lt, y as s1, j as i1, z as ct, A as ht, B as dt, C as pt } from "./index-f7Uzykhj.js";
5
+ import { c as ft } from "./chunk-F27PBJKO-DF4TGftR.js";
6
+ import { c as gt } from "./channel-Bdy1QZHo.js";
7
+ var bt = "flowchart-", Pe, At = (Pe = class {
8
+ // cspell:ignore funs
9
+ constructor() {
10
+ this.vertexCounter = 0, this.config = ke(), 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 = et, this.setAccDescription = tt, this.setDiagramTitle = st, this.getAccTitle = it, this.getAccDescription = rt, this.getDiagramTitle = at, 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 nt.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, g, h = {}, m) {
50
+ var F, c;
51
+ if (!i || i.trim().length === 0)
52
+ return;
53
+ let u;
54
+ if (m !== void 0) {
55
+ let d;
56
+ m.includes(`
57
+ `) ? d = m + `
58
+ ` : d = `{
59
+ ` + m + `
60
+ }`, u = ut(d, { schema: ot });
61
+ }
62
+ const x = this.subGraphLookup.get(i);
63
+ if (x && u) {
64
+ x.metadata = { ...x.metadata, ...u };
65
+ return;
66
+ }
67
+ const y = this.edges.find((d) => d.id === i);
68
+ if (y) {
69
+ const d = u;
70
+ (d == null ? void 0 : d.animate) !== void 0 && (y.animate = d.animate), (d == null ? void 0 : d.animation) !== void 0 && (y.animation = d.animation), (d == null ? void 0 : d.curve) !== void 0 && (y.interpolate = d.curve);
71
+ return;
72
+ }
73
+ let w, A = this.vertices.get(i);
74
+ if (A === void 0 && (r === void 0 && a === void 0 && n !== void 0 && n !== null && $.warn(
75
+ `Style applied to unknown node "${i}". This may indicate a typo. The node will be created automatically.`
76
+ ), A = {
77
+ id: i,
78
+ labelType: "text",
79
+ domId: bt + i + "-" + this.vertexCounter,
80
+ styles: [],
81
+ classes: []
82
+ }, this.vertices.set(i, A)), this.vertexCounter++, r !== void 0 ? (this.config = ke(), w = this.sanitizeText(r.text.trim()), A.labelType = r.type, w.startsWith('"') && w.endsWith('"') && (w = w.substring(1, w.length - 1)), A.text = w) : A.text === void 0 && (A.text = i), a !== void 0 && (A.type = a), n != null && n.forEach((d) => {
83
+ A.styles.push(d);
84
+ }), l != null && l.forEach((d) => {
85
+ A.classes.push(d);
86
+ }), g !== void 0 && (A.dir = g), A.props === void 0 ? A.props = h : h !== void 0 && Object.assign(A.props, h), u !== void 0) {
87
+ if (u.shape) {
88
+ if (u.shape !== u.shape.toLowerCase() || u.shape.includes("_"))
89
+ throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);
90
+ if (!lt(u.shape))
91
+ throw new Error(`No such shape: ${u.shape}.`);
92
+ A.type = u == null ? void 0 : u.shape;
93
+ }
94
+ u != null && u.label && (A.text = u == null ? void 0 : u.label, A.labelType = this.sanitizeNodeLabelType(u == null ? void 0 : u.labelType)), u != null && u.icon && (A.icon = u == null ? void 0 : u.icon, !((F = u.label) != null && F.trim()) && A.text === i && (A.text = "")), u != null && u.form && (A.form = u == null ? void 0 : u.form), u != null && u.pos && (A.pos = u == null ? void 0 : u.pos), u != null && u.img && (A.img = u == null ? void 0 : u.img, !((c = u.label) != null && c.trim()) && A.text === i && (A.text = "")), u != null && u.constraint && (A.constraint = u.constraint), u.w && (A.assetWidth = Number(u.w)), u.h && (A.assetHeight = Number(u.h));
95
+ }
96
+ }
97
+ /**
98
+ * Function called by parser when a link/edge definition has been found
99
+ *
100
+ */
101
+ addSingleLink(i, r, a, n) {
102
+ const h = {
103
+ start: i,
104
+ end: r,
105
+ type: void 0,
106
+ text: "",
107
+ labelType: "text",
108
+ classes: [],
109
+ isUserDefinedId: !1,
110
+ interpolate: this.edges.defaultInterpolate
111
+ };
112
+ $.info("abc78 Got edge...", h);
113
+ const m = a.text;
114
+ if (m !== void 0 && (h.text = this.sanitizeText(m.text.trim()), h.text.startsWith('"') && h.text.endsWith('"') && (h.text = h.text.substring(1, h.text.length - 1)), h.labelType = this.sanitizeNodeLabelType(m.type)), a !== void 0 && (h.type = a.type, h.stroke = a.stroke, h.length = a.length > 10 ? 10 : a.length), n && !this.edges.some((u) => u.id === n))
115
+ h.id = n, h.isUserDefinedId = !0;
116
+ else {
117
+ const u = this.edges.filter((x) => x.start === h.start && x.end === h.end);
118
+ u.length === 0 ? h.id = s1(h.start, h.end, { counter: 0, prefix: "L" }) : h.id = s1(h.start, h.end, {
119
+ counter: u.length + 1,
120
+ prefix: "L"
121
+ });
122
+ }
123
+ if (this.edges.length < (this.config.maxEdges ?? 500))
124
+ $.info("Pushing edge..."), this.edges.push(h);
125
+ else
126
+ throw new Error(
127
+ `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
128
+
129
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
130
+ You cannot set this config via configuration inside the diagram as it is a secure config.
131
+ You have to call mermaid.initialize.`
132
+ );
133
+ }
134
+ isLinkData(i) {
135
+ return i !== null && typeof i == "object" && "id" in i && typeof i.id == "string";
136
+ }
137
+ addLink(i, r, a) {
138
+ const n = this.isLinkData(a) ? a.id.replace("@", "") : void 0;
139
+ $.info("addLink", i, r, n);
140
+ for (const l of i)
141
+ for (const g of r) {
142
+ const h = l === i[i.length - 1], m = g === r[0];
143
+ h && m ? this.addSingleLink(l, g, a, n) : this.addSingleLink(l, g, a, void 0);
144
+ }
145
+ }
146
+ /**
147
+ * Updates a link's line interpolation algorithm
148
+ */
149
+ updateLinkInterpolate(i, r) {
150
+ i.forEach((a) => {
151
+ a === "default" ? this.edges.defaultInterpolate = r : this.edges[a].interpolate = r;
152
+ });
153
+ }
154
+ /**
155
+ * Updates a link with a style
156
+ *
157
+ */
158
+ updateLink(i, r) {
159
+ i.forEach((a) => {
160
+ var n, l, g, h, m, u;
161
+ if (typeof a == "number" && a >= this.edges.length)
162
+ throw new Error(
163
+ `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.)`
164
+ );
165
+ a === "default" ? this.edges.defaultStyle = r : (this.edges[a].style = r, (((l = (n = this.edges[a]) == null ? void 0 : n.style) == null ? void 0 : l.length) ?? 0) > 0 && !((h = (g = this.edges[a]) == null ? void 0 : g.style) != null && h.some((x) => x == null ? void 0 : x.startsWith("fill"))) && ((u = (m = this.edges[a]) == null ? void 0 : m.style) == null || u.push("fill:none")));
166
+ });
167
+ }
168
+ addClass(i, r) {
169
+ const a = r.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
170
+ i.split(",").forEach((n) => {
171
+ let l = this.classes.get(n);
172
+ l === void 0 && (l = { id: n, styles: [], textStyles: [] }, this.classes.set(n, l)), a != null && a.forEach((g) => {
173
+ if (/color/.exec(g)) {
174
+ const h = g.replace("fill", "bgFill");
175
+ l.textStyles.push(h);
176
+ }
177
+ l.styles.push(g);
178
+ });
179
+ });
180
+ }
181
+ /**
182
+ * Called by parser when a graph definition is found, stores the direction of the chart.
183
+ *
184
+ */
185
+ setDirection(i) {
186
+ 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");
187
+ }
188
+ /**
189
+ * Called by parser when a special node is found, e.g. a clickable element.
190
+ *
191
+ * @param ids - Comma separated list of ids
192
+ * @param className - Class to add
193
+ */
194
+ setClass(i, r) {
195
+ for (const a of i.split(",")) {
196
+ const n = this.vertices.get(a);
197
+ n && n.classes.push(r);
198
+ const l = this.edges.find((h) => h.id === a);
199
+ l && l.classes.push(r);
200
+ const g = this.subGraphLookup.get(a);
201
+ g && g.classes.push(r);
202
+ }
203
+ }
204
+ setTooltip(i, r) {
205
+ if (r !== void 0) {
206
+ r = this.sanitizeText(r);
207
+ for (const a of i.split(","))
208
+ this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(a) : a, r);
209
+ }
210
+ }
211
+ setClickFun(i, r, a) {
212
+ if (ke().securityLevel !== "loose" || r === void 0)
213
+ return;
214
+ let n = [];
215
+ if (typeof a == "string") {
216
+ n = a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
217
+ for (let g = 0; g < n.length; g++) {
218
+ let h = n[g].trim();
219
+ h.startsWith('"') && h.endsWith('"') && (h = h.substr(1, h.length - 2)), n[g] = h;
220
+ }
221
+ }
222
+ n.length === 0 && n.push(i);
223
+ const l = this.vertices.get(i);
224
+ l && (l.haveCallback = !0, this.funs.push(() => {
225
+ const g = this.lookUpDomId(i), h = document.querySelector(`[id="${g}"]`);
226
+ h !== null && h.addEventListener(
227
+ "click",
228
+ () => {
229
+ r1.runFunc(r, ...n);
230
+ },
231
+ !1
232
+ );
233
+ }));
234
+ }
235
+ /**
236
+ * Called by parser when a link is found. Adds the URL to the vertex data.
237
+ *
238
+ * @param ids - Comma separated list of ids
239
+ * @param linkStr - URL to create a link for
240
+ * @param target - Target attribute for the link
241
+ */
242
+ setLink(i, r, a) {
243
+ i.split(",").forEach((n) => {
244
+ const l = this.vertices.get(n);
245
+ l !== void 0 && (l.link = r1.formatUrl(r, this.config), l.linkTarget = a);
246
+ }), this.setClass(i, "clickable");
247
+ }
248
+ getTooltip(i) {
249
+ return this.tooltips.get(i);
250
+ }
251
+ /**
252
+ * Called by parser when a click definition is found. Registers an event handler.
253
+ *
254
+ * @param ids - Comma separated list of ids
255
+ * @param functionName - Function to be called on click
256
+ * @param functionArgs - Arguments to be passed to the function
257
+ */
258
+ setClickEvent(i, r, a) {
259
+ i.split(",").forEach((n) => {
260
+ this.setClickFun(n, r, a);
261
+ }), this.setClass(i, "clickable");
262
+ }
263
+ bindFunctions(i) {
264
+ this.funs.forEach((r) => {
265
+ r(i);
266
+ });
267
+ }
268
+ getDirection() {
269
+ var i;
270
+ return (i = this.direction) == null ? void 0 : i.trim();
271
+ }
272
+ /**
273
+ * Retrieval function for fetching the found nodes after parsing has completed.
274
+ *
275
+ */
276
+ getVertices() {
277
+ return this.vertices;
278
+ }
279
+ /**
280
+ * Retrieval function for fetching the found links after parsing has completed.
281
+ *
282
+ */
283
+ getEdges() {
284
+ return this.edges;
285
+ }
286
+ /**
287
+ * Retrieval function for fetching the found class definitions after parsing has completed.
288
+ *
289
+ */
290
+ getClasses() {
291
+ return this.classes;
292
+ }
293
+ setupToolTips(i) {
294
+ const r = ft();
295
+ i1(i).select("svg").selectAll("g.node").on("mouseover", (l) => {
296
+ var u;
297
+ const g = i1(l.currentTarget), h = g.attr("title");
298
+ if (h === null)
299
+ return;
300
+ const m = (u = l.currentTarget) == null ? void 0 : u.getBoundingClientRect();
301
+ r.transition().duration(200).style("opacity", ".9"), r.text(g.attr("title")).style("left", window.scrollX + m.left + (m.right - m.left) / 2 + "px").style("top", window.scrollY + m.bottom + "px"), r.html(ct.sanitize(h)), g.classed("hover", !0);
302
+ }).on("mouseout", (l) => {
303
+ r.transition().duration(500).style("opacity", 0), i1(l.currentTarget).classed("hover", !1);
304
+ });
305
+ }
306
+ /**
307
+ * Clears the internal graph db so that a new graph can be parsed.
308
+ *
309
+ */
310
+ clear(i = "gen-2") {
311
+ 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 = ke(), ht();
312
+ }
313
+ setGen(i) {
314
+ this.version = i || "gen-2";
315
+ }
316
+ defaultStyle() {
317
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
318
+ }
319
+ addSubGraph(i, r, a) {
320
+ let n = i.text.trim(), l = a.text;
321
+ i === a && /\s/.exec(a.text) && (n = void 0);
322
+ const h = (/* @__PURE__ */ k((w) => {
323
+ const A = { boolean: {}, number: {}, string: {} }, F = [];
324
+ let c;
325
+ return { nodeList: w.filter(function(E) {
326
+ const G = typeof E;
327
+ return E.stmt && E.stmt === "dir" ? (c = E.value, !1) : E.trim() === "" ? !1 : G in A ? A[G].hasOwnProperty(E) ? !1 : A[G][E] = !0 : F.includes(E) ? !1 : F.push(E);
328
+ }), dir: c };
329
+ }, "uniq"))(r.flat()), m = h.nodeList;
330
+ let u = h.dir;
331
+ const x = ke().flowchart ?? {};
332
+ if (u = u ?? (x.inheritDir ? this.getDirection() ?? ke().direction ?? void 0 : void 0), this.version === "gen-1")
333
+ for (let w = 0; w < m.length; w++)
334
+ m[w] = this.lookUpDomId(m[w]);
335
+ n = n ?? "subGraph" + this.subCount, l = l || "", l = this.sanitizeText(l), this.subCount = this.subCount + 1;
336
+ const y = {
337
+ id: n,
338
+ nodes: m,
339
+ title: l.trim(),
340
+ classes: [],
341
+ dir: u,
342
+ labelType: this.sanitizeNodeLabelType(a == null ? void 0 : a.type)
343
+ };
344
+ return $.info("Adding", y.id, y.nodes, y.dir), y.nodes = this.makeUniq(y, this.subGraphs).nodes, this.subGraphs.push(y), this.subGraphLookup.set(n, y), n;
345
+ }
346
+ getPosForId(i) {
347
+ for (const [r, a] of this.subGraphs.entries())
348
+ if (a.id === i)
349
+ return r;
350
+ return -1;
351
+ }
352
+ indexNodes2(i, r) {
353
+ const a = this.subGraphs[r].nodes;
354
+ if (this.secCount = this.secCount + 1, this.secCount > 2e3)
355
+ return {
356
+ result: !1,
357
+ count: 0
358
+ };
359
+ if (this.posCrossRef[this.secCount] = r, this.subGraphs[r].id === i)
360
+ return {
361
+ result: !0,
362
+ count: 0
363
+ };
364
+ let n = 0, l = 1;
365
+ for (; n < a.length; ) {
366
+ const g = this.getPosForId(a[n]);
367
+ if (g >= 0) {
368
+ const h = this.indexNodes2(i, g);
369
+ if (h.result)
370
+ return {
371
+ result: !0,
372
+ count: l + h.count
373
+ };
374
+ l = l + h.count;
375
+ }
376
+ n = n + 1;
377
+ }
378
+ return {
379
+ result: !1,
380
+ count: l
381
+ };
382
+ }
383
+ getDepthFirstPos(i) {
384
+ return this.posCrossRef[i];
385
+ }
386
+ indexNodes() {
387
+ this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
388
+ }
389
+ getSubGraphs() {
390
+ return this.subGraphs;
391
+ }
392
+ firstGraph() {
393
+ return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
394
+ }
395
+ destructStartLink(i) {
396
+ let r = i.trim(), a = "arrow_open";
397
+ switch (r[0]) {
398
+ case "<":
399
+ a = "arrow_point", r = r.slice(1);
400
+ break;
401
+ case "x":
402
+ a = "arrow_cross", r = r.slice(1);
403
+ break;
404
+ case "o":
405
+ a = "arrow_circle", r = r.slice(1);
406
+ break;
407
+ }
408
+ let n = "normal";
409
+ return r.includes("=") && (n = "thick"), r.includes(".") && (n = "dotted"), { type: a, stroke: n };
410
+ }
411
+ countChar(i, r) {
412
+ const a = r.length;
413
+ let n = 0;
414
+ for (let l = 0; l < a; ++l)
415
+ r[l] === i && ++n;
416
+ return n;
417
+ }
418
+ destructEndLink(i) {
419
+ const r = i.trim();
420
+ let a = r.slice(0, -1), n = "arrow_open";
421
+ switch (r.slice(-1)) {
422
+ case "x":
423
+ n = "arrow_cross", r.startsWith("x") && (n = "double_" + n, a = a.slice(1));
424
+ break;
425
+ case ">":
426
+ n = "arrow_point", r.startsWith("<") && (n = "double_" + n, a = a.slice(1));
427
+ break;
428
+ case "o":
429
+ n = "arrow_circle", r.startsWith("o") && (n = "double_" + n, a = a.slice(1));
430
+ break;
431
+ }
432
+ let l = "normal", g = a.length - 1;
433
+ a.startsWith("=") && (l = "thick"), a.startsWith("~") && (l = "invisible");
434
+ const h = this.countChar(".", a);
435
+ return h && (l = "dotted", g = h), { type: n, stroke: l, length: g };
436
+ }
437
+ destructLink(i, r) {
438
+ const a = this.destructEndLink(i);
439
+ let n;
440
+ if (r) {
441
+ if (n = this.destructStartLink(r), n.stroke !== a.stroke)
442
+ return { type: "INVALID", stroke: "INVALID" };
443
+ if (n.type === "arrow_open")
444
+ n.type = a.type;
445
+ else {
446
+ if (n.type !== a.type)
447
+ return { type: "INVALID", stroke: "INVALID" };
448
+ n.type = "double_" + n.type;
449
+ }
450
+ return n.type === "double_arrow" && (n.type = "double_arrow_point"), n.length = a.length, n;
451
+ }
452
+ return a;
453
+ }
454
+ // Todo optimizer this by caching existing nodes
455
+ exists(i, r) {
456
+ for (const a of i)
457
+ if (a.nodes.includes(r))
458
+ return !0;
459
+ return !1;
460
+ }
461
+ /**
462
+ * Deletes an id from all subgraphs
463
+ *
464
+ */
465
+ makeUniq(i, r) {
466
+ const a = [];
467
+ return i.nodes.forEach((n, l) => {
468
+ this.exists(r, n) || a.push(i.nodes[l]);
469
+ }), { nodes: a };
470
+ }
471
+ getTypeFromVertex(i) {
472
+ if (i.img)
473
+ return "imageSquare";
474
+ if (i.icon)
475
+ return i.form === "circle" ? "iconCircle" : i.form === "square" ? "iconSquare" : i.form === "rounded" ? "iconRounded" : "icon";
476
+ switch (i.type) {
477
+ case "square":
478
+ case void 0:
479
+ return "squareRect";
480
+ case "round":
481
+ return "roundedRect";
482
+ case "ellipse":
483
+ return "ellipse";
484
+ default:
485
+ return i.type;
486
+ }
487
+ }
488
+ findNode(i, r) {
489
+ return i.find((a) => a.id === r);
490
+ }
491
+ destructEdgeType(i) {
492
+ let r = "none", a = "arrow_point";
493
+ switch (i) {
494
+ case "arrow_point":
495
+ case "arrow_circle":
496
+ case "arrow_cross":
497
+ a = i;
498
+ break;
499
+ case "double_arrow_point":
500
+ case "double_arrow_circle":
501
+ case "double_arrow_cross":
502
+ r = i.replace("double_", ""), a = r;
503
+ break;
504
+ }
505
+ return { arrowTypeStart: r, arrowTypeEnd: a };
506
+ }
507
+ addNodeFromVertex(i, r, a, n, l, g) {
508
+ var x;
509
+ const h = a.get(i.id), m = n.get(i.id) ?? !1, u = this.findNode(r, i.id);
510
+ if (u)
511
+ u.cssStyles = i.styles, u.cssCompiledStyles = this.getCompiledStyles(i.classes), u.cssClasses = i.classes.join(" ");
512
+ else {
513
+ const y = {
514
+ id: i.id,
515
+ label: i.text,
516
+ labelType: i.labelType,
517
+ labelStyle: "",
518
+ parentId: h,
519
+ padding: ((x = l.flowchart) == null ? void 0 : x.padding) || 8,
520
+ cssStyles: i.styles,
521
+ cssCompiledStyles: this.getCompiledStyles(["default", "node", ...i.classes]),
522
+ cssClasses: "default " + i.classes.join(" "),
523
+ dir: i.dir,
524
+ domId: i.domId,
525
+ look: g,
526
+ link: i.link,
527
+ linkTarget: i.linkTarget,
528
+ tooltip: this.getTooltip(i.id),
529
+ icon: i.icon,
530
+ pos: i.pos,
531
+ img: i.img,
532
+ assetWidth: i.assetWidth,
533
+ assetHeight: i.assetHeight,
534
+ constraint: i.constraint
535
+ };
536
+ m ? r.push({
537
+ ...y,
538
+ isGroup: !0,
539
+ shape: "rect"
540
+ }) : r.push({
541
+ ...y,
542
+ isGroup: !1,
543
+ shape: this.getTypeFromVertex(i)
544
+ });
545
+ }
546
+ }
547
+ getCompiledStyles(i) {
548
+ let r = [];
549
+ for (const a of i) {
550
+ const n = this.classes.get(a);
551
+ n != null && n.styles && (r = [...r, ...n.styles ?? []].map((l) => l.trim())), n != null && n.textStyles && (r = [...r, ...n.textStyles ?? []].map((l) => l.trim()));
552
+ }
553
+ return r;
554
+ }
555
+ getData() {
556
+ var F;
557
+ const i = ke(), r = [], a = [], n = this.getSubGraphs(), l = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
558
+ for (const c of n)
559
+ for (const d of c.nodes)
560
+ this.subGraphLookup.has(d) && h.set(d, c.id);
561
+ const m = /* @__PURE__ */ k((c) => {
562
+ var d, E;
563
+ return ((E = (d = this.subGraphLookup.get(c)) == null ? void 0 : d.metadata) == null ? void 0 : E.view) === "collapsed";
564
+ }, "isCollapsed"), u = /* @__PURE__ */ k((c) => {
565
+ let d;
566
+ const E = /* @__PURE__ */ new Set();
567
+ let G = c;
568
+ for (; G !== void 0 && !E.has(G); )
569
+ E.add(G), m(G) && (d = G), G = h.get(G);
570
+ return d;
571
+ }, "outermostCollapsed"), x = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Map();
572
+ for (const c of n) {
573
+ const d = u(c.id);
574
+ if (d !== void 0) {
575
+ c.id !== d && (x.add(c.id), y.set(c.id, d));
576
+ for (const E of c.nodes)
577
+ E !== d && (x.add(E), y.set(E, d));
578
+ }
579
+ }
580
+ for (let c = n.length - 1; c >= 0; c--) {
581
+ const d = n[c];
582
+ if (!x.has(d.id)) {
583
+ d.nodes.length > 0 && g.set(d.id, !0);
584
+ for (const E of d.nodes)
585
+ l.set(E, d.id);
586
+ }
587
+ }
588
+ for (let c = n.length - 1; c >= 0; c--) {
589
+ const d = n[c];
590
+ x.has(d.id) || (((F = d.metadata) == null ? void 0 : F.view) === "collapsed" ? r.push({
591
+ id: d.id,
592
+ label: d.title,
593
+ labelStyle: "",
594
+ labelType: d.labelType,
595
+ parentId: l.get(d.id),
596
+ padding: 8,
597
+ cssCompiledStyles: this.getCompiledStyles(d.classes),
598
+ cssClasses: d.classes.join(" "),
599
+ shape: "collapsedGroup",
600
+ dir: d.dir,
601
+ isGroup: !1,
602
+ look: i.look
603
+ }) : r.push({
604
+ id: d.id,
605
+ label: d.title,
606
+ labelStyle: "",
607
+ labelType: d.labelType,
608
+ parentId: l.get(d.id),
609
+ padding: 8,
610
+ cssCompiledStyles: this.getCompiledStyles(d.classes),
611
+ cssClasses: d.classes.join(" "),
612
+ shape: "rect",
613
+ dir: d.dir,
614
+ isGroup: !0,
615
+ look: i.look
616
+ }));
617
+ }
618
+ this.getVertices().forEach((c) => {
619
+ x.has(c.id) || this.addNodeFromVertex(c, r, l, g, i, i.look || "classic");
620
+ });
621
+ const A = this.getEdges();
622
+ return A.forEach((c, d) => {
623
+ var I;
624
+ const { arrowTypeStart: E, arrowTypeEnd: G } = this.destructEdgeType(c.type), pe = [...A.defaultStyle ?? []], fe = y.get(c.start) ?? c.start, V = y.get(c.end) ?? c.end;
625
+ if (fe === V && (y.has(c.start) || y.has(c.end)))
626
+ return;
627
+ c.style && pe.push(...c.style);
628
+ const R = {
629
+ id: s1(fe, V, { counter: d, prefix: "L" }, c.id),
630
+ isUserDefinedId: c.isUserDefinedId,
631
+ start: fe,
632
+ end: V,
633
+ type: c.type ?? "normal",
634
+ label: c.text,
635
+ labelType: c.labelType,
636
+ labelpos: "c",
637
+ thickness: c.stroke,
638
+ minlen: c.length,
639
+ classes: (c == null ? void 0 : c.stroke) === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
640
+ arrowTypeStart: (c == null ? void 0 : c.stroke) === "invisible" || (c == null ? void 0 : c.type) === "arrow_open" ? "none" : E,
641
+ arrowTypeEnd: (c == null ? void 0 : c.stroke) === "invisible" || (c == null ? void 0 : c.type) === "arrow_open" ? "none" : G,
642
+ arrowheadStyle: "fill: #333",
643
+ cssCompiledStyles: this.getCompiledStyles(c.classes),
644
+ labelStyle: pe,
645
+ style: pe,
646
+ pattern: c.stroke,
647
+ look: i.look,
648
+ animate: c.animate,
649
+ animation: c.animation,
650
+ curve: c.interpolate || this.edges.defaultInterpolate || ((I = i.flowchart) == null ? void 0 : I.curve)
651
+ };
652
+ a.push(R);
653
+ }), { nodes: r, edges: a, other: {}, config: i };
654
+ }
655
+ defaultConfig() {
656
+ return dt.flowchart;
657
+ }
658
+ }, k(Pe, "FlowDB"), Pe), kt = /* @__PURE__ */ k(function(s, i) {
659
+ return i.db.getClasses();
660
+ }, "getClasses"), mt = /* @__PURE__ */ k(async function(s, i, r, a) {
661
+ var y;
662
+ $.info("REF0:"), $.info("Drawing state diagram (v2)", i);
663
+ const { securityLevel: n, flowchart: l, layout: g } = ke();
664
+ a.db.setDiagramId(i), $.debug("Before getData: ");
665
+ const h = a.db.getData();
666
+ $.debug("Data: ", h);
667
+ const m = X1(i, n), u = a.db.getDirection();
668
+ h.type = a.type, h.layoutAlgorithm = Z1(g), h.layoutAlgorithm === "dagre" && g === "elk" && $.warn(
669
+ "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."
670
+ ), h.direction = u, h.nodeSpacing = (l == null ? void 0 : l.nodeSpacing) || 50, h.rankSpacing = (l == null ? void 0 : l.rankSpacing) || 50, h.markers = ["point", "circle", "cross"], h.diagramId = i, $.debug("REF1:", h), await $1(h, m);
671
+ const x = ((y = h.config.flowchart) == null ? void 0 : y.diagramPadding) ?? 8;
672
+ r1.insertTitle(
673
+ m,
674
+ "flowchartTitleText",
675
+ (l == null ? void 0 : l.titleTopMargin) || 0,
676
+ a.db.getDiagramTitle()
677
+ ), Q1(m, x, "flowchart", (l == null ? void 0 : l.useMaxWidth) || !1);
678
+ }, "draw"), Ct = {
679
+ getClasses: kt,
680
+ draw: mt
681
+ }, a1 = (function() {
682
+ var s = /* @__PURE__ */ k(function(Ae, p, f, b) {
683
+ for (f = f || {}, b = Ae.length; b--; f[Ae[b]] = p) ;
684
+ return f;
685
+ }, "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], g = [1, 13], h = [1, 14], m = [1, 15], u = [1, 16], x = [1, 23], y = [1, 25], w = [1, 26], A = [1, 27], F = [1, 50], c = [1, 49], d = [1, 29], E = [1, 30], G = [1, 31], pe = [1, 32], fe = [1, 33], V = [1, 45], R = [1, 47], I = [1, 43], P = [1, 48], O = [1, 44], M = [1, 51], U = [1, 46], z = [1, 52], W = [1, 53], Me = [1, 34], Ue = [1, 35], ze = [1, 36], We = [1, 37], je = [1, 38], ge = [1, 58], _ = [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], te = [1, 62], se = [1, 61], ie = [1, 63], Se = [8, 9, 11, 75, 77, 78], n1 = [1, 79], De = [1, 92], ye = [1, 97], xe = [1, 96], Ee = [1, 93], Fe = [1, 89], _e = [1, 95], Be = [1, 91], ve = [1, 98], Le = [1, 94], Ve = [1, 99], Ie = [1, 90], me = [8, 9, 10, 11, 40, 75, 77, 78], K = [8, 9, 10, 11, 40, 46, 75, 77, 78], X = [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], u1 = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], we = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], o1 = [1, 122], l1 = [1, 123], Ke = [1, 125], Ye = [1, 124], c1 = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], h1 = [1, 134], d1 = [1, 148], p1 = [1, 149], f1 = [1, 150], g1 = [1, 151], b1 = [1, 136], A1 = [1, 138], k1 = [1, 142], m1 = [1, 143], C1 = [1, 144], T1 = [1, 145], S1 = [1, 146], D1 = [1, 147], y1 = [1, 152], x1 = [1, 153], E1 = [1, 132], F1 = [1, 133], _1 = [1, 140], B1 = [1, 135], v1 = [1, 139], L1 = [1, 137], Qe = [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], V1 = [1, 155], I1 = [1, 157], L = [8, 9, 11], Q = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], C = [1, 177], Y = [1, 173], q = [1, 174], T = [1, 178], S = [1, 175], D = [1, 176], Re = [77, 116, 119], B = [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], w1 = [10, 106], be = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], re = [1, 248], ae = [1, 246], ne = [1, 250], ue = [1, 244], oe = [1, 245], le = [1, 247], ce = [1, 249], he = [1, 251], Ne = [1, 269], R1 = [8, 9, 11, 106], ee = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], Je = {
686
+ trace: /* @__PURE__ */ k(function() {
687
+ }, "trace"),
688
+ yy: {},
689
+ 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 },
690
+ 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" },
691
+ 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]],
692
+ performAction: /* @__PURE__ */ k(function(p, f, b, o, v, e, Oe) {
693
+ var t = e.length - 1;
694
+ switch (v) {
695
+ case 2:
696
+ this.$ = [];
697
+ break;
698
+ case 3:
699
+ (!Array.isArray(e[t]) || e[t].length > 0) && e[t - 1].push(e[t]), this.$ = e[t - 1];
700
+ break;
701
+ case 4:
702
+ case 183:
703
+ this.$ = e[t];
704
+ break;
705
+ case 11:
706
+ o.setDirection("TB"), this.$ = "TB";
707
+ break;
708
+ case 12:
709
+ o.setDirection(e[t - 1]), this.$ = e[t - 1];
710
+ break;
711
+ case 27:
712
+ this.$ = e[t - 1].nodes;
713
+ break;
714
+ case 28:
715
+ case 29:
716
+ case 30:
717
+ case 31:
718
+ case 32:
719
+ this.$ = [];
720
+ break;
721
+ case 33:
722
+ this.$ = o.addSubGraph(e[t - 6], e[t - 1], e[t - 4]);
723
+ break;
724
+ case 34:
725
+ this.$ = o.addSubGraph(e[t - 3], e[t - 1], e[t - 3]);
726
+ break;
727
+ case 35:
728
+ this.$ = o.addSubGraph(void 0, e[t - 1], void 0);
729
+ break;
730
+ case 37:
731
+ this.$ = e[t].trim(), o.setAccTitle(this.$);
732
+ break;
733
+ case 38:
734
+ case 39:
735
+ this.$ = e[t].trim(), o.setAccDescription(this.$);
736
+ break;
737
+ case 43:
738
+ this.$ = e[t - 1] + e[t];
739
+ break;
740
+ case 44:
741
+ this.$ = e[t];
742
+ break;
743
+ case 45:
744
+ 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) };
745
+ break;
746
+ case 46:
747
+ o.addLink(e[t - 2].stmt, e[t], e[t - 1]), this.$ = { stmt: e[t], nodes: e[t].concat(e[t - 2].nodes) };
748
+ break;
749
+ case 47:
750
+ 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) };
751
+ break;
752
+ case 48:
753
+ this.$ = { stmt: e[t - 1], nodes: e[t - 1] };
754
+ break;
755
+ case 49:
756
+ 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] };
757
+ break;
758
+ case 50:
759
+ this.$ = { stmt: e[t], nodes: e[t] };
760
+ break;
761
+ case 51:
762
+ this.$ = [e[t]];
763
+ break;
764
+ case 52:
765
+ 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]);
766
+ break;
767
+ case 53:
768
+ this.$ = e[t - 4].concat(e[t]);
769
+ break;
770
+ case 54:
771
+ this.$ = e[t];
772
+ break;
773
+ case 55:
774
+ this.$ = e[t - 2], o.setClass(e[t - 2], e[t]);
775
+ break;
776
+ case 56:
777
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "square");
778
+ break;
779
+ case 57:
780
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "doublecircle");
781
+ break;
782
+ case 58:
783
+ this.$ = e[t - 5], o.addVertex(e[t - 5], e[t - 2], "circle");
784
+ break;
785
+ case 59:
786
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "ellipse");
787
+ break;
788
+ case 60:
789
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "stadium");
790
+ break;
791
+ case 61:
792
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "subroutine");
793
+ break;
794
+ case 62:
795
+ 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]]]));
796
+ break;
797
+ case 63:
798
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "cylinder");
799
+ break;
800
+ case 64:
801
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "round");
802
+ break;
803
+ case 65:
804
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "diamond");
805
+ break;
806
+ case 66:
807
+ this.$ = e[t - 5], o.addVertex(e[t - 5], e[t - 2], "hexagon");
808
+ break;
809
+ case 67:
810
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "odd");
811
+ break;
812
+ case 68:
813
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "trapezoid");
814
+ break;
815
+ case 69:
816
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "inv_trapezoid");
817
+ break;
818
+ case 70:
819
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "lean_right");
820
+ break;
821
+ case 71:
822
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "lean_left");
823
+ break;
824
+ case 72:
825
+ this.$ = e[t], o.addVertex(e[t]);
826
+ break;
827
+ case 73:
828
+ e[t - 1].text = e[t], this.$ = e[t - 1];
829
+ break;
830
+ case 74:
831
+ case 75:
832
+ e[t - 2].text = e[t - 1], this.$ = e[t - 2];
833
+ break;
834
+ case 76:
835
+ this.$ = e[t];
836
+ break;
837
+ case 77:
838
+ var N = o.destructLink(e[t], e[t - 2]);
839
+ this.$ = { type: N.type, stroke: N.stroke, length: N.length, text: e[t - 1] };
840
+ break;
841
+ case 78:
842
+ var N = o.destructLink(e[t], e[t - 2]);
843
+ this.$ = { type: N.type, stroke: N.stroke, length: N.length, text: e[t - 1], id: e[t - 3] };
844
+ break;
845
+ case 79:
846
+ this.$ = { text: e[t], type: "text" };
847
+ break;
848
+ case 80:
849
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
850
+ break;
851
+ case 81:
852
+ this.$ = { text: e[t], type: "string" };
853
+ break;
854
+ case 82:
855
+ this.$ = { text: e[t], type: "markdown" };
856
+ break;
857
+ case 83:
858
+ var N = o.destructLink(e[t]);
859
+ this.$ = { type: N.type, stroke: N.stroke, length: N.length };
860
+ break;
861
+ case 84:
862
+ var N = o.destructLink(e[t]);
863
+ this.$ = { type: N.type, stroke: N.stroke, length: N.length, id: e[t - 1] };
864
+ break;
865
+ case 85:
866
+ this.$ = e[t - 1];
867
+ break;
868
+ case 86:
869
+ this.$ = { text: e[t], type: "text" };
870
+ break;
871
+ case 87:
872
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
873
+ break;
874
+ case 88:
875
+ this.$ = { text: e[t], type: "string" };
876
+ break;
877
+ case 89:
878
+ case 104:
879
+ this.$ = { text: e[t], type: "markdown" };
880
+ break;
881
+ case 101:
882
+ this.$ = { text: e[t], type: "text" };
883
+ break;
884
+ case 102:
885
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
886
+ break;
887
+ case 103:
888
+ this.$ = { text: e[t], type: "text" };
889
+ break;
890
+ case 105:
891
+ this.$ = e[t - 4], o.addClass(e[t - 2], e[t]);
892
+ break;
893
+ case 106:
894
+ this.$ = e[t - 4], o.setClass(e[t - 2], e[t]);
895
+ break;
896
+ case 107:
897
+ case 115:
898
+ this.$ = e[t - 1], o.setClickEvent(e[t - 1], e[t]);
899
+ break;
900
+ case 108:
901
+ case 116:
902
+ this.$ = e[t - 3], o.setClickEvent(e[t - 3], e[t - 2]), o.setTooltip(e[t - 3], e[t]);
903
+ break;
904
+ case 109:
905
+ this.$ = e[t - 2], o.setClickEvent(e[t - 2], e[t - 1], e[t]);
906
+ break;
907
+ case 110:
908
+ this.$ = e[t - 4], o.setClickEvent(e[t - 4], e[t - 3], e[t - 2]), o.setTooltip(e[t - 4], e[t]);
909
+ break;
910
+ case 111:
911
+ this.$ = e[t - 2], o.setLink(e[t - 2], e[t]);
912
+ break;
913
+ case 112:
914
+ this.$ = e[t - 4], o.setLink(e[t - 4], e[t - 2]), o.setTooltip(e[t - 4], e[t]);
915
+ break;
916
+ case 113:
917
+ this.$ = e[t - 4], o.setLink(e[t - 4], e[t - 2], e[t]);
918
+ break;
919
+ case 114:
920
+ this.$ = e[t - 6], o.setLink(e[t - 6], e[t - 4], e[t]), o.setTooltip(e[t - 6], e[t - 2]);
921
+ break;
922
+ case 117:
923
+ this.$ = e[t - 1], o.setLink(e[t - 1], e[t]);
924
+ break;
925
+ case 118:
926
+ this.$ = e[t - 3], o.setLink(e[t - 3], e[t - 2]), o.setTooltip(e[t - 3], e[t]);
927
+ break;
928
+ case 119:
929
+ this.$ = e[t - 3], o.setLink(e[t - 3], e[t - 2], e[t]);
930
+ break;
931
+ case 120:
932
+ this.$ = e[t - 5], o.setLink(e[t - 5], e[t - 4], e[t]), o.setTooltip(e[t - 5], e[t - 2]);
933
+ break;
934
+ case 121:
935
+ this.$ = e[t - 4], o.addVertex(e[t - 2], void 0, void 0, e[t]);
936
+ break;
937
+ case 122:
938
+ this.$ = e[t - 4], o.updateLink([e[t - 2]], e[t]);
939
+ break;
940
+ case 123:
941
+ this.$ = e[t - 4], o.updateLink(e[t - 2], e[t]);
942
+ break;
943
+ case 124:
944
+ this.$ = e[t - 8], o.updateLinkInterpolate([e[t - 6]], e[t - 2]), o.updateLink([e[t - 6]], e[t]);
945
+ break;
946
+ case 125:
947
+ this.$ = e[t - 8], o.updateLinkInterpolate(e[t - 6], e[t - 2]), o.updateLink(e[t - 6], e[t]);
948
+ break;
949
+ case 126:
950
+ this.$ = e[t - 6], o.updateLinkInterpolate([e[t - 4]], e[t]);
951
+ break;
952
+ case 127:
953
+ this.$ = e[t - 6], o.updateLinkInterpolate(e[t - 4], e[t]);
954
+ break;
955
+ case 128:
956
+ case 130:
957
+ this.$ = [e[t]];
958
+ break;
959
+ case 129:
960
+ case 131:
961
+ e[t - 2].push(e[t]), this.$ = e[t - 2];
962
+ break;
963
+ case 133:
964
+ this.$ = e[t - 1] + e[t];
965
+ break;
966
+ case 181:
967
+ this.$ = e[t];
968
+ break;
969
+ case 182:
970
+ this.$ = e[t - 1] + "" + e[t];
971
+ break;
972
+ case 184:
973
+ this.$ = e[t - 1] + "" + e[t];
974
+ break;
975
+ case 185:
976
+ this.$ = { stmt: "dir", value: "TB" };
977
+ break;
978
+ case 186:
979
+ this.$ = { stmt: "dir", value: "BT" };
980
+ break;
981
+ case 187:
982
+ this.$ = { stmt: "dir", value: "RL" };
983
+ break;
984
+ case 188:
985
+ this.$ = { stmt: "dir", value: "LR" };
986
+ break;
987
+ case 189:
988
+ this.$ = { stmt: "dir", value: "TD" };
989
+ break;
990
+ }
991
+ }, "anonymous"),
992
+ 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: g, 9: h, 10: m, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: x, 33: 24, 34: y, 36: w, 38: A, 42: 28, 43: 39, 44: F, 45: 40, 47: 41, 60: c, 84: d, 85: E, 86: G, 87: pe, 88: fe, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W, 121: Me, 122: Ue, 123: ze, 124: We, 125: je }, s(n, [2, 9]), s(n, [2, 10]), s(n, [2, 11]), { 8: [1, 55], 9: [1, 56], 10: ge, 15: 54, 18: 57 }, s(_, [2, 3]), s(_, [2, 4]), s(_, [2, 5]), s(_, [2, 6]), s(_, [2, 7]), s(_, [2, 8]), { 8: te, 9: se, 11: ie, 21: 59, 41: 60, 72: 64, 75: [1, 65], 77: [1, 67], 78: [1, 66] }, { 8: te, 9: se, 11: ie, 21: 68 }, { 8: te, 9: se, 11: ie, 21: 69 }, { 8: te, 9: se, 11: ie, 21: 70 }, { 8: te, 9: se, 11: ie, 21: 71 }, { 8: te, 9: se, 11: ie, 21: 72 }, { 8: te, 9: se, 10: [1, 73], 11: ie, 21: 74 }, s(_, [2, 36]), { 35: [1, 75] }, { 37: [1, 76] }, s(_, [2, 39]), s(Se, [2, 50], { 18: 77, 39: 78, 10: ge, 40: n1 }), { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 10: [1, 83] }, { 14: De, 44: ye, 60: xe, 80: [1, 87], 89: Ee, 95: [1, 84], 97: [1, 85], 101: 86, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie, 120: 88 }, s(_, [2, 185]), s(_, [2, 186]), s(_, [2, 187]), s(_, [2, 188]), s(_, [2, 189]), s(me, [2, 51]), s(me, [2, 54], { 46: [1, 100] }), s(K, [2, 72], { 113: 113, 29: [1, 101], 44: F, 48: [1, 102], 50: [1, 103], 52: [1, 104], 54: [1, 105], 56: [1, 106], 58: [1, 107], 60: c, 63: [1, 108], 65: [1, 109], 67: [1, 110], 68: [1, 111], 70: [1, 112], 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 114: U, 115: z, 116: W }), s(X, [2, 181]), s(X, [2, 142]), s(X, [2, 143]), s(X, [2, 144]), s(X, [2, 145]), s(X, [2, 146]), s(X, [2, 147]), s(X, [2, 148]), s(X, [2, 149]), s(X, [2, 150]), s(X, [2, 151]), s(X, [2, 152]), s(n, [2, 12]), s(n, [2, 18]), s(n, [2, 19]), { 9: [1, 114] }, s(u1, [2, 26], { 18: 115, 10: ge }), s(_, [2, 27]), { 42: 116, 43: 39, 44: F, 45: 40, 47: 41, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W }, s(_, [2, 40]), s(_, [2, 41]), s(_, [2, 42]), s(we, [2, 76], { 73: 117, 62: [1, 119], 74: [1, 118] }), { 76: 120, 79: 121, 80: o1, 81: l1, 116: Ke, 119: Ye }, { 75: [1, 126], 77: [1, 127] }, s(c1, [2, 83]), s(_, [2, 28]), s(_, [2, 29]), s(_, [2, 30]), s(_, [2, 31]), s(_, [2, 32]), { 10: h1, 12: d1, 14: p1, 27: f1, 28: 128, 32: g1, 44: b1, 60: A1, 75: k1, 80: [1, 130], 81: [1, 131], 83: 141, 84: m1, 85: C1, 86: T1, 87: S1, 88: D1, 89: y1, 90: x1, 91: 129, 105: E1, 109: F1, 111: _1, 114: B1, 115: v1, 116: L1 }, s(Qe, l, { 5: 154 }), s(_, [2, 37]), s(_, [2, 38]), s(Se, [2, 48], { 44: V1 }), s(Se, [2, 49], { 18: 156, 10: ge, 40: I1 }), s(me, [2, 44]), { 44: F, 47: 158, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W }, { 102: [1, 159], 103: 160, 105: [1, 161] }, { 44: F, 47: 162, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W }, { 44: F, 47: 163, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W }, s(L, [2, 107], { 10: [1, 164], 96: [1, 165] }), { 80: [1, 166] }, s(L, [2, 115], { 120: 168, 10: [1, 167], 14: De, 44: ye, 60: xe, 89: Ee, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie }), s(L, [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: F, 47: 170, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W }, { 30: 171, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 30: 179, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 30: 181, 50: [1, 180], 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 30: 182, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 30: 183, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 30: 184, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 109: [1, 185] }, { 30: 186, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 30: 187, 65: [1, 188], 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 30: 189, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 30: 190, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 30: 191, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, s(X, [2, 182]), s(n, [2, 20]), s(u1, [2, 25]), s(Se, [2, 46], { 39: 192, 18: 193, 10: ge, 40: n1 }), s(we, [2, 73], { 10: [1, 194] }), { 10: [1, 195] }, { 30: 196, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 77: [1, 197], 79: 198, 116: Ke, 119: Ye }, s(Re, [2, 79]), s(Re, [2, 81]), s(Re, [2, 82]), s(Re, [2, 168]), s(Re, [2, 169]), { 76: 199, 79: 121, 80: o1, 81: l1, 116: Ke, 119: Ye }, s(c1, [2, 84]), { 8: te, 9: se, 10: h1, 11: ie, 12: d1, 14: p1, 21: 201, 27: f1, 29: [1, 200], 32: g1, 44: b1, 60: A1, 75: k1, 83: 141, 84: m1, 85: C1, 86: T1, 87: S1, 88: D1, 89: y1, 90: x1, 91: 202, 105: E1, 109: F1, 111: _1, 114: B1, 115: v1, 116: L1 }, s(B, [2, 101]), s(B, [2, 103]), s(B, [2, 104]), s(B, [2, 157]), s(B, [2, 158]), s(B, [2, 159]), s(B, [2, 160]), s(B, [2, 161]), s(B, [2, 162]), s(B, [2, 163]), s(B, [2, 164]), s(B, [2, 165]), s(B, [2, 166]), s(B, [2, 167]), s(B, [2, 90]), s(B, [2, 91]), s(B, [2, 92]), s(B, [2, 93]), s(B, [2, 94]), s(B, [2, 95]), s(B, [2, 96]), s(B, [2, 97]), s(B, [2, 98]), s(B, [2, 99]), s(B, [2, 100]), { 6: 11, 7: 12, 8: g, 9: h, 10: m, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: x, 32: [1, 203], 33: 24, 34: y, 36: w, 38: A, 42: 28, 43: 39, 44: F, 45: 40, 47: 41, 60: c, 84: d, 85: E, 86: G, 87: pe, 88: fe, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W, 121: Me, 122: Ue, 123: ze, 124: We, 125: je }, { 10: ge, 18: 204 }, { 44: [1, 205] }, s(me, [2, 43]), { 10: [1, 206], 44: F, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 113, 114: U, 115: z, 116: W }, { 10: [1, 207] }, { 10: [1, 208], 106: [1, 209] }, s(w1, [2, 128]), { 10: [1, 210], 44: F, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 113, 114: U, 115: z, 116: W }, { 10: [1, 211], 44: F, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 113, 114: U, 115: z, 116: W }, { 80: [1, 212] }, s(L, [2, 109], { 10: [1, 213] }), s(L, [2, 111], { 10: [1, 214] }), { 80: [1, 215] }, s(Q, [2, 184]), { 80: [1, 216], 98: [1, 217] }, s(me, [2, 55], { 113: 113, 44: F, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 114: U, 115: z, 116: W }), { 31: [1, 218], 67: C, 82: 219, 116: T, 117: S, 118: D }, s(be, [2, 86]), s(be, [2, 88]), s(be, [2, 89]), s(be, [2, 153]), s(be, [2, 154]), s(be, [2, 155]), s(be, [2, 156]), { 49: [1, 220], 67: C, 82: 219, 116: T, 117: S, 118: D }, { 30: 221, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 51: [1, 222], 67: C, 82: 219, 116: T, 117: S, 118: D }, { 53: [1, 223], 67: C, 82: 219, 116: T, 117: S, 118: D }, { 55: [1, 224], 67: C, 82: 219, 116: T, 117: S, 118: D }, { 57: [1, 225], 67: C, 82: 219, 116: T, 117: S, 118: D }, { 60: [1, 226] }, { 64: [1, 227], 67: C, 82: 219, 116: T, 117: S, 118: D }, { 66: [1, 228], 67: C, 82: 219, 116: T, 117: S, 118: D }, { 30: 229, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, { 31: [1, 230], 67: C, 82: 219, 116: T, 117: S, 118: D }, { 67: C, 69: [1, 231], 71: [1, 232], 82: 219, 116: T, 117: S, 118: D }, { 67: C, 69: [1, 234], 71: [1, 233], 82: 219, 116: T, 117: S, 118: D }, s(Se, [2, 45], { 18: 156, 10: ge, 40: I1 }), s(Se, [2, 47], { 44: V1 }), s(we, [2, 75]), s(we, [2, 74]), { 62: [1, 235], 67: C, 82: 219, 116: T, 117: S, 118: D }, s(we, [2, 77]), s(Re, [2, 80]), { 77: [1, 236], 79: 198, 116: Ke, 119: Ye }, { 30: 237, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, s(Qe, l, { 5: 238 }), s(B, [2, 102]), s(_, [2, 35]), { 43: 239, 44: F, 45: 40, 47: 41, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W }, { 10: ge, 18: 240 }, { 10: re, 60: ae, 84: ne, 92: 241, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 10: re, 60: ae, 84: ne, 92: 252, 104: [1, 253], 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 10: re, 60: ae, 84: ne, 92: 254, 104: [1, 255], 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 105: [1, 256] }, { 10: re, 60: ae, 84: ne, 92: 257, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 44: F, 47: 258, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W }, s(L, [2, 108]), { 80: [1, 259] }, { 80: [1, 260], 98: [1, 261] }, s(L, [2, 116]), s(L, [2, 118], { 10: [1, 262] }), s(L, [2, 119]), s(K, [2, 56]), s(be, [2, 87]), s(K, [2, 57]), { 51: [1, 263], 67: C, 82: 219, 116: T, 117: S, 118: D }, s(K, [2, 64]), s(K, [2, 59]), s(K, [2, 60]), s(K, [2, 61]), { 109: [1, 264] }, s(K, [2, 63]), s(K, [2, 65]), { 66: [1, 265], 67: C, 82: 219, 116: T, 117: S, 118: D }, s(K, [2, 67]), s(K, [2, 68]), s(K, [2, 70]), s(K, [2, 69]), s(K, [2, 71]), s([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), s(we, [2, 78]), { 31: [1, 266], 67: C, 82: 219, 116: T, 117: S, 118: D }, { 6: 11, 7: 12, 8: g, 9: h, 10: m, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: x, 32: [1, 267], 33: 24, 34: y, 36: w, 38: A, 42: 28, 43: 39, 44: F, 45: 40, 47: 41, 60: c, 84: d, 85: E, 86: G, 87: pe, 88: fe, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W, 121: Me, 122: Ue, 123: ze, 124: We, 125: je }, s(me, [2, 53]), { 43: 268, 44: F, 45: 40, 47: 41, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W }, s(L, [2, 121], { 106: Ne }), s(R1, [2, 130], { 108: 270, 10: re, 60: ae, 84: ne, 105: ue, 109: oe, 110: le, 111: ce, 112: he }), s(ee, [2, 132]), s(ee, [2, 134]), s(ee, [2, 135]), s(ee, [2, 136]), s(ee, [2, 137]), s(ee, [2, 138]), s(ee, [2, 139]), s(ee, [2, 140]), s(ee, [2, 141]), s(L, [2, 122], { 106: Ne }), { 10: [1, 271] }, s(L, [2, 123], { 106: Ne }), { 10: [1, 272] }, s(w1, [2, 129]), s(L, [2, 105], { 106: Ne }), s(L, [2, 106], { 113: 113, 44: F, 60: c, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 114: U, 115: z, 116: W }), s(L, [2, 110]), s(L, [2, 112], { 10: [1, 273] }), s(L, [2, 113]), { 98: [1, 274] }, { 51: [1, 275] }, { 62: [1, 276] }, { 66: [1, 277] }, { 8: te, 9: se, 11: ie, 21: 278 }, s(_, [2, 34]), s(me, [2, 52]), { 10: re, 60: ae, 84: ne, 105: ue, 107: 279, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, s(ee, [2, 133]), { 14: De, 44: ye, 60: xe, 89: Ee, 101: 280, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie, 120: 88 }, { 14: De, 44: ye, 60: xe, 89: Ee, 101: 281, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie, 120: 88 }, { 98: [1, 282] }, s(L, [2, 120]), s(K, [2, 58]), { 30: 283, 67: C, 80: Y, 81: q, 82: 172, 116: T, 117: S, 118: D }, s(K, [2, 66]), s(Qe, l, { 5: 284 }), s(R1, [2, 131], { 108: 270, 10: re, 60: ae, 84: ne, 105: ue, 109: oe, 110: le, 111: ce, 112: he }), s(L, [2, 126], { 120: 168, 10: [1, 285], 14: De, 44: ye, 60: xe, 89: Ee, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie }), s(L, [2, 127], { 120: 168, 10: [1, 286], 14: De, 44: ye, 60: xe, 89: Ee, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: Ie }), s(L, [2, 114]), { 31: [1, 287], 67: C, 82: 219, 116: T, 117: S, 118: D }, { 6: 11, 7: 12, 8: g, 9: h, 10: m, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: x, 32: [1, 288], 33: 24, 34: y, 36: w, 38: A, 42: 28, 43: 39, 44: F, 45: 40, 47: 41, 60: c, 84: d, 85: E, 86: G, 87: pe, 88: fe, 89: V, 102: R, 105: I, 106: P, 109: O, 111: M, 113: 42, 114: U, 115: z, 116: W, 121: Me, 122: Ue, 123: ze, 124: We, 125: je }, { 10: re, 60: ae, 84: ne, 92: 289, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 10: re, 60: ae, 84: ne, 92: 290, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, s(K, [2, 62]), s(_, [2, 33]), s(L, [2, 124], { 106: Ne }), s(L, [2, 125], { 106: Ne })],
993
+ defaultActions: {},
994
+ parseError: /* @__PURE__ */ k(function(p, f) {
995
+ if (f.recoverable)
996
+ this.trace(p);
997
+ else {
998
+ var b = new Error(p);
999
+ throw b.hash = f, b;
1000
+ }
1001
+ }, "parseError"),
1002
+ parse: /* @__PURE__ */ k(function(p) {
1003
+ var f = this, b = [0], o = [], v = [null], e = [], Oe = this.table, t = "", N = 0, N1 = 0, j1 = 2, G1 = 1, K1 = e.slice.call(arguments, 1), j = Object.create(this.lexer), Ce = { yy: {} };
1004
+ for (var Ze in this.yy)
1005
+ Object.prototype.hasOwnProperty.call(this.yy, Ze) && (Ce.yy[Ze] = this.yy[Ze]);
1006
+ j.setInput(p, Ce.yy), Ce.yy.lexer = j, Ce.yy.parser = this, typeof j.yylloc > "u" && (j.yylloc = {});
1007
+ var $e = j.yylloc;
1008
+ e.push($e);
1009
+ var Y1 = j.options && j.options.ranges;
1010
+ typeof Ce.yy.parseError == "function" ? this.parseError = Ce.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1011
+ function q1(J) {
1012
+ b.length = b.length - 2 * J, v.length = v.length - J, e.length = e.length - J;
1013
+ }
1014
+ k(q1, "popStack");
1015
+ function P1() {
1016
+ var J;
1017
+ return J = o.pop() || j.lex() || G1, typeof J != "number" && (J instanceof Array && (o = J, J = o.pop()), J = f.symbols_[J] || J), J;
1018
+ }
1019
+ k(P1, "lex");
1020
+ for (var H, Te, Z, e1, Ge = {}, He, de, O1, Xe; ; ) {
1021
+ if (Te = b[b.length - 1], this.defaultActions[Te] ? Z = this.defaultActions[Te] : ((H === null || typeof H > "u") && (H = P1()), Z = Oe[Te] && Oe[Te][H]), typeof Z > "u" || !Z.length || !Z[0]) {
1022
+ var t1 = "";
1023
+ Xe = [];
1024
+ for (He in Oe[Te])
1025
+ this.terminals_[He] && He > j1 && Xe.push("'" + this.terminals_[He] + "'");
1026
+ j.showPosition ? t1 = "Parse error on line " + (N + 1) + `:
1027
+ ` + j.showPosition() + `
1028
+ Expecting ` + Xe.join(", ") + ", got '" + (this.terminals_[H] || H) + "'" : t1 = "Parse error on line " + (N + 1) + ": Unexpected " + (H == G1 ? "end of input" : "'" + (this.terminals_[H] || H) + "'"), this.parseError(t1, {
1029
+ text: j.match,
1030
+ token: this.terminals_[H] || H,
1031
+ line: j.yylineno,
1032
+ loc: $e,
1033
+ expected: Xe
1034
+ });
1035
+ }
1036
+ if (Z[0] instanceof Array && Z.length > 1)
1037
+ throw new Error("Parse Error: multiple actions possible at state: " + Te + ", token: " + H);
1038
+ switch (Z[0]) {
1039
+ case 1:
1040
+ b.push(H), v.push(j.yytext), e.push(j.yylloc), b.push(Z[1]), H = null, N1 = j.yyleng, t = j.yytext, N = j.yylineno, $e = j.yylloc;
1041
+ break;
1042
+ case 2:
1043
+ if (de = this.productions_[Z[1]][1], Ge.$ = v[v.length - de], Ge._$ = {
1044
+ first_line: e[e.length - (de || 1)].first_line,
1045
+ last_line: e[e.length - 1].last_line,
1046
+ first_column: e[e.length - (de || 1)].first_column,
1047
+ last_column: e[e.length - 1].last_column
1048
+ }, Y1 && (Ge._$.range = [
1049
+ e[e.length - (de || 1)].range[0],
1050
+ e[e.length - 1].range[1]
1051
+ ]), e1 = this.performAction.apply(Ge, [
1052
+ t,
1053
+ N1,
1054
+ N,
1055
+ Ce.yy,
1056
+ Z[1],
1057
+ v,
1058
+ e
1059
+ ].concat(K1)), typeof e1 < "u")
1060
+ return e1;
1061
+ de && (b = b.slice(0, -1 * de * 2), v = v.slice(0, -1 * de), e = e.slice(0, -1 * de)), b.push(this.productions_[Z[1]][0]), v.push(Ge.$), e.push(Ge._$), O1 = Oe[b[b.length - 2]][b[b.length - 1]], b.push(O1);
1062
+ break;
1063
+ case 3:
1064
+ return !0;
1065
+ }
1066
+ }
1067
+ return !0;
1068
+ }, "parse")
1069
+ }, W1 = /* @__PURE__ */ (function() {
1070
+ var Ae = {
1071
+ EOF: 1,
1072
+ parseError: /* @__PURE__ */ k(function(f, b) {
1073
+ if (this.yy.parser)
1074
+ this.yy.parser.parseError(f, b);
1075
+ else
1076
+ throw new Error(f);
1077
+ }, "parseError"),
1078
+ // resets the lexer, sets new input
1079
+ setInput: /* @__PURE__ */ k(function(p, f) {
1080
+ return this.yy = f || this.yy || {}, this._input = p, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1081
+ first_line: 1,
1082
+ first_column: 0,
1083
+ last_line: 1,
1084
+ last_column: 0
1085
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1086
+ }, "setInput"),
1087
+ // consumes and returns one char from the input
1088
+ input: /* @__PURE__ */ k(function() {
1089
+ var p = this._input[0];
1090
+ this.yytext += p, this.yyleng++, this.offset++, this.match += p, this.matched += p;
1091
+ var f = p.match(/(?:\r\n?|\n).*/g);
1092
+ return f ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), p;
1093
+ }, "input"),
1094
+ // unshifts one char (or a string) into the input
1095
+ unput: /* @__PURE__ */ k(function(p) {
1096
+ var f = p.length, b = p.split(/(?:\r\n?|\n)/g);
1097
+ this._input = p + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
1098
+ var o = this.match.split(/(?:\r\n?|\n)/g);
1099
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), b.length - 1 && (this.yylineno -= b.length - 1);
1100
+ var v = this.yylloc.range;
1101
+ return this.yylloc = {
1102
+ first_line: this.yylloc.first_line,
1103
+ last_line: this.yylineno + 1,
1104
+ first_column: this.yylloc.first_column,
1105
+ last_column: b ? (b.length === o.length ? this.yylloc.first_column : 0) + o[o.length - b.length].length - b[0].length : this.yylloc.first_column - f
1106
+ }, this.options.ranges && (this.yylloc.range = [v[0], v[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
1107
+ }, "unput"),
1108
+ // When called from action, caches matched text and appends it on next action
1109
+ more: /* @__PURE__ */ k(function() {
1110
+ return this._more = !0, this;
1111
+ }, "more"),
1112
+ // 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.
1113
+ reject: /* @__PURE__ */ k(function() {
1114
+ if (this.options.backtrack_lexer)
1115
+ this._backtrack = !0;
1116
+ else
1117
+ 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).
1118
+ ` + this.showPosition(), {
1119
+ text: "",
1120
+ token: null,
1121
+ line: this.yylineno
1122
+ });
1123
+ return this;
1124
+ }, "reject"),
1125
+ // retain first n characters of the match
1126
+ less: /* @__PURE__ */ k(function(p) {
1127
+ this.unput(this.match.slice(p));
1128
+ }, "less"),
1129
+ // displays already matched input, i.e. for error messages
1130
+ pastInput: /* @__PURE__ */ k(function() {
1131
+ var p = this.matched.substr(0, this.matched.length - this.match.length);
1132
+ return (p.length > 20 ? "..." : "") + p.substr(-20).replace(/\n/g, "");
1133
+ }, "pastInput"),
1134
+ // displays upcoming input, i.e. for error messages
1135
+ upcomingInput: /* @__PURE__ */ k(function() {
1136
+ var p = this.match;
1137
+ return p.length < 20 && (p += this._input.substr(0, 20 - p.length)), (p.substr(0, 20) + (p.length > 20 ? "..." : "")).replace(/\n/g, "");
1138
+ }, "upcomingInput"),
1139
+ // displays the character position where the lexing error occurred, i.e. for error messages
1140
+ showPosition: /* @__PURE__ */ k(function() {
1141
+ var p = this.pastInput(), f = new Array(p.length + 1).join("-");
1142
+ return p + this.upcomingInput() + `
1143
+ ` + f + "^";
1144
+ }, "showPosition"),
1145
+ // test the lexed token: return FALSE when not a match, otherwise return token
1146
+ test_match: /* @__PURE__ */ k(function(p, f) {
1147
+ var b, o, v;
1148
+ if (this.options.backtrack_lexer && (v = {
1149
+ yylineno: this.yylineno,
1150
+ yylloc: {
1151
+ first_line: this.yylloc.first_line,
1152
+ last_line: this.last_line,
1153
+ first_column: this.yylloc.first_column,
1154
+ last_column: this.yylloc.last_column
1155
+ },
1156
+ yytext: this.yytext,
1157
+ match: this.match,
1158
+ matches: this.matches,
1159
+ matched: this.matched,
1160
+ yyleng: this.yyleng,
1161
+ offset: this.offset,
1162
+ _more: this._more,
1163
+ _input: this._input,
1164
+ yy: this.yy,
1165
+ conditionStack: this.conditionStack.slice(0),
1166
+ done: this.done
1167
+ }, this.options.ranges && (v.yylloc.range = this.yylloc.range.slice(0))), o = p[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
1168
+ first_line: this.yylloc.last_line,
1169
+ last_line: this.yylineno + 1,
1170
+ first_column: this.yylloc.last_column,
1171
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + p[0].length
1172
+ }, this.yytext += p[0], this.match += p[0], this.matches = p, 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(p[0].length), this.matched += p[0], b = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), b)
1173
+ return b;
1174
+ if (this._backtrack) {
1175
+ for (var e in v)
1176
+ this[e] = v[e];
1177
+ return !1;
1178
+ }
1179
+ return !1;
1180
+ }, "test_match"),
1181
+ // return next match in input
1182
+ next: /* @__PURE__ */ k(function() {
1183
+ if (this.done)
1184
+ return this.EOF;
1185
+ this._input || (this.done = !0);
1186
+ var p, f, b, o;
1187
+ this._more || (this.yytext = "", this.match = "");
1188
+ for (var v = this._currentRules(), e = 0; e < v.length; e++)
1189
+ if (b = this._input.match(this.rules[v[e]]), b && (!f || b[0].length > f[0].length)) {
1190
+ if (f = b, o = e, this.options.backtrack_lexer) {
1191
+ if (p = this.test_match(b, v[e]), p !== !1)
1192
+ return p;
1193
+ if (this._backtrack) {
1194
+ f = !1;
1195
+ continue;
1196
+ } else
1197
+ return !1;
1198
+ } else if (!this.options.flex)
1199
+ break;
1200
+ }
1201
+ return f ? (p = this.test_match(f, v[o]), p !== !1 ? p : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1202
+ ` + this.showPosition(), {
1203
+ text: "",
1204
+ token: null,
1205
+ line: this.yylineno
1206
+ });
1207
+ }, "next"),
1208
+ // return next match that has a token
1209
+ lex: /* @__PURE__ */ k(function() {
1210
+ var f = this.next();
1211
+ return f || this.lex();
1212
+ }, "lex"),
1213
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1214
+ begin: /* @__PURE__ */ k(function(f) {
1215
+ this.conditionStack.push(f);
1216
+ }, "begin"),
1217
+ // pop the previously active lexer condition state off the condition stack
1218
+ popState: /* @__PURE__ */ k(function() {
1219
+ var f = this.conditionStack.length - 1;
1220
+ return f > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1221
+ }, "popState"),
1222
+ // produce the lexer rule set which is active for the currently active lexer condition state
1223
+ _currentRules: /* @__PURE__ */ k(function() {
1224
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1225
+ }, "_currentRules"),
1226
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1227
+ topState: /* @__PURE__ */ k(function(f) {
1228
+ return f = this.conditionStack.length - 1 - Math.abs(f || 0), f >= 0 ? this.conditionStack[f] : "INITIAL";
1229
+ }, "topState"),
1230
+ // alias for begin(condition)
1231
+ pushState: /* @__PURE__ */ k(function(f) {
1232
+ this.begin(f);
1233
+ }, "pushState"),
1234
+ // return the number of states currently on the stack
1235
+ stateStackSize: /* @__PURE__ */ k(function() {
1236
+ return this.conditionStack.length;
1237
+ }, "stateStackSize"),
1238
+ options: {},
1239
+ performAction: /* @__PURE__ */ k(function(f, b, o, v) {
1240
+ switch (o) {
1241
+ case 0:
1242
+ return this.begin("acc_title"), 34;
1243
+ case 1:
1244
+ return this.popState(), "acc_title_value";
1245
+ case 2:
1246
+ return this.begin("acc_descr"), 36;
1247
+ case 3:
1248
+ return this.popState(), "acc_descr_value";
1249
+ case 4:
1250
+ this.begin("acc_descr_multiline");
1251
+ break;
1252
+ case 5:
1253
+ this.popState();
1254
+ break;
1255
+ case 6:
1256
+ return "acc_descr_multiline_value";
1257
+ case 7:
1258
+ return this.pushState("shapeData"), b.yytext = "", 40;
1259
+ case 8:
1260
+ return this.pushState("shapeDataStr"), 40;
1261
+ case 9:
1262
+ return this.popState(), 40;
1263
+ case 10:
1264
+ const e = /\n\s*/g;
1265
+ return b.yytext = b.yytext.replace(e, "<br/>"), 40;
1266
+ case 11:
1267
+ return 40;
1268
+ case 12:
1269
+ this.popState();
1270
+ break;
1271
+ case 13:
1272
+ this.begin("callbackname");
1273
+ break;
1274
+ case 14:
1275
+ this.popState();
1276
+ break;
1277
+ case 15:
1278
+ this.popState(), this.begin("callbackargs");
1279
+ break;
1280
+ case 16:
1281
+ return 95;
1282
+ case 17:
1283
+ this.popState();
1284
+ break;
1285
+ case 18:
1286
+ return 96;
1287
+ case 19:
1288
+ return "MD_STR";
1289
+ case 20:
1290
+ this.popState();
1291
+ break;
1292
+ case 21:
1293
+ this.begin("md_string");
1294
+ break;
1295
+ case 22:
1296
+ return "STR";
1297
+ case 23:
1298
+ this.popState();
1299
+ break;
1300
+ case 24:
1301
+ this.pushState("string");
1302
+ break;
1303
+ case 25:
1304
+ return 84;
1305
+ case 26:
1306
+ return 102;
1307
+ case 27:
1308
+ return 85;
1309
+ case 28:
1310
+ return 104;
1311
+ case 29:
1312
+ return 86;
1313
+ case 30:
1314
+ return 87;
1315
+ case 31:
1316
+ return 97;
1317
+ case 32:
1318
+ this.begin("click");
1319
+ break;
1320
+ case 33:
1321
+ this.popState();
1322
+ break;
1323
+ case 34:
1324
+ return 88;
1325
+ case 35:
1326
+ return f.lex.firstGraph() && this.begin("dir"), 12;
1327
+ case 36:
1328
+ return f.lex.firstGraph() && this.begin("dir"), 12;
1329
+ case 37:
1330
+ return f.lex.firstGraph() && this.begin("dir"), 12;
1331
+ case 38:
1332
+ return f.lex.firstGraph() && this.begin("dir"), 12;
1333
+ case 39:
1334
+ return 27;
1335
+ case 40:
1336
+ return 32;
1337
+ case 41:
1338
+ return 98;
1339
+ case 42:
1340
+ return 98;
1341
+ case 43:
1342
+ return 98;
1343
+ case 44:
1344
+ return 98;
1345
+ case 45:
1346
+ return this.popState(), 13;
1347
+ case 46:
1348
+ return this.popState(), 14;
1349
+ case 47:
1350
+ return this.popState(), 14;
1351
+ case 48:
1352
+ return this.popState(), 14;
1353
+ case 49:
1354
+ return this.popState(), 14;
1355
+ case 50:
1356
+ return this.popState(), 14;
1357
+ case 51:
1358
+ return this.popState(), 14;
1359
+ case 52:
1360
+ return this.popState(), 14;
1361
+ case 53:
1362
+ return this.popState(), 14;
1363
+ case 54:
1364
+ return this.popState(), 14;
1365
+ case 55:
1366
+ return this.popState(), 14;
1367
+ case 56:
1368
+ return 121;
1369
+ case 57:
1370
+ return 122;
1371
+ case 58:
1372
+ return 123;
1373
+ case 59:
1374
+ return 124;
1375
+ case 60:
1376
+ return 125;
1377
+ case 61:
1378
+ return 78;
1379
+ case 62:
1380
+ return 105;
1381
+ case 63:
1382
+ return 111;
1383
+ case 64:
1384
+ return 46;
1385
+ case 65:
1386
+ return 60;
1387
+ case 66:
1388
+ return 44;
1389
+ case 67:
1390
+ return 8;
1391
+ case 68:
1392
+ return 106;
1393
+ case 69:
1394
+ return 115;
1395
+ case 70:
1396
+ return this.popState(), 77;
1397
+ case 71:
1398
+ return this.pushState("edgeText"), 75;
1399
+ case 72:
1400
+ return 119;
1401
+ case 73:
1402
+ return this.popState(), 77;
1403
+ case 74:
1404
+ return this.pushState("thickEdgeText"), 75;
1405
+ case 75:
1406
+ return 119;
1407
+ case 76:
1408
+ return this.popState(), 77;
1409
+ case 77:
1410
+ return this.pushState("dottedEdgeText"), 75;
1411
+ case 78:
1412
+ return 119;
1413
+ case 79:
1414
+ return 77;
1415
+ case 80:
1416
+ return this.popState(), 53;
1417
+ case 81:
1418
+ return "TEXT";
1419
+ case 82:
1420
+ return this.pushState("ellipseText"), 52;
1421
+ case 83:
1422
+ return this.popState(), 55;
1423
+ case 84:
1424
+ return this.pushState("text"), 54;
1425
+ case 85:
1426
+ return this.popState(), 57;
1427
+ case 86:
1428
+ return this.pushState("text"), 56;
1429
+ case 87:
1430
+ return 58;
1431
+ case 88:
1432
+ return this.pushState("text"), 67;
1433
+ case 89:
1434
+ return this.popState(), 64;
1435
+ case 90:
1436
+ return this.pushState("text"), 63;
1437
+ case 91:
1438
+ return this.popState(), 49;
1439
+ case 92:
1440
+ return this.pushState("text"), 48;
1441
+ case 93:
1442
+ return this.popState(), 69;
1443
+ case 94:
1444
+ return this.popState(), 71;
1445
+ case 95:
1446
+ return 117;
1447
+ case 96:
1448
+ return this.pushState("trapText"), 68;
1449
+ case 97:
1450
+ return this.pushState("trapText"), 70;
1451
+ case 98:
1452
+ return 118;
1453
+ case 99:
1454
+ return 67;
1455
+ case 100:
1456
+ return 90;
1457
+ case 101:
1458
+ return "SEP";
1459
+ case 102:
1460
+ return 89;
1461
+ case 103:
1462
+ return 115;
1463
+ case 104:
1464
+ return 111;
1465
+ case 105:
1466
+ return 44;
1467
+ case 106:
1468
+ return 109;
1469
+ case 107:
1470
+ return 114;
1471
+ case 108:
1472
+ return 116;
1473
+ case 109:
1474
+ return this.popState(), 62;
1475
+ case 110:
1476
+ return this.pushState("text"), 62;
1477
+ case 111:
1478
+ return this.popState(), 51;
1479
+ case 112:
1480
+ return this.pushState("text"), 50;
1481
+ case 113:
1482
+ return this.popState(), 31;
1483
+ case 114:
1484
+ return this.pushState("text"), 29;
1485
+ case 115:
1486
+ return this.popState(), 66;
1487
+ case 116:
1488
+ return this.pushState("text"), 65;
1489
+ case 117:
1490
+ return "TEXT";
1491
+ case 118:
1492
+ return "QUOTE";
1493
+ case 119:
1494
+ return 9;
1495
+ case 120:
1496
+ return 10;
1497
+ case 121:
1498
+ return 11;
1499
+ }
1500
+ }, "anonymous"),
1501
+ 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)/, /^(?:$)/],
1502
+ 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 } }
1503
+ };
1504
+ return Ae;
1505
+ })();
1506
+ Je.lexer = W1;
1507
+ function qe() {
1508
+ this.yy = {};
1509
+ }
1510
+ return k(qe, "Parser"), qe.prototype = Je, Je.Parser = qe, new qe();
1511
+ })();
1512
+ a1.parser = a1;
1513
+ var U1 = a1, z1 = Object.assign({}, U1);
1514
+ z1.parse = (s) => {
1515
+ const i = s.replace(/}\s*\n/g, `}
1516
+ `);
1517
+ return U1.parse(i);
1518
+ };
1519
+ var Tt = z1, St = /* @__PURE__ */ k((s, i) => {
1520
+ const r = gt, a = r(s, "r"), n = r(s, "g"), l = r(s, "b");
1521
+ return pt(a, n, l, i);
1522
+ }, "fade"), Dt = /* @__PURE__ */ k((s) => `.label {
1523
+ font-family: ${s.fontFamily};
1524
+ color: ${s.nodeTextColor || s.textColor};
1525
+ }
1526
+ .cluster-label text {
1527
+ fill: ${s.titleColor};
1528
+ }
1529
+ .cluster-label span {
1530
+ color: ${s.titleColor};
1531
+ }
1532
+ .cluster-label span p {
1533
+ background-color: transparent;
1534
+ }
1535
+
1536
+ .label text,span {
1537
+ fill: ${s.nodeTextColor || s.textColor};
1538
+ color: ${s.nodeTextColor || s.textColor};
1539
+ }
1540
+
1541
+ .node rect,
1542
+ .node circle,
1543
+ .node ellipse,
1544
+ .node polygon,
1545
+ .node path {
1546
+ fill: ${s.mainBkg};
1547
+ stroke: ${s.nodeBorder};
1548
+ stroke-width: ${s.strokeWidth ?? 1}px;
1549
+ }
1550
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
1551
+ text-anchor: middle;
1552
+ }
1553
+
1554
+ .node .katex path {
1555
+ fill: #000;
1556
+ stroke: #000;
1557
+ stroke-width: 1px;
1558
+ }
1559
+
1560
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
1561
+ text-align: center;
1562
+ }
1563
+ .node.clickable {
1564
+ cursor: pointer;
1565
+ }
1566
+
1567
+
1568
+ .root .anchor path {
1569
+ fill: ${s.lineColor} !important;
1570
+ stroke-width: 0;
1571
+ stroke: ${s.lineColor};
1572
+ }
1573
+
1574
+ .arrowheadPath {
1575
+ fill: ${s.arrowheadColor};
1576
+ }
1577
+
1578
+ .edgePaths .path {
1579
+ stroke: ${s.lineColor};
1580
+ stroke-width: ${s.strokeWidth ?? 2}px;
1581
+ }
1582
+
1583
+ .flowchart-link {
1584
+ stroke: ${s.lineColor};
1585
+ fill: none;
1586
+ }
1587
+
1588
+ .edgeLabel {
1589
+ background-color: ${s.edgeLabelBackground};
1590
+ p {
1591
+ background-color: ${s.edgeLabelBackground};
1592
+ }
1593
+ rect {
1594
+ opacity: 0.5;
1595
+ background-color: ${s.edgeLabelBackground};
1596
+ fill: ${s.edgeLabelBackground};
1597
+ }
1598
+ text-align: center;
1599
+ }
1600
+
1601
+ /* For html labels only */
1602
+ .labelBkg {
1603
+ background-color: ${St(s.edgeLabelBackground, 0.5)};
1604
+ // background-color:
1605
+ }
1606
+
1607
+ .cluster rect {
1608
+ fill: ${s.clusterBkg};
1609
+ stroke: ${s.clusterBorder};
1610
+ stroke-width: 1px;
1611
+ }
1612
+
1613
+ .cluster text {
1614
+ fill: ${s.titleColor};
1615
+ }
1616
+
1617
+ .cluster span {
1618
+ color: ${s.titleColor};
1619
+ }
1620
+ /* .cluster div {
1621
+ color: ${s.titleColor};
1622
+ } */
1623
+
1624
+ /* Collapsed subgraph node (@{ view: collapsed }) */
1625
+ .node .collapsed-indicator {
1626
+ fill: ${s.clusterBorder};
1627
+ stroke: none;
1628
+ opacity: 0.6;
1629
+ }
1630
+
1631
+ .node .collapsed-separator {
1632
+ stroke: ${s.clusterBorder};
1633
+ stroke-width: 0.75px;
1634
+ }
1635
+
1636
+ div.mermaidTooltip {
1637
+ position: absolute;
1638
+ text-align: center;
1639
+ max-width: 200px;
1640
+ padding: 2px;
1641
+ font-family: ${s.fontFamily};
1642
+ font-size: 12px;
1643
+ background: ${s.tertiaryColor};
1644
+ border: 1px solid ${s.border2};
1645
+ border-radius: 2px;
1646
+ pointer-events: none;
1647
+ z-index: 100;
1648
+ }
1649
+
1650
+ .flowchartTitleText {
1651
+ text-anchor: middle;
1652
+ font-size: 18px;
1653
+ fill: ${s.textColor};
1654
+ }
1655
+
1656
+ rect.text {
1657
+ fill: none;
1658
+ stroke-width: 0;
1659
+ }
1660
+
1661
+ .icon-shape, .image-shape {
1662
+ background-color: ${s.edgeLabelBackground};
1663
+ p {
1664
+ background-color: ${s.edgeLabelBackground};
1665
+ padding: 2px;
1666
+ }
1667
+ .label rect {
1668
+ opacity: 0.5;
1669
+ background-color: ${s.edgeLabelBackground};
1670
+ fill: ${s.edgeLabelBackground};
1671
+ }
1672
+ text-align: center;
1673
+ }
1674
+ ${H1()}
1675
+ `, "getStyles"), yt = Dt, xt = /* @__PURE__ */ k(({
1676
+ defaultLayout: s,
1677
+ styles: i = yt
1678
+ } = {}) => ({
1679
+ parser: Tt,
1680
+ get db() {
1681
+ return new At();
1682
+ },
1683
+ renderer: Ct,
1684
+ styles: i,
1685
+ init: /* @__PURE__ */ k((r) => {
1686
+ r.flowchart || (r.flowchart = {});
1687
+ const a = J1().layout ?? s ?? r.layout;
1688
+ a && M1({ layout: a }), r.flowchart.arrowMarkerAbsolute = r.arrowMarkerAbsolute, M1({ flowchart: { arrowMarkerAbsolute: r.arrowMarkerAbsolute } });
1689
+ }, "init")
1690
+ }), "createFlowDiagram"), Vt = xt();
1691
+ export {
1692
+ xt as c,
1693
+ Vt as d,
1694
+ yt as s
1695
+ };