@chaibuilder/pages 0.16.7 → 0.16.9

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 (783) hide show
  1. package/dist/{2AITGKQY-BkyIOFBN.cjs → 2AITGKQY-BGZjtYdS.cjs} +1 -1
  2. package/dist/{2AITGKQY-BXiVm60u.js → 2AITGKQY-BmDJ4ubt.js} +2 -2
  3. package/dist/{NCMVHL6D-CnBMv9bF.cjs → NCMVHL6D-CRT9RlLF.cjs} +1 -1
  4. package/dist/{NCMVHL6D-C0JGE8Qr.js → NCMVHL6D-Dk4_u4LD.js} +2 -2
  5. package/dist/{ZDWCUMSJ-jR6OAwVS.cjs → ZDWCUMSJ-DEHPTCDq.cjs} +1 -1
  6. package/dist/{ZDWCUMSJ-Cs-CWvpw.js → ZDWCUMSJ-Ktzz_Tsg.js} +1 -1
  7. package/dist/_arrayEach-BoWUuJyH.js +44 -0
  8. package/dist/_arrayEach-CvixaZ6g.cjs +1 -0
  9. package/dist/abap-DV7Q1lGP.cjs +1 -0
  10. package/dist/abap-Y8Dl9g_6.js +6 -0
  11. package/dist/actionscript-3-DXOxkRa2.cjs +1 -0
  12. package/dist/actionscript-3-DZzbMeqX.js +6 -0
  13. package/dist/ada-D46EKCNf.cjs +1 -0
  14. package/dist/ada-vP6ak0IW.js +6 -0
  15. package/dist/{add-new-language-page-CKwMwrAg.js → add-new-language-page-BLNVUYeo.js} +2 -2
  16. package/dist/{add-new-language-page-UatKeIR2.cjs → add-new-language-page-jU1kF1AN.cjs} +1 -1
  17. package/dist/{add-new-page-BZ2av8fu.cjs → add-new-page-DKyY5ZY7.cjs} +1 -1
  18. package/dist/{add-new-page-BzBMJ3Cn.js → add-new-page-X9ytZJiO.js} +1 -1
  19. package/dist/ai-panel-content-Bi18WMi2.cjs +1 -0
  20. package/dist/ai-panel-content-ChDHNrKg.js +54 -0
  21. package/dist/ai-panel-default-lang-B6tYYmxI.cjs +3 -0
  22. package/dist/ai-panel-default-lang-CxmSDvNu.js +307 -0
  23. package/dist/ai-panel-other-lang-B0umwiEm.cjs +1 -0
  24. package/dist/ai-panel-other-lang-CicrT1I-.js +130 -0
  25. package/dist/ai-prompt-input-BOAqFpAN.js +4027 -0
  26. package/dist/ai-prompt-input-L_bHFj7w.cjs +45 -0
  27. package/dist/{ai-translation-prompt-DH7gwfqx.cjs → ai-translation-prompt-23g3VfWP.cjs} +1 -1
  28. package/dist/{ai-translation-prompt-B8VdHfLY.js → ai-translation-prompt-DoeWqKDZ.js} +1 -1
  29. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  30. package/dist/andromeeda-DVDxRwp5.cjs +1 -0
  31. package/dist/angular-html-DPB4Rf0C.js +32 -0
  32. package/dist/angular-html-KMf2QdtP.cjs +1 -0
  33. package/dist/angular-ts-BxIbo3R1.cjs +1 -0
  34. package/dist/angular-ts-CTOR2ofC.js +21 -0
  35. package/dist/apache-BUjz-sD2.js +6 -0
  36. package/dist/apache-DL1xuH1f.cjs +1 -0
  37. package/dist/apex-CtcXmQ6V.js +6 -0
  38. package/dist/apex-UUd3Occv.cjs +1 -0
  39. package/dist/apl-CjNiDgad.js +16 -0
  40. package/dist/apl-Dj2G2M9w.cjs +1 -0
  41. package/dist/applescript-BPx7YFFu.js +6 -0
  42. package/dist/applescript-COilsSrZ.cjs +1 -0
  43. package/dist/ara-B6Lpq1YJ.cjs +1 -0
  44. package/dist/ara-Z2fSOxSw.js +6 -0
  45. package/dist/arc-CEYgkAY6.js +83 -0
  46. package/dist/arc-DQcgp6fe.cjs +1 -0
  47. package/dist/architecture-U656AL7Q-D9ThnYW7.js +5 -0
  48. package/dist/architecture-U656AL7Q-DXHyXosc.cjs +1 -0
  49. package/dist/architectureDiagram-VXUJARFQ-DJkKSCT6.cjs +36 -0
  50. package/dist/architectureDiagram-VXUJARFQ-xhCIZb18.js +4669 -0
  51. package/dist/asciidoc-B-pCoB3G.js +6 -0
  52. package/dist/asciidoc-DcKqW72n.cjs +1 -0
  53. package/dist/asm-BTWLY5ym.js +6 -0
  54. package/dist/asm-DYMFy-sD.cjs +1 -0
  55. package/dist/astro-CFFExE8Q.js +18 -0
  56. package/dist/astro-DAOP_Xq6.cjs +1 -0
  57. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  58. package/dist/aurora-x-C5IpmIOG.cjs +1 -0
  59. package/dist/awk-Fb0P9dkn.js +6 -0
  60. package/dist/awk-IEszImW6.cjs +1 -0
  61. package/dist/ayu-dark-Cv7nTiif.cjs +1 -0
  62. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  63. package/dist/ballerina-Dr6dU4hP.cjs +1 -0
  64. package/dist/ballerina-oZK-YekG.js +6 -0
  65. package/dist/bat-0FvbqU9S.js +6 -0
  66. package/dist/bat-DGkUhhn2.cjs +1 -0
  67. package/dist/beancount-Bv1Sweoy.cjs +1 -0
  68. package/dist/beancount-DqJEb89h.js +6 -0
  69. package/dist/berry-DZkhZ7K3.cjs +1 -0
  70. package/dist/berry-PwsHPR_K.js +6 -0
  71. package/dist/bibtex-BgA36Z3k.cjs +1 -0
  72. package/dist/bibtex-EULQRLY5.js +6 -0
  73. package/dist/bicep-BorU73w0.js +6 -0
  74. package/dist/bicep-DL0zb-7W.cjs +1 -0
  75. package/dist/blade-BYkiyM-T.cjs +1 -0
  76. package/dist/blade-CRa6j5zS.js +20 -0
  77. package/dist/blockDiagram-VD42YOAC-DqXdnG8y.cjs +122 -0
  78. package/dist/blockDiagram-VD42YOAC-zvZU2M01.js +2368 -0
  79. package/dist/blocks.d.ts +12 -0
  80. package/dist/bsl-9bVgFeM9.cjs +1 -0
  81. package/dist/bsl-NkNNwerW.js +8 -0
  82. package/dist/builder.d.ts +12 -0
  83. package/dist/c-CtlmKnPF.cjs +1 -0
  84. package/dist/c-eeMepfLm.js +6 -0
  85. package/dist/c4Diagram-YG6GDRKO-BpDWqFJi.js +1581 -0
  86. package/dist/c4Diagram-YG6GDRKO-COF9vwh9.cjs +10 -0
  87. package/dist/cadence-02UX7mW8.js +6 -0
  88. package/dist/cadence-DcbmM5v3.cjs +1 -0
  89. package/dist/cairo-DM6WF2e3.js +8 -0
  90. package/dist/cairo-li7sQsxU.cjs +1 -0
  91. package/dist/catppuccin-frappe-Bn4lgmUk.cjs +1 -0
  92. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  93. package/dist/catppuccin-latte-BPtsb8jD.cjs +1 -0
  94. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  95. package/dist/catppuccin-macchiato-BLfpQWhT.cjs +1 -0
  96. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  97. package/dist/catppuccin-mocha-COMta283.cjs +1 -0
  98. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  99. package/dist/channel-DMpDH8Tt.js +5 -0
  100. package/dist/channel-DshxF_w-.cjs +1 -0
  101. package/dist/chunk-4BX2VUAB-DOrHz66s.cjs +1 -0
  102. package/dist/chunk-4BX2VUAB-DcXzX0k2.js +9 -0
  103. package/dist/chunk-55IACEB6-MgFQOjd_.cjs +1 -0
  104. package/dist/chunk-55IACEB6-yEIZuruo.js +8 -0
  105. package/dist/chunk-B4BG7PRW-Bm0X0FwP.js +1376 -0
  106. package/dist/chunk-B4BG7PRW-Dw8okTHN.cjs +165 -0
  107. package/dist/chunk-DI55MBZ5-CY8rQYfB.cjs +220 -0
  108. package/dist/chunk-DI55MBZ5-Dzl4K5YZ.js +1382 -0
  109. package/dist/chunk-FMBD7UC4-DeDzgDPq.cjs +15 -0
  110. package/dist/chunk-FMBD7UC4-DsnO3YB7.js +19 -0
  111. package/dist/chunk-QN33PNHL-D0hZD6ce.cjs +1 -0
  112. package/dist/chunk-QN33PNHL-eCpJSQLd.js +20 -0
  113. package/dist/chunk-QZHKN3VN-0xh2Brzo.js +15 -0
  114. package/dist/chunk-QZHKN3VN-DPT45Qxb.cjs +1 -0
  115. package/dist/chunk-TZMSLE5B-B0DNnH2K.cjs +1 -0
  116. package/dist/chunk-TZMSLE5B-v44khzET.js +64 -0
  117. package/dist/clarity-PKm5CwqM.js +6 -0
  118. package/dist/clarity-gPuvqtpF.cjs +1 -0
  119. package/dist/classDiagram-2ON5EDUG-CatlwrWr.js +16 -0
  120. package/dist/classDiagram-2ON5EDUG-DZwYP3Mp.cjs +1 -0
  121. package/dist/classDiagram-v2-WZHVMYZB-CatlwrWr.js +16 -0
  122. package/dist/classDiagram-v2-WZHVMYZB-DZwYP3Mp.cjs +1 -0
  123. package/dist/clojure-CXJfHrL3.js +6 -0
  124. package/dist/clojure-OUsr1SUl.cjs +1 -0
  125. package/dist/cmake-BJz8BOTU.js +6 -0
  126. package/dist/cmake-jM6P58qY.cjs +1 -0
  127. package/dist/cobol-CcrsCSUZ.cjs +1 -0
  128. package/dist/cobol-HihOMwht.js +10 -0
  129. package/dist/codeowners-Bt9yU6NX.js +6 -0
  130. package/dist/codeowners-QhPK6lIJ.cjs +1 -0
  131. package/dist/codeql-D9-TdUN8.cjs +1 -0
  132. package/dist/codeql-DHkodjjI.js +6 -0
  133. package/dist/coffee-DGBR_nr_.js +8 -0
  134. package/dist/coffee-DycxIFwY.cjs +1 -0
  135. package/dist/common-lisp-C77gR-8i.cjs +1 -0
  136. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  137. package/dist/coq-B0L9upzn.js +6 -0
  138. package/dist/coq-vlPdR5hP.cjs +1 -0
  139. package/dist/cose-bilkent-S5V4N54A-CdqaV_In.js +2609 -0
  140. package/dist/cose-bilkent-S5V4N54A-oJ7CCCne.cjs +1 -0
  141. package/dist/cpp-Cj177cuW.js +18 -0
  142. package/dist/cpp-DvI2Eoso.cjs +1 -0
  143. package/dist/crystal-B_WXhL2O.cjs +1 -0
  144. package/dist/crystal-CRJyc4G-.js +18 -0
  145. package/dist/csharp-C902_8Dy.cjs +1 -0
  146. package/dist/csharp-COJ2mCKr.js +6 -0
  147. package/dist/css-CECN5uSL.js +6 -0
  148. package/dist/css-Do0mp2lm.cjs +1 -0
  149. package/dist/csv-CmYOceLb.js +6 -0
  150. package/dist/csv-DiEdJzSJ.cjs +1 -0
  151. package/dist/cue-D1vJRJEx.cjs +1 -0
  152. package/dist/cue-ZzumE7IT.js +6 -0
  153. package/dist/cypher-atSM3NsM.cjs +1 -0
  154. package/dist/cypher-jpdmjtA6.js +6 -0
  155. package/dist/cytoscape.esm-DdQZKk9f.js +18735 -0
  156. package/dist/cytoscape.esm-DkGgpG6d.cjs +331 -0
  157. package/dist/d-2qe3NhmZ.cjs +1 -0
  158. package/dist/d-CBagWSwH.js +6 -0
  159. package/dist/dagre-6UL2VRFP-DwJsczXN.cjs +4 -0
  160. package/dist/dagre-6UL2VRFP-ylnuUwh7.js +445 -0
  161. package/dist/dark-plus-CRFsux2L.js +4 -0
  162. package/dist/dark-plus-DwC1RSst.cjs +1 -0
  163. package/dist/dart-6ObCrKr9.js +6 -0
  164. package/dist/dart-Ds0_0fwe.cjs +1 -0
  165. package/dist/dax-CcDT-8dH.js +6 -0
  166. package/dist/dax-DbkQa40E.cjs +1 -0
  167. package/dist/defaultLocale-D7EN2tov.js +171 -0
  168. package/dist/defaultLocale-DIVzfLaQ.cjs +1 -0
  169. package/dist/{delete-page-Crpwn0Wk.cjs → delete-page-CSuwBSa6.cjs} +1 -1
  170. package/dist/{delete-page-Ck7tD4Hf.js → delete-page-D8gUlElz.js} +1 -1
  171. package/dist/desktop-B93p9R9O.js +6 -0
  172. package/dist/desktop-tn3MFXCZ.cjs +1 -0
  173. package/dist/diagram-PSM6KHXK-DPPOo04u.cjs +24 -0
  174. package/dist/diagram-PSM6KHXK-me6JcFi2.js +534 -0
  175. package/dist/diagram-QEK2KX5R-CfDWc-r0.js +221 -0
  176. package/dist/diagram-QEK2KX5R-atRnaXRv.cjs +43 -0
  177. package/dist/diagram-S2PKOQOG-BzM_Yydz.cjs +24 -0
  178. package/dist/diagram-S2PKOQOG-DvQBNtA7.js +143 -0
  179. package/dist/diff-BxzP2J8R.js +6 -0
  180. package/dist/diff-CA31fCOg.cjs +1 -0
  181. package/dist/{digital-asset-manager-BVrv1-r1.cjs → digital-asset-manager-B1NMros3.cjs} +1 -1
  182. package/dist/{digital-asset-manager-DgLKRrYj.js → digital-asset-manager-C-tiZy6C.js} +1 -1
  183. package/dist/docker-CsHqm9tx.js +6 -0
  184. package/dist/docker-zJpMwmYa.cjs +1 -0
  185. package/dist/dotenv-BMjVjUL1.js +6 -0
  186. package/dist/dotenv-DpcNCNek.cjs +1 -0
  187. package/dist/dracula-BNgwAJ-d.cjs +1 -0
  188. package/dist/dracula-BtZx2Kac.js +4 -0
  189. package/dist/dracula-soft-BHZ7sHFu.cjs +1 -0
  190. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  191. package/dist/dream-maker-BkijXDkm.cjs +1 -0
  192. package/dist/dream-maker-PAx17jaB.js +6 -0
  193. package/dist/{duplicate-page-C7d1f7Ii.js → duplicate-page-BgR_Z5mB.js} +2 -2
  194. package/dist/{duplicate-page-CXUueWfr.cjs → duplicate-page-DfsShaR3.cjs} +1 -1
  195. package/dist/{dynamic-page-selector-DcWDnam4.cjs → dynamic-page-selector-B9LvdmAM.cjs} +1 -1
  196. package/dist/{dynamic-page-selector-D544FjmW.js → dynamic-page-selector-B_Il05Tb.js} +1 -1
  197. package/dist/edge-BYQkOzbF.js +12 -0
  198. package/dist/edge-DaIYN5Mx.cjs +1 -0
  199. package/dist/elixir-BH_wmMK4.cjs +1 -0
  200. package/dist/elixir-Dh036GMp.js +8 -0
  201. package/dist/elm-BtNbw_Cd.js +8 -0
  202. package/dist/elm-Dc4sEBjc.cjs +1 -0
  203. package/dist/emacs-lisp-C1UCIjUO.cjs +1 -0
  204. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  205. package/dist/erDiagram-Q2GNP2WA-BvcqZzam.js +842 -0
  206. package/dist/erDiagram-Q2GNP2WA-CIz-zXL5.cjs +60 -0
  207. package/dist/erb-BqFQADjR.cjs +1 -0
  208. package/dist/erb-CS4zioBv.js +10 -0
  209. package/dist/erlang-CB2cfp6Z.cjs +1 -0
  210. package/dist/erlang-DNcDT8Hi.js +8 -0
  211. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  212. package/dist/everforest-dark-_sBMomR1.cjs +1 -0
  213. package/dist/everforest-light-BbXl82Em.js +4 -0
  214. package/dist/everforest-light-H0xoYxl0.cjs +1 -0
  215. package/dist/fennel-Bz9-EMMc.cjs +1 -0
  216. package/dist/fennel-N4WcXuKx.js +6 -0
  217. package/dist/fish-BTDEUgqH.js +6 -0
  218. package/dist/fish-DwmQKRZi.cjs +1 -0
  219. package/dist/flowDiagram-NV44I4VS-DNDFiS4P.js +1627 -0
  220. package/dist/flowDiagram-NV44I4VS-H3UO6GU6.cjs +162 -0
  221. package/dist/fluent-BMXUxfv1.js +6 -0
  222. package/dist/fluent-CJtpNuaO.cjs +1 -0
  223. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  224. package/dist/fortran-fixed-form-rAbNFykM.cjs +1 -0
  225. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  226. package/dist/fortran-free-form-DRAcQkel.cjs +1 -0
  227. package/dist/fsharp-CYOiIVNx.js +8 -0
  228. package/dist/fsharp-DVcRF7k-.cjs +1 -0
  229. package/dist/ganttDiagram-LVOFAZNH-3uLir5Ok.cjs +267 -0
  230. package/dist/ganttDiagram-LVOFAZNH-CuEk_EPv.js +2506 -0
  231. package/dist/gdresource-BwtMIoBm.js +10 -0
  232. package/dist/gdresource-CcLusmd_.cjs +1 -0
  233. package/dist/gdscript-BifyeYhI.js +6 -0
  234. package/dist/gdscript-DSegQKMB.cjs +1 -0
  235. package/dist/gdshader-Bk8fF6yr.js +6 -0
  236. package/dist/gdshader-DsmqQl4t.cjs +1 -0
  237. package/dist/genie-Dy2rU8CF.cjs +1 -0
  238. package/dist/genie-DzUvd7U9.js +6 -0
  239. package/dist/gherkin-BmiEVBJ1.cjs +1 -0
  240. package/dist/gherkin-DHRaV0YP.js +6 -0
  241. package/dist/git-commit-Bd32YZ0K.js +8 -0
  242. package/dist/git-commit-DlVDzq9L.cjs +1 -0
  243. package/dist/git-rebase-Bn4RLd7u.cjs +1 -0
  244. package/dist/git-rebase-ZWUFO_T4.js +8 -0
  245. package/dist/gitGraph-F6HP7TQM-BNgutOCt.js +5 -0
  246. package/dist/gitGraph-F6HP7TQM-DnzvXoTf.cjs +1 -0
  247. package/dist/gitGraphDiagram-NY62KEGX-CpjW-tAs.cjs +65 -0
  248. package/dist/gitGraphDiagram-NY62KEGX-DJ--wipu.js +712 -0
  249. package/dist/github-dark-BKL9xNgN.cjs +1 -0
  250. package/dist/github-dark-DenFmJkN.js +4 -0
  251. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  252. package/dist/github-dark-default-Dsv5MuSi.cjs +1 -0
  253. package/dist/github-dark-dimmed-CtB9hz8U.cjs +1 -0
  254. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  255. package/dist/github-dark-high-contrast-BqZVM-jF.cjs +1 -0
  256. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  257. package/dist/github-light-BFTOhCbz.cjs +1 -0
  258. package/dist/github-light-JYsPkUQd.js +4 -0
  259. package/dist/github-light-default-BZoWH9dH.cjs +1 -0
  260. package/dist/github-light-default-D99KPAby.js +4 -0
  261. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  262. package/dist/github-light-high-contrast-Ks3kPGJU.cjs +1 -0
  263. package/dist/gleam-Bv284lvN.js +6 -0
  264. package/dist/gleam-DHVuTCr7.cjs +1 -0
  265. package/dist/glimmer-js-CzmC7OX8.cjs +1 -0
  266. package/dist/glimmer-js-DkxNrfPT.js +14 -0
  267. package/dist/glimmer-ts-D6YZEmK_.js +14 -0
  268. package/dist/glimmer-ts-DLN2_wRt.cjs +1 -0
  269. package/dist/glsl-CQekZ3Zq.cjs +1 -0
  270. package/dist/glsl-CkUcVZNK.js +8 -0
  271. package/dist/gnuplot-CDPKvI9X.cjs +1 -0
  272. package/dist/gnuplot-yPG9-sE_.js +6 -0
  273. package/dist/go-ChxJuLYK.js +6 -0
  274. package/dist/go-epHseFUa.cjs +1 -0
  275. package/dist/graph-BJDrjORS.js +244 -0
  276. package/dist/graph-BLd2spTm.cjs +1 -0
  277. package/dist/graphql-BnP1YhXQ.cjs +1 -0
  278. package/dist/graphql-CBu2ehBn.js +14 -0
  279. package/dist/groovy-CJQTphOW.js +6 -0
  280. package/dist/groovy-D7VuDBXz.cjs +1 -0
  281. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  282. package/dist/gruvbox-dark-hard-CUGefKS6.cjs +1 -0
  283. package/dist/gruvbox-dark-medium-BoKPlKfz.cjs +1 -0
  284. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  285. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  286. package/dist/gruvbox-dark-soft-DSrhOWeL.cjs +1 -0
  287. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  288. package/dist/gruvbox-light-hard-De4IuseP.cjs +1 -0
  289. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  290. package/dist/gruvbox-light-medium-CzMY3IEJ.cjs +1 -0
  291. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  292. package/dist/gruvbox-light-soft-U4iAIpWZ.cjs +1 -0
  293. package/dist/hack-BaDv2o40.cjs +1 -0
  294. package/dist/hack-ItRNKiEb.js +10 -0
  295. package/dist/haml-Bk21rGjP.cjs +1 -0
  296. package/dist/haml-NZLVzu_R.js +10 -0
  297. package/dist/handlebars-CJJi3lrU.cjs +1 -0
  298. package/dist/handlebars-mxStpSE7.js +14 -0
  299. package/dist/haskell-BShesV2P.cjs +1 -0
  300. package/dist/haskell-WeIwNIP6.js +6 -0
  301. package/dist/haxe-Bo5XuRS0.cjs +1 -0
  302. package/dist/haxe-TztHsm5T.js +6 -0
  303. package/dist/hcl-CrZnvm-1.cjs +1 -0
  304. package/dist/hcl-D438OF-I.js +6 -0
  305. package/dist/hjson-CEESwTUP.cjs +1 -0
  306. package/dist/hjson-DYBUbqOl.js +6 -0
  307. package/dist/hlsl-Bk8TCZNL.js +6 -0
  308. package/dist/hlsl-CyvYRIb9.cjs +1 -0
  309. package/dist/houston-BDYrDoDW.js +4 -0
  310. package/dist/houston-T57H3gQZ.cjs +1 -0
  311. package/dist/html-B50bmoVb.js +10 -0
  312. package/dist/html-C62Zf2h4.cjs +1 -0
  313. package/dist/html-derivative-C6bxFbFW.js +8 -0
  314. package/dist/html-derivative-NDb86jON.cjs +1 -0
  315. package/dist/http-BPlLI56k.cjs +1 -0
  316. package/dist/http-DLvAkeD-.js +14 -0
  317. package/dist/hurl-BQGBr8gH.cjs +1 -0
  318. package/dist/hurl-CgkFN90t.js +12 -0
  319. package/dist/hxml-GbqSQCLa.js +8 -0
  320. package/dist/hxml-vnw7fzrV.cjs +1 -0
  321. package/dist/hy-Brt5EZ7-.js +6 -0
  322. package/dist/hy-a1E2Ed6P.cjs +1 -0
  323. package/dist/{image-editor-CnDnY97s.cjs → image-editor-EmBN_Nn_.cjs} +1 -1
  324. package/dist/imba-CR1Q6r17.cjs +1 -0
  325. package/dist/imba-CimUv-Uh.js +6 -0
  326. package/dist/{index-DdQbaicX.js → index-CSOKPmkj.js} +120 -113
  327. package/dist/index-D_4YaLhN.cjs +5 -0
  328. package/dist/index.cjs +1 -1
  329. package/dist/index.d.ts +12 -0
  330. package/dist/index.js +6 -6
  331. package/dist/info-NVLQJR56-cQ8VboSE.js +5 -0
  332. package/dist/info-NVLQJR56-nlYJye66.cjs +1 -0
  333. package/dist/infoDiagram-ER5ION4S-BYBSnMk9.cjs +2 -0
  334. package/dist/infoDiagram-ER5ION4S-D1ovR6Sb.js +24 -0
  335. package/dist/ini-BZIuRIvJ.js +6 -0
  336. package/dist/ini-Dpu3Xy2p.cjs +1 -0
  337. package/dist/init-CHZsXQcr.cjs +1 -0
  338. package/dist/init-DjUOC4st.js +16 -0
  339. package/dist/java--6gf61wy.cjs +1 -0
  340. package/dist/java-DY6VlHhP.js +6 -0
  341. package/dist/javascript-C25yR2R2.js +6 -0
  342. package/dist/javascript-DgmXW4Ha.cjs +1 -0
  343. package/dist/jinja-6NmewwV8.cjs +1 -0
  344. package/dist/jinja-CFW5uAwY.js +11 -0
  345. package/dist/jison-CD9Qsaj0.cjs +1 -0
  346. package/dist/jison-DdreslRX.js +8 -0
  347. package/dist/journeyDiagram-XKPGCS4Q-D-YRkdmZ.cjs +139 -0
  348. package/dist/journeyDiagram-XKPGCS4Q-aab6wkCY.js +836 -0
  349. package/dist/json-DxJze_jm.js +6 -0
  350. package/dist/json-YkPizm35.cjs +1 -0
  351. package/dist/{json-diff-viewer-KCkYwJMA.cjs → json-diff-viewer-BafhQd3C.cjs} +2 -2
  352. package/dist/{json-diff-viewer-BhWTP1YY.js → json-diff-viewer-eh2Twply.js} +1 -1
  353. package/dist/json5-BT4Fjg39.js +6 -0
  354. package/dist/json5-CCgFZiQn.cjs +1 -0
  355. package/dist/jsonc-CHjZD8gR.js +6 -0
  356. package/dist/jsonc-CKPHIcXW.cjs +1 -0
  357. package/dist/jsonl-BGuvDmy9.js +6 -0
  358. package/dist/jsonl-Dq56Hab-.cjs +1 -0
  359. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  360. package/dist/jsonnet-Csh7E68F.cjs +1 -0
  361. package/dist/jssm-BcADi6EI.js +6 -0
  362. package/dist/jssm-D0M9iZPY.cjs +1 -0
  363. package/dist/jsx-BtKADgXT.js +6 -0
  364. package/dist/jsx-DLX6UGgg.cjs +1 -0
  365. package/dist/julia--2-efCjg.js +16 -0
  366. package/dist/julia-DimQn8rn.cjs +1 -0
  367. package/dist/kanagawa-dragon-BJZF7xDr.cjs +1 -0
  368. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  369. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  370. package/dist/kanagawa-lotus-BhgzmRV4.cjs +1 -0
  371. package/dist/kanagawa-wave-BgJip59C.cjs +1 -0
  372. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  373. package/dist/kanban-definition-3W4ZIXB7-BDK6FtYy.js +721 -0
  374. package/dist/kanban-definition-3W4ZIXB7-D_bnY8Es.cjs +89 -0
  375. package/dist/kdl-BNOv9TC3.js +6 -0
  376. package/dist/kdl-CDG1p2Qi.cjs +1 -0
  377. package/dist/kotlin-BHZjvNqT.cjs +1 -0
  378. package/dist/kotlin-ByBMgTeR.js +6 -0
  379. package/dist/kusto-BgZ0fOqg.cjs +1 -0
  380. package/dist/kusto-VWFLl2T0.js +6 -0
  381. package/dist/{lang-panel-by1VOWvc.js → lang-panel-Dha1mI9s.js} +33 -33
  382. package/dist/{lang-panel-tOddhH70.cjs → lang-panel-koRXBdpN.cjs} +1 -1
  383. package/dist/laserwave--izBLY1I.cjs +1 -0
  384. package/dist/laserwave-6a00oqik.js +4 -0
  385. package/dist/latex-CO8r39zT.js +8 -0
  386. package/dist/latex-Xma1qZep.cjs +1 -0
  387. package/dist/layout-AXx0t5i6.cjs +1 -0
  388. package/dist/layout-B6VyrpKo.js +1223 -0
  389. package/dist/lean-BCqiTZhG.cjs +1 -0
  390. package/dist/lean-k2QBx9cb.js +6 -0
  391. package/dist/less-B1GLI2Di.js +6 -0
  392. package/dist/less-Dtg8mm6P.cjs +1 -0
  393. package/dist/light-plus-B5D0le0o.cjs +1 -0
  394. package/dist/light-plus-CZuVqSLX.js +4 -0
  395. package/dist/linear-CBvDLesx.cjs +1 -0
  396. package/dist/linear-DmFX6iHR.js +259 -0
  397. package/dist/liquid-CHzkx3jT.js +14 -0
  398. package/dist/liquid-DjlCV7Vm.cjs +1 -0
  399. package/dist/llvm-DcRvQ_r8.cjs +1 -0
  400. package/dist/llvm-co1rIKs3.js +6 -0
  401. package/dist/log-Al8wyEFV.js +6 -0
  402. package/dist/log-CjTZ0gSB.cjs +1 -0
  403. package/dist/logo-BAktp_5i.cjs +1 -0
  404. package/dist/logo-DBa4JDzV.js +6 -0
  405. package/dist/lua-BfOnSJPp.cjs +1 -0
  406. package/dist/lua-kX5WP_P5.js +8 -0
  407. package/dist/luau-DTep-u3e.cjs +1 -0
  408. package/dist/luau-DtBSxLyz.js +6 -0
  409. package/dist/make-CsMclxtr.js +6 -0
  410. package/dist/make-NcdIe21U.cjs +1 -0
  411. package/dist/{mark-as-template-BUCysjr2.cjs → mark-as-template-BHkftF1C.cjs} +1 -1
  412. package/dist/{mark-as-template-ngqCvlhA.js → mark-as-template-DojgcJFD.js} +1 -1
  413. package/dist/markdown-Byu9Sdmq.cjs +1 -0
  414. package/dist/markdown-CrScaQ96.js +6 -0
  415. package/dist/marko-Cvx4TamJ.cjs +1 -0
  416. package/dist/marko-ls0Jg2j8.js +14 -0
  417. package/dist/material-theme-D6KBX41T.js +4 -0
  418. package/dist/material-theme-Dj0-OyRN.cjs +1 -0
  419. package/dist/material-theme-darker-CkRroheE.js +4 -0
  420. package/dist/material-theme-darker-Dvfs29ir.cjs +1 -0
  421. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  422. package/dist/material-theme-lighter-EU3ZGl_r.cjs +1 -0
  423. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  424. package/dist/material-theme-ocean-px_3Pwqa.cjs +1 -0
  425. package/dist/material-theme-palenight-38jxvsGX.cjs +1 -0
  426. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  427. package/dist/matlab-BOAaUVP0.js +6 -0
  428. package/dist/matlab-CHTOL9Kx.cjs +1 -0
  429. package/dist/mdc-DEPKJPdx.cjs +1 -0
  430. package/dist/mdc-uaivvctV.js +12 -0
  431. package/dist/mdx-BOhZZUJ8.js +6 -0
  432. package/dist/mdx-CjwI68TB.cjs +1 -0
  433. package/dist/mermaid-B0ixDHKN.js +6 -0
  434. package/dist/mermaid-XEfjk_VN.cjs +1 -0
  435. package/dist/mermaid-parser.core-Crve7Cv1.js +13256 -0
  436. package/dist/mermaid-parser.core-Df9eyFSv.cjs +128 -0
  437. package/dist/mermaid.core-DY8gIrXk.cjs +196 -0
  438. package/dist/mermaid.core-e6RNUZK7.js +14260 -0
  439. package/dist/min-dark-C7ak0t6c.js +4 -0
  440. package/dist/min-dark-tt5o_I5e.cjs +1 -0
  441. package/dist/min-light-CKFxVcPp.js +4 -0
  442. package/dist/min-light-tmTHl_CQ.cjs +1 -0
  443. package/dist/mindmap-definition-VGOIOE7T-BqZKJ_7z.js +787 -0
  444. package/dist/mindmap-definition-VGOIOE7T-CFYCEGsR.cjs +68 -0
  445. package/dist/mipsasm-BSlRcFIy.cjs +1 -0
  446. package/dist/mipsasm-CTx18fBl.js +6 -0
  447. package/dist/mojo-BD611d7o.js +6 -0
  448. package/dist/mojo-BQ8pQfYA.cjs +1 -0
  449. package/dist/monokai-C1KBYcO0.js +4 -0
  450. package/dist/monokai-DMIxv6MM.cjs +1 -0
  451. package/dist/move-Bm1vlCWg.cjs +1 -0
  452. package/dist/move-F-dICmj2.js +6 -0
  453. package/dist/narrat-CBeKHgTl.cjs +1 -0
  454. package/dist/narrat-DmhDCBs-.js +6 -0
  455. package/dist/nextflow-0_vzQJwQ.cjs +1 -0
  456. package/dist/nextflow-BAAEJxI_.js +6 -0
  457. package/dist/nginx-5vhPAEw3.js +8 -0
  458. package/dist/nginx-ByVOUyIE.cjs +1 -0
  459. package/dist/night-owl-BN78kThQ.cjs +1 -0
  460. package/dist/night-owl-Bm2rzalh.js +4 -0
  461. package/dist/nim-Bqmp5Of3.cjs +1 -0
  462. package/dist/nim-QAjRdh9w.js +20 -0
  463. package/dist/nix-B_7Vy2bT.js +6 -0
  464. package/dist/nix-BoOZl1xr.cjs +1 -0
  465. package/dist/{no-language-page-content-CzTbZ07M.cjs → no-language-page-content-BjlCydsa.cjs} +1 -1
  466. package/dist/{no-language-page-content-Dz3GSvnO.js → no-language-page-content-ZlibO6-a.js} +1 -1
  467. package/dist/nord-CC5OiUXg.js +4 -0
  468. package/dist/nord-Ca5AGUWc.cjs +1 -0
  469. package/dist/nushell-D8j3dhT-.js +6 -0
  470. package/dist/nushell-nGrB_wpI.cjs +1 -0
  471. package/dist/objective-c-Itk8tzmv.js +6 -0
  472. package/dist/objective-c-RjkWwFge.cjs +1 -0
  473. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  474. package/dist/objective-cpp-HnfhWwRe.cjs +1 -0
  475. package/dist/ocaml-Cx8ewW_A.cjs +1 -0
  476. package/dist/ocaml-eSVK32Eg.js +6 -0
  477. package/dist/one-dark-pro-C09VQHwB.cjs +1 -0
  478. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  479. package/dist/one-light-020-h_lv.cjs +1 -0
  480. package/dist/one-light-D9sNaUtq.js +4 -0
  481. package/dist/ordinal-CagbB1m8.cjs +1 -0
  482. package/dist/ordinal-DfAQgscy.js +61 -0
  483. package/dist/packet-BFZMPI3H-BNOgRfy4.js +5 -0
  484. package/dist/packet-BFZMPI3H-CmnL1d8H.cjs +1 -0
  485. package/dist/{page-creator-D2iEu92e.js → page-creator-CYxW-uMk.js} +2 -2
  486. package/dist/{page-creator-BICVMC59.cjs → page-creator-D-HTXuwL.cjs} +1 -1
  487. package/dist/{page-lock-request-DjfV2kmK.js → page-lock-request-DIqND4Zp.js} +5 -5
  488. package/dist/{page-lock-request-hlvjC2uX.cjs → page-lock-request-ggTN32LL.cjs} +1 -1
  489. package/dist/{page-locked-by-dialog-NpUOJvWZ.cjs → page-locked-by-dialog-DF_r3NKB.cjs} +1 -1
  490. package/dist/{page-locked-by-dialog-m6K_uaE8.js → page-locked-by-dialog-Dv1QMUs2.js} +1 -1
  491. package/dist/{page-manager-new-C2jmBaFF.cjs → page-manager-new-B7nEY5DJ.cjs} +1 -1
  492. package/dist/{page-manager-new-DshyH-mV.js → page-manager-new-iuNdn54Y.js} +56 -56
  493. package/dist/{page-manager-search-and-filter-D_g51CM8.cjs → page-manager-search-and-filter-BuQLf3EG.cjs} +1 -1
  494. package/dist/{page-manager-search-and-filter-DCg7Fqi_.js → page-manager-search-and-filter-Dvt-nBOL.js} +1 -1
  495. package/dist/{page-revisions-content-N_qdjfDX.cjs → page-revisions-content-CR_65Pri.cjs} +1 -1
  496. package/dist/{page-revisions-content-DZzxttKH.js → page-revisions-content-DH30uwKy.js} +18 -18
  497. package/dist/pages.css +1 -1
  498. package/dist/pascal-DBu9vQ2o.cjs +1 -0
  499. package/dist/pascal-xy8pJNns.js +6 -0
  500. package/dist/perl-CxWZPeDZ.cjs +1 -0
  501. package/dist/perl-DkVrgJBg.js +16 -0
  502. package/dist/php-BLXVJphD.cjs +1 -0
  503. package/dist/php-j2zCzTEz.js +18 -0
  504. package/dist/pie-7BOR55EZ-B4yrare5.js +5 -0
  505. package/dist/pie-7BOR55EZ-CM2pRchz.cjs +1 -0
  506. package/dist/pieDiagram-ADFJNKIX-C_B1s9Ov.cjs +30 -0
  507. package/dist/pieDiagram-ADFJNKIX-DhRe-2Yk.js +162 -0
  508. package/dist/pkl-C-zSNmaA.js +6 -0
  509. package/dist/pkl-Dvyry4Rm.cjs +1 -0
  510. package/dist/plastic-CSTz3KZp.js +4 -0
  511. package/dist/plastic-r5piqq-S.cjs +1 -0
  512. package/dist/plsql-IJkoPJ9P.cjs +1 -0
  513. package/dist/plsql-pVbGZfOv.js +6 -0
  514. package/dist/po-BNfHvqmm.js +6 -0
  515. package/dist/po-Rhu6MvnX.cjs +1 -0
  516. package/dist/poimandres-BLP3NNjc.cjs +1 -0
  517. package/dist/poimandres-C-VADXHD.js +4 -0
  518. package/dist/polar-BtWqSUq2.cjs +1 -0
  519. package/dist/polar-CAZahv3u.js +6 -0
  520. package/dist/postcss-05aHdL-n.js +6 -0
  521. package/dist/postcss-Dh97DcaJ.cjs +1 -0
  522. package/dist/powerquery-BGL6VIw7.cjs +1 -0
  523. package/dist/powerquery-DI9HkTvs.js +6 -0
  524. package/dist/powershell-BiEPMjy-.cjs +1 -0
  525. package/dist/powershell-Clc4ydu-.js +6 -0
  526. package/dist/prisma-Dp473sn0.cjs +1 -0
  527. package/dist/prisma-FZjmVtSl.js +6 -0
  528. package/dist/prolog-C5-yg4TO.js +6 -0
  529. package/dist/prolog-N1U-3UeF.cjs +1 -0
  530. package/dist/proto-MmCPeFAD.js +6 -0
  531. package/dist/proto-kd7Vn2fe.cjs +1 -0
  532. package/dist/{publish-pages-content-Dtu7807d.cjs → publish-pages-content-DOniOjSV.cjs} +1 -1
  533. package/dist/{publish-pages-content-CRvy9fwt.js → publish-pages-content-fwqyxl_3.js} +6 -6
  534. package/dist/pug-DiGNE7sm.cjs +1 -0
  535. package/dist/pug-XOw9Q1Ho.js +12 -0
  536. package/dist/puppet-CUJHmnxV.js +6 -0
  537. package/dist/puppet-cDQP_ZC_.cjs +1 -0
  538. package/dist/purescript-DMxb59gF.cjs +1 -0
  539. package/dist/purescript-rUfGld-4.js +6 -0
  540. package/dist/python-BFNSHbwJ.js +6 -0
  541. package/dist/python-s9jfVbew.cjs +1 -0
  542. package/dist/qml-beorq0E4.cjs +1 -0
  543. package/dist/qml-rTNXsquU.js +8 -0
  544. package/dist/qmldir-BInDYbpo.js +6 -0
  545. package/dist/qmldir-DNF9H2ir.cjs +1 -0
  546. package/dist/qss-AeJTysr_.js +6 -0
  547. package/dist/qss-DwA_oiAM.cjs +1 -0
  548. package/dist/quadrantDiagram-AYHSOK5B-CrS56DWV.cjs +7 -0
  549. package/dist/quadrantDiagram-AYHSOK5B-DSaDCScU.js +1024 -0
  550. package/dist/r-Bm0uF0U2.js +6 -0
  551. package/dist/r-ChIwckeM.cjs +1 -0
  552. package/dist/racket-B83wSAja.js +6 -0
  553. package/dist/racket-D4laxZit.cjs +1 -0
  554. package/dist/radar-NHE76QYJ-CN3oBECV.js +5 -0
  555. package/dist/radar-NHE76QYJ-CPX8AaYO.cjs +1 -0
  556. package/dist/raku-DHySPsLw.cjs +1 -0
  557. package/dist/raku-nEQ4ZJJ7.js +6 -0
  558. package/dist/razor-DgCbant-.cjs +1 -0
  559. package/dist/razor-Dh1wKTmh.js +10 -0
  560. package/dist/red-7y8PH7HH.js +4 -0
  561. package/dist/red-BQGOv1D5.cjs +1 -0
  562. package/dist/reg-CevkCKuZ.cjs +1 -0
  563. package/dist/reg-m_s_Kiip.js +6 -0
  564. package/dist/regexp-BazyLpPg.js +6 -0
  565. package/dist/regexp-DabTWNLE.cjs +1 -0
  566. package/dist/rel-BS5APza7.cjs +1 -0
  567. package/dist/rel-BcRfyd6Q.js +6 -0
  568. package/dist/render.d.ts +12 -0
  569. package/dist/requirementDiagram-UZGBJVZJ-CbpHc5TO.js +852 -0
  570. package/dist/requirementDiagram-UZGBJVZJ-D60OatrS.cjs +64 -0
  571. package/dist/riscv-BnGFr6V7.cjs +1 -0
  572. package/dist/riscv-Ce8MAQLP.js +6 -0
  573. package/dist/rose-pine-Cr4kwgAY.js +4 -0
  574. package/dist/rose-pine-Dynd1SQq.cjs +1 -0
  575. package/dist/rose-pine-dawn-ClRRUdXX.js +4 -0
  576. package/dist/rose-pine-dawn-DwrpEjkh.cjs +1 -0
  577. package/dist/rose-pine-moon-8HmiewSG.cjs +1 -0
  578. package/dist/rose-pine-moon-ucNn3Gm8.js +4 -0
  579. package/dist/rosmsg-C7VSFzUC.cjs +1 -0
  580. package/dist/rosmsg-Cz0w1km8.js +6 -0
  581. package/dist/rst-CcbeA9zE.js +22 -0
  582. package/dist/rst-D08gsKw8.cjs +1 -0
  583. package/dist/ruby-B5H7kBtd.cjs +1 -0
  584. package/dist/ruby-DMPw6uKF.js +30 -0
  585. package/dist/runtime.d.ts +12 -0
  586. package/dist/rust-CLzF9zIN.js +6 -0
  587. package/dist/rust-CNeTMPbB.cjs +1 -0
  588. package/dist/sankeyDiagram-TZEHDZUN-AFuyaZMZ.js +810 -0
  589. package/dist/sankeyDiagram-TZEHDZUN-DklD-Q91.cjs +10 -0
  590. package/dist/sas-D5Fn8Q38.cjs +1 -0
  591. package/dist/sas-fpEvgATw.js +8 -0
  592. package/dist/sass-DxHp5rTx.js +6 -0
  593. package/dist/sass-vyo-bUwh.cjs +1 -0
  594. package/dist/{save-to-lib-BE0-MXVv.js → save-to-lib-DKP-iiLU.js} +1 -1
  595. package/dist/{save-to-lib-XnTNVHzy.cjs → save-to-lib-DmZbKkm9.cjs} +1 -1
  596. package/dist/scala-D4grkFkl.js +6 -0
  597. package/dist/scala-ZSekD-8-.cjs +1 -0
  598. package/dist/scheme-BCRWuEm4.js +6 -0
  599. package/dist/scheme-vM0LdD-_.cjs +1 -0
  600. package/dist/scss-B1FaCqwR.js +8 -0
  601. package/dist/scss-CKlduTMv.cjs +1 -0
  602. package/dist/sdbl-B7T8abf4.js +6 -0
  603. package/dist/sdbl-DeWT5r4i.cjs +1 -0
  604. package/dist/selected-block-display-BPkRbRtv.js +43632 -0
  605. package/dist/selected-block-display-CMhOKq0c.cjs +541 -0
  606. package/dist/{seo-panel-dIE8Wi40.js → seo-panel-D1FyS42r.js} +17 -17
  607. package/dist/{seo-panel-Ce3uf7XT.cjs → seo-panel-l-VdkTzp.cjs} +1 -1
  608. package/dist/sequenceDiagram-WL72ISMW-CotOH2Xj.cjs +145 -0
  609. package/dist/sequenceDiagram-WL72ISMW-p_o77zn1.js +2522 -0
  610. package/dist/server.cjs +206 -121
  611. package/dist/server.d.ts +12 -0
  612. package/dist/server.js +775 -690
  613. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  614. package/dist/shaderlab-DGJjQHxC.cjs +1 -0
  615. package/dist/{shared-json-ld-DiVirR4t.cjs → shared-json-ld-0VORoKPu.cjs} +1 -1
  616. package/dist/{shared-json-ld-UCI8GeFi.js → shared-json-ld-jn36kQ1J.js} +48 -48
  617. package/dist/shellscript-DYWjN7qW.cjs +1 -0
  618. package/dist/shellscript-InADTalH.js +6 -0
  619. package/dist/shellsession-DMUSXX8m.cjs +1 -0
  620. package/dist/shellsession-DiDJNQdy.js +8 -0
  621. package/dist/slack-dark-akqwQ7ED.cjs +1 -0
  622. package/dist/slack-dark-i7wN4OET.js +4 -0
  623. package/dist/slack-ochin-BoQQWmTv.cjs +1 -0
  624. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  625. package/dist/{slug-input-BbkCbVMY.cjs → slug-input-CPHwulQv.cjs} +1 -1
  626. package/dist/{slug-input-DTA7c8c6.js → slug-input-DPMG1pMZ.js} +1 -1
  627. package/dist/smalltalk-BNs6hxu4.cjs +1 -0
  628. package/dist/smalltalk-BlI1_OkM.js +6 -0
  629. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  630. package/dist/snazzy-light-D_IwRieF.cjs +1 -0
  631. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  632. package/dist/solarized-dark-gmm-WbDC.cjs +1 -0
  633. package/dist/solarized-light-BheCkDPT.js +4 -0
  634. package/dist/solarized-light-DzcxRSZP.cjs +1 -0
  635. package/dist/solidity-CYggdHYd.cjs +1 -0
  636. package/dist/solidity-CneOhxmR.js +6 -0
  637. package/dist/soy-C1-6njHa.js +8 -0
  638. package/dist/soy-CDFPDtGX.cjs +1 -0
  639. package/dist/sparql-6Cg9ppCl.cjs +1 -0
  640. package/dist/sparql-B0KWFEri.js +8 -0
  641. package/dist/splunk-CRXR8A9s.js +6 -0
  642. package/dist/splunk-CWPivao_.cjs +1 -0
  643. package/dist/sql-Cn_v3PB0.js +6 -0
  644. package/dist/sql-DhUUVgH1.cjs +1 -0
  645. package/dist/ssh-config-B93wBIBa.cjs +1 -0
  646. package/dist/ssh-config-DP-hNVbF.js +6 -0
  647. package/dist/stata-B8c5fTjX.js +8 -0
  648. package/dist/stata-DCWFCQQG.cjs +1 -0
  649. package/dist/stateDiagram-FKZM4ZOC-B1pfSzZB.cjs +1 -0
  650. package/dist/stateDiagram-FKZM4ZOC-Ch8gd7OX.js +264 -0
  651. package/dist/stateDiagram-v2-4FDKWEC3-BDxmTUgh.js +16 -0
  652. package/dist/stateDiagram-v2-4FDKWEC3-DCj4svbU.cjs +1 -0
  653. package/dist/stylus-B64Bt0D4.cjs +1 -0
  654. package/dist/stylus-CyKEU1Ej.js +6 -0
  655. package/dist/svelte-5UasyOg7.js +14 -0
  656. package/dist/svelte-DFg_x5i4.cjs +1 -0
  657. package/dist/swift-9UzSvamq.js +6 -0
  658. package/dist/swift-BMbGdc3j.cjs +1 -0
  659. package/dist/synthwave-84-BBRLOmNT.cjs +1 -0
  660. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  661. package/dist/system-verilog-BCm7smPJ.js +6 -0
  662. package/dist/system-verilog-BFclLo9e.cjs +1 -0
  663. package/dist/systemd-C-4qm6XH.js +6 -0
  664. package/dist/systemd-Dtw7P4tb.cjs +1 -0
  665. package/dist/tailwind.d.ts +12 -0
  666. package/dist/talonscript-CFF3LF_O.js +6 -0
  667. package/dist/talonscript-D8SvZJVc.cjs +1 -0
  668. package/dist/tasl--DC4oX-L.cjs +1 -0
  669. package/dist/tasl-Cg_WBUAe.js +6 -0
  670. package/dist/tcl-0Q0H86Yn.cjs +1 -0
  671. package/dist/tcl-DN7buRTF.js +6 -0
  672. package/dist/templ-BDNMUns0.cjs +1 -0
  673. package/dist/templ-peLZIM2D.js +12 -0
  674. package/dist/terraform-C0RDrmWi.cjs +1 -0
  675. package/dist/terraform-DGvcn9zM.js +6 -0
  676. package/dist/tex-BUUuwxQS.js +8 -0
  677. package/dist/tex-By7qnogv.cjs +1 -0
  678. package/dist/{theme-panel-footer-uGKDjNbs.cjs → theme-panel-footer-DsZ67xQ8.cjs} +1 -1
  679. package/dist/{theme-panel-footer-BjRPU7lq.js → theme-panel-footer-XREndTvO.js} +1 -1
  680. package/dist/timeline-definition-IT6M3QCI-CK1EW7lG.cjs +61 -0
  681. package/dist/timeline-definition-IT6M3QCI-CmX-2kfr.js +801 -0
  682. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  683. package/dist/tokyo-night-GOhjzM5y.cjs +1 -0
  684. package/dist/toml-DY62mUL_.js +6 -0
  685. package/dist/toml-Q64DoSvG.cjs +1 -0
  686. package/dist/treemap-KMMF4GRG-B51FyMCU.js +5 -0
  687. package/dist/treemap-KMMF4GRG-D5Rm845j.cjs +1 -0
  688. package/dist/ts-tags-DILCom6A.cjs +1 -0
  689. package/dist/ts-tags-ioVe2PKw.js +41 -0
  690. package/dist/tsv-BtvSkaG0.js +6 -0
  691. package/dist/tsv-DqNGnuVj.cjs +1 -0
  692. package/dist/tsx-B8rCNbgL.js +6 -0
  693. package/dist/tsx-DIpfUf9u.cjs +1 -0
  694. package/dist/turtle-DipIidr5.cjs +1 -0
  695. package/dist/turtle-_H59FV7D.js +6 -0
  696. package/dist/twig-B42NGISI.cjs +1 -0
  697. package/dist/twig-CcRLVyUg.js +18 -0
  698. package/dist/typescript-RycA9KXf.js +6 -0
  699. package/dist/typescript-b48wo4zk.cjs +1 -0
  700. package/dist/typespec-CLqB-2XS.cjs +1 -0
  701. package/dist/typespec-Djmco60m.js +6 -0
  702. package/dist/typst-Cqq4j4V-.cjs +1 -0
  703. package/dist/typst-D_1QKWns.js +6 -0
  704. package/dist/{unmark-as-template-Dbhko_72.cjs → unmark-as-template-BB_2lvTh.cjs} +1 -1
  705. package/dist/{unmark-as-template-BWviVI2t.js → unmark-as-template-VHopisw3.js} +1 -1
  706. package/dist/{unpublish-page-BzI9EFF9.js → unpublish-page-Cq5OwCf-.js} +1 -1
  707. package/dist/{unpublish-page-D0EmMryc.cjs → unpublish-page-DJKgb2OG.cjs} +1 -1
  708. package/dist/use-page-expand-manager-B5Y2KS1c.cjs +1 -0
  709. package/dist/utils.d.ts +12 -0
  710. package/dist/v-81C2s01-.cjs +1 -0
  711. package/dist/v-BPCNiyYe.js +6 -0
  712. package/dist/vala-CsAYdCD2.cjs +1 -0
  713. package/dist/vala-uxaPR7d1.js +6 -0
  714. package/dist/vb-AiTMb16X.cjs +1 -0
  715. package/dist/vb-D8_c5-KN.js +6 -0
  716. package/dist/verilog-AMohXZcN.cjs +1 -0
  717. package/dist/verilog-B-bybjPF.js +6 -0
  718. package/dist/vesper-B59Iw4gV.cjs +1 -0
  719. package/dist/vesper-BckBta1U.js +4 -0
  720. package/dist/vhdl-CUlNa8ac.js +6 -0
  721. package/dist/vhdl-DIdR1NA5.cjs +1 -0
  722. package/dist/viml-D01eKeA4.cjs +1 -0
  723. package/dist/viml-DsfA-sWm.js +6 -0
  724. package/dist/vitesse-black-BoGvW84i.js +4 -0
  725. package/dist/vitesse-black-MF-1S1MG.cjs +1 -0
  726. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  727. package/dist/vitesse-dark-SIffJYSe.cjs +1 -0
  728. package/dist/vitesse-light-CcmG315c.js +4 -0
  729. package/dist/vitesse-light-U63SkYGT.cjs +1 -0
  730. package/dist/vue-DUYfTwgV.cjs +1 -0
  731. package/dist/vue-DrinnB8Y.js +31 -0
  732. package/dist/vue-html-B8T_zUQ-.cjs +1 -0
  733. package/dist/vue-html-CQOyCFnQ.js +10 -0
  734. package/dist/vue-vine-CAyeVfAj.js +20 -0
  735. package/dist/vue-vine-ClEtVpt5.cjs +1 -0
  736. package/dist/vyper-CPQuu50u.js +6 -0
  737. package/dist/vyper-DTzyzn3a.cjs +1 -0
  738. package/dist/wasm-BBXxrAl7.js +6 -0
  739. package/dist/wasm-DQxwEHae.js +7 -0
  740. package/dist/wasm-Dp-QrJpp.cjs +1 -0
  741. package/dist/wasm-Dw4u1m6u.cjs +1 -0
  742. package/dist/web-blocks.d.ts +12 -0
  743. package/dist/{web-preview-SIUM1SWa.js → web-preview-BEYsnCo4.js} +2 -2
  744. package/dist/{web-preview-CSV-DXpI.cjs → web-preview-CGX6_m7_.cjs} +1 -1
  745. package/dist/wenyan-CRNx8UP3.cjs +1 -0
  746. package/dist/wenyan-pbVjoM9_.js +6 -0
  747. package/dist/wgsl-DF5qc9dd.cjs +1 -0
  748. package/dist/wgsl-DY4iK1q1.js +6 -0
  749. package/dist/wikitext-D7uzEIfK.cjs +1 -0
  750. package/dist/wikitext-Z-MoUasO.js +6 -0
  751. package/dist/wit-BjWgLsJj.cjs +1 -0
  752. package/dist/wit-CQMQOlTg.js +6 -0
  753. package/dist/wolfram-BR4t3Ffc.cjs +1 -0
  754. package/dist/wolfram-Dz4KXISs.js +6 -0
  755. package/dist/xml-BpsKWkuV.cjs +1 -0
  756. package/dist/xml-C2J0sS9M.js +8 -0
  757. package/dist/xsl-BmSZphgC.js +8 -0
  758. package/dist/xsl-D-3VYix6.cjs +1 -0
  759. package/dist/xychartDiagram-PRI3JC2R-BXSS1azt.cjs +7 -0
  760. package/dist/xychartDiagram-PRI3JC2R-vt3IdmK_.js +1340 -0
  761. package/dist/yaml-DaO7k5B1.js +6 -0
  762. package/dist/yaml-XVBmpKh-.cjs +1 -0
  763. package/dist/zenscript-CxBjpf9c.js +6 -0
  764. package/dist/zenscript-fNvwKexi.cjs +1 -0
  765. package/dist/zig-BAyIAcWK.cjs +1 -0
  766. package/dist/zig-Vm0PO9wB.js +6 -0
  767. package/package.json +19 -3
  768. package/dist/ai-panel-content-B7VWN9Hp.js +0 -54
  769. package/dist/ai-panel-content-DvNWlTtZ.cjs +0 -1
  770. package/dist/ai-panel-default-lang-DRkJegQm.js +0 -178
  771. package/dist/ai-panel-default-lang-Dnfg53l_.cjs +0 -1
  772. package/dist/ai-panel-message-bubble-Bl-aUeU4.cjs +0 -1
  773. package/dist/ai-panel-message-bubble-DPAaAMAZ.js +0 -38
  774. package/dist/ai-panel-other-lang-0_g52R_I.cjs +0 -1
  775. package/dist/ai-panel-other-lang-CQVkWTd3.js +0 -150
  776. package/dist/ai-panel-quick-prompts-BfMsNuRu.js +0 -46
  777. package/dist/ai-panel-quick-prompts-CGKAAn9A.cjs +0 -1
  778. package/dist/ai-prompt-input-C3TnCYfz.js +0 -222
  779. package/dist/ai-prompt-input-CffQQOKA.cjs +0 -1
  780. package/dist/index-B1OACNv-.cjs +0 -5
  781. package/dist/prompt-helper-D0QRFyFX.js +0 -187
  782. package/dist/prompt-helper-DIy7u3rt.cjs +0 -51
  783. package/dist/use-page-expand-manager-2KjeYfVS.cjs +0 -1
