@jackuait/blok 0.10.4 → 0.10.6

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 (459) hide show
  1. package/dist/blok.mjs +2 -2
  2. package/dist/chunks/_basePickBy--UeZi0iS.mjs +166 -0
  3. package/dist/chunks/_baseUniq-C977U_l-.mjs +682 -0
  4. package/dist/chunks/{arc-D-pL2Ftf.mjs → arc-Woh6y3jm.mjs} +2 -2
  5. package/dist/chunks/architecture-YZFGNWBL-aVO23UKm.mjs +3 -0
  6. package/dist/chunks/{architectureDiagram-Q4EWVU46-DS7mqjL2.mjs → architectureDiagram-Q4EWVU46-GTqLmLqg.mjs} +115 -115
  7. package/dist/chunks/{blockDiagram-DXYQGD6D-BTtcn4NG.mjs → blockDiagram-DXYQGD6D-CML01I1L.mjs} +681 -866
  8. package/dist/chunks/{blok-NcdNQ0I6.mjs → blok-B0k4z2h1.mjs} +673 -604
  9. package/dist/chunks/{c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs → c4Diagram-AHTNJAMY-C29OuYjO.mjs} +239 -239
  10. package/dist/chunks/{channel-Cln-eWE0.mjs → channel-Zp_OyvEW.mjs} +1 -1
  11. package/dist/chunks/{chunk-2KRD3SAO-DkM7qh-k.mjs → chunk-2KRD3SAO-mVfUZfox.mjs} +1 -1
  12. package/dist/chunks/{chunk-336JU56O-B17AtzlK.mjs → chunk-336JU56O-mJNxs0cr.mjs} +18 -18
  13. package/dist/chunks/{chunk-426QAEUC-D6UAVUog.mjs → chunk-426QAEUC-TajZlyP-.mjs} +2 -2
  14. package/dist/chunks/{chunk-4BX2VUAB-CgIkjF7Z.mjs → chunk-4BX2VUAB-CsopMMb6.mjs} +1 -1
  15. package/dist/chunks/{chunk-4TB4RGXK-BUP4eON3.mjs → chunk-4TB4RGXK-DC963IrJ.mjs} +129 -129
  16. package/dist/chunks/{chunk-55IACEB6-zZ-IgaSt.mjs → chunk-55IACEB6-yyL3mncJ.mjs} +1 -1
  17. package/dist/chunks/{chunk-5FUZZQ4R-DsZnJYxM.mjs → chunk-5FUZZQ4R-Dr4NE8rh.mjs} +663 -663
  18. package/dist/chunks/chunk-5PVQY5BW-BP7ENjg7.mjs +1122 -0
  19. package/dist/chunks/{chunk-67CJDMHE-m0UKdcSH.mjs → chunk-67CJDMHE-Dbl-PjEf.mjs} +1 -1
  20. package/dist/chunks/{chunk-7N4EOEYR-DKNajFZd.mjs → chunk-7N4EOEYR-p-g3cKuX.mjs} +1 -1
  21. package/dist/chunks/{chunk-AA7GKIK3-BeLhNzKa.mjs → chunk-AA7GKIK3-Dt0Kr5Va.mjs} +1 -1
  22. package/dist/chunks/{chunk-BSJP7CBP-CJExmx8a.mjs → chunk-BSJP7CBP-DGU2WHwh.mjs} +1 -1
  23. package/dist/chunks/{chunk-CIAEETIT-CTikoJ19.mjs → chunk-CIAEETIT-BQ4crY5r.mjs} +1 -1
  24. package/dist/chunks/{chunk-EDXVE4YY-DjInnnwb.mjs → chunk-EDXVE4YY-B9_aGwkV.mjs} +2 -2
  25. package/dist/chunks/{chunk-ENJZ2VHE-CIl5FRDA.mjs → chunk-ENJZ2VHE-23pY8ft5.mjs} +243 -243
  26. package/dist/chunks/{chunk-FMBD7UC4-DjV0W7UE.mjs → chunk-FMBD7UC4-D_RQlBGX.mjs} +1 -1
  27. package/dist/chunks/{chunk-FOC6F5B3-LmHCCWYY.mjs → chunk-FOC6F5B3-CJfr-iwx.mjs} +1 -1
  28. package/dist/chunks/{chunk-ICPOFSXX-BHZIN46A.mjs → chunk-ICPOFSXX-BOvOTlG6.mjs} +2 -2
  29. package/dist/chunks/{chunk-K5T4RW27-BPZ6fFnW.mjs → chunk-K5T4RW27-CHSI0vpp.mjs} +572 -570
  30. package/dist/chunks/{chunk-KGLVRYIC-S1OQdW76.mjs → chunk-KGLVRYIC-ngXT4XVA.mjs} +1 -1
  31. package/dist/chunks/{chunk-LIHQZDEY-CjtyJlI6.mjs → chunk-LIHQZDEY-CnP7bym1.mjs} +1 -1
  32. package/dist/chunks/{chunk-ORNJ4GCN-CdO0hAge.mjs → chunk-ORNJ4GCN-BPaghT45.mjs} +1 -1
  33. package/dist/chunks/{chunk-OYMX7WX6-ApX8eV4o.mjs → chunk-OYMX7WX6-CKjTvqTg.mjs} +172 -172
  34. package/dist/chunks/{chunk-QZHKN3VN-BGFuA6-k.mjs → chunk-QZHKN3VN-uW1N2UWF.mjs} +1 -1
  35. package/dist/chunks/{chunk-U2HBQHQK-B88ZUOTL.mjs → chunk-U2HBQHQK-DiQOEtQH.mjs} +65 -65
  36. package/dist/chunks/{chunk-X2U36JSP-1VS5TyCr.mjs → chunk-X2U36JSP-Cznp5Jm-.mjs} +2 -2
  37. package/dist/chunks/{chunk-XPW4576I-BMupdrvo.mjs → chunk-XPW4576I-W5t_agZI.mjs} +1 -1
  38. package/dist/chunks/{chunk-YZCP3GAM-BQ7eEsm2.mjs → chunk-YZCP3GAM-BV02tG_z.mjs} +3 -3
  39. package/dist/chunks/{chunk-ZZ45TVLE-D1xks9zd.mjs → chunk-ZZ45TVLE-D28EyJ6R.mjs} +7 -7
  40. package/dist/chunks/classDiagram-6PBFFD2Q-DXsClapu.mjs +30 -0
  41. package/dist/chunks/classDiagram-v2-HSJHXN6E-B6TlQ_PM.mjs +30 -0
  42. package/dist/chunks/{clone-Ckjt1LtE.mjs → clone-CUNvBGto.mjs} +1 -1
  43. package/dist/chunks/{constants-DtfShkXT.mjs → constants-lOEJu8bC.mjs} +4 -2
  44. package/dist/chunks/{cose-bilkent-S5V4N54A-Bpcs2jA_.mjs → cose-bilkent-S5V4N54A-D-Xgf_Xn.mjs} +2 -2
  45. package/dist/chunks/{cpp-BdjvAny0.mjs → cpp-DaTV1RSp.mjs} +2 -2
  46. package/dist/chunks/{dagre-KV5264BT-DUD9ikgN.mjs → dagre-KV5264BT-BB3SAlfA.mjs} +15 -15
  47. package/dist/chunks/{dagre-CGNbYTKq.mjs → dagre-dysBn-m8.mjs} +499 -552
  48. package/dist/chunks/diagram-5BDNPKRD-B1410bPG.mjs +112 -0
  49. package/dist/chunks/{diagram-G4DWMVQ6-CuS0-h95.mjs → diagram-G4DWMVQ6-CdhBBETB.mjs} +82 -82
  50. package/dist/chunks/{diagram-MMDJMWI5-C-AEApYz.mjs → diagram-MMDJMWI5-B3HWfHe1.mjs} +48 -48
  51. package/dist/chunks/{diagram-TYMM5635-CiwAJVMq.mjs → diagram-TYMM5635-D0JzRYCN.mjs} +51 -51
  52. package/dist/chunks/{erDiagram-SMLLAGMA-DeH5yck2.mjs → erDiagram-SMLLAGMA-DfIG0QBk.mjs} +142 -142
  53. package/dist/chunks/{flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs → flowDiagram-DWJPFMVM-BOL8JsQX.mjs} +176 -176
  54. package/dist/chunks/{ganttDiagram-T4ZO3ILL-K-divBg_.mjs → ganttDiagram-T4ZO3ILL-CiUr_YRw.mjs} +230 -230
  55. package/dist/chunks/gitGraph-7Q5UKJZL-B3aq166w.mjs +3 -0
  56. package/dist/chunks/{gitGraphDiagram-UUTBAWPF-UytPZv72.mjs → gitGraphDiagram-UUTBAWPF-CtNkTTWO.mjs} +218 -218
  57. package/dist/chunks/{graphlib-Cye9EPNq.mjs → graphlib-BXNPwKuI.mjs} +48 -46
  58. package/dist/chunks/{graphql-BSnqmqgO.mjs → graphql-DNumR9m-.mjs} +2 -2
  59. package/dist/chunks/{html-BLNeZvnp.mjs → html-CanPsi1Y.mjs} +2 -2
  60. package/dist/chunks/{i18next-loader-D32EUWLr.mjs → i18next-loader-CIXsptng.mjs} +2 -2
  61. package/dist/chunks/info-OMHHGYJF-SX91-Wub.mjs +3 -0
  62. package/dist/chunks/{infoDiagram-42DDH7IO-DuYnDbF3.mjs → infoDiagram-42DDH7IO-CD7nVBvi.mjs} +14 -14
  63. package/dist/chunks/isArrayLikeObject-DzUNFfIK.mjs +578 -0
  64. package/dist/chunks/isEmpty-D8B0aRsG.mjs +35 -0
  65. package/dist/chunks/{ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs → ishikawaDiagram-UXIWVN3A-BOaC9qJs.mjs} +81 -81
  66. package/dist/chunks/{journeyDiagram-VCZTEJTY-CD25C4_n.mjs → journeyDiagram-VCZTEJTY-DKf55ZdJ.mjs} +6 -6
  67. package/dist/chunks/{kanban-definition-6JOO6SKY-CTCT6N_p.mjs → kanban-definition-6JOO6SKY-D2CrAXqB.mjs} +11 -11
  68. package/dist/chunks/{latex-24n3TcOR.mjs → latex-DY1HNB4U.mjs} +1 -1
  69. package/dist/chunks/{lightweight-i18n-DpkvRXEd.mjs → lightweight-i18n-DTYoSr_o.mjs} +2 -0
  70. package/dist/chunks/line-CuvDsrkE.mjs +34 -0
  71. package/dist/chunks/{linear-BRCpMvtr.mjs → linear-JRIqMpGQ.mjs} +3 -3
  72. package/dist/chunks/{lua-DV0fuZWx.mjs → lua-COOfzihE.mjs} +1 -1
  73. package/dist/chunks/{mermaid-parser.core-CA3DKkuk.mjs → mermaid-parser.core-BhpZC2lA.mjs} +10 -10
  74. package/dist/chunks/mermaid.core-C40gcVfv.mjs +977 -0
  75. package/dist/chunks/{messages-DtZ9U9g72.mjs → messages--G2XLc8E.mjs} +8 -5
  76. package/dist/{messages-CFUBJfnf.mjs → chunks/messages-3kHDtQLN.mjs} +8 -5
  77. package/dist/{messages-0lOPMv8u.mjs → chunks/messages-4Y8dL_1j2.mjs} +8 -5
  78. package/dist/{messages-DQ1icG7L.mjs → chunks/messages-9Nx7kteY2.mjs} +8 -5
  79. package/dist/{messages-aoO_TtoE2.mjs → chunks/messages-B29Wm2zT.mjs} +9 -6
  80. package/dist/chunks/{messages-oPV2oMxM.mjs → messages-B9mzGzZ_.mjs} +11 -8
  81. package/dist/{messages-Di3-WVzq.mjs → chunks/messages-BCfsOOlp.mjs} +8 -5
  82. package/dist/{messages-CA6J_QoC.mjs → chunks/messages-BJTwY1tq.mjs} +7 -4
  83. package/dist/chunks/{messages-Cxy_E2IS.mjs → messages-BK6AwU6C.mjs} +8 -5
  84. package/dist/chunks/{messages-DoPdy75l.mjs → messages-BPxMr5HC.mjs} +10 -7
  85. package/dist/chunks/{messages-Ci7UXRVI2.mjs → messages-BS9zk4mI2.mjs} +9 -6
  86. package/dist/chunks/{messages-BouFtpfO.mjs → messages-BSXBVdsp.mjs} +7 -4
  87. package/dist/{messages-DqDlcEPn.mjs → chunks/messages-BSyO1EWC.mjs} +9 -6
  88. package/dist/{messages-DzknMM7W.mjs → chunks/messages-BUQTXTew2.mjs} +8 -5
  89. package/dist/chunks/{messages-BJNFCDv42.mjs → messages-Bhn5V9FQ2.mjs} +8 -5
  90. package/dist/chunks/{messages-zWqsggJh.mjs → messages-Bi629xgG.mjs} +8 -5
  91. package/dist/{messages-CR4gHjd82.mjs → chunks/messages-BimpUMRx.mjs} +6 -3
  92. package/dist/{messages-BCMFYqKc2.mjs → chunks/messages-BkaUIuz-2.mjs} +8 -5
  93. package/dist/{messages-5wuR90qS.mjs → chunks/messages-BmC2yhsC2.mjs} +8 -5
  94. package/dist/chunks/{messages-HzH9_QH8.mjs → messages-Bo7Cbk_O.mjs} +8 -5
  95. package/dist/chunks/{messages-BcHZf9o-.mjs → messages-Bq7fo8X0.mjs} +16 -13
  96. package/dist/{messages-bh8BiOee2.mjs → chunks/messages-BsqBho4T.mjs} +9 -6
  97. package/dist/{messages-C-8qb9sf2.mjs → chunks/messages-C7E8C3-S.mjs} +8 -5
  98. package/dist/chunks/{messages-DRJxSTqs.mjs → messages-C9QhLDA2.mjs} +9 -6
  99. package/dist/chunks/{messages-DSbI0vJf.mjs → messages-C9UIaF6N.mjs} +8 -5
  100. package/dist/chunks/{messages-dpXwA3Sz.mjs → messages-CAX3qQi0.mjs} +8 -5
  101. package/dist/chunks/{messages-DpydMd36.mjs → messages-CEJtxBxU.mjs} +8 -5
  102. package/dist/chunks/{messages-DkP3Jf4F.mjs → messages-CF0SW1zy.mjs} +7 -4
  103. package/dist/{messages-B_UKuqrH.mjs → chunks/messages-CIre8L_r.mjs} +8 -5
  104. package/dist/{messages-DT7dwzEe.mjs → chunks/messages-CJ8IkF1P.mjs} +8 -5
  105. package/dist/{messages-BORkMoil2.mjs → chunks/messages-CKP6aUXN2.mjs} +7 -4
  106. package/dist/chunks/{messages-DY8zPIZW.mjs → messages-CMMq-u7e.mjs} +9 -6
  107. package/dist/chunks/{messages-CTdSIOAc.mjs → messages-CR5irc8q.mjs} +7 -4
  108. package/dist/chunks/{messages-ZhHLC6dk.mjs → messages-CRH0RWBs.mjs} +8 -5
  109. package/dist/chunks/{messages-C7sBaZOO2.mjs → messages-CWm_2RvD2.mjs} +8 -5
  110. package/dist/{messages-CLUBh7O_.mjs → chunks/messages-CY76MvbX2.mjs} +8 -5
  111. package/dist/{messages-PyOr_YgV.mjs → chunks/messages-CpLq4ZZg.mjs} +6 -3
  112. package/dist/chunks/{messages-CGLTjtRv2.mjs → messages-CrpOkt8c2.mjs} +8 -5
  113. package/dist/{messages-DwiykEgr2.mjs → chunks/messages-D3fu2FHB2.mjs} +8 -5
  114. package/dist/{messages-hya8YLMj.mjs → chunks/messages-D6_I0L06.mjs} +8 -5
  115. package/dist/chunks/{messages-oXBbHW9A.mjs → messages-DHzT8CZv.mjs} +8 -5
  116. package/dist/chunks/{messages-ChayV9WY2.mjs → messages-DIVQmVS92.mjs} +8 -5
  117. package/dist/{messages-BrYeJsSE2.mjs → chunks/messages-DJYT0upW.mjs} +9 -6
  118. package/dist/chunks/{messages-THR8q8bJ.mjs → messages-DPcc6xp-.mjs} +16 -13
  119. package/dist/chunks/{messages-CDSyoUft.mjs → messages-Dass0QsQ.mjs} +6 -3
  120. package/dist/chunks/{messages-DVvrZRyZ.mjs → messages-DcUYfD6m.mjs} +8 -5
  121. package/dist/chunks/{messages-BNy4e7Xl.mjs → messages-DfLcy0CY.mjs} +8 -5
  122. package/dist/chunks/{messages-H6vLy8wJ.mjs → messages-DhoZXmg_.mjs} +8 -5
  123. package/dist/{messages-ZHgPRUj02.mjs → chunks/messages-DiQkvwE32.mjs} +8 -5
  124. package/dist/{messages-BKXjO3NH.mjs → chunks/messages-DmvWmURo.mjs} +8 -5
  125. package/dist/chunks/{messages-DjSuq0-y2.mjs → messages-Dobxrshu2.mjs} +8 -5
  126. package/dist/{messages-DPFuzIdF2.mjs → chunks/messages-DsMIxm6I2.mjs} +8 -5
  127. package/dist/{messages-D6RYu9JW2.mjs → chunks/messages-DtssWM8x2.mjs} +8 -5
  128. package/dist/{messages-gZEhkRrR2.mjs → chunks/messages-E1tsNNG5.mjs} +8 -5
  129. package/dist/chunks/{messages-D9uWAWjW.mjs → messages-PFfYbqlm.mjs} +9 -6
  130. package/dist/{messages-DCdP2ujL.mjs → chunks/messages-bIzBNzdr2.mjs} +6 -3
  131. package/dist/{messages-WsUHzXMu2.mjs → chunks/messages-dGYum7sj2.mjs} +8 -5
  132. package/dist/chunks/{messages-C-EBhOHE.mjs → messages-kKXlI5xZ.mjs} +8 -5
  133. package/dist/chunks/{messages-Cfbmwdep2.mjs → messages-mo5OrbVj2.mjs} +8 -5
  134. package/dist/{messages-9L4qqCKh2.mjs → chunks/messages-nAdoEqRi.mjs} +8 -5
  135. package/dist/chunks/{messages-Bop7vrhU.mjs → messages-rNLuCrAb.mjs} +8 -5
  136. package/dist/chunks/{messages-yGedmr61.mjs → messages-v26RM5PC.mjs} +8 -5
  137. package/dist/{messages-Cd5CW5Tt.mjs → chunks/messages-x0kzc2oy.mjs} +9 -6
  138. package/dist/{messages-DB4UKN8D.mjs → chunks/messages-x6y6csd52.mjs} +6 -3
  139. package/dist/chunks/{messages-Br6bE1FD2.mjs → messages-x_eMclsl2.mjs} +9 -6
  140. package/dist/{messages-CVMngZNA.mjs → chunks/messages-z5pham9o.mjs} +10 -7
  141. package/dist/chunks/{messages-D9syZVGi2.mjs → messages-zcqQ8x232.mjs} +6 -3
  142. package/dist/chunks/{micromark-extension-math-BbkUb36G.mjs → micromark-extension-math-D-s54WWf.mjs} +1 -1
  143. package/dist/chunks/{mindmap-definition-QFDTVHPH-hNnyBkEP.mjs → mindmap-definition-QFDTVHPH-C-0fwUUS.mjs} +13 -13
  144. package/dist/chunks/{ordinal-B-kolV-i.mjs → ordinal-fyJMP-lj.mjs} +1 -1
  145. package/dist/chunks/packet-4T2RLAQJ-suhU85JN.mjs +3 -0
  146. package/dist/chunks/{php-DmXKyPwJ.mjs → php-DA-SOiqC.mjs} +6 -6
  147. package/dist/chunks/pie-ZZUOXDRM-DF5e16CP.mjs +3 -0
  148. package/dist/chunks/pieDiagram-DEJITSTG-BPyqheXv.mjs +179 -0
  149. package/dist/chunks/{quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs → quadrantDiagram-34T5L4WZ-kOZ1zIXB.mjs} +4 -4
  150. package/dist/chunks/radar-PYXPWWZC-DgzodpRv.mjs +3 -0
  151. package/dist/chunks/{requirementDiagram-MS252O5E-DjWKB42c.mjs → requirementDiagram-MS252O5E-C8Zkq6Lq.mjs} +64 -64
  152. package/dist/chunks/{ruby-DdOo03Kg.mjs → ruby-HDUjp8gK.mjs} +11 -11
  153. package/dist/chunks/{sankeyDiagram-XADWPNL6-BIN2evSB.mjs → sankeyDiagram-XADWPNL6-B0FhkAL9.mjs} +3 -3
  154. package/dist/chunks/{sequenceDiagram-FGHM5R23-CQz2lMoS.mjs → sequenceDiagram-FGHM5R23-Dv2H5Lbc.mjs} +447 -447
  155. package/dist/chunks/stateDiagram-FHFEXIEX-D1vcO7H_.mjs +218 -0
  156. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-AoHzFiaI.mjs +28 -0
  157. package/dist/chunks/{timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs → timeline-definition-GMOUNBTQ-DJmJ0TPa.mjs} +195 -195
  158. package/dist/chunks/{tools-DMSi-3RW.mjs → tools-FmtWXVgt.mjs} +109 -142
  159. package/dist/chunks/treeView-SZITEDCU-C1mc9PWf.mjs +3 -0
  160. package/dist/chunks/treemap-W4RFUUIX-ClV9Slyp.mjs +3 -0
  161. package/dist/chunks/{vennDiagram-DHZGUBPP-B0DmLQqe.mjs → vennDiagram-DHZGUBPP-Dx1rMP24.mjs} +76 -76
  162. package/dist/chunks/wardley-RL74JXVD-Dj7t7jHR.mjs +3 -0
  163. package/dist/chunks/{wardleyDiagram-NUSXRM2D-CzoKesUw.mjs → wardleyDiagram-NUSXRM2D-Dnm6lvMn.mjs} +15 -15
  164. package/dist/chunks/{xml-g8kXXALs.mjs → xml-Dq1lpp8G.mjs} +1 -1
  165. package/dist/chunks/{xychartDiagram-5P7HB3ND-CixwR8r2.mjs → xychartDiagram-5P7HB3ND-C9wFc2e9.mjs} +120 -120
  166. package/dist/full.mjs +3 -3
  167. package/dist/locales.mjs +69 -67
  168. package/dist/markdown.mjs +1 -1
  169. package/dist/{chunks/messages-CPFB2_m-2.mjs → messages--zgIPYtb.mjs} +6 -3
  170. package/dist/{messages-D8dO6OMN.mjs → messages-4jULpVvw.mjs} +16 -13
  171. package/dist/{chunks/messages-CNaaqQVz.mjs → messages-AbwSlRf_.mjs} +10 -7
  172. package/dist/{chunks/messages-AD17iDBx.mjs → messages-B-dl7Pwb2.mjs} +9 -6
  173. package/dist/{chunks/messages-CGFlOwst.mjs → messages-B3rCRhb1.mjs} +8 -5
  174. package/dist/{chunks/messages-CCEgR9GN2.mjs → messages-B73L8nKc2.mjs} +8 -5
  175. package/dist/{chunks/messages-wYQksm10.mjs → messages-BAjsD2Vm2.mjs} +8 -5
  176. package/dist/{messages-C34dTwF72.mjs → messages-BBodSb5B2.mjs} +8 -5
  177. package/dist/{chunks/messages-O6FOfUgF.mjs → messages-BTpn6H9x2.mjs} +6 -3
  178. package/dist/{chunks/messages-Cql2ozf_2.mjs → messages-BWb0GjTj2.mjs} +8 -5
  179. package/dist/{messages-ELvF3qMl2.mjs → messages-BbCgnri12.mjs} +8 -5
  180. package/dist/{chunks/messages-OSP4Hj5o.mjs → messages-Bfon_Y3q.mjs} +9 -6
  181. package/dist/{chunks/messages-fbL5y58u2.mjs → messages-BhOtow9J2.mjs} +8 -5
  182. package/dist/{messages-6eX0fWGR2.mjs → messages-BoB7m0uu2.mjs} +9 -6
  183. package/dist/{chunks/messages-C3X7dv3f.mjs → messages-BsOZPjeg.mjs} +8 -5
  184. package/dist/{chunks/messages-vDgsEqQW2.mjs → messages-BuzKUYPV.mjs} +8 -5
  185. package/dist/{chunks/messages-BjyYZeBm2.mjs → messages-BzOKMdMQ.mjs} +6 -3
  186. package/dist/{messages-CxZarWTm2.mjs → messages-C2H3PeQW2.mjs} +8 -5
  187. package/dist/{messages-D0eT_eWA.mjs → messages-C5KNzSTk.mjs} +8 -5
  188. package/dist/{messages-CNGwdIEz.mjs → messages-CIDYjE6l.mjs} +8 -5
  189. package/dist/{messages-BPw_x-6H.mjs → messages-CJmyF5ye.mjs} +7 -4
  190. package/dist/{messages-VrQw3tQ62.mjs → messages-CTwiYb2a2.mjs} +6 -3
  191. package/dist/{messages-BM2kx9Td.mjs → messages-CUHoJaDO.mjs} +8 -5
  192. package/dist/{chunks/messages-RiqdVwuN2.mjs → messages-CVeuqUjQ2.mjs} +8 -5
  193. package/dist/{messages-KVerxvZC.mjs → messages-CW75b4sz.mjs} +8 -5
  194. package/dist/{messages-DA4T9WBe.mjs → messages-CXd7YeWV.mjs} +8 -5
  195. package/dist/{chunks/messages-CXVWb9js.mjs → messages-CjlYkunD.mjs} +8 -5
  196. package/dist/{chunks/messages-B8hICx3L.mjs → messages-CrGx64yd.mjs} +9 -6
  197. package/dist/{chunks/messages-C7Pjof0d2.mjs → messages-Ct0jbgHd.mjs} +8 -5
  198. package/dist/{messages-C67YUZ9-.mjs → messages-CtKrCYD1.mjs} +8 -5
  199. package/dist/{chunks/messages-B03yUEra2.mjs → messages-Cu2eLjfJ.mjs} +8 -5
  200. package/dist/{messages-BwttyHDI2.mjs → messages-CvwQ-fK_2.mjs} +8 -5
  201. package/dist/{chunks/messages-zQOpKjl3.mjs → messages-Cy6UYN9b.mjs} +6 -3
  202. package/dist/{messages-CrjQ2Op0.mjs → messages-D01vnfA9.mjs} +8 -5
  203. package/dist/{messages-C6yKu_PJ.mjs → messages-D0BAV45W.mjs} +8 -5
  204. package/dist/{messages-DxEiqa-B.mjs → messages-D5LGpdga.mjs} +9 -6
  205. package/dist/{messages-Dl0bfeA-.mjs → messages-DATK4ftv.mjs} +9 -6
  206. package/dist/{chunks/messages-D_kZN9rB.mjs → messages-DEl77Urv2.mjs} +9 -6
  207. package/dist/{messages-BRY51SEw2.mjs → messages-DHNjM2nv2.mjs} +6 -3
  208. package/dist/{messages-OOiDDmVw.mjs → messages-DMW8b_sO.mjs} +8 -5
  209. package/dist/{messages-tb1FD_ge.mjs → messages-DNmgANKr.mjs} +7 -4
  210. package/dist/{messages-Do3mHd9U.mjs → messages-DQaa3cEM.mjs} +9 -6
  211. package/dist/{chunks/messages-VtfKWZ2S.mjs → messages-DSlD4bV9.mjs} +8 -5
  212. package/dist/{messages-Dxr1BBvo.mjs → messages-DTzbkXFt.mjs} +8 -5
  213. package/dist/{chunks/messages-SP659Sal2.mjs → messages-DbZihxtV.mjs} +8 -5
  214. package/dist/{messages-Cv1PSaNk.mjs → messages-DeE8fyKQ.mjs} +8 -5
  215. package/dist/{messages-B4zPxKl62.mjs → messages-Dg-TpO2S2.mjs} +8 -5
  216. package/dist/{messages-CLZoy5fQ.mjs → messages-DgP82LzF.mjs} +7 -4
  217. package/dist/{chunks/messages-C85zv_7x.mjs → messages-Dh3Vt7WC.mjs} +7 -4
  218. package/dist/{chunks/messages-bFEdH3lv.mjs → messages-DiVVyZD22.mjs} +9 -6
  219. package/dist/{messages-BSNsrZVN.mjs → messages-DpRnGjoe.mjs} +10 -7
  220. package/dist/{messages-Dx5n6MLQ2.mjs → messages-DqZmrFaa2.mjs} +8 -5
  221. package/dist/{messages-D8U5D391.mjs → messages-Dra9Fz5Q.mjs} +11 -8
  222. package/dist/{chunks/messages-CpXvyGWv2.mjs → messages-DuPBRgEF2.mjs} +7 -4
  223. package/dist/{messages-JVJdC0Er2.mjs → messages-DuxEyAY-2.mjs} +9 -6
  224. package/dist/{chunks/messages-BGmvvtg_.mjs → messages-FmJD6lHR2.mjs} +8 -5
  225. package/dist/{messages-BLW2GX7J2.mjs → messages-ONielGl92.mjs} +8 -5
  226. package/dist/{chunks/messages-B2dU00Z3.mjs → messages-RzgUqCGb2.mjs} +8 -5
  227. package/dist/{chunks/messages-YbckahVx2.mjs → messages-U22AKGKs.mjs} +8 -5
  228. package/dist/{chunks/messages-CGPxUESo.mjs → messages-XufeeRfO.mjs} +8 -5
  229. package/dist/{messages-DUYxMxrQ2.mjs → messages-fprUm7SO2.mjs} +8 -5
  230. package/dist/{chunks/messages-BCifzMVO2.mjs → messages-gFNdz3Tn2.mjs} +8 -5
  231. package/dist/{messages-DfqM_XvD.mjs → messages-h_n5GBm6.mjs} +16 -13
  232. package/dist/{chunks/messages-VlEyFUxF2.mjs → messages-oOogIpsL2.mjs} +8 -5
  233. package/dist/{messages-D_V0kHD7.mjs → messages-otwg3KcK.mjs} +8 -5
  234. package/dist/{messages-BLfK27kX.mjs → messages-rDDoBMWb.mjs} +8 -5
  235. package/dist/{chunks/messages-BBe45sPH.mjs → messages-trQPxZIu.mjs} +8 -5
  236. package/dist/react.mjs +2 -2
  237. package/dist/tools.mjs +2 -2
  238. package/dist/vendor.LICENSE.txt +64 -64
  239. package/package.json +3 -2
  240. package/src/blok.ts +55 -0
  241. package/src/components/block/index.ts +2 -2
  242. package/src/components/block-tunes/block-tune-delete.ts +1 -0
  243. package/src/components/i18n/locales/am/messages.json +8 -5
  244. package/src/components/i18n/locales/ar/messages.json +8 -5
  245. package/src/components/i18n/locales/az/messages.json +8 -5
  246. package/src/components/i18n/locales/bg/messages.json +7 -4
  247. package/src/components/i18n/locales/bn/messages.json +8 -5
  248. package/src/components/i18n/locales/bs/messages.json +10 -7
  249. package/src/components/i18n/locales/cs/messages.json +9 -6
  250. package/src/components/i18n/locales/da/messages.json +9 -6
  251. package/src/components/i18n/locales/de/messages.json +9 -6
  252. package/src/components/i18n/locales/dv/messages.json +8 -5
  253. package/src/components/i18n/locales/el/messages.json +8 -5
  254. package/src/components/i18n/locales/en/messages.json +2 -0
  255. package/src/components/i18n/locales/es/messages.json +9 -6
  256. package/src/components/i18n/locales/et/messages.json +7 -4
  257. package/src/components/i18n/locales/fa/messages.json +8 -5
  258. package/src/components/i18n/locales/fi/messages.json +8 -5
  259. package/src/components/i18n/locales/fil/messages.json +16 -13
  260. package/src/components/i18n/locales/fr/messages.json +8 -5
  261. package/src/components/i18n/locales/gu/messages.json +8 -5
  262. package/src/components/i18n/locales/he/messages.json +8 -5
  263. package/src/components/i18n/locales/hi/messages.json +8 -5
  264. package/src/components/i18n/locales/hr/messages.json +10 -7
  265. package/src/components/i18n/locales/hu/messages.json +9 -6
  266. package/src/components/i18n/locales/hy/messages.json +16 -13
  267. package/src/components/i18n/locales/id/messages.json +7 -4
  268. package/src/components/i18n/locales/it/messages.json +11 -8
  269. package/src/components/i18n/locales/ja/messages.json +8 -5
  270. package/src/components/i18n/locales/ka/messages.json +8 -5
  271. package/src/components/i18n/locales/km/messages.json +6 -3
  272. package/src/components/i18n/locales/kn/messages.json +8 -5
  273. package/src/components/i18n/locales/ko/messages.json +8 -5
  274. package/src/components/i18n/locales/ku/messages.json +8 -5
  275. package/src/components/i18n/locales/lo/messages.json +6 -3
  276. package/src/components/i18n/locales/lt/messages.json +8 -5
  277. package/src/components/i18n/locales/lv/messages.json +8 -5
  278. package/src/components/i18n/locales/mk/messages.json +8 -5
  279. package/src/components/i18n/locales/ml/messages.json +8 -5
  280. package/src/components/i18n/locales/mn/messages.json +8 -5
  281. package/src/components/i18n/locales/mr/messages.json +8 -5
  282. package/src/components/i18n/locales/ms/messages.json +6 -3
  283. package/src/components/i18n/locales/my/messages.json +8 -5
  284. package/src/components/i18n/locales/ne/messages.json +8 -5
  285. package/src/components/i18n/locales/nl/messages.json +8 -5
  286. package/src/components/i18n/locales/no/messages.json +9 -6
  287. package/src/components/i18n/locales/pa/messages.json +8 -5
  288. package/src/components/i18n/locales/pl/messages.json +9 -6
  289. package/src/components/i18n/locales/ps/messages.json +8 -5
  290. package/src/components/i18n/locales/pt/messages.json +8 -5
  291. package/src/components/i18n/locales/ro/messages.json +8 -5
  292. package/src/components/i18n/locales/ru/messages.json +7 -4
  293. package/src/components/i18n/locales/sd/messages.json +8 -5
  294. package/src/components/i18n/locales/si/messages.json +8 -5
  295. package/src/components/i18n/locales/sk/messages.json +9 -6
  296. package/src/components/i18n/locales/sl/messages.json +9 -6
  297. package/src/components/i18n/locales/sq/messages.json +9 -6
  298. package/src/components/i18n/locales/sr/messages.json +8 -5
  299. package/src/components/i18n/locales/sv/messages.json +8 -5
  300. package/src/components/i18n/locales/sw/messages.json +6 -3
  301. package/src/components/i18n/locales/ta/messages.json +8 -5
  302. package/src/components/i18n/locales/te/messages.json +8 -5
  303. package/src/components/i18n/locales/th/messages.json +6 -3
  304. package/src/components/i18n/locales/tr/messages.json +8 -5
  305. package/src/components/i18n/locales/ug/messages.json +8 -5
  306. package/src/components/i18n/locales/uk/messages.json +7 -4
  307. package/src/components/i18n/locales/ur/messages.json +8 -5
  308. package/src/components/i18n/locales/vi/messages.json +6 -3
  309. package/src/components/i18n/locales/yi/messages.json +8 -5
  310. package/src/components/i18n/locales/zh/messages.json +8 -5
  311. package/src/components/inline-tools/inline-tool-code.ts +0 -19
  312. package/src/components/inline-tools/inline-tool-italic.ts +3 -20
  313. package/src/components/inline-tools/inline-tool-strikethrough.ts +0 -19
  314. package/src/components/inline-tools/inline-tool-underline.ts +0 -19
  315. package/src/components/inline-tools/services/bold-normalization-pass.ts +1 -29
  316. package/src/components/modules/blockEvents/composers/keyboardNavigation.ts +11 -5
  317. package/src/components/modules/blockEvents/composers/markdownShortcuts.ts +105 -2
  318. package/src/components/modules/blockEvents/constants.ts +24 -0
  319. package/src/components/modules/blockManager/blockManager.ts +1 -1
  320. package/src/components/modules/blockManager/types.ts +1 -1
  321. package/src/components/modules/toolbar/blockSettings.ts +89 -11
  322. package/src/components/modules/ui.ts +1 -0
  323. package/src/components/modules/uiControllers/controllers/keyboard.ts +55 -5
  324. package/src/components/modules/yjs/document-store.ts +1 -1
  325. package/src/components/modules/yjs/index.ts +1 -1
  326. package/src/components/utils/popover/popover-abstract.ts +9 -0
  327. package/src/styles/main.css +3 -0
  328. package/src/tools/code/index.ts +1 -0
  329. package/src/tools/database/database-view.ts +269 -0
  330. package/src/tools/database/types.ts +16 -0
  331. package/src/tools/quote/index.ts +1 -0
  332. package/types/configs/blok-config.d.ts +13 -3
  333. package/types/configs/index.d.ts +1 -0
  334. package/types/configs/user-info.d.ts +14 -0
  335. package/types/data-formats/output-data.d.ts +2 -2
  336. package/types/index.d.ts +1 -0
  337. package/dist/chunks/_basePickBy-DISiGhsr.mjs +0 -410
  338. package/dist/chunks/_baseUniq-gAuHRtRF.mjs +0 -1045
  339. package/dist/chunks/_getTag-Aj56Wgor.mjs +0 -26
  340. package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +0 -3
  341. package/dist/chunks/chunk-5PVQY5BW-CORl9dnu.mjs +0 -1692
  342. package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +0 -30
  343. package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +0 -30
  344. package/dist/chunks/diagram-5BDNPKRD-CZGfTYEe.mjs +0 -112
  345. package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +0 -3
  346. package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +0 -3
  347. package/dist/chunks/line-Dct5pMmw.mjs +0 -34
  348. package/dist/chunks/mermaid.core-CA8nc1sZ.mjs +0 -989
  349. package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +0 -3
  350. package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +0 -3
  351. package/dist/chunks/pieDiagram-DEJITSTG-Gw-fsc6U.mjs +0 -179
  352. package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +0 -3
  353. package/dist/chunks/stateDiagram-FHFEXIEX-BIBFsF65.mjs +0 -218
  354. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +0 -28
  355. package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +0 -3
  356. package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +0 -3
  357. package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +0 -3
  358. /package/dist/chunks/{am-BxlkYGsI.mjs → am-Bbd7cTHS.mjs} +0 -0
  359. /package/dist/chunks/{ar-9vlpr9V8.mjs → ar-Bo71sCQE.mjs} +0 -0
  360. /package/dist/chunks/{array-BsrkCVSZ.mjs → array-DbiMs_0t.mjs} +0 -0
  361. /package/dist/chunks/{az-ON63W_FP.mjs → az-BnNrO_xK.mjs} +0 -0
  362. /package/dist/chunks/{bg-CtXWTP5w.mjs → bg-CMd2n-OG.mjs} +0 -0
  363. /package/dist/chunks/{bn-BERvhXM4.mjs → bn-B3lorfXA.mjs} +0 -0
  364. /package/dist/chunks/{bs-CBg8NVPG.mjs → bs-_zM8QBsA.mjs} +0 -0
  365. /package/dist/chunks/{c-C6JXJf5K.mjs → c-DmKJe6GM.mjs} +0 -0
  366. /package/dist/chunks/{core-Bm6DWt7D.mjs → core-C942GvJO.mjs} +0 -0
  367. /package/dist/chunks/{cs-DeQddxS7.mjs → cs-nodpmLBf.mjs} +0 -0
  368. /package/dist/chunks/{csharp-YHxeHpeH.mjs → csharp-Drv96dbi.mjs} +0 -0
  369. /package/dist/chunks/{css-DdLevFaX.mjs → css-82tNAoU6.mjs} +0 -0
  370. /package/dist/chunks/{cytoscape.esm-BvD8wo00.mjs → cytoscape.esm-DSb9a7HE.mjs} +0 -0
  371. /package/dist/chunks/{da-DyTo-ec_.mjs → da-DwzgQcXQ.mjs} +0 -0
  372. /package/dist/chunks/{dart-DrPWqfcC.mjs → dart-DE9j8McI.mjs} +0 -0
  373. /package/dist/chunks/{de-Cu7545m1.mjs → de-BvWPiNt6.mjs} +0 -0
  374. /package/dist/chunks/{defaultLocale-ChuSeAxU.mjs → defaultLocale-yTyMJ3IT.mjs} +0 -0
  375. /package/dist/chunks/{dist-Ctq-pyfb.mjs → dist-X14EnMrO.mjs} +0 -0
  376. /package/dist/chunks/{dockerfile-C68ALcaN.mjs → dockerfile-D9DFksUy.mjs} +0 -0
  377. /package/dist/chunks/{el-oiubLRBq.mjs → el-B_D7wUrZ.mjs} +0 -0
  378. /package/dist/chunks/{engine-javascript-CJpnSvzf.mjs → engine-javascript-Dd6ViPCH.mjs} +0 -0
  379. /package/dist/chunks/{es-DZUC6Klv.mjs → es-Bn_ZFyW9.mjs} +0 -0
  380. /package/dist/chunks/{et-CDeklAog.mjs → et-CUcULjoh.mjs} +0 -0
  381. /package/dist/chunks/{fa-Cafp7_Li.mjs → fa-BRhCTsOy.mjs} +0 -0
  382. /package/dist/chunks/{fi-BD_V_aVW.mjs → fi-BEvyU9n6.mjs} +0 -0
  383. /package/dist/chunks/{fil-Crsfbtx4.mjs → fil-Dlp1_W2B.mjs} +0 -0
  384. /package/dist/chunks/{fr-BGGc04Zv.mjs → fr-DJBeOAx1.mjs} +0 -0
  385. /package/dist/chunks/{go-Fm5N96DN.mjs → go-jyWjtO8q.mjs} +0 -0
  386. /package/dist/chunks/{gu-Vg_BgCTp.mjs → gu-0hWvx16l.mjs} +0 -0
  387. /package/dist/chunks/{he-DTY9chlZ.mjs → he-CYe88qXp.mjs} +0 -0
  388. /package/dist/chunks/{hi-DChMXk0x.mjs → hi-DuLkkPWn.mjs} +0 -0
  389. /package/dist/chunks/{hr-BWVgNU8k.mjs → hr-BwCB1IMW.mjs} +0 -0
  390. /package/dist/chunks/{hu-B37awHXA.mjs → hu-C2dLyTeX.mjs} +0 -0
  391. /package/dist/chunks/{hy-DGC_GDHh.mjs → hy-DXKoDpv9.mjs} +0 -0
  392. /package/dist/chunks/{i18next-CXx5niYF.mjs → i18next-CLUkHqmV.mjs} +0 -0
  393. /package/dist/chunks/{id-V7cw6La2.mjs → id-D4chLuW_.mjs} +0 -0
  394. /package/dist/chunks/{init-C6T-mugb.mjs → init-BlLeEogJ.mjs} +0 -0
  395. /package/dist/chunks/{it-DrTGP8Rn.mjs → it-Hto3G26t.mjs} +0 -0
  396. /package/dist/chunks/{ja-DS4pbJEG.mjs → ja-UxHm_PPZ.mjs} +0 -0
  397. /package/dist/chunks/{java-83DWBpzu.mjs → java-Dhv78FEb.mjs} +0 -0
  398. /package/dist/chunks/{javascript-CBgeF1Xx.mjs → javascript-DilE9EuZ.mjs} +0 -0
  399. /package/dist/chunks/{json-BI17y-1H.mjs → json-LUtHrtDA.mjs} +0 -0
  400. /package/dist/chunks/{ka-BueyosRh.mjs → ka-BnjXwPUq.mjs} +0 -0
  401. /package/dist/chunks/{katex-CmTPfM0f.mjs → katex-B8jUB5Cv.mjs} +0 -0
  402. /package/dist/chunks/{km-B0K891yW.mjs → km-exgzZBIE.mjs} +0 -0
  403. /package/dist/chunks/{kn-BQ__skg8.mjs → kn-DjjUg8aO.mjs} +0 -0
  404. /package/dist/chunks/{ko-BuPxi_7e.mjs → ko-Cu0YUSV6.mjs} +0 -0
  405. /package/dist/chunks/{kotlin-DjnvsrfO.mjs → kotlin-DFLPXbOQ.mjs} +0 -0
  406. /package/dist/chunks/{ku-nQjwPRw2.mjs → ku-D-IxJ0fx.mjs} +0 -0
  407. /package/dist/chunks/{lo-K5NVFoq1.mjs → lo-BcwjJBcv.mjs} +0 -0
  408. /package/dist/chunks/{lt-D3xD6Eb2.mjs → lt-Bt05MFPC.mjs} +0 -0
  409. /package/dist/chunks/{lv-DH13mzZj.mjs → lv-B01TmEFW.mjs} +0 -0
  410. /package/dist/chunks/{markdown-BqQYT45f.mjs → markdown-C6pnqcPd.mjs} +0 -0
  411. /package/dist/chunks/{mdast-util-math-BlK2Zu-1.mjs → mdast-util-math-D56mMxhB.mjs} +0 -0
  412. /package/dist/chunks/{mermaid-vF0cEnZ0.mjs → mermaid-BKA834jS.mjs} +0 -0
  413. /package/dist/chunks/{mk-Bb48BcDA.mjs → mk-DlZNyDhn.mjs} +0 -0
  414. /package/dist/chunks/{ml-BHPEj1kD.mjs → ml-CizMIOxl.mjs} +0 -0
  415. /package/dist/chunks/{mn-BNGzpdI6.mjs → mn-B_pDvxok.mjs} +0 -0
  416. /package/dist/chunks/{mr-D5PgU-cH.mjs → mr-D8D_7YmW.mjs} +0 -0
  417. /package/dist/chunks/{ms-DPkxqKz5.mjs → ms-CM93I8ec.mjs} +0 -0
  418. /package/dist/chunks/{my-DZGcyfxy.mjs → my-BGnGdDAV.mjs} +0 -0
  419. /package/dist/chunks/{ne-BU_Wh4Wv.mjs → ne-C6ZmmqhH.mjs} +0 -0
  420. /package/dist/chunks/{nl-DtAPk1mK.mjs → nl-UGFOU80W.mjs} +0 -0
  421. /package/dist/chunks/{no-CdW3n3BY.mjs → no-as-DKhC4.mjs} +0 -0
  422. /package/dist/chunks/{notifier-CuvTt9pe.mjs → notifier-PpnFhM0m.mjs} +0 -0
  423. /package/dist/chunks/{one-light-DmNO_Y4X.mjs → one-light-Di_o5Kb7.mjs} +0 -0
  424. /package/dist/chunks/{pa-BacCHz87.mjs → pa-DiOAveAI.mjs} +0 -0
  425. /package/dist/chunks/{path-rIMjg_tH.mjs → path-7pA19U_d.mjs} +0 -0
  426. /package/dist/chunks/{pl-8zBJbmhZ.mjs → pl-DXk8ye3B.mjs} +0 -0
  427. /package/dist/chunks/{ps-c6nGXD-W.mjs → ps-CuxilZ3F.mjs} +0 -0
  428. /package/dist/chunks/{pt-B5yR8Qhr.mjs → pt-DsT6E77q.mjs} +0 -0
  429. /package/dist/chunks/{python-DfwfY9t5.mjs → python-DYiHKGPV.mjs} +0 -0
  430. /package/dist/chunks/{r-BD2D7qEW.mjs → r-BZ4pC-Uz.mjs} +0 -0
  431. /package/dist/chunks/{ro-Nscylsqb.mjs → ro-CcAQOL-B.mjs} +0 -0
  432. /package/dist/chunks/{rough.esm-cmMIcj7N.mjs → rough.esm-BPA_YwbP.mjs} +0 -0
  433. /package/dist/chunks/{ru-DxERQkVJ.mjs → ru-hD41D0Fd.mjs} +0 -0
  434. /package/dist/chunks/{rust-DEDueB5R.mjs → rust-Db_HEGL5.mjs} +0 -0
  435. /package/dist/chunks/{scala-CsjqvxE4.mjs → scala-B1kK21mu.mjs} +0 -0
  436. /package/dist/chunks/{sd-5z-QY3q9.mjs → sd-Biu7f00A.mjs} +0 -0
  437. /package/dist/chunks/{shellscript-Bh5zEpnQ.mjs → shellscript-BBh7AxMC.mjs} +0 -0
  438. /package/dist/chunks/{si-DTL0mzrx.mjs → si-Bhto6prC.mjs} +0 -0
  439. /package/dist/chunks/{sk-DrGczTvY.mjs → sk-Ce7J4sHX.mjs} +0 -0
  440. /package/dist/chunks/{sl-D8nJjig4.mjs → sl-Fz7idR9w.mjs} +0 -0
  441. /package/dist/chunks/{sq-C74Hm3YL.mjs → sq-CnLb3bAQ.mjs} +0 -0
  442. /package/dist/chunks/{sql-D9CrOi1i.mjs → sql-DHkazX4B.mjs} +0 -0
  443. /package/dist/chunks/{sr-DAwB05Gj.mjs → sr-Bc5JbF-b.mjs} +0 -0
  444. /package/dist/chunks/{src-DVJl6f6s.mjs → src-B3rrEIze.mjs} +0 -0
  445. /package/dist/chunks/{sv-BkHBsN4y.mjs → sv-B86P2LyK.mjs} +0 -0
  446. /package/dist/chunks/{sw-BBQLTq_z.mjs → sw-CnQXriTg.mjs} +0 -0
  447. /package/dist/chunks/{swift-Dpyt0s2c.mjs → swift-DZdprfb-.mjs} +0 -0
  448. /package/dist/chunks/{ta-DRRzdKky.mjs → ta-CG4BbxjE.mjs} +0 -0
  449. /package/dist/chunks/{te-CedXLsKM.mjs → te-CkE35V1X.mjs} +0 -0
  450. /package/dist/chunks/{th-DDOlGA0W.mjs → th-BCtkHu3E.mjs} +0 -0
  451. /package/dist/chunks/{tr-ClgvwOlL.mjs → tr-D5Cexvko.mjs} +0 -0
  452. /package/dist/chunks/{typescript-DO5cd4m8.mjs → typescript-DhtGMhWX.mjs} +0 -0
  453. /package/dist/chunks/{ug-bXxwiinM.mjs → ug-Bt9xMT4p.mjs} +0 -0
  454. /package/dist/chunks/{uk-Dp46o_VT.mjs → uk-D1g7UV0v.mjs} +0 -0
  455. /package/dist/chunks/{ur-MfEEhdFq.mjs → ur-B69faQh_.mjs} +0 -0
  456. /package/dist/chunks/{vi-bt-3LPGO.mjs → vi--gW42cZG.mjs} +0 -0
  457. /package/dist/chunks/{vitesse-dark-CcorSKT2.mjs → vitesse-dark-B5oAIYZ5.mjs} +0 -0
  458. /package/dist/chunks/{yaml-CrNNZyLb.mjs → yaml-T4MCc8o4.mjs} +0 -0
  459. /package/dist/chunks/{zh-Dgyb5Ly8.mjs → zh-DgQ6P8Lu.mjs} +0 -0
