sparkdesign 0.4.3 → 0.4.5

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 (467) hide show
  1. package/README.md +205 -111
  2. package/dist/_basePickBy-DnQN8w3y.js +151 -0
  3. package/dist/_basePickBy-a-kPMlkg.cjs +1 -0
  4. package/dist/_baseUniq-B-N2NQ50.js +614 -0
  5. package/dist/_baseUniq-Cc_zbSif.cjs +1 -0
  6. package/dist/arc-BQBhijZ6.js +83 -0
  7. package/dist/arc-mWQt0Yph.cjs +1 -0
  8. package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +36 -0
  9. package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +4661 -0
  10. package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +2256 -0
  11. package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +122 -0
  12. package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +10 -0
  13. package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +1580 -0
  14. package/dist/channel-BQn0o8bs.js +5 -0
  15. package/dist/channel-DaN7XniJ.cjs +1 -0
  16. package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +1 -0
  17. package/dist/chunk-4BX2VUAB-Czitj3Kc.js +8 -0
  18. package/dist/chunk-55IACEB6-DXacNZbO.js +8 -0
  19. package/dist/chunk-55IACEB6-DnDxpye9.cjs +1 -0
  20. package/dist/chunk-B4BG7PRW-CBdN0q_V.js +1375 -0
  21. package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +165 -0
  22. package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +220 -0
  23. package/dist/chunk-DI55MBZ5-NCQTvayw.js +1370 -0
  24. package/dist/chunk-FMBD7UC4-CsGMbrtr.js +19 -0
  25. package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +15 -0
  26. package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +1 -0
  27. package/dist/chunk-QN33PNHL-3GERZBRm.js +19 -0
  28. package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +15 -0
  29. package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +1 -0
  30. package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +1 -0
  31. package/dist/chunk-TZMSLE5B-sbiflal0.js +64 -0
  32. package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +1 -0
  33. package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +16 -0
  34. package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +1 -0
  35. package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +16 -0
  36. package/dist/clone-Cde_NQ8V.js +8 -0
  37. package/dist/clone-DCNjWuM2.cjs +1 -0
  38. package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +1 -0
  39. package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +2608 -0
  40. package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
  41. package/dist/cytoscape.esm-Cvf3sx9F.js +18704 -0
  42. package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +444 -0
  43. package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +4 -0
  44. package/dist/defaultLocale-BgPVtth8.js +171 -0
  45. package/dist/defaultLocale-C4wbwF1n.cjs +1 -0
  46. package/dist/diagram-PSM6KHXK-D2bdb7MT.js +531 -0
  47. package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +24 -0
  48. package/dist/diagram-QEK2KX5R-BpUSoh0-.js +217 -0
  49. package/dist/diagram-QEK2KX5R-DZPGteon.cjs +43 -0
  50. package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +24 -0
  51. package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +142 -0
  52. package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +841 -0
  53. package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +60 -0
  54. package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +162 -0
  55. package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +1620 -0
  56. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  57. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  58. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  59. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  60. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  61. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  62. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  63. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  64. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  65. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  66. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  67. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  68. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  69. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  70. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  71. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  72. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  73. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  74. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  75. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  76. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  77. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  78. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  79. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  80. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  81. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  82. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  83. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  84. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  85. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  86. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  87. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  88. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  89. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  90. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  91. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  92. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  93. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  94. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  95. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  96. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  97. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  98. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  99. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  100. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  101. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  102. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  103. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  104. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  105. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  106. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  107. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  108. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  109. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  110. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  111. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  112. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  113. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  114. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  115. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  116. package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +267 -0
  117. package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +2670 -0
  118. package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +699 -0
  119. package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +65 -0
  120. package/dist/graph-DIbblrZP.cjs +1 -0
  121. package/dist/graph-DPcK91G3.js +247 -0
  122. package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +2 -0
  123. package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +24 -0
  124. package/dist/init-CHZsXQcr.cjs +1 -0
  125. package/dist/init-DjUOC4st.js +16 -0
  126. package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +834 -0
  127. package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +139 -0
  128. package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +89 -0
  129. package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +719 -0
  130. package/dist/katex.css +1 -0
  131. package/dist/layout-Byuh8f-J.cjs +1 -0
  132. package/dist/layout-CdLdvj1j.js +1335 -0
  133. package/dist/linear-C2Q_PI9B.js +259 -0
  134. package/dist/linear-C69aPBW1.cjs +1 -0
  135. package/dist/mermaid.core-DBwAx_jp.cjs +249 -0
  136. package/dist/mermaid.core-gFR0XUlD.js +15300 -0
  137. package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +68 -0
  138. package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +784 -0
  139. package/dist/ordinal-B6-f3MAq.js +61 -0
  140. package/dist/ordinal-CagbB1m8.cjs +1 -0
  141. package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +161 -0
  142. package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +30 -0
  143. package/dist/qoder-design.css +2 -0
  144. package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +7 -0
  145. package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +1022 -0
  146. package/dist/registry/basic/alert-dialog.d.ts +40 -0
  147. package/dist/registry/basic/avatar.d.ts +30 -0
  148. package/dist/registry/basic/button.d.ts +16 -0
  149. package/dist/registry/basic/collapse.d.ts +22 -0
  150. package/dist/registry/basic/collapsible-card.d.ts +34 -0
  151. package/dist/registry/basic/collapsible.d.ts +15 -0
  152. package/dist/registry/basic/dropdown-menu.d.ts +52 -0
  153. package/dist/registry/basic/icon-button.d.ts +12 -0
  154. package/dist/registry/basic/icons-inline.d.ts +51 -0
  155. package/dist/registry/basic/kbd.d.ts +23 -0
  156. package/dist/registry/basic/option-list.d.ts +16 -0
  157. package/dist/registry/basic/pagination.d.ts +33 -0
  158. package/dist/registry/basic/progress.d.ts +18 -0
  159. package/dist/registry/basic/radio-group.d.ts +25 -0
  160. package/dist/registry/basic/resizable.d.ts +318 -0
  161. package/dist/registry/basic/scrollbar.d.ts +12 -0
  162. package/dist/registry/basic/select.d.ts +35 -0
  163. package/dist/registry/basic/shimmering-text.d.ts +27 -0
  164. package/dist/registry/basic/sidebar-menu.d.ts +23 -0
  165. package/dist/registry/basic/skeleton.d.ts +10 -0
  166. package/dist/registry/basic/slider.d.ts +16 -0
  167. package/dist/registry/basic/sonner.d.ts +23 -0
  168. package/dist/registry/basic/spinner.d.ts +5 -0
  169. package/dist/registry/basic/switch.d.ts +20 -0
  170. package/dist/registry/basic/table.d.ts +18 -0
  171. package/dist/registry/basic/tabs.d.ts +29 -0
  172. package/dist/registry/basic/tag.d.ts +23 -0
  173. package/dist/registry/basic/theme-from-document.d.ts +10 -0
  174. package/dist/registry/basic/toggle.d.ts +29 -0
  175. package/dist/registry/basic/tooltip.d.ts +34 -0
  176. package/dist/registry/basic/typography.d.ts +76 -0
  177. package/dist/registry/chat/ask-user-part.d.ts +24 -0
  178. package/dist/registry/chat/browser-action-part.d.ts +28 -0
  179. package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +22 -0
  180. package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +12 -0
  181. package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +9 -0
  182. package/dist/registry/chat/chat-input/compound.d.ts +97 -0
  183. package/dist/registry/chat/chat-input/context.d.ts +64 -0
  184. package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +11 -0
  185. package/dist/registry/chat/chat-input/index.d.ts +34 -0
  186. package/dist/registry/chat/chat-input/types.d.ts +79 -0
  187. package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +7 -0
  188. package/dist/registry/chat/code-block-part.d.ts +23 -0
  189. package/dist/registry/chat/file-attachment.d.ts +19 -0
  190. package/dist/registry/chat/file-card.d.ts +10 -0
  191. package/dist/registry/chat/file-review-part.d.ts +30 -0
  192. package/dist/registry/chat/folder-button.d.ts +20 -0
  193. package/dist/registry/chat/generated-images-grid.d.ts +15 -0
  194. package/dist/registry/chat/generation-status-bar.d.ts +19 -0
  195. package/dist/registry/chat/hint-banner.d.ts +28 -0
  196. package/dist/registry/chat/image-attachment.d.ts +19 -0
  197. package/dist/registry/chat/image-generating.d.ts +15 -0
  198. package/dist/registry/chat/markdown.d.ts +8 -0
  199. package/dist/registry/chat/mermaid-part.d.ts +17 -0
  200. package/dist/registry/chat/permission-card.d.ts +24 -0
  201. package/dist/registry/chat/plan-part.d.ts +30 -0
  202. package/dist/registry/chat/queue-indicator.d.ts +27 -0
  203. package/dist/registry/chat/reasoning-step/compound.d.ts +17 -0
  204. package/dist/registry/chat/reasoning-step/context.d.ts +10 -0
  205. package/dist/registry/chat/reasoning-step/index.d.ts +14 -0
  206. package/dist/registry/chat/reasoning-step/types.d.ts +95 -0
  207. package/dist/registry/chat/related-prompts.d.ts +23 -0
  208. package/dist/registry/chat/response/compound.d.ts +25 -0
  209. package/dist/registry/chat/response/context.d.ts +9 -0
  210. package/dist/registry/chat/response/index.d.ts +15 -0
  211. package/dist/registry/chat/response/types.d.ts +99 -0
  212. package/dist/registry/chat/send-button.d.ts +17 -0
  213. package/dist/registry/chat/streaming-markdown-block.d.ts +8 -0
  214. package/dist/registry/chat/task-part.d.ts +28 -0
  215. package/dist/registry/chat/terminal-code-block-part.d.ts +18 -0
  216. package/dist/registry/chat/thinking-indicator.d.ts +14 -0
  217. package/dist/registry/chat/tool-invocation-card.d.ts +20 -0
  218. package/dist/registry/chat/user-message.d.ts +6 -0
  219. package/dist/registry/chat/user-question/UserQuestionCard.d.ts +30 -0
  220. package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +18 -0
  221. package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +20 -0
  222. package/dist/registry/chat/user-question/compound.d.ts +37 -0
  223. package/dist/registry/chat/user-question/context.d.ts +55 -0
  224. package/dist/registry/chat/user-question/index.d.ts +15 -0
  225. package/dist/registry/chat/user-question/types.d.ts +52 -0
  226. package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +17 -0
  227. package/dist/registry/chat/user-question/useUserQuestionState.d.ts +26 -0
  228. package/dist/registry/chat/user-question-answer.d.ts +13 -0
  229. package/dist/registry/lib/file-icon-maps.d.ts +20 -0
  230. package/dist/registry/lib/use-mermaid-render.d.ts +5 -0
  231. package/dist/registry/lib/utils.d.ts +11 -0
  232. package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +850 -0
  233. package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +64 -0
  234. package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +810 -0
  235. package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +10 -0
  236. package/dist/scale/computed.css +103 -0
  237. package/dist/scale/config.css +110 -0
  238. package/dist/scale/index.css +30 -0
  239. package/dist/scale/presets/compact.css +30 -0
  240. package/dist/scale/presets/dense.css +64 -0
  241. package/dist/scale/presets/sharp.css +40 -0
  242. package/dist/scale/presets/soft.css +16 -0
  243. package/dist/scale.css +13 -0
  244. package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +145 -0
  245. package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +2511 -0
  246. package/dist/spark-design.cjs.js +265 -0
  247. package/dist/spark-design.es.js +13486 -0
  248. package/dist/src/components/basic/AlertDialog/index.d.ts +20 -0
  249. package/dist/src/components/basic/Avatar/index.d.ts +7 -0
  250. package/dist/src/components/basic/Button/index.d.ts +7 -0
  251. package/dist/src/components/basic/Collapse/index.d.ts +15 -0
  252. package/dist/src/components/basic/Collapsible/index.d.ts +7 -0
  253. package/dist/src/components/basic/CollapsibleCard/index.d.ts +7 -0
  254. package/dist/src/components/basic/CollapsibleSection/index.d.ts +43 -0
  255. package/dist/src/components/basic/DropdownMenu/index.d.ts +19 -0
  256. package/dist/src/components/basic/EllipsisText/index.d.ts +53 -0
  257. package/dist/src/components/basic/IconButton/index.d.ts +7 -0
  258. package/dist/src/components/basic/Kbd/index.d.ts +7 -0
  259. package/dist/src/components/basic/OptionList/index.d.ts +7 -0
  260. package/dist/src/components/basic/Pagination/index.d.ts +7 -0
  261. package/dist/src/components/basic/Progress/index.d.ts +7 -0
  262. package/dist/src/components/basic/RadioGroup/index.d.ts +7 -0
  263. package/dist/src/components/basic/Resizable/index.d.ts +7 -0
  264. package/dist/src/components/basic/Scrollbar/index.d.ts +7 -0
  265. package/dist/src/components/basic/Select/index.d.ts +17 -0
  266. package/dist/src/components/basic/ShimmeringText/index.d.ts +7 -0
  267. package/dist/src/components/basic/SidebarMenu/index.d.ts +4 -0
  268. package/dist/src/components/basic/Skeleton/index.d.ts +7 -0
  269. package/dist/src/components/basic/Slider/index.d.ts +7 -0
  270. package/dist/src/components/basic/Spinner/index.d.ts +7 -0
  271. package/dist/src/components/basic/Switch/index.d.ts +38 -0
  272. package/dist/src/components/basic/Table/index.d.ts +7 -0
  273. package/dist/src/components/basic/Tabs/index.d.ts +7 -0
  274. package/dist/src/components/basic/Tag/index.d.ts +10 -0
  275. package/dist/src/components/basic/Toast/index.d.ts +12 -0
  276. package/dist/src/components/basic/Toggle/index.d.ts +7 -0
  277. package/dist/src/components/basic/Tooltip/index.d.ts +21 -0
  278. package/dist/src/components/basic/Typography/index.d.ts +7 -0
  279. package/dist/src/components/chat/AskUserPart/index.d.ts +6 -0
  280. package/dist/src/components/chat/BrowserActionPart/index.d.ts +7 -0
  281. package/dist/src/components/chat/ChatInput/index.d.ts +29 -0
  282. package/dist/src/components/chat/CodeBlockPart/index.d.ts +7 -0
  283. package/dist/src/components/chat/FileAttachment/index.d.ts +3 -0
  284. package/dist/src/components/chat/FileCard/index.d.ts +3 -0
  285. package/dist/src/components/chat/FileReviewPart/index.d.ts +7 -0
  286. package/dist/src/components/chat/FolderButton/index.d.ts +5 -0
  287. package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +7 -0
  288. package/dist/src/components/chat/GenerationStatusBar/index.d.ts +7 -0
  289. package/dist/src/components/chat/HintBanner/index.d.ts +6 -0
  290. package/dist/src/components/chat/ImageAttachment/index.d.ts +3 -0
  291. package/dist/src/components/chat/ImageGenerating/index.d.ts +6 -0
  292. package/dist/src/components/chat/Markdown/demo-content.d.ts +1 -0
  293. package/dist/src/components/chat/Markdown/index.d.ts +7 -0
  294. package/dist/src/components/chat/MermaidPart/index.d.ts +6 -0
  295. package/dist/src/components/chat/PermissionCard/index.d.ts +4 -0
  296. package/dist/src/components/chat/PlanPart/index.d.ts +6 -0
  297. package/dist/src/components/chat/QueueIndicator/index.d.ts +4 -0
  298. package/dist/src/components/chat/ReasoningStep/index.d.ts +13 -0
  299. package/dist/src/components/chat/RelatedPrompts/index.d.ts +6 -0
  300. package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +6 -0
  301. package/dist/src/components/chat/Response/index.d.ts +16 -0
  302. package/dist/src/components/chat/SendButton/index.d.ts +5 -0
  303. package/dist/src/components/chat/TaskPart/index.d.ts +7 -0
  304. package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +6 -0
  305. package/dist/src/components/chat/ThinkingIndicator/index.d.ts +6 -0
  306. package/dist/src/components/chat/ToolInvocationCard/index.d.ts +4 -0
  307. package/dist/src/components/chat/UserMessage/index.d.ts +7 -0
  308. package/dist/src/components/chat/UserQuestion/index.d.ts +19 -0
  309. package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +3 -0
  310. package/dist/src/components/index.d.ts +138 -0
  311. package/dist/src/icons/context.d.ts +26 -0
  312. package/dist/src/icons/types.d.ts +18 -0
  313. package/dist/src/lib/ThemeStyleContext.d.ts +134 -0
  314. package/dist/src/lib/file-icon.d.ts +16 -0
  315. package/dist/src/lib/i18n.d.ts +12 -0
  316. package/dist/src/lib/index.d.ts +10 -0
  317. package/dist/src/lib/motion.d.ts +22 -0
  318. package/dist/src/lib/utils.d.ts +11 -0
  319. package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +1 -0
  320. package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +263 -0
  321. package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +16 -0
  322. package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +1 -0
  323. package/dist/theme-base.css +270 -0
  324. package/dist/theme.css +17 -0
  325. package/dist/themes/dark-parchment.css +133 -0
  326. package/dist/themes/dark-qoder.css +133 -0
  327. package/dist/themes/light-parchment.css +124 -0
  328. package/dist/themes/light-qoder.css +132 -0
  329. package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +61 -0
  330. package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +795 -0
  331. package/dist/tokens/CLAUDE.md +305 -0
  332. package/dist/tokens/index.css +35 -0
  333. package/dist/tokens/scale/computed.css +103 -0
  334. package/dist/tokens/scale/config.css +110 -0
  335. package/dist/tokens/scale/index.css +30 -0
  336. package/dist/tokens/scale/presets/compact.css +30 -0
  337. package/dist/tokens/scale/presets/dense.css +64 -0
  338. package/dist/tokens/scale/presets/sharp.css +40 -0
  339. package/dist/tokens/scale/presets/soft.css +16 -0
  340. package/dist/tokens/scale.css +13 -0
  341. package/dist/tokens/scrollbar-utility.css +35 -0
  342. package/dist/tokens/theme-base.css +270 -0
  343. package/dist/tokens/theme.css +17 -0
  344. package/dist/tokens/themes/dark-parchment.css +133 -0
  345. package/dist/tokens/themes/dark-qoder.css +133 -0
  346. package/dist/tokens/themes/light-parchment.css +124 -0
  347. package/dist/tokens/themes/light-qoder.css +132 -0
  348. package/dist/treemap-GDKQZRPO-B9sfERx8.js +17922 -0
  349. package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +160 -0
  350. package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +1340 -0
  351. package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +7 -0
  352. package/package.json +128 -19
  353. /package/{dist → cli/dist}/commands/add.js +0 -0
  354. /package/{dist → cli/dist}/commands/diff.js +0 -0
  355. /package/{dist → cli/dist}/commands/init.js +0 -0
  356. /package/{dist → cli/dist}/commands/list.js +0 -0
  357. /package/{dist → cli/dist}/index.js +0 -0
  358. /package/{dist → cli/dist}/utils/config.js +0 -0
  359. /package/{dist → cli/dist}/utils/registry.js +0 -0
  360. /package/{dist → cli/dist}/utils/tokens.js +0 -0
  361. /package/{dist → cli/dist}/utils/transform.js +0 -0
  362. /package/{registry → cli/registry}/__tests__/basic/button.test.tsx +0 -0
  363. /package/{registry → cli/registry}/__tests__/chat/markdown.test.tsx +0 -0
  364. /package/{registry → cli/registry}/__tests__/chat/thinking-indicator.test.tsx +0 -0
  365. /package/{registry → cli/registry}/__tests__/chat/tool-invocation-card.test.tsx +0 -0
  366. /package/{registry → cli/registry}/basic/alert-dialog.tsx +0 -0
  367. /package/{registry → cli/registry}/basic/avatar.tsx +0 -0
  368. /package/{registry → cli/registry}/basic/button.tsx +0 -0
  369. /package/{registry → cli/registry}/basic/collapse.tsx +0 -0
  370. /package/{registry → cli/registry}/basic/collapsible-card.tsx +0 -0
  371. /package/{registry → cli/registry}/basic/collapsible.tsx +0 -0
  372. /package/{registry → cli/registry}/basic/dropdown-menu.tsx +0 -0
  373. /package/{registry → cli/registry}/basic/icon-button.tsx +0 -0
  374. /package/{registry → cli/registry}/basic/icons-inline.tsx +0 -0
  375. /package/{registry → cli/registry}/basic/kbd.tsx +0 -0
  376. /package/{registry → cli/registry}/basic/option-list.tsx +0 -0
  377. /package/{registry → cli/registry}/basic/pagination.tsx +0 -0
  378. /package/{registry → cli/registry}/basic/progress.tsx +0 -0
  379. /package/{registry → cli/registry}/basic/radio-group.tsx +0 -0
  380. /package/{registry → cli/registry}/basic/resizable.tsx +0 -0
  381. /package/{registry → cli/registry}/basic/scrollbar.tsx +0 -0
  382. /package/{registry → cli/registry}/basic/select.tsx +0 -0
  383. /package/{registry → cli/registry}/basic/shimmering-text.tsx +0 -0
  384. /package/{registry → cli/registry}/basic/sidebar-menu.tsx +0 -0
  385. /package/{registry → cli/registry}/basic/skeleton.tsx +0 -0
  386. /package/{registry → cli/registry}/basic/slider.tsx +0 -0
  387. /package/{registry → cli/registry}/basic/sonner.tsx +0 -0
  388. /package/{registry → cli/registry}/basic/spinner.tsx +0 -0
  389. /package/{registry → cli/registry}/basic/switch.tsx +0 -0
  390. /package/{registry → cli/registry}/basic/table.tsx +0 -0
  391. /package/{registry → cli/registry}/basic/tabs.tsx +0 -0
  392. /package/{registry → cli/registry}/basic/tag.tsx +0 -0
  393. /package/{registry → cli/registry}/basic/theme-from-document.ts +0 -0
  394. /package/{registry → cli/registry}/basic/toggle.tsx +0 -0
  395. /package/{registry → cli/registry}/basic/tooltip.tsx +0 -0
  396. /package/{registry → cli/registry}/basic/typography.tsx +0 -0
  397. /package/{registry → cli/registry}/chat/ask-user-part.tsx +0 -0
  398. /package/{registry → cli/registry}/chat/browser-action-part.tsx +0 -0
  399. /package/{registry → cli/registry}/chat/chat-input/chat-input-folder-selector.tsx +0 -0
  400. /package/{registry → cli/registry}/chat/chat-input/chat-input-model-switcher.tsx +0 -0
  401. /package/{registry → cli/registry}/chat/chat-input/chat-input-textarea.tsx +0 -0
  402. /package/{registry → cli/registry}/chat/chat-input/compound.tsx +0 -0
  403. /package/{registry → cli/registry}/chat/chat-input/context.tsx +0 -0
  404. /package/{registry → cli/registry}/chat/chat-input/folder-permission-dialog.tsx +0 -0
  405. /package/{registry → cli/registry}/chat/chat-input/index.tsx +0 -0
  406. /package/{registry → cli/registry}/chat/chat-input/types.ts +0 -0
  407. /package/{registry → cli/registry}/chat/chat-input/useAutoResizeTextarea.ts +0 -0
  408. /package/{registry → cli/registry}/chat/code-block-part.tsx +0 -0
  409. /package/{registry → cli/registry}/chat/file-attachment.tsx +0 -0
  410. /package/{registry → cli/registry}/chat/file-card.tsx +0 -0
  411. /package/{registry → cli/registry}/chat/file-review-part.tsx +0 -0
  412. /package/{registry → cli/registry}/chat/folder-button.tsx +0 -0
  413. /package/{registry → cli/registry}/chat/generated-images-grid.tsx +0 -0
  414. /package/{registry → cli/registry}/chat/generation-status-bar.tsx +0 -0
  415. /package/{registry → cli/registry}/chat/hint-banner.tsx +0 -0
  416. /package/{registry → cli/registry}/chat/image-attachment.tsx +0 -0
  417. /package/{registry → cli/registry}/chat/image-generating.tsx +0 -0
  418. /package/{registry → cli/registry}/chat/markdown.tsx +0 -0
  419. /package/{registry → cli/registry}/chat/mermaid-part.tsx +0 -0
  420. /package/{registry → cli/registry}/chat/permission-card.tsx +0 -0
  421. /package/{registry → cli/registry}/chat/plan-part.tsx +0 -0
  422. /package/{registry → cli/registry}/chat/queue-indicator.tsx +0 -0
  423. /package/{registry → cli/registry}/chat/reasoning-step/compound.tsx +0 -0
  424. /package/{registry → cli/registry}/chat/reasoning-step/context.tsx +0 -0
  425. /package/{registry → cli/registry}/chat/reasoning-step/index.tsx +0 -0
  426. /package/{registry → cli/registry}/chat/reasoning-step/types.ts +0 -0
  427. /package/{registry → cli/registry}/chat/related-prompts.tsx +0 -0
  428. /package/{registry → cli/registry}/chat/response/compound.tsx +0 -0
  429. /package/{registry → cli/registry}/chat/response/context.tsx +0 -0
  430. /package/{registry → cli/registry}/chat/response/index.tsx +0 -0
  431. /package/{registry → cli/registry}/chat/response/types.ts +0 -0
  432. /package/{registry → cli/registry}/chat/send-button.tsx +0 -0
  433. /package/{registry → cli/registry}/chat/streaming-markdown-block.tsx +0 -0
  434. /package/{registry → cli/registry}/chat/task-part.tsx +0 -0
  435. /package/{registry → cli/registry}/chat/terminal-code-block-part.tsx +0 -0
  436. /package/{registry → cli/registry}/chat/thinking-indicator.tsx +0 -0
  437. /package/{registry → cli/registry}/chat/tool-invocation-card.tsx +0 -0
  438. /package/{registry → cli/registry}/chat/user-message.tsx +0 -0
  439. /package/{registry → cli/registry}/chat/user-question/UserQuestionCard.tsx +0 -0
  440. /package/{registry → cli/registry}/chat/user-question/UserQuestionFooter.tsx +0 -0
  441. /package/{registry → cli/registry}/chat/user-question/UserQuestionHeader.tsx +0 -0
  442. /package/{registry → cli/registry}/chat/user-question/compound.tsx +0 -0
  443. /package/{registry → cli/registry}/chat/user-question/context.tsx +0 -0
  444. /package/{registry → cli/registry}/chat/user-question/index.tsx +0 -0
  445. /package/{registry → cli/registry}/chat/user-question/types.ts +0 -0
  446. /package/{registry → cli/registry}/chat/user-question/useUserQuestionKeyboard.ts +0 -0
  447. /package/{registry → cli/registry}/chat/user-question/useUserQuestionState.ts +0 -0
  448. /package/{registry → cli/registry}/chat/user-question-answer.tsx +0 -0
  449. /package/{registry → cli/registry}/lib/file-icon-maps.ts +0 -0
  450. /package/{registry → cli/registry}/lib/use-mermaid-render.ts +0 -0
  451. /package/{registry → cli/registry}/lib/utils.ts +0 -0
  452. /package/{registry → cli/registry}/meta.json +0 -0
  453. /package/{registry → cli/registry}/tokens/index.css +0 -0
  454. /package/{registry → cli/registry}/tokens/scale/computed.css +0 -0
  455. /package/{registry → cli/registry}/tokens/scale/config.css +0 -0
  456. /package/{registry → cli/registry}/tokens/scale/index.css +0 -0
  457. /package/{registry → cli/registry}/tokens/scale/presets/compact.css +0 -0
  458. /package/{registry → cli/registry}/tokens/scale/presets/dense.css +0 -0
  459. /package/{registry → cli/registry}/tokens/scale/presets/sharp.css +0 -0
  460. /package/{registry → cli/registry}/tokens/scale/presets/soft.css +0 -0
  461. /package/{registry → cli/registry}/tokens/scale.css +0 -0
  462. /package/{registry → cli/registry}/tokens/scrollbar-utility.css +0 -0
  463. /package/{registry → cli/registry}/tokens/theme.css +0 -0
  464. /package/{registry → cli/registry}/tokens/themes/dark-parchment.css +0 -0
  465. /package/{registry → cli/registry}/tokens/themes/dark-qoder.css +0 -0
  466. /package/{registry → cli/registry}/tokens/themes/light-parchment.css +0 -0
  467. /package/{registry → cli/registry}/tokens/themes/light-qoder.css +0 -0
