@copilotkitnext/react 0.0.22-alpha.7 → 0.0.22-alpha.8

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 (236) hide show
  1. package/package.json +4 -4
  2. package/dist/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
  3. package/dist/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
  4. package/dist/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
  5. package/dist/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
  6. package/dist/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
  7. package/dist/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
  8. package/dist/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
  9. package/dist/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
  10. package/dist/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
  11. package/dist/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
  12. package/dist/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
  13. package/dist/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
  14. package/dist/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
  15. package/dist/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
  16. package/dist/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
  17. package/dist/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
  18. package/dist/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
  19. package/dist/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
  20. package/dist/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
  21. package/dist/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
  22. package/dist/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
  23. package/dist/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
  24. package/dist/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
  25. package/dist/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
  26. package/dist/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
  27. package/dist/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
  28. package/dist/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
  29. package/dist/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
  30. package/dist/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
  31. package/dist/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
  32. package/dist/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
  33. package/dist/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
  34. package/dist/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
  35. package/dist/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
  36. package/dist/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
  37. package/dist/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
  38. package/dist/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
  39. package/dist/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
  40. package/dist/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
  41. package/dist/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
  42. package/dist/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
  43. package/dist/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
  44. package/dist/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
  45. package/dist/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
  46. package/dist/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
  47. package/dist/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
  48. package/dist/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
  49. package/dist/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
  50. package/dist/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
  51. package/dist/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
  52. package/dist/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
  53. package/dist/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
  54. package/dist/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
  55. package/dist/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
  56. package/dist/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
  57. package/dist/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
  58. package/dist/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
  59. package/dist/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
  60. package/dist/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
  61. package/dist/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
  62. package/dist/angular-html-LD6QEAZE.mjs +0 -7
  63. package/dist/angular-html-LD6QEAZE.mjs.map +0 -1
  64. package/dist/angular-ts-FGK7I2F5.mjs +0 -37
  65. package/dist/angular-ts-FGK7I2F5.mjs.map +0 -1
  66. package/dist/angular-ts-XZTE5LQS.mjs +0 -37
  67. package/dist/angular-ts-XZTE5LQS.mjs.map +0 -1
  68. package/dist/apl-VB2EG5RZ.mjs +0 -22
  69. package/dist/apl-VB2EG5RZ.mjs.map +0 -1
  70. package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs +0 -8712
  71. package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs.map +0 -1
  72. package/dist/blade-EZDWULER.mjs +0 -26
  73. package/dist/blade-EZDWULER.mjs.map +0 -1
  74. package/dist/blade-HS4Z7O3Y.mjs +0 -26
  75. package/dist/blade-HS4Z7O3Y.mjs.map +0 -1
  76. package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs +0 -3618
  77. package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs.map +0 -1
  78. package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs +0 -2495
  79. package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs.map +0 -1
  80. package/dist/chunk-2BAFECUC.mjs +0 -28
  81. package/dist/chunk-2BAFECUC.mjs.map +0 -1
  82. package/dist/chunk-BF5LDW2L.mjs +0 -65
  83. package/dist/chunk-BF5LDW2L.mjs.map +0 -1
  84. package/dist/chunk-BUEC2HNL.mjs +0 -762
  85. package/dist/chunk-BUEC2HNL.mjs.map +0 -1
  86. package/dist/chunk-CRGJ2YCV.mjs +0 -109
  87. package/dist/chunk-CRGJ2YCV.mjs.map +0 -1
  88. package/dist/chunk-DKZXT4VQ.mjs +0 -19
  89. package/dist/chunk-DKZXT4VQ.mjs.map +0 -1
  90. package/dist/chunk-DYQXFOGA.mjs +0 -34
  91. package/dist/chunk-DYQXFOGA.mjs.map +0 -1
  92. package/dist/chunk-ENI667QL.mjs +0 -806
  93. package/dist/chunk-ENI667QL.mjs.map +0 -1
  94. package/dist/chunk-GEUZOPED.mjs +0 -1834
  95. package/dist/chunk-GEUZOPED.mjs.map +0 -1
  96. package/dist/chunk-GU7334FJ.mjs +0 -538
  97. package/dist/chunk-GU7334FJ.mjs.map +0 -1
  98. package/dist/chunk-HNKEYT4A.mjs +0 -4693
  99. package/dist/chunk-HNKEYT4A.mjs.map +0 -1
  100. package/dist/chunk-HTMHAYGC.mjs +0 -14
  101. package/dist/chunk-HTMHAYGC.mjs.map +0 -1
  102. package/dist/chunk-JRLFMJ6U.mjs +0 -1923
  103. package/dist/chunk-JRLFMJ6U.mjs.map +0 -1
  104. package/dist/chunk-JYRND4DC.mjs +0 -22
  105. package/dist/chunk-JYRND4DC.mjs.map +0 -1
  106. package/dist/chunk-KFEPUFID.mjs +0 -52
  107. package/dist/chunk-KFEPUFID.mjs.map +0 -1
  108. package/dist/chunk-M3UH7XZX.mjs +0 -6222
  109. package/dist/chunk-M3UH7XZX.mjs.map +0 -1
  110. package/dist/chunk-ND4RYWG7.mjs +0 -12
  111. package/dist/chunk-ND4RYWG7.mjs.map +0 -1
  112. package/dist/chunk-VLSLBZME.mjs +0 -51
  113. package/dist/chunk-VLSLBZME.mjs.map +0 -1
  114. package/dist/chunk-WJBV3P3K.mjs +0 -55
  115. package/dist/chunk-WJBV3P3K.mjs.map +0 -1
  116. package/dist/chunk-X2TQ2HDS.mjs +0 -44
  117. package/dist/chunk-X2TQ2HDS.mjs.map +0 -1
  118. package/dist/chunk-YIDZOZG3.mjs +0 -103
  119. package/dist/chunk-YIDZOZG3.mjs.map +0 -1
  120. package/dist/chunk-YLW7IP7V.mjs +0 -14525
  121. package/dist/chunk-YLW7IP7V.mjs.map +0 -1
  122. package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs +0 -38
  123. package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs.map +0 -1
  124. package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs +0 -38
  125. package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs.map +0 -1
  126. package/dist/cobol-PNTKRG5I.mjs +0 -17
  127. package/dist/cobol-PNTKRG5I.mjs.map +0 -1
  128. package/dist/crystal-BSMHK65A.mjs +0 -23
  129. package/dist/crystal-BSMHK65A.mjs.map +0 -1
  130. package/dist/dagre-6UL2VRFP-XN667C7N.mjs +0 -710
  131. package/dist/dagre-6UL2VRFP-XN667C7N.mjs.map +0 -1
  132. package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs +0 -538
  133. package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs.map +0 -1
  134. package/dist/diagram-QEK2KX5R-H3EHES33.mjs +0 -319
  135. package/dist/diagram-QEK2KX5R-H3EHES33.mjs.map +0 -1
  136. package/dist/diagram-S2PKOQOG-FOQYPB22.mjs +0 -231
  137. package/dist/diagram-S2PKOQOG-FOQYPB22.mjs.map +0 -1
  138. package/dist/edge-JOI74UJM.mjs +0 -19
  139. package/dist/edge-JOI74UJM.mjs.map +0 -1
  140. package/dist/elixir-FEL6DDPJ.mjs +0 -15
  141. package/dist/elixir-FEL6DDPJ.mjs.map +0 -1
  142. package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs +0 -1175
  143. package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs.map +0 -1
  144. package/dist/erb-Q2D6FWX3.mjs +0 -32
  145. package/dist/erb-Q2D6FWX3.mjs.map +0 -1
  146. package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs +0 -2349
  147. package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs.map +0 -1
  148. package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs +0 -2344
  149. package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs.map +0 -1
  150. package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs +0 -1221
  151. package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs.map +0 -1
  152. package/dist/glimmer-js-B32LCGFA.mjs +0 -19
  153. package/dist/glimmer-js-B32LCGFA.mjs.map +0 -1
  154. package/dist/glimmer-ts-4PHFAQCG.mjs +0 -19
  155. package/dist/glimmer-ts-4PHFAQCG.mjs.map +0 -1
  156. package/dist/hack-3ZNSL4KD.mjs +0 -17
  157. package/dist/hack-3ZNSL4KD.mjs.map +0 -1
  158. package/dist/handlebars-ICBC3AZK.mjs +0 -19
  159. package/dist/handlebars-ICBC3AZK.mjs.map +0 -1
  160. package/dist/html-BGY5P773.mjs +0 -6
  161. package/dist/html-BGY5P773.mjs.map +0 -1
  162. package/dist/html-derivative-3HGXHHFE.mjs +0 -7
  163. package/dist/html-derivative-3HGXHHFE.mjs.map +0 -1
  164. package/dist/index.css +0 -2385
  165. package/dist/index.css.map +0 -1
  166. package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs +0 -49
  167. package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs.map +0 -1
  168. package/dist/jinja-WL6HNMB5.mjs +0 -22
  169. package/dist/jinja-WL6HNMB5.mjs.map +0 -1
  170. package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs +0 -1259
  171. package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs.map +0 -1
  172. package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs +0 -1062
  173. package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs.map +0 -1
  174. package/dist/katex-4R42CMCB.mjs +0 -4
  175. package/dist/katex-4R42CMCB.mjs.map +0 -1
  176. package/dist/liquid-YS3YPW54.mjs +0 -19
  177. package/dist/liquid-YS3YPW54.mjs.map +0 -1
  178. package/dist/logo-mark-OHF64HAY.svg +0 -8
  179. package/dist/mdc-A66KLOT4.mjs +0 -20
  180. package/dist/mdc-A66KLOT4.mjs.map +0 -1
  181. package/dist/mermaid.core-4OWTNZSL.mjs +0 -1587
  182. package/dist/mermaid.core-4OWTNZSL.mjs.map +0 -1
  183. package/dist/mermaid.core-7AUE4M6E.mjs +0 -1587
  184. package/dist/mermaid.core-7AUE4M6E.mjs.map +0 -1
  185. package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs +0 -1112
  186. package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs.map +0 -1
  187. package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs +0 -1112
  188. package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs.map +0 -1
  189. package/dist/nim-HUBKBJHZ.mjs +0 -26
  190. package/dist/nim-HUBKBJHZ.mjs.map +0 -1
  191. package/dist/perl-QHAMWWQ5.mjs +0 -22
  192. package/dist/perl-QHAMWWQ5.mjs.map +0 -1
  193. package/dist/php-FS5GKSPN.mjs +0 -11
  194. package/dist/php-FS5GKSPN.mjs.map +0 -1
  195. package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs +0 -200
  196. package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs.map +0 -1
  197. package/dist/pug-WTY5FMEA.mjs +0 -17
  198. package/dist/pug-WTY5FMEA.mjs.map +0 -1
  199. package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs +0 -1344
  200. package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs.map +0 -1
  201. package/dist/razor-BAB7LFWZ.mjs +0 -17
  202. package/dist/razor-BAB7LFWZ.mjs.map +0 -1
  203. package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs +0 -1179
  204. package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs.map +0 -1
  205. package/dist/rst-AY7U27YM.mjs +0 -41
  206. package/dist/rst-AY7U27YM.mjs.map +0 -1
  207. package/dist/rst-Y2VLYMJI.mjs +0 -41
  208. package/dist/rst-Y2VLYMJI.mjs.map +0 -1
  209. package/dist/ruby-K4BNEYWG.mjs +0 -22
  210. package/dist/ruby-K4BNEYWG.mjs.map +0 -1
  211. package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs +0 -1230
  212. package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs.map +0 -1
  213. package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs +0 -3885
  214. package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs.map +0 -1
  215. package/dist/soy-5QMQV2KL.mjs +0 -15
  216. package/dist/soy-5QMQV2KL.mjs.map +0 -1
  217. package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs +0 -467
  218. package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs.map +0 -1
  219. package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs +0 -37
  220. package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs.map +0 -1
  221. package/dist/templ-VSARRSO2.mjs +0 -17
  222. package/dist/templ-VSARRSO2.mjs.map +0 -1
  223. package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs +0 -1226
  224. package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs.map +0 -1
  225. package/dist/ts-tags-YK3Q2LIW.mjs +0 -68
  226. package/dist/ts-tags-YK3Q2LIW.mjs.map +0 -1
  227. package/dist/twig-HNMWLN6H.mjs +0 -40
  228. package/dist/twig-HNMWLN6H.mjs.map +0 -1
  229. package/dist/vue-7OSX6ZY5.mjs +0 -10
  230. package/dist/vue-7OSX6ZY5.mjs.map +0 -1
  231. package/dist/vue-html-AQH2V2EU.mjs +0 -20
  232. package/dist/vue-html-AQH2V2EU.mjs.map +0 -1
  233. package/dist/vue-vine-GCYT2IGV.mjs +0 -29
  234. package/dist/vue-vine-GCYT2IGV.mjs.map +0 -1
  235. package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs +0 -1865
  236. package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs.map +0 -1
