@aiquants/markdown 12.2.3 → 13.0.0

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 (265) hide show
  1. package/README.md +383 -75
  2. package/dist/{abnfDiagram-VRR7QNED-DQ52KUbH.js → abnfDiagram-VRR7QNED-B3Q9attM.js} +9 -9
  3. package/dist/abnfDiagram-VRR7QNED-QW4YM2AY.cjs +1 -0
  4. package/dist/arc-BBLXr5EU.js +83 -0
  5. package/dist/arc-Cn8XXgbN.cjs +1 -0
  6. package/dist/{architectureDiagram-ZJ3FMSHR-Cc9gQRX2.js → architectureDiagram-ZJ3FMSHR-BaSp0hC2.js} +2 -2
  7. package/dist/architectureDiagram-ZJ3FMSHR-BfmjNYww.cjs +36 -0
  8. package/dist/{blockDiagram-677ZJIJ3-DIpIE77y.js → blockDiagram-677ZJIJ3-DFcPQ19k.js} +3 -3
  9. package/dist/{blockDiagram-677ZJIJ3-BCgCtZXM.cjs → blockDiagram-677ZJIJ3-u7d3VCxA.cjs} +1 -1
  10. package/dist/{c4Diagram-LMCZKHZV-jgR25uUP.js → c4Diagram-LMCZKHZV-DW0yo5tR.js} +2 -2
  11. package/dist/{c4Diagram-LMCZKHZV-q0iHoZqg.cjs → c4Diagram-LMCZKHZV-nScsMUE3.cjs} +1 -1
  12. package/dist/{channel-Bw3o-12p.js → channel-B2FBCr9X.js} +1 -1
  13. package/dist/channel-DlkTPSf_.cjs +1 -0
  14. package/dist/{chunk-2Q5K7J3B-0amJDSXB.js → chunk-2Q5K7J3B-BkE4Fsuz.js} +1 -1
  15. package/dist/chunk-2Q5K7J3B-evSha-HP.cjs +1 -0
  16. package/dist/{chunk-32BRIVSS-BMqTi8UH.js → chunk-32BRIVSS-CqpDiZD2.js} +1 -1
  17. package/dist/chunk-32BRIVSS-rIw6tBRO.cjs +1 -0
  18. package/dist/{chunk-5VM5RSS4-C0OtlojA.cjs → chunk-5VM5RSS4-CYVpj2mc.cjs} +1 -1
  19. package/dist/{chunk-5VM5RSS4-EGE3VaH8.js → chunk-5VM5RSS4-DAgNhPcU.js} +1 -1
  20. package/dist/{chunk-EX3LRPZG-4qSuVZkz.cjs → chunk-EX3LRPZG-Ct2cyGh-.cjs} +1 -1
  21. package/dist/{chunk-EX3LRPZG-wasnZ2h7.js → chunk-EX3LRPZG-QFjD28UF.js} +37 -37
  22. package/dist/{chunk-JWPE2WC7-O891tu2Q.js → chunk-JWPE2WC7-Bj2m1SXZ.js} +1 -1
  23. package/dist/chunk-JWPE2WC7-Dgw1ILoe.cjs +1 -0
  24. package/dist/{chunk-MOJQB5TN-BzuZr6pz.js → chunk-MOJQB5TN-B1fdnpCz.js} +121 -121
  25. package/dist/{chunk-MOJQB5TN-BSfpWEVd.cjs → chunk-MOJQB5TN-yjlPYCh4.cjs} +3 -3
  26. package/dist/{chunk-PUDLZKDR-DNbm7Xzd.cjs → chunk-PUDLZKDR-BlQ3qKcC.cjs} +4 -4
  27. package/dist/{chunk-PUDLZKDR-BRL3efwE.js → chunk-PUDLZKDR-CIcw3cpm.js} +16 -16
  28. package/dist/chunk-RYQCIY6F-B-V6UOJy.cjs +1 -0
  29. package/dist/{chunk-RYQCIY6F-DwmsCCiA.js → chunk-RYQCIY6F-DyVk8fNp.js} +1 -1
  30. package/dist/{chunk-V7JOEXUC-BowEdIo-.cjs → chunk-V7JOEXUC-B1EgagKh.cjs} +3 -3
  31. package/dist/{chunk-V7JOEXUC-D0oynREN.js → chunk-V7JOEXUC-C776k7_V.js} +5 -5
  32. package/dist/{chunk-VR4S4FIN-Dg_3SNs1.js → chunk-VR4S4FIN-CyqARa17.js} +3 -3
  33. package/dist/chunk-VR4S4FIN-Sx71KwIQ.cjs +1 -0
  34. package/dist/{chunk-XXDRQBXY-Byo5u3b_.js → chunk-XXDRQBXY-B-99Fbs_.js} +3 -3
  35. package/dist/chunk-XXDRQBXY-BgeRIUG1.cjs +1 -0
  36. package/dist/classDiagram-OUVF2IWQ-BLAiuPPL.cjs +1 -0
  37. package/dist/{classDiagram-v2-EOCWNBFH-CVu4_B8x.js → classDiagram-OUVF2IWQ-DJ0hW16Q.js} +2 -2
  38. package/dist/classDiagram-v2-EOCWNBFH-BLAiuPPL.cjs +1 -0
  39. package/dist/{classDiagram-OUVF2IWQ-CVu4_B8x.js → classDiagram-v2-EOCWNBFH-DJ0hW16Q.js} +2 -2
  40. package/dist/{code-blocks-BWr5Xg1I.js → code-blocks-C6J8rVTc.js} +23 -22
  41. package/dist/{code-blocks-BdKjppKq.cjs → code-blocks-CTESwslp.cjs} +3 -3
  42. package/dist/code-blocks.cjs +1 -1
  43. package/dist/code-blocks.d.ts +1 -0
  44. package/dist/code-blocks.js +15 -14
  45. package/dist/components/CopyButton.d.ts +8 -0
  46. package/dist/components/HostedScrollArea.d.ts +2 -1
  47. package/dist/components/MarkdownRenderer.d.ts +37 -3
  48. package/dist/components/MarkdownViewer.d.ts +15 -4
  49. package/dist/components/MermaidDiagram.d.ts +1 -0
  50. package/dist/components/ReadingPlaceKeeper.d.ts +32 -0
  51. package/dist/components/SelectionKeeper.d.ts +38 -0
  52. package/dist/components/SpreadsheetBlock.d.ts +4 -2
  53. package/dist/components/blockKeys.d.ts +9 -2
  54. package/dist/components/blockOffsets.d.ts +3 -0
  55. package/dist/components/clipboard.d.ts +1 -0
  56. package/dist/components/codeBlockLabels.d.ts +9 -0
  57. package/dist/components/cssLength.d.ts +1 -0
  58. package/dist/components/displayMathLabels.d.ts +11 -0
  59. package/dist/components/embeds/ClientFrame.d.ts +1 -0
  60. package/dist/components/embeds/ProviderEmbed.d.ts +2 -1
  61. package/dist/components/embeds/embedLabels.d.ts +1 -1
  62. package/dist/components/embeds/linkCardFetch.d.ts +2 -0
  63. package/dist/components/embeds.d.ts +5 -0
  64. package/dist/components/headingLevels.d.ts +6 -0
  65. package/dist/components/htmlNodes.d.ts +2 -0
  66. package/dist/components/htmlSanitizer.d.ts +15 -2
  67. package/dist/components/labels.d.ts +3 -2
  68. package/dist/components/links.d.ts +1 -0
  69. package/dist/components/mathRendering.d.ts +3 -1
  70. package/dist/components/mdastNodes/CodeNode.d.ts +5 -1
  71. package/dist/components/mdastNodes/MathNode.d.ts +6 -5
  72. package/dist/components/mermaidLabels.d.ts +5 -0
  73. package/dist/components/mermaidSetup.d.ts +10 -0
  74. package/dist/components/missingImageLabels.d.ts +2 -0
  75. package/dist/components/ownPixels.d.ts +4 -0
  76. package/dist/components/rawHtml.d.ts +7 -3
  77. package/dist/components/spreadsheetModel.d.ts +1 -0
  78. package/dist/components/toolbarOverlap.d.ts +4 -1
  79. package/dist/components/viewerLabels.d.ts +22 -3
  80. package/dist/components/viewerToolbarStyles.d.ts +2 -0
  81. package/dist/contentColors.d.ts +21 -0
  82. package/dist/conversion.d.ts +7 -0
  83. package/dist/converter/NOTICES.md +6 -6
  84. package/dist/converter/createMarkdownConverter.d.ts +1 -0
  85. package/dist/converter/protocol.d.ts +4 -0
  86. package/dist/converter.cjs +1 -1
  87. package/dist/converter.js +89 -71
  88. package/dist/converter.wasm +0 -0
  89. package/dist/{cose-bilkent-JH36ORCC-BmM-AQ-j.js → cose-bilkent-JH36ORCC-CR6Hdvto.js} +1 -1
  90. package/dist/cose-bilkent-JH36ORCC-reAbGeDU.cjs +1 -0
  91. package/dist/cynefinDiagram-TSTJHNR4-2qz-sUtp.cjs +62 -0
  92. package/dist/{cynefinDiagram-TSTJHNR4-iS4n-7T_.js → cynefinDiagram-TSTJHNR4-D1eY-FSf.js} +56 -56
  93. package/dist/dagre-VKFMJZFB-Byr9WPjb.cjs +4 -0
  94. package/dist/{dagre-VKFMJZFB-C1Y6S6Dm.js → dagre-VKFMJZFB-CXSczF8v.js} +25 -25
  95. package/dist/{diagram-FQU43EPY-CRXs7mU1.cjs → diagram-FQU43EPY-2YWng437.cjs} +1 -1
  96. package/dist/{diagram-FQU43EPY-CFG9AlAq.js → diagram-FQU43EPY-BZo0xcaj.js} +35 -35
  97. package/dist/diagram-G47NLZAW-CQS7BN4F.cjs +24 -0
  98. package/dist/{diagram-G47NLZAW-Bqr76Qn5.js → diagram-G47NLZAW-CvJW9ny8.js} +60 -60
  99. package/dist/{diagram-NH7WQ7WH-BDWfQ8xs.js → diagram-NH7WQ7WH-C6VIkj-R.js} +17 -17
  100. package/dist/diagram-NH7WQ7WH-DXUwOBe7.cjs +24 -0
  101. package/dist/{diagram-OA4YK3LP-DuW90Uhk.js → diagram-OA4YK3LP-Co6nMbJc.js} +28 -28
  102. package/dist/{diagram-OA4YK3LP-uBVV8yBB.cjs → diagram-OA4YK3LP-DBUm2qxb.cjs} +3 -3
  103. package/dist/{diagram-WEI45ONY-Cd3qe8Wi.js → diagram-WEI45ONY-BaMbc5o2.js} +59 -59
  104. package/dist/diagram-WEI45ONY-ChpK2gP3.cjs +41 -0
  105. package/dist/ebnfDiagram-CCIWWBDH-DMIRHp8N.cjs +1 -0
  106. package/dist/{ebnfDiagram-CCIWWBDH-CMmTdVTT.js → ebnfDiagram-CCIWWBDH-i7CR-FU0.js} +3 -3
  107. package/dist/embeds/frames.d.ts +4 -0
  108. package/dist/embeds/linkCards.d.ts +3 -1
  109. package/dist/embeds/providers.d.ts +1 -0
  110. package/dist/embeds/testing.cjs +1 -1
  111. package/dist/embeds/testing.js +1 -1
  112. package/dist/embeds-B4g6w7Tf.cjs +1 -0
  113. package/dist/embeds-Dra-dGKD.js +64 -0
  114. package/dist/embeds.cjs +1 -1
  115. package/dist/embeds.d.ts +2 -2
  116. package/dist/embeds.js +31 -70
  117. package/dist/{erDiagram-Q63AITRT-tOZoI25O.js → erDiagram-Q63AITRT-DC-HhdaO.js} +68 -68
  118. package/dist/{erDiagram-Q63AITRT-ONnVKrzr.cjs → erDiagram-Q63AITRT-DjRvJyWK.cjs} +1 -1
  119. package/dist/errors-BWZJx2MD.cjs +1 -0
  120. package/dist/errors-CapTNE7l.js +62 -0
  121. package/dist/errors.d.ts +2 -2
  122. package/dist/extractHeadings-BAhmauKo.js +5296 -0
  123. package/dist/extractHeadings-qiJXegCx.cjs +11 -0
  124. package/dist/flowDiagram-23GEKE2U-CiNzp6BS.js +7 -0
  125. package/dist/flowDiagram-23GEKE2U-DzZNPkRJ.cjs +1 -0
  126. package/dist/{ganttDiagram-NO4QXBWP-C23vm5cK.js → ganttDiagram-NO4QXBWP-BwbtaPxc.js} +69 -69
  127. package/dist/ganttDiagram-NO4QXBWP-CJv5UQ4O.cjs +292 -0
  128. package/dist/gen/markdown/v1/linkcard_connect.d.ts +19 -0
  129. package/dist/gen/markdown/v1/linkcard_pb.d.ts +87 -0
  130. package/dist/gen/markdown/v1/markdown_pb.d.ts +4 -0
  131. package/dist/{gitGraphDiagram-IHSO6WYX-BXWses91.js → gitGraphDiagram-IHSO6WYX--yebcp4V.js} +21 -21
  132. package/dist/gitGraphDiagram-IHSO6WYX-dSwtW7X6.cjs +106 -0
  133. package/dist/index.cjs +1 -1
  134. package/dist/index.client.cjs +1 -1
  135. package/dist/index.client.d.ts +5 -3
  136. package/dist/index.client.js +56 -48
  137. package/dist/index.js +56 -48
  138. package/dist/index.server.cjs +1 -1
  139. package/dist/index.server.d.ts +2 -1
  140. package/dist/index.server.js +126 -873
  141. package/dist/{infoDiagram-FWYZ7A6U-C4NsbHAN.js → infoDiagram-FWYZ7A6U-B4AiTiqD.js} +9 -9
  142. package/dist/infoDiagram-FWYZ7A6U-BOj0VF20.cjs +2 -0
  143. package/dist/{ishikawaDiagram-FXEZZL3T-B2bMsFnl.js → ishikawaDiagram-FXEZZL3T-BsYs_qnQ.js} +59 -59
  144. package/dist/{ishikawaDiagram-FXEZZL3T-Cjqwv-T2.cjs → ishikawaDiagram-FXEZZL3T-CisV4kPO.cjs} +1 -1
  145. package/dist/{journeyDiagram-5HDEW3XC-DfRiiYRf.cjs → journeyDiagram-5HDEW3XC-BAvgWwpr.cjs} +1 -1
  146. package/dist/{journeyDiagram-5HDEW3XC-DO1Xx-OE.js → journeyDiagram-5HDEW3XC-DbDo-dqu.js} +32 -32
  147. package/dist/{kanban-definition-HUTT4EX6-RfpoaM17.js → kanban-definition-HUTT4EX6-BlPZISwH.js} +97 -97
  148. package/dist/{kanban-definition-HUTT4EX6-Cu_E-BJj.cjs → kanban-definition-HUTT4EX6-RjzOWas9.cjs} +2 -2
  149. package/dist/{linear-BbWOUIQi.js → linear-BXWX8YXI.js} +31 -31
  150. package/dist/linear-CKPQExK8.cjs +1 -0
  151. package/dist/linkCardServer/linkCardCore.d.ts +10 -0
  152. package/dist/linkCardServer/linkCardHandler.server.d.ts +1 -6
  153. package/dist/linkCardServer/pageFetchPort.d.ts +19 -0
  154. package/dist/linkCardServer/{pageMetadata.server.d.ts → pageMetadata.d.ts} +11 -3
  155. package/dist/linkCards-BikpIncf.cjs +1 -0
  156. package/dist/linkCards-DfSLqLPF.js +50 -0
  157. package/dist/linkCards.cjs +1 -0
  158. package/dist/linkCards.d.ts +2 -0
  159. package/dist/linkCards.js +5 -0
  160. package/dist/markdownServiceClient-C47z3Ynu.cjs +1 -0
  161. package/dist/markdownServiceClient-uDeklhtG.js +480 -0
  162. package/dist/markdownServiceClient.d.ts +20 -0
  163. package/dist/mermaid.core-C4EClWgB.js +15595 -0
  164. package/dist/mermaid.core-CRP55Hm1.cjs +305 -0
  165. package/dist/mermaidFrame/NOTICES.md +1345 -0
  166. package/dist/mermaidFrame/cssCleaner.d.ts +13 -0
  167. package/dist/mermaidFrame/drawer.d.ts +34 -0
  168. package/dist/mermaidFrame/frame.d.ts +1 -0
  169. package/dist/mermaidFrame/frame.js +3307 -0
  170. package/dist/mermaidFrame/katexInert.d.ts +4 -0
  171. package/dist/mermaidFrame/protocol.d.ts +38 -0
  172. package/dist/mermaidFrame/serve.d.ts +14 -0
  173. package/dist/mermaidFrame/svgCleaner.d.ts +4 -0
  174. package/dist/{mindmap-definition-LN4V7U3C-B5LpvJ9m.js → mindmap-definition-LN4V7U3C-BEWpoMMG.js} +79 -79
  175. package/dist/{mindmap-definition-LN4V7U3C-CB606E3L.cjs → mindmap-definition-LN4V7U3C-DnbSfqWP.cjs} +3 -3
  176. package/dist/pageFetchPort-2H18xcdi.cjs +1 -0
  177. package/dist/pageFetchPort-DVpXsKCz.js +624 -0
  178. package/dist/{pegDiagram-2B236MQR-DaosueJV.js → pegDiagram-2B236MQR-BF7gLiB-.js} +3 -3
  179. package/dist/pegDiagram-2B236MQR-BJysMObA.cjs +1 -0
  180. package/dist/{pieDiagram-ENE6RG2P-wfsOfWyT.js → pieDiagram-ENE6RG2P-D_YzC3qc.js} +50 -50
  181. package/dist/{pieDiagram-ENE6RG2P-BUY2Dvjo.cjs → pieDiagram-ENE6RG2P-UMpeIUyV.cjs} +2 -2
  182. package/dist/{providers-BwQK7hZa.js → providers-CSvkTZsr.js} +17 -2
  183. package/dist/{providers-DO2t7ks4.cjs → providers-Cx0FuVQU.cjs} +1 -1
  184. package/dist/{quadrantDiagram-ABIIQ3AL-BSvHqsTp.cjs → quadrantDiagram-ABIIQ3AL-DANY0ipQ.cjs} +1 -1
  185. package/dist/{quadrantDiagram-ABIIQ3AL-Bgc3vspL.js → quadrantDiagram-ABIIQ3AL-DDm-r_6D.js} +59 -59
  186. package/dist/railroadDiagram-RFXS5EU6-CDUd4th1.cjs +1 -0
  187. package/dist/{railroadDiagram-RFXS5EU6-Du2CFU9M.js → railroadDiagram-RFXS5EU6-hJ6uB90G.js} +3 -3
  188. package/dist/remarkProcessor.server.d.ts +2 -0
  189. package/dist/{requirementDiagram-TGXJPOKE-CnafqSUP.js → requirementDiagram-TGXJPOKE-BJef5Jb0.js} +15 -15
  190. package/dist/{requirementDiagram-TGXJPOKE-WM3sItRw.cjs → requirementDiagram-TGXJPOKE-DaoCo7go.cjs} +1 -1
  191. package/dist/{sankeyDiagram-HTMAVEWB-D4Qv4d98.js → sankeyDiagram-HTMAVEWB-BZQs0bE-.js} +41 -41
  192. package/dist/{sankeyDiagram-HTMAVEWB-DaZN3ZDb.cjs → sankeyDiagram-HTMAVEWB-DXiv0YOu.cjs} +3 -3
  193. package/dist/{sequenceDiagram-DBY2YBRQ-C6fa7Axs.cjs → sequenceDiagram-DBY2YBRQ-CJGpsnsv.cjs} +1 -1
  194. package/dist/{sequenceDiagram-DBY2YBRQ-CmP6XGGE.js → sequenceDiagram-DBY2YBRQ-D05U2w26.js} +46 -46
  195. package/dist/serviceClient.cjs +1 -0
  196. package/dist/serviceClient.d.ts +3 -0
  197. package/dist/serviceClient.js +9 -0
  198. package/dist/{sizeCapture-X5ZJPWSS-mWZkTwA5.js → sizeCapture-X5ZJPWSS-DTr0Vm61.js} +1 -1
  199. package/dist/sizeCapture-X5ZJPWSS-DjuH1zNP.cjs +1 -0
  200. package/dist/{stateDiagram-2N3HPSRC-ClDZKhLD.js → stateDiagram-2N3HPSRC-B8nvJKpB.js} +13 -13
  201. package/dist/stateDiagram-2N3HPSRC-BrB47FD-.cjs +1 -0
  202. package/dist/stateDiagram-v2-6OUMAXLB-CC8gOGDK.cjs +1 -0
  203. package/dist/{stateDiagram-v2-6OUMAXLB-K7slPgH_.js → stateDiagram-v2-6OUMAXLB-CV-JqAeP.js} +2 -2
  204. package/dist/styles/markdown.css +1 -1
  205. package/dist/styles/markdown.standalone.css +1 -1
  206. package/dist/{swimlanes-5IMT3BWC-Cpowlk7O.js → swimlanes-5IMT3BWC-BPtufzUd.js} +3 -3
  207. package/dist/swimlanes-5IMT3BWC-WAbDPRgt.cjs +1 -0
  208. package/dist/{swimlanesDiagram-G3AALYLV-36K4ynZn.js → swimlanesDiagram-G3AALYLV-BQKEmJFX.js} +2 -2
  209. package/dist/{swimlanesDiagram-G3AALYLV-BZ0eguZa.cjs → swimlanesDiagram-G3AALYLV-BTwwtLZL.cjs} +1 -1
  210. package/dist/{timeline-definition-FHXFAJF6-C2xHtlkw.js → timeline-definition-FHXFAJF6-DJ6GV7Fz.js} +53 -53
  211. package/dist/{timeline-definition-FHXFAJF6-BJN69nkZ.cjs → timeline-definition-FHXFAJF6-qdkrah7t.cjs} +1 -1
  212. package/dist/utils/promiseTry.d.ts +1 -0
  213. package/dist/vennDiagram-L72KCM5P-B5onSWPA.cjs +34 -0
  214. package/dist/{vennDiagram-L72KCM5P-DbqRaWm5.js → vennDiagram-L72KCM5P-DWnnndTj.js} +176 -176
  215. package/dist/viewer-settings.cjs +1 -1
  216. package/dist/viewer-settings.d.ts +8 -0
  217. package/dist/viewer-settings.js +11 -5
  218. package/dist/{wardleyDiagram-EHGQE667-CF5I0pM9.js → wardleyDiagram-EHGQE667-DFmDgQSb.js} +34 -34
  219. package/dist/{wardleyDiagram-EHGQE667-CyU76ilz.cjs → wardleyDiagram-EHGQE667-DdeBbvVM.cjs} +2 -2
  220. package/dist/{xychartDiagram-FW5EYKEG-DaKE_uIg.cjs → xychartDiagram-FW5EYKEG-CiJQMClv.cjs} +1 -1
  221. package/dist/{xychartDiagram-FW5EYKEG-spkx-w6w.js → xychartDiagram-FW5EYKEG-L2Kj4cZA.js} +56 -56
  222. package/package.json +32 -17
  223. package/dist/abnfDiagram-VRR7QNED-1fn6qV_P.cjs +0 -1
  224. package/dist/arc-D8xGHwLe.cjs +0 -1
  225. package/dist/arc-D9kg3f8-.js +0 -83
  226. package/dist/architectureDiagram-ZJ3FMSHR-C4QxQA-o.cjs +0 -36
  227. package/dist/channel-DuWQwUVP.cjs +0 -1
  228. package/dist/chunk-2Q5K7J3B-gCP3NILS.cjs +0 -1
  229. package/dist/chunk-32BRIVSS-PidRQo43.cjs +0 -1
  230. package/dist/chunk-JWPE2WC7-CHK_g5p5.cjs +0 -1
  231. package/dist/chunk-RYQCIY6F-B_33Thwg.cjs +0 -1
  232. package/dist/chunk-VR4S4FIN-Ca3mlCgX.cjs +0 -1
  233. package/dist/chunk-XXDRQBXY-CeZMmeIi.cjs +0 -1
  234. package/dist/classDiagram-OUVF2IWQ-DPzttpgE.cjs +0 -1
  235. package/dist/classDiagram-v2-EOCWNBFH-DPzttpgE.cjs +0 -1
  236. package/dist/cose-bilkent-JH36ORCC-C3UAMvQQ.cjs +0 -1
  237. package/dist/cynefinDiagram-TSTJHNR4-DStGofoE.cjs +0 -62
  238. package/dist/dagre-VKFMJZFB-BXsQ5-Ek.cjs +0 -4
  239. package/dist/diagram-G47NLZAW-BaX-jrfs.cjs +0 -24
  240. package/dist/diagram-NH7WQ7WH-Cczq2y99.cjs +0 -24
  241. package/dist/diagram-WEI45ONY-C_L-4kui.cjs +0 -41
  242. package/dist/ebnfDiagram-CCIWWBDH-Cg7DTSlM.cjs +0 -1
  243. package/dist/errors-BW5JXRoX.cjs +0 -1
  244. package/dist/errors-Blk_XJ9C.js +0 -55
  245. package/dist/extractHeadings-3qWVTkb9.js +0 -20290
  246. package/dist/extractHeadings-DpvwXCio.cjs +0 -315
  247. package/dist/flowDiagram-23GEKE2U-DfDAl_qd.cjs +0 -1
  248. package/dist/flowDiagram-23GEKE2U-p6ccACf3.js +0 -7
  249. package/dist/ganttDiagram-NO4QXBWP-CHP_muri.cjs +0 -292
  250. package/dist/gitGraphDiagram-IHSO6WYX-DOH3WBNZ.cjs +0 -106
  251. package/dist/infoDiagram-FWYZ7A6U-Bj2fnr5Y.cjs +0 -2
  252. package/dist/linear-Cz3x9Lkl.cjs +0 -1
  253. package/dist/linkCardServer/addressGuard.server.d.ts +0 -25
  254. package/dist/linkCardServer/pageFetch.server.d.ts +0 -37
  255. package/dist/linkCards-1JxY8wdm.js +0 -48
  256. package/dist/linkCards-Bjd_vW39.cjs +0 -1
  257. package/dist/pegDiagram-2B236MQR-BCqBc3Re.cjs +0 -1
  258. package/dist/railroadDiagram-RFXS5EU6-DdF2c_n3.cjs +0 -1
  259. package/dist/sizeCapture-X5ZJPWSS-B6sRQba9.cjs +0 -1
  260. package/dist/stateDiagram-2N3HPSRC-B__29zPZ.cjs +0 -1
  261. package/dist/stateDiagram-v2-6OUMAXLB-BA-_ovVY.cjs +0 -1
  262. package/dist/swimlanes-5IMT3BWC-BhxZhB7M.cjs +0 -1
  263. package/dist/vennDiagram-L72KCM5P-3R1vuMWd.cjs +0 -34
  264. /package/dist/linkCardServer/{htmlEncoding.server.d.ts → htmlEncoding.d.ts} +0 -0
  265. /package/dist/linkCardServer/{metadataCache.server.d.ts → metadataCache.d.ts} +0 -0
