@nxgt/material-vue 0.16.0 → 0.19.1

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 (160) hide show
  1. package/README.md +4 -0
  2. package/dist/_baseIsEqual-Cj6hHjs0.js +226 -0
  3. package/dist/abnfDiagram-O67JEVCF-Cl_I9xuI.js +89 -0
  4. package/dist/arc-DNNg1pxp.js +80 -0
  5. package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
  6. package/dist/architectureDiagram-NJMV4G6O-CVS4UUCi.js +4146 -0
  7. package/dist/array-CApNbSU9.js +6 -0
  8. package/dist/blockDiagram-BEXU5L5S-Cq48yKiC.js +1946 -0
  9. package/dist/c4Diagram-YGBWAQC7-B6jKsl3h.js +2990 -0
  10. package/dist/{camera-Cbd1TWFd.js → camera-r2t4ssQW.js} +4 -4
  11. package/dist/channel-BA1GJyZ7.js +5 -0
  12. package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
  13. package/dist/chunk-3FUC2YCW-7zPp4vTf.js +364 -0
  14. package/dist/chunk-5DYCD2WN-B9vjeX2u.js +37 -0
  15. package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
  16. package/dist/chunk-6AEJRKK7-D9IaQdwq.js +10 -0
  17. package/dist/chunk-742MDFTN-BIhVe9GR.js +275 -0
  18. package/dist/chunk-7INBJB4K-CwPgdc2G.js +4487 -0
  19. package/dist/chunk-7M6MHVWA-DtL5wGrr.js +4256 -0
  20. package/dist/chunk-7PRAP22T-CofnNOEr.js +67 -0
  21. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  22. package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
  23. package/dist/chunk-GNY47TPC-C8ID_LPk.js +75 -0
  24. package/dist/chunk-GTNCS2PH-BR0O70z_.js +490 -0
  25. package/dist/chunk-GWA4HPMP-DU9lUCZD.js +61 -0
  26. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  27. package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
  28. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  29. package/dist/chunk-MBY4JIJT-HYVRUG_P.js +1847 -0
  30. package/dist/chunk-NETBCI7D-C8amwD_P.js +236 -0
  31. package/dist/chunk-O7XYJQB3-WMQqqzRb.js +3922 -0
  32. package/dist/chunk-UA2S7LBM-DtBatid7.js +363 -0
  33. package/dist/chunk-WEXAMYUT-Cc10h8ed.js +26 -0
  34. package/dist/chunk-XXDRQBXY-B2pGFcse.js +9 -0
  35. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  36. package/dist/chunk-Z7XXMR3K-CJmsOGTV.js +676 -0
  37. package/dist/chunk-ZIGJFQKS-DBdWb0bj.js +1366 -0
  38. package/dist/classDiagram-v2-NBCMYWYE-CnK-8Ca-.js +3397 -0
  39. package/dist/{components-DLtnz66n.js → components-BgtHYrAL.js} +43333 -18451
  40. package/dist/components.js +5 -5
  41. package/dist/{composables-BJ2GgDD0.js → composables-B8MtUoDh.js} +1 -1
  42. package/dist/composables.js +1 -1
  43. package/dist/cose-bilkent-JH36ORCC-DStMi-eo.js +2251 -0
  44. package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
  45. package/dist/cynefinDiagram-VND7K2PF-0Mq0e5NQ.js +349 -0
  46. package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
  47. package/dist/dagre-6A5THRUB-EvUiDV-m.js +2191 -0
  48. package/dist/defaultLocale-DnzPsei5.js +201 -0
  49. package/dist/diagram-22UHCM2B-BdDi8z2C.js +5084 -0
  50. package/dist/diagram-3UASUU5V-BznCZHss.js +525 -0
  51. package/dist/diagram-ATOU4E4O-DtIUxSAn.js +432 -0
  52. package/dist/diagram-CDSNMT55-DOjN3BR2.js +301 -0
  53. package/dist/diagram-MLGK6HIB-Dx2UboD6.js +134 -0
  54. package/dist/diagram-MPIPVDR6-DnPL3RV0.js +214 -0
  55. package/dist/dist-D9zvfe2i.js +59 -0
  56. package/dist/{dnd-Cmcrm28l.js → dnd-BEuHe7sH.js} +1 -1
  57. package/dist/dnd.js +1 -1
  58. package/dist/ebnfDiagram-ZINNZB2B-BNbxCL0b.js +100 -0
  59. package/dist/elk-276RUBZZ-Bonx9a6x.js +47597 -0
  60. package/dist/erDiagram-OPXOYQCR-BNsPfmoF.js +1970 -0
  61. package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
  62. package/dist/flowDiagram-KWPJA3E3-ArqPu-Ye.js +17 -0
  63. package/dist/ganttDiagram-FUAMR5RP-64EZDDmC.js +3083 -0
  64. package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
  65. package/dist/gitGraphDiagram-X574FWY7-DmMMrp5A.js +729 -0
  66. package/dist/graphlib-Eulj-quC.js +493 -0
  67. package/dist/{i18n-DmMS3ID3.js → i18n-B7nNF_hw.js} +237 -924
  68. package/dist/i18n.js +2 -2
  69. package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
  70. package/dist/infoDiagram-VRGFBTTK-XlBUAu0t.js +20 -0
  71. package/dist/init-MwSGRDIl.js +15 -0
  72. package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
  73. package/dist/isEmpty-DrJl_d3a.js +15 -0
  74. package/dist/ishikawaDiagram-OU5B5YK6-C9cMWMPO.js +719 -0
  75. package/dist/journeyDiagram-ZHPQQLJL-DXdfP9BW.js +884 -0
  76. package/dist/kanban-definition-PNTS6WVX-DhOBy3A0.js +976 -0
  77. package/dist/katex-BMQ6LGsM.js +21962 -0
  78. package/dist/lib/components/index.d.ts +4 -0
  79. package/dist/lib/components/ui/chat/chat-composer-mentions.vue.d.ts +13 -0
  80. package/dist/lib/components/ui/chat/chat-composer.vue.d.ts +6 -2
  81. package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
  82. package/dist/lib/components/ui/emoji/emoji-list.vue.d.ts +11 -0
  83. package/dist/lib/components/ui/emoji/emoji-picker.vue.d.ts +12 -0
  84. package/dist/lib/components/ui/emoji/emoji.groups.d.ts +6 -0
  85. package/dist/lib/components/ui/emoji/emoji.stories.data.d.ts +2 -0
  86. package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
  87. package/dist/lib/components/ui/emoji/index.d.ts +4 -0
  88. package/dist/lib/components/ui/emoji/types.d.ts +6 -0
  89. package/dist/lib/components/ui/markdown/index.d.ts +2 -0
  90. package/dist/lib/components/ui/markdown/markdown.utils.d.ts +10 -0
  91. package/dist/lib/components/ui/markdown/markdown.vue.d.ts +10 -0
  92. package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
  93. package/dist/lib/components/ui/markdown/partials/mermaid-diagram.vue.d.ts +7 -0
  94. package/dist/lib/components/ui/mentions/index.d.ts +4 -0
  95. package/dist/lib/components/ui/mentions/mention-list.vue.d.ts +16 -0
  96. package/dist/lib/components/ui/mentions/mentions.stories.data.d.ts +2 -0
  97. package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
  98. package/dist/lib/components/ui/mentions/types.d.ts +5 -0
  99. package/dist/lib/components/ui/terminal/index.d.ts +3 -0
  100. package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
  101. package/dist/lib/components/ui/terminal/terminal.vue.d.ts +17 -0
  102. package/dist/lib/i18n/resources/en/index.d.ts +9 -0
  103. package/dist/lib/i18n/resources/en/material.json.d.ts +9 -0
  104. package/dist/lib/i18n/resources/fr/index.d.ts +9 -0
  105. package/dist/lib/i18n/resources/fr/material.json.d.ts +9 -0
  106. package/dist/lib/i18n/resources/index.d.ts +18 -0
  107. package/dist/lib/i18n/translator.d.ts +1 -1
  108. package/dist/lib/nuxt/component-names.d.ts +1 -1
  109. package/dist/lib-CoEqz3rh.js +389 -0
  110. package/dist/lib.js +1 -1
  111. package/dist/line-UP6dkL36.js +34 -0
  112. package/dist/linear-bD_QoED_.js +289 -0
  113. package/dist/main.js +9 -9
  114. package/dist/material-vue.css +1 -1
  115. package/dist/merge-Bec0-Q44.js +170 -0
  116. package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
  117. package/dist/mermaid.core-DrUePKpg.js +1096 -0
  118. package/dist/mindmap-definition-NLK3R4M7-DYE9uY2C.js +1008 -0
  119. package/dist/ordinal-D_ZgubzR.js +65 -0
  120. package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
  121. package/dist/path-DGNPZRdx.js +85 -0
  122. package/dist/{pdf-outline-sidebar-BBXJRwdt.js → pdf-outline-sidebar-CqpgJNJJ.js} +3 -2
  123. package/dist/{pdf-page-DZyTFukn.js → pdf-page-DtejoDj_.js} +1 -1
  124. package/dist/{pdf-page-list-C3GukJ3_.js → pdf-page-list-C7Lkr20Q.js} +3 -2
  125. package/dist/{pdf-reader-Ci4v2Ff9.js → pdf-reader-CE72v3Xw.js} +13 -13
  126. package/dist/{pdf-sidebar-Dl8fQStG.js → pdf-sidebar-D2NYQILw.js} +4 -4
  127. package/dist/{pdf-thumbnail-sidebar-GS_V0PGc.js → pdf-thumbnail-sidebar-B0pIto76.js} +4 -3
  128. package/dist/{pdf-toolbar-D37w-WIK.js → pdf-toolbar-CZWFrd3e.js} +22 -21
  129. package/dist/pegDiagram-GJSIUBJH-gvsGke9W.js +94 -0
  130. package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
  131. package/dist/pieDiagram-5QR66LMP-DLBcErnI.js +205 -0
  132. package/dist/quadrantDiagram-O4NWA36T-Bn3CmGxM.js +2001 -0
  133. package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
  134. package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
  135. package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
  136. package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
  137. package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
  138. package/dist/railroadDiagram-XR7U4H2S-DLeBxWbV.js +76 -0
  139. package/dist/requirementDiagram-PLB6GJNP-DGzAl0gf.js +2228 -0
  140. package/dist/rolldown-runtime-CWhphoD1.js +23 -0
  141. package/dist/rough.esm-rcMoXTJj.js +1352 -0
  142. package/dist/sankeyDiagram-IPEJSGJF-a4rFl5rR.js +970 -0
  143. package/dist/sequenceDiagram-PO4LG4MO-CjUigcL2.js +4200 -0
  144. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  145. package/dist/src-CNRY2AUH.js +2142 -0
  146. package/dist/stateDiagram-v2-GCMORJYK-YzzT-hC0.js +2143 -0
  147. package/dist/{stx-player-C0FOaRjU.js → stx-player-D8rme-GV.js} +17 -17
  148. package/dist/swimlanes-2SLR337P-C-T-gwvW.js +4763 -0
  149. package/dist/swimlanesDiagram-TC7HE7FX-DiNozXft.js +28 -0
  150. package/dist/timeline-definition-EJHVYXUP-C0aHlt9K.js +1073 -0
  151. package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
  152. package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
  153. package/dist/usecaseDiagram-POWQR4AR-V2WLBfYi.js +9932 -0
  154. package/dist/vennDiagram-UO4OBE2U-B22Jhju8.js +1880 -0
  155. package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
  156. package/dist/wardleyDiagram-VNRHLVJA-Dw4YgRiQ.js +645 -0
  157. package/dist/xychartDiagram-PMCCYNJV-DtuDs9I7.js +2214 -0
  158. package/lib/nuxt/component-names.ts +2 -0
  159. package/package.json +5 -1
  160. package/dist/lib-CT0uRn8S.js +0 -611
