docmedown 0.1.0 → 0.1.2

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 (233) hide show
  1. package/README.md +69 -20
  2. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +89 -0
  3. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +1 -0
  4. package/dist/arc-DgPKXEdT.mjs +82 -0
  5. package/dist/arc-n7TW7Bis.js +1 -0
  6. package/dist/architecture-7GRP2DOG-B7myQ46f.js +1 -0
  7. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +3 -0
  8. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +36 -0
  9. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +4154 -0
  10. package/dist/array-CApNbSU9.mjs +6 -0
  11. package/dist/array-DZSRzHA_.js +1 -0
  12. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +129 -0
  13. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +1922 -0
  14. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +38 -0
  15. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +3010 -0
  16. package/dist/channel-LgHproiI.mjs +5 -0
  17. package/dist/channel-yqu0m4cl.js +1 -0
  18. package/dist/chunk-2E4U76K2-BOyeRQsI.js +1 -0
  19. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +348 -0
  20. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +15 -0
  21. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +1 -0
  22. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +62 -0
  23. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +4188 -0
  24. package/dist/chunk-5VM5RSS4-GINalzIv.js +15 -0
  25. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +5 -0
  26. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +2 -0
  27. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +1330 -0
  28. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +1 -0
  29. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +14 -0
  30. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +3836 -0
  31. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +127 -0
  32. package/dist/chunk-F27PBJKO-8jvY_jJK.js +1 -0
  33. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +61 -0
  34. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +21456 -0
  35. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +161 -0
  36. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +1863 -0
  37. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +72 -0
  38. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +37 -0
  39. package/dist/chunk-GVQU2GXP-CdJIWN41.js +1 -0
  40. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +2042 -0
  41. package/dist/chunk-IMKFNOWR-CPJsszGN.js +231 -0
  42. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +8 -0
  43. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +1 -0
  44. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +1 -0
  45. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +245 -0
  46. package/dist/chunk-LNGE3PJU-BQX75wkM.js +34 -0
  47. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +1521 -0
  48. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +672 -0
  49. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +10 -0
  50. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +67 -0
  51. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +1 -0
  52. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +26 -0
  53. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +1 -0
  54. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +275 -0
  55. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +1 -0
  56. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +4183 -0
  57. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +168 -0
  58. package/dist/chunk-SVP7TREG-BFMd615E.js +88 -0
  59. package/dist/chunk-SVP7TREG-CynckzeF.mjs +490 -0
  60. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +3357 -0
  61. package/dist/chunk-TICWLB2K-agcyBfUp.js +206 -0
  62. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +59 -0
  63. package/dist/chunk-TLUHSLCS-Drx_a7am.js +1 -0
  64. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +1 -0
  65. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +9 -0
  66. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +1 -0
  67. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +12 -0
  68. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +1 -0
  69. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +30 -0
  70. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +1 -0
  71. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +30 -0
  72. package/dist/cli.js +719 -532
  73. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +1 -0
  74. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +2253 -0
  75. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +3 -0
  76. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +1 -0
  77. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +62 -0
  78. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +355 -0
  79. package/dist/cytoscape.esm-C5TvPYYm.mjs +18148 -0
  80. package/dist/cytoscape.esm-CBmWJr5M.js +321 -0
  81. package/dist/dagre-CZ6P9L_h.js +1 -0
  82. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +4 -0
  83. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +425 -0
  84. package/dist/dagre-J_1oH0eY.mjs +1934 -0
  85. package/dist/defaultLocale-N-0uLSyg.mjs +198 -0
  86. package/dist/defaultLocale-ybN1Vtvg.js +1 -0
  87. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +30 -0
  88. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +301 -0
  89. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +41 -0
  90. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +214 -0
  91. package/dist/diagram-VSXAHHWV-DgVT19mq.js +3 -0
  92. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +432 -0
  93. package/dist/diagram-VX7I27RA-CNw0pOX_.js +24 -0
  94. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +527 -0
  95. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +134 -0
  96. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +24 -0
  97. package/dist/dist-CXWJafG_.js +1 -0
  98. package/dist/dist-DNdLIC8h.mjs +59 -0
  99. package/dist/docmedown.cjs +125 -44
  100. package/dist/docmedown.iife.js +3477 -72
  101. package/dist/docmedown.mjs +10003 -4807
  102. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +1 -0
  103. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +100 -0
  104. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +99 -0
  105. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +1966 -0
  106. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +1 -0
  107. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +3 -0
  108. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +1 -0
  109. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +17 -0
  110. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +3072 -0
  111. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +292 -0
  112. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +1 -0
  113. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +3 -0
  114. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +106 -0
  115. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +733 -0
  116. package/dist/graphlib-BaETKKSa.js +1 -0
  117. package/dist/graphlib-XW-Jr8pF.mjs +1267 -0
  118. package/dist/info-A6RAGUB7-ClYskpn6.mjs +3 -0
  119. package/dist/info-A6RAGUB7-DDvvt-fW.js +1 -0
  120. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +20 -0
  121. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +2 -0
  122. package/dist/init-BJdqMO10.js +1 -0
  123. package/dist/init-CsQUQz36.mjs +13 -0
  124. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +70 -0
  125. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +719 -0
  126. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +139 -0
  127. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +884 -0
  128. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +976 -0
  129. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +89 -0
  130. package/dist/line-BEwhHSLl.js +1 -0
  131. package/dist/line-CiXRog8O.mjs +34 -0
  132. package/dist/linear-75tfjrny.js +1 -0
  133. package/dist/linear-Ncx_RuON.mjs +288 -0
  134. package/dist/mermaid-parser.core-BBApyu_y.js +6 -0
  135. package/dist/mermaid-parser.core-BRHibdUE.mjs +638 -0
  136. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +1006 -0
  137. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +96 -0
  138. package/dist/ordinal-B1BNQwUR.mjs +65 -0
  139. package/dist/ordinal-B9aFWmF9.js +1 -0
  140. package/dist/packet-AYTQ26CC-CorIy9Ul.js +1 -0
  141. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +3 -0
  142. package/dist/path-CnWkkRiY.mjs +84 -0
  143. package/dist/path-DIS6ck99.js +1 -0
  144. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +1 -0
  145. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +94 -0
  146. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +3 -0
  147. package/dist/pie-WAS4IAKB-D84xrSoY.js +1 -0
  148. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +39 -0
  149. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +203 -0
  150. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +7 -0
  151. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +2001 -0
  152. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +3 -0
  153. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +1 -0
  154. package/dist/railroad-74A4TZTK-BOZIf6ts.js +1 -0
  155. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +3 -0
  156. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +3 -0
  157. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +1 -0
  158. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +1 -0
  159. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +3 -0
  160. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +3 -0
  161. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +1 -0
  162. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +76 -0
  163. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +1 -0
  164. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +84 -0
  165. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +2224 -0
  166. package/dist/rough.esm-ChRLLRha.js +1 -0
  167. package/dist/rough.esm-DXYGHN3m.mjs +1361 -0
  168. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +972 -0
  169. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +40 -0
  170. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +162 -0
  171. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +4156 -0
  172. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +1 -0
  173. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +46 -0
  174. package/dist/src-B4mN2BMl.js +1 -0
  175. package/dist/src-D_hsMyeP.mjs +2154 -0
  176. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +220 -0
  177. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +1 -0
  178. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +30 -0
  179. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +1 -0
  180. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +4979 -0
  181. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +1 -0
  182. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +8 -0
  183. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +31 -0
  184. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +120 -0
  185. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +1069 -0
  186. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +3 -0
  187. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +1 -0
  188. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +3 -0
  189. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +1 -0
  190. package/dist/types/runtime/app.d.ts +3 -3
  191. package/dist/types/runtime/components/AppearanceMenu.d.ts +2 -0
  192. package/dist/types/runtime/components/Builtins.d.ts +3 -3
  193. package/dist/types/runtime/components/Content.d.ts +1 -1
  194. package/dist/types/runtime/components/DmdRegistry.d.ts +4 -2
  195. package/dist/types/runtime/components/Layout.d.ts +1 -1
  196. package/dist/types/runtime/components/MermaidDiagram.d.ts +16 -0
  197. package/dist/types/runtime/components/Navbar.d.ts +1 -1
  198. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +2 -0
  199. package/dist/types/runtime/components/Sidebar.d.ts +1 -1
  200. package/dist/types/runtime/components/TableOfContents.d.ts +2 -2
  201. package/dist/types/runtime/config-schema.d.ts +386 -0
  202. package/dist/types/runtime/config.d.ts +10 -3
  203. package/dist/types/runtime/index.d.ts +7 -5
  204. package/dist/types/runtime/loader/auto-indexer.d.ts +1 -1
  205. package/dist/types/runtime/loader/local-loader.d.ts +1 -1
  206. package/dist/types/runtime/loader/remote-github.d.ts +2 -2
  207. package/dist/types/runtime/loader/remote-gitlab.d.ts +2 -2
  208. package/dist/types/runtime/markdown/callouts.d.ts +1 -1
  209. package/dist/types/runtime/markdown/highlighter.d.ts +16 -16
  210. package/dist/types/runtime/markdown/mermaid.d.ts +82 -1
  211. package/dist/types/runtime/markdown/parser.d.ts +1 -1
  212. package/dist/types/runtime/markdown/renderer.d.ts +1 -1
  213. package/dist/types/runtime/offline-export.d.ts +26 -0
  214. package/dist/types/runtime/provider/DocProvider.d.ts +5 -5
  215. package/dist/types/runtime/provider/ThemeProvider.d.ts +13 -6
  216. package/dist/types/runtime/search/SearchModal.d.ts +2 -2
  217. package/dist/types/runtime/search/search-index.d.ts +1 -1
  218. package/dist/types/runtime/types.d.ts +28 -99
  219. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +34 -0
  220. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +1880 -0
  221. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +3 -0
  222. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +1 -0
  223. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +78 -0
  224. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +645 -0
  225. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +7 -0
  226. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +2210 -0
  227. package/package.json +15 -4
  228. package/schemas/docs.schema.json +166 -0
  229. package/templates/README.md +4 -4
  230. package/templates/docs.json +5 -2
  231. package/templates/getting-started.md +1 -1
  232. package/templates/guides/custom-components.md +2 -0
  233. package/templates/index.html +2 -4
