@jackuait/blok 0.9.0 → 0.10.0-beta.10

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 (492) hide show
  1. package/codemod/migrate-editorjs-to-blok.js +50 -2
  2. package/codemod/test.js +39 -6
  3. package/dist/blok.mjs +3 -3
  4. package/dist/chunks/_basePickBy-DISiGhsr.mjs +410 -0
  5. package/dist/chunks/_baseUniq-gAuHRtRF.mjs +1045 -0
  6. package/dist/chunks/_getTag-Aj56Wgor.mjs +26 -0
  7. package/dist/chunks/arc-D-pL2Ftf.mjs +80 -0
  8. package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +3 -0
  9. package/dist/chunks/architectureDiagram-Q4EWVU46-DS7mqjL2.mjs +4066 -0
  10. package/dist/chunks/array-BsrkCVSZ.mjs +6 -0
  11. package/dist/chunks/blockDiagram-DXYQGD6D-BTtcn4NG.mjs +3259 -0
  12. package/dist/chunks/{blok-RJ3hyzDH.mjs → blok-Bg3-zpSu.mjs} +2192 -2156
  13. package/dist/chunks/c-C6JXJf5K.mjs +5 -0
  14. package/dist/chunks/c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs +2956 -0
  15. package/dist/chunks/ccount-C9Y7nqDe.mjs +10 -0
  16. package/dist/chunks/channel-Cln-eWE0.mjs +5 -0
  17. package/dist/chunks/chunk-2KRD3SAO-DkM7qh-k.mjs +20 -0
  18. package/dist/chunks/chunk-336JU56O-B17AtzlK.mjs +49 -0
  19. package/dist/chunks/chunk-426QAEUC-D6UAVUog.mjs +13 -0
  20. package/dist/chunks/chunk-4BX2VUAB-CgIkjF7Z.mjs +19 -0
  21. package/dist/chunks/chunk-4TB4RGXK-BUP4eON3.mjs +3250 -0
  22. package/dist/chunks/chunk-55IACEB6-zZ-IgaSt.mjs +8 -0
  23. package/dist/chunks/chunk-5FUZZQ4R-DsZnJYxM.mjs +3786 -0
  24. package/dist/chunks/chunk-5PVQY5BW-CORl9dnu.mjs +1692 -0
  25. package/dist/chunks/chunk-67CJDMHE-m0UKdcSH.mjs +20 -0
  26. package/dist/chunks/chunk-7N4EOEYR-DKNajFZd.mjs +29 -0
  27. package/dist/chunks/chunk-AA7GKIK3-BeLhNzKa.mjs +24 -0
  28. package/dist/chunks/chunk-BSJP7CBP-CJExmx8a.mjs +83 -0
  29. package/dist/chunks/chunk-CIAEETIT-CTikoJ19.mjs +20 -0
  30. package/dist/chunks/chunk-D6kmoKXy.mjs +20 -0
  31. package/dist/chunks/chunk-EDXVE4YY-DjInnnwb.mjs +26 -0
  32. package/dist/chunks/chunk-ENJZ2VHE-CIl5FRDA.mjs +566 -0
  33. package/dist/chunks/chunk-FMBD7UC4-DjV0W7UE.mjs +5 -0
  34. package/dist/chunks/chunk-FOC6F5B3-LmHCCWYY.mjs +20 -0
  35. package/dist/chunks/chunk-ICPOFSXX-BHZIN46A.mjs +3290 -0
  36. package/dist/chunks/chunk-K5T4RW27-BPZ6fFnW.mjs +16370 -0
  37. package/dist/chunks/chunk-KGLVRYIC-S1OQdW76.mjs +20 -0
  38. package/dist/chunks/chunk-LIHQZDEY-CjtyJlI6.mjs +55 -0
  39. package/dist/chunks/chunk-ORNJ4GCN-CdO0hAge.mjs +25 -0
  40. package/dist/chunks/chunk-OYMX7WX6-ApX8eV4o.mjs +2038 -0
  41. package/dist/chunks/chunk-QZHKN3VN-BGFuA6-k.mjs +12 -0
  42. package/dist/chunks/chunk-U2HBQHQK-B88ZUOTL.mjs +1875 -0
  43. package/dist/chunks/chunk-X2U36JSP-1VS5TyCr.mjs +68 -0
  44. package/dist/chunks/chunk-XPW4576I-BMupdrvo.mjs +1146 -0
  45. package/dist/chunks/chunk-YZCP3GAM-BQ7eEsm2.mjs +60 -0
  46. package/dist/chunks/chunk-ZZ45TVLE-D1xks9zd.mjs +33 -0
  47. package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +30 -0
  48. package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +30 -0
  49. package/dist/chunks/clone-Ckjt1LtE.mjs +8 -0
  50. package/dist/chunks/{constants-A3iVmQL8.mjs → constants-D7zjGD5W.mjs} +529 -530
  51. package/dist/chunks/core-Bm6DWt7D.mjs +4501 -0
  52. package/dist/chunks/cose-bilkent-S5V4N54A-Bpcs2jA_.mjs +2246 -0
  53. package/dist/chunks/cpp-BdjvAny0.mjs +16 -0
  54. package/dist/chunks/csharp-YHxeHpeH.mjs +3 -0
  55. package/dist/chunks/css-DdLevFaX.mjs +3 -0
  56. package/dist/chunks/cytoscape.esm-BvD8wo00.mjs +18108 -0
  57. package/dist/chunks/dagre-CGNbYTKq.mjs +1536 -0
  58. package/dist/chunks/dagre-KV5264BT-DUD9ikgN.mjs +298 -0
  59. package/dist/chunks/dart-DrPWqfcC.mjs +3 -0
  60. package/dist/chunks/default-qigT1Xpq.mjs +4 -0
  61. package/dist/chunks/defaultLocale-ChuSeAxU.mjs +201 -0
  62. package/dist/chunks/diagram-5BDNPKRD-CZGfTYEe.mjs +112 -0
  63. package/dist/chunks/diagram-G4DWMVQ6-CuS0-h95.mjs +546 -0
  64. package/dist/chunks/diagram-MMDJMWI5-C-AEApYz.mjs +234 -0
  65. package/dist/chunks/diagram-TYMM5635-CiwAJVMq.mjs +144 -0
  66. package/dist/chunks/dist-Ctq-pyfb.mjs +59 -0
  67. package/dist/chunks/dockerfile-C68ALcaN.mjs +3 -0
  68. package/dist/chunks/engine-javascript-CJpnSvzf.mjs +2373 -0
  69. package/dist/chunks/erDiagram-SMLLAGMA-DeH5yck2.mjs +1712 -0
  70. package/dist/chunks/flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs +4175 -0
  71. package/dist/chunks/ganttDiagram-T4ZO3ILL-K-divBg_.mjs +3083 -0
  72. package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +3 -0
  73. package/dist/chunks/gitGraphDiagram-UUTBAWPF-UytPZv72.mjs +792 -0
  74. package/dist/chunks/go-Fm5N96DN.mjs +3 -0
  75. package/dist/chunks/graphlib-Cye9EPNq.mjs +223 -0
  76. package/dist/chunks/graphql-BSnqmqgO.mjs +11 -0
  77. package/dist/chunks/html-BLNeZvnp.mjs +10 -0
  78. package/dist/chunks/{i18next-Ch0gVA3V.mjs → i18next-CXx5niYF.mjs} +1 -1
  79. package/dist/chunks/{i18next-loader-dH3UPF7S.mjs → i18next-loader-CwsYu0n6.mjs} +2 -2
  80. package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +3 -0
  81. package/dist/chunks/infoDiagram-42DDH7IO-DuYnDbF3.mjs +29 -0
  82. package/dist/chunks/init-C6T-mugb.mjs +15 -0
  83. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs +719 -0
  84. package/dist/chunks/java-83DWBpzu.mjs +5 -0
  85. package/dist/chunks/javascript-CBgeF1Xx.mjs +3 -0
  86. package/dist/chunks/journeyDiagram-VCZTEJTY-CD25C4_n.mjs +885 -0
  87. package/dist/chunks/json-BI17y-1H.mjs +3 -0
  88. package/dist/chunks/kanban-definition-6JOO6SKY-CTCT6N_p.mjs +980 -0
  89. package/dist/chunks/katex-CmTPfM0f.mjs +22026 -0
  90. package/dist/chunks/kotlin-DjnvsrfO.mjs +3 -0
  91. package/dist/chunks/latex-24n3TcOR.mjs +5 -0
  92. package/dist/chunks/{lightweight-i18n-1rbaxIZW.mjs → lightweight-i18n-Cvv8CWh4.mjs} +69 -2
  93. package/dist/chunks/line-Dct5pMmw.mjs +34 -0
  94. package/dist/chunks/linear-BRCpMvtr.mjs +289 -0
  95. package/dist/chunks/lua-DV0fuZWx.mjs +5 -0
  96. package/dist/chunks/markdown-BqQYT45f.mjs +3 -0
  97. package/dist/chunks/mdast-util-math-BlK2Zu-1.mjs +151 -0
  98. package/dist/chunks/mermaid-parser.core-CA3DKkuk.mjs +57 -0
  99. package/dist/chunks/mermaid-vF0cEnZ0.mjs +3 -0
  100. package/dist/chunks/mermaid.core-CA8nc1sZ.mjs +989 -0
  101. package/dist/{messages-DaOnbI6d.mjs → chunks/messages-8IHf7ZP3.mjs} +68 -1
  102. package/dist/chunks/{messages-C9aKfCro.mjs → messages-A_MkXDlG.mjs} +68 -1
  103. package/dist/{messages-BLEVLZve.mjs → chunks/messages-B0vPBsWq.mjs} +68 -1
  104. package/dist/chunks/{messages-C0hQPZmh2.mjs → messages-B2N4fUi72.mjs} +68 -1
  105. package/dist/{messages-HNAtlVax.mjs → chunks/messages-B4UMuyjT.mjs} +73 -6
  106. package/dist/chunks/{messages-DRUkmDVZ.mjs → messages-B9kmbUWV.mjs} +68 -1
  107. package/dist/{messages-Dbsx9m5q2.mjs → chunks/messages-BA8Iv99Y2.mjs} +68 -1
  108. package/dist/chunks/{messages-Da-SOTFW.mjs → messages-BAsb5CgZ.mjs} +68 -1
  109. package/dist/{messages-D1P0QGLz2.mjs → chunks/messages-BDZA10kl2.mjs} +68 -1
  110. package/dist/chunks/{messages-ComLU2T32.mjs → messages-BE6lHKwf.mjs} +68 -1
  111. package/dist/chunks/{messages-gaxTO-87.mjs → messages-BQYvBqm2.mjs} +68 -1
  112. package/dist/chunks/{messages-BwKs-9DF.mjs → messages-BSghd0ez.mjs} +68 -1
  113. package/dist/{messages-BPRR6TMf.mjs → chunks/messages-BUVhHx0q2.mjs} +68 -1
  114. package/dist/{messages-B7jZvo-m.mjs → chunks/messages-BVjoM7P0.mjs} +68 -1
  115. package/dist/{messages-C-4z1-Dh.mjs → chunks/messages-BXM80fdr2.mjs} +68 -1
  116. package/dist/{messages-Bm0nvUuj2.mjs → chunks/messages-BYlSMRkd.mjs} +68 -1
  117. package/dist/chunks/{messages-DLPrj3Dh.mjs → messages-BYxLFj7y.mjs} +68 -1
  118. package/dist/{messages-BRcLIBCd2.mjs → chunks/messages-BeFqtIrc2.mjs} +68 -1
  119. package/dist/{messages-zHkURG6V2.mjs → chunks/messages-Bfnq1xv4.mjs} +68 -1
  120. package/dist/chunks/{messages-Z762-GLL.mjs → messages-BhzzNkN-.mjs} +68 -1
  121. package/dist/chunks/{messages-COJ0CbVV2.mjs → messages-BjadX8jR2.mjs} +68 -1
  122. package/dist/{messages-B2ZwD4n9.mjs → chunks/messages-Bp8qin1R.mjs} +68 -1
  123. package/dist/chunks/{messages-DdEWnfAR.mjs → messages-Bphq_Bt3.mjs} +71 -4
  124. package/dist/{messages-CUDbNJG5.mjs → chunks/messages-Bxvi1ebN.mjs} +68 -1
  125. package/dist/chunks/{messages-B0t2L3bi.mjs → messages-C0HvoMPb.mjs} +68 -1
  126. package/dist/{messages-D6qfWi6H2.mjs → chunks/messages-C3aX3q0H.mjs} +68 -1
  127. package/dist/chunks/{messages-v9NkxRcL.mjs → messages-C6Mpiacw.mjs} +68 -1
  128. package/dist/chunks/{messages-CqZ9vFyx.mjs → messages-C7VGpihw.mjs} +69 -2
  129. package/dist/chunks/{messages-Yj4Q1_uX2.mjs → messages-CKBhDGI3.mjs} +69 -2
  130. package/dist/chunks/{messages-DxtnwNPo.mjs → messages-COO5xmcA.mjs} +68 -1
  131. package/dist/{messages-CZTcgUzd.mjs → chunks/messages-CSJ_zb3a2.mjs} +68 -1
  132. package/dist/{messages-A8aZS7d_2.mjs → chunks/messages-CSL-6xfb2.mjs} +68 -1
  133. package/dist/{messages-CxruHsuD2.mjs → chunks/messages-CVdpweyf2.mjs} +69 -2
  134. package/dist/{messages-D2Mf9z2D.mjs → chunks/messages-Cdf0W9H02.mjs} +68 -1
  135. package/dist/chunks/{messages-DAbCNake2.mjs → messages-Ck81cQkn2.mjs} +68 -1
  136. package/dist/chunks/{messages-Dyku8Cut.mjs → messages-Cmf6NhSC.mjs} +68 -1
  137. package/dist/chunks/{messages-DQ6bFum9.mjs → messages-Cs81Z_Bh.mjs} +68 -1
  138. package/dist/chunks/{messages-cegxHurd2.mjs → messages-Cu-Wevxs2.mjs} +68 -1
  139. package/dist/{messages-D2HwpoUE.mjs → chunks/messages-D3zojZ94.mjs} +69 -2
  140. package/dist/{messages-BfTBVFd9.mjs → chunks/messages-D55HRx5O2.mjs} +68 -1
  141. package/dist/chunks/{messages-Dl03jd4b2.mjs → messages-D9N2MvQx2.mjs} +68 -1
  142. package/dist/{messages-DfXh-i9o.mjs → chunks/messages-DG-4DPmP.mjs} +68 -1
  143. package/dist/chunks/{messages-DmJf9laH2.mjs → messages-DGL1ySqb2.mjs} +68 -1
  144. package/dist/chunks/{messages-DfU4yvkL.mjs → messages-DJoNVjqP.mjs} +68 -1
  145. package/dist/{messages-Bsd4ruEY.mjs → chunks/messages-DMVXnAYj.mjs} +70 -3
  146. package/dist/{messages-3WhPEFd7.mjs → chunks/messages-DOuS1Qge.mjs} +68 -1
  147. package/dist/chunks/{messages-B1kDfIN82.mjs → messages-DWu1r4gc2.mjs} +68 -1
  148. package/dist/{messages-Dtih3ffa2.mjs → chunks/messages-DlLXpgWM2.mjs} +68 -1
  149. package/dist/chunks/{messages-DKNULJpc.mjs → messages-DlonA3wa.mjs} +69 -2
  150. package/dist/{messages-C5pBfa_W.mjs → chunks/messages-Dr0Ekmbz.mjs} +81 -14
  151. package/dist/{messages-Du62vI49.mjs → chunks/messages-DzTk8bJ5.mjs} +68 -1
  152. package/dist/{messages-DNAp0U4l2.mjs → chunks/messages-FWfsxpBz.mjs} +68 -1
  153. package/dist/{messages-B2YeJw8s2.mjs → chunks/messages-G416eyjY.mjs} +68 -1
  154. package/dist/chunks/{messages-C5-aaU2b.mjs → messages-Je5YvxiY.mjs} +68 -1
  155. package/dist/chunks/{messages-DHHZUf_H2.mjs → messages-JyvWu4rf2.mjs} +68 -1
  156. package/dist/chunks/{messages-D_6vPBzT.mjs → messages-KdawW5Na.mjs} +68 -1
  157. package/dist/chunks/{messages-DnuhgHG0.mjs → messages-MxpWO1db.mjs} +68 -1
  158. package/dist/{messages-DT4rHATO2.mjs → chunks/messages-NEqrrYvE2.mjs} +68 -1
  159. package/dist/chunks/{messages-DeSSxLsh.mjs → messages-RInp1ytX.mjs} +68 -1
  160. package/dist/{messages-DfEPVRdJ.mjs → chunks/messages-TRUuyiFB.mjs} +68 -1
  161. package/dist/chunks/{messages--eH7tTJV2.mjs → messages-aZcy0JQq2.mjs} +68 -1
  162. package/dist/{messages-O6z1uabG.mjs → chunks/messages-iS34FHFB.mjs} +68 -1
  163. package/dist/{messages-BE0DjTEC.mjs → chunks/messages-ihCjSFJI2.mjs} +68 -1
  164. package/dist/chunks/{messages-_5Pg5fKy2.mjs → messages-jfVpL9c-2.mjs} +68 -1
  165. package/dist/chunks/{messages-CaRSYuhO.mjs → messages-p1mbe__S.mjs} +68 -1
  166. package/dist/chunks/{messages-BGssMBWM2.mjs → messages-rCd0Rrw6.mjs} +69 -2
  167. package/dist/{messages-COgvIEeW.mjs → chunks/messages-xuqyb6Ff2.mjs} +68 -1
  168. package/dist/chunks/micromark-extension-math-BbkUb36G.mjs +169 -0
  169. package/dist/chunks/micromark-factory-space-y4SDWQKm.mjs +36 -0
  170. package/dist/chunks/mindmap-definition-QFDTVHPH-hNnyBkEP.mjs +1013 -0
  171. package/dist/chunks/{notifier-Butv4Dvo.mjs → notifier-CuvTt9pe.mjs} +1 -1
  172. package/dist/chunks/objectWithoutProperties-D0XxKB4n.mjs +23 -0
  173. package/dist/chunks/one-light-DmNO_Y4X.mjs +4 -0
  174. package/dist/chunks/ordinal-B-kolV-i.mjs +65 -0
  175. package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +3 -0
  176. package/dist/chunks/path-rIMjg_tH.mjs +85 -0
  177. package/dist/chunks/php-DmXKyPwJ.mjs +18 -0
  178. package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +3 -0
  179. package/dist/chunks/pieDiagram-DEJITSTG-Gw-fsc6U.mjs +179 -0
  180. package/dist/chunks/python-DfwfY9t5.mjs +3 -0
  181. package/dist/chunks/quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs +1960 -0
  182. package/dist/chunks/r-BD2D7qEW.mjs +5 -0
  183. package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +3 -0
  184. package/dist/chunks/requirementDiagram-MS252O5E-DjWKB42c.mjs +2224 -0
  185. package/dist/chunks/rough.esm-cmMIcj7N.mjs +1353 -0
  186. package/dist/chunks/ruby-DdOo03Kg.mjs +33 -0
  187. package/dist/chunks/rust-DEDueB5R.mjs +3 -0
  188. package/dist/chunks/sankeyDiagram-XADWPNL6-BIN2evSB.mjs +909 -0
  189. package/dist/chunks/scala-CsjqvxE4.mjs +3 -0
  190. package/dist/chunks/sequenceDiagram-FGHM5R23-CQz2lMoS.mjs +4181 -0
  191. package/dist/chunks/shellscript-Bh5zEpnQ.mjs +3 -0
  192. package/dist/chunks/sql-D9CrOi1i.mjs +3 -0
  193. package/dist/chunks/src-DVJl6f6s.mjs +2149 -0
  194. package/dist/chunks/stateDiagram-FHFEXIEX-BIBFsF65.mjs +218 -0
  195. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +28 -0
  196. package/dist/chunks/swift-Dpyt0s2c.mjs +3 -0
  197. package/dist/chunks/timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs +1084 -0
  198. package/dist/chunks/{tools-nT6zA9QL.mjs → tools-CrRhWn8L.mjs} +3043 -1303
  199. package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +3 -0
  200. package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +3 -0
  201. package/dist/chunks/typescript-DO5cd4m8.mjs +5 -0
  202. package/dist/chunks/vennDiagram-DHZGUBPP-B0DmLQqe.mjs +1876 -0
  203. package/dist/chunks/vitesse-dark-CcorSKT2.mjs +4 -0
  204. package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +3 -0
  205. package/dist/chunks/wardleyDiagram-NUSXRM2D-CzoKesUw.mjs +594 -0
  206. package/dist/chunks/xml-g8kXXALs.mjs +5 -0
  207. package/dist/chunks/xychartDiagram-5P7HB3ND-CixwR8r2.mjs +2017 -0
  208. package/dist/chunks/yaml-CrNNZyLb.mjs +3 -0
  209. package/dist/cli.mjs +1 -1
  210. package/dist/full.mjs +14 -14
  211. package/dist/locales.mjs +135 -68
  212. package/dist/markdown.mjs +3954 -0
  213. package/dist/{messages-D_CUdqU12.mjs → messages-5jvKxQNu2.mjs} +68 -1
  214. package/dist/{chunks/messages-CFfpHyTU.mjs → messages-7QD-X6XT2.mjs} +68 -1
  215. package/dist/{messages-CdX1odk_2.mjs → messages-96iaAUds2.mjs} +68 -1
  216. package/dist/{messages-C8ca-jEa.mjs → messages-B19o-Teb.mjs} +69 -2
  217. package/dist/{messages-I03yFhup.mjs → messages-B1ZUQagA.mjs} +68 -1
  218. package/dist/{chunks/messages-BSw88lIo2.mjs → messages-B7ieAJBd2.mjs} +68 -1
  219. package/dist/{messages-sNSXCkeB.mjs → messages-BECMxmfX.mjs} +68 -1
  220. package/dist/{messages-DgGZsxBB.mjs → messages-BIHc0KHY.mjs} +68 -1
  221. package/dist/{messages-yZj20Fvf.mjs → messages-BIoeoik5.mjs} +68 -1
  222. package/dist/{chunks/messages-D8JFu42v.mjs → messages-BJeGJksD.mjs} +68 -1
  223. package/dist/{messages-BSLErTnW2.mjs → messages-BRZX964b2.mjs} +68 -1
  224. package/dist/{chunks/messages-BW8arxf72.mjs → messages-BTQPpoM42.mjs} +68 -1
  225. package/dist/{messages-C52AiyVV.mjs → messages-BYNcD6uR.mjs} +68 -1
  226. package/dist/{messages-BxJv0qBn2.mjs → messages-BYmmMDrN2.mjs} +68 -1
  227. package/dist/{messages-CoCy2JIP.mjs → messages-BbYq1pk-.mjs} +68 -1
  228. package/dist/{messages-Cnz_SHE32.mjs → messages-BiUGXvYr2.mjs} +68 -1
  229. package/dist/{chunks/messages-Dl6SVT1Z.mjs → messages-BiiongNz2.mjs} +68 -1
  230. package/dist/{chunks/messages-C912bk5I.mjs → messages-Bm0Feca1.mjs} +69 -2
  231. package/dist/{chunks/messages-CTuCPqpJ.mjs → messages-BmAn22OX.mjs} +68 -1
  232. package/dist/{messages-DdiPWkV8.mjs → messages-Bq3F2Tp_.mjs} +68 -1
  233. package/dist/{chunks/messages-DJxXZi1D2.mjs → messages-BsycN_JI2.mjs} +68 -1
  234. package/dist/{chunks/messages-OdEuBvgf.mjs → messages-BwHs4cm1.mjs} +70 -3
  235. package/dist/{chunks/messages-C4ZAJzBh.mjs → messages-CJTy6JZt.mjs} +68 -1
  236. package/dist/{chunks/messages-D2OZ9dbO.mjs → messages-CR_L_UtK.mjs} +68 -1
  237. package/dist/{messages-ypuLZyw12.mjs → messages-CSUHBs4c2.mjs} +68 -1
  238. package/dist/{chunks/messages-BkES2MDr2.mjs → messages-CWIXvnDf2.mjs} +68 -1
  239. package/dist/{messages-Cpeko5kB.mjs → messages-CcF4y-E4.mjs} +68 -1
  240. package/dist/{messages-BmnC-s4X.mjs → messages-Ce6KVEbT.mjs} +68 -1
  241. package/dist/{messages-DTNfG4ZH.mjs → messages-Ci0KqX-J.mjs} +71 -4
  242. package/dist/{chunks/messages-CGh56r-H2.mjs → messages-CjbnogEC.mjs} +68 -1
  243. package/dist/{messages-B3jq5Hpa.mjs → messages-CmB406HW.mjs} +69 -2
  244. package/dist/{chunks/messages-BsZz1Hnn2.mjs → messages-CqXtJTpU.mjs} +68 -1
  245. package/dist/{messages-DL000FUf2.mjs → messages-D0aw5_0k2.mjs} +68 -1
  246. package/dist/{chunks/messages-Df2RYuup2.mjs → messages-D8FQWulF2.mjs} +68 -1
  247. package/dist/{messages-CxHn7cs2.mjs → messages-DBiVgUs2.mjs} +68 -1
  248. package/dist/{chunks/messages-Dsapm4K9.mjs → messages-DIJlIqlQ2.mjs} +68 -1
  249. package/dist/{chunks/messages-517llQmh.mjs → messages-DLX_iBDJ.mjs} +68 -1
  250. package/dist/{chunks/messages-BG8Nq35G.mjs → messages-DLlc9QPw.mjs} +68 -1
  251. package/dist/{messages-cokJPuUp2.mjs → messages-DMr62KiO2.mjs} +68 -1
  252. package/dist/{chunks/messages-Dkp-Eyu02.mjs → messages-DPA-mMWC2.mjs} +68 -1
  253. package/dist/{chunks/messages-7uCUVFea.mjs → messages-DTh9a8mR.mjs} +68 -1
  254. package/dist/{messages-VBFioL2M.mjs → messages-DY4IqlhY.mjs} +68 -1
  255. package/dist/{chunks/messages-C4X0xP3h.mjs → messages-DYTTu0O12.mjs} +68 -1
  256. package/dist/{messages-diSPQ2Da2.mjs → messages-DbySKTKt2.mjs} +69 -2
  257. package/dist/{chunks/messages-BGE43_6M.mjs → messages-Ddnj2iTG2.mjs} +68 -1
  258. package/dist/{chunks/messages-BtUqUzMG2.mjs → messages-DkLU_rWm.mjs} +68 -1
  259. package/dist/{messages-DSX2HaeN2.mjs → messages-Dl3Sv6Rq2.mjs} +68 -1
  260. package/dist/{chunks/messages-BDvpl6Ox.mjs → messages-Dl5Y2-Ia.mjs} +81 -14
  261. package/dist/{chunks/messages-C7plNvNE2.mjs → messages-DnG0ef8t2.mjs} +69 -2
  262. package/dist/{chunks/messages-qS8tM3Dk.mjs → messages-DnGJD4TL.mjs} +68 -1
  263. package/dist/{messages-Ct468oX22.mjs → messages-Dnp9N6RU2.mjs} +68 -1
  264. package/dist/{chunks/messages-CjIA--kO.mjs → messages-Dvn35ksS.mjs} +68 -1
  265. package/dist/{messages-BRxNqmJ8.mjs → messages-Dw__BcTj.mjs} +68 -1
  266. package/dist/{chunks/messages-0zhE8A9X.mjs → messages-Dy-Y_nEI.mjs} +68 -1
  267. package/dist/{chunks/messages-CCH4OETw2.mjs → messages-E_ZuzGDt.mjs} +68 -1
  268. package/dist/{chunks/messages-DZzoT0T_.mjs → messages-F2xRoY1w.mjs} +68 -1
  269. package/dist/{chunks/messages-zGdqNZbH.mjs → messages-Smt4GBbj.mjs} +73 -6
  270. package/dist/{messages-CvIxHHp92.mjs → messages-aMXpHt5X2.mjs} +68 -1
  271. package/dist/{messages-C8JVJUp12.mjs → messages-aWZH50vu2.mjs} +68 -1
  272. package/dist/{messages-Phrqr7a6.mjs → messages-dv19AkyJ.mjs} +68 -1
  273. package/dist/{chunks/messages-DngM4hda2.mjs → messages-hWwSRF-2.mjs} +68 -1
  274. package/dist/{messages-DpGo_Da5.mjs → messages-j7o5rT9s.mjs} +68 -1
  275. package/dist/{messages-C6WJx6Z0.mjs → messages-nUVjeh7K.mjs} +68 -1
  276. package/dist/{messages-CbVilNPE.mjs → messages-nlhESX9t.mjs} +68 -1
  277. package/dist/{messages-C6o0FVy02.mjs → messages-rk-A1Wa42.mjs} +69 -2
  278. package/dist/{messages-D4mCIODv.mjs → messages-xh2eOLvs.mjs} +68 -1
  279. package/dist/{chunks/messages-Ct9UUOrl2.mjs → messages-ynAe7ewZ.mjs} +68 -1
  280. package/dist/react.mjs +26 -25
  281. package/dist/tools.mjs +3 -3
  282. package/dist/vendor.LICENSE.txt +5404 -80
  283. package/package.json +16 -1
  284. package/src/components/blocks.ts +26 -1
  285. package/src/components/constants/data-attributes.ts +2 -2
  286. package/src/components/i18n/locales/am/messages.json +68 -1
  287. package/src/components/i18n/locales/ar/messages.json +68 -1
  288. package/src/components/i18n/locales/az/messages.json +68 -1
  289. package/src/components/i18n/locales/bg/messages.json +68 -1
  290. package/src/components/i18n/locales/bn/messages.json +68 -1
  291. package/src/components/i18n/locales/bs/messages.json +69 -2
  292. package/src/components/i18n/locales/cs/messages.json +70 -3
  293. package/src/components/i18n/locales/da/messages.json +71 -4
  294. package/src/components/i18n/locales/de/messages.json +73 -6
  295. package/src/components/i18n/locales/dv/messages.json +68 -1
  296. package/src/components/i18n/locales/el/messages.json +68 -1
  297. package/src/components/i18n/locales/en/messages.json +68 -1
  298. package/src/components/i18n/locales/es/messages.json +68 -1
  299. package/src/components/i18n/locales/et/messages.json +69 -2
  300. package/src/components/i18n/locales/fa/messages.json +68 -1
  301. package/src/components/i18n/locales/fi/messages.json +68 -1
  302. package/src/components/i18n/locales/fil/messages.json +81 -14
  303. package/src/components/i18n/locales/fr/messages.json +68 -1
  304. package/src/components/i18n/locales/gu/messages.json +68 -1
  305. package/src/components/i18n/locales/he/messages.json +68 -1
  306. package/src/components/i18n/locales/hi/messages.json +68 -1
  307. package/src/components/i18n/locales/hr/messages.json +69 -2
  308. package/src/components/i18n/locales/hu/messages.json +68 -1
  309. package/src/components/i18n/locales/hy/messages.json +68 -1
  310. package/src/components/i18n/locales/id/messages.json +68 -1
  311. package/src/components/i18n/locales/it/messages.json +68 -1
  312. package/src/components/i18n/locales/ja/messages.json +68 -1
  313. package/src/components/i18n/locales/ka/messages.json +68 -1
  314. package/src/components/i18n/locales/km/messages.json +68 -1
  315. package/src/components/i18n/locales/kn/messages.json +68 -1
  316. package/src/components/i18n/locales/ko/messages.json +68 -1
  317. package/src/components/i18n/locales/ku/messages.json +68 -1
  318. package/src/components/i18n/locales/lo/messages.json +68 -1
  319. package/src/components/i18n/locales/lt/messages.json +68 -1
  320. package/src/components/i18n/locales/lv/messages.json +68 -1
  321. package/src/components/i18n/locales/mk/messages.json +68 -1
  322. package/src/components/i18n/locales/ml/messages.json +68 -1
  323. package/src/components/i18n/locales/mn/messages.json +68 -1
  324. package/src/components/i18n/locales/mr/messages.json +68 -1
  325. package/src/components/i18n/locales/ms/messages.json +69 -2
  326. package/src/components/i18n/locales/my/messages.json +68 -1
  327. package/src/components/i18n/locales/ne/messages.json +68 -1
  328. package/src/components/i18n/locales/nl/messages.json +68 -1
  329. package/src/components/i18n/locales/no/messages.json +68 -1
  330. package/src/components/i18n/locales/pa/messages.json +68 -1
  331. package/src/components/i18n/locales/pl/messages.json +68 -1
  332. package/src/components/i18n/locales/ps/messages.json +68 -1
  333. package/src/components/i18n/locales/pt/messages.json +68 -1
  334. package/src/components/i18n/locales/ro/messages.json +68 -1
  335. package/src/components/i18n/locales/ru/messages.json +68 -1
  336. package/src/components/i18n/locales/sd/messages.json +68 -1
  337. package/src/components/i18n/locales/si/messages.json +68 -1
  338. package/src/components/i18n/locales/sk/messages.json +69 -2
  339. package/src/components/i18n/locales/sl/messages.json +69 -2
  340. package/src/components/i18n/locales/sq/messages.json +68 -1
  341. package/src/components/i18n/locales/sr/messages.json +68 -1
  342. package/src/components/i18n/locales/sv/messages.json +68 -1
  343. package/src/components/i18n/locales/sw/messages.json +68 -1
  344. package/src/components/i18n/locales/ta/messages.json +68 -1
  345. package/src/components/i18n/locales/te/messages.json +68 -1
  346. package/src/components/i18n/locales/th/messages.json +68 -1
  347. package/src/components/i18n/locales/tr/messages.json +68 -1
  348. package/src/components/i18n/locales/ug/messages.json +68 -1
  349. package/src/components/i18n/locales/uk/messages.json +68 -1
  350. package/src/components/i18n/locales/ur/messages.json +68 -1
  351. package/src/components/i18n/locales/vi/messages.json +68 -1
  352. package/src/components/i18n/locales/yi/messages.json +68 -1
  353. package/src/components/i18n/locales/zh/messages.json +68 -1
  354. package/src/components/icons/index.ts +78 -0
  355. package/src/components/inline-tools/inline-tool-code.ts +399 -0
  356. package/src/components/modules/api/blocks.ts +17 -0
  357. package/src/components/modules/api/ui.ts +0 -3
  358. package/src/components/modules/blockEvents/composers/blockSelectionKeys.ts +20 -3
  359. package/src/components/modules/paste/handlers/html-handler.ts +13 -10
  360. package/src/components/modules/paste/handlers/index.ts +1 -0
  361. package/src/components/modules/paste/index.ts +6 -0
  362. package/src/components/modules/renderer.ts +17 -0
  363. package/src/components/modules/ui.ts +1 -13
  364. package/src/components/ui/toolbox.ts +9 -0
  365. package/src/components/utils/caret/boundaries.ts +15 -4
  366. package/src/components/utils/popover/popover-desktop.ts +11 -0
  367. package/src/markdown/index.ts +63 -0
  368. package/src/markdown/markdown-handler.ts +110 -0
  369. package/src/markdown/mdast-to-blocks.ts +418 -0
  370. package/src/markdown/phrasing-to-html.ts +60 -0
  371. package/src/markdown/types.ts +42 -0
  372. package/src/stories/EditorModes.stories.ts +0 -60
  373. package/src/styles/main.css +57 -2
  374. package/src/tools/callout/constants.ts +2 -1
  375. package/src/tools/callout/emoji-picker/index.ts +41 -2
  376. package/src/tools/callout/index.ts +25 -0
  377. package/src/tools/code/code-keyboard.ts +142 -0
  378. package/src/tools/code/constants.ts +96 -0
  379. package/src/tools/code/dom-builder.ts +181 -0
  380. package/src/tools/code/highlight-applier.ts +229 -0
  381. package/src/tools/code/index.ts +462 -0
  382. package/src/tools/code/katex-loader.ts +50 -0
  383. package/src/tools/code/language-picker.ts +241 -0
  384. package/src/tools/code/mermaid-loader.ts +45 -0
  385. package/src/tools/code/shiki-loader.ts +135 -0
  386. package/src/tools/divider/index.ts +11 -2
  387. package/src/tools/header/index.ts +2 -0
  388. package/src/tools/index.ts +6 -0
  389. package/src/tools/list/block-operations.ts +3 -1
  390. package/src/tools/list/depth-validator.ts +4 -7
  391. package/src/tools/list/dom-builder.ts +5 -3
  392. package/src/tools/list/index.ts +21 -3
  393. package/src/tools/list/list-helpers.ts +9 -2
  394. package/src/tools/list/list-keyboard.ts +56 -14
  395. package/src/tools/list/list-lifecycle.ts +3 -1
  396. package/src/tools/list/marker-calculator.ts +37 -0
  397. package/src/tools/list/ordered-marker-manager.ts +4 -2
  398. package/src/tools/list/style-config.ts +3 -0
  399. package/src/tools/paragraph/index.ts +1 -0
  400. package/src/tools/quote/index.ts +229 -0
  401. package/src/tools/table/core/table-commands.ts +16 -0
  402. package/src/tools/table/core/table-controller.ts +29 -0
  403. package/src/tools/table/core/table-events.ts +17 -0
  404. package/src/tools/table/index.ts +220 -14
  405. package/src/tools/table/table-cell-blocks.ts +51 -6
  406. package/src/tools/table/table-cell-clipboard.ts +7 -2
  407. package/src/tools/table/table-cell-placement-picker.ts +133 -0
  408. package/src/tools/table/table-cell-selection.ts +174 -19
  409. package/src/tools/table/table-core.ts +321 -113
  410. package/src/tools/table/table-map.ts +279 -0
  411. package/src/tools/table/table-model.ts +901 -1
  412. package/src/tools/table/table-operations.ts +87 -44
  413. package/src/tools/table/table-resize.ts +19 -17
  414. package/src/tools/table/table-row-col-drag.ts +24 -10
  415. package/src/tools/table/types.ts +24 -2
  416. package/src/tools/toggle/index.ts +1 -0
  417. package/types/configs/blok-config.d.ts +7 -0
  418. package/types/data-attributes.d.ts +0 -1
  419. package/types/markdown.d.ts +2 -0
  420. package/types/tools/callout.d.ts +16 -0
  421. package/types/tools/code.d.ts +13 -0
  422. package/types/tools/quote.d.ts +13 -0
  423. package/types/tools/tool-settings.d.ts +7 -0
  424. package/types/tools-entry.d.ts +7 -0
  425. /package/dist/chunks/{am-CHDDMHkd.mjs → am-BxlkYGsI.mjs} +0 -0
  426. /package/dist/chunks/{ar-DoqfNqut.mjs → ar-9vlpr9V8.mjs} +0 -0
  427. /package/dist/chunks/{az-C34P9iEa.mjs → az-ON63W_FP.mjs} +0 -0
  428. /package/dist/chunks/{bg-jroXLY8Y.mjs → bg-CtXWTP5w.mjs} +0 -0
  429. /package/dist/chunks/{bn-BRI-WqxY.mjs → bn-BERvhXM4.mjs} +0 -0
  430. /package/dist/chunks/{bs-CCGUpNHu.mjs → bs-CBg8NVPG.mjs} +0 -0
  431. /package/dist/chunks/{cs-D5qZOGuc.mjs → cs-DeQddxS7.mjs} +0 -0
  432. /package/dist/chunks/{da-DrJ7W37K.mjs → da-DyTo-ec_.mjs} +0 -0
  433. /package/dist/chunks/{de-BW6-kp2c.mjs → de-Cu7545m1.mjs} +0 -0
  434. /package/dist/chunks/{el-C-Vc_Otu.mjs → el-oiubLRBq.mjs} +0 -0
  435. /package/dist/chunks/{es-B6fI5K9i.mjs → es-DZUC6Klv.mjs} +0 -0
  436. /package/dist/chunks/{et-BhVlZ-Yz.mjs → et-CDeklAog.mjs} +0 -0
  437. /package/dist/chunks/{fa-D55Ijdqa.mjs → fa-Cafp7_Li.mjs} +0 -0
  438. /package/dist/chunks/{fi-jNLjhKUQ.mjs → fi-BD_V_aVW.mjs} +0 -0
  439. /package/dist/chunks/{fil-DYd0T5aX.mjs → fil-Crsfbtx4.mjs} +0 -0
  440. /package/dist/chunks/{fr-yxy5xWw_.mjs → fr-BGGc04Zv.mjs} +0 -0
  441. /package/dist/chunks/{gu-CcY_LJe7.mjs → gu-Vg_BgCTp.mjs} +0 -0
  442. /package/dist/chunks/{he-DL9s7wNw.mjs → he-DTY9chlZ.mjs} +0 -0
  443. /package/dist/chunks/{hi-C8eGXgw5.mjs → hi-DChMXk0x.mjs} +0 -0
  444. /package/dist/chunks/{hr-DLpybOhU.mjs → hr-BWVgNU8k.mjs} +0 -0
  445. /package/dist/chunks/{hu-BkT0gT00.mjs → hu-B37awHXA.mjs} +0 -0
  446. /package/dist/chunks/{hy-CVFDCp2S.mjs → hy-DGC_GDHh.mjs} +0 -0
  447. /package/dist/chunks/{id-0P4W9Az0.mjs → id-V7cw6La2.mjs} +0 -0
  448. /package/dist/chunks/{it-mLY6_uoW.mjs → it-DrTGP8Rn.mjs} +0 -0
  449. /package/dist/chunks/{ja-7RkeRNWG.mjs → ja-DS4pbJEG.mjs} +0 -0
  450. /package/dist/chunks/{ka-C7Lx-Qsh.mjs → ka-BueyosRh.mjs} +0 -0
  451. /package/dist/chunks/{km-Q8udaraH.mjs → km-B0K891yW.mjs} +0 -0
  452. /package/dist/chunks/{kn-BiETM-iq.mjs → kn-BQ__skg8.mjs} +0 -0
  453. /package/dist/chunks/{ko-tiB80pF1.mjs → ko-BuPxi_7e.mjs} +0 -0
  454. /package/dist/chunks/{ku-CY-OABkR.mjs → ku-nQjwPRw2.mjs} +0 -0
  455. /package/dist/chunks/{lo-CTBhEnyk.mjs → lo-K5NVFoq1.mjs} +0 -0
  456. /package/dist/chunks/{lt-BHKHEtqK.mjs → lt-D3xD6Eb2.mjs} +0 -0
  457. /package/dist/chunks/{lv-DWxgtfUg.mjs → lv-DH13mzZj.mjs} +0 -0
  458. /package/dist/chunks/{mk-BjookGdx.mjs → mk-Bb48BcDA.mjs} +0 -0
  459. /package/dist/chunks/{ml-L-NnZcp9.mjs → ml-BHPEj1kD.mjs} +0 -0
  460. /package/dist/chunks/{mn-OMWi7Hl_.mjs → mn-BNGzpdI6.mjs} +0 -0
  461. /package/dist/chunks/{mr-B6JPzITo.mjs → mr-D5PgU-cH.mjs} +0 -0
  462. /package/dist/chunks/{ms-CG3S-sPB.mjs → ms-DPkxqKz5.mjs} +0 -0
  463. /package/dist/chunks/{my-BLAmGfhT.mjs → my-DZGcyfxy.mjs} +0 -0
  464. /package/dist/chunks/{native-BPcABu9z.mjs → native-D0cfLXsM.mjs} +0 -0
  465. /package/dist/chunks/{ne-D1JHLfYw.mjs → ne-BU_Wh4Wv.mjs} +0 -0
  466. /package/dist/chunks/{nl-Ca7Q8FnY.mjs → nl-DtAPk1mK.mjs} +0 -0
  467. /package/dist/chunks/{no-Coxcohcz.mjs → no-CdW3n3BY.mjs} +0 -0
  468. /package/dist/chunks/{objectSpread2-CyPxu8-u.mjs → objectSpread2-CWwMYL_U.mjs} +0 -0
  469. /package/dist/chunks/{pa-CCaXqpaI.mjs → pa-BacCHz87.mjs} +0 -0
  470. /package/dist/chunks/{pl-Cl_fAZ84.mjs → pl-8zBJbmhZ.mjs} +0 -0
  471. /package/dist/chunks/{ps-WD5qGAWy.mjs → ps-c6nGXD-W.mjs} +0 -0
  472. /package/dist/chunks/{pt-C4zvLfvq.mjs → pt-B5yR8Qhr.mjs} +0 -0
  473. /package/dist/chunks/{ro-DbefHcmM.mjs → ro-Nscylsqb.mjs} +0 -0
  474. /package/dist/chunks/{ru-uU1J14jd.mjs → ru-DxERQkVJ.mjs} +0 -0
  475. /package/dist/chunks/{sd-DKu368Ip.mjs → sd-5z-QY3q9.mjs} +0 -0
  476. /package/dist/chunks/{si-BsJCiPkZ.mjs → si-DTL0mzrx.mjs} +0 -0
  477. /package/dist/chunks/{sk-CD-a3SN6.mjs → sk-DrGczTvY.mjs} +0 -0
  478. /package/dist/chunks/{sl-CXhrPJe_.mjs → sl-D8nJjig4.mjs} +0 -0
  479. /package/dist/chunks/{sq-CTctCoFQ.mjs → sq-C74Hm3YL.mjs} +0 -0
  480. /package/dist/chunks/{sr-BZkhBwXj.mjs → sr-DAwB05Gj.mjs} +0 -0
  481. /package/dist/chunks/{sv-NmRZb_xi.mjs → sv-BkHBsN4y.mjs} +0 -0
  482. /package/dist/chunks/{sw-Be5ik3H6.mjs → sw-BBQLTq_z.mjs} +0 -0
  483. /package/dist/chunks/{ta-DsXh6neL.mjs → ta-DRRzdKky.mjs} +0 -0
  484. /package/dist/chunks/{te-CwpCbM8M.mjs → te-CedXLsKM.mjs} +0 -0
  485. /package/dist/chunks/{th-CcZ15OLk.mjs → th-DDOlGA0W.mjs} +0 -0
  486. /package/dist/chunks/{tr-q3bTgvhW.mjs → tr-ClgvwOlL.mjs} +0 -0
  487. /package/dist/chunks/{tw-DmW6-pCY.mjs → tw-CqxBf-1Y.mjs} +0 -0
  488. /package/dist/chunks/{ug-919EhLsL.mjs → ug-bXxwiinM.mjs} +0 -0
  489. /package/dist/chunks/{uk-aNMEzd0Y.mjs → uk-Dp46o_VT.mjs} +0 -0
  490. /package/dist/chunks/{ur-BwQI77sh.mjs → ur-MfEEhdFq.mjs} +0 -0
  491. /package/dist/chunks/{vi-Dxq806-F.mjs → vi-bt-3LPGO.mjs} +0 -0
  492. /package/dist/chunks/{zh-BcHuy1Ti.mjs → zh-Dgyb5Ly8.mjs} +0 -0