@@ -0,0 +1,784 @@
1
+ import { g as le } from "./chunk-55IACEB6-DXacNZbO.js";
2
+ import { s as he } from "./chunk-QN33PNHL-3GERZBRm.js";
3
+ import { _ as l, l as I, o as de, r as ge, E as B, c as W, i as V, aH as ue, W as pe, X as fe, Y as ye } from "./mermaid.core-gFR0XUlD.js";
4
+ const E = [];
5
+ for (let t = 0; t < 256; ++t)
6
+ E.push((t + 256).toString(16).slice(1));
7
+ function me(t, e = 0) {
8
+ 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();
9
+ }
10
+ let z;
11
+ const Ee = new Uint8Array(16);
12
+ function _e() {
13
+ if (!z) {
14
+ if (typeof crypto > "u" || !crypto.getRandomValues)
15
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
16
+ z = crypto.getRandomValues.bind(crypto);
17
+ }
18
+ return z(Ee);
19
+ }
20
+ const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: be };
21
+ function Se(t, e, n) {
22
+ if (ne.randomUUID && !t)
23
+ return ne.randomUUID();
24
+ t = t || {};
25
+ const c = t.random ?? t.rng?.() ?? _e();
26
+ if (c.length < 16)
27
+ throw new Error("Random bytes length must be >= 16");
28
+ return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
29
+ }
30
+ var X = (function() {
31
+ var t = /* @__PURE__ */ l(function(x, s, i, o) {
32
+ for (i = i || {}, o = x.length; o--; i[x[o]] = s) ;
33
+ return i;
34
+ }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], f = [1, 15], h = [1, 16], p = [1, 20], m = [1, 19], u = [6, 7, 8], N = [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], F = {
35
+ trace: /* @__PURE__ */ l(function() {
36
+ }, "trace"),
37
+ yy: {},
38
+ 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 },
39
+ 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" },
40
+ 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]],
41
+ performAction: /* @__PURE__ */ l(function(s, i, o, a, g, r, w) {
42
+ var d = r.length - 1;
43
+ switch (g) {
44
+ case 6:
45
+ case 7:
46
+ return a;
47
+ case 8:
48
+ a.getLogger().trace("Stop NL ");
49
+ break;
50
+ case 9:
51
+ a.getLogger().trace("Stop EOF ");
52
+ break;
53
+ case 11:
54
+ a.getLogger().trace("Stop NL2 ");
55
+ break;
56
+ case 12:
57
+ a.getLogger().trace("Stop EOF2 ");
58
+ break;
59
+ case 15:
60
+ a.getLogger().info("Node: ", r[d].id), a.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
61
+ break;
62
+ case 16:
63
+ a.getLogger().trace("Icon: ", r[d]), a.decorateNode({ icon: r[d] });
64
+ break;
65
+ case 17:
66
+ case 21:
67
+ a.decorateNode({ class: r[d] });
68
+ break;
69
+ case 18:
70
+ a.getLogger().trace("SPACELIST");
71
+ break;
72
+ case 19:
73
+ a.getLogger().trace("Node: ", r[d].id), a.addNode(0, r[d].id, r[d].descr, r[d].type);
74
+ break;
75
+ case 20:
76
+ a.decorateNode({ icon: r[d] });
77
+ break;
78
+ case 25:
79
+ 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]) };
80
+ break;
81
+ case 26:
82
+ this.$ = { id: r[d], descr: r[d], type: a.nodeType.DEFAULT };
83
+ break;
84
+ case 27:
85
+ 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]) };
86
+ break;
87
+ }
88
+ }, "anonymous"),
89
+ 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: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, t(u, [2, 3]), { 1: [2, 2] }, t(u, [2, 4]), t(u, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: N, 7: Y, 10: 23, 11: q }, t(b, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: m }), 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: N, 7: Y, 10: 32, 11: q }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, 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])],
90
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
91
+ parseError: /* @__PURE__ */ l(function(s, i) {
92
+ if (i.recoverable)
93
+ this.trace(s);
94
+ else {
95
+ var o = new Error(s);
96
+ throw o.hash = i, o;
97
+ }
98
+ }, "parseError"),
99
+ parse: /* @__PURE__ */ l(function(s) {
100
+ 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), y = Object.create(this.lexer), v = { yy: {} };
101
+ for (var j in this.yy)
102
+ Object.prototype.hasOwnProperty.call(this.yy, j) && (v.yy[j] = this.yy[j]);
103
+ y.setInput(s, v.yy), v.yy.lexer = y, v.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
104
+ var G = y.yylloc;
105
+ r.push(G);
106
+ var ae = y.options && y.options.ranges;
107
+ typeof v.yy.parseError == "function" ? this.parseError = v.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
108
+ function ce(S) {
109
+ o.length = o.length - 2 * S, g.length = g.length - S, r.length = r.length - S;
110
+ }
111
+ l(ce, "popStack");
112
+ function te() {
113
+ var S;
114
+ return S = a.pop() || y.lex() || ee, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = i.symbols_[S] || S), S;
115
+ }
116
+ l(te, "lex");
117
+ for (var _, T, D, H, O = {}, P, k, ie, M; ; ) {
118
+ 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]) {
119
+ var $ = "";
120
+ M = [];
121
+ for (P in w[T])
122
+ this.terminals_[P] && P > re && M.push("'" + this.terminals_[P] + "'");
123
+ y.showPosition ? $ = "Parse error on line " + (U + 1) + `:
124
+ ` + y.showPosition() + `
125
+ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "Parse error on line " + (U + 1) + ": Unexpected " + (_ == ee ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError($, {
126
+ text: y.match,
127
+ token: this.terminals_[_] || _,
128
+ line: y.yylineno,
129
+ loc: G,
130
+ expected: M
131
+ });
132
+ }
133
+ if (D[0] instanceof Array && D.length > 1)
134
+ throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + _);
135
+ switch (D[0]) {
136
+ case 1:
137
+ o.push(_), g.push(y.yytext), r.push(y.yylloc), o.push(D[1]), _ = null, Z = y.yyleng, d = y.yytext, U = y.yylineno, G = y.yylloc;
138
+ break;
139
+ case 2:
140
+ if (k = this.productions_[D[1]][1], O.$ = g[g.length - k], O._$ = {
141
+ first_line: r[r.length - (k || 1)].first_line,
142
+ last_line: r[r.length - 1].last_line,
143
+ first_column: r[r.length - (k || 1)].first_column,
144
+ last_column: r[r.length - 1].last_column
145
+ }, ae && (O._$.range = [
146
+ r[r.length - (k || 1)].range[0],
147
+ r[r.length - 1].range[1]
148
+ ]), H = this.performAction.apply(O, [
149
+ d,
150
+ Z,
151
+ U,
152
+ v.yy,
153
+ D[1],
154
+ g,
155
+ r
156
+ ].concat(oe)), typeof H < "u")
157
+ return H;
158
+ k && (o = o.slice(0, -1 * k * 2), g = g.slice(0, -1 * k), r = r.slice(0, -1 * k)), 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);
159
+ break;
160
+ case 3:
161
+ return !0;
162
+ }
163
+ }
164
+ return !0;
165
+ }, "parse")
166
+ }, se = /* @__PURE__ */ (function() {
167
+ var x = {
168
+ EOF: 1,
169
+ parseError: /* @__PURE__ */ l(function(i, o) {
170
+ if (this.yy.parser)
171
+ this.yy.parser.parseError(i, o);
172
+ else
173
+ throw new Error(i);
174
+ }, "parseError"),
175
+ // resets the lexer, sets new input
176
+ setInput: /* @__PURE__ */ l(function(s, i) {
177
+ return this.yy = i || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
178
+ first_line: 1,
179
+ first_column: 0,
180
+ last_line: 1,
181
+ last_column: 0
182
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
183
+ }, "setInput"),
184
+ // consumes and returns one char from the input
185
+ input: /* @__PURE__ */ l(function() {
186
+ var s = this._input[0];
187
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
188
+ var i = s.match(/(?:\r\n?|\n).*/g);
189
+ 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;
190
+ }, "input"),
191
+ // unshifts one char (or a string) into the input
192
+ unput: /* @__PURE__ */ l(function(s) {
193
+ var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
194
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
195
+ var a = this.match.split(/(?:\r\n?|\n)/g);
196
+ 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);
197
+ var g = this.yylloc.range;
198
+ return this.yylloc = {
199
+ first_line: this.yylloc.first_line,
200
+ last_line: this.yylineno + 1,
201
+ first_column: this.yylloc.first_column,
202
+ 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
203
+ }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
204
+ }, "unput"),
205
+ // When called from action, caches matched text and appends it on next action
206
+ more: /* @__PURE__ */ l(function() {
207
+ return this._more = !0, this;
208
+ }, "more"),
209
+ // 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.
210
+ reject: /* @__PURE__ */ l(function() {
211
+ if (this.options.backtrack_lexer)
212
+ this._backtrack = !0;
213
+ else
214
+ 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).
215
+ ` + this.showPosition(), {
216
+ text: "",
217
+ token: null,
218
+ line: this.yylineno
219
+ });
220
+ return this;
221
+ }, "reject"),
222
+ // retain first n characters of the match
223
+ less: /* @__PURE__ */ l(function(s) {
224
+ this.unput(this.match.slice(s));
225
+ }, "less"),
226
+ // displays already matched input, i.e. for error messages
227
+ pastInput: /* @__PURE__ */ l(function() {
228
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
229
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
230
+ }, "pastInput"),
231
+ // displays upcoming input, i.e. for error messages
232
+ upcomingInput: /* @__PURE__ */ l(function() {
233
+ var s = this.match;
234
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
235
+ }, "upcomingInput"),
236
+ // displays the character position where the lexing error occurred, i.e. for error messages
237
+ showPosition: /* @__PURE__ */ l(function() {
238
+ var s = this.pastInput(), i = new Array(s.length + 1).join("-");
239
+ return s + this.upcomingInput() + `
240
+ ` + i + "^";
241
+ }, "showPosition"),
242
+ // test the lexed token: return FALSE when not a match, otherwise return token
243
+ test_match: /* @__PURE__ */ l(function(s, i) {
244
+ var o, a, g;
245
+ if (this.options.backtrack_lexer && (g = {
246
+ yylineno: this.yylineno,
247
+ yylloc: {
248
+ first_line: this.yylloc.first_line,
249
+ last_line: this.last_line,
250
+ first_column: this.yylloc.first_column,
251
+ last_column: this.yylloc.last_column
252
+ },
253
+ yytext: this.yytext,
254
+ match: this.match,
255
+ matches: this.matches,
256
+ matched: this.matched,
257
+ yyleng: this.yyleng,
258
+ offset: this.offset,
259
+ _more: this._more,
260
+ _input: this._input,
261
+ yy: this.yy,
262
+ conditionStack: this.conditionStack.slice(0),
263
+ done: this.done
264
+ }, 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 = {
265
+ first_line: this.yylloc.last_line,
266
+ last_line: this.yylineno + 1,
267
+ first_column: this.yylloc.last_column,
268
+ last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
269
+ }, 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 = !1, this._backtrack = !1, 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 = !1), o)
270
+ return o;
271
+ if (this._backtrack) {
272
+ for (var r in g)
273
+ this[r] = g[r];
274
+ return !1;
275
+ }
276
+ return !1;
277
+ }, "test_match"),
278
+ // return next match in input
279
+ next: /* @__PURE__ */ l(function() {
280
+ if (this.done)
281
+ return this.EOF;
282
+ this._input || (this.done = !0);
283
+ var s, i, o, a;
284
+ this._more || (this.yytext = "", this.match = "");
285
+ for (var g = this._currentRules(), r = 0; r < g.length; r++)
286
+ if (o = this._input.match(this.rules[g[r]]), o && (!i || o[0].length > i[0].length)) {
287
+ if (i = o, a = r, this.options.backtrack_lexer) {
288
+ if (s = this.test_match(o, g[r]), s !== !1)
289
+ return s;
290
+ if (this._backtrack) {
291
+ i = !1;
292
+ continue;
293
+ } else
294
+ return !1;
295
+ } else if (!this.options.flex)
296
+ break;
297
+ }
298
+ return i ? (s = this.test_match(i, g[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
299
+ ` + this.showPosition(), {
300
+ text: "",
301
+ token: null,
302
+ line: this.yylineno
303
+ });
304
+ }, "next"),
305
+ // return next match that has a token
306
+ lex: /* @__PURE__ */ l(function() {
307
+ var i = this.next();
308
+ return i || this.lex();
309
+ }, "lex"),
310
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
311
+ begin: /* @__PURE__ */ l(function(i) {
312
+ this.conditionStack.push(i);
313
+ }, "begin"),
314
+ // pop the previously active lexer condition state off the condition stack
315
+ popState: /* @__PURE__ */ l(function() {
316
+ var i = this.conditionStack.length - 1;
317
+ return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
318
+ }, "popState"),
319
+ // produce the lexer rule set which is active for the currently active lexer condition state
320
+ _currentRules: /* @__PURE__ */ l(function() {
321
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
322
+ }, "_currentRules"),
323
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
324
+ topState: /* @__PURE__ */ l(function(i) {
325
+ return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
326
+ }, "topState"),
327
+ // alias for begin(condition)
328
+ pushState: /* @__PURE__ */ l(function(i) {
329
+ this.begin(i);
330
+ }, "pushState"),
331
+ // return the number of states currently on the stack
332
+ stateStackSize: /* @__PURE__ */ l(function() {
333
+ return this.conditionStack.length;
334
+ }, "stateStackSize"),
335
+ options: { "case-insensitive": !0 },
336
+ performAction: /* @__PURE__ */ l(function(i, o, a, g) {
337
+ switch (a) {
338
+ case 0:
339
+ return i.getLogger().trace("Found comment", o.yytext), 6;
340
+ case 1:
341
+ return 8;
342
+ case 2:
343
+ this.begin("CLASS");
344
+ break;
345
+ case 3:
346
+ return this.popState(), 16;
347
+ case 4:
348
+ this.popState();
349
+ break;
350
+ case 5:
351
+ i.getLogger().trace("Begin icon"), this.begin("ICON");
352
+ break;
353
+ case 6:
354
+ return i.getLogger().trace("SPACELINE"), 6;
355
+ case 7:
356
+ return 7;
357
+ case 8:
358
+ return 15;
359
+ case 9:
360
+ i.getLogger().trace("end icon"), this.popState();
361
+ break;
362
+ case 10:
363
+ return i.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
364
+ case 11:
365
+ return i.getLogger().trace("Cloud"), this.begin("NODE"), 19;
366
+ case 12:
367
+ return i.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
368
+ case 13:
369
+ return i.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
370
+ case 14:
371
+ return this.begin("NODE"), 19;
372
+ case 15:
373
+ return this.begin("NODE"), 19;
374
+ case 16:
375
+ return this.begin("NODE"), 19;
376
+ case 17:
377
+ return this.begin("NODE"), 19;
378
+ case 18:
379
+ return 13;
380
+ case 19:
381
+ return 22;
382
+ case 20:
383
+ return 11;
384
+ case 21:
385
+ this.begin("NSTR2");
386
+ break;
387
+ case 22:
388
+ return "NODE_DESCR";
389
+ case 23:
390
+ this.popState();
391
+ break;
392
+ case 24:
393
+ i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
394
+ break;
395
+ case 25:
396
+ return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
397
+ case 26:
398
+ this.popState();
399
+ break;
400
+ case 27:
401
+ return this.popState(), i.getLogger().trace("node end ))"), "NODE_DEND";
402
+ case 28:
403
+ return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
404
+ case 29:
405
+ return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
406
+ case 30:
407
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
408
+ case 31:
409
+ return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
410
+ case 32:
411
+ return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
412
+ case 33:
413
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
414
+ case 34:
415
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
416
+ case 35:
417
+ return i.getLogger().trace("Long description:", o.yytext), 20;
418
+ case 36:
419
+ return i.getLogger().trace("Long description:", o.yytext), 20;
420
+ }
421
+ }, "anonymous"),
422
+ 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],
423
+ conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
424
+ };
425
+ return x;
426
+ })();
427
+ F.lexer = se;
428
+ function A() {
429
+ this.yy = {};
430
+ }
431
+ return l(A, "Parser"), A.prototype = F, F.Parser = A, new A();
432
+ })();
433
+ X.parser = X;
434
+ var De = X, L = {
435
+ DEFAULT: 0,
436
+ NO_BORDER: 0,
437
+ ROUNDED_RECT: 1,
438
+ RECT: 2,
439
+ CIRCLE: 3,
440
+ CLOUD: 4,
441
+ BANG: 5,
442
+ HEXAGON: 6
443
+ }, C, Ne = (C = class {
444
+ constructor() {
445
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = L, 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);
446
+ }
447
+ clear() {
448
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
449
+ }
450
+ getParent(e) {
451
+ for (let n = this.nodes.length - 1; n >= 0; n--)
452
+ if (this.nodes[n].level < e)
453
+ return this.nodes[n];
454
+ return null;
455
+ }
456
+ getMindmap() {
457
+ return this.nodes.length > 0 ? this.nodes[0] : null;
458
+ }
459
+ addNode(e, n, c, f) {
460
+ I.info("addNode", e, n, c, f);
461
+ let h = !1;
462
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
463
+ const p = W();
464
+ let m = p.mindmap?.padding ?? B.mindmap.padding;
465
+ switch (f) {
466
+ case this.nodeType.ROUNDED_RECT:
467
+ case this.nodeType.RECT:
468
+ case this.nodeType.HEXAGON:
469
+ m *= 2;
470
+ break;
471
+ }
472
+ const u = {
473
+ id: this.count++,
474
+ nodeId: V(n, p),
475
+ level: e,
476
+ descr: V(c, p),
477
+ type: f,
478
+ children: [],
479
+ width: p.mindmap?.maxNodeWidth ?? B.mindmap.maxNodeWidth,
480
+ padding: m,
481
+ isRoot: h
482
+ }, N = this.getParent(e);
483
+ if (N)
484
+ N.children.push(u), this.nodes.push(u);
485
+ else if (h)
486
+ this.nodes.push(u);
487
+ else
488
+ throw new Error(
489
+ `There can be only one root. No parent could be found for ("${u.descr}")`
490
+ );
491
+ }
492
+ getType(e, n) {
493
+ switch (I.debug("In get type", e, n), e) {
494
+ case "[":
495
+ return this.nodeType.RECT;
496
+ case "(":
497
+ return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
498
+ case "((":
499
+ return this.nodeType.CIRCLE;
500
+ case ")":
501
+ return this.nodeType.CLOUD;
502
+ case "))":
503
+ return this.nodeType.BANG;
504
+ case "{{":
505
+ return this.nodeType.HEXAGON;
506
+ default:
507
+ return this.nodeType.DEFAULT;
508
+ }
509
+ }
510
+ setElementForId(e, n) {
511
+ this.elements[e] = n;
512
+ }
513
+ getElementById(e) {
514
+ return this.elements[e];
515
+ }
516
+ decorateNode(e) {
517
+ if (!e)
518
+ return;
519
+ const n = W(), c = this.nodes[this.nodes.length - 1];
520
+ e.icon && (c.icon = V(e.icon, n)), e.class && (c.class = V(e.class, n));
521
+ }
522
+ type2Str(e) {
523
+ switch (e) {
524
+ case this.nodeType.DEFAULT:
525
+ return "no-border";
526
+ case this.nodeType.RECT:
527
+ return "rect";
528
+ case this.nodeType.ROUNDED_RECT:
529
+ return "rounded-rect";
530
+ case this.nodeType.CIRCLE:
531
+ return "circle";
532
+ case this.nodeType.CLOUD:
533
+ return "cloud";
534
+ case this.nodeType.BANG:
535
+ return "bang";
536
+ case this.nodeType.HEXAGON:
537
+ return "hexgon";
538
+ // cspell: disable-line
539
+ default:
540
+ return "no-border";
541
+ }
542
+ }
543
+ /**
544
+ * Assign section numbers to nodes based on their position relative to root
545
+ * @param node - The mindmap node to process
546
+ * @param sectionNumber - The section number to assign (undefined for root)
547
+ */
548
+ assignSections(e, n) {
549
+ if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
550
+ for (const [c, f] of e.children.entries()) {
551
+ const h = e.level === 0 ? c : n;
552
+ this.assignSections(f, h);
553
+ }
554
+ }
555
+ /**
556
+ * Convert mindmap tree structure to flat array of nodes
557
+ * @param node - The mindmap node to process
558
+ * @param processedNodes - Array to collect processed nodes
559
+ */
560
+ flattenNodes(e, n) {
561
+ const c = ["mindmap-node"];
562
+ e.isRoot === !0 ? c.push("section-root", "section--1") : e.section !== void 0 && c.push(`section-${e.section}`), e.class && c.push(e.class);
563
+ const f = c.join(" "), h = /* @__PURE__ */ l((m) => {
564
+ switch (m) {
565
+ case L.CIRCLE:
566
+ return "mindmapCircle";
567
+ case L.RECT:
568
+ return "rect";
569
+ case L.ROUNDED_RECT:
570
+ return "rounded";
571
+ case L.CLOUD:
572
+ return "cloud";
573
+ case L.BANG:
574
+ return "bang";
575
+ case L.HEXAGON:
576
+ return "hexagon";
577
+ case L.DEFAULT:
578
+ return "defaultMindmapNode";
579
+ case L.NO_BORDER:
580
+ default:
581
+ return "rect";
582
+ }
583
+ }, "getShapeFromType"), p = {
584
+ id: e.id.toString(),
585
+ domId: "node_" + e.id.toString(),
586
+ label: e.descr,
587
+ isGroup: !1,
588
+ shape: h(e.type),
589
+ width: e.width,
590
+ height: e.height ?? 0,
591
+ padding: e.padding,
592
+ cssClasses: f,
593
+ cssStyles: [],
594
+ look: "default",
595
+ icon: e.icon,
596
+ x: e.x,
597
+ y: e.y,
598
+ // Mindmap-specific properties
599
+ level: e.level,
600
+ nodeId: e.nodeId,
601
+ type: e.type,
602
+ section: e.section
603
+ };
604
+ if (n.push(p), e.children)
605
+ for (const m of e.children)
606
+ this.flattenNodes(m, n);
607
+ }
608
+ /**
609
+ * Generate edges from parent-child relationships in mindmap tree
610
+ * @param node - The mindmap node to process
611
+ * @param edges - Array to collect edges
612
+ */
613
+ generateEdges(e, n) {
614
+ if (e.children)
615
+ for (const c of e.children) {
616
+ let f = "edge";
617
+ c.section !== void 0 && (f += ` section-edge-${c.section}`);
618
+ const h = e.level + 1;
619
+ f += ` edge-depth-${h}`;
620
+ const p = {
621
+ id: `edge_${e.id}_${c.id}`,
622
+ start: e.id.toString(),
623
+ end: c.id.toString(),
624
+ type: "normal",
625
+ curve: "basis",
626
+ thickness: "normal",
627
+ look: "default",
628
+ classes: f,
629
+ // Store mindmap-specific data
630
+ depth: e.level,
631
+ section: c.section
632
+ };
633
+ n.push(p), this.generateEdges(c, n);
634
+ }
635
+ }
636
+ /**
637
+ * Get structured data for layout algorithms
638
+ * Following the pattern established by ER diagrams
639
+ * @returns Structured data containing nodes, edges, and config
640
+ */
641
+ getData() {
642
+ const e = this.getMindmap(), n = W(), f = ue().layout !== void 0, h = n;
643
+ if (f || (h.layout = "cose-bilkent"), !e)
644
+ return {
645
+ nodes: [],
646
+ edges: [],
647
+ config: h
648
+ };
649
+ I.debug("getData: mindmapRoot", e, n), this.assignSections(e);
650
+ const p = [], m = [];
651
+ this.flattenNodes(e, p), this.generateEdges(e, m), I.debug(
652
+ `getData: processed ${p.length} nodes and ${m.length} edges`
653
+ );
654
+ const u = /* @__PURE__ */ new Map();
655
+ for (const N of p)
656
+ u.set(N.id, {
657
+ shape: N.shape,
658
+ width: N.width,
659
+ height: N.height,
660
+ padding: N.padding
661
+ });
662
+ return {
663
+ nodes: p,
664
+ edges: m,
665
+ config: h,
666
+ // Store the root node for mindmap-specific layout algorithms
667
+ rootNode: e,
668
+ // Properties required by dagre layout algorithm
669
+ markers: ["point"],
670
+ // Mindmaps don't use markers
671
+ direction: "TB",
672
+ // Top-to-bottom direction for mindmaps
673
+ nodeSpacing: 50,
674
+ // Default spacing between nodes
675
+ rankSpacing: 50,
676
+ // Default spacing between ranks
677
+ // Add shapes for ELK compatibility
678
+ shapes: Object.fromEntries(u),
679
+ // Additional properties that layout algorithms might expect
680
+ type: "mindmap",
681
+ diagramId: "mindmap-" + Se()
682
+ };
683
+ }
684
+ // Expose logger to grammar
685
+ getLogger() {
686
+ return I;
687
+ }
688
+ }, l(C, "MindmapDB"), C), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
689
+ I.debug(`Rendering mindmap diagram
690
+ ` + t);
691
+ const f = c.db, h = f.getData(), p = le(e, h.config.securityLevel);
692
+ h.type = c.type, h.layoutAlgorithm = de(h.config.layout, {
693
+ fallback: "cose-bilkent"
694
+ }), h.diagramId = e, f.getMindmap() && (h.nodes.forEach((u) => {
695
+ u.shape === "rounded" ? (u.radius = 15, u.taper = 15, u.stroke = "none", u.width = 0, u.padding = 15) : u.shape === "circle" ? u.padding = 10 : u.shape === "rect" && (u.width = 0, u.padding = 10);
696
+ }), await ge(h, p), he(
697
+ p,
698
+ h.config.mindmap?.padding ?? B.mindmap.padding,
699
+ "mindmapDiagram",
700
+ h.config.mindmap?.useMaxWidth ?? B.mindmap.useMaxWidth
701
+ ));
702
+ }, "draw"), Le = {
703
+ draw: ke
704
+ }, xe = /* @__PURE__ */ l((t) => {
705
+ let e = "";
706
+ for (let n = 0; n < t.THEME_COLOR_LIMIT; n++)
707
+ t["lineColor" + n] = t["lineColor" + n] || t["cScaleInv" + n], pe(t["lineColor" + n]) ? t["lineColor" + n] = fe(t["lineColor" + n], 20) : t["lineColor" + n] = ye(t["lineColor" + n], 20);
708
+ for (let n = 0; n < t.THEME_COLOR_LIMIT; n++) {
709
+ const c = "" + (17 - 3 * n);
710
+ e += `
711
+ .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
712
+ fill: ${t["cScale" + n]};
713
+ }
714
+ .section-${n - 1} text {
715
+ fill: ${t["cScaleLabel" + n]};
716
+ }
717
+ .node-icon-${n - 1} {
718
+ font-size: 40px;
719
+ color: ${t["cScaleLabel" + n]};
720
+ }
721
+ .section-edge-${n - 1}{
722
+ stroke: ${t["cScale" + n]};
723
+ }
724
+ .edge-depth-${n - 1}{
725
+ stroke-width: ${c};
726
+ }
727
+ .section-${n - 1} line {
728
+ stroke: ${t["cScaleInv" + n]} ;
729
+ stroke-width: 3;
730
+ }
731
+
732
+ .disabled, .disabled circle, .disabled text {
733
+ fill: lightgray;
734
+ }
735
+ .disabled text {
736
+ fill: #efefef;
737
+ }
738
+ `;
739
+ }
740
+ return e;
741
+ }, "genSections"), ve = /* @__PURE__ */ l((t) => `
742
+ .edge {
743
+ stroke-width: 3;
744
+ }
745
+ ${xe(t)}
746
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
747
+ fill: ${t.git0};
748
+ }
749
+ .section-root text {
750
+ fill: ${t.gitBranchLabel0};
751
+ }
752
+ .section-root span {
753
+ color: ${t.gitBranchLabel0};
754
+ }
755
+ .section-2 span {
756
+ color: ${t.gitBranchLabel0};
757
+ }
758
+ .icon-container {
759
+ height:100%;
760
+ display: flex;
761
+ justify-content: center;
762
+ align-items: center;
763
+ }
764
+ .edge {
765
+ fill: none;
766
+ }
767
+ .mindmap-node-label {
768
+ dy: 1em;
769
+ alignment-baseline: middle;
770
+ text-anchor: middle;
771
+ dominant-baseline: middle;
772
+ text-align: center;
773
+ }
774
+ `, "getStyles"), Te = ve, Re = {
775
+ get db() {
776
+ return new Ne();
777
+ },
778
+ renderer: Le,
779
+ parser: De,
780
+ styles: Te
781
+ };
782
+ export {
783
+ Re as diagram
784
+ };