@@ -0,0 +1,2368 @@
1
+ import { g as ke } from "./chunk-FMBD7UC4-DsnO3YB7.js";
2
+ import { aF as qt, aG as Rt, aH as Te, aI as De, aJ as Jt, aK as Tt, aL as gt, aM as Qt, aN as Ne, aO as Ce, aP as Ie, aQ as Be, aR as Ae, aS as Oe, ax as Re, aT as ze, _ as g, d as z, l as L, j as R, i as mt, aU as Me, G as it, aV as Z, aD as te, aq as je, u as rt, aW as Fe, a9 as Pe, a4 as We, k as Ye, v as Ue, B as He, aa as Ke, aX as Xe, aY as Lt, e as Ve } from "./mermaid.core-e6RNUZK7.js";
3
+ import { k as Ge, g as $e, a as Ze, b as qe } from "./_arrayEach-BoWUuJyH.js";
4
+ import { G as Je } from "./graph-BJDrjORS.js";
5
+ import { c as Qe } from "./channel-DMpDH8Tt.js";
6
+ function tr(e, t) {
7
+ return e && qt(t, Ge(t), e);
8
+ }
9
+ function er(e, t) {
10
+ return qt(e, $e(e), t);
11
+ }
12
+ var rr = Object.prototype, ar = rr.hasOwnProperty;
13
+ function sr(e) {
14
+ var t = e.length, a = new e.constructor(t);
15
+ return t && typeof e[0] == "string" && ar.call(e, "index") && (a.index = e.index, a.input = e.input), a;
16
+ }
17
+ function ir(e, t) {
18
+ var a = e.buffer;
19
+ return new e.constructor(a, e.byteOffset, e.byteLength);
20
+ }
21
+ var nr = /\w*$/;
22
+ function lr(e) {
23
+ var t = new e.constructor(e.source, nr.exec(e));
24
+ return t.lastIndex = e.lastIndex, t;
25
+ }
26
+ var zt = Rt ? Rt.prototype : void 0, Mt = zt ? zt.valueOf : void 0;
27
+ function cr(e) {
28
+ return Mt ? Object(Mt.call(e)) : {};
29
+ }
30
+ var or = "[object Boolean]", hr = "[object Date]", gr = "[object Map]", dr = "[object Number]", ur = "[object RegExp]", pr = "[object Set]", fr = "[object String]", yr = "[object Symbol]", xr = "[object ArrayBuffer]", br = "[object DataView]", wr = "[object Float32Array]", mr = "[object Float64Array]", Lr = "[object Int8Array]", Sr = "[object Int16Array]", vr = "[object Int32Array]", Er = "[object Uint8Array]", _r = "[object Uint8ClampedArray]", kr = "[object Uint16Array]", Tr = "[object Uint32Array]";
31
+ function Dr(e, t, a) {
32
+ var i = e.constructor;
33
+ switch (t) {
34
+ case xr:
35
+ return De(e);
36
+ case or:
37
+ case hr:
38
+ return new i(+e);
39
+ case br:
40
+ return ir(e);
41
+ case wr:
42
+ case mr:
43
+ case Lr:
44
+ case Sr:
45
+ case vr:
46
+ case Er:
47
+ case _r:
48
+ case kr:
49
+ case Tr:
50
+ return Te(e, a);
51
+ case gr:
52
+ return new i();
53
+ case dr:
54
+ case fr:
55
+ return new i(e);
56
+ case ur:
57
+ return lr(e);
58
+ case pr:
59
+ return new i();
60
+ case yr:
61
+ return cr(e);
62
+ }
63
+ }
64
+ var Nr = "[object Map]";
65
+ function Cr(e) {
66
+ return Jt(e) && Tt(e) == Nr;
67
+ }
68
+ var jt = gt && gt.isMap, Ir = jt ? Qt(jt) : Cr, Br = "[object Set]";
69
+ function Ar(e) {
70
+ return Jt(e) && Tt(e) == Br;
71
+ }
72
+ var Ft = gt && gt.isSet, Or = Ft ? Qt(Ft) : Ar, Rr = 1, ee = "[object Arguments]", zr = "[object Array]", Mr = "[object Boolean]", jr = "[object Date]", Fr = "[object Error]", re = "[object Function]", Pr = "[object GeneratorFunction]", Wr = "[object Map]", Yr = "[object Number]", ae = "[object Object]", Ur = "[object RegExp]", Hr = "[object Set]", Kr = "[object String]", Xr = "[object Symbol]", Vr = "[object WeakMap]", Gr = "[object ArrayBuffer]", $r = "[object DataView]", Zr = "[object Float32Array]", qr = "[object Float64Array]", Jr = "[object Int8Array]", Qr = "[object Int16Array]", ta = "[object Int32Array]", ea = "[object Uint8Array]", ra = "[object Uint8ClampedArray]", aa = "[object Uint16Array]", sa = "[object Uint32Array]", C = {};
73
+ C[ee] = C[zr] = C[Gr] = C[$r] = C[Mr] = C[jr] = C[Zr] = C[qr] = C[Jr] = C[Qr] = C[ta] = C[Wr] = C[Yr] = C[ae] = C[Ur] = C[Hr] = C[Kr] = C[Xr] = C[ea] = C[ra] = C[aa] = C[sa] = !0;
74
+ C[Fr] = C[re] = C[Vr] = !1;
75
+ function ot(e, t, a, i, l, s) {
76
+ var r, n = t & Rr;
77
+ if (r !== void 0)
78
+ return r;
79
+ if (!Ne(e))
80
+ return e;
81
+ var o = Re(e);
82
+ if (o)
83
+ return r = sr(e), Ce(e, r);
84
+ var u = Tt(e), h = u == re || u == Pr;
85
+ if (Ie(e))
86
+ return Be(e, n);
87
+ if (u == ae || u == ee || h && !l)
88
+ return r = h ? {} : Ae(e), er(e, tr(r, e));
89
+ if (!C[u])
90
+ return l ? e : {};
91
+ r = Dr(e, u, n), s || (s = new Oe());
92
+ var x = s.get(e);
93
+ if (x)
94
+ return x;
95
+ s.set(e, r), Or(e) ? e.forEach(function(S) {
96
+ r.add(ot(S, t, a, S, e, s));
97
+ }) : Ir(e) && e.forEach(function(S, k) {
98
+ r.set(k, ot(S, t, a, k, e, s));
99
+ });
100
+ var b = qe, m = o ? void 0 : b(e);
101
+ return Ze(m || e, function(S, k) {
102
+ m && (k = S, S = e[k]), ze(r, k, ot(S, t, a, k, e, s));
103
+ }), r;
104
+ }
105
+ var ia = 4;
106
+ function na(e) {
107
+ return ot(e, ia);
108
+ }
109
+ var St = function() {
110
+ var e = /* @__PURE__ */ g(function(D, y, d, p) {
111
+ for (d = d || {}, p = D.length; p--; d[D[p]] = y) ;
112
+ return d;
113
+ }, "o"), t = [1, 15], a = [1, 7], i = [1, 13], l = [1, 14], s = [1, 19], r = [1, 16], n = [1, 17], o = [1, 18], u = [8, 30], h = [8, 10, 21, 28, 29, 30, 31, 39, 43, 46], x = [1, 23], b = [1, 24], m = [8, 10, 15, 16, 21, 28, 29, 30, 31, 39, 43, 46], S = [8, 10, 15, 16, 21, 27, 28, 29, 30, 31, 39, 43, 46], k = [1, 49], E = {
114
+ trace: /* @__PURE__ */ g(function() {
115
+ }, "trace"),
116
+ yy: {},
117
+ symbols_: { error: 2, spaceLines: 3, SPACELINE: 4, NL: 5, separator: 6, SPACE: 7, EOF: 8, start: 9, BLOCK_DIAGRAM_KEY: 10, document: 11, stop: 12, statement: 13, link: 14, LINK: 15, START_LINK: 16, LINK_LABEL: 17, STR: 18, nodeStatement: 19, columnsStatement: 20, SPACE_BLOCK: 21, blockStatement: 22, classDefStatement: 23, cssClassStatement: 24, styleStatement: 25, node: 26, SIZE: 27, COLUMNS: 28, "id-block": 29, end: 30, NODE_ID: 31, nodeShapeNLabel: 32, dirList: 33, DIR: 34, NODE_DSTART: 35, NODE_DEND: 36, BLOCK_ARROW_START: 37, BLOCK_ARROW_END: 38, classDef: 39, CLASSDEF_ID: 40, CLASSDEF_STYLEOPTS: 41, DEFAULT: 42, class: 43, CLASSENTITY_IDS: 44, STYLECLASS: 45, style: 46, STYLE_ENTITY_IDS: 47, STYLE_DEFINITION_DATA: 48, $accept: 0, $end: 1 },
118
+ terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "NODE_ID", 34: "DIR", 35: "NODE_DSTART", 36: "NODE_DEND", 37: "BLOCK_ARROW_START", 38: "BLOCK_ARROW_END", 39: "classDef", 40: "CLASSDEF_ID", 41: "CLASSDEF_STYLEOPTS", 42: "DEFAULT", 43: "class", 44: "CLASSENTITY_IDS", 45: "STYLECLASS", 46: "style", 47: "STYLE_ENTITY_IDS", 48: "STYLE_DEFINITION_DATA" },
119
+ productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [33, 1], [33, 2], [32, 3], [32, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
120
+ performAction: /* @__PURE__ */ g(function(y, d, p, w, v, c, _) {
121
+ var f = c.length - 1;
122
+ switch (v) {
123
+ case 4:
124
+ w.getLogger().debug("Rule: separator (NL) ");
125
+ break;
126
+ case 5:
127
+ w.getLogger().debug("Rule: separator (Space) ");
128
+ break;
129
+ case 6:
130
+ w.getLogger().debug("Rule: separator (EOF) ");
131
+ break;
132
+ case 7:
133
+ w.getLogger().debug("Rule: hierarchy: ", c[f - 1]), w.setHierarchy(c[f - 1]);
134
+ break;
135
+ case 8:
136
+ w.getLogger().debug("Stop NL ");
137
+ break;
138
+ case 9:
139
+ w.getLogger().debug("Stop EOF ");
140
+ break;
141
+ case 10:
142
+ w.getLogger().debug("Stop NL2 ");
143
+ break;
144
+ case 11:
145
+ w.getLogger().debug("Stop EOF2 ");
146
+ break;
147
+ case 12:
148
+ w.getLogger().debug("Rule: statement: ", c[f]), typeof c[f].length == "number" ? this.$ = c[f] : this.$ = [c[f]];
149
+ break;
150
+ case 13:
151
+ w.getLogger().debug("Rule: statement #2: ", c[f - 1]), this.$ = [c[f - 1]].concat(c[f]);
152
+ break;
153
+ case 14:
154
+ w.getLogger().debug("Rule: link: ", c[f], y), this.$ = { edgeTypeStr: c[f], label: "" };
155
+ break;
156
+ case 15:
157
+ w.getLogger().debug("Rule: LABEL link: ", c[f - 3], c[f - 1], c[f]), this.$ = { edgeTypeStr: c[f], label: c[f - 1] };
158
+ break;
159
+ case 18:
160
+ const M = parseInt(c[f]), O = w.generateId();
161
+ this.$ = { id: O, type: "space", label: "", width: M, children: [] };
162
+ break;
163
+ case 23:
164
+ w.getLogger().debug("Rule: (nodeStatement link node) ", c[f - 2], c[f - 1], c[f], " typestr: ", c[f - 1].edgeTypeStr);
165
+ const K = w.edgeStrToEdgeData(c[f - 1].edgeTypeStr);
166
+ this.$ = [
167
+ { id: c[f - 2].id, label: c[f - 2].label, type: c[f - 2].type, directions: c[f - 2].directions },
168
+ { id: c[f - 2].id + "-" + c[f].id, start: c[f - 2].id, end: c[f].id, label: c[f - 1].label, type: "edge", directions: c[f].directions, arrowTypeEnd: K, arrowTypeStart: "arrow_open" },
169
+ { id: c[f].id, label: c[f].label, type: w.typeStr2Type(c[f].typeStr), directions: c[f].directions }
170
+ ];
171
+ break;
172
+ case 24:
173
+ w.getLogger().debug("Rule: nodeStatement (abc88 node size) ", c[f - 1], c[f]), this.$ = { id: c[f - 1].id, label: c[f - 1].label, type: w.typeStr2Type(c[f - 1].typeStr), directions: c[f - 1].directions, widthInColumns: parseInt(c[f], 10) };
174
+ break;
175
+ case 25:
176
+ w.getLogger().debug("Rule: nodeStatement (node) ", c[f]), this.$ = { id: c[f].id, label: c[f].label, type: w.typeStr2Type(c[f].typeStr), directions: c[f].directions, widthInColumns: 1 };
177
+ break;
178
+ case 26:
179
+ w.getLogger().debug("APA123", this ? this : "na"), w.getLogger().debug("COLUMNS: ", c[f]), this.$ = { type: "column-setting", columns: c[f] === "auto" ? -1 : parseInt(c[f]) };
180
+ break;
181
+ case 27:
182
+ w.getLogger().debug("Rule: id-block statement : ", c[f - 2], c[f - 1]), w.generateId(), this.$ = { ...c[f - 2], type: "composite", children: c[f - 1] };
183
+ break;
184
+ case 28:
185
+ w.getLogger().debug("Rule: blockStatement : ", c[f - 2], c[f - 1], c[f]);
186
+ const W = w.generateId();
187
+ this.$ = { id: W, type: "composite", label: "", children: c[f - 1] };
188
+ break;
189
+ case 29:
190
+ w.getLogger().debug("Rule: node (NODE_ID separator): ", c[f]), this.$ = { id: c[f] };
191
+ break;
192
+ case 30:
193
+ w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", c[f - 1], c[f]), this.$ = { id: c[f - 1], label: c[f].label, typeStr: c[f].typeStr, directions: c[f].directions };
194
+ break;
195
+ case 31:
196
+ w.getLogger().debug("Rule: dirList: ", c[f]), this.$ = [c[f]];
197
+ break;
198
+ case 32:
199
+ w.getLogger().debug("Rule: dirList: ", c[f - 1], c[f]), this.$ = [c[f - 1]].concat(c[f]);
200
+ break;
201
+ case 33:
202
+ w.getLogger().debug("Rule: nodeShapeNLabel: ", c[f - 2], c[f - 1], c[f]), this.$ = { typeStr: c[f - 2] + c[f], label: c[f - 1] };
203
+ break;
204
+ case 34:
205
+ w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", c[f - 3], c[f - 2], " #3:", c[f - 1], c[f]), this.$ = { typeStr: c[f - 3] + c[f], label: c[f - 2], directions: c[f - 1] };
206
+ break;
207
+ case 35:
208
+ case 36:
209
+ this.$ = { type: "classDef", id: c[f - 1].trim(), css: c[f].trim() };
210
+ break;
211
+ case 37:
212
+ this.$ = { type: "applyClass", id: c[f - 1].trim(), styleClass: c[f].trim() };
213
+ break;
214
+ case 38:
215
+ this.$ = { type: "applyStyles", id: c[f - 1].trim(), stylesStr: c[f].trim() };
216
+ break;
217
+ }
218
+ }, "anonymous"),
219
+ table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 10: t, 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: l, 31: s, 39: r, 43: n, 46: o }, { 8: [1, 20] }, e(u, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 10: t, 21: a, 28: i, 29: l, 31: s, 39: r, 43: n, 46: o }), e(h, [2, 16], { 14: 22, 15: x, 16: b }), e(h, [2, 17]), e(h, [2, 18]), e(h, [2, 19]), e(h, [2, 20]), e(h, [2, 21]), e(h, [2, 22]), e(m, [2, 25], { 27: [1, 25] }), e(h, [2, 26]), { 19: 26, 26: 12, 31: s }, { 10: t, 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: l, 31: s, 39: r, 43: n, 46: o }, { 40: [1, 28], 42: [1, 29] }, { 44: [1, 30] }, { 47: [1, 31] }, e(S, [2, 29], { 32: 32, 35: [1, 33], 37: [1, 34] }), { 1: [2, 7] }, e(u, [2, 13]), { 26: 35, 31: s }, { 31: [2, 14] }, { 17: [1, 36] }, e(m, [2, 24]), { 10: t, 11: 37, 13: 4, 14: 22, 15: x, 16: b, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: l, 31: s, 39: r, 43: n, 46: o }, { 30: [1, 38] }, { 41: [1, 39] }, { 41: [1, 40] }, { 45: [1, 41] }, { 48: [1, 42] }, e(S, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(m, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(h, [2, 28]), e(h, [2, 35]), e(h, [2, 36]), e(h, [2, 37]), e(h, [2, 38]), { 36: [1, 47] }, { 33: 48, 34: k }, { 15: [1, 50] }, e(h, [2, 27]), e(S, [2, 33]), { 38: [1, 51] }, { 33: 52, 34: k, 38: [2, 31] }, { 31: [2, 15] }, e(S, [2, 34]), { 38: [2, 32] }],
220
+ defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
221
+ parseError: /* @__PURE__ */ g(function(y, d) {
222
+ if (d.recoverable)
223
+ this.trace(y);
224
+ else {
225
+ var p = new Error(y);
226
+ throw p.hash = d, p;
227
+ }
228
+ }, "parseError"),
229
+ parse: /* @__PURE__ */ g(function(y) {
230
+ var d = this, p = [0], w = [], v = [null], c = [], _ = this.table, f = "", M = 0, O = 0, K = 2, W = 1, J = c.slice.call(arguments, 1), j = Object.create(this.lexer), Q = { yy: {} };
231
+ for (var yt in this.yy)
232
+ Object.prototype.hasOwnProperty.call(this.yy, yt) && (Q.yy[yt] = this.yy[yt]);
233
+ j.setInput(y, Q.yy), Q.yy.lexer = j, Q.yy.parser = this, typeof j.yylloc > "u" && (j.yylloc = {});
234
+ var xt = j.yylloc;
235
+ c.push(xt);
236
+ var Ee = j.options && j.options.ranges;
237
+ typeof Q.yy.parseError == "function" ? this.parseError = Q.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
238
+ function _e(U) {
239
+ p.length = p.length - 2 * U, v.length = v.length - U, c.length = c.length - U;
240
+ }
241
+ g(_e, "popStack");
242
+ function At() {
243
+ var U;
244
+ return U = w.pop() || j.lex() || W, typeof U != "number" && (U instanceof Array && (w = U, U = w.pop()), U = d.symbols_[U] || U), U;
245
+ }
246
+ g(At, "lex");
247
+ for (var Y, tt, X, bt, et = {}, nt, q, Ot, lt; ; ) {
248
+ if (tt = p[p.length - 1], this.defaultActions[tt] ? X = this.defaultActions[tt] : ((Y === null || typeof Y > "u") && (Y = At()), X = _[tt] && _[tt][Y]), typeof X > "u" || !X.length || !X[0]) {
249
+ var wt = "";
250
+ lt = [];
251
+ for (nt in _[tt])
252
+ this.terminals_[nt] && nt > K && lt.push("'" + this.terminals_[nt] + "'");
253
+ j.showPosition ? wt = "Parse error on line " + (M + 1) + `:
254
+ ` + j.showPosition() + `
255
+ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : wt = "Parse error on line " + (M + 1) + ": Unexpected " + (Y == W ? "end of input" : "'" + (this.terminals_[Y] || Y) + "'"), this.parseError(wt, {
256
+ text: j.match,
257
+ token: this.terminals_[Y] || Y,
258
+ line: j.yylineno,
259
+ loc: xt,
260
+ expected: lt
261
+ });
262
+ }
263
+ if (X[0] instanceof Array && X.length > 1)
264
+ throw new Error("Parse Error: multiple actions possible at state: " + tt + ", token: " + Y);
265
+ switch (X[0]) {
266
+ case 1:
267
+ p.push(Y), v.push(j.yytext), c.push(j.yylloc), p.push(X[1]), Y = null, O = j.yyleng, f = j.yytext, M = j.yylineno, xt = j.yylloc;
268
+ break;
269
+ case 2:
270
+ if (q = this.productions_[X[1]][1], et.$ = v[v.length - q], et._$ = {
271
+ first_line: c[c.length - (q || 1)].first_line,
272
+ last_line: c[c.length - 1].last_line,
273
+ first_column: c[c.length - (q || 1)].first_column,
274
+ last_column: c[c.length - 1].last_column
275
+ }, Ee && (et._$.range = [
276
+ c[c.length - (q || 1)].range[0],
277
+ c[c.length - 1].range[1]
278
+ ]), bt = this.performAction.apply(et, [
279
+ f,
280
+ O,
281
+ M,
282
+ Q.yy,
283
+ X[1],
284
+ v,
285
+ c
286
+ ].concat(J)), typeof bt < "u")
287
+ return bt;
288
+ q && (p = p.slice(0, -1 * q * 2), v = v.slice(0, -1 * q), c = c.slice(0, -1 * q)), p.push(this.productions_[X[1]][0]), v.push(et.$), c.push(et._$), Ot = _[p[p.length - 2]][p[p.length - 1]], p.push(Ot);
289
+ break;
290
+ case 3:
291
+ return !0;
292
+ }
293
+ }
294
+ return !0;
295
+ }, "parse")
296
+ }, N = /* @__PURE__ */ function() {
297
+ var D = {
298
+ EOF: 1,
299
+ parseError: /* @__PURE__ */ g(function(d, p) {
300
+ if (this.yy.parser)
301
+ this.yy.parser.parseError(d, p);
302
+ else
303
+ throw new Error(d);
304
+ }, "parseError"),
305
+ // resets the lexer, sets new input
306
+ setInput: /* @__PURE__ */ g(function(y, d) {
307
+ return this.yy = d || this.yy || {}, this._input = y, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
308
+ first_line: 1,
309
+ first_column: 0,
310
+ last_line: 1,
311
+ last_column: 0
312
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
313
+ }, "setInput"),
314
+ // consumes and returns one char from the input
315
+ input: /* @__PURE__ */ g(function() {
316
+ var y = this._input[0];
317
+ this.yytext += y, this.yyleng++, this.offset++, this.match += y, this.matched += y;
318
+ var d = y.match(/(?:\r\n?|\n).*/g);
319
+ return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), y;
320
+ }, "input"),
321
+ // unshifts one char (or a string) into the input
322
+ unput: /* @__PURE__ */ g(function(y) {
323
+ var d = y.length, p = y.split(/(?:\r\n?|\n)/g);
324
+ this._input = y + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
325
+ var w = this.match.split(/(?:\r\n?|\n)/g);
326
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
327
+ var v = this.yylloc.range;
328
+ return this.yylloc = {
329
+ first_line: this.yylloc.first_line,
330
+ last_line: this.yylineno + 1,
331
+ first_column: this.yylloc.first_column,
332
+ last_column: p ? (p.length === w.length ? this.yylloc.first_column : 0) + w[w.length - p.length].length - p[0].length : this.yylloc.first_column - d
333
+ }, this.options.ranges && (this.yylloc.range = [v[0], v[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
334
+ }, "unput"),
335
+ // When called from action, caches matched text and appends it on next action
336
+ more: /* @__PURE__ */ g(function() {
337
+ return this._more = !0, this;
338
+ }, "more"),
339
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
340
+ reject: /* @__PURE__ */ g(function() {
341
+ if (this.options.backtrack_lexer)
342
+ this._backtrack = !0;
343
+ else
344
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
345
+ ` + this.showPosition(), {
346
+ text: "",
347
+ token: null,
348
+ line: this.yylineno
349
+ });
350
+ return this;
351
+ }, "reject"),
352
+ // retain first n characters of the match
353
+ less: /* @__PURE__ */ g(function(y) {
354
+ this.unput(this.match.slice(y));
355
+ }, "less"),
356
+ // displays already matched input, i.e. for error messages
357
+ pastInput: /* @__PURE__ */ g(function() {
358
+ var y = this.matched.substr(0, this.matched.length - this.match.length);
359
+ return (y.length > 20 ? "..." : "") + y.substr(-20).replace(/\n/g, "");
360
+ }, "pastInput"),
361
+ // displays upcoming input, i.e. for error messages
362
+ upcomingInput: /* @__PURE__ */ g(function() {
363
+ var y = this.match;
364
+ return y.length < 20 && (y += this._input.substr(0, 20 - y.length)), (y.substr(0, 20) + (y.length > 20 ? "..." : "")).replace(/\n/g, "");
365
+ }, "upcomingInput"),
366
+ // displays the character position where the lexing error occurred, i.e. for error messages
367
+ showPosition: /* @__PURE__ */ g(function() {
368
+ var y = this.pastInput(), d = new Array(y.length + 1).join("-");
369
+ return y + this.upcomingInput() + `
370
+ ` + d + "^";
371
+ }, "showPosition"),
372
+ // test the lexed token: return FALSE when not a match, otherwise return token
373
+ test_match: /* @__PURE__ */ g(function(y, d) {
374
+ var p, w, v;
375
+ if (this.options.backtrack_lexer && (v = {
376
+ yylineno: this.yylineno,
377
+ yylloc: {
378
+ first_line: this.yylloc.first_line,
379
+ last_line: this.last_line,
380
+ first_column: this.yylloc.first_column,
381
+ last_column: this.yylloc.last_column
382
+ },
383
+ yytext: this.yytext,
384
+ match: this.match,
385
+ matches: this.matches,
386
+ matched: this.matched,
387
+ yyleng: this.yyleng,
388
+ offset: this.offset,
389
+ _more: this._more,
390
+ _input: this._input,
391
+ yy: this.yy,
392
+ conditionStack: this.conditionStack.slice(0),
393
+ done: this.done
394
+ }, this.options.ranges && (v.yylloc.range = this.yylloc.range.slice(0))), w = y[0].match(/(?:\r\n?|\n).*/g), w && (this.yylineno += w.length), this.yylloc = {
395
+ first_line: this.yylloc.last_line,
396
+ last_line: this.yylineno + 1,
397
+ first_column: this.yylloc.last_column,
398
+ last_column: w ? w[w.length - 1].length - w[w.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + y[0].length
399
+ }, this.yytext += y[0], this.match += y[0], this.matches = y, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(y[0].length), this.matched += y[0], p = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
400
+ return p;
401
+ if (this._backtrack) {
402
+ for (var c in v)
403
+ this[c] = v[c];
404
+ return !1;
405
+ }
406
+ return !1;
407
+ }, "test_match"),
408
+ // return next match in input
409
+ next: /* @__PURE__ */ g(function() {
410
+ if (this.done)
411
+ return this.EOF;
412
+ this._input || (this.done = !0);
413
+ var y, d, p, w;
414
+ this._more || (this.yytext = "", this.match = "");
415
+ for (var v = this._currentRules(), c = 0; c < v.length; c++)
416
+ if (p = this._input.match(this.rules[v[c]]), p && (!d || p[0].length > d[0].length)) {
417
+ if (d = p, w = c, this.options.backtrack_lexer) {
418
+ if (y = this.test_match(p, v[c]), y !== !1)
419
+ return y;
420
+ if (this._backtrack) {
421
+ d = !1;
422
+ continue;
423
+ } else
424
+ return !1;
425
+ } else if (!this.options.flex)
426
+ break;
427
+ }
428
+ return d ? (y = this.test_match(d, v[w]), y !== !1 ? y : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
429
+ ` + this.showPosition(), {
430
+ text: "",
431
+ token: null,
432
+ line: this.yylineno
433
+ });
434
+ }, "next"),
435
+ // return next match that has a token
436
+ lex: /* @__PURE__ */ g(function() {
437
+ var d = this.next();
438
+ return d || this.lex();
439
+ }, "lex"),
440
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
441
+ begin: /* @__PURE__ */ g(function(d) {
442
+ this.conditionStack.push(d);
443
+ }, "begin"),
444
+ // pop the previously active lexer condition state off the condition stack
445
+ popState: /* @__PURE__ */ g(function() {
446
+ var d = this.conditionStack.length - 1;
447
+ return d > 0 ? this.conditionStack.pop() : this.conditionStack[0];
448
+ }, "popState"),
449
+ // produce the lexer rule set which is active for the currently active lexer condition state
450
+ _currentRules: /* @__PURE__ */ g(function() {
451
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
452
+ }, "_currentRules"),
453
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
454
+ topState: /* @__PURE__ */ g(function(d) {
455
+ return d = this.conditionStack.length - 1 - Math.abs(d || 0), d >= 0 ? this.conditionStack[d] : "INITIAL";
456
+ }, "topState"),
457
+ // alias for begin(condition)
458
+ pushState: /* @__PURE__ */ g(function(d) {
459
+ this.begin(d);
460
+ }, "pushState"),
461
+ // return the number of states currently on the stack
462
+ stateStackSize: /* @__PURE__ */ g(function() {
463
+ return this.conditionStack.length;
464
+ }, "stateStackSize"),
465
+ options: {},
466
+ performAction: /* @__PURE__ */ g(function(d, p, w, v) {
467
+ switch (w) {
468
+ case 0:
469
+ return d.getLogger().debug("Found block-beta"), 10;
470
+ case 1:
471
+ return d.getLogger().debug("Found id-block"), 29;
472
+ case 2:
473
+ return d.getLogger().debug("Found block"), 10;
474
+ case 3:
475
+ d.getLogger().debug(".", p.yytext);
476
+ break;
477
+ case 4:
478
+ d.getLogger().debug("_", p.yytext);
479
+ break;
480
+ case 5:
481
+ return 5;
482
+ case 6:
483
+ return p.yytext = -1, 28;
484
+ case 7:
485
+ return p.yytext = p.yytext.replace(/columns\s+/, ""), d.getLogger().debug("COLUMNS (LEX)", p.yytext), 28;
486
+ case 8:
487
+ this.pushState("md_string");
488
+ break;
489
+ case 9:
490
+ return "MD_STR";
491
+ case 10:
492
+ this.popState();
493
+ break;
494
+ case 11:
495
+ this.pushState("string");
496
+ break;
497
+ case 12:
498
+ d.getLogger().debug("LEX: POPPING STR:", p.yytext), this.popState();
499
+ break;
500
+ case 13:
501
+ return d.getLogger().debug("LEX: STR end:", p.yytext), "STR";
502
+ case 14:
503
+ return p.yytext = p.yytext.replace(/space\:/, ""), d.getLogger().debug("SPACE NUM (LEX)", p.yytext), 21;
504
+ case 15:
505
+ return p.yytext = "1", d.getLogger().debug("COLUMNS (LEX)", p.yytext), 21;
506
+ case 16:
507
+ return 42;
508
+ case 17:
509
+ return "LINKSTYLE";
510
+ case 18:
511
+ return "INTERPOLATE";
512
+ case 19:
513
+ return this.pushState("CLASSDEF"), 39;
514
+ case 20:
515
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
516
+ case 21:
517
+ return this.popState(), this.pushState("CLASSDEFID"), 40;
518
+ case 22:
519
+ return this.popState(), 41;
520
+ case 23:
521
+ return this.pushState("CLASS"), 43;
522
+ case 24:
523
+ return this.popState(), this.pushState("CLASS_STYLE"), 44;
524
+ case 25:
525
+ return this.popState(), 45;
526
+ case 26:
527
+ return this.pushState("STYLE_STMNT"), 46;
528
+ case 27:
529
+ return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
530
+ case 28:
531
+ return this.popState(), 48;
532
+ case 29:
533
+ return this.pushState("acc_title"), "acc_title";
534
+ case 30:
535
+ return this.popState(), "acc_title_value";
536
+ case 31:
537
+ return this.pushState("acc_descr"), "acc_descr";
538
+ case 32:
539
+ return this.popState(), "acc_descr_value";
540
+ case 33:
541
+ this.pushState("acc_descr_multiline");
542
+ break;
543
+ case 34:
544
+ this.popState();
545
+ break;
546
+ case 35:
547
+ return "acc_descr_multiline_value";
548
+ case 36:
549
+ return 30;
550
+ case 37:
551
+ return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
552
+ case 38:
553
+ return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
554
+ case 39:
555
+ return this.popState(), d.getLogger().debug("Lex: ))"), "NODE_DEND";
556
+ case 40:
557
+ return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
558
+ case 41:
559
+ return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
560
+ case 42:
561
+ return this.popState(), d.getLogger().debug("Lex: (-"), "NODE_DEND";
562
+ case 43:
563
+ return this.popState(), d.getLogger().debug("Lex: -)"), "NODE_DEND";
564
+ case 44:
565
+ return this.popState(), d.getLogger().debug("Lex: (("), "NODE_DEND";
566
+ case 45:
567
+ return this.popState(), d.getLogger().debug("Lex: ]]"), "NODE_DEND";
568
+ case 46:
569
+ return this.popState(), d.getLogger().debug("Lex: ("), "NODE_DEND";
570
+ case 47:
571
+ return this.popState(), d.getLogger().debug("Lex: ])"), "NODE_DEND";
572
+ case 48:
573
+ return this.popState(), d.getLogger().debug("Lex: /]"), "NODE_DEND";
574
+ case 49:
575
+ return this.popState(), d.getLogger().debug("Lex: /]"), "NODE_DEND";
576
+ case 50:
577
+ return this.popState(), d.getLogger().debug("Lex: )]"), "NODE_DEND";
578
+ case 51:
579
+ return this.popState(), d.getLogger().debug("Lex: )"), "NODE_DEND";
580
+ case 52:
581
+ return this.popState(), d.getLogger().debug("Lex: ]>"), "NODE_DEND";
582
+ case 53:
583
+ return this.popState(), d.getLogger().debug("Lex: ]"), "NODE_DEND";
584
+ case 54:
585
+ return d.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
586
+ case 55:
587
+ return d.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
588
+ case 56:
589
+ return d.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
590
+ case 57:
591
+ return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
592
+ case 58:
593
+ return d.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
594
+ case 59:
595
+ return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
596
+ case 60:
597
+ return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
598
+ case 61:
599
+ return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
600
+ case 62:
601
+ return d.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
602
+ case 63:
603
+ return d.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
604
+ case 64:
605
+ return d.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
606
+ case 65:
607
+ return this.pushState("NODE"), 35;
608
+ case 66:
609
+ return this.pushState("NODE"), 35;
610
+ case 67:
611
+ return this.pushState("NODE"), 35;
612
+ case 68:
613
+ return this.pushState("NODE"), 35;
614
+ case 69:
615
+ return this.pushState("NODE"), 35;
616
+ case 70:
617
+ return this.pushState("NODE"), 35;
618
+ case 71:
619
+ return this.pushState("NODE"), 35;
620
+ case 72:
621
+ return d.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
622
+ case 73:
623
+ return this.pushState("BLOCK_ARROW"), d.getLogger().debug("LEX ARR START"), 37;
624
+ case 74:
625
+ return d.getLogger().debug("Lex: NODE_ID", p.yytext), 31;
626
+ case 75:
627
+ return d.getLogger().debug("Lex: EOF", p.yytext), 8;
628
+ case 76:
629
+ this.pushState("md_string");
630
+ break;
631
+ case 77:
632
+ this.pushState("md_string");
633
+ break;
634
+ case 78:
635
+ return "NODE_DESCR";
636
+ case 79:
637
+ this.popState();
638
+ break;
639
+ case 80:
640
+ d.getLogger().debug("Lex: Starting string"), this.pushState("string");
641
+ break;
642
+ case 81:
643
+ d.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
644
+ break;
645
+ case 82:
646
+ return d.getLogger().debug("LEX: NODE_DESCR:", p.yytext), "NODE_DESCR";
647
+ case 83:
648
+ d.getLogger().debug("LEX POPPING"), this.popState();
649
+ break;
650
+ case 84:
651
+ d.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
652
+ break;
653
+ case 85:
654
+ return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (right): dir:", p.yytext), "DIR";
655
+ case 86:
656
+ return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (left):", p.yytext), "DIR";
657
+ case 87:
658
+ return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (x):", p.yytext), "DIR";
659
+ case 88:
660
+ return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (y):", p.yytext), "DIR";
661
+ case 89:
662
+ return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (up):", p.yytext), "DIR";
663
+ case 90:
664
+ return p.yytext = p.yytext.replace(/^,\s*/, ""), d.getLogger().debug("Lex (down):", p.yytext), "DIR";
665
+ case 91:
666
+ return p.yytext = "]>", d.getLogger().debug("Lex (ARROW_DIR end):", p.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
667
+ case 92:
668
+ return d.getLogger().debug("Lex: LINK", "#" + p.yytext + "#"), 15;
669
+ case 93:
670
+ return d.getLogger().debug("Lex: LINK", p.yytext), 15;
671
+ case 94:
672
+ return d.getLogger().debug("Lex: LINK", p.yytext), 15;
673
+ case 95:
674
+ return d.getLogger().debug("Lex: LINK", p.yytext), 15;
675
+ case 96:
676
+ return d.getLogger().debug("Lex: START_LINK", p.yytext), this.pushState("LLABEL"), 16;
677
+ case 97:
678
+ return d.getLogger().debug("Lex: START_LINK", p.yytext), this.pushState("LLABEL"), 16;
679
+ case 98:
680
+ return d.getLogger().debug("Lex: START_LINK", p.yytext), this.pushState("LLABEL"), 16;
681
+ case 99:
682
+ this.pushState("md_string");
683
+ break;
684
+ case 100:
685
+ return d.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
686
+ case 101:
687
+ return this.popState(), d.getLogger().debug("Lex: LINK", "#" + p.yytext + "#"), 15;
688
+ case 102:
689
+ return this.popState(), d.getLogger().debug("Lex: LINK", p.yytext), 15;
690
+ case 103:
691
+ return this.popState(), d.getLogger().debug("Lex: LINK", p.yytext), 15;
692
+ case 104:
693
+ return d.getLogger().debug("Lex: COLON", p.yytext), p.yytext = p.yytext.slice(1), 27;
694
+ }
695
+ }, "anonymous"),
696
+ rules: [/^(?:block-beta\b)/, /^(?:block:)/, /^(?:block\b)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/],
697
+ conditions: { STYLE_DEFINITION: { rules: [28], inclusive: !1 }, STYLE_STMNT: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [22], inclusive: !1 }, CLASSDEF: { rules: [20, 21], inclusive: !1 }, CLASS_STYLE: { rules: [25], inclusive: !1 }, CLASS: { rules: [24], inclusive: !1 }, LLABEL: { rules: [99, 100, 101, 102, 103], inclusive: !1 }, ARROW_DIR: { rules: [85, 86, 87, 88, 89, 90, 91], inclusive: !1 }, BLOCK_ARROW: { rules: [76, 81, 84], inclusive: !1 }, NODE: { rules: [37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 77, 80], inclusive: !1 }, md_string: { rules: [9, 10, 78, 79], inclusive: !1 }, space: { rules: [], inclusive: !1 }, string: { rules: [12, 13, 82, 83], inclusive: !1 }, acc_descr_multiline: { rules: [34, 35], inclusive: !1 }, acc_descr: { rules: [32], inclusive: !1 }, acc_title: { rules: [30], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 14, 15, 16, 17, 18, 19, 23, 26, 29, 31, 33, 36, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 92, 93, 94, 95, 96, 97, 98, 104], inclusive: !0 } }
698
+ };
699
+ return D;
700
+ }();
701
+ E.lexer = N;
702
+ function T() {
703
+ this.yy = {};
704
+ }
705
+ return g(T, "Parser"), T.prototype = E, E.Parser = T, new T();
706
+ }();
707
+ St.parser = St;
708
+ var la = St, G = /* @__PURE__ */ new Map(), Dt = [], vt = /* @__PURE__ */ new Map(), Pt = "color", Wt = "fill", ca = "bgFill", se = ",", oa = z(), dt = /* @__PURE__ */ new Map(), ha = /* @__PURE__ */ g((e) => Ve.sanitizeText(e, oa), "sanitizeText"), ga = /* @__PURE__ */ g(function(e, t = "") {
709
+ let a = dt.get(e);
710
+ a || (a = { id: e, styles: [], textStyles: [] }, dt.set(e, a)), t != null && t.split(se).forEach((i) => {
711
+ const l = i.replace(/([^;]*);/, "$1").trim();
712
+ if (RegExp(Pt).exec(i)) {
713
+ const r = l.replace(Wt, ca).replace(Pt, Wt);
714
+ a.textStyles.push(r);
715
+ }
716
+ a.styles.push(l);
717
+ });
718
+ }, "addStyleClass"), da = /* @__PURE__ */ g(function(e, t = "") {
719
+ const a = G.get(e);
720
+ t != null && (a.styles = t.split(se));
721
+ }, "addStyle2Node"), ua = /* @__PURE__ */ g(function(e, t) {
722
+ e.split(",").forEach(function(a) {
723
+ let i = G.get(a);
724
+ if (i === void 0) {
725
+ const l = a.trim();
726
+ i = { id: l, type: "na", children: [] }, G.set(l, i);
727
+ }
728
+ i.classes || (i.classes = []), i.classes.push(t);
729
+ });
730
+ }, "setCssClass"), ie = /* @__PURE__ */ g((e, t) => {
731
+ const a = e.flat(), i = [], l = a.find((r) => (r == null ? void 0 : r.type) === "column-setting"), s = (l == null ? void 0 : l.columns) ?? -1;
732
+ for (const r of a) {
733
+ if (typeof s == "number" && s > 0 && r.type !== "column-setting" && typeof r.widthInColumns == "number" && r.widthInColumns > s && L.warn(
734
+ `Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${s}`
735
+ ), r.label && (r.label = ha(r.label)), r.type === "classDef") {
736
+ ga(r.id, r.css);
737
+ continue;
738
+ }
739
+ if (r.type === "applyClass") {
740
+ ua(r.id, (r == null ? void 0 : r.styleClass) ?? "");
741
+ continue;
742
+ }
743
+ if (r.type === "applyStyles") {
744
+ r != null && r.stylesStr && da(r.id, r == null ? void 0 : r.stylesStr);
745
+ continue;
746
+ }
747
+ if (r.type === "column-setting")
748
+ t.columns = r.columns ?? -1;
749
+ else if (r.type === "edge") {
750
+ const n = (vt.get(r.id) ?? 0) + 1;
751
+ vt.set(r.id, n), r.id = n + "-" + r.id, Dt.push(r);
752
+ } else {
753
+ r.label || (r.type === "composite" ? r.label = "" : r.label = r.id);
754
+ const n = G.get(r.id);
755
+ if (n === void 0 ? G.set(r.id, r) : (r.type !== "na" && (n.type = r.type), r.label !== r.id && (n.label = r.label)), r.children && ie(r.children, r), r.type === "space") {
756
+ const o = r.width ?? 1;
757
+ for (let u = 0; u < o; u++) {
758
+ const h = na(r);
759
+ h.id = h.id + "-" + u, G.set(h.id, h), i.push(h);
760
+ }
761
+ } else n === void 0 && i.push(r);
762
+ }
763
+ }
764
+ t.children = i;
765
+ }, "populateBlockDatabase"), Nt = [], st = { id: "root", type: "composite", children: [], columns: -1 }, pa = /* @__PURE__ */ g(() => {
766
+ L.debug("Clear called"), Ue(), st = { id: "root", type: "composite", children: [], columns: -1 }, G = /* @__PURE__ */ new Map([["root", st]]), Nt = [], dt = /* @__PURE__ */ new Map(), Dt = [], vt = /* @__PURE__ */ new Map();
767
+ }, "clear");
768
+ function ne(e) {
769
+ switch (L.debug("typeStr2Type", e), e) {
770
+ case "[]":
771
+ return "square";
772
+ case "()":
773
+ return L.debug("we have a round"), "round";
774
+ case "(())":
775
+ return "circle";
776
+ case ">]":
777
+ return "rect_left_inv_arrow";
778
+ case "{}":
779
+ return "diamond";
780
+ case "{{}}":
781
+ return "hexagon";
782
+ case "([])":
783
+ return "stadium";
784
+ case "[[]]":
785
+ return "subroutine";
786
+ case "[()]":
787
+ return "cylinder";
788
+ case "((()))":
789
+ return "doublecircle";
790
+ case "[//]":
791
+ return "lean_right";
792
+ case "[\\\\]":
793
+ return "lean_left";
794
+ case "[/\\]":
795
+ return "trapezoid";
796
+ case "[\\/]":
797
+ return "inv_trapezoid";
798
+ case "<[]>":
799
+ return "block_arrow";
800
+ default:
801
+ return "na";
802
+ }
803
+ }
804
+ g(ne, "typeStr2Type");
805
+ function le(e) {
806
+ switch (L.debug("typeStr2Type", e), e) {
807
+ case "==":
808
+ return "thick";
809
+ default:
810
+ return "normal";
811
+ }
812
+ }
813
+ g(le, "edgeTypeStr2Type");
814
+ function ce(e) {
815
+ switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
816
+ case "x":
817
+ return "arrow_cross";
818
+ case "o":
819
+ return "arrow_circle";
820
+ case ">":
821
+ return "arrow_point";
822
+ default:
823
+ return "";
824
+ }
825
+ }
826
+ g(ce, "edgeStrToEdgeData");
827
+ var Yt = 0, fa = /* @__PURE__ */ g(() => (Yt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Yt), "generateId"), ya = /* @__PURE__ */ g((e) => {
828
+ st.children = e, ie(e, st), Nt = st.children;
829
+ }, "setHierarchy"), xa = /* @__PURE__ */ g((e) => {
830
+ const t = G.get(e);
831
+ return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
832
+ }, "getColumns"), ba = /* @__PURE__ */ g(() => [...G.values()], "getBlocksFlat"), wa = /* @__PURE__ */ g(() => Nt || [], "getBlocks"), ma = /* @__PURE__ */ g(() => Dt, "getEdges"), La = /* @__PURE__ */ g((e) => G.get(e), "getBlock"), Sa = /* @__PURE__ */ g((e) => {
833
+ G.set(e.id, e);
834
+ }, "setBlock"), va = /* @__PURE__ */ g(() => L, "getLogger"), Ea = /* @__PURE__ */ g(function() {
835
+ return dt;
836
+ }, "getClasses"), _a = {
837
+ getConfig: /* @__PURE__ */ g(() => it().block, "getConfig"),
838
+ typeStr2Type: ne,
839
+ edgeTypeStr2Type: le,
840
+ edgeStrToEdgeData: ce,
841
+ getLogger: va,
842
+ getBlocksFlat: ba,
843
+ getBlocks: wa,
844
+ getEdges: ma,
845
+ setHierarchy: ya,
846
+ getBlock: La,
847
+ setBlock: Sa,
848
+ getColumns: xa,
849
+ getClasses: Ea,
850
+ clear: pa,
851
+ generateId: fa
852
+ }, ka = _a, ct = /* @__PURE__ */ g((e, t) => {
853
+ const a = Qe, i = a(e, "r"), l = a(e, "g"), s = a(e, "b");
854
+ return He(i, l, s, t);
855
+ }, "fade"), Ta = /* @__PURE__ */ g((e) => `.label {
856
+ font-family: ${e.fontFamily};
857
+ color: ${e.nodeTextColor || e.textColor};
858
+ }
859
+ .cluster-label text {
860
+ fill: ${e.titleColor};
861
+ }
862
+ .cluster-label span,p {
863
+ color: ${e.titleColor};
864
+ }
865
+
866
+
867
+
868
+ .label text,span,p {
869
+ fill: ${e.nodeTextColor || e.textColor};
870
+ color: ${e.nodeTextColor || e.textColor};
871
+ }
872
+
873
+ .node rect,
874
+ .node circle,
875
+ .node ellipse,
876
+ .node polygon,
877
+ .node path {
878
+ fill: ${e.mainBkg};
879
+ stroke: ${e.nodeBorder};
880
+ stroke-width: 1px;
881
+ }
882
+ .flowchart-label text {
883
+ text-anchor: middle;
884
+ }
885
+ // .flowchart-label .text-outer-tspan {
886
+ // text-anchor: middle;
887
+ // }
888
+ // .flowchart-label .text-inner-tspan {
889
+ // text-anchor: start;
890
+ // }
891
+
892
+ .node .label {
893
+ text-align: center;
894
+ }
895
+ .node.clickable {
896
+ cursor: pointer;
897
+ }
898
+
899
+ .arrowheadPath {
900
+ fill: ${e.arrowheadColor};
901
+ }
902
+
903
+ .edgePath .path {
904
+ stroke: ${e.lineColor};
905
+ stroke-width: 2.0px;
906
+ }
907
+
908
+ .flowchart-link {
909
+ stroke: ${e.lineColor};
910
+ fill: none;
911
+ }
912
+
913
+ .edgeLabel {
914
+ background-color: ${e.edgeLabelBackground};
915
+ rect {
916
+ opacity: 0.5;
917
+ background-color: ${e.edgeLabelBackground};
918
+ fill: ${e.edgeLabelBackground};
919
+ }
920
+ text-align: center;
921
+ }
922
+
923
+ /* For html labels only */
924
+ .labelBkg {
925
+ background-color: ${ct(e.edgeLabelBackground, 0.5)};
926
+ // background-color:
927
+ }
928
+
929
+ .node .cluster {
930
+ // fill: ${ct(e.mainBkg, 0.5)};
931
+ fill: ${ct(e.clusterBkg, 0.5)};
932
+ stroke: ${ct(e.clusterBorder, 0.2)};
933
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
934
+ stroke-width: 1px;
935
+ }
936
+
937
+ .cluster text {
938
+ fill: ${e.titleColor};
939
+ }
940
+
941
+ .cluster span,p {
942
+ color: ${e.titleColor};
943
+ }
944
+ /* .cluster div {
945
+ color: ${e.titleColor};
946
+ } */
947
+
948
+ div.mermaidTooltip {
949
+ position: absolute;
950
+ text-align: center;
951
+ max-width: 200px;
952
+ padding: 2px;
953
+ font-family: ${e.fontFamily};
954
+ font-size: 12px;
955
+ background: ${e.tertiaryColor};
956
+ border: 1px solid ${e.border2};
957
+ border-radius: 2px;
958
+ pointer-events: none;
959
+ z-index: 100;
960
+ }
961
+
962
+ .flowchartTitleText {
963
+ text-anchor: middle;
964
+ font-size: 18px;
965
+ fill: ${e.textColor};
966
+ }
967
+ ${ke()}
968
+ `, "getStyles"), Da = Ta, Na = /* @__PURE__ */ g((e, t, a, i) => {
969
+ t.forEach((l) => {
970
+ Fa[l](e, a, i);
971
+ });
972
+ }, "insertMarkers"), Ca = /* @__PURE__ */ g((e, t, a) => {
973
+ L.trace("Making markers for ", a), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
974
+ }, "extension"), Ia = /* @__PURE__ */ g((e, t, a) => {
975
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
976
+ }, "composition"), Ba = /* @__PURE__ */ g((e, t, a) => {
977
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
978
+ }, "aggregation"), Aa = /* @__PURE__ */ g((e, t, a) => {
979
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
980
+ }, "dependency"), Oa = /* @__PURE__ */ g((e, t, a) => {
981
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", a + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
982
+ }, "lollipop"), Ra = /* @__PURE__ */ g((e, t, a) => {
983
+ e.append("marker").attr("id", a + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
984
+ }, "point"), za = /* @__PURE__ */ g((e, t, a) => {
985
+ e.append("marker").attr("id", a + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
986
+ }, "circle"), Ma = /* @__PURE__ */ g((e, t, a) => {
987
+ e.append("marker").attr("id", a + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
988
+ }, "cross"), ja = /* @__PURE__ */ g((e, t, a) => {
989
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
990
+ }, "barb"), Fa = {
991
+ extension: Ca,
992
+ composition: Ia,
993
+ aggregation: Ba,
994
+ dependency: Aa,
995
+ lollipop: Oa,
996
+ point: Ra,
997
+ circle: za,
998
+ cross: Ma,
999
+ barb: ja
1000
+ }, Pa = Na, $t, Zt, A = ((Zt = ($t = z()) == null ? void 0 : $t.block) == null ? void 0 : Zt.padding) ?? 8;
1001
+ function oe(e, t) {
1002
+ if (e === 0 || !Number.isInteger(e))
1003
+ throw new Error("Columns must be an integer !== 0.");
1004
+ if (t < 0 || !Number.isInteger(t))
1005
+ throw new Error("Position must be a non-negative integer." + t);
1006
+ if (e < 0)
1007
+ return { px: t, py: 0 };
1008
+ if (e === 1)
1009
+ return { px: 0, py: t };
1010
+ const a = t % e, i = Math.floor(t / e);
1011
+ return { px: a, py: i };
1012
+ }
1013
+ g(oe, "calculateBlockPosition");
1014
+ var Wa = /* @__PURE__ */ g((e) => {
1015
+ let t = 0, a = 0;
1016
+ for (const i of e.children) {
1017
+ const { width: l, height: s, x: r, y: n } = i.size ?? { width: 0, height: 0, x: 0, y: 0 };
1018
+ L.debug(
1019
+ "getMaxChildSize abc95 child:",
1020
+ i.id,
1021
+ "width:",
1022
+ l,
1023
+ "height:",
1024
+ s,
1025
+ "x:",
1026
+ r,
1027
+ "y:",
1028
+ n,
1029
+ i.type
1030
+ ), i.type !== "space" && (l > t && (t = l / (e.widthInColumns ?? 1)), s > a && (a = s));
1031
+ }
1032
+ return { width: t, height: a };
1033
+ }, "getMaxChildSize");
1034
+ function ut(e, t, a = 0, i = 0) {
1035
+ var r, n, o, u, h, x, b, m, S, k, E;
1036
+ L.debug(
1037
+ "setBlockSizes abc95 (start)",
1038
+ e.id,
1039
+ (r = e == null ? void 0 : e.size) == null ? void 0 : r.x,
1040
+ "block width =",
1041
+ e == null ? void 0 : e.size,
1042
+ "siblingWidth",
1043
+ a
1044
+ ), (n = e == null ? void 0 : e.size) != null && n.width || (e.size = {
1045
+ width: a,
1046
+ height: i,
1047
+ x: 0,
1048
+ y: 0
1049
+ });
1050
+ let l = 0, s = 0;
1051
+ if (((o = e.children) == null ? void 0 : o.length) > 0) {
1052
+ for (const v of e.children)
1053
+ ut(v, t);
1054
+ const N = Wa(e);
1055
+ l = N.width, s = N.height, L.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", l, s);
1056
+ for (const v of e.children)
1057
+ v.size && (L.debug(
1058
+ `abc95 Setting size of children of ${e.id} id=${v.id} ${l} ${s} ${JSON.stringify(v.size)}`
1059
+ ), v.size.width = l * (v.widthInColumns ?? 1) + A * ((v.widthInColumns ?? 1) - 1), v.size.height = s, v.size.x = 0, v.size.y = 0, L.debug(
1060
+ `abc95 updating size of ${e.id} children child:${v.id} maxWidth:${l} maxHeight:${s}`
1061
+ ));
1062
+ for (const v of e.children)
1063
+ ut(v, t, l, s);
1064
+ const T = e.columns ?? -1;
1065
+ let D = 0;
1066
+ for (const v of e.children)
1067
+ D += v.widthInColumns ?? 1;
1068
+ let y = e.children.length;
1069
+ T > 0 && T < D && (y = T);
1070
+ const d = Math.ceil(D / y);
1071
+ let p = y * (l + A) + A, w = d * (s + A) + A;
1072
+ if (p < a) {
1073
+ L.debug(
1074
+ `Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${i} width ${p}`
1075
+ ), p = a, w = i;
1076
+ const v = (a - y * A - A) / y, c = (i - d * A - A) / d;
1077
+ L.debug("Size indata abc88", e.id, "childWidth", v, "maxWidth", l), L.debug("Size indata abc88", e.id, "childHeight", c, "maxHeight", s), L.debug("Size indata abc88 xSize", y, "padding", A);
1078
+ for (const _ of e.children)
1079
+ _.size && (_.size.width = v, _.size.height = c, _.size.x = 0, _.size.y = 0);
1080
+ }
1081
+ if (L.debug(
1082
+ `abc95 (finale calc) ${e.id} xSize ${y} ySize ${d} columns ${T}${e.children.length} width=${Math.max(p, ((u = e.size) == null ? void 0 : u.width) || 0)}`
1083
+ ), p < (((h = e == null ? void 0 : e.size) == null ? void 0 : h.width) || 0)) {
1084
+ p = ((x = e == null ? void 0 : e.size) == null ? void 0 : x.width) || 0;
1085
+ const v = T > 0 ? Math.min(e.children.length, T) : e.children.length;
1086
+ if (v > 0) {
1087
+ const c = (p - v * A - A) / v;
1088
+ L.debug("abc95 (growing to fit) width", e.id, p, (b = e.size) == null ? void 0 : b.width, c);
1089
+ for (const _ of e.children)
1090
+ _.size && (_.size.width = c);
1091
+ }
1092
+ }
1093
+ e.size = {
1094
+ width: p,
1095
+ height: w,
1096
+ x: 0,
1097
+ y: 0
1098
+ };
1099
+ }
1100
+ L.debug(
1101
+ "setBlockSizes abc94 (done)",
1102
+ e.id,
1103
+ (m = e == null ? void 0 : e.size) == null ? void 0 : m.x,
1104
+ (S = e == null ? void 0 : e.size) == null ? void 0 : S.width,
1105
+ (k = e == null ? void 0 : e.size) == null ? void 0 : k.y,
1106
+ (E = e == null ? void 0 : e.size) == null ? void 0 : E.height
1107
+ );
1108
+ }
1109
+ g(ut, "setBlockSizes");
1110
+ function Ct(e, t) {
1111
+ var i, l, s, r, n, o, u, h, x, b, m, S, k, E, N, T, D;
1112
+ L.debug(
1113
+ `abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(i = e == null ? void 0 : e.size) == null ? void 0 : i.x} y: ${(l = e == null ? void 0 : e.size) == null ? void 0 : l.y} width: ${(s = e == null ? void 0 : e.size) == null ? void 0 : s.width}`
1114
+ );
1115
+ const a = e.columns ?? -1;
1116
+ if (L.debug("layoutBlocks columns abc95", e.id, "=>", a, e), e.children && // find max width of children
1117
+ e.children.length > 0) {
1118
+ const y = ((n = (r = e == null ? void 0 : e.children[0]) == null ? void 0 : r.size) == null ? void 0 : n.width) ?? 0, d = e.children.length * y + (e.children.length - 1) * A;
1119
+ L.debug("widthOfChildren 88", d, "posX");
1120
+ let p = 0;
1121
+ L.debug("abc91 block?.size?.x", e.id, (o = e == null ? void 0 : e.size) == null ? void 0 : o.x);
1122
+ let w = (u = e == null ? void 0 : e.size) != null && u.x ? ((h = e == null ? void 0 : e.size) == null ? void 0 : h.x) + (-((x = e == null ? void 0 : e.size) == null ? void 0 : x.width) / 2 || 0) : -A, v = 0;
1123
+ for (const c of e.children) {
1124
+ const _ = e;
1125
+ if (!c.size)
1126
+ continue;
1127
+ const { width: f, height: M } = c.size, { px: O, py: K } = oe(a, p);
1128
+ if (K != v && (v = K, w = (b = e == null ? void 0 : e.size) != null && b.x ? ((m = e == null ? void 0 : e.size) == null ? void 0 : m.x) + (-((S = e == null ? void 0 : e.size) == null ? void 0 : S.width) / 2 || 0) : -A, L.debug("New row in layout for block", e.id, " and child ", c.id, v)), L.debug(
1129
+ `abc89 layout blocks (child) id: ${c.id} Pos: ${p} (px, py) ${O},${K} (${(k = _ == null ? void 0 : _.size) == null ? void 0 : k.x},${(E = _ == null ? void 0 : _.size) == null ? void 0 : E.y}) parent: ${_.id} width: ${f}${A}`
1130
+ ), _.size) {
1131
+ const J = f / 2;
1132
+ c.size.x = w + A + J, L.debug(
1133
+ `abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${w} new startingPosX${c.size.x} ${J} padding=${A} width=${f} halfWidth=${J} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${f * ((c == null ? void 0 : c.widthInColumns) ?? 1) / 2}`
1134
+ ), w = c.size.x + J, c.size.y = _.size.y - _.size.height / 2 + K * (M + A) + M / 2 + A, L.debug(
1135
+ `abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${w}${A}${J}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${f * ((c == null ? void 0 : c.widthInColumns) ?? 1) / 2}`
1136
+ );
1137
+ }
1138
+ c.children && Ct(c);
1139
+ let W = (c == null ? void 0 : c.widthInColumns) ?? 1;
1140
+ a > 0 && (W = Math.min(W, a - p % a)), p += W, L.debug("abc88 columnsPos", c, p);
1141
+ }
1142
+ }
1143
+ L.debug(
1144
+ `layout blocks (<==layoutBlocks) ${e.id} x: ${(N = e == null ? void 0 : e.size) == null ? void 0 : N.x} y: ${(T = e == null ? void 0 : e.size) == null ? void 0 : T.y} width: ${(D = e == null ? void 0 : e.size) == null ? void 0 : D.width}`
1145
+ );
1146
+ }
1147
+ g(Ct, "layoutBlocks");
1148
+ function It(e, { minX: t, minY: a, maxX: i, maxY: l } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1149
+ if (e.size && e.id !== "root") {
1150
+ const { x: s, y: r, width: n, height: o } = e.size;
1151
+ s - n / 2 < t && (t = s - n / 2), r - o / 2 < a && (a = r - o / 2), s + n / 2 > i && (i = s + n / 2), r + o / 2 > l && (l = r + o / 2);
1152
+ }
1153
+ if (e.children)
1154
+ for (const s of e.children)
1155
+ ({ minX: t, minY: a, maxX: i, maxY: l } = It(s, { minX: t, minY: a, maxX: i, maxY: l }));
1156
+ return { minX: t, minY: a, maxX: i, maxY: l };
1157
+ }
1158
+ g(It, "findBounds");
1159
+ function he(e) {
1160
+ const t = e.getBlock("root");
1161
+ if (!t)
1162
+ return;
1163
+ ut(t, e, 0, 0), Ct(t), L.debug("getBlocks", JSON.stringify(t, null, 2));
1164
+ const { minX: a, minY: i, maxX: l, maxY: s } = It(t), r = s - i, n = l - a;
1165
+ return { x: a, y: i, width: n, height: r };
1166
+ }
1167
+ g(he, "layout");
1168
+ function Et(e, t) {
1169
+ t && e.attr("style", t);
1170
+ }
1171
+ g(Et, "applyStyle");
1172
+ function ge(e, t) {
1173
+ const a = R(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), i = a.append("xhtml:div"), l = e.label, s = e.isNode ? "nodeLabel" : "edgeLabel", r = i.append("span");
1174
+ return r.html(mt(l, t)), Et(r, e.labelStyle), r.attr("class", s), Et(i, e.labelStyle), i.style("display", "inline-block"), i.style("white-space", "nowrap"), i.attr("xmlns", "http://www.w3.org/1999/xhtml"), a.node();
1175
+ }
1176
+ g(ge, "addHtmlLabel");
1177
+ var Ya = /* @__PURE__ */ g(async (e, t, a, i) => {
1178
+ let l = e || "";
1179
+ typeof l == "object" && (l = l[0]);
1180
+ const s = z();
1181
+ if (Z(s.flowchart.htmlLabels)) {
1182
+ l = l.replace(/\\n|\n/g, "<br />"), L.debug("vertexText" + l);
1183
+ const r = await Xe(Lt(l)), n = {
1184
+ isNode: i,
1185
+ label: r,
1186
+ labelStyle: t.replace("fill:", "color:")
1187
+ };
1188
+ return ge(n, s);
1189
+ } else {
1190
+ const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
1191
+ r.setAttribute("style", t.replace("color:", "fill:"));
1192
+ let n = [];
1193
+ typeof l == "string" ? n = l.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(l) ? n = l : n = [];
1194
+ for (const o of n) {
1195
+ const u = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
1196
+ u.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), u.setAttribute("dy", "1em"), u.setAttribute("x", "0"), a ? u.setAttribute("class", "title-row") : u.setAttribute("class", "row"), u.textContent = o.trim(), r.appendChild(u);
1197
+ }
1198
+ return r;
1199
+ }
1200
+ }, "createLabel"), V = Ya, Ua = /* @__PURE__ */ g((e, t, a, i, l) => {
1201
+ t.arrowTypeStart && Ut(e, "start", t.arrowTypeStart, a, i, l), t.arrowTypeEnd && Ut(e, "end", t.arrowTypeEnd, a, i, l);
1202
+ }, "addEdgeMarkers"), Ha = {
1203
+ arrow_cross: "cross",
1204
+ arrow_point: "point",
1205
+ arrow_barb: "barb",
1206
+ arrow_circle: "circle",
1207
+ aggregation: "aggregation",
1208
+ extension: "extension",
1209
+ composition: "composition",
1210
+ dependency: "dependency",
1211
+ lollipop: "lollipop"
1212
+ }, Ut = /* @__PURE__ */ g((e, t, a, i, l, s) => {
1213
+ const r = Ha[a];
1214
+ if (!r) {
1215
+ L.warn(`Unknown arrow type: ${a}`);
1216
+ return;
1217
+ }
1218
+ const n = t === "start" ? "Start" : "End";
1219
+ e.attr(`marker-${t}`, `url(${i}#${l}_${s}-${r}${n})`);
1220
+ }, "addEdgeMarker"), _t = {}, P = {}, Ka = /* @__PURE__ */ g(async (e, t) => {
1221
+ const a = z(), i = Z(a.flowchart.htmlLabels), l = t.labelType === "markdown" ? te(
1222
+ e,
1223
+ t.label,
1224
+ {
1225
+ style: t.labelStyle,
1226
+ useHtmlLabels: i,
1227
+ addSvgBackground: !0
1228
+ },
1229
+ a
1230
+ ) : await V(t.label, t.labelStyle), s = e.insert("g").attr("class", "edgeLabel"), r = s.insert("g").attr("class", "label");
1231
+ r.node().appendChild(l);
1232
+ let n = l.getBBox();
1233
+ if (i) {
1234
+ const u = l.children[0], h = R(l);
1235
+ n = u.getBoundingClientRect(), h.attr("width", n.width), h.attr("height", n.height);
1236
+ }
1237
+ r.attr("transform", "translate(" + -n.width / 2 + ", " + -n.height / 2 + ")"), _t[t.id] = s, t.width = n.width, t.height = n.height;
1238
+ let o;
1239
+ if (t.startLabelLeft) {
1240
+ const u = await V(t.startLabelLeft, t.labelStyle), h = e.insert("g").attr("class", "edgeTerminals"), x = h.insert("g").attr("class", "inner");
1241
+ o = x.node().appendChild(u);
1242
+ const b = u.getBBox();
1243
+ x.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")"), P[t.id] || (P[t.id] = {}), P[t.id].startLeft = h, at(o, t.startLabelLeft);
1244
+ }
1245
+ if (t.startLabelRight) {
1246
+ const u = await V(t.startLabelRight, t.labelStyle), h = e.insert("g").attr("class", "edgeTerminals"), x = h.insert("g").attr("class", "inner");
1247
+ o = h.node().appendChild(u), x.node().appendChild(u);
1248
+ const b = u.getBBox();
1249
+ x.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")"), P[t.id] || (P[t.id] = {}), P[t.id].startRight = h, at(o, t.startLabelRight);
1250
+ }
1251
+ if (t.endLabelLeft) {
1252
+ const u = await V(t.endLabelLeft, t.labelStyle), h = e.insert("g").attr("class", "edgeTerminals"), x = h.insert("g").attr("class", "inner");
1253
+ o = x.node().appendChild(u);
1254
+ const b = u.getBBox();
1255
+ x.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")"), h.node().appendChild(u), P[t.id] || (P[t.id] = {}), P[t.id].endLeft = h, at(o, t.endLabelLeft);
1256
+ }
1257
+ if (t.endLabelRight) {
1258
+ const u = await V(t.endLabelRight, t.labelStyle), h = e.insert("g").attr("class", "edgeTerminals"), x = h.insert("g").attr("class", "inner");
1259
+ o = x.node().appendChild(u);
1260
+ const b = u.getBBox();
1261
+ x.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")"), h.node().appendChild(u), P[t.id] || (P[t.id] = {}), P[t.id].endRight = h, at(o, t.endLabelRight);
1262
+ }
1263
+ return l;
1264
+ }, "insertEdgeLabel");
1265
+ function at(e, t) {
1266
+ z().flowchart.htmlLabels && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
1267
+ }
1268
+ g(at, "setTerminalWidth");
1269
+ var Xa = /* @__PURE__ */ g((e, t) => {
1270
+ L.debug("Moving label abc88 ", e.id, e.label, _t[e.id], t);
1271
+ let a = t.updatedPath ? t.updatedPath : t.originalPath;
1272
+ const i = z(), { subGraphTitleTotalMargin: l } = je(i);
1273
+ if (e.label) {
1274
+ const s = _t[e.id];
1275
+ let r = e.x, n = e.y;
1276
+ if (a) {
1277
+ const o = rt.calcLabelPosition(a);
1278
+ L.debug(
1279
+ "Moving label " + e.label + " from (",
1280
+ r,
1281
+ ",",
1282
+ n,
1283
+ ") to (",
1284
+ o.x,
1285
+ ",",
1286
+ o.y,
1287
+ ") abc88"
1288
+ ), t.updatedPath && (r = o.x, n = o.y);
1289
+ }
1290
+ s.attr("transform", `translate(${r}, ${n + l / 2})`);
1291
+ }
1292
+ if (e.startLabelLeft) {
1293
+ const s = P[e.id].startLeft;
1294
+ let r = e.x, n = e.y;
1295
+ if (a) {
1296
+ const o = rt.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", a);
1297
+ r = o.x, n = o.y;
1298
+ }
1299
+ s.attr("transform", `translate(${r}, ${n})`);
1300
+ }
1301
+ if (e.startLabelRight) {
1302
+ const s = P[e.id].startRight;
1303
+ let r = e.x, n = e.y;
1304
+ if (a) {
1305
+ const o = rt.calcTerminalLabelPosition(
1306
+ e.arrowTypeStart ? 10 : 0,
1307
+ "start_right",
1308
+ a
1309
+ );
1310
+ r = o.x, n = o.y;
1311
+ }
1312
+ s.attr("transform", `translate(${r}, ${n})`);
1313
+ }
1314
+ if (e.endLabelLeft) {
1315
+ const s = P[e.id].endLeft;
1316
+ let r = e.x, n = e.y;
1317
+ if (a) {
1318
+ const o = rt.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", a);
1319
+ r = o.x, n = o.y;
1320
+ }
1321
+ s.attr("transform", `translate(${r}, ${n})`);
1322
+ }
1323
+ if (e.endLabelRight) {
1324
+ const s = P[e.id].endRight;
1325
+ let r = e.x, n = e.y;
1326
+ if (a) {
1327
+ const o = rt.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", a);
1328
+ r = o.x, n = o.y;
1329
+ }
1330
+ s.attr("transform", `translate(${r}, ${n})`);
1331
+ }
1332
+ }, "positionEdgeLabel"), Va = /* @__PURE__ */ g((e, t) => {
1333
+ const a = e.x, i = e.y, l = Math.abs(t.x - a), s = Math.abs(t.y - i), r = e.width / 2, n = e.height / 2;
1334
+ return l >= r || s >= n;
1335
+ }, "outsideNode"), Ga = /* @__PURE__ */ g((e, t, a) => {
1336
+ L.debug(`intersection calc abc89:
1337
+ outsidePoint: ${JSON.stringify(t)}
1338
+ insidePoint : ${JSON.stringify(a)}
1339
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
1340
+ const i = e.x, l = e.y, s = Math.abs(i - a.x), r = e.width / 2;
1341
+ let n = a.x < t.x ? r - s : r + s;
1342
+ const o = e.height / 2, u = Math.abs(t.y - a.y), h = Math.abs(t.x - a.x);
1343
+ if (Math.abs(l - t.y) * r > Math.abs(i - t.x) * o) {
1344
+ let x = a.y < t.y ? t.y - o - l : l - o - t.y;
1345
+ n = h * x / u;
1346
+ const b = {
1347
+ x: a.x < t.x ? a.x + n : a.x - h + n,
1348
+ y: a.y < t.y ? a.y + u - x : a.y - u + x
1349
+ };
1350
+ return n === 0 && (b.x = t.x, b.y = t.y), h === 0 && (b.x = t.x), u === 0 && (b.y = t.y), L.debug(`abc89 topp/bott calc, Q ${u}, q ${x}, R ${h}, r ${n}`, b), b;
1351
+ } else {
1352
+ a.x < t.x ? n = t.x - r - i : n = i - r - t.x;
1353
+ let x = u * n / h, b = a.x < t.x ? a.x + h - n : a.x - h + n, m = a.y < t.y ? a.y + x : a.y - x;
1354
+ return L.debug(`sides calc abc89, Q ${u}, q ${x}, R ${h}, r ${n}`, { _x: b, _y: m }), n === 0 && (b = t.x, m = t.y), h === 0 && (b = t.x), u === 0 && (m = t.y), { x: b, y: m };
1355
+ }
1356
+ }, "intersection"), Ht = /* @__PURE__ */ g((e, t) => {
1357
+ L.debug("abc88 cutPathAtIntersect", e, t);
1358
+ let a = [], i = e[0], l = !1;
1359
+ return e.forEach((s) => {
1360
+ if (!Va(t, s) && !l) {
1361
+ const r = Ga(t, i, s);
1362
+ let n = !1;
1363
+ a.forEach((o) => {
1364
+ n = n || o.x === r.x && o.y === r.y;
1365
+ }), a.some((o) => o.x === r.x && o.y === r.y) || a.push(r), l = !0;
1366
+ } else
1367
+ i = s, l || a.push(s);
1368
+ }), a;
1369
+ }, "cutPathAtIntersect"), $a = /* @__PURE__ */ g(function(e, t, a, i, l, s, r) {
1370
+ let n = a.points;
1371
+ L.debug("abc88 InsertEdge: edge=", a, "e=", t);
1372
+ let o = !1;
1373
+ const u = s.node(t.v);
1374
+ var h = s.node(t.w);
1375
+ h != null && h.intersect && (u != null && u.intersect) && (n = n.slice(1, a.points.length - 1), n.unshift(u.intersect(n[0])), n.push(h.intersect(n[n.length - 1]))), a.toCluster && (L.debug("to cluster abc88", i[a.toCluster]), n = Ht(a.points, i[a.toCluster].node), o = !0), a.fromCluster && (L.debug("from cluster abc88", i[a.fromCluster]), n = Ht(n.reverse(), i[a.fromCluster].node).reverse(), o = !0);
1376
+ const x = n.filter((y) => !Number.isNaN(y.y));
1377
+ let b = Ke;
1378
+ a.curve && (l === "graph" || l === "flowchart") && (b = a.curve);
1379
+ const { x: m, y: S } = Fe(a), k = Pe().x(m).y(S).curve(b);
1380
+ let E;
1381
+ switch (a.thickness) {
1382
+ case "normal":
1383
+ E = "edge-thickness-normal";
1384
+ break;
1385
+ case "thick":
1386
+ E = "edge-thickness-thick";
1387
+ break;
1388
+ case "invisible":
1389
+ E = "edge-thickness-thick";
1390
+ break;
1391
+ default:
1392
+ E = "";
1393
+ }
1394
+ switch (a.pattern) {
1395
+ case "solid":
1396
+ E += " edge-pattern-solid";
1397
+ break;
1398
+ case "dotted":
1399
+ E += " edge-pattern-dotted";
1400
+ break;
1401
+ case "dashed":
1402
+ E += " edge-pattern-dashed";
1403
+ break;
1404
+ }
1405
+ const N = e.append("path").attr("d", k(x)).attr("id", a.id).attr("class", " " + E + (a.classes ? " " + a.classes : "")).attr("style", a.style);
1406
+ let T = "";
1407
+ (z().flowchart.arrowMarkerAbsolute || z().state.arrowMarkerAbsolute) && (T = We(!0)), Ua(N, a, T, r, l);
1408
+ let D = {};
1409
+ return o && (D.updatedPath = n), D.originalPath = a.points, D;
1410
+ }, "insertEdge"), Za = /* @__PURE__ */ g((e) => {
1411
+ const t = /* @__PURE__ */ new Set();
1412
+ for (const a of e)
1413
+ switch (a) {
1414
+ case "x":
1415
+ t.add("right"), t.add("left");
1416
+ break;
1417
+ case "y":
1418
+ t.add("up"), t.add("down");
1419
+ break;
1420
+ default:
1421
+ t.add(a);
1422
+ break;
1423
+ }
1424
+ return t;
1425
+ }, "expandAndDeduplicateDirections"), qa = /* @__PURE__ */ g((e, t, a) => {
1426
+ const i = Za(e), l = 2, s = t.height + 2 * a.padding, r = s / l, n = t.width + 2 * r + a.padding, o = a.padding / 2;
1427
+ return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [
1428
+ // Bottom
1429
+ { x: 0, y: 0 },
1430
+ { x: r, y: 0 },
1431
+ { x: n / 2, y: 2 * o },
1432
+ { x: n - r, y: 0 },
1433
+ { x: n, y: 0 },
1434
+ // Right
1435
+ { x: n, y: -s / 3 },
1436
+ { x: n + 2 * o, y: -s / 2 },
1437
+ { x: n, y: -2 * s / 3 },
1438
+ { x: n, y: -s },
1439
+ // Top
1440
+ { x: n - r, y: -s },
1441
+ { x: n / 2, y: -s - 2 * o },
1442
+ { x: r, y: -s },
1443
+ // Left
1444
+ { x: 0, y: -s },
1445
+ { x: 0, y: -2 * s / 3 },
1446
+ { x: -2 * o, y: -s / 2 },
1447
+ { x: 0, y: -s / 3 }
1448
+ ] : i.has("right") && i.has("left") && i.has("up") ? [
1449
+ { x: r, y: 0 },
1450
+ { x: n - r, y: 0 },
1451
+ { x: n, y: -s / 2 },
1452
+ { x: n - r, y: -s },
1453
+ { x: r, y: -s },
1454
+ { x: 0, y: -s / 2 }
1455
+ ] : i.has("right") && i.has("left") && i.has("down") ? [
1456
+ { x: 0, y: 0 },
1457
+ { x: r, y: -s },
1458
+ { x: n - r, y: -s },
1459
+ { x: n, y: 0 }
1460
+ ] : i.has("right") && i.has("up") && i.has("down") ? [
1461
+ { x: 0, y: 0 },
1462
+ { x: n, y: -r },
1463
+ { x: n, y: -s + r },
1464
+ { x: 0, y: -s }
1465
+ ] : i.has("left") && i.has("up") && i.has("down") ? [
1466
+ { x: n, y: 0 },
1467
+ { x: 0, y: -r },
1468
+ { x: 0, y: -s + r },
1469
+ { x: n, y: -s }
1470
+ ] : i.has("right") && i.has("left") ? [
1471
+ { x: r, y: 0 },
1472
+ { x: r, y: -o },
1473
+ { x: n - r, y: -o },
1474
+ { x: n - r, y: 0 },
1475
+ { x: n, y: -s / 2 },
1476
+ { x: n - r, y: -s },
1477
+ { x: n - r, y: -s + o },
1478
+ { x: r, y: -s + o },
1479
+ { x: r, y: -s },
1480
+ { x: 0, y: -s / 2 }
1481
+ ] : i.has("up") && i.has("down") ? [
1482
+ // Bottom center
1483
+ { x: n / 2, y: 0 },
1484
+ // Left pont of bottom arrow
1485
+ { x: 0, y: -o },
1486
+ { x: r, y: -o },
1487
+ // Left top over vertical section
1488
+ { x: r, y: -s + o },
1489
+ { x: 0, y: -s + o },
1490
+ // Top of arrow
1491
+ { x: n / 2, y: -s },
1492
+ { x: n, y: -s + o },
1493
+ // Top of right vertical bar
1494
+ { x: n - r, y: -s + o },
1495
+ { x: n - r, y: -o },
1496
+ { x: n, y: -o }
1497
+ ] : i.has("right") && i.has("up") ? [
1498
+ { x: 0, y: 0 },
1499
+ { x: n, y: -r },
1500
+ { x: 0, y: -s }
1501
+ ] : i.has("right") && i.has("down") ? [
1502
+ { x: 0, y: 0 },
1503
+ { x: n, y: 0 },
1504
+ { x: 0, y: -s }
1505
+ ] : i.has("left") && i.has("up") ? [
1506
+ { x: n, y: 0 },
1507
+ { x: 0, y: -r },
1508
+ { x: n, y: -s }
1509
+ ] : i.has("left") && i.has("down") ? [
1510
+ { x: n, y: 0 },
1511
+ { x: 0, y: 0 },
1512
+ { x: n, y: -s }
1513
+ ] : i.has("right") ? [
1514
+ { x: r, y: -o },
1515
+ { x: r, y: -o },
1516
+ { x: n - r, y: -o },
1517
+ { x: n - r, y: 0 },
1518
+ { x: n, y: -s / 2 },
1519
+ { x: n - r, y: -s },
1520
+ { x: n - r, y: -s + o },
1521
+ // top left corner of arrow
1522
+ { x: r, y: -s + o },
1523
+ { x: r, y: -s + o }
1524
+ ] : i.has("left") ? [
1525
+ { x: r, y: 0 },
1526
+ { x: r, y: -o },
1527
+ // Two points, the right corners
1528
+ { x: n - r, y: -o },
1529
+ { x: n - r, y: -s + o },
1530
+ { x: r, y: -s + o },
1531
+ { x: r, y: -s },
1532
+ { x: 0, y: -s / 2 }
1533
+ ] : i.has("up") ? [
1534
+ // Bottom center
1535
+ { x: r, y: -o },
1536
+ // Left top over vertical section
1537
+ { x: r, y: -s + o },
1538
+ { x: 0, y: -s + o },
1539
+ // Top of arrow
1540
+ { x: n / 2, y: -s },
1541
+ { x: n, y: -s + o },
1542
+ // Top of right vertical bar
1543
+ { x: n - r, y: -s + o },
1544
+ { x: n - r, y: -o }
1545
+ ] : i.has("down") ? [
1546
+ // Bottom center
1547
+ { x: n / 2, y: 0 },
1548
+ // Left pont of bottom arrow
1549
+ { x: 0, y: -o },
1550
+ { x: r, y: -o },
1551
+ // Left top over vertical section
1552
+ { x: r, y: -s + o },
1553
+ { x: n - r, y: -s + o },
1554
+ { x: n - r, y: -o },
1555
+ { x: n, y: -o }
1556
+ ] : [{ x: 0, y: 0 }];
1557
+ }, "getArrowPoints");
1558
+ function de(e, t) {
1559
+ return e.intersect(t);
1560
+ }
1561
+ g(de, "intersectNode");
1562
+ var Ja = de;
1563
+ function ue(e, t, a, i) {
1564
+ var l = e.x, s = e.y, r = l - i.x, n = s - i.y, o = Math.sqrt(t * t * n * n + a * a * r * r), u = Math.abs(t * a * r / o);
1565
+ i.x < l && (u = -u);
1566
+ var h = Math.abs(t * a * n / o);
1567
+ return i.y < s && (h = -h), { x: l + u, y: s + h };
1568
+ }
1569
+ g(ue, "intersectEllipse");
1570
+ var pe = ue;
1571
+ function fe(e, t, a) {
1572
+ return pe(e, t, t, a);
1573
+ }
1574
+ g(fe, "intersectCircle");
1575
+ var Qa = fe;
1576
+ function ye(e, t, a, i) {
1577
+ var l, s, r, n, o, u, h, x, b, m, S, k, E, N, T;
1578
+ if (l = t.y - e.y, r = e.x - t.x, o = t.x * e.y - e.x * t.y, b = l * a.x + r * a.y + o, m = l * i.x + r * i.y + o, !(b !== 0 && m !== 0 && kt(b, m)) && (s = i.y - a.y, n = a.x - i.x, u = i.x * a.y - a.x * i.y, h = s * e.x + n * e.y + u, x = s * t.x + n * t.y + u, !(h !== 0 && x !== 0 && kt(h, x)) && (S = l * n - s * r, S !== 0)))
1579
+ return k = Math.abs(S / 2), E = r * u - n * o, N = E < 0 ? (E - k) / S : (E + k) / S, E = s * o - l * u, T = E < 0 ? (E - k) / S : (E + k) / S, { x: N, y: T };
1580
+ }
1581
+ g(ye, "intersectLine");
1582
+ function kt(e, t) {
1583
+ return e * t > 0;
1584
+ }
1585
+ g(kt, "sameSign");
1586
+ var ts = ye, es = xe;
1587
+ function xe(e, t, a) {
1588
+ var i = e.x, l = e.y, s = [], r = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY;
1589
+ typeof t.forEach == "function" ? t.forEach(function(S) {
1590
+ r = Math.min(r, S.x), n = Math.min(n, S.y);
1591
+ }) : (r = Math.min(r, t.x), n = Math.min(n, t.y));
1592
+ for (var o = i - e.width / 2 - r, u = l - e.height / 2 - n, h = 0; h < t.length; h++) {
1593
+ var x = t[h], b = t[h < t.length - 1 ? h + 1 : 0], m = ts(
1594
+ e,
1595
+ a,
1596
+ { x: o + x.x, y: u + x.y },
1597
+ { x: o + b.x, y: u + b.y }
1598
+ );
1599
+ m && s.push(m);
1600
+ }
1601
+ return s.length ? (s.length > 1 && s.sort(function(S, k) {
1602
+ var E = S.x - a.x, N = S.y - a.y, T = Math.sqrt(E * E + N * N), D = k.x - a.x, y = k.y - a.y, d = Math.sqrt(D * D + y * y);
1603
+ return T < d ? -1 : T === d ? 0 : 1;
1604
+ }), s[0]) : e;
1605
+ }
1606
+ g(xe, "intersectPolygon");
1607
+ var rs = /* @__PURE__ */ g((e, t) => {
1608
+ var a = e.x, i = e.y, l = t.x - a, s = t.y - i, r = e.width / 2, n = e.height / 2, o, u;
1609
+ return Math.abs(s) * r > Math.abs(l) * n ? (s < 0 && (n = -n), o = s === 0 ? 0 : n * l / s, u = n) : (l < 0 && (r = -r), o = r, u = l === 0 ? 0 : r * s / l), { x: a + o, y: i + u };
1610
+ }, "intersectRect"), as = rs, I = {
1611
+ node: Ja,
1612
+ circle: Qa,
1613
+ ellipse: pe,
1614
+ polygon: es,
1615
+ rect: as
1616
+ }, F = /* @__PURE__ */ g(async (e, t, a, i) => {
1617
+ const l = z();
1618
+ let s;
1619
+ const r = t.useHtmlLabels || Z(l.flowchart.htmlLabels);
1620
+ a ? s = a : s = "node default";
1621
+ const n = e.insert("g").attr("class", s).attr("id", t.domId || t.id), o = n.insert("g").attr("class", "label").attr("style", t.labelStyle);
1622
+ let u;
1623
+ t.labelText === void 0 ? u = "" : u = typeof t.labelText == "string" ? t.labelText : t.labelText[0];
1624
+ const h = o.node();
1625
+ let x;
1626
+ t.labelType === "markdown" ? x = te(
1627
+ o,
1628
+ mt(Lt(u), l),
1629
+ {
1630
+ useHtmlLabels: r,
1631
+ width: t.width || l.flowchart.wrappingWidth,
1632
+ classes: "markdown-node-label"
1633
+ },
1634
+ l
1635
+ ) : x = h.appendChild(
1636
+ await V(
1637
+ mt(Lt(u), l),
1638
+ t.labelStyle,
1639
+ !1,
1640
+ i
1641
+ )
1642
+ );
1643
+ let b = x.getBBox();
1644
+ const m = t.padding / 2;
1645
+ if (Z(l.flowchart.htmlLabels)) {
1646
+ const S = x.children[0], k = R(x), E = S.getElementsByTagName("img");
1647
+ if (E) {
1648
+ const N = u.replace(/<img[^>]*>/g, "").trim() === "";
1649
+ await Promise.all(
1650
+ [...E].map(
1651
+ (T) => new Promise((D) => {
1652
+ function y() {
1653
+ if (T.style.display = "flex", T.style.flexDirection = "column", N) {
1654
+ const d = l.fontSize ? l.fontSize : window.getComputedStyle(document.body).fontSize, w = parseInt(d, 10) * 5 + "px";
1655
+ T.style.minWidth = w, T.style.maxWidth = w;
1656
+ } else
1657
+ T.style.width = "100%";
1658
+ D(T);
1659
+ }
1660
+ g(y, "setupImage"), setTimeout(() => {
1661
+ T.complete && y();
1662
+ }), T.addEventListener("error", y), T.addEventListener("load", y);
1663
+ })
1664
+ )
1665
+ );
1666
+ }
1667
+ b = S.getBoundingClientRect(), k.attr("width", b.width), k.attr("height", b.height);
1668
+ }
1669
+ return r ? o.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")") : o.attr("transform", "translate(0, " + -b.height / 2 + ")"), t.centerLabel && o.attr("transform", "translate(" + -b.width / 2 + ", " + -b.height / 2 + ")"), o.insert("rect", ":first-child"), { shapeSvg: n, bbox: b, halfPadding: m, label: o };
1670
+ }, "labelHelper"), B = /* @__PURE__ */ g((e, t) => {
1671
+ const a = t.node().getBBox();
1672
+ e.width = a.width, e.height = a.height;
1673
+ }, "updateNodeBounds");
1674
+ function $(e, t, a, i) {
1675
+ return e.insert("polygon", ":first-child").attr(
1676
+ "points",
1677
+ i.map(function(l) {
1678
+ return l.x + "," + l.y;
1679
+ }).join(" ")
1680
+ ).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + a / 2 + ")");
1681
+ }
1682
+ g($, "insertPolygonShape");
1683
+ var ss = /* @__PURE__ */ g(async (e, t) => {
1684
+ t.useHtmlLabels || z().flowchart.htmlLabels || (t.centerLabel = !0);
1685
+ const { shapeSvg: i, bbox: l, halfPadding: s } = await F(
1686
+ e,
1687
+ t,
1688
+ "node " + t.classes,
1689
+ !0
1690
+ );
1691
+ L.info("Classes = ", t.classes);
1692
+ const r = i.insert("rect", ":first-child");
1693
+ return r.attr("rx", t.rx).attr("ry", t.ry).attr("x", -l.width / 2 - s).attr("y", -l.height / 2 - s).attr("width", l.width + t.padding).attr("height", l.height + t.padding), B(t, r), t.intersect = function(n) {
1694
+ return I.rect(t, n);
1695
+ }, i;
1696
+ }, "note"), is = ss, Kt = /* @__PURE__ */ g((e) => e ? " " + e : "", "formatClass"), H = /* @__PURE__ */ g((e, t) => `${t || "node default"}${Kt(e.classes)} ${Kt(
1697
+ e.class
1698
+ )}`, "getClassesFromNode"), Xt = /* @__PURE__ */ g(async (e, t) => {
1699
+ const { shapeSvg: a, bbox: i } = await F(
1700
+ e,
1701
+ t,
1702
+ H(t, void 0),
1703
+ !0
1704
+ ), l = i.width + t.padding, s = i.height + t.padding, r = l + s, n = [
1705
+ { x: r / 2, y: 0 },
1706
+ { x: r, y: -r / 2 },
1707
+ { x: r / 2, y: -r },
1708
+ { x: 0, y: -r / 2 }
1709
+ ];
1710
+ L.info("Question main (Circle)");
1711
+ const o = $(a, r, r, n);
1712
+ return o.attr("style", t.style), B(t, o), t.intersect = function(u) {
1713
+ return L.warn("Intersect called"), I.polygon(t, n, u);
1714
+ }, a;
1715
+ }, "question"), ns = /* @__PURE__ */ g((e, t) => {
1716
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 28, l = [
1717
+ { x: 0, y: i / 2 },
1718
+ { x: i / 2, y: 0 },
1719
+ { x: 0, y: -i / 2 },
1720
+ { x: -i / 2, y: 0 }
1721
+ ];
1722
+ return a.insert("polygon", ":first-child").attr(
1723
+ "points",
1724
+ l.map(function(r) {
1725
+ return r.x + "," + r.y;
1726
+ }).join(" ")
1727
+ ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(r) {
1728
+ return I.circle(t, 14, r);
1729
+ }, a;
1730
+ }, "choice"), ls = /* @__PURE__ */ g(async (e, t) => {
1731
+ const { shapeSvg: a, bbox: i } = await F(
1732
+ e,
1733
+ t,
1734
+ H(t, void 0),
1735
+ !0
1736
+ ), l = 4, s = i.height + t.padding, r = s / l, n = i.width + 2 * r + t.padding, o = [
1737
+ { x: r, y: 0 },
1738
+ { x: n - r, y: 0 },
1739
+ { x: n, y: -s / 2 },
1740
+ { x: n - r, y: -s },
1741
+ { x: r, y: -s },
1742
+ { x: 0, y: -s / 2 }
1743
+ ], u = $(a, n, s, o);
1744
+ return u.attr("style", t.style), B(t, u), t.intersect = function(h) {
1745
+ return I.polygon(t, o, h);
1746
+ }, a;
1747
+ }, "hexagon"), cs = /* @__PURE__ */ g(async (e, t) => {
1748
+ const { shapeSvg: a, bbox: i } = await F(e, t, void 0, !0), l = 2, s = i.height + 2 * t.padding, r = s / l, n = i.width + 2 * r + t.padding, o = qa(t.directions, i, t), u = $(a, n, s, o);
1749
+ return u.attr("style", t.style), B(t, u), t.intersect = function(h) {
1750
+ return I.polygon(t, o, h);
1751
+ }, a;
1752
+ }, "block_arrow"), os = /* @__PURE__ */ g(async (e, t) => {
1753
+ const { shapeSvg: a, bbox: i } = await F(
1754
+ e,
1755
+ t,
1756
+ H(t, void 0),
1757
+ !0
1758
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1759
+ { x: -s / 2, y: 0 },
1760
+ { x: l, y: 0 },
1761
+ { x: l, y: -s },
1762
+ { x: -s / 2, y: -s },
1763
+ { x: 0, y: -s / 2 }
1764
+ ];
1765
+ return $(a, l, s, r).attr("style", t.style), t.width = l + s, t.height = s, t.intersect = function(o) {
1766
+ return I.polygon(t, r, o);
1767
+ }, a;
1768
+ }, "rect_left_inv_arrow"), hs = /* @__PURE__ */ g(async (e, t) => {
1769
+ const { shapeSvg: a, bbox: i } = await F(e, t, H(t), !0), l = i.width + t.padding, s = i.height + t.padding, r = [
1770
+ { x: -2 * s / 6, y: 0 },
1771
+ { x: l - s / 6, y: 0 },
1772
+ { x: l + 2 * s / 6, y: -s },
1773
+ { x: s / 6, y: -s }
1774
+ ], n = $(a, l, s, r);
1775
+ return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
1776
+ return I.polygon(t, r, o);
1777
+ }, a;
1778
+ }, "lean_right"), gs = /* @__PURE__ */ g(async (e, t) => {
1779
+ const { shapeSvg: a, bbox: i } = await F(
1780
+ e,
1781
+ t,
1782
+ H(t, void 0),
1783
+ !0
1784
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1785
+ { x: 2 * s / 6, y: 0 },
1786
+ { x: l + s / 6, y: 0 },
1787
+ { x: l - 2 * s / 6, y: -s },
1788
+ { x: -s / 6, y: -s }
1789
+ ], n = $(a, l, s, r);
1790
+ return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
1791
+ return I.polygon(t, r, o);
1792
+ }, a;
1793
+ }, "lean_left"), ds = /* @__PURE__ */ g(async (e, t) => {
1794
+ const { shapeSvg: a, bbox: i } = await F(
1795
+ e,
1796
+ t,
1797
+ H(t, void 0),
1798
+ !0
1799
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1800
+ { x: -2 * s / 6, y: 0 },
1801
+ { x: l + 2 * s / 6, y: 0 },
1802
+ { x: l - s / 6, y: -s },
1803
+ { x: s / 6, y: -s }
1804
+ ], n = $(a, l, s, r);
1805
+ return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
1806
+ return I.polygon(t, r, o);
1807
+ }, a;
1808
+ }, "trapezoid"), us = /* @__PURE__ */ g(async (e, t) => {
1809
+ const { shapeSvg: a, bbox: i } = await F(
1810
+ e,
1811
+ t,
1812
+ H(t, void 0),
1813
+ !0
1814
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1815
+ { x: s / 6, y: 0 },
1816
+ { x: l - s / 6, y: 0 },
1817
+ { x: l + 2 * s / 6, y: -s },
1818
+ { x: -2 * s / 6, y: -s }
1819
+ ], n = $(a, l, s, r);
1820
+ return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
1821
+ return I.polygon(t, r, o);
1822
+ }, a;
1823
+ }, "inv_trapezoid"), ps = /* @__PURE__ */ g(async (e, t) => {
1824
+ const { shapeSvg: a, bbox: i } = await F(
1825
+ e,
1826
+ t,
1827
+ H(t, void 0),
1828
+ !0
1829
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1830
+ { x: 0, y: 0 },
1831
+ { x: l + s / 2, y: 0 },
1832
+ { x: l, y: -s / 2 },
1833
+ { x: l + s / 2, y: -s },
1834
+ { x: 0, y: -s }
1835
+ ], n = $(a, l, s, r);
1836
+ return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
1837
+ return I.polygon(t, r, o);
1838
+ }, a;
1839
+ }, "rect_right_inv_arrow"), fs = /* @__PURE__ */ g(async (e, t) => {
1840
+ const { shapeSvg: a, bbox: i } = await F(
1841
+ e,
1842
+ t,
1843
+ H(t, void 0),
1844
+ !0
1845
+ ), l = i.width + t.padding, s = l / 2, r = s / (2.5 + l / 50), n = i.height + r + t.padding, o = "M 0," + r + " a " + s + "," + r + " 0,0,0 " + l + " 0 a " + s + "," + r + " 0,0,0 " + -l + " 0 l 0," + n + " a " + s + "," + r + " 0,0,0 " + l + " 0 l 0," + -n, u = a.attr("label-offset-y", r).insert("path", ":first-child").attr("style", t.style).attr("d", o).attr("transform", "translate(" + -l / 2 + "," + -(n / 2 + r) + ")");
1846
+ return B(t, u), t.intersect = function(h) {
1847
+ const x = I.rect(t, h), b = x.x - t.x;
1848
+ if (s != 0 && (Math.abs(b) < t.width / 2 || Math.abs(b) == t.width / 2 && Math.abs(x.y - t.y) > t.height / 2 - r)) {
1849
+ let m = r * r * (1 - b * b / (s * s));
1850
+ m != 0 && (m = Math.sqrt(m)), m = r - m, h.y - t.y > 0 && (m = -m), x.y += m;
1851
+ }
1852
+ return x;
1853
+ }, a;
1854
+ }, "cylinder"), ys = /* @__PURE__ */ g(async (e, t) => {
1855
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await F(
1856
+ e,
1857
+ t,
1858
+ "node " + t.classes + " " + t.class,
1859
+ !0
1860
+ ), s = a.insert("rect", ":first-child"), r = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, o = t.positioned ? -r / 2 : -i.width / 2 - l, u = t.positioned ? -n / 2 : -i.height / 2 - l;
1861
+ if (s.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", o).attr("y", u).attr("width", r).attr("height", n), t.props) {
1862
+ const h = new Set(Object.keys(t.props));
1863
+ t.props.borders && (pt(s, t.props.borders, r, n), h.delete("borders")), h.forEach((x) => {
1864
+ L.warn(`Unknown node property ${x}`);
1865
+ });
1866
+ }
1867
+ return B(t, s), t.intersect = function(h) {
1868
+ return I.rect(t, h);
1869
+ }, a;
1870
+ }, "rect"), xs = /* @__PURE__ */ g(async (e, t) => {
1871
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await F(
1872
+ e,
1873
+ t,
1874
+ "node " + t.classes,
1875
+ !0
1876
+ ), s = a.insert("rect", ":first-child"), r = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, o = t.positioned ? -r / 2 : -i.width / 2 - l, u = t.positioned ? -n / 2 : -i.height / 2 - l;
1877
+ if (s.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", o).attr("y", u).attr("width", r).attr("height", n), t.props) {
1878
+ const h = new Set(Object.keys(t.props));
1879
+ t.props.borders && (pt(s, t.props.borders, r, n), h.delete("borders")), h.forEach((x) => {
1880
+ L.warn(`Unknown node property ${x}`);
1881
+ });
1882
+ }
1883
+ return B(t, s), t.intersect = function(h) {
1884
+ return I.rect(t, h);
1885
+ }, a;
1886
+ }, "composite"), bs = /* @__PURE__ */ g(async (e, t) => {
1887
+ const { shapeSvg: a } = await F(e, t, "label", !0);
1888
+ L.trace("Classes = ", t.class);
1889
+ const i = a.insert("rect", ":first-child"), l = 0, s = 0;
1890
+ if (i.attr("width", l).attr("height", s), a.attr("class", "label edgeLabel"), t.props) {
1891
+ const r = new Set(Object.keys(t.props));
1892
+ t.props.borders && (pt(i, t.props.borders, l, s), r.delete("borders")), r.forEach((n) => {
1893
+ L.warn(`Unknown node property ${n}`);
1894
+ });
1895
+ }
1896
+ return B(t, i), t.intersect = function(r) {
1897
+ return I.rect(t, r);
1898
+ }, a;
1899
+ }, "labelRect");
1900
+ function pt(e, t, a, i) {
1901
+ const l = [], s = /* @__PURE__ */ g((n) => {
1902
+ l.push(n, 0);
1903
+ }, "addBorder"), r = /* @__PURE__ */ g((n) => {
1904
+ l.push(0, n);
1905
+ }, "skipBorder");
1906
+ t.includes("t") ? (L.debug("add top border"), s(a)) : r(a), t.includes("r") ? (L.debug("add right border"), s(i)) : r(i), t.includes("b") ? (L.debug("add bottom border"), s(a)) : r(a), t.includes("l") ? (L.debug("add left border"), s(i)) : r(i), e.attr("stroke-dasharray", l.join(" "));
1907
+ }
1908
+ g(pt, "applyNodePropertyBorders");
1909
+ var ws = /* @__PURE__ */ g(async (e, t) => {
1910
+ let a;
1911
+ t.classes ? a = "node " + t.classes : a = "node default";
1912
+ const i = e.insert("g").attr("class", a).attr("id", t.domId || t.id), l = i.insert("rect", ":first-child"), s = i.insert("line"), r = i.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText;
1913
+ let o = "";
1914
+ typeof n == "object" ? o = n[0] : o = n, L.info("Label text abc79", o, n, typeof n == "object");
1915
+ const u = r.node().appendChild(await V(o, t.labelStyle, !0, !0));
1916
+ let h = { width: 0, height: 0 };
1917
+ if (Z(z().flowchart.htmlLabels)) {
1918
+ const k = u.children[0], E = R(u);
1919
+ h = k.getBoundingClientRect(), E.attr("width", h.width), E.attr("height", h.height);
1920
+ }
1921
+ L.info("Text 2", n);
1922
+ const x = n.slice(1, n.length);
1923
+ let b = u.getBBox();
1924
+ const m = r.node().appendChild(
1925
+ await V(
1926
+ x.join ? x.join("<br/>") : x,
1927
+ t.labelStyle,
1928
+ !0,
1929
+ !0
1930
+ )
1931
+ );
1932
+ if (Z(z().flowchart.htmlLabels)) {
1933
+ const k = m.children[0], E = R(m);
1934
+ h = k.getBoundingClientRect(), E.attr("width", h.width), E.attr("height", h.height);
1935
+ }
1936
+ const S = t.padding / 2;
1937
+ return R(m).attr(
1938
+ "transform",
1939
+ "translate( " + // (titleBox.width - bbox.width) / 2 +
1940
+ (h.width > b.width ? 0 : (b.width - h.width) / 2) + ", " + (b.height + S + 5) + ")"
1941
+ ), R(u).attr(
1942
+ "transform",
1943
+ "translate( " + // (titleBox.width - bbox.width) / 2 +
1944
+ (h.width < b.width ? 0 : -(b.width - h.width) / 2) + ", 0)"
1945
+ ), h = r.node().getBBox(), r.attr(
1946
+ "transform",
1947
+ "translate(" + -h.width / 2 + ", " + (-h.height / 2 - S + 3) + ")"
1948
+ ), l.attr("class", "outer title-state").attr("x", -h.width / 2 - S).attr("y", -h.height / 2 - S).attr("width", h.width + t.padding).attr("height", h.height + t.padding), s.attr("class", "divider").attr("x1", -h.width / 2 - S).attr("x2", h.width / 2 + S).attr("y1", -h.height / 2 - S + b.height + S).attr("y2", -h.height / 2 - S + b.height + S), B(t, l), t.intersect = function(k) {
1949
+ return I.rect(t, k);
1950
+ }, i;
1951
+ }, "rectWithTitle"), ms = /* @__PURE__ */ g(async (e, t) => {
1952
+ const { shapeSvg: a, bbox: i } = await F(
1953
+ e,
1954
+ t,
1955
+ H(t, void 0),
1956
+ !0
1957
+ ), l = i.height + t.padding, s = i.width + l / 4 + t.padding, r = a.insert("rect", ":first-child").attr("style", t.style).attr("rx", l / 2).attr("ry", l / 2).attr("x", -s / 2).attr("y", -l / 2).attr("width", s).attr("height", l);
1958
+ return B(t, r), t.intersect = function(n) {
1959
+ return I.rect(t, n);
1960
+ }, a;
1961
+ }, "stadium"), Ls = /* @__PURE__ */ g(async (e, t) => {
1962
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await F(
1963
+ e,
1964
+ t,
1965
+ H(t, void 0),
1966
+ !0
1967
+ ), s = a.insert("circle", ":first-child");
1968
+ return s.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), L.info("Circle main"), B(t, s), t.intersect = function(r) {
1969
+ return L.info("Circle intersect", t, i.width / 2 + l, r), I.circle(t, i.width / 2 + l, r);
1970
+ }, a;
1971
+ }, "circle"), Ss = /* @__PURE__ */ g(async (e, t) => {
1972
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await F(
1973
+ e,
1974
+ t,
1975
+ H(t, void 0),
1976
+ !0
1977
+ ), s = 5, r = a.insert("g", ":first-child"), n = r.insert("circle"), o = r.insert("circle");
1978
+ return r.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l + s).attr("width", i.width + t.padding + s * 2).attr("height", i.height + t.padding + s * 2), o.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), L.info("DoubleCircle main"), B(t, n), t.intersect = function(u) {
1979
+ return L.info("DoubleCircle intersect", t, i.width / 2 + l + s, u), I.circle(t, i.width / 2 + l + s, u);
1980
+ }, a;
1981
+ }, "doublecircle"), vs = /* @__PURE__ */ g(async (e, t) => {
1982
+ const { shapeSvg: a, bbox: i } = await F(
1983
+ e,
1984
+ t,
1985
+ H(t, void 0),
1986
+ !0
1987
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1988
+ { x: 0, y: 0 },
1989
+ { x: l, y: 0 },
1990
+ { x: l, y: -s },
1991
+ { x: 0, y: -s },
1992
+ { x: 0, y: 0 },
1993
+ { x: -8, y: 0 },
1994
+ { x: l + 8, y: 0 },
1995
+ { x: l + 8, y: -s },
1996
+ { x: -8, y: -s },
1997
+ { x: -8, y: 0 }
1998
+ ], n = $(a, l, s, r);
1999
+ return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
2000
+ return I.polygon(t, r, o);
2001
+ }, a;
2002
+ }, "subroutine"), Es = /* @__PURE__ */ g((e, t) => {
2003
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child");
2004
+ return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), B(t, i), t.intersect = function(l) {
2005
+ return I.circle(t, 7, l);
2006
+ }, a;
2007
+ }, "start"), Vt = /* @__PURE__ */ g((e, t, a) => {
2008
+ const i = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
2009
+ let l = 70, s = 10;
2010
+ a === "LR" && (l = 10, s = 70);
2011
+ const r = i.append("rect").attr("x", -1 * l / 2).attr("y", -1 * s / 2).attr("width", l).attr("height", s).attr("class", "fork-join");
2012
+ return B(t, r), t.height = t.height + t.padding / 2, t.width = t.width + t.padding / 2, t.intersect = function(n) {
2013
+ return I.rect(t, n);
2014
+ }, i;
2015
+ }, "forkJoin"), _s = /* @__PURE__ */ g((e, t) => {
2016
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child"), l = a.insert("circle", ":first-child");
2017
+ return l.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), i.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), B(t, l), t.intersect = function(s) {
2018
+ return I.circle(t, 7, s);
2019
+ }, a;
2020
+ }, "end"), ks = /* @__PURE__ */ g(async (e, t) => {
2021
+ var v;
2022
+ const a = t.padding / 2, i = 4, l = 8;
2023
+ let s;
2024
+ t.classes ? s = "node " + t.classes : s = "node default";
2025
+ const r = e.insert("g").attr("class", s).attr("id", t.domId || t.id), n = r.insert("rect", ":first-child"), o = r.insert("line"), u = r.insert("line");
2026
+ let h = 0, x = i;
2027
+ const b = r.insert("g").attr("class", "label");
2028
+ let m = 0;
2029
+ const S = (v = t.classData.annotations) == null ? void 0 : v[0], k = t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", E = b.node().appendChild(await V(k, t.labelStyle, !0, !0));
2030
+ let N = E.getBBox();
2031
+ if (Z(z().flowchart.htmlLabels)) {
2032
+ const c = E.children[0], _ = R(E);
2033
+ N = c.getBoundingClientRect(), _.attr("width", N.width), _.attr("height", N.height);
2034
+ }
2035
+ t.classData.annotations[0] && (x += N.height + i, h += N.width);
2036
+ let T = t.classData.label;
2037
+ t.classData.type !== void 0 && t.classData.type !== "" && (z().flowchart.htmlLabels ? T += "&lt;" + t.classData.type + "&gt;" : T += "<" + t.classData.type + ">");
2038
+ const D = b.node().appendChild(await V(T, t.labelStyle, !0, !0));
2039
+ R(D).attr("class", "classTitle");
2040
+ let y = D.getBBox();
2041
+ if (Z(z().flowchart.htmlLabels)) {
2042
+ const c = D.children[0], _ = R(D);
2043
+ y = c.getBoundingClientRect(), _.attr("width", y.width), _.attr("height", y.height);
2044
+ }
2045
+ x += y.height + i, y.width > h && (h = y.width);
2046
+ const d = [];
2047
+ t.classData.members.forEach(async (c) => {
2048
+ const _ = c.getDisplayDetails();
2049
+ let f = _.displayText;
2050
+ z().flowchart.htmlLabels && (f = f.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2051
+ const M = b.node().appendChild(
2052
+ await V(
2053
+ f,
2054
+ _.cssStyle ? _.cssStyle : t.labelStyle,
2055
+ !0,
2056
+ !0
2057
+ )
2058
+ );
2059
+ let O = M.getBBox();
2060
+ if (Z(z().flowchart.htmlLabels)) {
2061
+ const K = M.children[0], W = R(M);
2062
+ O = K.getBoundingClientRect(), W.attr("width", O.width), W.attr("height", O.height);
2063
+ }
2064
+ O.width > h && (h = O.width), x += O.height + i, d.push(M);
2065
+ }), x += l;
2066
+ const p = [];
2067
+ if (t.classData.methods.forEach(async (c) => {
2068
+ const _ = c.getDisplayDetails();
2069
+ let f = _.displayText;
2070
+ z().flowchart.htmlLabels && (f = f.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2071
+ const M = b.node().appendChild(
2072
+ await V(
2073
+ f,
2074
+ _.cssStyle ? _.cssStyle : t.labelStyle,
2075
+ !0,
2076
+ !0
2077
+ )
2078
+ );
2079
+ let O = M.getBBox();
2080
+ if (Z(z().flowchart.htmlLabels)) {
2081
+ const K = M.children[0], W = R(M);
2082
+ O = K.getBoundingClientRect(), W.attr("width", O.width), W.attr("height", O.height);
2083
+ }
2084
+ O.width > h && (h = O.width), x += O.height + i, p.push(M);
2085
+ }), x += l, S) {
2086
+ let c = (h - N.width) / 2;
2087
+ R(E).attr(
2088
+ "transform",
2089
+ "translate( " + (-1 * h / 2 + c) + ", " + -1 * x / 2 + ")"
2090
+ ), m = N.height + i;
2091
+ }
2092
+ let w = (h - y.width) / 2;
2093
+ return R(D).attr(
2094
+ "transform",
2095
+ "translate( " + (-1 * h / 2 + w) + ", " + (-1 * x / 2 + m) + ")"
2096
+ ), m += y.height + i, o.attr("class", "divider").attr("x1", -h / 2 - a).attr("x2", h / 2 + a).attr("y1", -x / 2 - a + l + m).attr("y2", -x / 2 - a + l + m), m += l, d.forEach((c) => {
2097
+ R(c).attr(
2098
+ "transform",
2099
+ "translate( " + -h / 2 + ", " + (-1 * x / 2 + m + l / 2) + ")"
2100
+ );
2101
+ const _ = c == null ? void 0 : c.getBBox();
2102
+ m += ((_ == null ? void 0 : _.height) ?? 0) + i;
2103
+ }), m += l, u.attr("class", "divider").attr("x1", -h / 2 - a).attr("x2", h / 2 + a).attr("y1", -x / 2 - a + l + m).attr("y2", -x / 2 - a + l + m), m += l, p.forEach((c) => {
2104
+ R(c).attr(
2105
+ "transform",
2106
+ "translate( " + -h / 2 + ", " + (-1 * x / 2 + m) + ")"
2107
+ );
2108
+ const _ = c == null ? void 0 : c.getBBox();
2109
+ m += ((_ == null ? void 0 : _.height) ?? 0) + i;
2110
+ }), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -h / 2 - a).attr("y", -(x / 2) - a).attr("width", h + t.padding).attr("height", x + t.padding), B(t, n), t.intersect = function(c) {
2111
+ return I.rect(t, c);
2112
+ }, r;
2113
+ }, "class_box"), Gt = {
2114
+ rhombus: Xt,
2115
+ composite: xs,
2116
+ question: Xt,
2117
+ rect: ys,
2118
+ labelRect: bs,
2119
+ rectWithTitle: ws,
2120
+ choice: ns,
2121
+ circle: Ls,
2122
+ doublecircle: Ss,
2123
+ stadium: ms,
2124
+ hexagon: ls,
2125
+ block_arrow: cs,
2126
+ rect_left_inv_arrow: os,
2127
+ lean_right: hs,
2128
+ lean_left: gs,
2129
+ trapezoid: ds,
2130
+ inv_trapezoid: us,
2131
+ rect_right_inv_arrow: ps,
2132
+ cylinder: fs,
2133
+ start: Es,
2134
+ end: _s,
2135
+ note: is,
2136
+ subroutine: vs,
2137
+ fork: Vt,
2138
+ join: Vt,
2139
+ class_box: ks
2140
+ }, ht = {}, be = /* @__PURE__ */ g(async (e, t, a) => {
2141
+ let i, l;
2142
+ if (t.link) {
2143
+ let s;
2144
+ z().securityLevel === "sandbox" ? s = "_top" : t.linkTarget && (s = t.linkTarget || "_blank"), i = e.insert("svg:a").attr("xlink:href", t.link).attr("target", s), l = await Gt[t.shape](i, t, a);
2145
+ } else
2146
+ l = await Gt[t.shape](e, t, a), i = l;
2147
+ return t.tooltip && l.attr("title", t.tooltip), t.class && l.attr("class", "node default " + t.class), ht[t.id] = i, t.haveCallback && ht[t.id].attr("class", ht[t.id].attr("class") + " clickable"), i;
2148
+ }, "insertNode"), Ts = /* @__PURE__ */ g((e) => {
2149
+ const t = ht[e.id];
2150
+ L.trace(
2151
+ "Transforming node",
2152
+ e.diff,
2153
+ e,
2154
+ "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")"
2155
+ );
2156
+ const a = 8, i = e.diff || 0;
2157
+ return e.clusterNode ? t.attr(
2158
+ "transform",
2159
+ "translate(" + (e.x + i - e.width / 2) + ", " + (e.y - e.height / 2 - a) + ")"
2160
+ ) : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), i;
2161
+ }, "positionNode");
2162
+ function Bt(e, t, a = !1) {
2163
+ var b, m, S;
2164
+ const i = e;
2165
+ let l = "default";
2166
+ (((b = i == null ? void 0 : i.classes) == null ? void 0 : b.length) || 0) > 0 && (l = ((i == null ? void 0 : i.classes) ?? []).join(" ")), l = l + " flowchart-label";
2167
+ let s = 0, r = "", n;
2168
+ switch (i.type) {
2169
+ case "round":
2170
+ s = 5, r = "rect";
2171
+ break;
2172
+ case "composite":
2173
+ s = 0, r = "composite", n = 0;
2174
+ break;
2175
+ case "square":
2176
+ r = "rect";
2177
+ break;
2178
+ case "diamond":
2179
+ r = "question";
2180
+ break;
2181
+ case "hexagon":
2182
+ r = "hexagon";
2183
+ break;
2184
+ case "block_arrow":
2185
+ r = "block_arrow";
2186
+ break;
2187
+ case "odd":
2188
+ r = "rect_left_inv_arrow";
2189
+ break;
2190
+ case "lean_right":
2191
+ r = "lean_right";
2192
+ break;
2193
+ case "lean_left":
2194
+ r = "lean_left";
2195
+ break;
2196
+ case "trapezoid":
2197
+ r = "trapezoid";
2198
+ break;
2199
+ case "inv_trapezoid":
2200
+ r = "inv_trapezoid";
2201
+ break;
2202
+ case "rect_left_inv_arrow":
2203
+ r = "rect_left_inv_arrow";
2204
+ break;
2205
+ case "circle":
2206
+ r = "circle";
2207
+ break;
2208
+ case "ellipse":
2209
+ r = "ellipse";
2210
+ break;
2211
+ case "stadium":
2212
+ r = "stadium";
2213
+ break;
2214
+ case "subroutine":
2215
+ r = "subroutine";
2216
+ break;
2217
+ case "cylinder":
2218
+ r = "cylinder";
2219
+ break;
2220
+ case "group":
2221
+ r = "rect";
2222
+ break;
2223
+ case "doublecircle":
2224
+ r = "doublecircle";
2225
+ break;
2226
+ default:
2227
+ r = "rect";
2228
+ }
2229
+ const o = Me((i == null ? void 0 : i.styles) ?? []), u = i.label, h = i.size ?? { width: 0, height: 0, x: 0, y: 0 };
2230
+ return {
2231
+ labelStyle: o.labelStyle,
2232
+ shape: r,
2233
+ labelText: u,
2234
+ rx: s,
2235
+ ry: s,
2236
+ class: l,
2237
+ style: o.style,
2238
+ id: i.id,
2239
+ directions: i.directions,
2240
+ width: h.width,
2241
+ height: h.height,
2242
+ x: h.x,
2243
+ y: h.y,
2244
+ positioned: a,
2245
+ intersect: void 0,
2246
+ type: i.type,
2247
+ padding: n ?? ((S = (m = it()) == null ? void 0 : m.block) == null ? void 0 : S.padding) ?? 0
2248
+ };
2249
+ }
2250
+ g(Bt, "getNodeFromBlock");
2251
+ async function we(e, t, a) {
2252
+ const i = Bt(t, a, !1);
2253
+ if (i.type === "group")
2254
+ return;
2255
+ const l = it(), s = await be(e, i, { config: l }), r = s.node().getBBox(), n = a.getBlock(i.id);
2256
+ n.size = { width: r.width, height: r.height, x: 0, y: 0, node: s }, a.setBlock(n), s.remove();
2257
+ }
2258
+ g(we, "calculateBlockSize");
2259
+ async function me(e, t, a) {
2260
+ const i = Bt(t, a, !0);
2261
+ if (a.getBlock(i.id).type !== "space") {
2262
+ const s = it();
2263
+ await be(e, i, { config: s }), t.intersect = i == null ? void 0 : i.intersect, Ts(i);
2264
+ }
2265
+ }
2266
+ g(me, "insertBlockPositioned");
2267
+ async function ft(e, t, a, i) {
2268
+ for (const l of t)
2269
+ await i(e, l, a), l.children && await ft(e, l.children, a, i);
2270
+ }
2271
+ g(ft, "performOperations");
2272
+ async function Le(e, t, a) {
2273
+ await ft(e, t, a, we);
2274
+ }
2275
+ g(Le, "calculateBlockSizes");
2276
+ async function Se(e, t, a) {
2277
+ await ft(e, t, a, me);
2278
+ }
2279
+ g(Se, "insertBlocks");
2280
+ async function ve(e, t, a, i, l) {
2281
+ const s = new Je({
2282
+ multigraph: !0,
2283
+ compound: !0
2284
+ });
2285
+ s.setGraph({
2286
+ rankdir: "TB",
2287
+ nodesep: 10,
2288
+ ranksep: 10,
2289
+ marginx: 8,
2290
+ marginy: 8
2291
+ });
2292
+ for (const r of a)
2293
+ r.size && s.setNode(r.id, {
2294
+ width: r.size.width,
2295
+ height: r.size.height,
2296
+ intersect: r.intersect
2297
+ });
2298
+ for (const r of t)
2299
+ if (r.start && r.end) {
2300
+ const n = i.getBlock(r.start), o = i.getBlock(r.end);
2301
+ if (n != null && n.size && (o != null && o.size)) {
2302
+ const u = n.size, h = o.size, x = [
2303
+ { x: u.x, y: u.y },
2304
+ { x: u.x + (h.x - u.x) / 2, y: u.y + (h.y - u.y) / 2 },
2305
+ { x: h.x, y: h.y }
2306
+ ];
2307
+ $a(
2308
+ e,
2309
+ { v: r.start, w: r.end, name: r.id },
2310
+ {
2311
+ ...r,
2312
+ arrowTypeEnd: r.arrowTypeEnd,
2313
+ arrowTypeStart: r.arrowTypeStart,
2314
+ points: x,
2315
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2316
+ },
2317
+ void 0,
2318
+ "block",
2319
+ s,
2320
+ l
2321
+ ), r.label && (await Ka(e, {
2322
+ ...r,
2323
+ label: r.label,
2324
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
2325
+ arrowTypeEnd: r.arrowTypeEnd,
2326
+ arrowTypeStart: r.arrowTypeStart,
2327
+ points: x,
2328
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2329
+ }), Xa(
2330
+ { ...r, x: x[1].x, y: x[1].y },
2331
+ {
2332
+ originalPath: x
2333
+ }
2334
+ ));
2335
+ }
2336
+ }
2337
+ }
2338
+ g(ve, "insertEdges");
2339
+ var Ds = /* @__PURE__ */ g(function(e, t) {
2340
+ return t.db.getClasses();
2341
+ }, "getClasses"), Ns = /* @__PURE__ */ g(async function(e, t, a, i) {
2342
+ const { securityLevel: l, block: s } = it(), r = i.db;
2343
+ let n;
2344
+ l === "sandbox" && (n = R("#i" + t));
2345
+ const o = l === "sandbox" ? R(n.nodes()[0].contentDocument.body) : R("body"), u = l === "sandbox" ? o.select(`[id="${t}"]`) : R(`[id="${t}"]`);
2346
+ Pa(u, ["point", "circle", "cross"], i.type, t);
2347
+ const x = r.getBlocks(), b = r.getBlocksFlat(), m = r.getEdges(), S = u.insert("g").attr("class", "block");
2348
+ await Le(S, x, r);
2349
+ const k = he(r);
2350
+ if (await Se(S, x, r), await ve(S, m, b, r, t), k) {
2351
+ const E = k, N = Math.max(1, Math.round(0.125 * (E.width / E.height))), T = E.height + N + 10, D = E.width + 10, { useMaxWidth: y } = s;
2352
+ Ye(u, T, D, !!y), L.debug("Here Bounds", k, E), u.attr(
2353
+ "viewBox",
2354
+ `${E.x - 5} ${E.y - 5} ${E.width + 10} ${E.height + 10}`
2355
+ );
2356
+ }
2357
+ }, "draw"), Cs = {
2358
+ draw: Ns,
2359
+ getClasses: Ds
2360
+ }, zs = {
2361
+ parser: la,
2362
+ db: ka,
2363
+ renderer: Cs,
2364
+ styles: Da
2365
+ };
2366
+ export {
2367
+ zs as diagram
2368
+ };