@@ -1,63 +1,63 @@
1
1
  import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
2
- import { g as t, h as n, p as r } from "./src-DVJl6f6s.mjs";
3
- import { L as i, R as a, b as o, h as s, j as c, k as l, w as u, y as d } from "./chunk-ICPOFSXX-BHZIN46A.mjs";
4
- import { i as f, l as p, n as m } from "./chunk-5PVQY5BW-CORl9dnu.mjs";
5
- import { n as h, r as g } from "./chunk-U2HBQHQK-B88ZUOTL.mjs";
6
- import { n as _, t as v } from "./chunk-ZZ45TVLE-D1xks9zd.mjs";
7
- import { a as y, i as b, r as x, t as S } from "./chunk-X2U36JSP-1VS5TyCr.mjs";
8
- import { t as C } from "./rough.esm-cmMIcj7N.mjs";
2
+ import { i as t, l as n, n as r } from "./chunk-5PVQY5BW-BP7ENjg7.mjs";
3
+ import { g as i, h as a, p as o } from "./src-B3rrEIze.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-BOvOTlG6.mjs";
5
+ import { n as h, r as g } from "./chunk-U2HBQHQK-DiQOEtQH.mjs";
6
+ import { n as _, t as v } from "./chunk-ZZ45TVLE-D28EyJ6R.mjs";
7
+ import { a as y, i as b, r as x, t as S } from "./chunk-X2U36JSP-Cznp5Jm-.mjs";
8
+ import { t as C } from "./rough.esm-BPA_YwbP.mjs";
9
9
  //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.mjs
