@kong-ui-public/documentation 0.7.82 → 0.7.84

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 (151) hide show
  1. package/dist/_basePickBy-CMfPif8e-CmRJF0Pz.js +151 -0
  2. package/dist/_baseUniq-CXqhI00C-BfnSCqya.js +615 -0
  3. package/dist/arc-JIMrD458-iE0qPqUL.js +83 -0
  4. package/dist/architecture-I3QFYML2-Bgw7-fJd-BmHcSoDq.js +5 -0
  5. package/dist/{architectureDiagram-V6B76FHG-Pzw1d-oB-DHiQxfgq.js → architectureDiagram-AYX4OTIS-XPsSAXrN-CriQXfFm.js} +4 -4
  6. package/dist/{astro-Ct9uJo-c-nfJFy9of.js → astro-0iWgpDaK-DRsXAR7M.js} +8 -19
  7. package/dist/blockDiagram-XN6IQ5JY-IfzOVP1S-DoilgKcQ.js +2247 -0
  8. package/dist/{c-DKDB_XIB-DKDB_XIB.js → c-TKJGJdXV-TKJGJdXV.js} +1 -2
  9. package/dist/{c4Diagram-THADGKDP-DNjDxpJj-DCkatXpj.js → c4Diagram-GPMAACGM-RttNBnvg-DemUG3qf.js} +2 -2
  10. package/dist/{channel-DY4J7hMj-DhxgBwmi.js → channel-DEiqvYYf-DqQTZyIM.js} +1 -1
  11. package/dist/{chunk-OQCM5LHU-CBZLTHAO-Byg6DDHc.js → chunk-BAOP5US2-D_mPkUfX-Dlqx79Tr.js} +1 -1
  12. package/dist/chunk-CXDZ2C6O-B6QVQzrJ-CdVn1xaX.js +1301 -0
  13. package/dist/{chunk-DUMQOTYW-q2xRlZzC-WZX6gsgU.js → chunk-EICJXIV7-B3uVnKYK-BPFil4EM.js} +1 -1
  14. package/dist/{chunk-2JBRQKJ5-s3ZERvbz-DIvxz4Hk.js → chunk-JZAHL7AJ-B8L_7Xh_-C2ETRUtV.js} +21 -21
  15. package/dist/{chunk-2RYQ3QTB-CQJ_YWh0-CyGoJsYl.js → chunk-RGXPSUNZ-PjQy3A3Y-BiDEi6k5.js} +1 -1
  16. package/dist/{chunk-XVOYOM2C-Drq2fxR3-BZgyQieh.js → chunk-VCFP4HPQ-qZEjUbIz-7kfkUrsj.js} +1 -1
  17. package/dist/classDiagram-FEGYTUDG-Bu9qKgav-DF2ZcQyp.js +14 -0
  18. package/dist/classDiagram-v2-R65JCUOM-Bu9qKgav-DF2ZcQyp.js +14 -0
  19. package/dist/{clone-CSh3RmzO-BO_pW9dn.js → clone-elND5I63-U8WRvSPu.js} +1 -1
  20. package/dist/{csharp-hvsHIX1x-hvsHIX1x.js → csharp-DoJjzS5t-DoJjzS5t.js} +1 -2
  21. package/dist/{css-twoVIb3q-twoVIb3q.js → css-DHLSoXzW-DHLSoXzW.js} +1 -2
  22. package/dist/{csv-CyuxiNSX-CyuxiNSX.js → csv-DvCncUGQ-Tno401i9.js} +1 -2
  23. package/dist/dagre-SWNTG5WE-CcKMLYcK-tREOd3Fb.js +447 -0
  24. package/dist/{diagram-QS5GVLUX-BYCosWq0-DUyx0Lsp.js → diagram-NZMEDLQF-vjbbgzvH-BDFE_-Eo.js} +6 -6
  25. package/dist/{diff-BprZv9Bx-BprZv9Bx.js → diff-DKH6jKuv-DKH6jKuv.js} +1 -2
  26. package/dist/{docker-UByH5rch-UByH5rch.js → docker-M-OegAvW-M-OegAvW.js} +1 -2
  27. package/dist/documentation.es.js +1 -1
  28. package/dist/documentation.umd.js +401 -273
  29. package/dist/{erDiagram-62CBQV5Y-CCkmKSfL-DVupRLHH.js → erDiagram-WO52GFNT-N8TeMKSM-BojFH-Dn.js} +56 -56
  30. package/dist/flowDiagram-TSWR6T2D-DzECWIN--CnDMIIi-.js +1484 -0
  31. package/dist/{ganttDiagram-ASEIQ4P5-D1zrowZ9-BAnaAW4v.js → ganttDiagram-FAOCOTIY-DmxDGUpf-BGJLIQAo.js} +61 -61
  32. package/dist/{git-commit-BpBta0-H-D9ROUaA_.js → git-commit-giWKZ1Ct-l8XOl7Qs.js} +2 -3
  33. package/dist/{git-rebase-nCu0qkM8-BcHBAqRM.js → git-rebase-BeAKv_ae-YKn1ZA6h.js} +2 -3
  34. package/dist/gitGraph-YCYPL57B-BKlVjqGu-BRRTPERj.js +5 -0
  35. package/dist/{gitGraphDiagram-UL5UFKDR-Ck7pRU_R-Dy9Vc0iN.js → gitGraphDiagram-5C7YHVU6-CfJ_hQ2h-C2aLT5AH.js} +21 -21
  36. package/dist/{go-CVQIWj2N-CVQIWj2N.js → go-Bzd7qChY-Bzd7qChY.js} +1 -2
  37. package/dist/{graph-DTNue1bF-BLqDvS-5.js → graph-C5siWsaJ-djbzUgq8.js} +52 -55
  38. package/dist/{graphql-7X52cHqc-CLBzimQB.js → graphql-D7_Dk2ma-CKCeVmAl.js} +5 -6
  39. package/dist/{haml-28-Av65f-Dih0P9tR.js → haml-S3dmcfEW-DS9Qve_X.js} +5 -14
  40. package/dist/{handlebars-TFjvroEi-07H8_eE0.js → handlebars-DaIrqVg3-BICytU_W.js} +5 -6
  41. package/dist/{haskell-DJah2Vxp-DJah2Vxp.js → haskell-CmMIDOJ7-CmMIDOJ7.js} +1 -2
  42. package/dist/{html-B9SDyQ6N-D-ZKCIRM.js → html-Bx3A18fV-DIK1LUyO.js} +3 -4
  43. package/dist/{html-derivative-Dst04Arf-DrM5NWms.js → html-derivative-B8TLT7CN-DkAjK9Np.js} +2 -3
  44. package/dist/{http-nOIbjTbF-C51IpTrN.js → http-DiM0ILv2-7ivPChAf.js} +6 -7
  45. package/dist/{index-DOm338WG.js → index-BXFfc1qh.js} +17691 -15765
  46. package/dist/info-46DW6VJ7-QBUrqpM0-D7DXfBfh.js +5 -0
  47. package/dist/{infoDiagram-7APDZ6AT-BfwYrYzT-Dmsve8VX.js → infoDiagram-P5D6MX3V-CthsN8fk-ju-grajk.js} +2 -2
  48. package/dist/{ini-CgO4T9Us-CgO4T9Us.js → ini-BUcvsX-U-BUcvsX-U.js} +1 -2
  49. package/dist/{java-Bd9vXGhZ-Bd9vXGhZ.js → java-Dg4kxH6C-Dg4kxH6C.js} +1 -2
  50. package/dist/{javascript-CGvwHrzr-CGvwHrzr.js → javascript-CipAzIn1-CipAzIn1.js} +1 -2
  51. package/dist/{journeyDiagram-G5LC7W2K-CG7eqOA2-BR-Kjflm.js → journeyDiagram-UIGPPNLY-CB1xWSVF-CnOTIXjT.js} +3 -3
  52. package/dist/{json-B86kHl_g-B86kHl_g.js → json-_04EL6MS-_04EL6MS.js} +1 -2
  53. package/dist/{json5-GB6TimgH-GB6TimgH.js → json5-Dwmp5XFI-Dwmp5XFI.js} +1 -2
  54. package/dist/{jsonc-CP3QVoXc-CP3QVoXc.js → jsonc-LqD5auy0-LqD5auy0.js} +1 -2
  55. package/dist/{jsonl-C2ofTLY8-C2ofTLY8.js → jsonl-B4yVuYQH-B4yVuYQH.js} +1 -2
  56. package/dist/{jsx-ZpKf1TSy-ZpKf1TSy.js → jsx-Mg4WaD5k-Mg4WaD5k.js} +1 -2
  57. package/dist/kanban-definition-KMT3NSR2-B76JZ_Kx-BuaYPyou.js +718 -0
  58. package/dist/{kotlin-CAtfTEpr-CAtfTEpr.js → kotlin-B-KtFKnZ-B-KtFKnZ.js} +1 -2
  59. package/dist/latex-4X1wferq-jnM3V2Lk.js +11 -0
  60. package/dist/layout-mwnMvyc4-B2PmGvWD.js +1321 -0
  61. package/dist/{less-0UFuQRv0-0UFuQRv0.js → less-BBvTHIGe-BBvTHIGe.js} +1 -2
  62. package/dist/{linear-K1FWf0tW-rovEi7Ez.js → linear-XztDb0hj-RsuwoFLQ.js} +46 -46
  63. package/dist/{liquid-Uq0DwV7I-CRvdDbph.js → liquid-CY_eqGhE-8pvFZkT3.js} +6 -7
  64. package/dist/{lua-BEgWEgjO-DU5YUtUR.js → lua-BePGDS3E-DZBHNWZI.js} +2 -3
  65. package/dist/{make-BDMxblcP-BDMxblcP.js → make-zNwjDE2P-zNwjDE2P.js} +1 -2
  66. package/dist/{markdown-CzCkSBhS-CzCkSBhS.js → markdown-DAXqtk9a-DAXqtk9a.js} +1 -2
  67. package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
  68. package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
  69. package/dist/{mdc-BA3wmBe6-BAlBXF37.js → mdc-BAm7rFbW-CB-Ca4M0.js} +4 -5
  70. package/dist/{mdx-KaGu4TbO-KaGu4TbO.js → mdx-CSCKbb_f-CSCKbb_f.js} +1 -2
  71. package/dist/{mermaid-DZVJOJE0-DZVJOJE0.js → mermaid-nGb_yn9n-nGb_yn9n.js} +1 -2
  72. package/dist/{mermaid-parser.core-Cj_oowsS-VsEYt1Nc.js → mermaid-parser.core-C4mt_cFi-BuaZi6gx.js} +9 -9
  73. package/dist/{mindmap-definition-FCEC46F3-CAlFsP0h-CZf0v8Pe.js → mindmap-definition-R7LC4OIY-Cg3Nsctr-BcCPx65V.js} +1 -1
  74. package/dist/{nginx-zxRCFE-h-BypGKuox.js → nginx-QOAv2a_a-BWrsIdI1.js} +2 -3
  75. package/dist/{objective-c-D6w3apbj-D6w3apbj.js → objective-c-CEDFCaSx-CEDFCaSx.js} +1 -2
  76. package/dist/packet-W2GHVCYJ-BJGXYVlB-DlnQVVmK.js +5 -0
  77. package/dist/{pascal-DenYIYz2-DenYIYz2.js → pascal-l2bqd7Dz-l2bqd7Dz.js} +1 -2
  78. package/dist/{perl-D3yLJL---Dh53Z1Ch.js → perl-CB2Uc-Hf-ZBolre2-.js} +6 -7
  79. package/dist/{php-CotrzT_K-Bao4rTV9.js → php-B_-4RJ09-CJdubCs6.js} +7 -8
  80. package/dist/pie-BEWT4RHE-XO1bTOj2-DEYSeXSg.js +5 -0
  81. package/dist/{pieDiagram-OZX6XH5M-H8rUXph8-BISJ3i9V.js → pieDiagram-BLWKPB35-Bs5Iyn_g-CnOiPji_.js} +27 -27
  82. package/dist/{plsql-DH6aemMc-DH6aemMc.js → plsql-oVq_K_wH-oVq_K_wH.js} +1 -2
  83. package/dist/{postcss-Cf6moWPa-Cf6moWPa.js → postcss-SJfTvo_B-SJfTvo_B.js} +1 -2
  84. package/dist/{powershell-HbR4eE6x-HbR4eE6x.js → powershell-BEOw57rb-BEOw57rb.js} +1 -2
  85. package/dist/{proto-FnD6HNAf-FnD6HNAf.js → proto-BWZ41ClP-BWZ41ClP.js} +1 -2
  86. package/dist/{pug-BQlVJUDw-CHRWHsZp.js → pug-3q2tx0nf-DGKx19t7.js} +6 -15
  87. package/dist/{python-DmuMvCM0-DmuMvCM0.js → python-Dpup1-fE-Dpup1-fE.js} +1 -2
  88. package/dist/{quadrantDiagram-VG34DGKC-BEwF7VGA-DIV2JaGU.js → quadrantDiagram-QXWEEFXS-n8j7IqmF-CloVXY0U.js} +16 -16
  89. package/dist/{r-Bc6kwNk5-Bc6kwNk5.js → r-Chyv38Fv-Chyv38Fv.js} +1 -2
  90. package/dist/{reg-D7nGELoM-D7nGELoM.js → reg-CD53Yasp-CD53Yasp.js} +1 -2
  91. package/dist/{requirementDiagram-FPZB6IJI-kQtxPQXX-CmRUwQe6.js → requirementDiagram-XAUNFCZY-DI_Pyl2h-D8hqXle2.js} +20 -20
  92. package/dist/rst-Euaf_RMd-B96mCjUw.js +40 -0
  93. package/dist/{ruby-DeHccIAO-BcoQ2TvH.js → ruby-CsHI6ozR-BrDG5TRv.js} +9 -10
  94. package/dist/{rust-DUjrmsiV-DUjrmsiV.js → rust-C6uk_0pe-C6uk_0pe.js} +1 -2
  95. package/dist/{sankeyDiagram-KMMQDL5K-i1hmlnC3-C4FQplTB.js → sankeyDiagram-LVV36NHA-Bei7yBJl-DvbyWSci.js} +1 -1
  96. package/dist/sass-p2RMoqDT-p2RMoqDT.js +6 -0
  97. package/dist/{scss-CnxrcEK_-CATc0Lba.js → scss-DmlHSoOY-y80_J0a4.js} +2 -3
  98. package/dist/{sequenceDiagram-PQT5PN7B-CnJbbAPa-BB0ILzU7.js → sequenceDiagram-D25TJ2OB-NAPdhBbI-DQR1b0UZ.js} +21 -21
  99. package/dist/{shellscript-CLi_Jlup-CLi_Jlup.js → shellscript-CZpPN8_x-CZpPN8_x.js} +1 -2
  100. package/dist/{shellsession-BgOGDEE0-D_whUPK9.js → shellsession-B-Ndr_EN-JFzqxELg.js} +3 -4
  101. package/dist/{splunk-ZWH3T4YR-ZWH3T4YR.js → splunk-D2FIaQ3k-D2FIaQ3k.js} +1 -2
  102. package/dist/{sql-CqEjJWk_-CqEjJWk_.js → sql-DtlkUz2m-DtlkUz2m.js} +1 -2
  103. package/dist/{ssh-config-cxjN15Iq-cxjN15Iq.js → ssh-config-D5GRD_Np-D5GRD_Np.js} +1 -2
  104. package/dist/{stateDiagram-TQSDS2D4-C4igPbE8-D-CdRaHA.js → stateDiagram-GNSP7T6Y-Dzq9j0YG-BgVCaCOx.js} +14 -15
  105. package/dist/{stateDiagram-v2-J5TZWJW5-DAq6KSAM-O6I-IpUw.js → stateDiagram-v2-HP6YRVRG-Jl4ubGlG-BeMvcZLQ.js} +2 -3
  106. package/dist/{stylus-BqSAqkqK-BqSAqkqK.js → stylus-DEr8eSLm-DEr8eSLm.js} +1 -2
  107. package/dist/{svelte-Yn79bR_P-TdNy3USA.js → svelte-BRIJF62h-BI1AT0iL.js} +7 -22
  108. package/dist/{swift-Cii5mold-Cii5mold.js → swift-B9svdVyc-B9svdVyc.js} +1 -2
  109. package/dist/{timeline-definition-KYQAIZUX-DQEkDwlz-BcdRcAgF.js → timeline-definition-27KQCCZ3-Dyj-cUhB-cBpLcB_z.js} +91 -91
  110. package/dist/{toml-BrnHWKvZ-BrnHWKvZ.js → toml-C3Ja0Ta7-C3Ja0Ta7.js} +1 -2
  111. package/dist/{tsx-RDJgLpEg-RDJgLpEg.js → tsx-DTfbgJxi-DTfbgJxi.js} +1 -2
  112. package/dist/{twig-CyzrzZ6V-CLfeQShi.js → twig-DkDTNtrS-jo7aVWBG.js} +7 -8
  113. package/dist/{typescript-BRQxorCF-BRQxorCF.js → typescript-CCd4aQHh-CCd4aQHh.js} +1 -2
  114. package/dist/{v-CBsEUX4x-CBsEUX4x.js → v-DectkoIj-DectkoIj.js} +1 -2
  115. package/dist/{vb-BCQhaxZY-BCQhaxZY.js → vb-3pua_tRu-3pua_tRu.js} +1 -2
  116. package/dist/{viml-DUDcfQ_j-DUDcfQ_j.js → viml-CJHUchaf-CJHUchaf.js} +1 -2
  117. package/dist/vue-CY-KyffX-BnjPeHxm.js +31 -0
  118. package/dist/{vue-html-DkB4x9kz-BBbMk49e.js → vue-html-C0fH2sQy-Da7Je-I4.js} +3 -4
  119. package/dist/{wasm-KuMlursr-KuMlursr.js → wasm-VDIDph3E-VDIDph3E.js} +1 -2
  120. package/dist/{wgsl-CXztftdQ-CXztftdQ.js → wgsl-2np_U3Z8-2np_U3Z8.js} +1 -2
  121. package/dist/{xml-D46nbCSr-BYMRGyuH.js → xml-CNyphW9R-DycLHq-n.js} +2 -3
  122. package/dist/{xsl--U1R63rG-D8P_gDHK.js → xsl-C2K1QB6X-B3b1KJxQ.js} +2 -3
  123. package/dist/{xychartDiagram-LESROZAQ-tgQhgg2Q-CUZY_ot8.js → xychartDiagram-MYLB5AYS-Bc_nZcHL-YLCG5NJT.js} +2 -2
  124. package/dist/{yaml-BEQ1JqWb-BEQ1JqWb.js → yaml-DxFiVFcM-DxFiVFcM.js} +1 -2
  125. package/package.json +6 -6
  126. package/dist/_basePickBy-CU0TiV13-B2lcN6Xi.js +0 -143
  127. package/dist/_baseUniq-BAMfE4xp-BAs-gBgZ.js +0 -622
  128. package/dist/arc-Cof8I1nv-BEpAvsYw.js +0 -83
  129. package/dist/architecture-I3QFYML2-CRA_auFu-BOYIKY2S.js +0 -5
  130. package/dist/blockDiagram-EN3ZKWFM-CYnZx-IR-Bl0aimgG.js +0 -1232
  131. package/dist/chunk-BAVOGKFW-B_i9W0mu-aXYqnut5.js +0 -1092
  132. package/dist/chunk-UGV5ZQQN-lwe0VAyX-BkOr8rah.js +0 -254
  133. package/dist/chunk-YWFND7JV-r0DobNSv-Qk_ESE3G.js +0 -786
  134. package/dist/classDiagram-4BHYIK4I-qYBSssh--DFvW-YgH.js +0 -214
  135. package/dist/classDiagram-v2-FI7KE7WJ-BIgDAZfE-NPVjR0Sp.js +0 -545
  136. package/dist/coffee-CiEmwUV9-D5Oe8742.js +0 -9
  137. package/dist/cpp-BphENtVr-DqhLnmUg.js +0 -29
  138. package/dist/dagre-P3YPLUS5-Bfaw7Bo9-DPdf44wL.js +0 -421
  139. package/dist/flowDiagram-JSIZSE4D-CEhJC-5_-DHjVPCad.js +0 -1380
  140. package/dist/gitGraph-YCYPL57B-DfH87xvl-DsibXYdp.js +0 -5
  141. package/dist/info-46DW6VJ7-DuNWYdzn-PVj3kKJm.js +0 -5
  142. package/dist/json-aDA71_xz-DxdQPLBu.js +0 -31
  143. package/dist/latex-14aRsJKm-mj9Fild6.js +0 -62
  144. package/dist/layout-BrqICqM--CUdWjnyz.js +0 -1381
  145. package/dist/material-theme-lighter-CnKSyNS5-CnKSyNS5.js +0 -4
  146. package/dist/material-theme-palenight-BaYUoLXq-BaYUoLXq.js +0 -4
  147. package/dist/packet-W2GHVCYJ-DL_sFpED-q6WAtxyK.js +0 -5
  148. package/dist/pie-BEWT4RHE-DM_nCoZ3-D0wjXv38.js +0 -5
  149. package/dist/rst-CaIq10fc-5Y1LeNh2.js +0 -26
  150. package/dist/sass-CLufkToV-CLufkToV.js +0 -7
  151. package/dist/vue-DNFIPpe6-BpXPyld-.js +0 -68
