@brainfish-ai/components 0.14.2 → 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 (255) 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.BVivOuWt.js → ChatSearch.nXLnU6TL.js} +7 -4
  17. package/dist/esm/chunks/ChatSearch.nXLnU6TL.js.map +1 -0
  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/esm/chunks/ChatSearch.BVivOuWt.js.map +0 -1
  248. package/dist/lib/addUtmParams.d.ts +0 -20
  249. package/dist/lib/api.d.ts +0 -96
  250. package/dist/lib/feature-flags.d.ts +0 -9
  251. package/dist/lib/features.d.ts +0 -3
  252. package/dist/lib/fetchClient.d.ts +0 -19
  253. package/dist/lib/getContentType.d.ts +0 -1
  254. package/dist/lib/hooks.d.ts +0 -15
  255. package/dist/lib/utils.d.ts +0 -8
@@ -0,0 +1,842 @@
1
+ import { d } from './chunk-55IACEB6-DKe9mqg4.BScGh1GA.js';
2
+ import { d as d$1 } from './chunk-QN33PNHL-DspJEonH.BH03Z53b.js';
3
+ import { _ as p, b as cy, a as hy, s as uy, g as fy, p as dy, q as py, c as ut, l as F, y as ly, x as JL, A as Li, B as Zm, o as sA, r as aA, d as ht, u as oe } from './mermaid.core-C5kBD6J-.BXPxVcVa.js';
4
+ import { t } from './channel-0GCo3iLB.B41ZW7VC.js';
5
+
6
+ var dt = function() {
7
+ var s = /* @__PURE__ */ p(function(R, n, a, c) {
8
+ for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
9
+ return a;
10
+ }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50], l = [1, 10], d = [1, 11], o = [1, 12], h = [1, 13], y = [1, 20], _ = [1, 21], E = [1, 22], V = [1, 23], Z = [1, 24], S = [1, 19], et = [1, 25], U = [1, 26], T = [1, 18], L = [1, 33], st = [1, 34], it = [1, 35], rt = [1, 36], nt = [1, 37], pt = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50, 63, 64, 65, 66, 67], O = [1, 42], A = [1, 43], M = [1, 52], B = [40, 50, 68, 69], F = [1, 63], Y = [1, 61], N = [1, 58], P = [1, 62], z = [1, 64], j = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 63, 64, 65, 66, 67], ft = [63, 64, 65, 66, 67], yt = [1, 81], _t = [1, 80], gt = [1, 78], bt = [1, 79], mt = [6, 10, 42, 47], C = [6, 10, 13, 41, 42, 47, 48, 49], W = [1, 89], Q = [1, 88], X = [1, 87], G = [19, 56], Et = [1, 98], kt = [1, 97], at = [19, 56, 58, 60], ct = {
11
+ trace: /* @__PURE__ */ p(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, COLON: 13, role: 14, STYLE_SEPARATOR: 15, idList: 16, BLOCK_START: 17, attributes: 18, BLOCK_STOP: 19, SQS: 20, SQE: 21, title: 22, title_value: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, direction: 29, classDefStatement: 30, classStatement: 31, styleStatement: 32, direction_tb: 33, direction_bt: 34, direction_rl: 35, direction_lr: 36, CLASSDEF: 37, stylesOpt: 38, separator: 39, UNICODE_TEXT: 40, STYLE_TEXT: 41, COMMA: 42, CLASS: 43, STYLE: 44, style: 45, styleComponent: 46, SEMI: 47, NUM: 48, BRKT: 49, ENTITY_NAME: 50, attribute: 51, attributeType: 52, attributeName: 53, attributeKeyTypeList: 54, attributeComment: 55, ATTRIBUTE_WORD: 56, attributeKeyType: 57, ",": 58, ATTRIBUTE_KEY: 59, COMMENT: 60, cardinality: 61, relType: 62, ZERO_OR_ONE: 63, ZERO_OR_MORE: 64, ONE_OR_MORE: 65, ONLY_ONE: 66, MD_PARENT: 67, NON_IDENTIFYING: 68, IDENTIFYING: 69, WORD: 70, $accept: 0, $end: 1 },
15
+ terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: "COLON", 15: "STYLE_SEPARATOR", 17: "BLOCK_START", 19: "BLOCK_STOP", 20: "SQS", 21: "SQE", 22: "title", 23: "title_value", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "direction_tb", 34: "direction_bt", 35: "direction_rl", 36: "direction_lr", 37: "CLASSDEF", 40: "UNICODE_TEXT", 41: "STYLE_TEXT", 42: "COMMA", 43: "CLASS", 44: "STYLE", 47: "SEMI", 48: "NUM", 49: "BRKT", 50: "ENTITY_NAME", 56: "ATTRIBUTE_WORD", 58: ",", 59: "ATTRIBUTE_KEY", 60: "COMMENT", 63: "ZERO_OR_ONE", 64: "ZERO_OR_MORE", 65: "ONE_OR_MORE", 66: "ONLY_ONE", 67: "MD_PARENT", 68: "NON_IDENTIFYING", 69: "IDENTIFYING", 70: "WORD" },
16
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 9], [9, 7], [9, 7], [9, 4], [9, 6], [9, 3], [9, 5], [9, 1], [9, 3], [9, 7], [9, 9], [9, 6], [9, 8], [9, 4], [9, 6], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [29, 1], [29, 1], [29, 1], [29, 1], [30, 4], [16, 1], [16, 1], [16, 3], [16, 3], [31, 3], [32, 4], [38, 1], [38, 3], [45, 1], [45, 2], [39, 1], [39, 1], [39, 1], [46, 1], [46, 1], [46, 1], [46, 1], [11, 1], [11, 1], [18, 1], [18, 2], [51, 2], [51, 3], [51, 3], [51, 4], [52, 1], [53, 1], [54, 1], [54, 3], [57, 1], [55, 1], [12, 3], [61, 1], [61, 1], [61, 1], [61, 1], [61, 1], [62, 1], [62, 1], [14, 1], [14, 1], [14, 1]],
17
+ performAction: /* @__PURE__ */ p(function(n, a, c, r, p, t, K) {
18
+ var e = t.length - 1;
19
+ switch (p) {
20
+ case 1:
21
+ break;
22
+ case 2:
23
+ this.$ = [];
24
+ break;
25
+ case 3:
26
+ t[e - 1].push(t[e]), this.$ = t[e - 1];
27
+ break;
28
+ case 4:
29
+ case 5:
30
+ this.$ = t[e];
31
+ break;
32
+ case 6:
33
+ case 7:
34
+ this.$ = [];
35
+ break;
36
+ case 8:
37
+ r.addEntity(t[e - 4]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 4], t[e], t[e - 2], t[e - 3]);
38
+ break;
39
+ case 9:
40
+ r.addEntity(t[e - 8]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 8], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 8]], t[e - 6]), r.setClass([t[e - 4]], t[e - 2]);
41
+ break;
42
+ case 10:
43
+ r.addEntity(t[e - 6]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 6], t[e], t[e - 2], t[e - 3]), r.setClass([t[e - 6]], t[e - 4]);
44
+ break;
45
+ case 11:
46
+ r.addEntity(t[e - 6]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 6], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 4]], t[e - 2]);
47
+ break;
48
+ case 12:
49
+ r.addEntity(t[e - 3]), r.addAttributes(t[e - 3], t[e - 1]);
50
+ break;
51
+ case 13:
52
+ r.addEntity(t[e - 5]), r.addAttributes(t[e - 5], t[e - 1]), r.setClass([t[e - 5]], t[e - 3]);
53
+ break;
54
+ case 14:
55
+ r.addEntity(t[e - 2]);
56
+ break;
57
+ case 15:
58
+ r.addEntity(t[e - 4]), r.setClass([t[e - 4]], t[e - 2]);
59
+ break;
60
+ case 16:
61
+ r.addEntity(t[e]);
62
+ break;
63
+ case 17:
64
+ r.addEntity(t[e - 2]), r.setClass([t[e - 2]], t[e]);
65
+ break;
66
+ case 18:
67
+ r.addEntity(t[e - 6], t[e - 4]), r.addAttributes(t[e - 6], t[e - 1]);
68
+ break;
69
+ case 19:
70
+ r.addEntity(t[e - 8], t[e - 6]), r.addAttributes(t[e - 8], t[e - 1]), r.setClass([t[e - 8]], t[e - 3]);
71
+ break;
72
+ case 20:
73
+ r.addEntity(t[e - 5], t[e - 3]);
74
+ break;
75
+ case 21:
76
+ r.addEntity(t[e - 7], t[e - 5]), r.setClass([t[e - 7]], t[e - 2]);
77
+ break;
78
+ case 22:
79
+ r.addEntity(t[e - 3], t[e - 1]);
80
+ break;
81
+ case 23:
82
+ r.addEntity(t[e - 5], t[e - 3]), r.setClass([t[e - 5]], t[e]);
83
+ break;
84
+ case 24:
85
+ case 25:
86
+ this.$ = t[e].trim(), r.setAccTitle(this.$);
87
+ break;
88
+ case 26:
89
+ case 27:
90
+ this.$ = t[e].trim(), r.setAccDescription(this.$);
91
+ break;
92
+ case 32:
93
+ r.setDirection("TB");
94
+ break;
95
+ case 33:
96
+ r.setDirection("BT");
97
+ break;
98
+ case 34:
99
+ r.setDirection("RL");
100
+ break;
101
+ case 35:
102
+ r.setDirection("LR");
103
+ break;
104
+ case 36:
105
+ this.$ = t[e - 3], r.addClass(t[e - 2], t[e - 1]);
106
+ break;
107
+ case 37:
108
+ case 38:
109
+ case 56:
110
+ case 64:
111
+ this.$ = [t[e]];
112
+ break;
113
+ case 39:
114
+ case 40:
115
+ this.$ = t[e - 2].concat([t[e]]);
116
+ break;
117
+ case 41:
118
+ this.$ = t[e - 2], r.setClass(t[e - 1], t[e]);
119
+ break;
120
+ case 42:
121
+ this.$ = t[e - 3], r.addCssStyles(t[e - 2], t[e - 1]);
122
+ break;
123
+ case 43:
124
+ this.$ = [t[e]];
125
+ break;
126
+ case 44:
127
+ t[e - 2].push(t[e]), this.$ = t[e - 2];
128
+ break;
129
+ case 46:
130
+ this.$ = t[e - 1] + t[e];
131
+ break;
132
+ case 54:
133
+ case 76:
134
+ case 77:
135
+ this.$ = t[e].replace(/"/g, "");
136
+ break;
137
+ case 55:
138
+ case 78:
139
+ this.$ = t[e];
140
+ break;
141
+ case 57:
142
+ t[e].push(t[e - 1]), this.$ = t[e];
143
+ break;
144
+ case 58:
145
+ this.$ = { type: t[e - 1], name: t[e] };
146
+ break;
147
+ case 59:
148
+ this.$ = { type: t[e - 2], name: t[e - 1], keys: t[e] };
149
+ break;
150
+ case 60:
151
+ this.$ = { type: t[e - 2], name: t[e - 1], comment: t[e] };
152
+ break;
153
+ case 61:
154
+ this.$ = { type: t[e - 3], name: t[e - 2], keys: t[e - 1], comment: t[e] };
155
+ break;
156
+ case 62:
157
+ case 63:
158
+ case 66:
159
+ this.$ = t[e];
160
+ break;
161
+ case 65:
162
+ t[e - 2].push(t[e]), this.$ = t[e - 2];
163
+ break;
164
+ case 67:
165
+ this.$ = t[e].replace(/"/g, "");
166
+ break;
167
+ case 68:
168
+ this.$ = { cardA: t[e], relType: t[e - 1], cardB: t[e - 2] };
169
+ break;
170
+ case 69:
171
+ this.$ = r.Cardinality.ZERO_OR_ONE;
172
+ break;
173
+ case 70:
174
+ this.$ = r.Cardinality.ZERO_OR_MORE;
175
+ break;
176
+ case 71:
177
+ this.$ = r.Cardinality.ONE_OR_MORE;
178
+ break;
179
+ case 72:
180
+ this.$ = r.Cardinality.ONLY_ONE;
181
+ break;
182
+ case 73:
183
+ this.$ = r.Cardinality.MD_PARENT;
184
+ break;
185
+ case 74:
186
+ this.$ = r.Identification.NON_IDENTIFYING;
187
+ break;
188
+ case 75:
189
+ this.$ = r.Identification.IDENTIFYING;
190
+ break;
191
+ }
192
+ }, "anonymous"),
193
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: l, 24: d, 26: o, 28: h, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 27, 11: 9, 22: l, 24: d, 26: o, 28: h, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 28, 61: 32, 15: [1, 29], 17: [1, 30], 20: [1, 31], 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 23: [1, 38] }, { 25: [1, 39] }, { 27: [1, 40] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(pt, [2, 54]), s(pt, [2, 55]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 41, 40: O, 41: A }, { 16: 44, 40: O, 41: A }, { 16: 45, 40: O, 41: A }, s(i, [2, 4]), { 11: 46, 40: S, 50: T }, { 16: 47, 40: O, 41: A }, { 18: 48, 19: [1, 49], 51: 50, 52: 51, 56: M }, { 11: 53, 40: S, 50: T }, { 62: 54, 68: [1, 55], 69: [1, 56] }, s(B, [2, 69]), s(B, [2, 70]), s(B, [2, 71]), s(B, [2, 72]), s(B, [2, 73]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: F, 38: 57, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, s(j, [2, 37]), s(j, [2, 38]), { 16: 65, 40: O, 41: A, 42: N }, { 13: F, 38: 66, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, { 13: [1, 67], 15: [1, 68] }, s(i, [2, 17], { 61: 32, 12: 69, 17: [1, 70], 42: N, 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 19: [1, 71] }, s(i, [2, 14]), { 18: 72, 19: [2, 56], 51: 50, 52: 51, 56: M }, { 53: 73, 56: [1, 74] }, { 56: [2, 62] }, { 21: [1, 75] }, { 61: 76, 63: L, 64: st, 65: it, 66: rt, 67: nt }, s(ft, [2, 74]), s(ft, [2, 75]), { 6: yt, 10: _t, 39: 77, 42: gt, 47: bt }, { 40: [1, 82], 41: [1, 83] }, s(mt, [2, 43], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), s(C, [2, 45]), s(C, [2, 50]), s(C, [2, 51]), s(C, [2, 52]), s(C, [2, 53]), s(i, [2, 41], { 42: N }), { 6: yt, 10: _t, 39: 85, 42: gt, 47: bt }, { 14: 86, 40: W, 50: Q, 70: X }, { 16: 90, 40: O, 41: A }, { 11: 91, 40: S, 50: T }, { 18: 92, 19: [1, 93], 51: 50, 52: 51, 56: M }, s(i, [2, 12]), { 19: [2, 57] }, s(G, [2, 58], { 54: 94, 55: 95, 57: 96, 59: Et, 60: kt }), s([19, 56, 59, 60], [2, 63]), s(i, [2, 22], { 15: [1, 100], 17: [1, 99] }), s([40, 50], [2, 68]), s(i, [2, 36]), { 13: F, 41: Y, 45: 101, 46: 60, 48: P, 49: z }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(j, [2, 39]), s(j, [2, 40]), s(C, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 76]), s(i, [2, 77]), s(i, [2, 78]), { 13: [1, 102], 42: N }, { 13: [1, 104], 15: [1, 103] }, { 19: [1, 105] }, s(i, [2, 15]), s(G, [2, 59], { 55: 106, 58: [1, 107], 60: kt }), s(G, [2, 60]), s(at, [2, 64]), s(G, [2, 67]), s(at, [2, 66]), { 18: 108, 19: [1, 109], 51: 50, 52: 51, 56: M }, { 16: 110, 40: O, 41: A }, s(mt, [2, 44], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), { 14: 111, 40: W, 50: Q, 70: X }, { 16: 112, 40: O, 41: A }, { 14: 113, 40: W, 50: Q, 70: X }, s(i, [2, 13]), s(G, [2, 61]), { 57: 114, 59: Et }, { 19: [1, 115] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 116], 42: N }), s(i, [2, 11]), { 13: [1, 117], 42: N }, s(i, [2, 10]), s(at, [2, 65]), s(i, [2, 18]), { 18: 118, 19: [1, 119], 51: 50, 52: 51, 56: M }, { 14: 120, 40: W, 50: Q, 70: X }, { 19: [1, 121] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
194
+ defaultActions: { 52: [2, 62], 72: [2, 57] },
195
+ parseError: /* @__PURE__ */ p(function(n, a) {
196
+ if (a.recoverable)
197
+ this.trace(n);
198
+ else {
199
+ var c = new Error(n);
200
+ throw c.hash = a, c;
201
+ }
202
+ }, "parseError"),
203
+ parse: /* @__PURE__ */ p(function(n) {
204
+ var a = this, c = [0], r = [], p$1 = [null], t = [], K = this.table, e = "", H = 0, St = 0, xt = 2, Tt = 1, It = t.slice.call(arguments, 1), f = Object.create(this.lexer), x = { yy: {} };
205
+ for (var lt in this.yy)
206
+ Object.prototype.hasOwnProperty.call(this.yy, lt) && (x.yy[lt] = this.yy[lt]);
207
+ f.setInput(n, x.yy), x.yy.lexer = f, x.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
208
+ var ot = f.yylloc;
209
+ t.push(ot);
210
+ var Ct = f.options && f.options.ranges;
211
+ typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
212
+ function vt(b) {
213
+ c.length = c.length - 2 * b, p$1.length = p$1.length - b, t.length = t.length - b;
214
+ }
215
+ p(vt, "popStack");
216
+ function Ot() {
217
+ var b;
218
+ return b = r.pop() || f.lex() || Tt, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
219
+ }
220
+ p(Ot, "lex");
221
+ for (var g, I, m, ht, v = {}, J, k, At, $; ; ) {
222
+ if (I = c[c.length - 1], this.defaultActions[I] ? m = this.defaultActions[I] : ((g === null || typeof g > "u") && (g = Ot()), m = K[I] && K[I][g]), typeof m > "u" || !m.length || !m[0]) {
223
+ var ut = "";
224
+ $ = [];
225
+ for (J in K[I])
226
+ this.terminals_[J] && J > xt && $.push("'" + this.terminals_[J] + "'");
227
+ f.showPosition ? ut = "Parse error on line " + (H + 1) + `:
228
+ ` + f.showPosition() + `
229
+ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut = "Parse error on line " + (H + 1) + ": Unexpected " + (g == Tt ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(ut, {
230
+ text: f.match,
231
+ token: this.terminals_[g] || g,
232
+ line: f.yylineno,
233
+ loc: ot,
234
+ expected: $
235
+ });
236
+ }
237
+ if (m[0] instanceof Array && m.length > 1)
238
+ throw new Error("Parse Error: multiple actions possible at state: " + I + ", token: " + g);
239
+ switch (m[0]) {
240
+ case 1:
241
+ c.push(g), p$1.push(f.yytext), t.push(f.yylloc), c.push(m[1]), g = null, St = f.yyleng, e = f.yytext, H = f.yylineno, ot = f.yylloc;
242
+ break;
243
+ case 2:
244
+ if (k = this.productions_[m[1]][1], v.$ = p$1[p$1.length - k], v._$ = {
245
+ first_line: t[t.length - (k || 1)].first_line,
246
+ last_line: t[t.length - 1].last_line,
247
+ first_column: t[t.length - (k || 1)].first_column,
248
+ last_column: t[t.length - 1].last_column
249
+ }, Ct && (v._$.range = [
250
+ t[t.length - (k || 1)].range[0],
251
+ t[t.length - 1].range[1]
252
+ ]), ht = this.performAction.apply(v, [
253
+ e,
254
+ St,
255
+ H,
256
+ x.yy,
257
+ m[1],
258
+ p$1,
259
+ t
260
+ ].concat(It)), typeof ht < "u")
261
+ return ht;
262
+ k && (c = c.slice(0, -1 * k * 2), p$1 = p$1.slice(0, -1 * k), t = t.slice(0, -1 * k)), c.push(this.productions_[m[1]][0]), p$1.push(v.$), t.push(v._$), At = K[c[c.length - 2]][c[c.length - 1]], c.push(At);
263
+ break;
264
+ case 3:
265
+ return true;
266
+ }
267
+ }
268
+ return true;
269
+ }, "parse")
270
+ }, Rt = /* @__PURE__ */ function() {
271
+ var R = {
272
+ EOF: 1,
273
+ parseError: /* @__PURE__ */ p(function(a, c) {
274
+ if (this.yy.parser)
275
+ this.yy.parser.parseError(a, c);
276
+ else
277
+ throw new Error(a);
278
+ }, "parseError"),
279
+ // resets the lexer, sets new input
280
+ setInput: /* @__PURE__ */ p(function(n, a) {
281
+ return this.yy = a || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
282
+ first_line: 1,
283
+ first_column: 0,
284
+ last_line: 1,
285
+ last_column: 0
286
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
287
+ }, "setInput"),
288
+ // consumes and returns one char from the input
289
+ input: /* @__PURE__ */ p(function() {
290
+ var n = this._input[0];
291
+ this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
292
+ var a = n.match(/(?:\r\n?|\n).*/g);
293
+ return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
294
+ }, "input"),
295
+ // unshifts one char (or a string) into the input
296
+ unput: /* @__PURE__ */ p(function(n) {
297
+ var a = n.length, c = n.split(/(?:\r\n?|\n)/g);
298
+ this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
299
+ var r = this.match.split(/(?:\r\n?|\n)/g);
300
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
301
+ var p = this.yylloc.range;
302
+ return this.yylloc = {
303
+ first_line: this.yylloc.first_line,
304
+ last_line: this.yylineno + 1,
305
+ first_column: this.yylloc.first_column,
306
+ last_column: c ? (c.length === r.length ? this.yylloc.first_column : 0) + r[r.length - c.length].length - c[0].length : this.yylloc.first_column - a
307
+ }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
308
+ }, "unput"),
309
+ // When called from action, caches matched text and appends it on next action
310
+ more: /* @__PURE__ */ p(function() {
311
+ return this._more = true, this;
312
+ }, "more"),
313
+ // 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.
314
+ reject: /* @__PURE__ */ p(function() {
315
+ if (this.options.backtrack_lexer)
316
+ this._backtrack = true;
317
+ else
318
+ 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).
319
+ ` + this.showPosition(), {
320
+ text: "",
321
+ token: null,
322
+ line: this.yylineno
323
+ });
324
+ return this;
325
+ }, "reject"),
326
+ // retain first n characters of the match
327
+ less: /* @__PURE__ */ p(function(n) {
328
+ this.unput(this.match.slice(n));
329
+ }, "less"),
330
+ // displays already matched input, i.e. for error messages
331
+ pastInput: /* @__PURE__ */ p(function() {
332
+ var n = this.matched.substr(0, this.matched.length - this.match.length);
333
+ return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
334
+ }, "pastInput"),
335
+ // displays upcoming input, i.e. for error messages
336
+ upcomingInput: /* @__PURE__ */ p(function() {
337
+ var n = this.match;
338
+ return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
339
+ }, "upcomingInput"),
340
+ // displays the character position where the lexing error occurred, i.e. for error messages
341
+ showPosition: /* @__PURE__ */ p(function() {
342
+ var n = this.pastInput(), a = new Array(n.length + 1).join("-");
343
+ return n + this.upcomingInput() + `
344
+ ` + a + "^";
345
+ }, "showPosition"),
346
+ // test the lexed token: return FALSE when not a match, otherwise return token
347
+ test_match: /* @__PURE__ */ p(function(n, a) {
348
+ var c, r, p;
349
+ if (this.options.backtrack_lexer && (p = {
350
+ yylineno: this.yylineno,
351
+ yylloc: {
352
+ first_line: this.yylloc.first_line,
353
+ last_line: this.last_line,
354
+ first_column: this.yylloc.first_column,
355
+ last_column: this.yylloc.last_column
356
+ },
357
+ yytext: this.yytext,
358
+ match: this.match,
359
+ matches: this.matches,
360
+ matched: this.matched,
361
+ yyleng: this.yyleng,
362
+ offset: this.offset,
363
+ _more: this._more,
364
+ _input: this._input,
365
+ yy: this.yy,
366
+ conditionStack: this.conditionStack.slice(0),
367
+ done: this.done
368
+ }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
369
+ first_line: this.yylloc.last_line,
370
+ last_line: this.yylineno + 1,
371
+ first_column: this.yylloc.last_column,
372
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
373
+ }, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), c)
374
+ return c;
375
+ if (this._backtrack) {
376
+ for (var t in p)
377
+ this[t] = p[t];
378
+ return false;
379
+ }
380
+ return false;
381
+ }, "test_match"),
382
+ // return next match in input
383
+ next: /* @__PURE__ */ p(function() {
384
+ if (this.done)
385
+ return this.EOF;
386
+ this._input || (this.done = true);
387
+ var n, a, c, r;
388
+ this._more || (this.yytext = "", this.match = "");
389
+ for (var p = this._currentRules(), t = 0; t < p.length; t++)
390
+ if (c = this._input.match(this.rules[p[t]]), c && (!a || c[0].length > a[0].length)) {
391
+ if (a = c, r = t, this.options.backtrack_lexer) {
392
+ if (n = this.test_match(c, p[t]), n !== false)
393
+ return n;
394
+ if (this._backtrack) {
395
+ a = false;
396
+ continue;
397
+ } else
398
+ return false;
399
+ } else if (!this.options.flex)
400
+ break;
401
+ }
402
+ return a ? (n = this.test_match(a, p[r]), n !== false ? n : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
403
+ ` + this.showPosition(), {
404
+ text: "",
405
+ token: null,
406
+ line: this.yylineno
407
+ });
408
+ }, "next"),
409
+ // return next match that has a token
410
+ lex: /* @__PURE__ */ p(function() {
411
+ var a = this.next();
412
+ return a || this.lex();
413
+ }, "lex"),
414
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
415
+ begin: /* @__PURE__ */ p(function(a) {
416
+ this.conditionStack.push(a);
417
+ }, "begin"),
418
+ // pop the previously active lexer condition state off the condition stack
419
+ popState: /* @__PURE__ */ p(function() {
420
+ var a = this.conditionStack.length - 1;
421
+ return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
422
+ }, "popState"),
423
+ // produce the lexer rule set which is active for the currently active lexer condition state
424
+ _currentRules: /* @__PURE__ */ p(function() {
425
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
426
+ }, "_currentRules"),
427
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
428
+ topState: /* @__PURE__ */ p(function(a) {
429
+ return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
430
+ }, "topState"),
431
+ // alias for begin(condition)
432
+ pushState: /* @__PURE__ */ p(function(a) {
433
+ this.begin(a);
434
+ }, "pushState"),
435
+ // return the number of states currently on the stack
436
+ stateStackSize: /* @__PURE__ */ p(function() {
437
+ return this.conditionStack.length;
438
+ }, "stateStackSize"),
439
+ options: { "case-insensitive": true },
440
+ performAction: /* @__PURE__ */ p(function(a, c, r, p) {
441
+ switch (r) {
442
+ case 0:
443
+ return this.begin("acc_title"), 24;
444
+ case 1:
445
+ return this.popState(), "acc_title_value";
446
+ case 2:
447
+ return this.begin("acc_descr"), 26;
448
+ case 3:
449
+ return this.popState(), "acc_descr_value";
450
+ case 4:
451
+ this.begin("acc_descr_multiline");
452
+ break;
453
+ case 5:
454
+ this.popState();
455
+ break;
456
+ case 6:
457
+ return "acc_descr_multiline_value";
458
+ case 7:
459
+ return 33;
460
+ case 8:
461
+ return 34;
462
+ case 9:
463
+ return 35;
464
+ case 10:
465
+ return 36;
466
+ case 11:
467
+ return 10;
468
+ case 12:
469
+ break;
470
+ case 13:
471
+ return 8;
472
+ case 14:
473
+ return 50;
474
+ case 15:
475
+ return 70;
476
+ case 16:
477
+ return 4;
478
+ case 17:
479
+ return this.begin("block"), 17;
480
+ case 18:
481
+ return 49;
482
+ case 19:
483
+ return 49;
484
+ case 20:
485
+ return 42;
486
+ case 21:
487
+ return 15;
488
+ case 22:
489
+ return 13;
490
+ case 23:
491
+ break;
492
+ case 24:
493
+ return 59;
494
+ case 25:
495
+ return 56;
496
+ case 26:
497
+ return 56;
498
+ case 27:
499
+ return 60;
500
+ case 28:
501
+ break;
502
+ case 29:
503
+ return this.popState(), 19;
504
+ case 30:
505
+ return c.yytext[0];
506
+ case 31:
507
+ return 20;
508
+ case 32:
509
+ return 21;
510
+ case 33:
511
+ return this.begin("style"), 44;
512
+ case 34:
513
+ return this.popState(), 10;
514
+ case 35:
515
+ break;
516
+ case 36:
517
+ return 13;
518
+ case 37:
519
+ return 42;
520
+ case 38:
521
+ return 49;
522
+ case 39:
523
+ return this.begin("style"), 37;
524
+ case 40:
525
+ return 43;
526
+ case 41:
527
+ return 63;
528
+ case 42:
529
+ return 65;
530
+ case 43:
531
+ return 65;
532
+ case 44:
533
+ return 65;
534
+ case 45:
535
+ return 63;
536
+ case 46:
537
+ return 63;
538
+ case 47:
539
+ return 64;
540
+ case 48:
541
+ return 64;
542
+ case 49:
543
+ return 64;
544
+ case 50:
545
+ return 64;
546
+ case 51:
547
+ return 64;
548
+ case 52:
549
+ return 65;
550
+ case 53:
551
+ return 64;
552
+ case 54:
553
+ return 65;
554
+ case 55:
555
+ return 66;
556
+ case 56:
557
+ return 66;
558
+ case 57:
559
+ return 66;
560
+ case 58:
561
+ return 66;
562
+ case 59:
563
+ return 63;
564
+ case 60:
565
+ return 64;
566
+ case 61:
567
+ return 65;
568
+ case 62:
569
+ return 67;
570
+ case 63:
571
+ return 68;
572
+ case 64:
573
+ return 69;
574
+ case 65:
575
+ return 69;
576
+ case 66:
577
+ return 68;
578
+ case 67:
579
+ return 68;
580
+ case 68:
581
+ return 68;
582
+ case 69:
583
+ return 41;
584
+ case 70:
585
+ return 47;
586
+ case 71:
587
+ return 40;
588
+ case 72:
589
+ return 48;
590
+ case 73:
591
+ return c.yytext[0];
592
+ case 74:
593
+ return 6;
594
+ }
595
+ }, "anonymous"),
596
+ rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:#)/i, /^(?:#)/i, /^(?:,)/i, /^(?::::)/i, /^(?::)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:([^\s]*)[~].*[~]([^\s]*))/i, /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:style\b)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?::)/i, /^(?:,)/i, /^(?:#)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:1\b)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:\s*u\b)/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:;)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:[0-9])/i, /^(?:.)/i, /^(?:$)/i],
597
+ conditions: { style: { rules: [34, 35, 36, 37, 38, 69, 70], inclusive: false }, acc_descr_multiline: { rules: [5, 6], inclusive: false }, acc_descr: { rules: [3], inclusive: false }, acc_title: { rules: [1], inclusive: false }, block: { rules: [23, 24, 25, 26, 27, 28, 29, 30], inclusive: false }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 31, 32, 33, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 71, 72, 73, 74], inclusive: true } }
598
+ };
599
+ return R;
600
+ }();
601
+ ct.lexer = Rt;
602
+ function q() {
603
+ this.yy = {};
604
+ }
605
+ return p(q, "Parser"), q.prototype = ct, ct.Parser = q, new q();
606
+ }();
607
+ dt.parser = dt;
608
+ var Xt = dt, w, qt = (w = class {
609
+ constructor() {
610
+ this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
611
+ ZERO_OR_ONE: "ZERO_OR_ONE",
612
+ ZERO_OR_MORE: "ZERO_OR_MORE",
613
+ ONE_OR_MORE: "ONE_OR_MORE",
614
+ ONLY_ONE: "ONLY_ONE",
615
+ MD_PARENT: "MD_PARENT"
616
+ }, this.Identification = {
617
+ NON_IDENTIFYING: "NON_IDENTIFYING",
618
+ IDENTIFYING: "IDENTIFYING"
619
+ }, this.setAccTitle = cy, this.getAccTitle = hy, this.setAccDescription = uy, this.getAccDescription = fy, this.setDiagramTitle = dy, this.getDiagramTitle = py, this.getConfig = /* @__PURE__ */ p(() => ut().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
620
+ }
621
+ /**
622
+ * Add entity
623
+ * @param name - The name of the entity
624
+ * @param alias - The alias of the entity
625
+ */
626
+ addEntity(i, l = "") {
627
+ return this.entities.has(i) ? !this.entities.get(i)?.alias && l && (this.entities.get(i).alias = l, F.info(`Add alias '${l}' to entity '${i}'`)) : (this.entities.set(i, {
628
+ id: `entity-${i}-${this.entities.size}`,
629
+ label: i,
630
+ attributes: [],
631
+ alias: l,
632
+ shape: "erBox",
633
+ look: ut().look ?? "default",
634
+ cssClasses: "default",
635
+ cssStyles: []
636
+ }), F.info("Added new entity :", i)), this.entities.get(i);
637
+ }
638
+ getEntity(i) {
639
+ return this.entities.get(i);
640
+ }
641
+ getEntities() {
642
+ return this.entities;
643
+ }
644
+ getClasses() {
645
+ return this.classes;
646
+ }
647
+ addAttributes(i, l) {
648
+ const d = this.addEntity(i);
649
+ let o;
650
+ for (o = l.length - 1; o >= 0; o--)
651
+ l[o].keys || (l[o].keys = []), l[o].comment || (l[o].comment = ""), d.attributes.push(l[o]), F.debug("Added attribute ", l[o].name);
652
+ }
653
+ /**
654
+ * Add a relationship
655
+ *
656
+ * @param entA - The first entity in the relationship
657
+ * @param rolA - The role played by the first entity in relation to the second
658
+ * @param entB - The second entity in the relationship
659
+ * @param rSpec - The details of the relationship between the two entities
660
+ */
661
+ addRelationship(i, l, d, o) {
662
+ const h = this.entities.get(i), y = this.entities.get(d);
663
+ if (!h || !y)
664
+ return;
665
+ const _ = {
666
+ entityA: h.id,
667
+ roleA: l,
668
+ entityB: y.id,
669
+ relSpec: o
670
+ };
671
+ this.relationships.push(_), F.debug("Added new relationship :", _);
672
+ }
673
+ getRelationships() {
674
+ return this.relationships;
675
+ }
676
+ getDirection() {
677
+ return this.direction;
678
+ }
679
+ setDirection(i) {
680
+ this.direction = i;
681
+ }
682
+ getCompiledStyles(i) {
683
+ let l = [];
684
+ for (const d of i) {
685
+ const o = this.classes.get(d);
686
+ o?.styles && (l = [...l, ...o.styles ?? []].map((h) => h.trim())), o?.textStyles && (l = [...l, ...o.textStyles ?? []].map((h) => h.trim()));
687
+ }
688
+ return l;
689
+ }
690
+ addCssStyles(i, l) {
691
+ for (const d of i) {
692
+ const o = this.entities.get(d);
693
+ if (!l || !o)
694
+ return;
695
+ for (const h of l)
696
+ o.cssStyles.push(h);
697
+ }
698
+ }
699
+ addClass(i, l) {
700
+ i.forEach((d) => {
701
+ let o = this.classes.get(d);
702
+ o === void 0 && (o = { id: d, styles: [], textStyles: [] }, this.classes.set(d, o)), l && l.forEach(function(h) {
703
+ if (/color/.exec(h)) {
704
+ const y = h.replace("fill", "bgFill");
705
+ o.textStyles.push(y);
706
+ }
707
+ o.styles.push(h);
708
+ });
709
+ });
710
+ }
711
+ setClass(i, l) {
712
+ for (const d of i) {
713
+ const o = this.entities.get(d);
714
+ if (o)
715
+ for (const h of l)
716
+ o.cssClasses += " " + h;
717
+ }
718
+ }
719
+ clear() {
720
+ this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], ly();
721
+ }
722
+ getData() {
723
+ const i = [], l = [], d = ut();
724
+ for (const h of this.entities.keys()) {
725
+ const y = this.entities.get(h);
726
+ y && (y.cssCompiledStyles = this.getCompiledStyles(y.cssClasses.split(" ")), i.push(y));
727
+ }
728
+ let o = 0;
729
+ for (const h of this.relationships) {
730
+ const y = {
731
+ id: JL(h.entityA, h.entityB, {
732
+ prefix: "id",
733
+ counter: o++
734
+ }),
735
+ type: "normal",
736
+ curve: "basis",
737
+ start: h.entityA,
738
+ end: h.entityB,
739
+ label: h.roleA,
740
+ labelpos: "c",
741
+ thickness: "normal",
742
+ classes: "relationshipLine",
743
+ arrowTypeStart: h.relSpec.cardB.toLowerCase(),
744
+ arrowTypeEnd: h.relSpec.cardA.toLowerCase(),
745
+ pattern: h.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
746
+ look: d.look
747
+ };
748
+ l.push(y);
749
+ }
750
+ return { nodes: i, edges: l, other: {}, config: d, direction: "TB" };
751
+ }
752
+ }, p(w, "ErDB"), w), Nt = {};
753
+ Zm(Nt, {
754
+ draw: () => Ht
755
+ });
756
+ var Ht = /* @__PURE__ */ p(async function(s, i, l, d$2) {
757
+ F.info("REF0:"), F.info("Drawing er diagram (unified)", i);
758
+ const { securityLevel: o, er: h, layout: y } = ut(), _ = d$2.db.getData(), E = d(i, o);
759
+ _.type = d$2.type, _.layoutAlgorithm = sA(y), _.config.flowchart.nodeSpacing = h?.nodeSpacing || 140, _.config.flowchart.rankSpacing = h?.rankSpacing || 80, _.direction = d$2.db.getDirection(), _.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], _.diagramId = i, await aA(_, E), _.layoutAlgorithm === "elk" && E.select(".edges").lower();
760
+ const V = E.selectAll('[id*="-background"]');
761
+ Array.from(V).length > 0 && V.each(function() {
762
+ const S = ht(this), U = S.attr("id").replace("-background", ""), T = E.select(`#${CSS.escape(U)}`);
763
+ if (!T.empty()) {
764
+ const L = T.attr("transform");
765
+ S.attr("transform", L);
766
+ }
767
+ });
768
+ const Z = 8;
769
+ oe.insertTitle(
770
+ E,
771
+ "erDiagramTitleText",
772
+ h?.titleTopMargin ?? 25,
773
+ d$2.db.getDiagramTitle()
774
+ ), d$1(E, Z, "erDiagram", h?.useMaxWidth ?? true);
775
+ }, "draw"), Jt = /* @__PURE__ */ p((s, i) => {
776
+ const l = t, d = l(s, "r"), o = l(s, "g"), h = l(s, "b");
777
+ return Li(d, o, h, i);
778
+ }, "fade"), $t = /* @__PURE__ */ p((s) => `
779
+ .entityBox {
780
+ fill: ${s.mainBkg};
781
+ stroke: ${s.nodeBorder};
782
+ }
783
+
784
+ .relationshipLabelBox {
785
+ fill: ${s.tertiaryColor};
786
+ opacity: 0.7;
787
+ background-color: ${s.tertiaryColor};
788
+ rect {
789
+ opacity: 0.5;
790
+ }
791
+ }
792
+
793
+ .labelBkg {
794
+ background-color: ${Jt(s.tertiaryColor, 0.5)};
795
+ }
796
+
797
+ .edgeLabel .label {
798
+ fill: ${s.nodeBorder};
799
+ font-size: 14px;
800
+ }
801
+
802
+ .label {
803
+ font-family: ${s.fontFamily};
804
+ color: ${s.nodeTextColor || s.textColor};
805
+ }
806
+
807
+ .edge-pattern-dashed {
808
+ stroke-dasharray: 8,8;
809
+ }
810
+
811
+ .node rect,
812
+ .node circle,
813
+ .node ellipse,
814
+ .node polygon
815
+ {
816
+ fill: ${s.mainBkg};
817
+ stroke: ${s.nodeBorder};
818
+ stroke-width: 1px;
819
+ }
820
+
821
+ .relationshipLine {
822
+ stroke: ${s.lineColor};
823
+ stroke-width: 1;
824
+ fill: none;
825
+ }
826
+
827
+ .marker {
828
+ fill: none !important;
829
+ stroke: ${s.lineColor} !important;
830
+ stroke-width: 1;
831
+ }
832
+ `, "getStyles"), te = $t, ne = {
833
+ parser: Xt,
834
+ get db() {
835
+ return new qt();
836
+ },
837
+ renderer: Nt,
838
+ styles: te
839
+ };
840
+
841
+ export { ne as diagram };
842
+ //# sourceMappingURL=erDiagram-AWTI2OKA-CuacxCQc.BRxf9Bvb.js.map