ranui 0.2.0-alpha.7 → 0.2.1-alpha.3

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 (331) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
  5. package/dist/arc-D25LhgTs.cjs +1 -0
  6. package/dist/arc-DRPGof21.js +82 -0
  7. package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
  11. package/dist/array-By5736M5.js +7 -0
  12. package/dist/array-C3cbN3GY.cjs +1 -0
  13. package/dist/arrow-down-Bi5kqUrX.js +12 -0
  14. package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
  15. package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
  16. package/dist/builder.d.ts +4 -4
  17. package/dist/builder.js +39 -30
  18. package/dist/builtin-BkM0LLof.js +416 -0
  19. package/dist/button-D0zcnKnG.js +117 -0
  20. package/dist/button.js +1 -1
  21. package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
  22. package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
  23. package/dist/{card-BVvXX6KM.js → card-CygMndQS.js} +2 -2
  24. package/dist/card.js +1 -1
  25. package/dist/channel-C9WSNwcS.cjs +1 -0
  26. package/dist/channel-k5-UxdcV.js +5 -0
  27. package/dist/{checkbox-BtoX9X2Z.js → checkbox-D5om9aJO.js} +10 -10
  28. package/dist/checkbox.js +1 -1
  29. package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
  30. package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
  31. package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
  32. package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
  33. package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
  34. package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
  35. package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
  36. package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
  37. package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
  38. package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
  39. package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
  40. package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
  41. package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
  42. package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
  43. package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
  44. package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
  45. package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
  46. package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
  47. package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
  48. package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
  49. package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
  50. package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
  51. package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
  52. package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
  53. package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
  54. package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
  55. package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
  56. package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
  57. package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
  58. package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
  59. package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
  60. package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
  61. package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
  62. package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
  63. package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
  64. package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
  65. package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
  66. package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
  67. package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
  68. package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
  69. package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
  70. package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
  71. package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
  72. package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
  73. package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
  74. package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
  75. package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
  76. package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
  77. package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
  78. package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
  79. package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
  80. package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
  81. package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
  82. package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
  83. package/dist/{colorpicker-Dukms7ET.js → colorpicker-qWnaTlYX.js} +9 -10
  84. package/dist/colorpicker.js +1 -1
  85. package/dist/components/colorpicker/index.d.ts +3 -3
  86. package/dist/components/glass/index.d.ts +52 -0
  87. package/dist/components/icon/builtin.d.ts +9 -0
  88. package/dist/components/icon/core-icons.d.ts +13 -0
  89. package/dist/components/icon/index.d.ts +8 -0
  90. package/dist/components/mermaid/index.d.ts +52 -0
  91. package/dist/components/modal/index.d.ts +9 -0
  92. package/dist/components/route/index.d.ts +10 -4
  93. package/dist/components/router/index.d.ts +3 -0
  94. package/dist/content-Rry-U6ir.js +39 -0
  95. package/dist/content.js +5 -0
  96. package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
  97. package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
  98. package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
  99. package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
  100. package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
  101. package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
  102. package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
  103. package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
  104. package/dist/dagre-D1-W1tt6.cjs +1 -0
  105. package/dist/dagre-D8GLTwuf.js +1578 -0
  106. package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
  107. package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
  108. package/dist/defaultLocale-0M_kMcEH.js +184 -0
  109. package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
  110. package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
  111. package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
  112. package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
  113. package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
  114. package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
  115. package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
  116. package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
  117. package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
  118. package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
  119. package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
  120. package/dist/dist-C0Fwsvsq.js +70 -0
  121. package/dist/dist-C20XxSsP.cjs +1 -0
  122. package/dist/{dropdown-BYS1Trdu.js → dropdown-DzdAR1nI.js} +4 -4
  123. package/dist/dropdown.js +1 -1
  124. package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
  125. package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
  126. package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
  127. package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
  128. package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
  129. package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
  130. package/dist/factory-BkvRcCOx.js +482 -0
  131. package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
  132. package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
  133. package/dist/{form-BsB5JhS4.js → form-CUJpeQ7Q.js} +5 -5
  134. package/dist/form.js +1 -1
  135. package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
  136. package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
  137. package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
  138. package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
  139. package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
  140. package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
  141. package/dist/glass-Bj1Zf8Hy.js +115 -0
  142. package/dist/glass.js +5 -0
  143. package/dist/graphlib-CCKThIKP.js +1104 -0
  144. package/dist/graphlib-Du-578Js.cjs +1 -0
  145. package/dist/{icon-pfolda2m.js → icon-CtlZJISZ.js} +110 -21
  146. package/dist/icon.js +4 -3
  147. package/dist/icons.js +5 -0
  148. package/dist/iife/button.iife.js +1 -1
  149. package/dist/iife/card.iife.js +1 -1
  150. package/dist/iife/checkbox.iife.js +1 -1
  151. package/dist/iife/colorpicker.iife.js +2 -2
  152. package/dist/iife/content.iife.js +1 -0
  153. package/dist/iife/dropdown.iife.js +1 -1
  154. package/dist/iife/form.iife.js +1 -1
  155. package/dist/iife/glass.iife.js +1 -0
  156. package/dist/iife/icon.iife.js +1 -1
  157. package/dist/iife/image.iife.js +1 -1
  158. package/dist/iife/input.iife.js +1 -1
  159. package/dist/iife/loading.iife.js +1 -1
  160. package/dist/iife/math.iife.js +14 -14
  161. package/dist/iife/mermaid.iife.js +3535 -0
  162. package/dist/iife/message.iife.js +1 -1
  163. package/dist/iife/modal.iife.js +1 -1
  164. package/dist/iife/player.iife.js +8 -8
  165. package/dist/iife/popover.iife.js +1 -1
  166. package/dist/iife/progress.iife.js +1 -1
  167. package/dist/iife/radar.iife.js +1 -1
  168. package/dist/iife/route.iife.js +1 -1
  169. package/dist/iife/router.iife.js +1 -1
  170. package/dist/iife/scratch.iife.js +1 -1
  171. package/dist/iife/section.iife.js +1 -1
  172. package/dist/iife/select.iife.js +2 -2
  173. package/dist/iife/skeleton.iife.js +1 -1
  174. package/dist/iife/tab.iife.js +1 -1
  175. package/dist/iife/tabpane.iife.js +1 -1
  176. package/dist/{image-BXpKQ9sU.js → image-ILZNlaGc.js} +4 -4
  177. package/dist/image.js +1 -1
  178. package/dist/index.cjs +257 -23
  179. package/dist/index.d.ts +11 -1
  180. package/dist/index.iife.js +3842 -74
  181. package/dist/index.js +86 -78
  182. package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
  183. package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
  184. package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
  185. package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
  186. package/dist/init-1VpIn1S3.js +16 -0
  187. package/dist/init-CbDwVtpO.cjs +1 -0
  188. package/dist/{input-BMMM60e6.js → input-CDH6zY9I.js} +6 -6
  189. package/dist/input.js +1 -1
  190. package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
  191. package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
  192. package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
  193. package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
  194. package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
  195. package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
  196. package/dist/katex-Cq3Y8cmK.cjs +257 -0
  197. package/dist/katex-Pg2EqTH0.js +23485 -0
  198. package/dist/line-BIPmUVxO.js +33 -0
  199. package/dist/line-CAB5QHC6.cjs +1 -0
  200. package/dist/linear-B2AM4ZBe.js +259 -0
  201. package/dist/linear-CSAfNEpl.cjs +1 -0
  202. package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
  203. package/dist/link.js +1 -1
  204. package/dist/{loading-BScjyeVm.js → loading-DJWGih1g.js} +4 -4
  205. package/dist/loading.js +1 -1
  206. package/dist/map-BC2bk_rV.cjs +1 -0
  207. package/dist/map-DMSWkcq6.js +208 -0
  208. package/dist/{math-IjzOAwnA.js → math-DRmkEDSQ.js} +4 -4
  209. package/dist/math.js +1 -1
  210. package/dist/mermaid-CMhm7npE.js +261 -0
  211. package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
  212. package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
  213. package/dist/mermaid.core-B2d5lQW2.js +1085 -0
  214. package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
  215. package/dist/mermaid.js +5 -0
  216. package/dist/{message-CLpuP8HY.js → message-BpYJBvYn.js} +36 -51
  217. package/dist/message.js +1 -1
  218. package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
  219. package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
  220. package/dist/{modal-DOTpABRe.js → modal-BeQlDYDP.js} +40 -24
  221. package/dist/modal.js +1 -1
  222. package/dist/ordinal-BMN81JG2.js +64 -0
  223. package/dist/ordinal-BplLHIij.cjs +1 -0
  224. package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
  225. package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
  226. package/dist/path-Bja5PoYn.js +82 -0
  227. package/dist/path-DmfWsuKi.cjs +1 -0
  228. package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
  229. package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
  230. package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
  231. package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
  232. package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
  233. package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
  234. package/dist/{player-5olrw-qB.js → player-CQ4e3Yeo.js} +196 -195
  235. package/dist/player.js +1 -1
  236. package/dist/{popover-DRUQjdPs.js → popover-eZMnL1F3.js} +22 -54
  237. package/dist/popover.js +1 -1
  238. package/dist/{progress-BIEXYYd2.js → progress-DyHgW4Ep.js} +5 -5
  239. package/dist/progress.js +1 -1
  240. package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
  241. package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
  242. package/dist/{radar-DAF95_Mj.js → radar-D21Rccap.js} +5 -5
  243. package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
  244. package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
  245. package/dist/radar.js +1 -1
  246. package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
  247. package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
  248. package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
  249. package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
  250. package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
  251. package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
  252. package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
  253. package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
  254. package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
  255. package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
  256. package/dist/ranui.css +1 -1
  257. package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
  258. package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
  259. package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
  260. package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
  261. package/dist/rough.esm-BWe9E0Nz.js +1387 -0
  262. package/dist/rough.esm-BfSi6CZE.cjs +1 -0
  263. package/dist/route-pR5P4ann.js +116 -0
  264. package/dist/route.js +1 -1
  265. package/dist/{router-B9rCrWXm.js → router-CewzSH7O.js} +23 -18
  266. package/dist/router.js +1 -1
  267. package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
  268. package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
  269. package/dist/{scratch-QlPyy1f4.js → scratch-BFVsgl-7.js} +2 -2
  270. package/dist/scratch.js +1 -1
  271. package/dist/{section-D0qMm9KM.js → section-DSPCsIxv.js} +2 -2
  272. package/dist/section.js +1 -1
  273. package/dist/{select-aAaWoveE.js → select-B58nMfB1.js} +16 -23
  274. package/dist/select.js +1 -1
  275. package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
  276. package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
  277. package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
  278. package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
  279. package/dist/{skeleton-CFqQmKyt.js → skeleton-DoHYMsTn.js} +5 -5
  280. package/dist/skeleton.js +1 -1
  281. package/dist/src-C9EhKhbk.cjs +1 -0
  282. package/dist/src-DtRLxcYO.js +2104 -0
  283. package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
  284. package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
  285. package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
  286. package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
  287. package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
  288. package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
  289. package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
  290. package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
  291. package/dist/{tab-CiF2YPck.js → tab-BRPdZ9Ws.js} +5 -5
  292. package/dist/tab.js +1 -1
  293. package/dist/{tabpane-B-m3xwqu.js → tabpane-Owf72hw_.js} +5 -5
  294. package/dist/tabpane.js +1 -1
  295. package/dist/test/unit/icon.builtin.test.d.ts +1 -0
  296. package/dist/test/unit/utils.colorpicker.reconnect.test.d.ts +1 -0
  297. package/dist/test/unit/utils.route.lazy.test.d.ts +1 -0
  298. package/dist/test/unit/utils.router.match.test.d.ts +1 -0
  299. package/dist/test/unit/utils.signal.owner.test.d.ts +1 -0
  300. package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
  301. package/dist/theme-switch.js +1 -1
  302. package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
  303. package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
  304. package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
  305. package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
  306. package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
  307. package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
  308. package/dist/utils/builder/core.d.ts +153 -16
  309. package/dist/utils/builder/factory.d.ts +1 -1
  310. package/dist/utils/builder/index.d.ts +3 -3
  311. package/dist/utils/builder/signal.d.ts +93 -64
  312. package/dist/utils/router/index.d.ts +13 -3
  313. package/dist/utils/router.js +95 -54
  314. package/dist/utils/theme.d.ts +1 -1
  315. package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
  316. package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
  317. package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
  318. package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
  319. package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
  320. package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
  321. package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
  322. package/dist/warning-circle-fill-Cz0qu7AH.js +23 -0
  323. package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
  324. package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
  325. package/docs/BUILDER.md +383 -0
  326. package/docs/COMPONENTS.md +21 -3
  327. package/package.json +31 -3
  328. package/dist/button-Be_uHDZG.js +0 -117
  329. package/dist/factory-BdsO0dEW.js +0 -165
  330. package/dist/route-MQZpn2BP.js +0 -88
  331. package/dist/signal-CSSZxlK5.js +0 -57