@@ -1,21 +1,21 @@
1
- import { g as Bt } from "./chunk-XXDRQBXY-Byo5u3b_.js";
2
- import { s as Ft } from "./chunk-VR4S4FIN-Dg_3SNs1.js";
3
- import { _ as d, O as Yt, K as Pt, G as zt, J as Gt, a8 as Kt, a9 as Ut, Q as rt, U as V, ae as Zt, ad as jt, ag as Wt, ah as Qt, a5 as Xt, a6 as qt, R as Ht, a7 as Jt } from "./extractHeadings-3qWVTkb9.js";
4
- import { c as $t } from "./channel-Bw3o-12p.js";
1
+ import { g as Bt } from "./chunk-XXDRQBXY-B-99Fbs_.js";
2
+ import { s as Ft } from "./chunk-VR4S4FIN-CyqARa17.js";
3
+ import { _ as d, b as Yt, a as Pt, s as zt, g as Gt, q as Kt, t as Ut, c as rt, l as V, z as Zt, y as jt, B as Wt, C as qt, p as Qt, r as Xt, d as Ht, u as Jt } from "./mermaid.core-C4EClWgB.js";
4
+ import { c as $t } from "./channel-B2FBCr9X.js";
5
5
  var gt = (function() {
6
- var s = /* @__PURE__ */ d(function(R, n, a, o) {
7
- for (a = a || {}, o = R.length; o--; a[R[o]] = n) ;
6
+ var s = /* @__PURE__ */ d(function(C, n, a, o) {
7
+ for (a = a || {}, o = C.length; o--; a[C[o]] = n) ;
8
8
  return a;
9
- }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], c = [1, 10], h = [1, 11], l = [1, 12], f = [1, 13], y = [1, 23], u = [1, 24], m = [1, 25], W = [1, 26], Q = [1, 27], S = [1, 19], X = [1, 28], B = [1, 29], D = [1, 20], I = [1, 18], T = [1, 21], C = [1, 22], at = [1, 36], ct = [1, 37], ot = [1, 38], lt = [1, 39], ht = [1, 40], F = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 66, 67, 68, 69, 70], O = [1, 45], N = [1, 46], Y = [1, 55], P = [40, 48, 50, 51, 52, 71, 72], z = [1, 66], G = [1, 64], A = [1, 61], K = [1, 65], U = [1, 67], q = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 66, 67, 68, 69, 70], bt = [66, 67, 68, 69, 70], kt = [1, 85], mt = [1, 84], Et = [1, 82], St = [1, 83], Tt = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], H = [1, 93], J = [1, 92], $ = [1, 91], Z = [19, 58], Ot = [1, 102], Nt = [1, 101], ut = [19, 58, 61, 63], dt = {
9
+ }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], c = [1, 10], h = [1, 11], l = [1, 12], p = [1, 13], y = [1, 23], u = [1, 24], m = [1, 25], W = [1, 26], q = [1, 27], S = [1, 19], Q = [1, 28], B = [1, 29], D = [1, 20], I = [1, 18], T = [1, 21], R = [1, 22], at = [1, 36], ct = [1, 37], ot = [1, 38], lt = [1, 39], ht = [1, 40], F = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 66, 67, 68, 69, 70], O = [1, 45], N = [1, 46], Y = [1, 55], P = [40, 48, 50, 51, 52, 71, 72], z = [1, 66], G = [1, 64], A = [1, 61], K = [1, 65], U = [1, 67], X = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 66, 67, 68, 69, 70], bt = [66, 67, 68, 69, 70], kt = [1, 85], mt = [1, 84], Et = [1, 82], St = [1, 83], Tt = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], H = [1, 93], J = [1, 92], $ = [1, 91], Z = [19, 58], Ot = [1, 102], Nt = [1, 101], ut = [19, 58, 61, 63], dt = {
10
10
  trace: /* @__PURE__ */ d(function() {
11
11
  }, "trace"),
12
12
  yy: {},
13
13
  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, DECIMAL_NUM: 51, ENTITY_ONE: 52, attribute: 53, attributeType: 54, attributeName: 55, attributeKeyTypeList: 56, attributeComment: 57, ATTRIBUTE_WORD: 58, "?": 59, attributeKeyType: 60, ",": 61, ATTRIBUTE_KEY: 62, COMMENT: 63, cardinality: 64, relType: 65, ZERO_OR_ONE: 66, ZERO_OR_MORE: 67, ONE_OR_MORE: 68, ONLY_ONE: 69, MD_PARENT: 70, NON_IDENTIFYING: 71, IDENTIFYING: 72, WORD: 73, $accept: 0, $end: 1 },
