@kong-ui-public/documentation 1.7.40-pr.3869.e876c8c8a.0 → 1.7.40

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 (159) hide show
  1. package/dist/arc-DZdQjcG8-CduayE88.js +79 -0
  2. package/dist/architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js +4065 -0
  3. package/dist/astro-D8QEIUE9-nzvtSwAQ.js +18 -0
  4. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +3268 -0
  5. package/dist/c-GOwUpV7U-DMPKLUI8.js +4 -0
  6. package/dist/c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js +3035 -0
  7. package/dist/catppuccin-latte-BcV8jije-D8pvGdu1.js +4 -0
  8. package/dist/channel-DM9j7IFL-DxqBUxfY.js +5 -0
  9. package/dist/chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js +24 -0
  10. package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +8 -0
  11. package/dist/chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js +8 -0
  12. package/dist/chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js +3445 -0
  13. package/dist/chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js +2096 -0
  14. package/dist/chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js +19 -0
  15. package/dist/chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js +65 -0
  16. package/dist/chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js +12 -0
  17. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +17 -0
  18. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +17 -0
  19. package/dist/cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js +2260 -0
  20. package/dist/csharp-Cy04UeDC-OaGPefhL.js +4 -0
  21. package/dist/css-CJQ-rcMF-B_2PRTA_.js +4 -0
  22. package/dist/csv-Bx_Umlp--BPWcOTV4.js +4 -0
  23. package/dist/cytoscape.esm-BDIiOYYO-C1jMBhD8.js +18220 -0
  24. package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +288 -0
  25. package/dist/dagre-DJxg_nfI-hVOVexz-.js +1687 -0
  26. package/dist/defaultLocale-mtMQ0U8A-D6jPixjH.js +182 -0
  27. package/dist/diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js +210 -0
  28. package/dist/diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js +99 -0
  29. package/dist/diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js +439 -0
  30. package/dist/diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js +127 -0
  31. package/dist/diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js +475 -0
  32. package/dist/diff-DZRtXnMG-DenOJuyV.js +4 -0
  33. package/dist/docker-DQBBDNmU-xX8PDoIv.js +4 -0
  34. package/dist/documentation.es.js +7 -0
  35. package/dist/documentation.umd.js +3474 -0
  36. package/dist/erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js +1773 -0
  37. package/dist/flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js +4258 -0
  38. package/dist/ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js +3099 -0
  39. package/dist/git-commit-BOgnKaZ8-Csu8eMzs.js +5 -0
  40. package/dist/git-rebase-0v-YFIjP-D701iWbX.js +5 -0
  41. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +734 -0
  42. package/dist/go-DpaXbCNA-DqSXHrGo.js +4 -0
  43. package/dist/graphlib-D2YdGpuK-CnQPmzkS.js +1071 -0
  44. package/dist/graphql-BSO8hVnT-C6Okg5tI.js +14 -0
  45. package/dist/haml-DizLz-gS-BWwS-eha.js +10 -0
  46. package/dist/handlebars-tnt1-4s--xVtJSIx5.js +14 -0
  47. package/dist/haskell-BDLr0yXS-BlmVjKNy.js +4 -0
  48. package/dist/html-DdIT5Pi9-C35UyBqr.js +10 -0
  49. package/dist/html-derivative-BHAKSQcK-BChKhjnv.js +5 -0
  50. package/dist/http-DRk-iX-V-DQ76ihB0.js +14 -0
  51. package/dist/index-DfVKdDwj.js +40029 -0
  52. package/dist/infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js +18 -0
  53. package/dist/ini-D-uG5DCC-70PBzbbb.js +4 -0
  54. package/dist/init-8lPFe2y8-B2MlpiqM.js +16 -0
  55. package/dist/ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js +728 -0
  56. package/dist/java-CQQr73XR-D6YBp1XX.js +4 -0
  57. package/dist/javascript-CXmFGv-C-BRPKgr3C.js +4 -0
  58. package/dist/journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js +908 -0
  59. package/dist/json-BXFRNzj8-D8uacQj0.js +4 -0
  60. package/dist/json5-B5-J7v9w-Biib5ALh.js +4 -0
  61. package/dist/jsonc-CeA7x8NU-BZEKkMok.js +4 -0
  62. package/dist/jsonl-BBlxch9W-BG2V-IA2.js +4 -0
  63. package/dist/jsx-DucQCby8-Cl0AMtmu.js +4 -0
  64. package/dist/kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js +1028 -0
  65. package/dist/katex-D7tFlpqA-BOSQxXe1.js +22315 -0
  66. package/dist/kotlin-CDXyBjvc-Dy_91eL4.js +4 -0
  67. package/dist/latex-COX74REd-l1quglTx.js +5 -0
  68. package/dist/less-QqooI0UQ-tcNg8M2_.js +4 -0
  69. package/dist/linear-1MXhYum8-9C1jno9G.js +255 -0
  70. package/dist/liquid-CsynDTV--Bdhb3gsJ.js +14 -0
  71. package/dist/lua-B3xrKnOz-Coo0MCwO.js +5 -0
  72. package/dist/make-eFBmESRY-CrUl7LOH.js +4 -0
  73. package/dist/markdown-DkQv9NwM-Bcqt-5kX.js +4 -0
  74. package/dist/material-theme-darker-Bp7Jj852-DMHCIvq5.js +4 -0
  75. package/dist/mdc-BK-Z5Xv--aFc-Oyv5.js +12 -0
  76. package/dist/mdx-CjbEMaEg-CK6jOqmu.js +4 -0
  77. package/dist/mermaid-Ccfpee4A-BgbNnQO5.js +4 -0
  78. package/dist/mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js +1026 -0
  79. package/dist/nginx-DQrs__jO-BS9Jcr4V.js +5 -0
  80. package/dist/objective-c-CXg1TPY9-C809HPrX.js +4 -0
  81. package/dist/ordinal-D9ksOc8y-2hZwLyEk.js +63 -0
  82. package/dist/pascal-C6L9Tn1x-a8whuidZ.js +4 -0
  83. package/dist/perl-Dbi-SlHs-DsZjIGqU.js +16 -0
  84. package/dist/php-J5w8HAya-DnRg4f-g.js +18 -0
  85. package/dist/pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js +153 -0
  86. package/dist/plsql-Ba_yrVwL-BJoF2Vrf.js +4 -0
  87. package/dist/postcss-Bsoc__IZ-DaHMm3XW.js +4 -0
  88. package/dist/powershell-CKvM5hOe-Box9VSDW.js +4 -0
  89. package/dist/proto-iweZN-Ks-w0B_itsp.js +4 -0
  90. package/dist/pug-DUPsoXbW-BFHDRSax.js +12 -0
  91. package/dist/python-MxhgNM12-D_5pfY__.js +4 -0
  92. package/dist/quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js +2046 -0
  93. package/dist/r-CoGPXt5G-BrbXTU3W.js +4 -0
  94. package/dist/reg-CHAl2UuA-bHAwx9Pm.js +4 -0
  95. package/dist/requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js +2281 -0
  96. package/dist/rst-D-Zcnz0t-C3PGnqgH.js +20 -0
  97. package/dist/ruby-CQp7mk0v-B3KpG-9E.js +46 -0
  98. package/dist/rust-W9HETclW-CaZtBt24.js +4 -0
  99. package/dist/sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js +946 -0
  100. package/dist/sass-DzGfEb5u-pslLeRRb.js +4 -0
  101. package/dist/scss-cWHTb1-d-DN6jMR75.js +5 -0
  102. package/dist/sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js +4266 -0
  103. package/dist/shellscript-BvJBBLP1-BtH46UX7.js +4 -0
  104. package/dist/shellsession-CXHk-hsk-D-2JR5oU.js +5 -0
  105. package/dist/splunk-TtOhH_8h-BP8P7eWt.js +4 -0
  106. package/dist/sql-B-h_q34g-uWwuAxg_.js +4 -0
  107. package/dist/ssh-config-B7jk1vQp-BB1rrGb9.js +4 -0
  108. package/dist/stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js +210 -0
  109. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +16 -0
  110. package/dist/style.css +1 -0
  111. package/dist/stylus-Ccd_7r3J-DAu5PNZ9.js +4 -0
  112. package/dist/svelte-CYqtuUsn-Cf97VB5J.js +14 -0
  113. package/dist/swift-CzsQqA0L-BPF2ddNF.js +4 -0
  114. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +1095 -0
  115. package/dist/toml-CRTROHRr-DjT9Bjqu.js +4 -0
  116. package/dist/tsx-CE8dfKwK-B-5hSr15.js +4 -0
  117. package/dist/twig-Bst4uh7S-C3aA9tng.js +18 -0
  118. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +35 -0
  119. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +1 -0
  120. package/dist/types/components/DocumentationContent.vue.d.ts +186 -0
  121. package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -0
  122. package/dist/types/components/DocumentationDisplay.vue.d.ts +105 -0
  123. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -0
  124. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +31 -0
  125. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +1 -0
  126. package/dist/types/components/ProductDocumentModal.vue.d.ts +72 -0
  127. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -0
  128. package/dist/types/composables/index.d.ts +6 -0
  129. package/dist/types/composables/index.d.ts.map +1 -0
  130. package/dist/types/composables/useI18n.d.ts +9 -0
  131. package/dist/types/composables/useI18n.d.ts.map +1 -0
  132. package/dist/types/external-links.d.ts +5 -0
  133. package/dist/types/external-links.d.ts.map +1 -0
  134. package/dist/types/helpers.d.ts +8 -0
  135. package/dist/types/helpers.d.ts.map +1 -0
  136. package/dist/types/index.d.ts +7 -0
  137. package/dist/types/index.d.ts.map +1 -0
  138. package/dist/types/types/document-list.d.ts +28 -0
  139. package/dist/types/types/document-list.d.ts.map +1 -0
  140. package/dist/types/types/document-modal.d.ts +8 -0
  141. package/dist/types/types/document-modal.d.ts.map +1 -0
  142. package/dist/types/types/index.d.ts +3 -0
  143. package/dist/types/types/index.d.ts.map +1 -0
  144. package/dist/typescript-8ogSSNer-B0ag8pir.js +4 -0
  145. package/dist/v-NeSnRB8V-CYSa2rJN.js +4 -0
  146. package/dist/vb-Dz72yc4q-B6FpM2Kc.js +4 -0
  147. package/dist/vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js +1889 -0
  148. package/dist/viml-DB1flIhL-BeYQ8dZh.js +4 -0
  149. package/dist/vue-Bq4JA_WT-CGBUDahs.js +22 -0
  150. package/dist/vue-html-BygQzR-9-BPez-Otx.js +5 -0
  151. package/dist/wardley-L42UT6IY-BjAkE_cs-C-giFqos.js +20731 -0
  152. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +639 -0
  153. package/dist/wasm-BmZuu1vu-CfuK9YWP.js +4 -0
  154. package/dist/wgsl-D-vNyw6e-C2IZ7ENh.js +4 -0
  155. package/dist/xml-juAhGoTG-khG3jjDl.js +5 -0
  156. package/dist/xsl-CHgyQG2O-CiMa9sUf.js +5 -0
  157. package/dist/xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js +2055 -0
  158. package/dist/yaml-BK_xXVzk-X78l_Ibz.js +4 -0
  159. package/package.json +2 -2
