@aidapt/caity-chat 3.0.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 (62) hide show
  1. package/README.md +73 -0
  2. package/dist/lib/_baseUniq-BVCT-t6P.js +477 -0
  3. package/dist/lib/arc-Kj6ZmwPS.js +83 -0
  4. package/dist/lib/architectureDiagram-Q4EWVU46-DA4kYaz_.js +4690 -0
  5. package/dist/lib/blockDiagram-DXYQGD6D-BWT5yya1.js +2295 -0
  6. package/dist/lib/c4Diagram-AHTNJAMY-BjY6DW3U.js +1577 -0
  7. package/dist/lib/caity-chat.tgz +0 -0
  8. package/dist/lib/channel-BjraetTo.js +5 -0
  9. package/dist/lib/chunk-4BX2VUAB-iSPZGgxQ.js +8 -0
  10. package/dist/lib/chunk-4TB4RGXK-DvnUcLoe.js +1465 -0
  11. package/dist/lib/chunk-55IACEB6-Mw25YX9j.js +8 -0
  12. package/dist/lib/chunk-EDXVE4YY-Dtbxz7df.js +19 -0
  13. package/dist/lib/chunk-FMBD7UC4-OCIy3top.js +19 -0
  14. package/dist/lib/chunk-OYMX7WX6-DFW9El2C.js +1383 -0
  15. package/dist/lib/chunk-QZHKN3VN-BYFTfk7k.js +15 -0
  16. package/dist/lib/chunk-YZCP3GAM-Cs-HTcyJ.js +68 -0
  17. package/dist/lib/classDiagram-6PBFFD2Q-CrDUlIYr.js +16 -0
  18. package/dist/lib/classDiagram-v2-HSJHXN6E-CrDUlIYr.js +16 -0
  19. package/dist/lib/clone-C0qEGPCz.js +8 -0
  20. package/dist/lib/cose-bilkent-S5V4N54A-H1-YbKvI.js +2609 -0
  21. package/dist/lib/cytoscape.esm-D_3MZVO6.js +18707 -0
  22. package/dist/lib/dagre-KV5264BT-DhEnTJ4D.js +443 -0
  23. package/dist/lib/defaultLocale-BgPVtth8.js +171 -0
  24. package/dist/lib/diagram-5BDNPKRD-CK6wgKxI.js +123 -0
  25. package/dist/lib/diagram-G4DWMVQ6-IhA_MJ0t.js +528 -0
  26. package/dist/lib/diagram-MMDJMWI5-DDuA1rYY.js +217 -0
  27. package/dist/lib/diagram-TYMM5635-_VI1en0S.js +142 -0
  28. package/dist/lib/erDiagram-SMLLAGMA-B1REwW7y.js +899 -0
  29. package/dist/lib/flowDiagram-DWJPFMVM-rWzOGDlg.js +1628 -0
  30. package/dist/lib/ganttDiagram-T4ZO3ILL-UhSvbAmM.js +2701 -0
  31. package/dist/lib/gitGraphDiagram-UUTBAWPF-DrsSMMoJ.js +815 -0
  32. package/dist/lib/graph-DMr8NrNW.js +738 -0
  33. package/dist/lib/index.d.ts +665 -0
  34. package/dist/lib/index.js +52 -0
  35. package/dist/lib/infoDiagram-42DDH7IO-CPF3XCNj.js +24 -0
  36. package/dist/lib/init-DjUOC4st.js +16 -0
  37. package/dist/lib/ishikawaDiagram-UXIWVN3A-B4Nt1TdW.js +621 -0
  38. package/dist/lib/journeyDiagram-VCZTEJTY-DW5yRsOM.js +834 -0
  39. package/dist/lib/kanban-definition-6JOO6SKY-5DmJRubo.js +724 -0
  40. package/dist/lib/layout-B00IQLgh.js +1441 -0
  41. package/dist/lib/linear-LLab47WO.js +259 -0
  42. package/dist/lib/main-C9dvh9CT.js +88771 -0
  43. package/dist/lib/mermaid.core-BrBkhL9h.js +15967 -0
  44. package/dist/lib/min-CJFyJhXg.js +38 -0
  45. package/dist/lib/mindmap-definition-QFDTVHPH-doqZCFNi.js +833 -0
  46. package/dist/lib/ordinal-B6-f3MAq.js +61 -0
  47. package/dist/lib/pieDiagram-DEJITSTG-DKi5GKup.js +163 -0
  48. package/dist/lib/quadrantDiagram-34T5L4WZ-COYWmEhy.js +1022 -0
  49. package/dist/lib/requirementDiagram-MS252O5E-D3odK6YH.js +882 -0
  50. package/dist/lib/sankeyDiagram-XADWPNL6-D36eaMCx.js +810 -0
  51. package/dist/lib/sequenceDiagram-FGHM5R23-NpESTwMk.js +2883 -0
  52. package/dist/lib/standalone.js +4 -0
  53. package/dist/lib/stateDiagram-FHFEXIEX-kXZ_Bn-a.js +263 -0
  54. package/dist/lib/stateDiagram-v2-QKLJ7IA2-B5xMdEuE.js +16 -0
  55. package/dist/lib/timeline-definition-GMOUNBTQ-DZDdcJwy.js +1055 -0
  56. package/dist/lib/vennDiagram-DHZGUBPP-Clhb6EGF.js +1557 -0
  57. package/dist/lib/wardley-RL74JXVD-CwSnyVu7.js +18396 -0
  58. package/dist/lib/wardleyDiagram-NUSXRM2D-DnXL4F04.js +594 -0
  59. package/dist/lib/xychartDiagram-5P7HB3ND-CweIkrg3.js +1342 -0
  60. package/package.json +95 -0
  61. package/src/types/caity-chat.d.ts +213 -0
  62. package/src/types/template-slots.d.ts +167 -0