@@ -0,0 +1,718 @@
1
+ import { _ as a, l as tt, g as G, aX as pt, f as yt, i as ft, p as mt, bn as bt, aB as K, ae as F, an as _t, ao as Et, bo as St, bp as at, bq as lt } from "./index-BXFfc1qh.js";
2
+ var Y = function() {
3
+ var i = /* @__PURE__ */ a(function(k, t, n, r) {
4
+ for (n = n || {}, r = k.length; r--; n[k[r]] = t) ;
5
+ return n;
6
+ }, "o"), u = [1, 4], d = [1, 13], s = [1, 12], g = [1, 15], D = [1, 16], S = [1, 20], h = [1, 19], v = [6, 7, 8], b = [1, 26], _ = [1, 24], C = [1, 25], o = [6, 7, 11], j = [1, 31], w = [6, 7, 11, 24], T = [1, 6, 13, 16, 17, 20, 23], $ = [1, 35], H = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], M = [1, 38], y = {
7
+ trace: /* @__PURE__ */ a(function() {
8
+ }, "trace"),
9
+ yy: {},
10
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, KANBAN: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, shapeData: 15, ICON: 16, CLASS: 17, nodeWithId: 18, nodeWithoutId: 19, NODE_DSTART: 20, NODE_DESCR: 21, NODE_DEND: 22, NODE_ID: 23, SHAPE_DATA: 24, $accept: 0, $end: 1 },
11
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
12
+ productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
13
+ performAction: /* @__PURE__ */ a(function(k, t, n, r, c, e, m) {
14
+ var l = e.length - 1;
15
+ switch (c) {
16
+ case 6:
17
+ case 7:
18
+ return r;
19
+ case 8:
20
+ r.getLogger().trace("Stop NL ");
21
+ break;
22
+ case 9:
23
+ r.getLogger().trace("Stop EOF ");
24
+ break;
25
+ case 11:
26
+ r.getLogger().trace("Stop NL2 ");
27
+ break;
28
+ case 12:
29
+ r.getLogger().trace("Stop EOF2 ");
30
+ break;
31
+ case 15:
32
+ r.getLogger().info("Node: ", e[l - 1].id), r.addNode(e[l - 2].length, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
33
+ break;
34
+ case 16:
35
+ r.getLogger().info("Node: ", e[l].id), r.addNode(e[l - 1].length, e[l].id, e[l].descr, e[l].type);
36
+ break;
37
+ case 17:
38
+ r.getLogger().trace("Icon: ", e[l]), r.decorateNode({ icon: e[l] });
39
+ break;
40
+ case 18:
41
+ case 23:
42
+ r.decorateNode({ class: e[l] });
43
+ break;
44
+ case 19:
45
+ r.getLogger().trace("SPACELIST");
46
+ break;
47
+ case 20:
48
+ r.getLogger().trace("Node: ", e[l - 1].id), r.addNode(0, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
49
+ break;
50
+ case 21:
51
+ r.getLogger().trace("Node: ", e[l].id), r.addNode(0, e[l].id, e[l].descr, e[l].type);
52
+ break;
53
+ case 22:
54
+ r.decorateNode({ icon: e[l] });
55
+ break;
56
+ case 27:
57
+ r.getLogger().trace("node found ..", e[l - 2]), this.$ = { id: e[l - 1], descr: e[l - 1], type: r.getType(e[l - 2], e[l]) };
58
+ break;
59
+ case 28:
60
+ this.$ = { id: e[l], descr: e[l], type: 0 };
61
+ break;
62
+ case 29:
63
+ r.getLogger().trace("node found ..", e[l - 3]), this.$ = { id: e[l - 3], descr: e[l - 1], type: r.getType(e[l - 2], e[l]) };
64
+ break;
65
+ case 30:
66
+ this.$ = e[l - 1] + e[l];
67
+ break;
68
+ case 31:
69
+ this.$ = e[l];
70
+ break;
71
+ }
72
+ }, "anonymous"),
73
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: u }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: u }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, i(v, [2, 3]), { 1: [2, 2] }, i(v, [2, 4]), i(v, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, { 6: d, 9: 22, 12: 11, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, { 6: b, 7: _, 10: 23, 11: C }, i(o, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: S, 23: h }), i(o, [2, 19]), i(o, [2, 21], { 15: 30, 24: j }), i(o, [2, 22]), i(o, [2, 23]), i(w, [2, 25]), i(w, [2, 26]), i(w, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: b, 7: _, 10: 34, 11: C }, { 1: [2, 7], 6: d, 12: 21, 13: s, 14: 14, 16: g, 17: D, 18: 17, 19: 18, 20: S, 23: h }, i(T, [2, 14], { 7: $, 11: H }), i(A, [2, 8]), i(A, [2, 9]), i(A, [2, 10]), i(o, [2, 16], { 15: 37, 24: j }), i(o, [2, 17]), i(o, [2, 18]), i(o, [2, 20], { 24: M }), i(w, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, i(T, [2, 13], { 7: $, 11: H }), i(A, [2, 11]), i(A, [2, 12]), i(o, [2, 15], { 24: M }), i(w, [2, 30]), { 22: [1, 41] }, i(w, [2, 27]), i(w, [2, 29])],
74
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
75
+ parseError: /* @__PURE__ */ a(function(k, t) {
76
+ if (t.recoverable)
77
+ this.trace(k);
78
+ else {
79
+ var n = new Error(k);
80
+ throw n.hash = t, n;
81
+ }
82
+ }, "parseError"),
83
+ parse: /* @__PURE__ */ a(function(k) {
84
+ var t = this, n = [0], r = [], c = [null], e = [], m = this.table, l = "", W = 0, nt = 0, ht = 2, st = 1, ut = e.slice.call(arguments, 1), f = Object.create(this.lexer), P = { yy: {} };
85
+ for (var q in this.yy)
86
+ Object.prototype.hasOwnProperty.call(this.yy, q) && (P.yy[q] = this.yy[q]);
87
+ f.setInput(k, P.yy), P.yy.lexer = f, P.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
88
+ var X = f.yylloc;
89
+ e.push(X);
90
+ var gt = f.options && f.options.ranges;
91
+ typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
92
+ function dt(N) {
93
+ n.length = n.length - 2 * N, c.length = c.length - N, e.length = e.length - N;
94
+ }
95
+ a(dt, "popStack");
96
+ function rt() {
97
+ var N;
98
+ return N = r.pop() || f.lex() || st, typeof N != "number" && (N instanceof Array && (r = N, N = r.pop()), N = t.symbols_[N] || N), N;
99
+ }
100
+ a(rt, "lex");
101
+ for (var E, B, x, J, U = {}, z, I, ot, V; ; ) {
102
+ if (B = n[n.length - 1], this.defaultActions[B] ? x = this.defaultActions[B] : ((E === null || typeof E > "u") && (E = rt()), x = m[B] && m[B][E]), typeof x > "u" || !x.length || !x[0]) {
103
+ var Q = "";
104
+ V = [];
105
+ for (z in m[B])
106
+ this.terminals_[z] && z > ht && V.push("'" + this.terminals_[z] + "'");
107
+ f.showPosition ? Q = "Parse error on line " + (W + 1) + `:
108
+ ` + f.showPosition() + `
109
+ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "Parse error on line " + (W + 1) + ": Unexpected " + (E == st ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Q, {
110
+ text: f.match,
111
+ token: this.terminals_[E] || E,
112
+ line: f.yylineno,
113
+ loc: X,
114
+ expected: V
115
+ });
116
+ }
117
+ if (x[0] instanceof Array && x.length > 1)
118
+ throw new Error("Parse Error: multiple actions possible at state: " + B + ", token: " + E);
119
+ switch (x[0]) {
120
+ case 1:
121
+ n.push(E), c.push(f.yytext), e.push(f.yylloc), n.push(x[1]), E = null, nt = f.yyleng, l = f.yytext, W = f.yylineno, X = f.yylloc;
122
+ break;
123
+ case 2:
124
+ if (I = this.productions_[x[1]][1], U.$ = c[c.length - I], U._$ = {
125
+ first_line: e[e.length - (I || 1)].first_line,
126
+ last_line: e[e.length - 1].last_line,
127
+ first_column: e[e.length - (I || 1)].first_column,
128
+ last_column: e[e.length - 1].last_column
129
+ }, gt && (U._$.range = [
130
+ e[e.length - (I || 1)].range[0],
131
+ e[e.length - 1].range[1]
132
+ ]), J = this.performAction.apply(U, [
133
+ l,
134
+ nt,
135
+ W,
136
+ P.yy,
137
+ x[1],
138
+ c,
139
+ e
140
+ ].concat(ut)), typeof J < "u")
141
+ return J;
142
+ I && (n = n.slice(0, -1 * I * 2), c = c.slice(0, -1 * I), e = e.slice(0, -1 * I)), n.push(this.productions_[x[1]][0]), c.push(U.$), e.push(U._$), ot = m[n[n.length - 2]][n[n.length - 1]], n.push(ot);
143
+ break;
144
+ case 3:
145
+ return !0;
146
+ }
147
+ }
148
+ return !0;
149
+ }, "parse")
150
+ }, R = /* @__PURE__ */ function() {
151
+ var k = {
152
+ EOF: 1,
153
+ parseError: /* @__PURE__ */ a(function(t, n) {
154
+ if (this.yy.parser)
155
+ this.yy.parser.parseError(t, n);
156
+ else
157
+ throw new Error(t);
158
+ }, "parseError"),
159
+ // resets the lexer, sets new input
160
+ setInput: /* @__PURE__ */ a(function(t, n) {
161
+ return this.yy = n || 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 = {
162
+ first_line: 1,
163
+ first_column: 0,
164
+ last_line: 1,
165
+ last_column: 0
166
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
167
+ }, "setInput"),
168
+ // consumes and returns one char from the input
169
+ input: /* @__PURE__ */ a(function() {
170
+ var t = this._input[0];
171
+ this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
172
+ var n = t.match(/(?:\r\n?|\n).*/g);
173
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
174
+ }, "input"),
175
+ // unshifts one char (or a string) into the input
176
+ unput: /* @__PURE__ */ a(function(t) {
177
+ var n = t.length, r = t.split(/(?:\r\n?|\n)/g);
178
+ this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
179
+ var c = this.match.split(/(?:\r\n?|\n)/g);
180
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
181
+ var e = this.yylloc.range;
182
+ return this.yylloc = {
183
+ first_line: this.yylloc.first_line,
184
+ last_line: this.yylineno + 1,
185
+ first_column: this.yylloc.first_column,
186
+ last_column: r ? (r.length === c.length ? this.yylloc.first_column : 0) + c[c.length - r.length].length - r[0].length : this.yylloc.first_column - n
187
+ }, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
188
+ }, "unput"),
189
+ // When called from action, caches matched text and appends it on next action
190
+ more: /* @__PURE__ */ a(function() {
191
+ return this._more = !0, this;
192
+ }, "more"),
193
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
194
+ reject: /* @__PURE__ */ a(function() {
195
+ if (this.options.backtrack_lexer)
196
+ this._backtrack = !0;
197
+ else
198
+ 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).
199
+ ` + this.showPosition(), {
200
+ text: "",
201
+ token: null,
202
+ line: this.yylineno
203
+ });
204
+ return this;
205
+ }, "reject"),
206
+ // retain first n characters of the match
207
+ less: /* @__PURE__ */ a(function(t) {
208
+ this.unput(this.match.slice(t));
209
+ }, "less"),
210
+ // displays already matched input, i.e. for error messages
211
+ pastInput: /* @__PURE__ */ a(function() {
212
+ var t = this.matched.substr(0, this.matched.length - this.match.length);
213
+ return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
214
+ }, "pastInput"),
215
+ // displays upcoming input, i.e. for error messages
216
+ upcomingInput: /* @__PURE__ */ a(function() {
217
+ var t = this.match;
218
+ return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
219
+ }, "upcomingInput"),
220
+ // displays the character position where the lexing error occurred, i.e. for error messages
221
+ showPosition: /* @__PURE__ */ a(function() {
222
+ var t = this.pastInput(), n = new Array(t.length + 1).join("-");
223
+ return t + this.upcomingInput() + `
224
+ ` + n + "^";
225
+ }, "showPosition"),
226
+ // test the lexed token: return FALSE when not a match, otherwise return token
227
+ test_match: /* @__PURE__ */ a(function(t, n) {
228
+ var r, c, e;
229
+ if (this.options.backtrack_lexer && (e = {
230
+ yylineno: this.yylineno,
231
+ yylloc: {
232
+ first_line: this.yylloc.first_line,
233
+ last_line: this.last_line,
234
+ first_column: this.yylloc.first_column,
235
+ last_column: this.yylloc.last_column
236
+ },
237
+ yytext: this.yytext,
238
+ match: this.match,
239
+ matches: this.matches,
240
+ matched: this.matched,
241
+ yyleng: this.yyleng,
242
+ offset: this.offset,
243
+ _more: this._more,
244
+ _input: this._input,
245
+ yy: this.yy,
246
+ conditionStack: this.conditionStack.slice(0),
247
+ done: this.done
248
+ }, this.options.ranges && (e.yylloc.range = this.yylloc.range.slice(0))), c = t[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.length), this.yylloc = {
249
+ first_line: this.yylloc.last_line,
250
+ last_line: this.yylineno + 1,
251
+ first_column: this.yylloc.last_column,
252
+ last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
253
+ }, 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], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
254
+ return r;
255
+ if (this._backtrack) {
256
+ for (var m in e)
257
+ this[m] = e[m];
258
+ return !1;
259
+ }
260
+ return !1;
261
+ }, "test_match"),
262
+ // return next match in input
263
+ next: /* @__PURE__ */ a(function() {
264
+ if (this.done)
265
+ return this.EOF;
266
+ this._input || (this.done = !0);
267
+ var t, n, r, c;
268
+ this._more || (this.yytext = "", this.match = "");
269
+ for (var e = this._currentRules(), m = 0; m < e.length; m++)
270
+ if (r = this._input.match(this.rules[e[m]]), r && (!n || r[0].length > n[0].length)) {
271
+ if (n = r, c = m, this.options.backtrack_lexer) {
272
+ if (t = this.test_match(r, e[m]), t !== !1)
273
+ return t;
274
+ if (this._backtrack) {
275
+ n = !1;
276
+ continue;
277
+ } else
278
+ return !1;
279
+ } else if (!this.options.flex)
280
+ break;
281
+ }
282
+ return n ? (t = this.test_match(n, e[c]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
283
+ ` + this.showPosition(), {
284
+ text: "",
285
+ token: null,
286
+ line: this.yylineno
287
+ });
288
+ }, "next"),
289
+ // return next match that has a token
290
+ lex: /* @__PURE__ */ a(function() {
291
+ var t = this.next();
292
+ return t || this.lex();
293
+ }, "lex"),
294
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
295
+ begin: /* @__PURE__ */ a(function(t) {
296
+ this.conditionStack.push(t);
297
+ }, "begin"),
298
+ // pop the previously active lexer condition state off the condition stack
299
+ popState: /* @__PURE__ */ a(function() {
300
+ var t = this.conditionStack.length - 1;
301
+ return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
302
+ }, "popState"),
303
+ // produce the lexer rule set which is active for the currently active lexer condition state
304
+ _currentRules: /* @__PURE__ */ a(function() {
305
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
306
+ }, "_currentRules"),
307
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
308
+ topState: /* @__PURE__ */ a(function(t) {
309
+ return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
310
+ }, "topState"),
311
+ // alias for begin(condition)
312
+ pushState: /* @__PURE__ */ a(function(t) {
313
+ this.begin(t);
314
+ }, "pushState"),
315
+ // return the number of states currently on the stack
316
+ stateStackSize: /* @__PURE__ */ a(function() {
317
+ return this.conditionStack.length;
318
+ }, "stateStackSize"),
319
+ options: { "case-insensitive": !0 },
320
+ performAction: /* @__PURE__ */ a(function(t, n, r, c) {
321
+ switch (r) {
322
+ case 0:
323
+ return this.pushState("shapeData"), n.yytext = "", 24;
324
+ case 1:
325
+ return this.pushState("shapeDataStr"), 24;
326
+ case 2:
327
+ return this.popState(), 24;
328
+ case 3:
329
+ const e = /\n\s*/g;
330
+ return n.yytext = n.yytext.replace(e, "<br/>"), 24;
331
+ case 4:
332
+ return 24;
333
+ case 5:
334
+ this.popState();
335
+ break;
336
+ case 6:
337
+ return t.getLogger().trace("Found comment", n.yytext), 6;
338
+ case 7:
339
+ return 8;
340
+ case 8:
341
+ this.begin("CLASS");
342
+ break;
343
+ case 9:
344
+ return this.popState(), 17;
345
+ case 10:
346
+ this.popState();
347
+ break;
348
+ case 11:
349
+ t.getLogger().trace("Begin icon"), this.begin("ICON");
350
+ break;
351
+ case 12:
352
+ return t.getLogger().trace("SPACELINE"), 6;
353
+ case 13:
354
+ return 7;
355
+ case 14:
356
+ return 16;
357
+ case 15:
358
+ t.getLogger().trace("end icon"), this.popState();
359
+ break;
360
+ case 16:
361
+ return t.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
362
+ case 17:
363
+ return t.getLogger().trace("Cloud"), this.begin("NODE"), 20;
364
+ case 18:
365
+ return t.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
366
+ case 19:
367
+ return t.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
368
+ case 20:
369
+ return this.begin("NODE"), 20;
370
+ case 21:
371
+ return this.begin("NODE"), 20;
372
+ case 22:
373
+ return this.begin("NODE"), 20;
374
+ case 23:
375
+ return this.begin("NODE"), 20;
376
+ case 24:
377
+ return 13;
378
+ case 25:
379
+ return 23;
380
+ case 26:
381
+ return 11;
382
+ case 27:
383
+ this.begin("NSTR2");
384
+ break;
385
+ case 28:
386
+ return "NODE_DESCR";
387
+ case 29:
388
+ this.popState();
389
+ break;
390
+ case 30:
391
+ t.getLogger().trace("Starting NSTR"), this.begin("NSTR");
392
+ break;
393
+ case 31:
394
+ return t.getLogger().trace("description:", n.yytext), "NODE_DESCR";
395
+ case 32:
396
+ this.popState();
397
+ break;
398
+ case 33:
399
+ return this.popState(), t.getLogger().trace("node end ))"), "NODE_DEND";
400
+ case 34:
401
+ return this.popState(), t.getLogger().trace("node end )"), "NODE_DEND";
402
+ case 35:
403
+ return this.popState(), t.getLogger().trace("node end ...", n.yytext), "NODE_DEND";
404
+ case 36:
405
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
406
+ case 37:
407
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
408
+ case 38:
409
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
410
+ case 39:
411
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
412
+ case 40:
413
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
414
+ case 41:
415
+ return t.getLogger().trace("Long description:", n.yytext), 21;
416
+ case 42:
417
+ return t.getLogger().trace("Long description:", n.yytext), 21;
418
+ }
419
+ }, "anonymous"),
420
+ rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}@]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
421
+ conditions: { shapeDataEndBracket: { rules: [], inclusive: !1 }, shapeDataStr: { rules: [2, 3], inclusive: !1 }, shapeData: { rules: [1, 4, 5], inclusive: !1 }, CLASS: { rules: [9, 10], inclusive: !1 }, ICON: { rules: [14, 15], inclusive: !1 }, NSTR2: { rules: [28, 29], inclusive: !1 }, NSTR: { rules: [31, 32], inclusive: !1 }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: !1 }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: !0 } }
422
+ };
423
+ return k;
424
+ }();
425
+ y.lexer = R;
426
+ function O() {
427
+ this.yy = {};
428
+ }
429
+ return a(O, "Parser"), O.prototype = y, y.Parser = O, new O();
430
+ }();
431
+ Y.parser = Y;
432
+ var kt = Y, L = [], et = [], Z = 0, it = {}, Nt = /* @__PURE__ */ a(() => {
433
+ L = [], et = [], Z = 0, it = {};
434
+ }, "clear"), Dt = /* @__PURE__ */ a((i) => {
435
+ if (L.length === 0)
436
+ return null;
437
+ const u = L[0].level;
438
+ let d = null;
439
+ for (let s = L.length - 1; s >= 0; s--)
440
+ if (L[s].level === u && !d && (d = L[s]), L[s].level < u)
441
+ throw new Error('Items without section detected, found section ("' + L[s].label + '")');
442
+ return i === (d == null ? void 0 : d.level) ? null : d;
443
+ }, "getSection"), ct = /* @__PURE__ */ a(function() {
444
+ return et;
445
+ }, "getSections"), xt = /* @__PURE__ */ a(function() {
446
+ const i = [], u = [], d = ct(), s = G();
447
+ for (const g of d) {
448
+ const D = {
449
+ id: g.id,
450
+ label: F(g.label ?? "", s),
451
+ isGroup: !0,
452
+ ticket: g.ticket,
453
+ shape: "kanbanSection",
454
+ level: g.level,
455
+ look: s.look
456
+ };
457
+ u.push(D);
458
+ const S = L.filter((h) => h.parentId === g.id);
459
+ for (const h of S) {
460
+ const v = {
461
+ id: h.id,
462
+ parentId: g.id,
463
+ label: F(h.label ?? "", s),
464
+ isGroup: !1,
465
+ ticket: h == null ? void 0 : h.ticket,
466
+ priority: h == null ? void 0 : h.priority,
467
+ assigned: h == null ? void 0 : h.assigned,
468
+ icon: h == null ? void 0 : h.icon,
469
+ shape: "kanbanItem",
470
+ level: h.level,
471
+ rx: 5,
472
+ ry: 5,
473
+ cssStyles: ["text-align: left"]
474
+ };
475
+ u.push(v);
476
+ }
477
+ }
478
+ return { nodes: u, edges: i, other: {}, config: G() };
479
+ }, "getData"), Lt = /* @__PURE__ */ a((i, u, d, s, g) => {
480
+ var D, S;
481
+ const h = G();
482
+ let v = ((D = h.mindmap) == null ? void 0 : D.padding) ?? K.mindmap.padding;
483
+ switch (s) {
484
+ case p.ROUNDED_RECT:
485
+ case p.RECT:
486
+ case p.HEXAGON:
487
+ v *= 2;
488
+ }
489
+ const b = {
490
+ id: F(u, h) || "kbn" + Z++,
491
+ level: i,
492
+ label: F(d, h),
493
+ width: ((S = h.mindmap) == null ? void 0 : S.maxNodeWidth) ?? K.mindmap.maxNodeWidth,
494
+ padding: v,
495
+ isGroup: !1
496
+ };
497
+ if (g !== void 0) {
498
+ let C;
499
+ g.includes(`
500
+ `) ? C = g + `
501
+ ` : C = `{
502
+ ` + g + `
503
+ }`;
504
+ const o = _t(C, { schema: Et });
505
+ if (o.shape && (o.shape !== o.shape.toLowerCase() || o.shape.includes("_")))
506
+ throw new Error(`No such shape: ${o.shape}. Shape names should be lowercase.`);
507
+ o != null && o.shape && o.shape === "kanbanItem" && (b.shape = o == null ? void 0 : o.shape), o != null && o.label && (b.label = o == null ? void 0 : o.label), o != null && o.icon && (b.icon = o == null ? void 0 : o.icon), o != null && o.assigned && (b.assigned = o == null ? void 0 : o.assigned), o != null && o.ticket && (b.ticket = o == null ? void 0 : o.ticket), o != null && o.priority && (b.priority = o == null ? void 0 : o.priority);
508
+ }
509
+ const _ = Dt(i);
510
+ _ ? b.parentId = _.id || "kbn" + Z++ : et.push(b), L.push(b);
511
+ }, "addNode"), p = {
512
+ DEFAULT: 0,
513
+ NO_BORDER: 0,
514
+ ROUNDED_RECT: 1,
515
+ RECT: 2,
516
+ CIRCLE: 3,
517
+ CLOUD: 4,
518
+ BANG: 5,
519
+ HEXAGON: 6
520
+ }, vt = /* @__PURE__ */ a((i, u) => {
521
+ switch (tt.debug("In get type", i, u), i) {
522
+ case "[":
523
+ return p.RECT;
524
+ case "(":
525
+ return u === ")" ? p.ROUNDED_RECT : p.CLOUD;
526
+ case "((":
527
+ return p.CIRCLE;
528
+ case ")":
529
+ return p.CLOUD;
530
+ case "))":
531
+ return p.BANG;
532
+ case "{{":
533
+ return p.HEXAGON;
534
+ default:
535
+ return p.DEFAULT;
536
+ }
537
+ }, "getType"), Ot = /* @__PURE__ */ a((i, u) => {
538
+ it[i] = u;
539
+ }, "setElementForId"), Ct = /* @__PURE__ */ a((i) => {
540
+ if (!i)
541
+ return;
542
+ const u = G(), d = L[L.length - 1];
543
+ i.icon && (d.icon = F(i.icon, u)), i.class && (d.cssClasses = F(i.class, u));
544
+ }, "decorateNode"), wt = /* @__PURE__ */ a((i) => {
545
+ switch (i) {
546
+ case p.DEFAULT:
547
+ return "no-border";
548
+ case p.RECT:
549
+ return "rect";
550
+ case p.ROUNDED_RECT:
551
+ return "rounded-rect";
552
+ case p.CIRCLE:
553
+ return "circle";
554
+ case p.CLOUD:
555
+ return "cloud";
556
+ case p.BANG:
557
+ return "bang";
558
+ case p.HEXAGON:
559
+ return "hexgon";
560
+ default:
561
+ return "no-border";
562
+ }
563
+ }, "type2Str"), At = /* @__PURE__ */ a(() => tt, "getLogger"), It = /* @__PURE__ */ a((i) => it[i], "getElementById"), Tt = {
564
+ clear: Nt,
565
+ addNode: Lt,
566
+ getSections: ct,
567
+ getData: xt,
568
+ nodeType: p,
569
+ getType: vt,
570
+ setElementForId: Ot,
571
+ decorateNode: Ct,
572
+ type2Str: wt,
573
+ getLogger: At,
574
+ getElementById: It
575
+ }, $t = Tt, Rt = /* @__PURE__ */ a(async (i, u, d, s) => {
576
+ var g, D, S, h, v;
577
+ tt.debug(`Rendering kanban diagram
578
+ ` + i);
579
+ const b = s.db.getData(), _ = G();
580
+ _.htmlLabels = !1;
581
+ const C = pt(u), o = C.append("g");
582
+ o.attr("class", "sections");
583
+ const j = C.append("g");
584
+ j.attr("class", "items");
585
+ const w = b.nodes.filter(
586
+ // TODO: TypeScript 5.5 will infer this predicate automatically
587
+ (y) => y.isGroup
588
+ );
589
+ let T = 0;
590
+ const $ = 10, H = [];
591
+ let A = 25;
592
+ for (const y of w) {
593
+ const R = ((g = _ == null ? void 0 : _.kanban) == null ? void 0 : g.sectionWidth) || 200;
594
+ T = T + 1, y.x = R * T + (T - 1) * $ / 2, y.width = R, y.y = 0, y.height = R * 3, y.rx = 5, y.ry = 5, y.cssClasses = y.cssClasses + " section-" + T;
595
+ const O = await yt(o, y);
596
+ A = Math.max(A, (D = O == null ? void 0 : O.labelBBox) == null ? void 0 : D.height), H.push(O);
597
+ }
598
+ let M = 0;
599
+ for (const y of w) {
600
+ const R = H[M];
601
+ M = M + 1;
602
+ const O = ((S = _ == null ? void 0 : _.kanban) == null ? void 0 : S.sectionWidth) || 200, k = -O * 3 / 2 + A;
603
+ let t = k;
604
+ const n = b.nodes.filter((e) => e.parentId === y.id);
605
+ for (const e of n) {
606
+ if (e.isGroup)
607
+ throw new Error("Groups within groups are not allowed in Kanban diagrams");
608
+ e.x = y.x, e.width = O - 1.5 * $;
609
+ const m = (await ft(j, e, { config: _ })).node().getBBox();
610
+ e.y = t + m.height / 2, await mt(e), t = e.y + m.height / 2 + $ / 2;
611
+ }
612
+ const r = R.cluster.select("rect"), c = Math.max(t - k + 3 * $, 50) + (A - 25);
613
+ r.attr("height", c);
614
+ }
615
+ bt(
616
+ void 0,
617
+ C,
618
+ ((h = _.mindmap) == null ? void 0 : h.padding) ?? K.kanban.padding,
619
+ ((v = _.mindmap) == null ? void 0 : v.useMaxWidth) ?? K.kanban.useMaxWidth
620
+ );
621
+ }, "draw"), Pt = {
622
+ draw: Rt
623
+ }, Bt = /* @__PURE__ */ a((i) => {
624
+ let u = "";
625
+ for (let s = 0; s < i.THEME_COLOR_LIMIT; s++)
626
+ i["lineColor" + s] = i["lineColor" + s] || i["cScaleInv" + s], St(i["lineColor" + s]) ? i["lineColor" + s] = at(i["lineColor" + s], 20) : i["lineColor" + s] = lt(i["lineColor" + s], 20);
627
+ const d = /* @__PURE__ */ a((s, g) => i.darkMode ? lt(s, g) : at(s, g), "adjuster");
628
+ for (let s = 0; s < i.THEME_COLOR_LIMIT; s++) {
629
+ const g = "" + (17 - 3 * s);
630
+ u += `
631
+ .section-${s - 1} rect, .section-${s - 1} path, .section-${s - 1} circle, .section-${s - 1} polygon, .section-${s - 1} path {
632
+ fill: ${d(i["cScale" + s], 10)};
633
+ stroke: ${d(i["cScale" + s], 10)};
634
+
635
+ }
636
+ .section-${s - 1} text {
637
+ fill: ${i["cScaleLabel" + s]};
638
+ }
639
+ .node-icon-${s - 1} {
640
+ font-size: 40px;
641
+ color: ${i["cScaleLabel" + s]};
642
+ }
643
+ .section-edge-${s - 1}{
644
+ stroke: ${i["cScale" + s]};
645
+ }
646
+ .edge-depth-${s - 1}{
647
+ stroke-width: ${g};
648
+ }
649
+ .section-${s - 1} line {
650
+ stroke: ${i["cScaleInv" + s]} ;
651
+ stroke-width: 3;
652
+ }
653
+
654
+ .disabled, .disabled circle, .disabled text {
655
+ fill: lightgray;
656
+ }
657
+ .disabled text {
658
+ fill: #efefef;
659
+ }
660
+
661
+ .node rect,
662
+ .node circle,
663
+ .node ellipse,
664
+ .node polygon,
665
+ .node path {
666
+ fill: ${i.background};
667
+ stroke: ${i.nodeBorder};
668
+ stroke-width: 1px;
669
+ }
670
+
671
+ .kanban-ticket-link {
672
+ fill: ${i.background};
673
+ stroke: ${i.nodeBorder};
674
+ text-decoration: underline;
675
+ }
676
+ `;
677
+ }
678
+ return u;
679
+ }, "genSections"), Mt = /* @__PURE__ */ a((i) => `
680
+ .edge {
681
+ stroke-width: 3;
682
+ }
683
+ ${Bt(i)}
684
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
685
+ fill: ${i.git0};
686
+ }
687
+ .section-root text {
688
+ fill: ${i.gitBranchLabel0};
689
+ }
690
+ .icon-container {
691
+ height:100%;
692
+ display: flex;
693
+ justify-content: center;
694
+ align-items: center;
695
+ }
696
+ .edge {
697
+ fill: none;
698
+ }
699
+ .cluster-label, .label {
700
+ color: ${i.textColor};
701
+ fill: ${i.textColor};
702
+ }
703
+ .kanban-label {
704
+ dy: 1em;
705
+ alignment-baseline: middle;
706
+ text-anchor: middle;
707
+ dominant-baseline: middle;
708
+ text-align: center;
709
+ }
710
+ `, "getStyles"), Ut = Mt, jt = {
711
+ db: $t,
712
+ renderer: Pt,
713
+ parser: kt,
714
+ styles: Ut
715
+ };
716
+ export {
717
+ jt as diagram
718
+ };