@@ -0,0 +1,1028 @@
1
+ import { p as r, g as J, Z as j, a0 as yt, ay as ft, az as mt, aA as bt, au as _t, F as X, c as T, j as Et, z as kt, ar as Nt, as as at, at as lt } from "./index-DfVKdDwj.js";
2
+ import { t as St } from "./chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js";
3
+ var Q = (function() {
4
+ var e = /* @__PURE__ */ r(function(t, l, a, s) {
5
+ for (a ||= {}, s = t.length; s--; a[t[s]] = l) ;
6
+ return a;
7
+ }, "o"), u = [1, 4], y = [1, 13], n = [1, 12], g = [1, 15], m = [1, 16], E = [1, 20], c = [1, 19], D = [
8
+ 6,
9
+ 7,
10
+ 8
11
+ ], I = [1, 26], h = [1, 24], P = [1, 25], _ = [
12
+ 6,
13
+ 7,
14
+ 11
15
+ ], B = [1, 31], d = [
16
+ 6,
17
+ 7,
18
+ 11,
19
+ 24
20
+ ], v = [
21
+ 1,
22
+ 6,
23
+ 13,
24
+ 16,
25
+ 17,
26
+ 20,
27
+ 23
28
+ ], C = [1, 35], F = [1, 36], L = [
29
+ 1,
30
+ 6,
31
+ 7,
32
+ 11,
33
+ 13,
34
+ 16,
35
+ 17,
36
+ 20,
37
+ 23
38
+ ], M = [1, 38], G = {
39
+ trace: /* @__PURE__ */ r(function() {
40
+ }, "trace"),
41
+ yy: {},
42
+ symbols_: {
43
+ error: 2,
44
+ start: 3,
45
+ mindMap: 4,
46
+ spaceLines: 5,
47
+ SPACELINE: 6,
48
+ NL: 7,
49
+ KANBAN: 8,
50
+ document: 9,
51
+ stop: 10,
52
+ EOF: 11,
53
+ statement: 12,
54
+ SPACELIST: 13,
55
+ node: 14,
56
+ shapeData: 15,
57
+ ICON: 16,
58
+ CLASS: 17,
59
+ nodeWithId: 18,
60
+ nodeWithoutId: 19,
61
+ NODE_DSTART: 20,
62
+ NODE_DESCR: 21,
63
+ NODE_DEND: 22,
64
+ NODE_ID: 23,
65
+ SHAPE_DATA: 24,
66
+ $accept: 0,
67
+ $end: 1
68
+ },
69
+ terminals_: {
70
+ 2: "error",
71
+ 6: "SPACELINE",
72
+ 7: "NL",
73
+ 8: "KANBAN",
74
+ 11: "EOF",
75
+ 13: "SPACELIST",
76
+ 16: "ICON",
77
+ 17: "CLASS",
78
+ 20: "NODE_DSTART",
79
+ 21: "NODE_DESCR",
80
+ 22: "NODE_DEND",
81
+ 23: "NODE_ID",
82
+ 24: "SHAPE_DATA"
83
+ },
84
+ productions_: [
85
+ 0,
86
+ [3, 1],
87
+ [3, 2],
88
+ [5, 1],
89
+ [5, 2],
90
+ [5, 2],
91
+ [4, 2],
92
+ [4, 3],
93
+ [10, 1],
94
+ [10, 1],
95
+ [10, 1],
96
+ [10, 2],
97
+ [10, 2],
98
+ [9, 3],
99
+ [9, 2],
100
+ [12, 3],
101
+ [12, 2],
102
+ [12, 2],
103
+ [12, 2],
104
+ [12, 1],
105
+ [12, 2],
106
+ [12, 1],
107
+ [12, 1],
108
+ [12, 1],
109
+ [12, 1],
110
+ [14, 1],
111
+ [14, 1],
112
+ [19, 3],
113
+ [18, 1],
114
+ [18, 4],
115
+ [15, 2],
116
+ [15, 1]
117
+ ],
118
+ performAction: /* @__PURE__ */ r(function(t, l, a, s, p, i, U) {
119
+ var o = i.length - 1;
120
+ switch (p) {
121
+ case 6:
122
+ case 7:
123
+ return s;
124
+ case 8:
125
+ s.getLogger().trace("Stop NL ");
126
+ break;
127
+ case 9:
128
+ s.getLogger().trace("Stop EOF ");
129
+ break;
130
+ case 11:
131
+ s.getLogger().trace("Stop NL2 ");
132
+ break;
133
+ case 12:
134
+ s.getLogger().trace("Stop EOF2 ");
135
+ break;
136
+ case 15:
137
+ s.getLogger().info("Node: ", i[o - 1].id), s.addNode(i[o - 2].length, i[o - 1].id, i[o - 1].descr, i[o - 1].type, i[o]);
138
+ break;
139
+ case 16:
140
+ s.getLogger().info("Node: ", i[o].id), s.addNode(i[o - 1].length, i[o].id, i[o].descr, i[o].type);
141
+ break;
142
+ case 17:
143
+ s.getLogger().trace("Icon: ", i[o]), s.decorateNode({ icon: i[o] });
144
+ break;
145
+ case 18:
146
+ case 23:
147
+ s.decorateNode({ class: i[o] });
148
+ break;
149
+ case 19:
150
+ s.getLogger().trace("SPACELIST");
151
+ break;
152
+ case 20:
153
+ s.getLogger().trace("Node: ", i[o - 1].id), s.addNode(0, i[o - 1].id, i[o - 1].descr, i[o - 1].type, i[o]);
154
+ break;
155
+ case 21:
156
+ s.getLogger().trace("Node: ", i[o].id), s.addNode(0, i[o].id, i[o].descr, i[o].type);
157
+ break;
158
+ case 22:
159
+ s.decorateNode({ icon: i[o] });
160
+ break;
161
+ case 27:
162
+ s.getLogger().trace("node found ..", i[o - 2]), this.$ = {
163
+ id: i[o - 1],
164
+ descr: i[o - 1],
165
+ type: s.getType(i[o - 2], i[o])
166
+ };
167
+ break;
168
+ case 28:
169
+ this.$ = {
170
+ id: i[o],
171
+ descr: i[o],
172
+ type: 0
173
+ };
174
+ break;
175
+ case 29:
176
+ s.getLogger().trace("node found ..", i[o - 3]), this.$ = {
177
+ id: i[o - 3],
178
+ descr: i[o - 1],
179
+ type: s.getType(i[o - 2], i[o])
180
+ };
181
+ break;
182
+ case 30:
183
+ this.$ = i[o - 1] + i[o];
184
+ break;
185
+ case 31:
186
+ this.$ = i[o];
187
+ break;
188
+ }
189
+ }, "anonymous"),
190
+ table: [
191
+ {
192
+ 3: 1,
193
+ 4: 2,
194
+ 5: 3,
195
+ 6: [1, 5],
196
+ 8: u
197
+ },
198
+ { 1: [3] },
199
+ { 1: [2, 1] },
200
+ {
201
+ 4: 6,
202
+ 6: [1, 7],
203
+ 7: [1, 8],
204
+ 8: u
205
+ },
206
+ {
207
+ 6: y,
208
+ 7: [1, 10],
209
+ 9: 9,
210
+ 12: 11,
211
+ 13: n,
212
+ 14: 14,
213
+ 16: g,
214
+ 17: m,
215
+ 18: 17,
216
+ 19: 18,
217
+ 20: E,
218
+ 23: c
219
+ },
220
+ e(D, [2, 3]),
221
+ { 1: [2, 2] },
222
+ e(D, [2, 4]),
223
+ e(D, [2, 5]),
224
+ {
225
+ 1: [2, 6],
226
+ 6: y,
227
+ 12: 21,
228
+ 13: n,
229
+ 14: 14,
230
+ 16: g,
231
+ 17: m,
232
+ 18: 17,
233
+ 19: 18,
234
+ 20: E,
235
+ 23: c
236
+ },
237
+ {
238
+ 6: y,
239
+ 9: 22,
240
+ 12: 11,
241
+ 13: n,
242
+ 14: 14,
243
+ 16: g,
244
+ 17: m,
245
+ 18: 17,
246
+ 19: 18,
247
+ 20: E,
248
+ 23: c
249
+ },
250
+ {
251
+ 6: I,
252
+ 7: h,
253
+ 10: 23,
254
+ 11: P
255
+ },
256
+ e(_, [2, 24], {
257
+ 18: 17,
258
+ 19: 18,
259
+ 14: 27,
260
+ 16: [1, 28],
261
+ 17: [1, 29],
262
+ 20: E,
263
+ 23: c
264
+ }),
265
+ e(_, [2, 19]),
266
+ e(_, [2, 21], {
267
+ 15: 30,
268
+ 24: B
269
+ }),
270
+ e(_, [2, 22]),
271
+ e(_, [2, 23]),
272
+ e(d, [2, 25]),
273
+ e(d, [2, 26]),
274
+ e(d, [2, 28], { 20: [1, 32] }),
275
+ { 21: [1, 33] },
276
+ {
277
+ 6: I,
278
+ 7: h,
279
+ 10: 34,
280
+ 11: P
281
+ },
282
+ {
283
+ 1: [2, 7],
284
+ 6: y,
285
+ 12: 21,
286
+ 13: n,
287
+ 14: 14,
288
+ 16: g,
289
+ 17: m,
290
+ 18: 17,
291
+ 19: 18,
292
+ 20: E,
293
+ 23: c
294
+ },
295
+ e(v, [2, 14], {
296
+ 7: C,
297
+ 11: F
298
+ }),
299
+ e(L, [2, 8]),
300
+ e(L, [2, 9]),
301
+ e(L, [2, 10]),
302
+ e(_, [2, 16], {
303
+ 15: 37,
304
+ 24: B
305
+ }),
306
+ e(_, [2, 17]),
307
+ e(_, [2, 18]),
308
+ e(_, [2, 20], { 24: M }),
309
+ e(d, [2, 31]),
310
+ { 21: [1, 39] },
311
+ { 22: [1, 40] },
312
+ e(v, [2, 13], {
313
+ 7: C,
314
+ 11: F
315
+ }),
316
+ e(L, [2, 11]),
317
+ e(L, [2, 12]),
318
+ e(_, [2, 15], { 24: M }),
319
+ e(d, [2, 30]),
320
+ { 22: [1, 41] },
321
+ e(d, [2, 27]),
322
+ e(d, [2, 29])
323
+ ],
324
+ defaultActions: {
325
+ 2: [2, 1],
326
+ 6: [2, 2]
327
+ },
328
+ parseError: /* @__PURE__ */ r(function(t, l) {
329
+ if (l.recoverable) this.trace(t);
330
+ else {
331
+ var a = Error(t);
332
+ throw a.hash = l, a;
333
+ }
334
+ }, "parseError"),
335
+ parse: /* @__PURE__ */ r(function(t) {
336
+ var l = this, a = [0], s = [], p = [null], i = [], U = this.table, o = "", H = 0, it = 0, ht = 0, ut = 2, nt = 1, gt = i.slice.call(arguments, 1), b = Object.create(this.lexer), $ = { yy: {} };
337
+ for (var K in this.yy) Object.prototype.hasOwnProperty.call(this.yy, K) && ($.yy[K] = this.yy[K]);
338
+ b.setInput(t, $.yy), $.yy.lexer = b, $.yy.parser = this, b.yylloc === void 0 && (b.yylloc = {});
339
+ var Z = b.yylloc;
340
+ i.push(Z);
341
+ var dt = b.options && b.options.ranges;
342
+ typeof $.yy.parseError == "function" ? this.parseError = $.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
343
+ function pt(S) {
344
+ a.length -= 2 * S, p.length -= S, i.length -= S;
345
+ }
346
+ r(pt, "popStack");
347
+ function st() {
348
+ var S = s.pop() || b.lex() || nt;
349
+ return typeof S != "number" && (S instanceof Array && (s = S, S = s.pop()), S = l.symbols_[S] || S), S;
350
+ }
351
+ r(st, "lex");
352
+ for (var k, Y, A, N, q, R = {}, W, O, rt, z; ; ) {
353
+ if (A = a[a.length - 1], this.defaultActions[A] ? N = this.defaultActions[A] : (k ??= st(), N = U[A] && U[A][k]), N === void 0 || !N.length || !N[0]) {
354
+ var ot = "";
355
+ for (W in z = [], U[A]) this.terminals_[W] && W > ut && z.push("'" + this.terminals_[W] + "'");
356
+ ot = b.showPosition ? "Parse error on line " + (H + 1) + `:
357
+ ` + b.showPosition() + `
358
+ Expecting ` + z.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : "Parse error on line " + (H + 1) + ": Unexpected " + (k == nt ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(ot, {
359
+ text: b.match,
360
+ token: this.terminals_[k] || k,
361
+ line: b.yylineno,
362
+ loc: Z,
363
+ expected: z
364
+ });
365
+ }
366
+ if (N[0] instanceof Array && N.length > 1) throw Error("Parse Error: multiple actions possible at state: " + A + ", token: " + k);
367
+ switch (N[0]) {
368
+ case 1:
369
+ a.push(k), p.push(b.yytext), i.push(b.yylloc), a.push(N[1]), k = null, Y ? (k = Y, Y = null) : (it = b.yyleng, o = b.yytext, H = b.yylineno, Z = b.yylloc, ht > 0);
370
+ break;
371
+ case 2:
372
+ if (O = this.productions_[N[1]][1], R.$ = p[p.length - O], R._$ = {
373
+ first_line: i[i.length - (O || 1)].first_line,
374
+ last_line: i[i.length - 1].last_line,
375
+ first_column: i[i.length - (O || 1)].first_column,
376
+ last_column: i[i.length - 1].last_column
377
+ }, dt && (R._$.range = [i[i.length - (O || 1)].range[0], i[i.length - 1].range[1]]), q = this.performAction.apply(R, [
378
+ o,
379
+ it,
380
+ H,
381
+ $.yy,
382
+ N[1],
383
+ p,
384
+ i
385
+ ].concat(gt)), q !== void 0) return q;
386
+ O && (a = a.slice(0, -1 * O * 2), p = p.slice(0, -1 * O), i = i.slice(0, -1 * O)), a.push(this.productions_[N[1]][0]), p.push(R.$), i.push(R._$), rt = U[a[a.length - 2]][a[a.length - 1]], a.push(rt);
387
+ break;
388
+ case 3:
389
+ return !0;
390
+ }
391
+ }
392
+ return !0;
393
+ }, "parse")
394
+ };
395
+ G.lexer = /* @__PURE__ */ (function() {
396
+ return {
397
+ EOF: 1,
398
+ parseError: /* @__PURE__ */ r(function(t, l) {
399
+ if (this.yy.parser) this.yy.parser.parseError(t, l);
400
+ else throw Error(t);
401
+ }, "parseError"),
402
+ setInput: /* @__PURE__ */ r(function(t, l) {
403
+ return this.yy = l || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
404
+ first_line: 1,
405
+ first_column: 0,
406
+ last_line: 1,
407
+ last_column: 0
408
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
409
+ }, "setInput"),
410
+ input: /* @__PURE__ */ r(function() {
411
+ var t = this._input[0];
412
+ return this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t, t.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), t;
413
+ }, "input"),
414
+ unput: /* @__PURE__ */ r(function(t) {
415
+ var l = t.length, a = t.split(/(?:\r\n?|\n)/g);
416
+ this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
417
+ var s = this.match.split(/(?:\r\n?|\n)/g);
418
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
419
+ var p = this.yylloc.range;
420
+ return this.yylloc = {
421
+ first_line: this.yylloc.first_line,
422
+ last_line: this.yylineno + 1,
423
+ first_column: this.yylloc.first_column,
424
+ last_column: a ? (a.length === s.length ? this.yylloc.first_column : 0) + s[s.length - a.length].length - a[0].length : this.yylloc.first_column - l
425
+ }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
426
+ }, "unput"),
427
+ more: /* @__PURE__ */ r(function() {
428
+ return this._more = !0, this;
429
+ }, "more"),
430
+ reject: /* @__PURE__ */ r(function() {
431
+ if (this.options.backtrack_lexer) this._backtrack = !0;
432
+ 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).
433
+ ` + this.showPosition(), {
434
+ text: "",
435
+ token: null,
436
+ line: this.yylineno
437
+ });
438
+ return this;
439
+ }, "reject"),
440
+ less: /* @__PURE__ */ r(function(t) {
441
+ this.unput(this.match.slice(t));
442
+ }, "less"),
443
+ pastInput: /* @__PURE__ */ r(function() {
444
+ var t = this.matched.substr(0, this.matched.length - this.match.length);
445
+ return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
446
+ }, "pastInput"),
447
+ upcomingInput: /* @__PURE__ */ r(function() {
448
+ var t = this.match;
449
+ return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
450
+ }, "upcomingInput"),
451
+ showPosition: /* @__PURE__ */ r(function() {
452
+ var t = this.pastInput(), l = Array(t.length + 1).join("-");
453
+ return t + this.upcomingInput() + `
454
+ ` + l + "^";
455
+ }, "showPosition"),
456
+ test_match: /* @__PURE__ */ r(function(t, l) {
457
+ var a, s, p;
458
+ if (this.options.backtrack_lexer && (p = {
459
+ yylineno: this.yylineno,
460
+ yylloc: {
461
+ first_line: this.yylloc.first_line,
462
+ last_line: this.last_line,
463
+ first_column: this.yylloc.first_column,
464
+ last_column: this.yylloc.last_column
465
+ },
466
+ yytext: this.yytext,
467
+ match: this.match,
468
+ matches: this.matches,
469
+ matched: this.matched,
470
+ yyleng: this.yyleng,
471
+ offset: this.offset,
472
+ _more: this._more,
473
+ _input: this._input,
474
+ yy: this.yy,
475
+ conditionStack: this.conditionStack.slice(0),
476
+ done: this.done
477
+ }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), s = t[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
478
+ first_line: this.yylloc.last_line,
479
+ last_line: this.yylineno + 1,
480
+ first_column: this.yylloc.last_column,
481
+ last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
482
+ }, this.yytext += t[0], this.match += t[0], this.matches = t, 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(t[0].length), this.matched += t[0], a = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a) return a;
483
+ if (this._backtrack) {
484
+ for (var i in p) this[i] = p[i];
485
+ return !1;
486
+ }
487
+ return !1;
488
+ }, "test_match"),
489
+ next: /* @__PURE__ */ r(function() {
490
+ if (this.done) return this.EOF;
491
+ this._input || (this.done = !0);
492
+ var t, l, a, s;
493
+ this._more || (this.yytext = "", this.match = "");
494
+ for (var p = this._currentRules(), i = 0; i < p.length; i++) if (a = this._input.match(this.rules[p[i]]), a && (!l || a[0].length > l[0].length)) {
495
+ if (l = a, s = i, this.options.backtrack_lexer) {
496
+ if (t = this.test_match(a, p[i]), t !== !1) return t;
497
+ if (this._backtrack) {
498
+ l = !1;
499
+ continue;
500
+ } else return !1;
501
+ } else if (!this.options.flex) break;
502
+ }
503
+ return l ? (t = this.test_match(l, p[s]), t === !1 ? !1 : t) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
504
+ ` + this.showPosition(), {
505
+ text: "",
506
+ token: null,
507
+ line: this.yylineno
508
+ });
509
+ }, "next"),
510
+ lex: /* @__PURE__ */ r(function() {
511
+ return this.next() || this.lex();
512
+ }, "lex"),
513
+ begin: /* @__PURE__ */ r(function(t) {
514
+ this.conditionStack.push(t);
515
+ }, "begin"),
516
+ popState: /* @__PURE__ */ r(function() {
517
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
518
+ }, "popState"),
519
+ _currentRules: /* @__PURE__ */ r(function() {
520
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
521
+ }, "_currentRules"),
522
+ topState: /* @__PURE__ */ r(function(t) {
523
+ return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
524
+ }, "topState"),
525
+ pushState: /* @__PURE__ */ r(function(t) {
526
+ this.begin(t);
527
+ }, "pushState"),
528
+ stateStackSize: /* @__PURE__ */ r(function() {
529
+ return this.conditionStack.length;
530
+ }, "stateStackSize"),
531
+ options: { "case-insensitive": !0 },
532
+ performAction: /* @__PURE__ */ r(function(t, l, a, s) {
533
+ switch (a) {
534
+ case 0:
535
+ return this.pushState("shapeData"), l.yytext = "", 24;
536
+ case 1:
537
+ return this.pushState("shapeDataStr"), 24;
538
+ case 2:
539
+ return this.popState(), 24;
540
+ case 3:
541
+ return l.yytext = l.yytext.replace(/\n\s*/g, "<br/>"), 24;
542
+ case 4:
543
+ return 24;
544
+ case 5:
545
+ this.popState();
546
+ break;
547
+ case 6:
548
+ return t.getLogger().trace("Found comment", l.yytext), 6;
549
+ case 7:
550
+ return 8;
551
+ case 8:
552
+ this.begin("CLASS");
553
+ break;
554
+ case 9:
555
+ return this.popState(), 17;
556
+ case 10:
557
+ this.popState();
558
+ break;
559
+ case 11:
560
+ t.getLogger().trace("Begin icon"), this.begin("ICON");
561
+ break;
562
+ case 12:
563
+ return t.getLogger().trace("SPACELINE"), 6;
564
+ case 13:
565
+ return 7;
566
+ case 14:
567
+ return 16;
568
+ case 15:
569
+ t.getLogger().trace("end icon"), this.popState();
570
+ break;
571
+ case 16:
572
+ return t.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
573
+ case 17:
574
+ return t.getLogger().trace("Cloud"), this.begin("NODE"), 20;
575
+ case 18:
576
+ return t.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
577
+ case 19:
578
+ return t.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
579
+ case 20:
580
+ return this.begin("NODE"), 20;
581
+ case 21:
582
+ return this.begin("NODE"), 20;
583
+ case 22:
584
+ return this.begin("NODE"), 20;
585
+ case 23:
586
+ return this.begin("NODE"), 20;
587
+ case 24:
588
+ return 13;
589
+ case 25:
590
+ return 23;
591
+ case 26:
592
+ return 11;
593
+ case 27:
594
+ this.begin("NSTR2");
595
+ break;
596
+ case 28:
597
+ return "NODE_DESCR";
598
+ case 29:
599
+ this.popState();
600
+ break;
601
+ case 30:
602
+ t.getLogger().trace("Starting NSTR"), this.begin("NSTR");
603
+ break;
604
+ case 31:
605
+ return t.getLogger().trace("description:", l.yytext), "NODE_DESCR";
606
+ case 32:
607
+ this.popState();
608
+ break;
609
+ case 33:
610
+ return this.popState(), t.getLogger().trace("node end ))"), "NODE_DEND";
611
+ case 34:
612
+ return this.popState(), t.getLogger().trace("node end )"), "NODE_DEND";
613
+ case 35:
614
+ return this.popState(), t.getLogger().trace("node end ...", l.yytext), "NODE_DEND";
615
+ case 36:
616
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
617
+ case 37:
618
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
619
+ case 38:
620
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
621
+ case 39:
622
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
623
+ case 40:
624
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
625
+ case 41:
626
+ return t.getLogger().trace("Long description:", l.yytext), 21;
627
+ case 42:
628
+ return t.getLogger().trace("Long description:", l.yytext), 21;
629
+ }
630
+ }, "anonymous"),
631
+ rules: [
632
+ /^(?:@\{)/i,
633
+ /^(?:["])/i,
634
+ /^(?:["])/i,
635
+ /^(?:[^\"]+)/i,
636
+ /^(?:[^}^"]+)/i,
637
+ /^(?:\})/i,
638
+ /^(?:\s*%%.*)/i,
639
+ /^(?:kanban\b)/i,
640
+ /^(?::::)/i,
641
+ /^(?:.+)/i,
642
+ /^(?:\n)/i,
643
+ /^(?:::icon\()/i,
644
+ /^(?:[\s]+[\n])/i,
645
+ /^(?:[\n]+)/i,
646
+ /^(?:[^\)]+)/i,
647
+ /^(?:\))/i,
648
+ /^(?:-\))/i,
649
+ /^(?:\(-)/i,
650
+ /^(?:\)\))/i,
651
+ /^(?:\))/i,
652
+ /^(?:\(\()/i,
653
+ /^(?:\{\{)/i,
654
+ /^(?:\()/i,
655
+ /^(?:\[)/i,
656
+ /^(?:[\s]+)/i,
657
+ /^(?:[^\(\[\n\)\{\}@]+)/i,
658
+ /^(?:$)/i,
659
+ /^(?:["][`])/i,
660
+ /^(?:[^`"]+)/i,
661
+ /^(?:[`]["])/i,
662
+ /^(?:["])/i,
663
+ /^(?:[^"]+)/i,
664
+ /^(?:["])/i,
665
+ /^(?:[\)]\))/i,
666
+ /^(?:[\)])/i,
667
+ /^(?:[\]])/i,
668
+ /^(?:\}\})/i,
669
+ /^(?:\(-)/i,
670
+ /^(?:-\))/i,
671
+ /^(?:\(\()/i,
672
+ /^(?:\()/i,
673
+ /^(?:[^\)\]\(\}]+)/i,
674
+ /^(?:.+(?!\(\())/i
675
+ ],
676
+ conditions: {
677
+ shapeDataEndBracket: {
678
+ rules: [],
679
+ inclusive: !1
680
+ },
681
+ shapeDataStr: {
682
+ rules: [2, 3],
683
+ inclusive: !1
684
+ },
685
+ shapeData: {
686
+ rules: [
687
+ 1,
688
+ 4,
689
+ 5
690
+ ],
691
+ inclusive: !1
692
+ },
693
+ CLASS: {
694
+ rules: [9, 10],
695
+ inclusive: !1
696
+ },
697
+ ICON: {
698
+ rules: [14, 15],
699
+ inclusive: !1
700
+ },
701
+ NSTR2: {
702
+ rules: [28, 29],
703
+ inclusive: !1
704
+ },
705
+ NSTR: {
706
+ rules: [31, 32],
707
+ inclusive: !1
708
+ },
709
+ NODE: {
710
+ rules: [
711
+ 27,
712
+ 30,
713
+ 33,
714
+ 34,
715
+ 35,
716
+ 36,
717
+ 37,
718
+ 38,
719
+ 39,
720
+ 40,
721
+ 41,
722
+ 42
723
+ ],
724
+ inclusive: !1
725
+ },
726
+ INITIAL: {
727
+ rules: [
728
+ 0,
729
+ 6,
730
+ 7,
731
+ 8,
732
+ 11,
733
+ 12,
734
+ 13,
735
+ 16,
736
+ 17,
737
+ 18,
738
+ 19,
739
+ 20,
740
+ 21,
741
+ 22,
742
+ 23,
743
+ 24,
744
+ 25,
745
+ 26
746
+ ],
747
+ inclusive: !0
748
+ }
749
+ }
750
+ };
751
+ })();
752
+ function w() {
753
+ this.yy = {};
754
+ }
755
+ return r(w, "Parser"), w.prototype = G, G.Parser = w, new w();
756
+ })();
757
+ Q.parser = Q;
758
+ var xt = Q, x = [], et = [], V = 0, tt = {}, Dt = /* @__PURE__ */ r(() => {
759
+ x = [], et = [], V = 0, tt = {};
760
+ }, "clear"), Lt = /* @__PURE__ */ r((e) => {
761
+ if (x.length === 0) return null;
762
+ let u = x[0].level, y = null;
763
+ for (let n = x.length - 1; n >= 0; n--) if (x[n].level === u && !y && (y = x[n]), x[n].level < u) throw Error('Items without section detected, found section ("' + x[n].label + '")');
764
+ return e === y?.level ? null : y;
765
+ }, "getSection"), ct = /* @__PURE__ */ r(function() {
766
+ return et;
767
+ }, "getSections"), Ot = /* @__PURE__ */ r(function() {
768
+ let e = [], u = [], y = ct(), n = j();
769
+ for (let g of y) {
770
+ let m = {
771
+ id: g.id,
772
+ label: T(g.label ?? "", n),
773
+ labelType: "markdown",
774
+ isGroup: !0,
775
+ ticket: g.ticket,
776
+ shape: "kanbanSection",
777
+ level: g.level,
778
+ look: n.look
779
+ };
780
+ u.push(m);
781
+ let E = x.filter((c) => c.parentId === g.id);
782
+ for (let c of E) {
783
+ let D = {
784
+ id: c.id,
785
+ parentId: g.id,
786
+ label: T(c.label ?? "", n),
787
+ labelType: "markdown",
788
+ isGroup: !1,
789
+ ticket: c?.ticket,
790
+ priority: c?.priority,
791
+ assigned: c?.assigned,
792
+ icon: c?.icon,
793
+ shape: "kanbanItem",
794
+ level: c.level,
795
+ rx: 5,
796
+ ry: 5,
797
+ cssStyles: ["text-align: left"]
798
+ };
799
+ u.push(D);
800
+ }
801
+ }
802
+ return {
803
+ nodes: u,
804
+ edges: e,
805
+ other: {},
806
+ config: j()
807
+ };
808
+ }, "getData"), It = /* @__PURE__ */ r((e, u, y, n, g) => {
809
+ let m = j(), E = m.mindmap?.padding ?? X.mindmap.padding;
810
+ switch (n) {
811
+ case f.ROUNDED_RECT:
812
+ case f.RECT:
813
+ case f.HEXAGON:
814
+ E *= 2;
815
+ }
816
+ let c = {
817
+ id: T(u, m) || "kbn" + V++,
818
+ level: e,
819
+ label: T(y, m),
820
+ width: m.mindmap?.maxNodeWidth ?? X.mindmap.maxNodeWidth,
821
+ padding: E,
822
+ isGroup: !1
823
+ };
824
+ if (g !== void 0) {
825
+ let I;
826
+ I = g.includes(`
827
+ `) ? g + `
828
+ ` : `{
829
+ ` + g + `
830
+ }`;
831
+ let h = Et(I, { schema: kt });
832
+ if (h.shape && (h.shape !== h.shape.toLowerCase() || h.shape.includes("_"))) throw Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);
833
+ h?.shape && h.shape === "kanbanItem" && (c.shape = h?.shape), h?.label && (c.label = h?.label), h?.icon && (c.icon = h?.icon.toString()), h?.assigned && (c.assigned = h?.assigned.toString()), h?.ticket && (c.ticket = h?.ticket.toString()), h?.priority && (c.priority = h?.priority);
834
+ }
835
+ let D = Lt(e);
836
+ D ? c.parentId = D.id || "kbn" + V++ : et.push(c), x.push(c);
837
+ }, "addNode"), f = {
838
+ DEFAULT: 0,
839
+ NO_BORDER: 0,
840
+ ROUNDED_RECT: 1,
841
+ RECT: 2,
842
+ CIRCLE: 3,
843
+ CLOUD: 4,
844
+ BANG: 5,
845
+ HEXAGON: 6
846
+ }, vt = {
847
+ clear: Dt,
848
+ addNode: It,
849
+ getSections: ct,
850
+ getData: Ot,
851
+ nodeType: f,
852
+ getType: /* @__PURE__ */ r((e, u) => {
853
+ switch (J.debug("In get type", e, u), e) {
854
+ case "[":
855
+ return f.RECT;
856
+ case "(":
857
+ return u === ")" ? f.ROUNDED_RECT : f.CLOUD;
858
+ case "((":
859
+ return f.CIRCLE;
860
+ case ")":
861
+ return f.CLOUD;
862
+ case "))":
863
+ return f.BANG;
864
+ case "{{":
865
+ return f.HEXAGON;
866
+ default:
867
+ return f.DEFAULT;
868
+ }
869
+ }, "getType"),
870
+ setElementForId: /* @__PURE__ */ r((e, u) => {
871
+ tt[e] = u;
872
+ }, "setElementForId"),
873
+ decorateNode: /* @__PURE__ */ r((e) => {
874
+ if (!e) return;
875
+ let u = j(), y = x[x.length - 1];
876
+ e.icon && (y.icon = T(e.icon, u)), e.class && (y.cssClasses = T(e.class, u));
877
+ }, "decorateNode"),
878
+ type2Str: /* @__PURE__ */ r((e) => {
879
+ switch (e) {
880
+ case f.DEFAULT:
881
+ return "no-border";
882
+ case f.RECT:
883
+ return "rect";
884
+ case f.ROUNDED_RECT:
885
+ return "rounded-rect";
886
+ case f.CIRCLE:
887
+ return "circle";
888
+ case f.CLOUD:
889
+ return "cloud";
890
+ case f.BANG:
891
+ return "bang";
892
+ case f.HEXAGON:
893
+ return "hexgon";
894
+ default:
895
+ return "no-border";
896
+ }
897
+ }, "type2Str"),
898
+ getLogger: /* @__PURE__ */ r(() => J, "getLogger"),
899
+ getElementById: /* @__PURE__ */ r((e) => tt[e], "getElementById")
900
+ }, Ct = { draw: /* @__PURE__ */ r(async (e, u, y, n) => {
901
+ J.debug(`Rendering kanban diagram
902
+ ` + e);
903
+ let g = n.db.getData(), m = j();
904
+ m.htmlLabels = !1;
905
+ let E = yt(u);
906
+ for (let d of g.nodes) d.domId = `${u}-${d.id}`;
907
+ let c = E.append("g");
908
+ c.attr("class", "sections");
909
+ let D = E.append("g");
910
+ D.attr("class", "items");
911
+ let I = g.nodes.filter((d) => d.isGroup), h = 0, P = [], _ = 25;
912
+ for (let d of I) {
913
+ let v = m?.kanban?.sectionWidth || 200;
914
+ h += 1, d.x = v * h + (h - 1) * 10 / 2, d.width = v, d.y = 0, d.height = v * 3, d.rx = 5, d.ry = 5, d.cssClasses = d.cssClasses + " section-" + h;
915
+ let C = await ft(c, d);
916
+ _ = Math.max(_, C?.labelBBox?.height), P.push(C);
917
+ }
918
+ let B = 0;
919
+ for (let d of I) {
920
+ let v = P[B];
921
+ B += 1;
922
+ let C = m?.kanban?.sectionWidth || 200, F = -C * 3 / 2 + _, L = F, M = g.nodes.filter((t) => t.parentId === d.id);
923
+ for (let t of M) {
924
+ if (t.isGroup) throw Error("Groups within groups are not allowed in Kanban diagrams");
925
+ t.x = d.x, t.width = C - 1.5 * 10;
926
+ let l = (await mt(D, t, { config: m })).node().getBBox();
927
+ t.y = L + l.height / 2, await bt(t), L = t.y + l.height / 2 + 10 / 2;
928
+ }
929
+ let G = v.cluster.select("rect"), w = Math.max(L - F + 30, 50) + (_ - 25);
930
+ G.attr("height", w);
931
+ }
932
+ _t(void 0, E, m.mindmap?.padding ?? X.kanban.padding, m.mindmap?.useMaxWidth ?? X.kanban.useMaxWidth);
933
+ }, "draw") }, $t = /* @__PURE__ */ r((e) => {
934
+ let u = "";
935
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) e["lineColor" + n] = e["lineColor" + n] || e["cScaleInv" + n], Nt(e["lineColor" + n]) ? e["lineColor" + n] = at(e["lineColor" + n], 20) : e["lineColor" + n] = lt(e["lineColor" + n], 20);
936
+ let y = /* @__PURE__ */ r((n, g) => e.darkMode ? lt(n, g) : at(n, g), "adjuster");
937
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
938
+ let g = "" + (17 - 3 * n);
939
+ u += `
940
+ .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
941
+ fill: ${y(e["cScale" + n], 10)};
942
+ stroke: ${y(e["cScale" + n], 10)};
943
+
944
+ }
945
+ .section-${n - 1} text {
946
+ fill: ${e["cScaleLabel" + n]};
947
+ }
948
+ .node-icon-${n - 1} {
949
+ font-size: 40px;
950
+ color: ${e["cScaleLabel" + n]};
951
+ }
952
+ .section-edge-${n - 1}{
953
+ stroke: ${e["cScale" + n]};
954
+ }
955
+ .edge-depth-${n - 1}{
956
+ stroke-width: ${g};
957
+ }
958
+ .section-${n - 1} line {
959
+ stroke: ${e["cScaleInv" + n]} ;
960
+ stroke-width: 3;
961
+ }
962
+
963
+ .disabled, .disabled circle, .disabled text {
964
+ fill: lightgray;
965
+ }
966
+ .disabled text {
967
+ fill: #efefef;
968
+ }
969
+
970
+ .node rect,
971
+ .node circle,
972
+ .node ellipse,
973
+ .node polygon,
974
+ .node path {
975
+ fill: ${e.background};
976
+ stroke: ${e.nodeBorder};
977
+ stroke-width: 1px;
978
+ }
979
+
980
+ .kanban-ticket-link {
981
+ fill: ${e.background};
982
+ stroke: ${e.nodeBorder};
983
+ text-decoration: underline;
984
+ }
985
+ `;
986
+ }
987
+ return u;
988
+ }, "genSections"), Rt = {
989
+ db: vt,
990
+ renderer: Ct,
991
+ parser: xt,
992
+ styles: /* @__PURE__ */ r((e) => `
993
+ .edge {
994
+ stroke-width: 3;
995
+ }
996
+ ${$t(e)}
997
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
998
+ fill: ${e.git0};
999
+ }
1000
+ .section-root text {
1001
+ fill: ${e.gitBranchLabel0};
1002
+ }
1003
+ .icon-container {
1004
+ height:100%;
1005
+ display: flex;
1006
+ justify-content: center;
1007
+ align-items: center;
1008
+ }
1009
+ .edge {
1010
+ fill: none;
1011
+ }
1012
+ .cluster-label, .label {
1013
+ color: ${e.textColor};
1014
+ fill: ${e.textColor};
1015
+ }
1016
+ .kanban-label {
1017
+ dy: 1em;
1018
+ alignment-baseline: middle;
1019
+ text-anchor: middle;
1020
+ dominant-baseline: middle;
1021
+ text-align: center;
1022
+ }
1023
+ ${St()}
1024
+ `, "getStyles")
1025
+ };
1026
+ export {
1027
+ Rt as diagram
1028
+ };