@kong-ui-public/documentation 1.8.13 → 1.8.14-pr.4048.7a10d83bb.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/package.json +2 -2
  2. package/dist/abnfDiagram-VCTEODGH-Bzbg7AHk-DFERbIEu.js +0 -92
  3. package/dist/arc-CKhg5DVn-BIpMje7c.js +0 -80
  4. package/dist/architectureDiagram-5GKGNRK7-CqHVyBRI-CLWcRmoG.js +0 -4149
  5. package/dist/astro-DdQ3Kp7Q-BDE5qFXd.js +0 -18
  6. package/dist/blockDiagram-I7D4REHJ-DWFqHR0L-D8v5LhXM.js +0 -2029
  7. package/dist/c-lfOsiBpu-DMPKLUI8.js +0 -4
  8. package/dist/c4Diagram-7LVT6UL2-DXHigzTJ-BR9440iK.js +0 -3067
  9. package/dist/catppuccin-latte-D9NPLB7Y-sAlQrrP2.js +0 -4
  10. package/dist/channel-DUDXYB-g-BsX3Acdu.js +0 -5
  11. package/dist/chunk-2Q5K7J3B-CQFXhYzi-C3CTUgHo.js +0 -12
  12. package/dist/chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js +0 -19
  13. package/dist/chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js +0 -65
  14. package/dist/chunk-IMKFNOWR-DIsz_YLV-B6u2fLNJ.js +0 -2116
  15. package/dist/chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js +0 -8
  16. package/dist/chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js +0 -24
  17. package/dist/chunk-SHT3W25Y-CKxDgOBI-OOdqZuVE.js +0 -4307
  18. package/dist/chunk-SVP7TREG-tW_qYlvV-vP5bsK2H.js +0 -500
  19. package/dist/chunk-TICWLB2K-CuiDrX3P-WR-FPNea.js +0 -3451
  20. package/dist/chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js +0 -8
  21. package/dist/classDiagram-ZZMXUADV-WzcguFxl-CKKn1Tfx.js +0 -17
  22. package/dist/classDiagram-v2-VYDZK3BY-jdAXYY7W-CKKn1Tfx.js +0 -17
  23. package/dist/cose-bilkent-JH36ORCC-DbS7GVMv-bbQOsy5Y.js +0 -2256
  24. package/dist/csharp-RRkgh3c4-lim_vKPd.js +0 -4
  25. package/dist/css-BbwcBM_4-B_2PRTA_.js +0 -4
  26. package/dist/csv-DFU5sVkH-BPWcOTV4.js +0 -4
  27. package/dist/cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js +0 -21781
  28. package/dist/cynefinDiagram-5FMLGOSQ-BNb88xpJ-DfS9O7P4.js +0 -351
  29. package/dist/cytoscape.esm-YSf_2rtb-CoO8mT3p.js +0 -18279
  30. package/dist/dagre-C9xJrfGe-Di-1Ikh0.js +0 -1667
  31. package/dist/dagre-GXQ25YYZ-uiXfyLw2-PU-qeT6_.js +0 -429
  32. package/dist/defaultLocale-TbxLDlcU-BrdwcF9K.js +0 -180
  33. package/dist/diagram-S7CK7UJ4-g67BXvGR-Cp9bzjGj.js +0 -303
  34. package/dist/diagram-UQ7AKVKN-DfJJIsVs-CC7ekguS.js +0 -210
  35. package/dist/diagram-VSXAHHWV-DmtFfqWN-C9ZLHKzj.js +0 -439
  36. package/dist/diagram-VX7I27RA--gfQ90BY-QNtwG6Ck.js +0 -477
  37. package/dist/diagram-Z3DM3KII-Cu_rSHu0-CCCsIuz4.js +0 -127
  38. package/dist/diff-D_LJiFgV-DenOJuyV.js +0 -4
  39. package/dist/docker-DMpUQ2UE-xX8PDoIv.js +0 -4
  40. package/dist/documentation.es.js +0 -7
  41. package/dist/documentation.umd.js +0 -3715
  42. package/dist/ebnfDiagram-PWID7BFC-B_qfACMJ-D_Xjruh2.js +0 -109
  43. package/dist/erDiagram-RLTQ6QDP-Dt9efGmz-BPS1Iwl5.js +0 -2042
  44. package/dist/flowDiagram-HODETNUW-sAcaB3rt-Ci8x-zG0.js +0 -6
  45. package/dist/ganttDiagram-EL5Y4UJY-CtWGP-hX-qar4oLEq.js +0 -3098
  46. package/dist/git-commit--2NDNcyW-Dw9_h8sQ.js +0 -5
  47. package/dist/git-rebase-CbNvxADk-DAgBrkyL.js +0 -5
  48. package/dist/gitGraphDiagram-WWUBYQGX-B7B7IG_5-x8UcOce8.js +0 -737
  49. package/dist/go-BEdBk4fh-DqSXHrGo.js +0 -4
  50. package/dist/graphql-BMuT9GwB-BP9pcQru.js +0 -14
  51. package/dist/haml-D3QmTYiV-BTaBXoPr.js +0 -10
  52. package/dist/handlebars-C_aYHp26-CWcrQHYv.js +0 -14
  53. package/dist/haskell-DSSJ-2AO-BlmVjKNy.js +0 -4
  54. package/dist/html-derivative-DgZQ_xNe-BAs__2u-.js +0 -5
  55. package/dist/html-zcQqUZxh-Dg8OkMBp.js +0 -10
  56. package/dist/http-BGkfDG8i-lqXytFlH.js +0 -14
  57. package/dist/index-BaAWoj3P.js +0 -43522
  58. package/dist/infoDiagram-27XIBGKW-DAx9hub5-CDUrF89O.js +0 -18
  59. package/dist/ini-CmgEGOBJ-70PBzbbb.js +0 -4
  60. package/dist/init-Cgg2UTSf-BsHkAom2.js +0 -15
  61. package/dist/ishikawaDiagram-5VMMS53U-CnBB9iXH-2YyZ3Nxy.js +0 -729
  62. package/dist/java-CaG1IqbK-D6YBp1XX.js +0 -4
  63. package/dist/javascript--0qAxhnA-BRPKgr3C.js +0 -4
  64. package/dist/journeyDiagram-3NMN7TZE-B0a4pOJX-CgtsuE-Y.js +0 -909
  65. package/dist/json-DVwBUiza-D8uacQj0.js +0 -4
  66. package/dist/json5-D2Eltym1-Biib5ALh.js +0 -4
  67. package/dist/jsonc-BPIJyZ7u-BZEKkMok.js +0 -4
  68. package/dist/jsonl-BGkjXns2-BG2V-IA2.js +0 -4
  69. package/dist/jsx-cVAJ0Z2c-Cl0AMtmu.js +0 -4
  70. package/dist/kanban-definition-UXKFOSKX-BGnOZMUl-CHT2EG_7.js +0 -1029
  71. package/dist/katex-Be3DWdAP-BWcdC2Xb.js +0 -22287
  72. package/dist/kotlin-CQsNEM2o-Dy_91eL4.js +0 -4
  73. package/dist/latex-g3NZbvcl-tKQf8TuW.js +0 -5
  74. package/dist/less-9LYkHheD-tcNg8M2_.js +0 -4
  75. package/dist/linear-Cf872ac2-BjGvLlX5.js +0 -254
  76. package/dist/liquid-CG3ph2-5-wZo8nDay.js +0 -14
  77. package/dist/lua-BdA7_iyX-Fg4s9W4F.js +0 -5
  78. package/dist/make-CE9Hryyp-CrUl7LOH.js +0 -4
  79. package/dist/markdown-Gqx6-FHJ-Bcqt-5kX.js +0 -4
  80. package/dist/material-theme-darker-DL4lHZSa-DMHCIvq5.js +0 -4
  81. package/dist/mdc-C-RLGlI2-DzcUIqJQ.js +0 -12
  82. package/dist/mdx-DswfiFg4-CK6jOqmu.js +0 -4
  83. package/dist/mermaid-CAl3BhSL-CpQh0Vft.js +0 -4
  84. package/dist/mindmap-definition-YA3MSWOX-D0iYuN9C-B3uI77eT.js +0 -1026
  85. package/dist/nginx-CokYOiS8-DjML3dpY.js +0 -5
  86. package/dist/objective-c-DK-EKgyd-C809HPrX.js +0 -4
  87. package/dist/ordinal-CNzaYghg-B_JXdapq.js +0 -63
  88. package/dist/pascal-CRtegPzh-a8whuidZ.js +0 -4
  89. package/dist/pegDiagram-XKGWAZYB-6oG4KeYC-CG27veJ_.js +0 -104
  90. package/dist/perl-C45KUBhP-Q6opd9qO.js +0 -16
  91. package/dist/php-COzTb61D-DW91EkjY.js +0 -18
  92. package/dist/pieDiagram-E7YTZNPT-DsNO0m7t-CMKObJlC.js +0 -191
  93. package/dist/plsql-Bx7tup_v-BJoF2Vrf.js +0 -4
  94. package/dist/postcss-DjDdOEzv-DaHMm3XW.js +0 -4
  95. package/dist/powershell-BeUvHe6o-BC3uPZPS.js +0 -4
  96. package/dist/proto-DGLklcji-w0B_itsp.js +0 -4
  97. package/dist/pug-BQ5MM2xz-DMZvJUHt.js +0 -12
  98. package/dist/python-C_6ySqsv-D_5pfY__.js +0 -4
  99. package/dist/quadrantDiagram-AXDQQJYC-B6Dc7fje-C23uvcHP.js +0 -2046
  100. package/dist/r-CNL4a0Qi-pixge7f9.js +0 -4
  101. package/dist/railroadDiagram-O6MQD6OU-D8qLcD4O-B_Hr3s-n.js +0 -80
  102. package/dist/reg-D6txjqBF-bHAwx9Pm.js +0 -4
  103. package/dist/requirementDiagram-BXWQKSXE-Cx28BZaS-Bu-h1fa9.js +0 -2283
  104. package/dist/rst-xmthoFSf-BdN-iqJu.js +0 -20
  105. package/dist/ruby-CmwqiOyg-B5qGUHPy.js +0 -44
  106. package/dist/rust-BrRMzTsN-CaZtBt24.js +0 -4
  107. package/dist/sankeyDiagram-P5KCCOFB-CqEXebJJ-BrChTi-e.js +0 -948
  108. package/dist/sass-CL6GLiPQ-pslLeRRb.js +0 -4
  109. package/dist/scss-CiLZCexj-CladYQkr.js +0 -5
  110. package/dist/sequenceDiagram-WJ2MYXX4-Bs_1V5D1-Da6JW3KG.js +0 -4263
  111. package/dist/shellscript-Dfpezy65-BtH46UX7.js +0 -4
  112. package/dist/shellsession-CRcAC04a-BFLTslz7.js +0 -5
  113. package/dist/sizeCapture-INFHLROL-Bc4fS2u3-DMniWWy4.js +0 -46
  114. package/dist/splunk-MGILMmew-BP8P7eWt.js +0 -4
  115. package/dist/sql-D_W5grEC-Dcn2WLbD.js +0 -4
  116. package/dist/ssh-config-CFmUyPR7-BB1rrGb9.js +0 -4
  117. package/dist/stateDiagram-D77RDMKH-oTiwIYVV-BphZk0uR.js +0 -210
  118. package/dist/stateDiagram-v2-MP3YSRHH-gbAY2cmo-D78HyGx1.js +0 -17
  119. package/dist/style.css +0 -1
  120. package/dist/stylus-Kh83dApl-DAu5PNZ9.js +0 -4
  121. package/dist/svelte-HVIHTyhe-BdPJXyv7.js +0 -14
  122. package/dist/swift-B7Z-rXzN-CQtmhAMw.js +0 -4
  123. package/dist/swimlanes-42K2YHIH-BSXAPn2j-C7pTnVuk.js +0 -4983
  124. package/dist/swimlanesDiagram-VR7AAH4N-Ror_0lre-Di8OVgei.js +0 -17
  125. package/dist/timeline-definition-24CTP7MA-gOHmAY1H-aIgAzo7s.js +0 -1096
  126. package/dist/toml-CIQJnU5u-DjT9Bjqu.js +0 -4
  127. package/dist/tsx-DiMnnori-B-5hSr15.js +0 -4
  128. package/dist/twig-BXXOiPVV-CmgmU-L-.js +0 -18
  129. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  130. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  131. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  132. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  133. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  134. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  135. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  136. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  137. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  138. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  139. package/dist/types/composables/index.d.ts +0 -6
  140. package/dist/types/composables/index.d.ts.map +0 -1
  141. package/dist/types/composables/useI18n.d.ts +0 -9
  142. package/dist/types/composables/useI18n.d.ts.map +0 -1
  143. package/dist/types/external-links.d.ts +0 -5
  144. package/dist/types/external-links.d.ts.map +0 -1
  145. package/dist/types/helpers.d.ts +0 -8
  146. package/dist/types/helpers.d.ts.map +0 -1
  147. package/dist/types/index.d.ts +0 -7
  148. package/dist/types/index.d.ts.map +0 -1
  149. package/dist/types/types/document-list.d.ts +0 -28
  150. package/dist/types/types/document-list.d.ts.map +0 -1
  151. package/dist/types/types/document-modal.d.ts +0 -8
  152. package/dist/types/types/document-modal.d.ts.map +0 -1
  153. package/dist/types/types/index.d.ts +0 -3
  154. package/dist/types/types/index.d.ts.map +0 -1
  155. package/dist/typescript-DFf19o_s-B0ag8pir.js +0 -4
  156. package/dist/v-DbYZLS97-CAPuTPjr.js +0 -4
  157. package/dist/vb-DRaXf86R-Bx9Rwnco.js +0 -4
  158. package/dist/vennDiagram-4TSXK5OY-Cr4BWMuk-BjBvyxCC.js +0 -1911
  159. package/dist/viml-DgaHry3T-BeYQ8dZh.js +0 -4
  160. package/dist/vue-DPI5F0qT-D-Ahkoja.js +0 -22
  161. package/dist/vue-html-D7FCsiW2-DLSUNIPr.js +0 -5
  162. package/dist/wardleyDiagram-VM6X3IG4-a6H91k9Q-CsH4gQQ0.js +0 -639
  163. package/dist/wasm-DXa1gtBd-CfuK9YWP.js +0 -4
  164. package/dist/wgsl-Vcm3Lg52-C2IZ7ENh.js +0 -4
  165. package/dist/xml-DnOpIvRK-C-akVYiK.js +0 -5
  166. package/dist/xsl-K_2BlT3G-D3eRZGNO.js +0 -5
  167. package/dist/xychartDiagram-S5SC5T6Z-7mX_nPmO-CoM4SG9q.js +0 -2218
  168. package/dist/yaml-BswqmnDe-X78l_Ibz.js +0 -4