10
- var w = /* @__PURE__ */ n(async (e, t, n) => {
11
- var a, c, l;
12
- let u, d = t.useHtmlLabels || s((a = o()) == null ? void 0 : a.htmlLabels);
13
- u = n || "node default";
14
- let m = e.insert("g").attr("class", u).attr("id", t.domId || t.id), g = m.insert("g").attr("class", "label").attr("style", p(t.labelStyle)), _;
15
- _ = t.label === void 0 ? "" : typeof t.label == "string" ? t.label : t.label[0];
16
- let y = !!t.icon || !!t.img, b = t.labelType === "markdown", x = await h(g, i(f(_), o()), {
17
- useHtmlLabels: d,
18
- width: t.width || ((c = o().flowchart) == null ? void 0 : c.wrappingWidth),
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
19
  classes: b ? "markdown-node-label" : "",
20
- style: t.labelStyle,
20
+ style: r.labelStyle,
21
21
  addSvgBackground: y,
22
22
  markdown: b
23
- }, o()), S = x.getBBox(), C = ((l = t == null ? void 0 : t.padding) == null ? 0 : l) / 2;
24
- if (d) {
25
- let e = x.children[0], t = r(x);
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
26
  await v(e, _), S = e.getBoundingClientRect(), t.attr("width", S.width), t.attr("height", S.height);
27
27
  }
28
- return d ? g.attr("transform", "translate(" + -S.width / 2 + ", " + -S.height / 2 + ")") : g.attr("transform", "translate(0, " + -S.height / 2 + ")"), t.centerLabel && g.attr("transform", "translate(" + -S.width / 2 + ", " + -S.height / 2 + ")"), g.insert("rect", ":first-child"), {
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
29
  shapeSvg: m,
30
30
  bbox: S,
31
31
  halfPadding: C,
32
32
  label: g
33
33
  };
34
- }, "labelHelper"), T = /* @__PURE__ */ n(async (e, t, n) => {
35
- var a, s;
36
- let c = (a = n.useHtmlLabels) == null ? u(o()) : a, l = e.insert("g").attr("class", "label").attr("style", n.labelStyle || ""), d = await h(l, i(f(t), o()), {
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
37
  useHtmlLabels: c,
38
- width: n.width || ((s = o()) == null || (s = s.flowchart) == null ? void 0 : s.wrappingWidth),
39
- style: n.labelStyle,
40
- addSvgBackground: !!n.icon || !!n.img
41
- }), p = d.getBBox(), m = n.padding / 2;
42
- if (u(o())) {
43
- let e = d.children[0], t = r(d);
44
- p = e.getBoundingClientRect(), t.attr("width", p.width), t.attr("height", p.height);
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
45
  }
46
- return c ? l.attr("transform", "translate(" + -p.width / 2 + ", " + -p.height / 2 + ")") : l.attr("transform", "translate(0, " + -p.height / 2 + ")"), n.centerLabel && l.attr("transform", "translate(" + -p.width / 2 + ", " + -p.height / 2 + ")"), l.insert("rect", ":first-child"), {
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
47
  shapeSvg: e,
48
- bbox: p,
48
+ bbox: f,
49
49
  halfPadding: m,
50
- label: l
50
+ label: u
51
51
  };
52
- }, "insertLabel"), E = /* @__PURE__ */ n((e, t) => {
52
+ }, "insertLabel"), E = /* @__PURE__ */ a((e, t) => {
53
53
  let n = t.node().getBBox();
54
54
  e.width = n.width, e.height = n.height;
55
- }, "updateNodeBounds"), D = /* @__PURE__ */ n((e, t) => (e.look === "handDrawn" ? "rough-node" : "node") + " " + e.cssClasses + " " + (t || ""), "getNodeClasses");
55
+ }, "updateNodeBounds"), D = /* @__PURE__ */ a((e, t) => (e.look === "handDrawn" ? "rough-node" : "node") + " " + e.cssClasses + " " + (t || ""), "getNodeClasses");
56
56
  function O(e) {
57
57
  let t = e.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`);
58
58
  return t.push("Z"), t.join(" ");
59
59
  }
60
- n(O, "createPathFromPoints");
60
+ a(O, "createPathFromPoints");
61
61
  function k(e, t, n, r, i, a) {
62
62
  let o = [], s = n - e, c = r - t, l = s / a, u = 2 * Math.PI / l, d = t + c / 2;
63
63
  for (let t = 0; t <= 50; t++) {
@@ -69,7 +69,7 @@ function k(e, t, n, r, i, a) {
69
69
  }
70
70
  return o;
71
71
  }
72
- n(k, "generateFullSineWavePoints");
72
+ a(k, "generateFullSineWavePoints");
73
73
  function A(e, t, n, r, i, a) {
74
74
  let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
75
75
  for (let i = 0; i < r; i++) {
@@ -81,22 +81,22 @@ function A(e, t, n, r, i, a) {
81
81
  }
82
82
  return o;
83
83
  }
84
- n(A, "generateCirclePoints");
84
+ a(A, "generateCirclePoints");
85
85
  function j(e) {
86
- let t = Array.from(e.childNodes).filter((e) => e.tagName === "path"), r = document.createElementNS("http://www.w3.org/2000/svg", "path"), i = t.map((e) => e.getAttribute("d")).filter((e) => e !== null).join(" ");
87
- r.setAttribute("d", i);
88
- let a = t.find((e) => e.getAttribute("fill") !== "none"), o = t.find((e) => e.getAttribute("stroke") !== "none"), s = /* @__PURE__ */ n((e, t) => {
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
89
  var n;
90
90
  return (n = e == null ? void 0 : e.getAttribute(t)) == null ? void 0 : n;
91
91
  }, "getAttr");
92
- if (a) {
92
+ if (i) {
93
93
  var c;
94
94
  let e = {
95
- fill: s(a, "fill"),
96
- "fill-opacity": (c = s(a, "fill-opacity")) == null ? "1" : c
95
+ fill: s(i, "fill"),
96
+ "fill-opacity": (c = s(i, "fill-opacity")) == null ? "1" : c
97
97
  };
98
98
  Object.entries(e).forEach(([e, t]) => {
99
- t && r.setAttribute(e, t);
99
+ t && n.setAttribute(e, t);
100
100
  });
101
101
  }
102
102
  if (o) {
@@ -107,32 +107,32 @@ function j(e) {
107
107
  "stroke-opacity": (u = s(o, "stroke-opacity")) == null ? "1" : u
108
108
  };
109
109
  Object.entries(e).forEach(([e, t]) => {
110
- t && r.setAttribute(e, t);
110
+ t && n.setAttribute(e, t);
111
111
  });
112
112
  }
113
113
  let d = document.createElementNS("http://www.w3.org/2000/svg", "g");
114
- return d.appendChild(r), d;
114
+ return d.appendChild(n), d;
115
115
  }
116
- n(j, "mergePaths");
117
- var M = /* @__PURE__ */ n((e, t) => {
116
+ a(j, "mergePaths");
117
+ var M = /* @__PURE__ */ a((e, t) => {
118
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
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
120
  x: n + c,
121
121
  y: r + l
122
122
  };
123
- }, "intersectRect"), N = /* @__PURE__ */ n(async (e, t, n, r = !1, i = !1) => {
123
+ }, "intersectRect"), N = /* @__PURE__ */ a(async (e, t, n, r = !1, i = !1) => {
124
124
  let a = t || "";
125
125
  typeof a == "object" && (a = a[0]);
126
- let s = o(), c = u(s);
126
+ let o = l(), s = p(o);
127
127
  return await h(e, a, {
128
128
  style: n,
129
129
  isTitle: r,
130
- useHtmlLabels: c,
130
+ useHtmlLabels: s,
131
131
  markdown: !1,
132
132
  isNode: i,
133
133
  width: Infinity
134
- }, s);
135
- }, "createLabel"), P = /* @__PURE__ */ n((e, t, n, r, i) => [
134
+ }, o);
135
+ }, "createLabel"), P = /* @__PURE__ */ a((e, t, n, r, i) => [
136
136
  "M",
137
137
  e + i,
138
138
  t,
@@ -177,43 +177,43 @@ var M = /* @__PURE__ */ n((e, t) => {
177
177
  e + i,
178
178
  t,
179
179
  "Z"
180
- ].join(" "), "createRoundedRectPathD"), F = /* @__PURE__ */ n(async (e, n) => {
181
- t.info("Creating subgraph rect for ", n.id, n);
182
- let i = o(), { themeVariables: a, handDrawnSeed: s } = i, { clusterBkg: c, clusterBorder: l } = a, { labelStyles: d, nodeStyles: f, borderStyles: p, backgroundStyles: m } = b(n), g = e.insert("g").attr("class", "cluster " + n.cssClasses).attr("id", n.domId).attr("data-look", n.look), v = u(i), x = g.insert("g").attr("class", "cluster-label "), S;
183
- S = n.labelType === "markdown" ? await h(x, n.label, {
184
- style: n.labelStyle,
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
185
  useHtmlLabels: v,
186
186
  isNode: !0,
187
- width: n.width
188
- }) : await N(x, n.label, n.labelStyle || "", !1, !0);
187
+ width: t.width
188
+ }) : await N(x, t.label, t.labelStyle || "", !1, !0);
189
189
  let w = S.getBBox();
190
- if (u(i)) {
191
- let e = S.children[0], t = r(S);
190
+ if (p(n)) {
191
+ let e = S.children[0], t = o(S);
192
192
  w = e.getBoundingClientRect(), t.attr("width", w.width), t.attr("height", w.height);
193
193
  }
194
- let T = n.width <= w.width + n.padding ? w.width + n.padding : n.width;
195
- n.width <= w.width + n.padding ? n.diff = (T - n.width) / 2 - n.padding : n.diff = -n.padding;
196
- let E = n.height, D = n.x - T / 2, O = n.y - E / 2;
197
- t.trace("Data ", n, JSON.stringify(n));
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
198
  let k;
199
- if (n.look === "handDrawn") {
200
- let e = C.svg(g), r = y(n, {
199
+ if (t.look === "handDrawn") {
200
+ let e = C.svg(g), n = y(t, {
201
201
  roughness: .7,
202
- fill: c,
203
- stroke: l,
202
+ fill: s,
203
+ stroke: c,
204
204
  fillWeight: 3,
205
- seed: s
206
- }), i = e.path(P(D, O, T, E, 0), r);
207
- k = g.insert(() => (t.debug("Rough node insert CXC", i), i), ":first-child"), k.select("path:nth-child(2)").attr("style", p.join(";")), k.select("path").attr("style", m.join(";").replace("fill", "stroke"));
208
- } else k = g.insert("rect", ":first-child"), k.attr("style", f).attr("rx", n.rx).attr("ry", n.ry).attr("x", D).attr("y", O).attr("width", T).attr("height", E);
209
- let { subGraphTitleTopMargin: A } = _(i);
210
- if (x.attr("transform", `translate(${n.x - w.width / 2}, ${n.y - n.height / 2 + A})`), d) {
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
211
  let e = x.select("span");
212
- e && e.attr("style", d);
212
+ e && e.attr("style", u);
213
213
  }
214
214
  let j = k.node().getBBox();
215
- return n.offsetX = 0, n.width = j.width, n.height = j.height, n.offsetY = w.height - n.padding / 2, n.intersect = function(e) {
216
- return M(n, e);
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
217
  }, {
218
218
  cluster: g,
219
219
  labelBBox: w
@@ -221,10 +221,10 @@ var M = /* @__PURE__ */ n((e, t) => {
221
221
  }, "rect"), I = {
222
222
  rect: F,
223
223
  squareRect: F,
224
- roundedWithTitle: /* @__PURE__ */ n(async (e, t) => {
225
- let n = o(), { themeVariables: i, handDrawnSeed: a } = n, { altBackground: s, compositeBackground: c, compositeTitleBackground: l, nodeBorder: d } = i, f = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-id", t.id).attr("data-look", t.look), p = f.insert("g", ":first-child"), m = f.insert("g").attr("class", "cluster-label"), h = f.append("rect"), g = await N(m, t.label, t.labelStyle, void 0, !0), _ = g.getBBox();
226
- if (u(n)) {
227
- let e = g.children[0], t = r(g);
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
228
  _ = e.getBoundingClientRect(), t.attr("width", _.width), t.attr("height", _.height);
229
229
  }
230
230
  let v = 0 * t.padding, y = v / 2, b = (t.width <= _.width + t.padding ? _.width + t.padding : t.width) + v;
@@ -233,30 +233,30 @@ var M = /* @__PURE__ */ n((e, t) => {
233
233
  t.width = b;
234
234
  let E = t.y - t.height / 2 - y + _.height + 2, D;
235
235
  if (t.look === "handDrawn") {
236
- let e = t.cssClasses.includes("statediagram-cluster-alt"), n = C.svg(f), r = t.rx || t.ry ? n.path(P(w, T, b, x, 10), {
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
237
  roughness: .7,
238
- fill: l,
238
+ fill: c,
239
239
  fillStyle: "solid",
240
- stroke: d,
241
- seed: a
242
- }) : n.rectangle(w, T, b, x, { seed: a });
243
- D = f.insert(() => r, ":first-child");
244
- let i = n.rectangle(w, E, b, S, {
245
- fill: e ? s : c,
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
246
  fillStyle: e ? "hachure" : "solid",
247
- stroke: d,
248
- seed: a
247
+ stroke: u,
248
+ seed: i
249
249
  });
250
- D = f.insert(() => r, ":first-child"), h = f.insert(() => i);
251
- } else D = p.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 - (u(n) ? 0 : 3)})`), t.height = D.node().getBBox().height, t.offsetX = 0, t.offsetY = _.height - t.padding / 2, t.labelBBox = _, t.intersect = function(e) {
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
253
  return M(t, e);
254
254
  }, {
255
- cluster: f,
255
+ cluster: d,
256
256
  labelBBox: _
257
257
  };
