@blueking/ai-blueking 2.0.0-dev.2 → 2.0.0-dev.3

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 (183) hide show
  1. package/dist/vue2/_baseFor-DAbrc8SN.js +309 -0
  2. package/dist/vue2/arc-BqlAOiZb.js +78 -0
  3. package/dist/vue2/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
  4. package/dist/vue2/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
  5. package/dist/vue2/array-TB8zN_HT.js +5 -0
  6. package/dist/vue2/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
  7. package/dist/vue2/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
  8. package/dist/vue2/channel-edTl5mpN.js +3 -0
  9. package/dist/vue2/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
  10. package/dist/vue2/chunk-55IACEB6-CTzuTcHv.js +6 -0
  11. package/dist/vue2/chunk-76Q3JFCE-BrJX66ha.js +19 -0
  12. package/dist/vue2/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
  13. package/dist/vue2/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
  14. package/dist/vue2/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
  15. package/dist/vue2/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
  16. package/dist/vue2/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
  17. package/dist/vue2/chunk-DNh5sLlG.js +18 -0
  18. package/dist/vue2/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
  19. package/dist/vue2/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
  20. package/dist/vue2/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
  21. package/dist/vue2/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
  22. package/dist/vue2/chunk-HN2XXSSU-DueSY85P.js +74 -0
  23. package/dist/vue2/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
  24. package/dist/vue2/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
  25. package/dist/vue2/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
  26. package/dist/vue2/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
  27. package/dist/vue2/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
  28. package/dist/vue2/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
  29. package/dist/vue2/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
  30. package/dist/vue2/chunk-QN33PNHL-DsC-XeM9.js +23 -0
  31. package/dist/vue2/chunk-QXUST7PY-DxFRymyS.js +486 -0
  32. package/dist/vue2/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
  33. package/dist/vue2/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
  34. package/dist/vue2/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
  35. package/dist/vue2/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
  36. package/dist/vue2/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
  37. package/dist/vue2/chunk-XAJISQIX-XsDvU4jW.js +135 -0
  38. package/dist/vue2/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
  39. package/dist/vue2/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
  40. package/dist/vue2/clone-Bbr3WSpg.js +7 -0
  41. package/dist/vue2/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
  42. package/dist/vue2/cytoscape.esm-nrcriBSO.js +18100 -0
  43. package/dist/vue2/dagre-6UL2VRFP-CTl_U96l.js +298 -0
  44. package/dist/vue2/dagre-DUjlMe_B.js +1496 -0
  45. package/dist/vue2/defaultLocale-BLATqOV5.js +177 -0
  46. package/dist/vue2/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
  47. package/dist/vue2/diagram-QEK2KX5R-CAeywSxy.js +226 -0
  48. package/dist/vue2/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
  49. package/dist/vue2/dist-xWJvauxf.js +49 -0
  50. package/dist/vue2/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
  51. package/dist/vue2/flatten-CfPhNHUL.js +34 -0
  52. package/dist/vue2/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
  53. package/dist/vue2/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
  54. package/dist/vue2/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
  55. package/dist/vue2/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
  56. package/dist/vue2/graphlib-KDKEjVHX.js +344 -0
  57. package/dist/vue2/index.es.min.js +26703 -786
  58. package/dist/vue2/index.umd.min.js +2796 -9
  59. package/dist/vue2/info-NVLQJR56-DBsOnIKy.js +7 -0
  60. package/dist/vue2/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
  61. package/dist/vue2/init-hAkIK9Bd.js +13 -0
  62. package/dist/vue2/isEmpty-z27q3o-D.js +32 -0
  63. package/dist/vue2/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
  64. package/dist/vue2/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
  65. package/dist/vue2/katex-CEAw-xiA.js +22097 -0
  66. package/dist/vue2/katex-D8o5-F7C.js +2 -0
  67. package/dist/vue2/line-wvheYP7S.js +30 -0
  68. package/dist/vue2/linear-STTevhnH.js +250 -0
  69. package/dist/vue2/math-DF_v6dOl.js +8 -0
  70. package/dist/vue2/mermaid-parser.core-VAa8Vi1g.js +48 -0
  71. package/dist/vue2/mermaid.core-vqI6KB9k.js +895 -0
  72. package/dist/vue2/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
  73. package/dist/vue2/ordinal-DOM6Fa9P.js +61 -0
  74. package/dist/vue2/packet-BFZMPI3H-CG049KmZ.js +7 -0
  75. package/dist/vue2/path-CW_-_Ti7.js +79 -0
  76. package/dist/vue2/pie-7BOR55EZ-BHq0KcLP.js +7 -0
  77. package/dist/vue2/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
  78. package/dist/vue2/purify.es-Cm_tUMzZ.js +547 -0
  79. package/dist/vue2/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
  80. package/dist/vue2/radar-NHE76QYJ-CUoVtrAx.js +7 -0
  81. package/dist/vue2/reduce-BFKSG9Rs.js +451 -0
  82. package/dist/vue2/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
  83. package/dist/vue2/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
  84. package/dist/vue2/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
  85. package/dist/vue2/src-VlKYSsxJ.js +1975 -0
  86. package/dist/vue2/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
  87. package/dist/vue2/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
  88. package/dist/vue2/style.css +1 -1
  89. package/dist/vue2/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
  90. package/dist/vue2/treemap-KMMF4GRG--FdijCcy.js +7 -0
  91. package/dist/vue2/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
  92. package/dist/vue3/_baseFor-DAbrc8SN.js +309 -0
  93. package/dist/vue3/arc-BqlAOiZb.js +78 -0
  94. package/dist/vue3/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
  95. package/dist/vue3/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
  96. package/dist/vue3/array-TB8zN_HT.js +5 -0
  97. package/dist/vue3/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
  98. package/dist/vue3/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
  99. package/dist/vue3/channel-edTl5mpN.js +3 -0
  100. package/dist/vue3/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
  101. package/dist/vue3/chunk-55IACEB6-CTzuTcHv.js +6 -0
  102. package/dist/vue3/chunk-76Q3JFCE-BrJX66ha.js +19 -0
  103. package/dist/vue3/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
  104. package/dist/vue3/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
  105. package/dist/vue3/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
  106. package/dist/vue3/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
  107. package/dist/vue3/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
  108. package/dist/vue3/chunk-DNh5sLlG.js +18 -0
  109. package/dist/vue3/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
  110. package/dist/vue3/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
  111. package/dist/vue3/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
  112. package/dist/vue3/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
  113. package/dist/vue3/chunk-HN2XXSSU-DueSY85P.js +74 -0
  114. package/dist/vue3/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
  115. package/dist/vue3/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
  116. package/dist/vue3/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
  117. package/dist/vue3/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
  118. package/dist/vue3/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
  119. package/dist/vue3/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
  120. package/dist/vue3/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
  121. package/dist/vue3/chunk-QN33PNHL-DsC-XeM9.js +23 -0
  122. package/dist/vue3/chunk-QXUST7PY-DxFRymyS.js +486 -0
  123. package/dist/vue3/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
  124. package/dist/vue3/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
  125. package/dist/vue3/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
  126. package/dist/vue3/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
  127. package/dist/vue3/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
  128. package/dist/vue3/chunk-XAJISQIX-XsDvU4jW.js +135 -0
  129. package/dist/vue3/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
  130. package/dist/vue3/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
  131. package/dist/vue3/clone-Bbr3WSpg.js +7 -0
  132. package/dist/vue3/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
  133. package/dist/vue3/cytoscape.esm-nrcriBSO.js +18100 -0
  134. package/dist/vue3/dagre-6UL2VRFP-CTl_U96l.js +298 -0
  135. package/dist/vue3/dagre-DUjlMe_B.js +1496 -0
  136. package/dist/vue3/defaultLocale-BLATqOV5.js +177 -0
  137. package/dist/vue3/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
  138. package/dist/vue3/diagram-QEK2KX5R-CAeywSxy.js +226 -0
  139. package/dist/vue3/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
  140. package/dist/vue3/dist-xWJvauxf.js +49 -0
  141. package/dist/vue3/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
  142. package/dist/vue3/flatten-CfPhNHUL.js +34 -0
  143. package/dist/vue3/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
  144. package/dist/vue3/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
  145. package/dist/vue3/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
  146. package/dist/vue3/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
  147. package/dist/vue3/graphlib-KDKEjVHX.js +344 -0
  148. package/dist/vue3/index.es.min.js +26730 -813
  149. package/dist/vue3/index.umd.min.js +2796 -9
  150. package/dist/vue3/info-NVLQJR56-DBsOnIKy.js +7 -0
  151. package/dist/vue3/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
  152. package/dist/vue3/init-hAkIK9Bd.js +13 -0
  153. package/dist/vue3/isEmpty-z27q3o-D.js +32 -0
  154. package/dist/vue3/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
  155. package/dist/vue3/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
  156. package/dist/vue3/katex-CEAw-xiA.js +22097 -0
  157. package/dist/vue3/katex-D8o5-F7C.js +2 -0
  158. package/dist/vue3/line-wvheYP7S.js +30 -0
  159. package/dist/vue3/linear-STTevhnH.js +250 -0
  160. package/dist/vue3/math-DF_v6dOl.js +8 -0
  161. package/dist/vue3/mermaid-parser.core-VAa8Vi1g.js +48 -0
  162. package/dist/vue3/mermaid.core-vqI6KB9k.js +895 -0
  163. package/dist/vue3/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
  164. package/dist/vue3/ordinal-DOM6Fa9P.js +61 -0
  165. package/dist/vue3/packet-BFZMPI3H-CG049KmZ.js +7 -0
  166. package/dist/vue3/path-CW_-_Ti7.js +79 -0
  167. package/dist/vue3/pie-7BOR55EZ-BHq0KcLP.js +7 -0
  168. package/dist/vue3/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
  169. package/dist/vue3/purify.es-Cm_tUMzZ.js +547 -0
  170. package/dist/vue3/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
  171. package/dist/vue3/radar-NHE76QYJ-CUoVtrAx.js +7 -0
  172. package/dist/vue3/reduce-BFKSG9Rs.js +451 -0
  173. package/dist/vue3/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
  174. package/dist/vue3/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
  175. package/dist/vue3/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
  176. package/dist/vue3/src-VlKYSsxJ.js +1975 -0
  177. package/dist/vue3/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
  178. package/dist/vue3/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
  179. package/dist/vue3/style.css +1 -1
  180. package/dist/vue3/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
  181. package/dist/vue3/treemap-KMMF4GRG--FdijCcy.js +7 -0
  182. package/dist/vue3/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
  183. package/package.json +1 -1
