@brainfish-ai/components 0.14.3 → 0.15.0-beta.2

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 (254) hide show
  1. package/dist/accordion.d.ts +12 -0
  2. package/dist/badge.d.ts +14 -0
  3. package/dist/button.d.ts +16 -0
  4. package/dist/calendar.d.ts +12 -0
  5. package/dist/card.d.ts +17 -0
  6. package/dist/chat-search.d.ts +424 -0
  7. package/dist/collapsible.d.ts +10 -0
  8. package/dist/{colors/index.d.ts → colors.d.ts} +133 -128
  9. package/dist/{components/combobox/combobox.d.ts → combobox.d.ts} +23 -18
  10. package/dist/command.d.ts +90 -0
  11. package/dist/data-table.d.ts +23 -0
  12. package/dist/{components/date-picker/date-picker.d.ts → date-picker.d.ts} +12 -9
  13. package/dist/dialog.d.ts +30 -0
  14. package/dist/div-button.d.ts +16 -0
  15. package/dist/dropdown-menu.d.ts +43 -0
  16. package/dist/esm/chunks/{ChatSearch.B-0s3a8W.js → ChatSearch.nXLnU6TL.js} +3 -2
  17. package/dist/esm/chunks/{ChatSearch.B-0s3a8W.js.map → ChatSearch.nXLnU6TL.js.map} +1 -1
  18. package/dist/esm/chunks/{FormattedMessage.C7CKFL5X.js → FormattedMessage.aTY_CSO9.js} +3 -8
  19. package/dist/esm/chunks/{FormattedMessage.C7CKFL5X.js.map → FormattedMessage.aTY_CSO9.js.map} +1 -1
  20. package/dist/esm/chunks/_basePickBy-BRd8bulh.CJo2nTY3.js +140 -0
  21. package/dist/esm/chunks/_basePickBy-BRd8bulh.CJo2nTY3.js.map +1 -0
  22. package/dist/esm/chunks/_baseUniq-CjJl2kgN.Coox5d3f.js +585 -0
  23. package/dist/esm/chunks/_baseUniq-CjJl2kgN.Coox5d3f.js.map +1 -0
  24. package/dist/esm/chunks/_commonjsHelpers.BFTU3MAI.js +8 -0
  25. package/dist/esm/chunks/_commonjsHelpers.BFTU3MAI.js.map +1 -0
  26. package/dist/esm/chunks/arc-BwUz6pB-.BEFkq5SA.js +84 -0
  27. package/dist/esm/chunks/arc-BwUz6pB-.BEFkq5SA.js.map +1 -0
  28. package/dist/esm/chunks/architectureDiagram-W76B3OCA-Cb5kazGQ.BtGETpeA.js +4662 -0
  29. package/dist/esm/chunks/architectureDiagram-W76B3OCA-Cb5kazGQ.BtGETpeA.js.map +1 -0
  30. package/dist/esm/chunks/blockDiagram-QIGZ2CNN-DDf1fn8j.CCoobE9Y.js +2262 -0
  31. package/dist/esm/chunks/blockDiagram-QIGZ2CNN-DDf1fn8j.CCoobE9Y.js.map +1 -0
  32. package/dist/esm/chunks/c4Diagram-FPNF74CW-Bums6QOx.Bp4GpFeC.js +1581 -0
  33. package/dist/esm/chunks/c4Diagram-FPNF74CW-Bums6QOx.Bp4GpFeC.js.map +1 -0
  34. package/dist/esm/chunks/channel-0GCo3iLB.DkWKEYA2.js +6 -0
  35. package/dist/esm/chunks/channel-0GCo3iLB.DkWKEYA2.js.map +1 -0
  36. package/dist/esm/chunks/chunk-4BX2VUAB-BNEZvE0o.DZkUXXWG.js +9 -0
  37. package/dist/esm/chunks/chunk-4BX2VUAB-BNEZvE0o.DZkUXXWG.js.map +1 -0
  38. package/dist/esm/chunks/chunk-55IACEB6-DKe9mqg4.CwngSLd6.js +9 -0
  39. package/dist/esm/chunks/chunk-55IACEB6-DKe9mqg4.CwngSLd6.js.map +1 -0
  40. package/dist/esm/chunks/chunk-FMBD7UC4-crQF-lvP.CAUMMQ5Y.js +20 -0
  41. package/dist/esm/chunks/chunk-FMBD7UC4-crQF-lvP.CAUMMQ5Y.js.map +1 -0
  42. package/dist/esm/chunks/chunk-K7UQS3LO-Cfwyr-vZ.DBKZS2RD.js +1373 -0
  43. package/dist/esm/chunks/chunk-K7UQS3LO-Cfwyr-vZ.DBKZS2RD.js.map +1 -0
  44. package/dist/esm/chunks/chunk-QN33PNHL-DspJEonH.9cW8xBYx.js +20 -0
  45. package/dist/esm/chunks/chunk-QN33PNHL-DspJEonH.9cW8xBYx.js.map +1 -0
  46. package/dist/esm/chunks/chunk-QZHKN3VN-BCAuXuhM.DFJGZIhB.js +16 -0
  47. package/dist/esm/chunks/chunk-QZHKN3VN-BCAuXuhM.DFJGZIhB.js.map +1 -0
  48. package/dist/esm/chunks/chunk-TVAH2DTR-UAGFGTWa.Duu0opam.js +1368 -0
  49. package/dist/esm/chunks/chunk-TVAH2DTR-UAGFGTWa.Duu0opam.js.map +1 -0
  50. package/dist/esm/chunks/chunk-TZMSLE5B-BuOZ_3Ji.D3md5R5b.js +59 -0
  51. package/dist/esm/chunks/chunk-TZMSLE5B-BuOZ_3Ji.D3md5R5b.js.map +1 -0
  52. package/dist/esm/chunks/classDiagram-KNZD7YFC-DX7nurcU.CeYHxp1x.js +17 -0
  53. package/dist/esm/chunks/classDiagram-KNZD7YFC-DX7nurcU.CeYHxp1x.js.map +1 -0
  54. package/dist/esm/chunks/classDiagram-v2-RKCZMP56-DX7nurcU.CeYHxp1x.js +17 -0
  55. package/dist/esm/chunks/classDiagram-v2-RKCZMP56-DX7nurcU.CeYHxp1x.js.map +1 -0
  56. package/dist/esm/chunks/clone-Bqjztgu2.i3gik0hn.js +9 -0
  57. package/dist/esm/chunks/clone-Bqjztgu2.i3gik0hn.js.map +1 -0
  58. package/dist/esm/chunks/cose-bilkent-S5V4N54A-BQHziyWw.Bql3119H.js +2610 -0
  59. package/dist/esm/chunks/cose-bilkent-S5V4N54A-BQHziyWw.Bql3119H.js.map +1 -0
  60. package/dist/esm/chunks/cytoscape.esm-qgs_QMrm.Cg6eOcD7.js +18633 -0
  61. package/dist/esm/chunks/cytoscape.esm-qgs_QMrm.Cg6eOcD7.js.map +1 -0
  62. package/dist/esm/chunks/dagre-5GWH7T2D-lsJD5N-w.FmfNeHXQ.js +445 -0
  63. package/dist/esm/chunks/dagre-5GWH7T2D-lsJD5N-w.FmfNeHXQ.js.map +1 -0
  64. package/dist/esm/chunks/defaultLocale-D7EN2tov.B8F577Sx.js +168 -0
  65. package/dist/esm/chunks/defaultLocale-D7EN2tov.B8F577Sx.js.map +1 -0
  66. package/dist/esm/chunks/diagram-N5W7TBWH-BRbQQdVg.MarLWjpK.js +533 -0
  67. package/dist/esm/chunks/diagram-N5W7TBWH-BRbQQdVg.MarLWjpK.js.map +1 -0
  68. package/dist/esm/chunks/diagram-QEK2KX5R-8l9h9zsj.Dus9Ye1H.js +218 -0
  69. package/dist/esm/chunks/diagram-QEK2KX5R-8l9h9zsj.Dus9Ye1H.js.map +1 -0
  70. package/dist/esm/chunks/diagram-S2PKOQOG-Cqv8fzC4.B0kJl0OK.js +143 -0
  71. package/dist/esm/chunks/diagram-S2PKOQOG-Cqv8fzC4.B0kJl0OK.js.map +1 -0
  72. package/dist/esm/chunks/erDiagram-AWTI2OKA-CuacxCQc.CHBmILU-.js +842 -0
  73. package/dist/esm/chunks/erDiagram-AWTI2OKA-CuacxCQc.CHBmILU-.js.map +1 -0
  74. package/dist/esm/chunks/flowDiagram-PVAE7QVJ-CYALWpXg.bG33ZRPz.js +1621 -0
  75. package/dist/esm/chunks/flowDiagram-PVAE7QVJ-CYALWpXg.bG33ZRPz.js.map +1 -0
  76. package/dist/esm/chunks/ganttDiagram-OWAHRB6G-DasKdnJE.Duv1Se9A.js +2506 -0
  77. package/dist/esm/chunks/ganttDiagram-OWAHRB6G-DasKdnJE.Duv1Se9A.js.map +1 -0
  78. package/dist/esm/chunks/gitGraphDiagram-NY62KEGX-CBXt0yuv.ByYeaqHb.js +700 -0
  79. package/dist/esm/chunks/gitGraphDiagram-NY62KEGX-CBXt0yuv.ByYeaqHb.js.map +1 -0
  80. package/dist/esm/chunks/graph-DuS579Mj.ylKAqoQH.js +248 -0
  81. package/dist/esm/chunks/graph-DuS579Mj.ylKAqoQH.js.map +1 -0
  82. package/dist/esm/chunks/infoDiagram-STP46IZ2-D6dOD0xH.DxUx0FR7.js +25 -0
  83. package/dist/esm/chunks/infoDiagram-STP46IZ2-D6dOD0xH.DxUx0FR7.js.map +1 -0
  84. package/dist/esm/chunks/init-DjUOC4st.BOEiyheD.js +16 -0
  85. package/dist/esm/chunks/init-DjUOC4st.BOEiyheD.js.map +1 -0
  86. package/dist/esm/chunks/journeyDiagram-BIP6EPQ6-BVvhjpLT.D-7DCKtW.js +837 -0
  87. package/dist/esm/chunks/journeyDiagram-BIP6EPQ6-BVvhjpLT.D-7DCKtW.js.map +1 -0
  88. package/dist/esm/chunks/kanban-definition-6OIFK2YF-DXUNU6e4.Ca8s4J2K.js +720 -0
  89. package/dist/esm/chunks/kanban-definition-6OIFK2YF-DXUNU6e4.Ca8s4J2K.js.map +1 -0
  90. package/dist/esm/chunks/katex-CUSbq6rG.R-nwQ7Gi.js +11679 -0
  91. package/dist/esm/chunks/katex-CUSbq6rG.R-nwQ7Gi.js.map +1 -0
  92. package/dist/esm/chunks/layout-C51Wxzwk.DwotWkHu.js +1322 -0
  93. package/dist/esm/chunks/layout-C51Wxzwk.DwotWkHu.js.map +1 -0
  94. package/dist/esm/chunks/linear-CHlV0TT4.CVLzTX1J.js +256 -0
  95. package/dist/esm/chunks/linear-CHlV0TT4.CVLzTX1J.js.map +1 -0
  96. package/dist/esm/chunks/markdownTranslator-D7_8pMsF.Dr_Xn3jp.js +15968 -0
  97. package/dist/esm/chunks/markdownTranslator-D7_8pMsF.Dr_Xn3jp.js.map +1 -0
  98. package/dist/esm/chunks/mermaid.core-C5kBD6J-.DWaMLOFR.js +15491 -0
  99. package/dist/esm/chunks/mermaid.core-C5kBD6J-.DWaMLOFR.js.map +1 -0
  100. package/dist/esm/chunks/mindmap-definition-Q6HEUPPD-HFrYx80F.DHrmSkZz.js +782 -0
  101. package/dist/esm/chunks/mindmap-definition-Q6HEUPPD-HFrYx80F.DHrmSkZz.js.map +1 -0
  102. package/dist/esm/chunks/ordinal-DfAQgscy.J1PPD2vL.js +62 -0
  103. package/dist/esm/chunks/ordinal-DfAQgscy.J1PPD2vL.js.map +1 -0
  104. package/dist/esm/chunks/paragraph-node-BSy13yey.TZXlrZs5.js +61326 -0
  105. package/dist/esm/chunks/paragraph-node-BSy13yey.TZXlrZs5.js.map +1 -0
  106. package/dist/esm/chunks/pieDiagram-ADFJNKIX-CsslphWO.Bhy7UJBa.js +162 -0
  107. package/dist/esm/chunks/pieDiagram-ADFJNKIX-CsslphWO.Bhy7UJBa.js.map +1 -0
  108. package/dist/esm/chunks/quadrantDiagram-LMRXKWRM-5QFmGeOP.DH4VMI8G.js +1023 -0
  109. package/dist/esm/chunks/quadrantDiagram-LMRXKWRM-5QFmGeOP.DH4VMI8G.js.map +1 -0
  110. package/dist/esm/chunks/requirementDiagram-4UW4RH46-C22keu8n.Dl9p_fj1.js +851 -0
  111. package/dist/esm/chunks/requirementDiagram-4UW4RH46-C22keu8n.Dl9p_fj1.js.map +1 -0
  112. package/dist/esm/chunks/sankeyDiagram-GR3RE2ED-BpqD9_-e.CZ7aYWpk.js +811 -0
  113. package/dist/esm/chunks/sankeyDiagram-GR3RE2ED-BpqD9_-e.CZ7aYWpk.js.map +1 -0
  114. package/dist/esm/chunks/sequenceDiagram-C3RYC4MD-oePYpAJV.iWUH4Gc_.js +2512 -0
  115. package/dist/esm/chunks/sequenceDiagram-C3RYC4MD-oePYpAJV.iWUH4Gc_.js.map +1 -0
  116. package/dist/esm/chunks/simple-editor.4t9_jWHr.js +9638 -0
  117. package/dist/esm/chunks/simple-editor.4t9_jWHr.js.map +1 -0
  118. package/dist/esm/chunks/simple-viewer-CSreIQA-.BiYLb78z.js +5543 -0
  119. package/dist/esm/chunks/simple-viewer-CSreIQA-.BiYLb78z.js.map +1 -0
  120. package/dist/esm/chunks/stateDiagram-KXAO66HF-D4aLegBB.DKPMP3Wi.js +264 -0
  121. package/dist/esm/chunks/stateDiagram-KXAO66HF-D4aLegBB.DKPMP3Wi.js.map +1 -0
  122. package/dist/esm/chunks/stateDiagram-v2-UMBNRL4Z-EsHlUtVh.C3D4-xRU.js +17 -0
  123. package/dist/esm/chunks/stateDiagram-v2-UMBNRL4Z-EsHlUtVh.C3D4-xRU.js.map +1 -0
  124. package/dist/esm/chunks/timeline-definition-XQNQX7LJ-6YQdnQ9U.BUMTaaiU.js +798 -0
  125. package/dist/esm/chunks/timeline-definition-XQNQX7LJ-6YQdnQ9U.BUMTaaiU.js.map +1 -0
  126. package/dist/esm/chunks/treemap-75Q7IDZK-vsWUWgT4.CBsIWpKZ.js +12982 -0
  127. package/dist/esm/chunks/treemap-75Q7IDZK-vsWUWgT4.CBsIWpKZ.js.map +1 -0
  128. package/dist/esm/chunks/xychartDiagram-6GGTOJPD-M8ajOOsE.C_K1SxzD.js +1341 -0
  129. package/dist/esm/chunks/xychartDiagram-6GGTOJPD-M8ajOOsE.C_K1SxzD.js.map +1 -0
  130. package/dist/esm/components/chat-search.js +1 -1
  131. package/dist/esm/components/markdown-editor-viewer.js +2 -0
  132. package/dist/esm/components/markdown-editor-viewer.js.map +1 -0
  133. package/dist/esm/components/markdown.js +1 -1
  134. package/dist/esm/index.css +1 -1
  135. package/dist/esm/index.js +3 -2
  136. package/dist/esm/index.js.map +1 -1
  137. package/dist/{components/feedback/feedback.d.ts → feedback.d.ts} +21 -17
  138. package/dist/file-upload.d.ts +45 -0
  139. package/dist/{components/filter/types.d.ts → filter.d.ts} +82 -59
  140. package/dist/generating-star.d.ts +10 -0
  141. package/dist/icon.d.ts +26 -0
  142. package/dist/index.d.ts +1231 -28
  143. package/dist/input.d.ts +11 -0
  144. package/dist/label.d.ts +8 -0
  145. package/dist/markdown-editor-viewer.d.ts +140 -0
  146. package/dist/markdown.d.ts +55 -0
  147. package/dist/popover.d.ts +12 -0
  148. package/dist/progress.d.ts +8 -0
  149. package/dist/scroll-area.d.ts +8 -0
  150. package/dist/{components/select/simpleSelect.d.ts → select.d.ts} +20 -15
  151. package/dist/stats.html +1 -1
  152. package/dist/switch.d.ts +6 -0
  153. package/dist/table.d.ts +19 -0
  154. package/dist/textarea.d.ts +5 -0
  155. package/dist/tooltip.d.ts +18 -0
  156. package/dist/{components/two-level-combobox/two-level-combobox.d.ts → two-level-combobox.d.ts} +24 -15
  157. package/markdown-editor.plan.md +2101 -0
  158. package/markdown-editor.spec.md +915 -0
  159. package/package.json +23 -4
  160. package/dist/colors/blue.d.ts +0 -13
  161. package/dist/colors/customColor.d.ts +0 -4
  162. package/dist/colors/dark.d.ts +0 -13
  163. package/dist/colors/green.d.ts +0 -13
  164. package/dist/colors/orange.d.ts +0 -13
  165. package/dist/colors/pink.d.ts +0 -13
  166. package/dist/colors/primary.d.ts +0 -20
  167. package/dist/colors/purple.d.ts +0 -13
  168. package/dist/colors/red.d.ts +0 -13
  169. package/dist/colors/yellow.d.ts +0 -13
  170. package/dist/components/chat-search/Answer.d.ts +0 -29
  171. package/dist/components/chat-search/AnswerActions.d.ts +0 -13
  172. package/dist/components/chat-search/AnswerBlock.d.ts +0 -8
  173. package/dist/components/chat-search/ChatSearch.d.ts +0 -11
  174. package/dist/components/chat-search/ChatSearchContext.d.ts +0 -36
  175. package/dist/components/chat-search/FollowUpQuestions.d.ts +0 -7
  176. package/dist/components/chat-search/FollowUpSearchBar.d.ts +0 -11
  177. package/dist/components/chat-search/Header.d.ts +0 -9
  178. package/dist/components/chat-search/LoadingConversation.d.ts +0 -2
  179. package/dist/components/chat-search/LoadingSkeleton.d.ts +0 -6
  180. package/dist/components/chat-search/NextBestActions.d.ts +0 -8
  181. package/dist/components/chat-search/PrimarySearch.d.ts +0 -35
  182. package/dist/components/chat-search/ScrollToBottomArrow.d.ts +0 -6
  183. package/dist/components/chat-search/Suggestions.d.ts +0 -9
  184. package/dist/components/chat-search/TimelineNavigation.d.ts +0 -9
  185. package/dist/components/chat-search/blocks/ActionButtons.d.ts +0 -5
  186. package/dist/components/chat-search/blocks/ActionInputForm.d.ts +0 -20
  187. package/dist/components/chat-search/blocks/MarkdownText.d.ts +0 -8
  188. package/dist/components/chat-search/blocks/utils.d.ts +0 -15
  189. package/dist/components/chat-search/helpers/excuteClientAction.d.ts +0 -9
  190. package/dist/components/chat-search/helpers/nextBestActions.d.ts +0 -7
  191. package/dist/components/chat-search/hooks/index.d.ts +0 -7
  192. package/dist/components/chat-search/hooks/useAccessibleColor.d.ts +0 -1
  193. package/dist/components/chat-search/hooks/useAnswerList.d.ts +0 -217
  194. package/dist/components/chat-search/hooks/useConversationId.d.ts +0 -5
  195. package/dist/components/chat-search/hooks/useConversationLoader.d.ts +0 -17
  196. package/dist/components/chat-search/hooks/useDarkMode.d.ts +0 -1
  197. package/dist/components/chat-search/hooks/useIsChatSearchDirty.d.ts +0 -1
  198. package/dist/components/chat-search/hooks/useScrollManager.d.ts +0 -6
  199. package/dist/components/chat-search/hooks/useSubscriptionManager.d.ts +0 -4
  200. package/dist/components/chat-search/hooks/useUrlManager.d.ts +0 -8
  201. package/dist/components/chat-search/index.d.ts +0 -5
  202. package/dist/components/chat-search/text-config.d.ts +0 -3
  203. package/dist/components/chat-search/theme.d.ts +0 -0
  204. package/dist/components/chat-search/types.d.ts +0 -260
  205. package/dist/components/combobox/index.d.ts +0 -1
  206. package/dist/components/data-table/data-table.d.ts +0 -17
  207. package/dist/components/data-table/index.d.ts +0 -2
  208. package/dist/components/date-picker/index.d.ts +0 -1
  209. package/dist/components/feedback/feedback-reason.d.ts +0 -10
  210. package/dist/components/feedback/index.d.ts +0 -1
  211. package/dist/components/file-upload/file-upload-status.d.ts +0 -17
  212. package/dist/components/file-upload/file-upload.d.ts +0 -4
  213. package/dist/components/file-upload/index.d.ts +0 -4
  214. package/dist/components/file-upload/types.d.ts +0 -18
  215. package/dist/components/file-upload/utils.d.ts +0 -1
  216. package/dist/components/filter/components/CustomValueInput.d.ts +0 -11
  217. package/dist/components/filter/components/MultiSelectDropdown.d.ts +0 -10
  218. package/dist/components/filter/components/SingleSelectDropdown.d.ts +0 -9
  219. package/dist/components/filter/filter.d.ts +0 -6
  220. package/dist/components/filter/filters.d.ts +0 -12
  221. package/dist/components/filter/hooks.d.ts +0 -9
  222. package/dist/components/filter/index.d.ts +0 -3
  223. package/dist/components/generating-star/generating-star.d.ts +0 -6
  224. package/dist/components/generating-star/index.d.ts +0 -2
  225. package/dist/components/markdown/CodeBlock.d.ts +0 -7
  226. package/dist/components/markdown/FormattedMessage.d.ts +0 -14
  227. package/dist/components/markdown/Frame.d.ts +0 -10
  228. package/dist/components/markdown/MemoizedReactMarkdown.d.ts +0 -6
  229. package/dist/components/markdown/MermaidDiagram.d.ts +0 -6
  230. package/dist/components/markdown/ZoomableImage.d.ts +0 -7
  231. package/dist/components/markdown/embeds/Loom.d.ts +0 -7
  232. package/dist/components/markdown/embeds/NativeVideo.d.ts +0 -6
  233. package/dist/components/markdown/embeds/Supademo.d.ts +0 -7
  234. package/dist/components/markdown/embeds/Typeform.d.ts +0 -7
  235. package/dist/components/markdown/embeds/VideoTimeline.d.ts +0 -9
  236. package/dist/components/markdown/embeds/Vimeo.d.ts +0 -7
  237. package/dist/components/markdown/embeds/Wistia.d.ts +0 -7
  238. package/dist/components/markdown/embeds/Youtube.d.ts +0 -7
  239. package/dist/components/markdown/embeds/index.d.ts +0 -9
  240. package/dist/components/markdown/index.d.ts +0 -6
  241. package/dist/components/markdown/utils/codeblock.d.ts +0 -6
  242. package/dist/components/markdown/utils/stripNewLines.d.ts +0 -1
  243. package/dist/components/markdown/utils/urls.d.ts +0 -6
  244. package/dist/components/select/index.d.ts +0 -1
  245. package/dist/components/two-level-combobox/index.d.ts +0 -1
  246. package/dist/env.d.ts +0 -5
  247. package/dist/lib/addUtmParams.d.ts +0 -20
  248. package/dist/lib/api.d.ts +0 -96
  249. package/dist/lib/feature-flags.d.ts +0 -9
  250. package/dist/lib/features.d.ts +0 -3
  251. package/dist/lib/fetchClient.d.ts +0 -19
  252. package/dist/lib/getContentType.d.ts +0 -1
  253. package/dist/lib/hooks.d.ts +0 -15
  254. package/dist/lib/utils.d.ts +0 -8
