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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/dist/accordion.d.ts +12 -0
  2. package/dist/badge.d.ts +14 -0
  3. package/dist/button.d.ts +16 -0
  4. package/dist/calendar.d.ts +12 -0
  5. package/dist/card.d.ts +17 -0
  6. package/dist/chat-search.d.ts +424 -0
  7. package/dist/collapsible.d.ts +10 -0
  8. package/dist/{colors/index.d.ts → colors.d.ts} +133 -128
  9. package/dist/{components/combobox/combobox.d.ts → combobox.d.ts} +23 -18
  10. package/dist/command.d.ts +90 -0
  11. package/dist/data-table.d.ts +23 -0
  12. package/dist/{components/date-picker/date-picker.d.ts → date-picker.d.ts} +12 -9
  13. package/dist/dialog.d.ts +30 -0
  14. package/dist/div-button.d.ts +16 -0
  15. package/dist/dropdown-menu.d.ts +43 -0
  16. package/dist/esm/chunks/{ChatSearch.B-0s3a8W.js → ChatSearch.nXLnU6TL.js} +3 -2
  17. package/dist/esm/chunks/{ChatSearch.B-0s3a8W.js.map → ChatSearch.nXLnU6TL.js.map} +1 -1
  18. package/dist/esm/chunks/{FormattedMessage.C7CKFL5X.js → FormattedMessage.aTY_CSO9.js} +3 -8
  19. package/dist/esm/chunks/{FormattedMessage.C7CKFL5X.js.map → FormattedMessage.aTY_CSO9.js.map} +1 -1
  20. package/dist/esm/chunks/_basePickBy-BRd8bulh.BihFF1eU.js +140 -0
  21. package/dist/esm/chunks/_basePickBy-BRd8bulh.BihFF1eU.js.map +1 -0
  22. package/dist/esm/chunks/_baseUniq-CjJl2kgN.C3Wg6Gzv.js +585 -0
  23. package/dist/esm/chunks/_baseUniq-CjJl2kgN.C3Wg6Gzv.js.map +1 -0
  24. package/dist/esm/chunks/_commonjsHelpers.BFTU3MAI.js +8 -0
  25. package/dist/esm/chunks/_commonjsHelpers.BFTU3MAI.js.map +1 -0
  26. package/dist/esm/chunks/arc-BwUz6pB-.CLjvikE5.js +84 -0
  27. package/dist/esm/chunks/arc-BwUz6pB-.CLjvikE5.js.map +1 -0
  28. package/dist/esm/chunks/architectureDiagram-W76B3OCA-Cb5kazGQ.1bO-o28W.js +4662 -0
  29. package/dist/esm/chunks/architectureDiagram-W76B3OCA-Cb5kazGQ.1bO-o28W.js.map +1 -0
  30. package/dist/esm/chunks/blockDiagram-QIGZ2CNN-DDf1fn8j.CbGMaSk6.js +2262 -0
  31. package/dist/esm/chunks/blockDiagram-QIGZ2CNN-DDf1fn8j.CbGMaSk6.js.map +1 -0
  32. package/dist/esm/chunks/c4Diagram-FPNF74CW-Bums6QOx.Cr4gEhB6.js +1581 -0
  33. package/dist/esm/chunks/c4Diagram-FPNF74CW-Bums6QOx.Cr4gEhB6.js.map +1 -0
  34. package/dist/esm/chunks/channel-0GCo3iLB.B41ZW7VC.js +6 -0
  35. package/dist/esm/chunks/channel-0GCo3iLB.B41ZW7VC.js.map +1 -0
  36. package/dist/esm/chunks/chunk-4BX2VUAB-BNEZvE0o.BzF9LZVo.js +9 -0
  37. package/dist/esm/chunks/chunk-4BX2VUAB-BNEZvE0o.BzF9LZVo.js.map +1 -0
  38. package/dist/esm/chunks/chunk-55IACEB6-DKe9mqg4.BScGh1GA.js +9 -0
  39. package/dist/esm/chunks/chunk-55IACEB6-DKe9mqg4.BScGh1GA.js.map +1 -0
  40. package/dist/esm/chunks/chunk-FMBD7UC4-crQF-lvP.eIOmyWTR.js +20 -0
  41. package/dist/esm/chunks/chunk-FMBD7UC4-crQF-lvP.eIOmyWTR.js.map +1 -0
  42. package/dist/esm/chunks/chunk-K7UQS3LO-Cfwyr-vZ.BAoAWAQk.js +1373 -0
  43. package/dist/esm/chunks/chunk-K7UQS3LO-Cfwyr-vZ.BAoAWAQk.js.map +1 -0
  44. package/dist/esm/chunks/chunk-QN33PNHL-DspJEonH.BH03Z53b.js +20 -0
  45. package/dist/esm/chunks/chunk-QN33PNHL-DspJEonH.BH03Z53b.js.map +1 -0
  46. package/dist/esm/chunks/chunk-QZHKN3VN-BCAuXuhM.Yv71fggY.js +16 -0
  47. package/dist/esm/chunks/chunk-QZHKN3VN-BCAuXuhM.Yv71fggY.js.map +1 -0
  48. package/dist/esm/chunks/chunk-TVAH2DTR-UAGFGTWa.DtaXLvO3.js +1368 -0
  49. package/dist/esm/chunks/chunk-TVAH2DTR-UAGFGTWa.DtaXLvO3.js.map +1 -0
  50. package/dist/esm/chunks/chunk-TZMSLE5B-BuOZ_3Ji.DWg5e95b.js +59 -0
  51. package/dist/esm/chunks/chunk-TZMSLE5B-BuOZ_3Ji.DWg5e95b.js.map +1 -0
  52. package/dist/esm/chunks/classDiagram-KNZD7YFC-DX7nurcU.CyPH6UHq.js +17 -0
  53. package/dist/esm/chunks/classDiagram-KNZD7YFC-DX7nurcU.CyPH6UHq.js.map +1 -0
  54. package/dist/esm/chunks/classDiagram-v2-RKCZMP56-DX7nurcU.CyPH6UHq.js +17 -0
  55. package/dist/esm/chunks/classDiagram-v2-RKCZMP56-DX7nurcU.CyPH6UHq.js.map +1 -0
  56. package/dist/esm/chunks/clone-Bqjztgu2.BFjA-F4h.js +9 -0
  57. package/dist/esm/chunks/clone-Bqjztgu2.BFjA-F4h.js.map +1 -0
  58. package/dist/esm/chunks/cose-bilkent-S5V4N54A-BQHziyWw.BZGNVFdw.js +2610 -0
  59. package/dist/esm/chunks/cose-bilkent-S5V4N54A-BQHziyWw.BZGNVFdw.js.map +1 -0
  60. package/dist/esm/chunks/cytoscape.esm-qgs_QMrm.Cg6eOcD7.js +18633 -0
  61. package/dist/esm/chunks/cytoscape.esm-qgs_QMrm.Cg6eOcD7.js.map +1 -0
  62. package/dist/esm/chunks/dagre-5GWH7T2D-lsJD5N-w.B1kdVc5w.js +445 -0
  63. package/dist/esm/chunks/dagre-5GWH7T2D-lsJD5N-w.B1kdVc5w.js.map +1 -0
  64. package/dist/esm/chunks/defaultLocale-D7EN2tov.B8F577Sx.js +168 -0
  65. package/dist/esm/chunks/defaultLocale-D7EN2tov.B8F577Sx.js.map +1 -0
  66. package/dist/esm/chunks/diagram-N5W7TBWH-BRbQQdVg.CLbXQp4w.js +533 -0
  67. package/dist/esm/chunks/diagram-N5W7TBWH-BRbQQdVg.CLbXQp4w.js.map +1 -0
  68. package/dist/esm/chunks/diagram-QEK2KX5R-8l9h9zsj.DLBRL8pH.js +218 -0
  69. package/dist/esm/chunks/diagram-QEK2KX5R-8l9h9zsj.DLBRL8pH.js.map +1 -0
  70. package/dist/esm/chunks/diagram-S2PKOQOG-Cqv8fzC4.BsV-iXxM.js +143 -0
  71. package/dist/esm/chunks/diagram-S2PKOQOG-Cqv8fzC4.BsV-iXxM.js.map +1 -0
  72. package/dist/esm/chunks/erDiagram-AWTI2OKA-CuacxCQc.BRxf9Bvb.js +842 -0
  73. package/dist/esm/chunks/erDiagram-AWTI2OKA-CuacxCQc.BRxf9Bvb.js.map +1 -0
  74. package/dist/esm/chunks/flowDiagram-PVAE7QVJ-CYALWpXg.DIYz6l2w.js +1621 -0
  75. package/dist/esm/chunks/flowDiagram-PVAE7QVJ-CYALWpXg.DIYz6l2w.js.map +1 -0
  76. package/dist/esm/chunks/ganttDiagram-OWAHRB6G-DasKdnJE.Dl2sI2Nk.js +2506 -0
  77. package/dist/esm/chunks/ganttDiagram-OWAHRB6G-DasKdnJE.Dl2sI2Nk.js.map +1 -0
  78. package/dist/esm/chunks/gitGraphDiagram-NY62KEGX-CBXt0yuv.mD35jpPG.js +700 -0
  79. package/dist/esm/chunks/gitGraphDiagram-NY62KEGX-CBXt0yuv.mD35jpPG.js.map +1 -0
  80. package/dist/esm/chunks/graph-DuS579Mj.CVtaKNIJ.js +248 -0
  81. package/dist/esm/chunks/graph-DuS579Mj.CVtaKNIJ.js.map +1 -0
  82. package/dist/esm/chunks/infoDiagram-STP46IZ2-D6dOD0xH.BLhsKnwz.js +25 -0
  83. package/dist/esm/chunks/infoDiagram-STP46IZ2-D6dOD0xH.BLhsKnwz.js.map +1 -0
  84. package/dist/esm/chunks/init-DjUOC4st.BOEiyheD.js +16 -0
  85. package/dist/esm/chunks/init-DjUOC4st.BOEiyheD.js.map +1 -0
  86. package/dist/esm/chunks/journeyDiagram-BIP6EPQ6-BVvhjpLT.Cy1B2LuZ.js +837 -0
  87. package/dist/esm/chunks/journeyDiagram-BIP6EPQ6-BVvhjpLT.Cy1B2LuZ.js.map +1 -0
  88. package/dist/esm/chunks/kanban-definition-6OIFK2YF-DXUNU6e4.YiYgNKI6.js +720 -0
  89. package/dist/esm/chunks/kanban-definition-6OIFK2YF-DXUNU6e4.YiYgNKI6.js.map +1 -0
  90. package/dist/esm/chunks/katex-CUSbq6rG.R-nwQ7Gi.js +11679 -0
  91. package/dist/esm/chunks/katex-CUSbq6rG.R-nwQ7Gi.js.map +1 -0
  92. package/dist/esm/chunks/layout-C51Wxzwk.D_mfdH7L.js +1322 -0
  93. package/dist/esm/chunks/layout-C51Wxzwk.D_mfdH7L.js.map +1 -0
  94. package/dist/esm/chunks/linear-CHlV0TT4.CvsRyKtq.js +256 -0
  95. package/dist/esm/chunks/linear-CHlV0TT4.CvsRyKtq.js.map +1 -0
  96. package/dist/esm/chunks/markdownTranslator-D7_8pMsF.-EYyJrCs.js +15985 -0
  97. package/dist/esm/chunks/markdownTranslator-D7_8pMsF.-EYyJrCs.js.map +1 -0
  98. package/dist/esm/chunks/mermaid.core-C5kBD6J-.BXPxVcVa.js +15491 -0
  99. package/dist/esm/chunks/mermaid.core-C5kBD6J-.BXPxVcVa.js.map +1 -0
  100. package/dist/esm/chunks/mindmap-definition-Q6HEUPPD-HFrYx80F.ysRA57eW.js +782 -0
  101. package/dist/esm/chunks/mindmap-definition-Q6HEUPPD-HFrYx80F.ysRA57eW.js.map +1 -0
  102. package/dist/esm/chunks/ordinal-DfAQgscy.J1PPD2vL.js +62 -0
  103. package/dist/esm/chunks/ordinal-DfAQgscy.J1PPD2vL.js.map +1 -0
  104. package/dist/esm/chunks/paragraph-node-C0kBl9gb.CIP8K4ND.js +61421 -0
  105. package/dist/esm/chunks/paragraph-node-C0kBl9gb.CIP8K4ND.js.map +1 -0
  106. package/dist/esm/chunks/pieDiagram-ADFJNKIX-CsslphWO.B4GbWuZv.js +162 -0
  107. package/dist/esm/chunks/pieDiagram-ADFJNKIX-CsslphWO.B4GbWuZv.js.map +1 -0
  108. package/dist/esm/chunks/quadrantDiagram-LMRXKWRM-5QFmGeOP.C_UxDQXe.js +1023 -0
  109. package/dist/esm/chunks/quadrantDiagram-LMRXKWRM-5QFmGeOP.C_UxDQXe.js.map +1 -0
  110. package/dist/esm/chunks/requirementDiagram-4UW4RH46-C22keu8n.C4-dnVVT.js +851 -0
  111. package/dist/esm/chunks/requirementDiagram-4UW4RH46-C22keu8n.C4-dnVVT.js.map +1 -0
  112. package/dist/esm/chunks/sankeyDiagram-GR3RE2ED-BpqD9_-e.ngMCnT6E.js +811 -0
  113. package/dist/esm/chunks/sankeyDiagram-GR3RE2ED-BpqD9_-e.ngMCnT6E.js.map +1 -0
  114. package/dist/esm/chunks/sequenceDiagram-C3RYC4MD-oePYpAJV.CBdzhzsP.js +2512 -0
  115. package/dist/esm/chunks/sequenceDiagram-C3RYC4MD-oePYpAJV.CBdzhzsP.js.map +1 -0
  116. package/dist/esm/chunks/simple-editor.BahVaPV_.js +17657 -0
  117. package/dist/esm/chunks/simple-editor.BahVaPV_.js.map +1 -0
  118. package/dist/esm/chunks/simple-viewer-BRtSPXgb.j1P0rnc3.js +5543 -0
  119. package/dist/esm/chunks/simple-viewer-BRtSPXgb.j1P0rnc3.js.map +1 -0
  120. package/dist/esm/chunks/stateDiagram-KXAO66HF-D4aLegBB.CQf3ipbf.js +264 -0
  121. package/dist/esm/chunks/stateDiagram-KXAO66HF-D4aLegBB.CQf3ipbf.js.map +1 -0
  122. package/dist/esm/chunks/stateDiagram-v2-UMBNRL4Z-EsHlUtVh.KT7g_d3p.js +17 -0
  123. package/dist/esm/chunks/stateDiagram-v2-UMBNRL4Z-EsHlUtVh.KT7g_d3p.js.map +1 -0
  124. package/dist/esm/chunks/timeline-definition-XQNQX7LJ-6YQdnQ9U.CyMubI5o.js +798 -0
  125. package/dist/esm/chunks/timeline-definition-XQNQX7LJ-6YQdnQ9U.CyMubI5o.js.map +1 -0
  126. package/dist/esm/chunks/treemap-75Q7IDZK-vsWUWgT4.STv98gDF.js +12982 -0
  127. package/dist/esm/chunks/treemap-75Q7IDZK-vsWUWgT4.STv98gDF.js.map +1 -0
  128. package/dist/esm/chunks/xychartDiagram-6GGTOJPD-M8ajOOsE.Ds3v-kkT.js +1341 -0
  129. package/dist/esm/chunks/xychartDiagram-6GGTOJPD-M8ajOOsE.Ds3v-kkT.js.map +1 -0
  130. package/dist/esm/components/chat-search.js +1 -1
  131. package/dist/esm/components/markdown-editor-viewer.js +2 -0
  132. package/dist/esm/components/markdown-editor-viewer.js.map +1 -0
  133. package/dist/esm/components/markdown.js +1 -1
  134. package/dist/esm/index.css +1 -1
  135. package/dist/esm/index.js +3 -2
  136. package/dist/esm/index.js.map +1 -1
  137. package/dist/{components/feedback/feedback.d.ts → feedback.d.ts} +21 -17
  138. package/dist/file-upload.d.ts +45 -0
  139. package/dist/{components/filter/types.d.ts → filter.d.ts} +82 -59
  140. package/dist/generating-star.d.ts +10 -0
  141. package/dist/icon.d.ts +26 -0
  142. package/dist/index.d.ts +1204 -28
  143. package/dist/input.d.ts +11 -0
  144. package/dist/label.d.ts +8 -0
  145. package/dist/markdown-editor-viewer.d.ts +113 -0
  146. package/dist/markdown.d.ts +55 -0
  147. package/dist/popover.d.ts +12 -0
  148. package/dist/progress.d.ts +8 -0
  149. package/dist/scroll-area.d.ts +8 -0
  150. package/dist/{components/select/simpleSelect.d.ts → select.d.ts} +20 -15
  151. package/dist/stats.html +1 -1
  152. package/dist/switch.d.ts +6 -0
  153. package/dist/table.d.ts +19 -0
  154. package/dist/textarea.d.ts +5 -0
  155. package/dist/tooltip.d.ts +18 -0
  156. package/dist/{components/two-level-combobox/two-level-combobox.d.ts → two-level-combobox.d.ts} +24 -15
  157. package/markdown-editor.plan.md +322 -0
  158. package/markdown-editor.spec.md +915 -0
  159. package/package.json +23 -4
  160. package/dist/colors/blue.d.ts +0 -13
  161. package/dist/colors/customColor.d.ts +0 -4
  162. package/dist/colors/dark.d.ts +0 -13
  163. package/dist/colors/green.d.ts +0 -13
  164. package/dist/colors/orange.d.ts +0 -13
  165. package/dist/colors/pink.d.ts +0 -13
  166. package/dist/colors/primary.d.ts +0 -20
  167. package/dist/colors/purple.d.ts +0 -13
  168. package/dist/colors/red.d.ts +0 -13
  169. package/dist/colors/yellow.d.ts +0 -13
  170. package/dist/components/chat-search/Answer.d.ts +0 -29
  171. package/dist/components/chat-search/AnswerActions.d.ts +0 -13
  172. package/dist/components/chat-search/AnswerBlock.d.ts +0 -8
  173. package/dist/components/chat-search/ChatSearch.d.ts +0 -11
  174. package/dist/components/chat-search/ChatSearchContext.d.ts +0 -36
  175. package/dist/components/chat-search/FollowUpQuestions.d.ts +0 -7
  176. package/dist/components/chat-search/FollowUpSearchBar.d.ts +0 -11
  177. package/dist/components/chat-search/Header.d.ts +0 -9
  178. package/dist/components/chat-search/LoadingConversation.d.ts +0 -2
  179. package/dist/components/chat-search/LoadingSkeleton.d.ts +0 -6
  180. package/dist/components/chat-search/NextBestActions.d.ts +0 -8
  181. package/dist/components/chat-search/PrimarySearch.d.ts +0 -35
  182. package/dist/components/chat-search/ScrollToBottomArrow.d.ts +0 -6
  183. package/dist/components/chat-search/Suggestions.d.ts +0 -9
  184. package/dist/components/chat-search/TimelineNavigation.d.ts +0 -9
  185. package/dist/components/chat-search/blocks/ActionButtons.d.ts +0 -5
  186. package/dist/components/chat-search/blocks/ActionInputForm.d.ts +0 -20
  187. package/dist/components/chat-search/blocks/MarkdownText.d.ts +0 -8
  188. package/dist/components/chat-search/blocks/utils.d.ts +0 -15
  189. package/dist/components/chat-search/helpers/excuteClientAction.d.ts +0 -9
  190. package/dist/components/chat-search/helpers/nextBestActions.d.ts +0 -7
  191. package/dist/components/chat-search/hooks/index.d.ts +0 -7
  192. package/dist/components/chat-search/hooks/useAccessibleColor.d.ts +0 -1
  193. package/dist/components/chat-search/hooks/useAnswerList.d.ts +0 -217
  194. package/dist/components/chat-search/hooks/useConversationId.d.ts +0 -5
  195. package/dist/components/chat-search/hooks/useConversationLoader.d.ts +0 -17
  196. package/dist/components/chat-search/hooks/useDarkMode.d.ts +0 -1
  197. package/dist/components/chat-search/hooks/useIsChatSearchDirty.d.ts +0 -1
  198. package/dist/components/chat-search/hooks/useScrollManager.d.ts +0 -6
  199. package/dist/components/chat-search/hooks/useSubscriptionManager.d.ts +0 -4
  200. package/dist/components/chat-search/hooks/useUrlManager.d.ts +0 -8
  201. package/dist/components/chat-search/index.d.ts +0 -5
  202. package/dist/components/chat-search/text-config.d.ts +0 -3
  203. package/dist/components/chat-search/theme.d.ts +0 -0
  204. package/dist/components/chat-search/types.d.ts +0 -260
  205. package/dist/components/combobox/index.d.ts +0 -1
  206. package/dist/components/data-table/data-table.d.ts +0 -17
  207. package/dist/components/data-table/index.d.ts +0 -2
  208. package/dist/components/date-picker/index.d.ts +0 -1
  209. package/dist/components/feedback/feedback-reason.d.ts +0 -10
  210. package/dist/components/feedback/index.d.ts +0 -1
  211. package/dist/components/file-upload/file-upload-status.d.ts +0 -17
  212. package/dist/components/file-upload/file-upload.d.ts +0 -4
  213. package/dist/components/file-upload/index.d.ts +0 -4
  214. package/dist/components/file-upload/types.d.ts +0 -18
  215. package/dist/components/file-upload/utils.d.ts +0 -1
  216. package/dist/components/filter/components/CustomValueInput.d.ts +0 -11
  217. package/dist/components/filter/components/MultiSelectDropdown.d.ts +0 -10
  218. package/dist/components/filter/components/SingleSelectDropdown.d.ts +0 -9
  219. package/dist/components/filter/filter.d.ts +0 -6
  220. package/dist/components/filter/filters.d.ts +0 -12
  221. package/dist/components/filter/hooks.d.ts +0 -9
  222. package/dist/components/filter/index.d.ts +0 -3
  223. package/dist/components/generating-star/generating-star.d.ts +0 -6
  224. package/dist/components/generating-star/index.d.ts +0 -2
  225. package/dist/components/markdown/CodeBlock.d.ts +0 -7
  226. package/dist/components/markdown/FormattedMessage.d.ts +0 -14
  227. package/dist/components/markdown/Frame.d.ts +0 -10
  228. package/dist/components/markdown/MemoizedReactMarkdown.d.ts +0 -6
  229. package/dist/components/markdown/MermaidDiagram.d.ts +0 -6
  230. package/dist/components/markdown/ZoomableImage.d.ts +0 -7
  231. package/dist/components/markdown/embeds/Loom.d.ts +0 -7
  232. package/dist/components/markdown/embeds/NativeVideo.d.ts +0 -6
  233. package/dist/components/markdown/embeds/Supademo.d.ts +0 -7
  234. package/dist/components/markdown/embeds/Typeform.d.ts +0 -7
  235. package/dist/components/markdown/embeds/VideoTimeline.d.ts +0 -9
  236. package/dist/components/markdown/embeds/Vimeo.d.ts +0 -7
  237. package/dist/components/markdown/embeds/Wistia.d.ts +0 -7
  238. package/dist/components/markdown/embeds/Youtube.d.ts +0 -7
  239. package/dist/components/markdown/embeds/index.d.ts +0 -9
  240. package/dist/components/markdown/index.d.ts +0 -6
  241. package/dist/components/markdown/utils/codeblock.d.ts +0 -6
  242. package/dist/components/markdown/utils/stripNewLines.d.ts +0 -1
  243. package/dist/components/markdown/utils/urls.d.ts +0 -6
  244. package/dist/components/select/index.d.ts +0 -1
  245. package/dist/components/two-level-combobox/index.d.ts +0 -1
  246. package/dist/env.d.ts +0 -5
  247. package/dist/lib/addUtmParams.d.ts +0 -20
  248. package/dist/lib/api.d.ts +0 -96
  249. package/dist/lib/feature-flags.d.ts +0 -9
  250. package/dist/lib/features.d.ts +0 -3
  251. package/dist/lib/fetchClient.d.ts +0 -19
  252. package/dist/lib/getContentType.d.ts +0 -1
  253. package/dist/lib/hooks.d.ts +0 -15
  254. package/dist/lib/utils.d.ts +0 -8