@@ -0,0 +1,1994 @@
1
+ import { g as log, h as __name } from "./src-VlKYSsxJ.js";
2
+ import { B as setAccTitle, C as getDiagramTitle, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, s as common_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-gsx40GnJ.js";
3
+ import { g as utils_default, s as generateId } from "./chunk-S3R3BYOJ-Bs_r55Kk.js";
4
+ import { t as getDiagramElement } from "./chunk-55IACEB6-CTzuTcHv.js";
5
+ import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-DsC-XeM9.js";
6
+ import { r as render } from "./chunk-N4CR4FBY-jNnt5D3v.js";
7
+ var parser = (function() {
8
+ var e = /* @__PURE__ */ __name(function(e, b, x, S) {
9
+ for (x ||= {}, S = e.length; S--; x[e[S]] = b);
10
+ return x;
11
+ }, "o"), x = [1, 2], S = [1, 3], C = [1, 4], w = [2, 4], T = [1, 9], E = [1, 11], D = [1, 16], O = [1, 17], k = [1, 18], A = [1, 19], j = [1, 33], M = [1, 20], N = [1, 21], P = [1, 22], F = [1, 23], I = [1, 24], L = [1, 26], R = [1, 27], z = [1, 28], B = [1, 29], V = [1, 30], H = [1, 31], U = [1, 32], W = [1, 35], G = [1, 36], K = [1, 37], q = [1, 38], J = [1, 34], Y = [
12
+ 1,
13
+ 4,
14
+ 5,
15
+ 16,
16
+ 17,
17
+ 19,
18
+ 21,
19
+ 22,
20
+ 24,
21
+ 25,
22
+ 26,
23
+ 27,
24
+ 28,
25
+ 29,
26
+ 33,
27
+ 35,
28
+ 37,
29
+ 38,
30
+ 41,
31
+ 45,
32
+ 48,
33
+ 51,
34
+ 52,
35
+ 53,
36
+ 54,
37
+ 57
38
+ ], X = [
39
+ 1,
40
+ 4,
41
+ 5,
42
+ 14,
43
+ 15,
44
+ 16,
45
+ 17,
46
+ 19,
47
+ 21,
48
+ 22,
49
+ 24,
50
+ 25,
51
+ 26,
52
+ 27,
53
+ 28,
54
+ 29,
55
+ 33,
56
+ 35,
57
+ 37,
58
+ 38,
59
+ 39,
60
+ 40,
61
+ 41,
62
+ 45,
63
+ 48,
64
+ 51,
65
+ 52,
66
+ 53,
67
+ 54,
68
+ 57
69
+ ], Z = [
70
+ 4,
71
+ 5,
72
+ 16,
73
+ 17,
74
+ 19,
75
+ 21,
76
+ 22,
77
+ 24,
78
+ 25,
79
+ 26,
80
+ 27,
81
+ 28,
82
+ 29,
83
+ 33,
84
+ 35,
85
+ 37,
86
+ 38,
87
+ 41,
88
+ 45,
89
+ 48,
90
+ 51,
91
+ 52,
92
+ 53,
93
+ 54,
94
+ 57
95
+ ], Q = {
96
+ trace: /* @__PURE__ */ __name(function() {}, "trace"),
97
+ yy: {},
98
+ symbols_: {
99
+ error: 2,
100
+ start: 3,
101
+ SPACE: 4,
102
+ NL: 5,
103
+ SD: 6,
104
+ document: 7,
105
+ line: 8,
106
+ statement: 9,
107
+ classDefStatement: 10,
108
+ styleStatement: 11,
109
+ cssClassStatement: 12,
110
+ idStatement: 13,
111
+ DESCR: 14,
112
+ "-->": 15,
113
+ HIDE_EMPTY: 16,
114
+ scale: 17,
115
+ WIDTH: 18,
116
+ COMPOSIT_STATE: 19,
117
+ STRUCT_START: 20,
118
+ STRUCT_STOP: 21,
119
+ STATE_DESCR: 22,
120
+ AS: 23,
121
+ ID: 24,
122
+ FORK: 25,
123
+ JOIN: 26,
124
+ CHOICE: 27,
125
+ CONCURRENT: 28,
126
+ note: 29,
127
+ notePosition: 30,
128
+ NOTE_TEXT: 31,
129
+ direction: 32,
130
+ acc_title: 33,
131
+ acc_title_value: 34,
132
+ acc_descr: 35,
133
+ acc_descr_value: 36,
134
+ acc_descr_multiline_value: 37,
135
+ CLICK: 38,
136
+ STRING: 39,
137
+ HREF: 40,
138
+ classDef: 41,
139
+ CLASSDEF_ID: 42,
140
+ CLASSDEF_STYLEOPTS: 43,
141
+ DEFAULT: 44,
142
+ style: 45,
143
+ STYLE_IDS: 46,
144
+ STYLEDEF_STYLEOPTS: 47,
145
+ class: 48,
146
+ CLASSENTITY_IDS: 49,
147
+ STYLECLASS: 50,
148
+ direction_tb: 51,
149
+ direction_bt: 52,
150
+ direction_rl: 53,
151
+ direction_lr: 54,
152
+ eol: 55,
153
+ ";": 56,
154
+ EDGE_STATE: 57,
155
+ STYLE_SEPARATOR: 58,
156
+ left_of: 59,
157
+ right_of: 60,
158
+ $accept: 0,
159
+ $end: 1
160
+ },
161
+ terminals_: {
162
+ 2: "error",
163
+ 4: "SPACE",
164
+ 5: "NL",
165
+ 6: "SD",
166
+ 14: "DESCR",
167
+ 15: "-->",
168
+ 16: "HIDE_EMPTY",
169
+ 17: "scale",
170
+ 18: "WIDTH",
171
+ 19: "COMPOSIT_STATE",
172
+ 20: "STRUCT_START",
173
+ 21: "STRUCT_STOP",
174
+ 22: "STATE_DESCR",
175
+ 23: "AS",
176
+ 24: "ID",
177
+ 25: "FORK",
178
+ 26: "JOIN",
179
+ 27: "CHOICE",
180
+ 28: "CONCURRENT",
181
+ 29: "note",
182
+ 31: "NOTE_TEXT",
183
+ 33: "acc_title",
184
+ 34: "acc_title_value",
185
+ 35: "acc_descr",
186
+ 36: "acc_descr_value",
187
+ 37: "acc_descr_multiline_value",
188
+ 38: "CLICK",
189
+ 39: "STRING",
190
+ 40: "HREF",
191
+ 41: "classDef",
192
+ 42: "CLASSDEF_ID",
193
+ 43: "CLASSDEF_STYLEOPTS",
194
+ 44: "DEFAULT",
195
+ 45: "style",
196
+ 46: "STYLE_IDS",
197
+ 47: "STYLEDEF_STYLEOPTS",
198
+ 48: "class",
199
+ 49: "CLASSENTITY_IDS",
200
+ 50: "STYLECLASS",
201
+ 51: "direction_tb",
202
+ 52: "direction_bt",
203
+ 53: "direction_rl",
204
+ 54: "direction_lr",
205
+ 56: ";",
206
+ 57: "EDGE_STATE",
207
+ 58: "STYLE_SEPARATOR",
208
+ 59: "left_of",
209
+ 60: "right_of"
210
+ },
211
+ productions_: [
212
+ 0,
213
+ [3, 2],
214
+ [3, 2],
215
+ [3, 2],
216
+ [7, 0],
217
+ [7, 2],
218
+ [8, 2],
219
+ [8, 1],
220
+ [8, 1],
221
+ [9, 1],
222
+ [9, 1],
223
+ [9, 1],
224
+ [9, 1],
225
+ [9, 2],
226
+ [9, 3],
227
+ [9, 4],
228
+ [9, 1],
229
+ [9, 2],
230
+ [9, 1],
231
+ [9, 4],
232
+ [9, 3],
233
+ [9, 6],
234
+ [9, 1],
235
+ [9, 1],
236
+ [9, 1],
237
+ [9, 1],
238
+ [9, 4],
239
+ [9, 4],
240
+ [9, 1],
241
+ [9, 2],
242
+ [9, 2],
243
+ [9, 1],
244
+ [9, 5],
245
+ [9, 5],
246
+ [10, 3],
247
+ [10, 3],
248
+ [11, 3],
249
+ [12, 3],
250
+ [32, 1],
251
+ [32, 1],
252
+ [32, 1],
253
+ [32, 1],
254
+ [55, 1],
255
+ [55, 1],
256
+ [13, 1],
257
+ [13, 1],
258
+ [13, 3],
259
+ [13, 3],
260
+ [30, 1],
261
+ [30, 1]
262
+ ],
263
+ performAction: /* @__PURE__ */ __name(function(e, b, x, S, C, w, T) {
264
+ var E = w.length - 1;
265
+ switch (C) {
266
+ case 3: return S.setRootDoc(w[E]), w[E];
267
+ case 4:
268
+ this.$ = [];
269
+ break;
270
+ case 5:
271
+ w[E] != "nl" && (w[E - 1].push(w[E]), this.$ = w[E - 1]);
272
+ break;
273
+ case 6:
274
+ case 7:
275
+ this.$ = w[E];
276
+ break;
277
+ case 8:
278
+ this.$ = "nl";
279
+ break;
280
+ case 12:
281
+ this.$ = w[E];
282
+ break;
283
+ case 13:
284
+ let e = w[E - 1];
285
+ e.description = S.trimColon(w[E]), this.$ = e;
286
+ break;
287
+ case 14:
288
+ this.$ = {
289
+ stmt: "relation",
290
+ state1: w[E - 2],
291
+ state2: w[E]
292
+ };
293
+ break;
294
+ case 15:
295
+ let b = S.trimColon(w[E]);
296
+ this.$ = {
297
+ stmt: "relation",
298
+ state1: w[E - 3],
299
+ state2: w[E - 1],
300
+ description: b
301
+ };
302
+ break;
303
+ case 19:
304
+ this.$ = {
305
+ stmt: "state",
306
+ id: w[E - 3],
307
+ type: "default",
308
+ description: "",
309
+ doc: w[E - 1]
310
+ };
311
+ break;
312
+ case 20:
313
+ var D = w[E], O = w[E - 2].trim();
314
+ if (w[E].match(":")) {
315
+ var k = w[E].split(":");
316
+ D = k[0], O = [O, k[1]];
317
+ }
318
+ this.$ = {
319
+ stmt: "state",
320
+ id: D,
321
+ type: "default",
322
+ description: O
323
+ };
324
+ break;
325
+ case 21:
326
+ this.$ = {
327
+ stmt: "state",
328
+ id: w[E - 3],
329
+ type: "default",
330
+ description: w[E - 5],
331
+ doc: w[E - 1]
332
+ };
333
+ break;
334
+ case 22:
335
+ this.$ = {
336
+ stmt: "state",
337
+ id: w[E],
338
+ type: "fork"
339
+ };
340
+ break;
341
+ case 23:
342
+ this.$ = {
343
+ stmt: "state",
344
+ id: w[E],
345
+ type: "join"
346
+ };
347
+ break;
348
+ case 24:
349
+ this.$ = {
350
+ stmt: "state",
351
+ id: w[E],
352
+ type: "choice"
353
+ };
354
+ break;
355
+ case 25:
356
+ this.$ = {
357
+ stmt: "state",
358
+ id: S.getDividerId(),
359
+ type: "divider"
360
+ };
361
+ break;
362
+ case 26:
363
+ this.$ = {
364
+ stmt: "state",
365
+ id: w[E - 1].trim(),
366
+ note: {
367
+ position: w[E - 2].trim(),
368
+ text: w[E].trim()
369
+ }
370
+ };
371
+ break;
372
+ case 29:
373
+ this.$ = w[E].trim(), S.setAccTitle(this.$);
374
+ break;
375
+ case 30:
376
+ case 31:
377
+ this.$ = w[E].trim(), S.setAccDescription(this.$);
378
+ break;
379
+ case 32:
380
+ this.$ = {
381
+ stmt: "click",
382
+ id: w[E - 3],
383
+ url: w[E - 2],
384
+ tooltip: w[E - 1]
385
+ };
386
+ break;
387
+ case 33:
388
+ this.$ = {
389
+ stmt: "click",
390
+ id: w[E - 3],
391
+ url: w[E - 1],
392
+ tooltip: ""
393
+ };
394
+ break;
395
+ case 34:
396
+ case 35:
397
+ this.$ = {
398
+ stmt: "classDef",
399
+ id: w[E - 1].trim(),
400
+ classes: w[E].trim()
401
+ };
402
+ break;
403
+ case 36:
404
+ this.$ = {
405
+ stmt: "style",
406
+ id: w[E - 1].trim(),
407
+ styleClass: w[E].trim()
408
+ };
409
+ break;
410
+ case 37:
411
+ this.$ = {
412
+ stmt: "applyClass",
413
+ id: w[E - 1].trim(),
414
+ styleClass: w[E].trim()
415
+ };
416
+ break;
417
+ case 38:
418
+ S.setDirection("TB"), this.$ = {
419
+ stmt: "dir",
420
+ value: "TB"
421
+ };
422
+ break;
423
+ case 39:
424
+ S.setDirection("BT"), this.$ = {
425
+ stmt: "dir",
426
+ value: "BT"
427
+ };
428
+ break;
429
+ case 40:
430
+ S.setDirection("RL"), this.$ = {
431
+ stmt: "dir",
432
+ value: "RL"
433
+ };
434
+ break;
435
+ case 41:
436
+ S.setDirection("LR"), this.$ = {
437
+ stmt: "dir",
438
+ value: "LR"
439
+ };
440
+ break;
441
+ case 44:
442
+ case 45:
443
+ this.$ = {
444
+ stmt: "state",
445
+ id: w[E].trim(),
446
+ type: "default",
447
+ description: ""
448
+ };
449
+ break;
450
+ case 46:
451
+ this.$ = {
452
+ stmt: "state",
453
+ id: w[E - 2].trim(),
454
+ classes: [w[E].trim()],
455
+ type: "default",
456
+ description: ""
457
+ };
458
+ break;
459
+ case 47:
460
+ this.$ = {
461
+ stmt: "state",
462
+ id: w[E - 2].trim(),
463
+ classes: [w[E].trim()],
464
+ type: "default",
465
+ description: ""
466
+ };
467
+ break;
468
+ }
469
+ }, "anonymous"),
470
+ table: [
471
+ {
472
+ 3: 1,
473
+ 4: x,
474
+ 5: S,
475
+ 6: C
476
+ },
477
+ { 1: [3] },
478
+ {
479
+ 3: 5,
480
+ 4: x,
481
+ 5: S,
482
+ 6: C
483
+ },
484
+ {
485
+ 3: 6,
486
+ 4: x,
487
+ 5: S,
488
+ 6: C
489
+ },
490
+ e([
491
+ 1,
492
+ 4,
493
+ 5,
494
+ 16,
495
+ 17,
496
+ 19,
497
+ 22,
498
+ 24,
499
+ 25,
500
+ 26,
501
+ 27,
502
+ 28,
503
+ 29,
504
+ 33,
505
+ 35,
506
+ 37,
507
+ 38,
508
+ 41,
509
+ 45,
510
+ 48,
511
+ 51,
512
+ 52,
513
+ 53,
514
+ 54,
515
+ 57
516
+ ], w, { 7: 7 }),
517
+ { 1: [2, 1] },
518
+ { 1: [2, 2] },
519
+ {
520
+ 1: [2, 3],
521
+ 4: T,
522
+ 5: E,
523
+ 8: 8,
524
+ 9: 10,
525
+ 10: 12,
526
+ 11: 13,
527
+ 12: 14,
528
+ 13: 15,
529
+ 16: D,
530
+ 17: O,
531
+ 19: k,
532
+ 22: A,
533
+ 24: j,
534
+ 25: M,
535
+ 26: N,
536
+ 27: P,
537
+ 28: F,
538
+ 29: I,
539
+ 32: 25,
540
+ 33: L,
541
+ 35: R,
542
+ 37: z,
543
+ 38: B,
544
+ 41: V,
545
+ 45: H,
546
+ 48: U,
547
+ 51: W,
548
+ 52: G,
549
+ 53: K,
550
+ 54: q,
551
+ 57: J
552
+ },
553
+ e(Y, [2, 5]),
554
+ {
555
+ 9: 39,
556
+ 10: 12,
557
+ 11: 13,
558
+ 12: 14,
559
+ 13: 15,
560
+ 16: D,
561
+ 17: O,
562
+ 19: k,
563
+ 22: A,
564
+ 24: j,
565
+ 25: M,
566
+ 26: N,
567
+ 27: P,
568
+ 28: F,
569
+ 29: I,
570
+ 32: 25,
571
+ 33: L,
572
+ 35: R,
573
+ 37: z,
574
+ 38: B,
575
+ 41: V,
576
+ 45: H,
577
+ 48: U,
578
+ 51: W,
579
+ 52: G,
580
+ 53: K,
581
+ 54: q,
582
+ 57: J
583
+ },
584
+ e(Y, [2, 7]),
585
+ e(Y, [2, 8]),
586
+ e(Y, [2, 9]),
587
+ e(Y, [2, 10]),
588
+ e(Y, [2, 11]),
589
+ e(Y, [2, 12], {
590
+ 14: [1, 40],
591
+ 15: [1, 41]
592
+ }),
593
+ e(Y, [2, 16]),
594
+ { 18: [1, 42] },
595
+ e(Y, [2, 18], { 20: [1, 43] }),
596
+ { 23: [1, 44] },
597
+ e(Y, [2, 22]),
598
+ e(Y, [2, 23]),
599
+ e(Y, [2, 24]),
600
+ e(Y, [2, 25]),
601
+ {
602
+ 30: 45,
603
+ 31: [1, 46],
604
+ 59: [1, 47],
605
+ 60: [1, 48]
606
+ },
607
+ e(Y, [2, 28]),
608
+ { 34: [1, 49] },
609
+ { 36: [1, 50] },
610
+ e(Y, [2, 31]),
611
+ {
612
+ 13: 51,
613
+ 24: j,
614
+ 57: J
615
+ },
616
+ {
617
+ 42: [1, 52],
618
+ 44: [1, 53]
619
+ },
620
+ { 46: [1, 54] },
621
+ { 49: [1, 55] },
622
+ e(X, [2, 44], { 58: [1, 56] }),
623
+ e(X, [2, 45], { 58: [1, 57] }),
624
+ e(Y, [2, 38]),
625
+ e(Y, [2, 39]),
626
+ e(Y, [2, 40]),
627
+ e(Y, [2, 41]),
628
+ e(Y, [2, 6]),
629
+ e(Y, [2, 13]),
630
+ {
631
+ 13: 58,
632
+ 24: j,
633
+ 57: J
634
+ },
635
+ e(Y, [2, 17]),
636
+ e(Z, w, { 7: 59 }),
637
+ { 24: [1, 60] },
638
+ { 24: [1, 61] },
639
+ { 23: [1, 62] },
640
+ { 24: [2, 48] },
641
+ { 24: [2, 49] },
642
+ e(Y, [2, 29]),
643
+ e(Y, [2, 30]),
644
+ {
645
+ 39: [1, 63],
646
+ 40: [1, 64]
647
+ },
648
+ { 43: [1, 65] },
649
+ { 43: [1, 66] },
650
+ { 47: [1, 67] },
651
+ { 50: [1, 68] },
652
+ { 24: [1, 69] },
653
+ { 24: [1, 70] },
654
+ e(Y, [2, 14], { 14: [1, 71] }),
655
+ {
656
+ 4: T,
657
+ 5: E,
658
+ 8: 8,
659
+ 9: 10,
660
+ 10: 12,
661
+ 11: 13,
662
+ 12: 14,
663
+ 13: 15,
664
+ 16: D,
665
+ 17: O,
666
+ 19: k,
667
+ 21: [1, 72],
668
+ 22: A,
669
+ 24: j,
670
+ 25: M,
671
+ 26: N,
672
+ 27: P,
673
+ 28: F,
674
+ 29: I,
675
+ 32: 25,
676
+ 33: L,
677
+ 35: R,
678
+ 37: z,
679
+ 38: B,
680
+ 41: V,
681
+ 45: H,
682
+ 48: U,
683
+ 51: W,
684
+ 52: G,
685
+ 53: K,
686
+ 54: q,
687
+ 57: J
688
+ },
689
+ e(Y, [2, 20], { 20: [1, 73] }),
690
+ { 31: [1, 74] },
691
+ { 24: [1, 75] },
692
+ { 39: [1, 76] },
693
+ { 39: [1, 77] },
694
+ e(Y, [2, 34]),
695
+ e(Y, [2, 35]),
696
+ e(Y, [2, 36]),
697
+ e(Y, [2, 37]),
698
+ e(X, [2, 46]),
699
+ e(X, [2, 47]),
700
+ e(Y, [2, 15]),
701
+ e(Y, [2, 19]),
702
+ e(Z, w, { 7: 78 }),
703
+ e(Y, [2, 26]),
704
+ e(Y, [2, 27]),
705
+ { 5: [1, 79] },
706
+ { 5: [1, 80] },
707
+ {
708
+ 4: T,
709
+ 5: E,
710
+ 8: 8,
711
+ 9: 10,
712
+ 10: 12,
713
+ 11: 13,
714
+ 12: 14,
715
+ 13: 15,
716
+ 16: D,
717
+ 17: O,
718
+ 19: k,
719
+ 21: [1, 81],
720
+ 22: A,
721
+ 24: j,
722
+ 25: M,
723
+ 26: N,
724
+ 27: P,
725
+ 28: F,
726
+ 29: I,
727
+ 32: 25,
728
+ 33: L,
729
+ 35: R,
730
+ 37: z,
731
+ 38: B,
732
+ 41: V,
733
+ 45: H,
734
+ 48: U,
735
+ 51: W,
736
+ 52: G,
737
+ 53: K,
738
+ 54: q,
739
+ 57: J
740
+ },
741
+ e(Y, [2, 32]),
742
+ e(Y, [2, 33]),
743
+ e(Y, [2, 21])
744
+ ],
745
+ defaultActions: {
746
+ 5: [2, 1],
747
+ 6: [2, 2],
748
+ 47: [2, 48],
749
+ 48: [2, 49]
750
+ },
751
+ parseError: /* @__PURE__ */ __name(function(e, b) {
752
+ if (b.recoverable) this.trace(e);
753
+ else {
754
+ var x = Error(e);
755
+ throw x.hash = b, x;
756
+ }
757
+ }, "parseError"),
758
+ parse: /* @__PURE__ */ __name(function(e) {
759
+ var x = this, S = [0], C = [], w = [null], T = [], E = this.table, D = "", O = 0, k = 0, A = 0, j = 2, M = 1, N = T.slice.call(arguments, 1), P = Object.create(this.lexer), F = { yy: {} };
760
+ for (var I in this.yy) Object.prototype.hasOwnProperty.call(this.yy, I) && (F.yy[I] = this.yy[I]);
761
+ P.setInput(e, F.yy), F.yy.lexer = P, F.yy.parser = this, P.yylloc === void 0 && (P.yylloc = {});
762
+ var L = P.yylloc;
763
+ T.push(L);
764
+ var R = P.options && P.options.ranges;
765
+ typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
766
+ function z(e) {
767
+ S.length -= 2 * e, w.length -= e, T.length -= e;
768
+ }
769
+ __name(z, "popStack");
770
+ function B() {
771
+ var e = C.pop() || P.lex() || M;
772
+ return typeof e != "number" && (e instanceof Array && (C = e, e = C.pop()), e = x.symbols_[e] || e), e;
773
+ }
774
+ __name(B, "lex");
775
+ for (var V, H, U, W, G, K = {}, q, J, Y, X;;) {
776
+ if (U = S[S.length - 1], this.defaultActions[U] ? W = this.defaultActions[U] : (V ??= B(), W = E[U] && E[U][V]), W === void 0 || !W.length || !W[0]) {
777
+ var Z = "";
778
+ for (q in X = [], E[U]) this.terminals_[q] && q > j && X.push("'" + this.terminals_[q] + "'");
779
+ Z = P.showPosition ? "Parse error on line " + (O + 1) + ":\n" + P.showPosition() + "\nExpecting " + X.join(", ") + ", got '" + (this.terminals_[V] || V) + "'" : "Parse error on line " + (O + 1) + ": Unexpected " + (V == M ? "end of input" : "'" + (this.terminals_[V] || V) + "'"), this.parseError(Z, {
780
+ text: P.match,
781
+ token: this.terminals_[V] || V,
782
+ line: P.yylineno,
783
+ loc: L,
784
+ expected: X
785
+ });
786
+ }
787
+ if (W[0] instanceof Array && W.length > 1) throw Error("Parse Error: multiple actions possible at state: " + U + ", token: " + V);
788
+ switch (W[0]) {
789
+ case 1:
790
+ S.push(V), w.push(P.yytext), T.push(P.yylloc), S.push(W[1]), V = null, H ? (V = H, H = null) : (k = P.yyleng, D = P.yytext, O = P.yylineno, L = P.yylloc, A > 0 && A--);
791
+ break;
792
+ case 2:
793
+ if (J = this.productions_[W[1]][1], K.$ = w[w.length - J], K._$ = {
794
+ first_line: T[T.length - (J || 1)].first_line,
795
+ last_line: T[T.length - 1].last_line,
796
+ first_column: T[T.length - (J || 1)].first_column,
797
+ last_column: T[T.length - 1].last_column
798
+ }, R && (K._$.range = [T[T.length - (J || 1)].range[0], T[T.length - 1].range[1]]), G = this.performAction.apply(K, [
799
+ D,
800
+ k,
801
+ O,
802
+ F.yy,
803
+ W[1],
804
+ w,
805
+ T
806
+ ].concat(N)), G !== void 0) return G;
807
+ J && (S = S.slice(0, -1 * J * 2), w = w.slice(0, -1 * J), T = T.slice(0, -1 * J)), S.push(this.productions_[W[1]][0]), w.push(K.$), T.push(K._$), Y = E[S[S.length - 2]][S[S.length - 1]], S.push(Y);
808
+ break;
809
+ case 3: return !0;
810
+ }
811
+ }
812
+ return !0;
813
+ }, "parse")
814
+ };
815
+ Q.lexer = /* @__PURE__ */ (function() {
816
+ return {
817
+ EOF: 1,
818
+ parseError: /* @__PURE__ */ __name(function(e, b) {
819
+ if (this.yy.parser) this.yy.parser.parseError(e, b);
820
+ else throw Error(e);
821
+ }, "parseError"),
822
+ setInput: /* @__PURE__ */ __name(function(e, b) {
823
+ return this.yy = b || 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 = {
824
+ first_line: 1,
825
+ first_column: 0,
826
+ last_line: 1,
827
+ last_column: 0
828
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
829
+ }, "setInput"),
830
+ input: /* @__PURE__ */ __name(function() {
831
+ var e = this._input[0];
832
+ 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;
833
+ }, "input"),
834
+ unput: /* @__PURE__ */ __name(function(e) {
835
+ var b = e.length, x = e.split(/(?:\r\n?|\n)/g);
836
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - b), this.offset -= b;
837
+ var S = this.match.split(/(?:\r\n?|\n)/g);
838
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), x.length - 1 && (this.yylineno -= x.length - 1);
839
+ var C = this.yylloc.range;
840
+ return this.yylloc = {
841
+ first_line: this.yylloc.first_line,
842
+ last_line: this.yylineno + 1,
843
+ first_column: this.yylloc.first_column,
844
+ last_column: x ? (x.length === S.length ? this.yylloc.first_column : 0) + S[S.length - x.length].length - x[0].length : this.yylloc.first_column - b
845
+ }, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - b]), this.yyleng = this.yytext.length, this;
846
+ }, "unput"),
847
+ more: /* @__PURE__ */ __name(function() {
848
+ return this._more = !0, this;
849
+ }, "more"),
850
+ reject: /* @__PURE__ */ __name(function() {
851
+ if (this.options.backtrack_lexer) this._backtrack = !0;
852
+ 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(), {
853
+ text: "",
854
+ token: null,
855
+ line: this.yylineno
856
+ });
857
+ return this;
858
+ }, "reject"),
859
+ less: /* @__PURE__ */ __name(function(e) {
860
+ this.unput(this.match.slice(e));
861
+ }, "less"),
862
+ pastInput: /* @__PURE__ */ __name(function() {
863
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
864
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
865
+ }, "pastInput"),
866
+ upcomingInput: /* @__PURE__ */ __name(function() {
867
+ var e = this.match;
868
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
869
+ }, "upcomingInput"),
870
+ showPosition: /* @__PURE__ */ __name(function() {
871
+ var e = this.pastInput(), b = Array(e.length + 1).join("-");
872
+ return e + this.upcomingInput() + "\n" + b + "^";
873
+ }, "showPosition"),
874
+ test_match: /* @__PURE__ */ __name(function(e, b) {
875
+ var x, S, C;
876
+ if (this.options.backtrack_lexer && (C = {
877
+ yylineno: this.yylineno,
878
+ yylloc: {
879
+ first_line: this.yylloc.first_line,
880
+ last_line: this.last_line,
881
+ first_column: this.yylloc.first_column,
882
+ last_column: this.yylloc.last_column
883
+ },
884
+ yytext: this.yytext,
885
+ match: this.match,
886
+ matches: this.matches,
887
+ matched: this.matched,
888
+ yyleng: this.yyleng,
889
+ offset: this.offset,
890
+ _more: this._more,
891
+ _input: this._input,
892
+ yy: this.yy,
893
+ conditionStack: this.conditionStack.slice(0),
894
+ done: this.done
895
+ }, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), S = e[0].match(/(?:\r\n?|\n).*/g), S && (this.yylineno += S.length), this.yylloc = {
896
+ first_line: this.yylloc.last_line,
897
+ last_line: this.yylineno + 1,
898
+ first_column: this.yylloc.last_column,
899
+ last_column: S ? S[S.length - 1].length - S[S.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
900
+ }, 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], x = this.performAction.call(this, this.yy, this, b, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), x) return x;
901
+ if (this._backtrack) {
902
+ for (var w in C) this[w] = C[w];
903
+ return !1;
904
+ }
905
+ return !1;
906
+ }, "test_match"),
907
+ next: /* @__PURE__ */ __name(function() {
908
+ if (this.done) return this.EOF;
909
+ this._input || (this.done = !0);
910
+ var e, b, x, S;
911
+ this._more || (this.yytext = "", this.match = "");
912
+ for (var C = this._currentRules(), w = 0; w < C.length; w++) if (x = this._input.match(this.rules[C[w]]), x && (!b || x[0].length > b[0].length)) {
913
+ if (b = x, S = w, this.options.backtrack_lexer) {
914
+ if (e = this.test_match(x, C[w]), e !== !1) return e;
915
+ if (this._backtrack) {
916
+ b = !1;
917
+ continue;
918
+ } else return !1;
919
+ } else if (!this.options.flex) break;
920
+ }
921
+ return b ? (e = this.test_match(b, C[S]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
922
+ text: "",
923
+ token: null,
924
+ line: this.yylineno
925
+ });
926
+ }, "next"),
927
+ lex: /* @__PURE__ */ __name(function() {
928
+ return this.next() || this.lex();
929
+ }, "lex"),
930
+ begin: /* @__PURE__ */ __name(function(e) {
931
+ this.conditionStack.push(e);
932
+ }, "begin"),
933
+ popState: /* @__PURE__ */ __name(function() {
934
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
935
+ }, "popState"),
936
+ _currentRules: /* @__PURE__ */ __name(function() {
937
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
938
+ }, "_currentRules"),
939
+ topState: /* @__PURE__ */ __name(function(e) {
940
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
941
+ }, "topState"),
942
+ pushState: /* @__PURE__ */ __name(function(e) {
943
+ this.begin(e);
944
+ }, "pushState"),
945
+ stateStackSize: /* @__PURE__ */ __name(function() {
946
+ return this.conditionStack.length;
947
+ }, "stateStackSize"),
948
+ options: { "case-insensitive": !0 },
949
+ performAction: /* @__PURE__ */ __name(function(e, b, x, S) {
950
+ switch (x) {
951
+ case 0: return 38;
952
+ case 1: return 40;
953
+ case 2: return 39;
954
+ case 3: return 44;
955
+ case 4: return 51;
956
+ case 5: return 52;
957
+ case 6: return 53;
958
+ case 7: return 54;
959
+ case 8: break;
960
+ case 9: break;
961
+ case 10: return 5;
962
+ case 11: break;
963
+ case 12: break;
964
+ case 13: break;
965
+ case 14: break;
966
+ case 15: return this.pushState("SCALE"), 17;
967
+ case 16: return 18;
968
+ case 17:
969
+ this.popState();
970
+ break;
971
+ case 18: return this.begin("acc_title"), 33;
972
+ case 19: return this.popState(), "acc_title_value";
973
+ case 20: return this.begin("acc_descr"), 35;
974
+ case 21: return this.popState(), "acc_descr_value";
975
+ case 22:
976
+ this.begin("acc_descr_multiline");
977
+ break;
978
+ case 23:
979
+ this.popState();
980
+ break;
981
+ case 24: return "acc_descr_multiline_value";
982
+ case 25: return this.pushState("CLASSDEF"), 41;
983
+ case 26: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
984
+ case 27: return this.popState(), this.pushState("CLASSDEFID"), 42;
985
+ case 28: return this.popState(), 43;
986
+ case 29: return this.pushState("CLASS"), 48;
987
+ case 30: return this.popState(), this.pushState("CLASS_STYLE"), 49;
988
+ case 31: return this.popState(), 50;
989
+ case 32: return this.pushState("STYLE"), 45;
990
+ case 33: return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
991
+ case 34: return this.popState(), 47;
992
+ case 35: return this.pushState("SCALE"), 17;
993
+ case 36: return 18;
994
+ case 37:
995
+ this.popState();
996
+ break;
997
+ case 38:
998
+ this.pushState("STATE");
999
+ break;
1000
+ case 39: return this.popState(), b.yytext = b.yytext.slice(0, -8).trim(), 25;
1001
+ case 40: return this.popState(), b.yytext = b.yytext.slice(0, -8).trim(), 26;
1002
+ case 41: return this.popState(), b.yytext = b.yytext.slice(0, -10).trim(), 27;
1003
+ case 42: return this.popState(), b.yytext = b.yytext.slice(0, -8).trim(), 25;
1004
+ case 43: return this.popState(), b.yytext = b.yytext.slice(0, -8).trim(), 26;
1005
+ case 44: return this.popState(), b.yytext = b.yytext.slice(0, -10).trim(), 27;
1006
+ case 45: return 51;
1007
+ case 46: return 52;
1008
+ case 47: return 53;
1009
+ case 48: return 54;
1010
+ case 49:
1011
+ this.pushState("STATE_STRING");
1012
+ break;
1013
+ case 50: return this.pushState("STATE_ID"), "AS";
1014
+ case 51: return this.popState(), "ID";
1015
+ case 52:
1016
+ this.popState();
1017
+ break;
1018
+ case 53: return "STATE_DESCR";
1019
+ case 54: return 19;
1020
+ case 55:
1021
+ this.popState();
1022
+ break;
1023
+ case 56: return this.popState(), this.pushState("struct"), 20;
1024
+ case 57: break;
1025
+ case 58: return this.popState(), 21;
1026
+ case 59: break;
1027
+ case 60: return this.begin("NOTE"), 29;
1028
+ case 61: return this.popState(), this.pushState("NOTE_ID"), 59;
1029
+ case 62: return this.popState(), this.pushState("NOTE_ID"), 60;
1030
+ case 63:
1031
+ this.popState(), this.pushState("FLOATING_NOTE");
1032
+ break;
1033
+ case 64: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1034
+ case 65: break;
1035
+ case 66: return "NOTE_TEXT";
1036
+ case 67: return this.popState(), "ID";
1037
+ case 68: return this.popState(), this.pushState("NOTE_TEXT"), 24;
1038
+ case 69: return this.popState(), b.yytext = b.yytext.substr(2).trim(), 31;
1039
+ case 70: return this.popState(), b.yytext = b.yytext.slice(0, -8).trim(), 31;
1040
+ case 71: return 6;
1041
+ case 72: return 6;
1042
+ case 73: return 16;
1043
+ case 74: return 57;
1044
+ case 75: return 24;
1045
+ case 76: return b.yytext = b.yytext.trim(), 14;
1046
+ case 77: return 15;
1047
+ case 78: return 28;
1048
+ case 79: return 58;
1049
+ case 80: return 5;
1050
+ case 81: return "INVALID";
1051
+ }
1052
+ }, "anonymous"),
1053
+ rules: [
1054
+ /^(?:click\b)/i,
1055
+ /^(?:href\b)/i,
1056
+ /^(?:"[^"]*")/i,
1057
+ /^(?:default\b)/i,
1058
+ /^(?:.*direction\s+TB[^\n]*)/i,
1059
+ /^(?:.*direction\s+BT[^\n]*)/i,
1060
+ /^(?:.*direction\s+RL[^\n]*)/i,
1061
+ /^(?:.*direction\s+LR[^\n]*)/i,
1062
+ /^(?:%%(?!\{)[^\n]*)/i,
1063
+ /^(?:[^\}]%%[^\n]*)/i,
1064
+ /^(?:[\n]+)/i,
1065
+ /^(?:[\s]+)/i,
1066
+ /^(?:((?!\n)\s)+)/i,
1067
+ /^(?:#[^\n]*)/i,
1068
+ /^(?:%[^\n]*)/i,
1069
+ /^(?:scale\s+)/i,
1070
+ /^(?:\d+)/i,
1071
+ /^(?:\s+width\b)/i,
1072
+ /^(?:accTitle\s*:\s*)/i,
1073
+ /^(?:(?!\n||)*[^\n]*)/i,
1074
+ /^(?:accDescr\s*:\s*)/i,
1075
+ /^(?:(?!\n||)*[^\n]*)/i,
1076
+ /^(?:accDescr\s*\{\s*)/i,
1077
+ /^(?:[\}])/i,
1078
+ /^(?:[^\}]*)/i,
1079
+ /^(?:classDef\s+)/i,
1080
+ /^(?:DEFAULT\s+)/i,
1081
+ /^(?:\w+\s+)/i,
1082
+ /^(?:[^\n]*)/i,
1083
+ /^(?:class\s+)/i,
1084
+ /^(?:(\w+)+((,\s*\w+)*))/i,
1085
+ /^(?:[^\n]*)/i,
1086
+ /^(?:style\s+)/i,
1087
+ /^(?:[\w,]+\s+)/i,
1088
+ /^(?:[^\n]*)/i,
1089
+ /^(?:scale\s+)/i,
1090
+ /^(?:\d+)/i,
1091
+ /^(?:\s+width\b)/i,
1092
+ /^(?:state\s+)/i,
1093
+ /^(?:.*<<fork>>)/i,
1094
+ /^(?:.*<<join>>)/i,
1095
+ /^(?:.*<<choice>>)/i,
1096
+ /^(?:.*\[\[fork\]\])/i,
1097
+ /^(?:.*\[\[join\]\])/i,
1098
+ /^(?:.*\[\[choice\]\])/i,
1099
+ /^(?:.*direction\s+TB[^\n]*)/i,
1100
+ /^(?:.*direction\s+BT[^\n]*)/i,
1101
+ /^(?:.*direction\s+RL[^\n]*)/i,
1102
+ /^(?:.*direction\s+LR[^\n]*)/i,
1103
+ /^(?:["])/i,
1104
+ /^(?:\s*as\s+)/i,
1105
+ /^(?:[^\n\{]*)/i,
1106
+ /^(?:["])/i,
1107
+ /^(?:[^"]*)/i,
1108
+ /^(?:[^\n\s\{]+)/i,
1109
+ /^(?:\n)/i,
1110
+ /^(?:\{)/i,
1111
+ /^(?:%%(?!\{)[^\n]*)/i,
1112
+ /^(?:\})/i,
1113
+ /^(?:[\n])/i,
1114
+ /^(?:note\s+)/i,
1115
+ /^(?:left of\b)/i,
1116
+ /^(?:right of\b)/i,
1117
+ /^(?:")/i,
1118
+ /^(?:\s*as\s*)/i,
1119
+ /^(?:["])/i,
1120
+ /^(?:[^"]*)/i,
1121
+ /^(?:[^\n]*)/i,
1122
+ /^(?:\s*[^:\n\s\-]+)/i,
1123
+ /^(?:\s*:[^:\n;]+)/i,
1124
+ /^(?:[\s\S]*?end note\b)/i,
1125
+ /^(?:stateDiagram\s+)/i,
1126
+ /^(?:stateDiagram-v2\s+)/i,
1127
+ /^(?:hide empty description\b)/i,
1128
+ /^(?:\[\*\])/i,
1129
+ /^(?:[^:\n\s\-\{]+)/i,
1130
+ /^(?:\s*:[^:\n;]+)/i,
1131
+ /^(?:-->)/i,
1132
+ /^(?:--)/i,
1133
+ /^(?::::)/i,
1134
+ /^(?:$)/i,
1135
+ /^(?:.)/i
1136
+ ],
1137
+ conditions: {
1138
+ LINE: {
1139
+ rules: [12, 13],
1140
+ inclusive: !1
1141
+ },
1142
+ struct: {
1143
+ rules: [
1144
+ 12,
1145
+ 13,
1146
+ 25,
1147
+ 29,
1148
+ 32,
1149
+ 38,
1150
+ 45,
1151
+ 46,
1152
+ 47,
1153
+ 48,
1154
+ 57,
1155
+ 58,
1156
+ 59,
1157
+ 60,
1158
+ 74,
1159
+ 75,
1160
+ 76,
1161
+ 77,
1162
+ 78
1163
+ ],
1164
+ inclusive: !1
1165
+ },
1166
+ FLOATING_NOTE_ID: {
1167
+ rules: [67],
1168
+ inclusive: !1
1169
+ },
1170
+ FLOATING_NOTE: {
1171
+ rules: [
1172
+ 64,
1173
+ 65,
1174
+ 66
1175
+ ],
1176
+ inclusive: !1
1177
+ },
1178
+ NOTE_TEXT: {
1179
+ rules: [69, 70],
1180
+ inclusive: !1
1181
+ },
1182
+ NOTE_ID: {
1183
+ rules: [68],
1184
+ inclusive: !1
1185
+ },
1186
+ NOTE: {
1187
+ rules: [
1188
+ 61,
1189
+ 62,
1190
+ 63
1191
+ ],
1192
+ inclusive: !1
1193
+ },
1194
+ STYLEDEF_STYLEOPTS: {
1195
+ rules: [],
1196
+ inclusive: !1
1197
+ },
1198
+ STYLEDEF_STYLES: {
1199
+ rules: [34],
1200
+ inclusive: !1
1201
+ },
1202
+ STYLE_IDS: {
1203
+ rules: [],
1204
+ inclusive: !1
1205
+ },
1206
+ STYLE: {
1207
+ rules: [33],
1208
+ inclusive: !1
1209
+ },
1210
+ CLASS_STYLE: {
1211
+ rules: [31],
1212
+ inclusive: !1
1213
+ },
1214
+ CLASS: {
1215
+ rules: [30],
1216
+ inclusive: !1
1217
+ },
1218
+ CLASSDEFID: {
1219
+ rules: [28],
1220
+ inclusive: !1
1221
+ },
1222
+ CLASSDEF: {
1223
+ rules: [26, 27],
1224
+ inclusive: !1
1225
+ },
1226
+ acc_descr_multiline: {
1227
+ rules: [23, 24],
1228
+ inclusive: !1
1229
+ },
1230
+ acc_descr: {
1231
+ rules: [21],
1232
+ inclusive: !1
1233
+ },
1234
+ acc_title: {
1235
+ rules: [19],
1236
+ inclusive: !1
1237
+ },
1238
+ SCALE: {
1239
+ rules: [
1240
+ 16,
1241
+ 17,
1242
+ 36,
1243
+ 37
1244
+ ],
1245
+ inclusive: !1
1246
+ },
1247
+ ALIAS: {
1248
+ rules: [],
1249
+ inclusive: !1
1250
+ },
1251
+ STATE_ID: {
1252
+ rules: [51],
1253
+ inclusive: !1
1254
+ },
1255
+ STATE_STRING: {
1256
+ rules: [52, 53],
1257
+ inclusive: !1
1258
+ },
1259
+ FORK_STATE: {
1260
+ rules: [],
1261
+ inclusive: !1
1262
+ },
1263
+ STATE: {
1264
+ rules: [
1265
+ 12,
1266
+ 13,
1267
+ 39,
1268
+ 40,
1269
+ 41,
1270
+ 42,
1271
+ 43,
1272
+ 44,
1273
+ 49,
1274
+ 50,
1275
+ 54,
1276
+ 55,
1277
+ 56
1278
+ ],
1279
+ inclusive: !1
1280
+ },
1281
+ ID: {
1282
+ rules: [12, 13],
1283
+ inclusive: !1
1284
+ },
1285
+ INITIAL: {
1286
+ rules: [
1287
+ 0,
1288
+ 1,
1289
+ 2,
1290
+ 3,
1291
+ 4,
1292
+ 5,
1293
+ 6,
1294
+ 7,
1295
+ 8,
1296
+ 9,
1297
+ 10,
1298
+ 11,
1299
+ 13,
1300
+ 14,
1301
+ 15,
1302
+ 18,
1303
+ 20,
1304
+ 22,
1305
+ 25,
1306
+ 29,
1307
+ 32,
1308
+ 35,
1309
+ 38,
1310
+ 56,
1311
+ 60,
1312
+ 71,
1313
+ 72,
1314
+ 73,
1315
+ 74,
1316
+ 75,
1317
+ 76,
1318
+ 77,
1319
+ 79,
1320
+ 80,
1321
+ 81
1322
+ ],
1323
+ inclusive: !0
1324
+ }
1325
+ }
1326
+ };
1327
+ })();
1328
+ function $() {
1329
+ this.yy = {};
1330
+ }
1331
+ return __name($, "Parser"), $.prototype = Q, Q.Parser = $, new $();
1332
+ })();
1333
+ parser.parser = parser;
1334
+ var stateDiagram_default = parser, DEFAULT_DIAGRAM_DIRECTION = "TB", DEFAULT_NESTED_DOC_DIR = "TB", STMT_DIRECTION = "dir", STMT_STATE = "state", STMT_ROOT = "root", STMT_RELATION = "relation", STMT_CLASSDEF = "classDef", STMT_STYLEDEF = "style", STMT_APPLYCLASS = "applyClass", DEFAULT_STATE_TYPE = "default", DIVIDER_TYPE = "divider", G_EDGE_STYLE = "fill:none", G_EDGE_ARROWHEADSTYLE = "fill: #333", G_EDGE_LABELPOS = "c", G_EDGE_LABELTYPE = "text", G_EDGE_THICKNESS = "normal", SHAPE_STATE = "rect", SHAPE_STATE_WITH_DESC = "rectWithTitle", SHAPE_START = "stateStart", SHAPE_END = "stateEnd", SHAPE_DIVIDER = "divider", SHAPE_GROUP = "roundedWithTitle", SHAPE_NOTE = "note", SHAPE_NOTEGROUP = "noteGroup", CSS_DIAGRAM = "statediagram", CSS_DIAGRAM_STATE = `${CSS_DIAGRAM}-state`, CSS_EDGE = "transition", CSS_NOTE = "note", CSS_EDGE_NOTE_EDGE = `${CSS_EDGE} note-edge`, CSS_DIAGRAM_NOTE = `${CSS_DIAGRAM}-${CSS_NOTE}`, CSS_DIAGRAM_CLUSTER = `${CSS_DIAGRAM}-cluster`, CSS_DIAGRAM_CLUSTER_ALT = `${CSS_DIAGRAM}-cluster-alt`, PARENT = "parent", NOTE = "note", DOMID_STATE = "state", DOMID_TYPE_SPACER = "----", NOTE_ID = `${DOMID_TYPE_SPACER}${NOTE}`, PARENT_ID = `${DOMID_TYPE_SPACER}${PARENT}`, getDir = /* @__PURE__ */ __name((e, b = DEFAULT_NESTED_DOC_DIR) => {
1335
+ if (!e.doc) return b;
1336
+ let x = b;
1337
+ for (let b of e.doc) b.stmt === "dir" && (x = b.value);
1338
+ return x;
1339
+ }, "getDir"), stateRenderer_v3_unified_default = {
1340
+ getClasses: /* @__PURE__ */ __name(function(e, b) {
1341
+ return b.db.getClasses();
1342
+ }, "getClasses"),
1343
+ draw: /* @__PURE__ */ __name(async function(b, x, S, C) {
1344
+ log.info("REF0:"), log.info("Drawing state diagram (v2)", x);
1345
+ let { securityLevel: w, state: T, layout: D } = getConfig2();
1346
+ C.db.extract(C.db.getRootDocV2());
1347
+ let O = C.db.getData(), k = getDiagramElement(x, w);
1348
+ O.type = C.type, O.layoutAlgorithm = D, O.nodeSpacing = T?.nodeSpacing || 50, O.rankSpacing = T?.rankSpacing || 50, O.markers = ["barb"], O.diagramId = x, await render(O, k);
1349
+ try {
1350
+ (typeof C.db.getLinks == "function" ? C.db.getLinks() : /* @__PURE__ */ new Map()).forEach((b, x) => {
1351
+ let S = typeof x == "string" ? x : typeof x?.id == "string" ? x.id : "";
1352
+ if (!S) {
1353
+ log.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(x));
1354
+ return;
1355
+ }
1356
+ let C = k.node()?.querySelectorAll("g"), w;
1357
+ if (C?.forEach((e) => {
1358
+ e.textContent?.trim() === S && (w = e);
1359
+ }), !w) {
1360
+ log.warn("⚠️ Could not find node matching text:", S);
1361
+ return;
1362
+ }
1363
+ let T = w.parentNode;
1364
+ if (!T) {
1365
+ log.warn("⚠️ Node has no parent, cannot wrap:", S);
1366
+ return;
1367
+ }
1368
+ let E = document.createElementNS("http://www.w3.org/2000/svg", "a"), D = b.url.replace(/^"+|"+$/g, "");
1369
+ if (E.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", D), E.setAttribute("target", "_blank"), b.tooltip) {
1370
+ let e = b.tooltip.replace(/^"+|"+$/g, "");
1371
+ E.setAttribute("title", e);
1372
+ }
1373
+ T.replaceChild(E, w), E.appendChild(w), log.info("🔗 Wrapped node in <a> tag for:", S, b.url);
1374
+ });
1375
+ } catch (b) {
1376
+ log.error("❌ Error injecting clickable links:", b);
1377
+ }
1378
+ utils_default.insertTitle(k, "statediagramTitleText", T?.titleTopMargin ?? 25, C.db.getDiagramTitle()), setupViewPortForSVG(k, 8, CSS_DIAGRAM, T?.useMaxWidth ?? !0);
1379
+ }, "draw"),
1380
+ getDir
1381
+ }, nodeDb = /* @__PURE__ */ new Map(), graphItemCount = 0;
1382
+ function stateDomId(e = "", b = 0, x = "", S = DOMID_TYPE_SPACER) {
1383
+ return `${DOMID_STATE}-${e}${x !== null && x.length > 0 ? `${S}${x}` : ""}-${b}`;
1384
+ }
1385
+ __name(stateDomId, "stateDomId");
1386
+ var setupDoc = /* @__PURE__ */ __name((b, x, S, C, w, T, O, k) => {
1387
+ log.trace("items", x), x.forEach((e) => {
1388
+ switch (e.stmt) {
1389
+ case STMT_STATE:
1390
+ dataFetcher(b, e, S, C, w, T, O, k);
1391
+ break;
1392
+ case DEFAULT_STATE_TYPE:
1393
+ dataFetcher(b, e, S, C, w, T, O, k);
1394
+ break;
1395
+ case STMT_RELATION:
1396
+ {
1397
+ dataFetcher(b, e.state1, S, C, w, T, O, k), dataFetcher(b, e.state2, S, C, w, T, O, k);
1398
+ let x = {
1399
+ id: "edge" + graphItemCount,
1400
+ start: e.state1.id,
1401
+ end: e.state2.id,
1402
+ arrowhead: "normal",
1403
+ arrowTypeEnd: "arrow_barb",
1404
+ style: G_EDGE_STYLE,
1405
+ labelStyle: "",
1406
+ label: common_default.sanitizeText(e.description ?? "", getConfig2()),
1407
+ arrowheadStyle: G_EDGE_ARROWHEADSTYLE,
1408
+ labelpos: G_EDGE_LABELPOS,
1409
+ labelType: G_EDGE_LABELTYPE,
1410
+ thickness: G_EDGE_THICKNESS,
1411
+ classes: CSS_EDGE,
1412
+ look: O
1413
+ };
1414
+ w.push(x), graphItemCount++;
1415
+ }
1416
+ break;
1417
+ }
1418
+ });
1419
+ }, "setupDoc"), getDir2 = /* @__PURE__ */ __name((e, b = DEFAULT_NESTED_DOC_DIR) => {
1420
+ let x = b;
1421
+ if (e.doc) for (let b of e.doc) b.stmt === "dir" && (x = b.value);
1422
+ return x;
1423
+ }, "getDir");
1424
+ function insertOrUpdateNode(e, b, x) {
1425
+ if (!b.id || b.id === "</join></fork>" || b.id === "</choice>") return;
1426
+ b.cssClasses && (Array.isArray(b.cssCompiledStyles) || (b.cssCompiledStyles = []), b.cssClasses.split(" ").forEach((e) => {
1427
+ let S = x.get(e);
1428
+ S && (b.cssCompiledStyles = [...b.cssCompiledStyles ?? [], ...S.styles]);
1429
+ }));
1430
+ let S = e.find((e) => e.id === b.id);
1431
+ S ? Object.assign(S, b) : e.push(b);
1432
+ }
1433
+ __name(insertOrUpdateNode, "insertOrUpdateNode");
1434
+ function getClassesFromDbInfo(e) {
1435
+ return e?.classes?.join(" ") ?? "";
1436
+ }
1437
+ __name(getClassesFromDbInfo, "getClassesFromDbInfo");
1438
+ function getStylesFromDbInfo(e) {
1439
+ return e?.styles ?? [];
1440
+ }
1441
+ __name(getStylesFromDbInfo, "getStylesFromDbInfo");
1442
+ var dataFetcher = /* @__PURE__ */ __name((b, x, S, C, w, T, O, k) => {
1443
+ let A = x.id, j = S.get(A), M = getClassesFromDbInfo(j), N = getStylesFromDbInfo(j), P = getConfig2();
1444
+ if (log.info("dataFetcher parsedItem", x, j, N), A !== "root") {
1445
+ let S = SHAPE_STATE;
1446
+ x.start === !0 ? S = SHAPE_START : x.start === !1 && (S = SHAPE_END), x.type !== DEFAULT_STATE_TYPE && (S = x.type), nodeDb.get(A) || nodeDb.set(A, {
1447
+ id: A,
1448
+ shape: S,
1449
+ description: common_default.sanitizeText(A, P),
1450
+ cssClasses: `${M} ${CSS_DIAGRAM_STATE}`,
1451
+ cssStyles: N
1452
+ });
1453
+ let E = nodeDb.get(A);
1454
+ x.description && (Array.isArray(E.description) ? (E.shape = SHAPE_STATE_WITH_DESC, E.description.push(x.description)) : E.description?.length && E.description.length > 0 ? (E.shape = SHAPE_STATE_WITH_DESC, E.description === A ? E.description = [x.description] : E.description = [E.description, x.description]) : (E.shape = SHAPE_STATE, E.description = x.description), E.description = common_default.sanitizeTextOrArray(E.description, P)), E.description?.length === 1 && E.shape === SHAPE_STATE_WITH_DESC && (E.type === "group" ? E.shape = SHAPE_GROUP : E.shape = SHAPE_STATE), !E.type && x.doc && (log.info("Setting cluster for XCX", A, getDir2(x)), E.type = "group", E.isGroup = !0, E.dir = getDir2(x), E.shape = x.type === DIVIDER_TYPE ? SHAPE_DIVIDER : SHAPE_GROUP, E.cssClasses = `${E.cssClasses} ${CSS_DIAGRAM_CLUSTER} ${T ? CSS_DIAGRAM_CLUSTER_ALT : ""}`);
1455
+ let j = {
1456
+ labelStyle: "",
1457
+ shape: E.shape,
1458
+ label: E.description,
1459
+ cssClasses: E.cssClasses,
1460
+ cssCompiledStyles: [],
1461
+ cssStyles: E.cssStyles,
1462
+ id: A,
1463
+ dir: E.dir,
1464
+ domId: stateDomId(A, graphItemCount),
1465
+ type: E.type,
1466
+ isGroup: E.type === "group",
1467
+ padding: 8,
1468
+ rx: 10,
1469
+ ry: 10,
1470
+ look: O
1471
+ };
1472
+ if (j.shape === SHAPE_DIVIDER && (j.label = ""), b && b.id !== "root" && (log.trace("Setting node ", A, " to be child of its parent ", b.id), j.parentId = b.id), j.centerLabel = !0, x.note) {
1473
+ let e = {
1474
+ labelStyle: "",
1475
+ shape: SHAPE_NOTE,
1476
+ label: x.note.text,
1477
+ cssClasses: CSS_DIAGRAM_NOTE,
1478
+ cssStyles: [],
1479
+ cssCompiledStyles: [],
1480
+ id: A + NOTE_ID + "-" + graphItemCount,
1481
+ domId: stateDomId(A, graphItemCount, NOTE),
1482
+ type: E.type,
1483
+ isGroup: E.type === "group",
1484
+ padding: P.flowchart?.padding,
1485
+ look: O,
1486
+ position: x.note.position
1487
+ }, b = A + PARENT_ID, S = {
1488
+ labelStyle: "",
1489
+ shape: SHAPE_NOTEGROUP,
1490
+ label: x.note.text,
1491
+ cssClasses: E.cssClasses,
1492
+ cssStyles: [],
1493
+ id: A + PARENT_ID,
1494
+ domId: stateDomId(A, graphItemCount, PARENT),
1495
+ type: "group",
1496
+ isGroup: !0,
1497
+ padding: 16,
1498
+ look: O,
1499
+ position: x.note.position
1500
+ };
1501
+ graphItemCount++, S.id = b, e.parentId = b, insertOrUpdateNode(C, S, k), insertOrUpdateNode(C, e, k), insertOrUpdateNode(C, j, k);
1502
+ let T = A, D = e.id;
1503
+ x.note.position === "left of" && (T = e.id, D = A), w.push({
1504
+ id: T + "-" + D,
1505
+ start: T,
1506
+ end: D,
1507
+ arrowhead: "none",
1508
+ arrowTypeEnd: "",
1509
+ style: G_EDGE_STYLE,
1510
+ labelStyle: "",
1511
+ classes: CSS_EDGE_NOTE_EDGE,
1512
+ arrowheadStyle: G_EDGE_ARROWHEADSTYLE,
1513
+ labelpos: G_EDGE_LABELPOS,
1514
+ labelType: G_EDGE_LABELTYPE,
1515
+ thickness: G_EDGE_THICKNESS,
1516
+ look: O
1517
+ });
1518
+ } else insertOrUpdateNode(C, j, k);
1519
+ }
1520
+ x.doc && (log.trace("Adding nodes children "), setupDoc(x, x.doc, S, C, w, !T, O, k));
1521
+ }, "dataFetcher"), reset = /* @__PURE__ */ __name(() => {
1522
+ nodeDb.clear(), graphItemCount = 0;
1523
+ }, "reset"), CONSTANTS = {
1524
+ START_NODE: "[*]",
1525
+ START_TYPE: "start",
1526
+ END_NODE: "[*]",
1527
+ END_TYPE: "end",
1528
+ COLOR_KEYWORD: "color",
1529
+ FILL_KEYWORD: "fill",
1530
+ BG_FILL: "bgFill",
1531
+ STYLECLASS_SEP: ","
1532
+ }, newClassesList = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Map(), "newClassesList"), newDoc = /* @__PURE__ */ __name(() => ({
1533
+ relations: [],
1534
+ states: /* @__PURE__ */ new Map(),
1535
+ documents: {}
1536
+ }), "newDoc"), clone = /* @__PURE__ */ __name((e) => JSON.parse(JSON.stringify(e)), "clone"), StateDB = class {
1537
+ constructor(e) {
1538
+ this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = newClassesList(), this.documents = { root: newDoc() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = getAccTitle, this.setAccTitle = setAccTitle, this.getAccDescription = getAccDescription, this.setAccDescription = setAccDescription, this.setDiagramTitle = setDiagramTitle, this.getDiagramTitle = getDiagramTitle, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
1539
+ }
1540
+ static #e = __name(this, "StateDB");
1541
+ static #t = this.relationType = {
1542
+ AGGREGATION: 0,
1543
+ EXTENSION: 1,
1544
+ COMPOSITION: 2,
1545
+ DEPENDENCY: 3
1546
+ };
1547
+ extract(e) {
1548
+ this.clear(!0);
1549
+ for (let b of Array.isArray(e) ? e : e.doc) switch (b.stmt) {
1550
+ case STMT_STATE:
1551
+ this.addState(b.id.trim(), b.type, b.doc, b.description, b.note);
1552
+ break;
1553
+ case STMT_RELATION:
1554
+ this.addRelation(b.state1, b.state2, b.description);
1555
+ break;
1556
+ case STMT_CLASSDEF:
1557
+ this.addStyleClass(b.id.trim(), b.classes);
1558
+ break;
1559
+ case STMT_STYLEDEF:
1560
+ this.handleStyleDef(b);
1561
+ break;
1562
+ case STMT_APPLYCLASS:
1563
+ this.setCssClass(b.id.trim(), b.styleClass);
1564
+ break;
1565
+ case "click":
1566
+ this.addLink(b.id, b.url, b.tooltip);
1567
+ break;
1568
+ }
1569
+ let b = this.getStates(), x = getConfig2();
1570
+ reset(), dataFetcher(void 0, this.getRootDocV2(), b, this.nodes, this.edges, !0, x.look, this.classes);
1571
+ for (let e of this.nodes) if (Array.isArray(e.label)) {
1572
+ if (e.description = e.label.slice(1), e.isGroup && e.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);
1573
+ e.label = e.label[0];
1574
+ }
1575
+ }
1576
+ handleStyleDef(e) {
1577
+ let b = e.id.trim().split(","), x = e.styleClass.split(",");
1578
+ for (let e of b) {
1579
+ let b = this.getState(e);
1580
+ if (!b) {
1581
+ let x = e.trim();
1582
+ this.addState(x), b = this.getState(x);
1583
+ }
1584
+ b && (b.styles = x.map((e) => e.replace(/;/g, "")?.trim()));
1585
+ }
1586
+ }
1587
+ setRootDoc(b) {
1588
+ log.info("Setting root doc", b), this.rootDoc = b, this.version === 1 ? this.extract(b) : this.extract(this.getRootDocV2());
1589
+ }
1590
+ docTranslator(e, b, x) {
1591
+ if (b.stmt === STMT_RELATION) {
1592
+ this.docTranslator(e, b.state1, !0), this.docTranslator(e, b.state2, !1);
1593
+ return;
1594
+ }
1595
+ if (b.stmt === STMT_STATE && (b.id === CONSTANTS.START_NODE ? (b.id = e.id + (x ? "_start" : "_end"), b.start = x) : b.id = b.id.trim()), b.stmt !== STMT_ROOT && b.stmt !== STMT_STATE || !b.doc) return;
1596
+ let S = [], C = [];
1597
+ for (let e of b.doc) if (e.type === DIVIDER_TYPE) {
1598
+ let b = clone(e);
1599
+ b.doc = clone(C), S.push(b), C = [];
1600
+ } else C.push(e);
1601
+ if (S.length > 0 && C.length > 0) {
1602
+ let e = {
1603
+ stmt: STMT_STATE,
1604
+ id: generateId(),
1605
+ type: "divider",
1606
+ doc: clone(C)
1607
+ };
1608
+ S.push(clone(e)), b.doc = S;
1609
+ }
1610
+ b.doc.forEach((e) => this.docTranslator(b, e, !0));
1611
+ }
1612
+ getRootDocV2() {
1613
+ return this.docTranslator({
1614
+ id: STMT_ROOT,
1615
+ stmt: STMT_ROOT
1616
+ }, {
1617
+ id: STMT_ROOT,
1618
+ stmt: STMT_ROOT,
1619
+ doc: this.rootDoc
1620
+ }, !0), {
1621
+ id: STMT_ROOT,
1622
+ doc: this.rootDoc
1623
+ };
1624
+ }
1625
+ addState(b, x = DEFAULT_STATE_TYPE, S = void 0, C = void 0, w = void 0, T = void 0, O = void 0, k = void 0) {
1626
+ let A = b?.trim();
1627
+ if (!this.currentDocument.states.has(A)) log.info("Adding state ", A, C), this.currentDocument.states.set(A, {
1628
+ stmt: STMT_STATE,
1629
+ id: A,
1630
+ descriptions: [],
1631
+ type: x,
1632
+ doc: S,
1633
+ note: w,
1634
+ classes: [],
1635
+ styles: [],
1636
+ textStyles: []
1637
+ });
1638
+ else {
1639
+ let e = this.currentDocument.states.get(A);
1640
+ if (!e) throw Error(`State not found: ${A}`);
1641
+ e.doc ||= S, e.type ||= x;
1642
+ }
1643
+ if (C && (log.info("Setting state description", A, C), (Array.isArray(C) ? C : [C]).forEach((e) => this.addDescription(A, e.trim()))), w) {
1644
+ let e = this.currentDocument.states.get(A);
1645
+ if (!e) throw Error(`State not found: ${A}`);
1646
+ e.note = w, e.note.text = common_default.sanitizeText(e.note.text, getConfig2());
1647
+ }
1648
+ T && (log.info("Setting state classes", A, T), (Array.isArray(T) ? T : [T]).forEach((e) => this.setCssClass(A, e.trim()))), O && (log.info("Setting state styles", A, O), (Array.isArray(O) ? O : [O]).forEach((e) => this.setStyle(A, e.trim()))), k && (log.info("Setting state styles", A, O), (Array.isArray(k) ? k : [k]).forEach((e) => this.setTextStyle(A, e.trim())));
1649
+ }
1650
+ clear(e) {
1651
+ this.nodes = [], this.edges = [], this.documents = { root: newDoc() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = newClassesList(), e || (this.links = /* @__PURE__ */ new Map(), clear());
1652
+ }
1653
+ getState(e) {
1654
+ return this.currentDocument.states.get(e);
1655
+ }
1656
+ getStates() {
1657
+ return this.currentDocument.states;
1658
+ }
1659
+ logDocuments() {
1660
+ log.info("Documents = ", this.documents);
1661
+ }
1662
+ getRelations() {
1663
+ return this.currentDocument.relations;
1664
+ }
1665
+ addLink(b, x, S) {
1666
+ this.links.set(b, {
1667
+ url: x,
1668
+ tooltip: S
1669
+ }), log.warn("Adding link", b, x, S);
1670
+ }
1671
+ getLinks() {
1672
+ return this.links;
1673
+ }
1674
+ startIdIfNeeded(e = "") {
1675
+ return e === CONSTANTS.START_NODE ? (this.startEndCount++, `${CONSTANTS.START_TYPE}${this.startEndCount}`) : e;
1676
+ }
1677
+ startTypeIfNeeded(e = "", b = DEFAULT_STATE_TYPE) {
1678
+ return e === CONSTANTS.START_NODE ? CONSTANTS.START_TYPE : b;
1679
+ }
1680
+ endIdIfNeeded(e = "") {
1681
+ return e === CONSTANTS.END_NODE ? (this.startEndCount++, `${CONSTANTS.END_TYPE}${this.startEndCount}`) : e;
1682
+ }
1683
+ endTypeIfNeeded(e = "", b = DEFAULT_STATE_TYPE) {
1684
+ return e === CONSTANTS.END_NODE ? CONSTANTS.END_TYPE : b;
1685
+ }
1686
+ addRelationObjs(e, b, x = "") {
1687
+ let S = this.startIdIfNeeded(e.id.trim()), C = this.startTypeIfNeeded(e.id.trim(), e.type), w = this.startIdIfNeeded(b.id.trim()), T = this.startTypeIfNeeded(b.id.trim(), b.type);
1688
+ this.addState(S, C, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(w, T, b.doc, b.description, b.note, b.classes, b.styles, b.textStyles), this.currentDocument.relations.push({
1689
+ id1: S,
1690
+ id2: w,
1691
+ relationTitle: common_default.sanitizeText(x, getConfig2())
1692
+ });
1693
+ }
1694
+ addRelation(e, b, x) {
1695
+ if (typeof e == "object" && typeof b == "object") this.addRelationObjs(e, b, x);
1696
+ else if (typeof e == "string" && typeof b == "string") {
1697
+ let S = this.startIdIfNeeded(e.trim()), C = this.startTypeIfNeeded(e), w = this.endIdIfNeeded(b.trim()), T = this.endTypeIfNeeded(b);
1698
+ this.addState(S, C), this.addState(w, T), this.currentDocument.relations.push({
1699
+ id1: S,
1700
+ id2: w,
1701
+ relationTitle: x ? common_default.sanitizeText(x, getConfig2()) : void 0
1702
+ });
1703
+ }
1704
+ }
1705
+ addDescription(e, b) {
1706
+ let x = this.currentDocument.states.get(e), S = b.startsWith(":") ? b.replace(":", "").trim() : b;
1707
+ x?.descriptions?.push(common_default.sanitizeText(S, getConfig2()));
1708
+ }
1709
+ cleanupLabel(e) {
1710
+ return e.startsWith(":") ? e.slice(2).trim() : e.trim();
1711
+ }
1712
+ getDividerId() {
1713
+ return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
1714
+ }
1715
+ addStyleClass(e, b = "") {
1716
+ this.classes.has(e) || this.classes.set(e, {
1717
+ id: e,
1718
+ styles: [],
1719
+ textStyles: []
1720
+ });
1721
+ let x = this.classes.get(e);
1722
+ b && x && b.split(CONSTANTS.STYLECLASS_SEP).forEach((e) => {
1723
+ let b = e.replace(/([^;]*);/, "$1").trim();
1724
+ if (RegExp(CONSTANTS.COLOR_KEYWORD).exec(e)) {
1725
+ let e = b.replace(CONSTANTS.FILL_KEYWORD, CONSTANTS.BG_FILL).replace(CONSTANTS.COLOR_KEYWORD, CONSTANTS.FILL_KEYWORD);
1726
+ x.textStyles.push(e);
1727
+ }
1728
+ x.styles.push(b);
1729
+ });
1730
+ }
1731
+ getClasses() {
1732
+ return this.classes;
1733
+ }
1734
+ setCssClass(e, b) {
1735
+ e.split(",").forEach((e) => {
1736
+ let x = this.getState(e);
1737
+ if (!x) {
1738
+ let b = e.trim();
1739
+ this.addState(b), x = this.getState(b);
1740
+ }
1741
+ x?.classes?.push(b);
1742
+ });
1743
+ }
1744
+ setStyle(e, b) {
1745
+ this.getState(e)?.styles?.push(b);
1746
+ }
1747
+ setTextStyle(e, b) {
1748
+ this.getState(e)?.textStyles?.push(b);
1749
+ }
1750
+ getDirectionStatement() {
1751
+ return this.rootDoc.find((e) => e.stmt === STMT_DIRECTION);
1752
+ }
1753
+ getDirection() {
1754
+ return this.getDirectionStatement()?.value ?? DEFAULT_DIAGRAM_DIRECTION;
1755
+ }
1756
+ setDirection(e) {
1757
+ let b = this.getDirectionStatement();
1758
+ b ? b.value = e : this.rootDoc.unshift({
1759
+ stmt: STMT_DIRECTION,
1760
+ value: e
1761
+ });
1762
+ }
1763
+ trimColon(e) {
1764
+ return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1765
+ }
1766
+ getData() {
1767
+ let e = getConfig2();
1768
+ return {
1769
+ nodes: this.nodes,
1770
+ edges: this.edges,
1771
+ other: {},
1772
+ config: e,
1773
+ direction: getDir(this.getRootDocV2())
1774
+ };
1775
+ }
1776
+ getConfig() {
1777
+ return getConfig2().state;
1778
+ }
1779
+ }, styles_default = /* @__PURE__ */ __name((e) => `
1780
+ defs #statediagram-barbEnd {
1781
+ fill: ${e.transitionColor};
1782
+ stroke: ${e.transitionColor};
1783
+ }
1784
+ g.stateGroup text {
1785
+ fill: ${e.nodeBorder};
1786
+ stroke: none;
1787
+ font-size: 10px;
1788
+ }
1789
+ g.stateGroup text {
1790
+ fill: ${e.textColor};
1791
+ stroke: none;
1792
+ font-size: 10px;
1793
+
1794
+ }
1795
+ g.stateGroup .state-title {
1796
+ font-weight: bolder;
1797
+ fill: ${e.stateLabelColor};
1798
+ }
1799
+
1800
+ g.stateGroup rect {
1801
+ fill: ${e.mainBkg};
1802
+ stroke: ${e.nodeBorder};
1803
+ }
1804
+
1805
+ g.stateGroup line {
1806
+ stroke: ${e.lineColor};
1807
+ stroke-width: 1;
1808
+ }
1809
+
1810
+ .transition {
1811
+ stroke: ${e.transitionColor};
1812
+ stroke-width: 1;
1813
+ fill: none;
1814
+ }
1815
+
1816
+ .stateGroup .composit {
1817
+ fill: ${e.background};
1818
+ border-bottom: 1px
1819
+ }
1820
+
1821
+ .stateGroup .alt-composit {
1822
+ fill: #e0e0e0;
1823
+ border-bottom: 1px
1824
+ }
1825
+
1826
+ .state-note {
1827
+ stroke: ${e.noteBorderColor};
1828
+ fill: ${e.noteBkgColor};
1829
+
1830
+ text {
1831
+ fill: ${e.noteTextColor};
1832
+ stroke: none;
1833
+ font-size: 10px;
1834
+ }
1835
+ }
1836
+
1837
+ .stateLabel .box {
1838
+ stroke: none;
1839
+ stroke-width: 0;
1840
+ fill: ${e.mainBkg};
1841
+ opacity: 0.5;
1842
+ }
1843
+
1844
+ .edgeLabel .label rect {
1845
+ fill: ${e.labelBackgroundColor};
1846
+ opacity: 0.5;
1847
+ }
1848
+ .edgeLabel {
1849
+ background-color: ${e.edgeLabelBackground};
1850
+ p {
1851
+ background-color: ${e.edgeLabelBackground};
1852
+ }
1853
+ rect {
1854
+ opacity: 0.5;
1855
+ background-color: ${e.edgeLabelBackground};
1856
+ fill: ${e.edgeLabelBackground};
1857
+ }
1858
+ text-align: center;
1859
+ }
1860
+ .edgeLabel .label text {
1861
+ fill: ${e.transitionLabelColor || e.tertiaryTextColor};
1862
+ }
1863
+ .label div .edgeLabel {
1864
+ color: ${e.transitionLabelColor || e.tertiaryTextColor};
1865
+ }
1866
+
1867
+ .stateLabel text {
1868
+ fill: ${e.stateLabelColor};
1869
+ font-size: 10px;
1870
+ font-weight: bold;
1871
+ }
1872
+
1873
+ .node circle.state-start {
1874
+ fill: ${e.specialStateColor};
1875
+ stroke: ${e.specialStateColor};
1876
+ }
1877
+
1878
+ .node .fork-join {
1879
+ fill: ${e.specialStateColor};
1880
+ stroke: ${e.specialStateColor};
1881
+ }
1882
+
1883
+ .node circle.state-end {
1884
+ fill: ${e.innerEndBackground};
1885
+ stroke: ${e.background};
1886
+ stroke-width: 1.5
1887
+ }
1888
+ .end-state-inner {
1889
+ fill: ${e.compositeBackground || e.background};
1890
+ // stroke: ${e.background};
1891
+ stroke-width: 1.5
1892
+ }
1893
+
1894
+ .node rect {
1895
+ fill: ${e.stateBkg || e.mainBkg};
1896
+ stroke: ${e.stateBorder || e.nodeBorder};
1897
+ stroke-width: 1px;
1898
+ }
1899
+ .node polygon {
1900
+ fill: ${e.mainBkg};
1901
+ stroke: ${e.stateBorder || e.nodeBorder};;
1902
+ stroke-width: 1px;
1903
+ }
1904
+ #statediagram-barbEnd {
1905
+ fill: ${e.lineColor};
1906
+ }
1907
+
1908
+ .statediagram-cluster rect {
1909
+ fill: ${e.compositeTitleBackground};
1910
+ stroke: ${e.stateBorder || e.nodeBorder};
1911
+ stroke-width: 1px;
1912
+ }
1913
+
1914
+ .cluster-label, .nodeLabel {
1915
+ color: ${e.stateLabelColor};
1916
+ // line-height: 1;
1917
+ }
1918
+
1919
+ .statediagram-cluster rect.outer {
1920
+ rx: 5px;
1921
+ ry: 5px;
1922
+ }
1923
+ .statediagram-state .divider {
1924
+ stroke: ${e.stateBorder || e.nodeBorder};
1925
+ }
1926
+
1927
+ .statediagram-state .title-state {
1928
+ rx: 5px;
1929
+ ry: 5px;
1930
+ }
1931
+ .statediagram-cluster.statediagram-cluster .inner {
1932
+ fill: ${e.compositeBackground || e.background};
1933
+ }
1934
+ .statediagram-cluster.statediagram-cluster-alt .inner {
1935
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1936
+ }
1937
+
1938
+ .statediagram-cluster .inner {
1939
+ rx:0;
1940
+ ry:0;
1941
+ }
1942
+
1943
+ .statediagram-state rect.basic {
1944
+ rx: 5px;
1945
+ ry: 5px;
1946
+ }
1947
+ .statediagram-state rect.divider {
1948
+ stroke-dasharray: 10,10;
1949
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1950
+ }
1951
+
1952
+ .note-edge {
1953
+ stroke-dasharray: 5;
1954
+ }
1955
+
1956
+ .statediagram-note rect {
1957
+ fill: ${e.noteBkgColor};
1958
+ stroke: ${e.noteBorderColor};
1959
+ stroke-width: 1px;
1960
+ rx: 0;
1961
+ ry: 0;
1962
+ }
1963
+ .statediagram-note rect {
1964
+ fill: ${e.noteBkgColor};
1965
+ stroke: ${e.noteBorderColor};
1966
+ stroke-width: 1px;
1967
+ rx: 0;
1968
+ ry: 0;
1969
+ }
1970
+
1971
+ .statediagram-note text {
1972
+ fill: ${e.noteTextColor};
1973
+ }
1974
+
1975
+ .statediagram-note .nodeLabel {
1976
+ color: ${e.noteTextColor};
1977
+ }
1978
+ .statediagram .edgeLabel {
1979
+ color: red; // ${e.noteTextColor};
1980
+ }
1981
+
1982
+ #dependencyStart, #dependencyEnd {
1983
+ fill: ${e.lineColor};
1984
+ stroke: ${e.lineColor};
1985
+ stroke-width: 1;
1986
+ }
1987
+
1988
+ .statediagramTitleText {
1989
+ text-anchor: middle;
1990
+ font-size: 18px;
1991
+ fill: ${e.textColor};
1992
+ }
1993
+ `, "getStyles");
1994
+ export { styles_default as i, stateDiagram_default as n, stateRenderer_v3_unified_default as r, StateDB as t };