@@ -0,0 +1,782 @@
1
+ import { d } from './chunk-55IACEB6-DKe9mqg4.CwngSLd6.js';
2
+ import { d as d$1 } from './chunk-QN33PNHL-DspJEonH.9cW8xBYx.js';
3
+ import { _ as p, l as F, o as sA, r as aA, F as Eh, c as ut, i as ee, aH as PL, W as Ui, X as q, Y as J } from './mermaid.core-C5kBD6J-.DWaMLOFR.js';
4
+
5
+ const E = [];
6
+ for (let t = 0; t < 256; ++t)
7
+ E.push((t + 256).toString(16).slice(1));
8
+ function me(t, e = 0) {
9
+ return (E[t[e + 0]] + E[t[e + 1]] + E[t[e + 2]] + E[t[e + 3]] + "-" + E[t[e + 4]] + E[t[e + 5]] + "-" + E[t[e + 6]] + E[t[e + 7]] + "-" + E[t[e + 8]] + E[t[e + 9]] + "-" + E[t[e + 10]] + E[t[e + 11]] + E[t[e + 12]] + E[t[e + 13]] + E[t[e + 14]] + E[t[e + 15]]).toLowerCase();
10
+ }
11
+ let z;
12
+ const Ee = new Uint8Array(16);
13
+ function _e() {
14
+ if (!z) {
15
+ if (typeof crypto > "u" || !crypto.getRandomValues)
16
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
17
+ z = crypto.getRandomValues.bind(crypto);
18
+ }
19
+ return z(Ee);
20
+ }
21
+ const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: be };
22
+ function Se(t, e, n) {
23
+ if (ne.randomUUID && !t)
24
+ return ne.randomUUID();
25
+ t = t || {};
26
+ const c = t.random ?? t.rng?.() ?? _e();
27
+ if (c.length < 16)
28
+ throw new Error("Random bytes length must be >= 16");
29
+ return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
30
+ }
31
+ var X = function() {
32
+ var t = /* @__PURE__ */ p(function(x, s, i, o) {
33
+ for (i = i || {}, o = x.length; o--; i[x[o]] = s) ;
34
+ return i;
35
+ }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], f = [1, 20], y = [1, 19], p$1 = [6, 7, 8], L = [1, 26], Y = [1, 24], q = [1, 25], b = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], R = [1, 6, 7, 11, 13, 15, 16, 19, 22], B = {
36
+ trace: /* @__PURE__ */ p(function() {
37
+ }, "trace"),
38
+ yy: {},
39
+ 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 },
40
+ 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" },
41
+ 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]],
42
+ performAction: /* @__PURE__ */ p(function(s, i, o, a, g, r, w) {
43
+ var d = r.length - 1;
44
+ switch (g) {
45
+ case 6:
46
+ case 7:
47
+ return a;
48
+ case 8:
49
+ a.getLogger().trace("Stop NL ");
50
+ break;
51
+ case 9:
52
+ a.getLogger().trace("Stop EOF ");
53
+ break;
54
+ case 11:
55
+ a.getLogger().trace("Stop NL2 ");
56
+ break;
57
+ case 12:
58
+ a.getLogger().trace("Stop EOF2 ");
59
+ break;
60
+ case 15:
61
+ a.getLogger().info("Node: ", r[d].id), a.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
62
+ break;
63
+ case 16:
64
+ a.getLogger().trace("Icon: ", r[d]), a.decorateNode({ icon: r[d] });
65
+ break;
66
+ case 17:
67
+ case 21:
68
+ a.decorateNode({ class: r[d] });
69
+ break;
70
+ case 18:
71
+ a.getLogger().trace("SPACELIST");
72
+ break;
73
+ case 19:
74
+ a.getLogger().trace("Node: ", r[d].id), a.addNode(0, r[d].id, r[d].descr, r[d].type);
75
+ break;
76
+ case 20:
77
+ a.decorateNode({ icon: r[d] });
78
+ break;
79
+ case 25:
80
+ a.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
81
+ break;
82
+ case 26:
83
+ this.$ = { id: r[d], descr: r[d], type: a.nodeType.DEFAULT };
84
+ break;
85
+ case 27:
86
+ a.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
87
+ break;
88
+ }
89
+ }, "anonymous"),
90
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: f, 22: y }, t(p$1, [2, 3]), { 1: [2, 2] }, t(p$1, [2, 4]), t(p$1, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: f, 22: y }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: f, 22: y }, { 6: L, 7: Y, 10: 23, 11: q }, t(b, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: f, 22: y }), t(b, [2, 18]), t(b, [2, 19]), t(b, [2, 20]), t(b, [2, 21]), t(b, [2, 23]), t(b, [2, 24]), t(b, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: L, 7: Y, 10: 32, 11: q }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: f, 22: y }, t(J, [2, 14], { 7: K, 11: Q }), t(R, [2, 8]), t(R, [2, 9]), t(R, [2, 10]), t(b, [2, 15]), t(b, [2, 16]), t(b, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(R, [2, 11]), t(R, [2, 12]), { 21: [1, 37] }, t(b, [2, 25]), t(b, [2, 27])],
91
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
92
+ parseError: /* @__PURE__ */ p(function(s, i) {
93
+ if (i.recoverable)
94
+ this.trace(s);
95
+ else {
96
+ var o = new Error(s);
97
+ throw o.hash = i, o;
98
+ }
99
+ }, "parseError"),
100
+ parse: /* @__PURE__ */ p(function(s) {
101
+ var i = this, o = [0], a = [], g = [null], r = [], w = this.table, d = "", U = 0, Z = 0, re = 2, ee = 1, oe = r.slice.call(arguments, 1), m = Object.create(this.lexer), v = { yy: {} };
102
+ for (var j in this.yy)
103
+ Object.prototype.hasOwnProperty.call(this.yy, j) && (v.yy[j] = this.yy[j]);
104
+ m.setInput(s, v.yy), v.yy.lexer = m, v.yy.parser = this, typeof m.yylloc > "u" && (m.yylloc = {});
105
+ var G = m.yylloc;
106
+ r.push(G);
107
+ var ae = m.options && m.options.ranges;
108
+ typeof v.yy.parseError == "function" ? this.parseError = v.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
109
+ function ce(S) {
110
+ o.length = o.length - 2 * S, g.length = g.length - S, r.length = r.length - S;
111
+ }
112
+ p(ce, "popStack");
113
+ function te() {
114
+ var S;
115
+ return S = a.pop() || m.lex() || ee, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = i.symbols_[S] || S), S;
116
+ }
117
+ p(te, "lex");
118
+ for (var _, T, D, H, O = {}, P, N, ie, M; ; ) {
119
+ if (T = o[o.length - 1], this.defaultActions[T] ? D = this.defaultActions[T] : ((_ === null || typeof _ > "u") && (_ = te()), D = w[T] && w[T][_]), typeof D > "u" || !D.length || !D[0]) {
120
+ var $ = "";
121
+ M = [];
122
+ for (P in w[T])
123
+ this.terminals_[P] && P > re && M.push("'" + this.terminals_[P] + "'");
124
+ m.showPosition ? $ = "Parse error on line " + (U + 1) + `:
125
+ ` + m.showPosition() + `
126
+ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "Parse error on line " + (U + 1) + ": Unexpected " + (_ == ee ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError($, {
127
+ text: m.match,
128
+ token: this.terminals_[_] || _,
129
+ line: m.yylineno,
130
+ loc: G,
131
+ expected: M
132
+ });
133
+ }
134
+ if (D[0] instanceof Array && D.length > 1)
135
+ throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + _);
136
+ switch (D[0]) {
137
+ case 1:
138
+ o.push(_), g.push(m.yytext), r.push(m.yylloc), o.push(D[1]), _ = null, Z = m.yyleng, d = m.yytext, U = m.yylineno, G = m.yylloc;
139
+ break;
140
+ case 2:
141
+ if (N = this.productions_[D[1]][1], O.$ = g[g.length - N], O._$ = {
142
+ first_line: r[r.length - (N || 1)].first_line,
143
+ last_line: r[r.length - 1].last_line,
144
+ first_column: r[r.length - (N || 1)].first_column,
145
+ last_column: r[r.length - 1].last_column
146
+ }, ae && (O._$.range = [
147
+ r[r.length - (N || 1)].range[0],
148
+ r[r.length - 1].range[1]
149
+ ]), H = this.performAction.apply(O, [
150
+ d,
151
+ Z,
152
+ U,
153
+ v.yy,
154
+ D[1],
155
+ g,
156
+ r
157
+ ].concat(oe)), typeof H < "u")
158
+ return H;
159
+ N && (o = o.slice(0, -1 * N * 2), g = g.slice(0, -1 * N), r = r.slice(0, -1 * N)), o.push(this.productions_[D[1]][0]), g.push(O.$), r.push(O._$), ie = w[o[o.length - 2]][o[o.length - 1]], o.push(ie);
160
+ break;
161
+ case 3:
162
+ return true;
163
+ }
164
+ }
165
+ return true;
166
+ }, "parse")
167
+ }, se = /* @__PURE__ */ function() {
168
+ var x = {
169
+ EOF: 1,
170
+ parseError: /* @__PURE__ */ p(function(i, o) {
171
+ if (this.yy.parser)
172
+ this.yy.parser.parseError(i, o);
173
+ else
174
+ throw new Error(i);
175
+ }, "parseError"),
176
+ // resets the lexer, sets new input
177
+ setInput: /* @__PURE__ */ p(function(s, i) {
178
+ return this.yy = i || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
179
+ first_line: 1,
180
+ first_column: 0,
181
+ last_line: 1,
182
+ last_column: 0
183
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
184
+ }, "setInput"),
185
+ // consumes and returns one char from the input
186
+ input: /* @__PURE__ */ p(function() {
187
+ var s = this._input[0];
188
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
189
+ var i = s.match(/(?:\r\n?|\n).*/g);
190
+ return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
191
+ }, "input"),
192
+ // unshifts one char (or a string) into the input
193
+ unput: /* @__PURE__ */ p(function(s) {
194
+ var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
195
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
196
+ var a = this.match.split(/(?:\r\n?|\n)/g);
197
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
198
+ var g = this.yylloc.range;
199
+ return this.yylloc = {
200
+ first_line: this.yylloc.first_line,
201
+ last_line: this.yylineno + 1,
202
+ first_column: this.yylloc.first_column,
203
+ last_column: o ? (o.length === a.length ? this.yylloc.first_column : 0) + a[a.length - o.length].length - o[0].length : this.yylloc.first_column - i
204
+ }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
205
+ }, "unput"),
206
+ // When called from action, caches matched text and appends it on next action
207
+ more: /* @__PURE__ */ p(function() {
208
+ return this._more = true, this;
209
+ }, "more"),
210
+ // 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.
211
+ reject: /* @__PURE__ */ p(function() {
212
+ if (this.options.backtrack_lexer)
213
+ this._backtrack = true;
214
+ else
215
+ 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).
216
+ ` + this.showPosition(), {
217
+ text: "",
218
+ token: null,
219
+ line: this.yylineno
220
+ });
221
+ return this;
222
+ }, "reject"),
223
+ // retain first n characters of the match
224
+ less: /* @__PURE__ */ p(function(s) {
225
+ this.unput(this.match.slice(s));
226
+ }, "less"),
227
+ // displays already matched input, i.e. for error messages
228
+ pastInput: /* @__PURE__ */ p(function() {
229
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
230
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
231
+ }, "pastInput"),
232
+ // displays upcoming input, i.e. for error messages
233
+ upcomingInput: /* @__PURE__ */ p(function() {
234
+ var s = this.match;
235
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
236
+ }, "upcomingInput"),
237
+ // displays the character position where the lexing error occurred, i.e. for error messages
238
+ showPosition: /* @__PURE__ */ p(function() {
239
+ var s = this.pastInput(), i = new Array(s.length + 1).join("-");
240
+ return s + this.upcomingInput() + `
241
+ ` + i + "^";
242
+ }, "showPosition"),
243
+ // test the lexed token: return FALSE when not a match, otherwise return token
244
+ test_match: /* @__PURE__ */ p(function(s, i) {
245
+ var o, a, g;
246
+ if (this.options.backtrack_lexer && (g = {
247
+ yylineno: this.yylineno,
248
+ yylloc: {
249
+ first_line: this.yylloc.first_line,
250
+ last_line: this.last_line,
251
+ first_column: this.yylloc.first_column,
252
+ last_column: this.yylloc.last_column
253
+ },
254
+ yytext: this.yytext,
255
+ match: this.match,
256
+ matches: this.matches,
257
+ matched: this.matched,
258
+ yyleng: this.yyleng,
259
+ offset: this.offset,
260
+ _more: this._more,
261
+ _input: this._input,
262
+ yy: this.yy,
263
+ conditionStack: this.conditionStack.slice(0),
264
+ done: this.done
265
+ }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
266
+ first_line: this.yylloc.last_line,
267
+ last_line: this.yylineno + 1,
268
+ first_column: this.yylloc.last_column,
269
+ last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
270
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(s[0].length), this.matched += s[0], o = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), o)
271
+ return o;
272
+ if (this._backtrack) {
273
+ for (var r in g)
274
+ this[r] = g[r];
275
+ return false;
276
+ }
277
+ return false;
278
+ }, "test_match"),
279
+ // return next match in input
280
+ next: /* @__PURE__ */ p(function() {
281
+ if (this.done)
282
+ return this.EOF;
283
+ this._input || (this.done = true);
284
+ var s, i, o, a;
285
+ this._more || (this.yytext = "", this.match = "");
286
+ for (var g = this._currentRules(), r = 0; r < g.length; r++)
287
+ if (o = this._input.match(this.rules[g[r]]), o && (!i || o[0].length > i[0].length)) {
288
+ if (i = o, a = r, this.options.backtrack_lexer) {
289
+ if (s = this.test_match(o, g[r]), s !== false)
290
+ return s;
291
+ if (this._backtrack) {
292
+ i = false;
293
+ continue;
294
+ } else
295
+ return false;
296
+ } else if (!this.options.flex)
297
+ break;
298
+ }
299
+ return i ? (s = this.test_match(i, g[a]), s !== false ? s : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
300
+ ` + this.showPosition(), {
301
+ text: "",
302
+ token: null,
303
+ line: this.yylineno
304
+ });
305
+ }, "next"),
306
+ // return next match that has a token
307
+ lex: /* @__PURE__ */ p(function() {
308
+ var i = this.next();
309
+ return i || this.lex();
310
+ }, "lex"),
311
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
312
+ begin: /* @__PURE__ */ p(function(i) {
313
+ this.conditionStack.push(i);
314
+ }, "begin"),
315
+ // pop the previously active lexer condition state off the condition stack
316
+ popState: /* @__PURE__ */ p(function() {
317
+ var i = this.conditionStack.length - 1;
318
+ return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
319
+ }, "popState"),
320
+ // produce the lexer rule set which is active for the currently active lexer condition state
321
+ _currentRules: /* @__PURE__ */ p(function() {
322
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
323
+ }, "_currentRules"),
324
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
325
+ topState: /* @__PURE__ */ p(function(i) {
326
+ return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
327
+ }, "topState"),
328
+ // alias for begin(condition)
329
+ pushState: /* @__PURE__ */ p(function(i) {
330
+ this.begin(i);
331
+ }, "pushState"),
332
+ // return the number of states currently on the stack
333
+ stateStackSize: /* @__PURE__ */ p(function() {
334
+ return this.conditionStack.length;
335
+ }, "stateStackSize"),
336
+ options: { "case-insensitive": true },
337
+ performAction: /* @__PURE__ */ p(function(i, o, a, g) {
338
+ switch (a) {
339
+ case 0:
340
+ return i.getLogger().trace("Found comment", o.yytext), 6;
341
+ case 1:
342
+ return 8;
343
+ case 2:
344
+ this.begin("CLASS");
345
+ break;
346
+ case 3:
347
+ return this.popState(), 16;
348
+ case 4:
349
+ this.popState();
350
+ break;
351
+ case 5:
352
+ i.getLogger().trace("Begin icon"), this.begin("ICON");
353
+ break;
354
+ case 6:
355
+ return i.getLogger().trace("SPACELINE"), 6;
356
+ case 7:
357
+ return 7;
358
+ case 8:
359
+ return 15;
360
+ case 9:
361
+ i.getLogger().trace("end icon"), this.popState();
362
+ break;
363
+ case 10:
364
+ return i.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
365
+ case 11:
366
+ return i.getLogger().trace("Cloud"), this.begin("NODE"), 19;
367
+ case 12:
368
+ return i.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
369
+ case 13:
370
+ return i.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
371
+ case 14:
372
+ return this.begin("NODE"), 19;
373
+ case 15:
374
+ return this.begin("NODE"), 19;
375
+ case 16:
376
+ return this.begin("NODE"), 19;
377
+ case 17:
378
+ return this.begin("NODE"), 19;
379
+ case 18:
380
+ return 13;
381
+ case 19:
382
+ return 22;
383
+ case 20:
384
+ return 11;
385
+ case 21:
386
+ this.begin("NSTR2");
387
+ break;
388
+ case 22:
389
+ return "NODE_DESCR";
390
+ case 23:
391
+ this.popState();
392
+ break;
393
+ case 24:
394
+ i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
395
+ break;
396
+ case 25:
397
+ return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
398
+ case 26:
399
+ this.popState();
400
+ break;
401
+ case 27:
402
+ return this.popState(), i.getLogger().trace("node end ))"), "NODE_DEND";
403
+ case 28:
404
+ return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
405
+ case 29:
406
+ return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
407
+ case 30:
408
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
409
+ case 31:
410
+ return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
411
+ case 32:
412
+ return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
413
+ case 33:
414
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
415
+ case 34:
416
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
417
+ case 35:
418
+ return i.getLogger().trace("Long description:", o.yytext), 20;
419
+ case 36:
420
+ return i.getLogger().trace("Long description:", o.yytext), 20;
421
+ }
422
+ }, "anonymous"),
423
+ 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],
424
+ 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 } }
425
+ };
426
+ return x;
427
+ }();
428
+ B.lexer = se;
429
+ function A() {
430
+ this.yy = {};
431
+ }
432
+ return p(A, "Parser"), A.prototype = B, B.Parser = A, new A();
433
+ }();
434
+ X.parser = X;
435
+ var De = X, k = {
436
+ DEFAULT: 0,
437
+ NO_BORDER: 0,
438
+ ROUNDED_RECT: 1,
439
+ RECT: 2,
440
+ CIRCLE: 3,
441
+ CLOUD: 4,
442
+ BANG: 5,
443
+ HEXAGON: 6
444
+ }, C, Ne = (C = class {
445
+ constructor() {
446
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = k, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
447
+ }
448
+ clear() {
449
+ this.nodes = [], this.count = 0, this.elements = {};
450
+ }
451
+ getParent(e) {
452
+ for (let n = this.nodes.length - 1; n >= 0; n--)
453
+ if (this.nodes[n].level < e)
454
+ return this.nodes[n];
455
+ return null;
456
+ }
457
+ getMindmap() {
458
+ return this.nodes.length > 0 ? this.nodes[0] : null;
459
+ }
460
+ addNode(e, n, c, u) {
461
+ F.info("addNode", e, n, c, u);
462
+ const h = ut();
463
+ let f = h.mindmap?.padding ?? Eh.mindmap.padding;
464
+ switch (u) {
465
+ case this.nodeType.ROUNDED_RECT:
466
+ case this.nodeType.RECT:
467
+ case this.nodeType.HEXAGON:
468
+ f *= 2;
469
+ break;
470
+ }
471
+ const y = {
472
+ id: this.count++,
473
+ nodeId: ee(n, h),
474
+ level: e,
475
+ descr: ee(c, h),
476
+ type: u,
477
+ children: [],
478
+ width: h.mindmap?.maxNodeWidth ?? Eh.mindmap.maxNodeWidth,
479
+ padding: f
480
+ }, p = this.getParent(e);
481
+ if (p)
482
+ p.children.push(y), this.nodes.push(y);
483
+ else if (this.nodes.length === 0)
484
+ this.nodes.push(y);
485
+ else
486
+ throw new Error(
487
+ `There can be only one root. No parent could be found for ("${y.descr}")`
488
+ );
489
+ }
490
+ getType(e, n) {
491
+ switch (F.debug("In get type", e, n), e) {
492
+ case "[":
493
+ return this.nodeType.RECT;
494
+ case "(":
495
+ return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
496
+ case "((":
497
+ return this.nodeType.CIRCLE;
498
+ case ")":
499
+ return this.nodeType.CLOUD;
500
+ case "))":
501
+ return this.nodeType.BANG;
502
+ case "{{":
503
+ return this.nodeType.HEXAGON;
504
+ default:
505
+ return this.nodeType.DEFAULT;
506
+ }
507
+ }
508
+ setElementForId(e, n) {
509
+ this.elements[e] = n;
510
+ }
511
+ getElementById(e) {
512
+ return this.elements[e];
513
+ }
514
+ decorateNode(e) {
515
+ if (!e)
516
+ return;
517
+ const n = ut(), c = this.nodes[this.nodes.length - 1];
518
+ e.icon && (c.icon = ee(e.icon, n)), e.class && (c.class = ee(e.class, n));
519
+ }
520
+ type2Str(e) {
521
+ switch (e) {
522
+ case this.nodeType.DEFAULT:
523
+ return "no-border";
524
+ case this.nodeType.RECT:
525
+ return "rect";
526
+ case this.nodeType.ROUNDED_RECT:
527
+ return "rounded-rect";
528
+ case this.nodeType.CIRCLE:
529
+ return "circle";
530
+ case this.nodeType.CLOUD:
531
+ return "cloud";
532
+ case this.nodeType.BANG:
533
+ return "bang";
534
+ case this.nodeType.HEXAGON:
535
+ return "hexgon";
536
+ // cspell: disable-line
537
+ default:
538
+ return "no-border";
539
+ }
540
+ }
541
+ /**
542
+ * Assign section numbers to nodes based on their position relative to root
543
+ * @param node - The mindmap node to process
544
+ * @param sectionNumber - The section number to assign (undefined for root)
545
+ */
546
+ assignSections(e, n) {
547
+ if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
548
+ for (const [c, u] of e.children.entries()) {
549
+ const h = e.level === 0 ? c : n;
550
+ this.assignSections(u, h);
551
+ }
552
+ }
553
+ /**
554
+ * Convert mindmap tree structure to flat array of nodes
555
+ * @param node - The mindmap node to process
556
+ * @param processedNodes - Array to collect processed nodes
557
+ */
558
+ flattenNodes(e, n) {
559
+ const c = ["mindmap-node"];
560
+ e.level === 0 ? c.push("section-root", "section--1") : e.section !== void 0 && c.push(`section-${e.section}`), e.class && c.push(e.class);
561
+ const u = c.join(" "), h = /* @__PURE__ */ p((y) => {
562
+ switch (y) {
563
+ case k.CIRCLE:
564
+ return "mindmapCircle";
565
+ case k.RECT:
566
+ return "rect";
567
+ case k.ROUNDED_RECT:
568
+ return "rounded";
569
+ case k.CLOUD:
570
+ return "cloud";
571
+ case k.BANG:
572
+ return "bang";
573
+ case k.HEXAGON:
574
+ return "hexagon";
575
+ case k.DEFAULT:
576
+ return "defaultMindmapNode";
577
+ case k.NO_BORDER:
578
+ default:
579
+ return "rect";
580
+ }
581
+ }, "getShapeFromType"), f = {
582
+ id: e.id.toString(),
583
+ domId: "node_" + e.id.toString(),
584
+ label: e.descr,
585
+ isGroup: false,
586
+ shape: h(e.type),
587
+ width: e.width,
588
+ height: e.height ?? 0,
589
+ padding: e.padding,
590
+ cssClasses: u,
591
+ cssStyles: [],
592
+ look: "default",
593
+ icon: e.icon,
594
+ x: e.x,
595
+ y: e.y,
596
+ // Mindmap-specific properties
597
+ level: e.level,
598
+ nodeId: e.nodeId,
599
+ type: e.type,
600
+ section: e.section
601
+ };
602
+ if (n.push(f), e.children)
603
+ for (const y of e.children)
604
+ this.flattenNodes(y, n);
605
+ }
606
+ /**
607
+ * Generate edges from parent-child relationships in mindmap tree
608
+ * @param node - The mindmap node to process
609
+ * @param edges - Array to collect edges
610
+ */
611
+ generateEdges(e, n) {
612
+ if (e.children)
613
+ for (const c of e.children) {
614
+ let u = "edge";
615
+ c.section !== void 0 && (u += ` section-edge-${c.section}`);
616
+ const h = e.level + 1;
617
+ u += ` edge-depth-${h}`;
618
+ const f = {
619
+ id: `edge_${e.id}_${c.id}`,
620
+ start: e.id.toString(),
621
+ end: c.id.toString(),
622
+ type: "normal",
623
+ curve: "basis",
624
+ thickness: "normal",
625
+ look: "default",
626
+ classes: u,
627
+ // Store mindmap-specific data
628
+ depth: e.level,
629
+ section: c.section
630
+ };
631
+ n.push(f), this.generateEdges(c, n);
632
+ }
633
+ }
634
+ /**
635
+ * Get structured data for layout algorithms
636
+ * Following the pattern established by ER diagrams
637
+ * @returns Structured data containing nodes, edges, and config
638
+ */
639
+ getData() {
640
+ const e = this.getMindmap(), n = ut(), u = PL().layout !== void 0, h = n;
641
+ if (u || (h.layout = "cose-bilkent"), !e)
642
+ return {
643
+ nodes: [],
644
+ edges: [],
645
+ config: h
646
+ };
647
+ F.debug("getData: mindmapRoot", e, n), this.assignSections(e);
648
+ const f = [], y = [];
649
+ this.flattenNodes(e, f), this.generateEdges(e, y), F.debug(
650
+ `getData: processed ${f.length} nodes and ${y.length} edges`
651
+ );
652
+ const p = /* @__PURE__ */ new Map();
653
+ for (const L of f)
654
+ p.set(L.id, {
655
+ shape: L.shape,
656
+ width: L.width,
657
+ height: L.height,
658
+ padding: L.padding
659
+ });
660
+ return {
661
+ nodes: f,
662
+ edges: y,
663
+ config: h,
664
+ // Store the root node for mindmap-specific layout algorithms
665
+ rootNode: e,
666
+ // Properties required by dagre layout algorithm
667
+ markers: ["point"],
668
+ // Mindmaps don't use markers
669
+ direction: "TB",
670
+ // Top-to-bottom direction for mindmaps
671
+ nodeSpacing: 50,
672
+ // Default spacing between nodes
673
+ rankSpacing: 50,
674
+ // Default spacing between ranks
675
+ // Add shapes for ELK compatibility
676
+ shapes: Object.fromEntries(p),
677
+ // Additional properties that layout algorithms might expect
678
+ type: "mindmap",
679
+ diagramId: "mindmap-" + Se()
680
+ };
681
+ }
682
+ // Expose logger to grammar
683
+ getLogger() {
684
+ return F;
685
+ }
686
+ }, p(C, "MindmapDB"), C), ke = /* @__PURE__ */ p(async (t, e, n, c) => {
687
+ F.debug(`Rendering mindmap diagram
688
+ ` + t);
689
+ const u = c.db, h = u.getData(), f = d(e, h.config.securityLevel);
690
+ h.type = c.type, h.layoutAlgorithm = sA(h.config.layout, {
691
+ fallback: "cose-bilkent"
692
+ }), h.diagramId = e, u.getMindmap() && (h.nodes.forEach((p) => {
693
+ p.shape === "rounded" ? (p.radius = 15, p.taper = 15, p.stroke = "none", p.width = 0, p.padding = 15) : p.shape === "circle" ? p.padding = 10 : p.shape === "rect" && (p.width = 0, p.padding = 10);
694
+ }), await aA(h, f), d$1(
695
+ f,
696
+ h.config.mindmap?.padding ?? Eh.mindmap.padding,
697
+ "mindmapDiagram",
698
+ h.config.mindmap?.useMaxWidth ?? Eh.mindmap.useMaxWidth
699
+ ));
700
+ }, "draw"), Le = {
701
+ draw: ke
702
+ }, xe = /* @__PURE__ */ p((t) => {
703
+ let e = "";
704
+ for (let n = 0; n < t.THEME_COLOR_LIMIT; n++)
705
+ t["lineColor" + n] = t["lineColor" + n] || t["cScaleInv" + n], Ui(t["lineColor" + n]) ? t["lineColor" + n] = q(t["lineColor" + n], 20) : t["lineColor" + n] = J(t["lineColor" + n], 20);
706
+ for (let n = 0; n < t.THEME_COLOR_LIMIT; n++) {
707
+ const c = "" + (17 - 3 * n);
708
+ e += `
709
+ .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
710
+ fill: ${t["cScale" + n]};
711
+ }
712
+ .section-${n - 1} text {
713
+ fill: ${t["cScaleLabel" + n]};
714
+ }
715
+ .node-icon-${n - 1} {
716
+ font-size: 40px;
717
+ color: ${t["cScaleLabel" + n]};
718
+ }
719
+ .section-edge-${n - 1}{
720
+ stroke: ${t["cScale" + n]};
721
+ }
722
+ .edge-depth-${n - 1}{
723
+ stroke-width: ${c};
724
+ }
725
+ .section-${n - 1} line {
726
+ stroke: ${t["cScaleInv" + n]} ;
727
+ stroke-width: 3;
728
+ }
729
+
730
+ .disabled, .disabled circle, .disabled text {
731
+ fill: lightgray;
732
+ }
733
+ .disabled text {
734
+ fill: #efefef;
735
+ }
736
+ `;
737
+ }
738
+ return e;
739
+ }, "genSections"), ve = /* @__PURE__ */ p((t) => `
740
+ .edge {
741
+ stroke-width: 3;
742
+ }
743
+ ${xe(t)}
744
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
745
+ fill: ${t.git0};
746
+ }
747
+ .section-root text {
748
+ fill: ${t.gitBranchLabel0};
749
+ }
750
+ .section-root span {
751
+ color: ${t.gitBranchLabel0};
752
+ }
753
+ .section-2 span {
754
+ color: ${t.gitBranchLabel0};
755
+ }
756
+ .icon-container {
757
+ height:100%;
758
+ display: flex;
759
+ justify-content: center;
760
+ align-items: center;
761
+ }
762
+ .edge {
763
+ fill: none;
764
+ }
765
+ .mindmap-node-label {
766
+ dy: 1em;
767
+ alignment-baseline: middle;
768
+ text-anchor: middle;
769
+ dominant-baseline: middle;
770
+ text-align: center;
771
+ }
772
+ `, "getStyles"), Te = ve, Re = {
773
+ get db() {
774
+ return new Ne();
775
+ },
776
+ renderer: Le,
777
+ parser: De,
778
+ styles: Te
779
+ };
780
+
781
+ export { Re as diagram };
782
+ //# sourceMappingURL=mindmap-definition-Q6HEUPPD-HFrYx80F.DHrmSkZz.js.map