@@ -1,2116 +0,0 @@
1
- import { a as u, m as T, c as w, i as ee, N as se, t as ie, e as re, r as ne, n as oe, j as ae, k as le, bg as ce, b as z, $ as he, G as kt, T as de } from "./index-BaAWoj3P.js";
2
- import { f as ue } from "./chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js";
3
- import { n as pe } from "./chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js";
4
- import { r as ye } from "./chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js";
5
- var Dt = (function() {
6
- var t = /* @__PURE__ */ u(function(o, l, y, m) {
7
- for (y ||= {}, m = o.length; m--; y[o[m]] = l) ;
8
- return y;
9
- }, "o"), e = [1, 2], s = [1, 3], n = [1, 4], r = [2, 4], h = [1, 9], c = [1, 11], f = [1, 16], p = [1, 17], S = [1, 18], b = [1, 19], E = [1, 33], N = [1, 20], A = [1, 21], d = [1, 22], C = [1, 23], D = [1, 24], R = [1, 26], x = [1, 27], O = [1, 28], F = [1, 29], tt = [1, 30], et = [1, 31], st = [1, 32], it = [1, 35], rt = [1, 36], nt = [1, 37], ot = [1, 38], U = [1, 34], g = [
10
- 1,
11
- 4,
12
- 5,
13
- 16,
14
- 17,
15
- 19,
16
- 21,
17
- 22,
18
- 24,
19
- 25,
20
- 26,
21
- 27,
22
- 28,
23
- 29,
24
- 33,
25
- 35,
26
- 37,
27
- 38,
28
- 41,
29
- 45,
30
- 48,
31
- 51,
32
- 52,
33
- 53,
34
- 54,
35
- 57
36
- ], at = [
37
- 1,
38
- 4,
39
- 5,
40
- 14,
41
- 15,
42
- 16,
43
- 17,
44
- 19,
45
- 21,
46
- 22,
47
- 24,
48
- 25,
49
- 26,
50
- 27,
51
- 28,
52
- 29,
53
- 33,
54
- 35,
55
- 37,
56
- 38,
57
- 39,
58
- 40,
59
- 41,
60
- 45,
61
- 48,
62
- 51,
63
- 52,
64
- 53,
65
- 54,
66
- 57
67
- ], vt = [
68
- 4,
69
- 5,
70
- 16,
71
- 17,
72
- 19,
73
- 21,
74
- 22,
75
- 24,
76
- 25,
77
- 26,
78
- 27,
79
- 28,
80
- 29,
81
- 33,
82
- 35,
83
- 37,
84
- 38,
85
- 41,
86
- 45,
87
- 48,
88
- 51,
89
- 52,
90
- 53,
91
- 54,
92
- 57
93
- ], mt = {
94
- trace: /* @__PURE__ */ u(function() {
95
- }, "trace"),
96
- yy: {},
97
- symbols_: {
98
- error: 2,
99
- start: 3,
100
- SPACE: 4,
101
- NL: 5,
102
- SD: 6,
103
- document: 7,
104
- line: 8,
105
- statement: 9,
106
- classDefStatement: 10,
107
- styleStatement: 11,
108
- cssClassStatement: 12,
109
- idStatement: 13,
110
- DESCR: 14,
111
- "-->": 15,
112
- HIDE_EMPTY: 16,
113
- scale: 17,
114
- WIDTH: 18,
115
- COMPOSIT_STATE: 19,
116
- STRUCT_START: 20,
117
- STRUCT_STOP: 21,
118
- STATE_DESCR: 22,
119
- AS: 23,
120
- ID: 24,
121
- FORK: 25,
122
- JOIN: 26,
123
- CHOICE: 27,
124
- CONCURRENT: 28,
125
- note: 29,
126
- notePosition: 30,
127
- NOTE_TEXT: 31,
128
- direction: 32,
129
- acc_title: 33,
130
- acc_title_value: 34,
131
- acc_descr: 35,
132
- acc_descr_value: 36,
133
- acc_descr_multiline_value: 37,
134
- CLICK: 38,
135
- STRING: 39,
136
- HREF: 40,
137
- classDef: 41,
138
- CLASSDEF_ID: 42,
139
- CLASSDEF_STYLEOPTS: 43,
140
- DEFAULT: 44,
141
- style: 45,
142
- STYLE_IDS: 46,
143
- STYLEDEF_STYLEOPTS: 47,
144
- class: 48,
145
- CLASSENTITY_IDS: 49,
146
- STYLECLASS: 50,
147
- direction_tb: 51,
148
- direction_bt: 52,
149
- direction_rl: 53,
150
- direction_lr: 54,
151
- eol: 55,
152
- ";": 56,
153
- EDGE_STATE: 57,
154
- STYLE_SEPARATOR: 58,
155
- left_of: 59,
156
- right_of: 60,
157
- $accept: 0,
158
- $end: 1
159
- },
160
- terminals_: {
161
- 2: "error",
162
- 4: "SPACE",
163
- 5: "NL",
164
- 6: "SD",
165
- 14: "DESCR",
166
- 15: "-->",
167
- 16: "HIDE_EMPTY",
168
- 17: "scale",
169
- 18: "WIDTH",
170
- 19: "COMPOSIT_STATE",
171
- 20: "STRUCT_START",
172
- 21: "STRUCT_STOP",
173
- 22: "STATE_DESCR",
174
- 23: "AS",
175
- 24: "ID",
176
- 25: "FORK",
177
- 26: "JOIN",
178
- 27: "CHOICE",
179
- 28: "CONCURRENT",
180
- 29: "note",
181
- 31: "NOTE_TEXT",
182
- 33: "acc_title",
183
- 34: "acc_title_value",
184
- 35: "acc_descr",
185
- 36: "acc_descr_value",
186
- 37: "acc_descr_multiline_value",
187
- 38: "CLICK",
188
- 39: "STRING",
189
- 40: "HREF",
190
- 41: "classDef",
191
- 42: "CLASSDEF_ID",
192
- 43: "CLASSDEF_STYLEOPTS",
193
- 44: "DEFAULT",
194
- 45: "style",
195
- 46: "STYLE_IDS",
196
- 47: "STYLEDEF_STYLEOPTS",
197
- 48: "class",
198
- 49: "CLASSENTITY_IDS",
199
- 50: "STYLECLASS",
200
- 51: "direction_tb",
201
- 52: "direction_bt",
202
- 53: "direction_rl",
203
- 54: "direction_lr",
204
- 56: ";",
205
- 57: "EDGE_STATE",
206
- 58: "STYLE_SEPARATOR",
207
- 59: "left_of",
208
- 60: "right_of"
209
- },
210
- productions_: [
211
- 0,
212
- [3, 2],
213
- [3, 2],
214
- [3, 2],
215
- [7, 0],
216
- [7, 2],
217
- [8, 2],
218
- [8, 1],
219
- [8, 1],
220
- [9, 1],
221
- [9, 1],
222
- [9, 1],
223
- [9, 1],
224
- [9, 2],
225
- [9, 3],
226
- [9, 4],
227
- [9, 1],
228
- [9, 2],
229
- [9, 1],
230
- [9, 4],
231
- [9, 3],
232
- [9, 6],
233
- [9, 1],
234
- [9, 1],
235
- [9, 1],
236
- [9, 1],
237
- [9, 4],
238
- [9, 4],
239
- [9, 1],
240
- [9, 2],
241
- [9, 2],
242
- [9, 1],
243
- [9, 5],
244
- [9, 5],
245
- [10, 3],
246
- [10, 3],
247
- [11, 3],
248
- [12, 3],
249
- [32, 1],
250
- [32, 1],
251
- [32, 1],
252
- [32, 1],
253
- [55, 1],
254
- [55, 1],
255
- [13, 1],
256
- [13, 1],
257
- [13, 3],
258
- [13, 3],
259
- [30, 1],
260
- [30, 1]
261
- ],
262
- performAction: /* @__PURE__ */ u(function(o, l, y, m, _, i, P) {
263
- var a = i.length - 1;
264
- switch (_) {
265
- case 3:
266
- return m.setRootDoc(i[a]), i[a];
267
- case 4:
268
- this.$ = [];
269
- break;
270
- case 5:
271
- i[a] != "nl" && (i[a - 1].push(i[a]), this.$ = i[a - 1]);
272
- break;
273
- case 6:
274
- case 7:
275
- this.$ = i[a];
276
- break;
277
- case 8:
278
- this.$ = "nl";
279
- break;
280
- case 12:
281
- this.$ = i[a];
282
- break;
283
- case 13:
284
- let ht = i[a - 1];
285
- ht.description = m.trimColon(i[a]), this.$ = ht;
286
- break;
287
- case 14:
288
- this.$ = {
289
- stmt: "relation",
290
- state1: i[a - 2],
291
- state2: i[a]
292
- };
293
- break;
294
- case 15:
295
- let dt = m.trimColon(i[a]);
296
- this.$ = {
297
- stmt: "relation",
298
- state1: i[a - 3],
299
- state2: i[a - 1],
300
- description: dt
301
- };
302
- break;
303
- case 19:
304
- this.$ = {
305
- stmt: "state",
306
- id: i[a - 3],
307
- type: "default",
308
- description: "",
309
- doc: i[a - 1]
310
- };
311
- break;
312
- case 20:
313
- var G = i[a], K = i[a - 2].trim();
314
- if (i[a].match(":")) {
315
- var ct = i[a].split(":");
316
- G = ct[0], K = [K, ct[1]];
317
- }
318
- this.$ = {
319
- stmt: "state",
320
- id: G,
321
- type: "default",
322
- description: K
323
- };
324
- break;
325
- case 21:
326
- this.$ = {
327
- stmt: "state",
328
- id: i[a - 3],
329
- type: "default",
330
- description: i[a - 5],
331
- doc: i[a - 1]
332
- };
333
- break;
334
- case 22:
335
- this.$ = {
336
- stmt: "state",
337
- id: i[a],
338
- type: "fork"
339
- };
340
- break;
341
- case 23:
342
- this.$ = {
343
- stmt: "state",
344
- id: i[a],
345
- type: "join"
346
- };
347
- break;
348
- case 24:
349
- this.$ = {
350
- stmt: "state",
351
- id: i[a],
352
- type: "choice"
353
- };
354
- break;
355
- case 25:
356
- this.$ = {
357
- stmt: "state",
358
- id: m.getDividerId(),
359
- type: "divider"
360
- };
361
- break;
362
- case 26:
363
- this.$ = {
364
- stmt: "state",
365
- id: i[a - 1].trim(),
366
- note: {
367
- position: i[a - 2].trim(),
368
- text: i[a].trim()
369
- }
370
- };
371
- break;
372
- case 29:
373
- this.$ = i[a].trim(), m.setAccTitle(this.$);
374
- break;
375
- case 30:
376
- case 31:
377
- this.$ = i[a].trim(), m.setAccDescription(this.$);
378
- break;
379
- case 32:
380
- this.$ = {
381
- stmt: "click",
382
- id: i[a - 3],
383
- url: i[a - 2],
384
- tooltip: i[a - 1]
385
- };
386
- break;
387
- case 33:
388
- this.$ = {
389
- stmt: "click",
390
- id: i[a - 3],
391
- url: i[a - 1],
392
- tooltip: ""
393
- };
394
- break;
395
- case 34:
396
- case 35:
397
- this.$ = {
398
- stmt: "classDef",
399
- id: i[a - 1].trim(),
400
- classes: i[a].trim()
401
- };
402
- break;
403
- case 36:
404
- this.$ = {
405
- stmt: "style",
406
- id: i[a - 1].trim(),
407
- styleClass: i[a].trim()
408
- };
409
- break;
410
- case 37:
411
- this.$ = {
412
- stmt: "applyClass",
413
- id: i[a - 1].trim(),
414
- styleClass: i[a].trim()
415
- };
416
- break;
417
- case 38:
418
- m.setDirection("TB"), this.$ = {
419
- stmt: "dir",
420
- value: "TB"
421
- };
422
- break;
423
- case 39:
424
- m.setDirection("BT"), this.$ = {
425
- stmt: "dir",
426
- value: "BT"
427
- };
428
- break;
429
- case 40:
430
- m.setDirection("RL"), this.$ = {
431
- stmt: "dir",
432
- value: "RL"
433
- };
434
- break;
435
- case 41:
436
- m.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: i[a].trim(),
446
- type: "default",
447
- description: ""
448
- };
449
- break;
450
- case 46:
451
- this.$ = {
452
- stmt: "state",
453
- id: i[a - 2].trim(),
454
- classes: [i[a].trim()],
455
- type: "default",
456
- description: ""
457
- };
458
- break;
459
- case 47:
460
- this.$ = {
461
- stmt: "state",
462
- id: i[a - 2].trim(),
463
- classes: [i[a].trim()],
464
- type: "default",
465
- description: ""
466
- };
467
- }
468
- }, "anonymous"),
469
- table: [
470
- {
471
- 3: 1,
472
- 4: e,
473
- 5: s,
474
- 6: n
475
- },
476
- { 1: [3] },
477
- {
478
- 3: 5,
479
- 4: e,
480
- 5: s,
481
- 6: n
482
- },
483
- {
484
- 3: 6,
485
- 4: e,
486
- 5: s,
487
- 6: n
488
- },
489
- t([
490
- 1,
491
- 4,
492
- 5,
493
- 16,
494
- 17,
495
- 19,
496
- 22,
497
- 24,
498
- 25,
499
- 26,
500
- 27,
501
- 28,
502
- 29,
503
- 33,
504
- 35,
505
- 37,
506
- 38,
507
- 41,
508
- 45,
509
- 48,
510
- 51,
511
- 52,
512
- 53,
513
- 54,
514
- 57
515
- ], r, { 7: 7 }),
516
- { 1: [2, 1] },
517
- { 1: [2, 2] },
518
- {
519
- 1: [2, 3],
520
- 4: h,
521
- 5: c,
522
- 8: 8,
523
- 9: 10,
524
- 10: 12,
525
- 11: 13,
526
- 12: 14,
527
- 13: 15,
528
- 16: f,
529
- 17: p,
530
- 19: S,
531
- 22: b,
532
- 24: E,
533
- 25: N,
534
- 26: A,
535
- 27: d,
536
- 28: C,
537
- 29: D,
538
- 32: 25,
539
- 33: R,
540
- 35: x,
541
- 37: O,
542
- 38: F,
543
- 41: tt,
544
- 45: et,
545
- 48: st,
546
- 51: it,
547
- 52: rt,
548
- 53: nt,
549
- 54: ot,
550
- 57: U
551
- },
552
- t(g, [2, 5]),
553
- {
554
- 9: 39,
555
- 10: 12,
556
- 11: 13,
557
- 12: 14,
558
- 13: 15,
559
- 16: f,
560
- 17: p,
561
- 19: S,
562
- 22: b,
563
- 24: E,
564
- 25: N,
565
- 26: A,
566
- 27: d,
567
- 28: C,
568
- 29: D,
569
- 32: 25,
570
- 33: R,
571
- 35: x,
572
- 37: O,
573
- 38: F,
574
- 41: tt,
575
- 45: et,
576
- 48: st,
577
- 51: it,
578
- 52: rt,
579
- 53: nt,
580
- 54: ot,
581
- 57: U
582
- },
583
- t(g, [2, 7]),
584
- t(g, [2, 8]),
585
- t(g, [2, 9]),
586
- t(g, [2, 10]),
587
- t(g, [2, 11]),
588
- t(g, [2, 12], {
589
- 14: [1, 40],
590
- 15: [1, 41]
591
- }),
592
- t(g, [2, 16]),
593
- { 18: [1, 42] },
594
- t(g, [2, 18], { 20: [1, 43] }),
595
- { 23: [1, 44] },
596
- t(g, [2, 22]),
597
- t(g, [2, 23]),
598
- t(g, [2, 24]),
599
- t(g, [2, 25]),
600
- {
601
- 30: 45,
602
- 31: [1, 46],
603
- 59: [1, 47],
604
- 60: [1, 48]
605
- },
606
- t(g, [2, 28]),
607
- { 34: [1, 49] },
608
- { 36: [1, 50] },
609
- t(g, [2, 31]),
610
- {
611
- 13: 51,
612
- 24: E,
613
- 57: U
614
- },
615
- {
616
- 42: [1, 52],
617
- 44: [1, 53]
618
- },
619
- { 46: [1, 54] },
620
- { 49: [1, 55] },
621
- t(at, [2, 44], { 58: [1, 56] }),
622
- t(at, [2, 45], { 58: [1, 57] }),
623
- t(g, [2, 38]),
624
- t(g, [2, 39]),
625
- t(g, [2, 40]),
626
- t(g, [2, 41]),
627
- t(g, [2, 6]),
628
- t(g, [2, 13]),
629
- {
630
- 13: 58,
631
- 24: E,
632
- 57: U
633
- },
634
- t(g, [2, 17]),
635
- t(vt, r, { 7: 59 }),
636
- { 24: [1, 60] },
637
- { 24: [1, 61] },
638
- { 23: [1, 62] },
639
- { 24: [2, 48] },
640
- { 24: [2, 49] },
641
- t(g, [2, 29]),
642
- t(g, [2, 30]),
643
- {
644
- 39: [1, 63],
645
- 40: [1, 64]
646
- },
647
- { 43: [1, 65] },
648
- { 43: [1, 66] },
649
- { 47: [1, 67] },
650
- { 50: [1, 68] },
651
- { 24: [1, 69] },
652
- { 24: [1, 70] },
653
- t(g, [2, 14], { 14: [1, 71] }),
654
- {
655
- 4: h,
656
- 5: c,
657
- 8: 8,
658
- 9: 10,
659
- 10: 12,
660
- 11: 13,
661
- 12: 14,
662
- 13: 15,
663
- 16: f,
664
- 17: p,
665
- 19: S,
666
- 21: [1, 72],
667
- 22: b,
668
- 24: E,
669
- 25: N,
670
- 26: A,
671
- 27: d,
672
- 28: C,
673
- 29: D,
674
- 32: 25,
675
- 33: R,
676
- 35: x,
677
- 37: O,
678
- 38: F,
679
- 41: tt,
680
- 45: et,
681
- 48: st,
682
- 51: it,
683
- 52: rt,
684
- 53: nt,
685
- 54: ot,
686
- 57: U
687
- },
688
- t(g, [2, 20], { 20: [1, 73] }),
689
- { 31: [1, 74] },
690
- { 24: [1, 75] },
691
- { 39: [1, 76] },
692
- { 39: [1, 77] },
693
- t(g, [2, 34]),
694
- t(g, [2, 35]),
695
- t(g, [2, 36]),
696
- t(g, [2, 37]),
697
- t(at, [2, 46]),
698
- t(at, [2, 47]),
699
- t(g, [2, 15]),
700
- t(g, [2, 19]),
701
- t(vt, r, { 7: 78 }),
702
- t(g, [2, 26]),
703
- t(g, [2, 27]),
704
- { 5: [1, 79] },
705
- { 5: [1, 80] },
706
- {
707
- 4: h,
708
- 5: c,
709
- 8: 8,
710
- 9: 10,
711
- 10: 12,
712
- 11: 13,
713
- 12: 14,
714
- 13: 15,
715
- 16: f,
716
- 17: p,
717
- 19: S,
718
- 21: [1, 81],
719
- 22: b,
720
- 24: E,
721
- 25: N,
722
- 26: A,
723
- 27: d,
724
- 28: C,
725
- 29: D,
726
- 32: 25,
727
- 33: R,
728
- 35: x,
729
- 37: O,
730
- 38: F,
731
- 41: tt,
732
- 45: et,
733
- 48: st,
734
- 51: it,
735
- 52: rt,
736
- 53: nt,
737
- 54: ot,
738
- 57: U
739
- },
740
- t(g, [2, 32]),
741
- t(g, [2, 33]),
742
- t(g, [2, 21])
743
- ],
744
- defaultActions: {
745
- 5: [2, 1],
746
- 6: [2, 2],
747
- 47: [2, 48],
748
- 48: [2, 49]
749
- },
750
- parseError: /* @__PURE__ */ u(function(o, l) {
751
- if (l.recoverable) this.trace(o);
752
- else {
753
- var y = Error(o);
754
- throw y.hash = l, y;
755
- }
756
- }, "parseError"),
757
- parse: /* @__PURE__ */ u(function(o) {
758
- var l = this, y = [0], m = [], _ = [null], i = [], P = this.table, a = "", G = 0, K = 0, ct = 0, ht = 2, dt = 1, Qt = i.slice.call(arguments, 1), k = Object.create(this.lexer), W = { yy: {} };
759
- for (var St in this.yy) Object.prototype.hasOwnProperty.call(this.yy, St) && (W.yy[St] = this.yy[St]);
760
- k.setInput(o, W.yy), W.yy.lexer = k, W.yy.parser = this, k.yylloc === void 0 && (k.yylloc = {});
761
- var bt = k.yylloc;
762
- i.push(bt);
763
- var Zt = k.options && k.options.ranges;
764
- this.parseError = typeof W.yy.parseError == "function" ? W.yy.parseError : Object.getPrototypeOf(this).parseError;
765
- function te(L) {
766
- y.length -= 2 * L, _.length -= L, i.length -= L;
767
- }
768
- u(te, "popStack");
769
- function It() {
770
- var L = m.pop() || k.lex() || dt;
771
- return typeof L != "number" && (L instanceof Array && (m = L, L = m.pop()), L = l.symbols_[L] || L), L;
772
- }
773
- u(It, "lex");
774
- for (var v, _t, j, I, Tt, X = {}, ut, B, Lt, pt; ; ) {
775
- if (j = y[y.length - 1], this.defaultActions[j] ? I = this.defaultActions[j] : (v ??= It(), I = P[j] && P[j][v]), I === void 0 || !I.length || !I[0]) {
776
- var At = "";
777
- for (ut in pt = [], P[j]) this.terminals_[ut] && ut > ht && pt.push("'" + this.terminals_[ut] + "'");
778
- At = k.showPosition ? "Parse error on line " + (G + 1) + `:
779
- ` + k.showPosition() + `
780
- Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : "Parse error on line " + (G + 1) + ": Unexpected " + (v == dt ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(At, {
781
- text: k.match,
782
- token: this.terminals_[v] || v,
783
- line: k.yylineno,
784
- loc: bt,
785
- expected: pt
786
- });
787
- }
788
- if (I[0] instanceof Array && I.length > 1) throw Error("Parse Error: multiple actions possible at state: " + j + ", token: " + v);
789
- switch (I[0]) {
790
- case 1:
791
- y.push(v), _.push(k.yytext), i.push(k.yylloc), y.push(I[1]), v = null, _t ? (v = _t, _t = null) : (K = k.yyleng, a = k.yytext, G = k.yylineno, bt = k.yylloc, ct > 0);
792
- break;
793
- case 2:
794
- if (B = this.productions_[I[1]][1], X.$ = _[_.length - B], X._$ = {
795
- first_line: i[i.length - (B || 1)].first_line,
796
- last_line: i[i.length - 1].last_line,
797
- first_column: i[i.length - (B || 1)].first_column,
798
- last_column: i[i.length - 1].last_column
799
- }, Zt && (X._$.range = [i[i.length - (B || 1)].range[0], i[i.length - 1].range[1]]), Tt = this.performAction.apply(X, [
800
- a,
801
- K,
802
- G,
803
- W.yy,
804
- I[1],
805
- _,
806
- i
807
- ].concat(Qt)), Tt !== void 0) return Tt;
808
- B && (y = y.slice(0, -1 * B * 2), _ = _.slice(0, -1 * B), i = i.slice(0, -1 * B)), y.push(this.productions_[I[1]][0]), _.push(X.$), i.push(X._$), Lt = P[y[y.length - 2]][y[y.length - 1]], y.push(Lt);
809
- break;
810
- case 3:
811
- return !0;
812
- }
813
- }
814
- return !0;
815
- }, "parse")
816
- };
817
- mt.lexer = /* @__PURE__ */ (function() {
818
- return {
819
- EOF: 1,
820
- parseError: /* @__PURE__ */ u(function(o, l) {
821
- if (this.yy.parser) this.yy.parser.parseError(o, l);
822
- else throw Error(o);
823
- }, "parseError"),
824
- setInput: /* @__PURE__ */ u(function(o, l) {
825
- return this.yy = l || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
826
- first_line: 1,
827
- first_column: 0,
828
- last_line: 1,
829
- last_column: 0
830
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
831
- }, "setInput"),
832
- input: /* @__PURE__ */ u(function() {
833
- var o = this._input[0];
834
- return this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o, o.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), o;
835
- }, "input"),
836
- unput: /* @__PURE__ */ u(function(o) {
837
- var l = o.length, y = o.split(/(?:\r\n?|\n)/g);
838
- this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
839
- var m = this.match.split(/(?:\r\n?|\n)/g);
840
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
841
- var _ = this.yylloc.range;
842
- return this.yylloc = {
843
- first_line: this.yylloc.first_line,
844
- last_line: this.yylineno + 1,
845
- first_column: this.yylloc.first_column,
846
- last_column: y ? (y.length === m.length ? this.yylloc.first_column : 0) + m[m.length - y.length].length - y[0].length : this.yylloc.first_column - l
847
- }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
848
- }, "unput"),
849
- more: /* @__PURE__ */ u(function() {
850
- return this._more = !0, this;
851
- }, "more"),
852
- reject: /* @__PURE__ */ u(function() {
853
- if (this.options.backtrack_lexer) this._backtrack = !0;
854
- 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).
855
- ` + this.showPosition(), {
856
- text: "",
857
- token: null,
858
- line: this.yylineno
859
- });
860
- return this;
861
- }, "reject"),
862
- less: /* @__PURE__ */ u(function(o) {
863
- this.unput(this.match.slice(o));
864
- }, "less"),
865
- pastInput: /* @__PURE__ */ u(function() {
866
- var o = this.matched.substr(0, this.matched.length - this.match.length);
867
- return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
868
- }, "pastInput"),
869
- upcomingInput: /* @__PURE__ */ u(function() {
870
- var o = this.match;
871
- return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
872
- }, "upcomingInput"),
873
- showPosition: /* @__PURE__ */ u(function() {
874
- var o = this.pastInput(), l = Array(o.length + 1).join("-");
875
- return o + this.upcomingInput() + `
876
- ` + l + "^";
877
- }, "showPosition"),
878
- test_match: /* @__PURE__ */ u(function(o, l) {
879
- var y, m, _;
880
- if (this.options.backtrack_lexer && (_ = {
881
- yylineno: this.yylineno,
882
- yylloc: {
883
- first_line: this.yylloc.first_line,
884
- last_line: this.last_line,
885
- first_column: this.yylloc.first_column,
886
- last_column: this.yylloc.last_column
887
- },
888
- yytext: this.yytext,
889
- match: this.match,
890
- matches: this.matches,
891
- matched: this.matched,
892
- yyleng: this.yyleng,
893
- offset: this.offset,
894
- _more: this._more,
895
- _input: this._input,
896
- yy: this.yy,
897
- conditionStack: this.conditionStack.slice(0),
898
- done: this.done
899
- }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), m = o[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = {
900
- first_line: this.yylloc.last_line,
901
- last_line: this.yylineno + 1,
902
- first_column: this.yylloc.last_column,
903
- last_column: m ? m[m.length - 1].length - m[m.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
904
- }, this.yytext += o[0], this.match += o[0], this.matches = o, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(o[0].length), this.matched += o[0], y = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y) return y;
905
- if (this._backtrack) {
906
- for (var i in _) this[i] = _[i];
907
- return !1;
908
- }
909
- return !1;
910
- }, "test_match"),
911
- next: /* @__PURE__ */ u(function() {
912
- if (this.done) return this.EOF;
913
- this._input || (this.done = !0);
914
- var o, l, y, m;
915
- this._more || (this.yytext = "", this.match = "");
916
- for (var _ = this._currentRules(), i = 0; i < _.length; i++) if (y = this._input.match(this.rules[_[i]]), y && (!l || y[0].length > l[0].length)) {
917
- if (l = y, m = i, this.options.backtrack_lexer) {
918
- if (o = this.test_match(y, _[i]), o !== !1) return o;
919
- if (this._backtrack) {
920
- l = !1;
921
- continue;
922
- }
923
- return !1;
924
- }
925
- if (!this.options.flex) break;
926
- }
927
- return l ? (o = this.test_match(l, _[m]), o !== !1 && o) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
928
- ` + this.showPosition(), {
929
- text: "",
930
- token: null,
931
- line: this.yylineno
932
- });
933
- }, "next"),
934
- lex: /* @__PURE__ */ u(function() {
935
- return this.next() || this.lex();
936
- }, "lex"),
937
- begin: /* @__PURE__ */ u(function(o) {
938
- this.conditionStack.push(o);
939
- }, "begin"),
940
- popState: /* @__PURE__ */ u(function() {
941
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
942
- }, "popState"),
943
- _currentRules: /* @__PURE__ */ u(function() {
944
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
945
- }, "_currentRules"),
946
- topState: /* @__PURE__ */ u(function(o) {
947
- return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL";
948
- }, "topState"),
949
- pushState: /* @__PURE__ */ u(function(o) {
950
- this.begin(o);
951
- }, "pushState"),
952
- stateStackSize: /* @__PURE__ */ u(function() {
953
- return this.conditionStack.length;
954
- }, "stateStackSize"),
955
- options: { "case-insensitive": !0 },
956
- performAction: /* @__PURE__ */ u(function(o, l, y, m) {
957
- function _() {
958
- let i = l.yytext.indexOf("%%");
959
- if (i === 0) return !1;
960
- if (i > 0) {
961
- let P = l.yytext.slice(0, i), a = l.yytext.slice(i);
962
- a && o.lexer.unput(a), l.yytext = P;
963
- }
964
- return !0;
965
- }
966
- switch (u(_, "processId"), y) {
967
- case 0:
968
- return 38;
969
- case 1:
970
- return 40;
971
- case 2:
972
- return 39;
973
- case 3:
974
- return 44;
975
- case 4:
976
- return 51;
977
- case 5:
978
- return 52;
979
- case 6:
980
- return 53;
981
- case 7:
982
- return 54;
983
- case 8:
984
- return 5;
985
- case 9:
986
- break;
987
- case 10:
988
- break;
989
- case 11:
990
- break;
991
- case 12:
992
- break;
993
- case 13:
994
- return this.pushState("SCALE"), 17;
995
- case 14:
996
- return 18;
997
- case 15:
998
- this.popState();
999
- break;
1000
- case 16:
1001
- return this.begin("acc_title"), 33;
1002
- case 17:
1003
- return this.popState(), "acc_title_value";
1004
- case 18:
1005
- return this.begin("acc_descr"), 35;
1006
- case 19:
1007
- return this.popState(), "acc_descr_value";
1008
- case 20:
1009
- this.begin("acc_descr_multiline");
1010
- break;
1011
- case 21:
1012
- this.popState();
1013
- break;
1014
- case 22:
1015
- return "acc_descr_multiline_value";
1016
- case 23:
1017
- return this.pushState("CLASSDEF"), 41;
1018
- case 24:
1019
- return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
1020
- case 25:
1021
- return this.popState(), this.pushState("CLASSDEFID"), 42;
1022
- case 26:
1023
- return this.popState(), 43;
1024
- case 27:
1025
- return this.pushState("CLASS"), 48;
1026
- case 28:
1027
- return this.popState(), this.pushState("CLASS_STYLE"), 49;
1028
- case 29:
1029
- return this.popState(), 50;
1030
- case 30:
1031
- return this.pushState("STYLE"), 45;
1032
- case 31:
1033
- return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
1034
- case 32:
1035
- return this.popState(), 47;
1036
- case 33:
1037
- return this.pushState("SCALE"), 17;
1038
- case 34:
1039
- return 18;
1040
- case 35:
1041
- this.popState();
1042
- break;
1043
- case 36:
1044
- this.pushState("STATE");
1045
- break;
1046
- case 37:
1047
- return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 25;
1048
- case 38:
1049
- return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 26;
1050
- case 39:
1051
- return this.popState(), l.yytext = l.yytext.slice(0, -10).trim(), 27;
1052
- case 40:
1053
- return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 25;
1054
- case 41:
1055
- return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 26;
1056
- case 42:
1057
- return this.popState(), l.yytext = l.yytext.slice(0, -10).trim(), 27;
1058
- case 43:
1059
- return 51;
1060
- case 44:
1061
- return 52;
1062
- case 45:
1063
- return 53;
1064
- case 46:
1065
- return 54;
1066
- case 47:
1067
- this.pushState("STATE_STRING");
1068
- break;
1069
- case 48:
1070
- return this.pushState("STATE_ID"), "AS";
1071
- case 49:
1072
- return _() ? (this.popState(), "ID") : void 0;
1073
- case 50:
1074
- this.popState();
1075
- break;
1076
- case 51:
1077
- return "STATE_DESCR";
1078
- case 52:
1079
- throw Error('Error: State name must be a single word. Found: "' + l.yytext.trim() + '"');
1080
- case 53:
1081
- return 19;
1082
- case 54:
1083
- this.popState();
1084
- break;
1085
- case 55:
1086
- return this.popState(), this.pushState("struct"), 20;
1087
- case 56:
1088
- return this.popState(), 21;
1089
- case 57:
1090
- break;
1091
- case 58:
1092
- return this.begin("NOTE"), 29;
1093
- case 59:
1094
- return this.popState(), this.pushState("NOTE_ID"), 59;
1095
- case 60:
1096
- return this.popState(), this.pushState("NOTE_ID"), 60;
1097
- case 61:
1098
- this.popState(), this.pushState("FLOATING_NOTE");
1099
- break;
1100
- case 62:
1101
- return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1102
- case 63:
1103
- break;
1104
- case 64:
1105
- return "NOTE_TEXT";
1106
- case 65:
1107
- return _() ? (this.popState(), "ID") : void 0;
1108
- case 66:
1109
- return _() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0;
1110
- case 67:
1111
- return this.popState(), l.yytext = l.yytext.substr(2).trim(), 31;
1112
- case 68:
1113
- return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 31;
1114
- case 69:
1115
- return 6;
1116
- case 70:
1117
- return 6;
1118
- case 71:
1119
- return 16;
1120
- case 72:
1121
- return 57;
1122
- case 73:
1123
- return _() ? 24 : void 0;
1124
- case 74:
1125
- return l.yytext = l.yytext.trim(), 14;
1126
- case 75:
1127
- return 15;
1128
- case 76:
1129
- return 28;
1130
- case 77:
1131
- return 58;
1132
- case 78:
1133
- return 5;
1134
- case 79:
1135
- return "INVALID";
1136
- }
1137
- }, "anonymous"),
1138
- rules: [
1139
- /^(?:click\b)/i,
1140
- /^(?:href\b)/i,
1141
- /^(?:"[^"]*")/i,
1142
- /^(?:default\b)/i,
1143
- /^(?:.*direction\s+TB[^\n]*)/i,
1144
- /^(?:.*direction\s+BT[^\n]*)/i,
1145
- /^(?:.*direction\s+RL[^\n]*)/i,
1146
- /^(?:.*direction\s+LR[^\n]*)/i,
1147
- /^(?:[\n]+)/i,
1148
- /^(?:[\s]+)/i,
1149
- /^(?:((?!\n)\s)+)/i,
1150
- /^(?:#[^\n]*)/i,
1151
- /^(?:%%(?!\{)[^\n]*)/i,
1152
- /^(?:scale\s+)/i,
1153
- /^(?:\d+)/i,
1154
- /^(?:\s+width\b)/i,
1155
- /^(?:accTitle\s*:\s*)/i,
1156
- /^(?:(?!\n||)*[^\n]*)/i,
1157
- /^(?:accDescr\s*:\s*)/i,
1158
- /^(?:(?!\n||)*[^\n]*)/i,
1159
- /^(?:accDescr\s*\{\s*)/i,
1160
- /^(?:[\}])/i,
1161
- /^(?:[^\}]*)/i,
1162
- /^(?:classDef\s+)/i,
1163
- /^(?:DEFAULT\s+)/i,
1164
- /^(?:\w+\s+)/i,
1165
- /^(?:[^\n]*)/i,
1166
- /^(?:class\s+)/i,
1167
- /^(?:(\w+)+((,\s*\w+)*))/i,
1168
- /^(?:[^\n]*)/i,
1169
- /^(?:style\s+)/i,
1170
- /^(?:[\w,]+\s+)/i,
1171
- /^(?:[^\n]*)/i,
1172
- /^(?:scale\s+)/i,
1173
- /^(?:\d+)/i,
1174
- /^(?:\s+width\b)/i,
1175
- /^(?:state\s+)/i,
1176
- /^(?:.*<<fork>>)/i,
1177
- /^(?:.*<<join>>)/i,
1178
- /^(?:.*<<choice>>)/i,
1179
- /^(?:.*\[\[fork\]\])/i,
1180
- /^(?:.*\[\[join\]\])/i,
1181
- /^(?:.*\[\[choice\]\])/i,
1182
- /^(?:.*direction\s+TB[^\n]*)/i,
1183
- /^(?:.*direction\s+BT[^\n]*)/i,
1184
- /^(?:.*direction\s+RL[^\n]*)/i,
1185
- /^(?:.*direction\s+LR[^\n]*)/i,
1186
- /^(?:["])/i,
1187
- /^(?:\s*as\s+)/i,
1188
- /^(?:[^\n\{]*)/i,
1189
- /^(?:["])/i,
1190
- /^(?:[^"]*)/i,
1191
- /^(?:\w+\s+\w+.*?\{)/i,
1192
- /^(?:[^\n\s\{]+)/i,
1193
- /^(?:\n)/i,
1194
- /^(?:\{)/i,
1195
- /^(?:\})/i,
1196
- /^(?:[\n])/i,
1197
- /^(?:note\s+)/i,
1198
- /^(?:left of\b)/i,
1199
- /^(?:right of\b)/i,
1200
- /^(?:")/i,
1201
- /^(?:\s*as\s*)/i,
1202
- /^(?:["])/i,
1203
- /^(?:[^"]*)/i,
1204
- /^(?:[^\n]*)/i,
1205
- /^(?:\s*[^:\n\s\-]+)/i,
1206
- /^(?:\s*:[^:\n;]+)/i,
1207
- /^(?:[\s\S]*?\n\s*end note\b)/i,
1208
- /^(?:stateDiagram\s+)/i,
1209
- /^(?:stateDiagram-v2\s+)/i,
1210
- /^(?:hide empty description\b)/i,
1211
- /^(?:\[\*\])/i,
1212
- /^(?:[^:\n\s\-\{]+)/i,
1213
- /^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,
1214
- /^(?:-->)/i,
1215
- /^(?:--)/i,
1216
- /^(?::::)/i,
1217
- /^(?:$)/i,
1218
- /^(?:.)/i
1219
- ],
1220
- conditions: {
1221
- LINE: {
1222
- rules: [
1223
- 10,
1224
- 11,
1225
- 12
1226
- ],
1227
- inclusive: !1
1228
- },
1229
- struct: {
1230
- rules: [
1231
- 10,
1232
- 11,
1233
- 12,
1234
- 23,
1235
- 27,
1236
- 30,
1237
- 36,
1238
- 43,
1239
- 44,
1240
- 45,
1241
- 46,
1242
- 56,
1243
- 57,
1244
- 58,
1245
- 72,
1246
- 73,
1247
- 74,
1248
- 75,
1249
- 76,
1250
- 77
1251
- ],
1252
- inclusive: !1
1253
- },
1254
- FLOATING_NOTE_ID: {
1255
- rules: [65],
1256
- inclusive: !1
1257
- },
1258
- FLOATING_NOTE: {
1259
- rules: [
1260
- 62,
1261
- 63,
1262
- 64
1263
- ],
1264
- inclusive: !1
1265
- },
1266
- NOTE_TEXT: {
1267
- rules: [67, 68],
1268
- inclusive: !1
1269
- },
1270
- NOTE_ID: {
1271
- rules: [66],
1272
- inclusive: !1
1273
- },
1274
- NOTE: {
1275
- rules: [
1276
- 59,
1277
- 60,
1278
- 61
1279
- ],
1280
- inclusive: !1
1281
- },
1282
- STYLEDEF_STYLEOPTS: {
1283
- rules: [],
1284
- inclusive: !1
1285
- },
1286
- STYLEDEF_STYLES: {
1287
- rules: [32],
1288
- inclusive: !1
1289
- },
1290
- STYLE_IDS: {
1291
- rules: [],
1292
- inclusive: !1
1293
- },
1294
- STYLE: {
1295
- rules: [31],
1296
- inclusive: !1
1297
- },
1298
- CLASS_STYLE: {
1299
- rules: [29],
1300
- inclusive: !1
1301
- },
1302
- CLASS: {
1303
- rules: [28],
1304
- inclusive: !1
1305
- },
1306
- CLASSDEFID: {
1307
- rules: [26],
1308
- inclusive: !1
1309
- },
1310
- CLASSDEF: {
1311
- rules: [24, 25],
1312
- inclusive: !1
1313
- },
1314
- acc_descr_multiline: {
1315
- rules: [21, 22],
1316
- inclusive: !1
1317
- },
1318
- acc_descr: {
1319
- rules: [19],
1320
- inclusive: !1
1321
- },
1322
- acc_title: {
1323
- rules: [17],
1324
- inclusive: !1
1325
- },
1326
- SCALE: {
1327
- rules: [
1328
- 14,
1329
- 15,
1330
- 34,
1331
- 35
1332
- ],
1333
- inclusive: !1
1334
- },
1335
- ALIAS: {
1336
- rules: [],
1337
- inclusive: !1
1338
- },
1339
- STATE_ID: {
1340
- rules: [49],
1341
- inclusive: !1
1342
- },
1343
- STATE_STRING: {
1344
- rules: [50, 51],
1345
- inclusive: !1
1346
- },
1347
- FORK_STATE: {
1348
- rules: [],
1349
- inclusive: !1
1350
- },
1351
- STATE: {
1352
- rules: [
1353
- 10,
1354
- 11,
1355
- 12,
1356
- 37,
1357
- 38,
1358
- 39,
1359
- 40,
1360
- 41,
1361
- 42,
1362
- 47,
1363
- 48,
1364
- 52,
1365
- 53,
1366
- 54,
1367
- 55
1368
- ],
1369
- inclusive: !1
1370
- },
1371
- ID: {
1372
- rules: [
1373
- 10,
1374
- 11,
1375
- 12
1376
- ],
1377
- inclusive: !1
1378
- },
1379
- INITIAL: {
1380
- rules: [
1381
- 0,
1382
- 1,
1383
- 2,
1384
- 3,
1385
- 4,
1386
- 5,
1387
- 6,
1388
- 7,
1389
- 8,
1390
- 9,
1391
- 11,
1392
- 12,
1393
- 13,
1394
- 16,
1395
- 18,
1396
- 20,
1397
- 23,
1398
- 27,
1399
- 30,
1400
- 33,
1401
- 36,
1402
- 55,
1403
- 58,
1404
- 69,
1405
- 70,
1406
- 71,
1407
- 72,
1408
- 73,
1409
- 74,
1410
- 75,
1411
- 77,
1412
- 78,
1413
- 79
1414
- ],
1415
- inclusive: !0
1416
- }
1417
- }
1418
- };
1419
- })();
1420
- function lt() {
1421
- this.yy = {};
1422
- }
1423
- return u(lt, "Parser"), lt.prototype = mt, mt.Parser = lt, new lt();
1424
- })();
1425
- Dt.parser = Dt;
1426
- var Fe = Dt, fe = "TB", Pt = "TB", wt = "dir", V = "state", H = "root", $t = "relation", ge = "classDef", me = "style", Se = "applyClass", Q = "default", Gt = "divider", Wt = "fill:none", jt = "fill: #333", zt = "c", Mt = "markdown", Ut = "normal", Et = "rect", xt = "rectWithTitle", be = "stateStart", _e = "stateEnd", Nt = "divider", Ot = "roundedWithTitle", Te = "note", ke = "noteGroup", Z = "statediagram", Ee = `${Z}-state`, Kt = "transition", xe = "note", De = `${Kt} note-edge`, $e = `${Z}-${xe}`, Ce = `${Z}-cluster`, ve = `${Z}-cluster-alt`, Xt = "parent", Ht = "note", Ie = "state", Ct = "----", Le = `${Ct}${Ht}`, Rt = `${Ct}${Xt}`, Vt = /* @__PURE__ */ u((t, e = Pt) => {
1427
- if (!t.doc) return e;
1428
- let s = e;
1429
- for (let n of t.doc) n.stmt === "dir" && (s = n.value);
1430
- return s;
1431
- }, "getDir"), Ye = {
1432
- getClasses: /* @__PURE__ */ u(function(t, e) {
1433
- return e.db.getClasses();
1434
- }, "getClasses"),
1435
- draw: /* @__PURE__ */ u(async function(t, e, s, n) {
1436
- T.info("REF0:"), T.info("Drawing state diagram (v2)", e);
1437
- let { securityLevel: r, state: h, layout: c } = w();
1438
- n.db.extract(n.db.getRootDocV2());
1439
- let f = n.db.getData(), p = pe(e, r);
1440
- f.type = n.type, f.layoutAlgorithm = c, f.nodeSpacing = h?.nodeSpacing || 50, f.rankSpacing = h?.rankSpacing || 50, f.markers = w().look === "neo" ? ["barbNeo"] : ["barb"], f.diagramId = e, await ee(f, p);
1441
- try {
1442
- (typeof n.db.getLinks == "function" ? n.db.getLinks() : /* @__PURE__ */ new Map()).forEach((S, b) => {
1443
- let E = typeof b == "string" ? b : typeof b?.id == "string" ? b.id : "", N = f.nodes.find((x) => x.id === E);
1444
- if (!E) {
1445
- T.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(b));
1446
- return;
1447
- }
1448
- let A = p.node()?.querySelectorAll("g.node, g.rough-node"), d;
1449
- if (A?.forEach((x) => {
1450
- let O = x.textContent?.trim();
1451
- (x.id === N?.domId || O === E) && (d = x);
1452
- }), !d) {
1453
- T.warn("⚠️ Could not find node matching text:", E);
1454
- return;
1455
- }
1456
- let C = d.parentNode;
1457
- if (!C) {
1458
- T.warn("⚠️ Node has no parent, cannot wrap:", E);
1459
- return;
1460
- }
1461
- let D = document.createElementNS("http://www.w3.org/2000/svg", "a"), R = S.url.replace(/^"+|"+$/g, "");
1462
- if (D.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", R), D.setAttribute("target", "_blank"), S.tooltip) {
1463
- let x = S.tooltip.replace(/^"+|"+$/g, "");
1464
- D.setAttribute("title", x), d.setAttribute("title", x);
1465
- }
1466
- C.replaceChild(D, d), D.appendChild(d), T.info("🔗 Wrapped node in <a> tag for:", E, S.url);
1467
- });
1468
- } catch (S) {
1469
- T.error("❌ Error injecting clickable links:", S);
1470
- }
1471
- se.insertTitle(p, "statediagramTitleText", h?.titleTopMargin ?? 25, n.db.getDiagramTitle()), ye(p, 8, Z, h?.useMaxWidth ?? !0);
1472
- }, "draw"),
1473
- getDir: Vt
1474
- }, ft = /* @__PURE__ */ new Map(), Y = 0;
1475
- function gt(t = "", e = 0, s = "", n = Ct) {
1476
- return `${Ie}-${t}${s !== null && s.length > 0 ? `${n}${s}` : ""}-${e}`;
1477
- }
1478
- u(gt, "stateDomId");
1479
- var Ae = /* @__PURE__ */ u((t, e, s, n, r, h, c, f) => {
1480
- T.trace("items", e), e.forEach((p) => {
1481
- switch (p.stmt) {
1482
- case V:
1483
- q(t, p, s, n, r, h, c, f);
1484
- break;
1485
- case Q:
1486
- q(t, p, s, n, r, h, c, f);
1487
- break;
1488
- case $t: {
1489
- q(t, p.state1, s, n, r, h, c, f), q(t, p.state2, s, n, r, h, c, f);
1490
- let S = c === "neo", b = {
1491
- id: "edge" + Y,
1492
- start: p.state1.id,
1493
- end: p.state2.id,
1494
- arrowhead: "normal",
1495
- arrowTypeEnd: S ? "arrow_barb_neo" : "arrow_barb",
1496
- style: Wt,
1497
- labelStyle: "",
1498
- label: z.sanitizeText(p.description ?? "", w()),
1499
- arrowheadStyle: jt,
1500
- labelpos: zt,
1501
- labelType: Mt,
1502
- thickness: Ut,
1503
- classes: Kt,
1504
- look: c
1505
- };
1506
- r.push(b), Y++;
1507
- }
1508
- }
1509
- });
1510
- }, "setupDoc"), Bt = /* @__PURE__ */ u((t, e = Pt) => {
1511
- let s = e;
1512
- if (t.doc) for (let n of t.doc) n.stmt === "dir" && (s = n.value);
1513
- return s;
1514
- }, "getDir");
1515
- function J(t, e, s) {
1516
- if (!e.id || e.id === "</join></fork>" || e.id === "</choice>") return;
1517
- e.cssClasses && (Array.isArray(e.cssCompiledStyles) || (e.cssCompiledStyles = []), e.cssClasses.split(" ").forEach((r) => {
1518
- let h = s.get(r);
1519
- h && (e.cssCompiledStyles = [...e.cssCompiledStyles ?? [], ...h.styles]);
1520
- }));
1521
- let n = t.find((r) => r.id === e.id);
1522
- n ? Object.assign(n, e) : t.push(e);
1523
- }
1524
- u(J, "insertOrUpdateNode");
1525
- function Jt(t) {
1526
- return t?.classes?.join(" ") ?? "";
1527
- }
1528
- u(Jt, "getClassesFromDbInfo");
1529
- function qt(t) {
1530
- return t?.styles ?? [];
1531
- }
1532
- u(qt, "getStylesFromDbInfo");
1533
- var q = /* @__PURE__ */ u((t, e, s, n, r, h, c, f) => {
1534
- let p = e.id, S = s.get(p), b = Jt(S), E = qt(S), N = w();
1535
- if (T.info("dataFetcher parsedItem", e, S, E), p !== "root") {
1536
- let A = Et;
1537
- e.start === !0 ? A = be : e.start === !1 && (A = _e), e.type !== Q && (A = e.type), ft.get(p) || ft.set(p, {
1538
- id: p,
1539
- shape: A,
1540
- description: z.sanitizeText(p, N),
1541
- cssClasses: `${b} ${Ee}`,
1542
- cssStyles: E
1543
- });
1544
- let d = ft.get(p);
1545
- e.description && (Array.isArray(d.description) ? (d.shape = xt, d.description.push(e.description)) : d.description?.length && d.description.length > 0 ? (d.shape = xt, d.description = d.description === p ? [e.description] : [d.description, e.description]) : (d.shape = Et, d.description = e.description), d.description = z.sanitizeTextOrArray(d.description, N)), d.description?.length === 1 && d.shape === xt && (d.shape = d.type === "group" ? Ot : Et), !d.type && e.doc && (T.info("Setting cluster for XCX", p, Bt(e)), d.type = "group", d.isGroup = !0, d.dir = Bt(e), d.shape = e.type === Gt ? Nt : Ot, d.cssClasses = `${d.cssClasses} ${Ce} ${h ? ve : ""}`);
1546
- let C = {
1547
- labelStyle: "",
1548
- shape: d.shape,
1549
- label: d.description,
1550
- cssClasses: d.cssClasses,
1551
- cssCompiledStyles: [],
1552
- cssStyles: d.cssStyles,
1553
- id: p,
1554
- dir: d.dir,
1555
- domId: gt(p, Y),
1556
- type: d.type,
1557
- isGroup: d.type === "group",
1558
- padding: 8,
1559
- rx: 10,
1560
- ry: 10,
1561
- look: c,
1562
- labelType: "markdown"
1563
- };
1564
- if (C.shape === Nt && (C.label = ""), t && t.id !== "root" && (T.trace("Setting node ", p, " to be child of its parent ", t.id), C.parentId = t.id), C.centerLabel = !0, e.note) {
1565
- let D = {
1566
- labelStyle: "",
1567
- shape: Te,
1568
- label: e.note.text,
1569
- labelType: "markdown",
1570
- cssClasses: $e,
1571
- cssStyles: [],
1572
- cssCompiledStyles: [],
1573
- id: p + Le + "-" + Y,
1574
- domId: gt(p, Y, Ht),
1575
- type: d.type,
1576
- isGroup: d.type === "group",
1577
- padding: N.flowchart?.padding,
1578
- look: c,
1579
- position: e.note.position
1580
- }, R = p + Rt, x = {
1581
- labelStyle: "",
1582
- shape: ke,
1583
- label: e.note.text,
1584
- cssClasses: d.cssClasses,
1585
- cssStyles: [],
1586
- id: p + Rt,
1587
- domId: gt(p, Y, Xt),
1588
- type: "group",
1589
- isGroup: !0,
1590
- padding: 16,
1591
- look: c,
1592
- position: e.note.position
1593
- };
1594
- Y++, x.id = R, D.parentId = R, J(n, x, f), J(n, D, f), J(n, C, f);
1595
- let O = p, F = D.id;
1596
- e.note.position === "left of" && (O = D.id, F = p), r.push({
1597
- id: O + "-" + F,
1598
- start: O,
1599
- end: F,
1600
- arrowhead: "none",
1601
- arrowTypeEnd: "",
1602
- style: Wt,
1603
- labelStyle: "",
1604
- classes: De,
1605
- arrowheadStyle: jt,
1606
- labelpos: zt,
1607
- labelType: Mt,
1608
- thickness: Ut,
1609
- look: c
1610
- });
1611
- } else J(n, C, f);
1612
- }
1613
- e.doc && (T.trace("Adding nodes children "), Ae(e, e.doc, s, n, r, !h, c, f));
1614
- }, "dataFetcher"), we = /* @__PURE__ */ u(() => {
1615
- ft.clear(), Y = 0;
1616
- }, "reset"), $ = {
1617
- START_NODE: "[*]",
1618
- START_TYPE: "start",
1619
- END_NODE: "[*]",
1620
- END_TYPE: "end",
1621
- COLOR_KEYWORD: "color",
1622
- FILL_KEYWORD: "fill",
1623
- BG_FILL: "bgFill",
1624
- STYLECLASS_SEP: ","
1625
- }, Ft = /* @__PURE__ */ u(() => /* @__PURE__ */ new Map(), "newClassesList"), Yt = /* @__PURE__ */ u(() => ({
1626
- relations: [],
1627
- states: /* @__PURE__ */ new Map(),
1628
- documents: {}
1629
- }), "newDoc"), yt = /* @__PURE__ */ u((t) => JSON.parse(JSON.stringify(t)), "clone"), M, Pe = (M = class {
1630
- constructor(e) {
1631
- this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = Ft(), this.documents = { root: Yt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.funs = [], this.getAccTitle = ie, this.setAccTitle = re, this.getAccDescription = ne, this.setAccDescription = oe, this.setDiagramTitle = ae, this.getDiagramTitle = le, 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), this.bindFunctions = this.bindFunctions.bind(this);
1632
- }
1633
- extract(e) {
1634
- this.clear(!0);
1635
- for (let r of Array.isArray(e) ? e : e.doc) switch (r.stmt) {
1636
- case V:
1637
- this.addState(r.id.trim(), r.type, r.doc, r.description, r.note);
1638
- break;
1639
- case $t:
1640
- this.addRelation(r.state1, r.state2, r.description);
1641
- break;
1642
- case ge:
1643
- this.addStyleClass(r.id.trim(), r.classes);
1644
- break;
1645
- case me:
1646
- this.handleStyleDef(r);
1647
- break;
1648
- case Se:
1649
- this.setCssClass(r.id.trim(), r.styleClass);
1650
- break;
1651
- case "click":
1652
- this.addLink(r.id, r.url, r.tooltip);
1653
- }
1654
- let s = this.getStates(), n = w();
1655
- we(), q(void 0, this.getRootDocV2(), s, this.nodes, this.edges, !0, n.look, this.classes);
1656
- for (let r of this.nodes) if (Array.isArray(r.label)) {
1657
- if (r.description = r.label.slice(1), r.isGroup && r.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${r.id}]`);
1658
- r.label = r.label[0];
1659
- }
1660
- }
1661
- handleStyleDef(e) {
1662
- let s = e.id.trim().split(","), n = e.styleClass.split(",");
1663
- for (let r of s) {
1664
- let h = this.getState(r);
1665
- if (!h) {
1666
- let c = r.trim();
1667
- this.addState(c), h = this.getState(c);
1668
- }
1669
- h && (h.styles = n.map((c) => c.replace(/;/g, "")?.trim()));
1670
- }
1671
- }
1672
- setRootDoc(e) {
1673
- T.info("Setting root doc", e), this.rootDoc = e, this.version === 1 ? this.extract(e) : this.extract(this.getRootDocV2());
1674
- }
1675
- docTranslator(e, s, n) {
1676
- if (s.stmt === $t) {
1677
- this.docTranslator(e, s.state1, !0), this.docTranslator(e, s.state2, !1);
1678
- return;
1679
- }
1680
- if (s.stmt === V && (s.id === $.START_NODE ? (s.id = e.id + (n ? "_start" : "_end"), s.start = n) : s.id = s.id.trim()), s.stmt !== H && s.stmt !== V || !s.doc) return;
1681
- let r = [], h = [];
1682
- for (let c of s.doc) if (c.type === Gt) {
1683
- let f = yt(c);
1684
- f.doc = yt(h), r.push(f), h = [];
1685
- } else h.push(c);
1686
- if (r.length > 0 && h.length > 0) {
1687
- let c = {
1688
- stmt: V,
1689
- id: ce(),
1690
- type: "divider",
1691
- doc: yt(h)
1692
- };
1693
- r.push(yt(c)), s.doc = r;
1694
- }
1695
- s.doc.forEach((c) => this.docTranslator(s, c, !0));
1696
- }
1697
- getRootDocV2() {
1698
- return this.docTranslator({
1699
- id: H,
1700
- stmt: H
1701
- }, {
1702
- id: H,
1703
- stmt: H,
1704
- doc: this.rootDoc
1705
- }, !0), {
1706
- id: H,
1707
- doc: this.rootDoc
1708
- };
1709
- }
1710
- addState(e, s = Q, n = void 0, r = void 0, h = void 0, c = void 0, f = void 0, p = void 0) {
1711
- let S = e?.trim();
1712
- if (!this.currentDocument.states.has(S)) T.info("Adding state ", S, r), this.currentDocument.states.set(S, {
1713
- stmt: V,
1714
- id: S,
1715
- descriptions: [],
1716
- type: s,
1717
- doc: n,
1718
- note: h,
1719
- classes: [],
1720
- styles: [],
1721
- textStyles: []
1722
- });
1723
- else {
1724
- let b = this.currentDocument.states.get(S);
1725
- if (!b) throw Error(`State not found: ${S}`);
1726
- b.doc ||= n, b.type ||= s;
1727
- }
1728
- if (r && (T.info("Setting state description", S, r), (Array.isArray(r) ? r : [r]).forEach((b) => this.addDescription(S, b.trim()))), h) {
1729
- let b = this.currentDocument.states.get(S);
1730
- if (!b) throw Error(`State not found: ${S}`);
1731
- b.note = h, b.note.text = z.sanitizeText(b.note.text, w());
1732
- }
1733
- c && (T.info("Setting state classes", S, c), (Array.isArray(c) ? c : [c]).forEach((b) => this.setCssClass(S, b.trim()))), f && (T.info("Setting state styles", S, f), (Array.isArray(f) ? f : [f]).forEach((b) => this.setStyle(S, b.trim()))), p && (T.info("Setting state styles", S, f), (Array.isArray(p) ? p : [p]).forEach((b) => this.setTextStyle(S, b.trim())));
1734
- }
1735
- clear(e) {
1736
- this.nodes = [], this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.documents = { root: Yt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Ft(), e || (this.links = /* @__PURE__ */ new Map(), he());
1737
- }
1738
- getState(e) {
1739
- return this.currentDocument.states.get(e);
1740
- }
1741
- getStates() {
1742
- return this.currentDocument.states;
1743
- }
1744
- logDocuments() {
1745
- T.info("Documents = ", this.documents);
1746
- }
1747
- getRelations() {
1748
- return this.currentDocument.relations;
1749
- }
1750
- addLink(e, s, n) {
1751
- this.links.set(e, {
1752
- url: s,
1753
- tooltip: n
1754
- }), T.warn("Adding link", e, s, n);
1755
- }
1756
- getLinks() {
1757
- return this.links;
1758
- }
1759
- startIdIfNeeded(e = "") {
1760
- return e === $.START_NODE ? (this.startEndCount++, `${$.START_TYPE}${this.startEndCount}`) : e;
1761
- }
1762
- startTypeIfNeeded(e = "", s = Q) {
1763
- return e === $.START_NODE ? $.START_TYPE : s;
1764
- }
1765
- endIdIfNeeded(e = "") {
1766
- return e === $.END_NODE ? (this.startEndCount++, `${$.END_TYPE}${this.startEndCount}`) : e;
1767
- }
1768
- endTypeIfNeeded(e = "", s = Q) {
1769
- return e === $.END_NODE ? $.END_TYPE : s;
1770
- }
1771
- addRelationObjs(e, s, n = "") {
1772
- let r = this.startIdIfNeeded(e.id.trim()), h = this.startTypeIfNeeded(e.id.trim(), e.type), c = this.startIdIfNeeded(s.id.trim()), f = this.startTypeIfNeeded(s.id.trim(), s.type);
1773
- this.addState(r, h, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(c, f, s.doc, s.description, s.note, s.classes, s.styles, s.textStyles), this.currentDocument.relations.push({
1774
- id1: r,
1775
- id2: c,
1776
- relationTitle: z.sanitizeText(n, w())
1777
- });
1778
- }
1779
- addRelation(e, s, n) {
1780
- if (typeof e == "object" && typeof s == "object") this.addRelationObjs(e, s, n);
1781
- else if (typeof e == "string" && typeof s == "string") {
1782
- let r = this.startIdIfNeeded(e.trim()), h = this.startTypeIfNeeded(e), c = this.endIdIfNeeded(s.trim()), f = this.endTypeIfNeeded(s);
1783
- this.addState(r, h), this.addState(c, f), this.currentDocument.relations.push({
1784
- id1: r,
1785
- id2: c,
1786
- relationTitle: n ? z.sanitizeText(n, w()) : void 0
1787
- });
1788
- }
1789
- }
1790
- addDescription(e, s) {
1791
- let n = this.currentDocument.states.get(e), r = s.startsWith(":") ? s.replace(":", "").trim() : s;
1792
- n?.descriptions?.push(z.sanitizeText(r, w()));
1793
- }
1794
- cleanupLabel(e) {
1795
- return e.startsWith(":") ? e.slice(2).trim() : e.trim();
1796
- }
1797
- getDividerId() {
1798
- return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
1799
- }
1800
- addStyleClass(e, s = "") {
1801
- this.classes.has(e) || this.classes.set(e, {
1802
- id: e,
1803
- styles: [],
1804
- textStyles: []
1805
- });
1806
- let n = this.classes.get(e);
1807
- s && n && s.split($.STYLECLASS_SEP).forEach((r) => {
1808
- let h = r.replace(/([^;]*);/, "$1").trim();
1809
- if (RegExp($.COLOR_KEYWORD).exec(r)) {
1810
- let c = h.replace($.FILL_KEYWORD, $.BG_FILL).replace($.COLOR_KEYWORD, $.FILL_KEYWORD);
1811
- n.textStyles.push(c);
1812
- }
1813
- n.styles.push(h);
1814
- });
1815
- }
1816
- getClasses() {
1817
- return this.classes;
1818
- }
1819
- setupToolTips(e) {
1820
- let s = ue();
1821
- kt(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover", (n) => {
1822
- let r = kt(n.currentTarget), h = r.attr("title");
1823
- if (h === null) return;
1824
- let c = n.currentTarget?.getBoundingClientRect();
1825
- s.transition().duration(200).style("opacity", ".9"), s.style("left", window.scrollX + c.left + (c.right - c.left) / 2 + "px").style("top", window.scrollY + c.bottom + "px"), s.html(de.sanitize(h)), r.classed("hover", !0);
1826
- }).on("mouseout", (n) => {
1827
- s.transition().duration(500).style("opacity", 0), kt(n.currentTarget).classed("hover", !1);
1828
- });
1829
- }
1830
- setCssClass(e, s) {
1831
- e.split(",").forEach((n) => {
1832
- let r = this.getState(n);
1833
- if (!r) {
1834
- let h = n.trim();
1835
- this.addState(h), r = this.getState(h);
1836
- }
1837
- r?.classes?.push(s);
1838
- });
1839
- }
1840
- setStyle(e, s) {
1841
- this.getState(e)?.styles?.push(s);
1842
- }
1843
- setTextStyle(e, s) {
1844
- this.getState(e)?.textStyles?.push(s);
1845
- }
1846
- bindFunctions(e) {
1847
- this.funs.forEach((s) => {
1848
- s(e);
1849
- });
1850
- }
1851
- getDirectionStatement() {
1852
- return this.rootDoc.find((e) => e.stmt === wt);
1853
- }
1854
- getDirection() {
1855
- return this.getDirectionStatement()?.value ?? fe;
1856
- }
1857
- setDirection(e) {
1858
- let s = this.getDirectionStatement();
1859
- s ? s.value = e : this.rootDoc.unshift({
1860
- stmt: wt,
1861
- value: e
1862
- });
1863
- }
1864
- trimColon(e) {
1865
- return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1866
- }
1867
- getData() {
1868
- let e = w();
1869
- return {
1870
- nodes: this.nodes,
1871
- edges: this.edges,
1872
- other: {},
1873
- config: e,
1874
- direction: Vt(this.getRootDocV2())
1875
- };
1876
- }
1877
- getConfig() {
1878
- return w().state;
1879
- }
1880
- }, u(M, "StateDB"), M.relationType = {
1881
- AGGREGATION: 0,
1882
- EXTENSION: 1,
1883
- COMPOSITION: 2,
1884
- DEPENDENCY: 3
1885
- }, M), Ge = /* @__PURE__ */ u((t) => `
1886
- defs [id$="-barbEnd"] {
1887
- fill: ${t.transitionColor};
1888
- stroke: ${t.transitionColor};
1889
- }
1890
- g.stateGroup text {
1891
- fill: ${t.nodeBorder};
1892
- stroke: none;
1893
- font-size: 10px;
1894
- }
1895
- g.stateGroup text {
1896
- fill: ${t.textColor};
1897
- stroke: none;
1898
- font-size: 10px;
1899
-
1900
- }
1901
- g.stateGroup .state-title {
1902
- font-weight: bolder;
1903
- fill: ${t.stateLabelColor};
1904
- }
1905
-
1906
- g.stateGroup rect {
1907
- fill: ${t.mainBkg};
1908
- stroke: ${t.nodeBorder};
1909
- }
1910
-
1911
- g.stateGroup line {
1912
- stroke: ${t.lineColor};
1913
- stroke-width: ${t.strokeWidth || 1};
1914
- }
1915
-
1916
- .transition {
1917
- stroke: ${t.transitionColor};
1918
- stroke-width: ${t.strokeWidth || 1};
1919
- fill: none;
1920
- }
1921
-
1922
- .stateGroup .composit {
1923
- fill: ${t.background};
1924
- border-bottom: 1px
1925
- }
1926
-
1927
- .stateGroup .alt-composit {
1928
- fill: #e0e0e0;
1929
- border-bottom: 1px
1930
- }
1931
-
1932
- .state-note {
1933
- stroke: ${t.noteBorderColor};
1934
- fill: ${t.noteBkgColor};
1935
-
1936
- text {
1937
- fill: ${t.noteTextColor};
1938
- stroke: none;
1939
- font-size: 10px;
1940
- }
1941
- }
1942
-
1943
- .stateLabel .box {
1944
- stroke: none;
1945
- stroke-width: 0;
1946
- fill: ${t.mainBkg};
1947
- opacity: 0.5;
1948
- }
1949
-
1950
- .edgeLabel .label rect {
1951
- fill: ${t.labelBackgroundColor};
1952
- opacity: 0.5;
1953
- }
1954
- .edgeLabel {
1955
- background-color: ${t.edgeLabelBackground};
1956
- p {
1957
- background-color: ${t.edgeLabelBackground};
1958
- }
1959
- rect {
1960
- opacity: 0.5;
1961
- background-color: ${t.edgeLabelBackground};
1962
- fill: ${t.edgeLabelBackground};
1963
- }
1964
- text-align: center;
1965
- }
1966
- .edgeLabel .label text {
1967
- fill: ${t.transitionLabelColor || t.tertiaryTextColor};
1968
- }
1969
- .label div .edgeLabel {
1970
- color: ${t.transitionLabelColor || t.tertiaryTextColor};
1971
- }
1972
-
1973
- .stateLabel text {
1974
- fill: ${t.stateLabelColor};
1975
- font-size: 10px;
1976
- font-weight: bold;
1977
- }
1978
-
1979
- .node circle.state-start {
1980
- fill: ${t.specialStateColor};
1981
- stroke: ${t.specialStateColor};
1982
- }
1983
-
1984
- .node .fork-join {
1985
- fill: ${t.specialStateColor};
1986
- stroke: ${t.specialStateColor};
1987
- }
1988
-
1989
- .node circle.state-end {
1990
- fill: ${t.innerEndBackground};
1991
- stroke: ${t.background};
1992
- stroke-width: 1.5
1993
- }
1994
- .end-state-inner {
1995
- fill: ${t.compositeBackground || t.background};
1996
- // stroke: ${t.background};
1997
- stroke-width: 1.5
1998
- }
1999
-
2000
- .node rect {
2001
- fill: ${t.stateBkg || t.mainBkg};
2002
- stroke: ${t.stateBorder || t.nodeBorder};
2003
- stroke-width: ${t.strokeWidth || 1}px;
2004
- }
2005
- .node polygon {
2006
- fill: ${t.mainBkg};
2007
- stroke: ${t.stateBorder || t.nodeBorder};;
2008
- stroke-width: ${t.strokeWidth || 1}px;
2009
- }
2010
- [id$="-barbEnd"] {
2011
- fill: ${t.lineColor};
2012
- }
2013
-
2014
- .statediagram-cluster rect {
2015
- fill: ${t.compositeTitleBackground};
2016
- stroke: ${t.stateBorder || t.nodeBorder};
2017
- stroke-width: ${t.strokeWidth || 1}px;
2018
- }
2019
-
2020
- .cluster-label, .nodeLabel {
2021
- color: ${t.stateLabelColor};
2022
- // line-height: 1;
2023
- }
2024
-
2025
- .statediagram-cluster rect.outer {
2026
- rx: 5px;
2027
- ry: 5px;
2028
- }
2029
- .statediagram-state .divider {
2030
- stroke: ${t.stateBorder || t.nodeBorder};
2031
- }
2032
-
2033
- .statediagram-state .title-state {
2034
- rx: 5px;
2035
- ry: 5px;
2036
- }
2037
- .statediagram-cluster.statediagram-cluster .inner {
2038
- fill: ${t.compositeBackground || t.background};
2039
- }
2040
- .statediagram-cluster.statediagram-cluster-alt .inner {
2041
- fill: ${t.altBackground ? t.altBackground : "#efefef"};
2042
- }
2043
-
2044
- .statediagram-cluster .inner {
2045
- rx:0;
2046
- ry:0;
2047
- }
2048
-
2049
- .statediagram-state rect.basic {
2050
- rx: 5px;
2051
- ry: 5px;
2052
- }
2053
- .statediagram-state rect.divider {
2054
- stroke-dasharray: 10,10;
2055
- fill: ${t.altBackground ? t.altBackground : "#efefef"};
2056
- }
2057
-
2058
- .note-edge {
2059
- stroke-dasharray: 5;
2060
- }
2061
-
2062
- .statediagram-note rect {
2063
- fill: ${t.noteBkgColor};
2064
- stroke: ${t.noteBorderColor};
2065
- stroke-width: 1px;
2066
- rx: 0;
2067
- ry: 0;
2068
- }
2069
- .statediagram-note rect {
2070
- fill: ${t.noteBkgColor};
2071
- stroke: ${t.noteBorderColor};
2072
- stroke-width: 1px;
2073
- rx: 0;
2074
- ry: 0;
2075
- }
2076
-
2077
- .statediagram-note text {
2078
- fill: ${t.noteTextColor};
2079
- }
2080
-
2081
- .statediagram-note .nodeLabel {
2082
- color: ${t.noteTextColor};
2083
- }
2084
- .statediagram .edgeLabel {
2085
- color: red; // ${t.noteTextColor};
2086
- }
2087
-
2088
- [id$="-dependencyStart"], [id$="-dependencyEnd"] {
2089
- fill: ${t.lineColor};
2090
- stroke: ${t.lineColor};
2091
- stroke-width: ${t.strokeWidth || 1};
2092
- }
2093
-
2094
- .statediagramTitleText {
2095
- text-anchor: middle;
2096
- font-size: 18px;
2097
- fill: ${t.textColor};
2098
- }
2099
-
2100
- [data-look="neo"].statediagram-cluster rect {
2101
- fill: ${t.mainBkg};
2102
- stroke: ${t.useGradient ? "url(" + t.svgId + "-gradient)" : t.stateBorder || t.nodeBorder};
2103
- stroke-width: ${t.strokeWidth ?? 1};
2104
- }
2105
- [data-look="neo"].statediagram-cluster rect.outer {
2106
- rx: ${t.radius}px;
2107
- ry: ${t.radius}px;
2108
- filter: ${t.dropShadow ? t.dropShadow.replace("url(#drop-shadow)", `url(${t.svgId}-drop-shadow)`) : "none"}
2109
- }
2110
- `, "getStyles");
2111
- export {
2112
- Ge as S,
2113
- Fe as b,
2114
- Ye as m,
2115
- Pe as x
2116
- };