@jackuait/blok 0.11.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1220) hide show
  1. package/LICENSE +13 -1
  2. package/NOTICE +10 -0
  3. package/README.md +7 -1
  4. package/codemod/migrate-editorjs-to-blok.js +51 -1
  5. package/codemod/test.js +95 -0
  6. package/dist/blok.cjs +1 -1
  7. package/dist/blok.iife.js +31 -30
  8. package/dist/blok.mjs +2 -2
  9. package/dist/chunks/_basePickBy-CLCgPLk_.cjs +1 -0
  10. package/dist/chunks/_basePickBy-cIM18c5w.mjs +166 -0
  11. package/dist/chunks/_baseUniq-C3lUNj_l.mjs +682 -0
  12. package/dist/chunks/_baseUniq-Cm3XBb1f.cjs +1 -0
  13. package/dist/chunks/arc-BSr2jl4o.mjs +80 -0
  14. package/dist/chunks/arc-C-l7V0ww.cjs +1 -0
  15. package/dist/chunks/architecture-YZFGNWBL-C5uKTSqd.mjs +3 -0
  16. package/dist/chunks/architecture-YZFGNWBL-DopZbt9d.cjs +1 -0
  17. package/dist/chunks/architectureDiagram-Q4EWVU46-B3EkmUoA.cjs +36 -0
  18. package/dist/chunks/architectureDiagram-Q4EWVU46-DL5lPOq_.mjs +4066 -0
  19. package/dist/chunks/blockDiagram-DXYQGD6D-ChnytJiO.cjs +132 -0
  20. package/dist/chunks/blockDiagram-DXYQGD6D-DjFfRgP_.mjs +3074 -0
  21. package/dist/chunks/blok-Cxcy7G7v.mjs +13801 -0
  22. package/dist/chunks/blok-qY4LDF7A.cjs +17 -0
  23. package/dist/chunks/c4Diagram-AHTNJAMY-D9cwQ5dP.cjs +10 -0
  24. package/dist/chunks/c4Diagram-AHTNJAMY-DDydXzN1.mjs +2956 -0
  25. package/dist/chunks/channel-1VaVTmSI.mjs +5 -0
  26. package/dist/chunks/channel-DTKWBt5v.cjs +1 -0
  27. package/dist/chunks/chunk-2KRD3SAO-Dcv71dz8.cjs +1 -0
  28. package/dist/chunks/chunk-2KRD3SAO-DslQvmzC.mjs +20 -0
  29. package/dist/chunks/chunk-336JU56O-CUNPhOYK.mjs +49 -0
  30. package/dist/chunks/chunk-336JU56O-DsJvvQpB.cjs +1 -0
  31. package/dist/chunks/chunk-426QAEUC-Ciny2-Rz.mjs +13 -0
  32. package/dist/chunks/chunk-426QAEUC-DEYJ0OiL.cjs +1 -0
  33. package/dist/chunks/chunk-4BX2VUAB-D1dKBLiS.cjs +1 -0
  34. package/dist/chunks/chunk-4BX2VUAB-ljY9_i7D.mjs +19 -0
  35. package/dist/chunks/chunk-4TB4RGXK-C-eXrWWX.cjs +206 -0
  36. package/dist/chunks/chunk-4TB4RGXK-orLiGd4g.mjs +3250 -0
  37. package/dist/chunks/chunk-55IACEB6-BOy3ofgp.cjs +1 -0
  38. package/dist/chunks/chunk-55IACEB6-BPnDY27B.mjs +8 -0
  39. package/dist/chunks/chunk-5FUZZQ4R-D3UGwLBL.cjs +62 -0
  40. package/dist/chunks/chunk-5FUZZQ4R-D5gG1Dk4.mjs +3786 -0
  41. package/dist/chunks/chunk-5PVQY5BW-BCwqe25T.cjs +2 -0
  42. package/dist/chunks/chunk-5PVQY5BW-DVKx7m4a.mjs +1122 -0
  43. package/dist/chunks/chunk-67CJDMHE-BU_rrdV4.mjs +20 -0
  44. package/dist/chunks/chunk-67CJDMHE-VKwQfp25.cjs +1 -0
  45. package/dist/chunks/chunk-7N4EOEYR-BpM-QbmS.cjs +1 -0
  46. package/dist/chunks/chunk-7N4EOEYR-Cx6N1y9w.mjs +29 -0
  47. package/dist/chunks/chunk-AA7GKIK3-DCAy6uIg.mjs +24 -0
  48. package/dist/chunks/chunk-AA7GKIK3-RcaBhHiZ.cjs +1 -0
  49. package/dist/chunks/chunk-BSJP7CBP-BHijZ5f8.mjs +83 -0
  50. package/dist/chunks/chunk-BSJP7CBP-wiZ2ll8-.cjs +1 -0
  51. package/dist/chunks/chunk-CIAEETIT-0sn8TZoo.cjs +1 -0
  52. package/dist/chunks/chunk-CIAEETIT-BWpztfre.mjs +20 -0
  53. package/dist/chunks/chunk-EDXVE4YY-BJAhHZ3a.mjs +26 -0
  54. package/dist/chunks/chunk-EDXVE4YY-CXhcVSEI.cjs +1 -0
  55. package/dist/chunks/chunk-ENJZ2VHE-BgpbBBSF.cjs +10 -0
  56. package/dist/chunks/chunk-ENJZ2VHE-COIAdqL4.mjs +566 -0
  57. package/dist/chunks/chunk-FMBD7UC4-CUTvay8e.mjs +5 -0
  58. package/dist/chunks/chunk-FMBD7UC4-DCJ-fphu.cjs +15 -0
  59. package/dist/chunks/chunk-FOC6F5B3-3FOtyf3P.mjs +20 -0
  60. package/dist/chunks/chunk-FOC6F5B3-C2-FyqYn.cjs +1 -0
  61. package/dist/chunks/chunk-ICPOFSXX-BUWZvUuu.cjs +122 -0
  62. package/dist/chunks/chunk-ICPOFSXX-Dn5WbEeN.mjs +3290 -0
  63. package/dist/chunks/chunk-K5T4RW27-CX5gsk1T.cjs +94 -0
  64. package/dist/chunks/chunk-K5T4RW27-De7GqZCP.mjs +16372 -0
  65. package/dist/chunks/chunk-KGLVRYIC-Cwvjry7S.cjs +1 -0
  66. package/dist/chunks/chunk-KGLVRYIC-sDQUxLS7.mjs +20 -0
  67. package/dist/chunks/chunk-LIHQZDEY-BC8om0l2.cjs +1 -0
  68. package/dist/chunks/chunk-LIHQZDEY-BoY9X2Wj.mjs +55 -0
  69. package/dist/chunks/chunk-ORNJ4GCN-CYLjqcXc.mjs +25 -0
  70. package/dist/chunks/chunk-ORNJ4GCN-CoC7A1vn.cjs +1 -0
  71. package/dist/chunks/chunk-OYMX7WX6-Bbwq_g2w.mjs +2038 -0
  72. package/dist/chunks/chunk-OYMX7WX6-D3csU8-J.cjs +231 -0
  73. package/dist/chunks/chunk-QZHKN3VN-Bs3XaH0U.mjs +12 -0
  74. package/dist/chunks/chunk-QZHKN3VN-Db_x7kn8.cjs +1 -0
  75. package/dist/chunks/chunk-U2HBQHQK-CEwYxA8R.cjs +70 -0
  76. package/dist/chunks/chunk-U2HBQHQK-DLyzqElq.mjs +1875 -0
  77. package/dist/chunks/chunk-X2U36JSP-BY9JBwLQ.cjs +1 -0
  78. package/dist/chunks/chunk-X2U36JSP-UKGkP2m1.mjs +68 -0
  79. package/dist/chunks/chunk-XPW4576I-2i_ZgZLs.mjs +1146 -0
  80. package/dist/chunks/chunk-XPW4576I-Ym5mFsxv.cjs +32 -0
  81. package/dist/chunks/chunk-YZCP3GAM-C2GbOoUx.mjs +60 -0
  82. package/dist/chunks/chunk-YZCP3GAM-WMeXt5aH.cjs +1 -0
  83. package/dist/chunks/chunk-ZZ45TVLE-CeD1lNAB.cjs +1 -0
  84. package/dist/chunks/chunk-ZZ45TVLE-DyYus02Y.mjs +33 -0
  85. package/dist/chunks/classDiagram-6PBFFD2Q-DNHZ3qE5.mjs +30 -0
  86. package/dist/chunks/classDiagram-6PBFFD2Q-DWcC9USb.cjs +1 -0
  87. package/dist/chunks/classDiagram-v2-HSJHXN6E-BXKTiJNh.cjs +1 -0
  88. package/dist/chunks/classDiagram-v2-HSJHXN6E-GgfA5-jG.mjs +30 -0
  89. package/dist/chunks/clone-DeEumpiC.mjs +8 -0
  90. package/dist/chunks/clone-gX2HWen_.cjs +1 -0
  91. package/dist/chunks/constants-BYCpx4v_.cjs +457 -0
  92. package/dist/chunks/constants-Bhk7u_hm.mjs +3432 -0
  93. package/dist/chunks/cose-bilkent-S5V4N54A-BuQ-Gx1y.mjs +2246 -0
  94. package/dist/chunks/cose-bilkent-S5V4N54A-CdxjlgEx.cjs +1 -0
  95. package/dist/chunks/dagre-BVQ5RQE_.mjs +1483 -0
  96. package/dist/chunks/dagre-D9QEFKwC.cjs +1 -0
  97. package/dist/chunks/dagre-KV5264BT-BxQkkVxZ.mjs +298 -0
  98. package/dist/chunks/dagre-KV5264BT-Dz_FEBZU.cjs +4 -0
  99. package/dist/chunks/diagram-5BDNPKRD-Cf9AymAx.cjs +10 -0
  100. package/dist/chunks/diagram-5BDNPKRD-joiZwmh1.mjs +112 -0
  101. package/dist/chunks/diagram-G4DWMVQ6-3CAnipxw.cjs +24 -0
  102. package/dist/chunks/diagram-G4DWMVQ6-DrvbpYBX.mjs +546 -0
  103. package/dist/chunks/diagram-MMDJMWI5-B3CwY62T.mjs +234 -0
  104. package/dist/chunks/diagram-MMDJMWI5-DMrk0xwH.cjs +43 -0
  105. package/dist/chunks/diagram-TYMM5635-B3g66i1E.mjs +144 -0
  106. package/dist/chunks/diagram-TYMM5635-BAuYHtjV.cjs +24 -0
  107. package/dist/chunks/erDiagram-SMLLAGMA-4Ks-44BH.cjs +85 -0
  108. package/dist/chunks/erDiagram-SMLLAGMA-Bw6U_hHz.mjs +1712 -0
  109. package/dist/chunks/flowDiagram-DWJPFMVM-D2yMfIFs.mjs +4175 -0
  110. package/dist/chunks/flowDiagram-DWJPFMVM-O6dDtont.cjs +162 -0
  111. package/dist/chunks/ganttDiagram-T4ZO3ILL-D-ymktbJ.cjs +292 -0
  112. package/dist/chunks/ganttDiagram-T4ZO3ILL-SEs0Ez0p.mjs +3083 -0
  113. package/dist/chunks/gitGraph-7Q5UKJZL-BLhgGqhG.cjs +1 -0
  114. package/dist/chunks/gitGraph-7Q5UKJZL-DbRxS8Lo.mjs +3 -0
  115. package/dist/chunks/gitGraphDiagram-UUTBAWPF-BSuqMw-A.cjs +106 -0
  116. package/dist/chunks/gitGraphDiagram-UUTBAWPF-BpVIPN2N.mjs +792 -0
  117. package/dist/chunks/graphlib-C2L_nEcM.cjs +1 -0
  118. package/dist/chunks/graphlib-Cpp6Todw.mjs +225 -0
  119. package/dist/chunks/i18next-loader-BJAXtkt3.cjs +1 -0
  120. package/dist/chunks/i18next-loader-dnJtS6Nb.mjs +35 -0
  121. package/dist/chunks/info-OMHHGYJF-BRxQdcvB.mjs +3 -0
  122. package/dist/chunks/info-OMHHGYJF-Cb4wPKNP.cjs +1 -0
  123. package/dist/chunks/infoDiagram-42DDH7IO-BNAE_Dp2.cjs +2 -0
  124. package/dist/chunks/infoDiagram-42DDH7IO-JYmpv-Gn.mjs +29 -0
  125. package/dist/chunks/isEmpty-BYDpYNyM.cjs +1 -0
  126. package/dist/chunks/isEmpty-Bgy1eL0m.mjs +35 -0
  127. package/dist/chunks/ishikawaDiagram-UXIWVN3A-Ca_1igMn.cjs +70 -0
  128. package/dist/chunks/ishikawaDiagram-UXIWVN3A-ClkZz1Tc.mjs +719 -0
  129. package/dist/chunks/journeyDiagram-VCZTEJTY-BTzeo896.mjs +885 -0
  130. package/dist/chunks/journeyDiagram-VCZTEJTY-D69nfb5v.cjs +139 -0
  131. package/dist/chunks/kanban-definition-6JOO6SKY-BTSuFyjj.cjs +89 -0
  132. package/dist/chunks/kanban-definition-6JOO6SKY-C2Jk5rDA.mjs +980 -0
  133. package/dist/chunks/lightweight-i18n-T_Nc45AF.cjs +1 -0
  134. package/dist/chunks/lightweight-i18n-qpzXlOVm.mjs +344 -0
  135. package/dist/chunks/line-CjJKN63i.cjs +1 -0
  136. package/dist/chunks/line-zarcRAiW.mjs +34 -0
  137. package/dist/chunks/linear-CDUWrVHa.cjs +1 -0
  138. package/dist/chunks/linear-CXe29GGg.mjs +289 -0
  139. package/dist/chunks/mdast-util-math-BfFBcnFx.cjs +5 -0
  140. package/dist/chunks/mdast-util-math-CqPx3t0S.mjs +151 -0
  141. package/dist/chunks/mermaid-parser.core-BXANIhlc.mjs +57 -0
  142. package/dist/chunks/mermaid-parser.core-DMmP6uoD.cjs +3 -0
  143. package/dist/chunks/mermaid.core-A4e6ZJqs.mjs +977 -0
  144. package/dist/chunks/mermaid.core-C66G0J-z.cjs +10 -0
  145. package/dist/chunks/messages--BWLKiOP2.mjs +319 -0
  146. package/dist/chunks/messages--LI6Qp0h.mjs +319 -0
  147. package/dist/chunks/messages-4TiLLTpr2.cjs +1 -0
  148. package/dist/chunks/messages-7ul_s8GB2.mjs +319 -0
  149. package/dist/chunks/messages-8BZGqPD1.cjs +1 -0
  150. package/dist/chunks/messages-96ztlozp.cjs +1 -0
  151. package/dist/chunks/messages-B-_ZQLp5.mjs +319 -0
  152. package/dist/chunks/messages-B1YSYW3Y.cjs +1 -0
  153. package/dist/chunks/messages-B3E33lPt2.mjs +319 -0
  154. package/dist/chunks/messages-BABN8cuN.mjs +319 -0
  155. package/dist/chunks/messages-BDAXqxYw.cjs +1 -0
  156. package/dist/chunks/messages-BE0YZo6f.cjs +1 -0
  157. package/dist/chunks/messages-BIg9D7T52.cjs +1 -0
  158. package/dist/chunks/messages-BKtPvquH2.mjs +319 -0
  159. package/dist/chunks/messages-BMKq6Ps12.cjs +1 -0
  160. package/dist/chunks/messages-BMqvMau_2.mjs +319 -0
  161. package/dist/chunks/messages-BNmaVDtf.mjs +319 -0
  162. package/dist/chunks/messages-BRRMkfZY2.cjs +1 -0
  163. package/dist/chunks/messages-BUg0EGM6.cjs +1 -0
  164. package/dist/chunks/messages-BV88VXs-2.mjs +319 -0
  165. package/dist/chunks/messages-BVAjj_W_2.mjs +319 -0
  166. package/dist/chunks/messages-BWd6mmTm.mjs +319 -0
  167. package/dist/chunks/messages-BXce9Dbm.mjs +319 -0
  168. package/dist/chunks/messages-B_OU8dr_.mjs +319 -0
  169. package/dist/chunks/messages-B_VpqVFy.mjs +319 -0
  170. package/dist/chunks/messages-B_t9669l.mjs +319 -0
  171. package/dist/chunks/messages-Begh-7SQ.cjs +1 -0
  172. package/dist/chunks/messages-BfTeMiOT.cjs +1 -0
  173. package/dist/chunks/messages-BguYUD04.cjs +1 -0
  174. package/dist/chunks/messages-Bi5NKhkL.cjs +1 -0
  175. package/dist/chunks/messages-BliJJjNK2.cjs +1 -0
  176. package/dist/chunks/messages-BmSnovX9.cjs +1 -0
  177. package/dist/chunks/messages-BoZAdwRU2.mjs +319 -0
  178. package/dist/chunks/messages-Bp-PMdAJ.mjs +319 -0
  179. package/dist/chunks/messages-BphoNqXl2.mjs +319 -0
  180. package/dist/chunks/messages-Bs5HM4rw2.cjs +1 -0
  181. package/dist/chunks/messages-BtZSlvVR.cjs +1 -0
  182. package/dist/chunks/messages-Btg_N5Nj2.cjs +1 -0
  183. package/dist/chunks/messages-C67MLHmh.cjs +1 -0
  184. package/dist/chunks/messages-C6RXCX1D2.mjs +319 -0
  185. package/dist/chunks/messages-C6Zo4thu.mjs +319 -0
  186. package/dist/chunks/messages-C7QEUxQf2.cjs +1 -0
  187. package/dist/chunks/messages-CB-RDoMj2.cjs +1 -0
  188. package/dist/chunks/messages-CBOtPEE5.cjs +1 -0
  189. package/dist/chunks/messages-CBoKI_4k2.mjs +319 -0
  190. package/dist/chunks/messages-CCMMPgcH.mjs +319 -0
  191. package/dist/chunks/messages-CFvaU-9Q2.mjs +319 -0
  192. package/dist/chunks/messages-CHDxRwD8.mjs +319 -0
  193. package/dist/chunks/messages-CJWSRA8r.cjs +1 -0
  194. package/dist/chunks/messages-CJaj0WrV.mjs +319 -0
  195. package/dist/chunks/messages-CLnZAk7s.mjs +319 -0
  196. package/dist/chunks/messages-CNWWk9zU.cjs +1 -0
  197. package/dist/chunks/messages-CO4IPaU22.mjs +319 -0
  198. package/dist/chunks/messages-CQii-Hly.mjs +319 -0
  199. package/dist/chunks/messages-CSPoZeJd.cjs +1 -0
  200. package/dist/chunks/messages-CThWJOaj2.cjs +1 -0
  201. package/dist/chunks/messages-CWbag2W1.mjs +319 -0
  202. package/dist/chunks/messages-CWfPtitC.mjs +319 -0
  203. package/dist/chunks/messages-CYh8BT-U2.cjs +1 -0
  204. package/dist/chunks/messages-CZAwmrBN2.mjs +319 -0
  205. package/dist/chunks/messages-CcmzbJED2.mjs +319 -0
  206. package/dist/chunks/messages-Cdp2ao16.cjs +1 -0
  207. package/dist/chunks/messages-CeSGFPaX.mjs +319 -0
  208. package/dist/chunks/messages-CfmN_C_V2.cjs +1 -0
  209. package/dist/chunks/messages-CgTWiYXl.mjs +319 -0
  210. package/dist/chunks/messages-CiqFmj282.mjs +319 -0
  211. package/dist/chunks/messages-Cj1I1bdS.mjs +319 -0
  212. package/dist/chunks/messages-CktwPONk2.cjs +1 -0
  213. package/dist/chunks/messages-ClMbt_082.cjs +1 -0
  214. package/dist/chunks/messages-ClfpoVLB.cjs +1 -0
  215. package/dist/chunks/messages-CmcpUpmY2.cjs +1 -0
  216. package/dist/chunks/messages-CnNUiCOF2.cjs +1 -0
  217. package/dist/chunks/messages-Cq-tyBQ7.cjs +1 -0
  218. package/dist/chunks/messages-Cqs6tnMT.mjs +319 -0
  219. package/dist/chunks/messages-CrPQatEP.cjs +1 -0
  220. package/dist/chunks/messages-CtNhn2A72.cjs +1 -0
  221. package/dist/chunks/messages-Cw-JQsbB.cjs +1 -0
  222. package/dist/chunks/messages-CxLZNPP22.mjs +319 -0
  223. package/dist/chunks/messages-D2to7PFh.mjs +319 -0
  224. package/dist/chunks/messages-D7GNxw46.cjs +1 -0
  225. package/dist/chunks/messages-DDqbUQPS2.cjs +1 -0
  226. package/dist/chunks/messages-DIsfRggy.mjs +319 -0
  227. package/dist/chunks/messages-DLvqdeVe.mjs +319 -0
  228. package/dist/chunks/messages-DMukq8ei2.cjs +1 -0
  229. package/dist/chunks/messages-DOJ7TGKc.mjs +319 -0
  230. package/dist/chunks/messages-DPpKBEMV.mjs +319 -0
  231. package/dist/chunks/messages-DWDt4hEW.mjs +319 -0
  232. package/dist/chunks/messages-DYPc3t5L.cjs +1 -0
  233. package/dist/chunks/messages-DYRRi1JW.mjs +319 -0
  234. package/dist/chunks/messages-DYbP7_iL.cjs +1 -0
  235. package/dist/chunks/messages-D_gbD8W22.mjs +319 -0
  236. package/dist/chunks/messages-DaQ1XgNk.mjs +319 -0
  237. package/dist/chunks/messages-DjW1_-Ba2.mjs +319 -0
  238. package/dist/chunks/messages-Dop11yxi.mjs +319 -0
  239. package/dist/chunks/messages-DoyFY1Ye.mjs +319 -0
  240. package/dist/chunks/messages-DpjZ6YjX.cjs +1 -0
  241. package/dist/chunks/messages-DprfonW1.mjs +319 -0
  242. package/dist/chunks/messages-Dq8w46wu.cjs +1 -0
  243. package/dist/chunks/messages-DqbBTg1F2.mjs +319 -0
  244. package/dist/chunks/messages-DsGOj3A62.cjs +1 -0
  245. package/dist/chunks/messages-Dt6sbdaY.mjs +319 -0
  246. package/dist/chunks/messages-Dv3xqn-c.mjs +319 -0
  247. package/dist/chunks/messages-DwZCK3WR2.cjs +1 -0
  248. package/dist/chunks/messages-G-grLA6L2.cjs +1 -0
  249. package/dist/chunks/messages-HmyGBKiy2.cjs +1 -0
  250. package/dist/chunks/messages-IsKrH6md2.mjs +319 -0
  251. package/dist/chunks/messages-L1H9KlM8.cjs +1 -0
  252. package/dist/chunks/messages-OwCNaUA2.cjs +1 -0
  253. package/dist/chunks/messages-Q1fgq2tw.cjs +1 -0
  254. package/dist/chunks/messages-RLMDvD9N.mjs +319 -0
  255. package/dist/chunks/messages-SGrUP3jU2.mjs +319 -0
  256. package/dist/chunks/messages-TET2HqbJ.mjs +319 -0
  257. package/dist/chunks/messages-UR9AknuE.cjs +1 -0
  258. package/dist/chunks/messages-UXbrSqP4.mjs +319 -0
  259. package/dist/chunks/messages-UlQUIo4t.cjs +1 -0
  260. package/dist/chunks/messages-VO5bBaDw2.cjs +1 -0
  261. package/dist/chunks/messages-Vz-ouTEN.mjs +319 -0
  262. package/dist/chunks/messages-Z5hg0_Dz2.mjs +319 -0
  263. package/dist/chunks/messages-bBZDrpto2.mjs +319 -0
  264. package/dist/chunks/messages-ipwQdTtE.cjs +1 -0
  265. package/dist/chunks/messages-jXbN1DEs.mjs +319 -0
  266. package/dist/chunks/messages-kon7ablY2.cjs +1 -0
  267. package/dist/chunks/messages-oeTrLt0-.cjs +1 -0
  268. package/dist/chunks/messages-qga5_rrO.cjs +1 -0
  269. package/dist/chunks/messages-sEnNaZIo.cjs +1 -0
  270. package/dist/chunks/messages-szOBKu5g.cjs +1 -0
  271. package/dist/chunks/messages-tZ7nZ7qL.cjs +1 -0
  272. package/dist/chunks/messages-u_dR89Qy.mjs +319 -0
  273. package/dist/chunks/messages-wDo4f3f9.cjs +1 -0
  274. package/dist/chunks/messages-wxVdFEgz2.mjs +319 -0
  275. package/dist/chunks/messages-x3ljzuuQ2.cjs +1 -0
  276. package/dist/chunks/messages-x6wDbfws2.mjs +319 -0
  277. package/dist/chunks/messages-ygmjC_Dc.cjs +1 -0
  278. package/dist/chunks/messages-zPVJyoxM.cjs +1 -0
  279. package/dist/chunks/micromark-extension-math-Cm8w3ABm.cjs +1 -0
  280. package/dist/chunks/micromark-extension-math-cDSPzUWY.mjs +169 -0
  281. package/dist/chunks/mindmap-definition-QFDTVHPH-DLO594eM.cjs +96 -0
  282. package/dist/chunks/mindmap-definition-QFDTVHPH-QxqvL96A.mjs +1013 -0
  283. package/dist/chunks/notifier-CfO3Icvp.cjs +1 -0
  284. package/dist/chunks/notifier-DMdYq9FS.mjs +73 -0
  285. package/dist/chunks/ordinal-DgAmiD5I.mjs +65 -0
  286. package/dist/chunks/ordinal-mgpK7IL3.cjs +1 -0
  287. package/dist/chunks/packet-4T2RLAQJ-BQYK4Pey.cjs +1 -0
  288. package/dist/chunks/packet-4T2RLAQJ-BwgNXqij.mjs +3 -0
  289. package/dist/chunks/pie-ZZUOXDRM-BLh1-ocA.cjs +1 -0
  290. package/dist/chunks/pie-ZZUOXDRM-CrDtyZu4.mjs +3 -0
  291. package/dist/chunks/pieDiagram-DEJITSTG-CGduyUgA.mjs +179 -0
  292. package/dist/chunks/pieDiagram-DEJITSTG-Do5jGsL7.cjs +30 -0
  293. package/dist/chunks/prism-bash-OGjZLOVe.cjs +1 -0
  294. package/dist/chunks/prism-bash-oISNNULp.mjs +175 -0
  295. package/dist/chunks/prism-c-1g9CdJOp.cjs +1 -0
  296. package/dist/chunks/prism-c-MtM8JocP.mjs +54 -0
  297. package/dist/chunks/prism-cpp-CORR584T.cjs +1 -0
  298. package/dist/chunks/prism-cpp-DswQJFJz.mjs +63 -0
  299. package/dist/chunks/prism-csharp-BqZp_TTb.cjs +1 -0
  300. package/dist/chunks/prism-csharp-GIfQrsqe.mjs +236 -0
  301. package/dist/chunks/prism-css-BLyqeHZR.mjs +55 -0
  302. package/dist/chunks/prism-css-DmF38Kcs.cjs +1 -0
  303. package/dist/chunks/prism-dart-CFseeodJ.cjs +1 -0
  304. package/dist/chunks/prism-dart-DbCi1QVI.mjs +52 -0
  305. package/dist/chunks/prism-docker-BOsXo4aW.cjs +1 -0
  306. package/dist/chunks/prism-docker-CUCbqggk.mjs +75 -0
  307. package/dist/chunks/prism-go-DVHXGmKb.mjs +20 -0
  308. package/dist/chunks/prism-go-DsEyoP6D.cjs +1 -0
  309. package/dist/chunks/prism-graphql-DGEYZFbw.mjs +114 -0
  310. package/dist/chunks/prism-graphql-DqXh7GRP.cjs +1 -0
  311. package/dist/chunks/prism-java-CzQtfd6W.mjs +99 -0
  312. package/dist/chunks/prism-java-DQn4zrh0.cjs +1 -0
  313. package/dist/chunks/prism-javascript-CAkVOGaq.mjs +101 -0
  314. package/dist/chunks/prism-javascript-UQPp4ffL.cjs +1 -0
  315. package/dist/chunks/prism-json-B-63BF6R.cjs +1 -0
  316. package/dist/chunks/prism-json-BSGjg8pt.mjs +25 -0
  317. package/dist/chunks/prism-kotlin-D9r_epW6.mjs +64 -0
  318. package/dist/chunks/prism-kotlin-DmCIViWe.cjs +1 -0
  319. package/dist/chunks/prism-latex-Bcpg2uQr.cjs +1 -0
  320. package/dist/chunks/prism-latex-o70KNu9w.mjs +43 -0
  321. package/dist/chunks/prism-lua-7od8jpGg.mjs +17 -0
  322. package/dist/chunks/prism-lua-DyMxrgA_.cjs +1 -0
  323. package/dist/chunks/prism-markdown-BY8dZr_8.cjs +1 -0
  324. package/dist/chunks/prism-markdown-CI62y6qt.mjs +251 -0
  325. package/dist/chunks/prism-markup-DFqZi51m.mjs +116 -0
  326. package/dist/chunks/prism-markup-OdaHxDBn.cjs +1 -0
  327. package/dist/chunks/prism-markup-templating-Cnde-rJf.cjs +1 -0
  328. package/dist/chunks/prism-markup-templating-DTIDwO2f.mjs +39 -0
  329. package/dist/chunks/prism-php-BFUaOiLc.mjs +277 -0
  330. package/dist/chunks/prism-php-D8NgAYtH.cjs +1 -0
  331. package/dist/chunks/prism-python-CTRSlrPP.mjs +59 -0
  332. package/dist/chunks/prism-python-vAqxHcox.cjs +1 -0
  333. package/dist/chunks/prism-r-AA_ZuQPX.mjs +19 -0
  334. package/dist/chunks/prism-r-BsUW1w_m.cjs +1 -0
  335. package/dist/chunks/prism-ruby-BttDevO3.mjs +156 -0
  336. package/dist/chunks/prism-ruby-D7wGSPCx.cjs +1 -0
  337. package/dist/chunks/prism-rust-1wrW82hd.mjs +92 -0
  338. package/dist/chunks/prism-rust-C65Pn3Oc.cjs +1 -0
  339. package/dist/chunks/prism-scala-C26iL30s.mjs +43 -0
  340. package/dist/chunks/prism-scala-DuAsLUh6.cjs +1 -0
  341. package/dist/chunks/prism-sql-CSv-2hNx.mjs +29 -0
  342. package/dist/chunks/prism-sql-DHhl_Wd1.cjs +1 -0
  343. package/dist/chunks/prism-swift-2HH6IALG.cjs +1 -0
  344. package/dist/chunks/prism-swift-ik83oO-E.mjs +94 -0
  345. package/dist/chunks/prism-typescript-ChaS5gh3.mjs +38 -0
  346. package/dist/chunks/prism-typescript-Cuqi9QKv.cjs +1 -0
  347. package/dist/chunks/prism-yaml-BT2oArqa.cjs +1 -0
  348. package/dist/chunks/prism-yaml-YI3VZVAw.mjs +68 -0
  349. package/dist/chunks/quadrantDiagram-34T5L4WZ-BdwmsqYk.cjs +7 -0
  350. package/dist/chunks/quadrantDiagram-34T5L4WZ-BiqiWPbj.mjs +1960 -0
  351. package/dist/chunks/radar-PYXPWWZC-CYtB39az.mjs +3 -0
  352. package/dist/chunks/radar-PYXPWWZC-Drac9aGm.cjs +1 -0
  353. package/dist/chunks/requirementDiagram-MS252O5E-Cko4AhA2.mjs +2224 -0
  354. package/dist/chunks/requirementDiagram-MS252O5E-DBRLVWVl.cjs +84 -0
  355. package/dist/chunks/sankeyDiagram-XADWPNL6-BFWIr9AZ.mjs +909 -0
  356. package/dist/chunks/sankeyDiagram-XADWPNL6-Dq3Fi6gG.cjs +10 -0
  357. package/dist/chunks/sequenceDiagram-FGHM5R23-BKKZAG9O.cjs +157 -0
  358. package/dist/chunks/sequenceDiagram-FGHM5R23-DHFzzYeT.mjs +4181 -0
  359. package/dist/chunks/stateDiagram-FHFEXIEX-B1vJTyiJ.mjs +218 -0
  360. package/dist/chunks/stateDiagram-FHFEXIEX-DsHbgVAE.cjs +1 -0
  361. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DC206QSk.mjs +28 -0
  362. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DzkxV3pL.cjs +1 -0
  363. package/dist/chunks/timeline-definition-GMOUNBTQ-BlXvHIKp.mjs +1084 -0
  364. package/dist/chunks/timeline-definition-GMOUNBTQ-durCMWAX.cjs +120 -0
  365. package/dist/chunks/tools-Bc4e0xmz.mjs +13848 -0
  366. package/dist/chunks/tools-DaOdAh89.cjs +115 -0
  367. package/dist/chunks/treeView-SZITEDCU-BpLDxB8w.cjs +1 -0
  368. package/dist/chunks/treeView-SZITEDCU-DIbHFtMw.mjs +3 -0
  369. package/dist/chunks/treemap-W4RFUUIX-4t60SvLo.mjs +3 -0
  370. package/dist/chunks/treemap-W4RFUUIX-jpjSZokO.cjs +1 -0
  371. package/dist/chunks/vennDiagram-DHZGUBPP-BVxAvXiG.mjs +1876 -0
  372. package/dist/chunks/vennDiagram-DHZGUBPP-Dtpe6giP.cjs +34 -0
  373. package/dist/chunks/wardley-RL74JXVD-CBBTKC3H.cjs +1 -0
  374. package/dist/chunks/wardley-RL74JXVD-g5DNBeQ1.mjs +3 -0
  375. package/dist/chunks/wardleyDiagram-NUSXRM2D-BGORQqtQ.mjs +594 -0
  376. package/dist/chunks/wardleyDiagram-NUSXRM2D-ClsU-9PV.cjs +20 -0
  377. package/dist/chunks/xychartDiagram-5P7HB3ND-DplTzQI6.mjs +2017 -0
  378. package/dist/chunks/xychartDiagram-5P7HB3ND-EO18s7Fo.cjs +7 -0
  379. package/dist/full.cjs +1 -1
  380. package/dist/full.mjs +9 -9
  381. package/dist/locales.mjs +175 -68
  382. package/dist/markdown.cjs +2 -2
  383. package/dist/markdown.mjs +392 -384
  384. package/dist/messages-28LGzsNB.mjs +319 -0
  385. package/dist/messages-35X8GsGw2.mjs +319 -0
  386. package/dist/messages-5ygX-4B92.mjs +319 -0
  387. package/dist/messages-83AcZNii.mjs +319 -0
  388. package/dist/messages-B-OvX3Vz2.mjs +319 -0
  389. package/dist/messages-B56oJj_X2.mjs +319 -0
  390. package/dist/messages-B7peBJXJ2.mjs +319 -0
  391. package/dist/messages-BGwTNk0S2.mjs +319 -0
  392. package/dist/messages-BH-SS-wY.mjs +319 -0
  393. package/dist/messages-BPX8V6tu.mjs +319 -0
  394. package/dist/messages-BUp8P-0d.mjs +319 -0
  395. package/dist/messages-BX3WM02N2.mjs +319 -0
  396. package/dist/messages-BZrMZvRb2.mjs +319 -0
  397. package/dist/messages-B_0akf3T.mjs +319 -0
  398. package/dist/messages-BaE65Wtr.mjs +319 -0
  399. package/dist/messages-BdSGtvzM.mjs +319 -0
  400. package/dist/messages-BerXSWcD.mjs +319 -0
  401. package/dist/messages-BqKaz7yB2.mjs +319 -0
  402. package/dist/messages-BrqBJ6W_2.mjs +319 -0
  403. package/dist/messages-BvgGIpxE2.mjs +319 -0
  404. package/dist/messages-BxSe3rKx.mjs +319 -0
  405. package/dist/messages-ByD9AIJL2.mjs +319 -0
  406. package/dist/messages-CDJS_Tu2.mjs +319 -0
  407. package/dist/messages-CF9R29jb.mjs +319 -0
  408. package/dist/messages-CIbK29nM.mjs +319 -0
  409. package/dist/messages-CMD0tgb2.mjs +319 -0
  410. package/dist/messages-CMW0tO_d2.mjs +319 -0
  411. package/dist/messages-CMrYQJ5x2.mjs +319 -0
  412. package/dist/messages-CQZJnkss2.mjs +319 -0
  413. package/dist/messages-CRnolvNg.mjs +319 -0
  414. package/dist/messages-CS74u2hS2.mjs +319 -0
  415. package/dist/messages-CTxao0S32.mjs +319 -0
  416. package/dist/messages-CZl83L7T.mjs +319 -0
  417. package/dist/messages-C_kloJSr.mjs +319 -0
  418. package/dist/messages-Cfe_CPBW.mjs +319 -0
  419. package/dist/messages-Ch0oiQp5.mjs +319 -0
  420. package/dist/messages-Cigiz7tI.mjs +319 -0
  421. package/dist/messages-Cjac781Z.mjs +319 -0
  422. package/dist/messages-CqVFa1ZA.mjs +319 -0
  423. package/dist/messages-CwDgZL5-.mjs +319 -0
  424. package/dist/messages-Czd64cAx.mjs +319 -0
  425. package/dist/messages-CzxMz1wI.mjs +319 -0
  426. package/dist/messages-D2SkVxgV.mjs +319 -0
  427. package/dist/messages-D4ZsN52E2.mjs +319 -0
  428. package/dist/messages-DG0aBs1m2.mjs +319 -0
  429. package/dist/messages-DIkQAMxZ2.mjs +319 -0
  430. package/dist/messages-DJBc5_b_2.mjs +319 -0
  431. package/dist/messages-DN8oOcrS.mjs +319 -0
  432. package/dist/messages-DV5yhL0q.mjs +319 -0
  433. package/dist/messages-DVI1iDTn2.mjs +319 -0
  434. package/dist/messages-DVzrCNrY.mjs +319 -0
  435. package/dist/messages-DXwJOr-H2.mjs +319 -0
  436. package/dist/messages-D_edVQrv.mjs +319 -0
  437. package/dist/messages-DbODRieP.mjs +319 -0
  438. package/dist/messages-KMQrhAva.mjs +319 -0
  439. package/dist/messages-L4NsHX-g.mjs +319 -0
  440. package/dist/messages-PPuF4CRy.mjs +319 -0
  441. package/dist/messages-UTJEPSiL.mjs +319 -0
  442. package/dist/messages-Wa5EXypv2.mjs +319 -0
  443. package/dist/messages-Wfxn9jZh.mjs +319 -0
  444. package/dist/messages-XieI4326.mjs +319 -0
  445. package/dist/messages-ZASZzduy.mjs +319 -0
  446. package/dist/messages-Z_3X1FJJ2.mjs +319 -0
  447. package/dist/messages-huyV3ICu.mjs +319 -0
  448. package/dist/messages-rd6zBwaX2.mjs +319 -0
  449. package/dist/messages-sBpTj74Q.mjs +319 -0
  450. package/dist/messages-twD0eDdc.mjs +319 -0
  451. package/dist/react.cjs +1 -1
  452. package/dist/react.mjs +25 -26
  453. package/dist/tools.cjs +1 -1
  454. package/dist/tools.mjs +3 -3
  455. package/dist/vendor.LICENSE.txt +141 -899
  456. package/package.json +12 -6
  457. package/src/components/constants/data-attributes.ts +2 -0
  458. package/src/components/dom.ts +4 -2
  459. package/src/components/i18n/locales/am/messages.json +109 -1
  460. package/src/components/i18n/locales/ar/messages.json +109 -1
  461. package/src/components/i18n/locales/az/messages.json +109 -1
  462. package/src/components/i18n/locales/bg/messages.json +109 -1
  463. package/src/components/i18n/locales/bn/messages.json +109 -1
  464. package/src/components/i18n/locales/bs/messages.json +109 -1
  465. package/src/components/i18n/locales/cs/messages.json +109 -1
  466. package/src/components/i18n/locales/da/messages.json +109 -1
  467. package/src/components/i18n/locales/de/messages.json +110 -2
  468. package/src/components/i18n/locales/dv/messages.json +109 -1
  469. package/src/components/i18n/locales/el/messages.json +109 -1
  470. package/src/components/i18n/locales/en/messages.json +108 -1
  471. package/src/components/i18n/locales/es/messages.json +109 -1
  472. package/src/components/i18n/locales/et/messages.json +109 -1
  473. package/src/components/i18n/locales/fa/messages.json +109 -1
  474. package/src/components/i18n/locales/fi/messages.json +109 -1
  475. package/src/components/i18n/locales/fil/messages.json +109 -1
  476. package/src/components/i18n/locales/fr/messages.json +110 -2
  477. package/src/components/i18n/locales/gu/messages.json +109 -1
  478. package/src/components/i18n/locales/he/messages.json +109 -1
  479. package/src/components/i18n/locales/hi/messages.json +109 -1
  480. package/src/components/i18n/locales/hr/messages.json +109 -1
  481. package/src/components/i18n/locales/hu/messages.json +109 -1
  482. package/src/components/i18n/locales/hy/messages.json +109 -1
  483. package/src/components/i18n/locales/id/messages.json +109 -1
  484. package/src/components/i18n/locales/it/messages.json +109 -1
  485. package/src/components/i18n/locales/ja/messages.json +109 -1
  486. package/src/components/i18n/locales/ka/messages.json +109 -1
  487. package/src/components/i18n/locales/km/messages.json +109 -1
  488. package/src/components/i18n/locales/kn/messages.json +109 -1
  489. package/src/components/i18n/locales/ko/messages.json +109 -1
  490. package/src/components/i18n/locales/ku/messages.json +109 -1
  491. package/src/components/i18n/locales/lo/messages.json +109 -1
  492. package/src/components/i18n/locales/lt/messages.json +109 -1
  493. package/src/components/i18n/locales/lv/messages.json +109 -1
  494. package/src/components/i18n/locales/mk/messages.json +109 -1
  495. package/src/components/i18n/locales/ml/messages.json +109 -1
  496. package/src/components/i18n/locales/mn/messages.json +109 -1
  497. package/src/components/i18n/locales/mr/messages.json +109 -1
  498. package/src/components/i18n/locales/ms/messages.json +109 -1
  499. package/src/components/i18n/locales/my/messages.json +109 -1
  500. package/src/components/i18n/locales/ne/messages.json +109 -1
  501. package/src/components/i18n/locales/nl/messages.json +110 -2
  502. package/src/components/i18n/locales/no/messages.json +109 -1
  503. package/src/components/i18n/locales/pa/messages.json +109 -1
  504. package/src/components/i18n/locales/pl/messages.json +109 -1
  505. package/src/components/i18n/locales/ps/messages.json +109 -1
  506. package/src/components/i18n/locales/pt/messages.json +109 -1
  507. package/src/components/i18n/locales/ro/messages.json +109 -1
  508. package/src/components/i18n/locales/ru/messages.json +109 -1
  509. package/src/components/i18n/locales/sd/messages.json +109 -1
  510. package/src/components/i18n/locales/si/messages.json +109 -1
  511. package/src/components/i18n/locales/sk/messages.json +109 -1
  512. package/src/components/i18n/locales/sl/messages.json +109 -1
  513. package/src/components/i18n/locales/sq/messages.json +109 -1
  514. package/src/components/i18n/locales/sr/messages.json +109 -1
  515. package/src/components/i18n/locales/sv/messages.json +109 -1
  516. package/src/components/i18n/locales/sw/messages.json +109 -1
  517. package/src/components/i18n/locales/ta/messages.json +109 -1
  518. package/src/components/i18n/locales/te/messages.json +109 -1
  519. package/src/components/i18n/locales/th/messages.json +109 -1
  520. package/src/components/i18n/locales/tr/messages.json +109 -1
  521. package/src/components/i18n/locales/ug/messages.json +109 -1
  522. package/src/components/i18n/locales/uk/messages.json +109 -1
  523. package/src/components/i18n/locales/ur/messages.json +109 -1
  524. package/src/components/i18n/locales/vi/messages.json +109 -1
  525. package/src/components/i18n/locales/yi/messages.json +109 -1
  526. package/src/components/i18n/locales/zh/messages.json +109 -1
  527. package/src/components/icons/index.ts +59 -0
  528. package/src/components/inline-tools/inline-tool-code.ts +1 -1
  529. package/src/components/modules/api/toolbar.ts +6 -4
  530. package/src/components/modules/blockEvents/index.ts +9 -0
  531. package/src/components/modules/blockManager/operations.ts +14 -1
  532. package/src/components/modules/drag/DragController.ts +24 -3
  533. package/src/components/modules/paste/handlers/files-handler.ts +41 -4
  534. package/src/components/modules/paste/index.ts +5 -1
  535. package/src/components/modules/paste/tool-registry.ts +22 -12
  536. package/src/components/modules/toolbar/blockSettings.ts +14 -2
  537. package/src/components/modules/toolbar/index.ts +49 -16
  538. package/src/components/modules/toolbar/inline/selection-validator.ts +17 -0
  539. package/src/components/modules/toolbar/plus-button.ts +4 -2
  540. package/src/components/modules/toolbar/positioning.ts +27 -0
  541. package/src/components/modules/toolbar/settings-toggler.ts +16 -5
  542. package/src/components/modules/toolbar/tooltip.ts +59 -15
  543. package/src/components/modules/ui.ts +23 -8
  544. package/src/components/ui/toolbox.ts +92 -7
  545. package/src/components/utils/data-model-transform.ts +71 -1
  546. package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.const.ts +5 -4
  547. package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.ts +1 -0
  548. package/src/components/utils/popover/components/popover-item/popover-item-separator/popover-item-separator.const.ts +1 -1
  549. package/src/components/utils/popover/components/search-input/search-input.const.ts +3 -3
  550. package/src/components/utils/popover/popover-abstract.ts +137 -2
  551. package/src/components/utils/popover/popover-desktop.ts +260 -14
  552. package/src/components/utils/popover/popover-inline.ts +3 -2
  553. package/src/components/utils/popover/popover-nested-position.ts +132 -0
  554. package/src/components/utils/popover/popover-position.ts +46 -5
  555. package/src/components/utils/popover/popover.const.ts +6 -3
  556. package/src/components/utils/tooltip.ts +52 -8
  557. package/src/components/utils/top-layer.ts +137 -0
  558. package/src/playground/block-states-gallery.ts +123 -0
  559. package/src/playground/icon-gallery.ts +346 -0
  560. package/src/styles/checklist.css +70 -0
  561. package/src/styles/colors.css +666 -0
  562. package/src/styles/database.css +1176 -0
  563. package/src/styles/emoji-picker.css +58 -0
  564. package/src/styles/fonts.css +33 -0
  565. package/src/styles/image.css +1111 -0
  566. package/src/styles/isolation.css +204 -0
  567. package/src/styles/keyframes.css +62 -0
  568. package/src/styles/main.css +28 -2566
  569. package/src/styles/popover-animation.css +34 -0
  570. package/src/styles/preflight.css +283 -0
  571. package/src/styles/slash-search.css +52 -0
  572. package/src/styles/tables.css +154 -0
  573. package/src/styles/tokens.css +127 -0
  574. package/src/tools/callout/emoji-picker/index.ts +4 -2
  575. package/src/tools/code/code-keyboard.ts +70 -8
  576. package/src/tools/code/constants.ts +3 -9
  577. package/src/tools/code/dom-builder.ts +5 -1
  578. package/src/tools/code/index.ts +185 -25
  579. package/src/tools/code/language-detector.ts +47 -52
  580. package/src/tools/code/prism-applier.ts +183 -0
  581. package/src/tools/code/prism-loader.ts +197 -0
  582. package/src/tools/database/database-board-view.ts +3 -1
  583. package/src/tools/image/alt-popover.css +42 -0
  584. package/src/tools/image/alt-popover.ts +104 -0
  585. package/src/tools/image/constants.ts +25 -0
  586. package/src/tools/image/crop-editor.css +513 -0
  587. package/src/tools/image/crop-editor.ts +331 -0
  588. package/src/tools/image/crop-math.ts +117 -0
  589. package/src/tools/image/crop-modal.css +105 -0
  590. package/src/tools/image/crop-modal.ts +92 -0
  591. package/src/tools/image/empty-state.ts +407 -0
  592. package/src/tools/image/error-state.ts +69 -0
  593. package/src/tools/image/errors.ts +18 -0
  594. package/src/tools/image/i18n.ts +8 -0
  595. package/src/tools/image/index.ts +755 -0
  596. package/src/tools/image/resizer.ts +119 -0
  597. package/src/tools/image/spring.ts +16 -0
  598. package/src/tools/image/ui.ts +921 -0
  599. package/src/tools/image/uploader.ts +61 -0
  600. package/src/tools/image/uploading-state.ts +117 -0
  601. package/src/tools/index.ts +2 -0
  602. package/src/tools/toggle/constants.ts +3 -1
  603. package/src/types-internal/prismjs-components.d.ts +9 -0
  604. package/types/api/toolbar.d.ts +14 -1
  605. package/types/configs/blok-config.d.ts +24 -0
  606. package/types/tools/image.d.ts +72 -0
  607. package/types/utils/popover/popover.d.ts +27 -0
  608. package/dist/chunks/_basePickBy-6gOwWeg0.mjs +0 -166
  609. package/dist/chunks/_basePickBy-mUHvTE6c.cjs +0 -1
  610. package/dist/chunks/_baseUniq-BP5sM8qF.cjs +0 -1
  611. package/dist/chunks/_baseUniq-BcOWmEX6.mjs +0 -682
  612. package/dist/chunks/arc-kVpio4JL.mjs +0 -80
  613. package/dist/chunks/arc-lSzOinJz.cjs +0 -1
  614. package/dist/chunks/architecture-YZFGNWBL-BFcrDSEW.mjs +0 -3
  615. package/dist/chunks/architecture-YZFGNWBL-D91d5pcl.cjs +0 -1
  616. package/dist/chunks/architectureDiagram-Q4EWVU46-CN6p4Aji.mjs +0 -4066
  617. package/dist/chunks/architectureDiagram-Q4EWVU46-CyW5N5Ic.cjs +0 -36
  618. package/dist/chunks/blockDiagram-DXYQGD6D-BvZWa5Rv.mjs +0 -3074
  619. package/dist/chunks/blockDiagram-DXYQGD6D-DmhBCLgd.cjs +0 -132
  620. package/dist/chunks/blok-CNEP3LpI.cjs +0 -16
  621. package/dist/chunks/blok-DNvzyOYn.mjs +0 -13679
  622. package/dist/chunks/c-CQrSye6K.mjs +0 -5
  623. package/dist/chunks/c-DNJHkQXQ.cjs +0 -1
  624. package/dist/chunks/c4Diagram-AHTNJAMY-Cmc2PsEs.mjs +0 -2956
  625. package/dist/chunks/c4Diagram-AHTNJAMY-DU2IYTXY.cjs +0 -10
  626. package/dist/chunks/ccount-B7is2MU0.mjs +0 -10
  627. package/dist/chunks/ccount-DtzbJUOh.cjs +0 -1
  628. package/dist/chunks/channel-BTWFNzkv.mjs +0 -5
  629. package/dist/chunks/channel-BqhnS5zl.cjs +0 -1
  630. package/dist/chunks/chunk-2KRD3SAO-COfwt0om.cjs +0 -1
  631. package/dist/chunks/chunk-2KRD3SAO-DWLzBIZw.mjs +0 -20
  632. package/dist/chunks/chunk-336JU56O-CqWDeAp1.cjs +0 -1
  633. package/dist/chunks/chunk-336JU56O-DbaX7hyp.mjs +0 -49
  634. package/dist/chunks/chunk-426QAEUC-MjtXwzdI.cjs +0 -1
  635. package/dist/chunks/chunk-426QAEUC-pmH9mm_X.mjs +0 -13
  636. package/dist/chunks/chunk-4BX2VUAB-B1LZI9QZ.mjs +0 -19
  637. package/dist/chunks/chunk-4BX2VUAB-Zs4zJRk9.cjs +0 -1
  638. package/dist/chunks/chunk-4TB4RGXK-BC8qRYSD.mjs +0 -3250
  639. package/dist/chunks/chunk-4TB4RGXK-Bq0teBqe.cjs +0 -206
  640. package/dist/chunks/chunk-55IACEB6-CaLO8kWA.mjs +0 -8
  641. package/dist/chunks/chunk-55IACEB6-DyTTYuc2.cjs +0 -1
  642. package/dist/chunks/chunk-5FUZZQ4R-6rlcIGG-.cjs +0 -62
  643. package/dist/chunks/chunk-5FUZZQ4R-DAWdfx4J.mjs +0 -3786
  644. package/dist/chunks/chunk-5PVQY5BW-7Voh8aPS.mjs +0 -1122
  645. package/dist/chunks/chunk-5PVQY5BW-DmATt7Fz.cjs +0 -2
  646. package/dist/chunks/chunk-67CJDMHE-DSEGOn_f.mjs +0 -20
  647. package/dist/chunks/chunk-67CJDMHE-zWcmgvwZ.cjs +0 -1
  648. package/dist/chunks/chunk-7N4EOEYR-CAuNhdG9.cjs +0 -1
  649. package/dist/chunks/chunk-7N4EOEYR-CnSg1Hfu.mjs +0 -29
  650. package/dist/chunks/chunk-AA7GKIK3-BmatWFnp.mjs +0 -24
  651. package/dist/chunks/chunk-AA7GKIK3-YMbh5HEs.cjs +0 -1
  652. package/dist/chunks/chunk-BSJP7CBP-BtFfqv7R.mjs +0 -83
  653. package/dist/chunks/chunk-BSJP7CBP-CjkEoJDh.cjs +0 -1
  654. package/dist/chunks/chunk-CIAEETIT-BP9BiKe5.cjs +0 -1
  655. package/dist/chunks/chunk-CIAEETIT-nVgPUEW1.mjs +0 -20
  656. package/dist/chunks/chunk-EDXVE4YY-Bw1v2mUF.cjs +0 -1
  657. package/dist/chunks/chunk-EDXVE4YY-e7599cf4.mjs +0 -26
  658. package/dist/chunks/chunk-ENJZ2VHE-9fAN50L-.cjs +0 -10
  659. package/dist/chunks/chunk-ENJZ2VHE-DaMNdqfV.mjs +0 -566
  660. package/dist/chunks/chunk-FMBD7UC4-CH_SSwhS.cjs +0 -15
  661. package/dist/chunks/chunk-FMBD7UC4-xT5c0WSd.mjs +0 -5
  662. package/dist/chunks/chunk-FOC6F5B3-AxSG6qaj.mjs +0 -20
  663. package/dist/chunks/chunk-FOC6F5B3-ScFIigAO.cjs +0 -1
  664. package/dist/chunks/chunk-ICPOFSXX-DQ4NxQTM.cjs +0 -122
  665. package/dist/chunks/chunk-ICPOFSXX-DbL0YBQf.mjs +0 -3290
  666. package/dist/chunks/chunk-K5T4RW27-BdGvq1o8.cjs +0 -94
  667. package/dist/chunks/chunk-K5T4RW27-CYdwJMQV.mjs +0 -16372
  668. package/dist/chunks/chunk-KGLVRYIC-BwOmLwqF.mjs +0 -20
  669. package/dist/chunks/chunk-KGLVRYIC-uzPiXgAg.cjs +0 -1
  670. package/dist/chunks/chunk-LIHQZDEY-ChgbfPTz.cjs +0 -1
  671. package/dist/chunks/chunk-LIHQZDEY-Csx8-523.mjs +0 -55
  672. package/dist/chunks/chunk-ORNJ4GCN-CCDHRflI.mjs +0 -25
  673. package/dist/chunks/chunk-ORNJ4GCN-HF28XIop.cjs +0 -1
  674. package/dist/chunks/chunk-OYMX7WX6-BAoDgMPF.mjs +0 -2038
  675. package/dist/chunks/chunk-OYMX7WX6-CGUpemDb.cjs +0 -231
  676. package/dist/chunks/chunk-QZHKN3VN-D1myzhE_.mjs +0 -12
  677. package/dist/chunks/chunk-QZHKN3VN-d_ESXyai.cjs +0 -1
  678. package/dist/chunks/chunk-U2HBQHQK-BXyrI_xP.mjs +0 -1875
  679. package/dist/chunks/chunk-U2HBQHQK-D62A_XCV.cjs +0 -70
  680. package/dist/chunks/chunk-X2U36JSP-BEHpYlmW.cjs +0 -1
  681. package/dist/chunks/chunk-X2U36JSP-CXhWYelJ.mjs +0 -68
  682. package/dist/chunks/chunk-XPW4576I-BidQL50C.cjs +0 -32
  683. package/dist/chunks/chunk-XPW4576I-DOztVf6t.mjs +0 -1146
  684. package/dist/chunks/chunk-YZCP3GAM-DrkjtME-.mjs +0 -60
  685. package/dist/chunks/chunk-YZCP3GAM-DuLQPyT4.cjs +0 -1
  686. package/dist/chunks/chunk-ZZ45TVLE-CSFFLvxb.mjs +0 -33
  687. package/dist/chunks/chunk-ZZ45TVLE-CZOUDLGO.cjs +0 -1
  688. package/dist/chunks/classDiagram-6PBFFD2Q-Ci3S9iu3.mjs +0 -30
  689. package/dist/chunks/classDiagram-6PBFFD2Q-GDkPRBlp.cjs +0 -1
  690. package/dist/chunks/classDiagram-v2-HSJHXN6E-B4vt694Q.cjs +0 -1
  691. package/dist/chunks/classDiagram-v2-HSJHXN6E-BkaFKbgJ.mjs +0 -30
  692. package/dist/chunks/clone-WSLD7bVs.mjs +0 -8
  693. package/dist/chunks/clone-_XTzxdN3.cjs +0 -1
  694. package/dist/chunks/constants-DJjFgioo.cjs +0 -451
  695. package/dist/chunks/constants-DMsOCPcF.mjs +0 -3268
  696. package/dist/chunks/core-C8BHLAAO.cjs +0 -12
  697. package/dist/chunks/core-D2KrVz4a.mjs +0 -4501
  698. package/dist/chunks/cose-bilkent-S5V4N54A-BXBidSxC.mjs +0 -2246
  699. package/dist/chunks/cose-bilkent-S5V4N54A-RkR02HV4.cjs +0 -1
  700. package/dist/chunks/cpp-DVBevX-J.cjs +0 -1
  701. package/dist/chunks/cpp-DnMQuZPn.mjs +0 -16
  702. package/dist/chunks/csharp-ByiKf6DR.mjs +0 -3
  703. package/dist/chunks/csharp-CHUT4JOq.cjs +0 -1
  704. package/dist/chunks/css-BqsWMbBt.mjs +0 -3
  705. package/dist/chunks/css-QEheyxtB.cjs +0 -1
  706. package/dist/chunks/dagre-C7z2UZ4M.mjs +0 -1483
  707. package/dist/chunks/dagre-KV5264BT-B5pZgbkN.cjs +0 -4
  708. package/dist/chunks/dagre-KV5264BT-Ct6qUqKI.mjs +0 -298
  709. package/dist/chunks/dagre-VHP8Ngkv.cjs +0 -1
  710. package/dist/chunks/dart-aYsezAEv.mjs +0 -3
  711. package/dist/chunks/dart-jPH5d8ma.cjs +0 -1
  712. package/dist/chunks/diagram-5BDNPKRD-B9hNG7ht.mjs +0 -112
  713. package/dist/chunks/diagram-5BDNPKRD-C1llOHQP.cjs +0 -10
  714. package/dist/chunks/diagram-G4DWMVQ6-9_YOaVXe.mjs +0 -546
  715. package/dist/chunks/diagram-G4DWMVQ6-CLdEGHkn.cjs +0 -24
  716. package/dist/chunks/diagram-MMDJMWI5-CnbiCUM3.cjs +0 -43
  717. package/dist/chunks/diagram-MMDJMWI5-DmStUoNk.mjs +0 -234
  718. package/dist/chunks/diagram-TYMM5635-BtMB4AKf.cjs +0 -24
  719. package/dist/chunks/diagram-TYMM5635-DmrkkW85.mjs +0 -144
  720. package/dist/chunks/dockerfile-1GBIWF66.mjs +0 -3
  721. package/dist/chunks/dockerfile-B2jMQOes.cjs +0 -1
  722. package/dist/chunks/engine-javascript-CYa8VRAu.mjs +0 -2373
  723. package/dist/chunks/engine-javascript-HHRWd9yA.cjs +0 -141
  724. package/dist/chunks/erDiagram-SMLLAGMA-5vkZ5DwJ.mjs +0 -1712
  725. package/dist/chunks/erDiagram-SMLLAGMA-luvZB3lF.cjs +0 -85
  726. package/dist/chunks/flowDiagram-DWJPFMVM-BpYbAeYP.cjs +0 -162
  727. package/dist/chunks/flowDiagram-DWJPFMVM-CGTiQBd7.mjs +0 -4175
  728. package/dist/chunks/ganttDiagram-T4ZO3ILL-BNtXyM0I.mjs +0 -3083
  729. package/dist/chunks/ganttDiagram-T4ZO3ILL-BaWZufgI.cjs +0 -292
  730. package/dist/chunks/gitGraph-7Q5UKJZL-Ds_Z9h4o.cjs +0 -1
  731. package/dist/chunks/gitGraph-7Q5UKJZL-DxMmuJIv.mjs +0 -3
  732. package/dist/chunks/gitGraphDiagram-UUTBAWPF-CmQR-xZp.mjs +0 -792
  733. package/dist/chunks/gitGraphDiagram-UUTBAWPF-DjMU1Vyg.cjs +0 -106
  734. package/dist/chunks/go-4mRqLTld.mjs +0 -3
  735. package/dist/chunks/go-BX-cNLGO.cjs +0 -1
  736. package/dist/chunks/graphlib-BfwqhpXp.mjs +0 -225
  737. package/dist/chunks/graphlib-CYv_-0LK.cjs +0 -1
  738. package/dist/chunks/graphql-4Htarzhp.mjs +0 -11
  739. package/dist/chunks/graphql-BnxAS09v.cjs +0 -1
  740. package/dist/chunks/html-CAN0GHkJ.cjs +0 -1
  741. package/dist/chunks/html-DW39yhuS.mjs +0 -10
  742. package/dist/chunks/i18next-loader-CyDs2NKf.mjs +0 -35
  743. package/dist/chunks/i18next-loader-cGwOOjK3.cjs +0 -1
  744. package/dist/chunks/info-OMHHGYJF-ChWZqC0a.mjs +0 -3
  745. package/dist/chunks/info-OMHHGYJF-u0RRQ9Uo.cjs +0 -1
  746. package/dist/chunks/infoDiagram-42DDH7IO-BbV_tozh.mjs +0 -29
  747. package/dist/chunks/infoDiagram-42DDH7IO-DOYkYMWg.cjs +0 -2
  748. package/dist/chunks/isEmpty-BHdznGlG.cjs +0 -1
  749. package/dist/chunks/isEmpty-jlCmuYeg.mjs +0 -35
  750. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CbqoivFu.cjs +0 -70
  751. package/dist/chunks/ishikawaDiagram-UXIWVN3A-DJBG3b-A.mjs +0 -719
  752. package/dist/chunks/java-DD_iwrM-.mjs +0 -5
  753. package/dist/chunks/java-O-rzZ2Bn.cjs +0 -1
  754. package/dist/chunks/javascript-CJBlE5PB.mjs +0 -3
  755. package/dist/chunks/javascript-z9G2vOAZ.cjs +0 -1
  756. package/dist/chunks/journeyDiagram-VCZTEJTY-B5Peb7wS.cjs +0 -139
  757. package/dist/chunks/journeyDiagram-VCZTEJTY-BdMsFn3r.mjs +0 -885
  758. package/dist/chunks/json-C_epQRuA.cjs +0 -1
  759. package/dist/chunks/json-yRGZVu2_.mjs +0 -3
  760. package/dist/chunks/kanban-definition-6JOO6SKY-CwmSo6Ve.cjs +0 -89
  761. package/dist/chunks/kanban-definition-6JOO6SKY-ncNaxcxH.mjs +0 -980
  762. package/dist/chunks/kotlin-BmkhKZGf.mjs +0 -3
  763. package/dist/chunks/kotlin-Dj7KFgV1.cjs +0 -1
  764. package/dist/chunks/latex-BeVX0E4Z.mjs +0 -5
  765. package/dist/chunks/latex-u7qVP95p.cjs +0 -1
  766. package/dist/chunks/lightweight-i18n-Bb_VS9v5.mjs +0 -237
  767. package/dist/chunks/lightweight-i18n-CGBjC2TJ.cjs +0 -1
  768. package/dist/chunks/line-B7XG48Uf.cjs +0 -1
  769. package/dist/chunks/line-CWJNfvdn.mjs +0 -34
  770. package/dist/chunks/linear-BU4OjSPS.mjs +0 -289
  771. package/dist/chunks/linear-D5j5Vgij.cjs +0 -1
  772. package/dist/chunks/lua-6ceNckPi.cjs +0 -1
  773. package/dist/chunks/lua-CPnWrc7C.mjs +0 -5
  774. package/dist/chunks/markdown-DSiOSAsn.mjs +0 -3
  775. package/dist/chunks/markdown-Vce1p-mO.cjs +0 -1
  776. package/dist/chunks/mdast-util-math-B9OHoBuN.cjs +0 -5
  777. package/dist/chunks/mdast-util-math-D42zbZda.mjs +0 -151
  778. package/dist/chunks/mermaid-C2y_3PIg.mjs +0 -3
  779. package/dist/chunks/mermaid-Cu5vPKfS.cjs +0 -1
  780. package/dist/chunks/mermaid-parser.core-BrZQFEht.cjs +0 -3
  781. package/dist/chunks/mermaid-parser.core-DBhkcRo7.mjs +0 -57
  782. package/dist/chunks/mermaid.core-GiTRPJLF.cjs +0 -10
  783. package/dist/chunks/mermaid.core-uSzF9nF1.mjs +0 -977
  784. package/dist/chunks/messages--CbdZY2w.cjs +0 -1
  785. package/dist/chunks/messages--c74ihtM.mjs +0 -212
  786. package/dist/chunks/messages-041mNyU42.mjs +0 -212
  787. package/dist/chunks/messages-1hpCmcb5.cjs +0 -1
  788. package/dist/chunks/messages-44SP7ajI.mjs +0 -212
  789. package/dist/chunks/messages-4_3WFJMy2.cjs +0 -1
  790. package/dist/chunks/messages-7NvouWKA2.mjs +0 -212
  791. package/dist/chunks/messages-ADxG1iWK2.cjs +0 -1
  792. package/dist/chunks/messages-AnuHiDPc2.mjs +0 -212
  793. package/dist/chunks/messages-B1V7UT9I.mjs +0 -212
  794. package/dist/chunks/messages-B2Q9NH4D.mjs +0 -212
  795. package/dist/chunks/messages-B3MONaxw2.cjs +0 -1
  796. package/dist/chunks/messages-B3tNgyxG2.cjs +0 -1
  797. package/dist/chunks/messages-B6j77WNV2.mjs +0 -212
  798. package/dist/chunks/messages-B91FdwB0.cjs +0 -1
  799. package/dist/chunks/messages-B9igXgiw.cjs +0 -1
  800. package/dist/chunks/messages-BB1xM_oB.cjs +0 -1
  801. package/dist/chunks/messages-BEV0lzGv2.mjs +0 -212
  802. package/dist/chunks/messages-BG749_88.mjs +0 -212
  803. package/dist/chunks/messages-BGZLiYrQ.cjs +0 -1
  804. package/dist/chunks/messages-BGpGj8nJ2.mjs +0 -212
  805. package/dist/chunks/messages-BK6gK3wu.cjs +0 -1
  806. package/dist/chunks/messages-BKmAFG9Z.cjs +0 -1
  807. package/dist/chunks/messages-BMVJq-1T.cjs +0 -1
  808. package/dist/chunks/messages-BMsqJNz0.cjs +0 -1
  809. package/dist/chunks/messages-BNYDShPm2.mjs +0 -212
  810. package/dist/chunks/messages-BSVhckNg.cjs +0 -1
  811. package/dist/chunks/messages-BUaHDggs.cjs +0 -1
  812. package/dist/chunks/messages-BUaJv5qS.cjs +0 -1
  813. package/dist/chunks/messages-BW--wNis.mjs +0 -212
  814. package/dist/chunks/messages-BXcSH14N.cjs +0 -1
  815. package/dist/chunks/messages-BYOYrUOu.cjs +0 -1
  816. package/dist/chunks/messages-BYSE1Iq2.cjs +0 -1
  817. package/dist/chunks/messages-B_Mqw9Dl2.mjs +0 -212
  818. package/dist/chunks/messages-Bb225KE6.cjs +0 -1
  819. package/dist/chunks/messages-BbYwT3FH2.mjs +0 -212
  820. package/dist/chunks/messages-Bda8jwos2.mjs +0 -212
  821. package/dist/chunks/messages-BdpFAZGZ.mjs +0 -212
  822. package/dist/chunks/messages-BiDR95AW.cjs +0 -1
  823. package/dist/chunks/messages-BkAoxm6t.cjs +0 -1
  824. package/dist/chunks/messages-BmNLNUz_.mjs +0 -212
  825. package/dist/chunks/messages-BnGtg6t4.mjs +0 -212
  826. package/dist/chunks/messages-BnXkEkD_.mjs +0 -212
  827. package/dist/chunks/messages-BpUasRQ3.cjs +0 -1
  828. package/dist/chunks/messages-BwtU06Ax.mjs +0 -212
  829. package/dist/chunks/messages-BxV8K7y42.cjs +0 -1
  830. package/dist/chunks/messages-Bxhns4Ui.cjs +0 -1
  831. package/dist/chunks/messages-ByRcwLIO.mjs +0 -212
  832. package/dist/chunks/messages-C0sxGmLV2.cjs +0 -1
  833. package/dist/chunks/messages-C5nqE8O42.cjs +0 -1
  834. package/dist/chunks/messages-C7il6l-S.cjs +0 -1
  835. package/dist/chunks/messages-CFyGEGXM2.cjs +0 -1
  836. package/dist/chunks/messages-CHBH3EQG.mjs +0 -212
  837. package/dist/chunks/messages-CIYU5iEj.mjs +0 -212
  838. package/dist/chunks/messages-CJGOmFxi.mjs +0 -212
  839. package/dist/chunks/messages-CN2yjHzW.cjs +0 -1
  840. package/dist/chunks/messages-CP7Ncgaf.mjs +0 -212
  841. package/dist/chunks/messages-CP8YKa4F.mjs +0 -212
  842. package/dist/chunks/messages-CTy_3-mw2.cjs +0 -1
  843. package/dist/chunks/messages-CUxaqK8t2.mjs +0 -212
  844. package/dist/chunks/messages-CXDk_Rlr2.mjs +0 -212
  845. package/dist/chunks/messages-CYZxR91M.mjs +0 -212
  846. package/dist/chunks/messages-C_ogasse2.cjs +0 -1
  847. package/dist/chunks/messages-CbFuceEb.cjs +0 -1
  848. package/dist/chunks/messages-CbbYb7cc.cjs +0 -1
  849. package/dist/chunks/messages-CfO5kKI72.cjs +0 -1
  850. package/dist/chunks/messages-Cgv5DuNV.cjs +0 -1
  851. package/dist/chunks/messages-Cjm7Nj1C.mjs +0 -212
  852. package/dist/chunks/messages-CjzZ6nxv.mjs +0 -212
  853. package/dist/chunks/messages-CkBrRFY02.cjs +0 -1
  854. package/dist/chunks/messages-CpVtcYqo.mjs +0 -212
  855. package/dist/chunks/messages-CpppvIiu.cjs +0 -1
  856. package/dist/chunks/messages-CumomgDd2.mjs +0 -212
  857. package/dist/chunks/messages-CvCb4dCy.mjs +0 -212
  858. package/dist/chunks/messages-D3DNj1jh.mjs +0 -212
  859. package/dist/chunks/messages-D7d2U-tx.mjs +0 -212
  860. package/dist/chunks/messages-D8-vyZ2V.cjs +0 -1
  861. package/dist/chunks/messages-DFWhnXF12.mjs +0 -212
  862. package/dist/chunks/messages-DIpVfyX-2.cjs +0 -1
  863. package/dist/chunks/messages-DJBeEI7G.cjs +0 -1
  864. package/dist/chunks/messages-DJr1x1i2.mjs +0 -212
  865. package/dist/chunks/messages-DN7PU5Un2.mjs +0 -212
  866. package/dist/chunks/messages-DR8nFHdw2.cjs +0 -1
  867. package/dist/chunks/messages-DT5Ux3el.cjs +0 -1
  868. package/dist/chunks/messages-DVh_Bwwq.mjs +0 -212
  869. package/dist/chunks/messages-DVwHxslb.mjs +0 -212
  870. package/dist/chunks/messages-DZ1Pfnl0.mjs +0 -212
  871. package/dist/chunks/messages-Da2SYMf52.cjs +0 -1
  872. package/dist/chunks/messages-DaaqkvOz2.cjs +0 -1
  873. package/dist/chunks/messages-DdiqfVCc.cjs +0 -1
  874. package/dist/chunks/messages-DfZe7SKZ.cjs +0 -1
  875. package/dist/chunks/messages-DkJ0bcqu.cjs +0 -1
  876. package/dist/chunks/messages-DkmG49t8.cjs +0 -1
  877. package/dist/chunks/messages-Do3QV7QW.mjs +0 -212
  878. package/dist/chunks/messages-Do4o9ckW.cjs +0 -1
  879. package/dist/chunks/messages-DrbTe09r.cjs +0 -1
  880. package/dist/chunks/messages-Drxwphbg2.mjs +0 -212
  881. package/dist/chunks/messages-DtgIZDlN.cjs +0 -1
  882. package/dist/chunks/messages-DtloGH1v2.mjs +0 -212
  883. package/dist/chunks/messages-Du0zg7UM.mjs +0 -212
  884. package/dist/chunks/messages-DuA_D23n.mjs +0 -212
  885. package/dist/chunks/messages-DwKRw3jP2.mjs +0 -212
  886. package/dist/chunks/messages-DxCaGN-Q2.cjs +0 -1
  887. package/dist/chunks/messages-DxpBJ5ZY.cjs +0 -1
  888. package/dist/chunks/messages-DyWu9_0D.cjs +0 -1
  889. package/dist/chunks/messages-DzAYvMm72.mjs +0 -212
  890. package/dist/chunks/messages-Dzmge-lj.mjs +0 -212
  891. package/dist/chunks/messages-ETNAE7WV.mjs +0 -212
  892. package/dist/chunks/messages-F4r6ruTX2.mjs +0 -212
  893. package/dist/chunks/messages-FNQdT9Da.mjs +0 -212
  894. package/dist/chunks/messages-FYGyC6zk2.mjs +0 -212
  895. package/dist/chunks/messages-Hg0BECWK.cjs +0 -1
  896. package/dist/chunks/messages-JlduXweH2.cjs +0 -1
  897. package/dist/chunks/messages-Km2PU_o7.cjs +0 -1
  898. package/dist/chunks/messages-MgJnGL9X2.cjs +0 -1
  899. package/dist/chunks/messages-PIoKW4js2.cjs +0 -1
  900. package/dist/chunks/messages-VEm9mp5H.cjs +0 -1
  901. package/dist/chunks/messages-WgwkG5PL2.cjs +0 -1
  902. package/dist/chunks/messages-X46KAUoI.cjs +0 -1
  903. package/dist/chunks/messages-ZS1Ro8ZB.mjs +0 -212
  904. package/dist/chunks/messages-ZZd1ckSO2.cjs +0 -1
  905. package/dist/chunks/messages-dyhHlgE9.mjs +0 -212
  906. package/dist/chunks/messages-fAEKtYXO.mjs +0 -212
  907. package/dist/chunks/messages-hhptyJO3.mjs +0 -212
  908. package/dist/chunks/messages-hk4dinYI.mjs +0 -212
  909. package/dist/chunks/messages-knSLxvI6.mjs +0 -212
  910. package/dist/chunks/messages-lORohDgW2.mjs +0 -212
  911. package/dist/chunks/messages-mvnz8DvU.mjs +0 -212
  912. package/dist/chunks/messages-pHWKsrcZ.mjs +0 -212
  913. package/dist/chunks/messages-q2McAyOz.mjs +0 -212
  914. package/dist/chunks/messages-r62SI44r.mjs +0 -212
  915. package/dist/chunks/messages-uFdMhLbJ.mjs +0 -212
  916. package/dist/chunks/messages-vRqPeNM_.cjs +0 -1
  917. package/dist/chunks/messages-vhq442qv.cjs +0 -1
  918. package/dist/chunks/micromark-extension-math-BXJknrtf.cjs +0 -1
  919. package/dist/chunks/micromark-extension-math-x3wvkKaN.mjs +0 -169
  920. package/dist/chunks/mindmap-definition-QFDTVHPH-6O8s-b35.cjs +0 -96
  921. package/dist/chunks/mindmap-definition-QFDTVHPH-BfOyKFtC.mjs +0 -1013
  922. package/dist/chunks/notifier-B-wErJJB.mjs +0 -73
  923. package/dist/chunks/notifier-CwnFVNdD.cjs +0 -1
  924. package/dist/chunks/objectWithoutProperties-BbzyiphF.cjs +0 -1
  925. package/dist/chunks/objectWithoutProperties-Dci1-l7D.mjs +0 -23
  926. package/dist/chunks/one-light-D2mpnHEP.cjs +0 -1
  927. package/dist/chunks/one-light-bqnXiA0I.mjs +0 -4
  928. package/dist/chunks/ordinal-CN3SDQau.mjs +0 -65
  929. package/dist/chunks/ordinal-DFFZs5-y.cjs +0 -1
  930. package/dist/chunks/packet-4T2RLAQJ-7DW35MGl.mjs +0 -3
  931. package/dist/chunks/packet-4T2RLAQJ-B5XvZd2W.cjs +0 -1
  932. package/dist/chunks/php-BMavm1CR.cjs +0 -1
  933. package/dist/chunks/php-Dejkjxb5.mjs +0 -18
  934. package/dist/chunks/pie-ZZUOXDRM-Dtuq0w2k.mjs +0 -3
  935. package/dist/chunks/pie-ZZUOXDRM-SOG0aDPa.cjs +0 -1
  936. package/dist/chunks/pieDiagram-DEJITSTG-B1sjciNi.mjs +0 -179
  937. package/dist/chunks/pieDiagram-DEJITSTG-BkEwYBz9.cjs +0 -30
  938. package/dist/chunks/python-Dcoit5Q5.cjs +0 -1
  939. package/dist/chunks/python-tdu-oDWx.mjs +0 -3
  940. package/dist/chunks/quadrantDiagram-34T5L4WZ-CV838wf-.mjs +0 -1960
  941. package/dist/chunks/quadrantDiagram-34T5L4WZ-RJme4lkz.cjs +0 -7
  942. package/dist/chunks/r-BdDCwgEs.cjs +0 -1
  943. package/dist/chunks/r-D8fCyoTl.mjs +0 -5
  944. package/dist/chunks/radar-PYXPWWZC-Bz4lwSbg.mjs +0 -3
  945. package/dist/chunks/radar-PYXPWWZC-Doch8Lt3.cjs +0 -1
  946. package/dist/chunks/requirementDiagram-MS252O5E-CA3LUAVZ.mjs +0 -2224
  947. package/dist/chunks/requirementDiagram-MS252O5E-CMqFsK_K.cjs +0 -84
  948. package/dist/chunks/ruby-DHm8_lqY.cjs +0 -1
  949. package/dist/chunks/ruby-Z7wCYjey.mjs +0 -33
  950. package/dist/chunks/rust-Cdm0j4IC.cjs +0 -1
  951. package/dist/chunks/rust-D5IQAarB.mjs +0 -3
  952. package/dist/chunks/sankeyDiagram-XADWPNL6-BPaUkDQv.cjs +0 -10
  953. package/dist/chunks/sankeyDiagram-XADWPNL6-Cw8wB2YO.mjs +0 -909
  954. package/dist/chunks/scala-CbcMYkuq.mjs +0 -3
  955. package/dist/chunks/scala-Tb1u_9W3.cjs +0 -1
  956. package/dist/chunks/sequenceDiagram-FGHM5R23-DbM-gyMR.cjs +0 -157
  957. package/dist/chunks/sequenceDiagram-FGHM5R23-pm0MaeXC.mjs +0 -4181
  958. package/dist/chunks/shellscript-CZefq5l_.mjs +0 -3
  959. package/dist/chunks/shellscript-D6KsENaG.cjs +0 -1
  960. package/dist/chunks/sql-BlpbD7FB.cjs +0 -1
  961. package/dist/chunks/sql-C4ibVEDs.mjs +0 -3
  962. package/dist/chunks/stateDiagram-FHFEXIEX-CEcLtV9Z.cjs +0 -1
  963. package/dist/chunks/stateDiagram-FHFEXIEX-CMcsvm0M.mjs +0 -218
  964. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-C4nZGNBm.mjs +0 -28
  965. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-aa692V81.cjs +0 -1
  966. package/dist/chunks/swift-Drpgj9J0.mjs +0 -3
  967. package/dist/chunks/swift-DubrdZus.cjs +0 -1
  968. package/dist/chunks/timeline-definition-GMOUNBTQ-DwHKPj3j.mjs +0 -1084
  969. package/dist/chunks/timeline-definition-GMOUNBTQ-ceXDJGg_.cjs +0 -120
  970. package/dist/chunks/tools-DPov06L-.mjs +0 -11458
  971. package/dist/chunks/tools-NAqHj-Cy.cjs +0 -9
  972. package/dist/chunks/treeView-SZITEDCU-BUuSm_Hn.cjs +0 -1
  973. package/dist/chunks/treeView-SZITEDCU-DPG9FJ6Q.mjs +0 -3
  974. package/dist/chunks/treemap-W4RFUUIX-BerKlw0i.cjs +0 -1
  975. package/dist/chunks/treemap-W4RFUUIX-N4tZJR1-.mjs +0 -3
  976. package/dist/chunks/typescript-BKtlqLze.cjs +0 -1
  977. package/dist/chunks/typescript-Bnpf4OG6.mjs +0 -5
  978. package/dist/chunks/vennDiagram-DHZGUBPP-BzOeMJe8.cjs +0 -34
  979. package/dist/chunks/vennDiagram-DHZGUBPP-Gfy0QWtB.mjs +0 -1876
  980. package/dist/chunks/vitesse-dark-BSL-cCXL.cjs +0 -1
  981. package/dist/chunks/vitesse-dark-dflHsflb.mjs +0 -4
  982. package/dist/chunks/wardley-RL74JXVD-BzKtPJ3g.cjs +0 -1
  983. package/dist/chunks/wardley-RL74JXVD-C7Hzc5y2.mjs +0 -3
  984. package/dist/chunks/wardleyDiagram-NUSXRM2D-ChZiL3a0.mjs +0 -594
  985. package/dist/chunks/wardleyDiagram-NUSXRM2D-qo6LFohO.cjs +0 -20
  986. package/dist/chunks/xml-C1PUeKuL.mjs +0 -5
  987. package/dist/chunks/xml-CwiH0x4E.cjs +0 -1
  988. package/dist/chunks/xychartDiagram-5P7HB3ND-CH1Z2Cbf.cjs +0 -7
  989. package/dist/chunks/xychartDiagram-5P7HB3ND-t_dhLiOA.mjs +0 -2017
  990. package/dist/chunks/yaml-CecI9urB.mjs +0 -3
  991. package/dist/chunks/yaml-CkVxfQ4c.cjs +0 -1
  992. package/dist/messages--zgIPYtb.mjs +0 -212
  993. package/dist/messages-4jULpVvw.mjs +0 -212
  994. package/dist/messages-AbwSlRf_.mjs +0 -212
  995. package/dist/messages-B-dl7Pwb2.mjs +0 -212
  996. package/dist/messages-B3rCRhb1.mjs +0 -212
  997. package/dist/messages-B73L8nKc2.mjs +0 -212
  998. package/dist/messages-BAjsD2Vm2.mjs +0 -212
  999. package/dist/messages-BBodSb5B2.mjs +0 -212
  1000. package/dist/messages-BTpn6H9x2.mjs +0 -212
  1001. package/dist/messages-BWb0GjTj2.mjs +0 -212
  1002. package/dist/messages-BbCgnri12.mjs +0 -212
  1003. package/dist/messages-Bfon_Y3q.mjs +0 -212
  1004. package/dist/messages-BhOtow9J2.mjs +0 -212
  1005. package/dist/messages-BoB7m0uu2.mjs +0 -212
  1006. package/dist/messages-BsOZPjeg.mjs +0 -212
  1007. package/dist/messages-BuzKUYPV.mjs +0 -212
  1008. package/dist/messages-BzOKMdMQ.mjs +0 -212
  1009. package/dist/messages-C2H3PeQW2.mjs +0 -212
  1010. package/dist/messages-C5KNzSTk.mjs +0 -212
  1011. package/dist/messages-CIDYjE6l.mjs +0 -212
  1012. package/dist/messages-CJmyF5ye.mjs +0 -212
  1013. package/dist/messages-CTwiYb2a2.mjs +0 -212
  1014. package/dist/messages-CUHoJaDO.mjs +0 -212
  1015. package/dist/messages-CVeuqUjQ2.mjs +0 -212
  1016. package/dist/messages-CW75b4sz.mjs +0 -212
  1017. package/dist/messages-CXd7YeWV.mjs +0 -212
  1018. package/dist/messages-CjlYkunD.mjs +0 -212
  1019. package/dist/messages-CrGx64yd.mjs +0 -212
  1020. package/dist/messages-Ct0jbgHd.mjs +0 -212
  1021. package/dist/messages-CtKrCYD1.mjs +0 -212
  1022. package/dist/messages-Cu2eLjfJ.mjs +0 -212
  1023. package/dist/messages-CvwQ-fK_2.mjs +0 -212
  1024. package/dist/messages-Cy6UYN9b.mjs +0 -212
  1025. package/dist/messages-D01vnfA9.mjs +0 -212
  1026. package/dist/messages-D0BAV45W.mjs +0 -212
  1027. package/dist/messages-D5LGpdga.mjs +0 -212
  1028. package/dist/messages-DATK4ftv.mjs +0 -212
  1029. package/dist/messages-DEl77Urv2.mjs +0 -212
  1030. package/dist/messages-DHNjM2nv2.mjs +0 -212
  1031. package/dist/messages-DMW8b_sO.mjs +0 -212
  1032. package/dist/messages-DNmgANKr.mjs +0 -212
  1033. package/dist/messages-DQaa3cEM.mjs +0 -212
  1034. package/dist/messages-DSlD4bV9.mjs +0 -212
  1035. package/dist/messages-DTzbkXFt.mjs +0 -212
  1036. package/dist/messages-DbZihxtV.mjs +0 -212
  1037. package/dist/messages-DeE8fyKQ.mjs +0 -212
  1038. package/dist/messages-Dg-TpO2S2.mjs +0 -212
  1039. package/dist/messages-DgP82LzF.mjs +0 -212
  1040. package/dist/messages-Dh3Vt7WC.mjs +0 -212
  1041. package/dist/messages-DiVVyZD22.mjs +0 -212
  1042. package/dist/messages-DpRnGjoe.mjs +0 -212
  1043. package/dist/messages-DqZmrFaa2.mjs +0 -212
  1044. package/dist/messages-Dra9Fz5Q.mjs +0 -212
  1045. package/dist/messages-DuPBRgEF2.mjs +0 -212
  1046. package/dist/messages-DuxEyAY-2.mjs +0 -212
  1047. package/dist/messages-FmJD6lHR2.mjs +0 -212
  1048. package/dist/messages-ONielGl92.mjs +0 -212
  1049. package/dist/messages-RzgUqCGb2.mjs +0 -212
  1050. package/dist/messages-U22AKGKs.mjs +0 -212
  1051. package/dist/messages-XufeeRfO.mjs +0 -212
  1052. package/dist/messages-fprUm7SO2.mjs +0 -212
  1053. package/dist/messages-gFNdz3Tn2.mjs +0 -212
  1054. package/dist/messages-h_n5GBm6.mjs +0 -212
  1055. package/dist/messages-oOogIpsL2.mjs +0 -212
  1056. package/dist/messages-otwg3KcK.mjs +0 -212
  1057. package/dist/messages-rDDoBMWb.mjs +0 -212
  1058. package/dist/messages-trQPxZIu.mjs +0 -212
  1059. package/src/tools/code/highlight-applier.ts +0 -229
  1060. package/src/tools/code/shiki-loader.ts +0 -135
  1061. /package/dist/chunks/{am-CyXvGFRE.cjs → am-CGgVs8Sg.cjs} +0 -0
  1062. /package/dist/chunks/{am-JTszxMum.mjs → am-TVbhxPdQ.mjs} +0 -0
  1063. /package/dist/chunks/{ar-CME8m7Ug.mjs → ar-ClSvzRAM.mjs} +0 -0
  1064. /package/dist/chunks/{ar-BbusVfTp.cjs → ar-nFMIw80i.cjs} +0 -0
  1065. /package/dist/chunks/{array-BMXfsgb2.cjs → array-B193TMZz.cjs} +0 -0
  1066. /package/dist/chunks/{array-B4E6ednJ.mjs → array-ChMzkF5S.mjs} +0 -0
  1067. /package/dist/chunks/{az-D7MMnw6r.cjs → az-Cb6l6ydx.cjs} +0 -0
  1068. /package/dist/chunks/{az-CU1BXEnK.mjs → az-Df0rChHp.mjs} +0 -0
  1069. /package/dist/chunks/{bg-C3H2Qh_2.cjs → bg-BdZUTRFn.cjs} +0 -0
  1070. /package/dist/chunks/{bg-C1QKbOOv.mjs → bg-DLJ0oZ8E.mjs} +0 -0
  1071. /package/dist/chunks/{bn-BGOycYTM.cjs → bn-CneGelWq.cjs} +0 -0
  1072. /package/dist/chunks/{bn-DbDE4DPn.mjs → bn-rM6ek4mO.mjs} +0 -0
  1073. /package/dist/chunks/{bs-5jPxlF97.mjs → bs-16ZwjsQl.mjs} +0 -0
  1074. /package/dist/chunks/{bs-C7amuK1D.cjs → bs-XAmTKQeJ.cjs} +0 -0
  1075. /package/dist/chunks/{cs-BEZB2qcc.mjs → cs-C-zvdtZ-.mjs} +0 -0
  1076. /package/dist/chunks/{cs-BUD3Muxp.cjs → cs-DKYguxBC.cjs} +0 -0
  1077. /package/dist/chunks/{cytoscape.esm-CWkCAUzT.mjs → cytoscape.esm-BsvVxiuI.mjs} +0 -0
  1078. /package/dist/chunks/{cytoscape.esm-CjWrb5SM.cjs → cytoscape.esm-gv01QJ5y.cjs} +0 -0
  1079. /package/dist/chunks/{da-DXZ2uOgL.mjs → da-D1HzIKpF.mjs} +0 -0
  1080. /package/dist/chunks/{da-CO2FYbLa.cjs → da-DiLbdYqu.cjs} +0 -0
  1081. /package/dist/chunks/{de-B8nkOjfD.cjs → de-ClyUjm_W.cjs} +0 -0
  1082. /package/dist/chunks/{de-D4FxC1Yq.mjs → de-Dpmwqjaw.mjs} +0 -0
  1083. /package/dist/chunks/{default-DPWNu2LM.mjs → default-D5Eal3bU.mjs} +0 -0
  1084. /package/dist/chunks/{default-DP8dtTxC.cjs → default-D9azvkQ_.cjs} +0 -0
  1085. /package/dist/chunks/{defaultLocale-BxWls4I1.cjs → defaultLocale-CSsowJXG.cjs} +0 -0
  1086. /package/dist/chunks/{defaultLocale-BYV2aVaI.mjs → defaultLocale-DiiR34KB.mjs} +0 -0
  1087. /package/dist/chunks/{dist-CKM-fjTE.mjs → dist-BFuUZzlT.mjs} +0 -0
  1088. /package/dist/chunks/{dist-CxdzFxpy.cjs → dist-DS4hv48u.cjs} +0 -0
  1089. /package/dist/chunks/{el-D2ILhp1-.cjs → el-CFVhJTIb.cjs} +0 -0
  1090. /package/dist/chunks/{el-DwIVDdku.mjs → el-DQ-dU1wp.mjs} +0 -0
  1091. /package/dist/chunks/{es-DXxnOS9P.cjs → es-BlajxX2r.cjs} +0 -0
  1092. /package/dist/chunks/{es-DlO4MePt.mjs → es-Dhzgzei6.mjs} +0 -0
  1093. /package/dist/chunks/{et-BBSbb8pL.mjs → et-CnhEwclb.mjs} +0 -0
  1094. /package/dist/chunks/{et-mT4xnDc7.cjs → et-ggACA1d9.cjs} +0 -0
  1095. /package/dist/chunks/{fa-DsJou-pw.mjs → fa-B4zSY96K.mjs} +0 -0
  1096. /package/dist/chunks/{fa-D9CUFSHX.cjs → fa-DuYd0CQw.cjs} +0 -0
  1097. /package/dist/chunks/{fi-CsMgo7Wk.mjs → fi-B525ro09.mjs} +0 -0
  1098. /package/dist/chunks/{fi-DpCqdl_1.cjs → fi-D3-4SL4-.cjs} +0 -0
  1099. /package/dist/chunks/{fil-BjeZREJI.cjs → fil-Cs84dmNe.cjs} +0 -0
  1100. /package/dist/chunks/{fil-Dlw8sEta.mjs → fil-DPB6Byn0.mjs} +0 -0
  1101. /package/dist/chunks/{fr-DYmwW1y1.cjs → fr-C8Z2PE7u.cjs} +0 -0
  1102. /package/dist/chunks/{fr-DeapG5NH.mjs → fr-CbMgtPHe.mjs} +0 -0
  1103. /package/dist/chunks/{gu-klAnA_ns.mjs → gu-BDs1p7Uo.mjs} +0 -0
  1104. /package/dist/chunks/{gu-4g6NA9h8.cjs → gu-CPQY3Iyq.cjs} +0 -0
  1105. /package/dist/chunks/{he-2H5DcbO0.cjs → he-BkMGwSM7.cjs} +0 -0
  1106. /package/dist/chunks/{he-9TdyXc1J.mjs → he-DWa_-C46.mjs} +0 -0
  1107. /package/dist/chunks/{hi-DVOss_Zp.mjs → hi-Buu8Rua9.mjs} +0 -0
  1108. /package/dist/chunks/{hi-Dvb4O5oj.cjs → hi-ClQSrRZz.cjs} +0 -0
  1109. /package/dist/chunks/{hr-CXo-QFLf.mjs → hr-WosECnFF.mjs} +0 -0
  1110. /package/dist/chunks/{hr-B4Y5vULZ.cjs → hr-wrh48ogh.cjs} +0 -0
  1111. /package/dist/chunks/{hu-D3Pi7CJx.cjs → hu-BSVMkfs2.cjs} +0 -0
  1112. /package/dist/chunks/{hu-B6uKq-NU.mjs → hu-CeBjtxCd.mjs} +0 -0
  1113. /package/dist/chunks/{hy-DZ74SDlC.cjs → hy-CwF59lJj.cjs} +0 -0
  1114. /package/dist/chunks/{hy-B7CWqbUW.mjs → hy-DwfBE3Yt.mjs} +0 -0
  1115. /package/dist/chunks/{i18next-CkovSPO7.cjs → i18next-C14J6E5L.cjs} +0 -0
  1116. /package/dist/chunks/{i18next-BFvS_Rnh.mjs → i18next-DjO-l2Ee.mjs} +0 -0
  1117. /package/dist/chunks/{id-C5d2QGEQ.mjs → id-CBV5ivYd.mjs} +0 -0
  1118. /package/dist/chunks/{id-WfjZeYKN.cjs → id-DN2KcAmG.cjs} +0 -0
  1119. /package/dist/chunks/{init-C3Dyaaly.mjs → init-C2Iht9jH.mjs} +0 -0
  1120. /package/dist/chunks/{init-BvlcnoG2.cjs → init-DMaknHdL.cjs} +0 -0
  1121. /package/dist/chunks/{isArrayLikeObject-CnaR8YJm.cjs → isArrayLikeObject-Bk7ImDHR.cjs} +0 -0
  1122. /package/dist/chunks/{isArrayLikeObject-B-1mfvNK.mjs → isArrayLikeObject-CyB7POJY.mjs} +0 -0
  1123. /package/dist/chunks/{it-hqsqt6f7.cjs → it-CSt1S7SQ.cjs} +0 -0
  1124. /package/dist/chunks/{it-BgPXC2_F.mjs → it-CU5gg8BZ.mjs} +0 -0
  1125. /package/dist/chunks/{ja-BwLgKsdH.cjs → ja-BbwATm6F.cjs} +0 -0
  1126. /package/dist/chunks/{ja-CQ7ujOz3.mjs → ja-khPKQhMG.mjs} +0 -0
  1127. /package/dist/chunks/{ka-xoKako16.cjs → ka-Cqnq4zZT.cjs} +0 -0
  1128. /package/dist/chunks/{ka-DAPmSm_-.mjs → ka-DN17rDOq.mjs} +0 -0
  1129. /package/dist/chunks/{katex-_C7fvrbX.cjs → katex-D_RH6O9V.cjs} +0 -0
  1130. /package/dist/chunks/{katex-Bbz34ZLq.mjs → katex-thO7aa9b.mjs} +0 -0
  1131. /package/dist/chunks/{km-BJ9H-RbD.mjs → km-BbS9HEwx.mjs} +0 -0
  1132. /package/dist/chunks/{km-D7Fl8wAA.cjs → km-COh3mhzp.cjs} +0 -0
  1133. /package/dist/chunks/{kn-CthdB8vH.mjs → kn-7TPoJJQt.mjs} +0 -0
  1134. /package/dist/chunks/{kn-Ckju1oeq.cjs → kn-CX062fVg.cjs} +0 -0
  1135. /package/dist/chunks/{ko-DbEA41LU.mjs → ko-CDI2MnWL.mjs} +0 -0
  1136. /package/dist/chunks/{ko-Dt1tQEjC.cjs → ko-gSw_U9kC.cjs} +0 -0
  1137. /package/dist/chunks/{ku-B_j9qSrv.mjs → ku-DONc_aap.mjs} +0 -0
  1138. /package/dist/chunks/{ku-_i2C5XD5.cjs → ku-DnvmAkID.cjs} +0 -0
  1139. /package/dist/chunks/{lo-DfEpgG9m.cjs → lo-BrwlEjmE.cjs} +0 -0
  1140. /package/dist/chunks/{lo-DSklR1Zs.mjs → lo-PtNU87QX.mjs} +0 -0
  1141. /package/dist/chunks/{lt-BwLILIED.cjs → lt-Bw969G31.cjs} +0 -0
  1142. /package/dist/chunks/{lt-C9aVbfRt.mjs → lt-CV9PgETS.mjs} +0 -0
  1143. /package/dist/chunks/{lv-DLwMSEc0.mjs → lv-CFPT5CoC.mjs} +0 -0
  1144. /package/dist/chunks/{lv-DdrYab3x.cjs → lv-DhwZOfiA.cjs} +0 -0
  1145. /package/dist/chunks/{micromark-factory-space-BnsBDplI.cjs → micromark-factory-space-CsUhZvC1.cjs} +0 -0
  1146. /package/dist/chunks/{micromark-factory-space-C6wz33de.mjs → micromark-factory-space-y4SDWQKm.mjs} +0 -0
  1147. /package/dist/chunks/{mk-D96bSjMK.mjs → mk-5waYEn6e.mjs} +0 -0
  1148. /package/dist/chunks/{mk-CsPHE4cO.cjs → mk-vuwbN_RA.cjs} +0 -0
  1149. /package/dist/chunks/{ml-CAsiw8BP.cjs → ml-DQZZm6v3.cjs} +0 -0
  1150. /package/dist/chunks/{ml-D1Ek94RG.mjs → ml-iK4LpGaW.mjs} +0 -0
  1151. /package/dist/chunks/{mn-Db6DwHPv.cjs → mn-Dz3r2r3T.cjs} +0 -0
  1152. /package/dist/chunks/{mn-CyNCFOYP.mjs → mn-nfQCBqsj.mjs} +0 -0
  1153. /package/dist/chunks/{mr-CaA3xXVf.mjs → mr-8ddBHqrW.mjs} +0 -0
  1154. /package/dist/chunks/{mr-BBAuoEIQ.cjs → mr-BDjve7Md.cjs} +0 -0
  1155. /package/dist/chunks/{ms-Cfv7BOEG.cjs → ms-2boGmWFn.cjs} +0 -0
  1156. /package/dist/chunks/{ms-IZU-A3Qk.mjs → ms-BRxHmUVO.mjs} +0 -0
  1157. /package/dist/chunks/{my-C-AQLGIp.mjs → my-Bq-MP3br.mjs} +0 -0
  1158. /package/dist/chunks/{my-DOLHceI8.cjs → my-BtRZdE5q.cjs} +0 -0
  1159. /package/dist/chunks/{native-DbFHGXp1.cjs → native-Bok_u8yD.cjs} +0 -0
  1160. /package/dist/chunks/{native-CarRLbbJ.mjs → native-DIGOFhyn.mjs} +0 -0
  1161. /package/dist/chunks/{ne-LaymXAjm.mjs → ne-B6JfM08W.mjs} +0 -0
  1162. /package/dist/chunks/{ne-B2gHspK_.cjs → ne-C9oc_I3v.cjs} +0 -0
  1163. /package/dist/chunks/{nl-C5ezxTkA.cjs → nl-CkIGPyM6.cjs} +0 -0
  1164. /package/dist/chunks/{nl-Dm1eVwTA.mjs → nl-NuO8CW66.mjs} +0 -0
  1165. /package/dist/chunks/{no-B2WicGhz.mjs → no-BtwrqS-b.mjs} +0 -0
  1166. /package/dist/chunks/{no-D4hjenPs.cjs → no-De7tM2WX.cjs} +0 -0
  1167. /package/dist/chunks/{pa-CemLebw7.cjs → pa-Bm15OLTz.cjs} +0 -0
  1168. /package/dist/chunks/{pa-ry61xHq9.mjs → pa-ClSxjHFF.mjs} +0 -0
  1169. /package/dist/chunks/{path-CLcQoP7n.cjs → path-CFQyJ4S5.cjs} +0 -0
  1170. /package/dist/chunks/{path-Crax6eds.mjs → path-iPyWZTLQ.mjs} +0 -0
  1171. /package/dist/chunks/{pl-DzCnx7eR.mjs → pl-C-aTCeRd.mjs} +0 -0
  1172. /package/dist/chunks/{pl-D_sFAkCs.cjs → pl-D80QrSlq.cjs} +0 -0
  1173. /package/dist/chunks/{ps-DKXG6JHY.mjs → ps-B8wPRrcC.mjs} +0 -0
  1174. /package/dist/chunks/{ps-ygHHO68A.cjs → ps-ySfeV5NE.cjs} +0 -0
  1175. /package/dist/chunks/{pt-e09B0rEd.mjs → pt-8tijWt3B.mjs} +0 -0
  1176. /package/dist/chunks/{pt-x_mmaTtD.cjs → pt-Bigoi5oj.cjs} +0 -0
  1177. /package/dist/chunks/{ro-HNnYR5pB.mjs → ro-BiUSkkwp.mjs} +0 -0
  1178. /package/dist/chunks/{ro-CLGSgHzJ.cjs → ro-Dvtjmd-W.cjs} +0 -0
  1179. /package/dist/chunks/{rough.esm-BaIXPgTh.cjs → rough.esm-DC-UFdM0.cjs} +0 -0
  1180. /package/dist/chunks/{rough.esm-CChKUjNP.mjs → rough.esm-buj-m5wB.mjs} +0 -0
  1181. /package/dist/chunks/{ru-LpaLXWmO.cjs → ru-dq73Ra3e.cjs} +0 -0
  1182. /package/dist/chunks/{ru-D_jTWgK8.mjs → ru-qkCthz2J.mjs} +0 -0
  1183. /package/dist/chunks/{sd-B5PS8K1I.cjs → sd-BhtQCaFq.cjs} +0 -0
  1184. /package/dist/chunks/{sd-B7bgXBin.mjs → sd-DfoXSEBK.mjs} +0 -0
  1185. /package/dist/chunks/{si-BjMoO5xu.cjs → si-CWG8h4tD.cjs} +0 -0
  1186. /package/dist/chunks/{si-aQCsTBIp.mjs → si-RPCp-GrG.mjs} +0 -0
  1187. /package/dist/chunks/{sk-pQPYnDDU.cjs → sk-Bkag9oKD.cjs} +0 -0
  1188. /package/dist/chunks/{sk-Bjrct9rr.mjs → sk-CVRHQjYN.mjs} +0 -0
  1189. /package/dist/chunks/{sl-B_yalM3h.cjs → sl-BhupPCcO.cjs} +0 -0
  1190. /package/dist/chunks/{sl-DvS57kCB.mjs → sl-Clf3YXji.mjs} +0 -0
  1191. /package/dist/chunks/{sq-gzZkHXFJ.cjs → sq-Bosym4Xb.cjs} +0 -0
  1192. /package/dist/chunks/{sq-BexoWiW2.mjs → sq-C-nwTgWs.mjs} +0 -0
  1193. /package/dist/chunks/{sr-CXir4bLq.mjs → sr-BiElo1CU.mjs} +0 -0
  1194. /package/dist/chunks/{sr-O4v1KJY1.cjs → sr-DFPGZJ0s.cjs} +0 -0
  1195. /package/dist/chunks/{src-d9yswOqA.cjs → src-al3Kn9PA.cjs} +0 -0
  1196. /package/dist/chunks/{src-yreeH1hr.mjs → src-gZQLeVvM.mjs} +0 -0
  1197. /package/dist/chunks/{sv-D0tEFwN7.cjs → sv-CiYmSxqX.cjs} +0 -0
  1198. /package/dist/chunks/{sv-B_Owhjrs.mjs → sv-DVztafBI.mjs} +0 -0
  1199. /package/dist/chunks/{sw-DE8oPVEt.cjs → sw-CMbHoINv.cjs} +0 -0
  1200. /package/dist/chunks/{sw-B4p84FCO.mjs → sw-CgJk20G2.mjs} +0 -0
  1201. /package/dist/chunks/{ta-BCVLtFMU.cjs → ta-BrC1o95Z.cjs} +0 -0
  1202. /package/dist/chunks/{ta-BU_-jQ33.mjs → ta-rqChn3y2.mjs} +0 -0
  1203. /package/dist/chunks/{te-BISdOeGS.cjs → te-DAKpWpi8.cjs} +0 -0
  1204. /package/dist/chunks/{te-5FGke4TK.mjs → te-LIsqeDyD.mjs} +0 -0
  1205. /package/dist/chunks/{th-DFyekAQ3.mjs → th-Bm6lDr_S.mjs} +0 -0
  1206. /package/dist/chunks/{th-CJXhSA-L.cjs → th-D0CG2M2k.cjs} +0 -0
  1207. /package/dist/chunks/{tr-BjTvmhJt.cjs → tr-Bw_nVU1b.cjs} +0 -0
  1208. /package/dist/chunks/{tr-C7Zj3lX4.mjs → tr-g8oLvvcP.mjs} +0 -0
  1209. /package/dist/chunks/{types-BNvlbr9u.mjs → types-DrdCPGbk.mjs} +0 -0
  1210. /package/dist/chunks/{types-BQX8SD8Q.cjs → types-GPfn5gE2.cjs} +0 -0
  1211. /package/dist/chunks/{ug-DsQjxbOa.cjs → ug-DvC-UnxD.cjs} +0 -0
  1212. /package/dist/chunks/{ug-DJwD0iui.mjs → ug-zVaKVoWE.mjs} +0 -0
  1213. /package/dist/chunks/{uk-BPzbNIjw.cjs → uk-Cx32rUi7.cjs} +0 -0
  1214. /package/dist/chunks/{uk-hkOj8kWN.mjs → uk-DGVBUwum.mjs} +0 -0
  1215. /package/dist/chunks/{ur-Cy5A8nFG.mjs → ur-7wbChoVl.mjs} +0 -0
  1216. /package/dist/chunks/{ur-Do8k1hR-.cjs → ur-BMh2seDu.cjs} +0 -0
  1217. /package/dist/chunks/{vi-CCTEx9XR.cjs → vi-4TUS0GSi.cjs} +0 -0
  1218. /package/dist/chunks/{vi-CEt0cTzQ.mjs → vi-CLg1e4-a.mjs} +0 -0
  1219. /package/dist/chunks/{zh-Ive4on8E.cjs → zh-DZtmJNDR.cjs} +0 -0
  1220. /package/dist/chunks/{zh-BwQjLCGO.mjs → zh-LvpOPMNT.mjs} +0 -0
@@ -0,0 +1,3786 @@
1
+ import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
2
+ import { i as t, l as n, n as r } from "./chunk-5PVQY5BW-DVKx7m4a.mjs";
3
+ import { g as i, h as a, p as o } from "./src-gZQLeVvM.mjs";
4
+ import { L as s, R as c, b as l, h as u, j as d, k as f, w as p, y as m } from "./chunk-ICPOFSXX-Dn5WbEeN.mjs";
5
+ import { n as h, r as g } from "./chunk-U2HBQHQK-DLyzqElq.mjs";
6
+ import { n as _, t as v } from "./chunk-ZZ45TVLE-DyYus02Y.mjs";
7
+ import { a as y, i as b, r as x, t as S } from "./chunk-X2U36JSP-UKGkP2m1.mjs";
8
+ import { t as C } from "./rough.esm-buj-m5wB.mjs";
9
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.mjs
10
+ var w = /* @__PURE__ */ a(async (e, r, i) => {
11
+ var a, c, d;
12
+ let f, p = r.useHtmlLabels || u((a = l()) == null ? void 0 : a.htmlLabels);
13
+ f = i || "node default";
14
+ let m = e.insert("g").attr("class", f).attr("id", r.domId || r.id), g = m.insert("g").attr("class", "label").attr("style", n(r.labelStyle)), _;
15
+ _ = r.label === void 0 ? "" : typeof r.label == "string" ? r.label : r.label[0];
16
+ let y = !!r.icon || !!r.img, b = r.labelType === "markdown", x = await h(g, s(t(_), l()), {
17
+ useHtmlLabels: p,
18
+ width: r.width || ((c = l().flowchart) == null ? void 0 : c.wrappingWidth),
19
+ classes: b ? "markdown-node-label" : "",
20
+ style: r.labelStyle,
21
+ addSvgBackground: y,
22
+ markdown: b
23
+ }, l()), S = x.getBBox(), C = ((d = r == null ? void 0 : r.padding) == null ? 0 : d) / 2;
24
+ if (p) {
25
+ let e = x.children[0], t = o(x);
26
+ await v(e, _), S = e.getBoundingClientRect(), t.attr("width", S.width), t.attr("height", S.height);
27
+ }
28
+ return p ? g.attr("transform", "translate(" + -S.width / 2 + ", " + -S.height / 2 + ")") : g.attr("transform", "translate(0, " + -S.height / 2 + ")"), r.centerLabel && g.attr("transform", "translate(" + -S.width / 2 + ", " + -S.height / 2 + ")"), g.insert("rect", ":first-child"), {
29
+ shapeSvg: m,
30
+ bbox: S,
31
+ halfPadding: C,
32
+ label: g
33
+ };
34
+ }, "labelHelper"), T = /* @__PURE__ */ a(async (e, n, r) => {
35
+ var i, a;
36
+ let c = (i = r.useHtmlLabels) == null ? p(l()) : i, u = e.insert("g").attr("class", "label").attr("style", r.labelStyle || ""), d = await h(u, s(t(n), l()), {
37
+ useHtmlLabels: c,
38
+ width: r.width || ((a = l()) == null || (a = a.flowchart) == null ? void 0 : a.wrappingWidth),
39
+ style: r.labelStyle,
40
+ addSvgBackground: !!r.icon || !!r.img
41
+ }), f = d.getBBox(), m = r.padding / 2;
42
+ if (p(l())) {
43
+ let e = d.children[0], t = o(d);
44
+ f = e.getBoundingClientRect(), t.attr("width", f.width), t.attr("height", f.height);
45
+ }
46
+ return c ? u.attr("transform", "translate(" + -f.width / 2 + ", " + -f.height / 2 + ")") : u.attr("transform", "translate(0, " + -f.height / 2 + ")"), r.centerLabel && u.attr("transform", "translate(" + -f.width / 2 + ", " + -f.height / 2 + ")"), u.insert("rect", ":first-child"), {
47
+ shapeSvg: e,
48
+ bbox: f,
49
+ halfPadding: m,
50
+ label: u
51
+ };
52
+ }, "insertLabel"), E = /* @__PURE__ */ a((e, t) => {
53
+ let n = t.node().getBBox();
54
+ e.width = n.width, e.height = n.height;
55
+ }, "updateNodeBounds"), D = /* @__PURE__ */ a((e, t) => (e.look === "handDrawn" ? "rough-node" : "node") + " " + e.cssClasses + " " + (t || ""), "getNodeClasses");
56
+ function O(e) {
57
+ let t = e.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`);
58
+ return t.push("Z"), t.join(" ");
59
+ }
60
+ a(O, "createPathFromPoints");
61
+ function k(e, t, n, r, i, a) {
62
+ let o = [], s = n - e, c = r - t, l = s / a, u = 2 * Math.PI / l, d = t + c / 2;
63
+ for (let t = 0; t <= 50; t++) {
64
+ let n = e + t / 50 * s, r = d + i * Math.sin(u * (n - e));
65
+ o.push({
66
+ x: n,
67
+ y: r
68
+ });
69
+ }
70
+ return o;
71
+ }
72
+ a(k, "generateFullSineWavePoints");
73
+ function A(e, t, n, r, i, a) {
74
+ let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
75
+ for (let i = 0; i < r; i++) {
76
+ let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
77
+ o.push({
78
+ x: -a,
79
+ y: -l
80
+ });
81
+ }
82
+ return o;
83
+ }
84
+ a(A, "generateCirclePoints");
85
+ function j(e) {
86
+ let t = Array.from(e.childNodes).filter((e) => e.tagName === "path"), n = document.createElementNS("http://www.w3.org/2000/svg", "path"), r = t.map((e) => e.getAttribute("d")).filter((e) => e !== null).join(" ");
87
+ n.setAttribute("d", r);
88
+ let i = t.find((e) => e.getAttribute("fill") !== "none"), o = t.find((e) => e.getAttribute("stroke") !== "none"), s = /* @__PURE__ */ a((e, t) => {
89
+ var n;
90
+ return (n = e == null ? void 0 : e.getAttribute(t)) == null ? void 0 : n;
91
+ }, "getAttr");
92
+ if (i) {
93
+ var c;
94
+ let e = {
95
+ fill: s(i, "fill"),
96
+ "fill-opacity": (c = s(i, "fill-opacity")) == null ? "1" : c
97
+ };
98
+ Object.entries(e).forEach(([e, t]) => {
99
+ t && n.setAttribute(e, t);
100
+ });
101
+ }
102
+ if (o) {
103
+ var l, u;
104
+ let e = {
105
+ stroke: s(o, "stroke"),
106
+ "stroke-width": (l = s(o, "stroke-width")) == null ? "1" : l,
107
+ "stroke-opacity": (u = s(o, "stroke-opacity")) == null ? "1" : u
108
+ };
109
+ Object.entries(e).forEach(([e, t]) => {
110
+ t && n.setAttribute(e, t);
111
+ });
112
+ }
113
+ let d = document.createElementNS("http://www.w3.org/2000/svg", "g");
114
+ return d.appendChild(n), d;
115
+ }
116
+ a(j, "mergePaths");
117
+ var M = /* @__PURE__ */ a((e, t) => {
118
+ var n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2, c, l;
119
+ return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = a === 0 ? 0 : s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = i === 0 ? 0 : o * a / i), {
120
+ x: n + c,
121
+ y: r + l
122
+ };
123
+ }, "intersectRect"), N = /* @__PURE__ */ a(async (e, t, n, r = !1, i = !1) => {
124
+ let a = t || "";
125
+ typeof a == "object" && (a = a[0]);
126
+ let o = l(), s = p(o);
127
+ return await h(e, a, {
128
+ style: n,
129
+ isTitle: r,
130
+ useHtmlLabels: s,
131
+ markdown: !1,
132
+ isNode: i,
133
+ width: Infinity
134
+ }, o);
135
+ }, "createLabel"), P = /* @__PURE__ */ a((e, t, n, r, i) => [
136
+ "M",
137
+ e + i,
138
+ t,
139
+ "H",
140
+ e + n - i,
141
+ "A",
142
+ i,
143
+ i,
144
+ 0,
145
+ 0,
146
+ 1,
147
+ e + n,
148
+ t + i,
149
+ "V",
150
+ t + r - i,
151
+ "A",
152
+ i,
153
+ i,
154
+ 0,
155
+ 0,
156
+ 1,
157
+ e + n - i,
158
+ t + r,
159
+ "H",
160
+ e + i,
161
+ "A",
162
+ i,
163
+ i,
164
+ 0,
165
+ 0,
166
+ 1,
167
+ e,
168
+ t + r - i,
169
+ "V",
170
+ t + i,
171
+ "A",
172
+ i,
173
+ i,
174
+ 0,
175
+ 0,
176
+ 1,
177
+ e + i,
178
+ t,
179
+ "Z"
180
+ ].join(" "), "createRoundedRectPathD"), F = /* @__PURE__ */ a(async (e, t) => {
181
+ i.info("Creating subgraph rect for ", t.id, t);
182
+ let n = l(), { themeVariables: r, handDrawnSeed: a } = n, { clusterBkg: s, clusterBorder: c } = r, { labelStyles: u, nodeStyles: d, borderStyles: f, backgroundStyles: m } = b(t), g = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.domId).attr("data-look", t.look), v = p(n), x = g.insert("g").attr("class", "cluster-label "), S;
183
+ S = t.labelType === "markdown" ? await h(x, t.label, {
184
+ style: t.labelStyle,
185
+ useHtmlLabels: v,
186
+ isNode: !0,
187
+ width: t.width
188
+ }) : await N(x, t.label, t.labelStyle || "", !1, !0);
189
+ let w = S.getBBox();
190
+ if (p(n)) {
191
+ let e = S.children[0], t = o(S);
192
+ w = e.getBoundingClientRect(), t.attr("width", w.width), t.attr("height", w.height);
193
+ }
194
+ let T = t.width <= w.width + t.padding ? w.width + t.padding : t.width;
195
+ t.width <= w.width + t.padding ? t.diff = (T - t.width) / 2 - t.padding : t.diff = -t.padding;
196
+ let E = t.height, D = t.x - T / 2, O = t.y - E / 2;
197
+ i.trace("Data ", t, JSON.stringify(t));
198
+ let k;
199
+ if (t.look === "handDrawn") {
200
+ let e = C.svg(g), n = y(t, {
201
+ roughness: .7,
202
+ fill: s,
203
+ stroke: c,
204
+ fillWeight: 3,
205
+ seed: a
206
+ }), r = e.path(P(D, O, T, E, 0), n);
207
+ k = g.insert(() => (i.debug("Rough node insert CXC", r), r), ":first-child"), k.select("path:nth-child(2)").attr("style", f.join(";")), k.select("path").attr("style", m.join(";").replace("fill", "stroke"));
208
+ } else k = g.insert("rect", ":first-child"), k.attr("style", d).attr("rx", t.rx).attr("ry", t.ry).attr("x", D).attr("y", O).attr("width", T).attr("height", E);
209
+ let { subGraphTitleTopMargin: A } = _(n);
210
+ if (x.attr("transform", `translate(${t.x - w.width / 2}, ${t.y - t.height / 2 + A})`), u) {
211
+ let e = x.select("span");
212
+ e && e.attr("style", u);
213
+ }
214
+ let j = k.node().getBBox();
215
+ return t.offsetX = 0, t.width = j.width, t.height = j.height, t.offsetY = w.height - t.padding / 2, t.intersect = function(e) {
216
+ return M(t, e);
217
+ }, {
218
+ cluster: g,
219
+ labelBBox: w
220
+ };
221
+ }, "rect"), I = {
222
+ rect: F,
223
+ squareRect: F,
224
+ roundedWithTitle: /* @__PURE__ */ a(async (e, t) => {
225
+ let n = l(), { themeVariables: r, handDrawnSeed: i } = n, { altBackground: a, compositeBackground: s, compositeTitleBackground: c, nodeBorder: u } = r, d = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-id", t.id).attr("data-look", t.look), f = d.insert("g", ":first-child"), m = d.insert("g").attr("class", "cluster-label"), h = d.append("rect"), g = await N(m, t.label, t.labelStyle, void 0, !0), _ = g.getBBox();
226
+ if (p(n)) {
227
+ let e = g.children[0], t = o(g);
228
+ _ = e.getBoundingClientRect(), t.attr("width", _.width), t.attr("height", _.height);
229
+ }
230
+ let v = 0 * t.padding, y = v / 2, b = (t.width <= _.width + t.padding ? _.width + t.padding : t.width) + v;
231
+ t.width <= _.width + t.padding ? t.diff = (b - t.width) / 2 - t.padding : t.diff = -t.padding;
232
+ let x = t.height + v, S = t.height + v - _.height - 6, w = t.x - b / 2, T = t.y - x / 2;
233
+ t.width = b;
234
+ let E = t.y - t.height / 2 - y + _.height + 2, D;
235
+ if (t.look === "handDrawn") {
236
+ let e = t.cssClasses.includes("statediagram-cluster-alt"), n = C.svg(d), r = t.rx || t.ry ? n.path(P(w, T, b, x, 10), {
237
+ roughness: .7,
238
+ fill: c,
239
+ fillStyle: "solid",
240
+ stroke: u,
241
+ seed: i
242
+ }) : n.rectangle(w, T, b, x, { seed: i });
243
+ D = d.insert(() => r, ":first-child");
244
+ let o = n.rectangle(w, E, b, S, {
245
+ fill: e ? a : s,
246
+ fillStyle: e ? "hachure" : "solid",
247
+ stroke: u,
248
+ seed: i
249
+ });
250
+ D = d.insert(() => r, ":first-child"), h = d.insert(() => o);
251
+ } else D = f.insert("rect", ":first-child"), D.attr("class", "outer").attr("x", w).attr("y", T).attr("width", b).attr("height", x).attr("data-look", t.look), h.attr("class", "inner").attr("x", w).attr("y", E).attr("width", b).attr("height", S);
252
+ return m.attr("transform", `translate(${t.x - _.width / 2}, ${T + 1 - (p(n) ? 0 : 3)})`), t.height = D.node().getBBox().height, t.offsetX = 0, t.offsetY = _.height - t.padding / 2, t.labelBBox = _, t.intersect = function(e) {
253
+ return M(t, e);
254
+ }, {
255
+ cluster: d,
256
+ labelBBox: _
257
+ };
258
+ }, "roundedWithTitle"),
259
+ noteGroup: /* @__PURE__ */ a((e, t) => {
260
+ let n = e.insert("g").attr("class", "note-cluster").attr("id", t.domId), r = n.insert("rect", ":first-child"), i = 0 * t.padding, a = i / 2;
261
+ r.attr("rx", t.rx).attr("ry", t.ry).attr("x", t.x - t.width / 2 - a).attr("y", t.y - t.height / 2 - a).attr("width", t.width + i).attr("height", t.height + i).attr("fill", "none");
262
+ let o = r.node().getBBox();
263
+ return t.width = o.width, t.height = o.height, t.intersect = function(e) {
264
+ return M(t, e);
265
+ }, {
266
+ cluster: n,
267
+ labelBBox: {
268
+ width: 0,
269
+ height: 0
270
+ }
271
+ };
272
+ }, "noteGroup"),
273
+ divider: /* @__PURE__ */ a((e, t) => {
274
+ let { themeVariables: n, handDrawnSeed: r } = l(), { nodeBorder: i } = n, a = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-look", t.look), o = a.insert("g", ":first-child"), s = 0 * t.padding, c = t.width + s;
275
+ t.diff = -t.padding;
276
+ let u = t.height + s, d = t.x - c / 2, f = t.y - u / 2;
277
+ t.width = c;
278
+ let p;
279
+ if (t.look === "handDrawn") {
280
+ let e = C.svg(a).rectangle(d, f, c, u, {
281
+ fill: "lightgrey",
282
+ roughness: .5,
283
+ strokeLineDash: [5],
284
+ stroke: i,
285
+ seed: r
286
+ });
287
+ p = a.insert(() => e, ":first-child");
288
+ } else {
289
+ p = o.insert("rect", ":first-child");
290
+ let e = "outer";
291
+ e = (t.look, "divider"), p.attr("class", e).attr("x", d).attr("y", f).attr("width", c).attr("height", u).attr("data-look", t.look);
292
+ }
293
+ return t.height = p.node().getBBox().height, t.offsetX = 0, t.offsetY = 0, t.intersect = function(e) {
294
+ return M(t, e);
295
+ }, {
296
+ cluster: a,
297
+ labelBBox: {}
298
+ };
299
+ }, "divider"),
300
+ kanbanSection: /* @__PURE__ */ a(async (e, t) => {
301
+ i.info("Creating subgraph rect for ", t.id, t);
302
+ let n = l(), { themeVariables: r, handDrawnSeed: a } = n, { clusterBkg: s, clusterBorder: c } = r, { labelStyles: u, nodeStyles: d, borderStyles: f, backgroundStyles: m } = b(t), g = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.domId).attr("data-look", t.look), v = p(n), x = g.insert("g").attr("class", "cluster-label "), S = await h(x, t.label, {
303
+ style: t.labelStyle,
304
+ useHtmlLabels: v,
305
+ isNode: !0,
306
+ width: t.width
307
+ }), w = S.getBBox();
308
+ if (p(n)) {
309
+ let e = S.children[0], t = o(S);
310
+ w = e.getBoundingClientRect(), t.attr("width", w.width), t.attr("height", w.height);
311
+ }
312
+ let T = t.width <= w.width + t.padding ? w.width + t.padding : t.width;
313
+ t.width <= w.width + t.padding ? t.diff = (T - t.width) / 2 - t.padding : t.diff = -t.padding;
314
+ let E = t.height, D = t.x - T / 2, O = t.y - E / 2;
315
+ i.trace("Data ", t, JSON.stringify(t));
316
+ let k;
317
+ if (t.look === "handDrawn") {
318
+ let e = C.svg(g), n = y(t, {
319
+ roughness: .7,
320
+ fill: s,
321
+ stroke: c,
322
+ fillWeight: 4,
323
+ seed: a
324
+ }), r = e.path(P(D, O, T, E, t.rx), n);
325
+ k = g.insert(() => (i.debug("Rough node insert CXC", r), r), ":first-child"), k.select("path:nth-child(2)").attr("style", f.join(";")), k.select("path").attr("style", m.join(";").replace("fill", "stroke"));
326
+ } else k = g.insert("rect", ":first-child"), k.attr("style", d).attr("rx", t.rx).attr("ry", t.ry).attr("x", D).attr("y", O).attr("width", T).attr("height", E);
327
+ let { subGraphTitleTopMargin: A } = _(n);
328
+ if (x.attr("transform", `translate(${t.x - w.width / 2}, ${t.y - t.height / 2 + A})`), u) {
329
+ let e = x.select("span");
330
+ e && e.attr("style", u);
331
+ }
332
+ let j = k.node().getBBox();
333
+ return t.offsetX = 0, t.width = j.width, t.height = j.height, t.offsetY = w.height - t.padding / 2, t.intersect = function(e) {
334
+ return M(t, e);
335
+ }, {
336
+ cluster: g,
337
+ labelBBox: w
338
+ };
339
+ }, "kanbanSection")
340
+ }, L = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ a(async (e, t) => {
341
+ let n = await I[t.shape || "rect"](e, t);
342
+ return L.set(t.id, n), n;
343
+ }, "insertCluster"), z = /* @__PURE__ */ a(() => {
344
+ L = /* @__PURE__ */ new Map();
345
+ }, "clear");
346
+ function B(e, t) {
347
+ return e.intersect(t);
348
+ }
349
+ a(B, "intersectNode");
350
+ var V = B;
351
+ function H(e, t, n, r) {
352
+ var i = e.x, a = e.y, o = i - r.x, s = a - r.y, c = Math.sqrt(t * t * s * s + n * n * o * o), l = Math.abs(t * n * o / c);
353
+ r.x < i && (l = -l);
354
+ var u = Math.abs(t * n * s / c);
355
+ return r.y < a && (u = -u), {
356
+ x: i + l,
357
+ y: a + u
358
+ };
359
+ }
360
+ a(H, "intersectEllipse");
361
+ var U = H;
362
+ function W(e, t, n) {
363
+ return U(e, t, t, n);
364
+ }
365
+ a(W, "intersectCircle");
366
+ var G = W;
367
+ function ee(e, t, n, r) {
368
+ {
369
+ let i = t.y - e.y, a = e.x - t.x, o = t.x * e.y - e.x * t.y, s = i * n.x + a * n.y + o, c = i * r.x + a * r.y + o, l = 1e-6;
370
+ if (s !== 0 && c !== 0 && te(s, c)) return;
371
+ let u = r.y - n.y, d = n.x - r.x, f = r.x * n.y - n.x * r.y, p = u * e.x + d * e.y + f, m = u * t.x + d * t.y + f;
372
+ if (Math.abs(p) < l && Math.abs(m) < l && te(p, m)) return;
373
+ let h = i * d - u * a;
374
+ if (h === 0) return;
375
+ let g = Math.abs(h / 2), _ = a * f - d * o, v = _ < 0 ? (_ - g) / h : (_ + g) / h;
376
+ return _ = u * o - i * f, {
377
+ x: v,
378
+ y: _ < 0 ? (_ - g) / h : (_ + g) / h
379
+ };
380
+ }
381
+ }
382
+ a(ee, "intersectLine");
383
+ function te(e, t) {
384
+ return e * t > 0;
385
+ }
386
+ a(te, "sameSign");
387
+ var ne = ee;
388
+ function K(e, t, n) {
389
+ let r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
390
+ typeof t.forEach == "function" ? t.forEach(function(e) {
391
+ o = Math.min(o, e.x), s = Math.min(s, e.y);
392
+ }) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
393
+ let c = r - e.width / 2 - o, l = i - e.height / 2 - s;
394
+ for (let r = 0; r < t.length; r++) {
395
+ let i = t[r], o = t[r < t.length - 1 ? r + 1 : 0], s = ne(e, n, {
396
+ x: c + i.x,
397
+ y: l + i.y
398
+ }, {
399
+ x: c + o.x,
400
+ y: l + o.y
401
+ });
402
+ s && a.push(s);
403
+ }
404
+ return a.length ? (a.length > 1 && a.sort(function(e, t) {
405
+ let r = e.x - n.x, i = e.y - n.y, a = Math.sqrt(r * r + i * i), o = t.x - n.x, s = t.y - n.y, c = Math.sqrt(o * o + s * s);
406
+ return a < c ? -1 : a === c ? 0 : 1;
407
+ }), a[0]) : e;
408
+ }
409
+ a(K, "intersectPolygon");
410
+ var q = {
411
+ node: V,
412
+ circle: G,
413
+ ellipse: U,
414
+ polygon: K,
415
+ rect: M
416
+ };
417
+ function re(e, t) {
418
+ let { labelStyles: r } = b(t);
419
+ t.labelStyle = r;
420
+ let a = D(t), o = a;
421
+ a || (o = "anchor");
422
+ let s = e.insert("g").attr("class", o).attr("id", t.domId || t.id), { cssStyles: c } = t, l = C.svg(s), u = y(t, {
423
+ fill: "black",
424
+ stroke: "none",
425
+ fillStyle: "solid"
426
+ });
427
+ t.look !== "handDrawn" && (u.roughness = 0);
428
+ let d = l.circle(0, 0, 2, u), f = s.insert(() => d, ":first-child");
429
+ return f.attr("class", "anchor").attr("style", n(c)), E(t, f), t.intersect = function(e) {
430
+ return i.info("Circle intersect", t, 1, e), q.circle(t, 1, e);
431
+ }, s;
432
+ }
433
+ a(re, "anchor");
434
+ function ie(e, t, n, r, i, a, o) {
435
+ let s = (e + n) / 2, c = (t + r) / 2, l = Math.atan2(r - t, n - e), u = (n - e) / 2, d = (r - t) / 2, f = u / i, p = d / a, m = Math.sqrt(f ** 2 + p ** 2);
436
+ if (m > 1) throw Error("The given radii are too small to create an arc between the points.");
437
+ let h = Math.sqrt(1 - m ** 2), g = s + h * a * Math.sin(l) * (o ? -1 : 1), _ = c - h * i * Math.cos(l) * (o ? -1 : 1), v = Math.atan2((t - _) / a, (e - g) / i), y = Math.atan2((r - _) / a, (n - g) / i) - v;
438
+ o && y < 0 && (y += 2 * Math.PI), !o && y > 0 && (y -= 2 * Math.PI);
439
+ let b = [];
440
+ for (let e = 0; e < 20; e++) {
441
+ let t = v + e / 19 * y, n = g + i * Math.cos(t), r = _ + a * Math.sin(t);
442
+ b.push({
443
+ x: n,
444
+ y: r
445
+ });
446
+ }
447
+ return b;
448
+ }
449
+ a(ie, "generateArcPoints");
450
+ function ae(e, t, n) {
451
+ let [r, i] = [t, n].sort((e, t) => t - e);
452
+ return i * (1 - Math.sqrt(1 - (e / r / 2) ** 2));
453
+ }
454
+ a(ae, "calculateArcSagitta");
455
+ async function J(e, t) {
456
+ var n;
457
+ let { labelStyles: r, nodeStyles: i } = b(t);
458
+ t.labelStyle = r;
459
+ let o = (n = t.padding) == null ? 0 : n, s = t.look === "neo" ? 16 : o, c = t.look === "neo" ? 12 : o, l = /* @__PURE__ */ a((e) => e + c, "calcTotalHeight"), u = /* @__PURE__ */ a((e) => {
460
+ let t = e / 2;
461
+ return [t / (2.5 + e / 50), t];
462
+ }, "calcEllipseRadius"), { shapeSvg: d, bbox: f } = await w(e, t, D(t)), p = l(t != null && t.height ? t == null ? void 0 : t.height : f.height), [m, h] = u(p), g = ae(p, m, h), _ = (t != null && t.width ? t == null ? void 0 : t.width : f.width) + s * 2 + g - g, v = p, { cssStyles: x } = t, S = [
463
+ {
464
+ x: _ / 2,
465
+ y: -v / 2
466
+ },
467
+ {
468
+ x: -_ / 2,
469
+ y: -v / 2
470
+ },
471
+ ...ie(-_ / 2, -v / 2, -_ / 2, v / 2, m, h, !1),
472
+ {
473
+ x: _ / 2,
474
+ y: v / 2
475
+ },
476
+ ...ie(_ / 2, v / 2, _ / 2, -v / 2, m, h, !0)
477
+ ], T = C.svg(d), k = y(t, {});
478
+ t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
479
+ let A = O(S), j = T.path(A, k), M = d.insert(() => j, ":first-child");
480
+ return M.attr("class", "basic label-container outer-path"), x && t.look !== "handDrawn" && M.selectAll("path").attr("style", x), i && t.look !== "handDrawn" && M.selectAll("path").attr("style", i), M.attr("transform", `translate(${m / 2}, 0)`), E(t, M), t.intersect = function(e) {
481
+ return q.polygon(t, S, e);
482
+ }, d;
483
+ }
484
+ a(J, "bowTieRect");
485
+ function Y(e, t, n, r) {
486
+ return e.insert("polygon", ":first-child").attr("points", r.map(function(e) {
487
+ return e.x + "," + e.y;
488
+ }).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
489
+ }
490
+ a(Y, "insertPolygonShape");
491
+ var oe = 12;
492
+ async function se(e, t) {
493
+ var n, r, i;
494
+ let { labelStyles: a, nodeStyles: o } = b(t);
495
+ t.labelStyle = a;
496
+ let s = (n = t.padding) == null ? 0 : n, c = t.look === "neo" ? 28 : s, l = t.look === "neo" ? 24 : s, { shapeSvg: u, bbox: d } = await w(e, t, D(t)), f = ((r = t == null ? void 0 : t.width) == null ? d.width : r) + (t.look === "neo" ? c * 2 : c + oe), p = ((i = t == null ? void 0 : t.height) == null ? d.height : i) + (t.look === "neo" ? l * 2 : l), m = f, h = -p, g = [
497
+ {
498
+ x: 0 + oe,
499
+ y: h
500
+ },
501
+ {
502
+ x: m,
503
+ y: h
504
+ },
505
+ {
506
+ x: m,
507
+ y: 0
508
+ },
509
+ {
510
+ x: 0,
511
+ y: 0
512
+ },
513
+ {
514
+ x: 0,
515
+ y: h + oe
516
+ },
517
+ {
518
+ x: 0 + oe,
519
+ y: h
520
+ }
521
+ ], _, { cssStyles: v } = t;
522
+ if (t.look === "handDrawn") {
523
+ let e = C.svg(u), n = y(t, {}), r = O(g), i = e.path(r, n);
524
+ _ = u.insert(() => i, ":first-child").attr("transform", `translate(${-f / 2}, ${p / 2})`), v && _.attr("style", v);
525
+ } else _ = Y(u, f, p, g);
526
+ return o && _.attr("style", o), E(t, _), t.intersect = function(e) {
527
+ return q.polygon(t, g, e);
528
+ }, u;
529
+ }
530
+ a(se, "card");
531
+ function ce(e, t) {
532
+ var n, r;
533
+ let { nodeStyles: i } = b(t);
534
+ t.label = "";
535
+ let a = e.insert("g").attr("class", D(t)).attr("id", (n = t.domId) == null ? t.id : n), { cssStyles: o } = t, s = Math.max(28, (r = t.width) == null ? 0 : r), c = [
536
+ {
537
+ x: 0,
538
+ y: s / 2
539
+ },
540
+ {
541
+ x: s / 2,
542
+ y: 0
543
+ },
544
+ {
545
+ x: 0,
546
+ y: -s / 2
547
+ },
548
+ {
549
+ x: -s / 2,
550
+ y: 0
551
+ }
552
+ ], l = C.svg(a), u = y(t, {});
553
+ t.look !== "handDrawn" && (u.roughness = 0, u.fillStyle = "solid");
554
+ let d = O(c), f = l.path(d, u), p = a.insert(() => f, ":first-child");
555
+ return o && t.look !== "handDrawn" && p.selectAll("path").attr("style", o), i && t.look !== "handDrawn" && p.selectAll("path").attr("style", i), t.width = 28, t.height = 28, t.intersect = function(e) {
556
+ return q.polygon(t, c, e);
557
+ }, a;
558
+ }
559
+ a(ce, "choice");
560
+ async function le(e, t, r) {
561
+ var a;
562
+ let { labelStyles: o, nodeStyles: s } = b(t);
563
+ t.labelStyle = o;
564
+ let { shapeSvg: c, bbox: l, halfPadding: u } = await w(e, t, D(t)), d = (a = r == null ? void 0 : r.padding) == null ? u : a, f = t.look === "neo" ? l.width / 2 + 32 : l.width / 2 + d, p, { cssStyles: m } = t;
565
+ if (t.look === "handDrawn") {
566
+ let e = C.svg(c), r = y(t, {}), i = e.circle(0, 0, f * 2, r);
567
+ p = c.insert(() => i, ":first-child"), p.attr("class", "basic label-container").attr("style", n(m));
568
+ } else p = c.insert("circle", ":first-child").attr("class", "basic label-container").attr("style", s).attr("r", f).attr("cx", 0).attr("cy", 0);
569
+ return E(t, p), t.calcIntersect = function(e, t) {
570
+ let n = e.width / 2;
571
+ return q.circle(e, n, t);
572
+ }, t.intersect = function(e) {
573
+ return i.info("Circle intersect", t, f, e), q.circle(t, f, e);
574
+ }, c;
575
+ }
576
+ a(le, "circle");
577
+ function X(e) {
578
+ let t = Math.cos(Math.PI / 4), n = Math.sin(Math.PI / 4), r = e * 2, i = {
579
+ x: r / 2 * t,
580
+ y: r / 2 * n
581
+ }, a = {
582
+ x: -(r / 2) * t,
583
+ y: r / 2 * n
584
+ }, o = {
585
+ x: -(r / 2) * t,
586
+ y: -(r / 2) * n
587
+ }, s = {
588
+ x: r / 2 * t,
589
+ y: -(r / 2) * n
590
+ };
591
+ return `M ${a.x},${a.y} L ${s.x},${s.y}
592
+ M ${i.x},${i.y} L ${o.x},${o.y}`;
593
+ }
594
+ a(X, "createLine");
595
+ function Z(e, t) {
596
+ var n, r;
597
+ let { labelStyles: a, nodeStyles: o } = b(t);
598
+ t.labelStyle = a, t.label = "";
599
+ let s = e.insert("g").attr("class", D(t)).attr("id", (n = t.domId) == null ? t.id : n), c = Math.max(30, (r = t == null ? void 0 : t.width) == null ? 0 : r), { cssStyles: l } = t, u = C.svg(s), d = y(t, {});
600
+ t.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
601
+ let f = u.circle(0, 0, c * 2, d), p = X(c), m = u.path(p, d), h = s.insert(() => f, ":first-child");
602
+ return h.insert(() => m), h.attr("class", "outer-path"), l && t.look !== "handDrawn" && h.selectAll("path").attr("style", l), o && t.look !== "handDrawn" && h.selectAll("path").attr("style", o), E(t, h), t.intersect = function(e) {
603
+ return i.info("crossedCircle intersect", t, {
604
+ radius: c,
605
+ point: e
606
+ }), q.circle(t, c, e);
607
+ }, s;
608
+ }
609
+ a(Z, "crossedCircle");
610
+ function ue(e, t, n, r = 100, i = 0, a = 180) {
611
+ let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
612
+ for (let i = 0; i < r; i++) {
613
+ let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
614
+ o.push({
615
+ x: -a,
616
+ y: -l
617
+ });
618
+ }
619
+ return o;
620
+ }
621
+ a(ue, "generateCirclePoints");
622
+ async function de(t, n) {
623
+ var r, i, a, o, s;
624
+ let { labelStyles: c, nodeStyles: l } = b(n);
625
+ n.labelStyle = c;
626
+ let { shapeSvg: u, bbox: d, label: f } = await w(t, n, D(n)), p = n.look === "neo" ? 18 : (r = n.padding) == null ? 0 : r, m = n.look === "neo" ? 12 : (i = n.padding) == null ? 0 : i, h = d.width + p, g = d.height + m, _ = Math.max(5, g * .1), { cssStyles: v } = n, x = [
627
+ ...ue(h / 2, -g / 2, _, 30, -90, 0),
628
+ {
629
+ x: -h / 2 - _,
630
+ y: _
631
+ },
632
+ ...ue(h / 2 + _ * 2, -_, _, 20, -180, -270),
633
+ ...ue(h / 2 + _ * 2, _, _, 20, -90, -180),
634
+ {
635
+ x: -h / 2 - _,
636
+ y: -g / 2
637
+ },
638
+ ...ue(h / 2, g / 2, _, 20, 0, 90)
639
+ ], S = [
640
+ {
641
+ x: h / 2,
642
+ y: -g / 2 - _
643
+ },
644
+ {
645
+ x: -h / 2,
646
+ y: -g / 2 - _
647
+ },
648
+ ...ue(h / 2, -g / 2, _, 20, -90, 0),
649
+ {
650
+ x: -h / 2 - _,
651
+ y: -_
652
+ },
653
+ ...ue(h / 2 + h * .1, -_, _, 20, -180, -270),
654
+ ...ue(h / 2 + h * .1, _, _, 20, -90, -180),
655
+ {
656
+ x: -h / 2 - _,
657
+ y: g / 2
658
+ },
659
+ ...ue(h / 2, g / 2, _, 20, 0, 90),
660
+ {
661
+ x: -h / 2,
662
+ y: g / 2 + _
663
+ },
664
+ {
665
+ x: h / 2,
666
+ y: g / 2 + _
667
+ }
668
+ ], T = C.svg(u), k = y(n, { fill: "none" });
669
+ n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
670
+ let A = O(x).replace("Z", ""), j = T.path(A, k), M = O(S), N = T.path(M, e({}, k)), P = u.insert("g", ":first-child");
671
+ return P.insert(() => N, ":first-child").attr("stroke-opacity", 0), P.insert(() => j, ":first-child"), P.attr("class", "text"), v && n.look !== "handDrawn" && P.selectAll("path").attr("style", v), l && n.look !== "handDrawn" && P.selectAll("path").attr("style", l), P.attr("transform", `translate(${_}, 0)`), f.attr("transform", `translate(${-h / 2 + _ - (d.x - ((a = d.left) == null ? 0 : a))},${-g / 2 + ((o = n.padding) == null ? 0 : o) / 2 - (d.y - ((s = d.top) == null ? 0 : s))})`), E(n, P), n.intersect = function(e) {
672
+ return q.polygon(n, S, e);
673
+ }, u;
674
+ }
675
+ a(de, "curlyBraceLeft");
676
+ function fe(e, t, n, r = 100, i = 0, a = 180) {
677
+ let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
678
+ for (let i = 0; i < r; i++) {
679
+ let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
680
+ o.push({
681
+ x: a,
682
+ y: l
683
+ });
684
+ }
685
+ return o;
686
+ }
687
+ a(fe, "generateCirclePoints");
688
+ async function pe(t, n) {
689
+ var r, i, a, o, s, c;
690
+ let { labelStyles: l, nodeStyles: u } = b(n);
691
+ n.labelStyle = l;
692
+ let { shapeSvg: d, bbox: f, label: p } = await w(t, n, D(n)), m = n.look === "neo" ? 18 : (r = n.padding) == null ? 0 : r, h = n.look === "neo" ? 12 : (i = n.padding) == null ? 0 : i, g = f.width + (n.look === "neo" ? m * 2 : m), _ = f.height + (n.look === "neo" ? h * 2 : h), v = Math.max(5, _ * .1), { cssStyles: x } = n, S = [
693
+ ...fe(g / 2, -_ / 2, v, 20, -90, 0),
694
+ {
695
+ x: g / 2 + v,
696
+ y: -v
697
+ },
698
+ ...fe(g / 2 + v * 2, -v, v, 20, -180, -270),
699
+ ...fe(g / 2 + v * 2, v, v, 20, -90, -180),
700
+ {
701
+ x: g / 2 + v,
702
+ y: _ / 2
703
+ },
704
+ ...fe(g / 2, _ / 2, v, 20, 0, 90)
705
+ ], T = [
706
+ {
707
+ x: -g / 2,
708
+ y: -_ / 2 - v
709
+ },
710
+ {
711
+ x: g / 2,
712
+ y: -_ / 2 - v
713
+ },
714
+ ...fe(g / 2, -_ / 2, v, 20, -90, 0),
715
+ {
716
+ x: g / 2 + v,
717
+ y: -v
718
+ },
719
+ ...fe(g / 2 + v * 2, -v, v, 20, -180, -270),
720
+ ...fe(g / 2 + v * 2, v, v, 20, -90, -180),
721
+ {
722
+ x: g / 2 + v,
723
+ y: _ / 2
724
+ },
725
+ ...fe(g / 2, _ / 2, v, 20, 0, 90),
726
+ {
727
+ x: g / 2,
728
+ y: _ / 2 + v
729
+ },
730
+ {
731
+ x: -g / 2,
732
+ y: _ / 2 + v
733
+ }
734
+ ], k = C.svg(d), A = y(n, { fill: "none" });
735
+ n.look !== "handDrawn" && (A.roughness = 0, A.fillStyle = "solid");
736
+ let j = O(S).replace("Z", ""), M = k.path(j, A), N = O(T), P = k.path(N, e({}, A)), F = d.insert("g", ":first-child");
737
+ return F.insert(() => P, ":first-child").attr("stroke-opacity", 0), F.insert(() => M, ":first-child"), F.attr("class", "text"), x && n.look !== "handDrawn" && F.selectAll("path").attr("style", x), u && n.look !== "handDrawn" && F.selectAll("path").attr("style", u), F.attr("transform", `translate(${-v}, 0)`), p.attr("transform", `translate(${-g / 2 + ((a = n.padding) == null ? 0 : a) / 2 - (f.x - ((o = f.left) == null ? 0 : o))},${-_ / 2 + ((s = n.padding) == null ? 0 : s) / 2 - (f.y - ((c = f.top) == null ? 0 : c))})`), E(n, F), n.intersect = function(e) {
738
+ return q.polygon(n, T, e);
739
+ }, d;
740
+ }
741
+ a(pe, "curlyBraceRight");
742
+ function Q(e, t, n, r = 100, i = 0, a = 180) {
743
+ let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
744
+ for (let i = 0; i < r; i++) {
745
+ let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
746
+ o.push({
747
+ x: -a,
748
+ y: -l
749
+ });
750
+ }
751
+ return o;
752
+ }
753
+ a(Q, "generateCirclePoints");
754
+ async function me(t, n) {
755
+ var r, i, a, o, s, c;
756
+ let { labelStyles: l, nodeStyles: u } = b(n);
757
+ n.labelStyle = l;
758
+ let { shapeSvg: d, bbox: f, label: p } = await w(t, n, D(n)), m = n.look === "neo" ? 18 : (r = n.padding) == null ? 0 : r, h = n.look === "neo" ? 12 : (i = n.padding) == null ? 0 : i, g = f.width + (n.look === "neo" ? m * 2 : m), _ = f.height + (n.look === "neo" ? h * 2 : h), v = Math.max(5, _ * .1), { cssStyles: x } = n, S = [
759
+ ...Q(g / 2, -_ / 2, v, 30, -90, 0),
760
+ {
761
+ x: -g / 2 - v,
762
+ y: v
763
+ },
764
+ ...Q(g / 2 + v * 2, -v, v, 20, -180, -270),
765
+ ...Q(g / 2 + v * 2, v, v, 20, -90, -180),
766
+ {
767
+ x: -g / 2 - v,
768
+ y: -_ / 2
769
+ },
770
+ ...Q(g / 2, _ / 2, v, 20, 0, 90)
771
+ ], T = [
772
+ ...Q(-g / 2 + v + v / 2, -_ / 2, v, 20, -90, -180),
773
+ {
774
+ x: g / 2 - v / 2,
775
+ y: v
776
+ },
777
+ ...Q(-g / 2 - v / 2, -v, v, 20, 0, 90),
778
+ ...Q(-g / 2 - v / 2, v, v, 20, -90, 0),
779
+ {
780
+ x: g / 2 - v / 2,
781
+ y: -v
782
+ },
783
+ ...Q(-g / 2 + v + v / 2, _ / 2, v, 30, -180, -270)
784
+ ], k = [
785
+ {
786
+ x: g / 2,
787
+ y: -_ / 2 - v
788
+ },
789
+ {
790
+ x: -g / 2,
791
+ y: -_ / 2 - v
792
+ },
793
+ ...Q(g / 2, -_ / 2, v, 20, -90, 0),
794
+ {
795
+ x: -g / 2 - v,
796
+ y: -v
797
+ },
798
+ ...Q(g / 2 + v * 2, -v, v, 20, -180, -270),
799
+ ...Q(g / 2 + v * 2, v, v, 20, -90, -180),
800
+ {
801
+ x: -g / 2 - v,
802
+ y: _ / 2
803
+ },
804
+ ...Q(g / 2, _ / 2, v, 20, 0, 90),
805
+ {
806
+ x: -g / 2,
807
+ y: _ / 2 + v
808
+ },
809
+ {
810
+ x: g / 2 - v - v / 2,
811
+ y: _ / 2 + v
812
+ },
813
+ ...Q(-g / 2 + v + v / 2, -_ / 2, v, 20, -90, -180),
814
+ {
815
+ x: g / 2 - v / 2,
816
+ y: v
817
+ },
818
+ ...Q(-g / 2 - v / 2, -v, v, 20, 0, 90),
819
+ ...Q(-g / 2 - v / 2, v, v, 20, -90, 0),
820
+ {
821
+ x: g / 2 - v / 2,
822
+ y: -v
823
+ },
824
+ ...Q(-g / 2 + v + v / 2, _ / 2, v, 30, -180, -270)
825
+ ], A = C.svg(d), j = y(n, { fill: "none" });
826
+ n.look !== "handDrawn" && (j.roughness = 0, j.fillStyle = "solid");
827
+ let M = O(S).replace("Z", ""), N = A.path(M, j), P = O(T).replace("Z", ""), F = A.path(P, j), I = O(k), L = A.path(I, e({}, j)), R = d.insert("g", ":first-child");
828
+ return R.insert(() => L, ":first-child").attr("stroke-opacity", 0), R.insert(() => N, ":first-child"), R.insert(() => F, ":first-child"), R.attr("class", "text"), x && n.look !== "handDrawn" && R.selectAll("path").attr("style", x), u && n.look !== "handDrawn" && R.selectAll("path").attr("style", u), R.attr("transform", `translate(${v - v / 4}, 0)`), p.attr("transform", `translate(${-g / 2 + ((a = n.padding) == null ? 0 : a) / 2 - (f.x - ((o = f.left) == null ? 0 : o))},${-_ / 2 + ((s = n.padding) == null ? 0 : s) / 2 - (f.y - ((c = f.top) == null ? 0 : c))})`), E(n, R), n.intersect = function(e) {
829
+ return q.polygon(n, k, e);
830
+ }, d;
831
+ }
832
+ a(me, "curlyBraces");
833
+ async function he(e, t) {
834
+ var n, r, i;
835
+ let { labelStyles: a, nodeStyles: o } = b(t);
836
+ t.labelStyle = a;
837
+ let s = (n = t.padding) == null ? 0 : n, c = t.look === "neo" ? 16 : s, l = t.look === "neo" ? 12 : s, { shapeSvg: u, bbox: d } = await w(e, t, D(t)), f = Math.max(20, (d.width + c * 2) * 1.25, (r = t == null ? void 0 : t.width) == null ? 0 : r), p = Math.max(5, d.height + l * 2, (i = t == null ? void 0 : t.height) == null ? 0 : i), m = p / 2, { cssStyles: h } = t, g = C.svg(u), _ = y(t, {});
838
+ t.look !== "handDrawn" && (_.roughness = 0, _.fillStyle = "solid");
839
+ let v = f, x = p, S = v - m, T = x / 4, k = [
840
+ {
841
+ x: S,
842
+ y: 0
843
+ },
844
+ {
845
+ x: T,
846
+ y: 0
847
+ },
848
+ {
849
+ x: 0,
850
+ y: x / 2
851
+ },
852
+ {
853
+ x: T,
854
+ y: x
855
+ },
856
+ {
857
+ x: S,
858
+ y: x
859
+ },
860
+ ...A(-S, -x / 2, m, 50, 270, 90)
861
+ ], j = O(k), M = g.path(j, _), N = u.insert(() => M, ":first-child");
862
+ return N.attr("class", "basic label-container outer-path"), h && t.look !== "handDrawn" && N.selectChildren("path").attr("style", h), o && t.look !== "handDrawn" && N.selectChildren("path").attr("style", o), N.attr("transform", `translate(${-f / 2}, ${-p / 2})`), E(t, N), t.intersect = function(e) {
863
+ return q.polygon(t, k, e);
864
+ }, u;
865
+ }
866
+ a(he, "curvedTrapezoid");
867
+ var ge = /* @__PURE__ */ a((e, t, n, r, i, a) => [
868
+ `M${e},${t + a}`,
869
+ `a${i},${a} 0,0,0 ${n},0`,
870
+ `a${i},${a} 0,0,0 ${-n},0`,
871
+ `l0,${r}`,
872
+ `a${i},${a} 0,0,0 ${n},0`,
873
+ `l0,${-r}`
874
+ ].join(" "), "createCylinderPathD"), _e = /* @__PURE__ */ a((e, t, n, r, i, a) => [
875
+ `M${e},${t + a}`,
876
+ `M${e + n},${t + a}`,
877
+ `a${i},${a} 0,0,0 ${-n},0`,
878
+ `l0,${r}`,
879
+ `a${i},${a} 0,0,0 ${n},0`,
880
+ `l0,${-r}`
881
+ ].join(" "), "createOuterCylinderPathD"), ve = /* @__PURE__ */ a((e, t, n, r, i, a) => [`M${e - n / 2},${-r / 2}`, `a${i},${a} 0,0,0 ${n},0`].join(" "), "createInnerCylinderPathD"), ye = 8, be = 8;
882
+ async function xe(e, t) {
883
+ var r, i, a, o;
884
+ let { labelStyles: s, nodeStyles: c } = b(t);
885
+ t.labelStyle = s;
886
+ let l = (r = t.padding) == null ? 0 : r, u = t.look === "neo" ? 24 : l, d = t.look === "neo" ? 24 : l;
887
+ if (t.width || t.height) {
888
+ var f, p, m;
889
+ let e = (f = t.width) == null ? 0 : f;
890
+ t.width = ((p = t.width) == null ? 0 : p) - d, t.width < be && (t.width = be);
891
+ let n = e / 2 / (2.5 + e / 50);
892
+ t.height = ((m = t.height) == null ? 0 : m) - u - n * 3, t.height < ye && (t.height = ye);
893
+ }
894
+ let { shapeSvg: h, bbox: g, label: _ } = await w(e, t, D(t)), v = (t.width ? t.width : g.width) + d, x = v / 2, S = x / (2.5 + v / 50), T = (t.height ? t.height : g.height) + u + S, O, { cssStyles: k } = t;
895
+ if (t.look === "handDrawn") {
896
+ let e = C.svg(h), n = _e(0, 0, v, T, x, S), r = ve(0, S, v, T, x, S), i = y(t, {}), a = e.path(n, i), o = e.path(r, y(t, { fill: "none" }));
897
+ O = h.insert(() => o, ":first-child"), O = h.insert(() => a, ":first-child"), O.attr("class", "basic label-container"), k && O.attr("style", k);
898
+ } else {
899
+ let e = ge(0, 0, v, T, x, S);
900
+ O = h.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", n(k)).attr("style", c);
901
+ }
902
+ return O.attr("label-offset-y", S), O.attr("transform", `translate(${-v / 2}, ${-(T / 2 + S)})`), E(t, O), _.attr("transform", `translate(${-(g.width / 2) - (g.x - ((i = g.left) == null ? 0 : i))}, ${-(g.height / 2) + ((a = t.padding) == null ? 0 : a) / 1.5 - (g.y - ((o = g.top) == null ? 0 : o))})`), t.intersect = function(e) {
903
+ var n, r, i, a, o;
904
+ let s = q.rect(t, e), c = s.x - ((n = t.x) == null ? 0 : n);
905
+ if (x != 0 && (Math.abs(c) < ((r = t.width) == null ? 0 : r) / 2 || Math.abs(c) == ((i = t.width) == null ? 0 : i) / 2 && Math.abs(s.y - ((a = t.y) == null ? 0 : a)) > ((o = t.height) == null ? 0 : o) / 2 - S)) {
906
+ var l;
907
+ let n = S * S * (1 - c * c / (x * x));
908
+ n > 0 && (n = Math.sqrt(n)), n = S - n, e.y - ((l = t.y) == null ? 0 : l) > 0 && (n = -n), s.y += n;
909
+ }
910
+ return s;
911
+ }, h;
912
+ }
913
+ a(xe, "cylinder");
914
+ async function Se(e, t) {
915
+ var n, r, i, a, o, s;
916
+ let { labelStyles: c, nodeStyles: l } = b(t);
917
+ t.labelStyle = c;
918
+ let u = t.look === "neo" ? 16 : (n = t.padding) == null ? 0 : n, d = t.look === "neo" ? 16 : (r = t.padding) == null ? 0 : r, { shapeSvg: f, bbox: p, label: m } = await w(e, t, D(t)), h = p.width + u, g = p.height + d, _ = g * .2, v = -h / 2, x = -g / 2 - _ / 2, { cssStyles: S } = t, T = C.svg(f), O = y(t, {});
919
+ t.look !== "handDrawn" && (O.roughness = 0, O.fillStyle = "solid");
920
+ let k = [
921
+ {
922
+ x: v,
923
+ y: x + _
924
+ },
925
+ {
926
+ x: -v,
927
+ y: x + _
928
+ },
929
+ {
930
+ x: -v,
931
+ y: -x
932
+ },
933
+ {
934
+ x: v,
935
+ y: -x
936
+ },
937
+ {
938
+ x: v,
939
+ y: x
940
+ },
941
+ {
942
+ x: -v,
943
+ y: x
944
+ },
945
+ {
946
+ x: -v,
947
+ y: x + _
948
+ }
949
+ ], A = T.polygon(k.map((e) => [e.x, e.y]), O), j = f.insert(() => A, ":first-child");
950
+ return j.attr("class", "basic label-container outer-path"), S && t.look !== "handDrawn" && j.selectAll("path").attr("style", S), l && t.look !== "handDrawn" && j.selectAll("path").attr("style", l), m.attr("transform", `translate(${v + ((i = t.padding) == null ? 0 : i) / 2 - (p.x - ((a = p.left) == null ? 0 : a))}, ${x + _ + ((o = t.padding) == null ? 0 : o) / 2 - (p.y - ((s = p.top) == null ? 0 : s))})`), E(t, j), t.intersect = function(e) {
951
+ return q.rect(t, e);
952
+ }, f;
953
+ }
954
+ a(Se, "dividedRectangle");
955
+ async function Ce(e, t) {
956
+ var r;
957
+ let { labelStyles: a, nodeStyles: o } = b(t), s = t.look === "neo" ? 12 : 5;
958
+ t.labelStyle = a;
959
+ let c = (r = t.padding) == null ? 0 : r, l = t.look === "neo" ? 16 : c, { shapeSvg: u, bbox: d } = await w(e, t, D(t)), f = (t != null && t.width ? (t == null ? void 0 : t.width) / 2 : d.width / 2) + (l == null ? 0 : l), p = f - s, m, { cssStyles: h } = t;
960
+ if (t.look === "handDrawn") {
961
+ var g, _;
962
+ let e = C.svg(u), r = y(t, {
963
+ roughness: .2,
964
+ strokeWidth: 2.5
965
+ }), i = y(t, {
966
+ roughness: .2,
967
+ strokeWidth: 1.5
968
+ }), a = e.circle(0, 0, f * 2, r), o = e.circle(0, 0, p * 2, i);
969
+ m = u.insert("g", ":first-child"), m.attr("class", n(t.cssClasses)).attr("style", n(h)), (g = m.node()) == null || g.appendChild(a), (_ = m.node()) == null || _.appendChild(o);
970
+ } else {
971
+ m = u.insert("g", ":first-child");
972
+ let e = m.insert("circle", ":first-child"), t = m.insert("circle");
973
+ m.attr("class", "basic label-container").attr("style", o), e.attr("class", "outer-circle").attr("style", o).attr("r", f).attr("cx", 0).attr("cy", 0), t.attr("class", "inner-circle").attr("style", o).attr("r", p).attr("cx", 0).attr("cy", 0);
974
+ }
975
+ return E(t, m), t.intersect = function(e) {
976
+ return i.info("DoubleCircle intersect", t, f, e), q.circle(t, f, e);
977
+ }, u;
978
+ }
979
+ a(Ce, "doublecircle");
980
+ function we(e, t, { config: { themeVariables: n } }) {
981
+ var r;
982
+ let { labelStyles: a, nodeStyles: o } = b(t);
983
+ t.label = "", t.labelStyle = a;
984
+ let s = e.insert("g").attr("class", D(t)).attr("id", (r = t.domId) == null ? t.id : r), { cssStyles: c } = t, l = C.svg(s), { nodeBorder: u } = n, d = y(t, { fillStyle: "solid" });
985
+ t.look !== "handDrawn" && (d.roughness = 0);
986
+ let f = l.circle(0, 0, 14, d), p = s.insert(() => f, ":first-child");
987
+ return p.selectAll("path").attr("style", `fill: ${u} !important;`), c && c.length > 0 && t.look !== "handDrawn" && p.selectAll("path").attr("style", c), o && t.look !== "handDrawn" && p.selectAll("path").attr("style", o), E(t, p), t.intersect = function(e) {
988
+ return i.info("filledCircle intersect", t, {
989
+ radius: 7,
990
+ point: e
991
+ }), q.circle(t, 7, e);
992
+ }, s;
993
+ }
994
+ a(we, "filledCircle");
995
+ var Te = 10, Ee = 10;
996
+ async function De(e, t) {
997
+ var n, r, a, o;
998
+ let { labelStyles: s, nodeStyles: c } = b(t);
999
+ t.labelStyle = s;
1000
+ let l = (n = t.padding) == null ? 0 : n, u = t.look === "neo" ? l * 2 : l;
1001
+ if (t.width || t.height) {
1002
+ var d, f;
1003
+ t.height = (d = t == null ? void 0 : t.height) == null ? 0 : d, t.height < Te && (t.height = Te), t.width = ((f = t == null ? void 0 : t.width) == null ? 0 : f) - u - u / 2, t.width < Ee && (t.width = Ee);
1004
+ }
1005
+ let { shapeSvg: p, bbox: m, label: h } = await w(e, t, D(t)), g = (t != null && t.width ? t == null ? void 0 : t.width : m.width) + (u == null ? 0 : u), _ = t != null && t.height ? t == null ? void 0 : t.height : g + m.height, v = _, x = [
1006
+ {
1007
+ x: 0,
1008
+ y: -_
1009
+ },
1010
+ {
1011
+ x: v,
1012
+ y: -_
1013
+ },
1014
+ {
1015
+ x: v / 2,
1016
+ y: 0
1017
+ }
1018
+ ], { cssStyles: S } = t, T = C.svg(p), k = y(t, {});
1019
+ t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
1020
+ let A = O(x), j = T.path(A, k), M = p.insert(() => j, ":first-child").attr("transform", `translate(${-_ / 2}, ${_ / 2})`).attr("class", "outer-path");
1021
+ return S && t.look !== "handDrawn" && M.selectChildren("path").attr("style", S), c && t.look !== "handDrawn" && M.selectChildren("path").attr("style", c), t.width = g, t.height = _, E(t, M), h.attr("transform", `translate(${-m.width / 2 - (m.x - ((r = m.left) == null ? 0 : r))}, ${-_ / 2 + ((a = t.padding) == null ? 0 : a) / 2 + (m.y - ((o = m.top) == null ? 0 : o))})`), t.intersect = function(e) {
1022
+ return i.info("Triangle intersect", t, x, e), q.polygon(t, x, e);
1023
+ }, p;
1024
+ }
1025
+ a(De, "flippedTriangle");
1026
+ function Oe(e, t, { dir: n, config: { state: r, themeVariables: i } }) {
1027
+ var a, o, s, c;
1028
+ let { nodeStyles: l } = b(t);
1029
+ t.label = "";
1030
+ let u = e.insert("g").attr("class", D(t)).attr("id", (a = t.domId) == null ? t.id : a), { cssStyles: d } = t, f = Math.max(70, (o = t == null ? void 0 : t.width) == null ? 0 : o), p = Math.max(10, (s = t == null ? void 0 : t.height) == null ? 0 : s);
1031
+ if (n === "LR") {
1032
+ var m, h;
1033
+ f = Math.max(10, (m = t == null ? void 0 : t.width) == null ? 0 : m), p = Math.max(70, (h = t == null ? void 0 : t.height) == null ? 0 : h);
1034
+ }
1035
+ let g = -1 * f / 2, _ = -1 * p / 2, v = C.svg(u), x = y(t, {
1036
+ stroke: i.lineColor,
1037
+ fill: i.lineColor
1038
+ });
1039
+ t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid");
1040
+ let S = v.rectangle(g, _, f, p, x), w = u.insert(() => S, ":first-child");
1041
+ d && t.look !== "handDrawn" && w.selectAll("path").attr("style", d), l && t.look !== "handDrawn" && w.selectAll("path").attr("style", l), E(t, w);
1042
+ let T = (c = r == null ? void 0 : r.padding) == null ? 0 : c;
1043
+ return t.width && t.height && (t.width += T / 2 || 0, t.height += T / 2 || 0), t.intersect = function(e) {
1044
+ return q.rect(t, e);
1045
+ }, u;
1046
+ }
1047
+ a(Oe, "forkJoin");
1048
+ async function ke(e, t) {
1049
+ var n, r;
1050
+ let { labelStyles: a, nodeStyles: o } = b(t);
1051
+ t.labelStyle = a;
1052
+ let s = t.look === "neo" ? 16 : (n = t.padding) == null ? 0 : n, c = t.look === "neo" ? 12 : (r = t.padding) == null ? 0 : r;
1053
+ if (t.width || t.height) {
1054
+ var l, u;
1055
+ t.height = ((l = t == null ? void 0 : t.height) == null ? 0 : l) - c * 2, t.height < 10 && (t.height = 10), t.width = ((u = t == null ? void 0 : t.width) == null ? 0 : u) - s * 2, t.width < 15 && (t.width = 15);
1056
+ }
1057
+ let { shapeSvg: d, bbox: f } = await w(e, t, D(t)), p = (t != null && t.width ? t == null ? void 0 : t.width : Math.max(15, f.width)) + s * 2, m = (t != null && t.height ? t == null ? void 0 : t.height : Math.max(10, f.height)) + c * 2, h = m / 2, { cssStyles: g } = t, _ = C.svg(d), v = y(t, {});
1058
+ t.look !== "handDrawn" && (v.roughness = 0, v.fillStyle = "solid");
1059
+ let x = [
1060
+ {
1061
+ x: -p / 2,
1062
+ y: -m / 2
1063
+ },
1064
+ {
1065
+ x: p / 2 - h,
1066
+ y: -m / 2
1067
+ },
1068
+ ...A(-p / 2 + h, 0, h, 50, 90, 270),
1069
+ {
1070
+ x: p / 2 - h,
1071
+ y: m / 2
1072
+ },
1073
+ {
1074
+ x: -p / 2,
1075
+ y: m / 2
1076
+ }
1077
+ ], S = O(x), T = _.path(S, v), k = d.insert(() => T, ":first-child");
1078
+ return k.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && k.selectChildren("path").attr("style", g), o && t.look !== "handDrawn" && k.selectChildren("path").attr("style", o), E(t, k), t.intersect = function(e) {
1079
+ return i.info("Pill intersect", t, {
1080
+ radius: h,
1081
+ point: e
1082
+ }), q.polygon(t, x, e);
1083
+ }, d;
1084
+ }
1085
+ a(ke, "halfRoundedRectangle");
1086
+ var Ae = /* @__PURE__ */ a((e, t, n, r, i) => [
1087
+ `M${e + i},${t}`,
1088
+ `L${e + n - i},${t}`,
1089
+ `L${e + n},${t - r / 2}`,
1090
+ `L${e + n - i},${t - r}`,
1091
+ `L${e + i},${t - r}`,
1092
+ `L${e},${t - r / 2}`,
1093
+ "Z"
1094
+ ].join(" "), "createHexagonPathD");
1095
+ async function je(e, t) {
1096
+ var n;
1097
+ let { labelStyles: r, nodeStyles: i } = b(t), a = t.look === "neo" ? 3.5 : 4;
1098
+ t.labelStyle = r;
1099
+ let o = (n = t.padding) == null ? 0 : n, s = t.look === "neo" ? 70 : o, c = t.look === "neo" ? 32 : o;
1100
+ if (t.width || t.height) {
1101
+ var l, u, d;
1102
+ let e = ((l = t.height) == null ? 0 : l) / a;
1103
+ t.width = ((u = t == null ? void 0 : t.width) == null ? 0 : u) - 2 * e - c, t.height = ((d = t.height) == null ? 0 : d) - s;
1104
+ }
1105
+ let { shapeSvg: f, bbox: p } = await w(e, t, D(t)), m = (t != null && t.height ? t == null ? void 0 : t.height : p.height) + s, h = m / a, g = (t != null && t.width ? t == null ? void 0 : t.width : p.width) + 2 * h + c, _ = [
1106
+ {
1107
+ x: h,
1108
+ y: 0
1109
+ },
1110
+ {
1111
+ x: g - h,
1112
+ y: 0
1113
+ },
1114
+ {
1115
+ x: g,
1116
+ y: -m / 2
1117
+ },
1118
+ {
1119
+ x: g - h,
1120
+ y: -m
1121
+ },
1122
+ {
1123
+ x: h,
1124
+ y: -m
1125
+ },
1126
+ {
1127
+ x: 0,
1128
+ y: -m / 2
1129
+ }
1130
+ ], v, { cssStyles: x } = t;
1131
+ if (t.look === "handDrawn") {
1132
+ let e = C.svg(f), n = y(t, {}), r = Ae(0, 0, g, m, h), i = e.path(r, n);
1133
+ v = f.insert(() => i, ":first-child").attr("transform", `translate(${-g / 2}, ${m / 2})`), x && v.attr("style", x);
1134
+ } else v = Y(f, g, m, _);
1135
+ return i && v.attr("style", i), t.width = g, t.height = m, E(t, v), t.intersect = function(e) {
1136
+ return q.polygon(t, _, e);
1137
+ }, f;
1138
+ }
1139
+ a(je, "hexagon");
1140
+ async function Me(e, t) {
1141
+ var n, r;
1142
+ let { labelStyles: a, nodeStyles: o } = b(t);
1143
+ t.label = "", t.labelStyle = a;
1144
+ let { shapeSvg: s } = await w(e, t, D(t)), c = Math.max(30, (n = t == null ? void 0 : t.width) == null ? 0 : n), l = Math.max(30, (r = t == null ? void 0 : t.height) == null ? 0 : r), { cssStyles: u } = t, d = C.svg(s), f = y(t, {});
1145
+ t.look !== "handDrawn" && (f.roughness = 0, f.fillStyle = "solid");
1146
+ let p = [
1147
+ {
1148
+ x: 0,
1149
+ y: 0
1150
+ },
1151
+ {
1152
+ x: c,
1153
+ y: 0
1154
+ },
1155
+ {
1156
+ x: 0,
1157
+ y: l
1158
+ },
1159
+ {
1160
+ x: c,
1161
+ y: l
1162
+ }
1163
+ ], m = O(p), h = d.path(m, f), g = s.insert(() => h, ":first-child");
1164
+ return g.attr("class", "basic label-container outer-path"), u && t.look !== "handDrawn" && g.selectChildren("path").attr("style", u), o && t.look !== "handDrawn" && g.selectChildren("path").attr("style", o), g.attr("transform", `translate(${-c / 2}, ${-l / 2})`), E(t, g), t.intersect = function(e) {
1165
+ return i.info("Pill intersect", t, { points: p }), q.polygon(t, p, e);
1166
+ }, s;
1167
+ }
1168
+ a(Me, "hourglass");
1169
+ async function Ne(t, n, { config: { themeVariables: r, flowchart: a } }) {
1170
+ var o, s, c;
1171
+ let { labelStyles: l } = b(n);
1172
+ n.labelStyle = l;
1173
+ let u = (o = n.assetHeight) == null ? 48 : o, d = (s = n.assetWidth) == null ? 48 : s, f = Math.max(u, d), p = a == null ? void 0 : a.wrappingWidth;
1174
+ n.width = Math.max(f, p == null ? 0 : p);
1175
+ let { shapeSvg: m, bbox: h, label: _ } = await w(t, n, "icon-shape default"), v = n.pos === "t", x = f, T = f, { nodeBorder: D } = r, { stylesMap: O } = S(n), k = -T / 2, A = -x / 2, j = n.label ? 8 : 0, M = C.svg(m), N = y(n, {
1176
+ stroke: "none",
1177
+ fill: "none"
1178
+ });
1179
+ n.look !== "handDrawn" && (N.roughness = 0, N.fillStyle = "solid");
1180
+ let P = M.rectangle(k, A, T, x, N), F = Math.max(T, h.width), I = x + h.height + j, L = M.rectangle(-F / 2, -I / 2, F, I, e(e({}, N), {}, {
1181
+ fill: "transparent",
1182
+ stroke: "none"
1183
+ })), R = m.insert(() => P, ":first-child"), z = m.insert(() => L);
1184
+ if (n.icon) {
1185
+ var B;
1186
+ let e = m.append("g");
1187
+ e.html(`<g>${await g(n.icon, {
1188
+ height: f,
1189
+ width: f,
1190
+ fallbackPrefix: ""
1191
+ })}</g>`);
1192
+ let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
1193
+ e.attr("transform", `translate(${-r / 2 - a},${v ? h.height / 2 + j / 2 - i / 2 - o : -h.height / 2 - j / 2 - i / 2 - o})`), e.attr("style", `color: ${(B = O.get("stroke")) == null ? D : B};`);
1194
+ }
1195
+ return _.attr("transform", `translate(${-h.width / 2 - (h.x - ((c = h.left) == null ? 0 : c))},${v ? -I / 2 : I / 2 - h.height})`), R.attr("transform", `translate(0,${v ? h.height / 2 + j / 2 : -h.height / 2 - j / 2})`), E(n, z), n.intersect = function(e) {
1196
+ var t, r, a;
1197
+ if (i.info("iconSquare intersect", n, e), !n.label) return q.rect(n, e);
1198
+ let o = (t = n.x) == null ? 0 : t, s = (r = n.y) == null ? 0 : r, c = (a = n.height) == null ? 0 : a, l = [];
1199
+ return l = v ? [
1200
+ {
1201
+ x: o - h.width / 2,
1202
+ y: s - c / 2
1203
+ },
1204
+ {
1205
+ x: o + h.width / 2,
1206
+ y: s - c / 2
1207
+ },
1208
+ {
1209
+ x: o + h.width / 2,
1210
+ y: s - c / 2 + h.height + j
1211
+ },
1212
+ {
1213
+ x: o + T / 2,
1214
+ y: s - c / 2 + h.height + j
1215
+ },
1216
+ {
1217
+ x: o + T / 2,
1218
+ y: s + c / 2
1219
+ },
1220
+ {
1221
+ x: o - T / 2,
1222
+ y: s + c / 2
1223
+ },
1224
+ {
1225
+ x: o - T / 2,
1226
+ y: s - c / 2 + h.height + j
1227
+ },
1228
+ {
1229
+ x: o - h.width / 2,
1230
+ y: s - c / 2 + h.height + j
1231
+ }
1232
+ ] : [
1233
+ {
1234
+ x: o - T / 2,
1235
+ y: s - c / 2
1236
+ },
1237
+ {
1238
+ x: o + T / 2,
1239
+ y: s - c / 2
1240
+ },
1241
+ {
1242
+ x: o + T / 2,
1243
+ y: s - c / 2 + x
1244
+ },
1245
+ {
1246
+ x: o + h.width / 2,
1247
+ y: s - c / 2 + x
1248
+ },
1249
+ {
1250
+ x: o + h.width / 2 / 2,
1251
+ y: s + c / 2
1252
+ },
1253
+ {
1254
+ x: o - h.width / 2,
1255
+ y: s + c / 2
1256
+ },
1257
+ {
1258
+ x: o - h.width / 2,
1259
+ y: s - c / 2 + x
1260
+ },
1261
+ {
1262
+ x: o - T / 2,
1263
+ y: s - c / 2 + x
1264
+ }
1265
+ ], q.polygon(n, l, e);
1266
+ }, m;
1267
+ }
1268
+ a(Ne, "icon");
1269
+ async function Pe(t, n, { config: { themeVariables: r, flowchart: a } }) {
1270
+ var o, s, c, l;
1271
+ let { labelStyles: u } = b(n);
1272
+ n.labelStyle = u;
1273
+ let d = (o = n.assetHeight) == null ? 48 : o, f = (s = n.assetWidth) == null ? 48 : s, p = Math.max(d, f), m = a == null ? void 0 : a.wrappingWidth;
1274
+ n.width = Math.max(p, m == null ? 0 : m);
1275
+ let { shapeSvg: h, bbox: _, label: v } = await w(t, n, "icon-shape default"), x = n.label ? 8 : 0, T = n.pos === "t", { nodeBorder: D, mainBkg: O } = r, { stylesMap: k } = S(n), A = C.svg(h), j = y(n, {});
1276
+ n.look !== "handDrawn" && (j.roughness = 0, j.fillStyle = "solid");
1277
+ let M = k.get("fill");
1278
+ j.stroke = M == null ? O : M;
1279
+ let N = h.append("g");
1280
+ n.icon && N.html(`<g>${await g(n.icon, {
1281
+ height: p,
1282
+ width: p,
1283
+ fallbackPrefix: ""
1284
+ })}</g>`);
1285
+ let P = N.node().getBBox(), F = P.width, I = P.height, L = P.x, R = P.y, z = Math.max(F, I) * Math.SQRT2 + 40, B = A.circle(0, 0, z, j), V = Math.max(z, _.width), H = z + _.height + x, U = A.rectangle(-V / 2, -H / 2, V, H, e(e({}, j), {}, {
1286
+ fill: "transparent",
1287
+ stroke: "none"
1288
+ })), W = h.insert(() => B, ":first-child"), G = h.insert(() => U);
1289
+ return N.attr("transform", `translate(${-F / 2 - L},${T ? _.height / 2 + x / 2 - I / 2 - R : -_.height / 2 - x / 2 - I / 2 - R})`), N.attr("style", `color: ${(c = k.get("stroke")) == null ? D : c};`), v.attr("transform", `translate(${-_.width / 2 - (_.x - ((l = _.left) == null ? 0 : l))},${T ? -H / 2 : H / 2 - _.height})`), W.attr("transform", `translate(0,${T ? _.height / 2 + x / 2 : -_.height / 2 - x / 2})`), E(n, G), n.intersect = function(e) {
1290
+ return i.info("iconSquare intersect", n, e), q.rect(n, e);
1291
+ }, h;
1292
+ }
1293
+ a(Pe, "iconCircle");
1294
+ async function Fe(t, n, { config: { themeVariables: r, flowchart: a } }) {
1295
+ var o, s, c;
1296
+ let { labelStyles: l } = b(n);
1297
+ n.labelStyle = l;
1298
+ let u = (o = n.assetHeight) == null ? 48 : o, d = (s = n.assetWidth) == null ? 48 : s, f = Math.max(u, d), p = a == null ? void 0 : a.wrappingWidth;
1299
+ n.width = Math.max(f, p == null ? 0 : p);
1300
+ let { shapeSvg: m, bbox: h, halfPadding: _, label: v } = await w(t, n, "icon-shape default"), x = n.pos === "t", T = f + _ * 2, D = f + _ * 2, { nodeBorder: O, mainBkg: k } = r, { stylesMap: A } = S(n), j = -D / 2, M = -T / 2, N = n.label ? 8 : 0, F = C.svg(m), I = y(n, {});
1301
+ n.look !== "handDrawn" && (I.roughness = 0, I.fillStyle = "solid");
1302
+ let L = A.get("fill");
1303
+ I.stroke = L == null ? k : L;
1304
+ let R = F.path(P(j, M, D, T, 5), I), z = Math.max(D, h.width), B = T + h.height + N, V = F.rectangle(-z / 2, -B / 2, z, B, e(e({}, I), {}, {
1305
+ fill: "transparent",
1306
+ stroke: "none"
1307
+ })), H = m.insert(() => R, ":first-child").attr("class", "icon-shape2"), U = m.insert(() => V);
1308
+ if (n.icon) {
1309
+ var W;
1310
+ let e = m.append("g");
1311
+ e.html(`<g>${await g(n.icon, {
1312
+ height: f,
1313
+ width: f,
1314
+ fallbackPrefix: ""
1315
+ })}</g>`);
1316
+ let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
1317
+ e.attr("transform", `translate(${-r / 2 - a},${x ? h.height / 2 + N / 2 - i / 2 - o : -h.height / 2 - N / 2 - i / 2 - o})`), e.attr("style", `color: ${(W = A.get("stroke")) == null ? O : W};`);
1318
+ }
1319
+ return v.attr("transform", `translate(${-h.width / 2 - (h.x - ((c = h.left) == null ? 0 : c))},${x ? -B / 2 : B / 2 - h.height})`), H.attr("transform", `translate(0,${x ? h.height / 2 + N / 2 : -h.height / 2 - N / 2})`), E(n, U), n.intersect = function(e) {
1320
+ var t, r, a;
1321
+ if (i.info("iconSquare intersect", n, e), !n.label) return q.rect(n, e);
1322
+ let o = (t = n.x) == null ? 0 : t, s = (r = n.y) == null ? 0 : r, c = (a = n.height) == null ? 0 : a, l = [];
1323
+ return l = x ? [
1324
+ {
1325
+ x: o - h.width / 2,
1326
+ y: s - c / 2
1327
+ },
1328
+ {
1329
+ x: o + h.width / 2,
1330
+ y: s - c / 2
1331
+ },
1332
+ {
1333
+ x: o + h.width / 2,
1334
+ y: s - c / 2 + h.height + N
1335
+ },
1336
+ {
1337
+ x: o + D / 2,
1338
+ y: s - c / 2 + h.height + N
1339
+ },
1340
+ {
1341
+ x: o + D / 2,
1342
+ y: s + c / 2
1343
+ },
1344
+ {
1345
+ x: o - D / 2,
1346
+ y: s + c / 2
1347
+ },
1348
+ {
1349
+ x: o - D / 2,
1350
+ y: s - c / 2 + h.height + N
1351
+ },
1352
+ {
1353
+ x: o - h.width / 2,
1354
+ y: s - c / 2 + h.height + N
1355
+ }
1356
+ ] : [
1357
+ {
1358
+ x: o - D / 2,
1359
+ y: s - c / 2
1360
+ },
1361
+ {
1362
+ x: o + D / 2,
1363
+ y: s - c / 2
1364
+ },
1365
+ {
1366
+ x: o + D / 2,
1367
+ y: s - c / 2 + T
1368
+ },
1369
+ {
1370
+ x: o + h.width / 2,
1371
+ y: s - c / 2 + T
1372
+ },
1373
+ {
1374
+ x: o + h.width / 2 / 2,
1375
+ y: s + c / 2
1376
+ },
1377
+ {
1378
+ x: o - h.width / 2,
1379
+ y: s + c / 2
1380
+ },
1381
+ {
1382
+ x: o - h.width / 2,
1383
+ y: s - c / 2 + T
1384
+ },
1385
+ {
1386
+ x: o - D / 2,
1387
+ y: s - c / 2 + T
1388
+ }
1389
+ ], q.polygon(n, l, e);
1390
+ }, m;
1391
+ }
1392
+ a(Fe, "iconRounded");
1393
+ async function Ie(t, n, { config: { themeVariables: r, flowchart: a } }) {
1394
+ var o, s, c;
1395
+ let { labelStyles: l } = b(n);
1396
+ n.labelStyle = l;
1397
+ let u = (o = n.assetHeight) == null ? 48 : o, d = (s = n.assetWidth) == null ? 48 : s, f = Math.max(u, d), p = a == null ? void 0 : a.wrappingWidth;
1398
+ n.width = Math.max(f, p == null ? 0 : p);
1399
+ let { shapeSvg: m, bbox: h, halfPadding: _, label: v } = await w(t, n, "icon-shape default"), x = n.pos === "t", T = f + _ * 2, D = f + _ * 2, { nodeBorder: O, mainBkg: k } = r, { stylesMap: A } = S(n), j = -D / 2, M = -T / 2, N = n.label ? 8 : 0, F = C.svg(m), I = y(n, {});
1400
+ n.look !== "handDrawn" && (I.roughness = 0, I.fillStyle = "solid");
1401
+ let L = A.get("fill");
1402
+ I.stroke = L == null ? k : L;
1403
+ let R = F.path(P(j, M, D, T, .1), I), z = Math.max(D, h.width), B = T + h.height + N, V = F.rectangle(-z / 2, -B / 2, z, B, e(e({}, I), {}, {
1404
+ fill: "transparent",
1405
+ stroke: "none"
1406
+ })), H = m.insert(() => R, ":first-child"), U = m.insert(() => V);
1407
+ if (n.icon) {
1408
+ var W;
1409
+ let e = m.append("g");
1410
+ e.html(`<g>${await g(n.icon, {
1411
+ height: f,
1412
+ width: f,
1413
+ fallbackPrefix: ""
1414
+ })}</g>`);
1415
+ let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
1416
+ e.attr("transform", `translate(${-r / 2 - a},${x ? h.height / 2 + N / 2 - i / 2 - o : -h.height / 2 - N / 2 - i / 2 - o})`), e.attr("style", `color: ${(W = A.get("stroke")) == null ? O : W};`);
1417
+ }
1418
+ return v.attr("transform", `translate(${-h.width / 2 - (h.x - ((c = h.left) == null ? 0 : c))},${x ? -B / 2 : B / 2 - h.height})`), H.attr("transform", `translate(0,${x ? h.height / 2 + N / 2 : -h.height / 2 - N / 2})`), E(n, U), n.intersect = function(e) {
1419
+ var t, r, a;
1420
+ if (i.info("iconSquare intersect", n, e), !n.label) return q.rect(n, e);
1421
+ let o = (t = n.x) == null ? 0 : t, s = (r = n.y) == null ? 0 : r, c = (a = n.height) == null ? 0 : a, l = [];
1422
+ return l = x ? [
1423
+ {
1424
+ x: o - h.width / 2,
1425
+ y: s - c / 2
1426
+ },
1427
+ {
1428
+ x: o + h.width / 2,
1429
+ y: s - c / 2
1430
+ },
1431
+ {
1432
+ x: o + h.width / 2,
1433
+ y: s - c / 2 + h.height + N
1434
+ },
1435
+ {
1436
+ x: o + D / 2,
1437
+ y: s - c / 2 + h.height + N
1438
+ },
1439
+ {
1440
+ x: o + D / 2,
1441
+ y: s + c / 2
1442
+ },
1443
+ {
1444
+ x: o - D / 2,
1445
+ y: s + c / 2
1446
+ },
1447
+ {
1448
+ x: o - D / 2,
1449
+ y: s - c / 2 + h.height + N
1450
+ },
1451
+ {
1452
+ x: o - h.width / 2,
1453
+ y: s - c / 2 + h.height + N
1454
+ }
1455
+ ] : [
1456
+ {
1457
+ x: o - D / 2,
1458
+ y: s - c / 2
1459
+ },
1460
+ {
1461
+ x: o + D / 2,
1462
+ y: s - c / 2
1463
+ },
1464
+ {
1465
+ x: o + D / 2,
1466
+ y: s - c / 2 + T
1467
+ },
1468
+ {
1469
+ x: o + h.width / 2,
1470
+ y: s - c / 2 + T
1471
+ },
1472
+ {
1473
+ x: o + h.width / 2 / 2,
1474
+ y: s + c / 2
1475
+ },
1476
+ {
1477
+ x: o - h.width / 2,
1478
+ y: s + c / 2
1479
+ },
1480
+ {
1481
+ x: o - h.width / 2,
1482
+ y: s - c / 2 + T
1483
+ },
1484
+ {
1485
+ x: o - D / 2,
1486
+ y: s - c / 2 + T
1487
+ }
1488
+ ], q.polygon(n, l, e);
1489
+ }, m;
1490
+ }
1491
+ a(Ie, "iconSquare");
1492
+ async function Le(t, n, { config: { flowchart: r } }) {
1493
+ var a, o, s, c;
1494
+ let l = new Image();
1495
+ l.src = (a = n == null ? void 0 : n.img) == null ? "" : a, await l.decode();
1496
+ let u = Number(l.naturalWidth.toString().replace("px", "")), d = Number(l.naturalHeight.toString().replace("px", ""));
1497
+ n.imageAspectRatio = u / d;
1498
+ let { labelStyles: f } = b(n);
1499
+ n.labelStyle = f;
1500
+ let p = r == null ? void 0 : r.wrappingWidth;
1501
+ n.defaultWidth = r == null ? void 0 : r.wrappingWidth;
1502
+ let m = Math.max(n.label ? p == null ? 0 : p : 0, (o = n == null ? void 0 : n.assetWidth) == null ? u : o), h = n.constraint === "on" && n != null && n.assetHeight ? n.assetHeight * n.imageAspectRatio : m, g = n.constraint === "on" ? h / n.imageAspectRatio : (s = n == null ? void 0 : n.assetHeight) == null ? d : s;
1503
+ n.width = Math.max(h, p == null ? 0 : p);
1504
+ let { shapeSvg: _, bbox: v, label: x } = await w(t, n, "image-shape default"), S = n.pos === "t", T = -h / 2, D = -g / 2, O = n.label ? 8 : 0, k = C.svg(_), A = y(n, {});
1505
+ n.look !== "handDrawn" && (A.roughness = 0, A.fillStyle = "solid");
1506
+ let j = k.rectangle(T, D, h, g, A), M = Math.max(h, v.width), N = g + v.height + O, P = k.rectangle(-M / 2, -N / 2, M, N, e(e({}, A), {}, {
1507
+ fill: "none",
1508
+ stroke: "none"
1509
+ })), F = _.insert(() => j, ":first-child"), I = _.insert(() => P);
1510
+ if (n.img) {
1511
+ let e = _.append("image");
1512
+ e.attr("href", n.img), e.attr("width", h), e.attr("height", g), e.attr("preserveAspectRatio", "none"), e.attr("transform", `translate(${-h / 2},${S ? N / 2 - g : -N / 2})`);
1513
+ }
1514
+ return x.attr("transform", `translate(${-v.width / 2 - (v.x - ((c = v.left) == null ? 0 : c))},${S ? -g / 2 - v.height / 2 - O / 2 : g / 2 - v.height / 2 + O / 2})`), F.attr("transform", `translate(0,${S ? v.height / 2 + O / 2 : -v.height / 2 - O / 2})`), E(n, I), n.intersect = function(e) {
1515
+ var t, r, a;
1516
+ if (i.info("iconSquare intersect", n, e), !n.label) return q.rect(n, e);
1517
+ let o = (t = n.x) == null ? 0 : t, s = (r = n.y) == null ? 0 : r, c = (a = n.height) == null ? 0 : a, l = [];
1518
+ return l = S ? [
1519
+ {
1520
+ x: o - v.width / 2,
1521
+ y: s - c / 2
1522
+ },
1523
+ {
1524
+ x: o + v.width / 2,
1525
+ y: s - c / 2
1526
+ },
1527
+ {
1528
+ x: o + v.width / 2,
1529
+ y: s - c / 2 + v.height + O
1530
+ },
1531
+ {
1532
+ x: o + h / 2,
1533
+ y: s - c / 2 + v.height + O
1534
+ },
1535
+ {
1536
+ x: o + h / 2,
1537
+ y: s + c / 2
1538
+ },
1539
+ {
1540
+ x: o - h / 2,
1541
+ y: s + c / 2
1542
+ },
1543
+ {
1544
+ x: o - h / 2,
1545
+ y: s - c / 2 + v.height + O
1546
+ },
1547
+ {
1548
+ x: o - v.width / 2,
1549
+ y: s - c / 2 + v.height + O
1550
+ }
1551
+ ] : [
1552
+ {
1553
+ x: o - h / 2,
1554
+ y: s - c / 2
1555
+ },
1556
+ {
1557
+ x: o + h / 2,
1558
+ y: s - c / 2
1559
+ },
1560
+ {
1561
+ x: o + h / 2,
1562
+ y: s - c / 2 + g
1563
+ },
1564
+ {
1565
+ x: o + v.width / 2,
1566
+ y: s - c / 2 + g
1567
+ },
1568
+ {
1569
+ x: o + v.width / 2 / 2,
1570
+ y: s + c / 2
1571
+ },
1572
+ {
1573
+ x: o - v.width / 2,
1574
+ y: s + c / 2
1575
+ },
1576
+ {
1577
+ x: o - v.width / 2,
1578
+ y: s - c / 2 + g
1579
+ },
1580
+ {
1581
+ x: o - h / 2,
1582
+ y: s - c / 2 + g
1583
+ }
1584
+ ], q.polygon(n, l, e);
1585
+ }, _;
1586
+ }
1587
+ a(Le, "imageSquare");
1588
+ async function Re(e, t) {
1589
+ var n, r, i;
1590
+ let { labelStyles: a, nodeStyles: o } = b(t);
1591
+ t.labelStyle = a;
1592
+ let s = (n = t.padding) == null ? 0 : n, c = s, l = t.look === "neo" ? s * 2 : s, { shapeSvg: u, bbox: d } = await w(e, t, D(t)), f = Math.max(d.width + (l == null ? 0 : l) * 2, (r = t == null ? void 0 : t.width) == null ? 0 : r), p = Math.max(d.height + (c == null ? 0 : c) * 2, (i = t == null ? void 0 : t.height) == null ? 0 : i), m = [
1593
+ {
1594
+ x: 0,
1595
+ y: 0
1596
+ },
1597
+ {
1598
+ x: f,
1599
+ y: 0
1600
+ },
1601
+ {
1602
+ x: f + 3 * p / 6,
1603
+ y: -p
1604
+ },
1605
+ {
1606
+ x: -3 * p / 6,
1607
+ y: -p
1608
+ }
1609
+ ], h, { cssStyles: g } = t;
1610
+ if (t.look === "handDrawn") {
1611
+ let e = C.svg(u), n = y(t, {}), r = O(m), i = e.path(r, n);
1612
+ h = u.insert(() => i, ":first-child").attr("transform", `translate(${-f / 2}, ${p / 2})`), g && h.attr("style", g);
1613
+ } else h = Y(u, f, p, m);
1614
+ return o && h.attr("style", o), t.width = f, t.height = p, E(t, h), t.intersect = function(e) {
1615
+ return q.polygon(t, m, e);
1616
+ }, u;
1617
+ }
1618
+ a(Re, "inv_trapezoid");
1619
+ async function ze(e, t, r) {
1620
+ let { labelStyles: i, nodeStyles: a } = b(t);
1621
+ t.labelStyle = i;
1622
+ let { shapeSvg: o, bbox: s } = await w(e, t, D(t)), c = Math.max(s.width + r.labelPaddingX * 2, (t == null ? void 0 : t.width) || 0), l = Math.max(s.height + r.labelPaddingY * 2, (t == null ? void 0 : t.height) || 0), u = -c / 2, d = -l / 2, f, { rx: p, ry: m } = t, { cssStyles: h } = t;
1623
+ if (r != null && r.rx && r.ry && (p = r.rx, m = r.ry), t.look === "handDrawn") {
1624
+ let e = C.svg(o), r = y(t, {}), i = p || m ? e.path(P(u, d, c, l, p || 0), r) : e.rectangle(u, d, c, l, r);
1625
+ f = o.insert(() => i, ":first-child"), f.attr("class", "basic label-container").attr("style", n(h));
1626
+ } else f = o.insert("rect", ":first-child"), f.attr("class", "basic label-container").attr("style", a).attr("rx", n(p)).attr("ry", n(m)).attr("x", u).attr("y", d).attr("width", c).attr("height", l);
1627
+ return E(t, f), t.calcIntersect = function(e, t) {
1628
+ return q.rect(e, t);
1629
+ }, t.intersect = function(e) {
1630
+ return q.rect(t, e);
1631
+ }, o;
1632
+ }
1633
+ a(ze, "drawRect");
1634
+ async function Be(e, t) {
1635
+ var n, r;
1636
+ let { shapeSvg: i, bbox: a, label: o } = await w(e, t, "label"), s = i.insert("rect", ":first-child");
1637
+ return s.attr("width", .1).attr("height", .1), i.attr("class", "label edgeLabel"), o.attr("transform", `translate(${-(a.width / 2) - (a.x - ((n = a.left) == null ? 0 : n))}, ${-(a.height / 2) - (a.y - ((r = a.top) == null ? 0 : r))})`), E(t, s), t.intersect = function(e) {
1638
+ return q.rect(t, e);
1639
+ }, i;
1640
+ }
1641
+ a(Be, "labelRect");
1642
+ async function Ve(e, t) {
1643
+ var n, r, i;
1644
+ let { labelStyles: a, nodeStyles: o } = b(t);
1645
+ t.labelStyle = a;
1646
+ let s = (n = t.padding) == null ? 0 : n, c = s, l = t.look === "neo" ? s * 2 : s, { shapeSvg: u, bbox: d } = await w(e, t, D(t)), f = ((r = t == null ? void 0 : t.height) == null ? d.height : r) + c, p = ((i = t == null ? void 0 : t.width) == null ? d.width : i) + l, m = [
1647
+ {
1648
+ x: 0,
1649
+ y: 0
1650
+ },
1651
+ {
1652
+ x: p + 3 * f / 6,
1653
+ y: 0
1654
+ },
1655
+ {
1656
+ x: p,
1657
+ y: -f
1658
+ },
1659
+ {
1660
+ x: -(3 * f) / 6,
1661
+ y: -f
1662
+ }
1663
+ ], h, { cssStyles: g } = t;
1664
+ if (t.look === "handDrawn") {
1665
+ let e = C.svg(u), n = y(t, {}), r = O(m), i = e.path(r, n);
1666
+ h = u.insert(() => i, ":first-child").attr("transform", `translate(${-p / 2}, ${f / 2})`), g && h.attr("style", g);
1667
+ } else h = Y(u, p, f, m);
1668
+ return o && h.attr("style", o), t.width = p, t.height = f, E(t, h), t.intersect = function(e) {
1669
+ return q.polygon(t, m, e);
1670
+ }, u;
1671
+ }
1672
+ a(Ve, "lean_left");
1673
+ async function He(e, t) {
1674
+ var n, r, i;
1675
+ let { labelStyles: a, nodeStyles: o } = b(t);
1676
+ t.labelStyle = a;
1677
+ let s = (n = t.padding) == null ? 0 : n, c = s, l = t.look === "neo" ? s * 2 : s, { shapeSvg: u, bbox: d } = await w(e, t, D(t)), f = ((r = t == null ? void 0 : t.height) == null ? d.height : r) + c, p = ((i = t == null ? void 0 : t.width) == null ? d.width : i) + l, m = [
1678
+ {
1679
+ x: -3 * f / 6,
1680
+ y: 0
1681
+ },
1682
+ {
1683
+ x: p,
1684
+ y: 0
1685
+ },
1686
+ {
1687
+ x: p + 3 * f / 6,
1688
+ y: -f
1689
+ },
1690
+ {
1691
+ x: 0,
1692
+ y: -f
1693
+ }
1694
+ ], h, { cssStyles: g } = t;
1695
+ if (t.look === "handDrawn") {
1696
+ let e = C.svg(u), n = y(t, {}), r = O(m), i = e.path(r, n);
1697
+ h = u.insert(() => i, ":first-child").attr("transform", `translate(${-p / 2}, ${f / 2})`), g && h.attr("style", g);
1698
+ } else h = Y(u, p, f, m);
1699
+ return o && h.attr("style", o), t.width = p, t.height = f, E(t, h), t.intersect = function(e) {
1700
+ return q.polygon(t, m, e);
1701
+ }, u;
1702
+ }
1703
+ a(He, "lean_right");
1704
+ function Ue(e, t) {
1705
+ var n, r, a;
1706
+ let { labelStyles: o, nodeStyles: s } = b(t);
1707
+ t.label = "", t.labelStyle = o;
1708
+ let c = e.insert("g").attr("class", D(t)).attr("id", (n = t.domId) == null ? t.id : n), { cssStyles: l } = t, u = Math.max(35, (r = t == null ? void 0 : t.width) == null ? 0 : r), d = Math.max(35, (a = t == null ? void 0 : t.height) == null ? 0 : a), f = [
1709
+ {
1710
+ x: u,
1711
+ y: 0
1712
+ },
1713
+ {
1714
+ x: 0,
1715
+ y: d + 7 / 2
1716
+ },
1717
+ {
1718
+ x: u - 14,
1719
+ y: d + 7 / 2
1720
+ },
1721
+ {
1722
+ x: 0,
1723
+ y: 2 * d
1724
+ },
1725
+ {
1726
+ x: u,
1727
+ y: d - 7 / 2
1728
+ },
1729
+ {
1730
+ x: 14,
1731
+ y: d - 7 / 2
1732
+ }
1733
+ ], p = C.svg(c), m = y(t, {});
1734
+ t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
1735
+ let h = O(f), g = p.path(h, m), _ = c.insert(() => g, ":first-child");
1736
+ return _.attr("class", "outer-path"), l && t.look !== "handDrawn" && _.selectAll("path").attr("style", l), s && t.look !== "handDrawn" && _.selectAll("path").attr("style", s), _.attr("transform", `translate(-${u / 2},${-d})`), E(t, _), t.intersect = function(e) {
1737
+ return i.info("lightningBolt intersect", t, e), q.polygon(t, f, e);
1738
+ }, c;
1739
+ }
1740
+ a(Ue, "lightningBolt");
1741
+ var We = /* @__PURE__ */ a((e, t, n, r, i, a, o) => [
1742
+ `M${e},${t + a}`,
1743
+ `a${i},${a} 0,0,0 ${n},0`,
1744
+ `a${i},${a} 0,0,0 ${-n},0`,
1745
+ `l0,${r}`,
1746
+ `a${i},${a} 0,0,0 ${n},0`,
1747
+ `l0,${-r}`,
1748
+ `M${e},${t + a + o}`,
1749
+ `a${i},${a} 0,0,0 ${n},0`
1750
+ ].join(" "), "createCylinderPathD"), Ge = /* @__PURE__ */ a((e, t, n, r, i, a, o) => [
1751
+ `M${e},${t + a}`,
1752
+ `M${e + n},${t + a}`,
1753
+ `a${i},${a} 0,0,0 ${-n},0`,
1754
+ `l0,${r}`,
1755
+ `a${i},${a} 0,0,0 ${n},0`,
1756
+ `l0,${-r}`,
1757
+ `M${e},${t + a + o}`,
1758
+ `a${i},${a} 0,0,0 ${n},0`
1759
+ ].join(" "), "createOuterCylinderPathD"), Ke = /* @__PURE__ */ a((e, t, n, r, i, a) => [`M${e - n / 2},${-r / 2}`, `a${i},${a} 0,0,0 ${n},0`].join(" "), "createInnerCylinderPathD"), qe = 10, Je = 10;
1760
+ async function Ye(e, t) {
1761
+ var r, i, a;
1762
+ let { labelStyles: o, nodeStyles: s } = b(t);
1763
+ t.labelStyle = o;
1764
+ let c = (r = t.padding) == null ? 0 : r, l = t.look === "neo" ? 16 : c, u = t.look === "neo" ? 24 : c;
1765
+ if (t.width || t.height) {
1766
+ var d, f, p;
1767
+ let e = (d = t.width) == null ? 0 : d;
1768
+ t.width = ((f = t.width) == null ? 0 : f) - l, t.width < Je && (t.width = Je);
1769
+ let n = e / 2 / (2.5 + e / 50);
1770
+ t.height = ((p = t.height) == null ? 0 : p) - u - n * 3, t.height < qe && (t.height = qe);
1771
+ }
1772
+ let { shapeSvg: m, bbox: h, label: g } = await w(e, t, D(t)), _ = (t != null && t.width ? t == null ? void 0 : t.width : h.width) + l * 2, v = _ / 2, x = v / (2.5 + _ / 50), S = (t != null && t.height ? t == null ? void 0 : t.height : h.height) + x + u * 2, T = S * .1, O, { cssStyles: k } = t;
1773
+ if (t.look === "handDrawn") {
1774
+ let e = C.svg(m), n = Ge(0, 0, _, S, v, x, T), r = Ke(0, x, _, S, v, x), i = y(t, {}), a = e.path(n, i), o = e.path(r, i);
1775
+ m.insert(() => o, ":first-child").attr("class", "line"), O = m.insert(() => a, ":first-child"), O.attr("class", "basic label-container"), k && O.attr("style", k);
1776
+ } else {
1777
+ let e = We(0, 0, _, S, v, x, T);
1778
+ O = m.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", n(k)).attr("style", s);
1779
+ }
1780
+ return O.attr("label-offset-y", x), O.attr("transform", `translate(${-_ / 2}, ${-(S / 2 + x)})`), E(t, O), g.attr("transform", `translate(${-(h.width / 2) - (h.x - ((i = h.left) == null ? 0 : i))}, ${-(h.height / 2) + x - (h.y - ((a = h.top) == null ? 0 : a))})`), t.intersect = function(e) {
1781
+ var n, r, i, a, o;
1782
+ let s = q.rect(t, e), c = s.x - ((n = t.x) == null ? 0 : n);
1783
+ if (v != 0 && (Math.abs(c) < ((r = t.width) == null ? 0 : r) / 2 || Math.abs(c) == ((i = t.width) == null ? 0 : i) / 2 && Math.abs(s.y - ((a = t.y) == null ? 0 : a)) > ((o = t.height) == null ? 0 : o) / 2 - x)) {
1784
+ var l;
1785
+ let n = x * x * (1 - c * c / (v * v));
1786
+ n > 0 && (n = Math.sqrt(n)), n = x - n, e.y - ((l = t.y) == null ? 0 : l) > 0 && (n = -n), s.y += n;
1787
+ }
1788
+ return s;
1789
+ }, m;
1790
+ }
1791
+ a(Ye, "linedCylinder");
1792
+ async function Xe(e, t) {
1793
+ var n, r, i, a, o;
1794
+ let { labelStyles: s, nodeStyles: c } = b(t);
1795
+ t.labelStyle = s;
1796
+ let l = (n = t.padding) == null ? 0 : n, u = t.look === "neo" ? 16 : l, d = t.look === "neo" ? 12 : l;
1797
+ if (t.width || t.height) {
1798
+ var f;
1799
+ let e = t.width;
1800
+ t.width = (e == null ? 0 : e) * 10 / 11 - u * 2, t.width < 10 && (t.width = 10), t.height = ((f = t == null ? void 0 : t.height) == null ? 0 : f) - d * 2, t.height < 10 && (t.height = 10);
1801
+ }
1802
+ let { shapeSvg: p, bbox: m, label: h } = await w(e, t, D(t)), g = (t != null && t.width ? t == null ? void 0 : t.width : m.width) + (u == null ? 0 : u) * 2, _ = (t != null && t.height ? t == null ? void 0 : t.height : m.height) + (d == null ? 0 : d) * 2, v = t.look === "neo" ? _ / 4 : _ / 8, x = _ + v, { cssStyles: S } = t, T = C.svg(p), O = y(t, {});
1803
+ t.look !== "handDrawn" && (O.roughness = 0, O.fillStyle = "solid");
1804
+ let A = [
1805
+ {
1806
+ x: -g / 2 - g / 2 * .1,
1807
+ y: -x / 2
1808
+ },
1809
+ {
1810
+ x: -g / 2 - g / 2 * .1,
1811
+ y: x / 2
1812
+ },
1813
+ ...k(-g / 2 - g / 2 * .1, x / 2, g / 2 + g / 2 * .1, x / 2, v, .8),
1814
+ {
1815
+ x: g / 2 + g / 2 * .1,
1816
+ y: -x / 2
1817
+ },
1818
+ {
1819
+ x: -g / 2 - g / 2 * .1,
1820
+ y: -x / 2
1821
+ },
1822
+ {
1823
+ x: -g / 2,
1824
+ y: -x / 2
1825
+ },
1826
+ {
1827
+ x: -g / 2,
1828
+ y: x / 2 * 1.1
1829
+ },
1830
+ {
1831
+ x: -g / 2,
1832
+ y: -x / 2
1833
+ }
1834
+ ], j = T.polygon(A.map((e) => [e.x, e.y]), O), M = p.insert(() => j, ":first-child");
1835
+ return M.attr("class", "basic label-container outer-path"), S && t.look !== "handDrawn" && M.selectAll("path").attr("style", S), c && t.look !== "handDrawn" && M.selectAll("path").attr("style", c), M.attr("transform", `translate(0,${-v / 2})`), h.attr("transform", `translate(${-g / 2 + ((r = t.padding) == null ? 0 : r) + g / 2 * .1 / 2 - (m.x - ((i = m.left) == null ? 0 : i))},${-_ / 2 + ((a = t.padding) == null ? 0 : a) - v / 2 - (m.y - ((o = m.top) == null ? 0 : o))})`), E(t, M), t.intersect = function(e) {
1836
+ return q.polygon(t, A, e);
1837
+ }, p;
1838
+ }
1839
+ a(Xe, "linedWaveEdgedRect");
1840
+ async function Ze(e, t) {
1841
+ var n, r, i;
1842
+ let { labelStyles: a, nodeStyles: o } = b(t);
1843
+ t.labelStyle = a;
1844
+ let s = (n = t.padding) == null ? 0 : n, c = t.look === "neo" ? 16 : s, l = t.look === "neo" ? 12 : s, u = t.look === "neo" ? 10 : 5;
1845
+ if (t.width || t.height) {
1846
+ var d, f;
1847
+ t.width = Math.max(((d = t == null ? void 0 : t.width) == null ? 0 : d) - c * 2 - 2 * u, 10), t.height = Math.max(((f = t == null ? void 0 : t.height) == null ? 0 : f) - l * 2 - 2 * u, 10);
1848
+ }
1849
+ let { shapeSvg: p, bbox: m, label: h } = await w(e, t, D(t)), g = (t != null && t.width ? t == null ? void 0 : t.width : m.width) + c * 2 + 2 * u, _ = (t != null && t.height ? t == null ? void 0 : t.height : m.height) + l * 2 + 2 * u, v = g - 2 * u, x = _ - 2 * u, S = -v / 2, T = -x / 2, { cssStyles: k } = t, A = C.svg(p), M = y(t, {}), N = [
1850
+ {
1851
+ x: S - u,
1852
+ y: T + u
1853
+ },
1854
+ {
1855
+ x: S - u,
1856
+ y: T + x + u
1857
+ },
1858
+ {
1859
+ x: S + v - u,
1860
+ y: T + x + u
1861
+ },
1862
+ {
1863
+ x: S + v - u,
1864
+ y: T + x
1865
+ },
1866
+ {
1867
+ x: S + v,
1868
+ y: T + x
1869
+ },
1870
+ {
1871
+ x: S + v,
1872
+ y: T + x - u
1873
+ },
1874
+ {
1875
+ x: S + v + u,
1876
+ y: T + x - u
1877
+ },
1878
+ {
1879
+ x: S + v + u,
1880
+ y: T - u
1881
+ },
1882
+ {
1883
+ x: S + u,
1884
+ y: T - u
1885
+ },
1886
+ {
1887
+ x: S + u,
1888
+ y: T
1889
+ },
1890
+ {
1891
+ x: S,
1892
+ y: T
1893
+ },
1894
+ {
1895
+ x: S,
1896
+ y: T + u
1897
+ }
1898
+ ], P = [
1899
+ {
1900
+ x: S,
1901
+ y: T + u
1902
+ },
1903
+ {
1904
+ x: S + v - u,
1905
+ y: T + u
1906
+ },
1907
+ {
1908
+ x: S + v - u,
1909
+ y: T + x
1910
+ },
1911
+ {
1912
+ x: S + v,
1913
+ y: T + x
1914
+ },
1915
+ {
1916
+ x: S + v,
1917
+ y: T
1918
+ },
1919
+ {
1920
+ x: S,
1921
+ y: T
1922
+ }
1923
+ ];
1924
+ t.look !== "handDrawn" && (M.roughness = 0, M.fillStyle = "solid");
1925
+ let F = O(N), I = A.path(F, M), L = O(P), R = A.path(L, M);
1926
+ t.look !== "handDrawn" && (I = j(I), R = j(R));
1927
+ let z = p.insert("g", ":first-child");
1928
+ return z.insert(() => I), z.insert(() => R), z.attr("class", "basic label-container outer-path"), k && t.look !== "handDrawn" && z.selectAll("path").attr("style", k), o && t.look !== "handDrawn" && z.selectAll("path").attr("style", o), h.attr("transform", `translate(${-(m.width / 2) - u - (m.x - ((r = m.left) == null ? 0 : r))}, ${-(m.height / 2) + u - (m.y - ((i = m.top) == null ? 0 : i))})`), E(t, z), t.intersect = function(e) {
1929
+ return q.polygon(t, N, e);
1930
+ }, p;
1931
+ }
1932
+ a(Ze, "multiRect");
1933
+ async function Qe(e, t) {
1934
+ var n, r, i, a, o;
1935
+ let { labelStyles: s, nodeStyles: c } = b(t);
1936
+ t.labelStyle = s;
1937
+ let { shapeSvg: l, bbox: u, label: d } = await w(e, t, D(t)), f = (n = t.padding) == null ? 0 : n, p = t.look === "neo" ? 16 : f, m = t.look === "neo" ? 12 : f, h = !0;
1938
+ if (t.width || t.height) {
1939
+ var g, _;
1940
+ h = !1, t.width = ((g = t == null ? void 0 : t.width) == null ? 0 : g) - p * 2, t.height = ((_ = t == null ? void 0 : t.height) == null ? 0 : _) - m * 3;
1941
+ }
1942
+ let v = Math.max(u.width, (r = t == null ? void 0 : t.width) == null ? 0 : r) + p * 2, x = Math.max(u.height, (i = t == null ? void 0 : t.height) == null ? 0 : i) + m * 3, S = t.look === "neo" ? x / 4 : x / 8, T = x + (h ? S / 2 : -S / 2), A = -v / 2, j = -T / 2, { cssStyles: M } = t, N = k(A - 10, j + T + 10, A + v - 10, j + T + 10, S, .8), P = N == null ? void 0 : N[N.length - 1], F = [
1943
+ {
1944
+ x: A - 10,
1945
+ y: j + 10
1946
+ },
1947
+ {
1948
+ x: A - 10,
1949
+ y: j + T + 10
1950
+ },
1951
+ ...N,
1952
+ {
1953
+ x: A + v - 10,
1954
+ y: P.y - 10
1955
+ },
1956
+ {
1957
+ x: A + v,
1958
+ y: P.y - 10
1959
+ },
1960
+ {
1961
+ x: A + v,
1962
+ y: P.y - 20
1963
+ },
1964
+ {
1965
+ x: A + v + 10,
1966
+ y: P.y - 20
1967
+ },
1968
+ {
1969
+ x: A + v + 10,
1970
+ y: j - 10
1971
+ },
1972
+ {
1973
+ x: A + 10,
1974
+ y: j - 10
1975
+ },
1976
+ {
1977
+ x: A + 10,
1978
+ y: j
1979
+ },
1980
+ {
1981
+ x: A,
1982
+ y: j
1983
+ },
1984
+ {
1985
+ x: A,
1986
+ y: j + 10
1987
+ }
1988
+ ], I = [
1989
+ {
1990
+ x: A,
1991
+ y: j + 10
1992
+ },
1993
+ {
1994
+ x: A + v - 10,
1995
+ y: j + 10
1996
+ },
1997
+ {
1998
+ x: A + v - 10,
1999
+ y: P.y - 10
2000
+ },
2001
+ {
2002
+ x: A + v,
2003
+ y: P.y - 10
2004
+ },
2005
+ {
2006
+ x: A + v,
2007
+ y: j
2008
+ },
2009
+ {
2010
+ x: A,
2011
+ y: j
2012
+ }
2013
+ ], L = C.svg(l), R = y(t, {});
2014
+ t.look !== "handDrawn" && (R.roughness = 0, R.fillStyle = "solid");
2015
+ let z = O(F), B = L.path(z, R), V = O(I), H = L.path(V, R), U = l.insert(() => B, ":first-child");
2016
+ return U.insert(() => H), U.attr("class", "basic label-container outer-path"), M && t.look !== "handDrawn" && U.selectAll("path").attr("style", M), c && t.look !== "handDrawn" && U.selectAll("path").attr("style", c), U.attr("transform", `translate(0,${-S / 2})`), d.attr("transform", `translate(${-(u.width / 2) - 10 - (u.x - ((a = u.left) == null ? 0 : a))}, ${-(u.height / 2) + 10 - S / 2 - (u.y - ((o = u.top) == null ? 0 : o))})`), E(t, U), t.intersect = function(e) {
2017
+ return q.polygon(t, F, e);
2018
+ }, l;
2019
+ }
2020
+ a(Qe, "multiWaveEdgedRectangle");
2021
+ async function $e(e, t, { config: { themeVariables: n } }) {
2022
+ var r, i, a, o, s, c;
2023
+ let { labelStyles: l, nodeStyles: u } = b(t);
2024
+ t.labelStyle = l, t.useHtmlLabels || p(m()) || (t.centerLabel = !0);
2025
+ let { shapeSvg: d, bbox: f, label: h } = await w(e, t, D(t)), g = Math.max(f.width + ((r = t.padding) == null ? 0 : r) * 2, (i = t == null ? void 0 : t.width) == null ? 0 : i), _ = Math.max(f.height + ((a = t.padding) == null ? 0 : a) * 2, (o = t == null ? void 0 : t.height) == null ? 0 : o), v = -g / 2, x = -_ / 2, { cssStyles: S } = t, T = C.svg(d), O = y(t, {
2026
+ fill: n.noteBkgColor,
2027
+ stroke: n.noteBorderColor
2028
+ });
2029
+ t.look !== "handDrawn" && (O.roughness = 0, O.fillStyle = "solid");
2030
+ let k = T.rectangle(v, x, g, _, O), A = d.insert(() => k, ":first-child");
2031
+ return A.attr("class", "basic label-container outer-path"), h.attr("class", "label noteLabel"), S && t.look !== "handDrawn" && A.selectAll("path").attr("style", S), u && t.look !== "handDrawn" && A.selectAll("path").attr("style", u), h.attr("transform", `translate(${-f.width / 2 - (f.x - ((s = f.left) == null ? 0 : s))}, ${-(f.height / 2) - (f.y - ((c = f.top) == null ? 0 : c))})`), E(t, A), t.intersect = function(e) {
2032
+ return q.rect(t, e);
2033
+ }, d;
2034
+ }
2035
+ a($e, "note");
2036
+ var et = /* @__PURE__ */ a((e, t, n) => [
2037
+ `M${e + n / 2},${t}`,
2038
+ `L${e + n},${t - n / 2}`,
2039
+ `L${e + n / 2},${t - n}`,
2040
+ `L${e},${t - n / 2}`,
2041
+ "Z"
2042
+ ].join(" "), "createDecisionBoxPathD");
2043
+ async function tt(e, t) {
2044
+ var n, r;
2045
+ let { labelStyles: i, nodeStyles: a } = b(t);
2046
+ t.labelStyle = i;
2047
+ let { shapeSvg: o, bbox: s } = await w(e, t, D(t)), c = s.width + ((n = t.padding) == null ? 0 : n) + (s.height + ((r = t.padding) == null ? 0 : r)), l = .5, u = [
2048
+ {
2049
+ x: c / 2,
2050
+ y: 0
2051
+ },
2052
+ {
2053
+ x: c,
2054
+ y: -c / 2
2055
+ },
2056
+ {
2057
+ x: c / 2,
2058
+ y: -c
2059
+ },
2060
+ {
2061
+ x: 0,
2062
+ y: -c / 2
2063
+ }
2064
+ ], d, { cssStyles: f } = t;
2065
+ if (t.look === "handDrawn") {
2066
+ let e = C.svg(o), n = y(t, {}), r = et(0, 0, c), i = e.path(r, n);
2067
+ d = o.insert(() => i, ":first-child").attr("transform", `translate(${-c / 2 + l}, ${c / 2})`), f && d.attr("style", f);
2068
+ } else d = Y(o, c, c, u), d.attr("transform", `translate(${-c / 2 + l}, ${c / 2})`);
2069
+ return a && d.attr("style", a), E(t, d), t.calcIntersect = function(e, t) {
2070
+ let n = e.width, r = [
2071
+ {
2072
+ x: n / 2,
2073
+ y: 0
2074
+ },
2075
+ {
2076
+ x: n,
2077
+ y: -n / 2
2078
+ },
2079
+ {
2080
+ x: n / 2,
2081
+ y: -n
2082
+ },
2083
+ {
2084
+ x: 0,
2085
+ y: -n / 2
2086
+ }
2087
+ ], i = q.polygon(e, r, t);
2088
+ return {
2089
+ x: i.x - .5,
2090
+ y: i.y - .5
2091
+ };
2092
+ }, t.intersect = function(e) {
2093
+ return this.calcIntersect(t, e);
2094
+ }, o;
2095
+ }
2096
+ a(tt, "question");
2097
+ async function nt(e, t) {
2098
+ var n, r, i, a, o;
2099
+ let { labelStyles: s, nodeStyles: c } = b(t);
2100
+ t.labelStyle = s;
2101
+ let l = (n = t.padding) == null ? 0 : n, u = t.look === "neo" ? 21 : l == null ? 0 : l, d = t.look === "neo" ? 12 : l == null ? 0 : l, { shapeSvg: f, bbox: p, label: m } = await w(e, t, D(t)), h = ((r = t == null ? void 0 : t.width) == null ? p.width : r) + (t.look === "neo" ? u * 2 : u), g = ((i = t == null ? void 0 : t.height) == null ? p.height : i) + (t.look === "neo" ? d * 2 : d), _ = -h / 2, v = -g / 2, x = v / 2, S = [
2102
+ {
2103
+ x: _ + x,
2104
+ y: v
2105
+ },
2106
+ {
2107
+ x: _,
2108
+ y: 0
2109
+ },
2110
+ {
2111
+ x: _ + x,
2112
+ y: -v
2113
+ },
2114
+ {
2115
+ x: -_,
2116
+ y: -v
2117
+ },
2118
+ {
2119
+ x: -_,
2120
+ y: v
2121
+ }
2122
+ ], { cssStyles: T } = t, k = C.svg(f), A = y(t, {});
2123
+ t.look !== "handDrawn" && (A.roughness = 0, A.fillStyle = "solid");
2124
+ let j = O(S), M = k.path(j, A), N = f.insert(() => M, ":first-child");
2125
+ return N.attr("class", "basic label-container outer-path"), T && t.look !== "handDrawn" && N.selectAll("path").attr("style", T), c && t.look !== "handDrawn" && N.selectAll("path").attr("style", c), N.attr("transform", `translate(${-x / 2},0)`), m.attr("transform", `translate(${-x / 2 - p.width / 2 - (p.x - ((a = p.left) == null ? 0 : a))}, ${-(p.height / 2) - (p.y - ((o = p.top) == null ? 0 : o))})`), E(t, N), t.intersect = function(e) {
2126
+ return q.polygon(t, S, e);
2127
+ }, f;
2128
+ }
2129
+ a(nt, "rect_left_inv_arrow");
2130
+ async function rt(e, t) {
2131
+ let { labelStyles: n, nodeStyles: r } = b(t);
2132
+ t.labelStyle = n;
2133
+ let a;
2134
+ a = t.cssClasses ? "node " + t.cssClasses : "node default";
2135
+ let s = e.insert("g").attr("class", a).attr("id", t.domId || t.id), c = s.insert("g"), u = s.insert("g").attr("class", "label").attr("style", r), d = t.description, f = t.label, m = await N(u, f, t.labelStyle, !0, !0), h = {
2136
+ width: 0,
2137
+ height: 0
2138
+ };
2139
+ if (p(l())) {
2140
+ let e = m.children[0], t = o(m);
2141
+ h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
2142
+ }
2143
+ i.info("Text 2", d);
2144
+ let g = d || [], _ = m.getBBox(), v = await N(u, Array.isArray(g) ? g.join("<br/>") : g, t.labelStyle, !0, !0), x = v.children[0], S = o(v);
2145
+ h = x.getBoundingClientRect(), S.attr("width", h.width), S.attr("height", h.height);
2146
+ let w = (t.padding || 0) / 2;
2147
+ o(v).attr("transform", "translate( " + (h.width > _.width ? 0 : (_.width - h.width) / 2) + ", " + (_.height + w + 5) + ")"), o(m).attr("transform", "translate( " + (h.width < _.width ? 0 : -(_.width - h.width) / 2) + ", 0)"), h = u.node().getBBox(), u.attr("transform", "translate(" + -h.width / 2 + ", " + (-h.height / 2 - w + 3) + ")");
2148
+ let T = h.width + (t.padding || 0), D = h.height + (t.padding || 0), O = -h.width / 2 - w, k = -h.height / 2 - w, A, j;
2149
+ if (t.look === "handDrawn") {
2150
+ let e = C.svg(s), n = y(t, {}), r = e.path(P(O, k, T, D, t.rx || 0), n), a = e.line(-h.width / 2 - w, -h.height / 2 - w + _.height + w, h.width / 2 + w, -h.height / 2 - w + _.height + w, n);
2151
+ j = s.insert(() => (i.debug("Rough node insert CXC", r), a), ":first-child"), A = s.insert(() => (i.debug("Rough node insert CXC", r), r), ":first-child");
2152
+ } else A = c.insert("rect", ":first-child"), j = c.insert("line"), A.attr("class", "outer title-state").attr("style", r).attr("x", -h.width / 2 - w).attr("y", -h.height / 2 - w).attr("width", h.width + (t.padding || 0)).attr("height", h.height + (t.padding || 0)), j.attr("class", "divider").attr("x1", -h.width / 2 - w).attr("x2", h.width / 2 + w).attr("y1", -h.height / 2 - w + _.height + w).attr("y2", -h.height / 2 - w + _.height + w);
2153
+ return E(t, A), t.intersect = function(e) {
2154
+ return q.rect(t, e);
2155
+ }, s;
2156
+ }
2157
+ a(rt, "rectWithTitle");
2158
+ async function it(e, t, { config: { themeVariables: n } }) {
2159
+ var r, i, a;
2160
+ let o = (r = n == null ? void 0 : n.radius) == null ? 5 : r;
2161
+ return ze(e, t, {
2162
+ rx: o,
2163
+ ry: o,
2164
+ classes: "",
2165
+ labelPaddingX: ((i = t == null ? void 0 : t.padding) == null ? 0 : i) * 1,
2166
+ labelPaddingY: ((a = t == null ? void 0 : t.padding) == null ? 0 : a) * 1
2167
+ });
2168
+ }
2169
+ a(it, "roundedRect");
2170
+ var at = 8;
2171
+ async function ot(e, t) {
2172
+ var r, i, a, o, s, c;
2173
+ let { labelStyles: l, nodeStyles: u } = b(t);
2174
+ t.labelStyle = l;
2175
+ let d = t.look === "neo" ? 16 : (r = t.padding) == null ? 0 : r, f = t.look === "neo" ? 12 : (i = t.padding) == null ? 0 : i, { shapeSvg: p, bbox: m, label: h } = await w(e, t, D(t)), g = ((a = t == null ? void 0 : t.width) == null ? m.width : a) + d * 2 + (t.look === "neo" ? at : at * 2), _ = ((o = t == null ? void 0 : t.height) == null ? m.height : o) + f * 2, v = g - at, x = _, S = at - g / 2, T = -_ / 2, { cssStyles: O } = t, k = C.svg(p), A = y(t, {});
2176
+ t.look !== "handDrawn" && (A.roughness = 0, A.fillStyle = "solid");
2177
+ let j = [
2178
+ {
2179
+ x: S,
2180
+ y: T
2181
+ },
2182
+ {
2183
+ x: S + v,
2184
+ y: T
2185
+ },
2186
+ {
2187
+ x: S + v,
2188
+ y: T + x
2189
+ },
2190
+ {
2191
+ x: S - at,
2192
+ y: T + x
2193
+ },
2194
+ {
2195
+ x: S - at,
2196
+ y: T
2197
+ },
2198
+ {
2199
+ x: S,
2200
+ y: T
2201
+ },
2202
+ {
2203
+ x: S,
2204
+ y: T + x
2205
+ }
2206
+ ], M = k.polygon(j.map((e) => [e.x, e.y]), A), N = p.insert(() => M, ":first-child");
2207
+ return N.attr("class", "basic label-container outer-path").attr("style", n(O)), u && t.look !== "handDrawn" && N.selectAll("path").attr("style", u), O && t.look !== "handDrawn" && N.selectAll("path").attr("style", u), h.attr("transform", `translate(${at / 2 - m.width / 2 - (m.x - ((s = m.left) == null ? 0 : s))}, ${-(m.height / 2) - (m.y - ((c = m.top) == null ? 0 : c))})`), E(t, N), t.intersect = function(e) {
2208
+ return q.rect(t, e);
2209
+ }, p;
2210
+ }
2211
+ a(ot, "shadedProcess");
2212
+ async function st(e, t) {
2213
+ var n, r, i, a, o;
2214
+ let { labelStyles: s, nodeStyles: c } = b(t);
2215
+ t.labelStyle = s;
2216
+ let l = (n = t.padding) == null ? 0 : n, u = t.look === "neo" ? 16 : l, d = t.look === "neo" ? 12 : l;
2217
+ if (t.width || t.height) {
2218
+ var f, p;
2219
+ t.width = Math.max(((f = t == null ? void 0 : t.width) == null ? 0 : f) - u * 2, 10), t.height = Math.max(((p = t == null ? void 0 : t.height) == null ? 0 : p) / 1.5 - d * 2, 10);
2220
+ }
2221
+ let { shapeSvg: m, bbox: h, label: g } = await w(e, t, D(t)), _ = (t != null && t.width ? t == null ? void 0 : t.width : h.width) + u * 2, v = ((t != null && t.height ? t == null ? void 0 : t.height : h.height) + d * 2) * 1.5, x = _, S = v / 1.5, T = -x / 2, k = -S / 2, { cssStyles: A } = t, j = C.svg(m), M = y(t, {});
2222
+ t.look !== "handDrawn" && (M.roughness = 0, M.fillStyle = "solid");
2223
+ let N = [
2224
+ {
2225
+ x: T,
2226
+ y: k
2227
+ },
2228
+ {
2229
+ x: T,
2230
+ y: k + S
2231
+ },
2232
+ {
2233
+ x: T + x,
2234
+ y: k + S
2235
+ },
2236
+ {
2237
+ x: T + x,
2238
+ y: k - S / 2
2239
+ }
2240
+ ], P = O(N), F = j.path(P, M), I = m.insert(() => F, ":first-child");
2241
+ return I.attr("class", "basic label-container outer-path"), A && t.look !== "handDrawn" && I.selectChildren("path").attr("style", A), c && t.look !== "handDrawn" && I.selectChildren("path").attr("style", c), I.attr("transform", `translate(0, ${S / 4})`), g.attr("transform", `translate(${-x / 2 + ((r = t.padding) == null ? 0 : r) - (h.x - ((i = h.left) == null ? 0 : i))}, ${-S / 4 + ((a = t.padding) == null ? 0 : a) - (h.y - ((o = h.top) == null ? 0 : o))})`), E(t, I), t.intersect = function(e) {
2242
+ return q.polygon(t, N, e);
2243
+ }, m;
2244
+ }
2245
+ a(st, "slopedRect");
2246
+ async function ct(e, t) {
2247
+ var n, r;
2248
+ let i = (n = t.padding) == null ? 0 : n, a = t.look === "neo" ? 16 : i * 2, o = t.look === "neo" ? 12 : i;
2249
+ return ze(e, t, {
2250
+ rx: 0,
2251
+ ry: 0,
2252
+ classes: "",
2253
+ labelPaddingX: (r = t.labelPaddingX) == null ? a : r,
2254
+ labelPaddingY: o
2255
+ });
2256
+ }
2257
+ a(ct, "squareRect");
2258
+ async function lt(e, t) {
2259
+ var n;
2260
+ let { labelStyles: r, nodeStyles: i } = b(t);
2261
+ t.labelStyle = r;
2262
+ let a = (n = t.padding) == null ? 0 : n, o = t.look === "neo" ? 20 : a, s = t.look === "neo" ? 12 : a, { shapeSvg: c, bbox: l } = await w(e, t, D(t)), u = l.height + (t.look === "neo" ? s * 2 : s), d = l.width + u / 4 + (t.look === "neo" ? o * 2 : o), f = u / 2, { cssStyles: p } = t, m = C.svg(c), h = y(t, {});
2263
+ t.look !== "handDrawn" && (h.roughness = 0, h.fillStyle = "solid");
2264
+ let g = [
2265
+ {
2266
+ x: -d / 2 + f,
2267
+ y: -u / 2
2268
+ },
2269
+ {
2270
+ x: d / 2 - f,
2271
+ y: -u / 2
2272
+ },
2273
+ ...A(-d / 2 + f, 0, f, 50, 90, 270),
2274
+ {
2275
+ x: d / 2 - f,
2276
+ y: u / 2
2277
+ },
2278
+ ...A(d / 2 - f, 0, f, 50, 270, 450)
2279
+ ], _ = O(g), v = m.path(_, h), x = c.insert(() => v, ":first-child");
2280
+ return x.attr("class", "basic label-container outer-path"), p && t.look !== "handDrawn" && x.selectChildren("path").attr("style", p), i && t.look !== "handDrawn" && x.selectChildren("path").attr("style", i), E(t, x), t.intersect = function(e) {
2281
+ return q.polygon(t, g, e);
2282
+ }, c;
2283
+ }
2284
+ a(lt, "stadium");
2285
+ async function ut(e, t) {
2286
+ return ze(e, t, {
2287
+ rx: t.look === "neo" ? 3 : 5,
2288
+ ry: t.look === "neo" ? 3 : 5,
2289
+ classes: "flowchart-node"
2290
+ });
2291
+ }
2292
+ a(ut, "state");
2293
+ function dt(t, n, { config: { themeVariables: r } }) {
2294
+ var i, a;
2295
+ let { labelStyles: o, nodeStyles: s } = b(n);
2296
+ n.labelStyle = o;
2297
+ let { cssStyles: c } = n, { lineColor: l, stateBorder: u, nodeBorder: d, nodeShadow: f } = r;
2298
+ if (n.width || n.height) {
2299
+ var p, m;
2300
+ ((p = n.width) == null ? 0 : p) < 14 && (n.width = 14), ((m = n.height) == null ? 0 : m) < 14 && (n.height = 14);
2301
+ }
2302
+ n.width || (n.width = 14), n.height || (n.height = 14);
2303
+ let h = t.insert("g").attr("class", "node default").attr("id", (i = n.domId) == null ? n.id : i), g = C.svg(h), _ = y(n, {});
2304
+ n.look !== "handDrawn" && (_.roughness = 0, _.fillStyle = "solid");
2305
+ let v = g.circle(0, 0, n.width, e(e({}, _), {}, {
2306
+ stroke: l,
2307
+ strokeWidth: 2
2308
+ })), x = u == null ? d : u, S = ((a = n.width) == null ? 0 : a) * 5 / 14, w = g.circle(0, 0, S, e(e({}, _), {}, {
2309
+ fill: x,
2310
+ stroke: x,
2311
+ strokeWidth: 2,
2312
+ fillStyle: "solid"
2313
+ })), T = h.insert(() => v, ":first-child");
2314
+ if (T.insert(() => w), n.look !== "handDrawn" && T.attr("class", "outer-path"), c && T.selectAll("path").attr("style", c), s && T.selectAll("path").attr("style", s), n.width < 25 && f && n.look !== "handDrawn") {
2315
+ var D, O;
2316
+ let e = (D = (O = t.node()) == null || (O = O.ownerSVGElement) == null ? void 0 : O.id) == null ? "" : D, n = e ? `${e}-drop-shadow-small` : "drop-shadow-small";
2317
+ T.attr("style", `filter:url(#${n})`);
2318
+ }
2319
+ return E(n, T), n.intersect = function(e) {
2320
+ var t;
2321
+ return q.circle(n, ((t = n.width) == null ? 0 : t) / 2, e);
2322
+ }, h;
2323
+ }
2324
+ a(dt, "stateEnd");
2325
+ function ft(e, t, { config: { themeVariables: n } }) {
2326
+ let { lineColor: r, nodeShadow: i } = n;
2327
+ if (t.width || t.height) {
2328
+ var a, o;
2329
+ ((a = t.width) == null ? 0 : a) < 14 && (t.width = 14), ((o = t.height) == null ? 0 : o) < 14 && (t.height = 14);
2330
+ }
2331
+ t.width || (t.width = 14), t.height || (t.height = 14);
2332
+ let s = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), c;
2333
+ if (t.look === "handDrawn") {
2334
+ var l, u, d;
2335
+ let e = C.svg(s).circle(0, 0, t.width, x(r));
2336
+ c = s.insert(() => e), c.attr("class", "state-start").attr("r", ((l = t.width) == null ? 7 : l) / 2).attr("width", (u = t.width) == null ? 14 : u).attr("height", (d = t.height) == null ? 14 : d);
2337
+ } else {
2338
+ var f, p, m;
2339
+ c = s.insert("circle", ":first-child"), c.attr("class", "state-start").attr("r", ((f = t.width) == null ? 7 : f) / 2).attr("width", (p = t.width) == null ? 14 : p).attr("height", (m = t.height) == null ? 14 : m);
2340
+ }
2341
+ if (t.width < 25 && i && t.look !== "handDrawn") {
2342
+ var h, g;
2343
+ let t = (h = (g = e.node()) == null || (g = g.ownerSVGElement) == null ? void 0 : g.id) == null ? "" : h, n = t ? `${t}-drop-shadow-small` : "drop-shadow-small";
2344
+ c.attr("style", `filter:url(#${n})`);
2345
+ }
2346
+ return E(t, c), t.intersect = function(e) {
2347
+ var n;
2348
+ return q.circle(t, ((n = t.width) == null ? 7 : n) / 2, e);
2349
+ }, s;
2350
+ }
2351
+ a(ft, "stateStart");
2352
+ var pt = 8;
2353
+ async function mt(e, t) {
2354
+ var r, i, a;
2355
+ let { labelStyles: o, nodeStyles: s } = b(t);
2356
+ t.labelStyle = o;
2357
+ let c = (r = t == null ? void 0 : t.padding) == null ? 8 : r, l = t.look === "neo" ? 28 : c, u = t.look === "neo" ? 12 : c, { shapeSvg: d, bbox: f } = await w(e, t, D(t)), p = ((i = t == null ? void 0 : t.width) == null ? f.width : i) + 2 * pt + l, m = ((a = t == null ? void 0 : t.height) == null ? f.height : a) + u, h = p - 2 * pt, g = m, _ = -p / 2, v = -m / 2, x = [
2358
+ {
2359
+ x: 0,
2360
+ y: 0
2361
+ },
2362
+ {
2363
+ x: h,
2364
+ y: 0
2365
+ },
2366
+ {
2367
+ x: h,
2368
+ y: -g
2369
+ },
2370
+ {
2371
+ x: 0,
2372
+ y: -g
2373
+ },
2374
+ {
2375
+ x: 0,
2376
+ y: 0
2377
+ },
2378
+ {
2379
+ x: -8,
2380
+ y: 0
2381
+ },
2382
+ {
2383
+ x: h + 8,
2384
+ y: 0
2385
+ },
2386
+ {
2387
+ x: h + 8,
2388
+ y: -g
2389
+ },
2390
+ {
2391
+ x: -8,
2392
+ y: -g
2393
+ },
2394
+ {
2395
+ x: -8,
2396
+ y: 0
2397
+ }
2398
+ ];
2399
+ if (t.look === "handDrawn") {
2400
+ let e = C.svg(d), r = y(t, {}), i = e.rectangle(_, v, h + 16, g, r), a = e.line(_ + pt, v, _ + pt, v + g, r), o = e.line(_ + pt + h, v, _ + pt + h, v + g, r);
2401
+ d.insert(() => a, ":first-child"), d.insert(() => o, ":first-child");
2402
+ let s = d.insert(() => i, ":first-child"), { cssStyles: c } = t;
2403
+ s.attr("class", "basic label-container").attr("style", n(c)), E(t, s);
2404
+ } else {
2405
+ let e = Y(d, h, g, x);
2406
+ s && e.attr("style", s), E(t, e);
2407
+ }
2408
+ return t.intersect = function(e) {
2409
+ return q.polygon(t, x, e);
2410
+ }, d;
2411
+ }
2412
+ a(mt, "subroutine");
2413
+ var ht = .2;
2414
+ async function gt(t, n) {
2415
+ var r;
2416
+ let { labelStyles: i, nodeStyles: a } = b(n);
2417
+ n.labelStyle = i;
2418
+ let o = (r = n.padding) == null ? 0 : r, s = n.look === "neo" ? 16 : o, c = n.look === "neo" ? 12 : o;
2419
+ if (n.width || n.height) {
2420
+ var l, u;
2421
+ n.height = Math.max(((l = n == null ? void 0 : n.height) == null ? 0 : l) - c * 2, 10), n.width = Math.max(((u = n == null ? void 0 : n.width) == null ? 0 : u) - s * 2 - ht * (n.height + c * 2), 10);
2422
+ }
2423
+ let { shapeSvg: d, bbox: f } = await w(t, n, D(n)), p = (n != null && n.height ? n == null ? void 0 : n.height : f.height) + c * 2, m = ht * p, h = ht * p, g = (n != null && n.width ? n == null ? void 0 : n.width : f.width) + s * 2 + m - m, _ = p, v = -g / 2, x = -_ / 2, { cssStyles: S } = n, T = C.svg(d), k = y(n, {}), A = [
2424
+ {
2425
+ x: v - m / 2,
2426
+ y: x
2427
+ },
2428
+ {
2429
+ x: v + g + m / 2,
2430
+ y: x
2431
+ },
2432
+ {
2433
+ x: v + g + m / 2,
2434
+ y: x + _
2435
+ },
2436
+ {
2437
+ x: v - m / 2,
2438
+ y: x + _
2439
+ }
2440
+ ], j = [
2441
+ {
2442
+ x: v + g - m / 2,
2443
+ y: x + _
2444
+ },
2445
+ {
2446
+ x: v + g + m / 2,
2447
+ y: x + _
2448
+ },
2449
+ {
2450
+ x: v + g + m / 2,
2451
+ y: x + _ - h
2452
+ }
2453
+ ];
2454
+ n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
2455
+ let M = O(A), N = T.path(M, k), P = O(j), F = T.path(P, e(e({}, k), {}, { fillStyle: "solid" })), I = d.insert(() => F, ":first-child");
2456
+ return I.insert(() => N, ":first-child"), I.attr("class", "basic label-container outer-path"), S && n.look !== "handDrawn" && I.selectAll("path").attr("style", S), a && n.look !== "handDrawn" && I.selectAll("path").attr("style", a), E(n, I), n.intersect = function(e) {
2457
+ return q.polygon(n, A, e);
2458
+ }, d;
2459
+ }
2460
+ a(gt, "taggedRect");
2461
+ async function _t(t, n) {
2462
+ var r, i, a, o, s, c, l, u;
2463
+ let { labelStyles: d, nodeStyles: f } = b(n);
2464
+ n.labelStyle = d;
2465
+ let { shapeSvg: p, bbox: m, label: h } = await w(t, n, D(n)), g = Math.max(m.width + ((r = n.padding) == null ? 0 : r) * 2, (i = n == null ? void 0 : n.width) == null ? 0 : i), _ = Math.max(m.height + ((a = n.padding) == null ? 0 : a) * 2, (o = n == null ? void 0 : n.height) == null ? 0 : o), v = _ / 8, x = .2 * g, S = .2 * _, T = _ + v, { cssStyles: A } = n, j = C.svg(p), M = y(n, {});
2466
+ n.look !== "handDrawn" && (M.roughness = 0, M.fillStyle = "solid");
2467
+ let N = [
2468
+ {
2469
+ x: -g / 2 - g / 2 * .1,
2470
+ y: T / 2
2471
+ },
2472
+ ...k(-g / 2 - g / 2 * .1, T / 2, g / 2 + g / 2 * .1, T / 2, v, .8),
2473
+ {
2474
+ x: g / 2 + g / 2 * .1,
2475
+ y: -T / 2
2476
+ },
2477
+ {
2478
+ x: -g / 2 - g / 2 * .1,
2479
+ y: -T / 2
2480
+ }
2481
+ ], P = -g / 2 + g / 2 * .1, F = -T / 2 - S * .4, I = [
2482
+ {
2483
+ x: P + g - x,
2484
+ y: (F + _) * 1.3
2485
+ },
2486
+ {
2487
+ x: P + g,
2488
+ y: F + _ - S
2489
+ },
2490
+ {
2491
+ x: P + g,
2492
+ y: (F + _) * .9
2493
+ },
2494
+ ...k(P + g, (F + _) * 1.25, P + g - x, (F + _) * 1.3, -_ * .02, .5)
2495
+ ], L = O(N), R = j.path(L, M), z = O(I), B = j.path(z, e(e({}, M), {}, { fillStyle: "solid" })), V = p.insert(() => B, ":first-child");
2496
+ return V.insert(() => R, ":first-child"), V.attr("class", "basic label-container outer-path"), A && n.look !== "handDrawn" && V.selectAll("path").attr("style", A), f && n.look !== "handDrawn" && V.selectAll("path").attr("style", f), V.attr("transform", `translate(0,${-v / 2})`), h.attr("transform", `translate(${-g / 2 + ((s = n.padding) == null ? 0 : s) - (m.x - ((c = m.left) == null ? 0 : c))},${-_ / 2 + ((l = n.padding) == null ? 0 : l) - v / 2 - (m.y - ((u = m.top) == null ? 0 : u))})`), E(n, V), n.intersect = function(e) {
2497
+ return q.polygon(n, N, e);
2498
+ }, p;
2499
+ }
2500
+ a(_t, "taggedWaveEdgedRectangle");
2501
+ async function vt(e, t) {
2502
+ var n, r;
2503
+ let { labelStyles: i, nodeStyles: a } = b(t);
2504
+ t.labelStyle = i;
2505
+ let { shapeSvg: o, bbox: s } = await w(e, t, D(t)), c = Math.max(s.width + ((n = t.padding) == null ? 0 : n), (t == null ? void 0 : t.width) || 0), l = Math.max(s.height + ((r = t.padding) == null ? 0 : r), (t == null ? void 0 : t.height) || 0), u = -c / 2, d = -l / 2, f = o.insert("rect", ":first-child");
2506
+ return f.attr("class", "text").attr("style", a).attr("rx", 0).attr("ry", 0).attr("x", u).attr("y", d).attr("width", c).attr("height", l), E(t, f), t.intersect = function(e) {
2507
+ return q.rect(t, e);
2508
+ }, o;
2509
+ }
2510
+ a(vt, "text");
2511
+ var yt = /* @__PURE__ */ a((e, t, n, r, i, a) => `M${e},${t}
2512
+ a${i},${a} 0,0,1 0,${-r}
2513
+ l${n},0
2514
+ a${i},${a} 0,0,1 0,${r}
2515
+ M${n},${-r}
2516
+ a${i},${a} 0,0,0 0,${r}
2517
+ l${-n},0`, "createCylinderPathD"), bt = /* @__PURE__ */ a((e, t, n, r, i, a) => [
2518
+ `M${e},${t}`,
2519
+ `M${e + n},${t}`,
2520
+ `a${i},${a} 0,0,0 0,${-r}`,
2521
+ `l${-n},0`,
2522
+ `a${i},${a} 0,0,0 0,${r}`,
2523
+ `l${n},0`
2524
+ ].join(" "), "createOuterCylinderPathD"), xt = /* @__PURE__ */ a((e, t, n, r, i, a) => [`M${e + n / 2},${-r / 2}`, `a${i},${a} 0,0,0 0,${r}`].join(" "), "createInnerCylinderPathD"), St = 5, Ct = 10;
2525
+ async function wt(e, t) {
2526
+ var r, i, a;
2527
+ let { labelStyles: o, nodeStyles: s } = b(t);
2528
+ t.labelStyle = o;
2529
+ let c = (r = t.padding) == null ? 0 : r, l = t.look === "neo" ? 12 : c / 2;
2530
+ if (t.width || t.height) {
2531
+ var u, d, f;
2532
+ let e = (u = t.height) == null ? 0 : u;
2533
+ t.height = ((d = t.height) == null ? 0 : d) - l, t.height < St && (t.height = St);
2534
+ let n = e / 2 / (2.5 + e / 50);
2535
+ t.width = ((f = t.width) == null ? 0 : f) - l - n * 3, t.width < Ct && (t.width = Ct);
2536
+ }
2537
+ let { shapeSvg: p, bbox: m, label: h } = await w(e, t, D(t)), g = (t.height ? t.height : m.height) + l, _ = g / 2, v = _ / (2.5 + g / 50), x = (t.width ? t.width : m.width) + v + l, { cssStyles: S } = t, T;
2538
+ if (t.look === "handDrawn") {
2539
+ let e = C.svg(p), n = bt(0, 0, x, g, v, _), r = xt(0, 0, x, g, v, _), i = e.path(n, y(t, {})), a = e.path(r, y(t, { fill: "none" }));
2540
+ T = p.insert(() => a, ":first-child"), T = p.insert(() => i, ":first-child"), T.attr("class", "basic label-container"), S && T.attr("style", S);
2541
+ } else {
2542
+ let e = yt(0, 0, x, g, v, _);
2543
+ T = p.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container").attr("style", n(S)).attr("style", s), T.attr("class", "basic label-container outer-path"), S && T.selectAll("path").attr("style", S), s && T.selectAll("path").attr("style", s);
2544
+ }
2545
+ return T.attr("label-offset-x", v), T.attr("transform", `translate(${-x / 2}, ${g / 2} )`), h.attr("transform", `translate(${-(m.width / 2) - v - (m.x - ((i = m.left) == null ? 0 : i))}, ${-(m.height / 2) - (m.y - ((a = m.top) == null ? 0 : a))})`), E(t, T), t.intersect = function(e) {
2546
+ var n, r, i, a, o;
2547
+ let s = q.rect(t, e), c = s.y - ((n = t.y) == null ? 0 : n);
2548
+ if (_ != 0 && (Math.abs(c) < ((r = t.height) == null ? 0 : r) / 2 || Math.abs(c) == ((i = t.height) == null ? 0 : i) / 2 && Math.abs(s.x - ((a = t.x) == null ? 0 : a)) > ((o = t.width) == null ? 0 : o) / 2 - v)) {
2549
+ var l;
2550
+ let n = v * v * (1 - c * c / (_ * _));
2551
+ n != 0 && (n = Math.sqrt(Math.abs(n))), n = v - n, e.x - ((l = t.x) == null ? 0 : l) > 0 && (n = -n), s.x += n;
2552
+ }
2553
+ return s;
2554
+ }, p;
2555
+ }
2556
+ a(wt, "tiltedCylinder");
2557
+ async function Tt(e, t) {
2558
+ var n, r, i;
2559
+ let { labelStyles: a, nodeStyles: o } = b(t);
2560
+ t.labelStyle = a;
2561
+ let s = (n = t.padding) == null ? 0 : n, c = (t.look, s), l = t.look === "neo" ? s * 2 : s, { shapeSvg: u, bbox: d } = await w(e, t, D(t)), f = ((r = t == null ? void 0 : t.height) == null ? d.height : r) + c, p = ((i = t == null ? void 0 : t.width) == null ? d.width : i) + l, m = [
2562
+ {
2563
+ x: -3 * f / 6,
2564
+ y: 0
2565
+ },
2566
+ {
2567
+ x: p + 3 * f / 6,
2568
+ y: 0
2569
+ },
2570
+ {
2571
+ x: p,
2572
+ y: -f
2573
+ },
2574
+ {
2575
+ x: 0,
2576
+ y: -f
2577
+ }
2578
+ ], h, { cssStyles: g } = t;
2579
+ if (t.look === "handDrawn") {
2580
+ let e = C.svg(u), n = y(t, {}), r = O(m), i = e.path(r, n);
2581
+ h = u.insert(() => i, ":first-child").attr("transform", `translate(${-p / 2}, ${f / 2})`), g && h.attr("style", g);
2582
+ } else h = Y(u, p, f, m);
2583
+ return o && h.attr("style", o), t.width = p, t.height = f, E(t, h), t.intersect = function(e) {
2584
+ return q.polygon(t, m, e);
2585
+ }, u;
2586
+ }
2587
+ a(Tt, "trapezoid");
2588
+ async function Et(e, t) {
2589
+ var n;
2590
+ let { labelStyles: r, nodeStyles: i } = b(t);
2591
+ t.labelStyle = r;
2592
+ let a = (n = t.padding) == null ? 0 : n, o = t.look === "neo" ? 16 : a, s = t.look === "neo" ? 12 : a;
2593
+ if (t.width || t.height) {
2594
+ var c, l;
2595
+ t.height = ((c = t.height) == null ? 0 : c) - s * 2, t.height < 5 && (t.height = 5), t.width = ((l = t.width) == null ? 0 : l) - o * 2, t.width < 15 && (t.width = 15);
2596
+ }
2597
+ let { shapeSvg: u, bbox: d } = await w(e, t, D(t)), f = (t != null && t.width ? t == null ? void 0 : t.width : d.width) + o * 2, p = (t != null && t.height ? t == null ? void 0 : t.height : d.height) + s * 2, { cssStyles: m } = t, h = C.svg(u), g = y(t, {});
2598
+ t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
2599
+ let _ = [
2600
+ {
2601
+ x: -f / 2 * .8,
2602
+ y: -p / 2
2603
+ },
2604
+ {
2605
+ x: f / 2 * .8,
2606
+ y: -p / 2
2607
+ },
2608
+ {
2609
+ x: f / 2,
2610
+ y: -p / 2 * .6
2611
+ },
2612
+ {
2613
+ x: f / 2,
2614
+ y: p / 2
2615
+ },
2616
+ {
2617
+ x: -f / 2,
2618
+ y: p / 2
2619
+ },
2620
+ {
2621
+ x: -f / 2,
2622
+ y: -p / 2 * .6
2623
+ }
2624
+ ], v = O(_), x = h.path(v, g), S = u.insert(() => x, ":first-child");
2625
+ return S.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && S.selectChildren("path").attr("style", m), i && t.look !== "handDrawn" && S.selectChildren("path").attr("style", i), E(t, S), t.intersect = function(e) {
2626
+ return q.polygon(t, _, e);
2627
+ }, u;
2628
+ }
2629
+ a(Et, "trapezoidalPentagon");
2630
+ var Dt = 10, Ot = 10;
2631
+ async function kt(e, t) {
2632
+ var n, r, a, o, s;
2633
+ let { labelStyles: c, nodeStyles: d } = b(t);
2634
+ t.labelStyle = c;
2635
+ let f = (n = t.padding) == null ? 0 : n, p = t.look === "neo" ? f * 2 : f;
2636
+ if (t.width || t.height) {
2637
+ var m, h;
2638
+ t.width = (((m = t == null ? void 0 : t.width) == null ? 0 : m) - p) / 2, t.width < Ot && (t.width = Ot), t.height = (h = t == null ? void 0 : t.height) == null ? 0 : h, t.height < Dt && (t.height = Dt);
2639
+ }
2640
+ let { shapeSvg: g, bbox: _, label: v } = await w(e, t, D(t)), x = u((r = l().flowchart) == null ? void 0 : r.htmlLabels), S = (t != null && t.width ? t == null ? void 0 : t.width : _.width) + p, T = t != null && t.height ? t == null ? void 0 : t.height : S + _.height, k = T, A = [
2641
+ {
2642
+ x: 0,
2643
+ y: 0
2644
+ },
2645
+ {
2646
+ x: k,
2647
+ y: 0
2648
+ },
2649
+ {
2650
+ x: k / 2,
2651
+ y: -T
2652
+ }
2653
+ ], { cssStyles: j } = t, M = C.svg(g), N = y(t, {});
2654
+ t.look !== "handDrawn" && (N.roughness = 0, N.fillStyle = "solid");
2655
+ let P = O(A), F = M.path(P, N), I = g.insert(() => F, ":first-child").attr("transform", `translate(${-T / 2}, ${T / 2})`).attr("class", "outer-path");
2656
+ return j && t.look !== "handDrawn" && I.selectChildren("path").attr("style", j), d && t.look !== "handDrawn" && I.selectChildren("path").attr("style", d), t.width = S, t.height = T, E(t, I), v.attr("transform", `translate(${-_.width / 2 - (_.x - ((a = _.left) == null ? 0 : a))}, ${T / 2 - (_.height + ((o = t.padding) == null ? 0 : o) / (x ? 2 : 1) - (_.y - ((s = _.top) == null ? 0 : s)))})`), t.intersect = function(e) {
2657
+ return i.info("Triangle intersect", t, A, e), q.polygon(t, A, e);
2658
+ }, g;
2659
+ }
2660
+ a(kt, "triangle");
2661
+ async function At(e, t) {
2662
+ var n, r, i, a, o;
2663
+ let { labelStyles: s, nodeStyles: c } = b(t);
2664
+ t.labelStyle = s;
2665
+ let l = (n = t.padding) == null ? 0 : n, u = t.look === "neo" ? 16 : l, d = t.look === "neo" ? 12 : l, f = !0;
2666
+ if (t.width || t.height) {
2667
+ var p, m;
2668
+ f = !1, t.width = ((p = t == null ? void 0 : t.width) == null ? 0 : p) - u * 2, t.width < 10 && (t.width = 10), t.height = ((m = t == null ? void 0 : t.height) == null ? 0 : m) - d * 2, t.height < 10 && (t.height = 10);
2669
+ }
2670
+ let { shapeSvg: h, bbox: g, label: _ } = await w(e, t, D(t)), v = (t != null && t.width ? t == null ? void 0 : t.width : g.width) + (u == null ? 0 : u) * 2, x = (t != null && t.height ? t == null ? void 0 : t.height : g.height) + (d == null ? 0 : d) * 2, S = t.look === "neo" ? x / 4 : x / 8, T = x + (f ? S : -S), { cssStyles: A } = t, j = 14 - v, M = j > 0 ? j / 2 : 0, N = C.svg(h), P = y(t, {});
2671
+ t.look !== "handDrawn" && (P.roughness = 0, P.fillStyle = "solid");
2672
+ let F = [
2673
+ {
2674
+ x: -v / 2 - M,
2675
+ y: T / 2
2676
+ },
2677
+ ...k(-v / 2 - M, T / 2, v / 2 + M, T / 2, S, .8),
2678
+ {
2679
+ x: v / 2 + M,
2680
+ y: -T / 2
2681
+ },
2682
+ {
2683
+ x: -v / 2 - M,
2684
+ y: -T / 2
2685
+ }
2686
+ ], I = O(F), L = N.path(I, P), R = h.insert(() => L, ":first-child");
2687
+ return R.attr("class", "basic label-container outer-path"), A && t.look !== "handDrawn" && R.selectAll("path").attr("style", A), c && t.look !== "handDrawn" && R.selectAll("path").attr("style", c), R.attr("transform", `translate(0,${-S / 2})`), _.attr("transform", `translate(${-v / 2 + ((r = t.padding) == null ? 0 : r) - (g.x - ((i = g.left) == null ? 0 : i))},${-x / 2 + ((a = t.padding) == null ? 0 : a) - S - (g.y - ((o = g.top) == null ? 0 : o))})`), E(t, R), t.intersect = function(e) {
2688
+ return q.polygon(t, F, e);
2689
+ }, h;
2690
+ }
2691
+ a(At, "waveEdgedRectangle");
2692
+ async function jt(e, t) {
2693
+ var n;
2694
+ let { labelStyles: r, nodeStyles: i } = b(t);
2695
+ t.labelStyle = r;
2696
+ let a = (n = t.padding) == null ? 0 : n, o = t.look === "neo" ? 16 : a, s = t.look === "neo" ? 20 : a;
2697
+ if (t.width || t.height) {
2698
+ var c, l;
2699
+ t.width = (c = t == null ? void 0 : t.width) == null ? 0 : c, t.width < 20 && (t.width = 20), t.height = (l = t == null ? void 0 : t.height) == null ? 0 : l, t.height < 10 && (t.height = 10);
2700
+ let e = Math.min(t.height * .2, t.height / 4);
2701
+ t.height = Math.ceil(t.height - s - 20 / 9 * e), t.width -= o * 2;
2702
+ }
2703
+ let { shapeSvg: u, bbox: d } = await w(e, t, D(t)), f = (t != null && t.width ? t == null ? void 0 : t.width : d.width) + o * 2, p = (t != null && t.height ? t == null ? void 0 : t.height : d.height) + s, m = p / 8, h = p + m * 2, { cssStyles: g } = t, _ = C.svg(u), v = y(t, {});
2704
+ t.look !== "handDrawn" && (v.roughness = 0, v.fillStyle = "solid");
2705
+ let x = [
2706
+ {
2707
+ x: -f / 2,
2708
+ y: h / 2
2709
+ },
2710
+ ...k(-f / 2, h / 2, f / 2, h / 2, m, 1),
2711
+ {
2712
+ x: f / 2,
2713
+ y: -h / 2
2714
+ },
2715
+ ...k(f / 2, -h / 2, -f / 2, -h / 2, m, -1)
2716
+ ], S = O(x), T = _.path(S, v), A = u.insert(() => T, ":first-child");
2717
+ return A.attr("class", "basic label-container"), g && t.look !== "handDrawn" && A.selectAll("path").attr("style", g), i && t.look !== "handDrawn" && A.selectAll("path").attr("style", i), E(t, A), t.intersect = function(e) {
2718
+ return q.polygon(t, x, e);
2719
+ }, u;
2720
+ }
2721
+ a(jt, "waveRectangle");
2722
+ var $ = 10;
2723
+ async function Mt(e, t) {
2724
+ var n, r, i, a;
2725
+ let { labelStyles: o, nodeStyles: s } = b(t);
2726
+ t.labelStyle = o;
2727
+ let c = t.look === "neo" ? 16 : (n = t.padding) == null ? 0 : n, l = t.look === "neo" ? 12 : (r = t.padding) == null ? 0 : r;
2728
+ if (t.width || t.height) {
2729
+ var u, d;
2730
+ t.width = Math.max(((u = t == null ? void 0 : t.width) == null ? 0 : u) - c * 2 - $, 10), t.height = Math.max(((d = t == null ? void 0 : t.height) == null ? 0 : d) - l * 2 - $, 10);
2731
+ }
2732
+ let { shapeSvg: f, bbox: p, label: m } = await w(e, t, D(t)), h = (t != null && t.width ? t == null ? void 0 : t.width : p.width) + c * 2 + $, g = (t != null && t.height ? t == null ? void 0 : t.height : p.height) + l * 2 + $, _ = h - $, v = g - $, x = -_ / 2, S = -v / 2, { cssStyles: T } = t, O = C.svg(f), k = y(t, {}), A = [
2733
+ {
2734
+ x: x - $,
2735
+ y: S - $
2736
+ },
2737
+ {
2738
+ x: x - $,
2739
+ y: S + v
2740
+ },
2741
+ {
2742
+ x: x + _,
2743
+ y: S + v
2744
+ },
2745
+ {
2746
+ x: x + _,
2747
+ y: S - $
2748
+ }
2749
+ ], j = `M${x - $},${S - $} L${x + _},${S - $} L${x + _},${S + v} L${x - $},${S + v} L${x - $},${S - $}
2750
+ M${x - $},${S} L${x + _},${S}
2751
+ M${x},${S - $} L${x},${S + v}`;
2752
+ t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
2753
+ let M = O.path(j, k), N = f.insert(() => M, ":first-child");
2754
+ return N.attr("transform", `translate(${$ / 2}, ${$ / 2})`), N.attr("class", "basic label-container outer-path"), T && t.look !== "handDrawn" && N.selectAll("path").attr("style", T), s && t.look !== "handDrawn" && N.selectAll("path").attr("style", s), m.attr("transform", `translate(${-(p.width / 2) + $ / 2 - (p.x - ((i = p.left) == null ? 0 : i))}, ${-(p.height / 2) + $ / 2 - (p.y - ((a = p.top) == null ? 0 : a))})`), E(t, N), t.intersect = function(e) {
2755
+ return q.polygon(t, A, e);
2756
+ }, f;
2757
+ }
2758
+ a(Mt, "windowPane");
2759
+ var Nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Pt = /* @__PURE__ */ new Set([
2760
+ "redux",
2761
+ "redux-dark",
2762
+ "redux-color",
2763
+ "redux-dark-color"
2764
+ ]);
2765
+ async function Ft(t, n) {
2766
+ var i, a, s, c, l, d;
2767
+ let f = n;
2768
+ f.alias && (n.label = f.alias);
2769
+ let { theme: p, themeVariables: h } = m(), { rowEven: g, rowOdd: _, nodeBorder: v, borderColorArray: x } = h;
2770
+ if (n.look === "handDrawn") {
2771
+ let { themeVariables: r } = m(), { background: i } = r;
2772
+ await Ft(t, e(e({}, n), {}, {
2773
+ id: n.id + "-background",
2774
+ domId: (n.domId || n.id) + "-background",
2775
+ look: "default",
2776
+ cssStyles: ["stroke: none", `fill: ${i}`]
2777
+ }));
2778
+ }
2779
+ let S = m();
2780
+ n.useHtmlLabels = S.htmlLabels;
2781
+ let w = (i = (a = S.er) == null ? void 0 : a.diagramPadding) == null ? 10 : i, T = (s = (c = S.er) == null ? void 0 : c.entityPadding) == null ? 6 : s, { cssStyles: O } = n, { labelStyles: k, nodeStyles: A } = b(n);
2782
+ if (f.attributes.length === 0 && n.label) {
2783
+ let e = {
2784
+ rx: 0,
2785
+ ry: 0,
2786
+ labelPaddingX: w,
2787
+ labelPaddingY: w * 1.5,
2788
+ classes: ""
2789
+ };
2790
+ r(n.label, S) + e.labelPaddingX * 2 < S.er.minEntityWidth && (n.width = S.er.minEntityWidth);
2791
+ let i = await ze(t, n, e);
2792
+ if (p != null && Nt.has(p)) {
2793
+ var j;
2794
+ let e = (j = f.colorIndex) == null ? 0 : j;
2795
+ i.attr("data-color-id", `color-${e % x.length}`);
2796
+ }
2797
+ if (!u(S.htmlLabels)) {
2798
+ var M;
2799
+ let e = i.select("text"), t = (M = e.node()) == null ? void 0 : M.getBBox();
2800
+ e.attr("transform", `translate(${-t.width / 2}, 0)`);
2801
+ }
2802
+ return i;
2803
+ }
2804
+ S.htmlLabels || (w *= 1.25, T *= 1.25);
2805
+ let N = D(n);
2806
+ N || (N = "node default");
2807
+ let P = t.insert("g").attr("class", N).attr("id", n.domId || n.id), F = await It(P, (l = n.label) == null ? "" : l, S, 0, 0, ["name"], k);
2808
+ F.height += T;
2809
+ let I = 0, L = [], R = [], z = 0, B = 0, V = 0, H = 0, U = !0, W = !0;
2810
+ for (let e of f.attributes) {
2811
+ let t = await It(P, e.type, S, 0, I, ["attribute-type"], k);
2812
+ z = Math.max(z, t.width + w);
2813
+ let n = await It(P, e.name, S, 0, I, ["attribute-name"], k);
2814
+ B = Math.max(B, n.width + w);
2815
+ let r = await It(P, e.keys.join(), S, 0, I, ["attribute-keys"], k);
2816
+ V = Math.max(V, r.width + w);
2817
+ let i = await It(P, e.comment, S, 0, I, ["attribute-comment"], k);
2818
+ H = Math.max(H, i.width + w);
2819
+ let a = Math.max(t.height, n.height, r.height, i.height) + T;
2820
+ R.push({
2821
+ yOffset: I,
2822
+ rowHeight: a
2823
+ }), I += a;
2824
+ }
2825
+ let G = 4;
2826
+ V <= w && (U = !1, V = 0, G--), H <= w && (W = !1, H = 0, G--);
2827
+ let ee = P.node().getBBox();
2828
+ if (F.width + w * 2 - (z + B + V + H) > 0) {
2829
+ let e = F.width + w * 2 - (z + B + V + H);
2830
+ z += e / G, B += e / G, V > 0 && (V += e / G), H > 0 && (H += e / G);
2831
+ }
2832
+ let te = z + B + V + H, ne = C.svg(P), K = y(n, {});
2833
+ n.look !== "handDrawn" && (K.roughness = 0, K.fillStyle = "solid");
2834
+ let re = 0;
2835
+ R.length > 0 && (re = R.reduce((e, t) => {
2836
+ var n;
2837
+ return e + ((n = t == null ? void 0 : t.rowHeight) == null ? 0 : n);
2838
+ }, 0));
2839
+ let ie = Math.max(ee.width + w * 2, (n == null ? void 0 : n.width) || 0, te), ae = Math.max(((d = re) == null ? 0 : d) + F.height, (n == null ? void 0 : n.height) || 0), J = -ie / 2, Y = -ae / 2;
2840
+ if (P.selectAll("g:not(:first-child)").each((e, t, n) => {
2841
+ let r = o(n[t]), i = r.attr("transform"), a = 0, s = 0;
2842
+ if (i) {
2843
+ let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);
2844
+ e && (a = parseFloat(e[1]), s = parseFloat(e[2]), r.attr("class").includes("attribute-name") ? a += z : r.attr("class").includes("attribute-keys") ? a += z + B : r.attr("class").includes("attribute-comment") && (a += z + B + V));
2845
+ }
2846
+ r.attr("transform", `translate(${J + w / 2 + a}, ${s + Y + F.height + T / 2})`);
2847
+ }), P.select(".name").attr("transform", "translate(" + -F.width / 2 + ", " + (Y + T / 2) + ")"), p != null && Nt.has(p)) {
2848
+ var oe;
2849
+ let e = (oe = f.colorIndex) == null ? 0 : oe;
2850
+ P.attr("data-color-id", `color-${e % x.length}`);
2851
+ }
2852
+ let se = ne.rectangle(J, Y, ie, ae, K), ce = P.insert(() => se, ":first-child").attr("class", "outer-path").attr("style", O.join(""));
2853
+ L.push(0);
2854
+ for (let [t, n] of R.entries()) {
2855
+ let r = (t + 1) % 2 == 0 && n.yOffset !== 0, i = ne.rectangle(J, F.height + Y + (n == null ? void 0 : n.yOffset), ie, n == null ? void 0 : n.rowHeight, e(e({}, K), {}, {
2856
+ fill: r ? g : _,
2857
+ stroke: v
2858
+ }));
2859
+ P.insert(() => i, "g.label").attr("style", O.join("")).attr("class", `row-rect-${r ? "even" : "odd"}`);
2860
+ }
2861
+ let le = 1e-4, X = Lt(J, F.height + Y, ie + J, F.height + Y, le), Z = ne.polygon(X.map((e) => [e.x, e.y]), K);
2862
+ if (P.insert(() => Z).attr("class", "divider"), X = Lt(z + J, F.height + Y, z + J, ae + Y, le), Z = ne.polygon(X.map((e) => [e.x, e.y]), K), P.insert(() => Z).attr("class", "divider"), U) {
2863
+ let e = z + B + J;
2864
+ X = Lt(e, F.height + Y, e, ae + Y, le), Z = ne.polygon(X.map((e) => [e.x, e.y]), K), P.insert(() => Z).attr("class", "divider");
2865
+ }
2866
+ if (W) {
2867
+ let e = z + B + V + J;
2868
+ X = Lt(e, F.height + Y, e, ae + Y, le), Z = ne.polygon(X.map((e) => [e.x, e.y]), K), P.insert(() => Z).attr("class", "divider");
2869
+ }
2870
+ for (let e of L) {
2871
+ let t = F.height + Y + e;
2872
+ X = Lt(J, t, ie + J, t, le), Z = ne.polygon(X.map((e) => [e.x, e.y]), K), P.insert(() => Z).attr("class", "divider");
2873
+ }
2874
+ if (E(n, ce), A && n.look !== "handDrawn") if (p != null && Pt.has(p)) P.selectAll("path").attr("style", A);
2875
+ else {
2876
+ var ue;
2877
+ let e = A.split(";"), t = e == null || (ue = e.filter((e) => e.includes("stroke"))) == null ? void 0 : ue.map((e) => `${e}`).join("; ");
2878
+ P.selectAll("path").attr("style", t == null ? "" : t), P.selectAll(".row-rect-even path").attr("style", A);
2879
+ }
2880
+ return n.intersect = function(e) {
2881
+ return q.rect(n, e);
2882
+ }, P;
2883
+ }
2884
+ a(Ft, "erBox");
2885
+ async function It(e, t, n, i = 0, a = 0, s = [], c = "") {
2886
+ let l = e.insert("g").attr("class", `label ${s.join(" ")}`).attr("transform", `translate(${i}, ${a})`).attr("style", c);
2887
+ t !== d(t) && (t = d(t), t = t.replaceAll("<", "&lt;").replaceAll(">", "&gt;"));
2888
+ let f = l.node().appendChild(await h(l, t, {
2889
+ width: r(t, n) + 100,
2890
+ style: c,
2891
+ useHtmlLabels: n.htmlLabels
2892
+ }, n));
2893
+ if (t.includes("&lt;") || t.includes("&gt;")) {
2894
+ let e = f.children[0];
2895
+ for (e.textContent = e.textContent.replaceAll("&lt;", "<").replaceAll("&gt;", ">"); e.childNodes[0];) e = e.childNodes[0], e.textContent = e.textContent.replaceAll("&lt;", "<").replaceAll("&gt;", ">");
2896
+ }
2897
+ let p = f.getBBox();
2898
+ if (u(n.htmlLabels)) {
2899
+ let e = f.children[0];
2900
+ e.style.textAlign = "start";
2901
+ let t = o(f);
2902
+ p = e.getBoundingClientRect(), t.attr("width", p.width), t.attr("height", p.height);
2903
+ }
2904
+ return p;
2905
+ }
2906
+ a(It, "addText");
2907
+ function Lt(e, t, n, r, i) {
2908
+ return e === n ? [
2909
+ {
2910
+ x: e - i / 2,
2911
+ y: t
2912
+ },
2913
+ {
2914
+ x: e + i / 2,
2915
+ y: t
2916
+ },
2917
+ {
2918
+ x: n + i / 2,
2919
+ y: r
2920
+ },
2921
+ {
2922
+ x: n - i / 2,
2923
+ y: r
2924
+ }
2925
+ ] : [
2926
+ {
2927
+ x: e,
2928
+ y: t - i / 2
2929
+ },
2930
+ {
2931
+ x: e,
2932
+ y: t + i / 2
2933
+ },
2934
+ {
2935
+ x: n,
2936
+ y: r + i / 2
2937
+ },
2938
+ {
2939
+ x: n,
2940
+ y: r - i / 2
2941
+ }
2942
+ ];
2943
+ }
2944
+ a(Lt, "lineToPolygon");
2945
+ async function Rt(e, t, n, r, i = ((e) => (e = n.class.padding) == null ? 12 : e)()) {
2946
+ let a = r ? 0 : 3, o = e.insert("g").attr("class", D(t)).attr("id", t.domId || t.id), s = null, c = null, l = null, u = null, d = 0, f = 0, p = 0;
2947
+ if (s = o.insert("g").attr("class", "annotation-group text"), t.annotations.length > 0) {
2948
+ let e = t.annotations[0];
2949
+ await zt(s, { text: `\xAB${e}\xBB` }, 0), d = s.node().getBBox().height;
2950
+ }
2951
+ c = o.insert("g").attr("class", "label-group text"), await zt(c, t, 0, ["font-weight: bolder"]);
2952
+ let m = c.node().getBBox();
2953
+ f = m.height, l = o.insert("g").attr("class", "members-group text");
2954
+ let h = 0;
2955
+ for (let e of t.members) {
2956
+ let t = await zt(l, e, h, [e.parseClassifier()]);
2957
+ h += t + a;
2958
+ }
2959
+ p = l.node().getBBox().height, p <= 0 && (p = i / 2), u = o.insert("g").attr("class", "methods-group text");
2960
+ let g = 0;
2961
+ for (let e of t.methods) {
2962
+ let t = await zt(u, e, g, [e.parseClassifier()]);
2963
+ g += t + a;
2964
+ }
2965
+ let _ = o.node().getBBox();
2966
+ if (s !== null) {
2967
+ let e = s.node().getBBox();
2968
+ s.attr("transform", `translate(${-e.width / 2})`);
2969
+ }
2970
+ return c.attr("transform", `translate(${-m.width / 2}, ${d})`), _ = o.node().getBBox(), l.attr("transform", `translate(0, ${d + f + i * 2})`), _ = o.node().getBBox(), u.attr("transform", `translate(0, ${d + f + (p ? p + i * 4 : i * 2)})`), _ = o.node().getBBox(), {
2971
+ shapeSvg: o,
2972
+ bbox: _
2973
+ };
2974
+ }
2975
+ a(Rt, "textHelper");
2976
+ async function zt(e, n, i, s = []) {
2977
+ var l;
2978
+ let d = e.insert("g").attr("class", "label").attr("style", s.join("; ")), p = m(), g = "useHtmlLabels" in n ? n.useHtmlLabels : (l = u(p.htmlLabels)) == null ? !0 : l, _ = "";
2979
+ _ = "text" in n ? n.text : n.label, !g && _.startsWith("\\") && (_ = _.substring(1)), f(_) && (g = !0);
2980
+ let v = await h(d, c(t(_)), {
2981
+ width: r(_, p) + 50,
2982
+ classes: "markdown-node-label",
2983
+ useHtmlLabels: g
2984
+ }, p), y, b = 1;
2985
+ if (g) {
2986
+ let e = v.children[0], t = o(v);
2987
+ b = e.innerHTML.split("<br>").length, e.innerHTML.includes("</math>") && (b += e.innerHTML.split("<mrow>").length - 1);
2988
+ let n = e.getElementsByTagName("img");
2989
+ if (n) {
2990
+ let e = _.replace(/<img[^>]*>/g, "").trim() === "";
2991
+ await Promise.all([...n].map((t) => new Promise((n) => {
2992
+ function r() {
2993
+ if (t.style.display = "flex", t.style.flexDirection = "column", e) {
2994
+ var r, i;
2995
+ let e = (r = (i = p.fontSize) == null ? void 0 : i.toString()) == null ? window.getComputedStyle(document.body).fontSize : r, n = parseInt(e, 10) * 5 + "px";
2996
+ t.style.minWidth = n, t.style.maxWidth = n;
2997
+ } else t.style.width = "100%";
2998
+ n(t);
2999
+ }
3000
+ a(r, "setupImage"), setTimeout(() => {
3001
+ t.complete && r();
3002
+ }), t.addEventListener("error", r), t.addEventListener("load", r);
3003
+ })));
3004
+ }
3005
+ y = e.getBoundingClientRect(), t.attr("width", y.width), t.attr("height", y.height);
3006
+ } else {
3007
+ s.includes("font-weight: bolder") && o(v).selectAll("tspan").attr("font-weight", ""), b = v.children.length;
3008
+ let e = v.children[0];
3009
+ (v.textContent === "" || v.textContent.includes("&gt")) && (e.textContent = _[0] + _.substring(1).replaceAll("&gt;", ">").replaceAll("&lt;", "<").trim(), _[1] === " " && (e.textContent = e.textContent[0] + " " + e.textContent.substring(1))), e.textContent === "undefined" && (e.textContent = ""), y = v.getBBox();
3010
+ }
3011
+ return d.attr("transform", "translate(0," + (-y.height / (2 * b) + i) + ")"), y.height;
3012
+ }
3013
+ a(zt, "addText");
3014
+ async function Bt(e, t) {
3015
+ var n, r, i, a, s, c, d, f, p, m, h;
3016
+ let g = l(), { themeVariables: _ } = g, { useGradient: v } = _, x = (n = g.class.padding) == null ? 12 : n, S = x, w = (r = (i = t.useHtmlLabels) == null ? u(g.htmlLabels) : i) == null ? !0 : r, T = t;
3017
+ T.annotations = (a = T.annotations) == null ? [] : a, T.members = (s = T.members) == null ? [] : s, T.methods = (c = T.methods) == null ? [] : c;
3018
+ let { shapeSvg: D, bbox: O } = await Rt(e, t, g, w, S), { labelStyles: k, nodeStyles: A } = b(t);
3019
+ t.labelStyle = k, t.cssStyles = T.styles || "";
3020
+ let j = ((d = T.styles) == null ? void 0 : d.join(";")) || A || "";
3021
+ t.cssStyles || (t.cssStyles = j.replaceAll("!important", "").split(";"));
3022
+ let M = T.members.length === 0 && T.methods.length === 0 && !((f = g.class) != null && f.hideEmptyMembersBox), N = C.svg(D), P = y(t, {});
3023
+ t.look !== "handDrawn" && (P.roughness = 0, P.fillStyle = "solid");
3024
+ let F = Math.max((p = t.width) == null ? 0 : p, O.width), I = Math.max((m = t.height) == null ? 0 : m, O.height), L = ((h = t.height) == null ? 0 : h) > O.height;
3025
+ T.members.length === 0 && T.methods.length === 0 ? I += S : T.members.length > 0 && T.methods.length === 0 && (I += S * 2);
3026
+ let R = -F / 2, z = -I / 2, B = M ? x * 2 : T.members.length === 0 && T.methods.length === 0 ? -x : 0;
3027
+ L && (B = x * 2);
3028
+ let V = N.rectangle(R - x, z - x - (M ? x : T.members.length === 0 && T.methods.length === 0 ? -x / 2 : 0), F + 2 * x, I + 2 * x + B, P), H = D.insert(() => V, ":first-child");
3029
+ H.attr("class", "basic label-container outer-path");
3030
+ let U = H.node().getBBox(), W = D.select(".annotation-group").node().getBBox().height - (M ? x / 2 : 0) || 0, G = D.select(".label-group").node().getBBox().height - (M ? x / 2 : 0) || 0, ee = D.select(".members-group").node().getBBox().height - (M ? x / 2 : 0) || 0, te = (W + G + z + x - (z - x - (M ? x : T.members.length === 0 && T.methods.length === 0 ? -x / 2 : 0))) / 2;
3031
+ if (D.selectAll(".text").each((e, t, n) => {
3032
+ var r;
3033
+ let i = o(n[t]), a = i.attr("transform"), s = 0;
3034
+ if (a) {
3035
+ let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);
3036
+ e && (s = parseFloat(e[2]));
3037
+ }
3038
+ let c = s + z + x - (M ? x : T.members.length === 0 && T.methods.length === 0 ? -x / 2 : 0);
3039
+ if (i.attr("class").includes("methods-group")) {
3040
+ let e = Math.max(ee, S / 2);
3041
+ c = L ? Math.max(te, W + G + e + z + S * 2 + x) + S * 2 : W + G + e + z + S * 4 + x;
3042
+ }
3043
+ T.members.length === 0 && T.methods.length === 0 && (r = g.class) != null && r.hideEmptyMembersBox && (c = T.annotations.length > 0 ? s - S : s), w || (c -= 4);
3044
+ let l = R;
3045
+ if (i.attr("class").includes("label-group") || i.attr("class").includes("annotation-group")) {
3046
+ var u;
3047
+ l = -((u = i.node()) == null ? void 0 : u.getBBox().width) / 2 || 0, D.selectAll("text").each(function(e, t, n) {
3048
+ window.getComputedStyle(n[t]).textAnchor === "middle" && (l = 0);
3049
+ });
3050
+ }
3051
+ i.attr("transform", `translate(${l}, ${c})`);
3052
+ }), T.members.length > 0 || T.methods.length > 0 || M) {
3053
+ let e = W + G + z + x, n = N.line(U.x, e, U.x + U.width, e + .001, P);
3054
+ D.insert(() => n).attr("class", `divider${t.look === "neo" && !v ? " neo-line" : ""}`).attr("style", j);
3055
+ }
3056
+ if (M || T.members.length > 0 || T.methods.length > 0) {
3057
+ let e = W + G + ee + z + S * 2 + x, n = N.line(U.x, L ? Math.max(te, e) : e, U.x + U.width, (L ? Math.max(te, e) : e) + .001, P);
3058
+ D.insert(() => n).attr("class", `divider${t.look === "neo" && !v ? " neo-line" : ""}`).attr("style", j);
3059
+ }
3060
+ if (T.look !== "handDrawn" && D.selectAll("path").attr("style", j), H.select(":nth-child(2)").attr("style", j), D.selectAll(".divider").select("path").attr("style", j), t.labelStyle ? D.selectAll("span").attr("style", t.labelStyle) : D.selectAll("span").attr("style", j), !w) {
3061
+ let e = RegExp(/color\s*:\s*([^;]*)/), t = e.exec(j);
3062
+ if (t) {
3063
+ let e = t[0].replace("color", "fill");
3064
+ D.selectAll("tspan").attr("style", e);
3065
+ } else if (k) {
3066
+ let t = e.exec(k);
3067
+ if (t) {
3068
+ let e = t[0].replace("color", "fill");
3069
+ D.selectAll("tspan").attr("style", e);
3070
+ }
3071
+ }
3072
+ }
3073
+ return E(t, H), t.intersect = function(e) {
3074
+ return q.rect(t, e);
3075
+ }, D;
3076
+ }
3077
+ a(Bt, "classBox");
3078
+ async function Vt(e, t) {
3079
+ var n, r, i, a, s;
3080
+ let { labelStyles: c, nodeStyles: u } = b(t);
3081
+ t.labelStyle = c;
3082
+ let d = t, f = t, p = "verifyMethod" in t, m = D(t), { themeVariables: h } = l(), { borderColorArray: g, requirementEdgeLabelBackground: _ } = h, v = e.insert("g").attr("class", m).attr("id", (n = t.domId) == null ? t.id : n), x;
3083
+ x = p ? await Ht(v, `&lt;&lt;${d.type}&gt;&gt;`, 0, t.labelStyle) : await Ht(v, "&lt;&lt;Element&gt;&gt;", 0, t.labelStyle);
3084
+ let S = x, w = await Ht(v, d.name, S, t.labelStyle + "; font-weight: bold;");
3085
+ if (S += w + 20, p) {
3086
+ let e = await Ht(v, `${d.requirementId ? `ID: ${d.requirementId}` : ""}`, S, t.labelStyle);
3087
+ S += e;
3088
+ let n = await Ht(v, `${d.text ? `Text: ${d.text}` : ""}`, S, t.labelStyle);
3089
+ S += n;
3090
+ let r = await Ht(v, `${d.risk ? `Risk: ${d.risk}` : ""}`, S, t.labelStyle);
3091
+ S += r, await Ht(v, `${d.verifyMethod ? `Verification: ${d.verifyMethod}` : ""}`, S, t.labelStyle);
3092
+ } else {
3093
+ let e = await Ht(v, `${f.type ? `Type: ${f.type}` : ""}`, S, t.labelStyle);
3094
+ S += e, await Ht(v, `${f.docRef ? `Doc Ref: ${f.docRef}` : ""}`, S, t.labelStyle);
3095
+ }
3096
+ let T = ((r = (i = v.node()) == null ? void 0 : i.getBBox().width) == null ? 200 : r) + 20, O = ((a = (s = v.node()) == null ? void 0 : s.getBBox().height) == null ? 200 : a) + 20, k = -T / 2, A = -O / 2, j = C.svg(v), M = y(t, {});
3097
+ t.look !== "handDrawn" && (M.roughness = 0, M.fillStyle = "solid");
3098
+ let N = j.rectangle(k, A, T, O, M), P = v.insert(() => N, ":first-child");
3099
+ if (P.attr("class", "basic label-container outer-path").attr("style", u), g != null && g.length) {
3100
+ var F;
3101
+ let e = (F = t.colorIndex) == null ? 0 : F;
3102
+ v.attr("data-color-id", `color-${e % g.length}`);
3103
+ }
3104
+ if (v.selectAll(".label").each((e, t, n) => {
3105
+ let r = o(n[t]), i = r.attr("transform"), a = 0, s = 0;
3106
+ if (i) {
3107
+ let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);
3108
+ e && (a = parseFloat(e[1]), s = parseFloat(e[2]));
3109
+ }
3110
+ let c = s - O / 2, l = k + 20 / 2;
3111
+ (t === 0 || t === 1) && (l = a), r.attr("transform", `translate(${l}, ${c + 20})`);
3112
+ }), S > x + w + 20) {
3113
+ let e = A + x + w + 20, n;
3114
+ if (t.look === "neo") {
3115
+ let t = .001, r = [
3116
+ [k, e],
3117
+ [k + T, e],
3118
+ [k + T, e + t],
3119
+ [k, e + t]
3120
+ ];
3121
+ n = j.polygon(r, M);
3122
+ } else n = j.line(k, e, k + T, e, M);
3123
+ v.insert(() => n).attr("class", "divider");
3124
+ }
3125
+ return E(t, P), t.intersect = function(e) {
3126
+ return q.rect(t, e);
3127
+ }, u && t.look !== "handDrawn" && (_ || g != null && g.length) && v.selectAll("path").attr("style", u), v;
3128
+ }
3129
+ a(Vt, "requirementBox");
3130
+ async function Ht(e, n, i, a = "") {
3131
+ var s;
3132
+ if (n === "") return 0;
3133
+ let u = e.insert("g").attr("class", "label").attr("style", a), d = l(), f = (s = d.htmlLabels) == null ? !0 : s, p = await h(u, c(t(n)), {
3134
+ width: r(n, d) + 50,
3135
+ classes: "markdown-node-label",
3136
+ useHtmlLabels: f,
3137
+ style: a
3138
+ }, d), m;
3139
+ if (f) {
3140
+ let e = p.children[0], t = o(p);
3141
+ m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
3142
+ } else {
3143
+ let e = p.children[0];
3144
+ for (let t of e.children) a && t.setAttribute("style", a);
3145
+ m = p.getBBox(), m.height += 6;
3146
+ }
3147
+ return u.attr("transform", `translate(${-m.width / 2},${-m.height / 2 + i})`), m.height;
3148
+ }
3149
+ a(Ht, "addText");
3150
+ var Ut = /* @__PURE__ */ a((e) => {
3151
+ switch (e) {
3152
+ case "Very High": return "red";
3153
+ case "High": return "orange";
3154
+ case "Medium": return null;
3155
+ case "Low": return "blue";
3156
+ case "Very Low": return "lightblue";
3157
+ }
3158
+ }, "colorFromPriority");
3159
+ async function Wt(e, t, { config: n }) {
3160
+ var r, i;
3161
+ let { labelStyles: a, nodeStyles: o } = b(t);
3162
+ t.labelStyle = a || "";
3163
+ let s = t.width;
3164
+ t.width = ((r = t.width) == null ? 200 : r) - 10;
3165
+ let { shapeSvg: c, bbox: l, label: u } = await w(e, t, D(t)), d = t.padding || 10, f = "", p;
3166
+ if ("ticket" in t && t.ticket && !(n == null || (i = n.kanban) == null) && i.ticketBaseUrl) {
3167
+ var m;
3168
+ f = n == null || (m = n.kanban) == null ? void 0 : m.ticketBaseUrl.replace("#TICKET#", t.ticket), p = c.insert("svg:a", ":first-child").attr("class", "kanban-ticket-link").attr("xlink:href", f).attr("target", "_blank");
3169
+ }
3170
+ let h = {
3171
+ useHtmlLabels: t.useHtmlLabels,
3172
+ labelStyle: t.labelStyle || "",
3173
+ width: t.width,
3174
+ img: t.img,
3175
+ padding: t.padding || 8,
3176
+ centerLabel: !1
3177
+ }, g, _;
3178
+ p ? {label: g, bbox: _} = await T(p, "ticket" in t && t.ticket || "", h) : {label: g, bbox: _} = await T(c, "ticket" in t && t.ticket || "", h);
3179
+ let { label: v, bbox: x } = await T(c, "assigned" in t && t.assigned || "", h);
3180
+ t.width = s;
3181
+ let S = (t == null ? void 0 : t.width) || 0, O = Math.max(_.height, x.height) / 2, k = Math.max(l.height + 20, (t == null ? void 0 : t.height) || 0) + O, A = -S / 2, j = -k / 2;
3182
+ u.attr("transform", "translate(" + (d - S / 2) + ", " + (-O - l.height / 2) + ")"), g.attr("transform", "translate(" + (d - S / 2) + ", " + (-O + l.height / 2) + ")"), v.attr("transform", "translate(" + (d + S / 2 - x.width - 20) + ", " + (-O + l.height / 2) + ")");
3183
+ let M, { rx: N, ry: F } = t, { cssStyles: I } = t;
3184
+ if (t.look === "handDrawn") {
3185
+ let e = C.svg(c), n = y(t, {}), r = N || F ? e.path(P(A, j, S, k, N || 0), n) : e.rectangle(A, j, S, k, n);
3186
+ M = c.insert(() => r, ":first-child"), M.attr("class", "basic label-container").attr("style", I || null);
3187
+ } else {
3188
+ M = c.insert("rect", ":first-child"), M.attr("class", "basic label-container __APA__").attr("style", o).attr("rx", N == null ? 5 : N).attr("ry", F == null ? 5 : F).attr("x", A).attr("y", j).attr("width", S).attr("height", k);
3189
+ let e = "priority" in t && t.priority;
3190
+ if (e) {
3191
+ let t = c.append("line"), n = A + 2, r = j + Math.floor((N == null ? 0 : N) / 2), i = j + k - Math.floor((N == null ? 0 : N) / 2);
3192
+ t.attr("x1", n).attr("y1", r).attr("x2", n).attr("y2", i).attr("stroke-width", "4").attr("stroke", Ut(e));
3193
+ }
3194
+ }
3195
+ return E(t, M), t.height = k, t.intersect = function(e) {
3196
+ return q.rect(t, e);
3197
+ }, c;
3198
+ }
3199
+ a(Wt, "kanbanItem");
3200
+ async function Gt(e, t) {
3201
+ let { labelStyles: r, nodeStyles: a } = b(t);
3202
+ t.labelStyle = r;
3203
+ let { shapeSvg: o, bbox: s, halfPadding: c, label: l } = await w(e, t, D(t)), u = s.width + 10 * c, d = s.height + 8 * c, f = .15 * u, { cssStyles: p } = t, m = s.width + 20, h = s.height + 20, g = Math.max(u, m), _ = Math.max(d, h);
3204
+ l.attr("transform", `translate(${-s.width / 2}, ${-s.height / 2})`);
3205
+ let v, x = `M0 0
3206
+ a${f},${f} 1 0,0 ${g * .25},${-1 * _ * .1}
3207
+ a${f},${f} 1 0,0 ${g * .25},0
3208
+ a${f},${f} 1 0,0 ${g * .25},0
3209
+ a${f},${f} 1 0,0 ${g * .25},${_ * .1}
3210
+
3211
+ a${f},${f} 1 0,0 ${g * .15},${_ * .33}
3212
+ a${f * .8},${f * .8} 1 0,0 0,${_ * .34}
3213
+ a${f},${f} 1 0,0 ${-1 * g * .15},${_ * .33}
3214
+
3215
+ a${f},${f} 1 0,0 ${-1 * g * .25},${_ * .15}
3216
+ a${f},${f} 1 0,0 ${-1 * g * .25},0
3217
+ a${f},${f} 1 0,0 ${-1 * g * .25},0
3218
+ a${f},${f} 1 0,0 ${-1 * g * .25},${-1 * _ * .15}
3219
+
3220
+ a${f},${f} 1 0,0 ${-1 * g * .1},${-1 * _ * .33}
3221
+ a${f * .8},${f * .8} 1 0,0 0,${-1 * _ * .34}
3222
+ a${f},${f} 1 0,0 ${g * .1},${-1 * _ * .33}
3223
+ H0 V0 Z`;
3224
+ if (t.look === "handDrawn") {
3225
+ let e = C.svg(o), r = y(t, {}), i = e.path(x, r);
3226
+ v = o.insert(() => i, ":first-child"), v.attr("class", "basic label-container").attr("style", n(p));
3227
+ } else v = o.insert("path", ":first-child").attr("class", "basic label-container").attr("style", a).attr("d", x);
3228
+ return v.attr("transform", `translate(${-g / 2}, ${-_ / 2})`), E(t, v), t.calcIntersect = function(e, t) {
3229
+ return q.rect(e, t);
3230
+ }, t.intersect = function(e) {
3231
+ return i.info("Bang intersect", t, e), q.rect(t, e);
3232
+ }, o;
3233
+ }
3234
+ a(Gt, "bang");
3235
+ async function Kt(e, t) {
3236
+ let { labelStyles: r, nodeStyles: a } = b(t);
3237
+ t.labelStyle = r;
3238
+ let { shapeSvg: o, bbox: s, halfPadding: c, label: l } = await w(e, t, D(t)), u = s.width + 2 * c, d = s.height + 2 * c, f = .15 * u, p = .25 * u, m = .35 * u, h = .2 * u, { cssStyles: g } = t, _, v = `M0 0
3239
+ a${f},${f} 0 0,1 ${u * .25},${-1 * u * .1}
3240
+ a${m},${m} 1 0,1 ${u * .4},${-1 * u * .1}
3241
+ a${p},${p} 1 0,1 ${u * .35},${u * .2}
3242
+
3243
+ a${f},${f} 1 0,1 ${u * .15},${d * .35}
3244
+ a${h},${h} 1 0,1 ${-1 * u * .15},${d * .65}
3245
+
3246
+ a${p},${f} 1 0,1 ${-1 * u * .25},${u * .15}
3247
+ a${m},${m} 1 0,1 ${-1 * u * .5},0
3248
+ a${f},${f} 1 0,1 ${-1 * u * .25},${-1 * u * .15}
3249
+
3250
+ a${f},${f} 1 0,1 ${-1 * u * .1},${-1 * d * .35}
3251
+ a${h},${h} 1 0,1 ${u * .1},${-1 * d * .65}
3252
+ H0 V0 Z`;
3253
+ if (t.look === "handDrawn") {
3254
+ let e = C.svg(o), r = y(t, {}), i = e.path(v, r);
3255
+ _ = o.insert(() => i, ":first-child"), _.attr("class", "basic label-container").attr("style", n(g));
3256
+ } else _ = o.insert("path", ":first-child").attr("class", "basic label-container").attr("style", a).attr("d", v);
3257
+ return l.attr("transform", `translate(${-s.width / 2}, ${-s.height / 2})`), _.attr("transform", `translate(${-u / 2}, ${-d / 2})`), E(t, _), t.calcIntersect = function(e, t) {
3258
+ return q.rect(e, t);
3259
+ }, t.intersect = function(e) {
3260
+ return i.info("Cloud intersect", t, e), q.rect(t, e);
3261
+ }, o;
3262
+ }
3263
+ a(Kt, "cloud");
3264
+ async function qt(e, t) {
3265
+ let { labelStyles: n, nodeStyles: r } = b(t);
3266
+ t.labelStyle = n;
3267
+ let { shapeSvg: i, bbox: a, halfPadding: o, label: s } = await w(e, t, D(t)), c = a.width + 8 * o, l = a.height + 2 * o, u = t.look === "neo" ? `
3268
+ M${-c / 2} ${l / 2 - 5}
3269
+ v${-l + 10}
3270
+ q0,-5 5,-5
3271
+ h${c - 10}
3272
+ q5,0 5,5
3273
+ v${l - 5}
3274
+ H${-c / 2}
3275
+ Z
3276
+ ` : `
3277
+ M${-c / 2} ${l / 2 - 5}
3278
+ v${-l + 10}
3279
+ q0,-5 5,-5
3280
+ h${c - 10}
3281
+ q5,0 5,5
3282
+ v${l - 10}
3283
+ q0,5 -5,5
3284
+ h${-(c - 10)}
3285
+ q-5,0 -5,-5
3286
+ Z
3287
+ `;
3288
+ if (!t.domId) throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);
3289
+ let d = i.append("path").attr("id", t.domId).attr("class", "node-bkg node-" + t.type).attr("style", r).attr("d", u);
3290
+ return i.append("line").attr("class", "node-line-").attr("x1", -c / 2).attr("y1", l / 2).attr("x2", c / 2).attr("y2", l / 2), s.attr("transform", `translate(${-a.width / 2}, ${-a.height / 2})`), i.append(() => s.node()), E(t, d), t.calcIntersect = function(e, t) {
3291
+ return q.rect(e, t);
3292
+ }, t.intersect = function(e) {
3293
+ return q.rect(t, e);
3294
+ }, i;
3295
+ }
3296
+ a(qt, "defaultMindmapNode");
3297
+ async function Jt(e, t) {
3298
+ var n;
3299
+ return le(e, t, { padding: (n = t.padding) == null ? 0 : n });
3300
+ }
3301
+ a(Jt, "mindmapCircle");
3302
+ var Yt = [
3303
+ {
3304
+ semanticName: "Process",
3305
+ name: "Rectangle",
3306
+ shortName: "rect",
3307
+ description: "Standard process shape",
3308
+ aliases: [
3309
+ "proc",
3310
+ "process",
3311
+ "rectangle"
3312
+ ],
3313
+ internalAliases: ["squareRect"],
3314
+ handler: ct
3315
+ },
3316
+ {
3317
+ semanticName: "Event",
3318
+ name: "Rounded Rectangle",
3319
+ shortName: "rounded",
3320
+ description: "Represents an event",
3321
+ aliases: ["event"],
3322
+ internalAliases: ["roundedRect"],
3323
+ handler: it
3324
+ },
3325
+ {
3326
+ semanticName: "Terminal Point",
3327
+ name: "Stadium",
3328
+ shortName: "stadium",
3329
+ description: "Terminal point",
3330
+ aliases: ["terminal", "pill"],
3331
+ handler: lt
3332
+ },
3333
+ {
3334
+ semanticName: "Subprocess",
3335
+ name: "Framed Rectangle",
3336
+ shortName: "fr-rect",
3337
+ description: "Subprocess",
3338
+ aliases: [
3339
+ "subprocess",
3340
+ "subproc",
3341
+ "framed-rectangle",
3342
+ "subroutine"
3343
+ ],
3344
+ handler: mt
3345
+ },
3346
+ {
3347
+ semanticName: "Database",
3348
+ name: "Cylinder",
3349
+ shortName: "cyl",
3350
+ description: "Database storage",
3351
+ aliases: [
3352
+ "db",
3353
+ "database",
3354
+ "cylinder"
3355
+ ],
3356
+ handler: xe
3357
+ },
3358
+ {
3359
+ semanticName: "Start",
3360
+ name: "Circle",
3361
+ shortName: "circle",
3362
+ description: "Starting point",
3363
+ aliases: ["circ"],
3364
+ handler: le
3365
+ },
3366
+ {
3367
+ semanticName: "Bang",
3368
+ name: "Bang",
3369
+ shortName: "bang",
3370
+ description: "Bang",
3371
+ aliases: ["bang"],
3372
+ handler: Gt
3373
+ },
3374
+ {
3375
+ semanticName: "Cloud",
3376
+ name: "Cloud",
3377
+ shortName: "cloud",
3378
+ description: "cloud",
3379
+ aliases: ["cloud"],
3380
+ handler: Kt
3381
+ },
3382
+ {
3383
+ semanticName: "Decision",
3384
+ name: "Diamond",
3385
+ shortName: "diam",
3386
+ description: "Decision-making step",
3387
+ aliases: [
3388
+ "decision",
3389
+ "diamond",
3390
+ "question"
3391
+ ],
3392
+ handler: tt
3393
+ },
3394
+ {
3395
+ semanticName: "Prepare Conditional",
3396
+ name: "Hexagon",
3397
+ shortName: "hex",
3398
+ description: "Preparation or condition step",
3399
+ aliases: ["hexagon", "prepare"],
3400
+ handler: je
3401
+ },
3402
+ {
3403
+ semanticName: "Data Input/Output",
3404
+ name: "Lean Right",
3405
+ shortName: "lean-r",
3406
+ description: "Represents input or output",
3407
+ aliases: ["lean-right", "in-out"],
3408
+ internalAliases: ["lean_right"],
3409
+ handler: He
3410
+ },
3411
+ {
3412
+ semanticName: "Data Input/Output",
3413
+ name: "Lean Left",
3414
+ shortName: "lean-l",
3415
+ description: "Represents output or input",
3416
+ aliases: ["lean-left", "out-in"],
3417
+ internalAliases: ["lean_left"],
3418
+ handler: Ve
3419
+ },
3420
+ {
3421
+ semanticName: "Priority Action",
3422
+ name: "Trapezoid Base Bottom",
3423
+ shortName: "trap-b",
3424
+ description: "Priority action",
3425
+ aliases: [
3426
+ "priority",
3427
+ "trapezoid-bottom",
3428
+ "trapezoid"
3429
+ ],
3430
+ handler: Tt
3431
+ },
3432
+ {
3433
+ semanticName: "Manual Operation",
3434
+ name: "Trapezoid Base Top",
3435
+ shortName: "trap-t",
3436
+ description: "Represents a manual task",
3437
+ aliases: [
3438
+ "manual",
3439
+ "trapezoid-top",
3440
+ "inv-trapezoid"
3441
+ ],
3442
+ internalAliases: ["inv_trapezoid"],
3443
+ handler: Re
3444
+ },
3445
+ {
3446
+ semanticName: "Stop",
3447
+ name: "Double Circle",
3448
+ shortName: "dbl-circ",
3449
+ description: "Represents a stop point",
3450
+ aliases: ["double-circle"],
3451
+ internalAliases: ["doublecircle"],
3452
+ handler: Ce
3453
+ },
3454
+ {
3455
+ semanticName: "Text Block",
3456
+ name: "Text Block",
3457
+ shortName: "text",
3458
+ description: "Text block",
3459
+ handler: vt
3460
+ },
3461
+ {
3462
+ semanticName: "Card",
3463
+ name: "Notched Rectangle",
3464
+ shortName: "notch-rect",
3465
+ description: "Represents a card",
3466
+ aliases: ["card", "notched-rectangle"],
3467
+ handler: se
3468
+ },
3469
+ {
3470
+ semanticName: "Lined/Shaded Process",
3471
+ name: "Lined Rectangle",
3472
+ shortName: "lin-rect",
3473
+ description: "Lined process shape",
3474
+ aliases: [
3475
+ "lined-rectangle",
3476
+ "lined-process",
3477
+ "lin-proc",
3478
+ "shaded-process"
3479
+ ],
3480
+ handler: ot
3481
+ },
3482
+ {
3483
+ semanticName: "Start",
3484
+ name: "Small Circle",
3485
+ shortName: "sm-circ",
3486
+ description: "Small starting point",
3487
+ aliases: ["start", "small-circle"],
3488
+ internalAliases: ["stateStart"],
3489
+ handler: ft
3490
+ },
3491
+ {
3492
+ semanticName: "Stop",
3493
+ name: "Framed Circle",
3494
+ shortName: "fr-circ",
3495
+ description: "Stop point",
3496
+ aliases: ["stop", "framed-circle"],
3497
+ internalAliases: ["stateEnd"],
3498
+ handler: dt
3499
+ },
3500
+ {
3501
+ semanticName: "Fork/Join",
3502
+ name: "Filled Rectangle",
3503
+ shortName: "fork",
3504
+ description: "Fork or join in process flow",
3505
+ aliases: ["join"],
3506
+ internalAliases: ["forkJoin"],
3507
+ handler: Oe
3508
+ },
3509
+ {
3510
+ semanticName: "Collate",
3511
+ name: "Hourglass",
3512
+ shortName: "hourglass",
3513
+ description: "Represents a collate operation",
3514
+ aliases: ["hourglass", "collate"],
3515
+ handler: Me
3516
+ },
3517
+ {
3518
+ semanticName: "Comment",
3519
+ name: "Curly Brace",
3520
+ shortName: "brace",
3521
+ description: "Adds a comment",
3522
+ aliases: ["comment", "brace-l"],
3523
+ handler: de
3524
+ },
3525
+ {
3526
+ semanticName: "Comment Right",
3527
+ name: "Curly Brace",
3528
+ shortName: "brace-r",
3529
+ description: "Adds a comment",
3530
+ handler: pe
3531
+ },
3532
+ {
3533
+ semanticName: "Comment with braces on both sides",
3534
+ name: "Curly Braces",
3535
+ shortName: "braces",
3536
+ description: "Adds a comment",
3537
+ handler: me
3538
+ },
3539
+ {
3540
+ semanticName: "Com Link",
3541
+ name: "Lightning Bolt",
3542
+ shortName: "bolt",
3543
+ description: "Communication link",
3544
+ aliases: ["com-link", "lightning-bolt"],
3545
+ handler: Ue
3546
+ },
3547
+ {
3548
+ semanticName: "Document",
3549
+ name: "Document",
3550
+ shortName: "doc",
3551
+ description: "Represents a document",
3552
+ aliases: ["doc", "document"],
3553
+ handler: At
3554
+ },
3555
+ {
3556
+ semanticName: "Delay",
3557
+ name: "Half-Rounded Rectangle",
3558
+ shortName: "delay",
3559
+ description: "Represents a delay",
3560
+ aliases: ["half-rounded-rectangle"],
3561
+ handler: ke
3562
+ },
3563
+ {
3564
+ semanticName: "Direct Access Storage",
3565
+ name: "Horizontal Cylinder",
3566
+ shortName: "h-cyl",
3567
+ description: "Direct access storage",
3568
+ aliases: ["das", "horizontal-cylinder"],
3569
+ handler: wt
3570
+ },
3571
+ {
3572
+ semanticName: "Disk Storage",
3573
+ name: "Lined Cylinder",
3574
+ shortName: "lin-cyl",
3575
+ description: "Disk storage",
3576
+ aliases: ["disk", "lined-cylinder"],
3577
+ handler: Ye
3578
+ },
3579
+ {
3580
+ semanticName: "Display",
3581
+ name: "Curved Trapezoid",
3582
+ shortName: "curv-trap",
3583
+ description: "Represents a display",
3584
+ aliases: ["curved-trapezoid", "display"],
3585
+ handler: he
3586
+ },
3587
+ {
3588
+ semanticName: "Divided Process",
3589
+ name: "Divided Rectangle",
3590
+ shortName: "div-rect",
3591
+ description: "Divided process shape",
3592
+ aliases: [
3593
+ "div-proc",
3594
+ "divided-rectangle",
3595
+ "divided-process"
3596
+ ],
3597
+ handler: Se
3598
+ },
3599
+ {
3600
+ semanticName: "Extract",
3601
+ name: "Triangle",
3602
+ shortName: "tri",
3603
+ description: "Extraction process",
3604
+ aliases: ["extract", "triangle"],
3605
+ handler: kt
3606
+ },
3607
+ {
3608
+ semanticName: "Internal Storage",
3609
+ name: "Window Pane",
3610
+ shortName: "win-pane",
3611
+ description: "Internal storage",
3612
+ aliases: ["internal-storage", "window-pane"],
3613
+ handler: Mt
3614
+ },
3615
+ {
3616
+ semanticName: "Junction",
3617
+ name: "Filled Circle",
3618
+ shortName: "f-circ",
3619
+ description: "Junction point",
3620
+ aliases: ["junction", "filled-circle"],
3621
+ handler: we
3622
+ },
3623
+ {
3624
+ semanticName: "Loop Limit",
3625
+ name: "Trapezoidal Pentagon",
3626
+ shortName: "notch-pent",
3627
+ description: "Loop limit step",
3628
+ aliases: ["loop-limit", "notched-pentagon"],
3629
+ handler: Et
3630
+ },
3631
+ {
3632
+ semanticName: "Manual File",
3633
+ name: "Flipped Triangle",
3634
+ shortName: "flip-tri",
3635
+ description: "Manual file operation",
3636
+ aliases: ["manual-file", "flipped-triangle"],
3637
+ handler: De
3638
+ },
3639
+ {
3640
+ semanticName: "Manual Input",
3641
+ name: "Sloped Rectangle",
3642
+ shortName: "sl-rect",
3643
+ description: "Manual input step",
3644
+ aliases: ["manual-input", "sloped-rectangle"],
3645
+ handler: st
3646
+ },
3647
+ {
3648
+ semanticName: "Multi-Document",
3649
+ name: "Stacked Document",
3650
+ shortName: "docs",
3651
+ description: "Multiple documents",
3652
+ aliases: [
3653
+ "documents",
3654
+ "st-doc",
3655
+ "stacked-document"
3656
+ ],
3657
+ handler: Qe
3658
+ },
3659
+ {
3660
+ semanticName: "Multi-Process",
3661
+ name: "Stacked Rectangle",
3662
+ shortName: "st-rect",
3663
+ description: "Multiple processes",
3664
+ aliases: [
3665
+ "procs",
3666
+ "processes",
3667
+ "stacked-rectangle"
3668
+ ],
3669
+ handler: Ze
3670
+ },
3671
+ {
3672
+ semanticName: "Stored Data",
3673
+ name: "Bow Tie Rectangle",
3674
+ shortName: "bow-rect",
3675
+ description: "Stored data",
3676
+ aliases: ["stored-data", "bow-tie-rectangle"],
3677
+ handler: J
3678
+ },
3679
+ {
3680
+ semanticName: "Summary",
3681
+ name: "Crossed Circle",
3682
+ shortName: "cross-circ",
3683
+ description: "Summary",
3684
+ aliases: ["summary", "crossed-circle"],
3685
+ handler: Z
3686
+ },
3687
+ {
3688
+ semanticName: "Tagged Document",
3689
+ name: "Tagged Document",
3690
+ shortName: "tag-doc",
3691
+ description: "Tagged document",
3692
+ aliases: ["tag-doc", "tagged-document"],
3693
+ handler: _t
3694
+ },
3695
+ {
3696
+ semanticName: "Tagged Process",
3697
+ name: "Tagged Rectangle",
3698
+ shortName: "tag-rect",
3699
+ description: "Tagged process",
3700
+ aliases: [
3701
+ "tagged-rectangle",
3702
+ "tag-proc",
3703
+ "tagged-process"
3704
+ ],
3705
+ handler: gt
3706
+ },
3707
+ {
3708
+ semanticName: "Paper Tape",
3709
+ name: "Flag",
3710
+ shortName: "flag",
3711
+ description: "Paper tape",
3712
+ aliases: ["paper-tape"],
3713
+ handler: jt
3714
+ },
3715
+ {
3716
+ semanticName: "Odd",
3717
+ name: "Odd",
3718
+ shortName: "odd",
3719
+ description: "Odd shape",
3720
+ internalAliases: ["rect_left_inv_arrow"],
3721
+ handler: nt
3722
+ },
3723
+ {
3724
+ semanticName: "Lined Document",
3725
+ name: "Lined Document",
3726
+ shortName: "lin-doc",
3727
+ description: "Lined document",
3728
+ aliases: ["lined-document"],
3729
+ handler: Xe
3730
+ }
3731
+ ], Xt = (/* @__PURE__ */ a(() => {
3732
+ let e = {
3733
+ state: ut,
3734
+ choice: ce,
3735
+ note: $e,
3736
+ rectWithTitle: rt,
3737
+ labelRect: Be,
3738
+ iconSquare: Ie,
3739
+ iconCircle: Pe,
3740
+ icon: Ne,
3741
+ iconRounded: Fe,
3742
+ imageSquare: Le,
3743
+ anchor: re,
3744
+ kanbanItem: Wt,
3745
+ mindmapCircle: Jt,
3746
+ defaultMindmapNode: qt,
3747
+ classBox: Bt,
3748
+ erBox: Ft,
3749
+ requirementBox: Vt
3750
+ }, t = [...Object.entries(e), ...Yt.flatMap((e) => [
3751
+ e.shortName,
3752
+ ..."aliases" in e ? e.aliases : [],
3753
+ ..."internalAliases" in e ? e.internalAliases : []
3754
+ ].map((t) => [t, e.handler]))];
3755
+ return Object.fromEntries(t);
3756
+ }, "generateShapeMap"))();
3757
+ function Zt(e) {
3758
+ return e in Xt;
3759
+ }
3760
+ a(Zt, "isValidShape");
3761
+ var Qt = /* @__PURE__ */ new Map();
3762
+ async function $t(e, t, r) {
3763
+ let i, a;
3764
+ t.shape === "rect" && (t.rx && t.ry ? t.shape = "roundedRect" : t.shape = "squareRect");
3765
+ let o = t.shape ? Xt[t.shape] : void 0;
3766
+ if (!o) throw Error(`No such shape: ${t.shape}. Please check your syntax.`);
3767
+ if (t.link) {
3768
+ var s;
3769
+ let n;
3770
+ r.config.securityLevel === "sandbox" ? n = "_top" : t.linkTarget && (n = t.linkTarget || "_blank"), i = e.insert("svg:a").attr("xlink:href", t.link).attr("target", (s = n) == null ? null : s), a = await o(i, t, r);
3771
+ } else a = await o(e, t, r), i = a;
3772
+ return i.attr("data-look", n(t.look)), t.tooltip && a.attr("title", t.tooltip), Qt.set(t.id, i), t.haveCallback && i.attr("class", i.attr("class") + " clickable"), i;
3773
+ }
3774
+ a($t, "insertNode");
3775
+ var en = /* @__PURE__ */ a((e, t) => {
3776
+ Qt.set(t.id, e);
3777
+ }, "setNodeElem"), tn = /* @__PURE__ */ a(() => {
3778
+ Qt.clear();
3779
+ }, "clear"), nn = /* @__PURE__ */ a((e) => {
3780
+ let t = Qt.get(e.id);
3781
+ i.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
3782
+ let n = e.diff || 0;
3783
+ return e.clusterNode ? t.attr("transform", "translate(" + (e.x + n - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), n;
3784
+ }, "positionNode");
3785
+ //#endregion
3786
+ export { $t as a, nn as c, R as i, en as l, tn as n, Zt as o, N as r, w as s, z as t, E as u };