258
258
  }, "roundedWithTitle"),
259
- noteGroup: /* @__PURE__ */ n((e, t) => {
259
+ noteGroup: /* @__PURE__ */ a((e, t) => {
260
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
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
262
  let o = r.node().getBBox();
@@ -270,14 +270,14 @@ var M = /* @__PURE__ */ n((e, t) => {
270
270
  }
271
271
  };
272
272
  }, "noteGroup"),
273
- divider: /* @__PURE__ */ n((e, t) => {
274
- let { themeVariables: n, handDrawnSeed: r } = o(), { nodeBorder: i } = n, a = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-look", t.look), s = a.insert("g", ":first-child"), c = 0 * t.padding, l = t.width + c;
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
275
  t.diff = -t.padding;
276
- let u = t.height + c, d = t.x - l / 2, f = t.y - u / 2;
277
- t.width = l;
276
+ let u = t.height + s, d = t.x - c / 2, f = t.y - u / 2;
277
+ t.width = c;
278
278
  let p;
279
279
  if (t.look === "handDrawn") {
280
- let e = C.svg(a).rectangle(d, f, l, u, {
280
+ let e = C.svg(a).rectangle(d, f, c, u, {
281
281
  fill: "lightgrey",
282
282
  roughness: .5,
283
283
  strokeLineDash: [5],
@@ -286,9 +286,9 @@ var M = /* @__PURE__ */ n((e, t) => {
286
286
  });
287
287
  p = a.insert(() => e, ":first-child");
288
288
  } else {
289
- p = s.insert("rect", ":first-child");
289
+ p = o.insert("rect", ":first-child");
290
290
  let e = "outer";
291
- e = (t.look, "divider"), p.attr("class", e).attr("x", d).attr("y", f).attr("width", l).attr("height", u).attr("data-look", t.look);
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
292
  }
293
293
  return t.height = p.node().getBBox().height, t.offsetX = 0, t.offsetY = 0, t.intersect = function(e) {
294
294
  return M(t, e);
@@ -297,56 +297,56 @@ var M = /* @__PURE__ */ n((e, t) => {
297
297
  labelBBox: {}
298
298
  };
299
299
  }, "divider"),
300
- kanbanSection: /* @__PURE__ */ n(async (e, n) => {
301
- t.info("Creating subgraph rect for ", n.id, n);
302
- let i = o(), { themeVariables: a, handDrawnSeed: s } = i, { clusterBkg: c, clusterBorder: l } = a, { labelStyles: d, nodeStyles: f, borderStyles: p, backgroundStyles: m } = b(n), g = e.insert("g").attr("class", "cluster " + n.cssClasses).attr("id", n.domId).attr("data-look", n.look), v = u(i), x = g.insert("g").attr("class", "cluster-label "), S = await h(x, n.label, {
303
- style: n.labelStyle,
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
304
  useHtmlLabels: v,
305
305
  isNode: !0,
306
- width: n.width
306
+ width: t.width
307
307
  }), w = S.getBBox();
308
- if (u(i)) {
309
- let e = S.children[0], t = r(S);
308
+ if (p(n)) {
309
+ let e = S.children[0], t = o(S);
310
310
  w = e.getBoundingClientRect(), t.attr("width", w.width), t.attr("height", w.height);
311
311
  }
312
- let T = n.width <= w.width + n.padding ? w.width + n.padding : n.width;
313
- n.width <= w.width + n.padding ? n.diff = (T - n.width) / 2 - n.padding : n.diff = -n.padding;
314
- let E = n.height, D = n.x - T / 2, O = n.y - E / 2;
315
- t.trace("Data ", n, JSON.stringify(n));
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
316
  let k;
317
- if (n.look === "handDrawn") {
318
- let e = C.svg(g), r = y(n, {
317
+ if (t.look === "handDrawn") {
318
+ let e = C.svg(g), n = y(t, {
319
319
  roughness: .7,
320
- fill: c,
321
- stroke: l,
320
+ fill: s,
321
+ stroke: c,
322
322
  fillWeight: 4,
323
- seed: s
324
- }), i = e.path(P(D, O, T, E, n.rx), r);
325
- k = g.insert(() => (t.debug("Rough node insert CXC", i), i), ":first-child"), k.select("path:nth-child(2)").attr("style", p.join(";")), k.select("path").attr("style", m.join(";").replace("fill", "stroke"));
326
- } else k = g.insert("rect", ":first-child"), k.attr("style", f).attr("rx", n.rx).attr("ry", n.ry).attr("x", D).attr("y", O).attr("width", T).attr("height", E);
327
- let { subGraphTitleTopMargin: A } = _(i);
328
- if (x.attr("transform", `translate(${n.x - w.width / 2}, ${n.y - n.height / 2 + A})`), d) {
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
329
  let e = x.select("span");
330
- e && e.attr("style", d);
330
+ e && e.attr("style", u);
331
331
  }
332
332
  let j = k.node().getBBox();
333
- return n.offsetX = 0, n.width = j.width, n.height = j.height, n.offsetY = w.height - n.padding / 2, n.intersect = function(e) {
334
- return M(n, e);
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
335
  }, {
336
336
  cluster: g,
337
337
  labelBBox: w
338
338
  };
339
339
  }, "kanbanSection")
340
- }, L = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ n(async (e, t) => {
340
+ }, L = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ a(async (e, t) => {
341
341
  let n = await I[t.shape || "rect"](e, t);
342
342
  return L.set(t.id, n), n;
343
- }, "insertCluster"), z = /* @__PURE__ */ n(() => {
343
+ }, "insertCluster"), z = /* @__PURE__ */ a(() => {
344
344
  L = /* @__PURE__ */ new Map();
345
345
  }, "clear");
346
346
  function B(e, t) {
347
347
  return e.intersect(t);
348
348
  }
349
- n(B, "intersectNode");
349
+ a(B, "intersectNode");
350
350
  var V = B;
351
351
  function H(e, t, n, r) {
352
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);
@@ -357,12 +357,12 @@ function H(e, t, n, r) {
357
357
  y: a + u
358
358
  };
359
359
  }
360
- n(H, "intersectEllipse");
360
+ a(H, "intersectEllipse");
361
361
  var U = H;
362
362
  function W(e, t, n) {
363
363
  return U(e, t, t, n);
364
364
  }
365
- n(W, "intersectCircle");
365
+ a(W, "intersectCircle");
366
366
  var G = W;
367
367
  function ee(e, t, n, r) {
368
368
  {
@@ -379,11 +379,11 @@ function ee(e, t, n, r) {
379
379
  };
380
380
  }
381
381
  }
382
- n(ee, "intersectLine");
382
+ a(ee, "intersectLine");
383
383
  function te(e, t) {
384
384
  return e * t > 0;
385
385
  }
386
- n(te, "sameSign");
386
+ a(te, "sameSign");
387
387
  var ne = ee;
388
388
  function K(e, t, n) {
389
389
  let r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
@@ -406,7 +406,7 @@ function K(e, t, n) {
406
406
  return a < c ? -1 : a === c ? 0 : 1;
407
407
  }), a[0]) : e;
408
408
  }
409
- n(K, "intersectPolygon");
409
+ a(K, "intersectPolygon");
410
410
  var q = {
411
411
  node: V,
412
412
  circle: G,
@@ -414,23 +414,23 @@ var q = {
414
414
  polygon: K,
415
415
  rect: M
416
416
  };
417
- function re(e, n) {
418
- let { labelStyles: r } = b(n);
419
- n.labelStyle = r;
420
- let i = D(n), a = i;
421
- i || (a = "anchor");
422
- let o = e.insert("g").attr("class", a).attr("id", n.domId || n.id), { cssStyles: s } = n, c = C.svg(o), l = y(n, {
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
423
  fill: "black",
424
424
  stroke: "none",
425
425
  fillStyle: "solid"
426
426
  });
427
- n.look !== "handDrawn" && (l.roughness = 0);
428
- let u = c.circle(0, 0, 2, l), d = o.insert(() => u, ":first-child");
429
- return d.attr("class", "anchor").attr("style", p(s)), E(n, d), n.intersect = function(e) {
430
- return t.info("Circle intersect", n, 1, e), q.circle(n, 1, e);
431
- }, o;
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
432
  }
433
- n(re, "anchor");
433
+ a(re, "anchor");
434
434
  function ie(e, t, n, r, i, a, o) {
435
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
436
  if (m > 1) throw Error("The given radii are too small to create an arc between the points.");
@@ -446,17 +446,17 @@ function ie(e, t, n, r, i, a, o) {
446
446
  }
447
447
  return b;
448
448
  }
449
- n(ie, "generateArcPoints");
449
+ a(ie, "generateArcPoints");
450
450
  function ae(e, t, n) {
451
451
  let [r, i] = [t, n].sort((e, t) => t - e);
452
452
  return i * (1 - Math.sqrt(1 - (e / r / 2) ** 2));
453
453
  }
454
- n(ae, "calculateArcSagitta");
454
+ a(ae, "calculateArcSagitta");
455
455
  async function J(e, t) {
456
- var r;
457
- let { labelStyles: i, nodeStyles: a } = b(t);
458
- t.labelStyle = i;
459
- let o = (r = t.padding) == null ? 0 : r, s = t.look === "neo" ? 16 : o, c = t.look === "neo" ? 12 : o, l = /* @__PURE__ */ n((e) => e + c, "calcTotalHeight"), u = /* @__PURE__ */ n((e) => {
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
460
  let t = e / 2;
461
461
  return [t / (2.5 + e / 50), t];
462
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 = [
@@ -477,17 +477,17 @@ async function J(e, t) {
477
477
  ], T = C.svg(d), k = y(t, {});
478
478
  t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
479
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), a && t.look !== "handDrawn" && M.selectAll("path").attr("style", a), M.attr("transform", `translate(${m / 2}, 0)`), E(t, M), t.intersect = function(e) {
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
481
  return q.polygon(t, S, e);
482
482
  }, d;
483
483
  }
484
- n(J, "bowTieRect");
484
+ a(J, "bowTieRect");
485
485
  function Y(e, t, n, r) {
486
486
  return e.insert("polygon", ":first-child").attr("points", r.map(function(e) {
487
487
  return e.x + "," + e.y;
488
488
  }).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
489
489
  }
490
- n(Y, "insertPolygonShape");
490
+ a(Y, "insertPolygonShape");
491
491
  var oe = 12;
492
492
  async function se(e, t) {
493
493
  var n, r, i;
@@ -527,7 +527,7 @@ async function se(e, t) {
527
527
  return q.polygon(t, g, e);
528
528
  }, u;
529
529
  }
530
- n(se, "card");
530
+ a(se, "card");
531
531
  function ce(e, t) {
532
532
  var n, r;
533
533
  let { nodeStyles: i } = b(t);
@@ -556,24 +556,24 @@ function ce(e, t) {
556
556
  return q.polygon(t, c, e);
557
557
  }, a;
558
558
  }
559
- n(ce, "choice");
560
- async function le(e, n, r) {
561
- var i;
562
- let { labelStyles: a, nodeStyles: o } = b(n);
563
- n.labelStyle = a;
564
- let { shapeSvg: s, bbox: c, halfPadding: l } = await w(e, n, D(n)), u = (i = r == null ? void 0 : r.padding) == null ? l : i, d = n.look === "neo" ? c.width / 2 + 32 : c.width / 2 + u, f, { cssStyles: m } = n;
565
- if (n.look === "handDrawn") {
566
- let e = C.svg(s), t = y(n, {}), r = e.circle(0, 0, d * 2, t);
567
- f = s.insert(() => r, ":first-child"), f.attr("class", "basic label-container").attr("style", p(m));
568
- } else f = s.insert("circle", ":first-child").attr("class", "basic label-container").attr("style", o).attr("r", d).attr("cx", 0).attr("cy", 0);
569
- return E(n, f), n.calcIntersect = function(e, t) {
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
570
  let n = e.width / 2;
571
571
  return q.circle(e, n, t);
572
- }, n.intersect = function(e) {
573
- return t.info("Circle intersect", n, d, e), q.circle(n, d, e);
574
- }, s;
572
+ }, t.intersect = function(e) {
573
+ return i.info("Circle intersect", t, f, e), q.circle(t, f, e);
574
+ }, c;
575
575
  }
576
- n(le, "circle");
576
+ a(le, "circle");
577
577
  function X(e) {
578
578
  let t = Math.cos(Math.PI / 4), n = Math.sin(Math.PI / 4), r = e * 2, i = {
579
579
  x: r / 2 * t,
@@ -591,22 +591,22 @@ function X(e) {
591
591
  return `M ${a.x},${a.y} L ${s.x},${s.y}
592
592
  M ${i.x},${i.y} L ${o.x},${o.y}`;
593
593
  }
594
- n(X, "createLine");
595
- function Z(e, n) {
596
- var r, i;
597
- let { labelStyles: a, nodeStyles: o } = b(n);
598
- n.labelStyle = a, n.label = "";
599
- let s = e.insert("g").attr("class", D(n)).attr("id", (r = n.domId) == null ? n.id : r), c = Math.max(30, (i = n == null ? void 0 : n.width) == null ? 0 : i), { cssStyles: l } = n, u = C.svg(s), d = y(n, {});
600
- n.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
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
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 && n.look !== "handDrawn" && h.selectAll("path").attr("style", l), o && n.look !== "handDrawn" && h.selectAll("path").attr("style", o), E(n, h), n.intersect = function(e) {
603
- return t.info("crossedCircle intersect", n, {
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
604
  radius: c,
605
605
  point: e
606
- }), q.circle(n, c, e);
606
+ }), q.circle(t, c, e);
607
607
  }, s;
608
608
  }
609
- n(Z, "crossedCircle");
609
+ a(Z, "crossedCircle");
610
610
  function ue(e, t, n, r = 100, i = 0, a = 180) {
611
611
  let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
612
612
  for (let i = 0; i < r; i++) {
@@ -618,7 +618,7 @@ function ue(e, t, n, r = 100, i = 0, a = 180) {
618
618
  }
619
619
  return o;
620
620
  }
621
- n(ue, "generateCirclePoints");
621
+ a(ue, "generateCirclePoints");
622
622
  async function de(t, n) {
623
623
  var r, i, a, o, s;
624
624
  let { labelStyles: c, nodeStyles: l } = b(n);
@@ -672,7 +672,7 @@ async function de(t, n) {
672
672
  return q.polygon(n, S, e);
673
673
  }, u;
674
674
  }
675
- n(de, "curlyBraceLeft");
675
+ a(de, "curlyBraceLeft");
676
676
  function fe(e, t, n, r = 100, i = 0, a = 180) {
677
677
  let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
678
678
  for (let i = 0; i < r; i++) {
@@ -684,7 +684,7 @@ function fe(e, t, n, r = 100, i = 0, a = 180) {
684
684
  }
685
685
  return o;
686
686
  }
687
- n(fe, "generateCirclePoints");
687
+ a(fe, "generateCirclePoints");
688
688
  async function pe(t, n) {
689
689
  var r, i, a, o, s, c;
690
690
  let { labelStyles: l, nodeStyles: u } = b(n);
@@ -738,7 +738,7 @@ async function pe(t, n) {
738
738
  return q.polygon(n, T, e);
739
739
  }, d;
740
740
  }
741
- n(pe, "curlyBraceRight");
741
+ a(pe, "curlyBraceRight");
742
742
  function Q(e, t, n, r = 100, i = 0, a = 180) {
743
743
  let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
744
744
  for (let i = 0; i < r; i++) {
@@ -750,7 +750,7 @@ function Q(e, t, n, r = 100, i = 0, a = 180) {
750
750
  }
751
751
  return o;
752
752
  }
753
- n(Q, "generateCirclePoints");
753
+ a(Q, "generateCirclePoints");
754
754
  async function me(t, n) {
755
755
  var r, i, a, o, s, c;
756
756
  let { labelStyles: l, nodeStyles: u } = b(n);
@@ -829,7 +829,7 @@ async function me(t, n) {
829
829
  return q.polygon(n, k, e);
830
830
  }, d;
831
831
  }
832
- n(me, "curlyBraces");
832
+ a(me, "curlyBraces");
833
833
  async function he(e, t) {
834
834
  var n, r, i;
835
835
  let { labelStyles: a, nodeStyles: o } = b(t);
@@ -863,43 +863,43 @@ async function he(e, t) {
863
863
  return q.polygon(t, k, e);
864
864
  }, u;
865
865
  }
866
- n(he, "curvedTrapezoid");
867
- var ge = /* @__PURE__ */ n((e, t, n, r, i, a) => [
866
+ a(he, "curvedTrapezoid");
867
+ var ge = /* @__PURE__ */ a((e, t, n, r, i, a) => [
868
868
  `M${e},${t + a}`,
869
869
  `a${i},${a} 0,0,0 ${n},0`,
870
870
  `a${i},${a} 0,0,0 ${-n},0`,
871
871
  `l0,${r}`,
872
872
  `a${i},${a} 0,0,0 ${n},0`,
873
873
  `l0,${-r}`
874
- ].join(" "), "createCylinderPathD"), _e = /* @__PURE__ */ n((e, t, n, r, i, a) => [
874
+ ].join(" "), "createCylinderPathD"), _e = /* @__PURE__ */ a((e, t, n, r, i, a) => [
875
875
  `M${e},${t + a}`,
876
876
  `M${e + n},${t + a}`,
877
877
  `a${i},${a} 0,0,0 ${-n},0`,
878
878
  `l0,${r}`,
879
879
  `a${i},${a} 0,0,0 ${n},0`,
880
880
  `l0,${-r}`
881
- ].join(" "), "createOuterCylinderPathD"), ve = /* @__PURE__ */ n((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;
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
882
  async function xe(e, t) {
883
- var n, r, i, a;
884
- let { labelStyles: o, nodeStyles: s } = b(t);
885
- t.labelStyle = o;
886
- let c = (n = t.padding) == null ? 0 : n, l = t.look === "neo" ? 24 : c, u = t.look === "neo" ? 24 : c;
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
887
  if (t.width || t.height) {
888
- var d, f, m;
889
- let e = (d = t.width) == null ? 0 : d;
890
- t.width = ((f = t.width) == null ? 0 : f) - u, t.width < be && (t.width = be);
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
891
  let n = e / 2 / (2.5 + e / 50);
892
- t.height = ((m = t.height) == null ? 0 : m) - l - n * 3, t.height < ye && (t.height = ye);
892
+ t.height = ((m = t.height) == null ? 0 : m) - u - n * 3, t.height < ye && (t.height = ye);
893
893
  }
894
- let { shapeSvg: h, bbox: g, label: _ } = await w(e, t, D(t)), v = (t.width ? t.width : g.width) + u, x = v / 2, S = x / (2.5 + v / 50), T = (t.height ? t.height : g.height) + l + S, O, { cssStyles: k } = t;
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
895
  if (t.look === "handDrawn") {
896
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
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
898
  } else {
899
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", p(k)).attr("style", 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
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 - ((r = g.left) == null ? 0 : r))}, ${-(g.height / 2) + ((i = t.padding) == null ? 0 : i) / 1.5 - (g.y - ((a = g.top) == null ? 0 : a))})`), t.intersect = function(e) {
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
903
  var n, r, i, a, o;
904
904
  let s = q.rect(t, e), c = s.x - ((n = t.x) == null ? 0 : n);
905
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)) {
@@ -910,7 +910,7 @@ async function xe(e, t) {
910
910
  return s;
911
911
  }, h;
912
912
  }
913
- n(xe, "cylinder");
913
+ a(xe, "cylinder");
914
914
  async function Se(e, t) {
915
915
  var n, r, i, a, o, s;
916
916
  let { labelStyles: c, nodeStyles: l } = b(t);
@@ -951,58 +951,58 @@ async function Se(e, t) {
951
951
  return q.rect(t, e);
952
952
  }, f;
953
953
  }
954
- n(Se, "dividedRectangle");
955
- async function Ce(e, n) {
954
+ a(Se, "dividedRectangle");
955
+ async function Ce(e, t) {
956
956
  var r;
957
- let { labelStyles: i, nodeStyles: a } = b(n), o = n.look === "neo" ? 12 : 5;
958
- n.labelStyle = i;
959
- let s = (r = n.padding) == null ? 0 : r, c = n.look === "neo" ? 16 : s, { shapeSvg: l, bbox: u } = await w(e, n, D(n)), d = (n != null && n.width ? (n == null ? void 0 : n.width) / 2 : u.width / 2) + (c == null ? 0 : c), f = d - o, m, { cssStyles: h } = n;
960
- if (n.look === "handDrawn") {
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
961
  var g, _;
962
- let e = C.svg(l), t = y(n, {
962
+ let e = C.svg(u), r = y(t, {
963
963
  roughness: .2,
964
964
  strokeWidth: 2.5
965
- }), r = y(n, {
965
+ }), i = y(t, {
966
966
  roughness: .2,
967
967
  strokeWidth: 1.5
968
- }), i = e.circle(0, 0, d * 2, t), a = e.circle(0, 0, f * 2, r);
969
- m = l.insert("g", ":first-child"), m.attr("class", p(n.cssClasses)).attr("style", p(h)), (g = m.node()) == null || g.appendChild(i), (_ = m.node()) == null || _.appendChild(a);
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
970
  } else {
971
- m = l.insert("g", ":first-child");
971
+ m = u.insert("g", ":first-child");
972
972
  let e = m.insert("circle", ":first-child"), t = m.insert("circle");
973
- m.attr("class", "basic label-container").attr("style", a), e.attr("class", "outer-circle").attr("style", a).attr("r", d).attr("cx", 0).attr("cy", 0), t.attr("class", "inner-circle").attr("style", a).attr("r", f).attr("cx", 0).attr("cy", 0);
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
974
  }
975
- return E(n, m), n.intersect = function(e) {
976
- return t.info("DoubleCircle intersect", n, d, e), q.circle(n, d, e);
977
- }, l;
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
978
  }
979
- n(Ce, "doublecircle");
980
- function we(e, n, { config: { themeVariables: r } }) {
981
- var i;
982
- let { labelStyles: a, nodeStyles: o } = b(n);
983
- n.label = "", n.labelStyle = a;
984
- let s = e.insert("g").attr("class", D(n)).attr("id", (i = n.domId) == null ? n.id : i), { cssStyles: c } = n, l = C.svg(s), { nodeBorder: u } = r, d = y(n, { fillStyle: "solid" });
985
- n.look !== "handDrawn" && (d.roughness = 0);
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
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 && n.look !== "handDrawn" && p.selectAll("path").attr("style", c), o && n.look !== "handDrawn" && p.selectAll("path").attr("style", o), E(n, p), n.intersect = function(e) {
988
- return t.info("filledCircle intersect", n, {
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
989
  radius: 7,
990
990
  point: e
991
- }), q.circle(n, 7, e);
991
+ }), q.circle(t, 7, e);
992
992
  }, s;
993
993
  }
994
- n(we, "filledCircle");
994
+ a(we, "filledCircle");
995
995
  var Te = 10, Ee = 10;
996
- async function De(e, n) {
997
- var r, i, a, o;
998
- let { labelStyles: s, nodeStyles: c } = b(n);
999
- n.labelStyle = s;
1000
- let l = (r = n.padding) == null ? 0 : r, u = n.look === "neo" ? l * 2 : l;
1001
- if (n.width || n.height) {
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
1002
  var d, f;
1003
- n.height = (d = n == null ? void 0 : n.height) == null ? 0 : d, n.height < Te && (n.height = Te), n.width = ((f = n == null ? void 0 : n.width) == null ? 0 : f) - u - u / 2, n.width < Ee && (n.width = Ee);
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
1004
  }
1005
- let { shapeSvg: p, bbox: m, label: h } = await w(e, n, D(n)), g = (n != null && n.width ? n == null ? void 0 : n.width : m.width) + (u == null ? 0 : u), _ = n != null && n.height ? n == null ? void 0 : n.height : g + m.height, v = _, x = [
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
1006
  {
1007
1007
  x: 0,
1008
1008
  y: -_
@@ -1015,14 +1015,14 @@ async function De(e, n) {
1015
1015
  x: v / 2,
1016
1016
  y: 0
1017
1017
  }
1018
- ], { cssStyles: S } = n, T = C.svg(p), k = y(n, {});
1019
- n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
1018
+ ], { cssStyles: S } = t, T = C.svg(p), k = y(t, {});
1019
+ t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
1020
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 && n.look !== "handDrawn" && M.selectChildren("path").attr("style", S), c && n.look !== "handDrawn" && M.selectChildren("path").attr("style", c), n.width = g, n.height = _, E(n, M), h.attr("transform", `translate(${-m.width / 2 - (m.x - ((i = m.left) == null ? 0 : i))}, ${-_ / 2 + ((a = n.padding) == null ? 0 : a) / 2 + (m.y - ((o = m.top) == null ? 0 : o))})`), n.intersect = function(e) {
1022
- return t.info("Triangle intersect", n, x, e), q.polygon(n, x, e);
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
1023
  }, p;
1024
1024
  }
1025
- n(De, "flippedTriangle");
1025
+ a(De, "flippedTriangle");
1026
1026
  function Oe(e, t, { dir: n, config: { state: r, themeVariables: i } }) {
1027
1027
  var a, o, s, c;
1028
1028
  let { nodeStyles: l } = b(t);
@@ -1044,18 +1044,18 @@ function Oe(e, t, { dir: n, config: { state: r, themeVariables: i } }) {
1044
1044
  return q.rect(t, e);
1045
1045
  }, u;
1046
1046
  }
1047
- n(Oe, "forkJoin");
1048
- async function ke(e, n) {
1049
- var r, i;
1050
- let { labelStyles: a, nodeStyles: o } = b(n);
1051
- n.labelStyle = a;
1052
- let s = n.look === "neo" ? 16 : (r = n.padding) == null ? 0 : r, c = n.look === "neo" ? 12 : (i = n.padding) == null ? 0 : i;
1053
- if (n.width || n.height) {
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
1054
  var l, u;
1055
- n.height = ((l = n == null ? void 0 : n.height) == null ? 0 : l) - c * 2, n.height < 10 && (n.height = 10), n.width = ((u = n == null ? void 0 : n.width) == null ? 0 : u) - s * 2, n.width < 15 && (n.width = 15);
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
1056
  }
1057
- let { shapeSvg: d, bbox: f } = await w(e, n, D(n)), p = (n != null && n.width ? n == null ? void 0 : n.width : Math.max(15, f.width)) + s * 2, m = (n != null && n.height ? n == null ? void 0 : n.height : Math.max(10, f.height)) + c * 2, h = m / 2, { cssStyles: g } = n, _ = C.svg(d), v = y(n, {});
1058
- n.look !== "handDrawn" && (v.roughness = 0, v.fillStyle = "solid");
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
1059
  let x = [
1060
1060
  {
1061
1061
  x: -p / 2,
@@ -1075,15 +1075,15 @@ async function ke(e, n) {
1075
1075
  y: m / 2
1076
1076
  }
1077
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 && n.look !== "handDrawn" && k.selectChildren("path").attr("style", g), o && n.look !== "handDrawn" && k.selectChildren("path").attr("style", o), E(n, k), n.intersect = function(e) {
1079
- return t.info("Pill intersect", n, {
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
1080
  radius: h,
1081
1081
  point: e
1082
- }), q.polygon(n, x, e);
1082
+ }), q.polygon(t, x, e);
1083
1083
  }, d;
1084
1084
  }
1085
- n(ke, "halfRoundedRectangle");
1086
- var Ae = /* @__PURE__ */ n((e, t, n, r, i) => [
1085
+ a(ke, "halfRoundedRectangle");
1086
+ var Ae = /* @__PURE__ */ a((e, t, n, r, i) => [
1087
1087
  `M${e + i},${t}`,
1088
1088
  `L${e + n - i},${t}`,
1089
1089
  `L${e + n},${t - r / 2}`,
@@ -1136,13 +1136,13 @@ async function je(e, t) {
1136
1136
  return q.polygon(t, _, e);
1137
1137
  }, f;
1138
1138
  }
1139
- n(je, "hexagon");
1140
- async function Me(e, n) {
1141
- var r, i;
1142
- let { labelStyles: a, nodeStyles: o } = b(n);
1143
- n.label = "", n.labelStyle = a;
1144
- let { shapeSvg: s } = await w(e, n, D(n)), c = Math.max(30, (r = n == null ? void 0 : n.width) == null ? 0 : r), l = Math.max(30, (i = n == null ? void 0 : n.height) == null ? 0 : i), { cssStyles: u } = n, d = C.svg(s), f = y(n, {});
1145
- n.look !== "handDrawn" && (f.roughness = 0, f.fillStyle = "solid");
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
1146
  let p = [
1147
1147
  {
1148
1148
  x: 0,
@@ -1161,41 +1161,41 @@ async function Me(e, n) {
1161
1161
  y: l
1162
1162
  }
1163
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 && n.look !== "handDrawn" && g.selectChildren("path").attr("style", u), o && n.look !== "handDrawn" && g.selectChildren("path").attr("style", o), g.attr("transform", `translate(${-c / 2}, ${-l / 2})`), E(n, g), n.intersect = function(e) {
1165
- return t.info("Pill intersect", n, { points: p }), q.polygon(n, p, e);
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
1166
  }, s;
1167
1167
  }
1168
- n(Me, "hourglass");
1169
- async function Ne(n, r, { config: { themeVariables: i, flowchart: a } }) {
1168
+ a(Me, "hourglass");
1169
+ async function Ne(t, n, { config: { themeVariables: r, flowchart: a } }) {
1170
1170
  var o, s, c;
1171
- let { labelStyles: l } = b(r);
1172
- r.labelStyle = l;
1173
- let u = (o = r.assetHeight) == null ? 48 : o, d = (s = r.assetWidth) == null ? 48 : s, f = Math.max(u, d), p = a == null ? void 0 : a.wrappingWidth;
1174
- r.width = Math.max(f, p == null ? 0 : p);
1175
- let { shapeSvg: m, bbox: h, label: _ } = await w(n, r, "icon-shape default"), v = r.pos === "t", x = f, T = f, { nodeBorder: D } = i, { stylesMap: O } = S(r), k = -T / 2, A = -x / 2, j = r.label ? 8 : 0, M = C.svg(m), N = y(r, {
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
1176
  stroke: "none",
1177
1177
  fill: "none"
1178
1178
  });
1179
- r.look !== "handDrawn" && (N.roughness = 0, N.fillStyle = "solid");
1179
+ n.look !== "handDrawn" && (N.roughness = 0, N.fillStyle = "solid");
1180
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
1181
  fill: "transparent",
1182
1182
  stroke: "none"
1183
1183
  })), R = m.insert(() => P, ":first-child"), z = m.insert(() => L);
1184
- if (r.icon) {
1184
+ if (n.icon) {
1185
1185
  var B;
1186
1186
  let e = m.append("g");
1187
- e.html(`<g>${await g(r.icon, {
1187
+ e.html(`<g>${await g(n.icon, {
1188
1188
  height: f,
1189
1189
  width: f,
1190
1190
  fallbackPrefix: ""
1191
1191
  })}</g>`);
1192
- let t = e.node().getBBox(), n = t.width, i = t.height, a = t.x, o = t.y;
1193
- e.attr("transform", `translate(${-n / 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};`);
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
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(r, z), r.intersect = function(e) {
1196
- var n, i, a;
1197
- if (t.info("iconSquare intersect", r, e), !r.label) return q.rect(r, e);
1198
- let o = (n = r.x) == null ? 0 : n, s = (i = r.y) == null ? 0 : i, c = (a = r.height) == null ? 0 : a, l = [];
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
1199
  return l = v ? [
1200
1200
  {
1201
1201
  x: o - h.width / 2,
@@ -1262,22 +1262,22 @@ async function Ne(n, r, { config: { themeVariables: i, flowchart: a } }) {
1262
1262
  x: o - T / 2,
1263
1263
  y: s - c / 2 + x
1264
1264
  }
1265
- ], q.polygon(r, l, e);
1265
+ ], q.polygon(n, l, e);
1266
1266
  }, m;
1267
1267
  }
1268
- n(Ne, "icon");
1269
- async function Pe(n, r, { config: { themeVariables: i, flowchart: a } }) {
1268
+ a(Ne, "icon");
1269
+ async function Pe(t, n, { config: { themeVariables: r, flowchart: a } }) {
1270
1270
  var o, s, c, l;
1271
- let { labelStyles: u } = b(r);
1272
- r.labelStyle = u;
1273
- let d = (o = r.assetHeight) == null ? 48 : o, f = (s = r.assetWidth) == null ? 48 : s, p = Math.max(d, f), m = a == null ? void 0 : a.wrappingWidth;
1274
- r.width = Math.max(p, m == null ? 0 : m);
1275
- let { shapeSvg: h, bbox: _, label: v } = await w(n, r, "icon-shape default"), x = r.label ? 8 : 0, T = r.pos === "t", { nodeBorder: D, mainBkg: O } = i, { stylesMap: k } = S(r), A = C.svg(h), j = y(r, {});
1276
- r.look !== "handDrawn" && (j.roughness = 0, j.fillStyle = "solid");
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
1277
  let M = k.get("fill");
1278
1278
  j.stroke = M == null ? O : M;
1279
1279
  let N = h.append("g");
1280
- r.icon && N.html(`<g>${await g(r.icon, {
1280
+ n.icon && N.html(`<g>${await g(n.icon, {
1281
1281
  height: p,
1282
1282
  width: p,
1283
1283
  fallbackPrefix: ""
@@ -1286,40 +1286,40 @@ async function Pe(n, r, { config: { themeVariables: i, flowchart: a } }) {
1286
1286
  fill: "transparent",
1287
1287
  stroke: "none"
1288
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(r, G), r.intersect = function(e) {
1290
- return t.info("iconSquare intersect", r, e), q.rect(r, e);
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
1291
  }, h;
1292
1292
  }
1293
- n(Pe, "iconCircle");
1294
- async function Fe(n, r, { config: { themeVariables: i, flowchart: a } }) {
1293
+ a(Pe, "iconCircle");
1294
+ async function Fe(t, n, { config: { themeVariables: r, flowchart: a } }) {
1295
1295
  var o, s, c;
1296
- let { labelStyles: l } = b(r);
1297
- r.labelStyle = l;
1298
- let u = (o = r.assetHeight) == null ? 48 : o, d = (s = r.assetWidth) == null ? 48 : s, f = Math.max(u, d), p = a == null ? void 0 : a.wrappingWidth;
1299
- r.width = Math.max(f, p == null ? 0 : p);
1300
- let { shapeSvg: m, bbox: h, halfPadding: _, label: v } = await w(n, r, "icon-shape default"), x = r.pos === "t", T = f + _ * 2, D = f + _ * 2, { nodeBorder: O, mainBkg: k } = i, { stylesMap: A } = S(r), j = -D / 2, M = -T / 2, N = r.label ? 8 : 0, F = C.svg(m), I = y(r, {});
1301
- r.look !== "handDrawn" && (I.roughness = 0, I.fillStyle = "solid");
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
1302
  let L = A.get("fill");
1303
1303
  I.stroke = L == null ? k : L;
1304
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
1305
  fill: "transparent",
1306
1306
  stroke: "none"
1307
1307
  })), H = m.insert(() => R, ":first-child").attr("class", "icon-shape2"), U = m.insert(() => V);
1308
- if (r.icon) {
1308
+ if (n.icon) {
1309
1309
  var W;
1310
1310
  let e = m.append("g");
1311
- e.html(`<g>${await g(r.icon, {
1311
+ e.html(`<g>${await g(n.icon, {
1312
1312
  height: f,
1313
1313
  width: f,
1314
1314
  fallbackPrefix: ""
1315
1315
  })}</g>`);
1316
- let t = e.node().getBBox(), n = t.width, i = t.height, a = t.x, o = t.y;
1317
- e.attr("transform", `translate(${-n / 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};`);
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
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(r, U), r.intersect = function(e) {
1320
- var n, i, a;
1321
- if (t.info("iconSquare intersect", r, e), !r.label) return q.rect(r, e);
1322
- let o = (n = r.x) == null ? 0 : n, s = (i = r.y) == null ? 0 : i, c = (a = r.height) == null ? 0 : a, l = [];
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
1323
  return l = x ? [
1324
1324
  {
1325
1325
  x: o - h.width / 2,
@@ -1386,39 +1386,39 @@ async function Fe(n, r, { config: { themeVariables: i, flowchart: a } }) {
1386
1386
  x: o - D / 2,
1387
1387
  y: s - c / 2 + T
1388
1388
  }
1389
- ], q.polygon(r, l, e);
1389
+ ], q.polygon(n, l, e);
1390
1390
  }, m;
1391
1391
  }
1392
- n(Fe, "iconRounded");
1393
- async function Ie(n, r, { config: { themeVariables: i, flowchart: a } }) {
1392
+ a(Fe, "iconRounded");
1393
+ async function Ie(t, n, { config: { themeVariables: r, flowchart: a } }) {
1394
1394
  var o, s, c;
1395
- let { labelStyles: l } = b(r);
1396
- r.labelStyle = l;
1397
- let u = (o = r.assetHeight) == null ? 48 : o, d = (s = r.assetWidth) == null ? 48 : s, f = Math.max(u, d), p = a == null ? void 0 : a.wrappingWidth;
1398
- r.width = Math.max(f, p == null ? 0 : p);
1399
- let { shapeSvg: m, bbox: h, halfPadding: _, label: v } = await w(n, r, "icon-shape default"), x = r.pos === "t", T = f + _ * 2, D = f + _ * 2, { nodeBorder: O, mainBkg: k } = i, { stylesMap: A } = S(r), j = -D / 2, M = -T / 2, N = r.label ? 8 : 0, F = C.svg(m), I = y(r, {});
1400
- r.look !== "handDrawn" && (I.roughness = 0, I.fillStyle = "solid");
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
1401
  let L = A.get("fill");
1402
1402
  I.stroke = L == null ? k : L;
1403
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
1404
  fill: "transparent",
1405
1405
  stroke: "none"
1406
1406
  })), H = m.insert(() => R, ":first-child"), U = m.insert(() => V);
1407
- if (r.icon) {
1407
+ if (n.icon) {
1408
1408
  var W;
1409
1409
  let e = m.append("g");
1410
- e.html(`<g>${await g(r.icon, {
1410
+ e.html(`<g>${await g(n.icon, {
1411
1411
  height: f,
1412
1412
  width: f,
1413
1413
  fallbackPrefix: ""
1414
1414
  })}</g>`);
1415
- let t = e.node().getBBox(), n = t.width, i = t.height, a = t.x, o = t.y;
1416
- e.attr("transform", `translate(${-n / 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};`);
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
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(r, U), r.intersect = function(e) {
1419
- var n, i, a;
1420
- if (t.info("iconSquare intersect", r, e), !r.label) return q.rect(r, e);
1421
- let o = (n = r.x) == null ? 0 : n, s = (i = r.y) == null ? 0 : i, c = (a = r.height) == null ? 0 : a, l = [];
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
1422
  return l = x ? [
1423
1423
  {
1424
1424
  x: o - h.width / 2,
@@ -1485,36 +1485,36 @@ async function Ie(n, r, { config: { themeVariables: i, flowchart: a } }) {
1485
1485
  x: o - D / 2,
1486
1486
  y: s - c / 2 + T
1487
1487
  }
1488
- ], q.polygon(r, l, e);
1488
+ ], q.polygon(n, l, e);
1489
1489
  }, m;
1490
1490
  }
1491
- n(Ie, "iconSquare");
1492
- async function Le(n, r, { config: { flowchart: i } }) {
1491
+ a(Ie, "iconSquare");
1492
+ async function Le(t, n, { config: { flowchart: r } }) {
1493
1493
  var a, o, s, c;
1494
1494
  let l = new Image();
1495
- l.src = (a = r == null ? void 0 : r.img) == null ? "" : a, await l.decode();
1495
+ l.src = (a = n == null ? void 0 : n.img) == null ? "" : a, await l.decode();
1496
1496
  let u = Number(l.naturalWidth.toString().replace("px", "")), d = Number(l.naturalHeight.toString().replace("px", ""));
1497
- r.imageAspectRatio = u / d;
1498
- let { labelStyles: f } = b(r);
1499
- r.labelStyle = f;
1500
- let p = i == null ? void 0 : i.wrappingWidth;
1501
- r.defaultWidth = i == null ? void 0 : i.wrappingWidth;
1502
- let m = Math.max(r.label ? p == null ? 0 : p : 0, (o = r == null ? void 0 : r.assetWidth) == null ? u : o), h = r.constraint === "on" && r != null && r.assetHeight ? r.assetHeight * r.imageAspectRatio : m, g = r.constraint === "on" ? h / r.imageAspectRatio : (s = r == null ? void 0 : r.assetHeight) == null ? d : s;
1503
- r.width = Math.max(h, p == null ? 0 : p);
1504
- let { shapeSvg: _, bbox: v, label: x } = await w(n, r, "image-shape default"), S = r.pos === "t", T = -h / 2, D = -g / 2, O = r.label ? 8 : 0, k = C.svg(_), A = y(r, {});
1505
- r.look !== "handDrawn" && (A.roughness = 0, A.fillStyle = "solid");
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
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
1507
  fill: "none",
1508
1508
  stroke: "none"
1509
1509
  })), F = _.insert(() => j, ":first-child"), I = _.insert(() => P);
1510
- if (r.img) {
1510
+ if (n.img) {
1511
1511
  let e = _.append("image");
1512
- e.attr("href", r.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})`);
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
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(r, I), r.intersect = function(e) {
1515
- var n, i, a;
1516
- if (t.info("iconSquare intersect", r, e), !r.label) return q.rect(r, e);
1517
- let o = (n = r.x) == null ? 0 : n, s = (i = r.y) == null ? 0 : i, c = (a = r.height) == null ? 0 : a, l = [];
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
1518
  return l = S ? [
1519
1519
  {
1520
1520
  x: o - v.width / 2,
@@ -1581,10 +1581,10 @@ async function Le(n, r, { config: { flowchart: i } }) {
1581
1581
  x: o - h / 2,
1582
1582
  y: s - c / 2 + g
1583
1583
  }
1584
- ], q.polygon(r, l, e);
1584
+ ], q.polygon(n, l, e);
1585
1585
  }, _;
1586
1586
  }
1587
- n(Le, "imageSquare");
1587
+ a(Le, "imageSquare");
1588
1588
  async function Re(e, t) {
1589
1589
  var n, r, i;
1590
1590
  let { labelStyles: a, nodeStyles: o } = b(t);
@@ -1615,22 +1615,22 @@ async function Re(e, t) {
1615
1615
  return q.polygon(t, m, e);
1616
1616
  }, u;
1617
1617
  }
1618
- n(Re, "inv_trapezoid");
1619
- async function ze(e, t, n) {
1620
- let { labelStyles: r, nodeStyles: i } = b(t);
1621
- t.labelStyle = r;
1622
- let { shapeSvg: a, bbox: o } = await w(e, t, D(t)), s = Math.max(o.width + n.labelPaddingX * 2, (t == null ? void 0 : t.width) || 0), c = Math.max(o.height + n.labelPaddingY * 2, (t == null ? void 0 : t.height) || 0), l = -s / 2, u = -c / 2, d, { rx: f, ry: m } = t, { cssStyles: h } = t;
1623
- if (n != null && n.rx && n.ry && (f = n.rx, m = n.ry), t.look === "handDrawn") {
1624
- let e = C.svg(a), n = y(t, {}), r = f || m ? e.path(P(l, u, s, c, f || 0), n) : e.rectangle(l, u, s, c, n);
1625
- d = a.insert(() => r, ":first-child"), d.attr("class", "basic label-container").attr("style", p(h));
1626
- } else d = a.insert("rect", ":first-child"), d.attr("class", "basic label-container").attr("style", i).attr("rx", p(f)).attr("ry", p(m)).attr("x", l).attr("y", u).attr("width", s).attr("height", c);
1627
- return E(t, d), t.calcIntersect = function(e, t) {
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
1628
  return q.rect(e, t);
1629
1629
  }, t.intersect = function(e) {
1630
1630
  return q.rect(t, e);
1631
- }, a;
1631
+ }, o;
1632
1632
  }
1633
- n(ze, "drawRect");
1633
+ a(ze, "drawRect");
1634
1634
  async function Be(e, t) {
1635
1635
  var n, r;
1636
1636
  let { shapeSvg: i, bbox: a, label: o } = await w(e, t, "label"), s = i.insert("rect", ":first-child");
@@ -1638,7 +1638,7 @@ async function Be(e, t) {
1638
1638
  return q.rect(t, e);
1639
1639
  }, i;
1640
1640
  }
1641
- n(Be, "labelRect");
1641
+ a(Be, "labelRect");
1642
1642
  async function Ve(e, t) {
1643
1643
  var n, r, i;
1644
1644
  let { labelStyles: a, nodeStyles: o } = b(t);
@@ -1669,7 +1669,7 @@ async function Ve(e, t) {
1669
1669
  return q.polygon(t, m, e);
1670
1670
  }, u;
1671
1671
  }
1672
- n(Ve, "lean_left");
1672
+ a(Ve, "lean_left");
1673
1673
  async function He(e, t) {
1674
1674
  var n, r, i;
1675
1675
  let { labelStyles: a, nodeStyles: o } = b(t);
@@ -1700,12 +1700,12 @@ async function He(e, t) {
1700
1700
  return q.polygon(t, m, e);
1701
1701
  }, u;
1702
1702
  }
1703
- n(He, "lean_right");
1704
- function Ue(e, n) {
1705
- var r, i, a;
1706
- let { labelStyles: o, nodeStyles: s } = b(n);
1707
- n.label = "", n.labelStyle = o;
1708
- let c = e.insert("g").attr("class", D(n)).attr("id", (r = n.domId) == null ? n.id : r), { cssStyles: l } = n, u = Math.max(35, (i = n == null ? void 0 : n.width) == null ? 0 : i), d = Math.max(35, (a = n == null ? void 0 : n.height) == null ? 0 : a), f = [
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
1709
  {
1710
1710
  x: u,
1711
1711
  y: 0
@@ -1730,15 +1730,15 @@ function Ue(e, n) {
1730
1730
  x: 14,
1731
1731
  y: d - 7 / 2
1732
1732
  }
1733
- ], p = C.svg(c), m = y(n, {});
1734
- n.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
1733
+ ], p = C.svg(c), m = y(t, {});
1734
+ t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
1735
1735
  let h = O(f), g = p.path(h, m), _ = c.insert(() => g, ":first-child");
1736
- return _.attr("class", "outer-path"), l && n.look !== "handDrawn" && _.selectAll("path").attr("style", l), s && n.look !== "handDrawn" && _.selectAll("path").attr("style", s), _.attr("transform", `translate(-${u / 2},${-d})`), E(n, _), n.intersect = function(e) {
1737
- return t.info("lightningBolt intersect", n, e), q.polygon(n, f, e);
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
1738
  }, c;
1739
1739
  }
1740
- n(Ue, "lightningBolt");
1741
- var We = /* @__PURE__ */ n((e, t, n, r, i, a, o) => [
1740
+ a(Ue, "lightningBolt");
1741
+ var We = /* @__PURE__ */ a((e, t, n, r, i, a, o) => [
1742
1742
  `M${e},${t + a}`,
1743
1743
  `a${i},${a} 0,0,0 ${n},0`,
1744
1744
  `a${i},${a} 0,0,0 ${-n},0`,
@@ -1747,7 +1747,7 @@ var We = /* @__PURE__ */ n((e, t, n, r, i, a, o) => [
1747
1747
  `l0,${-r}`,
1748
1748
  `M${e},${t + a + o}`,
1749
1749
  `a${i},${a} 0,0,0 ${n},0`
1750
- ].join(" "), "createCylinderPathD"), Ge = /* @__PURE__ */ n((e, t, n, r, i, a, o) => [
1750
+ ].join(" "), "createCylinderPathD"), Ge = /* @__PURE__ */ a((e, t, n, r, i, a, o) => [
1751
1751
  `M${e},${t + a}`,
1752
1752
  `M${e + n},${t + a}`,
1753
1753
  `a${i},${a} 0,0,0 ${-n},0`,
@@ -1756,28 +1756,28 @@ var We = /* @__PURE__ */ n((e, t, n, r, i, a, o) => [
1756
1756
  `l0,${-r}`,
1757
1757
  `M${e},${t + a + o}`,
1758
1758
  `a${i},${a} 0,0,0 ${n},0`
1759
- ].join(" "), "createOuterCylinderPathD"), Ke = /* @__PURE__ */ n((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;
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
1760
  async function Ye(e, t) {
1761
- var n, r, i;
1762
- let { labelStyles: a, nodeStyles: o } = b(t);
1763
- t.labelStyle = a;
1764
- let s = (n = t.padding) == null ? 0 : n, c = t.look === "neo" ? 16 : s, l = t.look === "neo" ? 24 : s;
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
1765
  if (t.width || t.height) {
1766
- var u, d, f;
1767
- let e = (u = t.width) == null ? 0 : u;
1768
- t.width = ((d = t.width) == null ? 0 : d) - c, t.width < Je && (t.width = Je);
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
1769
  let n = e / 2 / (2.5 + e / 50);
1770
- t.height = ((f = t.height) == null ? 0 : f) - l - n * 3, t.height < qe && (t.height = qe);
1770
+ t.height = ((p = t.height) == null ? 0 : p) - u - n * 3, t.height < qe && (t.height = qe);
1771
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) + c * 2, v = _ / 2, x = v / (2.5 + _ / 50), S = (t != null && t.height ? t == null ? void 0 : t.height : h.height) + x + l * 2, T = S * .1, O, { cssStyles: k } = t;
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
1773
  if (t.look === "handDrawn") {
1774
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
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
1776
  } else {
1777
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", p(k)).attr("style", o);
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
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 - ((r = h.left) == null ? 0 : r))}, ${-(h.height / 2) + x - (h.y - ((i = h.top) == null ? 0 : i))})`), t.intersect = function(e) {
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
1781
  var n, r, i, a, o;
1782
1782
  let s = q.rect(t, e), c = s.x - ((n = t.x) == null ? 0 : n);
1783
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)) {
@@ -1788,7 +1788,7 @@ async function Ye(e, t) {
1788
1788
  return s;
1789
1789
  }, m;
1790
1790
  }
1791
- n(Ye, "linedCylinder");
1791
+ a(Ye, "linedCylinder");
1792
1792
  async function Xe(e, t) {
1793
1793
  var n, r, i, a, o;
1794
1794
  let { labelStyles: s, nodeStyles: c } = b(t);
@@ -1836,7 +1836,7 @@ async function Xe(e, t) {
1836
1836
  return q.polygon(t, A, e);
1837
1837
  }, p;
1838
1838
  }
1839
- n(Xe, "linedWaveEdgedRect");
1839
+ a(Xe, "linedWaveEdgedRect");
1840
1840
  async function Ze(e, t) {
1841
1841
  var n, r, i;
1842
1842
  let { labelStyles: a, nodeStyles: o } = b(t);
@@ -1929,7 +1929,7 @@ async function Ze(e, t) {
1929
1929
  return q.polygon(t, N, e);
1930
1930
  }, p;
1931
1931
  }
1932
- n(Ze, "multiRect");
1932
+ a(Ze, "multiRect");
1933
1933
  async function Qe(e, t) {
1934
1934
  var n, r, i, a, o;
1935
1935
  let { labelStyles: s, nodeStyles: c } = b(t);
@@ -2017,23 +2017,23 @@ async function Qe(e, t) {
2017
2017
  return q.polygon(t, F, e);
2018
2018
  }, l;
2019
2019
  }
2020
- n(Qe, "multiWaveEdgedRectangle");
2020
+ a(Qe, "multiWaveEdgedRectangle");
2021
2021
  async function $e(e, t, { config: { themeVariables: n } }) {
2022
2022
  var r, i, a, o, s, c;
2023
- let { labelStyles: l, nodeStyles: f } = b(t);
2024
- t.labelStyle = l, t.useHtmlLabels || u(d()) || (t.centerLabel = !0);
2025
- let { shapeSvg: p, bbox: m, label: h } = await w(e, t, D(t)), g = Math.max(m.width + ((r = t.padding) == null ? 0 : r) * 2, (i = t == null ? void 0 : t.width) == null ? 0 : i), _ = Math.max(m.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(p), O = y(t, {
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
2026
  fill: n.noteBkgColor,
2027
2027
  stroke: n.noteBorderColor
2028
2028
  });
2029
2029
  t.look !== "handDrawn" && (O.roughness = 0, O.fillStyle = "solid");
2030
- let k = T.rectangle(v, x, g, _, O), A = p.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), f && t.look !== "handDrawn" && A.selectAll("path").attr("style", f), h.attr("transform", `translate(${-m.width / 2 - (m.x - ((s = m.left) == null ? 0 : s))}, ${-(m.height / 2) - (m.y - ((c = m.top) == null ? 0 : c))})`), E(t, A), t.intersect = function(e) {
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
2032
  return q.rect(t, e);
2033
- }, p;
2033
+ }, d;
2034
2034
  }
2035
- n($e, "note");
2036
- var et = /* @__PURE__ */ n((e, t, n) => [
2035
+ a($e, "note");
2036
+ var et = /* @__PURE__ */ a((e, t, n) => [
2037
2037
  `M${e + n / 2},${t}`,
2038
2038
  `L${e + n},${t - n / 2}`,
2039
2039
  `L${e + n / 2},${t - n}`,
@@ -2093,7 +2093,7 @@ async function tt(e, t) {
2093
2093
  return this.calcIntersect(t, e);
2094
2094
  }, o;
2095
2095
  }
2096
- n(tt, "question");
2096
+ a(tt, "question");
2097
2097
  async function nt(e, t) {
2098
2098
  var n, r, i, a, o;
2099
2099
  let { labelStyles: s, nodeStyles: c } = b(t);
@@ -2126,35 +2126,35 @@ async function nt(e, t) {
2126
2126
  return q.polygon(t, S, e);
2127
2127
  }, f;
2128
2128
  }
2129
- n(nt, "rect_left_inv_arrow");
2130
- async function rt(e, n) {
2131
- let { labelStyles: i, nodeStyles: a } = b(n);
2132
- n.labelStyle = i;
2133
- let s;
2134
- s = n.cssClasses ? "node " + n.cssClasses : "node default";
2135
- let c = e.insert("g").attr("class", s).attr("id", n.domId || n.id), l = c.insert("g"), d = c.insert("g").attr("class", "label").attr("style", a), f = n.description, p = n.label, m = await N(d, p, n.labelStyle, !0, !0), h = {
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
2136
  width: 0,
2137
2137
  height: 0
2138
2138
  };
2139
- if (u(o())) {
2140
- let e = m.children[0], t = r(m);
2139
+ if (p(l())) {
2140
+ let e = m.children[0], t = o(m);
2141
2141
  h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
2142
2142
  }
2143
- t.info("Text 2", f);
2144
- let g = f || [], _ = m.getBBox(), v = await N(d, Array.isArray(g) ? g.join("<br/>") : g, n.labelStyle, !0, !0), x = v.children[0], S = r(v);
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
2145
  h = x.getBoundingClientRect(), S.attr("width", h.width), S.attr("height", h.height);
2146
- let w = (n.padding || 0) / 2;
2147
- r(v).attr("transform", "translate( " + (h.width > _.width ? 0 : (_.width - h.width) / 2) + ", " + (_.height + w + 5) + ")"), r(m).attr("transform", "translate( " + (h.width < _.width ? 0 : -(_.width - h.width) / 2) + ", 0)"), h = d.node().getBBox(), d.attr("transform", "translate(" + -h.width / 2 + ", " + (-h.height / 2 - w + 3) + ")");
2148
- let T = h.width + (n.padding || 0), D = h.height + (n.padding || 0), O = -h.width / 2 - w, k = -h.height / 2 - w, A, j;
2149
- if (n.look === "handDrawn") {
2150
- let e = C.svg(c), r = y(n, {}), i = e.path(P(O, k, T, D, n.rx || 0), r), a = e.line(-h.width / 2 - w, -h.height / 2 - w + _.height + w, h.width / 2 + w, -h.height / 2 - w + _.height + w, r);
2151
- j = c.insert(() => (t.debug("Rough node insert CXC", i), a), ":first-child"), A = c.insert(() => (t.debug("Rough node insert CXC", i), i), ":first-child");
2152
- } else A = l.insert("rect", ":first-child"), j = l.insert("line"), A.attr("class", "outer title-state").attr("style", a).attr("x", -h.width / 2 - w).attr("y", -h.height / 2 - w).attr("width", h.width + (n.padding || 0)).attr("height", h.height + (n.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(n, A), n.intersect = function(e) {
2154
- return q.rect(n, e);
2155
- }, c;
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
2156
  }
2157
- n(rt, "rectWithTitle");
2157
+ a(rt, "rectWithTitle");
2158
2158
  async function it(e, t, { config: { themeVariables: n } }) {
2159
2159
  var r, i, a;
2160
2160
  let o = (r = n == null ? void 0 : n.radius) == null ? 5 : r;
@@ -2166,13 +2166,13 @@ async function it(e, t, { config: { themeVariables: n } }) {
2166
2166
  labelPaddingY: ((a = t == null ? void 0 : t.padding) == null ? 0 : a) * 1
2167
2167
  });
2168
2168
  }
2169
- n(it, "roundedRect");
2169
+ a(it, "roundedRect");
2170
2170
  var at = 8;
2171
2171
  async function ot(e, t) {
2172
- var n, r, i, a, o, s;
2173
- let { labelStyles: c, nodeStyles: l } = b(t);
2174
- t.labelStyle = c;
2175
- let u = t.look === "neo" ? 16 : (n = t.padding) == null ? 0 : n, d = t.look === "neo" ? 12 : (r = t.padding) == null ? 0 : r, { shapeSvg: f, bbox: m, label: h } = await w(e, t, D(t)), g = ((i = t == null ? void 0 : t.width) == null ? m.width : i) + u * 2 + (t.look === "neo" ? at : at * 2), _ = ((a = t == null ? void 0 : t.height) == null ? m.height : a) + d * 2, v = g - at, x = _, S = at - g / 2, T = -_ / 2, { cssStyles: O } = t, k = C.svg(f), A = y(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
2176
  t.look !== "handDrawn" && (A.roughness = 0, A.fillStyle = "solid");
2177
2177
  let j = [
2178
2178
  {
@@ -2203,12 +2203,12 @@ async function ot(e, t) {
2203
2203
  x: S,
2204
2204
  y: T + x
2205
2205
  }
2206
- ], M = k.polygon(j.map((e) => [e.x, e.y]), A), N = f.insert(() => M, ":first-child");
2207
- return N.attr("class", "basic label-container outer-path").attr("style", p(O)), l && t.look !== "handDrawn" && N.selectAll("path").attr("style", l), O && t.look !== "handDrawn" && N.selectAll("path").attr("style", l), h.attr("transform", `translate(${at / 2 - m.width / 2 - (m.x - ((o = m.left) == null ? 0 : o))}, ${-(m.height / 2) - (m.y - ((s = m.top) == null ? 0 : s))})`), E(t, N), t.intersect = function(e) {
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
2208
  return q.rect(t, e);
2209
- }, f;
2209
+ }, p;
2210
2210
  }
2211
- n(ot, "shadedProcess");
2211
+ a(ot, "shadedProcess");
2212
2212
  async function st(e, t) {
2213
2213
  var n, r, i, a, o;
2214
2214
  let { labelStyles: s, nodeStyles: c } = b(t);
@@ -2242,7 +2242,7 @@ async function st(e, t) {
2242
2242
  return q.polygon(t, N, e);
2243
2243
  }, m;
2244
2244
  }
2245
- n(st, "slopedRect");
2245
+ a(st, "slopedRect");
2246
2246
  async function ct(e, t) {
2247
2247
  var n, r;
2248
2248
  let i = (n = t.padding) == null ? 0 : n, a = t.look === "neo" ? 16 : i * 2, o = t.look === "neo" ? 12 : i;
@@ -2254,7 +2254,7 @@ async function ct(e, t) {
2254
2254
  labelPaddingY: o
2255
2255
  });
2256
2256
  }
2257
- n(ct, "squareRect");
2257
+ a(ct, "squareRect");
2258
2258
  async function lt(e, t) {
2259
2259
  var n;
2260
2260
  let { labelStyles: r, nodeStyles: i } = b(t);
@@ -2281,7 +2281,7 @@ async function lt(e, t) {
2281
2281
  return q.polygon(t, g, e);
2282
2282
  }, c;
2283
2283
  }
2284
- n(lt, "stadium");
2284
+ a(lt, "stadium");
2285
2285
  async function ut(e, t) {
2286
2286
  return ze(e, t, {
2287
2287
  rx: t.look === "neo" ? 3 : 5,
@@ -2289,7 +2289,7 @@ async function ut(e, t) {
2289
2289
  classes: "flowchart-node"
2290
2290
  });
2291
2291
  }
2292
- n(ut, "state");
2292
+ a(ut, "state");
2293
2293
  function dt(t, n, { config: { themeVariables: r } }) {
2294
2294
  var i, a;
2295
2295
  let { labelStyles: o, nodeStyles: s } = b(n);
@@ -2321,7 +2321,7 @@ function dt(t, n, { config: { themeVariables: r } }) {
2321
2321
  return q.circle(n, ((t = n.width) == null ? 0 : t) / 2, e);
2322
2322
  }, h;
2323
2323
  }
2324
- n(dt, "stateEnd");
2324
+ a(dt, "stateEnd");
2325
2325
  function ft(e, t, { config: { themeVariables: n } }) {
2326
2326
  let { lineColor: r, nodeShadow: i } = n;
2327
2327
  if (t.width || t.height) {
@@ -2348,13 +2348,13 @@ function ft(e, t, { config: { themeVariables: n } }) {
2348
2348
  return q.circle(t, ((n = t.width) == null ? 7 : n) / 2, e);
2349
2349
  }, s;
2350
2350
  }
2351
- n(ft, "stateStart");
2351
+ a(ft, "stateStart");
2352
2352
  var pt = 8;
2353
2353
  async function mt(e, t) {
2354
- var n, r, i;
2355
- let { labelStyles: a, nodeStyles: o } = b(t);
2356
- t.labelStyle = a;
2357
- let s = (n = t == null ? void 0 : t.padding) == null ? 8 : n, c = t.look === "neo" ? 28 : s, l = t.look === "neo" ? 12 : s, { shapeSvg: u, bbox: d } = await w(e, t, D(t)), f = ((r = t == null ? void 0 : t.width) == null ? d.width : r) + 2 * pt + c, m = ((i = t == null ? void 0 : t.height) == null ? d.height : i) + l, h = f - 2 * pt, g = m, _ = -f / 2, v = -m / 2, x = [
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
2358
  {
2359
2359
  x: 0,
2360
2360
  y: 0
@@ -2397,19 +2397,19 @@ async function mt(e, t) {
2397
2397
  }
2398
2398
  ];
2399
2399
  if (t.look === "handDrawn") {
2400
- let e = C.svg(u), n = y(t, {}), r = e.rectangle(_, v, h + 16, g, n), i = e.line(_ + pt, v, _ + pt, v + g, n), a = e.line(_ + pt + h, v, _ + pt + h, v + g, n);
2401
- u.insert(() => i, ":first-child"), u.insert(() => a, ":first-child");
2402
- let o = u.insert(() => r, ":first-child"), { cssStyles: s } = t;
2403
- o.attr("class", "basic label-container").attr("style", p(s)), E(t, o);
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
2404
  } else {
2405
- let e = Y(u, h, g, x);
2406
- o && e.attr("style", o), E(t, e);
2405
+ let e = Y(d, h, g, x);
2406
+ s && e.attr("style", s), E(t, e);
2407
2407
  }
2408
2408
  return t.intersect = function(e) {
2409
2409
  return q.polygon(t, x, e);
2410
- }, u;
2410
+ }, d;
2411
2411
  }
2412
- n(mt, "subroutine");
2412
+ a(mt, "subroutine");
2413
2413
  var ht = .2;
2414
2414
  async function gt(t, n) {
2415
2415
  var r;
@@ -2457,7 +2457,7 @@ async function gt(t, n) {
2457
2457
  return q.polygon(n, A, e);
2458
2458
  }, d;
2459
2459
  }
2460
- n(gt, "taggedRect");
2460
+ a(gt, "taggedRect");
2461
2461
  async function _t(t, n) {
2462
2462
  var r, i, a, o, s, c, l, u;
2463
2463
  let { labelStyles: d, nodeStyles: f } = b(n);
@@ -2497,7 +2497,7 @@ async function _t(t, n) {
2497
2497
  return q.polygon(n, N, e);
2498
2498
  }, p;
2499
2499
  }
2500
- n(_t, "taggedWaveEdgedRectangle");
2500
+ a(_t, "taggedWaveEdgedRectangle");
2501
2501
  async function vt(e, t) {
2502
2502
  var n, r;
2503
2503
  let { labelStyles: i, nodeStyles: a } = b(t);
@@ -2507,42 +2507,42 @@ async function vt(e, t) {
2507
2507
  return q.rect(t, e);
2508
2508
  }, o;
2509
2509
  }
2510
- n(vt, "text");
2511
- var yt = /* @__PURE__ */ n((e, t, n, r, i, a) => `M${e},${t}
2510
+ a(vt, "text");
2511
+ var yt = /* @__PURE__ */ a((e, t, n, r, i, a) => `M${e},${t}
2512
2512
  a${i},${a} 0,0,1 0,${-r}
2513
2513
  l${n},0
2514
2514
  a${i},${a} 0,0,1 0,${r}
2515
2515
  M${n},${-r}
2516
2516
  a${i},${a} 0,0,0 0,${r}
2517
- l${-n},0`, "createCylinderPathD"), bt = /* @__PURE__ */ n((e, t, n, r, i, a) => [
2517
+ l${-n},0`, "createCylinderPathD"), bt = /* @__PURE__ */ a((e, t, n, r, i, a) => [
2518
2518
  `M${e},${t}`,
2519
2519
  `M${e + n},${t}`,
2520
2520
  `a${i},${a} 0,0,0 0,${-r}`,
2521
2521
  `l${-n},0`,
2522
2522
  `a${i},${a} 0,0,0 0,${r}`,
2523
2523
  `l${n},0`
2524
- ].join(" "), "createOuterCylinderPathD"), xt = /* @__PURE__ */ n((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;
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
2525
  async function wt(e, t) {
2526
- var n, r, i;
2527
- let { labelStyles: a, nodeStyles: o } = b(t);
2528
- t.labelStyle = a;
2529
- let s = (n = t.padding) == null ? 0 : n, c = t.look === "neo" ? 12 : s / 2;
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
2530
  if (t.width || t.height) {
2531
- var l, u, d;
2532
- let e = (l = t.height) == null ? 0 : l;
2533
- t.height = ((u = t.height) == null ? 0 : u) - c, t.height < St && (t.height = St);
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
2534
  let n = e / 2 / (2.5 + e / 50);
2535
- t.width = ((d = t.width) == null ? 0 : d) - c - n * 3, t.width < Ct && (t.width = Ct);
2535
+ t.width = ((f = t.width) == null ? 0 : f) - l - n * 3, t.width < Ct && (t.width = Ct);
2536
2536
  }
2537
- let { shapeSvg: f, bbox: m, label: h } = await w(e, t, D(t)), g = (t.height ? t.height : m.height) + c, _ = g / 2, v = _ / (2.5 + g / 50), x = (t.width ? t.width : m.width) + v + c, { cssStyles: S } = t, T;
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
2538
  if (t.look === "handDrawn") {
2539
- let e = C.svg(f), 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 = f.insert(() => a, ":first-child"), T = f.insert(() => i, ":first-child"), T.attr("class", "basic label-container"), S && T.attr("style", S);
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
2541
  } else {
2542
2542
  let e = yt(0, 0, x, g, v, _);
2543
- T = f.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container").attr("style", p(S)).attr("style", o), T.attr("class", "basic label-container outer-path"), S && T.selectAll("path").attr("style", S), o && T.selectAll("path").attr("style", o);
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
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 - ((r = m.left) == null ? 0 : r))}, ${-(m.height / 2) - (m.y - ((i = m.top) == null ? 0 : i))})`), E(t, T), t.intersect = function(e) {
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
2546
  var n, r, i, a, o;
2547
2547
  let s = q.rect(t, e), c = s.y - ((n = t.y) == null ? 0 : n);
2548
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)) {
@@ -2551,9 +2551,9 @@ async function wt(e, t) {
2551
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
2552
  }
2553
2553
  return s;
2554
- }, f;
2554
+ }, p;
2555
2555
  }
2556
- n(wt, "tiltedCylinder");
2556
+ a(wt, "tiltedCylinder");
2557
2557
  async function Tt(e, t) {
2558
2558
  var n, r, i;
2559
2559
  let { labelStyles: a, nodeStyles: o } = b(t);
@@ -2584,7 +2584,7 @@ async function Tt(e, t) {
2584
2584
  return q.polygon(t, m, e);
2585
2585
  }, u;
2586
2586
  }
2587
- n(Tt, "trapezoid");
2587
+ a(Tt, "trapezoid");
2588
2588
  async function Et(e, t) {
2589
2589
  var n;
2590
2590
  let { labelStyles: r, nodeStyles: i } = b(t);
@@ -2626,18 +2626,18 @@ async function Et(e, t) {
2626
2626
  return q.polygon(t, _, e);
2627
2627
  }, u;
2628
2628
  }
2629
- n(Et, "trapezoidalPentagon");
2629
+ a(Et, "trapezoidalPentagon");
2630
2630
  var Dt = 10, Ot = 10;
2631
- async function kt(e, n) {
2632
- var r, i, a, c, l;
2633
- let { labelStyles: u, nodeStyles: d } = b(n);
2634
- n.labelStyle = u;
2635
- let f = (r = n.padding) == null ? 0 : r, p = n.look === "neo" ? f * 2 : f;
2636
- if (n.width || n.height) {
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
2637
  var m, h;
2638
- n.width = (((m = n == null ? void 0 : n.width) == null ? 0 : m) - p) / 2, n.width < Ot && (n.width = Ot), n.height = (h = n == null ? void 0 : n.height) == null ? 0 : h, n.height < Dt && (n.height = Dt);
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
2639
  }
2640
- let { shapeSvg: g, bbox: _, label: v } = await w(e, n, D(n)), x = s((i = o().flowchart) == null ? void 0 : i.htmlLabels), S = (n != null && n.width ? n == null ? void 0 : n.width : _.width) + p, T = n != null && n.height ? n == null ? void 0 : n.height : S + _.height, k = T, A = [
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
2641
  {
2642
2642
  x: 0,
2643
2643
  y: 0
@@ -2650,14 +2650,14 @@ async function kt(e, n) {
2650
2650
  x: k / 2,
2651
2651
  y: -T
2652
2652
  }
2653
- ], { cssStyles: j } = n, M = C.svg(g), N = y(n, {});
2654
- n.look !== "handDrawn" && (N.roughness = 0, N.fillStyle = "solid");
2653
+ ], { cssStyles: j } = t, M = C.svg(g), N = y(t, {});
2654
+ t.look !== "handDrawn" && (N.roughness = 0, N.fillStyle = "solid");
2655
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 && n.look !== "handDrawn" && I.selectChildren("path").attr("style", j), d && n.look !== "handDrawn" && I.selectChildren("path").attr("style", d), n.width = S, n.height = T, E(n, I), v.attr("transform", `translate(${-_.width / 2 - (_.x - ((a = _.left) == null ? 0 : a))}, ${T / 2 - (_.height + ((c = n.padding) == null ? 0 : c) / (x ? 2 : 1) - (_.y - ((l = _.top) == null ? 0 : l)))})`), n.intersect = function(e) {
2657
- return t.info("Triangle intersect", n, A, e), q.polygon(n, A, e);
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
2658
  }, g;
2659
2659
  }
2660
- n(kt, "triangle");
2660
+ a(kt, "triangle");
2661
2661
  async function At(e, t) {
2662
2662
  var n, r, i, a, o;
2663
2663
  let { labelStyles: s, nodeStyles: c } = b(t);
@@ -2688,7 +2688,7 @@ async function At(e, t) {
2688
2688
  return q.polygon(t, F, e);
2689
2689
  }, h;
2690
2690
  }
2691
- n(At, "waveEdgedRectangle");
2691
+ a(At, "waveEdgedRectangle");
2692
2692
  async function jt(e, t) {
2693
2693
  var n;
2694
2694
  let { labelStyles: r, nodeStyles: i } = b(t);
@@ -2718,7 +2718,7 @@ async function jt(e, t) {
2718
2718
  return q.polygon(t, x, e);
2719
2719
  }, u;
2720
2720
  }
2721
- n(jt, "waveRectangle");
2721
+ a(jt, "waveRectangle");
2722
2722
  var $ = 10;
2723
2723
  async function Mt(e, t) {
2724
2724
  var n, r, i, a;
@@ -2755,7 +2755,7 @@ async function Mt(e, t) {
2755
2755
  return q.polygon(t, A, e);
2756
2756
  }, f;
2757
2757
  }
2758
- n(Mt, "windowPane");
2758
+ a(Mt, "windowPane");
2759
2759
  var Nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Pt = /* @__PURE__ */ new Set([
2760
2760
  "redux",
2761
2761
  "redux-dark",
@@ -2763,12 +2763,12 @@ var Nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Pt = /* @
2763
2763
  "redux-dark-color"
2764
2764
  ]);
2765
2765
  async function Ft(t, n) {
2766
- var i, a, o, c, l, u;
2766
+ var i, a, s, c, l, d;
2767
2767
  let f = n;
2768
2768
  f.alias && (n.label = f.alias);
2769
- let { theme: p, themeVariables: h } = d(), { rowEven: g, rowOdd: _, nodeBorder: v, borderColorArray: x } = h;
2769
+ let { theme: p, themeVariables: h } = m(), { rowEven: g, rowOdd: _, nodeBorder: v, borderColorArray: x } = h;
2770
2770
  if (n.look === "handDrawn") {
2771
- let { themeVariables: r } = d(), { background: i } = r;
2771
+ let { themeVariables: r } = m(), { background: i } = r;
2772
2772
  await Ft(t, e(e({}, n), {}, {
2773
2773
  id: n.id + "-background",
2774
2774
  domId: (n.domId || n.id) + "-background",
@@ -2776,9 +2776,9 @@ async function Ft(t, n) {
2776
2776
  cssStyles: ["stroke: none", `fill: ${i}`]
2777
2777
  }));
2778
2778
  }
2779
- let S = d();
2779
+ let S = m();
2780
2780
  n.useHtmlLabels = S.htmlLabels;
2781
- let w = (i = (a = S.er) == null ? void 0 : a.diagramPadding) == null ? 10 : i, T = (o = (c = S.er) == null ? void 0 : c.entityPadding) == null ? 6 : o, { cssStyles: O } = n, { labelStyles: k, nodeStyles: A } = b(n);
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
2782
  if (f.attributes.length === 0 && n.label) {
2783
2783
  let e = {
2784
2784
  rx: 0,
@@ -2787,19 +2787,19 @@ async function Ft(t, n) {
2787
2787
  labelPaddingY: w * 1.5,
2788
2788
  classes: ""
2789
2789
  };
2790
- m(n.label, S) + e.labelPaddingX * 2 < S.er.minEntityWidth && (n.width = S.er.minEntityWidth);
2791
- let r = await ze(t, n, e);
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
2792
  if (p != null && Nt.has(p)) {
2793
2793
  var j;
2794
2794
  let e = (j = f.colorIndex) == null ? 0 : j;
2795
- r.attr("data-color-id", `color-${e % x.length}`);
2795
+ i.attr("data-color-id", `color-${e % x.length}`);
2796
2796
  }
2797
- if (!s(S.htmlLabels)) {
2797
+ if (!u(S.htmlLabels)) {
2798
2798
  var M;
2799
- let e = r.select("text"), t = (M = e.node()) == null ? void 0 : M.getBBox();
2799
+ let e = i.select("text"), t = (M = e.node()) == null ? void 0 : M.getBBox();
2800
2800
  e.attr("transform", `translate(${-t.width / 2}, 0)`);
2801
2801
  }
2802
- return r;
2802
+ return i;
2803
2803
  }
2804
2804
  S.htmlLabels || (w *= 1.25, T *= 1.25);
2805
2805
  let N = D(n);
@@ -2836,14 +2836,14 @@ async function Ft(t, n) {
2836
2836
  var n;
2837
2837
  return e + ((n = t == null ? void 0 : t.rowHeight) == null ? 0 : n);
2838
2838
  }, 0));
2839
- let ie = Math.max(ee.width + w * 2, (n == null ? void 0 : n.width) || 0, te), ae = Math.max(((u = re) == null ? 0 : u) + F.height, (n == null ? void 0 : n.height) || 0), J = -ie / 2, Y = -ae / 2;
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
2840
  if (P.selectAll("g:not(:first-child)").each((e, t, n) => {
2841
- let i = r(n[t]), a = i.attr("transform"), o = 0, s = 0;
2842
- if (a) {
2843
- let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);
2844
- e && (o = parseFloat(e[1]), s = parseFloat(e[2]), i.attr("class").includes("attribute-name") ? o += z : i.attr("class").includes("attribute-keys") ? o += z + B : i.attr("class").includes("attribute-comment") && (o += z + B + V));
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
2845
  }
2846
- i.attr("transform", `translate(${J + w / 2 + o}, ${s + Y + F.height + T / 2})`);
2846
+ r.attr("transform", `translate(${J + w / 2 + a}, ${s + Y + F.height + T / 2})`);
2847
2847
  }), P.select(".name").attr("transform", "translate(" + -F.width / 2 + ", " + (Y + T / 2) + ")"), p != null && Nt.has(p)) {
2848
2848
  var oe;
2849
2849
  let e = (oe = f.colorIndex) == null ? 0 : oe;
@@ -2881,29 +2881,29 @@ async function Ft(t, n) {
2881
2881
  return q.rect(n, e);
2882
2882
  }, P;
2883
2883
  }
2884
- n(Ft, "erBox");
2885
- async function It(e, t, n, i = 0, a = 0, o = [], l = "") {
2886
- let u = e.insert("g").attr("class", `label ${o.join(" ")}`).attr("transform", `translate(${i}, ${a})`).attr("style", l);
2887
- t !== c(t) && (t = c(t), t = t.replaceAll("<", "&lt;").replaceAll(">", "&gt;"));
2888
- let d = u.node().appendChild(await h(u, t, {
2889
- width: m(t, n) + 100,
2890
- style: l,
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
2891
  useHtmlLabels: n.htmlLabels
2892
2892
  }, n));
2893
2893
  if (t.includes("&lt;") || t.includes("&gt;")) {
2894
- let e = d.children[0];
2894
+ let e = f.children[0];
2895
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
2896
  }
2897
- let f = d.getBBox();
2898
- if (s(n.htmlLabels)) {
2899
- let e = d.children[0];
2897
+ let p = f.getBBox();
2898
+ if (u(n.htmlLabels)) {
2899
+ let e = f.children[0];
2900
2900
  e.style.textAlign = "start";
2901
- let t = r(d);
2902
- f = e.getBoundingClientRect(), t.attr("width", f.width), t.attr("height", f.height);
2901
+ let t = o(f);
2902
+ p = e.getBoundingClientRect(), t.attr("width", p.width), t.attr("height", p.height);
2903
2903
  }
2904
- return f;
2904
+ return p;
2905
2905
  }
2906
- n(It, "addText");
2906
+ a(It, "addText");
2907
2907
  function Lt(e, t, n, r, i) {
2908
2908
  return e === n ? [
2909
2909
  {
@@ -2941,7 +2941,7 @@ function Lt(e, t, n, r, i) {
2941
2941
  }
2942
2942
  ];
2943
2943
  }
2944
- n(Lt, "lineToPolygon");
2944
+ a(Lt, "lineToPolygon");
2945
2945
  async function Rt(e, t, n, r, i = ((e) => (e = n.class.padding) == null ? 12 : e)()) {
2946
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
2947
  if (s = o.insert("g").attr("class", "annotation-group text"), t.annotations.length > 0) {
@@ -2972,49 +2972,49 @@ async function Rt(e, t, n, r, i = ((e) => (e = n.class.padding) == null ? 12 : e
2972
2972
  bbox: _
2973
2973
  };
2974
2974
  }
2975
- n(Rt, "textHelper");
2976
- async function zt(e, t, i, o = []) {
2977
- var c;
2978
- let u = e.insert("g").attr("class", "label").attr("style", o.join("; ")), p = d(), g = "useHtmlLabels" in t ? t.useHtmlLabels : (c = s(p.htmlLabels)) == null ? !0 : c, _ = "";
2979
- _ = "text" in t ? t.text : t.label, !g && _.startsWith("\\") && (_ = _.substring(1)), l(_) && (g = !0);
2980
- let v = await h(u, a(f(_)), {
2981
- width: m(_, p) + 50,
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
2982
  classes: "markdown-node-label",
2983
2983
  useHtmlLabels: g
2984
2984
  }, p), y, b = 1;
2985
2985
  if (g) {
2986
- let e = v.children[0], t = r(v);
2986
+ let e = v.children[0], t = o(v);
2987
2987
  b = e.innerHTML.split("<br>").length, e.innerHTML.includes("</math>") && (b += e.innerHTML.split("<mrow>").length - 1);
2988
- let i = e.getElementsByTagName("img");
2989
- if (i) {
2988
+ let n = e.getElementsByTagName("img");
2989
+ if (n) {
2990
2990
  let e = _.replace(/<img[^>]*>/g, "").trim() === "";
2991
- await Promise.all([...i].map((t) => new Promise((r) => {
2992
- function i() {
2991
+ await Promise.all([...n].map((t) => new Promise((n) => {
2992
+ function r() {
2993
2993
  if (t.style.display = "flex", t.style.flexDirection = "column", e) {
2994
- var n, i;
2995
- let e = (n = (i = p.fontSize) == null ? void 0 : i.toString()) == null ? window.getComputedStyle(document.body).fontSize : n, r = parseInt(e, 10) * 5 + "px";
2996
- t.style.minWidth = r, t.style.maxWidth = r;
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
2997
  } else t.style.width = "100%";
2998
- r(t);
2998
+ n(t);
2999
2999
  }
3000
- n(i, "setupImage"), setTimeout(() => {
3001
- t.complete && i();
3002
- }), t.addEventListener("error", i), t.addEventListener("load", i);
3000
+ a(r, "setupImage"), setTimeout(() => {
3001
+ t.complete && r();
3002
+ }), t.addEventListener("error", r), t.addEventListener("load", r);
3003
3003
  })));
3004
3004
  }
3005
3005
  y = e.getBoundingClientRect(), t.attr("width", y.width), t.attr("height", y.height);
3006
3006
  } else {
3007
- o.includes("font-weight: bolder") && r(v).selectAll("tspan").attr("font-weight", ""), b = v.children.length;
3007
+ s.includes("font-weight: bolder") && o(v).selectAll("tspan").attr("font-weight", ""), b = v.children.length;
3008
3008
  let e = v.children[0];
3009
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
3010
  }
3011
- return u.attr("transform", "translate(0," + (-y.height / (2 * b) + i) + ")"), y.height;
3011
+ return d.attr("transform", "translate(0," + (-y.height / (2 * b) + i) + ")"), y.height;
3012
3012
  }
3013
- n(zt, "addText");
3013
+ a(zt, "addText");
3014
3014
  async function Bt(e, t) {
3015
- var n, i, a, c, l, u, d, f, p, m, h;
3016
- let g = o(), { themeVariables: _ } = g, { useGradient: v } = _, x = (n = g.class.padding) == null ? 12 : n, S = x, w = (i = (a = t.useHtmlLabels) == null ? s(g.htmlLabels) : a) == null ? !0 : i, T = t;
3017
- T.annotations = (c = T.annotations) == null ? [] : c, T.members = (l = T.members) == null ? [] : l, T.methods = (u = T.methods) == null ? [] : u;
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
3018
  let { shapeSvg: D, bbox: O } = await Rt(e, t, g, w, S), { labelStyles: k, nodeStyles: A } = b(t);
3019
3019
  t.labelStyle = k, t.cssStyles = T.styles || "";
3020
3020
  let j = ((d = T.styles) == null ? void 0 : d.join(";")) || A || "";
@@ -3029,26 +3029,26 @@ async function Bt(e, t) {
3029
3029
  H.attr("class", "basic label-container outer-path");
3030
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
3031
  if (D.selectAll(".text").each((e, t, n) => {
3032
- var i;
3033
- let a = r(n[t]), o = a.attr("transform"), s = 0;
3034
- if (o) {
3035
- let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);
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
3036
  e && (s = parseFloat(e[2]));
3037
3037
  }
3038
3038
  let c = s + z + x - (M ? x : T.members.length === 0 && T.methods.length === 0 ? -x / 2 : 0);
3039
- if (a.attr("class").includes("methods-group")) {
3039
+ if (i.attr("class").includes("methods-group")) {
3040
3040
  let e = Math.max(ee, S / 2);
3041
3041
  c = L ? Math.max(te, W + G + e + z + S * 2 + x) + S * 2 : W + G + e + z + S * 4 + x;
3042
3042
  }
3043
- T.members.length === 0 && T.methods.length === 0 && (i = g.class) != null && i.hideEmptyMembersBox && (c = T.annotations.length > 0 ? s - S : s), w || (c -= 4);
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
3044
  let l = R;
3045
- if (a.attr("class").includes("label-group") || a.attr("class").includes("annotation-group")) {
3045
+ if (i.attr("class").includes("label-group") || i.attr("class").includes("annotation-group")) {
3046
3046
  var u;
3047
- l = -((u = a.node()) == null ? void 0 : u.getBBox().width) / 2 || 0, D.selectAll("text").each(function(e, t, n) {
3047
+ l = -((u = i.node()) == null ? void 0 : u.getBBox().width) / 2 || 0, D.selectAll("text").each(function(e, t, n) {
3048
3048
  window.getComputedStyle(n[t]).textAnchor === "middle" && (l = 0);
3049
3049
  });
3050
3050
  }
3051
- a.attr("transform", `translate(${l}, ${c})`);
3051
+ i.attr("transform", `translate(${l}, ${c})`);
3052
3052
  }), T.members.length > 0 || T.methods.length > 0 || M) {
3053
3053
  let e = W + G + z + x, n = N.line(U.x, e, U.x + U.width, e + .001, P);
3054
3054
  D.insert(() => n).attr("class", `divider${t.look === "neo" && !v ? " neo-line" : ""}`).attr("style", j);
@@ -3074,12 +3074,12 @@ async function Bt(e, t) {
3074
3074
  return q.rect(t, e);
3075
3075
  }, D;
3076
3076
  }
3077
- n(Bt, "classBox");
3077
+ a(Bt, "classBox");
3078
3078
  async function Vt(e, t) {
3079
- var n, i, a, s, c;
3080
- let { labelStyles: l, nodeStyles: u } = b(t);
3081
- t.labelStyle = l;
3082
- let d = t, f = t, p = "verifyMethod" in t, m = D(t), { themeVariables: h } = o(), { borderColorArray: g, requirementEdgeLabelBackground: _ } = h, v = e.insert("g").attr("class", m).attr("id", (n = t.domId) == null ? t.id : n), x;
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
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
3084
  let S = x, w = await Ht(v, d.name, S, t.labelStyle + "; font-weight: bold;");
3085
3085
  if (S += w + 20, p) {
@@ -3093,7 +3093,7 @@ async function Vt(e, t) {
3093
3093
  let e = await Ht(v, `${f.type ? `Type: ${f.type}` : ""}`, S, t.labelStyle);
3094
3094
  S += e, await Ht(v, `${f.docRef ? `Doc Ref: ${f.docRef}` : ""}`, S, t.labelStyle);
3095
3095
  }
3096
- let T = ((i = (a = v.node()) == null ? void 0 : a.getBBox().width) == null ? 200 : i) + 20, O = ((s = (c = v.node()) == null ? void 0 : c.getBBox().height) == null ? 200 : s) + 20, k = -T / 2, A = -O / 2, j = C.svg(v), M = y(t, {});
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
3097
  t.look !== "handDrawn" && (M.roughness = 0, M.fillStyle = "solid");
3098
3098
  let N = j.rectangle(k, A, T, O, M), P = v.insert(() => N, ":first-child");
3099
3099
  if (P.attr("class", "basic label-container outer-path").attr("style", u), g != null && g.length) {
@@ -3102,13 +3102,13 @@ async function Vt(e, t) {
3102
3102
  v.attr("data-color-id", `color-${e % g.length}`);
3103
3103
  }
3104
3104
  if (v.selectAll(".label").each((e, t, n) => {
3105
- let i = r(n[t]), a = i.attr("transform"), o = 0, s = 0;
3106
- if (a) {
3107
- let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);
3108
- e && (o = parseFloat(e[1]), s = parseFloat(e[2]));
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
3109
  }
3110
3110
  let c = s - O / 2, l = k + 20 / 2;
3111
- (t === 0 || t === 1) && (l = o), i.attr("transform", `translate(${l}, ${c + 20})`);
3111
+ (t === 0 || t === 1) && (l = a), r.attr("transform", `translate(${l}, ${c + 20})`);
3112
3112
  }), S > x + w + 20) {
3113
3113
  let e = A + x + w + 20, n;
3114
3114
  if (t.look === "neo") {
@@ -3126,28 +3126,28 @@ async function Vt(e, t) {
3126
3126
  return q.rect(t, e);
3127
3127
  }, u && t.look !== "handDrawn" && (_ || g != null && g.length) && v.selectAll("path").attr("style", u), v;
3128
3128
  }
3129
- n(Vt, "requirementBox");
3130
- async function Ht(e, t, n, i = "") {
3129
+ a(Vt, "requirementBox");
3130
+ async function Ht(e, n, i, a = "") {
3131
3131
  var s;
3132
- if (t === "") return 0;
3133
- let c = e.insert("g").attr("class", "label").attr("style", i), l = o(), u = (s = l.htmlLabels) == null ? !0 : s, d = await h(c, a(f(t)), {
3134
- width: m(t, l) + 50,
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
3135
  classes: "markdown-node-label",
3136
- useHtmlLabels: u,
3137
- style: i
3138
- }, l), p;
3139
- if (u) {
3140
- let e = d.children[0], t = r(d);
3141
- p = e.getBoundingClientRect(), t.attr("width", p.width), t.attr("height", p.height);
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
3142
  } else {
3143
- let e = d.children[0];
3144
- for (let t of e.children) i && t.setAttribute("style", i);
3145
- p = d.getBBox(), p.height += 6;
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
3146
  }
3147
- return c.attr("transform", `translate(${-p.width / 2},${-p.height / 2 + n})`), p.height;
3147
+ return u.attr("transform", `translate(${-m.width / 2},${-m.height / 2 + i})`), m.height;
3148
3148
  }
3149
- n(Ht, "addText");
3150
- var Ut = /* @__PURE__ */ n((e) => {
3149
+ a(Ht, "addText");
3150
+ var Ut = /* @__PURE__ */ a((e) => {
3151
3151
  switch (e) {
3152
3152
  case "Very High": return "red";
3153
3153
  case "High": return "orange";
@@ -3196,71 +3196,71 @@ async function Wt(e, t, { config: n }) {
3196
3196
  return q.rect(t, e);
3197
3197
  }, c;
3198
3198
  }
3199
- n(Wt, "kanbanItem");
3200
- async function Gt(e, n) {
3201
- let { labelStyles: r, nodeStyles: i } = b(n);
3202
- n.labelStyle = r;
3203
- let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await w(e, n, D(n)), l = o.width + 10 * s, u = o.height + 8 * s, d = .15 * l, { cssStyles: f } = n, m = o.width + 20, h = o.height + 20, g = Math.max(l, m), _ = Math.max(u, h);
3204
- c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`);
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
3205
  let v, x = `M0 0
3206
- a${d},${d} 1 0,0 ${g * .25},${-1 * _ * .1}
3207
- a${d},${d} 1 0,0 ${g * .25},0
3208
- a${d},${d} 1 0,0 ${g * .25},0
3209
- a${d},${d} 1 0,0 ${g * .25},${_ * .1}
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
3210
 
3211
- a${d},${d} 1 0,0 ${g * .15},${_ * .33}
3212
- a${d * .8},${d * .8} 1 0,0 0,${_ * .34}
3213
- a${d},${d} 1 0,0 ${-1 * g * .15},${_ * .33}
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
3214
 
3215
- a${d},${d} 1 0,0 ${-1 * g * .25},${_ * .15}
3216
- a${d},${d} 1 0,0 ${-1 * g * .25},0
3217
- a${d},${d} 1 0,0 ${-1 * g * .25},0
3218
- a${d},${d} 1 0,0 ${-1 * g * .25},${-1 * _ * .15}
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
3219
 
3220
- a${d},${d} 1 0,0 ${-1 * g * .1},${-1 * _ * .33}
3221
- a${d * .8},${d * .8} 1 0,0 0,${-1 * _ * .34}
3222
- a${d},${d} 1 0,0 ${g * .1},${-1 * _ * .33}
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
3223
  H0 V0 Z`;
3224
- if (n.look === "handDrawn") {
3225
- let e = C.svg(a), t = y(n, {}), r = e.path(x, t);
3226
- v = a.insert(() => r, ":first-child"), v.attr("class", "basic label-container").attr("style", p(f));
3227
- } else v = a.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", x);
3228
- return v.attr("transform", `translate(${-g / 2}, ${-_ / 2})`), E(n, v), n.calcIntersect = function(e, t) {
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
3229
  return q.rect(e, t);
3230
- }, n.intersect = function(e) {
3231
- return t.info("Bang intersect", n, e), q.rect(n, e);
3232
- }, a;
3230
+ }, t.intersect = function(e) {
3231
+ return i.info("Bang intersect", t, e), q.rect(t, e);
3232
+ }, o;
3233
3233
  }
3234
- n(Gt, "bang");
3235
- async function Kt(e, n) {
3236
- let { labelStyles: r, nodeStyles: i } = b(n);
3237
- n.labelStyle = r;
3238
- let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await w(e, n, D(n)), l = o.width + 2 * s, u = o.height + 2 * s, d = .15 * l, f = .25 * l, m = .35 * l, h = .2 * l, { cssStyles: g } = n, _, v = `M0 0
3239
- a${d},${d} 0 0,1 ${l * .25},${-1 * l * .1}
3240
- a${m},${m} 1 0,1 ${l * .4},${-1 * l * .1}
3241
- a${f},${f} 1 0,1 ${l * .35},${l * .2}
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
3242
 
3243
- a${d},${d} 1 0,1 ${l * .15},${u * .35}
3244
- a${h},${h} 1 0,1 ${-1 * l * .15},${u * .65}
3243
+ a${f},${f} 1 0,1 ${u * .15},${d * .35}
3244
+ a${h},${h} 1 0,1 ${-1 * u * .15},${d * .65}
3245
3245
 
3246
- a${f},${d} 1 0,1 ${-1 * l * .25},${l * .15}
3247
- a${m},${m} 1 0,1 ${-1 * l * .5},0
3248
- a${d},${d} 1 0,1 ${-1 * l * .25},${-1 * l * .15}
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
3249
 
3250
- a${d},${d} 1 0,1 ${-1 * l * .1},${-1 * u * .35}
3251
- a${h},${h} 1 0,1 ${l * .1},${-1 * u * .65}
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
3252
  H0 V0 Z`;
3253
- if (n.look === "handDrawn") {
3254
- let e = C.svg(a), t = y(n, {}), r = e.path(v, t);
3255
- _ = a.insert(() => r, ":first-child"), _.attr("class", "basic label-container").attr("style", p(g));
3256
- } else _ = a.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", v);
3257
- return c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`), _.attr("transform", `translate(${-l / 2}, ${-u / 2})`), E(n, _), n.calcIntersect = function(e, t) {
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
3258
  return q.rect(e, t);
3259
- }, n.intersect = function(e) {
3260
- return t.info("Cloud intersect", n, e), q.rect(n, e);
3261
- }, a;
3259
+ }, t.intersect = function(e) {
3260
+ return i.info("Cloud intersect", t, e), q.rect(t, e);
3261
+ }, o;
3262
3262
  }
3263
- n(Kt, "cloud");
3263
+ a(Kt, "cloud");
3264
3264
  async function qt(e, t) {
3265
3265
  let { labelStyles: n, nodeStyles: r } = b(t);
3266
3266
  t.labelStyle = n;
@@ -3293,12 +3293,12 @@ async function qt(e, t) {
3293
3293
  return q.rect(t, e);
3294
3294
  }, i;
3295
3295
  }
3296
- n(qt, "defaultMindmapNode");
3296
+ a(qt, "defaultMindmapNode");
3297
3297
  async function Jt(e, t) {
3298
3298
  var n;
3299
3299
  return le(e, t, { padding: (n = t.padding) == null ? 0 : n });
3300
3300
  }
3301
- n(Jt, "mindmapCircle");
3301
+ a(Jt, "mindmapCircle");
3302
3302
  var Yt = [
3303
3303
  {
3304
3304
  semanticName: "Process",
@@ -3728,7 +3728,7 @@ var Yt = [
3728
3728
  aliases: ["lined-document"],
3729
3729
  handler: Xe
3730
3730
  }
3731
- ], Xt = (/* @__PURE__ */ n(() => {
3731
+ ], Xt = (/* @__PURE__ */ a(() => {
3732
3732
  let e = {
3733
3733
  state: ut,
3734
3734
  choice: ce,
@@ -3757,30 +3757,30 @@ var Yt = [
3757
3757
  function Zt(e) {
3758
3758
  return e in Xt;
3759
3759
  }
3760
- n(Zt, "isValidShape");
3760
+ a(Zt, "isValidShape");
3761
3761
  var Qt = /* @__PURE__ */ new Map();
3762
- async function $t(e, t, n) {
3763
- let r, i;
3762
+ async function $t(e, t, r) {
3763
+ let i, a;
3764
3764
  t.shape === "rect" && (t.rx && t.ry ? t.shape = "roundedRect" : t.shape = "squareRect");
3765
- let a = t.shape ? Xt[t.shape] : void 0;
3766
- if (!a) throw Error(`No such shape: ${t.shape}. Please check your syntax.`);
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
3767
  if (t.link) {
3768
- var o;
3769
- let s;
3770
- n.config.securityLevel === "sandbox" ? s = "_top" : t.linkTarget && (s = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", (o = s) == null ? null : o), i = await a(r, t, n);
3771
- } else i = await a(e, t, n), r = i;
3772
- return r.attr("data-look", p(t.look)), t.tooltip && i.attr("title", t.tooltip), Qt.set(t.id, r), t.haveCallback && r.attr("class", r.attr("class") + " clickable"), r;
3773
- }
3774
- n($t, "insertNode");
3775
- var en = /* @__PURE__ */ n((e, t) => {
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
3776
  Qt.set(t.id, e);
3777
- }, "setNodeElem"), tn = /* @__PURE__ */ n(() => {
3777
+ }, "setNodeElem"), tn = /* @__PURE__ */ a(() => {
3778
3778
  Qt.clear();
3779
- }, "clear"), nn = /* @__PURE__ */ n((e) => {
3780
- let n = Qt.get(e.id);
3781
- t.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
3782
- let r = e.diff || 0;
3783
- return e.clusterNode ? n.attr("transform", "translate(" + (e.x + r - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : n.attr("transform", "translate(" + e.x + ", " + e.y + ")"), r;
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
3784
  }, "positionNode");
3785
3785
  //#endregion
3786
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 };