@@ -0,0 +1,1465 @@
1
+ import { g as et } from "./chunk-FMBD7UC4-OCIy3top.js";
2
+ import { c as tt } from "./chunk-YZCP3GAM-Cs-HTcyJ.js";
3
+ import { g as st } from "./chunk-55IACEB6-Mw25YX9j.js";
4
+ import { s as it } from "./chunk-EDXVE4YY-Dtbxz7df.js";
5
+ import { _ as A, l as Oe, c as F, o as at, r as rt, u as we, d as pe, y as nt, b as ut, a as lt, s as ot, g as ct, p as ht, q as dt, k as v, z as pt, x as At, i as ft, Q as G } from "./mermaid.core-BrBkhL9h.js";
6
+ var Ve = (function() {
7
+ var s = /* @__PURE__ */ A(function(I, o, c, p) {
8
+ for (c = c || {}, p = I.length; p--; c[I[p]] = o) ;
9
+ return c;
10
+ }, "o"), i = [1, 18], a = [1, 19], u = [1, 20], l = [1, 41], r = [1, 26], h = [1, 42], f = [1, 24], E = [1, 25], T = [1, 32], O = [1, 33], fe = [1, 34], m = [1, 45], ge = [1, 35], me = [1, 36], Ce = [1, 37], be = [1, 38], ke = [1, 27], Ee = [1, 28], Te = [1, 29], ye = [1, 30], De = [1, 31], C = [1, 44], b = [1, 46], k = [1, 43], y = [1, 47], Fe = [1, 9], d = [1, 8, 9], ee = [1, 58], te = [1, 59], se = [1, 60], ie = [1, 61], ae = [1, 62], Be = [1, 63], _e = [1, 64], N = [1, 8, 9, 41], Me = [1, 77], P = [1, 8, 9, 12, 13, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], re = [1, 8, 9, 12, 13, 18, 20, 22, 39, 41, 44, 46, 47, 60, 68, 69, 70, 71, 72, 73, 74, 79, 81, 86, 100, 102, 103], ne = [13, 60, 86, 100, 102, 103], Y = [13, 60, 73, 74, 86, 100, 102, 103], Pe = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], ue = [1, 102], K = [1, 120], W = [1, 116], Q = [1, 112], j = [1, 118], X = [1, 113], q = [1, 114], H = [1, 115], J = [1, 117], Z = [1, 119], Re = [22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Se = [1, 8, 9, 39, 41, 44, 46], le = [1, 8, 9, 22], Ge = [1, 150], Ue = [1, 8, 9, 61], L = [1, 8, 9, 22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Ne = {
11
+ trace: /* @__PURE__ */ A(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ symbols_: { error: 2, start: 3, mermaidDoc: 4, statements: 5, graphConfig: 6, CLASS_DIAGRAM: 7, NEWLINE: 8, EOF: 9, statement: 10, classLabel: 11, SQS: 12, STR: 13, SQE: 14, namespaceName: 15, alphaNumToken: 16, classLiteralName: 17, DOT: 18, className: 19, GENERICTYPE: 20, relationStatement: 21, LABEL: 22, namespaceStatement: 23, classStatement: 24, memberStatement: 25, annotationStatement: 26, clickStatement: 27, styleStatement: 28, cssClassStatement: 29, noteStatement: 30, classDefStatement: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, namespaceIdentifier: 38, STRUCT_START: 39, classStatements: 40, STRUCT_STOP: 41, NAMESPACE: 42, classIdentifier: 43, STYLE_SEPARATOR: 44, members: 45, ANNOTATION_START: 46, ANNOTATION_END: 47, CLASS: 48, emptyBody: 49, SPACE: 50, MEMBER: 51, SEPARATOR: 52, relation: 53, NOTE_FOR: 54, noteText: 55, NOTE: 56, CLASSDEF: 57, classList: 58, stylesOpt: 59, ALPHA: 60, COMMA: 61, direction_tb: 62, direction_bt: 63, direction_rl: 64, direction_lr: 65, relationType: 66, lineType: 67, AGGREGATION: 68, EXTENSION: 69, COMPOSITION: 70, DEPENDENCY: 71, LOLLIPOP: 72, LINE: 73, DOTTED_LINE: 74, CALLBACK: 75, LINK: 76, LINK_TARGET: 77, CLICK: 78, CALLBACK_NAME: 79, CALLBACK_ARGS: 80, HREF: 81, STYLE: 82, CSSCLASS: 83, style: 84, styleComponent: 85, NUM: 86, COLON: 87, UNIT: 88, BRKT: 89, PCT: 90, commentToken: 91, textToken: 92, graphCodeTokens: 93, textNoTagsToken: 94, TAGSTART: 95, TAGEND: 96, "==": 97, "--": 98, DEFAULT: 99, MINUS: 100, keywords: 101, UNICODE_TEXT: 102, BQUOTE_STR: 103, $accept: 0, $end: 1 },
15
+ terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 18: "DOT", 20: "GENERICTYPE", 22: "LABEL", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 39: "STRUCT_START", 41: "STRUCT_STOP", 42: "NAMESPACE", 44: "STYLE_SEPARATOR", 46: "ANNOTATION_START", 47: "ANNOTATION_END", 48: "CLASS", 50: "SPACE", 51: "MEMBER", 52: "SEPARATOR", 54: "NOTE_FOR", 56: "NOTE", 57: "CLASSDEF", 60: "ALPHA", 61: "COMMA", 62: "direction_tb", 63: "direction_bt", 64: "direction_rl", 65: "direction_lr", 68: "AGGREGATION", 69: "EXTENSION", 70: "COMPOSITION", 71: "DEPENDENCY", 72: "LOLLIPOP", 73: "LINE", 74: "DOTTED_LINE", 75: "CALLBACK", 76: "LINK", 77: "LINK_TARGET", 78: "CLICK", 79: "CALLBACK_NAME", 80: "CALLBACK_ARGS", 81: "HREF", 82: "STYLE", 83: "CSSCLASS", 86: "NUM", 87: "COLON", 88: "UNIT", 89: "BRKT", 90: "PCT", 93: "graphCodeTokens", 95: "TAGSTART", 96: "TAGEND", 97: "==", 98: "--", 99: "DEFAULT", 100: "MINUS", 101: "keywords", 102: "UNICODE_TEXT", 103: "BQUOTE_STR" },
16
+ productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 1], [15, 3], [15, 2], [19, 1], [19, 3], [19, 1], [19, 2], [19, 2], [19, 2], [10, 1], [10, 2], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [23, 4], [23, 5], [38, 2], [40, 1], [40, 2], [40, 3], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 3], [24, 6], [24, 4], [24, 7], [24, 6], [43, 2], [43, 3], [49, 0], [49, 2], [49, 2], [26, 4], [45, 1], [45, 2], [25, 1], [25, 2], [25, 1], [25, 1], [21, 3], [21, 4], [21, 4], [21, 5], [30, 3], [30, 2], [31, 3], [58, 1], [58, 3], [32, 1], [32, 1], [32, 1], [32, 1], [53, 3], [53, 2], [53, 2], [53, 1], [66, 1], [66, 1], [66, 1], [66, 1], [66, 1], [67, 1], [67, 1], [27, 3], [27, 4], [27, 3], [27, 4], [27, 4], [27, 5], [27, 3], [27, 4], [27, 4], [27, 5], [27, 4], [27, 5], [27, 5], [27, 6], [28, 3], [29, 3], [59, 1], [59, 3], [84, 1], [84, 2], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [91, 1], [91, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [94, 1], [94, 1], [94, 1], [94, 1], [16, 1], [16, 1], [16, 1], [16, 1], [17, 1], [55, 1]],
17
+ performAction: /* @__PURE__ */ A(function(o, c, p, n, g, e, $) {
18
+ var t = e.length - 1;
19
+ switch (g) {
20
+ case 8:
21
+ this.$ = e[t - 1];
22
+ break;
23
+ case 9:
24
+ case 10:
25
+ case 13:
26
+ case 15:
27
+ this.$ = e[t];
28
+ break;
29
+ case 11:
30
+ case 14:
31
+ this.$ = e[t - 2] + "." + e[t];
32
+ break;
33
+ case 12:
34
+ case 16:
35
+ this.$ = e[t - 1] + e[t];
36
+ break;
37
+ case 17:
38
+ case 18:
39
+ this.$ = e[t - 1] + "~" + e[t] + "~";
40
+ break;
41
+ case 19:
42
+ n.addRelation(e[t]);
43
+ break;
44
+ case 20:
45
+ e[t - 1].title = n.cleanupLabel(e[t]), n.addRelation(e[t - 1]);
46
+ break;
47
+ case 31:
48
+ this.$ = e[t].trim(), n.setAccTitle(this.$);
49
+ break;
50
+ case 32:
51
+ case 33:
52
+ this.$ = e[t].trim(), n.setAccDescription(this.$);
53
+ break;
54
+ case 34:
55
+ n.addClassesToNamespace(e[t - 3], e[t - 1][0], e[t - 1][1]);
56
+ break;
57
+ case 35:
58
+ n.addClassesToNamespace(e[t - 4], e[t - 1][0], e[t - 1][1]);
59
+ break;
60
+ case 36:
61
+ this.$ = e[t], n.addNamespace(e[t]);
62
+ break;
63
+ case 37:
64
+ this.$ = [[e[t]], []];
65
+ break;
66
+ case 38:
67
+ this.$ = [[e[t - 1]], []];
68
+ break;
69
+ case 39:
70
+ e[t][0].unshift(e[t - 2]), this.$ = e[t];
71
+ break;
72
+ case 40:
73
+ this.$ = [[], [e[t]]];
74
+ break;
75
+ case 41:
76
+ this.$ = [[], [e[t - 1]]];
77
+ break;
78
+ case 42:
79
+ e[t][1].unshift(e[t - 2]), this.$ = e[t];
80
+ break;
81
+ case 44:
82
+ n.setCssClass(e[t - 2], e[t]);
83
+ break;
84
+ case 45:
85
+ n.addMembers(e[t - 3], e[t - 1]);
86
+ break;
87
+ case 47:
88
+ n.setCssClass(e[t - 5], e[t - 3]), n.addMembers(e[t - 5], e[t - 1]);
89
+ break;
90
+ case 48:
91
+ n.addAnnotation(e[t - 3], e[t - 1]);
92
+ break;
93
+ case 49:
94
+ n.addAnnotation(e[t - 6], e[t - 4]), n.addMembers(e[t - 6], e[t - 1]);
95
+ break;
96
+ case 50:
97
+ n.addAnnotation(e[t - 5], e[t - 3]);
98
+ break;
99
+ case 51:
100
+ this.$ = e[t], n.addClass(e[t]);
101
+ break;
102
+ case 52:
103
+ this.$ = e[t - 1], n.addClass(e[t - 1]), n.setClassLabel(e[t - 1], e[t]);
104
+ break;
105
+ case 56:
106
+ n.addAnnotation(e[t], e[t - 2]);
107
+ break;
108
+ case 57:
109
+ case 70:
110
+ this.$ = [e[t]];
111
+ break;
112
+ case 58:
113
+ e[t].push(e[t - 1]), this.$ = e[t];
114
+ break;
115
+ case 59:
116
+ break;
117
+ case 60:
118
+ n.addMember(e[t - 1], n.cleanupLabel(e[t]));
119
+ break;
120
+ case 61:
121
+ break;
122
+ case 62:
123
+ break;
124
+ case 63:
125
+ this.$ = { id1: e[t - 2], id2: e[t], relation: e[t - 1], relationTitle1: "none", relationTitle2: "none" };
126
+ break;
127
+ case 64:
128
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 1], relationTitle1: e[t - 2], relationTitle2: "none" };
129
+ break;
130
+ case 65:
131
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 2], relationTitle1: "none", relationTitle2: e[t - 1] };
132
+ break;
133
+ case 66:
134
+ this.$ = { id1: e[t - 4], id2: e[t], relation: e[t - 2], relationTitle1: e[t - 3], relationTitle2: e[t - 1] };
135
+ break;
136
+ case 67:
137
+ this.$ = n.addNote(e[t], e[t - 1]);
138
+ break;
139
+ case 68:
140
+ this.$ = n.addNote(e[t]);
141
+ break;
142
+ case 69:
143
+ this.$ = e[t - 2], n.defineClass(e[t - 1], e[t]);
144
+ break;
145
+ case 71:
146
+ this.$ = e[t - 2].concat([e[t]]);
147
+ break;
148
+ case 72:
149
+ n.setDirection("TB");
150
+ break;
151
+ case 73:
152
+ n.setDirection("BT");
153
+ break;
154
+ case 74:
155
+ n.setDirection("RL");
156
+ break;
157
+ case 75:
158
+ n.setDirection("LR");
159
+ break;
160
+ case 76:
161
+ this.$ = { type1: e[t - 2], type2: e[t], lineType: e[t - 1] };
162
+ break;
163
+ case 77:
164
+ this.$ = { type1: "none", type2: e[t], lineType: e[t - 1] };
165
+ break;
166
+ case 78:
167
+ this.$ = { type1: e[t - 1], type2: "none", lineType: e[t] };
168
+ break;
169
+ case 79:
170
+ this.$ = { type1: "none", type2: "none", lineType: e[t] };
171
+ break;
172
+ case 80:
173
+ this.$ = n.relationType.AGGREGATION;
174
+ break;
175
+ case 81:
176
+ this.$ = n.relationType.EXTENSION;
177
+ break;
178
+ case 82:
179
+ this.$ = n.relationType.COMPOSITION;
180
+ break;
181
+ case 83:
182
+ this.$ = n.relationType.DEPENDENCY;
183
+ break;
184
+ case 84:
185
+ this.$ = n.relationType.LOLLIPOP;
186
+ break;
187
+ case 85:
188
+ this.$ = n.lineType.LINE;
189
+ break;
190
+ case 86:
191
+ this.$ = n.lineType.DOTTED_LINE;
192
+ break;
193
+ case 87:
194
+ case 93:
195
+ this.$ = e[t - 2], n.setClickEvent(e[t - 1], e[t]);
196
+ break;
197
+ case 88:
198
+ case 94:
199
+ this.$ = e[t - 3], n.setClickEvent(e[t - 2], e[t - 1]), n.setTooltip(e[t - 2], e[t]);
200
+ break;
201
+ case 89:
202
+ this.$ = e[t - 2], n.setLink(e[t - 1], e[t]);
203
+ break;
204
+ case 90:
205
+ this.$ = e[t - 3], n.setLink(e[t - 2], e[t - 1], e[t]);
206
+ break;
207
+ case 91:
208
+ this.$ = e[t - 3], n.setLink(e[t - 2], e[t - 1]), n.setTooltip(e[t - 2], e[t]);
209
+ break;
210
+ case 92:
211
+ this.$ = e[t - 4], n.setLink(e[t - 3], e[t - 2], e[t]), n.setTooltip(e[t - 3], e[t - 1]);
212
+ break;
213
+ case 95:
214
+ this.$ = e[t - 3], n.setClickEvent(e[t - 2], e[t - 1], e[t]);
215
+ break;
216
+ case 96:
217
+ this.$ = e[t - 4], n.setClickEvent(e[t - 3], e[t - 2], e[t - 1]), n.setTooltip(e[t - 3], e[t]);
218
+ break;
219
+ case 97:
220
+ this.$ = e[t - 3], n.setLink(e[t - 2], e[t]);
221
+ break;
222
+ case 98:
223
+ this.$ = e[t - 4], n.setLink(e[t - 3], e[t - 1], e[t]);
224
+ break;
225
+ case 99:
226
+ this.$ = e[t - 4], n.setLink(e[t - 3], e[t - 1]), n.setTooltip(e[t - 3], e[t]);
227
+ break;
228
+ case 100:
229
+ this.$ = e[t - 5], n.setLink(e[t - 4], e[t - 2], e[t]), n.setTooltip(e[t - 4], e[t - 1]);
230
+ break;
231
+ case 101:
232
+ this.$ = e[t - 2], n.setCssStyle(e[t - 1], e[t]);
233
+ break;
234
+ case 102:
235
+ n.setCssClass(e[t - 1], e[t]);
236
+ break;
237
+ case 103:
238
+ this.$ = [e[t]];
239
+ break;
240
+ case 104:
241
+ e[t - 2].push(e[t]), this.$ = e[t - 2];
242
+ break;
243
+ case 106:
244
+ this.$ = e[t - 1] + e[t];
245
+ break;
246
+ }
247
+ }, "anonymous"),
248
+ table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 48: h, 51: f, 52: E, 54: T, 56: O, 57: fe, 60: m, 62: ge, 63: me, 64: Ce, 65: be, 75: ke, 76: Ee, 78: Te, 82: ye, 83: De, 86: C, 100: b, 102: k, 103: y }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(Fe, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(d, [2, 19], { 22: [1, 50] }), s(d, [2, 21]), s(d, [2, 22]), s(d, [2, 23]), s(d, [2, 24]), s(d, [2, 25]), s(d, [2, 26]), s(d, [2, 27]), s(d, [2, 28]), s(d, [2, 29]), s(d, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, s(d, [2, 33]), s(d, [2, 59], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: ee, 69: te, 70: se, 71: ie, 72: ae, 73: Be, 74: _e }), { 39: [1, 65] }, s(N, [2, 43], { 39: [1, 67], 44: [1, 66], 46: [1, 68] }), s(d, [2, 61]), s(d, [2, 62]), { 16: 69, 60: m, 86: C, 100: b, 102: k }, { 16: 39, 17: 40, 19: 70, 60: m, 86: C, 100: b, 102: k, 103: y }, { 16: 39, 17: 40, 19: 71, 60: m, 86: C, 100: b, 102: k, 103: y }, { 16: 39, 17: 40, 19: 72, 60: m, 86: C, 100: b, 102: k, 103: y }, { 60: [1, 73] }, { 13: [1, 74] }, { 16: 39, 17: 40, 19: 75, 60: m, 86: C, 100: b, 102: k, 103: y }, { 13: Me, 55: 76 }, { 58: 78, 60: [1, 79] }, s(d, [2, 72]), s(d, [2, 73]), s(d, [2, 74]), s(d, [2, 75]), s(P, [2, 13], { 16: 39, 17: 40, 19: 81, 18: [1, 80], 20: [1, 82], 60: m, 86: C, 100: b, 102: k, 103: y }), s(P, [2, 15], { 20: [1, 83] }), { 15: 84, 16: 85, 17: 86, 60: m, 86: C, 100: b, 102: k, 103: y }, { 16: 39, 17: 40, 19: 87, 60: m, 86: C, 100: b, 102: k, 103: y }, s(re, [2, 129]), s(re, [2, 130]), s(re, [2, 131]), s(re, [2, 132]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 133]), s(Fe, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 19: 21, 38: 22, 43: 23, 16: 39, 17: 40, 5: 88, 33: i, 35: a, 37: u, 42: l, 46: r, 48: h, 51: f, 52: E, 54: T, 56: O, 57: fe, 60: m, 62: ge, 63: me, 64: Ce, 65: be, 75: ke, 76: Ee, 78: Te, 82: ye, 83: De, 86: C, 100: b, 102: k, 103: y }), { 5: 89, 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 48: h, 51: f, 52: E, 54: T, 56: O, 57: fe, 60: m, 62: ge, 63: me, 64: Ce, 65: be, 75: ke, 76: Ee, 78: Te, 82: ye, 83: De, 86: C, 100: b, 102: k, 103: y }, s(d, [2, 20]), s(d, [2, 31]), s(d, [2, 32]), { 13: [1, 91], 16: 39, 17: 40, 19: 90, 60: m, 86: C, 100: b, 102: k, 103: y }, { 53: 92, 66: 56, 67: 57, 68: ee, 69: te, 70: se, 71: ie, 72: ae, 73: Be, 74: _e }, s(d, [2, 60]), { 67: 93, 73: Be, 74: _e }, s(ne, [2, 79], { 66: 94, 68: ee, 69: te, 70: se, 71: ie, 72: ae }), s(Y, [2, 80]), s(Y, [2, 81]), s(Y, [2, 82]), s(Y, [2, 83]), s(Y, [2, 84]), s(Pe, [2, 85]), s(Pe, [2, 86]), { 8: [1, 96], 24: 97, 30: 98, 40: 95, 43: 23, 48: h, 54: T, 56: O }, { 16: 99, 60: m, 86: C, 100: b, 102: k }, { 41: [1, 101], 45: 100, 51: ue }, { 16: 103, 60: m, 86: C, 100: b, 102: k }, { 47: [1, 104] }, { 13: [1, 105] }, { 13: [1, 106] }, { 79: [1, 107], 81: [1, 108] }, { 22: K, 50: W, 59: 109, 60: Q, 82: j, 84: 110, 85: 111, 86: X, 87: q, 88: H, 89: J, 90: Z }, { 60: [1, 121] }, { 13: Me, 55: 122 }, s(N, [2, 68]), s(N, [2, 134]), { 22: K, 50: W, 59: 123, 60: Q, 61: [1, 124], 82: j, 84: 110, 85: 111, 86: X, 87: q, 88: H, 89: J, 90: Z }, s(Re, [2, 70]), { 16: 39, 17: 40, 19: 125, 60: m, 86: C, 100: b, 102: k, 103: y }, s(P, [2, 16]), s(P, [2, 17]), s(P, [2, 18]), { 39: [2, 36] }, { 15: 127, 16: 85, 17: 86, 18: [1, 126], 39: [2, 9], 60: m, 86: C, 100: b, 102: k, 103: y }, { 39: [2, 10] }, s(Se, [2, 51], { 11: 128, 12: [1, 129] }), s(Fe, [2, 7]), { 9: [1, 130] }, s(le, [2, 63]), { 16: 39, 17: 40, 19: 131, 60: m, 86: C, 100: b, 102: k, 103: y }, { 13: [1, 133], 16: 39, 17: 40, 19: 132, 60: m, 86: C, 100: b, 102: k, 103: y }, s(ne, [2, 78], { 66: 134, 68: ee, 69: te, 70: se, 71: ie, 72: ae }), s(ne, [2, 77]), { 41: [1, 135] }, { 24: 97, 30: 98, 40: 136, 43: 23, 48: h, 54: T, 56: O }, { 8: [1, 137], 41: [2, 37] }, { 8: [1, 138], 41: [2, 40] }, s(N, [2, 44], { 39: [1, 139] }), { 41: [1, 140] }, s(N, [2, 46]), { 41: [2, 57], 45: 141, 51: ue }, { 47: [1, 142] }, { 16: 39, 17: 40, 19: 143, 60: m, 86: C, 100: b, 102: k, 103: y }, s(d, [2, 87], { 13: [1, 144] }), s(d, [2, 89], { 13: [1, 146], 77: [1, 145] }), s(d, [2, 93], { 13: [1, 147], 80: [1, 148] }), { 13: [1, 149] }, s(d, [2, 101], { 61: Ge }), s(Ue, [2, 103], { 85: 151, 22: K, 50: W, 60: Q, 82: j, 86: X, 87: q, 88: H, 89: J, 90: Z }), s(L, [2, 105]), s(L, [2, 107]), s(L, [2, 108]), s(L, [2, 109]), s(L, [2, 110]), s(L, [2, 111]), s(L, [2, 112]), s(L, [2, 113]), s(L, [2, 114]), s(L, [2, 115]), s(d, [2, 102]), s(N, [2, 67]), s(d, [2, 69], { 61: Ge }), { 60: [1, 152] }, s(P, [2, 14]), { 15: 153, 16: 85, 17: 86, 60: m, 86: C, 100: b, 102: k, 103: y }, { 39: [2, 12] }, s(Se, [2, 52]), { 13: [1, 154] }, { 1: [2, 4] }, s(le, [2, 65]), s(le, [2, 64]), { 16: 39, 17: 40, 19: 155, 60: m, 86: C, 100: b, 102: k, 103: y }, s(ne, [2, 76]), s(d, [2, 34]), { 41: [1, 156] }, { 24: 97, 30: 98, 40: 157, 41: [2, 38], 43: 23, 48: h, 54: T, 56: O }, { 24: 97, 30: 98, 40: 158, 41: [2, 41], 43: 23, 48: h, 54: T, 56: O }, { 45: 159, 51: ue }, s(N, [2, 45]), { 41: [2, 58] }, s(N, [2, 48], { 39: [1, 160] }), s(d, [2, 56]), s(d, [2, 88]), s(d, [2, 90]), s(d, [2, 91], { 77: [1, 161] }), s(d, [2, 94]), s(d, [2, 95], { 13: [1, 162] }), s(d, [2, 97], { 13: [1, 164], 77: [1, 163] }), { 22: K, 50: W, 60: Q, 82: j, 84: 165, 85: 111, 86: X, 87: q, 88: H, 89: J, 90: Z }, s(L, [2, 106]), s(Re, [2, 71]), { 39: [2, 11] }, { 14: [1, 166] }, s(le, [2, 66]), s(d, [2, 35]), { 41: [2, 39] }, { 41: [2, 42] }, { 41: [1, 167] }, { 41: [1, 169], 45: 168, 51: ue }, s(d, [2, 92]), s(d, [2, 96]), s(d, [2, 98]), s(d, [2, 99], { 77: [1, 170] }), s(Ue, [2, 104], { 85: 151, 22: K, 50: W, 60: Q, 82: j, 86: X, 87: q, 88: H, 89: J, 90: Z }), s(Se, [2, 8]), s(N, [2, 47]), { 41: [1, 171] }, s(N, [2, 50]), s(d, [2, 100]), s(N, [2, 49])],
249
+ defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 84: [2, 36], 86: [2, 10], 127: [2, 12], 130: [2, 4], 141: [2, 58], 153: [2, 11], 157: [2, 39], 158: [2, 42] },
250
+ parseError: /* @__PURE__ */ A(function(o, c) {
251
+ if (c.recoverable)
252
+ this.trace(o);
253
+ else {
254
+ var p = new Error(o);
255
+ throw p.hash = c, p;
256
+ }
257
+ }, "parseError"),
258
+ parse: /* @__PURE__ */ A(function(o) {
259
+ var c = this, p = [0], n = [], g = [null], e = [], $ = this.table, t = "", ce = 0, ze = 0, He = 2, Ye = 1, Je = e.slice.call(arguments, 1), D = Object.create(this.lexer), w = { yy: {} };
260
+ for (var Le in this.yy)
261
+ Object.prototype.hasOwnProperty.call(this.yy, Le) && (w.yy[Le] = this.yy[Le]);
262
+ D.setInput(o, w.yy), w.yy.lexer = D, w.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
263
+ var xe = D.yylloc;
264
+ e.push(xe);
265
+ var Ze = D.options && D.options.ranges;
266
+ typeof w.yy.parseError == "function" ? this.parseError = w.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
267
+ function $e(_) {
268
+ p.length = p.length - 2 * _, g.length = g.length - _, e.length = e.length - _;
269
+ }
270
+ A($e, "popStack");
271
+ function Ke() {
272
+ var _;
273
+ return _ = n.pop() || D.lex() || Ye, typeof _ != "number" && (_ instanceof Array && (n = _, _ = n.pop()), _ = c.symbols_[_] || _), _;
274
+ }
275
+ A(Ke, "lex");
276
+ for (var B, V, S, ve, R = {}, he, x, We, de; ; ) {
277
+ if (V = p[p.length - 1], this.defaultActions[V] ? S = this.defaultActions[V] : ((B === null || typeof B > "u") && (B = Ke()), S = $[V] && $[V][B]), typeof S > "u" || !S.length || !S[0]) {
278
+ var Ie = "";
279
+ de = [];
280
+ for (he in $[V])
281
+ this.terminals_[he] && he > He && de.push("'" + this.terminals_[he] + "'");
282
+ D.showPosition ? Ie = "Parse error on line " + (ce + 1) + `:
283
+ ` + D.showPosition() + `
284
+ Expecting ` + de.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Ie = "Parse error on line " + (ce + 1) + ": Unexpected " + (B == Ye ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Ie, {
285
+ text: D.match,
286
+ token: this.terminals_[B] || B,
287
+ line: D.yylineno,
288
+ loc: xe,
289
+ expected: de
290
+ });
291
+ }
292
+ if (S[0] instanceof Array && S.length > 1)
293
+ throw new Error("Parse Error: multiple actions possible at state: " + V + ", token: " + B);
294
+ switch (S[0]) {
295
+ case 1:
296
+ p.push(B), g.push(D.yytext), e.push(D.yylloc), p.push(S[1]), B = null, ze = D.yyleng, t = D.yytext, ce = D.yylineno, xe = D.yylloc;
297
+ break;
298
+ case 2:
299
+ if (x = this.productions_[S[1]][1], R.$ = g[g.length - x], R._$ = {
300
+ first_line: e[e.length - (x || 1)].first_line,
301
+ last_line: e[e.length - 1].last_line,
302
+ first_column: e[e.length - (x || 1)].first_column,
303
+ last_column: e[e.length - 1].last_column
304
+ }, Ze && (R._$.range = [
305
+ e[e.length - (x || 1)].range[0],
306
+ e[e.length - 1].range[1]
307
+ ]), ve = this.performAction.apply(R, [
308
+ t,
309
+ ze,
310
+ ce,
311
+ w.yy,
312
+ S[1],
313
+ g,
314
+ e
315
+ ].concat(Je)), typeof ve < "u")
316
+ return ve;
317
+ x && (p = p.slice(0, -1 * x * 2), g = g.slice(0, -1 * x), e = e.slice(0, -1 * x)), p.push(this.productions_[S[1]][0]), g.push(R.$), e.push(R._$), We = $[p[p.length - 2]][p[p.length - 1]], p.push(We);
318
+ break;
319
+ case 3:
320
+ return !0;
321
+ }
322
+ }
323
+ return !0;
324
+ }, "parse")
325
+ }, qe = /* @__PURE__ */ (function() {
326
+ var I = {
327
+ EOF: 1,
328
+ parseError: /* @__PURE__ */ A(function(c, p) {
329
+ if (this.yy.parser)
330
+ this.yy.parser.parseError(c, p);
331
+ else
332
+ throw new Error(c);
333
+ }, "parseError"),
334
+ // resets the lexer, sets new input
335
+ setInput: /* @__PURE__ */ A(function(o, c) {
336
+ return this.yy = c || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
337
+ first_line: 1,
338
+ first_column: 0,
339
+ last_line: 1,
340
+ last_column: 0
341
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
342
+ }, "setInput"),
343
+ // consumes and returns one char from the input
344
+ input: /* @__PURE__ */ A(function() {
345
+ var o = this._input[0];
346
+ this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
347
+ var c = o.match(/(?:\r\n?|\n).*/g);
348
+ return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
349
+ }, "input"),
350
+ // unshifts one char (or a string) into the input
351
+ unput: /* @__PURE__ */ A(function(o) {
352
+ var c = o.length, p = o.split(/(?:\r\n?|\n)/g);
353
+ this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
354
+ var n = this.match.split(/(?:\r\n?|\n)/g);
355
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
356
+ var g = this.yylloc.range;
357
+ return this.yylloc = {
358
+ first_line: this.yylloc.first_line,
359
+ last_line: this.yylineno + 1,
360
+ first_column: this.yylloc.first_column,
361
+ last_column: p ? (p.length === n.length ? this.yylloc.first_column : 0) + n[n.length - p.length].length - p[0].length : this.yylloc.first_column - c
362
+ }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
363
+ }, "unput"),
364
+ // When called from action, caches matched text and appends it on next action
365
+ more: /* @__PURE__ */ A(function() {
366
+ return this._more = !0, this;
367
+ }, "more"),
368
+ // 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.
369
+ reject: /* @__PURE__ */ A(function() {
370
+ if (this.options.backtrack_lexer)
371
+ this._backtrack = !0;
372
+ else
373
+ 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).
374
+ ` + this.showPosition(), {
375
+ text: "",
376
+ token: null,
377
+ line: this.yylineno
378
+ });
379
+ return this;
380
+ }, "reject"),
381
+ // retain first n characters of the match
382
+ less: /* @__PURE__ */ A(function(o) {
383
+ this.unput(this.match.slice(o));
384
+ }, "less"),
385
+ // displays already matched input, i.e. for error messages
386
+ pastInput: /* @__PURE__ */ A(function() {
387
+ var o = this.matched.substr(0, this.matched.length - this.match.length);
388
+ return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
389
+ }, "pastInput"),
390
+ // displays upcoming input, i.e. for error messages
391
+ upcomingInput: /* @__PURE__ */ A(function() {
392
+ var o = this.match;
393
+ return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
394
+ }, "upcomingInput"),
395
+ // displays the character position where the lexing error occurred, i.e. for error messages
396
+ showPosition: /* @__PURE__ */ A(function() {
397
+ var o = this.pastInput(), c = new Array(o.length + 1).join("-");
398
+ return o + this.upcomingInput() + `
399
+ ` + c + "^";
400
+ }, "showPosition"),
401
+ // test the lexed token: return FALSE when not a match, otherwise return token
402
+ test_match: /* @__PURE__ */ A(function(o, c) {
403
+ var p, n, g;
404
+ if (this.options.backtrack_lexer && (g = {
405
+ yylineno: this.yylineno,
406
+ yylloc: {
407
+ first_line: this.yylloc.first_line,
408
+ last_line: this.last_line,
409
+ first_column: this.yylloc.first_column,
410
+ last_column: this.yylloc.last_column
411
+ },
412
+ yytext: this.yytext,
413
+ match: this.match,
414
+ matches: this.matches,
415
+ matched: this.matched,
416
+ yyleng: this.yyleng,
417
+ offset: this.offset,
418
+ _more: this._more,
419
+ _input: this._input,
420
+ yy: this.yy,
421
+ conditionStack: this.conditionStack.slice(0),
422
+ done: this.done
423
+ }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), n = o[0].match(/(?:\r\n?|\n).*/g), n && (this.yylineno += n.length), this.yylloc = {
424
+ first_line: this.yylloc.last_line,
425
+ last_line: this.yylineno + 1,
426
+ first_column: this.yylloc.last_column,
427
+ last_column: n ? n[n.length - 1].length - n[n.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
428
+ }, this.yytext += o[0], this.match += o[0], this.matches = o, 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(o[0].length), this.matched += o[0], p = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
429
+ return p;
430
+ if (this._backtrack) {
431
+ for (var e in g)
432
+ this[e] = g[e];
433
+ return !1;
434
+ }
435
+ return !1;
436
+ }, "test_match"),
437
+ // return next match in input
438
+ next: /* @__PURE__ */ A(function() {
439
+ if (this.done)
440
+ return this.EOF;
441
+ this._input || (this.done = !0);
442
+ var o, c, p, n;
443
+ this._more || (this.yytext = "", this.match = "");
444
+ for (var g = this._currentRules(), e = 0; e < g.length; e++)
445
+ if (p = this._input.match(this.rules[g[e]]), p && (!c || p[0].length > c[0].length)) {
446
+ if (c = p, n = e, this.options.backtrack_lexer) {
447
+ if (o = this.test_match(p, g[e]), o !== !1)
448
+ return o;
449
+ if (this._backtrack) {
450
+ c = !1;
451
+ continue;
452
+ } else
453
+ return !1;
454
+ } else if (!this.options.flex)
455
+ break;
456
+ }
457
+ return c ? (o = this.test_match(c, g[n]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
458
+ ` + this.showPosition(), {
459
+ text: "",
460
+ token: null,
461
+ line: this.yylineno
462
+ });
463
+ }, "next"),
464
+ // return next match that has a token
465
+ lex: /* @__PURE__ */ A(function() {
466
+ var c = this.next();
467
+ return c || this.lex();
468
+ }, "lex"),
469
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
470
+ begin: /* @__PURE__ */ A(function(c) {
471
+ this.conditionStack.push(c);
472
+ }, "begin"),
473
+ // pop the previously active lexer condition state off the condition stack
474
+ popState: /* @__PURE__ */ A(function() {
475
+ var c = this.conditionStack.length - 1;
476
+ return c > 0 ? this.conditionStack.pop() : this.conditionStack[0];
477
+ }, "popState"),
478
+ // produce the lexer rule set which is active for the currently active lexer condition state
479
+ _currentRules: /* @__PURE__ */ A(function() {
480
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
481
+ }, "_currentRules"),
482
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
483
+ topState: /* @__PURE__ */ A(function(c) {
484
+ return c = this.conditionStack.length - 1 - Math.abs(c || 0), c >= 0 ? this.conditionStack[c] : "INITIAL";
485
+ }, "topState"),
486
+ // alias for begin(condition)
487
+ pushState: /* @__PURE__ */ A(function(c) {
488
+ this.begin(c);
489
+ }, "pushState"),
490
+ // return the number of states currently on the stack
491
+ stateStackSize: /* @__PURE__ */ A(function() {
492
+ return this.conditionStack.length;
493
+ }, "stateStackSize"),
494
+ options: {},
495
+ performAction: /* @__PURE__ */ A(function(c, p, n, g) {
496
+ switch (n) {
497
+ case 0:
498
+ return 62;
499
+ case 1:
500
+ return 63;
501
+ case 2:
502
+ return 64;
503
+ case 3:
504
+ return 65;
505
+ case 4:
506
+ break;
507
+ case 5:
508
+ break;
509
+ case 6:
510
+ return this.begin("acc_title"), 33;
511
+ case 7:
512
+ return this.popState(), "acc_title_value";
513
+ case 8:
514
+ return this.begin("acc_descr"), 35;
515
+ case 9:
516
+ return this.popState(), "acc_descr_value";
517
+ case 10:
518
+ this.begin("acc_descr_multiline");
519
+ break;
520
+ case 11:
521
+ this.popState();
522
+ break;
523
+ case 12:
524
+ return "acc_descr_multiline_value";
525
+ case 13:
526
+ return 8;
527
+ case 14:
528
+ break;
529
+ case 15:
530
+ return 7;
531
+ case 16:
532
+ return 7;
533
+ case 17:
534
+ return "EDGE_STATE";
535
+ case 18:
536
+ this.begin("callback_name");
537
+ break;
538
+ case 19:
539
+ this.popState();
540
+ break;
541
+ case 20:
542
+ this.popState(), this.begin("callback_args");
543
+ break;
544
+ case 21:
545
+ return 79;
546
+ case 22:
547
+ this.popState();
548
+ break;
549
+ case 23:
550
+ return 80;
551
+ case 24:
552
+ this.popState();
553
+ break;
554
+ case 25:
555
+ return "STR";
556
+ case 26:
557
+ this.begin("string");
558
+ break;
559
+ case 27:
560
+ return 82;
561
+ case 28:
562
+ return 57;
563
+ case 29:
564
+ return this.begin("namespace"), 42;
565
+ case 30:
566
+ return this.popState(), 8;
567
+ case 31:
568
+ break;
569
+ case 32:
570
+ return this.begin("namespace-body"), 39;
571
+ case 33:
572
+ return this.popState(), 41;
573
+ case 34:
574
+ return "EOF_IN_STRUCT";
575
+ case 35:
576
+ return 8;
577
+ case 36:
578
+ break;
579
+ case 37:
580
+ return "EDGE_STATE";
581
+ case 38:
582
+ return this.begin("class"), 48;
583
+ case 39:
584
+ return this.popState(), 8;
585
+ case 40:
586
+ break;
587
+ case 41:
588
+ return this.popState(), this.popState(), 41;
589
+ case 42:
590
+ return this.begin("class-body"), 39;
591
+ case 43:
592
+ return this.popState(), 41;
593
+ case 44:
594
+ return "EOF_IN_STRUCT";
595
+ case 45:
596
+ return "EDGE_STATE";
597
+ case 46:
598
+ return "OPEN_IN_STRUCT";
599
+ case 47:
600
+ break;
601
+ case 48:
602
+ return "MEMBER";
603
+ case 49:
604
+ return 83;
605
+ case 50:
606
+ return 75;
607
+ case 51:
608
+ return 76;
609
+ case 52:
610
+ return 78;
611
+ case 53:
612
+ return 54;
613
+ case 54:
614
+ return 56;
615
+ case 55:
616
+ return 46;
617
+ case 56:
618
+ return 47;
619
+ case 57:
620
+ return 81;
621
+ case 58:
622
+ this.popState();
623
+ break;
624
+ case 59:
625
+ return "GENERICTYPE";
626
+ case 60:
627
+ this.begin("generic");
628
+ break;
629
+ case 61:
630
+ this.popState();
631
+ break;
632
+ case 62:
633
+ return "BQUOTE_STR";
634
+ case 63:
635
+ this.begin("bqstring");
636
+ break;
637
+ case 64:
638
+ return 77;
639
+ case 65:
640
+ return 77;
641
+ case 66:
642
+ return 77;
643
+ case 67:
644
+ return 77;
645
+ case 68:
646
+ return 69;
647
+ case 69:
648
+ return 69;
649
+ case 70:
650
+ return 71;
651
+ case 71:
652
+ return 71;
653
+ case 72:
654
+ return 70;
655
+ case 73:
656
+ return 68;
657
+ case 74:
658
+ return 72;
659
+ case 75:
660
+ return 73;
661
+ case 76:
662
+ return 74;
663
+ case 77:
664
+ return 22;
665
+ case 78:
666
+ return 44;
667
+ case 79:
668
+ return 100;
669
+ case 80:
670
+ return 18;
671
+ case 81:
672
+ return "PLUS";
673
+ case 82:
674
+ return 87;
675
+ case 83:
676
+ return 61;
677
+ case 84:
678
+ return 89;
679
+ case 85:
680
+ return 89;
681
+ case 86:
682
+ return 90;
683
+ case 87:
684
+ return "EQUALS";
685
+ case 88:
686
+ return "EQUALS";
687
+ case 89:
688
+ return 60;
689
+ case 90:
690
+ return 12;
691
+ case 91:
692
+ return 14;
693
+ case 92:
694
+ return "PUNCTUATION";
695
+ case 93:
696
+ return 86;
697
+ case 94:
698
+ return 102;
699
+ case 95:
700
+ return 50;
701
+ case 96:
702
+ return 50;
703
+ case 97:
704
+ return 9;
705
+ }
706
+ }, "anonymous"),
707
+ rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:classDiagram-v2\b)/, /^(?:classDiagram\b)/, /^(?:\[\*\])/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:["])/, /^(?:[^"]*)/, /^(?:["])/, /^(?:style\b)/, /^(?:classDef\b)/, /^(?:namespace\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:\[\*\])/, /^(?:class\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[}])/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\[\*\])/, /^(?:[{])/, /^(?:[\n])/, /^(?:[^{}\n]*)/, /^(?:cssClass\b)/, /^(?:callback\b)/, /^(?:link\b)/, /^(?:click\b)/, /^(?:note for\b)/, /^(?:note\b)/, /^(?:<<)/, /^(?:>>)/, /^(?:href\b)/, /^(?:[~])/, /^(?:[^~]*)/, /^(?:~)/, /^(?:[`])/, /^(?:[^`]+)/, /^(?:[`])/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:\s*<\|)/, /^(?:\s*\|>)/, /^(?:\s*>)/, /^(?:\s*<)/, /^(?:\s*\*)/, /^(?:\s*o\b)/, /^(?:\s*\(\))/, /^(?:--)/, /^(?:\.\.)/, /^(?::{1}[^:\n;]+)/, /^(?::{3})/, /^(?:-)/, /^(?:\.)/, /^(?:\+)/, /^(?::)/, /^(?:,)/, /^(?:#)/, /^(?:#)/, /^(?:%)/, /^(?:=)/, /^(?:=)/, /^(?:\w+)/, /^(?:\[)/, /^(?:\])/, /^(?:[!"#$%&'*+,-.`?\\/])/, /^(?:[0-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])/, /^(?:\s)/, /^(?:\s)/, /^(?:$)/],
708
+ conditions: { "namespace-body": { rules: [26, 33, 34, 35, 36, 37, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, namespace: { rules: [26, 29, 30, 31, 32, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, "class-body": { rules: [26, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, class: { rules: [26, 39, 40, 41, 42, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr: { rules: [9, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_title: { rules: [7, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_args: { rules: [22, 23, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_name: { rules: [19, 20, 21, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, href: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, struct: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, generic: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, bqstring: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, string: { rules: [24, 25, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97], inclusive: !0 } }
709
+ };
710
+ return I;
711
+ })();
712
+ Ne.lexer = qe;
713
+ function oe() {
714
+ this.yy = {};
715
+ }
716
+ return A(oe, "Parser"), oe.prototype = Ne, Ne.Parser = oe, new oe();
717
+ })();
718
+ Ve.parser = Ve;
719
+ var Ft = Ve, Qe = ["#", "+", "~", "-", ""], U, je = (U = class {
720
+ constructor(i, a) {
721
+ this.memberType = a, this.visibility = "", this.classifier = "", this.text = "";
722
+ const u = ft(i, F());
723
+ this.parseMember(u);
724
+ }
725
+ getDisplayDetails() {
726
+ let i = this.visibility + G(this.id);
727
+ this.memberType === "method" && (i += `(${G(this.parameters.trim())})`, this.returnType && (i += " : " + G(this.returnType))), i = i.trim();
728
+ const a = this.parseClassifier();
729
+ return {
730
+ displayText: i,
731
+ cssStyle: a
732
+ };
733
+ }
734
+ parseMember(i) {
735
+ let a = "";
736
+ if (this.memberType === "method") {
737
+ const r = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);
738
+ if (r) {
739
+ const h = r[1] ? r[1].trim() : "";
740
+ if (Qe.includes(h) && (this.visibility = h), this.id = r[2], this.parameters = r[3] ? r[3].trim() : "", a = r[4] ? r[4].trim() : "", this.returnType = r[5] ? r[5].trim() : "", a === "") {
741
+ const f = this.returnType.substring(this.returnType.length - 1);
742
+ /[$*]/.exec(f) && (a = f, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
743
+ }
744
+ }
745
+ } else {
746
+ const l = i.length, r = i.substring(0, 1), h = i.substring(l - 1);
747
+ Qe.includes(r) && (this.visibility = r), /[$*]/.exec(h) && (a = h), this.id = i.substring(
748
+ this.visibility === "" ? 0 : 1,
749
+ a === "" ? l : l - 1
750
+ );
751
+ }
752
+ this.classifier = a, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
753
+ const u = `${this.visibility ? "\\" + this.visibility : ""}${G(this.id)}${this.memberType === "method" ? `(${G(this.parameters)})${this.returnType ? " : " + G(this.returnType) : ""}` : ""}`;
754
+ this.text = u.replaceAll("<", "&lt;").replaceAll(">", "&gt;"), this.text.startsWith("\\&lt;") && (this.text = this.text.replace("\\&lt;", "~"));
755
+ }
756
+ parseClassifier() {
757
+ switch (this.classifier) {
758
+ case "*":
759
+ return "font-style:italic;";
760
+ case "$":
761
+ return "text-decoration:underline;";
762
+ default:
763
+ return "";
764
+ }
765
+ }
766
+ }, A(U, "ClassMember"), U), Ae = "classId-", Xe = 0, M = /* @__PURE__ */ A((s) => v.sanitizeText(s, F()), "sanitizeText"), z, Bt = (z = class {
767
+ constructor() {
768
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.diagramId = "", this.functions = [], this.lineType = {
769
+ LINE: 0,
770
+ DOTTED_LINE: 1
771
+ }, this.relationType = {
772
+ AGGREGATION: 0,
773
+ EXTENSION: 1,
774
+ COMPOSITION: 2,
775
+ DEPENDENCY: 3,
776
+ LOLLIPOP: 4
777
+ }, this.setupToolTips = /* @__PURE__ */ A((i) => {
778
+ const a = tt();
779
+ pe(i).select("svg").selectAll("g").filter(function() {
780
+ return pe(this).attr("title") !== null;
781
+ }).on("mouseover", (r) => {
782
+ const h = pe(r.currentTarget), f = h.attr("title");
783
+ if (!f)
784
+ return;
785
+ const E = r.currentTarget.getBoundingClientRect();
786
+ a.transition().duration(200).style("opacity", ".9"), a.html(nt.sanitize(f)).style("left", `${window.scrollX + E.left + E.width / 2}px`).style("top", `${window.scrollY + E.bottom + 4}px`), h.classed("hover", !0);
787
+ }).on("mouseout", (r) => {
788
+ a.transition().duration(500).style("opacity", 0), pe(r.currentTarget).classed("hover", !1);
789
+ });
790
+ }, "setupToolTips"), this.direction = "TB", this.setAccTitle = ut, this.getAccTitle = lt, this.setAccDescription = ot, this.getAccDescription = ct, this.setDiagramTitle = ht, this.getDiagramTitle = dt, this.getConfig = /* @__PURE__ */ A(() => F().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
791
+ }
792
+ splitClassNameAndType(i) {
793
+ const a = v.sanitizeText(i, F());
794
+ let u = "", l = a;
795
+ if (a.indexOf("~") > 0) {
796
+ const r = a.split("~");
797
+ l = M(r[0]), u = M(r[1]);
798
+ }
799
+ return { className: l, type: u };
800
+ }
801
+ setClassLabel(i, a) {
802
+ const u = v.sanitizeText(i, F());
803
+ a && (a = M(a));
804
+ const { className: l } = this.splitClassNameAndType(u);
805
+ this.classes.get(l).label = a, this.classes.get(l).text = `${a}${this.classes.get(l).type ? `<${this.classes.get(l).type}>` : ""}`;
806
+ }
807
+ /**
808
+ * Function called by parser when a node definition has been found.
809
+ *
810
+ * @param id - ID of the class to add
811
+ * @public
812
+ */
813
+ addClass(i) {
814
+ const a = v.sanitizeText(i, F()), { className: u, type: l } = this.splitClassNameAndType(a);
815
+ if (this.classes.has(u))
816
+ return;
817
+ const r = v.sanitizeText(u, F());
818
+ this.classes.set(r, {
819
+ id: r,
820
+ type: l,
821
+ label: r,
822
+ text: `${r}${l ? `&lt;${l}&gt;` : ""}`,
823
+ shape: "classBox",
824
+ cssClasses: "default",
825
+ methods: [],
826
+ members: [],
827
+ annotations: [],
828
+ styles: [],
829
+ domId: Ae + r + "-" + Xe
830
+ }), Xe++;
831
+ }
832
+ addInterface(i, a) {
833
+ const u = {
834
+ id: `interface${this.interfaces.length}`,
835
+ label: i,
836
+ classId: a
837
+ };
838
+ this.interfaces.push(u);
839
+ }
840
+ /**
841
+ * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
842
+ * across multiple diagrams on the same page.
843
+ */
844
+ setDiagramId(i) {
845
+ this.diagramId = i;
846
+ }
847
+ /**
848
+ * Function to lookup domId from id in the graph definition.
849
+ * When diagramId is set, returns the prefixed version for DOM uniqueness.
850
+ *
851
+ * @param id - class ID to lookup
852
+ * @public
853
+ */
854
+ lookUpDomId(i) {
855
+ const a = v.sanitizeText(i, F());
856
+ if (this.classes.has(a)) {
857
+ const u = this.classes.get(a).domId;
858
+ return this.diagramId ? `${this.diagramId}-${u}` : u;
859
+ }
860
+ throw new Error("Class not found: " + a);
861
+ }
862
+ clear() {
863
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.diagramId = "", this.direction = "TB", pt();
864
+ }
865
+ getClass(i) {
866
+ return this.classes.get(i);
867
+ }
868
+ getClasses() {
869
+ return this.classes;
870
+ }
871
+ getRelations() {
872
+ return this.relations;
873
+ }
874
+ getNote(i) {
875
+ const a = typeof i == "number" ? `note${i}` : i;
876
+ return this.notes.get(a);
877
+ }
878
+ getNotes() {
879
+ return this.notes;
880
+ }
881
+ addRelation(i) {
882
+ Oe.debug("Adding relation: " + JSON.stringify(i));
883
+ const a = [
884
+ this.relationType.LOLLIPOP,
885
+ this.relationType.AGGREGATION,
886
+ this.relationType.COMPOSITION,
887
+ this.relationType.DEPENDENCY,
888
+ this.relationType.EXTENSION
889
+ ];
890
+ i.relation.type1 === this.relationType.LOLLIPOP && !a.includes(i.relation.type2) ? (this.addClass(i.id2), this.addInterface(i.id1, i.id2), i.id1 = `interface${this.interfaces.length - 1}`) : i.relation.type2 === this.relationType.LOLLIPOP && !a.includes(i.relation.type1) ? (this.addClass(i.id1), this.addInterface(i.id2, i.id1), i.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(i.id1), this.addClass(i.id2)), i.id1 = this.splitClassNameAndType(i.id1).className, i.id2 = this.splitClassNameAndType(i.id2).className, i.relationTitle1 = v.sanitizeText(
891
+ i.relationTitle1.trim(),
892
+ F()
893
+ ), i.relationTitle2 = v.sanitizeText(
894
+ i.relationTitle2.trim(),
895
+ F()
896
+ ), this.relations.push(i);
897
+ }
898
+ /**
899
+ * Adds an annotation to the specified class Annotations mark special properties of the given type
900
+ * (like 'interface' or 'service')
901
+ *
902
+ * @param className - The class name
903
+ * @param annotation - The name of the annotation without any brackets
904
+ * @public
905
+ */
906
+ addAnnotation(i, a) {
907
+ const u = this.splitClassNameAndType(i).className;
908
+ this.classes.get(u).annotations.push(a);
909
+ }
910
+ /**
911
+ * Adds a member to the specified class
912
+ *
913
+ * @param className - The class name
914
+ * @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is
915
+ * treated as an annotation If the member is ending with a closing bracket ) it is treated as a
916
+ * method Otherwise the member will be treated as a normal property
917
+ * @public
918
+ */
919
+ addMember(i, a) {
920
+ this.addClass(i);
921
+ const u = this.splitClassNameAndType(i).className, l = this.classes.get(u);
922
+ if (typeof a == "string") {
923
+ const r = a.trim();
924
+ r.startsWith("<<") && r.endsWith(">>") ? l.annotations.push(M(r.substring(2, r.length - 2))) : r.indexOf(")") > 0 ? l.methods.push(new je(r, "method")) : r && l.members.push(new je(r, "attribute"));
925
+ }
926
+ }
927
+ addMembers(i, a) {
928
+ Array.isArray(a) && (a.reverse(), a.forEach((u) => this.addMember(i, u)));
929
+ }
930
+ addNote(i, a) {
931
+ const u = this.notes.size, l = {
932
+ id: `note${u}`,
933
+ class: a,
934
+ text: i,
935
+ index: u
936
+ };
937
+ return this.notes.set(l.id, l), l.id;
938
+ }
939
+ cleanupLabel(i) {
940
+ return i.startsWith(":") && (i = i.substring(1)), M(i.trim());
941
+ }
942
+ /**
943
+ * Called by parser when assigning cssClass to a class
944
+ *
945
+ * @param ids - Comma separated list of ids
946
+ * @param className - Class to add
947
+ */
948
+ setCssClass(i, a) {
949
+ i.split(",").forEach((u) => {
950
+ let l = u;
951
+ /\d/.exec(u[0]) && (l = Ae + l);
952
+ const r = this.classes.get(l);
953
+ r && (r.cssClasses += " " + a);
954
+ });
955
+ }
956
+ defineClass(i, a) {
957
+ for (const u of i) {
958
+ let l = this.styleClasses.get(u);
959
+ l === void 0 && (l = { id: u, styles: [], textStyles: [] }, this.styleClasses.set(u, l)), a && a.forEach((r) => {
960
+ if (/color/.exec(r)) {
961
+ const h = r.replace("fill", "bgFill");
962
+ l.textStyles.push(h);
963
+ }
964
+ l.styles.push(r);
965
+ }), this.classes.forEach((r) => {
966
+ r.cssClasses.includes(u) && r.styles.push(...a.flatMap((h) => h.split(",")));
967
+ });
968
+ }
969
+ }
970
+ /**
971
+ * Called by parser when a tooltip is found, e.g. a clickable element.
972
+ *
973
+ * @param ids - Comma separated list of ids
974
+ * @param tooltip - Tooltip to add
975
+ */
976
+ setTooltip(i, a) {
977
+ i.split(",").forEach((u) => {
978
+ a !== void 0 && (this.classes.get(u).tooltip = M(a));
979
+ });
980
+ }
981
+ getTooltip(i, a) {
982
+ return a && this.namespaces.has(a) ? this.namespaces.get(a).classes.get(i).tooltip : this.classes.get(i).tooltip;
983
+ }
984
+ /**
985
+ * Called by parser when a link is found. Adds the URL to the vertex data.
986
+ *
987
+ * @param ids - Comma separated list of ids
988
+ * @param linkStr - URL to create a link for
989
+ * @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
990
+ */
991
+ setLink(i, a, u) {
992
+ const l = F();
993
+ i.split(",").forEach((r) => {
994
+ let h = r;
995
+ /\d/.exec(r[0]) && (h = Ae + h);
996
+ const f = this.classes.get(h);
997
+ f && (f.link = we.formatUrl(a, l), l.securityLevel === "sandbox" ? f.linkTarget = "_top" : typeof u == "string" ? f.linkTarget = M(u) : f.linkTarget = "_blank");
998
+ }), this.setCssClass(i, "clickable");
999
+ }
1000
+ /**
1001
+ * Called by parser when a click definition is found. Registers an event handler.
1002
+ *
1003
+ * @param ids - Comma separated list of ids
1004
+ * @param functionName - Function to be called on click
1005
+ * @param functionArgs - Function args the function should be called with
1006
+ */
1007
+ setClickEvent(i, a, u) {
1008
+ i.split(",").forEach((l) => {
1009
+ this.setClickFunc(l, a, u), this.classes.get(l).haveCallback = !0;
1010
+ }), this.setCssClass(i, "clickable");
1011
+ }
1012
+ setClickFunc(i, a, u) {
1013
+ const l = v.sanitizeText(i, F());
1014
+ if (F().securityLevel !== "loose" || a === void 0)
1015
+ return;
1016
+ const h = l;
1017
+ if (this.classes.has(h)) {
1018
+ let f = [];
1019
+ if (typeof u == "string") {
1020
+ f = u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1021
+ for (let E = 0; E < f.length; E++) {
1022
+ let T = f[E].trim();
1023
+ T.startsWith('"') && T.endsWith('"') && (T = T.substr(1, T.length - 2)), f[E] = T;
1024
+ }
1025
+ }
1026
+ f.length === 0 && f.push(h), this.functions.push(() => {
1027
+ const E = this.lookUpDomId(h), T = document.querySelector(`[id="${E}"]`);
1028
+ T !== null && T.addEventListener(
1029
+ "click",
1030
+ () => {
1031
+ we.runFunc(a, ...f);
1032
+ },
1033
+ !1
1034
+ );
1035
+ });
1036
+ }
1037
+ }
1038
+ bindFunctions(i) {
1039
+ this.functions.forEach((a) => {
1040
+ a(i);
1041
+ });
1042
+ }
1043
+ // Utility function to escape HTML meta-characters
1044
+ escapeHtml(i) {
1045
+ return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
1046
+ }
1047
+ getDirection() {
1048
+ return this.direction;
1049
+ }
1050
+ setDirection(i) {
1051
+ this.direction = i;
1052
+ }
1053
+ /**
1054
+ * Function called by parser when a namespace definition has been found.
1055
+ *
1056
+ * @param id - ID of the namespace to add
1057
+ * @public
1058
+ */
1059
+ addNamespace(i) {
1060
+ this.namespaces.has(i) || (this.namespaces.set(i, {
1061
+ id: i,
1062
+ classes: /* @__PURE__ */ new Map(),
1063
+ notes: /* @__PURE__ */ new Map(),
1064
+ children: /* @__PURE__ */ new Map(),
1065
+ domId: Ae + i + "-" + this.namespaceCounter
1066
+ }), this.namespaceCounter++);
1067
+ }
1068
+ getNamespace(i) {
1069
+ return this.namespaces.get(i);
1070
+ }
1071
+ getNamespaces() {
1072
+ return this.namespaces;
1073
+ }
1074
+ /**
1075
+ * Function called by parser when a namespace definition has been found.
1076
+ *
1077
+ * @param id - ID of the namespace to add
1078
+ * @param classNames - IDs of the class to add
1079
+ * @param noteNames - IDs of the notes to add
1080
+ * @public
1081
+ */
1082
+ addClassesToNamespace(i, a, u) {
1083
+ if (this.namespaces.has(i)) {
1084
+ for (const l of a) {
1085
+ const { className: r } = this.splitClassNameAndType(l), h = this.getClass(r);
1086
+ h.parent = i, this.namespaces.get(i).classes.set(r, h);
1087
+ }
1088
+ for (const l of u) {
1089
+ const r = this.getNote(l);
1090
+ r.parent = i, this.namespaces.get(i).notes.set(l, r);
1091
+ }
1092
+ }
1093
+ }
1094
+ setCssStyle(i, a) {
1095
+ const u = this.classes.get(i);
1096
+ if (!(!a || !u))
1097
+ for (const l of a)
1098
+ l.includes(",") ? u.styles.push(...l.split(",")) : u.styles.push(l);
1099
+ }
1100
+ /**
1101
+ * Gets the arrow marker for a type index
1102
+ *
1103
+ * @param type - The type to look for
1104
+ * @returns The arrow marker
1105
+ */
1106
+ getArrowMarker(i) {
1107
+ let a;
1108
+ switch (i) {
1109
+ case 0:
1110
+ a = "aggregation";
1111
+ break;
1112
+ case 1:
1113
+ a = "extension";
1114
+ break;
1115
+ case 2:
1116
+ a = "composition";
1117
+ break;
1118
+ case 3:
1119
+ a = "dependency";
1120
+ break;
1121
+ case 4:
1122
+ a = "lollipop";
1123
+ break;
1124
+ default:
1125
+ a = "none";
1126
+ }
1127
+ return a;
1128
+ }
1129
+ getData() {
1130
+ const i = [], a = [], u = F();
1131
+ for (const r of this.namespaces.values()) {
1132
+ const h = {
1133
+ id: r.id,
1134
+ label: r.id,
1135
+ isGroup: !0,
1136
+ padding: u.class.padding ?? 16,
1137
+ // parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
1138
+ shape: "rect",
1139
+ cssStyles: [],
1140
+ look: u.look
1141
+ };
1142
+ i.push(h);
1143
+ }
1144
+ for (const r of this.classes.values()) {
1145
+ const h = {
1146
+ ...r,
1147
+ type: void 0,
1148
+ isGroup: !1,
1149
+ parentId: r.parent,
1150
+ look: u.look
1151
+ };
1152
+ i.push(h);
1153
+ }
1154
+ for (const r of this.notes.values()) {
1155
+ const h = {
1156
+ id: r.id,
1157
+ label: r.text,
1158
+ isGroup: !1,
1159
+ shape: "note",
1160
+ padding: u.class.padding ?? 6,
1161
+ cssStyles: [
1162
+ "text-align: left",
1163
+ "white-space: nowrap",
1164
+ `fill: ${u.themeVariables.noteBkgColor}`,
1165
+ `stroke: ${u.themeVariables.noteBorderColor}`
1166
+ ],
1167
+ look: u.look,
1168
+ parentId: r.parent,
1169
+ labelType: "markdown"
1170
+ };
1171
+ i.push(h);
1172
+ const f = this.classes.get(r.class)?.id;
1173
+ if (f) {
1174
+ const E = {
1175
+ id: `edgeNote${r.index}`,
1176
+ start: r.id,
1177
+ end: f,
1178
+ type: "normal",
1179
+ thickness: "normal",
1180
+ classes: "relation",
1181
+ arrowTypeStart: "none",
1182
+ arrowTypeEnd: "none",
1183
+ arrowheadStyle: "",
1184
+ labelStyle: [""],
1185
+ style: ["fill: none"],
1186
+ pattern: "dotted",
1187
+ look: u.look
1188
+ };
1189
+ a.push(E);
1190
+ }
1191
+ }
1192
+ for (const r of this.interfaces) {
1193
+ const h = {
1194
+ id: r.id,
1195
+ label: r.label,
1196
+ isGroup: !1,
1197
+ shape: "rect",
1198
+ cssStyles: ["opacity: 0;"],
1199
+ look: u.look
1200
+ };
1201
+ i.push(h);
1202
+ }
1203
+ let l = 0;
1204
+ for (const r of this.relations) {
1205
+ l++;
1206
+ const h = {
1207
+ id: At(r.id1, r.id2, {
1208
+ prefix: "id",
1209
+ counter: l
1210
+ }),
1211
+ start: r.id1,
1212
+ end: r.id2,
1213
+ type: "normal",
1214
+ label: r.title,
1215
+ labelpos: "c",
1216
+ thickness: "normal",
1217
+ classes: "relation",
1218
+ arrowTypeStart: this.getArrowMarker(r.relation.type1),
1219
+ arrowTypeEnd: this.getArrowMarker(r.relation.type2),
1220
+ startLabelRight: r.relationTitle1 === "none" ? "" : r.relationTitle1,
1221
+ endLabelLeft: r.relationTitle2 === "none" ? "" : r.relationTitle2,
1222
+ arrowheadStyle: "",
1223
+ labelStyle: ["display: inline-block"],
1224
+ style: r.style || "",
1225
+ pattern: r.relation.lineType == 1 ? "dashed" : "solid",
1226
+ look: u.look,
1227
+ labelType: "markdown"
1228
+ };
1229
+ a.push(h);
1230
+ }
1231
+ return { nodes: i, edges: a, other: {}, config: u, direction: this.getDirection() };
1232
+ }
1233
+ }, A(z, "ClassDB"), z), gt = /* @__PURE__ */ A((s) => `g.classGroup text {
1234
+ fill: ${s.nodeBorder || s.classText};
1235
+ stroke: none;
1236
+ font-family: ${s.fontFamily};
1237
+ font-size: 10px;
1238
+
1239
+ .title {
1240
+ font-weight: bolder;
1241
+ }
1242
+
1243
+ }
1244
+
1245
+ .cluster-label text {
1246
+ fill: ${s.titleColor};
1247
+ }
1248
+ .cluster-label span {
1249
+ color: ${s.titleColor};
1250
+ }
1251
+ .cluster-label span p {
1252
+ background-color: transparent;
1253
+ }
1254
+
1255
+ .cluster rect {
1256
+ fill: ${s.clusterBkg};
1257
+ stroke: ${s.clusterBorder};
1258
+ stroke-width: 1px;
1259
+ }
1260
+
1261
+ .cluster text {
1262
+ fill: ${s.titleColor};
1263
+ }
1264
+
1265
+ .cluster span {
1266
+ color: ${s.titleColor};
1267
+ }
1268
+
1269
+ .nodeLabel, .edgeLabel {
1270
+ color: ${s.classText};
1271
+ }
1272
+
1273
+ .noteLabel .nodeLabel, .noteLabel .edgeLabel {
1274
+ color: ${s.noteTextColor};
1275
+ }
1276
+ .edgeLabel .label rect {
1277
+ fill: ${s.mainBkg};
1278
+ }
1279
+ .label text {
1280
+ fill: ${s.classText};
1281
+ }
1282
+
1283
+ .labelBkg {
1284
+ background: ${s.mainBkg};
1285
+ }
1286
+ .edgeLabel .label span {
1287
+ background: ${s.mainBkg};
1288
+ }
1289
+
1290
+ .classTitle {
1291
+ font-weight: bolder;
1292
+ }
1293
+ .node rect,
1294
+ .node circle,
1295
+ .node ellipse,
1296
+ .node polygon,
1297
+ .node path {
1298
+ fill: ${s.mainBkg};
1299
+ stroke: ${s.nodeBorder};
1300
+ stroke-width: ${s.strokeWidth};
1301
+ }
1302
+
1303
+
1304
+ .divider {
1305
+ stroke: ${s.nodeBorder};
1306
+ stroke-width: 1;
1307
+ }
1308
+
1309
+ g.clickable {
1310
+ cursor: pointer;
1311
+ }
1312
+
1313
+ g.classGroup rect {
1314
+ fill: ${s.mainBkg};
1315
+ stroke: ${s.nodeBorder};
1316
+ }
1317
+
1318
+ g.classGroup line {
1319
+ stroke: ${s.nodeBorder};
1320
+ stroke-width: 1;
1321
+ }
1322
+
1323
+ .classLabel .box {
1324
+ stroke: none;
1325
+ stroke-width: 0;
1326
+ fill: ${s.mainBkg};
1327
+ opacity: 0.5;
1328
+ }
1329
+
1330
+ .classLabel .label {
1331
+ fill: ${s.nodeBorder};
1332
+ font-size: 10px;
1333
+ }
1334
+
1335
+ .relation {
1336
+ stroke: ${s.lineColor};
1337
+ stroke-width: ${s.strokeWidth};
1338
+ fill: none;
1339
+ }
1340
+
1341
+ .dashed-line{
1342
+ stroke-dasharray: 3;
1343
+ }
1344
+
1345
+ .dotted-line{
1346
+ stroke-dasharray: 1 2;
1347
+ }
1348
+
1349
+ [id$="-compositionStart"], .composition {
1350
+ fill: ${s.lineColor} !important;
1351
+ stroke: ${s.lineColor} !important;
1352
+ stroke-width: 1;
1353
+ }
1354
+
1355
+ [id$="-compositionEnd"], .composition {
1356
+ fill: ${s.lineColor} !important;
1357
+ stroke: ${s.lineColor} !important;
1358
+ stroke-width: 1;
1359
+ }
1360
+
1361
+ [id$="-dependencyStart"], .dependency {
1362
+ fill: ${s.lineColor} !important;
1363
+ stroke: ${s.lineColor} !important;
1364
+ stroke-width: 1;
1365
+ }
1366
+
1367
+ [id$="-dependencyEnd"], .dependency {
1368
+ fill: ${s.lineColor} !important;
1369
+ stroke: ${s.lineColor} !important;
1370
+ stroke-width: 1;
1371
+ }
1372
+
1373
+ [id$="-extensionStart"], .extension {
1374
+ fill: transparent !important;
1375
+ stroke: ${s.lineColor} !important;
1376
+ stroke-width: 1;
1377
+ }
1378
+
1379
+ [id$="-extensionEnd"], .extension {
1380
+ fill: transparent !important;
1381
+ stroke: ${s.lineColor} !important;
1382
+ stroke-width: 1;
1383
+ }
1384
+
1385
+ [id$="-aggregationStart"], .aggregation {
1386
+ fill: transparent !important;
1387
+ stroke: ${s.lineColor} !important;
1388
+ stroke-width: 1;
1389
+ }
1390
+
1391
+ [id$="-aggregationEnd"], .aggregation {
1392
+ fill: transparent !important;
1393
+ stroke: ${s.lineColor} !important;
1394
+ stroke-width: 1;
1395
+ }
1396
+
1397
+ [id$="-lollipopStart"], .lollipop {
1398
+ fill: ${s.mainBkg} !important;
1399
+ stroke: ${s.lineColor} !important;
1400
+ stroke-width: 1;
1401
+ }
1402
+
1403
+ [id$="-lollipopEnd"], .lollipop {
1404
+ fill: ${s.mainBkg} !important;
1405
+ stroke: ${s.lineColor} !important;
1406
+ stroke-width: 1;
1407
+ }
1408
+
1409
+ .edgeTerminals {
1410
+ font-size: 11px;
1411
+ line-height: initial;
1412
+ }
1413
+
1414
+ .classTitleText {
1415
+ text-anchor: middle;
1416
+ font-size: 18px;
1417
+ fill: ${s.textColor};
1418
+ }
1419
+
1420
+ .edgeLabel[data-look="neo"] {
1421
+ background-color: ${s.edgeLabelBackground};
1422
+ p {
1423
+ background-color: ${s.edgeLabelBackground};
1424
+ }
1425
+ rect {
1426
+ opacity: 0.5;
1427
+ background-color: ${s.edgeLabelBackground};
1428
+ fill: ${s.edgeLabelBackground};
1429
+ }
1430
+ text-align: center;
1431
+ }
1432
+ ${et()}
1433
+ `, "getStyles"), _t = gt, mt = /* @__PURE__ */ A((s, i = "TB") => {
1434
+ if (!s.doc)
1435
+ return i;
1436
+ let a = i;
1437
+ for (const u of s.doc)
1438
+ u.stmt === "dir" && (a = u.value);
1439
+ return a;
1440
+ }, "getDir"), Ct = /* @__PURE__ */ A(function(s, i) {
1441
+ return i.db.getClasses();
1442
+ }, "getClasses"), bt = /* @__PURE__ */ A(async function(s, i, a, u) {
1443
+ Oe.info("REF0:"), Oe.info("Drawing class diagram (v3)", i);
1444
+ const { securityLevel: l, state: r, layout: h } = F();
1445
+ u.db.setDiagramId(i);
1446
+ const f = u.db.getData(), E = st(i, l);
1447
+ f.type = u.type, f.layoutAlgorithm = at(h), f.nodeSpacing = r?.nodeSpacing || 50, f.rankSpacing = r?.rankSpacing || 50, f.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], f.diagramId = i, await rt(f, E);
1448
+ const T = 8;
1449
+ we.insertTitle(
1450
+ E,
1451
+ "classDiagramTitleText",
1452
+ r?.titleTopMargin ?? 25,
1453
+ u.db.getDiagramTitle()
1454
+ ), it(E, T, "classDiagram", r?.useMaxWidth ?? !0);
1455
+ }, "draw"), St = {
1456
+ getClasses: Ct,
1457
+ draw: bt,
1458
+ getDir: mt
1459
+ };
1460
+ export {
1461
+ Bt as C,
1462
+ Ft as a,
1463
+ St as c,
1464
+ _t as s
1465
+ };