@@ -0,0 +1,1373 @@
1
+ import { l } from './chunk-FMBD7UC4-crQF-lvP.eIOmyWTR.js';
2
+ import { d } from './chunk-55IACEB6-DKe9mqg4.BScGh1GA.js';
3
+ import { d as d$1 } from './chunk-QN33PNHL-DspJEonH.BH03Z53b.js';
4
+ import { _ as p, l as F, c as ut, o as sA, r as aA, u as oe, d as ht, b as cy, a as hy, s as uy, g as fy, p as dy, q as py, k as Kr, y as ly, x as JL, i as ee, Q as Kl } from './mermaid.core-C5kBD6J-.BXPxVcVa.js';
5
+
6
+ var Ve = function() {
7
+ var s = /* @__PURE__ */ p(function(I, o, c, d) {
8
+ for (c = c || {}, d = I.length; d--; c[I[d]] = o) ;
9
+ return c;
10
+ }, "o"), i = [1, 18], a = [1, 19], u = [1, 20], l = [1, 41], n = [1, 42], p$1 = [1, 26], f = [1, 24], C = [1, 25], B = [1, 32], L = [1, 33], Ae = [1, 34], m = [1, 45], fe = [1, 35], ge = [1, 36], Ce = [1, 37], me = [1, 38], be = [1, 27], Ee = [1, 28], ye = [1, 29], Te = [1, 30], ke = [1, 31], b = [1, 44], E = [1, 46], y = [1, 43], T = [1, 47], De = [1, 9], h = [1, 8, 9], te = [1, 58], se = [1, 59], ie = [1, 60], ae = [1, 61], ne = [1, 62], Fe = [1, 63], Be = [1, 64], z = [1, 8, 9, 41], Pe = [1, 76], P = [1, 8, 9, 12, 13, 22, 39, 41, 44, 68, 69, 70, 71, 72, 73, 74, 79, 81], re = [1, 8, 9, 12, 13, 18, 20, 22, 39, 41, 44, 50, 60, 68, 69, 70, 71, 72, 73, 74, 79, 81, 86, 100, 102, 103], ue = [13, 60, 86, 100, 102, 103], K = [13, 60, 73, 74, 86, 100, 102, 103], Me = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], _e = [1, 100], Y = [1, 117], Q = [1, 113], W = [1, 109], j = [1, 115], X = [1, 110], q = [1, 111], H = [1, 112], J = [1, 114], Z = [1, 116], Re = [22, 48, 60, 61, 82, 86, 87, 88, 89, 90], Se = [1, 8, 9, 39, 41, 44], le = [1, 8, 9, 22], Ge = [1, 145], Ue = [1, 8, 9, 61], N = [1, 8, 9, 22, 48, 60, 61, 82, 86, 87, 88, 89, 90], Ne = {
11
+ trace: /* @__PURE__ */ p(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ symbols_: { error: 2, start: 3, mermaidDoc: 4, statements: 5, graphConfig: 6, CLASS_DIAGRAM: 7, NEWLINE: 8, EOF: 9, statement: 10, classLabel: 11, SQS: 12, STR: 13, SQE: 14, namespaceName: 15, alphaNumToken: 16, classLiteralName: 17, DOT: 18, className: 19, GENERICTYPE: 20, relationStatement: 21, LABEL: 22, namespaceStatement: 23, classStatement: 24, memberStatement: 25, annotationStatement: 26, clickStatement: 27, styleStatement: 28, cssClassStatement: 29, noteStatement: 30, classDefStatement: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, namespaceIdentifier: 38, STRUCT_START: 39, classStatements: 40, STRUCT_STOP: 41, NAMESPACE: 42, classIdentifier: 43, STYLE_SEPARATOR: 44, members: 45, CLASS: 46, emptyBody: 47, SPACE: 48, ANNOTATION_START: 49, ANNOTATION_END: 50, MEMBER: 51, SEPARATOR: 52, relation: 53, NOTE_FOR: 54, noteText: 55, NOTE: 56, CLASSDEF: 57, classList: 58, stylesOpt: 59, ALPHA: 60, COMMA: 61, direction_tb: 62, direction_bt: 63, direction_rl: 64, direction_lr: 65, relationType: 66, lineType: 67, AGGREGATION: 68, EXTENSION: 69, COMPOSITION: 70, DEPENDENCY: 71, LOLLIPOP: 72, LINE: 73, DOTTED_LINE: 74, CALLBACK: 75, LINK: 76, LINK_TARGET: 77, CLICK: 78, CALLBACK_NAME: 79, CALLBACK_ARGS: 80, HREF: 81, STYLE: 82, CSSCLASS: 83, style: 84, styleComponent: 85, NUM: 86, COLON: 87, UNIT: 88, BRKT: 89, PCT: 90, commentToken: 91, textToken: 92, graphCodeTokens: 93, textNoTagsToken: 94, TAGSTART: 95, TAGEND: 96, "==": 97, "--": 98, DEFAULT: 99, MINUS: 100, keywords: 101, UNICODE_TEXT: 102, BQUOTE_STR: 103, $accept: 0, $end: 1 },
15
+ terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 18: "DOT", 20: "GENERICTYPE", 22: "LABEL", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 39: "STRUCT_START", 41: "STRUCT_STOP", 42: "NAMESPACE", 44: "STYLE_SEPARATOR", 46: "CLASS", 48: "SPACE", 49: "ANNOTATION_START", 50: "ANNOTATION_END", 51: "MEMBER", 52: "SEPARATOR", 54: "NOTE_FOR", 56: "NOTE", 57: "CLASSDEF", 60: "ALPHA", 61: "COMMA", 62: "direction_tb", 63: "direction_bt", 64: "direction_rl", 65: "direction_lr", 68: "AGGREGATION", 69: "EXTENSION", 70: "COMPOSITION", 71: "DEPENDENCY", 72: "LOLLIPOP", 73: "LINE", 74: "DOTTED_LINE", 75: "CALLBACK", 76: "LINK", 77: "LINK_TARGET", 78: "CLICK", 79: "CALLBACK_NAME", 80: "CALLBACK_ARGS", 81: "HREF", 82: "STYLE", 83: "CSSCLASS", 86: "NUM", 87: "COLON", 88: "UNIT", 89: "BRKT", 90: "PCT", 93: "graphCodeTokens", 95: "TAGSTART", 96: "TAGEND", 97: "==", 98: "--", 99: "DEFAULT", 100: "MINUS", 101: "keywords", 102: "UNICODE_TEXT", 103: "BQUOTE_STR" },
16
+ productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 1], [15, 3], [15, 2], [19, 1], [19, 3], [19, 1], [19, 2], [19, 2], [19, 2], [10, 1], [10, 2], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [23, 4], [23, 5], [38, 2], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 3], [24, 6], [43, 2], [43, 3], [47, 0], [47, 2], [47, 2], [26, 4], [45, 1], [45, 2], [25, 1], [25, 2], [25, 1], [25, 1], [21, 3], [21, 4], [21, 4], [21, 5], [30, 3], [30, 2], [31, 3], [58, 1], [58, 3], [32, 1], [32, 1], [32, 1], [32, 1], [53, 3], [53, 2], [53, 2], [53, 1], [66, 1], [66, 1], [66, 1], [66, 1], [66, 1], [67, 1], [67, 1], [27, 3], [27, 4], [27, 3], [27, 4], [27, 4], [27, 5], [27, 3], [27, 4], [27, 4], [27, 5], [27, 4], [27, 5], [27, 5], [27, 6], [28, 3], [29, 3], [59, 1], [59, 3], [84, 1], [84, 2], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [91, 1], [91, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [94, 1], [94, 1], [94, 1], [94, 1], [16, 1], [16, 1], [16, 1], [16, 1], [17, 1], [55, 1]],
17
+ performAction: /* @__PURE__ */ p(function(o, c, d, r, g, e, $) {
18
+ var t = e.length - 1;
19
+ switch (g) {
20
+ case 8:
21
+ this.$ = e[t - 1];
22
+ break;
23
+ case 9:
24
+ case 10:
25
+ case 13:
26
+ case 15:
27
+ this.$ = e[t];
28
+ break;
29
+ case 11:
30
+ case 14:
31
+ this.$ = e[t - 2] + "." + e[t];
32
+ break;
33
+ case 12:
34
+ case 16:
35
+ this.$ = e[t - 1] + e[t];
36
+ break;
37
+ case 17:
38
+ case 18:
39
+ this.$ = e[t - 1] + "~" + e[t] + "~";
40
+ break;
41
+ case 19:
42
+ r.addRelation(e[t]);
43
+ break;
44
+ case 20:
45
+ e[t - 1].title = r.cleanupLabel(e[t]), r.addRelation(e[t - 1]);
46
+ break;
47
+ case 31:
48
+ this.$ = e[t].trim(), r.setAccTitle(this.$);
49
+ break;
50
+ case 32:
51
+ case 33:
52
+ this.$ = e[t].trim(), r.setAccDescription(this.$);
53
+ break;
54
+ case 34:
55
+ r.addClassesToNamespace(e[t - 3], e[t - 1]);
56
+ break;
57
+ case 35:
58
+ r.addClassesToNamespace(e[t - 4], e[t - 1]);
59
+ break;
60
+ case 36:
61
+ this.$ = e[t], r.addNamespace(e[t]);
62
+ break;
63
+ case 37:
64
+ this.$ = [e[t]];
65
+ break;
66
+ case 38:
67
+ this.$ = [e[t - 1]];
68
+ break;
69
+ case 39:
70
+ e[t].unshift(e[t - 2]), this.$ = e[t];
71
+ break;
72
+ case 41:
73
+ r.setCssClass(e[t - 2], e[t]);
74
+ break;
75
+ case 42:
76
+ r.addMembers(e[t - 3], e[t - 1]);
77
+ break;
78
+ case 44:
79
+ r.setCssClass(e[t - 5], e[t - 3]), r.addMembers(e[t - 5], e[t - 1]);
80
+ break;
81
+ case 45:
82
+ this.$ = e[t], r.addClass(e[t]);
83
+ break;
84
+ case 46:
85
+ this.$ = e[t - 1], r.addClass(e[t - 1]), r.setClassLabel(e[t - 1], e[t]);
86
+ break;
87
+ case 50:
88
+ r.addAnnotation(e[t], e[t - 2]);
89
+ break;
90
+ case 51:
91
+ case 64:
92
+ this.$ = [e[t]];
93
+ break;
94
+ case 52:
95
+ e[t].push(e[t - 1]), this.$ = e[t];
96
+ break;
97
+ case 53:
98
+ break;
99
+ case 54:
100
+ r.addMember(e[t - 1], r.cleanupLabel(e[t]));
101
+ break;
102
+ case 55:
103
+ break;
104
+ case 56:
105
+ break;
106
+ case 57:
107
+ this.$ = { id1: e[t - 2], id2: e[t], relation: e[t - 1], relationTitle1: "none", relationTitle2: "none" };
108
+ break;
109
+ case 58:
110
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 1], relationTitle1: e[t - 2], relationTitle2: "none" };
111
+ break;
112
+ case 59:
113
+ this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 2], relationTitle1: "none", relationTitle2: e[t - 1] };
114
+ break;
115
+ case 60:
116
+ this.$ = { id1: e[t - 4], id2: e[t], relation: e[t - 2], relationTitle1: e[t - 3], relationTitle2: e[t - 1] };
117
+ break;
118
+ case 61:
119
+ r.addNote(e[t], e[t - 1]);
120
+ break;
121
+ case 62:
122
+ r.addNote(e[t]);
123
+ break;
124
+ case 63:
125
+ this.$ = e[t - 2], r.defineClass(e[t - 1], e[t]);
126
+ break;
127
+ case 65:
128
+ this.$ = e[t - 2].concat([e[t]]);
129
+ break;
130
+ case 66:
131
+ r.setDirection("TB");
132
+ break;
133
+ case 67:
134
+ r.setDirection("BT");
135
+ break;
136
+ case 68:
137
+ r.setDirection("RL");
138
+ break;
139
+ case 69:
140
+ r.setDirection("LR");
141
+ break;
142
+ case 70:
143
+ this.$ = { type1: e[t - 2], type2: e[t], lineType: e[t - 1] };
144
+ break;
145
+ case 71:
146
+ this.$ = { type1: "none", type2: e[t], lineType: e[t - 1] };
147
+ break;
148
+ case 72:
149
+ this.$ = { type1: e[t - 1], type2: "none", lineType: e[t] };
150
+ break;
151
+ case 73:
152
+ this.$ = { type1: "none", type2: "none", lineType: e[t] };
153
+ break;
154
+ case 74:
155
+ this.$ = r.relationType.AGGREGATION;
156
+ break;
157
+ case 75:
158
+ this.$ = r.relationType.EXTENSION;
159
+ break;
160
+ case 76:
161
+ this.$ = r.relationType.COMPOSITION;
162
+ break;
163
+ case 77:
164
+ this.$ = r.relationType.DEPENDENCY;
165
+ break;
166
+ case 78:
167
+ this.$ = r.relationType.LOLLIPOP;
168
+ break;
169
+ case 79:
170
+ this.$ = r.lineType.LINE;
171
+ break;
172
+ case 80:
173
+ this.$ = r.lineType.DOTTED_LINE;
174
+ break;
175
+ case 81:
176
+ case 87:
177
+ this.$ = e[t - 2], r.setClickEvent(e[t - 1], e[t]);
178
+ break;
179
+ case 82:
180
+ case 88:
181
+ this.$ = e[t - 3], r.setClickEvent(e[t - 2], e[t - 1]), r.setTooltip(e[t - 2], e[t]);
182
+ break;
183
+ case 83:
184
+ this.$ = e[t - 2], r.setLink(e[t - 1], e[t]);
185
+ break;
186
+ case 84:
187
+ this.$ = e[t - 3], r.setLink(e[t - 2], e[t - 1], e[t]);
188
+ break;
189
+ case 85:
190
+ this.$ = e[t - 3], r.setLink(e[t - 2], e[t - 1]), r.setTooltip(e[t - 2], e[t]);
191
+ break;
192
+ case 86:
193
+ this.$ = e[t - 4], r.setLink(e[t - 3], e[t - 2], e[t]), r.setTooltip(e[t - 3], e[t - 1]);
194
+ break;
195
+ case 89:
196
+ this.$ = e[t - 3], r.setClickEvent(e[t - 2], e[t - 1], e[t]);
197
+ break;
198
+ case 90:
199
+ this.$ = e[t - 4], r.setClickEvent(e[t - 3], e[t - 2], e[t - 1]), r.setTooltip(e[t - 3], e[t]);
200
+ break;
201
+ case 91:
202
+ this.$ = e[t - 3], r.setLink(e[t - 2], e[t]);
203
+ break;
204
+ case 92:
205
+ this.$ = e[t - 4], r.setLink(e[t - 3], e[t - 1], e[t]);
206
+ break;
207
+ case 93:
208
+ this.$ = e[t - 4], r.setLink(e[t - 3], e[t - 1]), r.setTooltip(e[t - 3], e[t]);
209
+ break;
210
+ case 94:
211
+ this.$ = e[t - 5], r.setLink(e[t - 4], e[t - 2], e[t]), r.setTooltip(e[t - 4], e[t - 1]);
212
+ break;
213
+ case 95:
214
+ this.$ = e[t - 2], r.setCssStyle(e[t - 1], e[t]);
215
+ break;
216
+ case 96:
217
+ r.setCssClass(e[t - 1], e[t]);
218
+ break;
219
+ case 97:
220
+ this.$ = [e[t]];
221
+ break;
222
+ case 98:
223
+ e[t - 2].push(e[t]), this.$ = e[t - 2];
224
+ break;
225
+ case 100:
226
+ this.$ = e[t - 1] + e[t];
227
+ break;
228
+ }
229
+ }, "anonymous"),
230
+ table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: n, 49: p$1, 51: f, 52: C, 54: B, 56: L, 57: Ae, 60: m, 62: fe, 63: ge, 64: Ce, 65: me, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(De, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(h, [2, 19], { 22: [1, 50] }), s(h, [2, 21]), s(h, [2, 22]), s(h, [2, 23]), s(h, [2, 24]), s(h, [2, 25]), s(h, [2, 26]), s(h, [2, 27]), s(h, [2, 28]), s(h, [2, 29]), s(h, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, s(h, [2, 33]), s(h, [2, 53], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: te, 69: se, 70: ie, 71: ae, 72: ne, 73: Fe, 74: Be }), { 39: [1, 65] }, s(z, [2, 40], { 39: [1, 67], 44: [1, 66] }), s(h, [2, 55]), s(h, [2, 56]), { 16: 68, 60: m, 86: b, 100: E, 102: y }, { 16: 39, 17: 40, 19: 69, 60: m, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 70, 60: m, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 71, 60: m, 86: b, 100: E, 102: y, 103: T }, { 60: [1, 72] }, { 13: [1, 73] }, { 16: 39, 17: 40, 19: 74, 60: m, 86: b, 100: E, 102: y, 103: T }, { 13: Pe, 55: 75 }, { 58: 77, 60: [1, 78] }, s(h, [2, 66]), s(h, [2, 67]), s(h, [2, 68]), s(h, [2, 69]), s(P, [2, 13], { 16: 39, 17: 40, 19: 80, 18: [1, 79], 20: [1, 81], 60: m, 86: b, 100: E, 102: y, 103: T }), s(P, [2, 15], { 20: [1, 82] }), { 15: 83, 16: 84, 17: 85, 60: m, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 86, 60: m, 86: b, 100: E, 102: y, 103: T }, s(re, [2, 123]), s(re, [2, 124]), s(re, [2, 125]), s(re, [2, 126]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 127]), s(De, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 19: 21, 38: 22, 43: 23, 16: 39, 17: 40, 5: 87, 33: i, 35: a, 37: u, 42: l, 46: n, 49: p$1, 51: f, 52: C, 54: B, 56: L, 57: Ae, 60: m, 62: fe, 63: ge, 64: Ce, 65: me, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }), { 5: 88, 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: n, 49: p$1, 51: f, 52: C, 54: B, 56: L, 57: Ae, 60: m, 62: fe, 63: ge, 64: Ce, 65: me, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }, s(h, [2, 20]), s(h, [2, 31]), s(h, [2, 32]), { 13: [1, 90], 16: 39, 17: 40, 19: 89, 60: m, 86: b, 100: E, 102: y, 103: T }, { 53: 91, 66: 56, 67: 57, 68: te, 69: se, 70: ie, 71: ae, 72: ne, 73: Fe, 74: Be }, s(h, [2, 54]), { 67: 92, 73: Fe, 74: Be }, s(ue, [2, 73], { 66: 93, 68: te, 69: se, 70: ie, 71: ae, 72: ne }), s(K, [2, 74]), s(K, [2, 75]), s(K, [2, 76]), s(K, [2, 77]), s(K, [2, 78]), s(Me, [2, 79]), s(Me, [2, 80]), { 8: [1, 95], 24: 96, 40: 94, 43: 23, 46: n }, { 16: 97, 60: m, 86: b, 100: E, 102: y }, { 41: [1, 99], 45: 98, 51: _e }, { 50: [1, 101] }, { 13: [1, 102] }, { 13: [1, 103] }, { 79: [1, 104], 81: [1, 105] }, { 22: Y, 48: Q, 59: 106, 60: W, 82: j, 84: 107, 85: 108, 86: X, 87: q, 88: H, 89: J, 90: Z }, { 60: [1, 118] }, { 13: Pe, 55: 119 }, s(h, [2, 62]), s(h, [2, 128]), { 22: Y, 48: Q, 59: 120, 60: W, 61: [1, 121], 82: j, 84: 107, 85: 108, 86: X, 87: q, 88: H, 89: J, 90: Z }, s(Re, [2, 64]), { 16: 39, 17: 40, 19: 122, 60: m, 86: b, 100: E, 102: y, 103: T }, s(P, [2, 16]), s(P, [2, 17]), s(P, [2, 18]), { 39: [2, 36] }, { 15: 124, 16: 84, 17: 85, 18: [1, 123], 39: [2, 9], 60: m, 86: b, 100: E, 102: y, 103: T }, { 39: [2, 10] }, s(Se, [2, 45], { 11: 125, 12: [1, 126] }), s(De, [2, 7]), { 9: [1, 127] }, s(le, [2, 57]), { 16: 39, 17: 40, 19: 128, 60: m, 86: b, 100: E, 102: y, 103: T }, { 13: [1, 130], 16: 39, 17: 40, 19: 129, 60: m, 86: b, 100: E, 102: y, 103: T }, s(ue, [2, 72], { 66: 131, 68: te, 69: se, 70: ie, 71: ae, 72: ne }), s(ue, [2, 71]), { 41: [1, 132] }, { 24: 96, 40: 133, 43: 23, 46: n }, { 8: [1, 134], 41: [2, 37] }, s(z, [2, 41], { 39: [1, 135] }), { 41: [1, 136] }, s(z, [2, 43]), { 41: [2, 51], 45: 137, 51: _e }, { 16: 39, 17: 40, 19: 138, 60: m, 86: b, 100: E, 102: y, 103: T }, s(h, [2, 81], { 13: [1, 139] }), s(h, [2, 83], { 13: [1, 141], 77: [1, 140] }), s(h, [2, 87], { 13: [1, 142], 80: [1, 143] }), { 13: [1, 144] }, s(h, [2, 95], { 61: Ge }), s(Ue, [2, 97], { 85: 146, 22: Y, 48: Q, 60: W, 82: j, 86: X, 87: q, 88: H, 89: J, 90: Z }), s(N, [2, 99]), s(N, [2, 101]), s(N, [2, 102]), s(N, [2, 103]), s(N, [2, 104]), s(N, [2, 105]), s(N, [2, 106]), s(N, [2, 107]), s(N, [2, 108]), s(N, [2, 109]), s(h, [2, 96]), s(h, [2, 61]), s(h, [2, 63], { 61: Ge }), { 60: [1, 147] }, s(P, [2, 14]), { 15: 148, 16: 84, 17: 85, 60: m, 86: b, 100: E, 102: y, 103: T }, { 39: [2, 12] }, s(Se, [2, 46]), { 13: [1, 149] }, { 1: [2, 4] }, s(le, [2, 59]), s(le, [2, 58]), { 16: 39, 17: 40, 19: 150, 60: m, 86: b, 100: E, 102: y, 103: T }, s(ue, [2, 70]), s(h, [2, 34]), { 41: [1, 151] }, { 24: 96, 40: 152, 41: [2, 38], 43: 23, 46: n }, { 45: 153, 51: _e }, s(z, [2, 42]), { 41: [2, 52] }, s(h, [2, 50]), s(h, [2, 82]), s(h, [2, 84]), s(h, [2, 85], { 77: [1, 154] }), s(h, [2, 88]), s(h, [2, 89], { 13: [1, 155] }), s(h, [2, 91], { 13: [1, 157], 77: [1, 156] }), { 22: Y, 48: Q, 60: W, 82: j, 84: 158, 85: 108, 86: X, 87: q, 88: H, 89: J, 90: Z }, s(N, [2, 100]), s(Re, [2, 65]), { 39: [2, 11] }, { 14: [1, 159] }, s(le, [2, 60]), s(h, [2, 35]), { 41: [2, 39] }, { 41: [1, 160] }, s(h, [2, 86]), s(h, [2, 90]), s(h, [2, 92]), s(h, [2, 93], { 77: [1, 161] }), s(Ue, [2, 98], { 85: 146, 22: Y, 48: Q, 60: W, 82: j, 86: X, 87: q, 88: H, 89: J, 90: Z }), s(Se, [2, 8]), s(z, [2, 44]), s(h, [2, 94])],
231
+ defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 83: [2, 36], 85: [2, 10], 124: [2, 12], 127: [2, 4], 137: [2, 52], 148: [2, 11], 152: [2, 39] },
232
+ parseError: /* @__PURE__ */ p(function(o, c) {
233
+ if (c.recoverable)
234
+ this.trace(o);
235
+ else {
236
+ var d = new Error(o);
237
+ throw d.hash = c, d;
238
+ }
239
+ }, "parseError"),
240
+ parse: /* @__PURE__ */ p(function(o) {
241
+ var c = this, d = [0], r = [], g = [null], e = [], $ = this.table, t = "", ce = 0, ze = 0, He = 2, Ke = 1, Je = e.slice.call(arguments, 1), k = Object.create(this.lexer), O = { yy: {} };
242
+ for (var Le in this.yy)
243
+ Object.prototype.hasOwnProperty.call(this.yy, Le) && (O.yy[Le] = this.yy[Le]);
244
+ k.setInput(o, O.yy), O.yy.lexer = k, O.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
245
+ var xe = k.yylloc;
246
+ e.push(xe);
247
+ var Ze = k.options && k.options.ranges;
248
+ typeof O.yy.parseError == "function" ? this.parseError = O.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
249
+ function $e(_) {
250
+ d.length = d.length - 2 * _, g.length = g.length - _, e.length = e.length - _;
251
+ }
252
+ p($e, "popStack");
253
+ function Ye() {
254
+ var _;
255
+ return _ = r.pop() || k.lex() || Ke, typeof _ != "number" && (_ instanceof Array && (r = _, _ = r.pop()), _ = c.symbols_[_] || _), _;
256
+ }
257
+ p(Ye, "lex");
258
+ for (var F, w, S, ve, M = {}, he, x, Qe, de; ; ) {
259
+ if (w = d[d.length - 1], this.defaultActions[w] ? S = this.defaultActions[w] : ((F === null || typeof F > "u") && (F = Ye()), S = $[w] && $[w][F]), typeof S > "u" || !S.length || !S[0]) {
260
+ var Ie = "";
261
+ de = [];
262
+ for (he in $[w])
263
+ this.terminals_[he] && he > He && de.push("'" + this.terminals_[he] + "'");
264
+ k.showPosition ? Ie = "Parse error on line " + (ce + 1) + `:
265
+ ` + k.showPosition() + `
266
+ Expecting ` + de.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : Ie = "Parse error on line " + (ce + 1) + ": Unexpected " + (F == Ke ? "end of input" : "'" + (this.terminals_[F] || F) + "'"), this.parseError(Ie, {
267
+ text: k.match,
268
+ token: this.terminals_[F] || F,
269
+ line: k.yylineno,
270
+ loc: xe,
271
+ expected: de
272
+ });
273
+ }
274
+ if (S[0] instanceof Array && S.length > 1)
275
+ throw new Error("Parse Error: multiple actions possible at state: " + w + ", token: " + F);
276
+ switch (S[0]) {
277
+ case 1:
278
+ d.push(F), g.push(k.yytext), e.push(k.yylloc), d.push(S[1]), F = null, ze = k.yyleng, t = k.yytext, ce = k.yylineno, xe = k.yylloc;
279
+ break;
280
+ case 2:
281
+ if (x = this.productions_[S[1]][1], M.$ = g[g.length - x], M._$ = {
282
+ first_line: e[e.length - (x || 1)].first_line,
283
+ last_line: e[e.length - 1].last_line,
284
+ first_column: e[e.length - (x || 1)].first_column,
285
+ last_column: e[e.length - 1].last_column
286
+ }, Ze && (M._$.range = [
287
+ e[e.length - (x || 1)].range[0],
288
+ e[e.length - 1].range[1]
289
+ ]), ve = this.performAction.apply(M, [
290
+ t,
291
+ ze,
292
+ ce,
293
+ O.yy,
294
+ S[1],
295
+ g,
296
+ e
297
+ ].concat(Je)), typeof ve < "u")
298
+ return ve;
299
+ x && (d = d.slice(0, -1 * x * 2), g = g.slice(0, -1 * x), e = e.slice(0, -1 * x)), d.push(this.productions_[S[1]][0]), g.push(M.$), e.push(M._$), Qe = $[d[d.length - 2]][d[d.length - 1]], d.push(Qe);
300
+ break;
301
+ case 3:
302
+ return true;
303
+ }
304
+ }
305
+ return true;
306
+ }, "parse")
307
+ }, qe = /* @__PURE__ */ function() {
308
+ var I = {
309
+ EOF: 1,
310
+ parseError: /* @__PURE__ */ p(function(c, d) {
311
+ if (this.yy.parser)
312
+ this.yy.parser.parseError(c, d);
313
+ else
314
+ throw new Error(c);
315
+ }, "parseError"),
316
+ // resets the lexer, sets new input
317
+ setInput: /* @__PURE__ */ p(function(o, c) {
318
+ return this.yy = c || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
319
+ first_line: 1,
320
+ first_column: 0,
321
+ last_line: 1,
322
+ last_column: 0
323
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
324
+ }, "setInput"),
325
+ // consumes and returns one char from the input
326
+ input: /* @__PURE__ */ p(function() {
327
+ var o = this._input[0];
328
+ this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
329
+ var c = o.match(/(?:\r\n?|\n).*/g);
330
+ return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
331
+ }, "input"),
332
+ // unshifts one char (or a string) into the input
333
+ unput: /* @__PURE__ */ p(function(o) {
334
+ var c = o.length, d = o.split(/(?:\r\n?|\n)/g);
335
+ this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
336
+ var r = this.match.split(/(?:\r\n?|\n)/g);
337
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.length - 1);
338
+ var g = this.yylloc.range;
339
+ return this.yylloc = {
340
+ first_line: this.yylloc.first_line,
341
+ last_line: this.yylineno + 1,
342
+ first_column: this.yylloc.first_column,
343
+ last_column: d ? (d.length === r.length ? this.yylloc.first_column : 0) + r[r.length - d.length].length - d[0].length : this.yylloc.first_column - c
344
+ }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
345
+ }, "unput"),
346
+ // When called from action, caches matched text and appends it on next action
347
+ more: /* @__PURE__ */ p(function() {
348
+ return this._more = true, this;
349
+ }, "more"),
350
+ // 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.
351
+ reject: /* @__PURE__ */ p(function() {
352
+ if (this.options.backtrack_lexer)
353
+ this._backtrack = true;
354
+ else
355
+ 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).
356
+ ` + this.showPosition(), {
357
+ text: "",
358
+ token: null,
359
+ line: this.yylineno
360
+ });
361
+ return this;
362
+ }, "reject"),
363
+ // retain first n characters of the match
364
+ less: /* @__PURE__ */ p(function(o) {
365
+ this.unput(this.match.slice(o));
366
+ }, "less"),
367
+ // displays already matched input, i.e. for error messages
368
+ pastInput: /* @__PURE__ */ p(function() {
369
+ var o = this.matched.substr(0, this.matched.length - this.match.length);
370
+ return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
371
+ }, "pastInput"),
372
+ // displays upcoming input, i.e. for error messages
373
+ upcomingInput: /* @__PURE__ */ p(function() {
374
+ var o = this.match;
375
+ return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
376
+ }, "upcomingInput"),
377
+ // displays the character position where the lexing error occurred, i.e. for error messages
378
+ showPosition: /* @__PURE__ */ p(function() {
379
+ var o = this.pastInput(), c = new Array(o.length + 1).join("-");
380
+ return o + this.upcomingInput() + `
381
+ ` + c + "^";
382
+ }, "showPosition"),
383
+ // test the lexed token: return FALSE when not a match, otherwise return token
384
+ test_match: /* @__PURE__ */ p(function(o, c) {
385
+ var d, r, g;
386
+ if (this.options.backtrack_lexer && (g = {
387
+ yylineno: this.yylineno,
388
+ yylloc: {
389
+ first_line: this.yylloc.first_line,
390
+ last_line: this.last_line,
391
+ first_column: this.yylloc.first_column,
392
+ last_column: this.yylloc.last_column
393
+ },
394
+ yytext: this.yytext,
395
+ match: this.match,
396
+ matches: this.matches,
397
+ matched: this.matched,
398
+ yyleng: this.yyleng,
399
+ offset: this.offset,
400
+ _more: this._more,
401
+ _input: this._input,
402
+ yy: this.yy,
403
+ conditionStack: this.conditionStack.slice(0),
404
+ done: this.done
405
+ }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), r = o[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
406
+ first_line: this.yylloc.last_line,
407
+ last_line: this.yylineno + 1,
408
+ first_column: this.yylloc.last_column,
409
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
410
+ }, this.yytext += o[0], this.match += o[0], this.matches = o, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(o[0].length), this.matched += o[0], d = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), d)
411
+ return d;
412
+ if (this._backtrack) {
413
+ for (var e in g)
414
+ this[e] = g[e];
415
+ return false;
416
+ }
417
+ return false;
418
+ }, "test_match"),
419
+ // return next match in input
420
+ next: /* @__PURE__ */ p(function() {
421
+ if (this.done)
422
+ return this.EOF;
423
+ this._input || (this.done = true);
424
+ var o, c, d, r;
425
+ this._more || (this.yytext = "", this.match = "");
426
+ for (var g = this._currentRules(), e = 0; e < g.length; e++)
427
+ if (d = this._input.match(this.rules[g[e]]), d && (!c || d[0].length > c[0].length)) {
428
+ if (c = d, r = e, this.options.backtrack_lexer) {
429
+ if (o = this.test_match(d, g[e]), o !== false)
430
+ return o;
431
+ if (this._backtrack) {
432
+ c = false;
433
+ continue;
434
+ } else
435
+ return false;
436
+ } else if (!this.options.flex)
437
+ break;
438
+ }
439
+ return c ? (o = this.test_match(c, g[r]), o !== false ? o : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
440
+ ` + this.showPosition(), {
441
+ text: "",
442
+ token: null,
443
+ line: this.yylineno
444
+ });
445
+ }, "next"),
446
+ // return next match that has a token
447
+ lex: /* @__PURE__ */ p(function() {
448
+ var c = this.next();
449
+ return c || this.lex();
450
+ }, "lex"),
451
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
452
+ begin: /* @__PURE__ */ p(function(c) {
453
+ this.conditionStack.push(c);
454
+ }, "begin"),
455
+ // pop the previously active lexer condition state off the condition stack
456
+ popState: /* @__PURE__ */ p(function() {
457
+ var c = this.conditionStack.length - 1;
458
+ return c > 0 ? this.conditionStack.pop() : this.conditionStack[0];
459
+ }, "popState"),
460
+ // produce the lexer rule set which is active for the currently active lexer condition state
461
+ _currentRules: /* @__PURE__ */ p(function() {
462
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
463
+ }, "_currentRules"),
464
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
465
+ topState: /* @__PURE__ */ p(function(c) {
466
+ return c = this.conditionStack.length - 1 - Math.abs(c || 0), c >= 0 ? this.conditionStack[c] : "INITIAL";
467
+ }, "topState"),
468
+ // alias for begin(condition)
469
+ pushState: /* @__PURE__ */ p(function(c) {
470
+ this.begin(c);
471
+ }, "pushState"),
472
+ // return the number of states currently on the stack
473
+ stateStackSize: /* @__PURE__ */ p(function() {
474
+ return this.conditionStack.length;
475
+ }, "stateStackSize"),
476
+ options: {},
477
+ performAction: /* @__PURE__ */ p(function(c, d, r, g) {
478
+ switch (r) {
479
+ case 0:
480
+ return 62;
481
+ case 1:
482
+ return 63;
483
+ case 2:
484
+ return 64;
485
+ case 3:
486
+ return 65;
487
+ case 4:
488
+ break;
489
+ case 5:
490
+ break;
491
+ case 6:
492
+ return this.begin("acc_title"), 33;
493
+ case 7:
494
+ return this.popState(), "acc_title_value";
495
+ case 8:
496
+ return this.begin("acc_descr"), 35;
497
+ case 9:
498
+ return this.popState(), "acc_descr_value";
499
+ case 10:
500
+ this.begin("acc_descr_multiline");
501
+ break;
502
+ case 11:
503
+ this.popState();
504
+ break;
505
+ case 12:
506
+ return "acc_descr_multiline_value";
507
+ case 13:
508
+ return 8;
509
+ case 14:
510
+ break;
511
+ case 15:
512
+ return 7;
513
+ case 16:
514
+ return 7;
515
+ case 17:
516
+ return "EDGE_STATE";
517
+ case 18:
518
+ this.begin("callback_name");
519
+ break;
520
+ case 19:
521
+ this.popState();
522
+ break;
523
+ case 20:
524
+ this.popState(), this.begin("callback_args");
525
+ break;
526
+ case 21:
527
+ return 79;
528
+ case 22:
529
+ this.popState();
530
+ break;
531
+ case 23:
532
+ return 80;
533
+ case 24:
534
+ this.popState();
535
+ break;
536
+ case 25:
537
+ return "STR";
538
+ case 26:
539
+ this.begin("string");
540
+ break;
541
+ case 27:
542
+ return 82;
543
+ case 28:
544
+ return 57;
545
+ case 29:
546
+ return this.begin("namespace"), 42;
547
+ case 30:
548
+ return this.popState(), 8;
549
+ case 31:
550
+ break;
551
+ case 32:
552
+ return this.begin("namespace-body"), 39;
553
+ case 33:
554
+ return this.popState(), 41;
555
+ case 34:
556
+ return "EOF_IN_STRUCT";
557
+ case 35:
558
+ return 8;
559
+ case 36:
560
+ break;
561
+ case 37:
562
+ return "EDGE_STATE";
563
+ case 38:
564
+ return this.begin("class"), 46;
565
+ case 39:
566
+ return this.popState(), 8;
567
+ case 40:
568
+ break;
569
+ case 41:
570
+ return this.popState(), this.popState(), 41;
571
+ case 42:
572
+ return this.begin("class-body"), 39;
573
+ case 43:
574
+ return this.popState(), 41;
575
+ case 44:
576
+ return "EOF_IN_STRUCT";
577
+ case 45:
578
+ return "EDGE_STATE";
579
+ case 46:
580
+ return "OPEN_IN_STRUCT";
581
+ case 47:
582
+ break;
583
+ case 48:
584
+ return "MEMBER";
585
+ case 49:
586
+ return 83;
587
+ case 50:
588
+ return 75;
589
+ case 51:
590
+ return 76;
591
+ case 52:
592
+ return 78;
593
+ case 53:
594
+ return 54;
595
+ case 54:
596
+ return 56;
597
+ case 55:
598
+ return 49;
599
+ case 56:
600
+ return 50;
601
+ case 57:
602
+ return 81;
603
+ case 58:
604
+ this.popState();
605
+ break;
606
+ case 59:
607
+ return "GENERICTYPE";
608
+ case 60:
609
+ this.begin("generic");
610
+ break;
611
+ case 61:
612
+ this.popState();
613
+ break;
614
+ case 62:
615
+ return "BQUOTE_STR";
616
+ case 63:
617
+ this.begin("bqstring");
618
+ break;
619
+ case 64:
620
+ return 77;
621
+ case 65:
622
+ return 77;
623
+ case 66:
624
+ return 77;
625
+ case 67:
626
+ return 77;
627
+ case 68:
628
+ return 69;
629
+ case 69:
630
+ return 69;
631
+ case 70:
632
+ return 71;
633
+ case 71:
634
+ return 71;
635
+ case 72:
636
+ return 70;
637
+ case 73:
638
+ return 68;
639
+ case 74:
640
+ return 72;
641
+ case 75:
642
+ return 73;
643
+ case 76:
644
+ return 74;
645
+ case 77:
646
+ return 22;
647
+ case 78:
648
+ return 44;
649
+ case 79:
650
+ return 100;
651
+ case 80:
652
+ return 18;
653
+ case 81:
654
+ return "PLUS";
655
+ case 82:
656
+ return 87;
657
+ case 83:
658
+ return 61;
659
+ case 84:
660
+ return 89;
661
+ case 85:
662
+ return 89;
663
+ case 86:
664
+ return 90;
665
+ case 87:
666
+ return "EQUALS";
667
+ case 88:
668
+ return "EQUALS";
669
+ case 89:
670
+ return 60;
671
+ case 90:
672
+ return 12;
673
+ case 91:
674
+ return 14;
675
+ case 92:
676
+ return "PUNCTUATION";
677
+ case 93:
678
+ return 86;
679
+ case 94:
680
+ return 102;
681
+ case 95:
682
+ return 48;
683
+ case 96:
684
+ return 48;
685
+ case 97:
686
+ return 9;
687
+ }
688
+ }, "anonymous"),
689
+ rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:classDiagram-v2\b)/, /^(?:classDiagram\b)/, /^(?:\[\*\])/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:["])/, /^(?:[^"]*)/, /^(?:["])/, /^(?:style\b)/, /^(?:classDef\b)/, /^(?:namespace\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:\[\*\])/, /^(?:class\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[}])/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\[\*\])/, /^(?:[{])/, /^(?:[\n])/, /^(?:[^{}\n]*)/, /^(?:cssClass\b)/, /^(?:callback\b)/, /^(?:link\b)/, /^(?:click\b)/, /^(?:note for\b)/, /^(?:note\b)/, /^(?:<<)/, /^(?:>>)/, /^(?:href\b)/, /^(?:[~])/, /^(?:[^~]*)/, /^(?:~)/, /^(?:[`])/, /^(?:[^`]+)/, /^(?:[`])/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:\s*<\|)/, /^(?:\s*\|>)/, /^(?:\s*>)/, /^(?:\s*<)/, /^(?:\s*\*)/, /^(?:\s*o\b)/, /^(?:\s*\(\))/, /^(?:--)/, /^(?:\.\.)/, /^(?::{1}[^:\n;]+)/, /^(?::{3})/, /^(?:-)/, /^(?:\.)/, /^(?:\+)/, /^(?::)/, /^(?:,)/, /^(?:#)/, /^(?:#)/, /^(?:%)/, /^(?:=)/, /^(?:=)/, /^(?:\w+)/, /^(?:\[)/, /^(?:\])/, /^(?:[!"#$%&'*+,-.`?\\/])/, /^(?:[0-9]+)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\s)/, /^(?:\s)/, /^(?:$)/],
690
+ conditions: { "namespace-body": { rules: [26, 33, 34, 35, 36, 37, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, namespace: { rules: [26, 29, 30, 31, 32, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, "class-body": { rules: [26, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, class: { rules: [26, 39, 40, 41, 42, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, acc_descr_multiline: { rules: [11, 12, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, acc_descr: { rules: [9, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, acc_title: { rules: [7, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, callback_args: { rules: [22, 23, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, callback_name: { rules: [19, 20, 21, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, href: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, struct: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, generic: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, bqstring: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, string: { rules: [24, 25, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: false }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97], inclusive: true } }
691
+ };
692
+ return I;
693
+ }();
694
+ Ne.lexer = qe;
695
+ function oe() {
696
+ this.yy = {};
697
+ }
698
+ return p(oe, "Parser"), oe.prototype = Ne, Ne.Parser = oe, new oe();
699
+ }();
700
+ Ve.parser = Ve;
701
+ var Tt = Ve, We = ["#", "+", "~", "-", ""], G, je = (G = class {
702
+ constructor(i, a) {
703
+ this.memberType = a, this.visibility = "", this.classifier = "", this.text = "";
704
+ const u = ee(i, ut());
705
+ this.parseMember(u);
706
+ }
707
+ getDisplayDetails() {
708
+ let i = this.visibility + Kl(this.id);
709
+ this.memberType === "method" && (i += `(${Kl(this.parameters.trim())})`, this.returnType && (i += " : " + Kl(this.returnType))), i = i.trim();
710
+ const a = this.parseClassifier();
711
+ return {
712
+ displayText: i,
713
+ cssStyle: a
714
+ };
715
+ }
716
+ parseMember(i) {
717
+ let a = "";
718
+ if (this.memberType === "method") {
719
+ const n = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);
720
+ if (n) {
721
+ const p = n[1] ? n[1].trim() : "";
722
+ if (We.includes(p) && (this.visibility = p), this.id = n[2], this.parameters = n[3] ? n[3].trim() : "", a = n[4] ? n[4].trim() : "", this.returnType = n[5] ? n[5].trim() : "", a === "") {
723
+ const f = this.returnType.substring(this.returnType.length - 1);
724
+ /[$*]/.exec(f) && (a = f, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
725
+ }
726
+ }
727
+ } else {
728
+ const l = i.length, n = i.substring(0, 1), p = i.substring(l - 1);
729
+ We.includes(n) && (this.visibility = n), /[$*]/.exec(p) && (a = p), this.id = i.substring(
730
+ this.visibility === "" ? 0 : 1,
731
+ a === "" ? l : l - 1
732
+ );
733
+ }
734
+ this.classifier = a, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
735
+ const u = `${this.visibility ? "\\" + this.visibility : ""}${Kl(this.id)}${this.memberType === "method" ? `(${Kl(this.parameters)})${this.returnType ? " : " + Kl(this.returnType) : ""}` : ""}`;
736
+ this.text = u.replaceAll("<", "&lt;").replaceAll(">", "&gt;"), this.text.startsWith("\\&lt;") && (this.text = this.text.replace("\\&lt;", "~"));
737
+ }
738
+ parseClassifier() {
739
+ switch (this.classifier) {
740
+ case "*":
741
+ return "font-style:italic;";
742
+ case "$":
743
+ return "text-decoration:underline;";
744
+ default:
745
+ return "";
746
+ }
747
+ }
748
+ }, p(G, "ClassMember"), G), pe = "classId-", Xe = 0, V = /* @__PURE__ */ p((s) => Kr.sanitizeText(s, ut()), "sanitizeText"), U, kt = (U = class {
749
+ constructor() {
750
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.functions = [], this.lineType = {
751
+ LINE: 0,
752
+ DOTTED_LINE: 1
753
+ }, this.relationType = {
754
+ AGGREGATION: 0,
755
+ EXTENSION: 1,
756
+ COMPOSITION: 2,
757
+ DEPENDENCY: 3,
758
+ LOLLIPOP: 4
759
+ }, this.setupToolTips = /* @__PURE__ */ p((i) => {
760
+ let a = ht(".mermaidTooltip");
761
+ (a._groups || a)[0][0] === null && (a = ht("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), ht(i).select("svg").selectAll("g.node").on("mouseover", (n) => {
762
+ const p = ht(n.currentTarget);
763
+ if (p.attr("title") === null)
764
+ return;
765
+ const C = this.getBoundingClientRect();
766
+ a.transition().duration(200).style("opacity", ".9"), a.text(p.attr("title")).style("left", window.scrollX + C.left + (C.right - C.left) / 2 + "px").style("top", window.scrollY + C.top - 14 + document.body.scrollTop + "px"), a.html(a.html().replace(/&lt;br\/&gt;/g, "<br/>")), p.classed("hover", true);
767
+ }).on("mouseout", (n) => {
768
+ a.transition().duration(500).style("opacity", 0), ht(n.currentTarget).classed("hover", false);
769
+ });
770
+ }, "setupToolTips"), this.direction = "TB", this.setAccTitle = cy, this.getAccTitle = hy, this.setAccDescription = uy, this.getAccDescription = fy, this.setDiagramTitle = dy, this.getDiagramTitle = py, this.getConfig = /* @__PURE__ */ p(() => ut().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
771
+ }
772
+ splitClassNameAndType(i) {
773
+ const a = Kr.sanitizeText(i, ut());
774
+ let u = "", l = a;
775
+ if (a.indexOf("~") > 0) {
776
+ const n = a.split("~");
777
+ l = V(n[0]), u = V(n[1]);
778
+ }
779
+ return { className: l, type: u };
780
+ }
781
+ setClassLabel(i, a) {
782
+ const u = Kr.sanitizeText(i, ut());
783
+ a && (a = V(a));
784
+ const { className: l } = this.splitClassNameAndType(u);
785
+ this.classes.get(l).label = a, this.classes.get(l).text = `${a}${this.classes.get(l).type ? `<${this.classes.get(l).type}>` : ""}`;
786
+ }
787
+ /**
788
+ * Function called by parser when a node definition has been found.
789
+ *
790
+ * @param id - ID of the class to add
791
+ * @public
792
+ */
793
+ addClass(i) {
794
+ const a = Kr.sanitizeText(i, ut()), { className: u, type: l } = this.splitClassNameAndType(a);
795
+ if (this.classes.has(u))
796
+ return;
797
+ const n = Kr.sanitizeText(u, ut());
798
+ this.classes.set(n, {
799
+ id: n,
800
+ type: l,
801
+ label: n,
802
+ text: `${n}${l ? `&lt;${l}&gt;` : ""}`,
803
+ shape: "classBox",
804
+ cssClasses: "default",
805
+ methods: [],
806
+ members: [],
807
+ annotations: [],
808
+ styles: [],
809
+ domId: pe + n + "-" + Xe
810
+ }), Xe++;
811
+ }
812
+ addInterface(i, a) {
813
+ const u = {
814
+ id: `interface${this.interfaces.length}`,
815
+ label: i,
816
+ classId: a
817
+ };
818
+ this.interfaces.push(u);
819
+ }
820
+ /**
821
+ * Function to lookup domId from id in the graph definition.
822
+ *
823
+ * @param id - class ID to lookup
824
+ * @public
825
+ */
826
+ lookUpDomId(i) {
827
+ const a = Kr.sanitizeText(i, ut());
828
+ if (this.classes.has(a))
829
+ return this.classes.get(a).domId;
830
+ throw new Error("Class not found: " + a);
831
+ }
832
+ clear() {
833
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.direction = "TB", ly();
834
+ }
835
+ getClass(i) {
836
+ return this.classes.get(i);
837
+ }
838
+ getClasses() {
839
+ return this.classes;
840
+ }
841
+ getRelations() {
842
+ return this.relations;
843
+ }
844
+ getNotes() {
845
+ return this.notes;
846
+ }
847
+ addRelation(i) {
848
+ F.debug("Adding relation: " + JSON.stringify(i));
849
+ const a = [
850
+ this.relationType.LOLLIPOP,
851
+ this.relationType.AGGREGATION,
852
+ this.relationType.COMPOSITION,
853
+ this.relationType.DEPENDENCY,
854
+ this.relationType.EXTENSION
855
+ ];
856
+ i.relation.type1 === this.relationType.LOLLIPOP && !a.includes(i.relation.type2) ? (this.addClass(i.id2), this.addInterface(i.id1, i.id2), i.id1 = `interface${this.interfaces.length - 1}`) : i.relation.type2 === this.relationType.LOLLIPOP && !a.includes(i.relation.type1) ? (this.addClass(i.id1), this.addInterface(i.id2, i.id1), i.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(i.id1), this.addClass(i.id2)), i.id1 = this.splitClassNameAndType(i.id1).className, i.id2 = this.splitClassNameAndType(i.id2).className, i.relationTitle1 = Kr.sanitizeText(
857
+ i.relationTitle1.trim(),
858
+ ut()
859
+ ), i.relationTitle2 = Kr.sanitizeText(
860
+ i.relationTitle2.trim(),
861
+ ut()
862
+ ), this.relations.push(i);
863
+ }
864
+ /**
865
+ * Adds an annotation to the specified class Annotations mark special properties of the given type
866
+ * (like 'interface' or 'service')
867
+ *
868
+ * @param className - The class name
869
+ * @param annotation - The name of the annotation without any brackets
870
+ * @public
871
+ */
872
+ addAnnotation(i, a) {
873
+ const u = this.splitClassNameAndType(i).className;
874
+ this.classes.get(u).annotations.push(a);
875
+ }
876
+ /**
877
+ * Adds a member to the specified class
878
+ *
879
+ * @param className - The class name
880
+ * @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is
881
+ * treated as an annotation If the member is ending with a closing bracket ) it is treated as a
882
+ * method Otherwise the member will be treated as a normal property
883
+ * @public
884
+ */
885
+ addMember(i, a) {
886
+ this.addClass(i);
887
+ const u = this.splitClassNameAndType(i).className, l = this.classes.get(u);
888
+ if (typeof a == "string") {
889
+ const n = a.trim();
890
+ n.startsWith("<<") && n.endsWith(">>") ? l.annotations.push(V(n.substring(2, n.length - 2))) : n.indexOf(")") > 0 ? l.methods.push(new je(n, "method")) : n && l.members.push(new je(n, "attribute"));
891
+ }
892
+ }
893
+ addMembers(i, a) {
894
+ Array.isArray(a) && (a.reverse(), a.forEach((u) => this.addMember(i, u)));
895
+ }
896
+ addNote(i, a) {
897
+ const u = {
898
+ id: `note${this.notes.length}`,
899
+ class: a,
900
+ text: i
901
+ };
902
+ this.notes.push(u);
903
+ }
904
+ cleanupLabel(i) {
905
+ return i.startsWith(":") && (i = i.substring(1)), V(i.trim());
906
+ }
907
+ /**
908
+ * Called by parser when assigning cssClass to a class
909
+ *
910
+ * @param ids - Comma separated list of ids
911
+ * @param className - Class to add
912
+ */
913
+ setCssClass(i, a) {
914
+ i.split(",").forEach((u) => {
915
+ let l = u;
916
+ /\d/.exec(u[0]) && (l = pe + l);
917
+ const n = this.classes.get(l);
918
+ n && (n.cssClasses += " " + a);
919
+ });
920
+ }
921
+ defineClass(i, a) {
922
+ for (const u of i) {
923
+ let l = this.styleClasses.get(u);
924
+ l === void 0 && (l = { id: u, styles: [], textStyles: [] }, this.styleClasses.set(u, l)), a && a.forEach((n) => {
925
+ if (/color/.exec(n)) {
926
+ const p = n.replace("fill", "bgFill");
927
+ l.textStyles.push(p);
928
+ }
929
+ l.styles.push(n);
930
+ }), this.classes.forEach((n) => {
931
+ n.cssClasses.includes(u) && n.styles.push(...a.flatMap((p) => p.split(",")));
932
+ });
933
+ }
934
+ }
935
+ /**
936
+ * Called by parser when a tooltip is found, e.g. a clickable element.
937
+ *
938
+ * @param ids - Comma separated list of ids
939
+ * @param tooltip - Tooltip to add
940
+ */
941
+ setTooltip(i, a) {
942
+ i.split(",").forEach((u) => {
943
+ a !== void 0 && (this.classes.get(u).tooltip = V(a));
944
+ });
945
+ }
946
+ getTooltip(i, a) {
947
+ return a && this.namespaces.has(a) ? this.namespaces.get(a).classes.get(i).tooltip : this.classes.get(i).tooltip;
948
+ }
949
+ /**
950
+ * Called by parser when a link is found. Adds the URL to the vertex data.
951
+ *
952
+ * @param ids - Comma separated list of ids
953
+ * @param linkStr - URL to create a link for
954
+ * @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
955
+ */
956
+ setLink(i, a, u) {
957
+ const l = ut();
958
+ i.split(",").forEach((n) => {
959
+ let p = n;
960
+ /\d/.exec(n[0]) && (p = pe + p);
961
+ const f = this.classes.get(p);
962
+ f && (f.link = oe.formatUrl(a, l), l.securityLevel === "sandbox" ? f.linkTarget = "_top" : typeof u == "string" ? f.linkTarget = V(u) : f.linkTarget = "_blank");
963
+ }), this.setCssClass(i, "clickable");
964
+ }
965
+ /**
966
+ * Called by parser when a click definition is found. Registers an event handler.
967
+ *
968
+ * @param ids - Comma separated list of ids
969
+ * @param functionName - Function to be called on click
970
+ * @param functionArgs - Function args the function should be called with
971
+ */
972
+ setClickEvent(i, a, u) {
973
+ i.split(",").forEach((l) => {
974
+ this.setClickFunc(l, a, u), this.classes.get(l).haveCallback = true;
975
+ }), this.setCssClass(i, "clickable");
976
+ }
977
+ setClickFunc(i, a, u) {
978
+ const l = Kr.sanitizeText(i, ut());
979
+ if (ut().securityLevel !== "loose" || a === void 0)
980
+ return;
981
+ const p = l;
982
+ if (this.classes.has(p)) {
983
+ const f = this.lookUpDomId(p);
984
+ let C = [];
985
+ if (typeof u == "string") {
986
+ C = u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
987
+ for (let B = 0; B < C.length; B++) {
988
+ let L = C[B].trim();
989
+ L.startsWith('"') && L.endsWith('"') && (L = L.substr(1, L.length - 2)), C[B] = L;
990
+ }
991
+ }
992
+ C.length === 0 && C.push(f), this.functions.push(() => {
993
+ const B = document.querySelector(`[id="${f}"]`);
994
+ B !== null && B.addEventListener(
995
+ "click",
996
+ () => {
997
+ oe.runFunc(a, ...C);
998
+ },
999
+ false
1000
+ );
1001
+ });
1002
+ }
1003
+ }
1004
+ bindFunctions(i) {
1005
+ this.functions.forEach((a) => {
1006
+ a(i);
1007
+ });
1008
+ }
1009
+ getDirection() {
1010
+ return this.direction;
1011
+ }
1012
+ setDirection(i) {
1013
+ this.direction = i;
1014
+ }
1015
+ /**
1016
+ * Function called by parser when a namespace definition has been found.
1017
+ *
1018
+ * @param id - ID of the namespace to add
1019
+ * @public
1020
+ */
1021
+ addNamespace(i) {
1022
+ this.namespaces.has(i) || (this.namespaces.set(i, {
1023
+ id: i,
1024
+ classes: /* @__PURE__ */ new Map(),
1025
+ children: {},
1026
+ domId: pe + i + "-" + this.namespaceCounter
1027
+ }), this.namespaceCounter++);
1028
+ }
1029
+ getNamespace(i) {
1030
+ return this.namespaces.get(i);
1031
+ }
1032
+ getNamespaces() {
1033
+ return this.namespaces;
1034
+ }
1035
+ /**
1036
+ * Function called by parser when a namespace definition has been found.
1037
+ *
1038
+ * @param id - ID of the namespace to add
1039
+ * @param classNames - IDs of the class to add
1040
+ * @public
1041
+ */
1042
+ addClassesToNamespace(i, a) {
1043
+ if (this.namespaces.has(i))
1044
+ for (const u of a) {
1045
+ const { className: l } = this.splitClassNameAndType(u);
1046
+ this.classes.get(l).parent = i, this.namespaces.get(i).classes.set(l, this.classes.get(l));
1047
+ }
1048
+ }
1049
+ setCssStyle(i, a) {
1050
+ const u = this.classes.get(i);
1051
+ if (!(!a || !u))
1052
+ for (const l of a)
1053
+ l.includes(",") ? u.styles.push(...l.split(",")) : u.styles.push(l);
1054
+ }
1055
+ /**
1056
+ * Gets the arrow marker for a type index
1057
+ *
1058
+ * @param type - The type to look for
1059
+ * @returns The arrow marker
1060
+ */
1061
+ getArrowMarker(i) {
1062
+ let a;
1063
+ switch (i) {
1064
+ case 0:
1065
+ a = "aggregation";
1066
+ break;
1067
+ case 1:
1068
+ a = "extension";
1069
+ break;
1070
+ case 2:
1071
+ a = "composition";
1072
+ break;
1073
+ case 3:
1074
+ a = "dependency";
1075
+ break;
1076
+ case 4:
1077
+ a = "lollipop";
1078
+ break;
1079
+ default:
1080
+ a = "none";
1081
+ }
1082
+ return a;
1083
+ }
1084
+ getData() {
1085
+ const i = [], a = [], u = ut();
1086
+ for (const n of this.namespaces.keys()) {
1087
+ const p = this.namespaces.get(n);
1088
+ if (p) {
1089
+ const f = {
1090
+ id: p.id,
1091
+ label: p.id,
1092
+ isGroup: true,
1093
+ padding: u.class.padding ?? 16,
1094
+ // parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
1095
+ shape: "rect",
1096
+ cssStyles: ["fill: none", "stroke: black"],
1097
+ look: u.look
1098
+ };
1099
+ i.push(f);
1100
+ }
1101
+ }
1102
+ for (const n of this.classes.keys()) {
1103
+ const p = this.classes.get(n);
1104
+ if (p) {
1105
+ const f = p;
1106
+ f.parentId = p.parent, f.look = u.look, i.push(f);
1107
+ }
1108
+ }
1109
+ let l = 0;
1110
+ for (const n of this.notes) {
1111
+ l++;
1112
+ const p = {
1113
+ id: n.id,
1114
+ label: n.text,
1115
+ isGroup: false,
1116
+ shape: "note",
1117
+ padding: u.class.padding ?? 6,
1118
+ cssStyles: [
1119
+ "text-align: left",
1120
+ "white-space: nowrap",
1121
+ `fill: ${u.themeVariables.noteBkgColor}`,
1122
+ `stroke: ${u.themeVariables.noteBorderColor}`
1123
+ ],
1124
+ look: u.look
1125
+ };
1126
+ i.push(p);
1127
+ const f = this.classes.get(n.class)?.id ?? "";
1128
+ if (f) {
1129
+ const C = {
1130
+ id: `edgeNote${l}`,
1131
+ start: n.id,
1132
+ end: f,
1133
+ type: "normal",
1134
+ thickness: "normal",
1135
+ classes: "relation",
1136
+ arrowTypeStart: "none",
1137
+ arrowTypeEnd: "none",
1138
+ arrowheadStyle: "",
1139
+ labelStyle: [""],
1140
+ style: ["fill: none"],
1141
+ pattern: "dotted",
1142
+ look: u.look
1143
+ };
1144
+ a.push(C);
1145
+ }
1146
+ }
1147
+ for (const n of this.interfaces) {
1148
+ const p = {
1149
+ id: n.id,
1150
+ label: n.label,
1151
+ isGroup: false,
1152
+ shape: "rect",
1153
+ cssStyles: ["opacity: 0;"],
1154
+ look: u.look
1155
+ };
1156
+ i.push(p);
1157
+ }
1158
+ l = 0;
1159
+ for (const n of this.relations) {
1160
+ l++;
1161
+ const p = {
1162
+ id: JL(n.id1, n.id2, {
1163
+ prefix: "id",
1164
+ counter: l
1165
+ }),
1166
+ start: n.id1,
1167
+ end: n.id2,
1168
+ type: "normal",
1169
+ label: n.title,
1170
+ labelpos: "c",
1171
+ thickness: "normal",
1172
+ classes: "relation",
1173
+ arrowTypeStart: this.getArrowMarker(n.relation.type1),
1174
+ arrowTypeEnd: this.getArrowMarker(n.relation.type2),
1175
+ startLabelRight: n.relationTitle1 === "none" ? "" : n.relationTitle1,
1176
+ endLabelLeft: n.relationTitle2 === "none" ? "" : n.relationTitle2,
1177
+ arrowheadStyle: "",
1178
+ labelStyle: ["display: inline-block"],
1179
+ style: n.style || "",
1180
+ pattern: n.relation.lineType == 1 ? "dashed" : "solid",
1181
+ look: u.look
1182
+ };
1183
+ a.push(p);
1184
+ }
1185
+ return { nodes: i, edges: a, other: {}, config: u, direction: this.getDirection() };
1186
+ }
1187
+ }, p(U, "ClassDB"), U), At = /* @__PURE__ */ p((s) => `g.classGroup text {
1188
+ fill: ${s.nodeBorder || s.classText};
1189
+ stroke: none;
1190
+ font-family: ${s.fontFamily};
1191
+ font-size: 10px;
1192
+
1193
+ .title {
1194
+ font-weight: bolder;
1195
+ }
1196
+
1197
+ }
1198
+
1199
+ .nodeLabel, .edgeLabel {
1200
+ color: ${s.classText};
1201
+ }
1202
+ .edgeLabel .label rect {
1203
+ fill: ${s.mainBkg};
1204
+ }
1205
+ .label text {
1206
+ fill: ${s.classText};
1207
+ }
1208
+
1209
+ .labelBkg {
1210
+ background: ${s.mainBkg};
1211
+ }
1212
+ .edgeLabel .label span {
1213
+ background: ${s.mainBkg};
1214
+ }
1215
+
1216
+ .classTitle {
1217
+ font-weight: bolder;
1218
+ }
1219
+ .node rect,
1220
+ .node circle,
1221
+ .node ellipse,
1222
+ .node polygon,
1223
+ .node path {
1224
+ fill: ${s.mainBkg};
1225
+ stroke: ${s.nodeBorder};
1226
+ stroke-width: 1px;
1227
+ }
1228
+
1229
+
1230
+ .divider {
1231
+ stroke: ${s.nodeBorder};
1232
+ stroke-width: 1;
1233
+ }
1234
+
1235
+ g.clickable {
1236
+ cursor: pointer;
1237
+ }
1238
+
1239
+ g.classGroup rect {
1240
+ fill: ${s.mainBkg};
1241
+ stroke: ${s.nodeBorder};
1242
+ }
1243
+
1244
+ g.classGroup line {
1245
+ stroke: ${s.nodeBorder};
1246
+ stroke-width: 1;
1247
+ }
1248
+
1249
+ .classLabel .box {
1250
+ stroke: none;
1251
+ stroke-width: 0;
1252
+ fill: ${s.mainBkg};
1253
+ opacity: 0.5;
1254
+ }
1255
+
1256
+ .classLabel .label {
1257
+ fill: ${s.nodeBorder};
1258
+ font-size: 10px;
1259
+ }
1260
+
1261
+ .relation {
1262
+ stroke: ${s.lineColor};
1263
+ stroke-width: 1;
1264
+ fill: none;
1265
+ }
1266
+
1267
+ .dashed-line{
1268
+ stroke-dasharray: 3;
1269
+ }
1270
+
1271
+ .dotted-line{
1272
+ stroke-dasharray: 1 2;
1273
+ }
1274
+
1275
+ #compositionStart, .composition {
1276
+ fill: ${s.lineColor} !important;
1277
+ stroke: ${s.lineColor} !important;
1278
+ stroke-width: 1;
1279
+ }
1280
+
1281
+ #compositionEnd, .composition {
1282
+ fill: ${s.lineColor} !important;
1283
+ stroke: ${s.lineColor} !important;
1284
+ stroke-width: 1;
1285
+ }
1286
+
1287
+ #dependencyStart, .dependency {
1288
+ fill: ${s.lineColor} !important;
1289
+ stroke: ${s.lineColor} !important;
1290
+ stroke-width: 1;
1291
+ }
1292
+
1293
+ #dependencyStart, .dependency {
1294
+ fill: ${s.lineColor} !important;
1295
+ stroke: ${s.lineColor} !important;
1296
+ stroke-width: 1;
1297
+ }
1298
+
1299
+ #extensionStart, .extension {
1300
+ fill: transparent !important;
1301
+ stroke: ${s.lineColor} !important;
1302
+ stroke-width: 1;
1303
+ }
1304
+
1305
+ #extensionEnd, .extension {
1306
+ fill: transparent !important;
1307
+ stroke: ${s.lineColor} !important;
1308
+ stroke-width: 1;
1309
+ }
1310
+
1311
+ #aggregationStart, .aggregation {
1312
+ fill: transparent !important;
1313
+ stroke: ${s.lineColor} !important;
1314
+ stroke-width: 1;
1315
+ }
1316
+
1317
+ #aggregationEnd, .aggregation {
1318
+ fill: transparent !important;
1319
+ stroke: ${s.lineColor} !important;
1320
+ stroke-width: 1;
1321
+ }
1322
+
1323
+ #lollipopStart, .lollipop {
1324
+ fill: ${s.mainBkg} !important;
1325
+ stroke: ${s.lineColor} !important;
1326
+ stroke-width: 1;
1327
+ }
1328
+
1329
+ #lollipopEnd, .lollipop {
1330
+ fill: ${s.mainBkg} !important;
1331
+ stroke: ${s.lineColor} !important;
1332
+ stroke-width: 1;
1333
+ }
1334
+
1335
+ .edgeTerminals {
1336
+ font-size: 11px;
1337
+ line-height: initial;
1338
+ }
1339
+
1340
+ .classTitleText {
1341
+ text-anchor: middle;
1342
+ font-size: 18px;
1343
+ fill: ${s.textColor};
1344
+ }
1345
+ ${l()}
1346
+ `, "getStyles"), Dt = At, ft = /* @__PURE__ */ p((s, i = "TB") => {
1347
+ if (!s.doc)
1348
+ return i;
1349
+ let a = i;
1350
+ for (const u of s.doc)
1351
+ u.stmt === "dir" && (a = u.value);
1352
+ return a;
1353
+ }, "getDir"), gt = /* @__PURE__ */ p(function(s, i) {
1354
+ return i.db.getClasses();
1355
+ }, "getClasses"), Ct = /* @__PURE__ */ p(async function(s, i, a, u) {
1356
+ F.info("REF0:"), F.info("Drawing class diagram (v3)", i);
1357
+ const { securityLevel: l, state: n, layout: p } = ut(), f = u.db.getData(), C = d(i, l);
1358
+ f.type = u.type, f.layoutAlgorithm = sA(p), f.nodeSpacing = n?.nodeSpacing || 50, f.rankSpacing = n?.rankSpacing || 50, f.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], f.diagramId = i, await aA(f, C);
1359
+ const B = 8;
1360
+ oe.insertTitle(
1361
+ C,
1362
+ "classDiagramTitleText",
1363
+ n?.titleTopMargin ?? 25,
1364
+ u.db.getDiagramTitle()
1365
+ ), d$1(C, B, "classDiagram", n?.useMaxWidth ?? true);
1366
+ }, "draw"), Ft = {
1367
+ getClasses: gt,
1368
+ draw: Ct,
1369
+ getDir: ft
1370
+ };
1371
+
1372
+ export { Dt as D, Ft as F, Tt as T, kt as k };
1373
+ //# sourceMappingURL=chunk-K7UQS3LO-Cfwyr-vZ.BAoAWAQk.js.map