@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,1692 @@
1
+ import { g as e, h as t, p as n } from "./src-DVJl6f6s.mjs";
2
+ import { I as r, f as i, m as a, r as o, s } from "./chunk-ICPOFSXX-BHZIN46A.mjs";
3
+ import { t as c } from "./dist-Ctq-pyfb.mjs";
4
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/linear.js
5
+ function l(e) {
6
+ this._context = e;
7
+ }
8
+ l.prototype = {
9
+ areaStart: function() {
10
+ this._line = 0;
11
+ },
12
+ areaEnd: function() {
13
+ this._line = NaN;
14
+ },
15
+ lineStart: function() {
16
+ this._point = 0;
17
+ },
18
+ lineEnd: function() {
19
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
20
+ },
21
+ point: function(e, t) {
22
+ switch (e = +e, t = +t, this._point) {
23
+ case 0:
24
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
25
+ break;
26
+ case 1: this._point = 2;
27
+ default:
28
+ this._context.lineTo(e, t);
29
+ break;
30
+ }
31
+ }
32
+ };
33
+ function u(e) {
34
+ return new l(e);
35
+ }
36
+ //#endregion
37
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/bump.js
38
+ var d = class {
39
+ constructor(e, t) {
40
+ this._context = e, this._x = t;
41
+ }
42
+ areaStart() {
43
+ this._line = 0;
44
+ }
45
+ areaEnd() {
46
+ this._line = NaN;
47
+ }
48
+ lineStart() {
49
+ this._point = 0;
50
+ }
51
+ lineEnd() {
52
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
53
+ }
54
+ point(e, t) {
55
+ switch (e = +e, t = +t, this._point) {
56
+ case 0:
57
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
58
+ break;
59
+ case 1: this._point = 2;
60
+ default:
61
+ this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
62
+ break;
63
+ }
64
+ this._x0 = e, this._y0 = t;
65
+ }
66
+ };
67
+ function f(e) {
68
+ return new d(e, !0);
69
+ }
70
+ function p(e) {
71
+ return new d(e, !1);
72
+ }
73
+ //#endregion
74
+ //#region node_modules/d3/node_modules/d3-shape/src/noop.js
75
+ function m() {}
76
+ //#endregion
77
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/basis.js
78
+ function h(e, t, n) {
79
+ e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
80
+ }
81
+ function g(e) {
82
+ this._context = e;
83
+ }
84
+ g.prototype = {
85
+ areaStart: function() {
86
+ this._line = 0;
87
+ },
88
+ areaEnd: function() {
89
+ this._line = NaN;
90
+ },
91
+ lineStart: function() {
92
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
93
+ },
94
+ lineEnd: function() {
95
+ switch (this._point) {
96
+ case 3: h(this, this._x1, this._y1);
97
+ case 2:
98
+ this._context.lineTo(this._x1, this._y1);
99
+ break;
100
+ }
101
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
102
+ },
103
+ point: function(e, t) {
104
+ switch (e = +e, t = +t, this._point) {
105
+ case 0:
106
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
107
+ break;
108
+ case 1:
109
+ this._point = 2;
110
+ break;
111
+ case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
112
+ default:
113
+ h(this, e, t);
114
+ break;
115
+ }
116
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
117
+ }
118
+ };
119
+ function ee(e) {
120
+ return new g(e);
121
+ }
122
+ //#endregion
123
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/basisClosed.js
124
+ function te(e) {
125
+ this._context = e;
126
+ }
127
+ te.prototype = {
128
+ areaStart: m,
129
+ areaEnd: m,
130
+ lineStart: function() {
131
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
132
+ },
133
+ lineEnd: function() {
134
+ switch (this._point) {
135
+ case 1:
136
+ this._context.moveTo(this._x2, this._y2), this._context.closePath();
137
+ break;
138
+ case 2:
139
+ this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
140
+ break;
141
+ case 3:
142
+ this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
143
+ break;
144
+ }
145
+ },
146
+ point: function(e, t) {
147
+ switch (e = +e, t = +t, this._point) {
148
+ case 0:
149
+ this._point = 1, this._x2 = e, this._y2 = t;
150
+ break;
151
+ case 1:
152
+ this._point = 2, this._x3 = e, this._y3 = t;
153
+ break;
154
+ case 2:
155
+ this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
156
+ break;
157
+ default:
158
+ h(this, e, t);
159
+ break;
160
+ }
161
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
162
+ }
163
+ };
164
+ function ne(e) {
165
+ return new te(e);
166
+ }
167
+ //#endregion
168
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/basisOpen.js
169
+ function re(e) {
170
+ this._context = e;
171
+ }
172
+ re.prototype = {
173
+ areaStart: function() {
174
+ this._line = 0;
175
+ },
176
+ areaEnd: function() {
177
+ this._line = NaN;
178
+ },
179
+ lineStart: function() {
180
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
181
+ },
182
+ lineEnd: function() {
183
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
184
+ },
185
+ point: function(e, t) {
186
+ switch (e = +e, t = +t, this._point) {
187
+ case 0:
188
+ this._point = 1;
189
+ break;
190
+ case 1:
191
+ this._point = 2;
192
+ break;
193
+ case 2:
194
+ this._point = 3;
195
+ var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
196
+ this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
197
+ break;
198
+ case 3: this._point = 4;
199
+ default:
200
+ h(this, e, t);
201
+ break;
202
+ }
203
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
204
+ }
205
+ };
206
+ function ie(e) {
207
+ return new re(e);
208
+ }
209
+ //#endregion
210
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/bundle.js
211
+ function ae(e, t) {
212
+ this._basis = new g(e), this._beta = t;
213
+ }
214
+ ae.prototype = {
215
+ lineStart: function() {
216
+ this._x = [], this._y = [], this._basis.lineStart();
217
+ },
218
+ lineEnd: function() {
219
+ var e = this._x, t = this._y, n = e.length - 1;
220
+ if (n > 0) for (var r = e[0], i = t[0], a = e[n] - r, o = t[n] - i, s = -1, c; ++s <= n;) c = s / n, this._basis.point(this._beta * e[s] + (1 - this._beta) * (r + c * a), this._beta * t[s] + (1 - this._beta) * (i + c * o));
221
+ this._x = this._y = null, this._basis.lineEnd();
222
+ },
223
+ point: function(e, t) {
224
+ this._x.push(+e), this._y.push(+t);
225
+ }
226
+ };
227
+ var oe = (function e(t) {
228
+ function n(e) {
229
+ return t === 1 ? new g(e) : new ae(e, t);
230
+ }
231
+ return n.beta = function(t) {
232
+ return e(+t);
233
+ }, n;
234
+ })(.85);
235
+ //#endregion
236
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/cardinal.js
237
+ function _(e, t, n) {
238
+ e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
239
+ }
240
+ function v(e, t) {
241
+ this._context = e, this._k = (1 - t) / 6;
242
+ }
243
+ v.prototype = {
244
+ areaStart: function() {
245
+ this._line = 0;
246
+ },
247
+ areaEnd: function() {
248
+ this._line = NaN;
249
+ },
250
+ lineStart: function() {
251
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
252
+ },
253
+ lineEnd: function() {
254
+ switch (this._point) {
255
+ case 2:
256
+ this._context.lineTo(this._x2, this._y2);
257
+ break;
258
+ case 3:
259
+ _(this, this._x1, this._y1);
260
+ break;
261
+ }
262
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
263
+ },
264
+ point: function(e, t) {
265
+ switch (e = +e, t = +t, this._point) {
266
+ case 0:
267
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
268
+ break;
269
+ case 1:
270
+ this._point = 2, this._x1 = e, this._y1 = t;
271
+ break;
272
+ case 2: this._point = 3;
273
+ default:
274
+ _(this, e, t);
275
+ break;
276
+ }
277
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
278
+ }
279
+ };
280
+ var se = (function e(t) {
281
+ function n(e) {
282
+ return new v(e, t);
283
+ }
284
+ return n.tension = function(t) {
285
+ return e(+t);
286
+ }, n;
287
+ })(0);
288
+ //#endregion
289
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/cardinalClosed.js
290
+ function y(e, t) {
291
+ this._context = e, this._k = (1 - t) / 6;
292
+ }
293
+ y.prototype = {
294
+ areaStart: m,
295
+ areaEnd: m,
296
+ lineStart: function() {
297
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
298
+ },
299
+ lineEnd: function() {
300
+ switch (this._point) {
301
+ case 1:
302
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
303
+ break;
304
+ case 2:
305
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
306
+ break;
307
+ case 3:
308
+ this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
309
+ break;
310
+ }
311
+ },
312
+ point: function(e, t) {
313
+ switch (e = +e, t = +t, this._point) {
314
+ case 0:
315
+ this._point = 1, this._x3 = e, this._y3 = t;
316
+ break;
317
+ case 1:
318
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
319
+ break;
320
+ case 2:
321
+ this._point = 3, this._x5 = e, this._y5 = t;
322
+ break;
323
+ default:
324
+ _(this, e, t);
325
+ break;
326
+ }
327
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
328
+ }
329
+ };
330
+ var ce = (function e(t) {
331
+ function n(e) {
332
+ return new y(e, t);
333
+ }
334
+ return n.tension = function(t) {
335
+ return e(+t);
336
+ }, n;
337
+ })(0);
338
+ //#endregion
339
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/cardinalOpen.js
340
+ function b(e, t) {
341
+ this._context = e, this._k = (1 - t) / 6;
342
+ }
343
+ b.prototype = {
344
+ areaStart: function() {
345
+ this._line = 0;
346
+ },
347
+ areaEnd: function() {
348
+ this._line = NaN;
349
+ },
350
+ lineStart: function() {
351
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
352
+ },
353
+ lineEnd: function() {
354
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
355
+ },
356
+ point: function(e, t) {
357
+ switch (e = +e, t = +t, this._point) {
358
+ case 0:
359
+ this._point = 1;
360
+ break;
361
+ case 1:
362
+ this._point = 2;
363
+ break;
364
+ case 2:
365
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
366
+ break;
367
+ case 3: this._point = 4;
368
+ default:
369
+ _(this, e, t);
370
+ break;
371
+ }
372
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
373
+ }
374
+ };
375
+ var le = (function e(t) {
376
+ function n(e) {
377
+ return new b(e, t);
378
+ }
379
+ return n.tension = function(t) {
380
+ return e(+t);
381
+ }, n;
382
+ })(0);
383
+ //#endregion
384
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/catmullRom.js
385
+ function x(e, t, n) {
386
+ var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
387
+ if (e._l01_a > 1e-12) {
388
+ var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
389
+ r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c, i = (i * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c;
390
+ }
391
+ if (e._l23_a > 1e-12) {
392
+ var l = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, u = 3 * e._l23_a * (e._l23_a + e._l12_a);
393
+ a = (a * l + e._x1 * e._l23_2a - t * e._l12_2a) / u, o = (o * l + e._y1 * e._l23_2a - n * e._l12_2a) / u;
394
+ }
395
+ e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
396
+ }
397
+ function ue(e, t) {
398
+ this._context = e, this._alpha = t;
399
+ }
400
+ ue.prototype = {
401
+ areaStart: function() {
402
+ this._line = 0;
403
+ },
404
+ areaEnd: function() {
405
+ this._line = NaN;
406
+ },
407
+ lineStart: function() {
408
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
409
+ },
410
+ lineEnd: function() {
411
+ switch (this._point) {
412
+ case 2:
413
+ this._context.lineTo(this._x2, this._y2);
414
+ break;
415
+ case 3:
416
+ this.point(this._x2, this._y2);
417
+ break;
418
+ }
419
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
420
+ },
421
+ point: function(e, t) {
422
+ if (e = +e, t = +t, this._point) {
423
+ var n = this._x2 - e, r = this._y2 - t;
424
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
425
+ }
426
+ switch (this._point) {
427
+ case 0:
428
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
429
+ break;
430
+ case 1:
431
+ this._point = 2;
432
+ break;
433
+ case 2: this._point = 3;
434
+ default:
435
+ x(this, e, t);
436
+ break;
437
+ }
438
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
439
+ }
440
+ };
441
+ var de = (function e(t) {
442
+ function n(e) {
443
+ return t ? new ue(e, t) : new v(e, 0);
444
+ }
445
+ return n.alpha = function(t) {
446
+ return e(+t);
447
+ }, n;
448
+ })(.5);
449
+ //#endregion
450
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/catmullRomClosed.js
451
+ function fe(e, t) {
452
+ this._context = e, this._alpha = t;
453
+ }
454
+ fe.prototype = {
455
+ areaStart: m,
456
+ areaEnd: m,
457
+ lineStart: function() {
458
+ this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
459
+ },
460
+ lineEnd: function() {
461
+ switch (this._point) {
462
+ case 1:
463
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
464
+ break;
465
+ case 2:
466
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
467
+ break;
468
+ case 3:
469
+ this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
470
+ break;
471
+ }
472
+ },
473
+ point: function(e, t) {
474
+ if (e = +e, t = +t, this._point) {
475
+ var n = this._x2 - e, r = this._y2 - t;
476
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
477
+ }
478
+ switch (this._point) {
479
+ case 0:
480
+ this._point = 1, this._x3 = e, this._y3 = t;
481
+ break;
482
+ case 1:
483
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
484
+ break;
485
+ case 2:
486
+ this._point = 3, this._x5 = e, this._y5 = t;
487
+ break;
488
+ default:
489
+ x(this, e, t);
490
+ break;
491
+ }
492
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
493
+ }
494
+ };
495
+ var pe = (function e(t) {
496
+ function n(e) {
497
+ return t ? new fe(e, t) : new y(e, 0);
498
+ }
499
+ return n.alpha = function(t) {
500
+ return e(+t);
501
+ }, n;
502
+ })(.5);
503
+ //#endregion
504
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/catmullRomOpen.js
505
+ function me(e, t) {
506
+ this._context = e, this._alpha = t;
507
+ }
508
+ me.prototype = {
509
+ areaStart: function() {
510
+ this._line = 0;
511
+ },
512
+ areaEnd: function() {
513
+ this._line = NaN;
514
+ },
515
+ lineStart: function() {
516
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
517
+ },
518
+ lineEnd: function() {
519
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
520
+ },
521
+ point: function(e, t) {
522
+ if (e = +e, t = +t, this._point) {
523
+ var n = this._x2 - e, r = this._y2 - t;
524
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
525
+ }
526
+ switch (this._point) {
527
+ case 0:
528
+ this._point = 1;
529
+ break;
530
+ case 1:
531
+ this._point = 2;
532
+ break;
533
+ case 2:
534
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
535
+ break;
536
+ case 3: this._point = 4;
537
+ default:
538
+ x(this, e, t);
539
+ break;
540
+ }
541
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
542
+ }
543
+ };
544
+ var he = (function e(t) {
545
+ function n(e) {
546
+ return t ? new me(e, t) : new b(e, 0);
547
+ }
548
+ return n.alpha = function(t) {
549
+ return e(+t);
550
+ }, n;
551
+ })(.5);
552
+ //#endregion
553
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/linearClosed.js
554
+ function ge(e) {
555
+ this._context = e;
556
+ }
557
+ ge.prototype = {
558
+ areaStart: m,
559
+ areaEnd: m,
560
+ lineStart: function() {
561
+ this._point = 0;
562
+ },
563
+ lineEnd: function() {
564
+ this._point && this._context.closePath();
565
+ },
566
+ point: function(e, t) {
567
+ e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
568
+ }
569
+ };
570
+ function _e(e) {
571
+ return new ge(e);
572
+ }
573
+ //#endregion
574
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/monotone.js
575
+ function ve(e) {
576
+ return e < 0 ? -1 : 1;
577
+ }
578
+ function ye(e, t, n) {
579
+ var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
580
+ return (ve(a) + ve(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
581
+ }
582
+ function be(e, t) {
583
+ var n = e._x1 - e._x0;
584
+ return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
585
+ }
586
+ function S(e, t, n) {
587
+ var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
588
+ e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
589
+ }
590
+ function C(e) {
591
+ this._context = e;
592
+ }
593
+ C.prototype = {
594
+ areaStart: function() {
595
+ this._line = 0;
596
+ },
597
+ areaEnd: function() {
598
+ this._line = NaN;
599
+ },
600
+ lineStart: function() {
601
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
602
+ },
603
+ lineEnd: function() {
604
+ switch (this._point) {
605
+ case 2:
606
+ this._context.lineTo(this._x1, this._y1);
607
+ break;
608
+ case 3:
609
+ S(this, this._t0, be(this, this._t0));
610
+ break;
611
+ }
612
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
613
+ },
614
+ point: function(e, t) {
615
+ var n = NaN;
616
+ if (e = +e, t = +t, !(e === this._x1 && t === this._y1)) {
617
+ switch (this._point) {
618
+ case 0:
619
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
620
+ break;
621
+ case 1:
622
+ this._point = 2;
623
+ break;
624
+ case 2:
625
+ this._point = 3, S(this, be(this, n = ye(this, e, t)), n);
626
+ break;
627
+ default:
628
+ S(this, this._t0, n = ye(this, e, t));
629
+ break;
630
+ }
631
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
632
+ }
633
+ }
634
+ };
635
+ function xe(e) {
636
+ this._context = new Se(e);
637
+ }
638
+ (xe.prototype = Object.create(C.prototype)).point = function(e, t) {
639
+ C.prototype.point.call(this, t, e);
640
+ };
641
+ function Se(e) {
642
+ this._context = e;
643
+ }
644
+ Se.prototype = {
645
+ moveTo: function(e, t) {
646
+ this._context.moveTo(t, e);
647
+ },
648
+ closePath: function() {
649
+ this._context.closePath();
650
+ },
651
+ lineTo: function(e, t) {
652
+ this._context.lineTo(t, e);
653
+ },
654
+ bezierCurveTo: function(e, t, n, r, i, a) {
655
+ this._context.bezierCurveTo(t, e, r, n, a, i);
656
+ }
657
+ };
658
+ function Ce(e) {
659
+ return new C(e);
660
+ }
661
+ function we(e) {
662
+ return new xe(e);
663
+ }
664
+ //#endregion
665
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/natural.js
666
+ function Te(e) {
667
+ this._context = e;
668
+ }
669
+ Te.prototype = {
670
+ areaStart: function() {
671
+ this._line = 0;
672
+ },
673
+ areaEnd: function() {
674
+ this._line = NaN;
675
+ },
676
+ lineStart: function() {
677
+ this._x = [], this._y = [];
678
+ },
679
+ lineEnd: function() {
680
+ var e = this._x, t = this._y, n = e.length;
681
+ if (n) if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
682
+ else for (var r = Ee(e), i = Ee(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
683
+ (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
684
+ },
685
+ point: function(e, t) {
686
+ this._x.push(+e), this._y.push(+t);
687
+ }
688
+ };
689
+ function Ee(e) {
690
+ var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
691
+ for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
692
+ for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
693
+ for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];
694
+ for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
695
+ return [i, a];
696
+ }
697
+ function De(e) {
698
+ return new Te(e);
699
+ }
700
+ //#endregion
701
+ //#region node_modules/d3/node_modules/d3-shape/src/curve/step.js
702
+ function w(e, t) {
703
+ this._context = e, this._t = t;
704
+ }
705
+ w.prototype = {
706
+ areaStart: function() {
707
+ this._line = 0;
708
+ },
709
+ areaEnd: function() {
710
+ this._line = NaN;
711
+ },
712
+ lineStart: function() {
713
+ this._x = this._y = NaN, this._point = 0;
714
+ },
715
+ lineEnd: function() {
716
+ 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
717
+ },
718
+ point: function(e, t) {
719
+ switch (e = +e, t = +t, this._point) {
720
+ case 0:
721
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
722
+ break;
723
+ case 1: this._point = 2;
724
+ default:
725
+ if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
726
+ else {
727
+ var n = this._x * (1 - this._t) + e * this._t;
728
+ this._context.lineTo(n, this._y), this._context.lineTo(n, t);
729
+ }
730
+ break;
731
+ }
732
+ this._x = e, this._y = t;
733
+ }
734
+ };
735
+ function Oe(e) {
736
+ return new w(e, .5);
737
+ }
738
+ function ke(e) {
739
+ return new w(e, 0);
740
+ }
741
+ function Ae(e) {
742
+ return new w(e, 1);
743
+ }
744
+ //#endregion
745
+ //#region node_modules/mermaid/node_modules/lodash-es/_freeGlobal.js
746
+ var je = typeof global == "object" && global && global.Object === Object && global, Me = typeof self == "object" && self && self.Object === Object && self, T = je || Me || Function("return this")(), E = T.Symbol, Ne = Object.prototype, Pe = Ne.hasOwnProperty, Fe = Ne.toString, D = E ? E.toStringTag : void 0;
747
+ function Ie(e) {
748
+ var t = Pe.call(e, D), n = e[D];
749
+ try {
750
+ e[D] = void 0;
751
+ var r = !0;
752
+ } catch (e) {}
753
+ var i = Fe.call(e);
754
+ return r && (t ? e[D] = n : delete e[D]), i;
755
+ }
756
+ //#endregion
757
+ //#region node_modules/mermaid/node_modules/lodash-es/_objectToString.js
758
+ var Le = Object.prototype.toString;
759
+ function Re(e) {
760
+ return Le.call(e);
761
+ }
762
+ //#endregion
763
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseGetTag.js
764
+ var ze = "[object Null]", Be = "[object Undefined]", Ve = E ? E.toStringTag : void 0;
765
+ function O(e) {
766
+ return e == null ? e === void 0 ? Be : ze : Ve && Ve in Object(e) ? Ie(e) : Re(e);
767
+ }
768
+ //#endregion
769
+ //#region node_modules/mermaid/node_modules/lodash-es/isObject.js
770
+ function k(e) {
771
+ var t = typeof e;
772
+ return e != null && (t == "object" || t == "function");
773
+ }
774
+ //#endregion
775
+ //#region node_modules/mermaid/node_modules/lodash-es/isFunction.js
776
+ var He = "[object AsyncFunction]", Ue = "[object Function]", We = "[object GeneratorFunction]", Ge = "[object Proxy]";
777
+ function A(e) {
778
+ if (!k(e)) return !1;
779
+ var t = O(e);
780
+ return t == Ue || t == We || t == He || t == Ge;
781
+ }
782
+ //#endregion
783
+ //#region node_modules/mermaid/node_modules/lodash-es/_coreJsData.js
784
+ var j = T["__core-js_shared__"], Ke = function() {
785
+ var e = /[^.]+$/.exec(j && j.keys && j.keys.IE_PROTO || "");
786
+ return e ? "Symbol(src)_1." + e : "";
787
+ }();
788
+ function qe(e) {
789
+ return !!Ke && Ke in e;
790
+ }
791
+ //#endregion
792
+ //#region node_modules/mermaid/node_modules/lodash-es/_toSource.js
793
+ var Je = Function.prototype.toString;
794
+ function Ye(e) {
795
+ if (e != null) {
796
+ try {
797
+ return Je.call(e);
798
+ } catch (e) {}
799
+ try {
800
+ return e + "";
801
+ } catch (e) {}
802
+ }
803
+ return "";
804
+ }
805
+ //#endregion
806
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseIsNative.js
807
+ var Xe = /[\\^$.*+?()[\]{}|]/g, Ze = /^\[object .+?Constructor\]$/, Qe = Function.prototype, $e = Object.prototype, et = Qe.toString, tt = $e.hasOwnProperty, nt = RegExp("^" + et.call(tt).replace(Xe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
808
+ function rt(e) {
809
+ return !k(e) || qe(e) ? !1 : (A(e) ? nt : Ze).test(Ye(e));
810
+ }
811
+ //#endregion
812
+ //#region node_modules/mermaid/node_modules/lodash-es/_getValue.js
813
+ function it(e, t) {
814
+ return e == null ? void 0 : e[t];
815
+ }
816
+ //#endregion
817
+ //#region node_modules/mermaid/node_modules/lodash-es/_getNative.js
818
+ function M(e, t) {
819
+ var n = it(e, t);
820
+ return rt(n) ? n : void 0;
821
+ }
822
+ //#endregion
823
+ //#region node_modules/mermaid/node_modules/lodash-es/_nativeCreate.js
824
+ var N = M(Object, "create");
825
+ //#endregion
826
+ //#region node_modules/mermaid/node_modules/lodash-es/_hashClear.js
827
+ function at() {
828
+ this.__data__ = N ? N(null) : {}, this.size = 0;
829
+ }
830
+ //#endregion
831
+ //#region node_modules/mermaid/node_modules/lodash-es/_hashDelete.js
832
+ function ot(e) {
833
+ var t = this.has(e) && delete this.__data__[e];
834
+ return this.size -= t ? 1 : 0, t;
835
+ }
836
+ //#endregion
837
+ //#region node_modules/mermaid/node_modules/lodash-es/_hashGet.js
838
+ var st = "__lodash_hash_undefined__", ct = Object.prototype.hasOwnProperty;
839
+ function lt(e) {
840
+ var t = this.__data__;
841
+ if (N) {
842
+ var n = t[e];
843
+ return n === st ? void 0 : n;
844
+ }
845
+ return ct.call(t, e) ? t[e] : void 0;
846
+ }
847
+ //#endregion
848
+ //#region node_modules/mermaid/node_modules/lodash-es/_hashHas.js
849
+ var ut = Object.prototype.hasOwnProperty;
850
+ function dt(e) {
851
+ var t = this.__data__;
852
+ return N ? t[e] !== void 0 : ut.call(t, e);
853
+ }
854
+ //#endregion
855
+ //#region node_modules/mermaid/node_modules/lodash-es/_hashSet.js
856
+ var ft = "__lodash_hash_undefined__";
857
+ function pt(e, t) {
858
+ var n = this.__data__;
859
+ return this.size += this.has(e) ? 0 : 1, n[e] = N && t === void 0 ? ft : t, this;
860
+ }
861
+ //#endregion
862
+ //#region node_modules/mermaid/node_modules/lodash-es/_Hash.js
863
+ function P(e) {
864
+ var t = -1, n = e == null ? 0 : e.length;
865
+ for (this.clear(); ++t < n;) {
866
+ var r = e[t];
867
+ this.set(r[0], r[1]);
868
+ }
869
+ }
870
+ P.prototype.clear = at, P.prototype.delete = ot, P.prototype.get = lt, P.prototype.has = dt, P.prototype.set = pt;
871
+ //#endregion
872
+ //#region node_modules/mermaid/node_modules/lodash-es/_listCacheClear.js
873
+ function mt() {
874
+ this.__data__ = [], this.size = 0;
875
+ }
876
+ //#endregion
877
+ //#region node_modules/mermaid/node_modules/lodash-es/eq.js
878
+ function F(e, t) {
879
+ return e === t || e !== e && t !== t;
880
+ }
881
+ //#endregion
882
+ //#region node_modules/mermaid/node_modules/lodash-es/_assocIndexOf.js
883
+ function I(e, t) {
884
+ for (var n = e.length; n--;) if (F(e[n][0], t)) return n;
885
+ return -1;
886
+ }
887
+ //#endregion
888
+ //#region node_modules/mermaid/node_modules/lodash-es/_listCacheDelete.js
889
+ var ht = Array.prototype.splice;
890
+ function gt(e) {
891
+ var t = this.__data__, n = I(t, e);
892
+ return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : ht.call(t, n, 1), --this.size, !0);
893
+ }
894
+ //#endregion
895
+ //#region node_modules/mermaid/node_modules/lodash-es/_listCacheGet.js
896
+ function _t(e) {
897
+ var t = this.__data__, n = I(t, e);
898
+ return n < 0 ? void 0 : t[n][1];
899
+ }
900
+ //#endregion
901
+ //#region node_modules/mermaid/node_modules/lodash-es/_listCacheHas.js
902
+ function vt(e) {
903
+ return I(this.__data__, e) > -1;
904
+ }
905
+ //#endregion
906
+ //#region node_modules/mermaid/node_modules/lodash-es/_listCacheSet.js
907
+ function yt(e, t) {
908
+ var n = this.__data__, r = I(n, e);
909
+ return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
910
+ }
911
+ //#endregion
912
+ //#region node_modules/mermaid/node_modules/lodash-es/_ListCache.js
913
+ function L(e) {
914
+ var t = -1, n = e == null ? 0 : e.length;
915
+ for (this.clear(); ++t < n;) {
916
+ var r = e[t];
917
+ this.set(r[0], r[1]);
918
+ }
919
+ }
920
+ L.prototype.clear = mt, L.prototype.delete = gt, L.prototype.get = _t, L.prototype.has = vt, L.prototype.set = yt;
921
+ //#endregion
922
+ //#region node_modules/mermaid/node_modules/lodash-es/_Map.js
923
+ var bt = M(T, "Map");
924
+ //#endregion
925
+ //#region node_modules/mermaid/node_modules/lodash-es/_mapCacheClear.js
926
+ function xt() {
927
+ this.size = 0, this.__data__ = {
928
+ hash: new P(),
929
+ map: new (bt || L)(),
930
+ string: new P()
931
+ };
932
+ }
933
+ //#endregion
934
+ //#region node_modules/mermaid/node_modules/lodash-es/_isKeyable.js
935
+ function St(e) {
936
+ var t = typeof e;
937
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
938
+ }
939
+ //#endregion
940
+ //#region node_modules/mermaid/node_modules/lodash-es/_getMapData.js
941
+ function R(e, t) {
942
+ var n = e.__data__;
943
+ return St(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
944
+ }
945
+ //#endregion
946
+ //#region node_modules/mermaid/node_modules/lodash-es/_mapCacheDelete.js
947
+ function Ct(e) {
948
+ var t = R(this, e).delete(e);
949
+ return this.size -= t ? 1 : 0, t;
950
+ }
951
+ //#endregion
952
+ //#region node_modules/mermaid/node_modules/lodash-es/_mapCacheGet.js
953
+ function wt(e) {
954
+ return R(this, e).get(e);
955
+ }
956
+ //#endregion
957
+ //#region node_modules/mermaid/node_modules/lodash-es/_mapCacheHas.js
958
+ function Tt(e) {
959
+ return R(this, e).has(e);
960
+ }
961
+ //#endregion
962
+ //#region node_modules/mermaid/node_modules/lodash-es/_mapCacheSet.js
963
+ function Et(e, t) {
964
+ var n = R(this, e), r = n.size;
965
+ return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
966
+ }
967
+ //#endregion
968
+ //#region node_modules/mermaid/node_modules/lodash-es/_MapCache.js
969
+ function z(e) {
970
+ var t = -1, n = e == null ? 0 : e.length;
971
+ for (this.clear(); ++t < n;) {
972
+ var r = e[t];
973
+ this.set(r[0], r[1]);
974
+ }
975
+ }
976
+ z.prototype.clear = xt, z.prototype.delete = Ct, z.prototype.get = wt, z.prototype.has = Tt, z.prototype.set = Et;
977
+ //#endregion
978
+ //#region node_modules/mermaid/node_modules/lodash-es/memoize.js
979
+ var Dt = "Expected a function";
980
+ function B(e, t) {
981
+ if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(Dt);
982
+ var n = function() {
983
+ var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
984
+ if (a.has(i)) return a.get(i);
985
+ var o = e.apply(this, r);
986
+ return n.cache = a.set(i, o) || a, o;
987
+ };
988
+ return n.cache = new (B.Cache || z)(), n;
989
+ }
990
+ B.Cache = z;
991
+ //#endregion
992
+ //#region node_modules/mermaid/node_modules/lodash-es/_stackClear.js
993
+ function Ot() {
994
+ this.__data__ = new L(), this.size = 0;
995
+ }
996
+ //#endregion
997
+ //#region node_modules/mermaid/node_modules/lodash-es/_stackDelete.js
998
+ function kt(e) {
999
+ var t = this.__data__, n = t.delete(e);
1000
+ return this.size = t.size, n;
1001
+ }
1002
+ //#endregion
1003
+ //#region node_modules/mermaid/node_modules/lodash-es/_stackGet.js
1004
+ function At(e) {
1005
+ return this.__data__.get(e);
1006
+ }
1007
+ //#endregion
1008
+ //#region node_modules/mermaid/node_modules/lodash-es/_stackHas.js
1009
+ function jt(e) {
1010
+ return this.__data__.has(e);
1011
+ }
1012
+ //#endregion
1013
+ //#region node_modules/mermaid/node_modules/lodash-es/_stackSet.js
1014
+ var Mt = 200;
1015
+ function Nt(e, t) {
1016
+ var n = this.__data__;
1017
+ if (n instanceof L) {
1018
+ var r = n.__data__;
1019
+ if (!bt || r.length < Mt - 1) return r.push([e, t]), this.size = ++n.size, this;
1020
+ n = this.__data__ = new z(r);
1021
+ }
1022
+ return n.set(e, t), this.size = n.size, this;
1023
+ }
1024
+ //#endregion
1025
+ //#region node_modules/mermaid/node_modules/lodash-es/_Stack.js
1026
+ function V(e) {
1027
+ this.size = (this.__data__ = new L(e)).size;
1028
+ }
1029
+ V.prototype.clear = Ot, V.prototype.delete = kt, V.prototype.get = At, V.prototype.has = jt, V.prototype.set = Nt;
1030
+ //#endregion
1031
+ //#region node_modules/mermaid/node_modules/lodash-es/_defineProperty.js
1032
+ var H = function() {
1033
+ try {
1034
+ var e = M(Object, "defineProperty");
1035
+ return e({}, "", {}), e;
1036
+ } catch (e) {}
1037
+ }();
1038
+ //#endregion
1039
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseAssignValue.js
1040
+ function Pt(e, t, n) {
1041
+ t == "__proto__" && H ? H(e, t, {
1042
+ configurable: !0,
1043
+ enumerable: !0,
1044
+ value: n,
1045
+ writable: !0
1046
+ }) : e[t] = n;
1047
+ }
1048
+ //#endregion
1049
+ //#region node_modules/mermaid/node_modules/lodash-es/_assignMergeValue.js
1050
+ function Ft(e, t, n) {
1051
+ (n !== void 0 && !F(e[t], n) || n === void 0 && !(t in e)) && Pt(e, t, n);
1052
+ }
1053
+ //#endregion
1054
+ //#region node_modules/mermaid/node_modules/lodash-es/_createBaseFor.js
1055
+ function It(e) {
1056
+ return function(t, n, r) {
1057
+ for (var i = -1, a = Object(t), o = r(t), s = o.length; s--;) {
1058
+ var c = o[e ? s : ++i];
1059
+ if (n(a[c], c, a) === !1) break;
1060
+ }
1061
+ return t;
1062
+ };
1063
+ }
1064
+ //#endregion
1065
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseFor.js
1066
+ var Lt = It(), Rt = typeof exports == "object" && exports && !exports.nodeType && exports, zt = Rt && typeof module == "object" && module && !module.nodeType && module, Bt = zt && zt.exports === Rt ? T.Buffer : void 0, Vt = Bt ? Bt.allocUnsafe : void 0;
1067
+ function Ht(e, t) {
1068
+ if (t) return e.slice();
1069
+ var n = e.length, r = Vt ? Vt(n) : new e.constructor(n);
1070
+ return e.copy(r), r;
1071
+ }
1072
+ //#endregion
1073
+ //#region node_modules/mermaid/node_modules/lodash-es/_Uint8Array.js
1074
+ var Ut = T.Uint8Array;
1075
+ //#endregion
1076
+ //#region node_modules/mermaid/node_modules/lodash-es/_cloneArrayBuffer.js
1077
+ function Wt(e) {
1078
+ var t = new e.constructor(e.byteLength);
1079
+ return new Ut(t).set(new Ut(e)), t;
1080
+ }
1081
+ //#endregion
1082
+ //#region node_modules/mermaid/node_modules/lodash-es/_cloneTypedArray.js
1083
+ function Gt(e, t) {
1084
+ var n = t ? Wt(e.buffer) : e.buffer;
1085
+ return new e.constructor(n, e.byteOffset, e.length);
1086
+ }
1087
+ //#endregion
1088
+ //#region node_modules/mermaid/node_modules/lodash-es/_copyArray.js
1089
+ function Kt(e, t) {
1090
+ var n = -1, r = e.length;
1091
+ for (t || (t = Array(r)); ++n < r;) t[n] = e[n];
1092
+ return t;
1093
+ }
1094
+ //#endregion
1095
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseCreate.js
1096
+ var qt = Object.create, Jt = function() {
1097
+ function e() {}
1098
+ return function(t) {
1099
+ if (!k(t)) return {};
1100
+ if (qt) return qt(t);
1101
+ e.prototype = t;
1102
+ var n = new e();
1103
+ return e.prototype = void 0, n;
1104
+ };
1105
+ }();
1106
+ //#endregion
1107
+ //#region node_modules/mermaid/node_modules/lodash-es/_overArg.js
1108
+ function Yt(e, t) {
1109
+ return function(n) {
1110
+ return e(t(n));
1111
+ };
1112
+ }
1113
+ //#endregion
1114
+ //#region node_modules/mermaid/node_modules/lodash-es/_getPrototype.js
1115
+ var Xt = Yt(Object.getPrototypeOf, Object), Zt = Object.prototype;
1116
+ function U(e) {
1117
+ var t = e && e.constructor;
1118
+ return e === (typeof t == "function" && t.prototype || Zt);
1119
+ }
1120
+ //#endregion
1121
+ //#region node_modules/mermaid/node_modules/lodash-es/_initCloneObject.js
1122
+ function Qt(e) {
1123
+ return typeof e.constructor == "function" && !U(e) ? Jt(Xt(e)) : {};
1124
+ }
1125
+ //#endregion
1126
+ //#region node_modules/mermaid/node_modules/lodash-es/isObjectLike.js
1127
+ function W(e) {
1128
+ return typeof e == "object" && !!e;
1129
+ }
1130
+ //#endregion
1131
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseIsArguments.js
1132
+ var $t = "[object Arguments]";
1133
+ function en(e) {
1134
+ return W(e) && O(e) == $t;
1135
+ }
1136
+ //#endregion
1137
+ //#region node_modules/mermaid/node_modules/lodash-es/isArguments.js
1138
+ var tn = Object.prototype, nn = tn.hasOwnProperty, rn = tn.propertyIsEnumerable, G = en(function() {
1139
+ return arguments;
1140
+ }()) ? en : function(e) {
1141
+ return W(e) && nn.call(e, "callee") && !rn.call(e, "callee");
1142
+ }, K = Array.isArray, an = 9007199254740991;
1143
+ function on(e) {
1144
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= an;
1145
+ }
1146
+ //#endregion
1147
+ //#region node_modules/mermaid/node_modules/lodash-es/isArrayLike.js
1148
+ function q(e) {
1149
+ return e != null && on(e.length) && !A(e);
1150
+ }
1151
+ //#endregion
1152
+ //#region node_modules/mermaid/node_modules/lodash-es/isArrayLikeObject.js
1153
+ function sn(e) {
1154
+ return W(e) && q(e);
1155
+ }
1156
+ //#endregion
1157
+ //#region node_modules/mermaid/node_modules/lodash-es/stubFalse.js
1158
+ function cn() {
1159
+ return !1;
1160
+ }
1161
+ //#endregion
1162
+ //#region node_modules/mermaid/node_modules/lodash-es/isBuffer.js
1163
+ var ln = typeof exports == "object" && exports && !exports.nodeType && exports, un = ln && typeof module == "object" && module && !module.nodeType && module, dn = un && un.exports === ln ? T.Buffer : void 0, J = (dn ? dn.isBuffer : void 0) || cn, fn = "[object Object]", pn = Function.prototype, mn = Object.prototype, hn = pn.toString, gn = mn.hasOwnProperty, _n = hn.call(Object);
1164
+ function vn(e) {
1165
+ if (!W(e) || O(e) != fn) return !1;
1166
+ var t = Xt(e);
1167
+ if (t === null) return !0;
1168
+ var n = gn.call(t, "constructor") && t.constructor;
1169
+ return typeof n == "function" && n instanceof n && hn.call(n) == _n;
1170
+ }
1171
+ //#endregion
1172
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseIsTypedArray.js
1173
+ var yn = "[object Arguments]", bn = "[object Array]", xn = "[object Boolean]", Sn = "[object Date]", Cn = "[object Error]", wn = "[object Function]", Tn = "[object Map]", En = "[object Number]", Dn = "[object Object]", On = "[object RegExp]", kn = "[object Set]", An = "[object String]", jn = "[object WeakMap]", Mn = "[object ArrayBuffer]", Nn = "[object DataView]", Pn = "[object Float32Array]", Fn = "[object Float64Array]", In = "[object Int8Array]", Ln = "[object Int16Array]", Rn = "[object Int32Array]", zn = "[object Uint8Array]", Bn = "[object Uint8ClampedArray]", Vn = "[object Uint16Array]", Hn = "[object Uint32Array]", Y = {};
1174
+ Y[Pn] = Y[Fn] = Y[In] = Y[Ln] = Y[Rn] = Y[zn] = Y[Bn] = Y[Vn] = Y[Hn] = !0, Y[yn] = Y[bn] = Y[Mn] = Y[xn] = Y[Nn] = Y[Sn] = Y[Cn] = Y[wn] = Y[Tn] = Y[En] = Y[Dn] = Y[On] = Y[kn] = Y[An] = Y[jn] = !1;
1175
+ function Un(e) {
1176
+ return W(e) && on(e.length) && !!Y[O(e)];
1177
+ }
1178
+ //#endregion
1179
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseUnary.js
1180
+ function Wn(e) {
1181
+ return function(t) {
1182
+ return e(t);
1183
+ };
1184
+ }
1185
+ //#endregion
1186
+ //#region node_modules/mermaid/node_modules/lodash-es/_nodeUtil.js
1187
+ var Gn = typeof exports == "object" && exports && !exports.nodeType && exports, X = Gn && typeof module == "object" && module && !module.nodeType && module, Kn = X && X.exports === Gn && je.process, qn = function() {
1188
+ try {
1189
+ return X && X.require && X.require("util").types || Kn && Kn.binding && Kn.binding("util");
1190
+ } catch (e) {}
1191
+ }(), Jn = qn && qn.isTypedArray, Yn = Jn ? Wn(Jn) : Un;
1192
+ //#endregion
1193
+ //#region node_modules/mermaid/node_modules/lodash-es/_safeGet.js
1194
+ function Xn(e, t) {
1195
+ if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") return e[t];
1196
+ }
1197
+ //#endregion
1198
+ //#region node_modules/mermaid/node_modules/lodash-es/_assignValue.js
1199
+ var Zn = Object.prototype.hasOwnProperty;
1200
+ function Qn(e, t, n) {
1201
+ var r = e[t];
1202
+ (!(Zn.call(e, t) && F(r, n)) || n === void 0 && !(t in e)) && Pt(e, t, n);
1203
+ }
1204
+ //#endregion
1205
+ //#region node_modules/mermaid/node_modules/lodash-es/_copyObject.js
1206
+ function $n(e, t, n, r) {
1207
+ var i = !n;
1208
+ n || (n = {});
1209
+ for (var a = -1, o = t.length; ++a < o;) {
1210
+ var s = t[a], c = r ? r(n[s], e[s], s, n, e) : void 0;
1211
+ c === void 0 && (c = e[s]), i ? Pt(n, s, c) : Qn(n, s, c);
1212
+ }
1213
+ return n;
1214
+ }
1215
+ //#endregion
1216
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseTimes.js
1217
+ function er(e, t) {
1218
+ for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
1219
+ return r;
1220
+ }
1221
+ //#endregion
1222
+ //#region node_modules/mermaid/node_modules/lodash-es/_isIndex.js
1223
+ var tr = 9007199254740991, nr = /^(?:0|[1-9]\d*)$/;
1224
+ function rr(e, t) {
1225
+ var n = typeof e;
1226
+ return t = t == null ? tr : t, !!t && (n == "number" || n != "symbol" && nr.test(e)) && e > -1 && e % 1 == 0 && e < t;
1227
+ }
1228
+ //#endregion
1229
+ //#region node_modules/mermaid/node_modules/lodash-es/_arrayLikeKeys.js
1230
+ var ir = Object.prototype.hasOwnProperty;
1231
+ function ar(e, t) {
1232
+ var n = K(e), r = !n && G(e), i = !n && !r && J(e), a = !n && !r && !i && Yn(e), o = n || r || i || a, s = o ? er(e.length, String) : [], c = s.length;
1233
+ for (var l in e) (t || ir.call(e, l)) && !(o && (l == "length" || i && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || rr(l, c))) && s.push(l);
1234
+ return s;
1235
+ }
1236
+ //#endregion
1237
+ //#region node_modules/mermaid/node_modules/lodash-es/_nativeKeysIn.js
1238
+ function or(e) {
1239
+ var t = [];
1240
+ if (e != null) for (var n in Object(e)) t.push(n);
1241
+ return t;
1242
+ }
1243
+ //#endregion
1244
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseKeysIn.js
1245
+ var sr = Object.prototype.hasOwnProperty;
1246
+ function cr(e) {
1247
+ if (!k(e)) return or(e);
1248
+ var t = U(e), n = [];
1249
+ for (var r in e) r == "constructor" && (t || !sr.call(e, r)) || n.push(r);
1250
+ return n;
1251
+ }
1252
+ //#endregion
1253
+ //#region node_modules/mermaid/node_modules/lodash-es/keysIn.js
1254
+ function lr(e) {
1255
+ return q(e) ? ar(e, !0) : cr(e);
1256
+ }
1257
+ //#endregion
1258
+ //#region node_modules/mermaid/node_modules/lodash-es/toPlainObject.js
1259
+ function ur(e) {
1260
+ return $n(e, lr(e));
1261
+ }
1262
+ //#endregion
1263
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseMergeDeep.js
1264
+ function dr(e, t, n, r, i, a, o) {
1265
+ var s = Xn(e, n), c = Xn(t, n), l = o.get(c);
1266
+ if (l) {
1267
+ Ft(e, n, l);
1268
+ return;
1269
+ }
1270
+ var u = a ? a(s, c, n + "", e, t, o) : void 0, d = u === void 0;
1271
+ if (d) {
1272
+ var f = K(c), p = !f && J(c), m = !f && !p && Yn(c);
1273
+ u = c, f || p || m ? K(s) ? u = s : sn(s) ? u = Kt(s) : p ? (d = !1, u = Ht(c, !0)) : m ? (d = !1, u = Gt(c, !0)) : u = [] : vn(c) || G(c) ? (u = s, G(s) ? u = ur(s) : (!k(s) || A(s)) && (u = Qt(c))) : d = !1;
1274
+ }
1275
+ d && (o.set(c, u), i(u, c, r, a, o), o.delete(c)), Ft(e, n, u);
1276
+ }
1277
+ //#endregion
1278
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseMerge.js
1279
+ function fr(e, t, n, r, i) {
1280
+ e !== t && Lt(t, function(a, o) {
1281
+ if (i || (i = new V()), k(a)) dr(e, t, o, n, fr, r, i);
1282
+ else {
1283
+ var s = r ? r(Xn(e, o), a, o + "", e, t, i) : void 0;
1284
+ s === void 0 && (s = a), Ft(e, o, s);
1285
+ }
1286
+ }, lr);
1287
+ }
1288
+ //#endregion
1289
+ //#region node_modules/mermaid/node_modules/lodash-es/identity.js
1290
+ function pr(e) {
1291
+ return e;
1292
+ }
1293
+ //#endregion
1294
+ //#region node_modules/mermaid/node_modules/lodash-es/_apply.js
1295
+ function mr(e, t, n) {
1296
+ switch (n.length) {
1297
+ case 0: return e.call(t);
1298
+ case 1: return e.call(t, n[0]);
1299
+ case 2: return e.call(t, n[0], n[1]);
1300
+ case 3: return e.call(t, n[0], n[1], n[2]);
1301
+ }
1302
+ return e.apply(t, n);
1303
+ }
1304
+ //#endregion
1305
+ //#region node_modules/mermaid/node_modules/lodash-es/_overRest.js
1306
+ var hr = Math.max;
1307
+ function gr(e, t, n) {
1308
+ return t = hr(t === void 0 ? e.length - 1 : t, 0), function() {
1309
+ for (var r = arguments, i = -1, a = hr(r.length - t, 0), o = Array(a); ++i < a;) o[i] = r[t + i];
1310
+ i = -1;
1311
+ for (var s = Array(t + 1); ++i < t;) s[i] = r[i];
1312
+ return s[t] = n(o), mr(e, this, s);
1313
+ };
1314
+ }
1315
+ //#endregion
1316
+ //#region node_modules/mermaid/node_modules/lodash-es/constant.js
1317
+ function _r(e) {
1318
+ return function() {
1319
+ return e;
1320
+ };
1321
+ }
1322
+ //#endregion
1323
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseSetToString.js
1324
+ var vr = H ? function(e, t) {
1325
+ return H(e, "toString", {
1326
+ configurable: !0,
1327
+ enumerable: !1,
1328
+ value: _r(t),
1329
+ writable: !0
1330
+ });
1331
+ } : pr, yr = 800, br = 16, xr = Date.now;
1332
+ function Sr(e) {
1333
+ var t = 0, n = 0;
1334
+ return function() {
1335
+ var r = xr(), i = br - (r - n);
1336
+ if (n = r, i > 0) {
1337
+ if (++t >= yr) return arguments[0];
1338
+ } else t = 0;
1339
+ return e.apply(void 0, arguments);
1340
+ };
1341
+ }
1342
+ //#endregion
1343
+ //#region node_modules/mermaid/node_modules/lodash-es/_setToString.js
1344
+ var Cr = Sr(vr);
1345
+ //#endregion
1346
+ //#region node_modules/mermaid/node_modules/lodash-es/_baseRest.js
1347
+ function wr(e, t) {
1348
+ return Cr(gr(e, t, pr), e + "");
1349
+ }
1350
+ //#endregion
1351
+ //#region node_modules/mermaid/node_modules/lodash-es/_isIterateeCall.js
1352
+ function Tr(e, t, n) {
1353
+ if (!k(n)) return !1;
1354
+ var r = typeof t;
1355
+ return (r == "number" ? q(n) && rr(t, n.length) : r == "string" && t in n) ? F(n[t], e) : !1;
1356
+ }
1357
+ //#endregion
1358
+ //#region node_modules/mermaid/node_modules/lodash-es/_createAssigner.js
1359
+ function Er(e) {
1360
+ return wr(function(t, n) {
1361
+ var r = -1, i = n.length, a = i > 1 ? n[i - 1] : void 0, o = i > 2 ? n[2] : void 0;
1362
+ for (a = e.length > 3 && typeof a == "function" ? (i--, a) : void 0, o && Tr(n[0], n[1], o) && (a = i < 3 ? void 0 : a, i = 1), t = Object(t); ++r < i;) {
1363
+ var s = n[r];
1364
+ s && e(t, s, r, a);
1365
+ }
1366
+ return t;
1367
+ });
1368
+ }
1369
+ //#endregion
1370
+ //#region node_modules/mermaid/node_modules/lodash-es/merge.js
1371
+ var Dr = Er(function(e, t, n) {
1372
+ fr(e, t, n);
1373
+ }), Or = c(), kr, Ar = {
1374
+ curveBasis: ee,
1375
+ curveBasisClosed: ne,
1376
+ curveBasisOpen: ie,
1377
+ curveBumpX: f,
1378
+ curveBumpY: p,
1379
+ curveBundle: oe,
1380
+ curveCardinalClosed: ce,
1381
+ curveCardinalOpen: le,
1382
+ curveCardinal: se,
1383
+ curveCatmullRomClosed: pe,
1384
+ curveCatmullRomOpen: he,
1385
+ curveCatmullRom: de,
1386
+ curveLinear: u,
1387
+ curveLinearClosed: _e,
1388
+ curveMonotoneX: Ce,
1389
+ curveMonotoneY: we,
1390
+ curveNatural: De,
1391
+ curveStep: Oe,
1392
+ curveStepAfter: Ae,
1393
+ curveStepBefore: ke
1394
+ }, jr = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Mr = /* @__PURE__ */ t(function(e, t) {
1395
+ let n = Nr(e, /(?:init\b)|(?:initialize\b)/), a = {};
1396
+ if (Array.isArray(n)) {
1397
+ let e = n.map((e) => e.args);
1398
+ r(e), a = o(a, [...e]);
1399
+ } else a = n.args;
1400
+ if (!a) return;
1401
+ let s = i(e, t), c = "config";
1402
+ return a[c] !== void 0 && (s === "flowchart-v2" && (s = "flowchart"), a[s] = a[c], delete a[c]), a;
1403
+ }, "detectInit"), Nr = /* @__PURE__ */ t(function(t, n = null) {
1404
+ try {
1405
+ let o = RegExp(`[%]{2}(?![{]${jr.source})(?=[}][%]{2}).*
1406
+ `, "ig");
1407
+ t = t.trim().replace(o, "").replace(/'/gm, "\""), e.debug(`Detecting diagram directive${n === null ? "" : " type:" + n} based on the text:${t}`);
1408
+ let s, c = [];
1409
+ for (; (s = a.exec(t)) !== null;) {
1410
+ var r, i;
1411
+ if (s.index === a.lastIndex && a.lastIndex++, s && !n || n && (r = s[1]) != null && r.match(n) || n && (i = s[2]) != null && i.match(n)) {
1412
+ let e = s[1] ? s[1] : s[2], t = s[3] ? s[3].trim() : s[4] ? JSON.parse(s[4].trim()) : null;
1413
+ c.push({
1414
+ type: e,
1415
+ args: t
1416
+ });
1417
+ }
1418
+ }
1419
+ return c.length === 0 ? {
1420
+ type: t,
1421
+ args: null
1422
+ } : c.length === 1 ? c[0] : c;
1423
+ } catch (r) {
1424
+ return e.error(`ERROR: ${r.message} - Unable to parse directive type: '${n}' based on the text: '${t}'`), {
1425
+ type: void 0,
1426
+ args: null
1427
+ };
1428
+ }
1429
+ }, "detectDirective"), Pr = /* @__PURE__ */ t(function(e) {
1430
+ return e.replace(a, "");
1431
+ }, "removeDirectives"), Fr = /* @__PURE__ */ t(function(e, t) {
1432
+ for (let [n, r] of t.entries()) if (r.match(e)) return n;
1433
+ return -1;
1434
+ }, "isSubstringInArray");
1435
+ function Ir(e, t) {
1436
+ var n;
1437
+ return e ? (n = Ar[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`]) == null ? t : n : t;
1438
+ }
1439
+ t(Ir, "interpolateToCurve");
1440
+ function Lr(e, t) {
1441
+ let n = e.trim();
1442
+ if (n) return t.securityLevel === "loose" ? n : (0, Or.sanitizeUrl)(n);
1443
+ }
1444
+ t(Lr, "formatUrl");
1445
+ var Rr = /* @__PURE__ */ t((t, ...n) => {
1446
+ let r = t.split("."), i = r.length - 1, a = r[i], o = window;
1447
+ for (let n = 0; n < i; n++) if (o = o[r[n]], !o) {
1448
+ e.error(`Function name: ${t} not found in window`);
1449
+ return;
1450
+ }
1451
+ o[a](...n);
1452
+ }, "runFunc");
1453
+ function zr(e, t) {
1454
+ return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
1455
+ }
1456
+ t(zr, "distance");
1457
+ function Br(e) {
1458
+ let t, n = 0;
1459
+ return e.forEach((e) => {
1460
+ n += zr(e, t), t = e;
1461
+ }), Ur(e, n / 2);
1462
+ }
1463
+ t(Br, "traverseEdge");
1464
+ function Vr(e) {
1465
+ return e.length === 1 ? e[0] : Br(e);
1466
+ }
1467
+ t(Vr, "calcLabelPosition");
1468
+ var Hr = /* @__PURE__ */ t((e, t = 2) => {
1469
+ let n = 10 ** t;
1470
+ return Math.round(e * n) / n;
1471
+ }, "roundNumber"), Ur = /* @__PURE__ */ t((e, t) => {
1472
+ let n, r = t;
1473
+ for (let t of e) {
1474
+ if (n) {
1475
+ let e = zr(t, n);
1476
+ if (e === 0) return n;
1477
+ if (e < r) r -= e;
1478
+ else {
1479
+ let i = r / e;
1480
+ if (i <= 0) return n;
1481
+ if (i >= 1) return {
1482
+ x: t.x,
1483
+ y: t.y
1484
+ };
1485
+ if (i > 0 && i < 1) return {
1486
+ x: Hr((1 - i) * n.x + i * t.x, 5),
1487
+ y: Hr((1 - i) * n.y + i * t.y, 5)
1488
+ };
1489
+ }
1490
+ }
1491
+ n = t;
1492
+ }
1493
+ throw Error("Could not find a suitable point for the given distance");
1494
+ }, "calculatePoint"), Wr = /* @__PURE__ */ t((t, n, r) => {
1495
+ e.info(`our points ${JSON.stringify(n)}`), n[0] !== r && (n = n.reverse());
1496
+ let i = Ur(n, 25), a = t ? 10 : 5, o = Math.atan2(n[0].y - i.y, n[0].x - i.x), s = {
1497
+ x: 0,
1498
+ y: 0
1499
+ };
1500
+ return s.x = Math.sin(o) * a + (n[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (n[0].y + i.y) / 2, s;
1501
+ }, "calcCardinalityPosition");
1502
+ function Gr(t, n, r) {
1503
+ let i = structuredClone(r);
1504
+ e.info("our points", i), n !== "start_left" && n !== "start_right" && i.reverse();
1505
+ let a = Ur(i, 25 + t), o = 10 + t * .5, s = Math.atan2(i[0].y - a.y, i[0].x - a.x), c = {
1506
+ x: 0,
1507
+ y: 0
1508
+ };
1509
+ return n === "start_left" ? (c.x = Math.sin(s + Math.PI) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s + Math.PI) * o + (i[0].y + a.y) / 2) : n === "end_right" ? (c.x = Math.sin(s - Math.PI) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s - Math.PI) * o + (i[0].y + a.y) / 2 - 5) : n === "end_left" ? (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2 - 5) : (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2), c;
1510
+ }
1511
+ t(Gr, "calcTerminalLabelPosition");
1512
+ function Kr(e) {
1513
+ let t = "", n = "";
1514
+ for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
1515
+ return {
1516
+ style: t,
1517
+ labelStyle: n
1518
+ };
1519
+ }
1520
+ t(Kr, "getStylesFromArray");
1521
+ var qr = 0, Jr = /* @__PURE__ */ t(() => (qr++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + qr), "generateId");
1522
+ function Yr(e) {
1523
+ let t = "";
1524
+ for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
1525
+ return t;
1526
+ }
1527
+ t(Yr, "makeRandomHex");
1528
+ var Xr = /* @__PURE__ */ t((e) => Yr(e.length), "random"), Zr = /* @__PURE__ */ t(function() {
1529
+ return {
1530
+ x: 0,
1531
+ y: 0,
1532
+ fill: void 0,
1533
+ anchor: "start",
1534
+ style: "#666",
1535
+ width: 100,
1536
+ height: 100,
1537
+ textMargin: 0,
1538
+ rx: 0,
1539
+ ry: 0,
1540
+ valign: void 0,
1541
+ text: ""
1542
+ };
1543
+ }, "getTextObj"), Qr = /* @__PURE__ */ t(function(e, t) {
1544
+ let n = t.text.replace(s.lineBreakRegex, " "), [, r] = $(t.fontSize), i = e.append("text");
1545
+ i.attr("x", t.x), i.attr("y", t.y), i.style("text-anchor", t.anchor), i.style("font-family", t.fontFamily), i.style("font-size", r), i.style("font-weight", t.fontWeight), i.attr("fill", t.fill), t.class !== void 0 && i.attr("class", t.class);
1546
+ let a = i.append("tspan");
1547
+ return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
1548
+ }, "drawSimpleText"), $r = B((e, t, n) => {
1549
+ if (!e || (n = Object.assign({
1550
+ fontSize: 12,
1551
+ fontWeight: 400,
1552
+ fontFamily: "Arial",
1553
+ joinWith: "<br/>"
1554
+ }, n), s.lineBreakRegex.test(e))) return e;
1555
+ let r = e.split(" ").filter(Boolean), i = [], a = "";
1556
+ return r.forEach((e, o) => {
1557
+ let s = Z(`${e} `, n), c = Z(a, n);
1558
+ if (s > t) {
1559
+ let { hyphenatedStrings: r, remainingWord: o } = ei(e, t, "-", n);
1560
+ i.push(a, ...r), a = o;
1561
+ } else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
1562
+ o + 1 === r.length && i.push(a);
1563
+ }), i.filter((e) => e !== "").join(n.joinWith);
1564
+ }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), ei = B((e, t, n = "-", r) => {
1565
+ r = Object.assign({
1566
+ fontSize: 12,
1567
+ fontWeight: 400,
1568
+ fontFamily: "Arial",
1569
+ margin: 0
1570
+ }, r);
1571
+ let i = [...e], a = [], o = "";
1572
+ return i.forEach((e, s) => {
1573
+ let c = `${o}${e}`;
1574
+ if (Z(c, r) >= t) {
1575
+ let e = s + 1, t = i.length === e, r = `${c}${n}`;
1576
+ a.push(t ? c : r), o = "";
1577
+ } else o = c;
1578
+ }), {
1579
+ hyphenatedStrings: a,
1580
+ remainingWord: o
1581
+ };
1582
+ }, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
1583
+ function ti(e, t) {
1584
+ return ni(e, t).height;
1585
+ }
1586
+ t(ti, "calculateTextHeight");
1587
+ function Z(e, t) {
1588
+ return ni(e, t).width;
1589
+ }
1590
+ t(Z, "calculateTextWidth");
1591
+ var ni = B((e, t) => {
1592
+ let { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: a = 400 } = t;
1593
+ if (!e) return {
1594
+ width: 0,
1595
+ height: 0
1596
+ };
1597
+ let [, o] = $(r), c = ["sans-serif", i], l = e.split(s.lineBreakRegex), u = [], d = n("body");
1598
+ if (!d.remove) return {
1599
+ width: 0,
1600
+ height: 0,
1601
+ lineHeight: 0
1602
+ };
1603
+ let f = d.append("svg");
1604
+ for (let e of c) {
1605
+ let t = 0, n = {
1606
+ width: 0,
1607
+ height: 0,
1608
+ lineHeight: 0
1609
+ };
1610
+ for (let r of l) {
1611
+ let i = Zr();
1612
+ i.text = r || "​";
1613
+ let s = Qr(f, i).style("font-size", o).style("font-weight", a).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
1614
+ if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
1615
+ n.width = Math.round(Math.max(n.width, c.width)), t = Math.round(c.height), n.height += t, n.lineHeight = Math.round(Math.max(n.lineHeight, t));
1616
+ }
1617
+ u.push(n);
1618
+ }
1619
+ return f.remove(), u[isNaN(u[1].height) || isNaN(u[1].width) || isNaN(u[1].lineHeight) || u[0].height > u[1].height && u[0].width > u[1].width && u[0].lineHeight > u[1].lineHeight ? 0 : 1];
1620
+ }, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), ri = (kr = class {
1621
+ constructor(e = !1, t) {
1622
+ this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
1623
+ }
1624
+ }, t(kr, "InitIDGenerator"), kr), Q, ii = /* @__PURE__ */ t(function(e) {
1625
+ return Q = Q || document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Q.innerHTML = e, unescape(Q.textContent);
1626
+ }, "entityDecode");
1627
+ function ai(e) {
1628
+ return "str" in e;
1629
+ }
1630
+ t(ai, "isDetailedError");
1631
+ var oi = /* @__PURE__ */ t((e, t, n, r) => {
1632
+ var i;
1633
+ if (!r) return;
1634
+ let a = (i = e.node()) == null ? void 0 : i.getBBox();
1635
+ a && e.append("text").text(r).attr("text-anchor", "middle").attr("x", a.x + a.width / 2).attr("y", -n).attr("class", t);
1636
+ }, "insertTitle"), $ = /* @__PURE__ */ t((e) => {
1637
+ if (typeof e == "number") return [e, e + "px"];
1638
+ let t = parseInt(e == null ? "" : e, 10);
1639
+ return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
1640
+ }, "parseFontSize");
1641
+ function si(e, t) {
1642
+ return Dr({}, e, t);
1643
+ }
1644
+ t(si, "cleanAndMerge");
1645
+ var ci = {
1646
+ assignWithDepth: o,
1647
+ wrapLabel: $r,
1648
+ calculateTextHeight: ti,
1649
+ calculateTextWidth: Z,
1650
+ calculateTextDimensions: ni,
1651
+ cleanAndMerge: si,
1652
+ detectInit: Mr,
1653
+ detectDirective: Nr,
1654
+ isSubstringInArray: Fr,
1655
+ interpolateToCurve: Ir,
1656
+ calcLabelPosition: Vr,
1657
+ calcCardinalityPosition: Wr,
1658
+ calcTerminalLabelPosition: Gr,
1659
+ formatUrl: Lr,
1660
+ getStylesFromArray: Kr,
1661
+ generateId: Jr,
1662
+ random: Xr,
1663
+ runFunc: Rr,
1664
+ entityDecode: ii,
1665
+ insertTitle: oi,
1666
+ isLabelCoordinateInPath: pi,
1667
+ parseFontSize: $,
1668
+ InitIDGenerator: ri
1669
+ }, li = /* @__PURE__ */ t(function(e) {
1670
+ let t = e;
1671
+ return t = t.replace(/style.*:\S*#.*;/g, function(e) {
1672
+ return e.substring(0, e.length - 1);
1673
+ }), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
1674
+ return e.substring(0, e.length - 1);
1675
+ }), t = t.replace(/#\w+;/g, function(e) {
1676
+ let t = e.substring(1, e.length - 1);
1677
+ return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
1678
+ }), t;
1679
+ }, "encodeEntities"), ui = /* @__PURE__ */ t(function(e) {
1680
+ return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
1681
+ }, "decodeEntities"), di = /* @__PURE__ */ t((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
1682
+ function fi(e) {
1683
+ return e == null ? null : e;
1684
+ }
1685
+ t(fi, "handleUndefinedAttr");
1686
+ function pi(e, t) {
1687
+ let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
1688
+ return i.includes(n.toString()) || i.includes(r.toString());
1689
+ }
1690
+ t(pi, "isLabelCoordinateInPath");
1691
+ //#endregion
1692
+ export { ee as $, U as A, Ye as B, Wn as C, G as D, K as E, Wt as F, Ae as G, O as H, Ht as I, De as J, ke as K, V as L, Yt as M, Kt as N, W as O, Gt as P, se as Q, bt as R, qn as S, q as T, E as U, k as V, T as W, we as X, Ce as Y, de as Z, lr as _, li as a, Qn as b, Kr as c, ai as d, f as et, $ as f, $r as g, ci as h, ui as i, Xt as j, Qt as k, fi as l, Pr as m, Z as n, u as nt, Jr as o, Xr as p, Oe as q, si as r, di as s, ti as t, p as tt, Ir as u, ar as v, J as w, Yn as x, $n as y, M as z };