@@ -0,0 +1,4 @@
1
+ //#region node_modules/@shikijs/themes/dist/vitesse-dark.mjs
2
+ var e = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.activeBorder\":\"#4d9375\",\"activityBar.background\":\"#121212\",\"activityBar.border\":\"#191919\",\"activityBar.foreground\":\"#dbd7caee\",\"activityBar.inactiveForeground\":\"#dedcd550\",\"activityBarBadge.background\":\"#bfbaaa\",\"activityBarBadge.foreground\":\"#121212\",\"badge.background\":\"#dedcd590\",\"badge.foreground\":\"#121212\",\"breadcrumb.activeSelectionForeground\":\"#eeeeee18\",\"breadcrumb.background\":\"#181818\",\"breadcrumb.focusForeground\":\"#dbd7caee\",\"breadcrumb.foreground\":\"#959da5\",\"breadcrumbPicker.background\":\"#121212\",\"button.background\":\"#4d9375\",\"button.foreground\":\"#121212\",\"button.hoverBackground\":\"#4d9375\",\"checkbox.background\":\"#181818\",\"checkbox.border\":\"#2f363d\",\"debugToolBar.background\":\"#121212\",\"descriptionForeground\":\"#dedcd590\",\"diffEditor.insertedTextBackground\":\"#4d937550\",\"diffEditor.removedTextBackground\":\"#ab595950\",\"dropdown.background\":\"#121212\",\"dropdown.border\":\"#191919\",\"dropdown.foreground\":\"#dbd7caee\",\"dropdown.listBackground\":\"#181818\",\"editor.background\":\"#121212\",\"editor.findMatchBackground\":\"#e6cc7722\",\"editor.findMatchHighlightBackground\":\"#e6cc7744\",\"editor.focusedStackFrameHighlightBackground\":\"#b808\",\"editor.foldBackground\":\"#eeeeee10\",\"editor.foreground\":\"#dbd7caee\",\"editor.inactiveSelectionBackground\":\"#eeeeee10\",\"editor.lineHighlightBackground\":\"#181818\",\"editor.selectionBackground\":\"#eeeeee18\",\"editor.selectionHighlightBackground\":\"#eeeeee10\",\"editor.stackFrameHighlightBackground\":\"#a707\",\"editor.wordHighlightBackground\":\"#1c6b4805\",\"editor.wordHighlightStrongBackground\":\"#1c6b4810\",\"editorBracketHighlight.foreground1\":\"#5eaab5\",\"editorBracketHighlight.foreground2\":\"#4d9375\",\"editorBracketHighlight.foreground3\":\"#d4976c\",\"editorBracketHighlight.foreground4\":\"#d9739f\",\"editorBracketHighlight.foreground5\":\"#e6cc77\",\"editorBracketHighlight.foreground6\":\"#6394bf\",\"editorBracketMatch.background\":\"#4d937520\",\"editorError.foreground\":\"#cb7676\",\"editorGroup.border\":\"#191919\",\"editorGroupHeader.tabsBackground\":\"#121212\",\"editorGroupHeader.tabsBorder\":\"#191919\",\"editorGutter.addedBackground\":\"#4d9375\",\"editorGutter.commentRangeForeground\":\"#dedcd550\",\"editorGutter.deletedBackground\":\"#cb7676\",\"editorGutter.foldingControlForeground\":\"#dedcd590\",\"editorGutter.modifiedBackground\":\"#6394bf\",\"editorHint.foreground\":\"#4d9375\",\"editorIndentGuide.activeBackground\":\"#ffffff30\",\"editorIndentGuide.background\":\"#ffffff15\",\"editorInfo.foreground\":\"#6394bf\",\"editorInlayHint.background\":\"#181818\",\"editorInlayHint.foreground\":\"#666666\",\"editorLineNumber.activeForeground\":\"#bfbaaa\",\"editorLineNumber.foreground\":\"#dedcd550\",\"editorOverviewRuler.border\":\"#111\",\"editorStickyScroll.background\":\"#181818\",\"editorStickyScrollHover.background\":\"#181818\",\"editorWarning.foreground\":\"#d4976c\",\"editorWhitespace.foreground\":\"#ffffff15\",\"editorWidget.background\":\"#121212\",\"errorForeground\":\"#cb7676\",\"focusBorder\":\"#00000000\",\"foreground\":\"#dbd7caee\",\"gitDecoration.addedResourceForeground\":\"#4d9375\",\"gitDecoration.conflictingResourceForeground\":\"#d4976c\",\"gitDecoration.deletedResourceForeground\":\"#cb7676\",\"gitDecoration.ignoredResourceForeground\":\"#dedcd550\",\"gitDecoration.modifiedResourceForeground\":\"#6394bf\",\"gitDecoration.submoduleResourceForeground\":\"#dedcd590\",\"gitDecoration.untrackedResourceForeground\":\"#5eaab5\",\"input.background\":\"#181818\",\"input.border\":\"#191919\",\"input.foreground\":\"#dbd7caee\",\"input.placeholderForeground\":\"#dedcd590\",\"inputOption.activeBackground\":\"#dedcd550\",\"list.activeSelectionBackground\":\"#181818\",\"list.activeSelectionForeground\":\"#dbd7caee\",\"list.focusBackground\":\"#181818\",\"list.highlightForeground\":\"#4d9375\",\"list.hoverBackground\":\"#181818\",\"list.hoverForeground\":\"#dbd7caee\",\"list.inactiveFocusBackground\":\"#121212\",\"list.inactiveSelectionBackground\":\"#181818\",\"list.inactiveSelectionForeground\":\"#dbd7caee\",\"menu.separatorBackground\":\"#191919\",\"notificationCenterHeader.background\":\"#121212\",\"notificationCenterHeader.foreground\":\"#959da5\",\"notifications.background\":\"#121212\",\"notifications.border\":\"#191919\",\"notifications.foreground\":\"#dbd7caee\",\"notificationsErrorIcon.foreground\":\"#cb7676\",\"notificationsInfoIcon.foreground\":\"#6394bf\",\"notificationsWarningIcon.foreground\":\"#d4976c\",\"panel.background\":\"#121212\",\"panel.border\":\"#191919\",\"panelInput.border\":\"#2f363d\",\"panelTitle.activeBorder\":\"#4d9375\",\"panelTitle.activeForeground\":\"#dbd7caee\",\"panelTitle.inactiveForeground\":\"#959da5\",\"peekViewEditor.background\":\"#121212\",\"peekViewEditor.matchHighlightBackground\":\"#ffd33d33\",\"peekViewResult.background\":\"#121212\",\"peekViewResult.matchHighlightBackground\":\"#ffd33d33\",\"pickerGroup.border\":\"#191919\",\"pickerGroup.foreground\":\"#dbd7caee\",\"problemsErrorIcon.foreground\":\"#cb7676\",\"problemsInfoIcon.foreground\":\"#6394bf\",\"problemsWarningIcon.foreground\":\"#d4976c\",\"progressBar.background\":\"#4d9375\",\"quickInput.background\":\"#121212\",\"quickInput.foreground\":\"#dbd7caee\",\"quickInputList.focusBackground\":\"#181818\",\"scrollbar.shadow\":\"#0000\",\"scrollbarSlider.activeBackground\":\"#dedcd550\",\"scrollbarSlider.background\":\"#dedcd510\",\"scrollbarSlider.hoverBackground\":\"#dedcd550\",\"settings.headerForeground\":\"#dbd7caee\",\"settings.modifiedItemIndicator\":\"#4d9375\",\"sideBar.background\":\"#121212\",\"sideBar.border\":\"#191919\",\"sideBar.foreground\":\"#bfbaaa\",\"sideBarSectionHeader.background\":\"#121212\",\"sideBarSectionHeader.border\":\"#191919\",\"sideBarSectionHeader.foreground\":\"#dbd7caee\",\"sideBarTitle.foreground\":\"#dbd7caee\",\"statusBar.background\":\"#121212\",\"statusBar.border\":\"#191919\",\"statusBar.debuggingBackground\":\"#181818\",\"statusBar.debuggingForeground\":\"#bfbaaa\",\"statusBar.foreground\":\"#bfbaaa\",\"statusBar.noFolderBackground\":\"#121212\",\"statusBarItem.prominentBackground\":\"#181818\",\"tab.activeBackground\":\"#121212\",\"tab.activeBorder\":\"#191919\",\"tab.activeBorderTop\":\"#dedcd590\",\"tab.activeForeground\":\"#dbd7caee\",\"tab.border\":\"#191919\",\"tab.hoverBackground\":\"#181818\",\"tab.inactiveBackground\":\"#121212\",\"tab.inactiveForeground\":\"#959da5\",\"tab.unfocusedActiveBorder\":\"#191919\",\"tab.unfocusedActiveBorderTop\":\"#191919\",\"tab.unfocusedHoverBackground\":\"#121212\",\"terminal.ansiBlack\":\"#393a34\",\"terminal.ansiBlue\":\"#6394bf\",\"terminal.ansiBrightBlack\":\"#777777\",\"terminal.ansiBrightBlue\":\"#6394bf\",\"terminal.ansiBrightCyan\":\"#5eaab5\",\"terminal.ansiBrightGreen\":\"#4d9375\",\"terminal.ansiBrightMagenta\":\"#d9739f\",\"terminal.ansiBrightRed\":\"#cb7676\",\"terminal.ansiBrightWhite\":\"#ffffff\",\"terminal.ansiBrightYellow\":\"#e6cc77\",\"terminal.ansiCyan\":\"#5eaab5\",\"terminal.ansiGreen\":\"#4d9375\",\"terminal.ansiMagenta\":\"#d9739f\",\"terminal.ansiRed\":\"#cb7676\",\"terminal.ansiWhite\":\"#dbd7ca\",\"terminal.ansiYellow\":\"#e6cc77\",\"terminal.foreground\":\"#dbd7caee\",\"terminal.selectionBackground\":\"#eeeeee18\",\"textBlockQuote.background\":\"#121212\",\"textBlockQuote.border\":\"#191919\",\"textCodeBlock.background\":\"#121212\",\"textLink.activeForeground\":\"#4d9375\",\"textLink.foreground\":\"#4d9375\",\"textPreformat.foreground\":\"#d1d5da\",\"textSeparator.foreground\":\"#586069\",\"titleBar.activeBackground\":\"#121212\",\"titleBar.activeForeground\":\"#bfbaaa\",\"titleBar.border\":\"#181818\",\"titleBar.inactiveBackground\":\"#121212\",\"titleBar.inactiveForeground\":\"#959da5\",\"tree.indentGuidesStroke\":\"#2f363d\",\"welcomePage.buttonBackground\":\"#2f363d\",\"welcomePage.buttonHoverBackground\":\"#444d56\"},\"displayName\":\"Vitesse Dark\",\"name\":\"vitesse-dark\",\"semanticHighlighting\":true,\"semanticTokenColors\":{\"class\":\"#6872ab\",\"interface\":\"#5d99a9\",\"namespace\":\"#db889a\",\"property\":\"#b8a965\",\"type\":\"#5d99a9\"},\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\",\"string.comment\"],\"settings\":{\"foreground\":\"#758575dd\"}},{\"scope\":[\"delimiter.bracket\",\"delimiter\",\"invalid.illegal.character-not-allowed-here.html\",\"keyword.operator.rest\",\"keyword.operator.spread\",\"keyword.operator.type.annotation\",\"keyword.operator.relational\",\"keyword.operator.assignment\",\"keyword.operator.type\",\"meta.brace\",\"meta.tag.block.any.html\",\"meta.tag.inline.any.html\",\"meta.tag.structure.input.void.html\",\"meta.type.annotation\",\"meta.embedded.block.github-actions-expression\",\"storage.type.function.arrow\",\"meta.objectliteral.ts\",\"punctuation\",\"punctuation.definition.string.begin.html.vue\",\"punctuation.definition.string.end.html.vue\"],\"settings\":{\"foreground\":\"#666666\"}},{\"scope\":[\"constant\",\"entity.name.constant\",\"variable.language\",\"meta.definition.variable\"],\"settings\":{\"foreground\":\"#c99076\"}},{\"scope\":[\"entity\",\"entity.name\"],\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":\"variable.parameter.function\",\"settings\":{\"foreground\":\"#dbd7caee\"}},{\"scope\":[\"entity.name.tag\",\"tag.html\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":[\"keyword\",\"storage.type.class.jsdoc\",\"punctuation.definition.template-expression\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":[\"storage\",\"storage.type\",\"support.type.builtin\",\"constant.language.undefined\",\"constant.language.null\",\"constant.language.import-export-all.ts\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":[\"text.html.derivative\",\"storage.modifier.package\",\"storage.modifier.import\",\"storage.type.java\"],\"settings\":{\"foreground\":\"#dbd7caee\"}},{\"scope\":[\"string\",\"string punctuation.section.embedded source\",\"attribute.value\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"punctuation.definition.string\"],\"settings\":{\"foreground\":\"#c98a7d77\"}},{\"scope\":[\"punctuation.support.type.property-name\"],\"settings\":{\"foreground\":\"#b8a96577\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#b8a965\"}},{\"scope\":[\"property\",\"meta.property-name\",\"meta.object-literal.key\",\"entity.name.tag.yaml\",\"attribute.name\"],\"settings\":{\"foreground\":\"#b8a965\"}},{\"scope\":[\"entity.other.attribute-name\",\"invalid.deprecated.entity.other.attribute-name.html\"],\"settings\":{\"foreground\":\"#bd976a\"}},{\"scope\":[\"variable\",\"identifier\"],\"settings\":{\"foreground\":\"#bd976a\"}},{\"scope\":[\"support.type.primitive\",\"entity.name.type\"],\"settings\":{\"foreground\":\"#5DA994\"}},{\"scope\":\"namespace\",\"settings\":{\"foreground\":\"#db889a\"}},{\"scope\":[\"keyword.operator\",\"keyword.operator.assignment.compound\",\"meta.var.expr.ts\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":\"invalid.broken\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.illegal\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.unimplemented\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"carriage-return\",\"settings\":{\"background\":\"#f97583\",\"content\":\"^M\",\"fontStyle\":\"italic underline\",\"foreground\":\"#24292e\"}},{\"scope\":\"message.error\",\"settings\":{\"foreground\":\"#fdaeb7\"}},{\"scope\":\"string variable\",\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"source.regexp\",\"string.regexp\"],\"settings\":{\"foreground\":\"#c4704f\"}},{\"scope\":[\"string.regexp.character-class\",\"string.regexp constant.character.escape\",\"string.regexp source.ruby.embedded\",\"string.regexp string.regexp.arbitrary-repitition\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":\"string.regexp constant.character.escape\",\"settings\":{\"foreground\":\"#e6cc77\"}},{\"scope\":[\"support.constant\"],\"settings\":{\"foreground\":\"#c99076\"}},{\"scope\":[\"keyword.operator.quantifier.regexp\",\"constant.numeric\",\"number\"],\"settings\":{\"foreground\":\"#4C9A91\"}},{\"scope\":[\"keyword.other.unit\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":[\"constant.language.boolean\",\"constant.language\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"meta.module-reference\",\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#d4976c\"}},{\"scope\":[\"markup.heading\",\"markup.heading entity.name\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#4d9375\"}},{\"scope\":\"markup.quote\",\"settings\":{\"foreground\":\"#5d99a9\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#dbd7caee\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#dbd7caee\"}},{\"scope\":\"markup.raw\",\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":[\"markup.deleted\",\"meta.diff.header.from-file\",\"punctuation.definition.deleted\"],\"settings\":{\"background\":\"#86181d\",\"foreground\":\"#fdaeb7\"}},{\"scope\":[\"markup.inserted\",\"meta.diff.header.to-file\",\"punctuation.definition.inserted\"],\"settings\":{\"background\":\"#144620\",\"foreground\":\"#85e89d\"}},{\"scope\":[\"markup.changed\",\"punctuation.definition.changed\"],\"settings\":{\"background\":\"#c24e00\",\"foreground\":\"#ffab70\"}},{\"scope\":[\"markup.ignored\",\"markup.untracked\"],\"settings\":{\"background\":\"#79b8ff\",\"foreground\":\"#2f363d\"}},{\"scope\":\"meta.diff.range\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#b392f0\"}},{\"scope\":\"meta.diff.header\",\"settings\":{\"foreground\":\"#79b8ff\"}},{\"scope\":\"meta.separator\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#79b8ff\"}},{\"scope\":\"meta.output\",\"settings\":{\"foreground\":\"#79b8ff\"}},{\"scope\":[\"brackethighlighter.tag\",\"brackethighlighter.curly\",\"brackethighlighter.round\",\"brackethighlighter.square\",\"brackethighlighter.angle\",\"brackethighlighter.quote\"],\"settings\":{\"foreground\":\"#d1d5da\"}},{\"scope\":\"brackethighlighter.unmatched\",\"settings\":{\"foreground\":\"#fdaeb7\"}},{\"scope\":[\"constant.other.reference.link\",\"string.other.link\",\"punctuation.definition.string.begin.markdown\",\"punctuation.definition.string.end.markdown\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"markup.underline.link.markdown\",\"markup.underline.link.image.markdown\"],\"settings\":{\"fontStyle\":\"underline\",\"foreground\":\"#dedcd590\"}},{\"scope\":[\"type.identifier\",\"constant.other.character-class.regexp\"],\"settings\":{\"foreground\":\"#6872ab\"}},{\"scope\":[\"entity.other.attribute-name.html.vue\"],\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":[\"invalid.illegal.unrecognized-tag.html\"],\"settings\":{\"fontStyle\":\"normal\"}}],\"type\":\"dark\"}"));
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,3 @@
1
+ import "./chunk-K5T4RW27-BPZ6fFnW.mjs";
2
+ import { n as e } from "./chunk-CIAEETIT-CTikoJ19.mjs";
3
+ export { e as createWardleyServices };
@@ -0,0 +1,594 @@
1
+ import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
2
+ import "./chunk-K5T4RW27-BPZ6fFnW.mjs";
3
+ import "./chunk-7N4EOEYR-DKNajFZd.mjs";
4
+ import "./chunk-67CJDMHE-m0UKdcSH.mjs";
5
+ import "./chunk-KGLVRYIC-S1OQdW76.mjs";
6
+ import "./chunk-FOC6F5B3-LmHCCWYY.mjs";
7
+ import "./chunk-AA7GKIK3-BeLhNzKa.mjs";
8
+ import "./chunk-2KRD3SAO-DkM7qh-k.mjs";
9
+ import "./chunk-ORNJ4GCN-CdO0hAge.mjs";
10
+ import "./chunk-LIHQZDEY-CjtyJlI6.mjs";
11
+ import "./chunk-CIAEETIT-CTikoJ19.mjs";
12
+ import { g as t, h as n } from "./src-DVJl6f6s.mjs";
13
+ import { B as r, C as i, L as a, V as o, W as s, _ as c, a as l, b as u, c as d, v as f } from "./chunk-ICPOFSXX-BHZIN46A.mjs";
14
+ import { t as p } from "./chunk-426QAEUC-D6UAVUog.mjs";
15
+ import { t as m } from "./chunk-4BX2VUAB-CgIkjF7Z.mjs";
16
+ import { t as h } from "./mermaid-parser.core-CA3DKkuk.mjs";
17
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.mjs
18
+ var g, _ = /* @__PURE__ */ n((e, t) => {
19
+ let n = e <= 1 ? e * 100 : e;
20
+ if (n < 0 || n > 100) throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);
21
+ return n;
22
+ }, "toPercent"), v = /* @__PURE__ */ n((e, t, n) => ({
23
+ x: _(t, `${n} evolution`),
24
+ y: _(e, `${n} visibility`)
25
+ }), "toCoordinates"), y = /* @__PURE__ */ n((e) => {
26
+ if (e) {
27
+ if (e === "+<>") return "bidirectional";
28
+ if (e === "+<") return "backward";
29
+ if (e === "+>") return "forward";
30
+ }
31
+ }, "getFlowFromPort"), b = /* @__PURE__ */ n((e) => {
32
+ if (!(e != null && e.startsWith("+"))) return {};
33
+ let t = /^\+'([^']*)'/.exec(e), n = t == null ? void 0 : t[1];
34
+ return e.includes("<>") ? {
35
+ flow: "bidirectional",
36
+ label: n
37
+ } : e.includes("<") ? {
38
+ flow: "backward",
39
+ label: n
40
+ } : e.includes(">") ? {
41
+ flow: "forward",
42
+ label: n
43
+ } : { label: n };
44
+ }, "extractFlowFromArrow"), x = /* @__PURE__ */ n((e, t) => {
45
+ if (m(e, t), e.size && t.setSize(e.size.width, e.size.height), e.evolution) {
46
+ let n = e.evolution.stages.map((e) => e.secondName ? `${e.name.trim()} / ${e.secondName.trim()}` : e.name.trim()), r = e.evolution.stages.filter((e) => e.boundary !== void 0).map((e) => e.boundary);
47
+ t.updateAxes({
48
+ stages: n,
49
+ stageBoundaries: r
50
+ });
51
+ }
52
+ if (e.anchors.forEach((e) => {
53
+ let n = v(e.visibility, e.evolution, `Anchor "${e.name}"`);
54
+ t.addNode(e.name, e.name, n.x, n.y, "anchor");
55
+ }), e.components.forEach((e) => {
56
+ var n;
57
+ let r = v(e.visibility, e.evolution, `Component "${e.name}"`), i = e.label ? (e.label.negX ? -1 : 1) * e.label.offsetX : void 0, a = e.label ? (e.label.negY ? -1 : 1) * e.label.offsetY : void 0, o = (n = e.decorator) == null ? void 0 : n.strategy;
58
+ t.addNode(e.name, e.name, r.x, r.y, "component", i, a, e.inertia, o);
59
+ }), e.notes.forEach((e) => {
60
+ let n = v(e.visibility, e.evolution, `Note "${e.text}"`);
61
+ t.addNote(e.text, n.x, n.y);
62
+ }), e.pipelines.forEach((e) => {
63
+ let n = t.getNode(e.parent);
64
+ if (!n || typeof n.y != "number") throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);
65
+ let r = n.y;
66
+ t.startPipeline(e.parent), e.components.forEach((n) => {
67
+ let i = `${e.parent}_${n.name}`, a = n.label ? (n.label.negX ? -1 : 1) * n.label.offsetX : void 0, o = n.label ? (n.label.negY ? -1 : 1) * n.label.offsetY : void 0, s = _(n.evolution, `Pipeline component "${n.name}" evolution`);
68
+ t.addNode(i, n.name, s, r, "pipeline-component", a, o), t.addPipelineComponent(e.parent, i);
69
+ });
70
+ }), e.links.forEach((e) => {
71
+ var n;
72
+ let r = !!e.arrow && (e.arrow.includes("-.->") || e.arrow.includes(".-.")), i = (n = y(e.fromPort)) == null ? y(e.toPort) : n, { flow: a, label: o } = b(e.arrow);
73
+ !i && a && (i = a);
74
+ let s = e.linkLabel, c = o == null ? s : o;
75
+ t.addLink(e.from, e.to, r, c, i);
76
+ }), e.evolves.forEach((e) => {
77
+ let n = t.getNode(e.component);
78
+ if ((n == null ? void 0 : n.y) !== void 0) {
79
+ let r = _(e.target, `Evolve target for "${e.component}"`);
80
+ t.addTrend(e.component, r, n.y);
81
+ }
82
+ }), e.annotations.length > 0) {
83
+ let n = e.annotations[0], r = v(n.x, n.y, "Annotations box");
84
+ t.setAnnotationsBox(r.x, r.y);
85
+ }
86
+ e.annotation.forEach((e) => {
87
+ let n = v(e.x, e.y, `Annotation ${e.number}`);
88
+ t.addAnnotation(e.number, [{
89
+ x: n.x,
90
+ y: n.y
91
+ }], e.text);
92
+ }), e.accelerators.forEach((e) => {
93
+ let n = v(e.x, e.y, `Accelerator "${e.name}"`);
94
+ t.addAccelerator(e.name, n.x, n.y);
95
+ }), e.deaccelerators.forEach((e) => {
96
+ let n = v(e.x, e.y, `Deaccelerator "${e.name}"`);
97
+ t.addDeaccelerator(e.name, n.x, n.y);
98
+ });
99
+ }, "populateDb"), S = {
100
+ parser: { yy: void 0 },
101
+ parse: /* @__PURE__ */ n(async (e) => {
102
+ var n;
103
+ let r = await h("wardley", e);
104
+ t.debug(r);
105
+ let i = (n = S.parser) == null ? void 0 : n.yy;
106
+ if (!i || typeof i.addNode != "function") throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
107
+ x(r, i);
108
+ }, "parse")
109
+ }, C = new (g = class {
110
+ constructor() {
111
+ this.nodes = /* @__PURE__ */ new Map(), this.links = [], this.trends = /* @__PURE__ */ new Map(), this.pipelines = /* @__PURE__ */ new Map(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.axes = {};
112
+ }
113
+ addNode(t) {
114
+ var n, r, i, a;
115
+ let o = (n = this.nodes.get(t.id)) == null ? {
116
+ id: t.id,
117
+ label: t.label
118
+ } : n, s = e(e(e({}, o), t), {}, {
119
+ className: (r = t.className) == null ? o.className : r,
120
+ labelOffsetX: (i = t.labelOffsetX) == null ? o.labelOffsetX : i,
121
+ labelOffsetY: (a = t.labelOffsetY) == null ? o.labelOffsetY : a
122
+ });
123
+ this.nodes.set(t.id, s);
124
+ }
125
+ addLink(e) {
126
+ this.links.push(e);
127
+ }
128
+ addTrend(e) {
129
+ this.trends.set(e.nodeId, e);
130
+ }
131
+ startPipeline(e) {
132
+ this.pipelines.set(e, {
133
+ nodeId: e,
134
+ componentIds: []
135
+ });
136
+ let t = this.nodes.get(e);
137
+ t && (t.isPipelineParent = !0);
138
+ }
139
+ addPipelineComponent(e, t) {
140
+ let n = this.pipelines.get(e);
141
+ n && n.componentIds.push(t);
142
+ let r = this.nodes.get(t);
143
+ r && (r.inPipeline = !0);
144
+ }
145
+ addAnnotation(e) {
146
+ this.annotations.push(e);
147
+ }
148
+ addNote(e) {
149
+ this.notes.push(e);
150
+ }
151
+ addAccelerator(e) {
152
+ this.accelerators.push(e);
153
+ }
154
+ addDeaccelerator(e) {
155
+ this.deaccelerators.push(e);
156
+ }
157
+ setAnnotationsBox(e, t) {
158
+ this.annotationsBox = {
159
+ x: e,
160
+ y: t
161
+ };
162
+ }
163
+ setAxes(t) {
164
+ this.axes = e(e({}, this.axes), t);
165
+ }
166
+ setSize(e, t) {
167
+ this.size = {
168
+ width: e,
169
+ height: t
170
+ };
171
+ }
172
+ getNode(e) {
173
+ return this.nodes.get(e);
174
+ }
175
+ build() {
176
+ let t = [];
177
+ for (let e of this.nodes.values()) {
178
+ if (typeof e.x != "number" || typeof e.y != "number") throw Error(`Node "${e.label}" is missing coordinates`);
179
+ t.push(e);
180
+ }
181
+ return {
182
+ nodes: t,
183
+ links: [...this.links],
184
+ trends: [...this.trends.values()],
185
+ pipelines: [...this.pipelines.values()],
186
+ annotations: [...this.annotations],
187
+ notes: [...this.notes],
188
+ accelerators: [...this.accelerators],
189
+ deaccelerators: [...this.deaccelerators],
190
+ annotationsBox: this.annotationsBox,
191
+ axes: e({}, this.axes),
192
+ size: this.size
193
+ };
194
+ }
195
+ clear() {
196
+ this.nodes.clear(), this.links = [], this.trends.clear(), this.pipelines.clear(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.annotationsBox = void 0, this.axes = {}, this.size = void 0;
197
+ }
198
+ }, n(g, "WardleyBuilder"), g)();
199
+ function w(e) {
200
+ let t = u();
201
+ return a(e.trim(), t);
202
+ }
203
+ n(w, "textSanitizer");
204
+ function T() {
205
+ return u()["wardley-beta"];
206
+ }
207
+ n(T, "getConfig");
208
+ function E(e, t, n, r, i, a, o, s, c) {
209
+ C.addNode({
210
+ id: e,
211
+ label: w(t),
212
+ x: n,
213
+ y: r,
214
+ className: i,
215
+ labelOffsetX: a,
216
+ labelOffsetY: o,
217
+ inertia: s,
218
+ sourceStrategy: c
219
+ });
220
+ }
221
+ n(E, "addNode");
222
+ function D(e, t, n = !1, r, i) {
223
+ C.addLink({
224
+ source: e,
225
+ target: t,
226
+ dashed: n,
227
+ label: r,
228
+ flow: i
229
+ });
230
+ }
231
+ n(D, "addLink");
232
+ function O(e, t, n) {
233
+ C.addTrend({
234
+ nodeId: e,
235
+ targetX: t,
236
+ targetY: n
237
+ });
238
+ }
239
+ n(O, "addTrend");
240
+ function k(e, t, n) {
241
+ C.addAnnotation({
242
+ number: e,
243
+ coordinates: t,
244
+ text: n ? w(n) : void 0
245
+ });
246
+ }
247
+ n(k, "addAnnotation");
248
+ function A(e, t, n) {
249
+ C.addNote({
250
+ text: w(e),
251
+ x: t,
252
+ y: n
253
+ });
254
+ }
255
+ n(A, "addNote");
256
+ function j(e, t, n) {
257
+ C.addAccelerator({
258
+ name: w(e),
259
+ x: t,
260
+ y: n
261
+ });
262
+ }
263
+ n(j, "addAccelerator");
264
+ function M(e, t, n) {
265
+ C.addDeaccelerator({
266
+ name: w(e),
267
+ x: t,
268
+ y: n
269
+ });
270
+ }
271
+ n(M, "addDeaccelerator");
272
+ function N(e, t) {
273
+ C.setAnnotationsBox(e, t);
274
+ }
275
+ n(N, "setAnnotationsBox");
276
+ function P(e, t) {
277
+ C.setSize(e, t);
278
+ }
279
+ n(P, "setSize");
280
+ function F(e) {
281
+ C.startPipeline(e);
282
+ }
283
+ n(F, "startPipeline");
284
+ function I(e, t) {
285
+ C.addPipelineComponent(e, t);
286
+ }
287
+ n(I, "addPipelineComponent");
288
+ function L(e) {
289
+ let t = {};
290
+ e.xLabel && (t.xLabel = w(e.xLabel)), e.yLabel && (t.yLabel = w(e.yLabel)), e.stages && (t.stages = e.stages.map((e) => w(e))), e.stageBoundaries && (t.stageBoundaries = e.stageBoundaries), C.setAxes(t);
291
+ }
292
+ n(L, "updateAxes");
293
+ function R(e) {
294
+ return C.getNode(e);
295
+ }
296
+ n(R, "getNode");
297
+ function z() {
298
+ return C.build();
299
+ }
300
+ n(z, "getWardleyData");
301
+ function B() {
302
+ C.clear(), l();
303
+ }
304
+ n(B, "clear");
305
+ var V = {
306
+ getConfig: T,
307
+ addNode: E,
308
+ addLink: D,
309
+ addTrend: O,
310
+ addAnnotation: k,
311
+ addNote: A,
312
+ addAccelerator: j,
313
+ addDeaccelerator: M,
314
+ setAnnotationsBox: N,
315
+ setSize: P,
316
+ startPipeline: F,
317
+ addPipelineComponent: I,
318
+ updateAxes: L,
319
+ getNode: R,
320
+ getWardleyData: z,
321
+ clear: B,
322
+ setAccTitle: o,
323
+ getAccTitle: f,
324
+ setDiagramTitle: s,
325
+ getDiagramTitle: i,
326
+ getAccDescription: c,
327
+ setAccDescription: r
328
+ }, H = [
329
+ "Genesis",
330
+ "Custom Built",
331
+ "Product",
332
+ "Commodity"
333
+ ], U = /* @__PURE__ */ n(() => {
334
+ var e, t, n, r, i, a, o, s, c, l, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k;
335
+ let { themeVariables: A } = u();
336
+ return {
337
+ backgroundColor: (e = (t = (n = A.wardley) == null ? void 0 : n.backgroundColor) == null ? A.background : t) == null ? "#fff" : e,
338
+ axisColor: (r = (i = A.wardley) == null ? void 0 : i.axisColor) == null ? "#000" : r,
339
+ axisTextColor: (a = (o = (s = A.wardley) == null ? void 0 : s.axisTextColor) == null ? A.primaryTextColor : o) == null ? "#222" : a,
340
+ gridColor: (c = (l = A.wardley) == null ? void 0 : l.gridColor) == null ? "rgba(100, 100, 100, 0.2)" : c,
341
+ componentFill: (d = (f = A.wardley) == null ? void 0 : f.componentFill) == null ? "#fff" : d,
342
+ componentStroke: (p = (m = A.wardley) == null ? void 0 : m.componentStroke) == null ? "#000" : p,
343
+ componentLabelColor: (h = (g = (_ = A.wardley) == null ? void 0 : _.componentLabelColor) == null ? A.primaryTextColor : g) == null ? "#222" : h,
344
+ linkStroke: (v = (y = A.wardley) == null ? void 0 : y.linkStroke) == null ? "#000" : v,
345
+ evolutionStroke: (b = (x = A.wardley) == null ? void 0 : x.evolutionStroke) == null ? "#dc3545" : b,
346
+ annotationStroke: (S = (C = A.wardley) == null ? void 0 : C.annotationStroke) == null ? "#000" : S,
347
+ annotationTextColor: (w = (T = (E = A.wardley) == null ? void 0 : E.annotationTextColor) == null ? A.primaryTextColor : T) == null ? "#222" : w,
348
+ annotationFill: (D = (O = (k = A.wardley) == null ? void 0 : k.annotationFill) == null ? A.background : O) == null ? "#fff" : D
349
+ };
350
+ }, "getTheme"), W = /* @__PURE__ */ n(() => {
351
+ var e, t, n, r, i, a, o, s, c;
352
+ let l = u()["wardley-beta"];
353
+ return {
354
+ width: (e = l == null ? void 0 : l.width) == null ? 900 : e,
355
+ height: (t = l == null ? void 0 : l.height) == null ? 600 : t,
356
+ padding: (n = l == null ? void 0 : l.padding) == null ? 48 : n,
357
+ nodeRadius: (r = l == null ? void 0 : l.nodeRadius) == null ? 6 : r,
358
+ nodeLabelOffset: (i = l == null ? void 0 : l.nodeLabelOffset) == null ? 8 : i,
359
+ axisFontSize: (a = l == null ? void 0 : l.axisFontSize) == null ? 12 : a,
360
+ labelFontSize: (o = l == null ? void 0 : l.labelFontSize) == null ? 10 : o,
361
+ showGrid: (s = l == null ? void 0 : l.showGrid) == null ? !1 : s,
362
+ useMaxWidth: (c = l == null ? void 0 : l.useMaxWidth) == null ? !0 : c
363
+ };
364
+ }, "getConfigValues"), G = {
365
+ parser: S,
366
+ db: V,
367
+ renderer: { draw: /* @__PURE__ */ n((e, r, i, a) => {
368
+ var o, s, c, l, u, f;
369
+ t.debug("Rendering Wardley map\n" + e);
370
+ let m = W(), h = U(), g = m.nodeRadius * 1.6, _ = a.db, v = _.getWardleyData(), y = _.getDiagramTitle(), b = (o = (s = v.size) == null ? void 0 : s.width) == null ? m.width : o, x = (c = (l = v.size) == null ? void 0 : l.height) == null ? m.height : c, S = p(r);
371
+ S.selectAll("*").remove(), d(S, x, b, m.useMaxWidth), S.attr("viewBox", `0 0 ${b} ${x}`);
372
+ let C = S.append("g").attr("class", "wardley-map"), w = S.append("defs");
373
+ w.append("marker").attr("id", `arrow-${r}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", h.evolutionStroke).attr("stroke", "none"), w.append("marker").attr("id", `link-arrow-end-${r}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", h.linkStroke).attr("stroke", "none"), w.append("marker").attr("id", `link-arrow-start-${r}`).attr("viewBox", "0 0 10 10").attr("refX", 1).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z").attr("fill", h.linkStroke).attr("stroke", "none"), C.append("rect").attr("class", "wardley-background").attr("width", b).attr("height", x).attr("fill", h.backgroundColor);
374
+ let T = b - m.padding * 2, E = x - m.padding * 2;
375
+ y && C.append("text").attr("class", "wardley-title").attr("x", b / 2).attr("y", m.padding / 2).attr("fill", h.axisTextColor).attr("font-size", m.axisFontSize * 1.05).attr("font-weight", "bold").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(y);
376
+ let D = /* @__PURE__ */ n((e) => m.padding + e / 100 * T, "projectX"), O = /* @__PURE__ */ n((e) => x - m.padding - e / 100 * E, "projectY"), k = C.append("g").attr("class", "wardley-axes");
377
+ k.append("line").attr("x1", m.padding).attr("x2", b - m.padding).attr("y1", x - m.padding).attr("y2", x - m.padding).attr("stroke", h.axisColor).attr("stroke-width", 1), k.append("line").attr("x1", m.padding).attr("x2", m.padding).attr("y1", m.padding).attr("y2", x - m.padding).attr("stroke", h.axisColor).attr("stroke-width", 1);
378
+ let A = (u = v.axes.xLabel) == null ? "Evolution" : u, j = (f = v.axes.yLabel) == null ? "Visibility" : f;
379
+ k.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x", m.padding + T / 2).attr("y", x - m.padding / 4).attr("fill", h.axisTextColor).attr("font-size", m.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").text(A), k.append("text").attr("class", "wardley-axis-label wardley-axis-label-y").attr("x", m.padding / 3).attr("y", m.padding + E / 2).attr("fill", h.axisTextColor).attr("font-size", m.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").attr("transform", `rotate(-90 ${m.padding / 3} ${m.padding + E / 2})`).text(j);
380
+ let M = v.axes.stages && v.axes.stages.length > 0 ? v.axes.stages : H;
381
+ if (M.length > 0) {
382
+ let e = C.append("g").attr("class", "wardley-stages"), t = v.axes.stageBoundaries, n = [];
383
+ if (t && t.length === M.length) {
384
+ let e = 0;
385
+ t.forEach((t) => {
386
+ n.push({
387
+ start: e,
388
+ end: t
389
+ }), e = t;
390
+ });
391
+ } else {
392
+ let e = 1 / M.length;
393
+ M.forEach((t, r) => {
394
+ n.push({
395
+ start: r * e,
396
+ end: (r + 1) * e
397
+ });
398
+ });
399
+ }
400
+ M.forEach((t, r) => {
401
+ let i = n[r], a = m.padding + i.start * T, o = (a + (m.padding + i.end * T)) / 2;
402
+ r > 0 && e.append("line").attr("x1", a).attr("x2", a).attr("y1", m.padding).attr("y2", x - m.padding).attr("stroke", "#000").attr("stroke-width", 1).attr("stroke-dasharray", "5 5").attr("opacity", .8), e.append("text").attr("class", "wardley-stage-label").attr("x", o).attr("y", x - m.padding / 1.5).attr("fill", h.axisTextColor).attr("font-size", m.axisFontSize - 2).attr("text-anchor", "middle").text(t);
403
+ });
404
+ }
405
+ if (m.showGrid) {
406
+ let e = C.append("g").attr("class", "wardley-grid");
407
+ for (let t = 1; t < 4; t++) {
408
+ let n = t / 4, r = m.padding + T * n;
409
+ e.append("line").attr("x1", r).attr("x2", r).attr("y1", m.padding).attr("y2", x - m.padding).attr("stroke", h.gridColor).attr("stroke-dasharray", "2 6"), e.append("line").attr("x1", m.padding).attr("x2", b - m.padding).attr("y1", x - m.padding - E * n).attr("y2", x - m.padding - E * n).attr("stroke", h.gridColor).attr("stroke-dasharray", "2 6");
410
+ }
411
+ }
412
+ let N = /* @__PURE__ */ new Map();
413
+ if (v.nodes.forEach((e) => {
414
+ N.set(e.id, {
415
+ x: D(e.x),
416
+ y: O(e.y),
417
+ node: e
418
+ });
419
+ }), v.pipelines.length > 0) {
420
+ let e = C.append("g").attr("class", "wardley-pipelines"), t = C.append("g").attr("class", "wardley-pipeline-links");
421
+ v.pipelines.forEach((n) => {
422
+ if (n.componentIds.length === 0) return;
423
+ let r = n.componentIds.map((e) => ({
424
+ id: e,
425
+ pos: N.get(e),
426
+ node: v.nodes.find((t) => t.id === e)
427
+ })).filter((e) => e.pos && e.node).sort((e, t) => e.node.x - t.node.x);
428
+ for (let e = 0; e < r.length - 1; e++) {
429
+ let n = r[e], i = r[e + 1];
430
+ t.append("line").attr("class", "wardley-pipeline-evolution-link").attr("x1", n.pos.x).attr("y1", n.pos.y).attr("x2", i.pos.x).attr("y2", i.pos.y).attr("stroke", h.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4");
431
+ }
432
+ let i = Infinity, a = -Infinity, o = 0;
433
+ if (n.componentIds.forEach((e) => {
434
+ let t = N.get(e);
435
+ t && (i = Math.min(i, t.x), a = Math.max(a, t.x), o = t.y);
436
+ }), i !== Infinity && a !== -Infinity) {
437
+ let t = m.nodeRadius * 4, r = o - t / 2, s = N.get(n.nodeId);
438
+ s && (s.x = (i + a) / 2, s.y = r - g / 6), e.append("rect").attr("class", "wardley-pipeline-box").attr("x", i - 15).attr("y", r).attr("width", a - i + 30).attr("height", t).attr("fill", "none").attr("stroke", h.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
439
+ }
440
+ });
441
+ }
442
+ let P = C.append("g").attr("class", "wardley-links"), F = /* @__PURE__ */ new Map();
443
+ v.pipelines.forEach((e) => {
444
+ F.set(e.nodeId, new Set(e.componentIds));
445
+ });
446
+ let I = v.links.filter((e) => {
447
+ if (!N.has(e.source) || !N.has(e.target)) return !1;
448
+ let t = F.get(e.target);
449
+ return !(t != null && t.has(e.source));
450
+ });
451
+ P.selectAll("line").data(I).enter().append("line").attr("class", (e) => `wardley-link${e.dashed ? " wardley-link--dashed" : ""}`).attr("x1", (e) => {
452
+ let t = N.get(e.source), n = N.get(e.target), r = v.nodes.find((t) => t.id === e.source).isPipelineParent ? g / Math.sqrt(2) : m.nodeRadius, i = n.x - t.x, a = n.y - t.y, o = Math.sqrt(i * i + a * a);
453
+ return t.x + i / o * r;
454
+ }).attr("y1", (e) => {
455
+ let t = N.get(e.source), n = N.get(e.target), r = v.nodes.find((t) => t.id === e.source).isPipelineParent ? g / Math.sqrt(2) : m.nodeRadius, i = n.x - t.x, a = n.y - t.y, o = Math.sqrt(i * i + a * a);
456
+ return t.y + a / o * r;
457
+ }).attr("x2", (e) => {
458
+ let t = N.get(e.source), n = N.get(e.target), r = v.nodes.find((t) => t.id === e.target).isPipelineParent ? g / Math.sqrt(2) : m.nodeRadius, i = t.x - n.x, a = t.y - n.y, o = Math.sqrt(i * i + a * a);
459
+ return n.x + i / o * r;
460
+ }).attr("y2", (e) => {
461
+ let t = N.get(e.source), n = N.get(e.target), r = v.nodes.find((t) => t.id === e.target).isPipelineParent ? g / Math.sqrt(2) : m.nodeRadius, i = t.x - n.x, a = t.y - n.y, o = Math.sqrt(i * i + a * a);
462
+ return n.y + a / o * r;
463
+ }).attr("stroke", h.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", (e) => e.dashed ? "6 6" : null).attr("marker-end", (e) => e.flow === "forward" || e.flow === "bidirectional" ? `url(#link-arrow-end-${r})` : null).attr("marker-start", (e) => e.flow === "backward" || e.flow === "bidirectional" ? `url(#link-arrow-start-${r})` : null), P.selectAll("text").data(I.filter((e) => e.label)).enter().append("text").attr("class", "wardley-link-label").attr("x", (e) => {
464
+ let t = N.get(e.source), n = N.get(e.target), r = (t.x + n.x) / 2, i = n.y - t.y, a = n.x - t.x;
465
+ return r + i / Math.sqrt(a * a + i * i) * 8;
466
+ }).attr("y", (e) => {
467
+ let t = N.get(e.source), n = N.get(e.target), r = (t.y + n.y) / 2, i = n.x - t.x, a = n.y - t.y, o = Math.sqrt(i * i + a * a);
468
+ return r + -i / o * 8;
469
+ }).attr("fill", h.axisTextColor).attr("font-size", m.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (e) => {
470
+ let t = N.get(e.source), n = N.get(e.target), r = (t.x + n.x) / 2, i = (t.y + n.y) / 2, a = n.x - t.x, o = n.y - t.y, s = Math.sqrt(a * a + o * o), c = o / s, l = -a / s, u = r + c * 8, d = i + l * 8, f = Math.atan2(o, a) * 180 / Math.PI;
471
+ return (f > 90 || f < -90) && (f += 180), `rotate(${f} ${u} ${d})`;
472
+ }).text((e) => e.label);
473
+ let L = C.append("g").attr("class", "wardley-trends"), R = v.trends.map((e) => {
474
+ let t = N.get(e.nodeId);
475
+ if (!t) return null;
476
+ let n = D(e.targetX), r = O(e.targetY), i = n - t.x, a = r - t.y, o = Math.sqrt(i * i + a * a), s = m.nodeRadius + 2;
477
+ return {
478
+ origin: t,
479
+ targetX: n,
480
+ targetY: r,
481
+ adjustedX2: o > s ? n - i / o * s : n,
482
+ adjustedY2: o > s ? r - a / o * s : r
483
+ };
484
+ }).filter((e) => e !== null);
485
+ L.selectAll("line").data(R).enter().append("line").attr("class", "wardley-trend").attr("x1", (e) => e.origin.x).attr("y1", (e) => e.origin.y).attr("x2", (e) => e.adjustedX2).attr("y2", (e) => e.adjustedY2).attr("stroke", h.evolutionStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4").attr("marker-end", `url(#arrow-${r})`);
486
+ let z = C.append("g").attr("class", "wardley-nodes").selectAll("g").data(v.nodes).enter().append("g").attr("class", (e) => ["wardley-node", e.className ? `wardley-node--${e.className}` : ""].filter(Boolean).join(" "));
487
+ z.filter((e) => e.sourceStrategy === "outsource").append("circle").attr("class", "wardley-outsource-overlay").attr("cx", (e) => N.get(e.id).x).attr("cy", (e) => N.get(e.id).y).attr("r", m.nodeRadius * 2).attr("fill", "#666").attr("stroke", h.componentStroke).attr("stroke-width", 1), z.filter((e) => e.sourceStrategy === "buy").append("circle").attr("class", "wardley-buy-overlay").attr("cx", (e) => N.get(e.id).x).attr("cy", (e) => N.get(e.id).y).attr("r", m.nodeRadius * 2).attr("fill", "#ccc").attr("stroke", h.componentStroke).attr("stroke-width", 1), z.filter((e) => e.sourceStrategy === "build").append("circle").attr("class", "wardley-build-overlay").attr("cx", (e) => N.get(e.id).x).attr("cy", (e) => N.get(e.id).y).attr("r", m.nodeRadius * 2).attr("fill", "#eee").attr("stroke", "#000").attr("stroke-width", 1);
488
+ let B = z.filter((e) => e.sourceStrategy === "market");
489
+ B.append("circle").attr("class", "wardley-market-overlay").attr("cx", (e) => N.get(e.id).x).attr("cy", (e) => N.get(e.id).y).attr("r", m.nodeRadius * 2).attr("fill", "white").attr("stroke", h.componentStroke).attr("stroke-width", 1), z.filter((e) => !e.isPipelineParent && e.sourceStrategy !== "market" && e.className !== "anchor").append("circle").attr("cx", (e) => N.get(e.id).x).attr("cy", (e) => N.get(e.id).y).attr("r", m.nodeRadius).attr("fill", h.componentFill).attr("stroke", h.componentStroke).attr("stroke-width", 1);
490
+ let V = m.nodeRadius * .7, G = m.nodeRadius * 1.2;
491
+ if (B.append("line").attr("class", "wardley-market-line").attr("x1", (e) => N.get(e.id).x).attr("y1", (e) => N.get(e.id).y - G).attr("x2", (e) => N.get(e.id).x - G * Math.cos(Math.PI / 6)).attr("y2", (e) => N.get(e.id).y + G * Math.sin(Math.PI / 6)).attr("stroke", h.componentStroke).attr("stroke-width", 1), B.append("line").attr("class", "wardley-market-line").attr("x1", (e) => N.get(e.id).x - G * Math.cos(Math.PI / 6)).attr("y1", (e) => N.get(e.id).y + G * Math.sin(Math.PI / 6)).attr("x2", (e) => N.get(e.id).x + G * Math.cos(Math.PI / 6)).attr("y2", (e) => N.get(e.id).y + G * Math.sin(Math.PI / 6)).attr("stroke", h.componentStroke).attr("stroke-width", 1), B.append("line").attr("class", "wardley-market-line").attr("x1", (e) => N.get(e.id).x + G * Math.cos(Math.PI / 6)).attr("y1", (e) => N.get(e.id).y + G * Math.sin(Math.PI / 6)).attr("x2", (e) => N.get(e.id).x).attr("y2", (e) => N.get(e.id).y - G).attr("stroke", h.componentStroke).attr("stroke-width", 1), B.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => N.get(e.id).x).attr("cy", (e) => N.get(e.id).y - G).attr("r", V).attr("fill", "white").attr("stroke", h.componentStroke).attr("stroke-width", 2), B.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => N.get(e.id).x - G * Math.cos(Math.PI / 6)).attr("cy", (e) => N.get(e.id).y + G * Math.sin(Math.PI / 6)).attr("r", V).attr("fill", "white").attr("stroke", h.componentStroke).attr("stroke-width", 2), B.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => N.get(e.id).x + G * Math.cos(Math.PI / 6)).attr("cy", (e) => N.get(e.id).y + G * Math.sin(Math.PI / 6)).attr("r", V).attr("fill", "white").attr("stroke", h.componentStroke).attr("stroke-width", 2), z.filter((e) => e.isPipelineParent === !0).append("rect").attr("x", (e) => N.get(e.id).x - g / 2).attr("y", (e) => N.get(e.id).y - g / 2).attr("width", g).attr("height", g).attr("fill", h.componentFill).attr("stroke", h.componentStroke).attr("stroke-width", 1), z.filter((e) => e.inertia === !0).append("line").attr("class", "wardley-inertia").attr("x1", (e) => {
492
+ let t = N.get(e.id), n = e.isPipelineParent ? g / 2 + 15 : m.nodeRadius + 15;
493
+ return e.sourceStrategy && (n += m.nodeRadius + 10), t.x + n;
494
+ }).attr("y1", (e) => {
495
+ let t = N.get(e.id), n = e.isPipelineParent ? g : m.nodeRadius * 2;
496
+ return t.y - n / 2;
497
+ }).attr("x2", (e) => {
498
+ let t = N.get(e.id), n = e.isPipelineParent ? g / 2 + 15 : m.nodeRadius + 15;
499
+ return e.sourceStrategy && (n += m.nodeRadius + 10), t.x + n;
500
+ }).attr("y2", (e) => {
501
+ let t = N.get(e.id), n = e.isPipelineParent ? g : m.nodeRadius * 2;
502
+ return t.y + n / 2;
503
+ }).attr("stroke", h.componentStroke).attr("stroke-width", 6), z.append("text").attr("x", (e) => {
504
+ var t;
505
+ let n = N.get(e.id);
506
+ if (e.className === "anchor") return e.labelOffsetX === void 0 ? n.x : n.x + e.labelOffsetX;
507
+ let r = m.nodeLabelOffset;
508
+ e.sourceStrategy && e.labelOffsetX === void 0 && (r += 10);
509
+ let i = (t = e.labelOffsetX) == null ? r : t;
510
+ return n.x + i;
511
+ }).attr("y", (e) => {
512
+ var t;
513
+ let n = N.get(e.id);
514
+ if (e.className === "anchor") return e.labelOffsetY === void 0 ? n.y - 3 : n.y + e.labelOffsetY;
515
+ let r = -m.nodeLabelOffset;
516
+ e.sourceStrategy && e.labelOffsetY === void 0 && (r -= 10);
517
+ let i = (t = e.labelOffsetY) == null ? r : t;
518
+ return n.y + i;
519
+ }).attr("class", "wardley-node-label").attr("fill", (e) => e.className === "evolved" ? h.evolutionStroke : e.className === "anchor" ? "#000" : h.componentLabelColor).attr("font-size", m.labelFontSize).attr("font-weight", (e) => e.className === "anchor" ? "bold" : "normal").attr("text-anchor", (e) => e.className === "anchor" ? "middle" : "start").attr("dominant-baseline", (e) => e.className === "anchor" ? "middle" : "auto").text((e) => e.label), v.annotations.length > 0) {
520
+ let e = C.append("g").attr("class", "wardley-annotations");
521
+ if (v.annotations.forEach((t) => {
522
+ let n = t.coordinates.map((e) => ({
523
+ x: D(e.x),
524
+ y: O(e.y)
525
+ }));
526
+ if (n.length > 1) for (let t = 0; t < n.length - 1; t++) e.append("line").attr("class", "wardley-annotation-line").attr("x1", n[t].x).attr("y1", n[t].y).attr("x2", n[t + 1].x).attr("y2", n[t + 1].y).attr("stroke", h.axisColor).attr("stroke-width", 1.5).attr("stroke-dasharray", "4 4");
527
+ n.forEach((n) => {
528
+ let r = e.append("g").attr("class", "wardley-annotation");
529
+ r.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", 10).attr("fill", "white").attr("stroke", h.axisColor).attr("stroke-width", 1.5), r.append("text").attr("x", n.x).attr("y", n.y).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", 10).attr("fill", h.axisTextColor).attr("font-weight", "bold").text(t.number);
530
+ });
531
+ }), v.annotationsBox) {
532
+ let t = D(v.annotationsBox.x), n = O(v.annotationsBox.y), r = e.append("g").attr("class", "wardley-annotations-box"), i = [...v.annotations].filter((e) => e.text).sort((e, t) => e.number - t.number), a = [];
533
+ if (i.forEach((e, i) => {
534
+ let o = r.append("text").attr("x", t + 10).attr("y", n + 10 + (i + 1) * 16).attr("font-size", 11).attr("fill", h.axisTextColor).attr("text-anchor", "start").attr("dominant-baseline", "middle").text(`${e.number}. ${e.text}`);
535
+ a.push(o);
536
+ }), a.length > 0) {
537
+ let e = 0, o = 0;
538
+ a.forEach((t) => {
539
+ let n = t.node(), r = n.getComputedTextLength();
540
+ e = Math.max(e, r);
541
+ let i = n.getBBox();
542
+ o = Math.max(o, i.height);
543
+ });
544
+ let s = e + 20 + 105, c = i.length * 16 + 20 + o / 2, l = m.padding, u = b - m.padding - s, d = m.padding, f = x - m.padding - c;
545
+ t = Math.max(l, Math.min(t, u)), n = Math.max(d, Math.min(n, f)), a.forEach((e, r) => {
546
+ e.attr("x", t + 10).attr("y", n + 10 + (r + 1) * 16);
547
+ }), r.insert("rect", "text").attr("x", t).attr("y", n).attr("width", s).attr("height", c).attr("fill", "white").attr("stroke", h.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
548
+ }
549
+ }
550
+ }
551
+ if (v.notes.length > 0) {
552
+ let e = C.append("g").attr("class", "wardley-notes");
553
+ v.notes.forEach((t) => {
554
+ let n = D(t.x), r = O(t.y);
555
+ e.append("text").attr("x", n).attr("y", r).attr("text-anchor", "start").attr("font-size", 11).attr("fill", h.axisTextColor).attr("font-weight", "bold").text(t.text);
556
+ });
557
+ }
558
+ if (v.accelerators.length > 0) {
559
+ let e = C.append("g").attr("class", "wardley-accelerators");
560
+ v.accelerators.forEach((t) => {
561
+ let n = D(t.x), r = O(t.y), i = `
562
+ M ${n} ${r - 30 / 2}
563
+ L ${n + 60 - 20} ${r - 30 / 2}
564
+ L ${n + 60 - 20} ${r - 30 / 2 - 8}
565
+ L ${n + 60} ${r}
566
+ L ${n + 60 - 20} ${r + 30 / 2 + 8}
567
+ L ${n + 60 - 20} ${r + 30 / 2}
568
+ L ${n} ${r + 30 / 2}
569
+ Z
570
+ `;
571
+ e.append("path").attr("d", i).attr("fill", "white").attr("stroke", h.componentStroke).attr("stroke-width", 1), e.append("text").attr("x", n + 60 / 2).attr("y", r + 30 / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", h.axisTextColor).attr("font-weight", "bold").text(t.name);
572
+ });
573
+ }
574
+ if (v.deaccelerators.length > 0) {
575
+ let e = C.append("g").attr("class", "wardley-deaccelerators");
576
+ v.deaccelerators.forEach((t) => {
577
+ let n = D(t.x), r = O(t.y), i = `
578
+ M ${n + 60} ${r - 30 / 2}
579
+ L ${n + 20} ${r - 30 / 2}
580
+ L ${n + 20} ${r - 30 / 2 - 8}
581
+ L ${n} ${r}
582
+ L ${n + 20} ${r + 30 / 2 + 8}
583
+ L ${n + 20} ${r + 30 / 2}
584
+ L ${n + 60} ${r + 30 / 2}
585
+ Z
586
+ `;
587
+ e.append("path").attr("d", i).attr("fill", "white").attr("stroke", h.componentStroke).attr("stroke-width", 1), e.append("text").attr("x", n + 60 / 2).attr("y", r + 30 / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", h.axisTextColor).attr("font-weight", "bold").text(t.name);
588
+ });
589
+ }
590
+ }, "draw") },
591
+ styles: /* @__PURE__ */ n(() => "", "styles")
592
+ };
593
+ //#endregion
594
+ export { G as diagram };