14
14
  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", 51: "DECIMAL_NUM", 52: "ENTITY_ONE", 58: "ATTRIBUTE_WORD", 59: "?", 61: ",", 62: "ATTRIBUTE_KEY", 63: "COMMENT", 66: "ZERO_OR_ONE", 67: "ZERO_OR_MORE", 68: "ONE_OR_MORE", 69: "ONLY_ONE", 70: "MD_PARENT", 71: "NON_IDENTIFYING", 72: "IDENTIFYING", 73: "WORD" },
15
15
  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], [11, 1], [11, 1], [11, 1], [18, 1], [18, 2], [53, 2], [53, 3], [53, 3], [53, 4], [54, 1], [54, 2], [55, 1], [56, 1], [56, 3], [60, 1], [57, 1], [12, 3], [64, 1], [64, 1], [64, 1], [64, 1], [64, 1], [65, 1], [65, 1], [14, 1], [14, 1], [14, 1]],
16
- performAction: /* @__PURE__ */ d(function(n, a, o, r, p, t, j) {
16
+ performAction: /* @__PURE__ */ d(function(n, a, o, r, f, t, j) {
17
17
  var e = t.length - 1;
18
- switch (p) {
18
+ switch (f) {
19
19
  case 1:
20
20
  break;
21
21
  case 2:
@@ -195,7 +195,7 @@ var gt = (function() {
195
195
  break;
196
196
  }
197
197
  }, "anonymous"),
198
- 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: c, 24: h, 26: l, 28: f, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: Q, 40: S, 43: X, 44: B, 48: D, 50: I, 51: T, 52: C }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 30, 11: 9, 22: c, 24: h, 26: l, 28: f, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: Q, 40: S, 43: X, 44: B, 48: D, 50: I, 51: T, 52: C }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 31, 64: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(F, [2, 54]), s(F, [2, 55]), s(F, [2, 56]), s(F, [2, 57]), s(F, [2, 58]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 44, 40: O, 41: N }, { 16: 47, 40: O, 41: N }, { 16: 48, 40: O, 41: N }, s(i, [2, 4]), { 11: 49, 40: S, 48: D, 50: I, 51: T, 52: C }, { 16: 50, 40: O, 41: N }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: Y }, { 11: 56, 40: S, 48: D, 50: I, 51: T, 52: C }, { 65: 57, 71: [1, 58], 72: [1, 59] }, s(P, [2, 73]), s(P, [2, 74]), s(P, [2, 75]), s(P, [2, 76]), s(P, [2, 77]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: z, 38: 60, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, s(q, [2, 37]), s(q, [2, 38]), { 16: 68, 40: O, 41: N, 42: A }, { 13: z, 38: 69, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, { 13: [1, 70], 15: [1, 71] }, s(i, [2, 17], { 64: 35, 12: 72, 17: [1, 73], 42: A, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 19: [1, 74] }, s(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: Y }, { 55: 76, 58: [1, 77] }, { 58: [2, 65], 59: [1, 78] }, { 21: [1, 79] }, { 64: 80, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }, s(bt, [2, 78]), s(bt, [2, 79]), { 6: kt, 10: mt, 39: 81, 42: Et, 47: St }, { 40: [1, 86], 41: [1, 87] }, s(Tt, [2, 43], { 46: 88, 13: z, 41: G, 48: K, 49: U }), s(L, [2, 45]), s(L, [2, 50]), s(L, [2, 51]), s(L, [2, 52]), s(L, [2, 53]), s(i, [2, 41], { 42: A }), { 6: kt, 10: mt, 39: 89, 42: Et, 47: St }, { 14: 90, 40: H, 50: J, 73: $ }, { 16: 94, 40: O, 41: N }, { 11: 95, 40: S, 48: D, 50: I, 51: T, 52: C }, { 18: 96, 19: [1, 97], 53: 53, 54: 54, 58: Y }, s(i, [2, 12]), { 19: [2, 60] }, s(Z, [2, 61], { 56: 98, 57: 99, 60: 100, 62: Ot, 63: Nt }), s([19, 58, 62, 63], [2, 67]), { 58: [2, 66] }, s(i, [2, 22], { 15: [1, 104], 17: [1, 103] }), s([40, 48, 50, 51, 52], [2, 72]), s(i, [2, 36]), { 13: z, 41: G, 45: 105, 46: 63, 48: K, 49: U }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(q, [2, 39]), s(q, [2, 40]), s(L, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 80]), s(i, [2, 81]), s(i, [2, 82]), { 13: [1, 106], 42: A }, { 13: [1, 108], 15: [1, 107] }, { 19: [1, 109] }, s(i, [2, 15]), s(Z, [2, 62], { 57: 110, 61: [1, 111], 63: Nt }), s(Z, [2, 63]), s(ut, [2, 68]), s(Z, [2, 71]), s(ut, [2, 70]), { 18: 112, 19: [1, 113], 53: 53, 54: 54, 58: Y }, { 16: 114, 40: O, 41: N }, s(Tt, [2, 44], { 46: 88, 13: z, 41: G, 48: K, 49: U }), { 14: 115, 40: H, 50: J, 73: $ }, { 16: 116, 40: O, 41: N }, { 14: 117, 40: H, 50: J, 73: $ }, s(i, [2, 13]), s(Z, [2, 64]), { 60: 118, 62: Ot }, { 19: [1, 119] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 120], 42: A }), s(i, [2, 11]), { 13: [1, 121], 42: A }, s(i, [2, 10]), s(ut, [2, 69]), s(i, [2, 18]), { 18: 122, 19: [1, 123], 53: 53, 54: 54, 58: Y }, { 14: 124, 40: H, 50: J, 73: $ }, { 19: [1, 125] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
198
+ 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: c, 24: h, 26: l, 28: p, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: q, 40: S, 43: Q, 44: B, 48: D, 50: I, 51: T, 52: R }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 30, 11: 9, 22: c, 24: h, 26: l, 28: p, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: q, 40: S, 43: Q, 44: B, 48: D, 50: I, 51: T, 52: R }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 31, 64: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(F, [2, 54]), s(F, [2, 55]), s(F, [2, 56]), s(F, [2, 57]), s(F, [2, 58]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 44, 40: O, 41: N }, { 16: 47, 40: O, 41: N }, { 16: 48, 40: O, 41: N }, s(i, [2, 4]), { 11: 49, 40: S, 48: D, 50: I, 51: T, 52: R }, { 16: 50, 40: O, 41: N }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: Y }, { 11: 56, 40: S, 48: D, 50: I, 51: T, 52: R }, { 65: 57, 71: [1, 58], 72: [1, 59] }, s(P, [2, 73]), s(P, [2, 74]), s(P, [2, 75]), s(P, [2, 76]), s(P, [2, 77]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: z, 38: 60, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, s(X, [2, 37]), s(X, [2, 38]), { 16: 68, 40: O, 41: N, 42: A }, { 13: z, 38: 69, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, { 13: [1, 70], 15: [1, 71] }, s(i, [2, 17], { 64: 35, 12: 72, 17: [1, 73], 42: A, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }), { 19: [1, 74] }, s(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: Y }, { 55: 76, 58: [1, 77] }, { 58: [2, 65], 59: [1, 78] }, { 21: [1, 79] }, { 64: 80, 66: at, 67: ct, 68: ot, 69: lt, 70: ht }, s(bt, [2, 78]), s(bt, [2, 79]), { 6: kt, 10: mt, 39: 81, 42: Et, 47: St }, { 40: [1, 86], 41: [1, 87] }, s(Tt, [2, 43], { 46: 88, 13: z, 41: G, 48: K, 49: U }), s(L, [2, 45]), s(L, [2, 50]), s(L, [2, 51]), s(L, [2, 52]), s(L, [2, 53]), s(i, [2, 41], { 42: A }), { 6: kt, 10: mt, 39: 89, 42: Et, 47: St }, { 14: 90, 40: H, 50: J, 73: $ }, { 16: 94, 40: O, 41: N }, { 11: 95, 40: S, 48: D, 50: I, 51: T, 52: R }, { 18: 96, 19: [1, 97], 53: 53, 54: 54, 58: Y }, s(i, [2, 12]), { 19: [2, 60] }, s(Z, [2, 61], { 56: 98, 57: 99, 60: 100, 62: Ot, 63: Nt }), s([19, 58, 62, 63], [2, 67]), { 58: [2, 66] }, s(i, [2, 22], { 15: [1, 104], 17: [1, 103] }), s([40, 48, 50, 51, 52], [2, 72]), s(i, [2, 36]), { 13: z, 41: G, 45: 105, 46: 63, 48: K, 49: U }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(X, [2, 39]), s(X, [2, 40]), s(L, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 80]), s(i, [2, 81]), s(i, [2, 82]), { 13: [1, 106], 42: A }, { 13: [1, 108], 15: [1, 107] }, { 19: [1, 109] }, s(i, [2, 15]), s(Z, [2, 62], { 57: 110, 61: [1, 111], 63: Nt }), s(Z, [2, 63]), s(ut, [2, 68]), s(Z, [2, 71]), s(ut, [2, 70]), { 18: 112, 19: [1, 113], 53: 53, 54: 54, 58: Y }, { 16: 114, 40: O, 41: N }, s(Tt, [2, 44], { 46: 88, 13: z, 41: G, 48: K, 49: U }), { 14: 115, 40: H, 50: J, 73: $ }, { 16: 116, 40: O, 41: N }, { 14: 117, 40: H, 50: J, 73: $ }, s(i, [2, 13]), s(Z, [2, 64]), { 60: 118, 62: Ot }, { 19: [1, 119] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 120], 42: A }), s(i, [2, 11]), { 13: [1, 121], 42: A }, s(i, [2, 10]), s(ut, [2, 69]), s(i, [2, 18]), { 18: 122, 19: [1, 123], 53: 53, 54: 54, 58: Y }, { 14: 124, 40: H, 50: J, 73: $ }, { 19: [1, 125] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
199
199
  defaultActions: { 75: [2, 60], 78: [2, 66] },
200
200
  parseError: /* @__PURE__ */ d(function(n, a) {
201
201
  if (a.recoverable)
@@ -206,24 +206,24 @@ var gt = (function() {
206
206
  }
207
207
  }, "parseError"),
208
208
  parse: /* @__PURE__ */ d(function(n) {
209
- var a = this, o = [0], r = [], p = [null], t = [], j = this.table, e = "", et = 0, At = 0, Lt = 2, Rt = 1, wt = t.slice.call(arguments, 1), _ = Object.create(this.lexer), x = { yy: {} };
210
- for (var ft in this.yy)
211
- Object.prototype.hasOwnProperty.call(this.yy, ft) && (x.yy[ft] = this.yy[ft]);
209
+ var a = this, o = [0], r = [], f = [null], t = [], j = this.table, e = "", et = 0, At = 0, Lt = 2, Ct = 1, wt = t.slice.call(arguments, 1), _ = Object.create(this.lexer), x = { yy: {} };
210
+ for (var pt in this.yy)
211
+ Object.prototype.hasOwnProperty.call(this.yy, pt) && (x.yy[pt] = this.yy[pt]);
212
212
  _.setInput(n, x.yy), x.yy.lexer = _, x.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
213
- var pt = _.yylloc;
214
- t.push(pt);
213
+ var ft = _.yylloc;
214
+ t.push(ft);
215
215
  var Vt = _.options && _.options.ranges;
216
216
  typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
217
217
  function Mt(b) {
218
- o.length = o.length - 2 * b, p.length = p.length - b, t.length = t.length - b;
218
+ o.length = o.length - 2 * b, f.length = f.length - b, t.length = t.length - b;
219
219
  }
220
220
  d(Mt, "popStack");
221
221
  function It() {
222
222
  var b;
223
- return b = r.pop() || _.lex() || Rt, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
223
+ return b = r.pop() || _.lex() || Ct, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
224
224
  }
225
225
  d(It, "lex");
226
- for (var g, v, k, yt, w = {}, st, E, Ct, it; ; ) {
226
+ for (var g, v, k, yt, w = {}, st, E, Rt, it; ; ) {
227
227
  if (v = o[o.length - 1], this.defaultActions[v] ? k = this.defaultActions[v] : ((g === null || typeof g > "u") && (g = It()), k = j[v] && j[v][g]), typeof k > "u" || !k.length || !k[0]) {
228
228
  var _t = "";
229
229
  it = [];
@@ -231,11 +231,11 @@ var gt = (function() {
231
231
  this.terminals_[st] && st > Lt && it.push("'" + this.terminals_[st] + "'");
232
232
  _.showPosition ? _t = "Parse error on line " + (et + 1) + `:
233
233
  ` + _.showPosition() + `
234
- Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t = "Parse error on line " + (et + 1) + ": Unexpected " + (g == Rt ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(_t, {
234
+ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t = "Parse error on line " + (et + 1) + ": Unexpected " + (g == Ct ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(_t, {
235
235
  text: _.match,
236
236
  token: this.terminals_[g] || g,
237
237
  line: _.yylineno,
238
- loc: pt,
238
+ loc: ft,
239
239
  expected: it
240
240
  });
241
241
  }
@@ -243,10 +243,10 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
243
243
  throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + g);
244
244
  switch (k[0]) {
245
245
  case 1:
246
- o.push(g), p.push(_.yytext), t.push(_.yylloc), o.push(k[1]), g = null, At = _.yyleng, e = _.yytext, et = _.yylineno, pt = _.yylloc;
246
+ o.push(g), f.push(_.yytext), t.push(_.yylloc), o.push(k[1]), g = null, At = _.yyleng, e = _.yytext, et = _.yylineno, ft = _.yylloc;
247
247
  break;
248
248
  case 2:
249
- if (E = this.productions_[k[1]][1], w.$ = p[p.length - E], w._$ = {
249
+ if (E = this.productions_[k[1]][1], w.$ = f[f.length - E], w._$ = {
250
250
  first_line: t[t.length - (E || 1)].first_line,
251
251
  last_line: t[t.length - 1].last_line,
252
252
  first_column: t[t.length - (E || 1)].first_column,
@@ -260,11 +260,11 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
260
260
  et,
261
261
  x.yy,
262
262
  k[1],
263
- p,
263
+ f,
264
264
  t
265
265
  ].concat(wt)), typeof yt < "u")
266
266
  return yt;
267
- E && (o = o.slice(0, -1 * E * 2), p = p.slice(0, -1 * E), t = t.slice(0, -1 * E)), o.push(this.productions_[k[1]][0]), p.push(w.$), t.push(w._$), Ct = j[o[o.length - 2]][o[o.length - 1]], o.push(Ct);
267
+ E && (o = o.slice(0, -1 * E * 2), f = f.slice(0, -1 * E), t = t.slice(0, -1 * E)), o.push(this.productions_[k[1]][0]), f.push(w.$), t.push(w._$), Rt = j[o[o.length - 2]][o[o.length - 1]], o.push(Rt);
268
268
  break;
269
269
  case 3:
270
270
  return !0;
@@ -273,7 +273,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
273
273
  return !0;
274
274
  }, "parse")
275
275
  }, Dt = /* @__PURE__ */ (function() {
276
- var R = {
276
+ var C = {
277
277
  EOF: 1,
278
278
  parseError: /* @__PURE__ */ d(function(a, o) {
279
279
  if (this.yy.parser)
@@ -303,13 +303,13 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
303
303
  this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
304
304
  var r = this.match.split(/(?:\r\n?|\n)/g);
305
305
  this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
306
- var p = this.yylloc.range;
306
+ var f = this.yylloc.range;
307
307
  return this.yylloc = {
308
308
  first_line: this.yylloc.first_line,
309
309
  last_line: this.yylineno + 1,
310
310
  first_column: this.yylloc.first_column,
311
311
  last_column: o ? (o.length === r.length ? this.yylloc.first_column : 0) + r[r.length - o.length].length - o[0].length : this.yylloc.first_column - a
312
- }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
312
+ }, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
313
313
  }, "unput"),
314
314
  // When called from action, caches matched text and appends it on next action
315
315
  more: /* @__PURE__ */ d(function() {
@@ -350,8 +350,8 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
350
350
  }, "showPosition"),
351
351
  // test the lexed token: return FALSE when not a match, otherwise return token
352
352
  test_match: /* @__PURE__ */ d(function(n, a) {
353
- var o, r, p;
354
- if (this.options.backtrack_lexer && (p = {
353
+ var o, r, f;
354
+ if (this.options.backtrack_lexer && (f = {
355
355
  yylineno: this.yylineno,
356
356
  yylloc: {
357
357
  first_line: this.yylloc.first_line,
@@ -370,7 +370,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
370
370
  yy: this.yy,
371
371
  conditionStack: this.conditionStack.slice(0),
372
372
  done: this.done
373
- }, 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 = {
373
+ }, this.options.ranges && (f.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
374
374
  first_line: this.yylloc.last_line,
375
375
  last_line: this.yylineno + 1,
376
376
  first_column: this.yylloc.last_column,
@@ -378,8 +378,8 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
378
378
  }, 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 = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], o = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
379
379
  return o;
380
380
  if (this._backtrack) {
381
- for (var t in p)
382
- this[t] = p[t];
381
+ for (var t in f)
382
+ this[t] = f[t];
383
383
  return !1;
384
384
  }
385
385
  return !1;
@@ -391,10 +391,10 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
391
391
  this._input || (this.done = !0);
392
392
  var n, a, o, r;
393
393
  this._more || (this.yytext = "", this.match = "");
394
- for (var p = this._currentRules(), t = 0; t < p.length; t++)
395
- if (o = this._input.match(this.rules[p[t]]), o && (!a || o[0].length > a[0].length)) {
394
+ for (var f = this._currentRules(), t = 0; t < f.length; t++)
395
+ if (o = this._input.match(this.rules[f[t]]), o && (!a || o[0].length > a[0].length)) {
396
396
  if (a = o, r = t, this.options.backtrack_lexer) {
397
- if (n = this.test_match(o, p[t]), n !== !1)
397
+ if (n = this.test_match(o, f[t]), n !== !1)
398
398
  return n;
399
399
  if (this._backtrack) {
400
400
  a = !1;
@@ -404,7 +404,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
404
404
  } else if (!this.options.flex)
405
405
  break;
406
406
  }
407
- return a ? (n = this.test_match(a, p[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
407
+ return a ? (n = this.test_match(a, f[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
408
408
  ` + this.showPosition(), {
409
409
  text: "",
410
410
  token: null,
@@ -442,7 +442,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
442
442
  return this.conditionStack.length;
443
443
  }, "stateStackSize"),
444
444
  options: { "case-insensitive": !0 },
445
- performAction: /* @__PURE__ */ d(function(a, o, r, p) {
445
+ performAction: /* @__PURE__ */ d(function(a, o, r, f) {
446
446
  switch (r) {
447
447
  case 0:
448
448
  return this.begin("acc_title"), 24;
@@ -617,7 +617,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t =
617
617
  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, /^(?:[^`]+)/i, /^(?:[`])/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, /^(?:[0-9]+\.[0-9]+)/i, /^(?:1(?=\s+[A-Za-z_"']))/i, /^(?:1(?=\s+[0-9]))/i, /^(?:1(?=(--|\.\.|\.-|-\.)))/i, /^(?:1\b)/i, /^(?:[0-9]+)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:u(?=[\.\-\|]))/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:;)/i, /^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i, /^(?:.)/i, /^(?:$)/i],
618
618
  conditions: { style: { rules: [37, 38, 39, 40, 41, 77, 78], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block_bq: { rules: [28, 29], inclusive: !1 }, block: { rules: [23, 24, 25, 26, 27, 30, 31, 32, 33], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 34, 35, 36, 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, 69, 70, 71, 72, 73, 74, 75, 76, 79, 80, 81], inclusive: !0 } }
619
619
  };
620
- return R;
620
+ return C;
621
621
  })();
622
622
  dt.lexer = Dt;
623
623
  function tt() {
@@ -681,11 +681,11 @@ var te = gt, M, ee = (M = class {
681
681
  * @param rSpec - The details of the relationship between the two entities
682
682
  */
683
683
  addRelationship(i, c, h, l) {
684
- const f = this.entities.get(i), y = this.entities.get(h);
685
- if (!f || !y)
684
+ const p = this.entities.get(i), y = this.entities.get(h);
685
+ if (!p || !y)
686
686
  return;
687
687
  const u = {
688
- entityA: f.id,
688
+ entityA: p.id,
689
689
  roleA: c,
690
690
  entityB: y.id,
691
691
  relSpec: l
@@ -705,7 +705,7 @@ var te = gt, M, ee = (M = class {
705
705
  let c = [];
706
706
  for (const h of i) {
707
707
  const l = this.classes.get(h);
708
- l?.styles && (c = [...c, ...l.styles ?? []].map((f) => f.trim())), l?.textStyles && (c = [...c, ...l.textStyles ?? []].map((f) => f.trim()));
708
+ l?.styles && (c = [...c, ...l.styles ?? []].map((p) => p.trim())), l?.textStyles && (c = [...c, ...l.textStyles ?? []].map((p) => p.trim()));
709
709
  }
710
710
  return c;
711
711
  }
@@ -714,19 +714,19 @@ var te = gt, M, ee = (M = class {
714
714
  const l = this.entities.get(h);
715
715
  if (!c || !l)
716
716
  return;
717
- for (const f of c)
718
- l.cssStyles.push(f);
717
+ for (const p of c)
718
+ l.cssStyles.push(p);
719
719
  }
720
720
  }
721
721
  addClass(i, c) {
722
722
  i.forEach((h) => {
723
723
  let l = this.classes.get(h);
724
- l === void 0 && (l = { id: h, styles: [], textStyles: [] }, this.classes.set(h, l)), c && c.forEach(function(f) {
725
- if (/color/.exec(f)) {
726
- const y = f.replace("fill", "bgFill");
724
+ l === void 0 && (l = { id: h, styles: [], textStyles: [] }, this.classes.set(h, l)), c && c.forEach(function(p) {
725
+ if (/color/.exec(p)) {
726
+ const y = p.replace("fill", "bgFill");
727
727
  l.textStyles.push(y);
728
728
  }
729
- l.styles.push(f);
729
+ l.styles.push(p);
730
730
  });
731
731
  });
732
732
  }
@@ -734,8 +734,8 @@ var te = gt, M, ee = (M = class {
734
734
  for (const h of i) {
735
735
  const l = this.entities.get(h);
736
736
  if (l)
737
- for (const f of c)
738
- l.cssClasses += " " + f;
737
+ for (const p of c)
738
+ l.cssClasses += " " + p;
739
739
  }
740
740
  }
741
741
  clear() {
@@ -748,12 +748,12 @@ var te = gt, M, ee = (M = class {
748
748
  const u = this.entities.get(y);
749
749
  u && (u.cssCompiledStyles = this.getCompiledStyles(u.cssClasses.split(" ")), u.colorIndex = l++, i.push(u));
750
750
  }
751
- let f = 0;
751
+ let p = 0;
752
752
  for (const y of this.relationships) {
753
753
  const u = {
754
754
  id: jt(y.entityA, y.entityB, {
755
755
  prefix: "id",
756
- counter: f++
756
+ counter: p++
757
757
  }),
758
758
  type: "normal",
759
759
  curve: "basis",
@@ -774,55 +774,55 @@ var te = gt, M, ee = (M = class {
774
774
  return { nodes: i, edges: c, other: {}, config: h, direction: "TB" };
775
775
  }
776
776
  }, d(M, "ErDB"), M), vt = {};
777
- Qt(vt, {
777
+ qt(vt, {
778
778
  draw: () => se
779
779
  });
780
780
  var se = /* @__PURE__ */ d(async function(s, i, c, h) {
781
781
  V.info("REF0:"), V.info("Drawing er diagram (unified)", i);
782
- const { securityLevel: l, er: f, layout: y } = rt(), u = h.db.getData(), m = Bt(i, l);
783
- u.type = h.type, u.layoutAlgorithm = Xt(y), u.config.flowchart.nodeSpacing = f?.nodeSpacing || 140, u.config.flowchart.rankSpacing = f?.rankSpacing || 80, u.direction = h.db.getDirection();
784
- const { config: W } = u, { look: Q } = W;
785
- Q === "neo" ? u.markers = [
782
+ const { securityLevel: l, er: p, layout: y } = rt(), u = h.db.getData(), m = Bt(i, l);
783
+ u.type = h.type, u.layoutAlgorithm = Qt(y), u.config.flowchart.nodeSpacing = p?.nodeSpacing || 140, u.config.flowchart.rankSpacing = p?.rankSpacing || 80, u.direction = h.db.getDirection();
784
+ const { config: W } = u, { look: q } = W;
785
+ q === "neo" ? u.markers = [
786
786
  "only_one_neo",
787
787
  "zero_or_one_neo",
788
788
  "one_or_more_neo",
789
789
  "zero_or_more_neo"
790
- ] : u.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], u.diagramId = i, await qt(u, m), u.layoutAlgorithm === "elk" && m.select(".edges").lower();
790
+ ] : u.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], u.diagramId = i, await Xt(u, m), u.layoutAlgorithm === "elk" && m.select(".edges").lower();
791
791
  const S = m.selectAll('[id*="-background"]');
792
792
  Array.from(S).length > 0 && S.each(function() {
793
793
  const B = Ht(this), I = B.attr("id").replace("-background", ""), T = m.select(`#${CSS.escape(I)}`);
794
794
  if (!T.empty()) {
795
- const C = T.attr("transform");
796
- B.attr("transform", C);
795
+ const R = T.attr("transform");
796
+ B.attr("transform", R);
797
797
  }
798
798
  });
799
- const X = 8;
799
+ const Q = 8;
800
800
  Jt.insertTitle(
801
801
  m,
802
802
  "erDiagramTitleText",
803
- f?.titleTopMargin ?? 25,
803
+ p?.titleTopMargin ?? 25,
804
804
  h.db.getDiagramTitle()
805
- ), Ft(m, X, "erDiagram", f?.useMaxWidth ?? !0);
805
+ ), Ft(m, Q, "erDiagram", p?.useMaxWidth ?? !0);
806
806
  }, "draw"), xt = /* @__PURE__ */ d((s, i) => {
807
- const c = $t, h = c(s, "r"), l = c(s, "g"), f = c(s, "b");
808
- return Wt(h, l, f, i);
807
+ const c = $t, h = c(s, "r"), l = c(s, "g"), p = c(s, "b");
808
+ return Wt(h, l, p, i);
809
809
  }, "fade"), nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), ie = /* @__PURE__ */ d((s) => {
810
810
  const { theme: i, look: c, bkgColorArray: h, borderColorArray: l } = s;
811
811
  if (!nt.has(i))
812
812
  return "";
813
- const f = h?.length > 0;
813
+ const p = h?.length > 0;
814
814
  let y = "";
815
815
  for (let u = 0; u < s.THEME_COLOR_LIMIT; u++)
816
816
  y += `
817
817
 
818
818
  [data-look="${c}"][data-color-id="color-${u}"].node path {
819
819
  stroke: ${l[u]};
820
- ${f ? `fill: ${h[u]};` : ""}
820
+ ${p ? `fill: ${h[u]};` : ""}
821
821
  }
822
822
 
823
823
  [data-look="${c}"][data-color-id="color-${u}"].node rect {
824
824
  stroke: ${l[u]};
825
- ${f ? `fill: ${h[u]};` : ""}
825
+ ${p ? `fill: ${h[u]};` : ""}
826
826
  }
827
827
  `;
828
828
  return y;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("./chunk-XXDRQBXY-CeZMmeIi.cjs"),Me=require("./chunk-VR4S4FIN-Ca3mlCgX.cjs"),n=require("./extractHeadings-DpvwXCio.cjs"),Be=require("./channel-DuWQwUVP.cjs");var ge=(function(){var s=n.__name(function(C,a,c,l){for(c=c||{},l=C.length;l--;c[C[l]]=a);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],u=[1,11],h=[1,12],_=[1,13],g=[1,23],d=[1,24],k=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],R=[1,18],T=[1,21],I=[1,22],re=[1,36],ne=[1,37],ae=[1,38],ce=[1,39],oe=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],F=[1,55],Y=[40,48,50,51,52,71,72],P=[1,66],z=[1,64],A=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],pe=[66,67,68,69,70],ye=[1,85],be=[1,84],me=[1,82],ke=[1,83],Ee=[6,10,42,47],L=[6,10,13,41,42,47,48,49],Q=[1,93],H=[1,92],J=[1,91],U=[19,58],Se=[1,102],Te=[1,101],le=[19,58,61,63],he={trace:n.__name(function(){},"trace"),yy:{},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,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},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",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},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],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:n.__name(function(a,c,l,r,f,e,Z){var t=e.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 5:this.$=e[t];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[t-4]),r.addEntity(e[t-2]),r.addRelationship(e[t-4],e[t],e[t-2],e[t-3]);break;case 9:r.addEntity(e[t-8]),r.addEntity(e[t-4]),r.addRelationship(e[t-8],e[t],e[t-4],e[t-5]),r.setClass([e[t-8]],e[t-6]),r.setClass([e[t-4]],e[t-2]);break;case 10:r.addEntity(e[t-6]),r.addEntity(e[t-2]),r.addRelationship(e[t-6],e[t],e[t-2],e[t-3]),r.setClass([e[t-6]],e[t-4]);break;case 11:r.addEntity(e[t-6]),r.addEntity(e[t-4]),r.addRelationship(e[t-6],e[t],e[t-4],e[t-5]),r.setClass([e[t-4]],e[t-2]);break;case 12:r.addEntity(e[t-3]),r.addAttributes(e[t-3],e[t-1]);break;case 13:r.addEntity(e[t-5]),r.addAttributes(e[t-5],e[t-1]),r.setClass([e[t-5]],e[t-3]);break;case 14:r.addEntity(e[t-2]);break;case 15:r.addEntity(e[t-4]),r.setClass([e[t-4]],e[t-2]);break;case 16:r.addEntity(e[t]);break;case 17:r.addEntity(e[t-2]),r.setClass([e[t-2]],e[t]);break;case 18:r.addEntity(e[t-6],e[t-4]),r.addAttributes(e[t-6],e[t-1]);break;case 19:r.addEntity(e[t-8],e[t-6]),r.addAttributes(e[t-8],e[t-1]),r.setClass([e[t-8]],e[t-3]);break;case 20:r.addEntity(e[t-5],e[t-3]);break;case 21:r.addEntity(e[t-7],e[t-5]),r.setClass([e[t-7]],e[t-2]);break;case 22:r.addEntity(e[t-3],e[t-1]);break;case 23:r.addEntity(e[t-5],e[t-3]),r.setClass([e[t-5]],e[t]);break;case 24:case 25:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=e[t-3],r.addClass(e[t-2],e[t-1]);break;case 37:case 38:case 59:case 68:this.$=[e[t]];break;case 39:case 40:this.$=e[t-2].concat([e[t]]);break;case 41:this.$=e[t-2],r.setClass(e[t-1],e[t]);break;case 42:this.$=e[t-3],r.addCssStyles(e[t-2],e[t-1]);break;case 43:this.$=[e[t]];break;case 44:e[t-2].push(e[t]),this.$=e[t-2];break;case 46:this.$=e[t-1]+e[t];break;case 54:case 80:case 81:this.$=e[t].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=e[t];break;case 60:e[t].push(e[t-1]),this.$=e[t];break;case 61:this.$={type:e[t-1],name:e[t]};break;case 62:this.$={type:e[t-2],name:e[t-1],keys:e[t]};break;case 63:this.$={type:e[t-2],name:e[t-1],comment:e[t]};break;case 64:this.$={type:e[t-3],name:e[t-2],keys:e[t-1],comment:e[t]};break;case 65:case 67:case 70:this.$=e[t];break;case 66:this.$=e[t-1]+e[t];break;case 69:e[t-2].push(e[t]),this.$=e[t-2];break;case 71:this.$=e[t].replace(/"/g,"");break;case 72:this.$={cardA:e[t],relType:e[t-1],cardB:e[t-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),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:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:re,67:ne,68:ae,69:ce,70:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(B,[2,54]),s(B,[2,55]),s(B,[2,56]),s(B,[2,57]),s(B,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:I},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:R,51:T,52:I},{65:57,71:[1,58],72:[1,59]},s(Y,[2,73]),s(Y,[2,74]),s(Y,[2,75]),s(Y,[2,76]),s(Y,[2,77]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:P,38:60,41:z,42:A,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:P,38:69,41:z,42:A,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:re,67:ne,68:ae,69:ce,70:oe}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:re,67:ne,68:ae,69:ce,70:oe},s(pe,[2,78]),s(pe,[2,79]),{6:ye,10:be,39:81,42:me,47:ke},{40:[1,86],41:[1,87]},s(Ee,[2,43],{46:88,13:P,41:z,48:G,49:K}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:A}),{6:ye,10:be,39:89,42:me,47:ke},{14:90,40:Q,50:H,73:J},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:I},{18:96,19:[1,97],53:53,54:54,58:F},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:98,57:99,60:100,62:Se,63:Te}),s([19,58,62,63],[2,67]),{58:[2,66]},s(i,[2,22],{15:[1,104],17:[1,103]}),s([40,48,50,51,52],[2,72]),s(i,[2,36]),{13:P,41:z,45:105,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,80]),s(i,[2,81]),s(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},s(i,[2,15]),s(U,[2,62],{57:110,61:[1,111],63:Te}),s(U,[2,63]),s(le,[2,68]),s(U,[2,71]),s(le,[2,70]),{18:112,19:[1,113],53:53,54:54,58:F},{16:114,40:O,41:N},s(Ee,[2,44],{46:88,13:P,41:z,48:G,49:K}),{14:115,40:Q,50:H,73:J},{16:116,40:O,41:N},{14:117,40:Q,50:H,73:J},s(i,[2,13]),s(U,[2,64]),{60:118,62:Se},{19:[1,119]},s(i,[2,20]),s(i,[2,23],{17:[1,120],42:A}),s(i,[2,11]),{13:[1,121],42:A},s(i,[2,10]),s(le,[2,69]),s(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:F},{14:124,40:Q,50:H,73:J},{19:[1,125]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:n.__name(function(a,c){if(c.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=c,l}},"parseError"),parse:n.__name(function(a){var c=this,l=[0],r=[],f=[null],e=[],Z=this.table,t="",ee=0,Oe=0,ve=2,Ne=1,De=e.slice.call(arguments,1),p=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);p.setInput(a,x.yy),x.yy.lexer=p,x.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var de=p.yylloc;e.push(de);var Le=p.options&&p.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(b){l.length=l.length-2*b,f.length=f.length-b,e.length=e.length-b}n.__name(we,"popStack");function Ae(){var b;return b=r.pop()||p.lex()||Ne,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=c.symbols_[b]||b),b}n.__name(Ae,"lex");for(var y,v,m,_e,w={},te,E,Ce,se;;){if(v=l[l.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((y===null||typeof y>"u")&&(y=Ae()),m=Z[v]&&Z[v][y]),typeof m>"u"||!m.length||!m[0]){var fe="";se=[];for(te in Z[v])this.terminals_[te]&&te>ve&&se.push("'"+this.terminals_[te]+"'");p.showPosition?fe="Parse error on line "+(ee+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("./chunk-XXDRQBXY-BgeRIUG1.cjs"),Me=require("./chunk-VR4S4FIN-Sx71KwIQ.cjs"),n=require("./mermaid.core-CRP55Hm1.cjs"),Be=require("./channel-DlkTPSf_.cjs");var ge=(function(){var s=n.__name(function(C,a,c,l){for(c=c||{},l=C.length;l--;c[C[l]]=a);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],u=[1,11],h=[1,12],_=[1,13],g=[1,23],d=[1,24],k=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],R=[1,18],T=[1,21],I=[1,22],re=[1,36],ne=[1,37],ae=[1,38],ce=[1,39],oe=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],F=[1,55],Y=[40,48,50,51,52,71,72],P=[1,66],z=[1,64],A=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],pe=[66,67,68,69,70],ye=[1,85],be=[1,84],me=[1,82],ke=[1,83],Ee=[6,10,42,47],L=[6,10,13,41,42,47,48,49],Q=[1,93],H=[1,92],J=[1,91],U=[19,58],Se=[1,102],Te=[1,101],le=[19,58,61,63],he={trace:n.__name(function(){},"trace"),yy:{},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,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},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",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},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],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:n.__name(function(a,c,l,r,f,e,Z){var t=e.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 5:this.$=e[t];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[t-4]),r.addEntity(e[t-2]),r.addRelationship(e[t-4],e[t],e[t-2],e[t-3]);break;case 9:r.addEntity(e[t-8]),r.addEntity(e[t-4]),r.addRelationship(e[t-8],e[t],e[t-4],e[t-5]),r.setClass([e[t-8]],e[t-6]),r.setClass([e[t-4]],e[t-2]);break;case 10:r.addEntity(e[t-6]),r.addEntity(e[t-2]),r.addRelationship(e[t-6],e[t],e[t-2],e[t-3]),r.setClass([e[t-6]],e[t-4]);break;case 11:r.addEntity(e[t-6]),r.addEntity(e[t-4]),r.addRelationship(e[t-6],e[t],e[t-4],e[t-5]),r.setClass([e[t-4]],e[t-2]);break;case 12:r.addEntity(e[t-3]),r.addAttributes(e[t-3],e[t-1]);break;case 13:r.addEntity(e[t-5]),r.addAttributes(e[t-5],e[t-1]),r.setClass([e[t-5]],e[t-3]);break;case 14:r.addEntity(e[t-2]);break;case 15:r.addEntity(e[t-4]),r.setClass([e[t-4]],e[t-2]);break;case 16:r.addEntity(e[t]);break;case 17:r.addEntity(e[t-2]),r.setClass([e[t-2]],e[t]);break;case 18:r.addEntity(e[t-6],e[t-4]),r.addAttributes(e[t-6],e[t-1]);break;case 19:r.addEntity(e[t-8],e[t-6]),r.addAttributes(e[t-8],e[t-1]),r.setClass([e[t-8]],e[t-3]);break;case 20:r.addEntity(e[t-5],e[t-3]);break;case 21:r.addEntity(e[t-7],e[t-5]),r.setClass([e[t-7]],e[t-2]);break;case 22:r.addEntity(e[t-3],e[t-1]);break;case 23:r.addEntity(e[t-5],e[t-3]),r.setClass([e[t-5]],e[t]);break;case 24:case 25:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=e[t-3],r.addClass(e[t-2],e[t-1]);break;case 37:case 38:case 59:case 68:this.$=[e[t]];break;case 39:case 40:this.$=e[t-2].concat([e[t]]);break;case 41:this.$=e[t-2],r.setClass(e[t-1],e[t]);break;case 42:this.$=e[t-3],r.addCssStyles(e[t-2],e[t-1]);break;case 43:this.$=[e[t]];break;case 44:e[t-2].push(e[t]),this.$=e[t-2];break;case 46:this.$=e[t-1]+e[t];break;case 54:case 80:case 81:this.$=e[t].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=e[t];break;case 60:e[t].push(e[t-1]),this.$=e[t];break;case 61:this.$={type:e[t-1],name:e[t]};break;case 62:this.$={type:e[t-2],name:e[t-1],keys:e[t]};break;case 63:this.$={type:e[t-2],name:e[t-1],comment:e[t]};break;case 64:this.$={type:e[t-3],name:e[t-2],keys:e[t-1],comment:e[t]};break;case 65:case 67:case 70:this.$=e[t];break;case 66:this.$=e[t-1]+e[t];break;case 69:e[t-2].push(e[t]),this.$=e[t-2];break;case 71:this.$=e[t].replace(/"/g,"");break;case 72:this.$={cardA:e[t],relType:e[t-1],cardB:e[t-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),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:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:g,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:R,51:T,52:I},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:re,67:ne,68:ae,69:ce,70:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(B,[2,54]),s(B,[2,55]),s(B,[2,56]),s(B,[2,57]),s(B,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:I},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:R,51:T,52:I},{65:57,71:[1,58],72:[1,59]},s(Y,[2,73]),s(Y,[2,74]),s(Y,[2,75]),s(Y,[2,76]),s(Y,[2,77]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:P,38:60,41:z,42:A,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:P,38:69,41:z,42:A,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:re,67:ne,68:ae,69:ce,70:oe}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:re,67:ne,68:ae,69:ce,70:oe},s(pe,[2,78]),s(pe,[2,79]),{6:ye,10:be,39:81,42:me,47:ke},{40:[1,86],41:[1,87]},s(Ee,[2,43],{46:88,13:P,41:z,48:G,49:K}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:A}),{6:ye,10:be,39:89,42:me,47:ke},{14:90,40:Q,50:H,73:J},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:I},{18:96,19:[1,97],53:53,54:54,58:F},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:98,57:99,60:100,62:Se,63:Te}),s([19,58,62,63],[2,67]),{58:[2,66]},s(i,[2,22],{15:[1,104],17:[1,103]}),s([40,48,50,51,52],[2,72]),s(i,[2,36]),{13:P,41:z,45:105,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,80]),s(i,[2,81]),s(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},s(i,[2,15]),s(U,[2,62],{57:110,61:[1,111],63:Te}),s(U,[2,63]),s(le,[2,68]),s(U,[2,71]),s(le,[2,70]),{18:112,19:[1,113],53:53,54:54,58:F},{16:114,40:O,41:N},s(Ee,[2,44],{46:88,13:P,41:z,48:G,49:K}),{14:115,40:Q,50:H,73:J},{16:116,40:O,41:N},{14:117,40:Q,50:H,73:J},s(i,[2,13]),s(U,[2,64]),{60:118,62:Se},{19:[1,119]},s(i,[2,20]),s(i,[2,23],{17:[1,120],42:A}),s(i,[2,11]),{13:[1,121],42:A},s(i,[2,10]),s(le,[2,69]),s(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:F},{14:124,40:Q,50:H,73:J},{19:[1,125]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:n.__name(function(a,c){if(c.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=c,l}},"parseError"),parse:n.__name(function(a){var c=this,l=[0],r=[],f=[null],e=[],Z=this.table,t="",ee=0,Oe=0,ve=2,Ne=1,De=e.slice.call(arguments,1),p=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);p.setInput(a,x.yy),x.yy.lexer=p,x.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var de=p.yylloc;e.push(de);var Le=p.options&&p.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(b){l.length=l.length-2*b,f.length=f.length-b,e.length=e.length-b}n.__name(we,"popStack");function Ae(){var b;return b=r.pop()||p.lex()||Ne,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=c.symbols_[b]||b),b}n.__name(Ae,"lex");for(var y,v,m,_e,w={},te,E,Ce,se;;){if(v=l[l.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((y===null||typeof y>"u")&&(y=Ae()),m=Z[v]&&Z[v][y]),typeof m>"u"||!m.length||!m[0]){var fe="";se=[];for(te in Z[v])this.terminals_[te]&&te>ve&&se.push("'"+this.terminals_[te]+"'");p.showPosition?fe="Parse error on line "+(ee+1)+`:
2
2
  `+p.showPosition()+`
3
3
  Expecting `+se.join(", ")+", got '"+(this.terminals_[y]||y)+"'":fe="Parse error on line "+(ee+1)+": Unexpected "+(y==Ne?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(fe,{text:p.match,token:this.terminals_[y]||y,line:p.yylineno,loc:de,expected:se})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+y);switch(m[0]){case 1:l.push(y),f.push(p.yytext),e.push(p.yylloc),l.push(m[1]),y=null,Oe=p.yyleng,t=p.yytext,ee=p.yylineno,de=p.yylloc;break;case 2:if(E=this.productions_[m[1]][1],w.$=f[f.length-E],w._$={first_line:e[e.length-(E||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(E||1)].first_column,last_column:e[e.length-1].last_column},Le&&(w._$.range=[e[e.length-(E||1)].range[0],e[e.length-1].range[1]]),_e=this.performAction.apply(w,[t,Oe,ee,x.yy,m[1],f,e].concat(De)),typeof _e<"u")return _e;E&&(l=l.slice(0,-1*E*2),f=f.slice(0,-1*E),e=e.slice(0,-1*E)),l.push(this.productions_[m[1]][0]),f.push(w.$),e.push(w._$),Ce=Z[l[l.length-2]][l[l.length-1]],l.push(Ce);break;case 3:return!0}}return!0},"parse")},xe=(function(){var C={EOF:1,parseError:n.__name(function(c,l){if(this.yy.parser)this.yy.parser.parseError(c,l);else throw new Error(c)},"parseError"),setInput:n.__name(function(a,c){return this.yy=c||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var c=a.match(/(?:\r\n?|\n).*/g);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),a},"input"),unput:n.__name(function(a){var c=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===r.length?this.yylloc.first_column:0)+r[r.length-l.length].length-l[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(a){this.unput(this.match.slice(a))},"less"),pastInput:n.__name(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var a=this.pastInput(),c=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ "use strict";const n=Math.floor(21474508795e-1),E=5,s=2147483647,a=r=>Number.isSafeInteger(r)&&r>0&&r<=s,i=(r,e)=>{if(!Array.isArray(r.deniedPathSegments))throw new TypeError(`${e}: deniedPathSegments must be an array of path segment patterns (an empty array denies nothing)`);if(!Number.isSafeInteger(r.maxHtmlBytes)||r.maxHtmlBytes<=0||r.maxHtmlBytes>n)throw new RangeError(`${e}: maxHtmlBytes must be an integer from 1 to ${n}, got ${r.maxHtmlBytes}`)};class S extends Error{constructor(e,o){super(e,o),this.name="MarkdownResourceExhaustedError"}}class m extends Error{timeoutMs;constructor(e,o){super(e===null?"the conversion did not finish within the service's time limit":`the conversion did not finish in time (the call allowed ${e} ms)`,o),this.name="MarkdownConversionTimeoutError",this.timeoutMs=e}}class d extends Error{code;constructor(e,o,t){super(o,t),this.name="MarkdownConversionError",this.code=e}}exports.BLOCK_OFFSET_BYTES=E;exports.MAX_HTML_BYTES_LIMIT=n;exports.MAX_TIMER_MS=s;exports.MarkdownConversionError=d;exports.MarkdownConversionTimeoutError=m;exports.MarkdownResourceExhaustedError=S;exports.RESPONSE_HEADROOM_BYTES=65536;exports.assertConversionOptions=i;exports.isTimerDelay=a;
@@ -0,0 +1,62 @@
1
+ const a = 65536;
2
+ const t = Math.floor(21474508795e-1), i = 5, o = 2147483647, E = (r) => Number.isSafeInteger(r) && r > 0 && r <= o, m = (r, e) => {
3
+ if (!Array.isArray(r.deniedPathSegments))
4
+ throw new TypeError(`${e}: deniedPathSegments must be an array of path segment patterns (an empty array denies nothing)`);
5
+ if (!Number.isSafeInteger(r.maxHtmlBytes) || r.maxHtmlBytes <= 0 || r.maxHtmlBytes > t)
6
+ throw new RangeError(`${e}: maxHtmlBytes must be an integer from 1 to ${t}, got ${r.maxHtmlBytes}`);
7
+ };
8
+ class c extends Error {
9
+ /**
10
+ * Builds the error.
11
+ * エラーを組み立てる処理。
12
+ *
13
+ * @param message - Which limit stopped the conversion. どの上限で止まったか。
14
+ * @param options - The underlying failure as `cause`. 元の失敗 (`cause`)。
15
+ */
16
+ constructor(e, s) {
17
+ super(e, s), this.name = "MarkdownResourceExhaustedError";
18
+ }
19
+ }
20
+ class d extends Error {
21
+ /**
22
+ * The time limit the call set, in milliseconds; `null` when it set none and the service stopped at its own.
23
+ * 呼び出しが決めた時間の上限 (ミリ秒。決めずにサービスが自身の上限で止まった時は `null`)。
24
+ */
25
+ timeoutMs;
26
+ /**
27
+ * Builds the error.
28
+ * エラーを組み立てる処理。
29
+ *
30
+ * @param timeoutMs - The time limit that passed, in milliseconds, or `null` when it is not known. 過ぎた時間の上限 (ミリ秒。知らなければ `null`)。
31
+ * @param options - The underlying failure as `cause`. 元の失敗 (`cause`)。
32
+ */
33
+ constructor(e, s) {
34
+ super(e === null ? "the conversion did not finish within the service's time limit" : `the conversion did not finish in time (the call allowed ${e} ms)`, s), this.name = "MarkdownConversionTimeoutError", this.timeoutMs = e;
35
+ }
36
+ }
37
+ class h extends Error {
38
+ /** Why the conversion failed. 失敗の理由。 */
39
+ code;
40
+ /**
41
+ * Builds the error.
42
+ * エラーを組み立てる処理。
43
+ *
44
+ * @param code - Why the conversion failed. 失敗の理由。
45
+ * @param message - The converter's explanation. 変換器の説明。
46
+ * @param options - The underlying failure as `cause`. 元の失敗 (`cause`)。
47
+ */
48
+ constructor(e, s, n) {
49
+ super(s, n), this.name = "MarkdownConversionError", this.code = e;
50
+ }
51
+ }
52
+ export {
53
+ i as B,
54
+ t as M,
55
+ a as R,
56
+ h as a,
57
+ d as b,
58
+ c,
59
+ o as d,
60
+ m as e,
61
+ E as i
62
+ };
package/dist/errors.d.ts CHANGED
@@ -2,8 +2,8 @@ export declare class MarkdownResourceExhaustedError extends Error {
2
2
  constructor(message: string, options?: ErrorOptions);
3
3
  }
4
4
  export declare class MarkdownConversionTimeoutError extends Error {
5
- readonly timeoutMs: number;
6
- constructor(timeoutMs: number);
5
+ readonly timeoutMs: number | null;
6
+ constructor(timeoutMs: number | null, options?: ErrorOptions);
7
7
  }
8
8
  export type MarkdownConversionErrorCode = "invalid_argument" | "internal" | "unavailable";
9
9
  export declare class MarkdownConversionError extends Error {