@@ -0,0 +1,2990 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
2
+ import { m as t, p as n } from "./src-CNRY2AUH.js";
3
+ import { H as r, U as i, c as a, r as o, s, v as l, x as u, y as d, z as f } from "./chunk-O7XYJQB3-WMQqqzRb.js";
4
+ import { _ as p, n as m, r as h } from "./chunk-ZIGJFQKS-DBdWb0bj.js";
5
+ import "./chunk-742MDFTN-BIhVe9GR.js";
6
+ import "./chunk-MBY4JIJT-HYVRUG_P.js";
7
+ import "./chunk-7PRAP22T-CofnNOEr.js";
8
+ import { r as g, s as _ } from "./chunk-7INBJB4K-CwPgdc2G.js";
9
+ import { a as v } from "./chunk-GWA4HPMP-DU9lUCZD.js";
10
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YGBWAQC7.mjs
11
+ var y = (function() {
12
+ var t = /* @__PURE__ */ e(function(e, t, n, r) {
13
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
14
+ return n;
15
+ }, "o"), n = [1, 24], r = [1, 25], i = [1, 26], a = [1, 27], o = [1, 28], s = [1, 63], l = [1, 64], u = [1, 65], d = [1, 66], f = [1, 67], p = [1, 68], m = [1, 69], h = [1, 29], g = [1, 30], _ = [1, 31], v = [1, 32], y = [1, 33], b = [1, 34], x = [1, 35], S = [1, 36], C = [1, 37], w = [1, 38], T = [1, 39], E = [1, 40], D = [1, 41], O = [1, 42], k = [1, 43], A = [1, 44], j = [1, 45], M = [1, 46], N = [1, 47], P = [1, 48], F = [1, 50], I = [1, 51], L = [1, 52], R = [1, 53], z = [1, 54], B = [1, 55], V = [1, 56], H = [1, 57], U = [1, 58], W = [1, 59], G = [1, 60], ee = [14, 42], te = [
16
+ 14,
17
+ 34,
18
+ 36,
19
+ 37,
20
+ 38,
21
+ 39,
22
+ 40,
23
+ 41,
24
+ 42,
25
+ 44,
26
+ 45,
27
+ 46,
28
+ 47,
29
+ 48,
30
+ 49,
31
+ 50,
32
+ 51,
33
+ 52,
34
+ 53,
35
+ 54,
36
+ 55,
37
+ 56,
38
+ 57,
39
+ 58,
40
+ 59,
41
+ 60,
42
+ 61,
43
+ 62,
44
+ 63,
45
+ 64,
46
+ 65,
47
+ 66,
48
+ 67,
49
+ 68,
50
+ 69,
51
+ 70,
52
+ 71,
53
+ 72,
54
+ 73,
55
+ 74
56
+ ], ne = [
57
+ 12,
58
+ 14,
59
+ 34,
60
+ 36,
61
+ 37,
62
+ 38,
63
+ 39,
64
+ 40,
65
+ 41,
66
+ 42,
67
+ 44,
68
+ 45,
69
+ 46,
70
+ 47,
71
+ 48,
72
+ 49,
73
+ 50,
74
+ 51,
75
+ 52,
76
+ 53,
77
+ 54,
78
+ 55,
79
+ 56,
80
+ 57,
81
+ 58,
82
+ 59,
83
+ 60,
84
+ 61,
85
+ 62,
86
+ 63,
87
+ 64,
88
+ 65,
89
+ 66,
90
+ 67,
91
+ 68,
92
+ 69,
93
+ 70,
94
+ 71,
95
+ 72,
96
+ 73,
97
+ 74
98
+ ], K = [1, 82], q = [1, 83], J = [1, 84], Y = [1, 85], X = [
99
+ 12,
100
+ 14,
101
+ 42
102
+ ], re = [
103
+ 12,
104
+ 14,
105
+ 33,
106
+ 42
107
+ ], ie = [
108
+ 12,
109
+ 14,
110
+ 33,
111
+ 42,
112
+ 76,
113
+ 77,
114
+ 79,
115
+ 80
116
+ ], Z = [12, 33], ae = [
117
+ 34,
118
+ 36,
119
+ 37,
120
+ 38,
121
+ 39,
122
+ 40,
123
+ 41,
124
+ 44,
125
+ 45,
126
+ 46,
127
+ 47,
128
+ 48,
129
+ 49,
130
+ 50,
131
+ 51,
132
+ 52,
133
+ 53,
134
+ 54,
135
+ 55,
136
+ 56,
137
+ 57,
138
+ 58,
139
+ 59,
140
+ 60,
141
+ 61,
142
+ 62,
143
+ 63,
144
+ 64,
145
+ 65,
146
+ 66,
147
+ 67,
148
+ 68,
149
+ 69,
150
+ 70,
151
+ 71,
152
+ 72,
153
+ 73,
154
+ 74
155
+ ], oe = {
156
+ trace: /* @__PURE__ */ e(function() {}, "trace"),
157
+ yy: {},
158
+ symbols_: {
159
+ error: 2,
160
+ start: 3,
161
+ mermaidDoc: 4,
162
+ direction: 5,
163
+ direction_tb: 6,
164
+ direction_bt: 7,
165
+ direction_rl: 8,
166
+ direction_lr: 9,
167
+ graphConfig: 10,
168
+ C4_CONTEXT: 11,
169
+ NEWLINE: 12,
170
+ statements: 13,
171
+ EOF: 14,
172
+ C4_CONTAINER: 15,
173
+ C4_COMPONENT: 16,
174
+ C4_DYNAMIC: 17,
175
+ C4_DEPLOYMENT: 18,
176
+ otherStatements: 19,
177
+ diagramStatements: 20,
178
+ otherStatement: 21,
179
+ title: 22,
180
+ accDescription: 23,
181
+ acc_title: 24,
182
+ acc_title_value: 25,
183
+ acc_descr: 26,
184
+ acc_descr_value: 27,
185
+ acc_descr_multiline_value: 28,
186
+ boundaryStatement: 29,
187
+ boundaryStartStatement: 30,
188
+ boundaryStopStatement: 31,
189
+ boundaryStart: 32,
190
+ LBRACE: 33,
191
+ ENTERPRISE_BOUNDARY: 34,
192
+ attributes: 35,
193
+ SYSTEM_BOUNDARY: 36,
194
+ BOUNDARY: 37,
195
+ CONTAINER_BOUNDARY: 38,
196
+ NODE: 39,
197
+ NODE_L: 40,
198
+ NODE_R: 41,
199
+ RBRACE: 42,
200
+ diagramStatement: 43,
201
+ PERSON: 44,
202
+ PERSON_EXT: 45,
203
+ SYSTEM: 46,
204
+ SYSTEM_DB: 47,
205
+ SYSTEM_QUEUE: 48,
206
+ SYSTEM_EXT: 49,
207
+ SYSTEM_EXT_DB: 50,
208
+ SYSTEM_EXT_QUEUE: 51,
209
+ CONTAINER: 52,
210
+ CONTAINER_DB: 53,
211
+ CONTAINER_QUEUE: 54,
212
+ CONTAINER_EXT: 55,
213
+ CONTAINER_EXT_DB: 56,
214
+ CONTAINER_EXT_QUEUE: 57,
215
+ COMPONENT: 58,
216
+ COMPONENT_DB: 59,
217
+ COMPONENT_QUEUE: 60,
218
+ COMPONENT_EXT: 61,
219
+ COMPONENT_EXT_DB: 62,
220
+ COMPONENT_EXT_QUEUE: 63,
221
+ REL: 64,
222
+ BIREL: 65,
223
+ REL_U: 66,
224
+ REL_D: 67,
225
+ REL_L: 68,
226
+ REL_R: 69,
227
+ REL_B: 70,
228
+ REL_INDEX: 71,
229
+ UPDATE_EL_STYLE: 72,
230
+ UPDATE_REL_STYLE: 73,
231
+ UPDATE_LAYOUT_CONFIG: 74,
232
+ attribute: 75,
233
+ STR: 76,
234
+ STR_KEY: 77,
235
+ STR_VALUE: 78,
236
+ ATTRIBUTE: 79,
237
+ ATTRIBUTE_EMPTY: 80,
238
+ $accept: 0,
239
+ $end: 1
240
+ },
241
+ terminals_: {
242
+ 2: "error",
243
+ 6: "direction_tb",
244
+ 7: "direction_bt",
245
+ 8: "direction_rl",
246
+ 9: "direction_lr",
247
+ 11: "C4_CONTEXT",
248
+ 12: "NEWLINE",
249
+ 14: "EOF",
250
+ 15: "C4_CONTAINER",
251
+ 16: "C4_COMPONENT",
252
+ 17: "C4_DYNAMIC",
253
+ 18: "C4_DEPLOYMENT",
254
+ 22: "title",
255
+ 23: "accDescription",
256
+ 24: "acc_title",
257
+ 25: "acc_title_value",
258
+ 26: "acc_descr",
259
+ 27: "acc_descr_value",
260
+ 28: "acc_descr_multiline_value",
261
+ 33: "LBRACE",
262
+ 34: "ENTERPRISE_BOUNDARY",
263
+ 36: "SYSTEM_BOUNDARY",
264
+ 37: "BOUNDARY",
265
+ 38: "CONTAINER_BOUNDARY",
266
+ 39: "NODE",
267
+ 40: "NODE_L",
268
+ 41: "NODE_R",
269
+ 42: "RBRACE",
270
+ 44: "PERSON",
271
+ 45: "PERSON_EXT",
272
+ 46: "SYSTEM",
273
+ 47: "SYSTEM_DB",
274
+ 48: "SYSTEM_QUEUE",
275
+ 49: "SYSTEM_EXT",
276
+ 50: "SYSTEM_EXT_DB",
277
+ 51: "SYSTEM_EXT_QUEUE",
278
+ 52: "CONTAINER",
279
+ 53: "CONTAINER_DB",
280
+ 54: "CONTAINER_QUEUE",
281
+ 55: "CONTAINER_EXT",
282
+ 56: "CONTAINER_EXT_DB",
283
+ 57: "CONTAINER_EXT_QUEUE",
284
+ 58: "COMPONENT",
285
+ 59: "COMPONENT_DB",
286
+ 60: "COMPONENT_QUEUE",
287
+ 61: "COMPONENT_EXT",
288
+ 62: "COMPONENT_EXT_DB",
289
+ 63: "COMPONENT_EXT_QUEUE",
290
+ 64: "REL",
291
+ 65: "BIREL",
292
+ 66: "REL_U",
293
+ 67: "REL_D",
294
+ 68: "REL_L",
295
+ 69: "REL_R",
296
+ 70: "REL_B",
297
+ 71: "REL_INDEX",
298
+ 72: "UPDATE_EL_STYLE",
299
+ 73: "UPDATE_REL_STYLE",
300
+ 74: "UPDATE_LAYOUT_CONFIG",
301
+ 76: "STR",
302
+ 77: "STR_KEY",
303
+ 78: "STR_VALUE",
304
+ 79: "ATTRIBUTE",
305
+ 80: "ATTRIBUTE_EMPTY"
306
+ },
307
+ productions_: [
308
+ 0,
309
+ [3, 1],
310
+ [3, 1],
311
+ [5, 1],
312
+ [5, 1],
313
+ [5, 1],
314
+ [5, 1],
315
+ [4, 1],
316
+ [10, 4],
317
+ [10, 4],
318
+ [10, 4],
319
+ [10, 4],
320
+ [10, 4],
321
+ [13, 1],
322
+ [13, 1],
323
+ [13, 2],
324
+ [19, 1],
325
+ [19, 2],
326
+ [19, 3],
327
+ [21, 1],
328
+ [21, 1],
329
+ [21, 2],
330
+ [21, 2],
331
+ [21, 1],
332
+ [29, 3],
333
+ [30, 3],
334
+ [30, 3],
335
+ [30, 4],
336
+ [32, 2],
337
+ [32, 2],
338
+ [32, 2],
339
+ [32, 2],
340
+ [32, 2],
341
+ [32, 2],
342
+ [32, 2],
343
+ [31, 1],
344
+ [20, 1],
345
+ [20, 2],
346
+ [20, 3],
347
+ [43, 2],
348
+ [43, 2],
349
+ [43, 2],
350
+ [43, 2],
351
+ [43, 2],
352
+ [43, 2],
353
+ [43, 2],
354
+ [43, 2],
355
+ [43, 2],
356
+ [43, 2],
357
+ [43, 2],
358
+ [43, 2],
359
+ [43, 2],
360
+ [43, 2],
361
+ [43, 2],
362
+ [43, 2],
363
+ [43, 2],
364
+ [43, 2],
365
+ [43, 2],
366
+ [43, 2],
367
+ [43, 1],
368
+ [43, 2],
369
+ [43, 2],
370
+ [43, 2],
371
+ [43, 2],
372
+ [43, 2],
373
+ [43, 2],
374
+ [43, 2],
375
+ [43, 2],
376
+ [43, 2],
377
+ [43, 2],
378
+ [43, 2],
379
+ [35, 1],
380
+ [35, 2],
381
+ [75, 1],
382
+ [75, 2],
383
+ [75, 1],
384
+ [75, 1]
385
+ ],
386
+ performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
387
+ var s = a.length - 1;
388
+ switch (i) {
389
+ case 3:
390
+ r.setDirection("TB");
391
+ break;
392
+ case 4:
393
+ r.setDirection("BT");
394
+ break;
395
+ case 5:
396
+ r.setDirection("RL");
397
+ break;
398
+ case 6:
399
+ r.setDirection("LR");
400
+ break;
401
+ case 8:
402
+ case 9:
403
+ case 10:
404
+ case 11:
405
+ case 12:
406
+ r.setC4Type(a[s - 3]);
407
+ break;
408
+ case 19:
409
+ r.setTitle(a[s].substring(6)), this.$ = a[s].substring(6);
410
+ break;
411
+ case 20:
412
+ r.setAccDescription(a[s].substring(15)), this.$ = a[s].substring(15);
413
+ break;
414
+ case 21:
415
+ this.$ = a[s].trim(), r.setTitle(this.$);
416
+ break;
417
+ case 22:
418
+ case 23:
419
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
420
+ break;
421
+ case 28:
422
+ a[s].splice(2, 0, "ENTERPRISE"), r.addPersonOrSystemBoundary(...a[s]), this.$ = a[s];
423
+ break;
424
+ case 29:
425
+ a[s].splice(2, 0, "SYSTEM"), r.addPersonOrSystemBoundary(...a[s]), this.$ = a[s];
426
+ break;
427
+ case 30:
428
+ r.addPersonOrSystemBoundary(...a[s]), this.$ = a[s];
429
+ break;
430
+ case 31:
431
+ a[s].splice(2, 0, "CONTAINER"), r.addContainerBoundary(...a[s]), this.$ = a[s];
432
+ break;
433
+ case 32:
434
+ r.addDeploymentNode("node", ...a[s]), this.$ = a[s];
435
+ break;
436
+ case 33:
437
+ r.addDeploymentNode("nodeL", ...a[s]), this.$ = a[s];
438
+ break;
439
+ case 34:
440
+ r.addDeploymentNode("nodeR", ...a[s]), this.$ = a[s];
441
+ break;
442
+ case 35:
443
+ r.popBoundaryParseStack();
444
+ break;
445
+ case 39:
446
+ r.addPersonOrSystem("person", ...a[s]), this.$ = a[s];
447
+ break;
448
+ case 40:
449
+ r.addPersonOrSystem("external_person", ...a[s]), this.$ = a[s];
450
+ break;
451
+ case 41:
452
+ r.addPersonOrSystem("system", ...a[s]), this.$ = a[s];
453
+ break;
454
+ case 42:
455
+ r.addPersonOrSystem("system_db", ...a[s]), this.$ = a[s];
456
+ break;
457
+ case 43:
458
+ r.addPersonOrSystem("system_queue", ...a[s]), this.$ = a[s];
459
+ break;
460
+ case 44:
461
+ r.addPersonOrSystem("external_system", ...a[s]), this.$ = a[s];
462
+ break;
463
+ case 45:
464
+ r.addPersonOrSystem("external_system_db", ...a[s]), this.$ = a[s];
465
+ break;
466
+ case 46:
467
+ r.addPersonOrSystem("external_system_queue", ...a[s]), this.$ = a[s];
468
+ break;
469
+ case 47:
470
+ r.addContainer("container", ...a[s]), this.$ = a[s];
471
+ break;
472
+ case 48:
473
+ r.addContainer("container_db", ...a[s]), this.$ = a[s];
474
+ break;
475
+ case 49:
476
+ r.addContainer("container_queue", ...a[s]), this.$ = a[s];
477
+ break;
478
+ case 50:
479
+ r.addContainer("external_container", ...a[s]), this.$ = a[s];
480
+ break;
481
+ case 51:
482
+ r.addContainer("external_container_db", ...a[s]), this.$ = a[s];
483
+ break;
484
+ case 52:
485
+ r.addContainer("external_container_queue", ...a[s]), this.$ = a[s];
486
+ break;
487
+ case 53:
488
+ r.addComponent("component", ...a[s]), this.$ = a[s];
489
+ break;
490
+ case 54:
491
+ r.addComponent("component_db", ...a[s]), this.$ = a[s];
492
+ break;
493
+ case 55:
494
+ r.addComponent("component_queue", ...a[s]), this.$ = a[s];
495
+ break;
496
+ case 56:
497
+ r.addComponent("external_component", ...a[s]), this.$ = a[s];
498
+ break;
499
+ case 57:
500
+ r.addComponent("external_component_db", ...a[s]), this.$ = a[s];
501
+ break;
502
+ case 58:
503
+ r.addComponent("external_component_queue", ...a[s]), this.$ = a[s];
504
+ break;
505
+ case 60:
506
+ r.addRel("rel", ...a[s]), this.$ = a[s];
507
+ break;
508
+ case 61:
509
+ r.addRel("birel", ...a[s]), this.$ = a[s];
510
+ break;
511
+ case 62:
512
+ r.addRel("rel_u", ...a[s]), this.$ = a[s];
513
+ break;
514
+ case 63:
515
+ r.addRel("rel_d", ...a[s]), this.$ = a[s];
516
+ break;
517
+ case 64:
518
+ r.addRel("rel_l", ...a[s]), this.$ = a[s];
519
+ break;
520
+ case 65:
521
+ r.addRel("rel_r", ...a[s]), this.$ = a[s];
522
+ break;
523
+ case 66:
524
+ r.addRel("rel_b", ...a[s]), this.$ = a[s];
525
+ break;
526
+ case 67:
527
+ a[s].splice(0, 1), r.addRel("rel", ...a[s]), this.$ = a[s];
528
+ break;
529
+ case 68:
530
+ r.updateElStyle("update_el_style", ...a[s]), this.$ = a[s];
531
+ break;
532
+ case 69:
533
+ r.updateRelStyle("update_rel_style", ...a[s]), this.$ = a[s];
534
+ break;
535
+ case 70:
536
+ r.updateLayoutConfig("update_layout_config", ...a[s]), this.$ = a[s];
537
+ break;
538
+ case 71:
539
+ this.$ = [a[s]];
540
+ break;
541
+ case 72:
542
+ a[s].unshift(a[s - 1]), this.$ = a[s];
543
+ break;
544
+ case 73:
545
+ case 75:
546
+ this.$ = a[s].trim();
547
+ break;
548
+ case 74:
549
+ let e = {};
550
+ e[a[s - 1].trim()] = a[s].trim(), this.$ = e;
551
+ break;
552
+ case 76:
553
+ this.$ = "";
554
+ break;
555
+ }
556
+ }, "anonymous"),
557
+ table: [
558
+ {
559
+ 3: 1,
560
+ 4: 2,
561
+ 5: 3,
562
+ 6: [1, 5],
563
+ 7: [1, 6],
564
+ 8: [1, 7],
565
+ 9: [1, 8],
566
+ 10: 4,
567
+ 11: [1, 9],
568
+ 15: [1, 10],
569
+ 16: [1, 11],
570
+ 17: [1, 12],
571
+ 18: [1, 13]
572
+ },
573
+ { 1: [3] },
574
+ { 1: [2, 1] },
575
+ { 1: [2, 2] },
576
+ { 1: [2, 7] },
577
+ { 1: [2, 3] },
578
+ { 1: [2, 4] },
579
+ { 1: [2, 5] },
580
+ { 1: [2, 6] },
581
+ { 12: [1, 14] },
582
+ { 12: [1, 15] },
583
+ { 12: [1, 16] },
584
+ { 12: [1, 17] },
585
+ { 12: [1, 18] },
586
+ {
587
+ 13: 19,
588
+ 19: 20,
589
+ 20: 21,
590
+ 21: 22,
591
+ 22: n,
592
+ 23: r,
593
+ 24: i,
594
+ 26: a,
595
+ 28: o,
596
+ 29: 49,
597
+ 30: 61,
598
+ 32: 62,
599
+ 34: s,
600
+ 36: l,
601
+ 37: u,
602
+ 38: d,
603
+ 39: f,
604
+ 40: p,
605
+ 41: m,
606
+ 43: 23,
607
+ 44: h,
608
+ 45: g,
609
+ 46: _,
610
+ 47: v,
611
+ 48: y,
612
+ 49: b,
613
+ 50: x,
614
+ 51: S,
615
+ 52: C,
616
+ 53: w,
617
+ 54: T,
618
+ 55: E,
619
+ 56: D,
620
+ 57: O,
621
+ 58: k,
622
+ 59: A,
623
+ 60: j,
624
+ 61: M,
625
+ 62: N,
626
+ 63: P,
627
+ 64: F,
628
+ 65: I,
629
+ 66: L,
630
+ 67: R,
631
+ 68: z,
632
+ 69: B,
633
+ 70: V,
634
+ 71: H,
635
+ 72: U,
636
+ 73: W,
637
+ 74: G
638
+ },
639
+ {
640
+ 13: 70,
641
+ 19: 20,
642
+ 20: 21,
643
+ 21: 22,
644
+ 22: n,
645
+ 23: r,
646
+ 24: i,
647
+ 26: a,
648
+ 28: o,
649
+ 29: 49,
650
+ 30: 61,
651
+ 32: 62,
652
+ 34: s,
653
+ 36: l,
654
+ 37: u,
655
+ 38: d,
656
+ 39: f,
657
+ 40: p,
658
+ 41: m,
659
+ 43: 23,
660
+ 44: h,
661
+ 45: g,
662
+ 46: _,
663
+ 47: v,
664
+ 48: y,
665
+ 49: b,
666
+ 50: x,
667
+ 51: S,
668
+ 52: C,
669
+ 53: w,
670
+ 54: T,
671
+ 55: E,
672
+ 56: D,
673
+ 57: O,
674
+ 58: k,
675
+ 59: A,
676
+ 60: j,
677
+ 61: M,
678
+ 62: N,
679
+ 63: P,
680
+ 64: F,
681
+ 65: I,
682
+ 66: L,
683
+ 67: R,
684
+ 68: z,
685
+ 69: B,
686
+ 70: V,
687
+ 71: H,
688
+ 72: U,
689
+ 73: W,
690
+ 74: G
691
+ },
692
+ {
693
+ 13: 71,
694
+ 19: 20,
695
+ 20: 21,
696
+ 21: 22,
697
+ 22: n,
698
+ 23: r,
699
+ 24: i,
700
+ 26: a,
701
+ 28: o,
702
+ 29: 49,
703
+ 30: 61,
704
+ 32: 62,
705
+ 34: s,
706
+ 36: l,
707
+ 37: u,
708
+ 38: d,
709
+ 39: f,
710
+ 40: p,
711
+ 41: m,
712
+ 43: 23,
713
+ 44: h,
714
+ 45: g,
715
+ 46: _,
716
+ 47: v,
717
+ 48: y,
718
+ 49: b,
719
+ 50: x,
720
+ 51: S,
721
+ 52: C,
722
+ 53: w,
723
+ 54: T,
724
+ 55: E,
725
+ 56: D,
726
+ 57: O,
727
+ 58: k,
728
+ 59: A,
729
+ 60: j,
730
+ 61: M,
731
+ 62: N,
732
+ 63: P,
733
+ 64: F,
734
+ 65: I,
735
+ 66: L,
736
+ 67: R,
737
+ 68: z,
738
+ 69: B,
739
+ 70: V,
740
+ 71: H,
741
+ 72: U,
742
+ 73: W,
743
+ 74: G
744
+ },
745
+ {
746
+ 13: 72,
747
+ 19: 20,
748
+ 20: 21,
749
+ 21: 22,
750
+ 22: n,
751
+ 23: r,
752
+ 24: i,
753
+ 26: a,
754
+ 28: o,
755
+ 29: 49,
756
+ 30: 61,
757
+ 32: 62,
758
+ 34: s,
759
+ 36: l,
760
+ 37: u,
761
+ 38: d,
762
+ 39: f,
763
+ 40: p,
764
+ 41: m,
765
+ 43: 23,
766
+ 44: h,
767
+ 45: g,
768
+ 46: _,
769
+ 47: v,
770
+ 48: y,
771
+ 49: b,
772
+ 50: x,
773
+ 51: S,
774
+ 52: C,
775
+ 53: w,
776
+ 54: T,
777
+ 55: E,
778
+ 56: D,
779
+ 57: O,
780
+ 58: k,
781
+ 59: A,
782
+ 60: j,
783
+ 61: M,
784
+ 62: N,
785
+ 63: P,
786
+ 64: F,
787
+ 65: I,
788
+ 66: L,
789
+ 67: R,
790
+ 68: z,
791
+ 69: B,
792
+ 70: V,
793
+ 71: H,
794
+ 72: U,
795
+ 73: W,
796
+ 74: G
797
+ },
798
+ {
799
+ 13: 73,
800
+ 19: 20,
801
+ 20: 21,
802
+ 21: 22,
803
+ 22: n,
804
+ 23: r,
805
+ 24: i,
806
+ 26: a,
807
+ 28: o,
808
+ 29: 49,
809
+ 30: 61,
810
+ 32: 62,
811
+ 34: s,
812
+ 36: l,
813
+ 37: u,
814
+ 38: d,
815
+ 39: f,
816
+ 40: p,
817
+ 41: m,
818
+ 43: 23,
819
+ 44: h,
820
+ 45: g,
821
+ 46: _,
822
+ 47: v,
823
+ 48: y,
824
+ 49: b,
825
+ 50: x,
826
+ 51: S,
827
+ 52: C,
828
+ 53: w,
829
+ 54: T,
830
+ 55: E,
831
+ 56: D,
832
+ 57: O,
833
+ 58: k,
834
+ 59: A,
835
+ 60: j,
836
+ 61: M,
837
+ 62: N,
838
+ 63: P,
839
+ 64: F,
840
+ 65: I,
841
+ 66: L,
842
+ 67: R,
843
+ 68: z,
844
+ 69: B,
845
+ 70: V,
846
+ 71: H,
847
+ 72: U,
848
+ 73: W,
849
+ 74: G
850
+ },
851
+ { 14: [1, 74] },
852
+ t(ee, [2, 13], {
853
+ 43: 23,
854
+ 29: 49,
855
+ 30: 61,
856
+ 32: 62,
857
+ 20: 75,
858
+ 34: s,
859
+ 36: l,
860
+ 37: u,
861
+ 38: d,
862
+ 39: f,
863
+ 40: p,
864
+ 41: m,
865
+ 44: h,
866
+ 45: g,
867
+ 46: _,
868
+ 47: v,
869
+ 48: y,
870
+ 49: b,
871
+ 50: x,
872
+ 51: S,
873
+ 52: C,
874
+ 53: w,
875
+ 54: T,
876
+ 55: E,
877
+ 56: D,
878
+ 57: O,
879
+ 58: k,
880
+ 59: A,
881
+ 60: j,
882
+ 61: M,
883
+ 62: N,
884
+ 63: P,
885
+ 64: F,
886
+ 65: I,
887
+ 66: L,
888
+ 67: R,
889
+ 68: z,
890
+ 69: B,
891
+ 70: V,
892
+ 71: H,
893
+ 72: U,
894
+ 73: W,
895
+ 74: G
896
+ }),
897
+ t(ee, [2, 14]),
898
+ t(te, [2, 16], { 12: [1, 76] }),
899
+ t(ee, [2, 36], { 12: [1, 77] }),
900
+ t(ne, [2, 19]),
901
+ t(ne, [2, 20]),
902
+ { 25: [1, 78] },
903
+ { 27: [1, 79] },
904
+ t(ne, [2, 23]),
905
+ {
906
+ 35: 80,
907
+ 75: 81,
908
+ 76: K,
909
+ 77: q,
910
+ 79: J,
911
+ 80: Y
912
+ },
913
+ {
914
+ 35: 86,
915
+ 75: 81,
916
+ 76: K,
917
+ 77: q,
918
+ 79: J,
919
+ 80: Y
920
+ },
921
+ {
922
+ 35: 87,
923
+ 75: 81,
924
+ 76: K,
925
+ 77: q,
926
+ 79: J,
927
+ 80: Y
928
+ },
929
+ {
930
+ 35: 88,
931
+ 75: 81,
932
+ 76: K,
933
+ 77: q,
934
+ 79: J,
935
+ 80: Y
936
+ },
937
+ {
938
+ 35: 89,
939
+ 75: 81,
940
+ 76: K,
941
+ 77: q,
942
+ 79: J,
943
+ 80: Y
944
+ },
945
+ {
946
+ 35: 90,
947
+ 75: 81,
948
+ 76: K,
949
+ 77: q,
950
+ 79: J,
951
+ 80: Y
952
+ },
953
+ {
954
+ 35: 91,
955
+ 75: 81,
956
+ 76: K,
957
+ 77: q,
958
+ 79: J,
959
+ 80: Y
960
+ },
961
+ {
962
+ 35: 92,
963
+ 75: 81,
964
+ 76: K,
965
+ 77: q,
966
+ 79: J,
967
+ 80: Y
968
+ },
969
+ {
970
+ 35: 93,
971
+ 75: 81,
972
+ 76: K,
973
+ 77: q,
974
+ 79: J,
975
+ 80: Y
976
+ },
977
+ {
978
+ 35: 94,
979
+ 75: 81,
980
+ 76: K,
981
+ 77: q,
982
+ 79: J,
983
+ 80: Y
984
+ },
985
+ {
986
+ 35: 95,
987
+ 75: 81,
988
+ 76: K,
989
+ 77: q,
990
+ 79: J,
991
+ 80: Y
992
+ },
993
+ {
994
+ 35: 96,
995
+ 75: 81,
996
+ 76: K,
997
+ 77: q,
998
+ 79: J,
999
+ 80: Y
1000
+ },
1001
+ {
1002
+ 35: 97,
1003
+ 75: 81,
1004
+ 76: K,
1005
+ 77: q,
1006
+ 79: J,
1007
+ 80: Y
1008
+ },
1009
+ {
1010
+ 35: 98,
1011
+ 75: 81,
1012
+ 76: K,
1013
+ 77: q,
1014
+ 79: J,
1015
+ 80: Y
1016
+ },
1017
+ {
1018
+ 35: 99,
1019
+ 75: 81,
1020
+ 76: K,
1021
+ 77: q,
1022
+ 79: J,
1023
+ 80: Y
1024
+ },
1025
+ {
1026
+ 35: 100,
1027
+ 75: 81,
1028
+ 76: K,
1029
+ 77: q,
1030
+ 79: J,
1031
+ 80: Y
1032
+ },
1033
+ {
1034
+ 35: 101,
1035
+ 75: 81,
1036
+ 76: K,
1037
+ 77: q,
1038
+ 79: J,
1039
+ 80: Y
1040
+ },
1041
+ {
1042
+ 35: 102,
1043
+ 75: 81,
1044
+ 76: K,
1045
+ 77: q,
1046
+ 79: J,
1047
+ 80: Y
1048
+ },
1049
+ {
1050
+ 35: 103,
1051
+ 75: 81,
1052
+ 76: K,
1053
+ 77: q,
1054
+ 79: J,
1055
+ 80: Y
1056
+ },
1057
+ {
1058
+ 35: 104,
1059
+ 75: 81,
1060
+ 76: K,
1061
+ 77: q,
1062
+ 79: J,
1063
+ 80: Y
1064
+ },
1065
+ t(X, [2, 59]),
1066
+ {
1067
+ 35: 105,
1068
+ 75: 81,
1069
+ 76: K,
1070
+ 77: q,
1071
+ 79: J,
1072
+ 80: Y
1073
+ },
1074
+ {
1075
+ 35: 106,
1076
+ 75: 81,
1077
+ 76: K,
1078
+ 77: q,
1079
+ 79: J,
1080
+ 80: Y
1081
+ },
1082
+ {
1083
+ 35: 107,
1084
+ 75: 81,
1085
+ 76: K,
1086
+ 77: q,
1087
+ 79: J,
1088
+ 80: Y
1089
+ },
1090
+ {
1091
+ 35: 108,
1092
+ 75: 81,
1093
+ 76: K,
1094
+ 77: q,
1095
+ 79: J,
1096
+ 80: Y
1097
+ },
1098
+ {
1099
+ 35: 109,
1100
+ 75: 81,
1101
+ 76: K,
1102
+ 77: q,
1103
+ 79: J,
1104
+ 80: Y
1105
+ },
1106
+ {
1107
+ 35: 110,
1108
+ 75: 81,
1109
+ 76: K,
1110
+ 77: q,
1111
+ 79: J,
1112
+ 80: Y
1113
+ },
1114
+ {
1115
+ 35: 111,
1116
+ 75: 81,
1117
+ 76: K,
1118
+ 77: q,
1119
+ 79: J,
1120
+ 80: Y
1121
+ },
1122
+ {
1123
+ 35: 112,
1124
+ 75: 81,
1125
+ 76: K,
1126
+ 77: q,
1127
+ 79: J,
1128
+ 80: Y
1129
+ },
1130
+ {
1131
+ 35: 113,
1132
+ 75: 81,
1133
+ 76: K,
1134
+ 77: q,
1135
+ 79: J,
1136
+ 80: Y
1137
+ },
1138
+ {
1139
+ 35: 114,
1140
+ 75: 81,
1141
+ 76: K,
1142
+ 77: q,
1143
+ 79: J,
1144
+ 80: Y
1145
+ },
1146
+ {
1147
+ 35: 115,
1148
+ 75: 81,
1149
+ 76: K,
1150
+ 77: q,
1151
+ 79: J,
1152
+ 80: Y
1153
+ },
1154
+ {
1155
+ 20: 116,
1156
+ 29: 49,
1157
+ 30: 61,
1158
+ 32: 62,
1159
+ 34: s,
1160
+ 36: l,
1161
+ 37: u,
1162
+ 38: d,
1163
+ 39: f,
1164
+ 40: p,
1165
+ 41: m,
1166
+ 43: 23,
1167
+ 44: h,
1168
+ 45: g,
1169
+ 46: _,
1170
+ 47: v,
1171
+ 48: y,
1172
+ 49: b,
1173
+ 50: x,
1174
+ 51: S,
1175
+ 52: C,
1176
+ 53: w,
1177
+ 54: T,
1178
+ 55: E,
1179
+ 56: D,
1180
+ 57: O,
1181
+ 58: k,
1182
+ 59: A,
1183
+ 60: j,
1184
+ 61: M,
1185
+ 62: N,
1186
+ 63: P,
1187
+ 64: F,
1188
+ 65: I,
1189
+ 66: L,
1190
+ 67: R,
1191
+ 68: z,
1192
+ 69: B,
1193
+ 70: V,
1194
+ 71: H,
1195
+ 72: U,
1196
+ 73: W,
1197
+ 74: G
1198
+ },
1199
+ {
1200
+ 12: [1, 118],
1201
+ 33: [1, 117]
1202
+ },
1203
+ {
1204
+ 35: 119,
1205
+ 75: 81,
1206
+ 76: K,
1207
+ 77: q,
1208
+ 79: J,
1209
+ 80: Y
1210
+ },
1211
+ {
1212
+ 35: 120,
1213
+ 75: 81,
1214
+ 76: K,
1215
+ 77: q,
1216
+ 79: J,
1217
+ 80: Y
1218
+ },
1219
+ {
1220
+ 35: 121,
1221
+ 75: 81,
1222
+ 76: K,
1223
+ 77: q,
1224
+ 79: J,
1225
+ 80: Y
1226
+ },
1227
+ {
1228
+ 35: 122,
1229
+ 75: 81,
1230
+ 76: K,
1231
+ 77: q,
1232
+ 79: J,
1233
+ 80: Y
1234
+ },
1235
+ {
1236
+ 35: 123,
1237
+ 75: 81,
1238
+ 76: K,
1239
+ 77: q,
1240
+ 79: J,
1241
+ 80: Y
1242
+ },
1243
+ {
1244
+ 35: 124,
1245
+ 75: 81,
1246
+ 76: K,
1247
+ 77: q,
1248
+ 79: J,
1249
+ 80: Y
1250
+ },
1251
+ {
1252
+ 35: 125,
1253
+ 75: 81,
1254
+ 76: K,
1255
+ 77: q,
1256
+ 79: J,
1257
+ 80: Y
1258
+ },
1259
+ { 14: [1, 126] },
1260
+ { 14: [1, 127] },
1261
+ { 14: [1, 128] },
1262
+ { 14: [1, 129] },
1263
+ { 1: [2, 8] },
1264
+ t(ee, [2, 15]),
1265
+ t(te, [2, 17], {
1266
+ 21: 22,
1267
+ 19: 130,
1268
+ 22: n,
1269
+ 23: r,
1270
+ 24: i,
1271
+ 26: a,
1272
+ 28: o
1273
+ }),
1274
+ t(ee, [2, 37], {
1275
+ 19: 20,
1276
+ 20: 21,
1277
+ 21: 22,
1278
+ 43: 23,
1279
+ 29: 49,
1280
+ 30: 61,
1281
+ 32: 62,
1282
+ 13: 131,
1283
+ 22: n,
1284
+ 23: r,
1285
+ 24: i,
1286
+ 26: a,
1287
+ 28: o,
1288
+ 34: s,
1289
+ 36: l,
1290
+ 37: u,
1291
+ 38: d,
1292
+ 39: f,
1293
+ 40: p,
1294
+ 41: m,
1295
+ 44: h,
1296
+ 45: g,
1297
+ 46: _,
1298
+ 47: v,
1299
+ 48: y,
1300
+ 49: b,
1301
+ 50: x,
1302
+ 51: S,
1303
+ 52: C,
1304
+ 53: w,
1305
+ 54: T,
1306
+ 55: E,
1307
+ 56: D,
1308
+ 57: O,
1309
+ 58: k,
1310
+ 59: A,
1311
+ 60: j,
1312
+ 61: M,
1313
+ 62: N,
1314
+ 63: P,
1315
+ 64: F,
1316
+ 65: I,
1317
+ 66: L,
1318
+ 67: R,
1319
+ 68: z,
1320
+ 69: B,
1321
+ 70: V,
1322
+ 71: H,
1323
+ 72: U,
1324
+ 73: W,
1325
+ 74: G
1326
+ }),
1327
+ t(ne, [2, 21]),
1328
+ t(ne, [2, 22]),
1329
+ t(X, [2, 39]),
1330
+ t(re, [2, 71], {
1331
+ 75: 81,
1332
+ 35: 132,
1333
+ 76: K,
1334
+ 77: q,
1335
+ 79: J,
1336
+ 80: Y
1337
+ }),
1338
+ t(ie, [2, 73]),
1339
+ { 78: [1, 133] },
1340
+ t(ie, [2, 75]),
1341
+ t(ie, [2, 76]),
1342
+ t(X, [2, 40]),
1343
+ t(X, [2, 41]),
1344
+ t(X, [2, 42]),
1345
+ t(X, [2, 43]),
1346
+ t(X, [2, 44]),
1347
+ t(X, [2, 45]),
1348
+ t(X, [2, 46]),
1349
+ t(X, [2, 47]),
1350
+ t(X, [2, 48]),
1351
+ t(X, [2, 49]),
1352
+ t(X, [2, 50]),
1353
+ t(X, [2, 51]),
1354
+ t(X, [2, 52]),
1355
+ t(X, [2, 53]),
1356
+ t(X, [2, 54]),
1357
+ t(X, [2, 55]),
1358
+ t(X, [2, 56]),
1359
+ t(X, [2, 57]),
1360
+ t(X, [2, 58]),
1361
+ t(X, [2, 60]),
1362
+ t(X, [2, 61]),
1363
+ t(X, [2, 62]),
1364
+ t(X, [2, 63]),
1365
+ t(X, [2, 64]),
1366
+ t(X, [2, 65]),
1367
+ t(X, [2, 66]),
1368
+ t(X, [2, 67]),
1369
+ t(X, [2, 68]),
1370
+ t(X, [2, 69]),
1371
+ t(X, [2, 70]),
1372
+ {
1373
+ 31: 134,
1374
+ 42: [1, 135]
1375
+ },
1376
+ { 12: [1, 136] },
1377
+ { 33: [1, 137] },
1378
+ t(Z, [2, 28]),
1379
+ t(Z, [2, 29]),
1380
+ t(Z, [2, 30]),
1381
+ t(Z, [2, 31]),
1382
+ t(Z, [2, 32]),
1383
+ t(Z, [2, 33]),
1384
+ t(Z, [2, 34]),
1385
+ { 1: [2, 9] },
1386
+ { 1: [2, 10] },
1387
+ { 1: [2, 11] },
1388
+ { 1: [2, 12] },
1389
+ t(te, [2, 18]),
1390
+ t(ee, [2, 38]),
1391
+ t(re, [2, 72]),
1392
+ t(ie, [2, 74]),
1393
+ t(X, [2, 24]),
1394
+ t(X, [2, 35]),
1395
+ t(ae, [2, 25]),
1396
+ t(ae, [2, 26], { 12: [1, 138] }),
1397
+ t(ae, [2, 27])
1398
+ ],
1399
+ defaultActions: {
1400
+ 2: [2, 1],
1401
+ 3: [2, 2],
1402
+ 4: [2, 7],
1403
+ 5: [2, 3],
1404
+ 6: [2, 4],
1405
+ 7: [2, 5],
1406
+ 8: [2, 6],
1407
+ 74: [2, 8],
1408
+ 126: [2, 9],
1409
+ 127: [2, 10],
1410
+ 128: [2, 11],
1411
+ 129: [2, 12]
1412
+ },
1413
+ parseError: /* @__PURE__ */ e(function(e, t) {
1414
+ if (t.recoverable) this.trace(e);
1415
+ else {
1416
+ var n = Error(e);
1417
+ throw n.hash = t, n;
1418
+ }
1419
+ }, "parseError"),
1420
+ parse: /* @__PURE__ */ e(function(t) {
1421
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, l = "", u = 0, d = 0, f = 0, p = 2, m = 1, h = o.slice.call(arguments, 1), g = Object.create(this.lexer), _ = { yy: {} };
1422
+ for (var v in this.yy) Object.prototype.hasOwnProperty.call(this.yy, v) && (_.yy[v] = this.yy[v]);
1423
+ g.setInput(t, _.yy), _.yy.lexer = g, _.yy.parser = this, g.yylloc === void 0 && (g.yylloc = {});
1424
+ var y = g.yylloc;
1425
+ o.push(y);
1426
+ var b = g.options && g.options.ranges;
1427
+ typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1428
+ function x(e) {
1429
+ r.length -= 2 * e, a.length -= e, o.length -= e;
1430
+ }
1431
+ e(x, "popStack");
1432
+ function S() {
1433
+ var e = i.pop() || g.lex() || m;
1434
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
1435
+ }
1436
+ e(S, "lex");
1437
+ for (var C, w, T, E, D, O = {}, k, A, j, M;;) {
1438
+ if (T = r[r.length - 1], this.defaultActions[T] ? E = this.defaultActions[T] : (C ??= S(), E = s[T] && s[T][C]), E === void 0 || !E.length || !E[0]) {
1439
+ var N = "";
1440
+ for (k in M = [], s[T]) this.terminals_[k] && k > p && M.push("'" + this.terminals_[k] + "'");
1441
+ N = g.showPosition ? "Parse error on line " + (u + 1) + ":\n" + g.showPosition() + "\nExpecting " + M.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Parse error on line " + (u + 1) + ": Unexpected " + (C == m ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(N, {
1442
+ text: g.match,
1443
+ token: this.terminals_[C] || C,
1444
+ line: g.yylineno,
1445
+ loc: y,
1446
+ expected: M
1447
+ });
1448
+ }
1449
+ if (E[0] instanceof Array && E.length > 1) throw Error("Parse Error: multiple actions possible at state: " + T + ", token: " + C);
1450
+ switch (E[0]) {
1451
+ case 1:
1452
+ r.push(C), a.push(g.yytext), o.push(g.yylloc), r.push(E[1]), C = null, w ? (C = w, w = null) : (d = g.yyleng, l = g.yytext, u = g.yylineno, y = g.yylloc, f > 0 && f--);
1453
+ break;
1454
+ case 2:
1455
+ if (A = this.productions_[E[1]][1], O.$ = a[a.length - A], O._$ = {
1456
+ first_line: o[o.length - (A || 1)].first_line,
1457
+ last_line: o[o.length - 1].last_line,
1458
+ first_column: o[o.length - (A || 1)].first_column,
1459
+ last_column: o[o.length - 1].last_column
1460
+ }, b && (O._$.range = [o[o.length - (A || 1)].range[0], o[o.length - 1].range[1]]), D = this.performAction.apply(O, [
1461
+ l,
1462
+ d,
1463
+ u,
1464
+ _.yy,
1465
+ E[1],
1466
+ a,
1467
+ o
1468
+ ].concat(h)), D !== void 0) return D;
1469
+ A && (r = r.slice(0, -1 * A * 2), a = a.slice(0, -1 * A), o = o.slice(0, -1 * A)), r.push(this.productions_[E[1]][0]), a.push(O.$), o.push(O._$), j = s[r[r.length - 2]][r[r.length - 1]], r.push(j);
1470
+ break;
1471
+ case 3: return !0;
1472
+ }
1473
+ }
1474
+ return !0;
1475
+ }, "parse")
1476
+ };
1477
+ oe.lexer = /* @__PURE__ */ (function() {
1478
+ return {
1479
+ EOF: 1,
1480
+ parseError: /* @__PURE__ */ e(function(e, t) {
1481
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
1482
+ else throw Error(e);
1483
+ }, "parseError"),
1484
+ setInput: /* @__PURE__ */ e(function(e, t) {
1485
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1486
+ first_line: 1,
1487
+ first_column: 0,
1488
+ last_line: 1,
1489
+ last_column: 0
1490
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1491
+ }, "setInput"),
1492
+ input: /* @__PURE__ */ e(function() {
1493
+ var e = this._input[0];
1494
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1495
+ }, "input"),
1496
+ unput: /* @__PURE__ */ e(function(e) {
1497
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1498
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1499
+ var r = this.match.split(/(?:\r\n?|\n)/g);
1500
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1501
+ var i = this.yylloc.range;
1502
+ return this.yylloc = {
1503
+ first_line: this.yylloc.first_line,
1504
+ last_line: this.yylineno + 1,
1505
+ first_column: this.yylloc.first_column,
1506
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1507
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1508
+ }, "unput"),
1509
+ more: /* @__PURE__ */ e(function() {
1510
+ return this._more = !0, this;
1511
+ }, "more"),
1512
+ reject: /* @__PURE__ */ e(function() {
1513
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1514
+ else 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).\n" + this.showPosition(), {
1515
+ text: "",
1516
+ token: null,
1517
+ line: this.yylineno
1518
+ });
1519
+ return this;
1520
+ }, "reject"),
1521
+ less: /* @__PURE__ */ e(function(e) {
1522
+ this.unput(this.match.slice(e));
1523
+ }, "less"),
1524
+ pastInput: /* @__PURE__ */ e(function() {
1525
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
1526
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1527
+ }, "pastInput"),
1528
+ upcomingInput: /* @__PURE__ */ e(function() {
1529
+ var e = this.match;
1530
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1531
+ }, "upcomingInput"),
1532
+ showPosition: /* @__PURE__ */ e(function() {
1533
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
1534
+ return e + this.upcomingInput() + "\n" + t + "^";
1535
+ }, "showPosition"),
1536
+ test_match: /* @__PURE__ */ e(function(e, t) {
1537
+ var n, r, i;
1538
+ if (this.options.backtrack_lexer && (i = {
1539
+ yylineno: this.yylineno,
1540
+ yylloc: {
1541
+ first_line: this.yylloc.first_line,
1542
+ last_line: this.last_line,
1543
+ first_column: this.yylloc.first_column,
1544
+ last_column: this.yylloc.last_column
1545
+ },
1546
+ yytext: this.yytext,
1547
+ match: this.match,
1548
+ matches: this.matches,
1549
+ matched: this.matched,
1550
+ yyleng: this.yyleng,
1551
+ offset: this.offset,
1552
+ _more: this._more,
1553
+ _input: this._input,
1554
+ yy: this.yy,
1555
+ conditionStack: this.conditionStack.slice(0),
1556
+ done: this.done
1557
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
1558
+ first_line: this.yylloc.last_line,
1559
+ last_line: this.yylineno + 1,
1560
+ first_column: this.yylloc.last_column,
1561
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1562
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
1563
+ if (this._backtrack) {
1564
+ for (var a in i) this[a] = i[a];
1565
+ return !1;
1566
+ }
1567
+ return !1;
1568
+ }, "test_match"),
1569
+ next: /* @__PURE__ */ e(function() {
1570
+ if (this.done) return this.EOF;
1571
+ this._input || (this.done = !0);
1572
+ var e, t, n, r;
1573
+ this._more || (this.yytext = "", this.match = "");
1574
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
1575
+ if (t = n, r = a, this.options.backtrack_lexer) {
1576
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
1577
+ if (this._backtrack) {
1578
+ t = !1;
1579
+ continue;
1580
+ } else return !1;
1581
+ } else if (!this.options.flex) break;
1582
+ }
1583
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1584
+ text: "",
1585
+ token: null,
1586
+ line: this.yylineno
1587
+ });
1588
+ }, "next"),
1589
+ lex: /* @__PURE__ */ e(function() {
1590
+ return this.next() || this.lex();
1591
+ }, "lex"),
1592
+ begin: /* @__PURE__ */ e(function(e) {
1593
+ this.conditionStack.push(e);
1594
+ }, "begin"),
1595
+ popState: /* @__PURE__ */ e(function() {
1596
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1597
+ }, "popState"),
1598
+ _currentRules: /* @__PURE__ */ e(function() {
1599
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1600
+ }, "_currentRules"),
1601
+ topState: /* @__PURE__ */ e(function(e) {
1602
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1603
+ }, "topState"),
1604
+ pushState: /* @__PURE__ */ e(function(e) {
1605
+ this.begin(e);
1606
+ }, "pushState"),
1607
+ stateStackSize: /* @__PURE__ */ e(function() {
1608
+ return this.conditionStack.length;
1609
+ }, "stateStackSize"),
1610
+ options: {},
1611
+ performAction: /* @__PURE__ */ e(function(e, t, n, r) {
1612
+ switch (n) {
1613
+ case 0: return 6;
1614
+ case 1: return 7;
1615
+ case 2: return 8;
1616
+ case 3: return 9;
1617
+ case 4: return 22;
1618
+ case 5: return 23;
1619
+ case 6: return this.begin("acc_title"), 24;
1620
+ case 7: return this.popState(), "acc_title_value";
1621
+ case 8: return this.begin("acc_descr"), 26;
1622
+ case 9: return this.popState(), "acc_descr_value";
1623
+ case 10:
1624
+ this.begin("acc_descr_multiline");
1625
+ break;
1626
+ case 11:
1627
+ this.popState();
1628
+ break;
1629
+ case 12: return "acc_descr_multiline_value";
1630
+ case 13: break;
1631
+ case 14:
1632
+ c;
1633
+ break;
1634
+ case 15: return 12;
1635
+ case 16: break;
1636
+ case 17: return 11;
1637
+ case 18: return 15;
1638
+ case 19: return 16;
1639
+ case 20: return 17;
1640
+ case 21: return 18;
1641
+ case 22: return this.begin("person_ext"), 45;
1642
+ case 23: return this.begin("person"), 44;
1643
+ case 24: return this.begin("system_ext_queue"), 51;
1644
+ case 25: return this.begin("system_ext_db"), 50;
1645
+ case 26: return this.begin("system_ext"), 49;
1646
+ case 27: return this.begin("system_queue"), 48;
1647
+ case 28: return this.begin("system_db"), 47;
1648
+ case 29: return this.begin("system"), 46;
1649
+ case 30: return this.begin("boundary"), 37;
1650
+ case 31: return this.begin("enterprise_boundary"), 34;
1651
+ case 32: return this.begin("system_boundary"), 36;
1652
+ case 33: return this.begin("container_ext_queue"), 57;
1653
+ case 34: return this.begin("container_ext_db"), 56;
1654
+ case 35: return this.begin("container_ext"), 55;
1655
+ case 36: return this.begin("container_queue"), 54;
1656
+ case 37: return this.begin("container_db"), 53;
1657
+ case 38: return this.begin("container"), 52;
1658
+ case 39: return this.begin("container_boundary"), 38;
1659
+ case 40: return this.begin("component_ext_queue"), 63;
1660
+ case 41: return this.begin("component_ext_db"), 62;
1661
+ case 42: return this.begin("component_ext"), 61;
1662
+ case 43: return this.begin("component_queue"), 60;
1663
+ case 44: return this.begin("component_db"), 59;
1664
+ case 45: return this.begin("component"), 58;
1665
+ case 46: return this.begin("node"), 39;
1666
+ case 47: return this.begin("node"), 39;
1667
+ case 48: return this.begin("node_l"), 40;
1668
+ case 49: return this.begin("node_r"), 41;
1669
+ case 50: return this.begin("rel"), 64;
1670
+ case 51: return this.begin("birel"), 65;
1671
+ case 52: return this.begin("rel_u"), 66;
1672
+ case 53: return this.begin("rel_u"), 66;
1673
+ case 54: return this.begin("rel_d"), 67;
1674
+ case 55: return this.begin("rel_d"), 67;
1675
+ case 56: return this.begin("rel_l"), 68;
1676
+ case 57: return this.begin("rel_l"), 68;
1677
+ case 58: return this.begin("rel_r"), 69;
1678
+ case 59: return this.begin("rel_r"), 69;
1679
+ case 60: return this.begin("rel_b"), 70;
1680
+ case 61: return this.begin("rel_index"), 71;
1681
+ case 62: return this.begin("update_el_style"), 72;
1682
+ case 63: return this.begin("update_rel_style"), 73;
1683
+ case 64: return this.begin("update_layout_config"), 74;
1684
+ case 65: return "EOF_IN_STRUCT";
1685
+ case 66: return this.begin("attribute"), "ATTRIBUTE_EMPTY";
1686
+ case 67:
1687
+ this.begin("attribute");
1688
+ break;
1689
+ case 68:
1690
+ this.popState(), this.popState();
1691
+ break;
1692
+ case 69: return 80;
1693
+ case 70: break;
1694
+ case 71: return 80;
1695
+ case 72:
1696
+ this.begin("string");
1697
+ break;
1698
+ case 73:
1699
+ this.popState();
1700
+ break;
1701
+ case 74: return "STR";
1702
+ case 75:
1703
+ this.begin("string_kv");
1704
+ break;
1705
+ case 76: return this.begin("string_kv_key"), "STR_KEY";
1706
+ case 77:
1707
+ this.popState(), this.begin("string_kv_value");
1708
+ break;
1709
+ case 78: return "STR_VALUE";
1710
+ case 79:
1711
+ this.popState(), this.popState();
1712
+ break;
1713
+ case 80: return "STR";
1714
+ case 81: return "LBRACE";
1715
+ case 82: return "RBRACE";
1716
+ case 83: return "SPACE";
1717
+ case 84: return "EOL";
1718
+ case 85: return 14;
1719
+ }
1720
+ }, "anonymous"),
1721
+ rules: [
1722
+ /^(?:.*direction\s+TB[^\n]*)/,
1723
+ /^(?:.*direction\s+BT[^\n]*)/,
1724
+ /^(?:.*direction\s+RL[^\n]*)/,
1725
+ /^(?:.*direction\s+LR[^\n]*)/,
1726
+ /^(?:title\s[^#\n;]+)/,
1727
+ /^(?:accDescription\s[^#\n;]+)/,
1728
+ /^(?:accTitle\s*:\s*)/,
1729
+ /^(?:(?!\n||)*[^\n]*)/,
1730
+ /^(?:accDescr\s*:\s*)/,
1731
+ /^(?:(?!\n||)*[^\n]*)/,
1732
+ /^(?:accDescr\s*\{\s*)/,
1733
+ /^(?:[\}])/,
1734
+ /^(?:[^\}]*)/,
1735
+ /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,
1736
+ /^(?:%%[^\n]*(\r?\n)*)/,
1737
+ /^(?:\s*(\r?\n)+)/,
1738
+ /^(?:\s+)/,
1739
+ /^(?:C4Context\b)/,
1740
+ /^(?:C4Container\b)/,
1741
+ /^(?:C4Component\b)/,
1742
+ /^(?:C4Dynamic\b)/,
1743
+ /^(?:C4Deployment\b)/,
1744
+ /^(?:Person_Ext\b)/,
1745
+ /^(?:Person\b)/,
1746
+ /^(?:SystemQueue_Ext\b)/,
1747
+ /^(?:SystemDb_Ext\b)/,
1748
+ /^(?:System_Ext\b)/,
1749
+ /^(?:SystemQueue\b)/,
1750
+ /^(?:SystemDb\b)/,
1751
+ /^(?:System\b)/,
1752
+ /^(?:Boundary\b)/,
1753
+ /^(?:Enterprise_Boundary\b)/,
1754
+ /^(?:System_Boundary\b)/,
1755
+ /^(?:ContainerQueue_Ext\b)/,
1756
+ /^(?:ContainerDb_Ext\b)/,
1757
+ /^(?:Container_Ext\b)/,
1758
+ /^(?:ContainerQueue\b)/,
1759
+ /^(?:ContainerDb\b)/,
1760
+ /^(?:Container\b)/,
1761
+ /^(?:Container_Boundary\b)/,
1762
+ /^(?:ComponentQueue_Ext\b)/,
1763
+ /^(?:ComponentDb_Ext\b)/,
1764
+ /^(?:Component_Ext\b)/,
1765
+ /^(?:ComponentQueue\b)/,
1766
+ /^(?:ComponentDb\b)/,
1767
+ /^(?:Component\b)/,
1768
+ /^(?:Deployment_Node\b)/,
1769
+ /^(?:Node\b)/,
1770
+ /^(?:Node_L\b)/,
1771
+ /^(?:Node_R\b)/,
1772
+ /^(?:Rel\b)/,
1773
+ /^(?:BiRel\b)/,
1774
+ /^(?:Rel_Up\b)/,
1775
+ /^(?:Rel_U\b)/,
1776
+ /^(?:Rel_Down\b)/,
1777
+ /^(?:Rel_D\b)/,
1778
+ /^(?:Rel_Left\b)/,
1779
+ /^(?:Rel_L\b)/,
1780
+ /^(?:Rel_Right\b)/,
1781
+ /^(?:Rel_R\b)/,
1782
+ /^(?:Rel_Back\b)/,
1783
+ /^(?:RelIndex\b)/,
1784
+ /^(?:UpdateElementStyle\b)/,
1785
+ /^(?:UpdateRelStyle\b)/,
1786
+ /^(?:UpdateLayoutConfig\b)/,
1787
+ /^(?:$)/,
1788
+ /^(?:[(][ ]*[,])/,
1789
+ /^(?:[(])/,
1790
+ /^(?:[)])/,
1791
+ /^(?:,,)/,
1792
+ /^(?:,)/,
1793
+ /^(?:[ ]*["]["])/,
1794
+ /^(?:[ ]*["])/,
1795
+ /^(?:["])/,
1796
+ /^(?:[^"]*)/,
1797
+ /^(?:[ ]*[\$])/,
1798
+ /^(?:[^=]*)/,
1799
+ /^(?:[=][ ]*["])/,
1800
+ /^(?:[^"]+)/,
1801
+ /^(?:["])/,
1802
+ /^(?:[^,]+)/,
1803
+ /^(?:\{)/,
1804
+ /^(?:\})/,
1805
+ /^(?:[\s]+)/,
1806
+ /^(?:[\n\r]+)/,
1807
+ /^(?:$)/
1808
+ ],
1809
+ conditions: {
1810
+ acc_descr_multiline: {
1811
+ rules: [11, 12],
1812
+ inclusive: !1
1813
+ },
1814
+ acc_descr: {
1815
+ rules: [9],
1816
+ inclusive: !1
1817
+ },
1818
+ acc_title: {
1819
+ rules: [7],
1820
+ inclusive: !1
1821
+ },
1822
+ string_kv_value: {
1823
+ rules: [78, 79],
1824
+ inclusive: !1
1825
+ },
1826
+ string_kv_key: {
1827
+ rules: [77],
1828
+ inclusive: !1
1829
+ },
1830
+ string_kv: {
1831
+ rules: [76],
1832
+ inclusive: !1
1833
+ },
1834
+ string: {
1835
+ rules: [73, 74],
1836
+ inclusive: !1
1837
+ },
1838
+ attribute: {
1839
+ rules: [
1840
+ 68,
1841
+ 69,
1842
+ 70,
1843
+ 71,
1844
+ 72,
1845
+ 75,
1846
+ 80
1847
+ ],
1848
+ inclusive: !1
1849
+ },
1850
+ update_layout_config: {
1851
+ rules: [
1852
+ 65,
1853
+ 66,
1854
+ 67,
1855
+ 68
1856
+ ],
1857
+ inclusive: !1
1858
+ },
1859
+ update_rel_style: {
1860
+ rules: [
1861
+ 65,
1862
+ 66,
1863
+ 67,
1864
+ 68
1865
+ ],
1866
+ inclusive: !1
1867
+ },
1868
+ update_el_style: {
1869
+ rules: [
1870
+ 65,
1871
+ 66,
1872
+ 67,
1873
+ 68
1874
+ ],
1875
+ inclusive: !1
1876
+ },
1877
+ rel_b: {
1878
+ rules: [
1879
+ 65,
1880
+ 66,
1881
+ 67,
1882
+ 68
1883
+ ],
1884
+ inclusive: !1
1885
+ },
1886
+ rel_r: {
1887
+ rules: [
1888
+ 65,
1889
+ 66,
1890
+ 67,
1891
+ 68
1892
+ ],
1893
+ inclusive: !1
1894
+ },
1895
+ rel_l: {
1896
+ rules: [
1897
+ 65,
1898
+ 66,
1899
+ 67,
1900
+ 68
1901
+ ],
1902
+ inclusive: !1
1903
+ },
1904
+ rel_d: {
1905
+ rules: [
1906
+ 65,
1907
+ 66,
1908
+ 67,
1909
+ 68
1910
+ ],
1911
+ inclusive: !1
1912
+ },
1913
+ rel_u: {
1914
+ rules: [
1915
+ 65,
1916
+ 66,
1917
+ 67,
1918
+ 68
1919
+ ],
1920
+ inclusive: !1
1921
+ },
1922
+ rel_bi: {
1923
+ rules: [],
1924
+ inclusive: !1
1925
+ },
1926
+ rel: {
1927
+ rules: [
1928
+ 65,
1929
+ 66,
1930
+ 67,
1931
+ 68
1932
+ ],
1933
+ inclusive: !1
1934
+ },
1935
+ node_r: {
1936
+ rules: [
1937
+ 65,
1938
+ 66,
1939
+ 67,
1940
+ 68
1941
+ ],
1942
+ inclusive: !1
1943
+ },
1944
+ node_l: {
1945
+ rules: [
1946
+ 65,
1947
+ 66,
1948
+ 67,
1949
+ 68
1950
+ ],
1951
+ inclusive: !1
1952
+ },
1953
+ node: {
1954
+ rules: [
1955
+ 65,
1956
+ 66,
1957
+ 67,
1958
+ 68
1959
+ ],
1960
+ inclusive: !1
1961
+ },
1962
+ index: {
1963
+ rules: [],
1964
+ inclusive: !1
1965
+ },
1966
+ rel_index: {
1967
+ rules: [
1968
+ 65,
1969
+ 66,
1970
+ 67,
1971
+ 68
1972
+ ],
1973
+ inclusive: !1
1974
+ },
1975
+ component_ext_queue: {
1976
+ rules: [
1977
+ 65,
1978
+ 66,
1979
+ 67,
1980
+ 68
1981
+ ],
1982
+ inclusive: !1
1983
+ },
1984
+ component_ext_db: {
1985
+ rules: [
1986
+ 65,
1987
+ 66,
1988
+ 67,
1989
+ 68
1990
+ ],
1991
+ inclusive: !1
1992
+ },
1993
+ component_ext: {
1994
+ rules: [
1995
+ 65,
1996
+ 66,
1997
+ 67,
1998
+ 68
1999
+ ],
2000
+ inclusive: !1
2001
+ },
2002
+ component_queue: {
2003
+ rules: [
2004
+ 65,
2005
+ 66,
2006
+ 67,
2007
+ 68
2008
+ ],
2009
+ inclusive: !1
2010
+ },
2011
+ component_db: {
2012
+ rules: [
2013
+ 65,
2014
+ 66,
2015
+ 67,
2016
+ 68
2017
+ ],
2018
+ inclusive: !1
2019
+ },
2020
+ component: {
2021
+ rules: [
2022
+ 65,
2023
+ 66,
2024
+ 67,
2025
+ 68
2026
+ ],
2027
+ inclusive: !1
2028
+ },
2029
+ container_boundary: {
2030
+ rules: [
2031
+ 65,
2032
+ 66,
2033
+ 67,
2034
+ 68
2035
+ ],
2036
+ inclusive: !1
2037
+ },
2038
+ container_ext_queue: {
2039
+ rules: [
2040
+ 65,
2041
+ 66,
2042
+ 67,
2043
+ 68
2044
+ ],
2045
+ inclusive: !1
2046
+ },
2047
+ container_ext_db: {
2048
+ rules: [
2049
+ 65,
2050
+ 66,
2051
+ 67,
2052
+ 68
2053
+ ],
2054
+ inclusive: !1
2055
+ },
2056
+ container_ext: {
2057
+ rules: [
2058
+ 65,
2059
+ 66,
2060
+ 67,
2061
+ 68
2062
+ ],
2063
+ inclusive: !1
2064
+ },
2065
+ container_queue: {
2066
+ rules: [
2067
+ 65,
2068
+ 66,
2069
+ 67,
2070
+ 68
2071
+ ],
2072
+ inclusive: !1
2073
+ },
2074
+ container_db: {
2075
+ rules: [
2076
+ 65,
2077
+ 66,
2078
+ 67,
2079
+ 68
2080
+ ],
2081
+ inclusive: !1
2082
+ },
2083
+ container: {
2084
+ rules: [
2085
+ 65,
2086
+ 66,
2087
+ 67,
2088
+ 68
2089
+ ],
2090
+ inclusive: !1
2091
+ },
2092
+ birel: {
2093
+ rules: [
2094
+ 65,
2095
+ 66,
2096
+ 67,
2097
+ 68
2098
+ ],
2099
+ inclusive: !1
2100
+ },
2101
+ system_boundary: {
2102
+ rules: [
2103
+ 65,
2104
+ 66,
2105
+ 67,
2106
+ 68
2107
+ ],
2108
+ inclusive: !1
2109
+ },
2110
+ enterprise_boundary: {
2111
+ rules: [
2112
+ 65,
2113
+ 66,
2114
+ 67,
2115
+ 68
2116
+ ],
2117
+ inclusive: !1
2118
+ },
2119
+ boundary: {
2120
+ rules: [
2121
+ 65,
2122
+ 66,
2123
+ 67,
2124
+ 68
2125
+ ],
2126
+ inclusive: !1
2127
+ },
2128
+ system_ext_queue: {
2129
+ rules: [
2130
+ 65,
2131
+ 66,
2132
+ 67,
2133
+ 68
2134
+ ],
2135
+ inclusive: !1
2136
+ },
2137
+ system_ext_db: {
2138
+ rules: [
2139
+ 65,
2140
+ 66,
2141
+ 67,
2142
+ 68
2143
+ ],
2144
+ inclusive: !1
2145
+ },
2146
+ system_ext: {
2147
+ rules: [
2148
+ 65,
2149
+ 66,
2150
+ 67,
2151
+ 68
2152
+ ],
2153
+ inclusive: !1
2154
+ },
2155
+ system_queue: {
2156
+ rules: [
2157
+ 65,
2158
+ 66,
2159
+ 67,
2160
+ 68
2161
+ ],
2162
+ inclusive: !1
2163
+ },
2164
+ system_db: {
2165
+ rules: [
2166
+ 65,
2167
+ 66,
2168
+ 67,
2169
+ 68
2170
+ ],
2171
+ inclusive: !1
2172
+ },
2173
+ system: {
2174
+ rules: [
2175
+ 65,
2176
+ 66,
2177
+ 67,
2178
+ 68
2179
+ ],
2180
+ inclusive: !1
2181
+ },
2182
+ person_ext: {
2183
+ rules: [
2184
+ 65,
2185
+ 66,
2186
+ 67,
2187
+ 68
2188
+ ],
2189
+ inclusive: !1
2190
+ },
2191
+ person: {
2192
+ rules: [
2193
+ 65,
2194
+ 66,
2195
+ 67,
2196
+ 68
2197
+ ],
2198
+ inclusive: !1
2199
+ },
2200
+ INITIAL: {
2201
+ rules: [
2202
+ 0,
2203
+ 1,
2204
+ 2,
2205
+ 3,
2206
+ 4,
2207
+ 5,
2208
+ 6,
2209
+ 8,
2210
+ 10,
2211
+ 13,
2212
+ 14,
2213
+ 15,
2214
+ 16,
2215
+ 17,
2216
+ 18,
2217
+ 19,
2218
+ 20,
2219
+ 21,
2220
+ 22,
2221
+ 23,
2222
+ 24,
2223
+ 25,
2224
+ 26,
2225
+ 27,
2226
+ 28,
2227
+ 29,
2228
+ 30,
2229
+ 31,
2230
+ 32,
2231
+ 33,
2232
+ 34,
2233
+ 35,
2234
+ 36,
2235
+ 37,
2236
+ 38,
2237
+ 39,
2238
+ 40,
2239
+ 41,
2240
+ 42,
2241
+ 43,
2242
+ 44,
2243
+ 45,
2244
+ 46,
2245
+ 47,
2246
+ 48,
2247
+ 49,
2248
+ 50,
2249
+ 51,
2250
+ 52,
2251
+ 53,
2252
+ 54,
2253
+ 55,
2254
+ 56,
2255
+ 57,
2256
+ 58,
2257
+ 59,
2258
+ 60,
2259
+ 61,
2260
+ 62,
2261
+ 63,
2262
+ 64,
2263
+ 81,
2264
+ 82,
2265
+ 83,
2266
+ 84,
2267
+ 85
2268
+ ],
2269
+ inclusive: !0
2270
+ }
2271
+ }
2272
+ };
2273
+ })();
2274
+ function se() {
2275
+ this.yy = {};
2276
+ }
2277
+ return e(se, "Parser"), se.prototype = oe, oe.Parser = se, new se();
2278
+ })();
2279
+ y.parser = y;
2280
+ var b = y, x = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), S = /* @__PURE__ */ new Set([
2281
+ "label",
2282
+ "descr",
2283
+ "techn",
2284
+ "type"
2285
+ ]), C = /* @__PURE__ */ e((e, t) => {
2286
+ for (let [n, r] of Object.entries(t)) if (r !== void 0) if (typeof r == "object") {
2287
+ let [t, n] = Object.entries(r)[0];
2288
+ e[t] = S.has(t) ? { text: n } : n;
2289
+ } else e[n] = r;
2290
+ }, "assignAttributes"), w = /* @__PURE__ */ e(() => ({
2291
+ alias: "global",
2292
+ label: { text: "global" },
2293
+ type: { text: "global" },
2294
+ tags: null,
2295
+ link: null,
2296
+ parentBoundary: ""
2297
+ }), "createGlobalBoundary"), T = [], E = [""], D = "global", O = "", k = [w()], A = [], j = "", M = !1, N = 4, P = 2, F, I = /* @__PURE__ */ e(function() {
2298
+ return F;
2299
+ }, "getC4Type"), L = /* @__PURE__ */ e(function(e) {
2300
+ F = f(e, u());
2301
+ }, "setC4Type"), R = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s, l) {
2302
+ if (e == null || t == null || n == null || r == null) return;
2303
+ let u = {}, d = A.find((e) => e.from === t && e.to === n);
2304
+ if (d ? u = d : A.push(u), u.type = e, u.from = t, u.to = n, u.label = { text: r }, i == null) u.techn ??= { text: "" };
2305
+ else if (typeof i == "object") {
2306
+ let [e, t] = Object.entries(i)[0];
2307
+ u[e] = S.has(e) ? { text: t } : t;
2308
+ } else u.techn = { text: i };
2309
+ if (a == null) u.descr ??= { text: "" };
2310
+ else if (typeof a == "object") {
2311
+ let [e, t] = Object.entries(a)[0];
2312
+ u[e] = S.has(e) ? { text: t } : t;
2313
+ } else u.descr = { text: a };
2314
+ C(u, {
2315
+ sprite: o,
2316
+ tags: s,
2317
+ link: l
2318
+ }), u.wrap = le();
2319
+ }, "addRel"), z = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
2320
+ if (t === null || n === null) return;
2321
+ let s = {}, l = T.find((e) => e.alias === t);
2322
+ if (l && t === l.alias ? s = l : (s.alias = t, T.push(s)), n == null ? s.label = { text: "" } : s.label = { text: n }, r == null) s.descr ??= { text: "" };
2323
+ else if (typeof r == "object") {
2324
+ let [e, t] = Object.entries(r)[0];
2325
+ s[e] = S.has(e) ? { text: t } : t;
2326
+ } else s.descr = { text: r };
2327
+ C(s, {
2328
+ sprite: i,
2329
+ tags: a,
2330
+ link: o
2331
+ }), s.typeC4Shape = { text: e }, s.parentBoundary = D, s.wrap = le();
2332
+ }, "addPersonOrSystem"), B = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2333
+ if (t === null || n === null) return;
2334
+ let l = {}, u = T.find((e) => e.alias === t);
2335
+ if (u && t === u.alias ? l = u : (l.alias = t, T.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn ??= { text: "" };
2336
+ else if (typeof r == "object") {
2337
+ let [e, t] = Object.entries(r)[0];
2338
+ l[e] = S.has(e) ? { text: t } : t;
2339
+ } else l.techn = { text: r };
2340
+ if (i == null) l.descr ??= { text: "" };
2341
+ else if (typeof i == "object") {
2342
+ let [e, t] = Object.entries(i)[0];
2343
+ l[e] = S.has(e) ? { text: t } : t;
2344
+ } else l.descr = { text: i };
2345
+ C(l, {
2346
+ sprite: a,
2347
+ tags: o,
2348
+ link: s
2349
+ }), l.wrap = le(), l.typeC4Shape = { text: e }, l.parentBoundary = D;
2350
+ }, "addContainer"), V = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2351
+ if (t === null || n === null) return;
2352
+ let l = {}, u = T.find((e) => e.alias === t);
2353
+ if (u && t === u.alias ? l = u : (l.alias = t, T.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn ??= { text: "" };
2354
+ else if (typeof r == "object") {
2355
+ let [e, t] = Object.entries(r)[0];
2356
+ l[e] = S.has(e) ? { text: t } : t;
2357
+ } else l.techn = { text: r };
2358
+ if (i == null) l.descr ??= { text: "" };
2359
+ else if (typeof i == "object") {
2360
+ let [e, t] = Object.entries(i)[0];
2361
+ l[e] = S.has(e) ? { text: t } : t;
2362
+ } else l.descr = { text: i };
2363
+ C(l, {
2364
+ sprite: a,
2365
+ tags: o,
2366
+ link: s
2367
+ }), l.wrap = le(), l.typeC4Shape = { text: e }, l.parentBoundary = D;
2368
+ }, "addComponent"), H = /* @__PURE__ */ e(function(e, t, n, r, i) {
2369
+ if (e === null || t === null) return;
2370
+ let a = {}, o = k.find((t) => t.alias === e);
2371
+ if (o && e === o.alias ? a = o : (a.alias = e, k.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "system" };
2372
+ else if (typeof n == "object") {
2373
+ let [e, t] = Object.entries(n)[0];
2374
+ a[e] = S.has(e) ? { text: t } : t;
2375
+ } else a.type = { text: n };
2376
+ C(a, {
2377
+ tags: r,
2378
+ link: i
2379
+ }), a.parentBoundary = D, a.wrap = le(), O = D, D = e, E.push(O);
2380
+ }, "addPersonOrSystemBoundary"), U = /* @__PURE__ */ e(function(e, t, n, r, i) {
2381
+ if (e === null || t === null) return;
2382
+ let a = {}, o = k.find((t) => t.alias === e);
2383
+ if (o && e === o.alias ? a = o : (a.alias = e, k.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "container" };
2384
+ else if (typeof n == "object") {
2385
+ let [e, t] = Object.entries(n)[0];
2386
+ a[e] = S.has(e) ? { text: t } : t;
2387
+ } else a.type = { text: n };
2388
+ C(a, {
2389
+ tags: r,
2390
+ link: i
2391
+ }), a.parentBoundary = D, a.wrap = le(), O = D, D = e, E.push(O);
2392
+ }, "addContainerBoundary"), W = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2393
+ if (t === null || n === null) return;
2394
+ let l = {}, u = k.find((e) => e.alias === t);
2395
+ if (u && t === u.alias ? l = u : (l.alias = t, k.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.type = { text: "node" };
2396
+ else if (typeof r == "object") {
2397
+ let [e, t] = Object.entries(r)[0];
2398
+ l[e] = S.has(e) ? { text: t } : t;
2399
+ } else l.type = { text: r };
2400
+ if (i == null) l.descr ??= { text: "" };
2401
+ else if (typeof i == "object") {
2402
+ let [e, t] = Object.entries(i)[0];
2403
+ l[e] = S.has(e) ? { text: t } : t;
2404
+ } else l.descr = { text: i };
2405
+ C(l, {
2406
+ tags: o,
2407
+ link: s
2408
+ }), l.nodeType = e, l.parentBoundary = D, l.wrap = le(), O = D, D = t, E.push(O);
2409
+ }, "addDeploymentNode"), G = /* @__PURE__ */ e(function() {
2410
+ D = O, E.pop(), O = E.pop(), E.push(O);
2411
+ }, "popBoundaryParseStack"), ee = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s, l, u, d) {
2412
+ let f = T.find((e) => e.alias === t);
2413
+ if (!(f === void 0 && (f = k.find((e) => e.alias === t), f === void 0))) {
2414
+ if (n != null) if (typeof n == "object") {
2415
+ let [e, t] = Object.entries(n)[0];
2416
+ f[e] = t;
2417
+ } else f.bgColor = n;
2418
+ if (r != null) if (typeof r == "object") {
2419
+ let [e, t] = Object.entries(r)[0];
2420
+ f[e] = t;
2421
+ } else f.fontColor = r;
2422
+ if (i != null) if (typeof i == "object") {
2423
+ let [e, t] = Object.entries(i)[0];
2424
+ f[e] = t;
2425
+ } else f.borderColor = i;
2426
+ if (a != null) if (typeof a == "object") {
2427
+ let [e, t] = Object.entries(a)[0];
2428
+ f[e] = t;
2429
+ } else f.shadowing = a;
2430
+ if (o != null) if (typeof o == "object") {
2431
+ let [e, t] = Object.entries(o)[0];
2432
+ f[e] = t;
2433
+ } else f.shape = o;
2434
+ if (s != null) if (typeof s == "object") {
2435
+ let [e, t] = Object.entries(s)[0];
2436
+ f[e] = t;
2437
+ } else f.sprite = s;
2438
+ if (l != null) if (typeof l == "object") {
2439
+ let [e, t] = Object.entries(l)[0];
2440
+ f[e] = t;
2441
+ } else f.techn = l;
2442
+ if (u != null) if (typeof u == "object") {
2443
+ let [e, t] = Object.entries(u)[0];
2444
+ f[e] = t;
2445
+ } else f.legendText = u;
2446
+ if (d != null) if (typeof d == "object") {
2447
+ let [e, t] = Object.entries(d)[0];
2448
+ f[e] = t;
2449
+ } else f.legendSprite = d;
2450
+ }
2451
+ }, "updateElStyle"), te = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
2452
+ let s = A.find((e) => e.from === t && e.to === n);
2453
+ if (s !== void 0) {
2454
+ if (r != null) if (typeof r == "object") {
2455
+ let [e, t] = Object.entries(r)[0];
2456
+ s[e] = t;
2457
+ } else s.textColor = r;
2458
+ if (i != null) if (typeof i == "object") {
2459
+ let [e, t] = Object.entries(i)[0];
2460
+ s[e] = t;
2461
+ } else s.lineColor = i;
2462
+ if (a != null) if (typeof a == "object") {
2463
+ let [e, t] = Object.entries(a)[0];
2464
+ s[e] = parseInt(t);
2465
+ } else s.offsetX = parseInt(a);
2466
+ if (o != null) if (typeof o == "object") {
2467
+ let [e, t] = Object.entries(o)[0];
2468
+ s[e] = parseInt(t);
2469
+ } else s.offsetY = parseInt(o);
2470
+ }
2471
+ }, "updateRelStyle"), ne = /* @__PURE__ */ e(function(e, t, n) {
2472
+ let r = N, i = P;
2473
+ if (typeof t == "object") {
2474
+ let e = Object.values(t)[0];
2475
+ r = parseInt(e);
2476
+ } else r = parseInt(t);
2477
+ if (typeof n == "object") {
2478
+ let e = Object.values(n)[0];
2479
+ i = parseInt(e);
2480
+ } else i = parseInt(n);
2481
+ r >= 1 && (N = r), i >= 1 && (P = i);
2482
+ }, "updateLayoutConfig"), K = /* @__PURE__ */ e(function() {
2483
+ return N;
2484
+ }, "getC4ShapeInRow"), q = /* @__PURE__ */ e(function() {
2485
+ return P;
2486
+ }, "getC4BoundaryInRow"), J = /* @__PURE__ */ e(function() {
2487
+ return D;
2488
+ }, "getCurrentBoundaryParse"), Y = /* @__PURE__ */ e(function() {
2489
+ return O;
2490
+ }, "getParentBoundaryParse"), X = /* @__PURE__ */ e(function(e) {
2491
+ return e == null ? T : T.filter((t) => t.parentBoundary === e);
2492
+ }, "getC4ShapeArray"), re = /* @__PURE__ */ e(function(e) {
2493
+ return T.find((t) => t.alias === e) ?? k.find((t) => t.alias === e);
2494
+ }, "getC4Shape"), ie = /* @__PURE__ */ e(function(e) {
2495
+ return Object.keys(X(e));
2496
+ }, "getC4ShapeKeys"), Z = /* @__PURE__ */ e(function(e) {
2497
+ return e == null ? k : k.filter((t) => t.parentBoundary === e);
2498
+ }, "getBoundaries"), ae = Z, oe = /* @__PURE__ */ e(function() {
2499
+ return A;
2500
+ }, "getRels"), se = /* @__PURE__ */ e(function() {
2501
+ return j;
2502
+ }, "getTitle"), ce = /* @__PURE__ */ e(function(e) {
2503
+ M = e;
2504
+ }, "setWrap"), le = /* @__PURE__ */ e(function() {
2505
+ return M;
2506
+ }, "autoWrap"), ue = {
2507
+ addPersonOrSystem: z,
2508
+ addPersonOrSystemBoundary: H,
2509
+ addContainer: B,
2510
+ addContainerBoundary: U,
2511
+ addComponent: V,
2512
+ addDeploymentNode: W,
2513
+ popBoundaryParseStack: G,
2514
+ addRel: R,
2515
+ updateElStyle: ee,
2516
+ updateRelStyle: te,
2517
+ updateLayoutConfig: ne,
2518
+ autoWrap: le,
2519
+ setWrap: ce,
2520
+ getC4ShapeArray: X,
2521
+ getC4Shape: re,
2522
+ getC4ShapeKeys: ie,
2523
+ getBoundaries: Z,
2524
+ getBoundarys: ae,
2525
+ getCurrentBoundaryParse: J,
2526
+ getParentBoundaryParse: Y,
2527
+ getRels: oe,
2528
+ getTitle: se,
2529
+ getC4Type: I,
2530
+ getC4ShapeInRow: K,
2531
+ getC4BoundaryInRow: q,
2532
+ setAccTitle: i,
2533
+ getAccTitle: d,
2534
+ getAccDescription: l,
2535
+ setAccDescription: r,
2536
+ getConfig: /* @__PURE__ */ e(() => x("c4"), "getConfig"),
2537
+ clear: /* @__PURE__ */ e(function() {
2538
+ T = [], k = [w()], O = "", D = "global", E = [""], A = [], E = [""], j = "", M = !1, N = 4, P = 2;
2539
+ }, "clear"),
2540
+ LINETYPE: {
2541
+ SOLID: 0,
2542
+ DOTTED: 1,
2543
+ NOTE: 2,
2544
+ SOLID_CROSS: 3,
2545
+ DOTTED_CROSS: 4,
2546
+ SOLID_OPEN: 5,
2547
+ DOTTED_OPEN: 6,
2548
+ LOOP_START: 10,
2549
+ LOOP_END: 11,
2550
+ ALT_START: 12,
2551
+ ALT_ELSE: 13,
2552
+ ALT_END: 14,
2553
+ OPT_START: 15,
2554
+ OPT_END: 16,
2555
+ ACTIVE_START: 17,
2556
+ ACTIVE_END: 18,
2557
+ PAR_START: 19,
2558
+ PAR_AND: 20,
2559
+ PAR_END: 21,
2560
+ RECT_START: 22,
2561
+ RECT_END: 23,
2562
+ SOLID_POINT: 24,
2563
+ DOTTED_POINT: 25
2564
+ },
2565
+ ARROWTYPE: {
2566
+ FILLED: 0,
2567
+ OPEN: 1
2568
+ },
2569
+ PLACEMENT: {
2570
+ LEFTOF: 0,
2571
+ RIGHTOF: 1,
2572
+ OVER: 2
2573
+ },
2574
+ setTitle: /* @__PURE__ */ e(function(e) {
2575
+ j = f(e, u());
2576
+ }, "setTitle"),
2577
+ setC4Type: L
2578
+ }, de = /* @__PURE__ */ e(function(e, t) {
2579
+ return v(e, t);
2580
+ }, "drawRect"), fe = /* @__PURE__ */ e((e, t, n, r) => {
2581
+ let i = e.append("g"), a = 0;
2582
+ for (let e of t) {
2583
+ let t = e.textColor ? e.textColor : "#444444", o = e.lineColor ? e.lineColor : "#444444", s = e.offsetX ? parseInt(String(e.offsetX)) : 0, l = e.offsetY ? parseInt(String(e.offsetY)) : 0;
2584
+ if (a === 0) {
2585
+ let t = i.append("line");
2586
+ t.attr("x1", e.startPoint.x), t.attr("y1", e.startPoint.y), t.attr("x2", e.endPoint.x), t.attr("y2", e.endPoint.y), t.attr("stroke-width", "1"), t.attr("stroke", o), t.style("fill", "none"), e.type !== "rel_b" && t.attr("marker-end", "url(#" + r + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#" + r + "-arrowend)"), a = -1;
2587
+ } else {
2588
+ let t = i.append("path");
2589
+ t.attr("fill", "none").attr("stroke-width", "1").attr("stroke", o).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", e.startPoint.x).replaceAll("starty", e.startPoint.y).replaceAll("controlx", e.startPoint.x + (e.endPoint.x - e.startPoint.x) / 2 - (e.endPoint.x - e.startPoint.x) / 4).replaceAll("controly", e.startPoint.y + (e.endPoint.y - e.startPoint.y) / 2).replaceAll("stopx", e.endPoint.x).replaceAll("stopy", e.endPoint.y)), e.type !== "rel_b" && t.attr("marker-end", "url(#" + r + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#" + r + "-arrowend)");
2590
+ }
2591
+ let u = e.label.width, d = n.messageFont();
2592
+ xe(n)(e.label.text, i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + l, u, e.label.height, { fill: t }, d), e.techn && e.techn.text !== "" && (d = n.messageFont(), xe(n)("[" + e.techn.text + "]", i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + n.messageFontSize + 5 + l, Math.max(u, e.techn.width), e.techn.height, {
2593
+ fill: t,
2594
+ "font-style": "italic"
2595
+ }, d));
2596
+ }
2597
+ }, "drawRels"), pe = /* @__PURE__ */ e(function(e, t, n) {
2598
+ let r = e.append("g"), i = t.bgColor ? t.bgColor : "none", a = t.borderColor ? t.borderColor : "#444444", o = t.fontColor ? t.fontColor : "black", s = {
2599
+ "stroke-width": 1,
2600
+ "stroke-dasharray": "7.0,7.0"
2601
+ };
2602
+ t.nodeType && (s = { "stroke-width": 1 }), de(r, {
2603
+ x: t.x,
2604
+ y: t.y,
2605
+ fill: i,
2606
+ stroke: a,
2607
+ width: t.width,
2608
+ height: t.height,
2609
+ rx: 2.5,
2610
+ ry: 2.5,
2611
+ attrs: s
2612
+ });
2613
+ let l = n.boundaryFont();
2614
+ l.fontWeight = "bold", l.fontSize += 2, l.fontColor = o, xe(n)(t.label.text, r, t.x, t.y + t.label.Y, t.width, t.height, { fill: "#444444" }, l), t.type && t.type.text !== "" && (l = n.boundaryFont(), l.fontColor = o, xe(n)(t.type.text, r, t.x, t.y + t.type.Y, t.width, t.height, { fill: "#444444" }, l)), t.descr && t.descr.text !== "" && (l = n.boundaryFont(), l.fontSize -= 2, l.fontColor = o, xe(n)(t.descr.text, r, t.x, t.y + t.descr.Y, t.width, t.height, { fill: "#444444" }, l));
2615
+ }, "drawBoundary"), me = /* @__PURE__ */ e(function(e, t) {
2616
+ e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
2617
+ }, "insertDatabaseIcon"), he = /* @__PURE__ */ e(function(e, t) {
2618
+ e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
2619
+ }, "insertComputerIcon"), ge = /* @__PURE__ */ e(function(e, t) {
2620
+ e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
2621
+ }, "insertClockIcon"), _e = /* @__PURE__ */ e(function(e, t) {
2622
+ e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
2623
+ }, "insertArrowHead"), ve = /* @__PURE__ */ e(function(e, t) {
2624
+ e.append("defs").append("marker").attr("id", t + "-arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
2625
+ }, "insertArrowEnd"), ye = /* @__PURE__ */ e(function(e, t) {
2626
+ e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
2627
+ }, "insertArrowFilledHead"), be = /* @__PURE__ */ e(function(e, t) {
2628
+ let n = e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
2629
+ n.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), n.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
2630
+ }, "insertArrowCrossHead"), xe = /* @__PURE__ */ (function() {
2631
+ function t(e, t, n, r, a, o, s) {
2632
+ i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("text-anchor", "middle").text(e), s);
2633
+ }
2634
+ e(t, "byText");
2635
+ function n(e, t, n, r, a, o, l, u) {
2636
+ let { fontSize: d, fontFamily: f, fontWeight: p } = u, m = e.split(s.lineBreakRegex);
2637
+ for (let e = 0; e < m.length; e++) {
2638
+ let o = e * d - d * (m.length - 1) / 2, s = t.append("text").attr("x", n + a / 2).attr("y", r).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", d).style("font-weight", p).style("font-family", f);
2639
+ s.append("tspan").attr("dy", o).text(m[e]).attr("alignment-baseline", "mathematical"), i(s, l);
2640
+ }
2641
+ }
2642
+ e(n, "byTspan");
2643
+ function r(e, t, r, a, o, s, l, u) {
2644
+ let d = t.append("switch"), f = d.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2645
+ f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, d, r, a, o, s, l, u), i(f, l);
2646
+ }
2647
+ e(r, "byFo");
2648
+ function i(e, t) {
2649
+ for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
2650
+ }
2651
+ return e(i, "_setTextAttrs"), function(e) {
2652
+ return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
2653
+ };
2654
+ })(), Q = {
2655
+ drawRect: de,
2656
+ drawBoundary: pe,
2657
+ drawRels: fe,
2658
+ insertArrowHead: _e,
2659
+ insertArrowEnd: ve,
2660
+ insertArrowFilledHead: ye,
2661
+ insertArrowCrossHead: be,
2662
+ insertDatabaseIcon: me,
2663
+ insertComputerIcon: he,
2664
+ insertClockIcon: ge
2665
+ }, Se = /* @__PURE__ */ e((e, t) => {
2666
+ if (t === "sandbox") {
2667
+ let t = n("#i" + e).node()?.contentDocument;
2668
+ if (!t) throw Error(`Sandbox iframe #i${e} is missing its content document`);
2669
+ return {
2670
+ root: n(t.body),
2671
+ doc: t
2672
+ };
2673
+ }
2674
+ return {
2675
+ root: n("body"),
2676
+ doc: document
2677
+ };
2678
+ }, "getDiagramRoot"), Ce = /* @__PURE__ */ new Set([
2679
+ "system_queue",
2680
+ "external_system_queue",
2681
+ "container_queue",
2682
+ "external_container_queue",
2683
+ "component_queue",
2684
+ "external_component_queue"
2685
+ ]), we = /* @__PURE__ */ new Set([
2686
+ "system_db",
2687
+ "external_system_db",
2688
+ "container_db",
2689
+ "external_container_db",
2690
+ "component_db",
2691
+ "external_component_db"
2692
+ ]), Te = {
2693
+ person: "person",
2694
+ box: "rounded",
2695
+ rounded: "rounded",
2696
+ cylinder: "cylinder",
2697
+ database: "cylinder",
2698
+ db: "cylinder",
2699
+ queue: "h-cyl",
2700
+ pipe: "h-cyl",
2701
+ component: "fr-rect"
2702
+ }, Ee = /* @__PURE__ */ e((e) => e ? Te[e.toLowerCase()] : void 0, "keywordShape"), De = /* @__PURE__ */ e((e) => {
2703
+ let t = Ee(e.shape) ?? Ee(e.sprite);
2704
+ if (t) return t;
2705
+ if (e.tags) for (let t of e.tags.split(",")) {
2706
+ let e = Ee(t.trim());
2707
+ if (e) return e;
2708
+ }
2709
+ let n = e.typeC4Shape.text;
2710
+ return n === "person" || n === "external_person" ? "person" : we.has(n) ? "cylinder" : Ce.has(n) ? "h-cyl" : "rounded";
2711
+ }, "resolveNodeShape"), Oe = {
2712
+ person: "Person",
2713
+ system: "Software System",
2714
+ container: "Container",
2715
+ component: "Component"
2716
+ }, ke = /* @__PURE__ */ e((e) => {
2717
+ let t = e.replace(/^external_/, "").replace(/_(db|queue)$/, "");
2718
+ return Oe[t] ?? t.replace(/_/g, " ");
2719
+ }, "stereotypeLabel"), Ae = /* @__PURE__ */ e((e) => e.startsWith("external_"), "isExternal"), je = /* @__PURE__ */ e((e) => {
2720
+ let t = ke(e.typeC4Shape.text);
2721
+ return e.techn?.text ? `[${t}: ${e.techn.text}]` : `[${t}]`;
2722
+ }, "stereotypeText"), Me = [
2723
+ "person",
2724
+ "system",
2725
+ "system_db",
2726
+ "system_queue",
2727
+ "container",
2728
+ "container_db",
2729
+ "container_queue",
2730
+ "component",
2731
+ "component_db",
2732
+ "component_queue"
2733
+ ].flatMap((e) => [e, `external_${e}`]), Ne = new Set(Me), Pe = /* @__PURE__ */ e((e) => Ne.has(e), "isC4ElementType"), Fe = /* @__PURE__ */ e((e, t) => {
2734
+ let n = e.typeC4Shape.text, r = e.bgColor ?? (Pe(n) && t[`${n}_bg_color`]), i = e.borderColor ?? (Pe(n) && t[`${n}_border_color`]), a = [];
2735
+ return r && a.push(`fill:${r}`), i && a.push(`stroke:${i}`), a.push(`color:${e.fontColor ?? "#FFFFFF"}`), a;
2736
+ }, "elementCssStyles"), Ie = /* @__PURE__ */ e((e, t, n, r, i) => {
2737
+ let a = e.typeC4Shape.text, o = ["c4-shape", `c4-${a}`];
2738
+ Ae(a) && o.push("c4-external");
2739
+ let s = De(e), l = Fe(e, t);
2740
+ return (s === "rounded" || s === "fr-rect") && l.push("rx:12px", "ry:12px"), {
2741
+ id: e.alias,
2742
+ label: e.label.text,
2743
+ stereotype: je(e),
2744
+ description: e.descr?.text ? [e.descr.text] : void 0,
2745
+ labelType: "string",
2746
+ isGroup: !1,
2747
+ shape: s,
2748
+ cssClasses: o.join(" "),
2749
+ cssStyles: l,
2750
+ padding: n,
2751
+ look: r,
2752
+ useHtmlLabels: !1,
2753
+ width: i
2754
+ };
2755
+ }, "buildC4Node"), Le = 0, Re = 0, ze = 4, Be = 2;
2756
+ y.yy = ue;
2757
+ var $ = {}, Ve = class {
2758
+ static {
2759
+ e(this, "Bounds");
2760
+ }
2761
+ constructor(e) {
2762
+ this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, He(e.db.getConfig());
2763
+ }
2764
+ setData(e, t, n, r) {
2765
+ this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = t, this.nextData.starty = this.data.starty = n, this.nextData.stopy = this.data.stopy = r;
2766
+ }
2767
+ updateVal(e, t, n, r) {
2768
+ e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
2769
+ }
2770
+ insert(e) {
2771
+ this.nextData.cnt = this.nextData.cnt + 1;
2772
+ let t = this.nextData.stopx, n = this.data.widthLimit, r = this.nextData.startx === this.nextData.stopx ? t + e.margin : t + e.margin * 2, i = r + e.width, a = this.nextData.starty + e.margin * 2, o = a + e.height;
2773
+ (r >= n || i >= n || this.nextData.cnt > ze) && (r = this.nextData.startx + e.margin + $.nextLinePaddingX, a = this.nextData.stopy + e.margin * 2, this.nextData.stopx = i = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = o = a + e.height, this.nextData.cnt = 1), e.x = r, e.y = a, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", a, Math.min), this.updateVal(this.data, "stopx", i, Math.max), this.updateVal(this.data, "stopy", o, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", a, Math.min), this.updateVal(this.nextData, "stopx", i, Math.max), this.updateVal(this.nextData, "stopy", o, Math.max);
2774
+ }
2775
+ init(e) {
2776
+ this.name = "", this.data = {
2777
+ startx: void 0,
2778
+ stopx: void 0,
2779
+ starty: void 0,
2780
+ stopy: void 0,
2781
+ widthLimit: void 0
2782
+ }, this.nextData = {
2783
+ startx: void 0,
2784
+ stopx: void 0,
2785
+ starty: void 0,
2786
+ stopy: void 0,
2787
+ cnt: 0
2788
+ }, He(e.db.getConfig());
2789
+ }
2790
+ bumpLastMargin(e) {
2791
+ this.data.stopx += e, this.data.stopy += e;
2792
+ }
2793
+ }, He = /* @__PURE__ */ e(function(e) {
2794
+ o($, e), e?.fontFamily && ($.personFontFamily = $.systemFontFamily = $.messageFontFamily = e.fontFamily), e?.fontSize && ($.personFontSize = $.systemFontSize = $.messageFontSize = e.fontSize), e?.fontWeight && ($.personFontWeight = $.systemFontWeight = $.messageFontWeight = e.fontWeight);
2795
+ }, "setConf"), Ue = /* @__PURE__ */ e((e) => ({
2796
+ fontFamily: e.boundaryFontFamily,
2797
+ fontSize: e.boundaryFontSize,
2798
+ fontWeight: e.boundaryFontWeight
2799
+ }), "boundaryFont"), We = /* @__PURE__ */ e((e) => ({
2800
+ fontFamily: e.messageFontFamily,
2801
+ fontSize: e.messageFontSize,
2802
+ fontWeight: e.messageFontWeight
2803
+ }), "messageFont");
2804
+ function Ge(e, t, n, r, i) {
2805
+ let a = t[e];
2806
+ if (!a.width) if (n) a.text = p(a.text, i, r), a.textLines = a.text.split(s.lineBreakRegex).length, a.width = i, a.height = m(a.text, r);
2807
+ else {
2808
+ let e = a.text.split(s.lineBreakRegex);
2809
+ a.textLines = e.length;
2810
+ let t = 0;
2811
+ a.height = 0, a.width = 0;
2812
+ for (let n of e) a.width = Math.max(h(n, r), a.width), t = m(n, r), a.height += t;
2813
+ }
2814
+ return a;
2815
+ }
2816
+ e(Ge, "calcC4ShapeTextWH");
2817
+ var Ke = /* @__PURE__ */ e(function(e, t, n) {
2818
+ let r = n.data.startx, i = n.data.starty;
2819
+ t.x = r, t.y = i, t.width = n.data.stopx - r, t.height = n.data.stopy - i, t.intersect = (e) => g.rect({
2820
+ x: t.x + t.width / 2,
2821
+ y: t.y + t.height / 2,
2822
+ width: t.width,
2823
+ height: t.height
2824
+ }, e), t.label.y = $.c4ShapeMargin - 35;
2825
+ let a = t.wrap && $.wrap, o = Ue($);
2826
+ o.fontSize += 2, o.fontWeight = "bold", Ge("label", t, a, o, h(t.label.text, o)), Q.drawBoundary(e, t, $);
2827
+ }, "drawBoundary"), qe = /* @__PURE__ */ e(async function(t, n, r, i) {
2828
+ let a = u(), o = a.look ?? "classic", s = { config: a }, l = n.attr("id") ?? "", d = i.map((e) => r[Number(e)]), f = /* @__PURE__ */ e((e) => {
2829
+ let t = e.shape ? _[e.shape] : void 0;
2830
+ if (!t) throw Error(`C4: no shape handler for "${e.shape}"`);
2831
+ return t;
2832
+ }, "shapeHandlerFor");
2833
+ await Promise.all(d.map(async (e) => {
2834
+ let t = Ie(e, $, $.c4ShapePadding, o, $.width);
2835
+ t.domId = `${l}-${t.id}`;
2836
+ let r = await f(t)(n, t, s);
2837
+ e.width = t.width ?? $.width, e.height = t.height ?? $.height, e.margin = $.c4ShapeMargin, r.remove();
2838
+ }));
2839
+ for (let e of d) t.insert(e);
2840
+ await Promise.all(d.map(async (e) => {
2841
+ let t = Ie(e, $, $.c4ShapePadding, o, $.width);
2842
+ t.domId = `${l}-${t.id}`, t.x = e.x + e.width / 2, t.y = e.y + e.height / 2;
2843
+ let r = n.append("g").attr("transform", `translate(${e.x + e.width / 2}, ${e.y + e.height / 2})`);
2844
+ await f(t)(r, t, s), e.intersect = t.intersect;
2845
+ })), t.bumpLastMargin($.c4ShapeMargin);
2846
+ }, "drawC4ShapeArray"), Je = class {
2847
+ static {
2848
+ e(this, "Point");
2849
+ }
2850
+ constructor(e, t) {
2851
+ this.x = e, this.y = t;
2852
+ }
2853
+ }, Ye = /* @__PURE__ */ e(function(e, t) {
2854
+ if (!e.intersect) throw Error(`C4 element "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);
2855
+ let { x: n, y: r } = e.intersect(t);
2856
+ return new Je(n, r);
2857
+ }, "getIntersectPoint"), Xe = /* @__PURE__ */ e(function(e, t) {
2858
+ let n = {
2859
+ x: 0,
2860
+ y: 0
2861
+ };
2862
+ n.x = t.x + t.width / 2, n.y = t.y + t.height / 2;
2863
+ let r = Ye(e, n);
2864
+ return n.x = e.x + e.width / 2, n.y = e.y + e.height / 2, {
2865
+ startPoint: r,
2866
+ endPoint: Ye(t, n)
2867
+ };
2868
+ }, "getIntersectPoints"), Ze = /* @__PURE__ */ e(function(e, t, n, r, i) {
2869
+ let a = r.db.getC4Type(), o = 0;
2870
+ for (let e of t) {
2871
+ o += 1;
2872
+ let t = e.wrap && $.wrap, r = We($);
2873
+ a === "C4Dynamic" && (e.label.text = o + ": " + e.label.text);
2874
+ let i = h(e.label.text, r);
2875
+ Ge("label", e, t, r, i), e.techn && e.techn.text !== "" && (i = h(e.techn.text, r), Ge("techn", e, t, r, i)), e.descr && e.descr.text !== "" && (i = h(e.descr.text, r), Ge("descr", e, t, r, i));
2876
+ let s = n(e.from), l = n(e.to);
2877
+ if (!s || !l) throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape or boundary`);
2878
+ let u = Xe(s, l);
2879
+ if (!u.startPoint || !u.endPoint) throw Error(`Could not calculate intersection points for rel "${e.from}" -> "${e.to}"`);
2880
+ e.startPoint = u.startPoint, e.endPoint = u.endPoint;
2881
+ }
2882
+ Q.drawRels(e, t, $, i);
2883
+ }, "drawRels");
2884
+ async function Qe(e, t, n, r, i) {
2885
+ let a = i.db, o = new Ve(i);
2886
+ o.data.widthLimit = n.data.widthLimit / Math.min(Be, r.length);
2887
+ for (let [s, l] of r.entries()) {
2888
+ let r = 0;
2889
+ l.image = {
2890
+ width: 0,
2891
+ height: 0,
2892
+ Y: 0
2893
+ }, l.sprite && (l.image.width = 48, l.image.height = 48, l.image.Y = r, r = l.image.Y + l.image.height);
2894
+ let u = l.wrap && $.wrap, d = Ue($);
2895
+ d.fontSize += 2, d.fontWeight = "bold";
2896
+ let f = Ge("label", l, u, d, o.data.widthLimit);
2897
+ if (f.Y = r + 8, r = f.Y + f.height, l.type && l.type.text !== "") {
2898
+ l.type.text = "[" + l.type.text + "]";
2899
+ let e = Ge("type", l, u, Ue($), o.data.widthLimit);
2900
+ e.Y = r + 5, r = e.Y + e.height;
2901
+ }
2902
+ if (l.descr && l.descr.text !== "") {
2903
+ let e = Ue($);
2904
+ e.fontSize -= 2;
2905
+ let t = Ge("descr", l, u, e, o.data.widthLimit);
2906
+ t.Y = r + 20, r = t.Y + t.height;
2907
+ }
2908
+ if (s == 0 || s % Be === 0) {
2909
+ let e = n.data.startx + $.diagramMarginX, t = n.data.stopy + $.diagramMarginY + r;
2910
+ o.setData(e, e, t, t);
2911
+ } else {
2912
+ let e = o.data.stopx === o.data.startx ? o.data.startx : o.data.stopx + $.diagramMarginX, t = o.data.starty;
2913
+ o.setData(e, e, t, t);
2914
+ }
2915
+ o.name = l.alias;
2916
+ let p = a.getC4ShapeArray(l.alias), m = a.getC4ShapeKeys(l.alias);
2917
+ m.length > 0 && await qe(o, e, p, m), t = l.alias;
2918
+ let h = a.getBoundaries(t);
2919
+ h.length > 0 && await Qe(e, t, o, h, i), l.alias !== "global" && Ke(e, l, o), n.data.stopy = Math.max(o.data.stopy + $.c4ShapeMargin, n.data.stopy), n.data.stopx = Math.max(o.data.stopx + $.c4ShapeMargin, n.data.stopx), Le = Math.max(Le, n.data.stopx), Re = Math.max(Re, n.data.stopy);
2920
+ }
2921
+ }
2922
+ e(Qe, "drawInsideBoundary");
2923
+ var $e = {
2924
+ drawPersonOrSystemArray: qe,
2925
+ drawBoundary: Ke,
2926
+ setConf: He,
2927
+ draw: /* @__PURE__ */ e(async function(e, n, r, i) {
2928
+ $ = x("c4");
2929
+ let o = u().securityLevel, { root: s } = Se(n, o), l = i.db;
2930
+ l.setWrap($.wrap), ze = l.getC4ShapeInRow(), Be = l.getC4BoundaryInRow(), t.debug(`C:${JSON.stringify($, null, 2)}`);
2931
+ let d = s.select(`[id="${n}"]`);
2932
+ Q.insertComputerIcon(d, n), Q.insertDatabaseIcon(d, n), Q.insertClockIcon(d, n);
2933
+ let f = new Ve(i);
2934
+ f.setData($.diagramMarginX, $.diagramMarginX, $.diagramMarginY, $.diagramMarginY), f.data.widthLimit = screen.availWidth, Le = $.diagramMarginX, Re = $.diagramMarginY;
2935
+ let p = l.getTitle();
2936
+ await Qe(d, "", f, l.getBoundaries(""), i), Q.insertArrowHead(d, n), Q.insertArrowEnd(d, n), Q.insertArrowCrossHead(d, n), Q.insertArrowFilledHead(d, n), Ze(d, l.getRels(), l.getC4Shape, i, n), f.data.stopx = Le, f.data.stopy = Re;
2937
+ let m = f.data, h = m.startx, g = m.starty, _ = Re - g + 2 * $.diagramMarginY, v = Le - h, y = v + 2 * $.diagramMarginX;
2938
+ p && d.append("text").text(p).attr("x", v / 2 - 4 * $.diagramMarginX).attr("y", g + $.diagramMarginY), a(d, _, y, $.useMaxWidth);
2939
+ let b = p ? 60 : 0;
2940
+ d.attr("viewBox", h - $.diagramMarginX + " -" + ($.diagramMarginY + b) + " " + y + " " + (_ + b)), t.debug("models:", m);
2941
+ }, "draw")
2942
+ }, et = /* @__PURE__ */ e(() => {
2943
+ let e = u().c4 ?? {}, t = new CSSStyleSheet();
2944
+ for (let n of Me) {
2945
+ let r = t.cssRules[t.insertRule(`.c4-shape.c4-${n} .label {}`, t.cssRules.length)], i = e[`${n}FontFamily`], a = e[`${n}FontSize`], o = e[`${n}FontWeight`];
2946
+ i && r.style.setProperty("font-family", i), a && r.style.setProperty("font-size", typeof a == "number" ? `${a}px` : a), o && r.style.setProperty("font-weight", String(o));
2947
+ }
2948
+ return [...t.cssRules].filter((e) => e.style.length > 0).map((e) => ` ${e.cssText}`).join("\n");
2949
+ }, "elementFontStyles"), tt = {
2950
+ parser: b,
2951
+ db: ue,
2952
+ renderer: $e,
2953
+ styles: /* @__PURE__ */ e((e) => `.person {
2954
+ stroke: ${e.personBorder};
2955
+ fill: ${e.personBkg};
2956
+ }
2957
+ ${et()}
2958
+
2959
+ /* The element font colour is set inline per element (default white); the
2960
+ label text takes it via currentColor. */
2961
+ .c4-shape .label,
2962
+ .c4-shape .label text {
2963
+ color: inherit;
2964
+ fill: currentColor;
2965
+ }
2966
+ /* Structurizr typography: bold name, smaller stereotype/type and description lines. */
2967
+ .c4-shape .label .c4-name {
2968
+ font-weight: bold;
2969
+ }
2970
+ .c4-shape .label .c4-type {
2971
+ font-size: 0.75em;
2972
+ }
2973
+ .c4-shape .label .c4-descr {
2974
+ font-size: 0.82em;
2975
+ }
2976
+ .c4-shape .basic,
2977
+ .c4-shape rect,
2978
+ .c4-shape path,
2979
+ .c4-shape circle,
2980
+ .c4-shape ellipse,
2981
+ .c4-shape line {
2982
+ stroke-width: 2px;
2983
+ }
2984
+ `, "getStyles"),
2985
+ init: /* @__PURE__ */ e(({ c4: e, wrap: t }) => {
2986
+ $e.setConf(e), ue.setWrap(t);
2987
+ }, "init")
2988
+ };
2989
+ //#endregion
2990
+ export { tt as diagram };