@@ -1,1112 +0,0 @@
1
- import { getDiagramElement } from './chunk-7EWC2ACY.mjs';
2
- import { setupViewPortForSVG } from './chunk-2BAFECUC.mjs';
3
- import { getRegisteredLayoutAlgorithm, render } from './chunk-BF5LDW2L.mjs';
4
- import './chunk-ENI667QL.mjs';
5
- import './chunk-KFMFHSJF.mjs';
6
- import './chunk-M3UH7XZX.mjs';
7
- import './chunk-6WA5F2SG.mjs';
8
- import './chunk-YIDZOZG3.mjs';
9
- import './chunk-BUEC2HNL.mjs';
10
- import './chunk-GU7334FJ.mjs';
11
- import './chunk-ZGPFSRJJ.mjs';
12
- import { getConfig2, defaultConfig_default, sanitizeText, getUserDefinedConfig, is_dark_default, lighten_default, darken_default } from './chunk-HNKEYT4A.mjs';
13
- import './chunk-7O6EKIFY.mjs';
14
- import { __name, log } from './chunk-WHXHCOFP.mjs';
15
- import { v4_default } from './chunk-WJBV3P3K.mjs';
16
- import './chunk-RAC6KEKF.mjs';
17
- import './chunk-SH6YXSHR.mjs';
18
-
19
- // ../../node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-VGOIOE7T.mjs
20
- var parser = function() {
21
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
22
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
23
- return o2;
24
- }, "o"), $V0 = [1, 4], $V1 = [1, 13], $V2 = [1, 12], $V3 = [1, 15], $V4 = [1, 16], $V5 = [1, 20], $V6 = [1, 19], $V7 = [6, 7, 8], $V8 = [1, 26], $V9 = [1, 24], $Va = [1, 25], $Vb = [6, 7, 11], $Vc = [1, 6, 13, 15, 16, 19, 22], $Vd = [1, 33], $Ve = [1, 34], $Vf = [1, 6, 7, 11, 13, 15, 16, 19, 22];
25
- var parser2 = {
26
- trace: /* @__PURE__ */ __name(function trace() {
27
- }, "trace"),
28
- yy: {},
29
- symbols_: { "error": 2, "start": 3, "mindMap": 4, "spaceLines": 5, "SPACELINE": 6, "NL": 7, "MINDMAP": 8, "document": 9, "stop": 10, "EOF": 11, "statement": 12, "SPACELIST": 13, "node": 14, "ICON": 15, "CLASS": 16, "nodeWithId": 17, "nodeWithoutId": 18, "NODE_DSTART": 19, "NODE_DESCR": 20, "NODE_DEND": 21, "NODE_ID": 22, "$accept": 0, "$end": 1 },
30
- terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
31
- 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, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
32
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
33
- var $0 = $$.length - 1;
34
- switch (yystate) {
35
- case 6:
36
- case 7:
37
- return yy;
38
- case 8:
39
- yy.getLogger().trace("Stop NL ");
40
- break;
41
- case 9:
42
- yy.getLogger().trace("Stop EOF ");
43
- break;
44
- case 11:
45
- yy.getLogger().trace("Stop NL2 ");
46
- break;
47
- case 12:
48
- yy.getLogger().trace("Stop EOF2 ");
49
- break;
50
- case 15:
51
- yy.getLogger().info("Node: ", $$[$0].id);
52
- yy.addNode($$[$0 - 1].length, $$[$0].id, $$[$0].descr, $$[$0].type);
53
- break;
54
- case 16:
55
- yy.getLogger().trace("Icon: ", $$[$0]);
56
- yy.decorateNode({ icon: $$[$0] });
57
- break;
58
- case 17:
59
- case 21:
60
- yy.decorateNode({ class: $$[$0] });
61
- break;
62
- case 18:
63
- yy.getLogger().trace("SPACELIST");
64
- break;
65
- case 19:
66
- yy.getLogger().trace("Node: ", $$[$0].id);
67
- yy.addNode(0, $$[$0].id, $$[$0].descr, $$[$0].type);
68
- break;
69
- case 20:
70
- yy.decorateNode({ icon: $$[$0] });
71
- break;
72
- case 25:
73
- yy.getLogger().trace("node found ..", $$[$0 - 2]);
74
- this.$ = { id: $$[$0 - 1], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
75
- break;
76
- case 26:
77
- this.$ = { id: $$[$0], descr: $$[$0], type: yy.nodeType.DEFAULT };
78
- break;
79
- case 27:
80
- yy.getLogger().trace("node found ..", $$[$0 - 3]);
81
- this.$ = { id: $$[$0 - 3], descr: $$[$0 - 1], type: yy.getType($$[$0 - 2], $$[$0]) };
82
- break;
83
- }
84
- }, "anonymous"),
85
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: $V0 }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: $V0 }, { 6: $V1, 7: [1, 10], 9: 9, 12: 11, 13: $V2, 14: 14, 15: $V3, 16: $V4, 17: 17, 18: 18, 19: $V5, 22: $V6 }, o($V7, [2, 3]), { 1: [2, 2] }, o($V7, [2, 4]), o($V7, [2, 5]), { 1: [2, 6], 6: $V1, 12: 21, 13: $V2, 14: 14, 15: $V3, 16: $V4, 17: 17, 18: 18, 19: $V5, 22: $V6 }, { 6: $V1, 9: 22, 12: 11, 13: $V2, 14: 14, 15: $V3, 16: $V4, 17: 17, 18: 18, 19: $V5, 22: $V6 }, { 6: $V8, 7: $V9, 10: 23, 11: $Va }, o($Vb, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: $V5, 22: $V6 }), o($Vb, [2, 18]), o($Vb, [2, 19]), o($Vb, [2, 20]), o($Vb, [2, 21]), o($Vb, [2, 23]), o($Vb, [2, 24]), o($Vb, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: $V8, 7: $V9, 10: 32, 11: $Va }, { 1: [2, 7], 6: $V1, 12: 21, 13: $V2, 14: 14, 15: $V3, 16: $V4, 17: 17, 18: 18, 19: $V5, 22: $V6 }, o($Vc, [2, 14], { 7: $Vd, 11: $Ve }), o($Vf, [2, 8]), o($Vf, [2, 9]), o($Vf, [2, 10]), o($Vb, [2, 15]), o($Vb, [2, 16]), o($Vb, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, o($Vc, [2, 13], { 7: $Vd, 11: $Ve }), o($Vf, [2, 11]), o($Vf, [2, 12]), { 21: [1, 37] }, o($Vb, [2, 25]), o($Vb, [2, 27])],
86
- defaultActions: { 2: [2, 1], 6: [2, 2] },
87
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
88
- if (hash.recoverable) {
89
- this.trace(str);
90
- } else {
91
- var error = new Error(str);
92
- error.hash = hash;
93
- throw error;
94
- }
95
- }, "parseError"),
96
- parse: /* @__PURE__ */ __name(function parse(input) {
97
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
98
- var args = lstack.slice.call(arguments, 1);
99
- var lexer2 = Object.create(this.lexer);
100
- var sharedState = { yy: {} };
101
- for (var k in this.yy) {
102
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
103
- sharedState.yy[k] = this.yy[k];
104
- }
105
- }
106
- lexer2.setInput(input, sharedState.yy);
107
- sharedState.yy.lexer = lexer2;
108
- sharedState.yy.parser = this;
109
- if (typeof lexer2.yylloc == "undefined") {
110
- lexer2.yylloc = {};
111
- }
112
- var yyloc = lexer2.yylloc;
113
- lstack.push(yyloc);
114
- var ranges = lexer2.options && lexer2.options.ranges;
115
- if (typeof sharedState.yy.parseError === "function") {
116
- this.parseError = sharedState.yy.parseError;
117
- } else {
118
- this.parseError = Object.getPrototypeOf(this).parseError;
119
- }
120
- function popStack(n) {
121
- stack.length = stack.length - 2 * n;
122
- vstack.length = vstack.length - n;
123
- lstack.length = lstack.length - n;
124
- }
125
- __name(popStack, "popStack");
126
- function lex() {
127
- var token;
128
- token = tstack.pop() || lexer2.lex() || EOF;
129
- if (typeof token !== "number") {
130
- if (token instanceof Array) {
131
- tstack = token;
132
- token = tstack.pop();
133
- }
134
- token = self.symbols_[token] || token;
135
- }
136
- return token;
137
- }
138
- __name(lex, "lex");
139
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
140
- while (true) {
141
- state = stack[stack.length - 1];
142
- if (this.defaultActions[state]) {
143
- action = this.defaultActions[state];
144
- } else {
145
- if (symbol === null || typeof symbol == "undefined") {
146
- symbol = lex();
147
- }
148
- action = table[state] && table[state][symbol];
149
- }
150
- if (typeof action === "undefined" || !action.length || !action[0]) {
151
- var errStr = "";
152
- expected = [];
153
- for (p in table[state]) {
154
- if (this.terminals_[p] && p > TERROR) {
155
- expected.push("'" + this.terminals_[p] + "'");
156
- }
157
- }
158
- if (lexer2.showPosition) {
159
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
160
- } else {
161
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
162
- }
163
- this.parseError(errStr, {
164
- text: lexer2.match,
165
- token: this.terminals_[symbol] || symbol,
166
- line: lexer2.yylineno,
167
- loc: yyloc,
168
- expected
169
- });
170
- }
171
- if (action[0] instanceof Array && action.length > 1) {
172
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
173
- }
174
- switch (action[0]) {
175
- case 1:
176
- stack.push(symbol);
177
- vstack.push(lexer2.yytext);
178
- lstack.push(lexer2.yylloc);
179
- stack.push(action[1]);
180
- symbol = null;
181
- {
182
- yyleng = lexer2.yyleng;
183
- yytext = lexer2.yytext;
184
- yylineno = lexer2.yylineno;
185
- yyloc = lexer2.yylloc;
186
- }
187
- break;
188
- case 2:
189
- len = this.productions_[action[1]][1];
190
- yyval.$ = vstack[vstack.length - len];
191
- yyval._$ = {
192
- first_line: lstack[lstack.length - (len || 1)].first_line,
193
- last_line: lstack[lstack.length - 1].last_line,
194
- first_column: lstack[lstack.length - (len || 1)].first_column,
195
- last_column: lstack[lstack.length - 1].last_column
196
- };
197
- if (ranges) {
198
- yyval._$.range = [
199
- lstack[lstack.length - (len || 1)].range[0],
200
- lstack[lstack.length - 1].range[1]
201
- ];
202
- }
203
- r = this.performAction.apply(yyval, [
204
- yytext,
205
- yyleng,
206
- yylineno,
207
- sharedState.yy,
208
- action[1],
209
- vstack,
210
- lstack
211
- ].concat(args));
212
- if (typeof r !== "undefined") {
213
- return r;
214
- }
215
- if (len) {
216
- stack = stack.slice(0, -1 * len * 2);
217
- vstack = vstack.slice(0, -1 * len);
218
- lstack = lstack.slice(0, -1 * len);
219
- }
220
- stack.push(this.productions_[action[1]][0]);
221
- vstack.push(yyval.$);
222
- lstack.push(yyval._$);
223
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
224
- stack.push(newState);
225
- break;
226
- case 3:
227
- return true;
228
- }
229
- }
230
- return true;
231
- }, "parse")
232
- };
233
- var lexer = /* @__PURE__ */ function() {
234
- var lexer2 = {
235
- EOF: 1,
236
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
237
- if (this.yy.parser) {
238
- this.yy.parser.parseError(str, hash);
239
- } else {
240
- throw new Error(str);
241
- }
242
- }, "parseError"),
243
- // resets the lexer, sets new input
244
- setInput: /* @__PURE__ */ __name(function(input, yy) {
245
- this.yy = yy || this.yy || {};
246
- this._input = input;
247
- this._more = this._backtrack = this.done = false;
248
- this.yylineno = this.yyleng = 0;
249
- this.yytext = this.matched = this.match = "";
250
- this.conditionStack = ["INITIAL"];
251
- this.yylloc = {
252
- first_line: 1,
253
- first_column: 0,
254
- last_line: 1,
255
- last_column: 0
256
- };
257
- if (this.options.ranges) {
258
- this.yylloc.range = [0, 0];
259
- }
260
- this.offset = 0;
261
- return this;
262
- }, "setInput"),
263
- // consumes and returns one char from the input
264
- input: /* @__PURE__ */ __name(function() {
265
- var ch = this._input[0];
266
- this.yytext += ch;
267
- this.yyleng++;
268
- this.offset++;
269
- this.match += ch;
270
- this.matched += ch;
271
- var lines = ch.match(/(?:\r\n?|\n).*/g);
272
- if (lines) {
273
- this.yylineno++;
274
- this.yylloc.last_line++;
275
- } else {
276
- this.yylloc.last_column++;
277
- }
278
- if (this.options.ranges) {
279
- this.yylloc.range[1]++;
280
- }
281
- this._input = this._input.slice(1);
282
- return ch;
283
- }, "input"),
284
- // unshifts one char (or a string) into the input
285
- unput: /* @__PURE__ */ __name(function(ch) {
286
- var len = ch.length;
287
- var lines = ch.split(/(?:\r\n?|\n)/g);
288
- this._input = ch + this._input;
289
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
290
- this.offset -= len;
291
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
292
- this.match = this.match.substr(0, this.match.length - 1);
293
- this.matched = this.matched.substr(0, this.matched.length - 1);
294
- if (lines.length - 1) {
295
- this.yylineno -= lines.length - 1;
296
- }
297
- var r = this.yylloc.range;
298
- this.yylloc = {
299
- first_line: this.yylloc.first_line,
300
- last_line: this.yylineno + 1,
301
- first_column: this.yylloc.first_column,
302
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
303
- };
304
- if (this.options.ranges) {
305
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
306
- }
307
- this.yyleng = this.yytext.length;
308
- return this;
309
- }, "unput"),
310
- // When called from action, caches matched text and appends it on next action
311
- more: /* @__PURE__ */ __name(function() {
312
- this._more = true;
313
- return this;
314
- }, "more"),
315
- // 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.
316
- reject: /* @__PURE__ */ __name(function() {
317
- if (this.options.backtrack_lexer) {
318
- this._backtrack = true;
319
- } else {
320
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
321
- text: "",
322
- token: null,
323
- line: this.yylineno
324
- });
325
- }
326
- return this;
327
- }, "reject"),
328
- // retain first n characters of the match
329
- less: /* @__PURE__ */ __name(function(n) {
330
- this.unput(this.match.slice(n));
331
- }, "less"),
332
- // displays already matched input, i.e. for error messages
333
- pastInput: /* @__PURE__ */ __name(function() {
334
- var past = this.matched.substr(0, this.matched.length - this.match.length);
335
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
336
- }, "pastInput"),
337
- // displays upcoming input, i.e. for error messages
338
- upcomingInput: /* @__PURE__ */ __name(function() {
339
- var next = this.match;
340
- if (next.length < 20) {
341
- next += this._input.substr(0, 20 - next.length);
342
- }
343
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
344
- }, "upcomingInput"),
345
- // displays the character position where the lexing error occurred, i.e. for error messages
346
- showPosition: /* @__PURE__ */ __name(function() {
347
- var pre = this.pastInput();
348
- var c = new Array(pre.length + 1).join("-");
349
- return pre + this.upcomingInput() + "\n" + c + "^";
350
- }, "showPosition"),
351
- // test the lexed token: return FALSE when not a match, otherwise return token
352
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
353
- var token, lines, backup;
354
- if (this.options.backtrack_lexer) {
355
- backup = {
356
- yylineno: this.yylineno,
357
- yylloc: {
358
- first_line: this.yylloc.first_line,
359
- last_line: this.last_line,
360
- first_column: this.yylloc.first_column,
361
- last_column: this.yylloc.last_column
362
- },
363
- yytext: this.yytext,
364
- match: this.match,
365
- matches: this.matches,
366
- matched: this.matched,
367
- yyleng: this.yyleng,
368
- offset: this.offset,
369
- _more: this._more,
370
- _input: this._input,
371
- yy: this.yy,
372
- conditionStack: this.conditionStack.slice(0),
373
- done: this.done
374
- };
375
- if (this.options.ranges) {
376
- backup.yylloc.range = this.yylloc.range.slice(0);
377
- }
378
- }
379
- lines = match[0].match(/(?:\r\n?|\n).*/g);
380
- if (lines) {
381
- this.yylineno += lines.length;
382
- }
383
- this.yylloc = {
384
- first_line: this.yylloc.last_line,
385
- last_line: this.yylineno + 1,
386
- first_column: this.yylloc.last_column,
387
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
388
- };
389
- this.yytext += match[0];
390
- this.match += match[0];
391
- this.matches = match;
392
- this.yyleng = this.yytext.length;
393
- if (this.options.ranges) {
394
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
395
- }
396
- this._more = false;
397
- this._backtrack = false;
398
- this._input = this._input.slice(match[0].length);
399
- this.matched += match[0];
400
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
401
- if (this.done && this._input) {
402
- this.done = false;
403
- }
404
- if (token) {
405
- return token;
406
- } else if (this._backtrack) {
407
- for (var k in backup) {
408
- this[k] = backup[k];
409
- }
410
- return false;
411
- }
412
- return false;
413
- }, "test_match"),
414
- // return next match in input
415
- next: /* @__PURE__ */ __name(function() {
416
- if (this.done) {
417
- return this.EOF;
418
- }
419
- if (!this._input) {
420
- this.done = true;
421
- }
422
- var token, match, tempMatch, index;
423
- if (!this._more) {
424
- this.yytext = "";
425
- this.match = "";
426
- }
427
- var rules = this._currentRules();
428
- for (var i = 0; i < rules.length; i++) {
429
- tempMatch = this._input.match(this.rules[rules[i]]);
430
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
431
- match = tempMatch;
432
- index = i;
433
- if (this.options.backtrack_lexer) {
434
- token = this.test_match(tempMatch, rules[i]);
435
- if (token !== false) {
436
- return token;
437
- } else if (this._backtrack) {
438
- match = false;
439
- continue;
440
- } else {
441
- return false;
442
- }
443
- } else if (!this.options.flex) {
444
- break;
445
- }
446
- }
447
- }
448
- if (match) {
449
- token = this.test_match(match, rules[index]);
450
- if (token !== false) {
451
- return token;
452
- }
453
- return false;
454
- }
455
- if (this._input === "") {
456
- return this.EOF;
457
- } else {
458
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
459
- text: "",
460
- token: null,
461
- line: this.yylineno
462
- });
463
- }
464
- }, "next"),
465
- // return next match that has a token
466
- lex: /* @__PURE__ */ __name(function lex() {
467
- var r = this.next();
468
- if (r) {
469
- return r;
470
- } else {
471
- return this.lex();
472
- }
473
- }, "lex"),
474
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
475
- begin: /* @__PURE__ */ __name(function begin(condition) {
476
- this.conditionStack.push(condition);
477
- }, "begin"),
478
- // pop the previously active lexer condition state off the condition stack
479
- popState: /* @__PURE__ */ __name(function popState() {
480
- var n = this.conditionStack.length - 1;
481
- if (n > 0) {
482
- return this.conditionStack.pop();
483
- } else {
484
- return this.conditionStack[0];
485
- }
486
- }, "popState"),
487
- // produce the lexer rule set which is active for the currently active lexer condition state
488
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
489
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
490
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
491
- } else {
492
- return this.conditions["INITIAL"].rules;
493
- }
494
- }, "_currentRules"),
495
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
496
- topState: /* @__PURE__ */ __name(function topState(n) {
497
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
498
- if (n >= 0) {
499
- return this.conditionStack[n];
500
- } else {
501
- return "INITIAL";
502
- }
503
- }, "topState"),
504
- // alias for begin(condition)
505
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
506
- this.begin(condition);
507
- }, "pushState"),
508
- // return the number of states currently on the stack
509
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
510
- return this.conditionStack.length;
511
- }, "stateStackSize"),
512
- options: { "case-insensitive": true },
513
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
514
- switch ($avoiding_name_collisions) {
515
- case 0:
516
- yy.getLogger().trace("Found comment", yy_.yytext);
517
- return 6;
518
- case 1:
519
- return 8;
520
- case 2:
521
- this.begin("CLASS");
522
- break;
523
- case 3:
524
- this.popState();
525
- return 16;
526
- case 4:
527
- this.popState();
528
- break;
529
- case 5:
530
- yy.getLogger().trace("Begin icon");
531
- this.begin("ICON");
532
- break;
533
- case 6:
534
- yy.getLogger().trace("SPACELINE");
535
- return 6;
536
- case 7:
537
- return 7;
538
- case 8:
539
- return 15;
540
- case 9:
541
- yy.getLogger().trace("end icon");
542
- this.popState();
543
- break;
544
- case 10:
545
- yy.getLogger().trace("Exploding node");
546
- this.begin("NODE");
547
- return 19;
548
- case 11:
549
- yy.getLogger().trace("Cloud");
550
- this.begin("NODE");
551
- return 19;
552
- case 12:
553
- yy.getLogger().trace("Explosion Bang");
554
- this.begin("NODE");
555
- return 19;
556
- case 13:
557
- yy.getLogger().trace("Cloud Bang");
558
- this.begin("NODE");
559
- return 19;
560
- case 14:
561
- this.begin("NODE");
562
- return 19;
563
- case 15:
564
- this.begin("NODE");
565
- return 19;
566
- case 16:
567
- this.begin("NODE");
568
- return 19;
569
- case 17:
570
- this.begin("NODE");
571
- return 19;
572
- case 18:
573
- return 13;
574
- case 19:
575
- return 22;
576
- case 20:
577
- return 11;
578
- case 21:
579
- this.begin("NSTR2");
580
- break;
581
- case 22:
582
- return "NODE_DESCR";
583
- case 23:
584
- this.popState();
585
- break;
586
- case 24:
587
- yy.getLogger().trace("Starting NSTR");
588
- this.begin("NSTR");
589
- break;
590
- case 25:
591
- yy.getLogger().trace("description:", yy_.yytext);
592
- return "NODE_DESCR";
593
- case 26:
594
- this.popState();
595
- break;
596
- case 27:
597
- this.popState();
598
- yy.getLogger().trace("node end ))");
599
- return "NODE_DEND";
600
- case 28:
601
- this.popState();
602
- yy.getLogger().trace("node end )");
603
- return "NODE_DEND";
604
- case 29:
605
- this.popState();
606
- yy.getLogger().trace("node end ...", yy_.yytext);
607
- return "NODE_DEND";
608
- case 30:
609
- this.popState();
610
- yy.getLogger().trace("node end ((");
611
- return "NODE_DEND";
612
- case 31:
613
- this.popState();
614
- yy.getLogger().trace("node end (-");
615
- return "NODE_DEND";
616
- case 32:
617
- this.popState();
618
- yy.getLogger().trace("node end (-");
619
- return "NODE_DEND";
620
- case 33:
621
- this.popState();
622
- yy.getLogger().trace("node end ((");
623
- return "NODE_DEND";
624
- case 34:
625
- this.popState();
626
- yy.getLogger().trace("node end ((");
627
- return "NODE_DEND";
628
- case 35:
629
- yy.getLogger().trace("Long description:", yy_.yytext);
630
- return 20;
631
- case 36:
632
- yy.getLogger().trace("Long description:", yy_.yytext);
633
- return 20;
634
- }
635
- }, "anonymous"),
636
- rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\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],
637
- conditions: { "CLASS": { "rules": [3, 4], "inclusive": false }, "ICON": { "rules": [8, 9], "inclusive": false }, "NSTR2": { "rules": [22, 23], "inclusive": false }, "NSTR": { "rules": [25, 26], "inclusive": false }, "NODE": { "rules": [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "inclusive": true } }
638
- };
639
- return lexer2;
640
- }();
641
- parser2.lexer = lexer;
642
- function Parser() {
643
- this.yy = {};
644
- }
645
- __name(Parser, "Parser");
646
- Parser.prototype = parser2;
647
- parser2.Parser = Parser;
648
- return new Parser();
649
- }();
650
- parser.parser = parser;
651
- var mindmap_default = parser;
652
- var nodeType = {
653
- DEFAULT: 0,
654
- NO_BORDER: 0,
655
- ROUNDED_RECT: 1,
656
- RECT: 2,
657
- CIRCLE: 3,
658
- CLOUD: 4,
659
- BANG: 5,
660
- HEXAGON: 6
661
- };
662
- var MindmapDB = class {
663
- constructor() {
664
- this.nodes = [];
665
- this.count = 0;
666
- this.elements = {};
667
- this.getLogger = this.getLogger.bind(this);
668
- this.nodeType = nodeType;
669
- this.clear();
670
- this.getType = this.getType.bind(this);
671
- this.getElementById = this.getElementById.bind(this);
672
- this.getParent = this.getParent.bind(this);
673
- this.getMindmap = this.getMindmap.bind(this);
674
- this.addNode = this.addNode.bind(this);
675
- this.decorateNode = this.decorateNode.bind(this);
676
- }
677
- static {
678
- __name(this, "MindmapDB");
679
- }
680
- clear() {
681
- this.nodes = [];
682
- this.count = 0;
683
- this.elements = {};
684
- this.baseLevel = void 0;
685
- }
686
- getParent(level) {
687
- for (let i = this.nodes.length - 1; i >= 0; i--) {
688
- if (this.nodes[i].level < level) {
689
- return this.nodes[i];
690
- }
691
- }
692
- return null;
693
- }
694
- getMindmap() {
695
- return this.nodes.length > 0 ? this.nodes[0] : null;
696
- }
697
- addNode(level, id, descr, type) {
698
- log.info("addNode", level, id, descr, type);
699
- let isRoot = false;
700
- if (this.nodes.length === 0) {
701
- this.baseLevel = level;
702
- level = 0;
703
- isRoot = true;
704
- } else if (this.baseLevel !== void 0) {
705
- level = level - this.baseLevel;
706
- isRoot = false;
707
- }
708
- const conf = getConfig2();
709
- let padding = conf.mindmap?.padding ?? defaultConfig_default.mindmap.padding;
710
- switch (type) {
711
- case this.nodeType.ROUNDED_RECT:
712
- case this.nodeType.RECT:
713
- case this.nodeType.HEXAGON:
714
- padding *= 2;
715
- break;
716
- }
717
- const node = {
718
- id: this.count++,
719
- nodeId: sanitizeText(id, conf),
720
- level,
721
- descr: sanitizeText(descr, conf),
722
- type,
723
- children: [],
724
- width: conf.mindmap?.maxNodeWidth ?? defaultConfig_default.mindmap.maxNodeWidth,
725
- padding,
726
- isRoot
727
- };
728
- const parent = this.getParent(level);
729
- if (parent) {
730
- parent.children.push(node);
731
- this.nodes.push(node);
732
- } else {
733
- if (isRoot) {
734
- this.nodes.push(node);
735
- } else {
736
- throw new Error(
737
- `There can be only one root. No parent could be found for ("${node.descr}")`
738
- );
739
- }
740
- }
741
- }
742
- getType(startStr, endStr) {
743
- log.debug("In get type", startStr, endStr);
744
- switch (startStr) {
745
- case "[":
746
- return this.nodeType.RECT;
747
- case "(":
748
- return endStr === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
749
- case "((":
750
- return this.nodeType.CIRCLE;
751
- case ")":
752
- return this.nodeType.CLOUD;
753
- case "))":
754
- return this.nodeType.BANG;
755
- case "{{":
756
- return this.nodeType.HEXAGON;
757
- default:
758
- return this.nodeType.DEFAULT;
759
- }
760
- }
761
- setElementForId(id, element) {
762
- this.elements[id] = element;
763
- }
764
- getElementById(id) {
765
- return this.elements[id];
766
- }
767
- decorateNode(decoration) {
768
- if (!decoration) {
769
- return;
770
- }
771
- const config = getConfig2();
772
- const node = this.nodes[this.nodes.length - 1];
773
- if (decoration.icon) {
774
- node.icon = sanitizeText(decoration.icon, config);
775
- }
776
- if (decoration.class) {
777
- node.class = sanitizeText(decoration.class, config);
778
- }
779
- }
780
- type2Str(type) {
781
- switch (type) {
782
- case this.nodeType.DEFAULT:
783
- return "no-border";
784
- case this.nodeType.RECT:
785
- return "rect";
786
- case this.nodeType.ROUNDED_RECT:
787
- return "rounded-rect";
788
- case this.nodeType.CIRCLE:
789
- return "circle";
790
- case this.nodeType.CLOUD:
791
- return "cloud";
792
- case this.nodeType.BANG:
793
- return "bang";
794
- case this.nodeType.HEXAGON:
795
- return "hexgon";
796
- // cspell: disable-line
797
- default:
798
- return "no-border";
799
- }
800
- }
801
- /**
802
- * Assign section numbers to nodes based on their position relative to root
803
- * @param node - The mindmap node to process
804
- * @param sectionNumber - The section number to assign (undefined for root)
805
- */
806
- assignSections(node, sectionNumber) {
807
- if (node.level === 0) {
808
- node.section = void 0;
809
- } else {
810
- node.section = sectionNumber;
811
- }
812
- if (node.children) {
813
- for (const [index, child] of node.children.entries()) {
814
- const childSectionNumber = node.level === 0 ? index : sectionNumber;
815
- this.assignSections(child, childSectionNumber);
816
- }
817
- }
818
- }
819
- /**
820
- * Convert mindmap tree structure to flat array of nodes
821
- * @param node - The mindmap node to process
822
- * @param processedNodes - Array to collect processed nodes
823
- */
824
- flattenNodes(node, processedNodes) {
825
- const cssClasses = ["mindmap-node"];
826
- if (node.isRoot === true) {
827
- cssClasses.push("section-root", "section--1");
828
- } else if (node.section !== void 0) {
829
- cssClasses.push(`section-${node.section}`);
830
- }
831
- if (node.class) {
832
- cssClasses.push(node.class);
833
- }
834
- const classes = cssClasses.join(" ");
835
- const getShapeFromType = /* @__PURE__ */ __name((type) => {
836
- switch (type) {
837
- case nodeType.CIRCLE:
838
- return "mindmapCircle";
839
- case nodeType.RECT:
840
- return "rect";
841
- case nodeType.ROUNDED_RECT:
842
- return "rounded";
843
- case nodeType.CLOUD:
844
- return "cloud";
845
- case nodeType.BANG:
846
- return "bang";
847
- case nodeType.HEXAGON:
848
- return "hexagon";
849
- case nodeType.DEFAULT:
850
- return "defaultMindmapNode";
851
- case nodeType.NO_BORDER:
852
- default:
853
- return "rect";
854
- }
855
- }, "getShapeFromType");
856
- const processedNode = {
857
- id: node.id.toString(),
858
- domId: "node_" + node.id.toString(),
859
- label: node.descr,
860
- isGroup: false,
861
- shape: getShapeFromType(node.type),
862
- width: node.width,
863
- height: node.height ?? 0,
864
- padding: node.padding,
865
- cssClasses: classes,
866
- cssStyles: [],
867
- look: "default",
868
- icon: node.icon,
869
- x: node.x,
870
- y: node.y,
871
- // Mindmap-specific properties
872
- level: node.level,
873
- nodeId: node.nodeId,
874
- type: node.type,
875
- section: node.section
876
- };
877
- processedNodes.push(processedNode);
878
- if (node.children) {
879
- for (const child of node.children) {
880
- this.flattenNodes(child, processedNodes);
881
- }
882
- }
883
- }
884
- /**
885
- * Generate edges from parent-child relationships in mindmap tree
886
- * @param node - The mindmap node to process
887
- * @param edges - Array to collect edges
888
- */
889
- generateEdges(node, edges) {
890
- if (!node.children) {
891
- return;
892
- }
893
- for (const child of node.children) {
894
- let edgeClasses = "edge";
895
- if (child.section !== void 0) {
896
- edgeClasses += ` section-edge-${child.section}`;
897
- }
898
- const edgeDepth = node.level + 1;
899
- edgeClasses += ` edge-depth-${edgeDepth}`;
900
- const edge = {
901
- id: `edge_${node.id}_${child.id}`,
902
- start: node.id.toString(),
903
- end: child.id.toString(),
904
- type: "normal",
905
- curve: "basis",
906
- thickness: "normal",
907
- look: "default",
908
- classes: edgeClasses,
909
- // Store mindmap-specific data
910
- depth: node.level,
911
- section: child.section
912
- };
913
- edges.push(edge);
914
- this.generateEdges(child, edges);
915
- }
916
- }
917
- /**
918
- * Get structured data for layout algorithms
919
- * Following the pattern established by ER diagrams
920
- * @returns Structured data containing nodes, edges, and config
921
- */
922
- getData() {
923
- const mindmapRoot = this.getMindmap();
924
- const config = getConfig2();
925
- const userDefinedConfig = getUserDefinedConfig();
926
- const hasUserDefinedLayout = userDefinedConfig.layout !== void 0;
927
- const finalConfig = config;
928
- if (!hasUserDefinedLayout) {
929
- finalConfig.layout = "cose-bilkent";
930
- }
931
- if (!mindmapRoot) {
932
- return {
933
- nodes: [],
934
- edges: [],
935
- config: finalConfig
936
- };
937
- }
938
- log.debug("getData: mindmapRoot", mindmapRoot, config);
939
- this.assignSections(mindmapRoot);
940
- const processedNodes = [];
941
- const processedEdges = [];
942
- this.flattenNodes(mindmapRoot, processedNodes);
943
- this.generateEdges(mindmapRoot, processedEdges);
944
- log.debug(
945
- `getData: processed ${processedNodes.length} nodes and ${processedEdges.length} edges`
946
- );
947
- const shapes = /* @__PURE__ */ new Map();
948
- for (const node of processedNodes) {
949
- shapes.set(node.id, {
950
- shape: node.shape,
951
- width: node.width,
952
- height: node.height,
953
- padding: node.padding
954
- });
955
- }
956
- return {
957
- nodes: processedNodes,
958
- edges: processedEdges,
959
- config: finalConfig,
960
- // Store the root node for mindmap-specific layout algorithms
961
- rootNode: mindmapRoot,
962
- // Properties required by dagre layout algorithm
963
- markers: ["point"],
964
- // Mindmaps don't use markers
965
- direction: "TB",
966
- // Top-to-bottom direction for mindmaps
967
- nodeSpacing: 50,
968
- // Default spacing between nodes
969
- rankSpacing: 50,
970
- // Default spacing between ranks
971
- // Add shapes for ELK compatibility
972
- shapes: Object.fromEntries(shapes),
973
- // Additional properties that layout algorithms might expect
974
- type: "mindmap",
975
- diagramId: "mindmap-" + v4_default()
976
- };
977
- }
978
- // Expose logger to grammar
979
- getLogger() {
980
- return log;
981
- }
982
- };
983
- var draw = /* @__PURE__ */ __name(async (text, id, _version, diagObj) => {
984
- log.debug("Rendering mindmap diagram\n" + text);
985
- const db = diagObj.db;
986
- const data4Layout = db.getData();
987
- const svg = getDiagramElement(id, data4Layout.config.securityLevel);
988
- data4Layout.type = diagObj.type;
989
- data4Layout.layoutAlgorithm = getRegisteredLayoutAlgorithm(data4Layout.config.layout, {
990
- fallback: "cose-bilkent"
991
- });
992
- data4Layout.diagramId = id;
993
- const mm = db.getMindmap();
994
- if (!mm) {
995
- return;
996
- }
997
- data4Layout.nodes.forEach((node) => {
998
- if (node.shape === "rounded") {
999
- node.radius = 15;
1000
- node.taper = 15;
1001
- node.stroke = "none";
1002
- node.width = 0;
1003
- node.padding = 15;
1004
- } else if (node.shape === "circle") {
1005
- node.padding = 10;
1006
- } else if (node.shape === "rect") {
1007
- node.width = 0;
1008
- node.padding = 10;
1009
- }
1010
- });
1011
- await render(data4Layout, svg);
1012
- setupViewPortForSVG(
1013
- svg,
1014
- data4Layout.config.mindmap?.padding ?? defaultConfig_default.mindmap.padding,
1015
- "mindmapDiagram",
1016
- data4Layout.config.mindmap?.useMaxWidth ?? defaultConfig_default.mindmap.useMaxWidth
1017
- );
1018
- }, "draw");
1019
- var mindmapRenderer_default = {
1020
- draw
1021
- };
1022
- var genSections = /* @__PURE__ */ __name((options) => {
1023
- let sections = "";
1024
- for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1025
- options["lineColor" + i] = options["lineColor" + i] || options["cScaleInv" + i];
1026
- if (is_dark_default(options["lineColor" + i])) {
1027
- options["lineColor" + i] = lighten_default(options["lineColor" + i], 20);
1028
- } else {
1029
- options["lineColor" + i] = darken_default(options["lineColor" + i], 20);
1030
- }
1031
- }
1032
- for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1033
- const sw = "" + (17 - 3 * i);
1034
- sections += `
1035
- .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
1036
- fill: ${options["cScale" + i]};
1037
- }
1038
- .section-${i - 1} text {
1039
- fill: ${options["cScaleLabel" + i]};
1040
- }
1041
- .node-icon-${i - 1} {
1042
- font-size: 40px;
1043
- color: ${options["cScaleLabel" + i]};
1044
- }
1045
- .section-edge-${i - 1}{
1046
- stroke: ${options["cScale" + i]};
1047
- }
1048
- .edge-depth-${i - 1}{
1049
- stroke-width: ${sw};
1050
- }
1051
- .section-${i - 1} line {
1052
- stroke: ${options["cScaleInv" + i]} ;
1053
- stroke-width: 3;
1054
- }
1055
-
1056
- .disabled, .disabled circle, .disabled text {
1057
- fill: lightgray;
1058
- }
1059
- .disabled text {
1060
- fill: #efefef;
1061
- }
1062
- `;
1063
- }
1064
- return sections;
1065
- }, "genSections");
1066
- var getStyles = /* @__PURE__ */ __name((options) => `
1067
- .edge {
1068
- stroke-width: 3;
1069
- }
1070
- ${genSections(options)}
1071
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
1072
- fill: ${options.git0};
1073
- }
1074
- .section-root text {
1075
- fill: ${options.gitBranchLabel0};
1076
- }
1077
- .section-root span {
1078
- color: ${options.gitBranchLabel0};
1079
- }
1080
- .section-2 span {
1081
- color: ${options.gitBranchLabel0};
1082
- }
1083
- .icon-container {
1084
- height:100%;
1085
- display: flex;
1086
- justify-content: center;
1087
- align-items: center;
1088
- }
1089
- .edge {
1090
- fill: none;
1091
- }
1092
- .mindmap-node-label {
1093
- dy: 1em;
1094
- alignment-baseline: middle;
1095
- text-anchor: middle;
1096
- dominant-baseline: middle;
1097
- text-align: center;
1098
- }
1099
- `, "getStyles");
1100
- var styles_default = getStyles;
1101
- var diagram = {
1102
- get db() {
1103
- return new MindmapDB();
1104
- },
1105
- renderer: mindmapRenderer_default,
1106
- parser: mindmap_default,
1107
- styles: styles_default
1108
- };
1109
-
1110
- export { diagram };
1111
- //# sourceMappingURL=mindmap-definition-VGOIOE7T-7FMA2CPY.mjs.map
1112
- //# sourceMappingURL=mindmap-definition-VGOIOE7T-7FMA2CPY.mjs.map