@@ -0,0 +1,672 @@
1
+ import { m as e, p as t } from "./src-D_hsMyeP.mjs";
2
+ import { n } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
+ import { T as r, b as i, x as a } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
+ import { $ as o, J as s, K as c, Q as l, X as u, Y as d, Z as f, et as p, g as m, nt as h, q as g, rt as _, tt as v, u as ee } from "./chunk-75Z2AOVW-Dz0Sko9Y.mjs";
5
+ import { t as y } from "./line-CiXRog8O.mjs";
6
+ import { i as b, n as x } from "./chunk-P2QGCYS3-6q3AXPt5.mjs";
7
+ import { n as S, r as C } from "./chunk-GMAD6QVW-BZeZ4fdb.mjs";
8
+ import { t as te } from "./rough.esm-DXYGHN3m.mjs";
9
+ import { t as w } from "./chunk-4HAMMTFA-VgWPe1ng.mjs";
10
+ import { n as T } from "./chunk-GVQU2GXP-B1D3J05J.mjs";
11
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-OSK3NFVY.mjs
12
+ var E = /* @__PURE__ */ n((e, t) => {
13
+ if (t) return "translate(" + -e.width / 2 + ", " + -e.height / 2 + ")";
14
+ let n = e.x ?? 0, r = e.y ?? 0;
15
+ return "translate(" + -(n + e.width / 2) + ", " + -(r + e.height / 2) + ")";
16
+ }, "computeLabelTransform"), D = {
17
+ aggregation: 17.25,
18
+ extension: 17.25,
19
+ composition: 17.25,
20
+ dependency: 6,
21
+ lollipop: 13.5,
22
+ arrow_point: 4,
23
+ arrow_barb: 0,
24
+ arrow_barb_neo: 5.5
25
+ }, O = {
26
+ arrow_point: 4,
27
+ arrow_cross: 12.5,
28
+ arrow_circle: 12.5
29
+ };
30
+ function k(e, t) {
31
+ if (e === void 0 || t === void 0) return {
32
+ angle: 0,
33
+ deltaX: 0,
34
+ deltaY: 0
35
+ };
36
+ e = A(e), t = A(t);
37
+ let [n, r] = [e.x, e.y], [i, a] = [t.x, t.y], o = i - n, s = a - r;
38
+ return {
39
+ angle: Math.atan(s / o),
40
+ deltaX: o,
41
+ deltaY: s
42
+ };
43
+ }
44
+ n(k, "calculateDeltaAndAngle");
45
+ var A = /* @__PURE__ */ n((e) => Array.isArray(e) ? {
46
+ x: e[0],
47
+ y: e[1]
48
+ } : e, "pointTransformer"), ne = /* @__PURE__ */ n((e) => ({
49
+ x: /* @__PURE__ */ n(function(t, n, r) {
50
+ let i = 0, a = A(r[0]).x < A(r[r.length - 1]).x ? "left" : "right";
51
+ if (n === 0 && Object.hasOwn(D, e.arrowTypeStart)) {
52
+ let { angle: t, deltaX: n } = k(r[0], r[1]);
53
+ i = D[e.arrowTypeStart] * Math.cos(t) * (n >= 0 ? 1 : -1);
54
+ } else if (n === r.length - 1 && Object.hasOwn(D, e.arrowTypeEnd)) {
55
+ let { angle: t, deltaX: n } = k(r[r.length - 1], r[r.length - 2]);
56
+ i = D[e.arrowTypeEnd] * Math.cos(t) * (n >= 0 ? 1 : -1);
57
+ }
58
+ let o = Math.abs(A(t).x - A(r[r.length - 1]).x), s = Math.abs(A(t).y - A(r[r.length - 1]).y), c = Math.abs(A(t).x - A(r[0]).x), l = Math.abs(A(t).y - A(r[0]).y), u = D[e.arrowTypeStart], d = D[e.arrowTypeEnd];
59
+ if (o < d && o > 0 && s < d) {
60
+ let e = d + 1 - o;
61
+ e *= a === "right" ? -1 : 1, i -= e;
62
+ }
63
+ if (c < u && c > 0 && l < u) {
64
+ let e = u + 1 - c;
65
+ e *= a === "right" ? -1 : 1, i += e;
66
+ }
67
+ return A(t).x + i;
68
+ }, "x"),
69
+ y: /* @__PURE__ */ n(function(t, n, r) {
70
+ let i = 0, a = A(r[0]).y < A(r[r.length - 1]).y ? "down" : "up";
71
+ if (n === 0 && Object.hasOwn(D, e.arrowTypeStart)) {
72
+ let { angle: t, deltaY: n } = k(r[0], r[1]);
73
+ i = D[e.arrowTypeStart] * Math.abs(Math.sin(t)) * (n >= 0 ? 1 : -1);
74
+ } else if (n === r.length - 1 && Object.hasOwn(D, e.arrowTypeEnd)) {
75
+ let { angle: t, deltaY: n } = k(r[r.length - 1], r[r.length - 2]);
76
+ i = D[e.arrowTypeEnd] * Math.abs(Math.sin(t)) * (n >= 0 ? 1 : -1);
77
+ }
78
+ let o = Math.abs(A(t).y - A(r[r.length - 1]).y), s = Math.abs(A(t).x - A(r[r.length - 1]).x), c = Math.abs(A(t).y - A(r[0]).y), l = Math.abs(A(t).x - A(r[0]).x), u = D[e.arrowTypeStart], d = D[e.arrowTypeEnd];
79
+ if (o < d && o > 0 && s < d) {
80
+ let e = d + 1 - o;
81
+ e *= a === "up" ? -1 : 1, i -= e;
82
+ }
83
+ if (c < u && c > 0 && l < u) {
84
+ let e = u + 1 - c;
85
+ e *= a === "up" ? -1 : 1, i += e;
86
+ }
87
+ return A(t).y + i;
88
+ }, "y")
89
+ }), "getLineFunctionsWithOffset"), re = /* @__PURE__ */ n((e, t, n, r, i, a = !1, o) => {
90
+ t.arrowTypeStart && N(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && N(e, "end", t.arrowTypeEnd, n, r, i, a, o);
91
+ }, "addEdgeMarkers"), j = {
92
+ arrow_cross: {
93
+ type: "cross",
94
+ fill: !1
95
+ },
96
+ arrow_point: {
97
+ type: "point",
98
+ fill: !0
99
+ },
100
+ arrow_barb: {
101
+ type: "barb",
102
+ fill: !0
103
+ },
104
+ arrow_barb_neo: {
105
+ type: "barb",
106
+ fill: !0
107
+ },
108
+ arrow_circle: {
109
+ type: "circle",
110
+ fill: !1
111
+ },
112
+ aggregation: {
113
+ type: "aggregation",
114
+ fill: !1
115
+ },
116
+ extension: {
117
+ type: "extension",
118
+ fill: !1
119
+ },
120
+ composition: {
121
+ type: "composition",
122
+ fill: !0
123
+ },
124
+ dependency: {
125
+ type: "dependency",
126
+ fill: !0
127
+ },
128
+ lollipop: {
129
+ type: "lollipop",
130
+ fill: !1
131
+ },
132
+ only_one: {
133
+ type: "onlyOne",
134
+ fill: !1
135
+ },
136
+ zero_or_one: {
137
+ type: "zeroOrOne",
138
+ fill: !1
139
+ },
140
+ one_or_more: {
141
+ type: "oneOrMore",
142
+ fill: !1
143
+ },
144
+ zero_or_more: {
145
+ type: "zeroOrMore",
146
+ fill: !1
147
+ },
148
+ requirement_arrow: {
149
+ type: "requirement_arrow",
150
+ fill: !1
151
+ },
152
+ requirement_contains: {
153
+ type: "requirement_contains",
154
+ fill: !1
155
+ }
156
+ }, M = [
157
+ "cross",
158
+ "point",
159
+ "circle",
160
+ "lollipop",
161
+ "aggregation",
162
+ "extension",
163
+ "composition",
164
+ "dependency",
165
+ "barb"
166
+ ], N = /* @__PURE__ */ n((t, n, r, i, a, o, s = !1, c) => {
167
+ if (!r || r === "none") return;
168
+ let l = j[r], u = l && M.includes(l.type);
169
+ if (!l) {
170
+ e.warn(`Unknown arrow type: ${r}`);
171
+ return;
172
+ }
173
+ let d = `${a}_${o}-${l.type}${n === "start" ? "Start" : "End"}${s && u ? "-margin" : ""}`;
174
+ if (c && c.trim() !== "") {
175
+ let e = `${d}_${c.replace(/[^\dA-Za-z]/g, "_")}`;
176
+ if (!document.getElementById(e)) {
177
+ let t = document.getElementById(d);
178
+ if (t) {
179
+ let n = t.cloneNode(!0);
180
+ n.id = e, n.querySelectorAll("path, circle, line").forEach((e) => {
181
+ e.setAttribute("stroke", c), l.fill && e.setAttribute("fill", c);
182
+ }), t.parentNode?.appendChild(n);
183
+ }
184
+ }
185
+ t.attr(`marker-${n}`, `url(${i}#${e})`);
186
+ } else t.attr(`marker-${n}`, `url(${i}#${d})`);
187
+ }, "addEdgeMarker"), ie = /* @__PURE__ */ n((e) => typeof e == "string" ? e : a()?.flowchart?.curve, "resolveEdgeCurveType"), P = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ n(() => {
188
+ P.clear(), F.clear();
189
+ }, "clear"), L = /* @__PURE__ */ n((e) => !!(e.label || e.startLabelLeft || e.startLabelRight || e.endLabelLeft || e.endLabelRight), "hasEdgeLabel"), R = /* @__PURE__ */ n((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), z = /* @__PURE__ */ n(async (n, i) => {
190
+ let o = a(), s = r(o), { labelStyles: c } = b(i);
191
+ i.labelStyle = c;
192
+ let l = n.insert("g").attr("class", "edgeLabel"), u = l.insert("g").attr("class", "label").attr("data-id", i.id), d = i.labelType === "markdown", f = await S(n, i.label, {
193
+ style: R(i.labelStyle),
194
+ useHtmlLabels: s,
195
+ addSvgBackground: !0,
196
+ isNode: !1,
197
+ markdown: d,
198
+ width: void 0
199
+ }, o);
200
+ u.node().appendChild(f), e.info("abc82", i, i.labelType);
201
+ let p, m;
202
+ if (s) {
203
+ let e = f.children[0], n = t(f);
204
+ p = await C.measure(() => e.getBoundingClientRect()), m = p, n.attr("width", p.width), n.attr("height", p.height);
205
+ } else {
206
+ let e = t(f).select("text").node();
207
+ await C.measure(() => {
208
+ p = f.getBBox(), m = e && typeof e.getBBox == "function" ? e.getBBox() : p;
209
+ });
210
+ }
211
+ u.attr("transform", E(m, s)), P.set(i.id, l), i.width = p.width, i.height = p.height;
212
+ let h;
213
+ if (i.startLabelLeft) {
214
+ let e = n.insert("g").attr("class", "edgeTerminals"), r = e.insert("g").attr("class", "inner"), a = await w(r, i.startLabelLeft, R(i.labelStyle) || "", !1, !1);
215
+ h = a;
216
+ let o = a.getBBox();
217
+ if (s) {
218
+ let e = a.children[0], n = t(a);
219
+ o = e.getBoundingClientRect(), n.attr("width", o.width), n.attr("height", o.height);
220
+ }
221
+ r.attr("transform", E(o, s)), F.get(i.id) || F.set(i.id, {}), F.get(i.id).startLeft = e, B(h, i.startLabelLeft);
222
+ }
223
+ if (i.startLabelRight) {
224
+ let e = n.insert("g").attr("class", "edgeTerminals"), r = e.insert("g").attr("class", "inner"), a = await w(r, i.startLabelRight, R(i.labelStyle) || "", !1, !1);
225
+ h = a;
226
+ let o = a.getBBox();
227
+ if (s) {
228
+ let e = a.children[0], n = t(a);
229
+ o = e.getBoundingClientRect(), n.attr("width", o.width), n.attr("height", o.height);
230
+ }
231
+ r.attr("transform", E(o, s)), F.get(i.id) || F.set(i.id, {}), F.get(i.id).startRight = e, B(h, i.startLabelRight);
232
+ }
233
+ if (i.endLabelLeft) {
234
+ let e = n.insert("g").attr("class", "edgeTerminals"), r = e.insert("g").attr("class", "inner"), a = await w(e, i.endLabelLeft, R(i.labelStyle) || "", !1, !1);
235
+ h = a;
236
+ let o = a.getBBox();
237
+ if (s) {
238
+ let e = a.children[0], n = t(a);
239
+ o = e.getBoundingClientRect(), n.attr("width", o.width), n.attr("height", o.height);
240
+ }
241
+ r.attr("transform", E(o, s)), F.get(i.id) || F.set(i.id, {}), F.get(i.id).endLeft = e, B(h, i.endLabelLeft);
242
+ }
243
+ if (i.endLabelRight) {
244
+ let e = n.insert("g").attr("class", "edgeTerminals"), r = e.insert("g").attr("class", "inner"), a = await w(e, i.endLabelRight, R(i.labelStyle) || "", !1, !1);
245
+ h = a;
246
+ let o = a.getBBox();
247
+ if (s) {
248
+ let e = a.children[0], n = t(a);
249
+ o = e.getBoundingClientRect(), n.attr("width", o.width), n.attr("height", o.height);
250
+ }
251
+ r.attr("transform", E(o, s)), F.get(i.id) || F.set(i.id, {}), F.get(i.id).endRight = e, B(h, i.endLabelRight);
252
+ }
253
+ return f;
254
+ }, "insertEdgeLabel");
255
+ function B(e, t) {
256
+ r(a()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
257
+ }
258
+ n(B, "setTerminalWidth");
259
+ var V = /* @__PURE__ */ n((t, n) => {
260
+ e.debug("Moving label abc88 ", t.id, t.label, P.get(t.id), n);
261
+ let r = n.updatedPath ? n.updatedPath : n.originalPath, i = a(), { subGraphTitleTotalMargin: o } = T(i);
262
+ if (t.label) {
263
+ let i = P.get(t.id), a = t.x, s = t.y;
264
+ if (r) {
265
+ let i = m.calcLabelPosition(r);
266
+ e.debug("Moving label " + t.label + " from (", a, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (a = i.x, s = i.y);
267
+ }
268
+ i.attr("transform", `translate(${a}, ${s + o / 2})`);
269
+ }
270
+ if (t.startLabelLeft) {
271
+ let e = F.get(t.id).startLeft, n = t.x, i = t.y;
272
+ if (r) {
273
+ let e = m.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", r);
274
+ n = e.x, i = e.y;
275
+ }
276
+ e.attr("transform", `translate(${n}, ${i})`);
277
+ }
278
+ if (t.startLabelRight) {
279
+ let e = F.get(t.id).startRight, n = t.x, i = t.y;
280
+ if (r) {
281
+ let e = m.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_right", r);
282
+ n = e.x, i = e.y;
283
+ }
284
+ e.attr("transform", `translate(${n}, ${i})`);
285
+ }
286
+ if (t.endLabelLeft) {
287
+ let e = F.get(t.id).endLeft, n = t.x, i = t.y;
288
+ if (r) {
289
+ let e = m.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", r);
290
+ n = e.x, i = e.y;
291
+ }
292
+ e.attr("transform", `translate(${n}, ${i})`);
293
+ }
294
+ if (t.endLabelRight) {
295
+ let e = F.get(t.id).endRight, n = t.x, i = t.y;
296
+ if (r) {
297
+ let e = m.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", r);
298
+ n = e.x, i = e.y;
299
+ }
300
+ e.attr("transform", `translate(${n}, ${i})`);
301
+ }
302
+ }, "positionEdgeLabel"), ae = /* @__PURE__ */ n((e, t) => {
303
+ if (!e?.isLabelEdge || !e?.id?.endsWith("-to-label") || !Array.isArray(t) || t.length !== 2) return t;
304
+ let [n, r] = t, i = Math.abs(r.x - n.x), a = Math.abs(r.y - n.y);
305
+ return i < .001 || a < .001 ? t : a >= i ? [
306
+ n,
307
+ {
308
+ x: n.x,
309
+ y: r.y
310
+ },
311
+ r
312
+ ] : [
313
+ n,
314
+ {
315
+ x: r.x,
316
+ y: n.y
317
+ },
318
+ r
319
+ ];
320
+ }, "orthogonalizeToLabelClippedPoints"), H = /* @__PURE__ */ n((e, t) => {
321
+ let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
322
+ return i >= o || a >= s;
323
+ }, "outsideNode"), U = /* @__PURE__ */ n((t, n, r) => {
324
+ e.debug(`intersection calc abc89:
325
+ outsidePoint: ${JSON.stringify(n)}
326
+ insidePoint : ${JSON.stringify(r)}
327
+ node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);
328
+ let i = t.x, a = t.y, o = Math.abs(i - r.x), s = t.width / 2, c = r.x < n.x ? s - o : s + o, l = t.height / 2, u = Math.abs(n.y - r.y), d = Math.abs(n.x - r.x);
329
+ if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
330
+ let t = r.y < n.y ? n.y - l - a : a - l - n.y;
331
+ c = d * t / u;
332
+ let i = {
333
+ x: r.x < n.x ? r.x + c : r.x - d + c,
334
+ y: r.y < n.y ? r.y + u - t : r.y - u + t
335
+ };
336
+ return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), e.debug(`abc89 top/bottom calc, Q ${u}, q ${t}, R ${d}, r ${c}`, i), i;
337
+ }
338
+ {
339
+ c = r.x < n.x ? n.x - s - i : i - s - n.x;
340
+ let t = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + t : r.y - t;
341
+ return e.debug(`sides calc abc89, Q ${u}, q ${t}, R ${d}, r ${c}`, {
342
+ _x: a,
343
+ _y: o
344
+ }), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
345
+ x: a,
346
+ y: o
347
+ };
348
+ }
349
+ }, "intersection"), W = /* @__PURE__ */ n((t, n) => {
350
+ e.warn("abc88 cutPathAtIntersect", t, n);
351
+ let r = [], i = t[0], a = !1;
352
+ return t.forEach((t) => {
353
+ if (e.info("abc88 checking point", t, n), !H(n, t) && !a) {
354
+ let o = U(n, i, t);
355
+ e.debug("abc88 inside", t, i, o), e.debug("abc88 intersection", o, n);
356
+ let s = !1;
357
+ r.forEach((e) => {
358
+ s ||= e.x === o.x && e.y === o.y;
359
+ }), r.some((e) => e.x === o.x && e.y === o.y) ? e.warn("abc88 no intersect", o, r) : r.push(o), a = !0;
360
+ } else e.warn("abc88 outside", t, i), i = t, a || r.push(t);
361
+ }), e.debug("returning points", r), r;
362
+ }, "cutPathAtIntersect");
363
+ function G(e) {
364
+ let t = [], n = [];
365
+ for (let r = 1; r < e.length - 1; r++) {
366
+ let i = e[r - 1], a = e[r], o = e[r + 1];
367
+ (i.x === a.x && a.y === o.y && Math.abs(a.x - o.x) > 5 && Math.abs(a.y - i.y) > 5 || i.y === a.y && a.x === o.x && Math.abs(a.x - i.x) > 5 && Math.abs(a.y - o.y) > 5) && (t.push(a), n.push(r));
368
+ }
369
+ return {
370
+ cornerPoints: t,
371
+ cornerPointPositions: n
372
+ };
373
+ }
374
+ n(G, "extractCornerPoints");
375
+ var K = /* @__PURE__ */ n(function(e, t, n) {
376
+ let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
377
+ return {
378
+ x: t.x - a * r,
379
+ y: t.y - a * i
380
+ };
381
+ }, "findAdjacentPoint"), oe = /* @__PURE__ */ n(function(t) {
382
+ let { cornerPointPositions: n } = G(t), r = [];
383
+ for (let i = 0; i < t.length; i++) if (n.includes(i)) {
384
+ let n = t[i - 1], a = t[i + 1], o = t[i], s = K(n, o, 5), c = K(a, o, 5), l = c.x - s.x, u = c.y - s.y;
385
+ r.push(s);
386
+ let d = Math.sqrt(2) * 2, f = {
387
+ x: o.x,
388
+ y: o.y
389
+ };
390
+ Math.abs(a.x - n.x) > 10 && Math.abs(a.y - n.y) >= 10 ? (e.debug("Corner point fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), f = o.x === s.x ? {
391
+ x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
392
+ y: u < 0 ? s.y - d : s.y + d
393
+ } : {
394
+ x: l < 0 ? s.x - d : s.x + d,
395
+ y: u < 0 ? s.y - 5 + d : s.y + 5 - d
396
+ }) : e.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
397
+ } else r.push(t[i]);
398
+ return r;
399
+ }, "fixCorners"), se = /* @__PURE__ */ n((e, t, n) => {
400
+ let r = e - t - n, i = Math.floor(r / 4);
401
+ return `0 ${t} ${Array(Number.isFinite(i) ? Math.max(0, i) : 0).fill("2 2").join(" ")} ${n}`;
402
+ }, "generateDashArray"), q = /* @__PURE__ */ n(function(n, r, i, b, S, C, w, T = !1) {
403
+ if (!w) throw Error(`insertEdge: missing diagramId for edge "${r.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
404
+ let { handDrawnSeed: E, layout: D } = a(), k = r.points, A = !1, j = S;
405
+ var M = C;
406
+ let N = [];
407
+ for (let e in r.cssCompiledStyles) x(e) || N.push(r.cssCompiledStyles[e]);
408
+ if (D === "swimlane") {
409
+ if (M.intersect && j.intersect && Array.isArray(k) && k.length >= 2) {
410
+ if (k.length === 2) k = [j.intersect(k[0]), M.intersect(k[1])];
411
+ else {
412
+ let e = k.slice(1, -1), t = e[0], n = e[e.length - 1], r = .5, i = Math.abs(k[k.length - 1].x - n.x) < r && Math.abs(k[k.length - 1].y - n.y) < r, a = j.intersect(t), o = i ? n : M.intersect(n), s = Math.abs(o.x - n.x) < r && Math.abs(o.y - n.y) < r, c = Math.abs(a.x - t.x) < r && Math.abs(a.y - t.y) < r ? [] : [a], l = s ? [] : [o];
413
+ k = [
414
+ ...c,
415
+ ...e,
416
+ ...l
417
+ ];
418
+ }
419
+ }
420
+ k = ae(r, k);
421
+ } else M.intersect && j.intersect && !T && (k = k.slice(1, r.points.length - 1), k.unshift(j.intersect(k[0])), k.push(M.intersect(k[k.length - 1])));
422
+ let P = btoa(JSON.stringify(k));
423
+ r.toCluster && (e.info("to cluster abc88", i.get(r.toCluster)), k = W(r.points, i.get(r.toCluster).node), A = !0), r.fromCluster && (e.debug("from cluster abc88", i.get(r.fromCluster), JSON.stringify(k, null, 2)), k = W(k.reverse(), i.get(r.fromCluster).node).reverse(), A = !0);
424
+ let F = k.filter((e) => !Number.isNaN(e.y)), I = ie(r.curve);
425
+ I !== "rounded" && (F = oe(F));
426
+ let L = _;
427
+ switch (I) {
428
+ case "linear":
429
+ L = _;
430
+ break;
431
+ case "basis":
432
+ L = p;
433
+ break;
434
+ case "cardinal":
435
+ L = o;
436
+ break;
437
+ case "bumpX":
438
+ L = v;
439
+ break;
440
+ case "bumpY":
441
+ L = h;
442
+ break;
443
+ case "catmullRom":
444
+ L = l;
445
+ break;
446
+ case "monotoneX":
447
+ L = u;
448
+ break;
449
+ case "monotoneY":
450
+ L = f;
451
+ break;
452
+ case "natural":
453
+ L = d;
454
+ break;
455
+ case "step":
456
+ L = s;
457
+ break;
458
+ case "stepAfter":
459
+ L = c;
460
+ break;
461
+ case "stepBefore":
462
+ L = g;
463
+ break;
464
+ case "rounded":
465
+ L = _;
466
+ break;
467
+ default: L = p;
468
+ }
469
+ let { x: R, y: z } = ne(r), B = y().x(R).y(z).curve(L), V;
470
+ switch (r.thickness) {
471
+ case "normal":
472
+ V = "edge-thickness-normal";
473
+ break;
474
+ case "thick":
475
+ V = "edge-thickness-thick";
476
+ break;
477
+ case "invisible":
478
+ V = "edge-thickness-invisible";
479
+ break;
480
+ default: V = "edge-thickness-normal";
481
+ }
482
+ switch (r.pattern) {
483
+ case "solid":
484
+ V += " edge-pattern-solid";
485
+ break;
486
+ case "dotted":
487
+ V += " edge-pattern-dotted";
488
+ break;
489
+ case "dashed":
490
+ V += " edge-pattern-dashed";
491
+ break;
492
+ default: V += " edge-pattern-solid";
493
+ }
494
+ let H, U = I === "rounded" ? J(X(F, r), 5) : B(F), G = Array.isArray(r.style) ? r.style : [r.style], K = G.find((e) => e?.startsWith("stroke:")), q = "";
495
+ r.animate && (q = "edge-animation-fast"), r.animation && (q = "edge-animation-" + r.animation);
496
+ let Y = !1;
497
+ if (r.look === "handDrawn") {
498
+ let e = te.svg(n);
499
+ Object.assign([], F);
500
+ let i = e.path(U, {
501
+ roughness: .3,
502
+ seed: E
503
+ });
504
+ V += " transition", H = t(i).select("path").attr("id", `${w}-${r.id}`).attr("class", " " + V + (r.classes ? " " + r.classes : "") + (q ? " " + q : "")).attr("style", G ? G.reduce((e, t) => e + ";" + t, "") : "");
505
+ let a = H.attr("d");
506
+ H.attr("d", a), n.node().appendChild(H.node());
507
+ } else {
508
+ let e = N.join(";"), t = G ? G.reduce((e, t) => e + t + ";", "") : "", i = (e ? e + ";" + t + ";" : t) + ";" + (G ? G.reduce((e, t) => e + ";" + t, "") : "");
509
+ H = n.append("path").attr("d", U).attr("id", `${w}-${r.id}`).attr("class", " " + V + (r.classes ? " " + r.classes : "") + (q ? " " + q : "")).attr("style", i), K = i.match(/stroke:([^;]+)/)?.[1], Y = r.animate === !0 || !!r.animation || e.includes("animation");
510
+ let a = H.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, s = O[r.arrowTypeStart] || 0, c = O[r.arrowTypeEnd] || 0;
511
+ if (r.look === "neo" && !Y) {
512
+ let e = `stroke-dasharray: ${r.pattern === "dotted" || r.pattern === "dashed" ? se(o, s, c) : `0 ${s} ${o - s - c} ${c}`}; stroke-dashoffset: 0;`;
513
+ H.attr("style", e + H.attr("style"));
514
+ }
515
+ }
516
+ H.attr("data-edge", !0), H.attr("data-et", "edge"), H.attr("data-id", r.id), H.attr("data-points", P), H.attr("data-look", ee(r.look)), r.showPoints && F.forEach((e) => {
517
+ n.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", e.x).attr("cy", e.y);
518
+ });
519
+ let Z = "";
520
+ (a().flowchart.arrowMarkerAbsolute || a().state.arrowMarkerAbsolute) && (Z = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Z = Z.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), e.info("arrowTypeStart", r.arrowTypeStart), e.info("arrowTypeEnd", r.arrowTypeEnd);
521
+ let Q = !Y && r?.look === "neo";
522
+ re(H, r, Z, w, b, Q, K);
523
+ let ce = Math.floor(k.length / 2), le = k[ce];
524
+ m.isLabelCoordinateInPath(le, H.attr("d")) || (A = !0);
525
+ let $ = {};
526
+ return A && ($.updatedPath = k), $.originalPath = r.points, $;
527
+ }, "insertEdge");
528
+ function J(e, t) {
529
+ if (e.length < 2) return "";
530
+ let n = "", r = e.length, i = 1e-5;
531
+ for (let a = 0; a < r; a++) {
532
+ let o = e[a], s = e[a - 1], c = e[a + 1];
533
+ if (a === 0) n += `M${o.x},${o.y}`;
534
+ else if (a === r - 1) n += `L${o.x},${o.y}`;
535
+ else {
536
+ let e = o.x - s.x, r = o.y - s.y, a = c.x - o.x, l = c.y - o.y, u = Math.hypot(e, r), d = Math.hypot(a, l);
537
+ if (u < i || d < i) {
538
+ n += `L${o.x},${o.y}`;
539
+ continue;
540
+ }
541
+ let f = e / u, p = r / u, m = a / d, h = l / d, g = f * m + p * h, _ = Math.acos(Math.max(-1, Math.min(1, g)));
542
+ if (_ < i || Math.abs(Math.PI - _) < i) {
543
+ n += `L${o.x},${o.y}`;
544
+ continue;
545
+ }
546
+ let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), ee = o.x - f * v, y = o.y - p * v, b = o.x + m * v, x = o.y + h * v;
547
+ n += `L${ee},${y}`, n += `Q${o.x},${o.y} ${b},${x}`;
548
+ }
549
+ }
550
+ return n;
551
+ }
552
+ n(J, "generateRoundedPath");
553
+ function Y(e, t) {
554
+ if (!e || !t) return {
555
+ angle: 0,
556
+ deltaX: 0,
557
+ deltaY: 0
558
+ };
559
+ let n = t.x - e.x, r = t.y - e.y;
560
+ return {
561
+ angle: Math.atan2(r, n),
562
+ deltaX: n,
563
+ deltaY: r
564
+ };
565
+ }
566
+ n(Y, "calculateDeltaAndAngle");
567
+ function X(e, t) {
568
+ let n = e.map((e) => ({ ...e }));
569
+ if (e.length >= 2 && D[t.arrowTypeStart]) {
570
+ let r = D[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = Y(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
571
+ n[0].x = i.x + s, n[0].y = i.y + c;
572
+ }
573
+ let r = e.length;
574
+ if (r >= 2 && D[t.arrowTypeEnd]) {
575
+ let i = D[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = Y(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
576
+ n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
577
+ }
578
+ return n;
579
+ }
580
+ n(X, "applyMarkerOffsetsToPoints");
581
+ var Z = /* @__PURE__ */ n((e, t, n, r) => {
582
+ t.forEach((t) => {
583
+ Q[t](e, n, r);
584
+ });
585
+ }, "insertMarkers"), Q = {
586
+ extension: /* @__PURE__ */ n((t, n, r) => {
587
+ e.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), t.append("marker").attr("id", r + "_" + n + "-extensionStart-margin").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,7 18,13 18,1").style("stroke-width", 2).style("stroke-dasharray", "0"), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd-margin").attr("class", "marker extension " + n).attr("refX", 9).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,1 10,13 18,7").style("stroke-width", 2).style("stroke-dasharray", "0");
588
+ }, "extension"),
589
+ composition: /* @__PURE__ */ n((e, t, n) => {
590
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart-margin").attr("class", "marker composition " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("viewBox", "0 0 15 15").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd-margin").attr("class", "marker composition " + t).attr("refX", 3.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
591
+ }, "composition"),
592
+ aggregation: /* @__PURE__ */ n((e, t, n) => {
593
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart-margin").attr("class", "marker aggregation " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd-margin").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
594
+ }, "aggregation"),
595
+ dependency: /* @__PURE__ */ n((e, t, n) => {
596
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart-margin").attr("class", "marker dependency " + t).attr("refX", 4).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd-margin").attr("class", "marker dependency " + t).attr("refX", 16).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
597
+ }, "dependency"),
598
+ lollipop: /* @__PURE__ */ n((e, t, n) => {
599
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart-margin").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd-margin").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2);
600
+ }, "lollipop"),
601
+ point: /* @__PURE__ */ n((e, t, n) => {
602
+ e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 11.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 10.5).attr("markerHeight", 14).attr("orient", "auto").append("path").attr("d", "M 0 0 L 11.5 7 L 0 14 z").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 1).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11.5).attr("markerHeight", 14).attr("orient", "auto").append("polygon").attr("points", "0,7 11.5,14 11.5,0").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
603
+ }, "point"),
604
+ circle: /* @__PURE__ */ n((e, t, n) => {
605
+ e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refY", 5).attr("refX", 12.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -2).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
606
+ }, "circle"),
607
+ cross: /* @__PURE__ */ n((e, t, n) => {
608
+ e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossEnd-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", 17.7).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5), e.append("marker").attr("id", n + "_" + t + "-crossStart-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", -3.5).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5).style("stroke-dasharray", "1,0");
609
+ }, "cross"),
610
+ barb: /* @__PURE__ */ n((e, t, n) => {
611
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
612
+ }, "barb"),
613
+ barbNeo: /* @__PURE__ */ n((e, t, n) => {
614
+ let { themeVariables: r } = i(), { transitionColor: a } = r;
615
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd-margin").attr("refX", 17).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z").attr("fill", `${a}`);
616
+ }, "barbNeo"),
617
+ only_one: /* @__PURE__ */ n((e, t, n) => {
618
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18"), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
619
+ }, "only_one"),
620
+ zero_or_one: /* @__PURE__ */ n((e, t, n) => {
621
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
622
+ r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
623
+ let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
624
+ i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
625
+ }, "zero_or_one"),
626
+ one_or_more: /* @__PURE__ */ n((e, t, n) => {
627
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
628
+ }, "one_or_more"),
629
+ zero_or_more: /* @__PURE__ */ n((e, t, n) => {
630
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
631
+ r.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
632
+ let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
633
+ i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
634
+ }, "zero_or_more"),
635
+ only_one_neo: /* @__PURE__ */ n((e, t, n) => {
636
+ let { themeVariables: r } = i(), { strokeWidth: a } = r;
637
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18").attr("stroke-width", `${a}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18").attr("stroke-width", `${a}`);
638
+ }, "only_one_neo"),
639
+ zero_or_one_neo: /* @__PURE__ */ n((e, t, n) => {
640
+ let { themeVariables: r } = i(), { strokeWidth: a, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
641
+ s.append("circle").attr("fill", o ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${a}`).attr("r", 6), s.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${a}`);
642
+ let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
643
+ c.append("circle").attr("fill", o ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${a}`).attr("r", 6), c.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${a}`);
644
+ }, "zero_or_one_neo"),
645
+ one_or_more_neo: /* @__PURE__ */ n((e, t, n) => {
646
+ let { themeVariables: r } = i(), { strokeWidth: a } = r;
647
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width", `${a}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width", `${a}`);
648
+ }, "one_or_more_neo"),
649
+ zero_or_more_neo: /* @__PURE__ */ n((e, t, n) => {
650
+ let { themeVariables: r } = i(), { strokeWidth: a, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
651
+ s.append("circle").attr("fill", o ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${a}`), s.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${a}`);
652
+ let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
653
+ c.append("circle").attr("fill", o ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${a}`), c.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${a}`);
654
+ }, "zero_or_more_neo"),
655
+ requirement_arrow: /* @__PURE__ */ n((e, t, n) => {
656
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20");
657
+ }, "requirement_arrow"),
658
+ requirement_contains: /* @__PURE__ */ n((e, t, n) => {
659
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
660
+ r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
661
+ }, "requirement_contains"),
662
+ requirement_arrow_neo: /* @__PURE__ */ n((e, t, n) => {
663
+ let { themeVariables: r } = i(), { strokeWidth: a } = r;
664
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("stroke-width", `${a}`).attr("viewBox", "0 0 25 20").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin", "miter");
665
+ }, "requirement_arrow_neo"),
666
+ requirement_contains_neo: /* @__PURE__ */ n((e, t, n) => {
667
+ let { themeVariables: r } = i(), { strokeWidth: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
668
+ o.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), o.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), o.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), o.selectAll("*").attr("stroke-width", `${a}`);
669
+ }, "requirement_contains_neo")
670
+ }, ce = Z;
671
+ //#endregion
672
+ export { z as a, V as c, q as i, F as l, P as n, D as o, L as r, ce as s, I as t };