@@ -0,0 +1,1070 @@
1
+ import { n as d } from "./chunk-Y2CYZVJY-0JxdZxki.js";
2
+ import { m as I } from "./src-DtRLxcYO.js";
3
+ import { b as ae, et as ce, f as F, k as le, rt as he, tt as de, x as $, z as V } from "./chunk-WYO6CB5R-DDHkKowO.js";
4
+ import "./chunk-ICXQ74PX-DR8rL-xF.js";
5
+ import "./chunk-HOUHSVGY-DRQcQeMT.js";
6
+ import "./chunk-Q4XR5HBZ-3BHjjc9u.js";
7
+ import "./chunk-7BUUIJ7U-9hiBbc7O.js";
8
+ import "./chunk-OGEWGWER-BV51ll2w.js";
9
+ import { t as ge } from "./chunk-XXDRQBXY-BB1i_53q.js";
10
+ import { t as ue } from "./chunk-VR4S4FIN-CJi5okl4.js";
11
+ import "./chunk-C7G6YPKG-CA-DNpvI.js";
12
+ import "./chunk-ZGVPDNZ5-6uMbTJXy.js";
13
+ import "./chunk-52WLFC77-wpL7en7e.js";
14
+ import { r as pe, t as me } from "./chunk-FWX5IMBZ-DZ5VYvm5.js";
15
+ var _ = [];
16
+ for (let e = 0; e < 256; ++e) _.push((e + 256).toString(16).slice(1));
17
+ function fe(e, n = 0) {
18
+ return (_[e[n + 0]] + _[e[n + 1]] + _[e[n + 2]] + _[e[n + 3]] + "-" + _[e[n + 4]] + _[e[n + 5]] + "-" + _[e[n + 6]] + _[e[n + 7]] + "-" + _[e[n + 8]] + _[e[n + 9]] + "-" + _[e[n + 10]] + _[e[n + 11]] + _[e[n + 12]] + _[e[n + 13]] + _[e[n + 14]] + _[e[n + 15]]).toLowerCase();
19
+ }
20
+ var ye = /* @__PURE__ */ new Uint8Array(16);
21
+ function Ee() {
22
+ return crypto.getRandomValues(ye);
23
+ }
24
+ function _e(e, n, c) {
25
+ return !n && !e && crypto.randomUUID ? crypto.randomUUID() : ke(e, n, c);
26
+ }
27
+ function ke(e, n, c) {
28
+ e = e || {};
29
+ const o = e.random ?? e.rng?.() ?? Ee();
30
+ if (o.length < 16) throw new Error("Random bytes length must be >= 16");
31
+ if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, n) {
32
+ if (c = c || 0, c < 0 || c + 16 > n.length) throw new RangeError(`UUID byte range ${c}:${c + 15} is out of buffer bounds`);
33
+ for (let t = 0; t < 16; ++t) n[c + t] = o[t];
34
+ return n;
35
+ }
36
+ return fe(o);
37
+ }
38
+ var Y = (function() {
39
+ var e = /* @__PURE__ */ d(function(s, i, h, a) {
40
+ for (h = h || {}, a = s.length; a--; h[s[a]] = i) ;
41
+ return h;
42
+ }, "o"), n = [1, 4], c = [1, 13], o = [1, 12], t = [1, 15], g = [1, 16], m = [1, 20], p = [1, 19], x = [
43
+ 6,
44
+ 7,
45
+ 8
46
+ ], C = [1, 26], w = [1, 24], y = [1, 25], k = [
47
+ 6,
48
+ 7,
49
+ 11
50
+ ], q = [
51
+ 1,
52
+ 6,
53
+ 13,
54
+ 15,
55
+ 16,
56
+ 19,
57
+ 22
58
+ ], J = [1, 33], K = [1, 34], R = [
59
+ 1,
60
+ 6,
61
+ 7,
62
+ 11,
63
+ 13,
64
+ 15,
65
+ 16,
66
+ 19,
67
+ 22
68
+ ], G = {
69
+ trace: /* @__PURE__ */ d(function() {
70
+ }, "trace"),
71
+ yy: {},
72
+ symbols_: {
73
+ error: 2,
74
+ start: 3,
75
+ mindMap: 4,
76
+ spaceLines: 5,
77
+ SPACELINE: 6,
78
+ NL: 7,
79
+ MINDMAP: 8,
80
+ document: 9,
81
+ stop: 10,
82
+ EOF: 11,
83
+ statement: 12,
84
+ SPACELIST: 13,
85
+ node: 14,
86
+ ICON: 15,
87
+ CLASS: 16,
88
+ nodeWithId: 17,
89
+ nodeWithoutId: 18,
90
+ NODE_DSTART: 19,
91
+ NODE_DESCR: 20,
92
+ NODE_DEND: 21,
93
+ NODE_ID: 22,
94
+ $accept: 0,
95
+ $end: 1
96
+ },
97
+ terminals_: {
98
+ 2: "error",
99
+ 6: "SPACELINE",
100
+ 7: "NL",
101
+ 8: "MINDMAP",
102
+ 11: "EOF",
103
+ 13: "SPACELIST",
104
+ 15: "ICON",
105
+ 16: "CLASS",
106
+ 19: "NODE_DSTART",
107
+ 20: "NODE_DESCR",
108
+ 21: "NODE_DEND",
109
+ 22: "NODE_ID"
110
+ },
111
+ productions_: [
112
+ 0,
113
+ [3, 1],
114
+ [3, 2],
115
+ [5, 1],
116
+ [5, 2],
117
+ [5, 2],
118
+ [4, 2],
119
+ [4, 3],
120
+ [10, 1],
121
+ [10, 1],
122
+ [10, 1],
123
+ [10, 2],
124
+ [10, 2],
125
+ [9, 3],
126
+ [9, 2],
127
+ [12, 2],
128
+ [12, 2],
129
+ [12, 2],
130
+ [12, 1],
131
+ [12, 1],
132
+ [12, 1],
133
+ [12, 1],
134
+ [12, 1],
135
+ [14, 1],
136
+ [14, 1],
137
+ [18, 3],
138
+ [17, 1],
139
+ [17, 4]
140
+ ],
141
+ performAction: /* @__PURE__ */ d(function(i, h, a, l, f, r, A) {
142
+ var u = r.length - 1;
143
+ switch (f) {
144
+ case 6:
145
+ case 7:
146
+ return l;
147
+ case 8:
148
+ l.getLogger().trace("Stop NL ");
149
+ break;
150
+ case 9:
151
+ l.getLogger().trace("Stop EOF ");
152
+ break;
153
+ case 11:
154
+ l.getLogger().trace("Stop NL2 ");
155
+ break;
156
+ case 12:
157
+ l.getLogger().trace("Stop EOF2 ");
158
+ break;
159
+ case 15:
160
+ l.getLogger().info("Node: ", r[u].id), l.addNode(r[u - 1].length, r[u].id, r[u].descr, r[u].type);
161
+ break;
162
+ case 16:
163
+ l.getLogger().trace("Icon: ", r[u]), l.decorateNode({ icon: r[u] });
164
+ break;
165
+ case 17:
166
+ case 21:
167
+ l.decorateNode({ class: r[u] });
168
+ break;
169
+ case 18:
170
+ l.getLogger().trace("SPACELIST");
171
+ break;
172
+ case 19:
173
+ l.getLogger().trace("Node: ", r[u].id), l.addNode(0, r[u].id, r[u].descr, r[u].type);
174
+ break;
175
+ case 20:
176
+ l.decorateNode({ icon: r[u] });
177
+ break;
178
+ case 25:
179
+ l.getLogger().trace("node found ..", r[u - 2]), this.$ = {
180
+ id: r[u - 1],
181
+ descr: r[u - 1],
182
+ type: l.getType(r[u - 2], r[u])
183
+ };
184
+ break;
185
+ case 26:
186
+ this.$ = {
187
+ id: r[u],
188
+ descr: r[u],
189
+ type: l.nodeType.DEFAULT
190
+ };
191
+ break;
192
+ case 27:
193
+ l.getLogger().trace("node found ..", r[u - 3]), this.$ = {
194
+ id: r[u - 3],
195
+ descr: r[u - 1],
196
+ type: l.getType(r[u - 2], r[u])
197
+ };
198
+ break;
199
+ }
200
+ }, "anonymous"),
201
+ table: [
202
+ {
203
+ 3: 1,
204
+ 4: 2,
205
+ 5: 3,
206
+ 6: [1, 5],
207
+ 8: n
208
+ },
209
+ { 1: [3] },
210
+ { 1: [2, 1] },
211
+ {
212
+ 4: 6,
213
+ 6: [1, 7],
214
+ 7: [1, 8],
215
+ 8: n
216
+ },
217
+ {
218
+ 6: c,
219
+ 7: [1, 10],
220
+ 9: 9,
221
+ 12: 11,
222
+ 13: o,
223
+ 14: 14,
224
+ 15: t,
225
+ 16: g,
226
+ 17: 17,
227
+ 18: 18,
228
+ 19: m,
229
+ 22: p
230
+ },
231
+ e(x, [2, 3]),
232
+ { 1: [2, 2] },
233
+ e(x, [2, 4]),
234
+ e(x, [2, 5]),
235
+ {
236
+ 1: [2, 6],
237
+ 6: c,
238
+ 12: 21,
239
+ 13: o,
240
+ 14: 14,
241
+ 15: t,
242
+ 16: g,
243
+ 17: 17,
244
+ 18: 18,
245
+ 19: m,
246
+ 22: p
247
+ },
248
+ {
249
+ 6: c,
250
+ 9: 22,
251
+ 12: 11,
252
+ 13: o,
253
+ 14: 14,
254
+ 15: t,
255
+ 16: g,
256
+ 17: 17,
257
+ 18: 18,
258
+ 19: m,
259
+ 22: p
260
+ },
261
+ {
262
+ 6: C,
263
+ 7: w,
264
+ 10: 23,
265
+ 11: y
266
+ },
267
+ e(k, [2, 22], {
268
+ 17: 17,
269
+ 18: 18,
270
+ 14: 27,
271
+ 15: [1, 28],
272
+ 16: [1, 29],
273
+ 19: m,
274
+ 22: p
275
+ }),
276
+ e(k, [2, 18]),
277
+ e(k, [2, 19]),
278
+ e(k, [2, 20]),
279
+ e(k, [2, 21]),
280
+ e(k, [2, 23]),
281
+ e(k, [2, 24]),
282
+ e(k, [2, 26], { 19: [1, 30] }),
283
+ { 20: [1, 31] },
284
+ {
285
+ 6: C,
286
+ 7: w,
287
+ 10: 32,
288
+ 11: y
289
+ },
290
+ {
291
+ 1: [2, 7],
292
+ 6: c,
293
+ 12: 21,
294
+ 13: o,
295
+ 14: 14,
296
+ 15: t,
297
+ 16: g,
298
+ 17: 17,
299
+ 18: 18,
300
+ 19: m,
301
+ 22: p
302
+ },
303
+ e(q, [2, 14], {
304
+ 7: J,
305
+ 11: K
306
+ }),
307
+ e(R, [2, 8]),
308
+ e(R, [2, 9]),
309
+ e(R, [2, 10]),
310
+ e(k, [2, 15]),
311
+ e(k, [2, 16]),
312
+ e(k, [2, 17]),
313
+ { 20: [1, 35] },
314
+ { 21: [1, 36] },
315
+ e(q, [2, 13], {
316
+ 7: J,
317
+ 11: K
318
+ }),
319
+ e(R, [2, 11]),
320
+ e(R, [2, 12]),
321
+ { 21: [1, 37] },
322
+ e(k, [2, 25]),
323
+ e(k, [2, 27])
324
+ ],
325
+ defaultActions: {
326
+ 2: [2, 1],
327
+ 6: [2, 2]
328
+ },
329
+ parseError: /* @__PURE__ */ d(function(i, h) {
330
+ if (h.recoverable) this.trace(i);
331
+ else {
332
+ var a = new Error(i);
333
+ throw a.hash = h, a;
334
+ }
335
+ }, "parseError"),
336
+ parse: /* @__PURE__ */ d(function(i) {
337
+ var h = this, a = [0], l = [], f = [null], r = [], A = this.table, u = "", P = 0, Q = 0, Z = 0, ie = 2, ee = 1, se = r.slice.call(arguments, 1), E = Object.create(this.lexer), T = { yy: {} };
338
+ for (var j in this.yy) Object.prototype.hasOwnProperty.call(this.yy, j) && (T.yy[j] = this.yy[j]);
339
+ E.setInput(i, T.yy), T.yy.lexer = E, T.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
340
+ var H = E.yylloc;
341
+ r.push(H);
342
+ var re = E.options && E.options.ranges;
343
+ typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
344
+ function oe(N) {
345
+ a.length = a.length - 2 * N, f.length = f.length - N, r.length = r.length - N;
346
+ }
347
+ d(oe, "popStack");
348
+ function te() {
349
+ var N = l.pop() || E.lex() || ee;
350
+ return typeof N != "number" && (N instanceof Array && (l = N, N = l.pop()), N = h.symbols_[N] || N), N;
351
+ }
352
+ d(te, "lex");
353
+ for (var b, z, v, S, W, O = {}, U, D, ne, M; ; ) {
354
+ if (v = a[a.length - 1], this.defaultActions[v] ? S = this.defaultActions[v] : ((b === null || typeof b > "u") && (b = te()), S = A[v] && A[v][b]), typeof S > "u" || !S.length || !S[0]) {
355
+ var X = "";
356
+ M = [];
357
+ for (U in A[v]) this.terminals_[U] && U > ie && M.push("'" + this.terminals_[U] + "'");
358
+ E.showPosition ? X = "Parse error on line " + (P + 1) + `:
359
+ ` + E.showPosition() + `
360
+ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : X = "Parse error on line " + (P + 1) + ": Unexpected " + (b == ee ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(X, {
361
+ text: E.match,
362
+ token: this.terminals_[b] || b,
363
+ line: E.yylineno,
364
+ loc: H,
365
+ expected: M
366
+ });
367
+ }
368
+ if (S[0] instanceof Array && S.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + b);
369
+ switch (S[0]) {
370
+ case 1:
371
+ a.push(b), f.push(E.yytext), r.push(E.yylloc), a.push(S[1]), b = null, z ? (b = z, z = null) : (Q = E.yyleng, u = E.yytext, P = E.yylineno, H = E.yylloc, Z > 0 && Z--);
372
+ break;
373
+ case 2:
374
+ if (D = this.productions_[S[1]][1], O.$ = f[f.length - D], O._$ = {
375
+ first_line: r[r.length - (D || 1)].first_line,
376
+ last_line: r[r.length - 1].last_line,
377
+ first_column: r[r.length - (D || 1)].first_column,
378
+ last_column: r[r.length - 1].last_column
379
+ }, re && (O._$.range = [r[r.length - (D || 1)].range[0], r[r.length - 1].range[1]]), W = this.performAction.apply(O, [
380
+ u,
381
+ Q,
382
+ P,
383
+ T.yy,
384
+ S[1],
385
+ f,
386
+ r
387
+ ].concat(se)), typeof W < "u") return W;
388
+ D && (a = a.slice(0, -1 * D * 2), f = f.slice(0, -1 * D), r = r.slice(0, -1 * D)), a.push(this.productions_[S[1]][0]), f.push(O.$), r.push(O._$), ne = A[a[a.length - 2]][a[a.length - 1]], a.push(ne);
389
+ break;
390
+ case 3:
391
+ return !0;
392
+ }
393
+ }
394
+ return !0;
395
+ }, "parse")
396
+ };
397
+ G.lexer = /* @__PURE__ */ (function() {
398
+ return {
399
+ EOF: 1,
400
+ parseError: /* @__PURE__ */ d(function(i, h) {
401
+ if (this.yy.parser) this.yy.parser.parseError(i, h);
402
+ else throw new Error(i);
403
+ }, "parseError"),
404
+ setInput: /* @__PURE__ */ d(function(s, i) {
405
+ 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 = {
406
+ first_line: 1,
407
+ first_column: 0,
408
+ last_line: 1,
409
+ last_column: 0
410
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
411
+ }, "setInput"),
412
+ input: /* @__PURE__ */ d(function() {
413
+ var s = this._input[0];
414
+ return this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s, s.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
415
+ }, "input"),
416
+ unput: /* @__PURE__ */ d(function(s) {
417
+ var i = s.length, h = s.split(/(?:\r\n?|\n)/g);
418
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
419
+ var a = this.match.split(/(?:\r\n?|\n)/g);
420
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1);
421
+ var l = this.yylloc.range;
422
+ return this.yylloc = {
423
+ first_line: this.yylloc.first_line,
424
+ last_line: this.yylineno + 1,
425
+ first_column: this.yylloc.first_column,
426
+ last_column: h ? (h.length === a.length ? this.yylloc.first_column : 0) + a[a.length - h.length].length - h[0].length : this.yylloc.first_column - i
427
+ }, this.options.ranges && (this.yylloc.range = [l[0], l[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
428
+ }, "unput"),
429
+ more: /* @__PURE__ */ d(function() {
430
+ return this._more = !0, this;
431
+ }, "more"),
432
+ reject: /* @__PURE__ */ d(function() {
433
+ if (this.options.backtrack_lexer) this._backtrack = !0;
434
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
435
+ ` + this.showPosition(), {
436
+ text: "",
437
+ token: null,
438
+ line: this.yylineno
439
+ });
440
+ return this;
441
+ }, "reject"),
442
+ less: /* @__PURE__ */ d(function(s) {
443
+ this.unput(this.match.slice(s));
444
+ }, "less"),
445
+ pastInput: /* @__PURE__ */ d(function() {
446
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
447
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
448
+ }, "pastInput"),
449
+ upcomingInput: /* @__PURE__ */ d(function() {
450
+ var s = this.match;
451
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
452
+ }, "upcomingInput"),
453
+ showPosition: /* @__PURE__ */ d(function() {
454
+ var s = this.pastInput(), i = new Array(s.length + 1).join("-");
455
+ return s + this.upcomingInput() + `
456
+ ` + i + "^";
457
+ }, "showPosition"),
458
+ test_match: /* @__PURE__ */ d(function(s, i) {
459
+ var h, a, l;
460
+ if (this.options.backtrack_lexer && (l = {
461
+ yylineno: this.yylineno,
462
+ yylloc: {
463
+ first_line: this.yylloc.first_line,
464
+ last_line: this.last_line,
465
+ first_column: this.yylloc.first_column,
466
+ last_column: this.yylloc.last_column
467
+ },
468
+ yytext: this.yytext,
469
+ match: this.match,
470
+ matches: this.matches,
471
+ matched: this.matched,
472
+ yyleng: this.yyleng,
473
+ offset: this.offset,
474
+ _more: this._more,
475
+ _input: this._input,
476
+ yy: this.yy,
477
+ conditionStack: this.conditionStack.slice(0),
478
+ done: this.done
479
+ }, this.options.ranges && (l.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
480
+ first_line: this.yylloc.last_line,
481
+ last_line: this.yylineno + 1,
482
+ first_column: this.yylloc.last_column,
483
+ last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
484
+ }, 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], h = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h) return h;
485
+ if (this._backtrack) {
486
+ for (var f in l) this[f] = l[f];
487
+ return !1;
488
+ }
489
+ return !1;
490
+ }, "test_match"),
491
+ next: /* @__PURE__ */ d(function() {
492
+ if (this.done) return this.EOF;
493
+ this._input || (this.done = !0);
494
+ var s, i, h, a;
495
+ this._more || (this.yytext = "", this.match = "");
496
+ for (var l = this._currentRules(), f = 0; f < l.length; f++)
497
+ if (h = this._input.match(this.rules[l[f]]), h && (!i || h[0].length > i[0].length)) {
498
+ if (i = h, a = f, this.options.backtrack_lexer) {
499
+ if (s = this.test_match(h, l[f]), s !== !1) return s;
500
+ if (this._backtrack) {
501
+ i = !1;
502
+ continue;
503
+ } else return !1;
504
+ } else if (!this.options.flex) break;
505
+ }
506
+ return i ? (s = this.test_match(i, l[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
507
+ ` + this.showPosition(), {
508
+ text: "",
509
+ token: null,
510
+ line: this.yylineno
511
+ });
512
+ }, "next"),
513
+ lex: /* @__PURE__ */ d(function() {
514
+ var i = this.next();
515
+ return i || this.lex();
516
+ }, "lex"),
517
+ begin: /* @__PURE__ */ d(function(i) {
518
+ this.conditionStack.push(i);
519
+ }, "begin"),
520
+ popState: /* @__PURE__ */ d(function() {
521
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
522
+ }, "popState"),
523
+ _currentRules: /* @__PURE__ */ d(function() {
524
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
525
+ }, "_currentRules"),
526
+ topState: /* @__PURE__ */ d(function(i) {
527
+ return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
528
+ }, "topState"),
529
+ pushState: /* @__PURE__ */ d(function(i) {
530
+ this.begin(i);
531
+ }, "pushState"),
532
+ stateStackSize: /* @__PURE__ */ d(function() {
533
+ return this.conditionStack.length;
534
+ }, "stateStackSize"),
535
+ options: { "case-insensitive": !0 },
536
+ performAction: /* @__PURE__ */ d(function(i, h, a, l) {
537
+ switch (a) {
538
+ case 0:
539
+ return i.getLogger().trace("Found comment", h.yytext), 6;
540
+ case 1:
541
+ return 8;
542
+ case 2:
543
+ this.begin("CLASS");
544
+ break;
545
+ case 3:
546
+ return this.popState(), 16;
547
+ case 4:
548
+ this.popState();
549
+ break;
550
+ case 5:
551
+ i.getLogger().trace("Begin icon"), this.begin("ICON");
552
+ break;
553
+ case 6:
554
+ return i.getLogger().trace("SPACELINE"), 6;
555
+ case 7:
556
+ return 7;
557
+ case 8:
558
+ return 15;
559
+ case 9:
560
+ i.getLogger().trace("end icon"), this.popState();
561
+ break;
562
+ case 10:
563
+ return i.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
564
+ case 11:
565
+ return i.getLogger().trace("Cloud"), this.begin("NODE"), 19;
566
+ case 12:
567
+ return i.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
568
+ case 13:
569
+ return i.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
570
+ case 14:
571
+ return this.begin("NODE"), 19;
572
+ case 15:
573
+ return this.begin("NODE"), 19;
574
+ case 16:
575
+ return this.begin("NODE"), 19;
576
+ case 17:
577
+ return this.begin("NODE"), 19;
578
+ case 18:
579
+ return 13;
580
+ case 19:
581
+ return 22;
582
+ case 20:
583
+ return 11;
584
+ case 21:
585
+ this.begin("NSTR2");
586
+ break;
587
+ case 22:
588
+ return "NODE_DESCR";
589
+ case 23:
590
+ this.popState();
591
+ break;
592
+ case 24:
593
+ i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
594
+ break;
595
+ case 25:
596
+ return i.getLogger().trace("description:", h.yytext), "NODE_DESCR";
597
+ case 26:
598
+ this.popState();
599
+ break;
600
+ case 27:
601
+ return this.popState(), i.getLogger().trace("node end ))"), "NODE_DEND";
602
+ case 28:
603
+ return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
604
+ case 29:
605
+ return this.popState(), i.getLogger().trace("node end ...", h.yytext), "NODE_DEND";
606
+ case 30:
607
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
608
+ case 31:
609
+ return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
610
+ case 32:
611
+ return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
612
+ case 33:
613
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
614
+ case 34:
615
+ return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
616
+ case 35:
617
+ return i.getLogger().trace("Long description:", h.yytext), 20;
618
+ case 36:
619
+ return i.getLogger().trace("Long description:", h.yytext), 20;
620
+ }
621
+ }, "anonymous"),
622
+ rules: [
623
+ /^(?:\s*%%.*)/i,
624
+ /^(?:mindmap\b)/i,
625
+ /^(?::::)/i,
626
+ /^(?:.+)/i,
627
+ /^(?:\n)/i,
628
+ /^(?:::icon\()/i,
629
+ /^(?:[\s]+[\n])/i,
630
+ /^(?:[\n]+)/i,
631
+ /^(?:[^\)]+)/i,
632
+ /^(?:\))/i,
633
+ /^(?:-\))/i,
634
+ /^(?:\(-)/i,
635
+ /^(?:\)\))/i,
636
+ /^(?:\))/i,
637
+ /^(?:\(\()/i,
638
+ /^(?:\{\{)/i,
639
+ /^(?:\()/i,
640
+ /^(?:\[)/i,
641
+ /^(?:[\s]+)/i,
642
+ /^(?:[^\(\[\n\)\{\}]+)/i,
643
+ /^(?:$)/i,
644
+ /^(?:["][`])/i,
645
+ /^(?:[^`"]+)/i,
646
+ /^(?:[`]["])/i,
647
+ /^(?:["])/i,
648
+ /^(?:[^"]+)/i,
649
+ /^(?:["])/i,
650
+ /^(?:[\)]\))/i,
651
+ /^(?:[\)])/i,
652
+ /^(?:[\]])/i,
653
+ /^(?:\}\})/i,
654
+ /^(?:\(-)/i,
655
+ /^(?:-\))/i,
656
+ /^(?:\(\()/i,
657
+ /^(?:\()/i,
658
+ /^(?:[^\)\]\(\}]+)/i,
659
+ /^(?:.+(?!\(\())/i
660
+ ],
661
+ conditions: {
662
+ CLASS: {
663
+ rules: [3, 4],
664
+ inclusive: !1
665
+ },
666
+ ICON: {
667
+ rules: [8, 9],
668
+ inclusive: !1
669
+ },
670
+ NSTR2: {
671
+ rules: [22, 23],
672
+ inclusive: !1
673
+ },
674
+ NSTR: {
675
+ rules: [25, 26],
676
+ inclusive: !1
677
+ },
678
+ NODE: {
679
+ rules: [
680
+ 21,
681
+ 24,
682
+ 27,
683
+ 28,
684
+ 29,
685
+ 30,
686
+ 31,
687
+ 32,
688
+ 33,
689
+ 34,
690
+ 35,
691
+ 36
692
+ ],
693
+ inclusive: !1
694
+ },
695
+ INITIAL: {
696
+ rules: [
697
+ 0,
698
+ 1,
699
+ 2,
700
+ 5,
701
+ 6,
702
+ 7,
703
+ 10,
704
+ 11,
705
+ 12,
706
+ 13,
707
+ 14,
708
+ 15,
709
+ 16,
710
+ 17,
711
+ 18,
712
+ 19,
713
+ 20
714
+ ],
715
+ inclusive: !0
716
+ }
717
+ }
718
+ };
719
+ })();
720
+ function B() {
721
+ this.yy = {};
722
+ }
723
+ return d(B, "Parser"), B.prototype = G, G.Parser = B, new B();
724
+ })();
725
+ Y.parser = Y;
726
+ var be = Y, Se = 12, L = {
727
+ DEFAULT: 0,
728
+ NO_BORDER: 0,
729
+ ROUNDED_RECT: 1,
730
+ RECT: 2,
731
+ CIRCLE: 3,
732
+ CLOUD: 4,
733
+ BANG: 5,
734
+ HEXAGON: 6
735
+ }, Ne = class {
736
+ constructor() {
737
+ 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);
738
+ }
739
+ static {
740
+ d(this, "MindmapDB");
741
+ }
742
+ clear() {
743
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
744
+ }
745
+ getParent(e) {
746
+ for (let n = this.nodes.length - 1; n >= 0; n--) if (this.nodes[n].level < e) return this.nodes[n];
747
+ return null;
748
+ }
749
+ getMindmap() {
750
+ return this.nodes.length > 0 ? this.nodes[0] : null;
751
+ }
752
+ addNode(e, n, c, o) {
753
+ I.info("addNode", e, n, c, o);
754
+ let t = !1;
755
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, t = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, t = !1);
756
+ const g = $();
757
+ let m = g.mindmap?.padding ?? F.mindmap.padding;
758
+ switch (o) {
759
+ case this.nodeType.ROUNDED_RECT:
760
+ case this.nodeType.RECT:
761
+ case this.nodeType.HEXAGON:
762
+ m *= 2;
763
+ break;
764
+ }
765
+ const p = {
766
+ id: this.count++,
767
+ nodeId: V(n, g),
768
+ level: e,
769
+ descr: V(c, g),
770
+ type: o,
771
+ children: [],
772
+ width: g.mindmap?.maxNodeWidth ?? F.mindmap.maxNodeWidth,
773
+ padding: m,
774
+ isRoot: t
775
+ }, x = this.getParent(e);
776
+ if (x)
777
+ x.children.push(p), this.nodes.push(p);
778
+ else if (t) this.nodes.push(p);
779
+ else throw new Error(`There can be only one root. No parent could be found for ("${p.descr}")`);
780
+ }
781
+ getType(e, n) {
782
+ switch (I.debug("In get type", e, n), e) {
783
+ case "[":
784
+ return this.nodeType.RECT;
785
+ case "(":
786
+ return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
787
+ case "((":
788
+ return this.nodeType.CIRCLE;
789
+ case ")":
790
+ return this.nodeType.CLOUD;
791
+ case "))":
792
+ return this.nodeType.BANG;
793
+ case "{{":
794
+ return this.nodeType.HEXAGON;
795
+ default:
796
+ return this.nodeType.DEFAULT;
797
+ }
798
+ }
799
+ setElementForId(e, n) {
800
+ this.elements[e] = n;
801
+ }
802
+ getElementById(e) {
803
+ return this.elements[e];
804
+ }
805
+ decorateNode(e) {
806
+ if (!e) return;
807
+ const n = $(), c = this.nodes[this.nodes.length - 1];
808
+ e.icon && (c.icon = V(e.icon, n)), e.class && (c.class = V(e.class, n));
809
+ }
810
+ type2Str(e) {
811
+ switch (e) {
812
+ case this.nodeType.DEFAULT:
813
+ return "no-border";
814
+ case this.nodeType.RECT:
815
+ return "rect";
816
+ case this.nodeType.ROUNDED_RECT:
817
+ return "rounded-rect";
818
+ case this.nodeType.CIRCLE:
819
+ return "circle";
820
+ case this.nodeType.CLOUD:
821
+ return "cloud";
822
+ case this.nodeType.BANG:
823
+ return "bang";
824
+ case this.nodeType.HEXAGON:
825
+ return "hexgon";
826
+ default:
827
+ return "no-border";
828
+ }
829
+ }
830
+ assignSections(e, n) {
831
+ if (e.level === 0 ? e.section = void 0 : e.section = n, e.children) for (const [c, o] of e.children.entries()) {
832
+ const t = e.level === 0 ? c % (Se - 1) : n;
833
+ this.assignSections(o, t);
834
+ }
835
+ }
836
+ flattenNodes(e, n) {
837
+ const c = $(), o = ["mindmap-node"];
838
+ e.isRoot === !0 ? o.push("section-root", "section--1") : e.section !== void 0 && o.push(`section-${e.section}`), e.class && o.push(e.class);
839
+ const t = o.join(" "), g = /* @__PURE__ */ d((p) => {
840
+ const x = (c.theme?.toLowerCase() ?? "").includes("redux");
841
+ switch (p) {
842
+ case L.CIRCLE:
843
+ return "mindmapCircle";
844
+ case L.RECT:
845
+ return "rect";
846
+ case L.ROUNDED_RECT:
847
+ return "rounded";
848
+ case L.CLOUD:
849
+ return "cloud";
850
+ case L.BANG:
851
+ return "bang";
852
+ case L.HEXAGON:
853
+ return "hexagon";
854
+ case L.DEFAULT:
855
+ return x ? "rounded" : "defaultMindmapNode";
856
+ case L.NO_BORDER:
857
+ default:
858
+ return "rect";
859
+ }
860
+ }, "getShapeFromType"), m = {
861
+ id: e.id.toString(),
862
+ domId: "node_" + e.id.toString(),
863
+ label: e.descr,
864
+ labelType: "markdown",
865
+ isGroup: !1,
866
+ shape: g(e.type),
867
+ width: e.width,
868
+ height: e.height ?? 0,
869
+ padding: e.padding,
870
+ cssClasses: t,
871
+ cssStyles: [],
872
+ look: c.look,
873
+ icon: e.icon,
874
+ x: e.x,
875
+ y: e.y,
876
+ level: e.level,
877
+ nodeId: e.nodeId,
878
+ type: e.type,
879
+ section: e.section
880
+ };
881
+ if (n.push(m), e.children) for (const p of e.children) this.flattenNodes(p, n);
882
+ }
883
+ generateEdges(e, n) {
884
+ if (!e.children) return;
885
+ const c = $();
886
+ for (const o of e.children) {
887
+ let t = "edge";
888
+ o.section !== void 0 && (t += ` section-edge-${o.section}`);
889
+ const g = e.level + 1;
890
+ t += ` edge-depth-${g}`;
891
+ const m = {
892
+ id: `edge_${e.id}_${o.id}`,
893
+ start: e.id.toString(),
894
+ end: o.id.toString(),
895
+ type: "normal",
896
+ curve: "basis",
897
+ thickness: "normal",
898
+ look: c.look,
899
+ classes: t,
900
+ depth: e.level,
901
+ section: o.section
902
+ };
903
+ n.push(m), this.generateEdges(o, n);
904
+ }
905
+ }
906
+ getData() {
907
+ const e = this.getMindmap(), n = $(), c = le().layout !== void 0, o = n;
908
+ if (c || (o.layout = "cose-bilkent"), !e) return {
909
+ nodes: [],
910
+ edges: [],
911
+ config: o
912
+ };
913
+ I.debug("getData: mindmapRoot", e, n), this.assignSections(e);
914
+ const t = [], g = [];
915
+ this.flattenNodes(e, t), this.generateEdges(e, g), I.debug(`getData: processed ${t.length} nodes and ${g.length} edges`);
916
+ const m = /* @__PURE__ */ new Map();
917
+ for (const p of t) m.set(p.id, {
918
+ shape: p.shape,
919
+ width: p.width,
920
+ height: p.height,
921
+ padding: p.padding
922
+ });
923
+ return {
924
+ nodes: t,
925
+ edges: g,
926
+ config: o,
927
+ rootNode: e,
928
+ markers: ["point"],
929
+ direction: "TB",
930
+ nodeSpacing: 50,
931
+ rankSpacing: 50,
932
+ shapes: Object.fromEntries(m),
933
+ type: "mindmap",
934
+ diagramId: "mindmap-" + _e()
935
+ };
936
+ }
937
+ getLogger() {
938
+ return I;
939
+ }
940
+ }, xe = { draw: /* @__PURE__ */ d(async (e, n, c, o) => {
941
+ I.debug(`Rendering mindmap diagram
942
+ ` + e);
943
+ const t = o.db, g = t.getData(), m = ge(n, g.config.securityLevel);
944
+ if (g.type = o.type, g.layoutAlgorithm = me(g.config.layout, { fallback: "cose-bilkent" }), g.diagramId = n, !t.getMindmap()) return;
945
+ g.nodes.forEach((y) => {
946
+ y.shape === "rounded" ? (y.radius = 15, y.taper = 15, y.stroke = "none", y.width = 0, y.padding = 15) : y.shape === "circle" ? y.padding = 10 : y.shape === "rect" ? (y.width = 0, y.padding = 10) : y.shape === "hexagon" && (y.width = 0, y.height = 0);
947
+ }), await pe(g, m);
948
+ const { themeVariables: p } = ae(), { useGradient: x, gradientStart: C, gradientStop: w } = p;
949
+ if (x && C && w) {
950
+ const y = m.attr("id"), k = m.append("defs").append("linearGradient").attr("id", `${y}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
951
+ k.append("stop").attr("offset", "0%").attr("stop-color", C).attr("stop-opacity", 1), k.append("stop").attr("offset", "100%").attr("stop-color", w).attr("stop-opacity", 1);
952
+ }
953
+ ue(m, g.config.mindmap?.padding ?? F.mindmap.padding, "mindmapDiagram", g.config.mindmap?.useMaxWidth ?? F.mindmap.useMaxWidth);
954
+ }, "draw") }, De = /* @__PURE__ */ d((e) => {
955
+ const { theme: n, look: c } = e;
956
+ let o = "";
957
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++)
958
+ e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], he(e["lineColor" + t]) ? e["lineColor" + t] = de(e["lineColor" + t], 20) : e["lineColor" + t] = ce(e["lineColor" + t], 20);
959
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
960
+ const g = "" + (c === "neo" ? Math.max(10 - (t - 1) * 2, 2) : 17 - 3 * t);
961
+ o += `
962
+ .section-${t - 1} rect, .section-${t - 1} path, .section-${t - 1} circle, .section-${t - 1} polygon, .section-${t - 1} path {
963
+ fill: ${e["cScale" + t]};
964
+ }
965
+ .section-${t - 1} text {
966
+ fill: ${e["cScaleLabel" + t]};
967
+ }
968
+ .section-${t - 1} span {
969
+ color: ${e["cScaleLabel" + t]};
970
+ }
971
+ .node-icon-${t - 1} {
972
+ font-size: 40px;
973
+ color: ${e["cScaleLabel" + t]};
974
+ }
975
+ .section-edge-${t - 1}{
976
+ stroke: ${e["cScale" + t]};
977
+ }
978
+ .edge-depth-${t - 1}{
979
+ stroke-width: ${g};
980
+ }
981
+ .section-${t - 1} line {
982
+ stroke: ${e["cScaleInv" + t]} ;
983
+ stroke-width: 3;
984
+ }
985
+
986
+ .disabled, .disabled circle, .disabled text {
987
+ fill: lightgray;
988
+ }
989
+ .disabled text {
990
+ fill: #efefef;
991
+ }
992
+ [data-look="neo"].mindmap-node.section-${t - 1} rect, [data-look="neo"].mindmap-node.section-${t - 1} path, [data-look="neo"].mindmap-node.section-${t - 1} circle, [data-look="neo"].mindmap-node.section-${t - 1} polygon {
993
+ fill: ${n === "redux" || n === "redux-dark" || n === "neutral" ? e.mainBkg : e["cScale" + t]};
994
+ stroke: ${n === "redux" || n === "redux-dark" ? e.nodeBorder : e["cScale" + t]};
995
+ stroke-width: ${e.strokeWidth ?? 2}px;
996
+ }
997
+ [data-look="neo"].section-edge-${t - 1}{
998
+ stroke: ${n?.includes("redux") || n === "neo-dark" ? e.nodeBorder : e["cScale" + t]};
999
+ }
1000
+ [data-look="neo"].mindmap-node.section-${t - 1} text {
1001
+ fill: ${n === "redux" || n === "redux-dark" ? e.nodeBorder : e["cScaleLabel" + (n === "neutral" ? 1 : t)]};
1002
+ }
1003
+ `;
1004
+ }
1005
+ return o;
1006
+ }, "genSections"), Le = /* @__PURE__ */ d((e, n, c) => {
1007
+ let o = "";
1008
+ for (let t = 0; t < e; t++) o += `
1009
+ [data-look="neo"].mindmap-node.section-${t - 1} rect, [data-look="neo"].mindmap-node.section-${t - 1} path, [data-look="neo"].mindmap-node.section-${t - 1} circle, [data-look="neo"].mindmap-node.section-${t - 1} polygon {
1010
+ stroke: url(${n}-gradient);
1011
+ fill: ${c};
1012
+ }
1013
+ .section-${t - 1} line {
1014
+ stroke-width: 0;
1015
+ }`;
1016
+ return o;
1017
+ }, "genGradient"), Fe = {
1018
+ get db() {
1019
+ return new Ne();
1020
+ },
1021
+ renderer: xe,
1022
+ parser: be,
1023
+ styles: /* @__PURE__ */ d((e) => {
1024
+ const { theme: n } = e, c = e.svgId, o = e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${c}-drop-shadow)`) : "none";
1025
+ return `
1026
+ .edge {
1027
+ stroke-width: 3;
1028
+ }
1029
+ ${De(e)}
1030
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
1031
+ fill: ${e.git0};
1032
+ }
1033
+ .section-root text {
1034
+ fill: ${e.gitBranchLabel0};
1035
+ }
1036
+ .section-root span {
1037
+ color: ${n?.includes("redux") ? e.nodeBorder : e.gitBranchLabel0};
1038
+ }
1039
+ .icon-container {
1040
+ height:100%;
1041
+ display: flex;
1042
+ justify-content: center;
1043
+ align-items: center;
1044
+ }
1045
+ .edge {
1046
+ fill: none;
1047
+ }
1048
+ .mindmap-node-label {
1049
+ dy: 1em;
1050
+ alignment-baseline: middle;
1051
+ text-anchor: middle;
1052
+ dominant-baseline: middle;
1053
+ text-align: center;
1054
+ }
1055
+ [data-look="neo"].mindmap-node {
1056
+ filter: ${o};
1057
+ }
1058
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
1059
+ fill: ${n?.includes("redux") ? e.mainBkg : e.git0};
1060
+ }
1061
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
1062
+ fill: ${n?.includes("redux") ? e.nodeBorder : e["cScaleLabel" + (n === "neutral" ? 1 : 0)]};
1063
+ }
1064
+ ${e.useGradient && c && e.mainBkg ? Le(e.THEME_COLOR_LIMIT, c, e.mainBkg) : ""}
1065
+ `;
1066
+ }, "getStyles")
1067
+ };
1068
+ export {
1069
+ Fe as diagram
1070
+ };