@elmethis/core 1.0.0-alpha.144 → 1.0.0-alpha.146

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 (340) hide show
  1. package/dist/{Bash-GSL9ChkX.js → Bash-Dgvf3lDU.js} +1 -1
  2. package/dist/{Css-BpD2FnmH.js → Css-BDTor6my.js} +1 -1
  3. package/dist/ElmShikiHighlighter-B6syB4ax.js +44 -0
  4. package/dist/{Rust-B3cMc4WT.js → Rust-BwuxPQOA.js} +1 -1
  5. package/dist/elmethis.js +11 -11
  6. package/dist/index-BFwE0btN.js +3523 -0
  7. package/package.json +12 -14
  8. package/dist/ElmShikiHighlighter-Baaxh5qO.js +0 -7531
  9. package/dist/_basePickBy-BgsikUza.js +0 -152
  10. package/dist/_baseUniq-Dk_-eSxG.js +0 -583
  11. package/dist/abap-BPxeDPn4.js +0 -6
  12. package/dist/actionscript-3-Cjb604Dt.js +0 -6
  13. package/dist/ada-BSgRrxrM.js +0 -6
  14. package/dist/andromeeda-uXNdzNpk.js +0 -4
  15. package/dist/angular-html-Zg5oS4-1.js +0 -32
  16. package/dist/angular-ts-NgJ-y-q8.js +0 -21
  17. package/dist/apache-Cyj7Ib-S.js +0 -6
  18. package/dist/apex-DAAiMqi-.js +0 -6
  19. package/dist/apl-DxZdCuNa.js +0 -16
  20. package/dist/applescript-CroEtIVQ.js +0 -6
  21. package/dist/ara-9AczF2vY.js +0 -6
  22. package/dist/arc-Tg-eaHbR.js +0 -83
  23. package/dist/architecture-4AB2E3PP-Chrq-63T.js +0 -5
  24. package/dist/architectureDiagram-IEHRJDOE-MAVRVvv2.js +0 -4633
  25. package/dist/asciidoc-raFNDrGb.js +0 -6
  26. package/dist/asm-C8ld_M07.js +0 -6
  27. package/dist/astro-DVLPOVeH.js +0 -16
  28. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  29. package/dist/awk-gc4Y_RTq.js +0 -6
  30. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  31. package/dist/ballerina-CML1q4Hw.js +0 -6
  32. package/dist/bat-BVW1L4ug.js +0 -6
  33. package/dist/beancount-DYEC72C_.js +0 -6
  34. package/dist/berry-VTah6p7n.js +0 -6
  35. package/dist/bibtex-Bqt_3AVI.js +0 -6
  36. package/dist/bicep-DGk9_2l4.js +0 -6
  37. package/dist/blade-kJIUE9Xv.js +0 -20
  38. package/dist/blockDiagram-JOT3LUYC-CKkIgCS_.js +0 -2247
  39. package/dist/bsl-tt9CYf2I.js +0 -8
  40. package/dist/c-Cb-M0LQR.js +0 -6
  41. package/dist/c4Diagram-VJAJSXHY-C5FrJ1VU.js +0 -1581
  42. package/dist/cadence-Di4VMBdJ.js +0 -6
  43. package/dist/cairo-CNbjbPRN.js +0 -8
  44. package/dist/catppuccin-frappe-MQ6irQtC.js +0 -4
  45. package/dist/catppuccin-latte-UMitw0Sv.js +0 -4
  46. package/dist/catppuccin-macchiato-CpTwm6bY.js +0 -4
  47. package/dist/catppuccin-mocha-DAcVHoH1.js +0 -4
  48. package/dist/channel-VCxTf7py.js +0 -5
  49. package/dist/chunk-4BMEZGHF-khzbsag8.js +0 -9
  50. package/dist/chunk-A2AXSNBT-DUPy88kj.js +0 -1372
  51. package/dist/chunk-AEK57VVT-Bs1FXI6I.js +0 -1415
  52. package/dist/chunk-D6G4REZN-DdXUdxVu.js +0 -64
  53. package/dist/chunk-RZ5BOZE2-CizJplIT.js +0 -24
  54. package/dist/chunk-XZIHB7SX-CSXkzCLO.js +0 -15
  55. package/dist/clarity-WOA8trQj.js +0 -6
  56. package/dist/classDiagram-GIVACNV2-C5HKbXc2.js +0 -16
  57. package/dist/classDiagram-v2-COTLJTTW-C5HKbXc2.js +0 -16
  58. package/dist/clojure-r3NcJ8yt.js +0 -6
  59. package/dist/clone-BJDmXnNd.js +0 -8
  60. package/dist/cmake-CQmEhYbr.js +0 -6
  61. package/dist/cobol-DpscMYyB.js +0 -10
  62. package/dist/codeowners-Bt9yU6NX.js +0 -6
  63. package/dist/codeql-2Dcm6WNF.js +0 -6
  64. package/dist/coffee-cT6mLyjo.js +0 -8
  65. package/dist/common-lisp-DuX5KqId.js +0 -6
  66. package/dist/coq-DboLktjX.js +0 -6
  67. package/dist/cpp-Dfuj7FgN.js +0 -18
  68. package/dist/crystal-Cu359yzW.js +0 -18
  69. package/dist/csharp-xQvxkZxj.js +0 -6
  70. package/dist/css-BnL1064W.js +0 -6
  71. package/dist/csv-CmYOceLb.js +0 -6
  72. package/dist/cue-ByErcpN2.js +0 -6
  73. package/dist/cypher-DEVyrV5b.js +0 -6
  74. package/dist/cytoscape.esm-aRg21b6u.js +0 -18120
  75. package/dist/d-CBVqdj3C.js +0 -6
  76. package/dist/dagre-OKDRZEBW-L_CxMNQI.js +0 -447
  77. package/dist/dark-plus-pUHDTVV0.js +0 -4
  78. package/dist/dart-u2fD-sKr.js +0 -6
  79. package/dist/dax-Crz9Wv4y.js +0 -6
  80. package/dist/desktop-DNXSD5qJ.js +0 -6
  81. package/dist/diagram-SSKATNLV-BXZpJ9de.js +0 -221
  82. package/dist/diagram-VNBRO52H-C3xxpF72.js +0 -126
  83. package/dist/diff-DOdUfPSR.js +0 -6
  84. package/dist/docker-CsHqm9tx.js +0 -6
  85. package/dist/dotenv-BYL4tpZA.js +0 -6
  86. package/dist/dracula-BtZx2Kac.js +0 -4
  87. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  88. package/dist/dream-maker-kevRUHRs.js +0 -6
  89. package/dist/edge-D-R-hhaT.js +0 -12
  90. package/dist/elixir-DuneT2DZ.js +0 -8
  91. package/dist/elm-DdPFQYmH.js +0 -8
  92. package/dist/emacs-lisp-Bwasiep6.js +0 -6
  93. package/dist/erDiagram-Q7BY3M3F-CbORCNzI.js +0 -841
  94. package/dist/erb-BDkUfiWc.js +0 -10
  95. package/dist/erlang-CxpbZUOc.js +0 -6
  96. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  97. package/dist/everforest-light-BbXl82Em.js +0 -4
  98. package/dist/fennel-B1x5pKr1.js +0 -6
  99. package/dist/fish-BjbXctXH.js +0 -6
  100. package/dist/flowDiagram-4HSFHLVR-B-PliSWy.js +0 -1622
  101. package/dist/fluent-DCuHrNR-.js +0 -6
  102. package/dist/fortran-fixed-form-muAGtm2V.js +0 -8
  103. package/dist/fortran-free-form-Db8k5H7x.js +0 -6
  104. package/dist/fsharp-D3TfYvtR.js +0 -8
  105. package/dist/ganttDiagram-APWFNJXF-C97Ji2O3.js +0 -2493
  106. package/dist/gdresource-C22851qr.js +0 -10
  107. package/dist/gdscript-C-C99PjI.js +0 -6
  108. package/dist/gdshader-0TihrSQl.js +0 -6
  109. package/dist/genie-MtKmcmPo.js +0 -6
  110. package/dist/gherkin-AzJBtK0J.js +0 -6
  111. package/dist/git-commit-Cdscfa4x.js +0 -8
  112. package/dist/git-rebase-BkertWzk.js +0 -8
  113. package/dist/gitGraph-O2Q2CXLX-BpDZwxcF.js +0 -5
  114. package/dist/gitGraphDiagram-7IBYFJ6S-CY1uhPkp.js +0 -712
  115. package/dist/github-dark-DenFmJkN.js +0 -4
  116. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  117. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  118. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  119. package/dist/github-light-JYsPkUQd.js +0 -4
  120. package/dist/github-light-default-D99KPAby.js +0 -4
  121. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  122. package/dist/gleam-BoJB89vF.js +0 -6
  123. package/dist/glimmer-js-DEzcmBLn.js +0 -14
  124. package/dist/glimmer-ts-CfoDm2Ms.js +0 -14
  125. package/dist/glsl-BcGeWDoy.js +0 -8
  126. package/dist/gnuplot-DgGnPAp8.js +0 -6
  127. package/dist/go-Cw0OOp5U.js +0 -6
  128. package/dist/graph-CmCA4eiR.js +0 -247
  129. package/dist/graphql-BA9S3A0F.js +0 -14
  130. package/dist/groovy-45PuQEhl.js +0 -6
  131. package/dist/gruvbox-dark-hard-BDGmrmYl.js +0 -4
  132. package/dist/gruvbox-dark-medium-D7OrvcL5.js +0 -4
  133. package/dist/gruvbox-dark-soft-D_75PUdg.js +0 -4
  134. package/dist/gruvbox-light-hard-DhQt1gbs.js +0 -4
  135. package/dist/gruvbox-light-medium-DNXV_Sw8.js +0 -4
  136. package/dist/gruvbox-light-soft-C7ZspGxH.js +0 -4
  137. package/dist/hack-B5c1rmdK.js +0 -10
  138. package/dist/haml-CknjlTyn.js +0 -10
  139. package/dist/handlebars-DxZCQ1Ls.js +0 -14
  140. package/dist/haskell-ClRE648j.js +0 -6
  141. package/dist/haxe-CClgwBXY.js +0 -6
  142. package/dist/hcl-JJeBEFYE.js +0 -6
  143. package/dist/hjson-BollGKL_.js +0 -6
  144. package/dist/hlsl-b3kI2reZ.js +0 -6
  145. package/dist/houston-BDYrDoDW.js +0 -4
  146. package/dist/html-Iy9EJBkL.js +0 -10
  147. package/dist/html-derivative-BfM_d1x5.js +0 -8
  148. package/dist/http-Q-2xEgRf.js +0 -14
  149. package/dist/hxml-C2bnoXd-.js +0 -8
  150. package/dist/hy-S8dYOqS_.js +0 -6
  151. package/dist/imba-DzSSVziz.js +0 -6
  152. package/dist/index-gMownAXd.js +0 -17481
  153. package/dist/info-4N47QTOZ-DFx4WjNq.js +0 -5
  154. package/dist/infoDiagram-PH2N3AL5-c_j2Yoju.js +0 -22
  155. package/dist/ini-Cw62c0sR.js +0 -6
  156. package/dist/init-DjUOC4st.js +0 -16
  157. package/dist/java-DNw9zkk2.js +0 -6
  158. package/dist/javascript-CXHlxgtu.js +0 -6
  159. package/dist/jinja-D3ov3d_Q.js +0 -11
  160. package/dist/jison-bKZ_ygkY.js +0 -8
  161. package/dist/journeyDiagram-U35MCT3I-BcMl9Dil.js +0 -809
  162. package/dist/json-D4cXEhM0.js +0 -6
  163. package/dist/json5-QDX9y-Y9.js +0 -6
  164. package/dist/jsonc-Bph7GQf8.js +0 -6
  165. package/dist/jsonl-CCrMgdQc.js +0 -6
  166. package/dist/jsonnet-SAcLllmN.js +0 -6
  167. package/dist/jssm-f8vsTkbr.js +0 -6
  168. package/dist/jsx-BYrS51r7.js +0 -6
  169. package/dist/julia-k0_CCOLn.js +0 -16
  170. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  171. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  172. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  173. package/dist/kanban-definition-NDS4AKOZ-B0Axw2G0.js +0 -719
  174. package/dist/kotlin-DZs3CUXT.js +0 -6
  175. package/dist/kusto-gqgW0Ct6.js +0 -6
  176. package/dist/laserwave-6a00oqik.js +0 -4
  177. package/dist/latex-ixPYeODw.js +0 -8
  178. package/dist/layout-Ne9qKUD3.js +0 -1325
  179. package/dist/lean-DM2VgJqL.js +0 -6
  180. package/dist/less-I_XXVOZl.js +0 -6
  181. package/dist/light-plus-CZuVqSLX.js +0 -4
  182. package/dist/linear-Bqd9VQRQ.js +0 -423
  183. package/dist/liquid-DQYM4OUl.js +0 -14
  184. package/dist/llvm-D3Vjgx0u.js +0 -6
  185. package/dist/log-D-MzYv1Z.js +0 -6
  186. package/dist/logo-D1k-IeHX.js +0 -6
  187. package/dist/lua-DcPVWcJ7.js +0 -8
  188. package/dist/luau-B3dL2bb0.js +0 -6
  189. package/dist/make-CR9bkdqJ.js +0 -6
  190. package/dist/markdown-w3MmBOPg.js +0 -6
  191. package/dist/marko-Dou6ix2a.js +0 -14
  192. package/dist/material-theme-D6KBX41T.js +0 -4
  193. package/dist/material-theme-darker-CkRroheE.js +0 -4
  194. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  195. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  196. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  197. package/dist/matlab-Dj6qX5si.js +0 -6
  198. package/dist/mdc-Df47nGTR.js +0 -12
  199. package/dist/mdx-COYqLMfv.js +0 -6
  200. package/dist/mermaid-parser.core-DeS0KIh6.js +0 -12836
  201. package/dist/mermaid-qIAHIJes.js +0 -6
  202. package/dist/mermaid.core-DfC7KyAz.js +0 -15467
  203. package/dist/min-dark-C7ak0t6c.js +0 -4
  204. package/dist/min-light-CKFxVcPp.js +0 -4
  205. package/dist/mindmap-definition-ALO5MXBD-DL2ICtPT.js +0 -3220
  206. package/dist/mipsasm-BJbuoeDX.js +0 -6
  207. package/dist/mojo-BFkEE7I6.js +0 -6
  208. package/dist/monokai-C1KBYcO0.js +0 -4
  209. package/dist/move-DhZIVzw9.js +0 -6
  210. package/dist/narrat-Cru3p5ML.js +0 -6
  211. package/dist/nextflow-JJGGygxI.js +0 -6
  212. package/dist/nginx-Chu4HPUZ.js +0 -8
  213. package/dist/night-owl-Bm2rzalh.js +0 -4
  214. package/dist/nim-m3ClKyoA.js +0 -20
  215. package/dist/nix-DeKhqLCs.js +0 -6
  216. package/dist/nord-CC5OiUXg.js +0 -4
  217. package/dist/nushell-vZ0whCpp.js +0 -6
  218. package/dist/objective-c-DLUrAoO7.js +0 -6
  219. package/dist/objective-cpp-BR9pz3Y7.js +0 -6
  220. package/dist/ocaml-JmaGD6hS.js +0 -6
  221. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  222. package/dist/one-light-D9sNaUtq.js +0 -4
  223. package/dist/ordinal-DfAQgscy.js +0 -61
  224. package/dist/packet-KVYON367-CWypICep.js +0 -5
  225. package/dist/pascal-NVmycfDo.js +0 -6
  226. package/dist/perl-Dvb6TR9K.js +0 -16
  227. package/dist/php-CJHnp_ft.js +0 -18
  228. package/dist/pie-R6RNRRYF-BujB7-Mv.js +0 -5
  229. package/dist/pieDiagram-IB7DONF6-DYgBzZTK.js +0 -161
  230. package/dist/plastic-CSTz3KZp.js +0 -4
  231. package/dist/plsql-DMWd0imC.js +0 -6
  232. package/dist/po-GS6uwG3N.js +0 -6
  233. package/dist/poimandres-C-VADXHD.js +0 -4
  234. package/dist/polar-kLOnm3TU.js +0 -6
  235. package/dist/postcss-BHhGrjb8.js +0 -6
  236. package/dist/powerquery-CMfeLaGU.js +0 -6
  237. package/dist/powershell-D1mvJxDs.js +0 -6
  238. package/dist/prisma-pUoUFT3i.js +0 -6
  239. package/dist/prolog-DY7WzwMi.js +0 -6
  240. package/dist/proto-CNCp3VWu.js +0 -6
  241. package/dist/pug-CUZjrycK.js +0 -12
  242. package/dist/puppet-B0mgPBqt.js +0 -6
  243. package/dist/purescript-Go548NjJ.js +0 -6
  244. package/dist/python-x6NdgKMy.js +0 -6
  245. package/dist/qml-BZvDVi14.js +0 -8
  246. package/dist/qmldir-BInDYbpo.js +0 -6
  247. package/dist/qss-8QkBlVEn.js +0 -6
  248. package/dist/quadrantDiagram-7GDLP6J5-BvqfQGNm.js +0 -1024
  249. package/dist/r-HSnR3oil.js +0 -6
  250. package/dist/racket-N6wCNCGC.js +0 -6
  251. package/dist/radar-MK3ICKWK-Dy6otnAI.js +0 -5
  252. package/dist/raku-DIMO1_4D.js +0 -6
  253. package/dist/razor-B0naKaWH.js +0 -10
  254. package/dist/red-7y8PH7HH.js +0 -4
  255. package/dist/reg-6UpU0EA6.js +0 -6
  256. package/dist/regexp-DHtjPxOp.js +0 -6
  257. package/dist/rel-DBIoUiKW.js +0 -6
  258. package/dist/requirementDiagram-KVF5MWMF-CMU7cgmO.js +0 -851
  259. package/dist/riscv-DpWk9ieM.js +0 -6
  260. package/dist/rose-pine-4uTOzEpE.js +0 -4
  261. package/dist/rose-pine-dawn-GMd81k-m.js +0 -4
  262. package/dist/rose-pine-moon-CIFp_3PJ.js +0 -4
  263. package/dist/rst-B64R6T0G.js +0 -22
  264. package/dist/ruby-DfrpdncG.js +0 -30
  265. package/dist/rust-B-KPd2nT.js +0 -6
  266. package/dist/sankeyDiagram-QLVOVGJD-C8OUl-0X.js +0 -808
  267. package/dist/sas-CJQBty5v.js +0 -8
  268. package/dist/sass-Zos2Blmo.js +0 -6
  269. package/dist/scala-7cAMYIqn.js +0 -6
  270. package/dist/scheme-BQZQETGI.js +0 -6
  271. package/dist/scss-SeF7XgZE.js +0 -8
  272. package/dist/sdbl-67k1U2sQ.js +0 -6
  273. package/dist/sequenceDiagram-X6HHIX6F-DqaJik6n.js +0 -2281
  274. package/dist/shaderlab-D-UIeqfT.js +0 -8
  275. package/dist/shellscript-DmhSIIKI.js +0 -6
  276. package/dist/shellsession-DJoY56qV.js +0 -8
  277. package/dist/slack-dark-i7wN4OET.js +0 -4
  278. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  279. package/dist/smalltalk-WltKgyq1.js +0 -6
  280. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  281. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  282. package/dist/solarized-light-BheCkDPT.js +0 -4
  283. package/dist/solidity-C04s0Yy3.js +0 -6
  284. package/dist/soy-BLRDPjcE.js +0 -8
  285. package/dist/sparql-DTCaWUmB.js +0 -8
  286. package/dist/splunk-SGh_QiTm.js +0 -6
  287. package/dist/sql-CsvhJWkt.js +0 -6
  288. package/dist/ssh-config-D4I637-k.js +0 -6
  289. package/dist/stata-CoSdWLbd.js +0 -8
  290. package/dist/stateDiagram-DGXRK772-CqXODQKI.js +0 -270
  291. package/dist/stateDiagram-v2-YXO3MK2T-C4WKG1Q0.js +0 -16
  292. package/dist/stylus-C0YS3cII.js +0 -6
  293. package/dist/svelte-D5kfh286.js +0 -14
  294. package/dist/swift-DvTgPjC_.js +0 -6
  295. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  296. package/dist/system-verilog-NDUJ-OOt.js +0 -6
  297. package/dist/systemd-WbxZvB8q.js +0 -6
  298. package/dist/talonscript-CL368eRB.js +0 -6
  299. package/dist/tasl-Dz-WwaLH.js +0 -6
  300. package/dist/tcl-DlZIgGJq.js +0 -6
  301. package/dist/templ-BeQ_faiG.js +0 -12
  302. package/dist/terraform-BlQVOgpk.js +0 -6
  303. package/dist/tex-D5wZQANC.js +0 -8
  304. package/dist/timeline-definition-BDJGKUSR-BF7uDvJA.js +0 -804
  305. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  306. package/dist/toml-DMRYbshZ.js +0 -6
  307. package/dist/ts-tags-BhMM8FHa.js +0 -41
  308. package/dist/tsv-BtvSkaG0.js +0 -6
  309. package/dist/tsx-D0IYuDPS.js +0 -6
  310. package/dist/turtle-p-VV8DEc.js +0 -6
  311. package/dist/twig-B7P5Ovvl.js +0 -18
  312. package/dist/typescript-DKfvlBCw.js +0 -6
  313. package/dist/typespec-CTme0-JL.js +0 -6
  314. package/dist/typst-Dn4vyooU.js +0 -6
  315. package/dist/v-D7ebitkb.js +0 -6
  316. package/dist/vala-TRtLMDHC.js +0 -6
  317. package/dist/vb-B47FrOmA.js +0 -6
  318. package/dist/verilog-B2TLsC4I.js +0 -6
  319. package/dist/vesper-BckBta1U.js +0 -4
  320. package/dist/vhdl-CU5AEtCN.js +0 -6
  321. package/dist/viml-D-fUhqVn.js +0 -6
  322. package/dist/vitesse-black-BoGvW84i.js +0 -4
  323. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  324. package/dist/vitesse-light-CcmG315c.js +0 -4
  325. package/dist/vue-CdwmeZFh.js +0 -31
  326. package/dist/vue-html-C-PRGoQQ.js +0 -10
  327. package/dist/vyper-C03y8CZF.js +0 -6
  328. package/dist/wasm-Bq8UuFo1.js +0 -6
  329. package/dist/wasm-DQxwEHae.js +0 -7
  330. package/dist/wenyan-DZPWEYbu.js +0 -6
  331. package/dist/wgsl-De1GPYf9.js +0 -6
  332. package/dist/wikitext-C-THcCj2.js +0 -6
  333. package/dist/wit-BanP67gl.js +0 -6
  334. package/dist/wolfram-CUT_U39K.js +0 -6
  335. package/dist/xml-jRL-qgj-.js +0 -8
  336. package/dist/xsl-CZWICAVO.js +0 -8
  337. package/dist/xychartDiagram-VJFVF3MP-3c2xni7N.js +0 -1304
  338. package/dist/yaml-DcQhbMrL.js +0 -6
  339. package/dist/zenscript-8JCzLCTe.js +0 -6
  340. package/dist/zig-DhdgDxkm.js +0 -6
@@ -1,804 +0,0 @@
1
- import { _ as s, c as xt, l as T, d as q, ab as kt, ac as vt, ad as _t, ae as bt, D as wt, af as St, z as Et } from "./mermaid.core-DfC7KyAz.js";
2
- import { d as nt } from "./arc-Tg-eaHbR.js";
3
- var X = function() {
4
- var n = /* @__PURE__ */ s(function(f, i, a, d) {
5
- for (a = a || {}, d = f.length; d--; a[f[d]] = i) ;
6
- return a;
7
- }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], r = [1, 11], h = [1, 12], c = [1, 13], g = [1, 16], m = [1, 17], p = {
8
- trace: /* @__PURE__ */ s(function() {
9
- }, "trace"),
10
- yy: {},
11
- symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
12
- terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
13
- productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
14
- performAction: /* @__PURE__ */ s(function(i, a, d, u, y, o, S) {
15
- var k = o.length - 1;
16
- switch (y) {
17
- case 1:
18
- return o[k - 1];
19
- case 2:
20
- this.$ = [];
21
- break;
22
- case 3:
23
- o[k - 1].push(o[k]), this.$ = o[k - 1];
24
- break;
25
- case 4:
26
- case 5:
27
- this.$ = o[k];
28
- break;
29
- case 6:
30
- case 7:
31
- this.$ = [];
32
- break;
33
- case 8:
34
- u.getCommonDb().setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
35
- break;
36
- case 9:
37
- this.$ = o[k].trim(), u.getCommonDb().setAccTitle(this.$);
38
- break;
39
- case 10:
40
- case 11:
41
- this.$ = o[k].trim(), u.getCommonDb().setAccDescription(this.$);
42
- break;
43
- case 12:
44
- u.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
45
- break;
46
- case 15:
47
- u.addTask(o[k], 0, ""), this.$ = o[k];
48
- break;
49
- case 16:
50
- u.addEvent(o[k].substr(2)), this.$ = o[k];
51
- break;
52
- }
53
- }, "anonymous"),
54
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: r, 16: h, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: r, 16: h, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
55
- defaultActions: {},
56
- parseError: /* @__PURE__ */ s(function(i, a) {
57
- if (a.recoverable)
58
- this.trace(i);
59
- else {
60
- var d = new Error(i);
61
- throw d.hash = a, d;
62
- }
63
- }, "parseError"),
64
- parse: /* @__PURE__ */ s(function(i) {
65
- var a = this, d = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, P = 0, B = 2, J = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), E = { yy: {} };
66
- for (var b in this.yy)
67
- Object.prototype.hasOwnProperty.call(this.yy, b) && (E.yy[b] = this.yy[b]);
68
- v.setInput(i, E.yy), E.yy.lexer = v, E.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
69
- var L = v.yylloc;
70
- o.push(L);
71
- var A = v.options && v.options.ranges;
72
- typeof E.yy.parseError == "function" ? this.parseError = E.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
73
- function R(I) {
74
- d.length = d.length - 2 * I, y.length = y.length - I, o.length = o.length - I;
75
- }
76
- s(R, "popStack");
77
- function z() {
78
- var I;
79
- return I = u.pop() || v.lex() || J, typeof I != "number" && (I instanceof Array && (u = I, I = u.pop()), I = a.symbols_[I] || I), I;
80
- }
81
- s(z, "lex");
82
- for (var w, C, N, K, F = {}, j, $, et, G; ; ) {
83
- if (C = d[d.length - 1], this.defaultActions[C] ? N = this.defaultActions[C] : ((w === null || typeof w > "u") && (w = z()), N = S[C] && S[C][w]), typeof N > "u" || !N.length || !N[0]) {
84
- var Q = "";
85
- G = [];
86
- for (j in S[C])
87
- this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
88
- v.showPosition ? Q = "Parse error on line " + (M + 1) + `:
89
- ` + v.showPosition() + `
90
- Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + (M + 1) + ": Unexpected " + (w == J ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Q, {
91
- text: v.match,
92
- token: this.terminals_[w] || w,
93
- line: v.yylineno,
94
- loc: L,
95
- expected: G
96
- });
97
- }
98
- if (N[0] instanceof Array && N.length > 1)
99
- throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " + w);
100
- switch (N[0]) {
101
- case 1:
102
- d.push(w), y.push(v.yytext), o.push(v.yylloc), d.push(N[1]), w = null, P = v.yyleng, k = v.yytext, M = v.yylineno, L = v.yylloc;
103
- break;
104
- case 2:
105
- if ($ = this.productions_[N[1]][1], F.$ = y[y.length - $], F._$ = {
106
- first_line: o[o.length - ($ || 1)].first_line,
107
- last_line: o[o.length - 1].last_line,
108
- first_column: o[o.length - ($ || 1)].first_column,
109
- last_column: o[o.length - 1].last_column
110
- }, A && (F._$.range = [
111
- o[o.length - ($ || 1)].range[0],
112
- o[o.length - 1].range[1]
113
- ]), K = this.performAction.apply(F, [
114
- k,
115
- P,
116
- M,
117
- E.yy,
118
- N[1],
119
- y,
120
- o
121
- ].concat(O)), typeof K < "u")
122
- return K;
123
- $ && (d = d.slice(0, -1 * $ * 2), y = y.slice(0, -1 * $), o = o.slice(0, -1 * $)), d.push(this.productions_[N[1]][0]), y.push(F.$), o.push(F._$), et = S[d[d.length - 2]][d[d.length - 1]], d.push(et);
124
- break;
125
- case 3:
126
- return !0;
127
- }
128
- }
129
- return !0;
130
- }, "parse")
131
- }, x = /* @__PURE__ */ function() {
132
- var f = {
133
- EOF: 1,
134
- parseError: /* @__PURE__ */ s(function(a, d) {
135
- if (this.yy.parser)
136
- this.yy.parser.parseError(a, d);
137
- else
138
- throw new Error(a);
139
- }, "parseError"),
140
- // resets the lexer, sets new input
141
- setInput: /* @__PURE__ */ s(function(i, a) {
142
- return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
143
- first_line: 1,
144
- first_column: 0,
145
- last_line: 1,
146
- last_column: 0
147
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
148
- }, "setInput"),
149
- // consumes and returns one char from the input
150
- input: /* @__PURE__ */ s(function() {
151
- var i = this._input[0];
152
- this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
153
- var a = i.match(/(?:\r\n?|\n).*/g);
154
- return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
155
- }, "input"),
156
- // unshifts one char (or a string) into the input
157
- unput: /* @__PURE__ */ s(function(i) {
158
- var a = i.length, d = i.split(/(?:\r\n?|\n)/g);
159
- this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
160
- var u = this.match.split(/(?:\r\n?|\n)/g);
161
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.length - 1);
162
- var y = this.yylloc.range;
163
- return this.yylloc = {
164
- first_line: this.yylloc.first_line,
165
- last_line: this.yylineno + 1,
166
- first_column: this.yylloc.first_column,
167
- last_column: d ? (d.length === u.length ? this.yylloc.first_column : 0) + u[u.length - d.length].length - d[0].length : this.yylloc.first_column - a
168
- }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
169
- }, "unput"),
170
- // When called from action, caches matched text and appends it on next action
171
- more: /* @__PURE__ */ s(function() {
172
- return this._more = !0, this;
173
- }, "more"),
174
- // 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.
175
- reject: /* @__PURE__ */ s(function() {
176
- if (this.options.backtrack_lexer)
177
- this._backtrack = !0;
178
- else
179
- 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).
180
- ` + this.showPosition(), {
181
- text: "",
182
- token: null,
183
- line: this.yylineno
184
- });
185
- return this;
186
- }, "reject"),
187
- // retain first n characters of the match
188
- less: /* @__PURE__ */ s(function(i) {
189
- this.unput(this.match.slice(i));
190
- }, "less"),
191
- // displays already matched input, i.e. for error messages
192
- pastInput: /* @__PURE__ */ s(function() {
193
- var i = this.matched.substr(0, this.matched.length - this.match.length);
194
- return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
195
- }, "pastInput"),
196
- // displays upcoming input, i.e. for error messages
197
- upcomingInput: /* @__PURE__ */ s(function() {
198
- var i = this.match;
199
- return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
200
- }, "upcomingInput"),
201
- // displays the character position where the lexing error occurred, i.e. for error messages
202
- showPosition: /* @__PURE__ */ s(function() {
203
- var i = this.pastInput(), a = new Array(i.length + 1).join("-");
204
- return i + this.upcomingInput() + `
205
- ` + a + "^";
206
- }, "showPosition"),
207
- // test the lexed token: return FALSE when not a match, otherwise return token
208
- test_match: /* @__PURE__ */ s(function(i, a) {
209
- var d, u, y;
210
- if (this.options.backtrack_lexer && (y = {
211
- yylineno: this.yylineno,
212
- yylloc: {
213
- first_line: this.yylloc.first_line,
214
- last_line: this.last_line,
215
- first_column: this.yylloc.first_column,
216
- last_column: this.yylloc.last_column
217
- },
218
- yytext: this.yytext,
219
- match: this.match,
220
- matches: this.matches,
221
- matched: this.matched,
222
- yyleng: this.yyleng,
223
- offset: this.offset,
224
- _more: this._more,
225
- _input: this._input,
226
- yy: this.yy,
227
- conditionStack: this.conditionStack.slice(0),
228
- done: this.done
229
- }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), u = i[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
230
- first_line: this.yylloc.last_line,
231
- last_line: this.yylineno + 1,
232
- first_column: this.yylloc.last_column,
233
- last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
234
- }, this.yytext += i[0], this.match += i[0], this.matches = i, 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(i[0].length), this.matched += i[0], d = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d)
235
- return d;
236
- if (this._backtrack) {
237
- for (var o in y)
238
- this[o] = y[o];
239
- return !1;
240
- }
241
- return !1;
242
- }, "test_match"),
243
- // return next match in input
244
- next: /* @__PURE__ */ s(function() {
245
- if (this.done)
246
- return this.EOF;
247
- this._input || (this.done = !0);
248
- var i, a, d, u;
249
- this._more || (this.yytext = "", this.match = "");
250
- for (var y = this._currentRules(), o = 0; o < y.length; o++)
251
- if (d = this._input.match(this.rules[y[o]]), d && (!a || d[0].length > a[0].length)) {
252
- if (a = d, u = o, this.options.backtrack_lexer) {
253
- if (i = this.test_match(d, y[o]), i !== !1)
254
- return i;
255
- if (this._backtrack) {
256
- a = !1;
257
- continue;
258
- } else
259
- return !1;
260
- } else if (!this.options.flex)
261
- break;
262
- }
263
- return a ? (i = this.test_match(a, y[u]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
264
- ` + this.showPosition(), {
265
- text: "",
266
- token: null,
267
- line: this.yylineno
268
- });
269
- }, "next"),
270
- // return next match that has a token
271
- lex: /* @__PURE__ */ s(function() {
272
- var a = this.next();
273
- return a || this.lex();
274
- }, "lex"),
275
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
276
- begin: /* @__PURE__ */ s(function(a) {
277
- this.conditionStack.push(a);
278
- }, "begin"),
279
- // pop the previously active lexer condition state off the condition stack
280
- popState: /* @__PURE__ */ s(function() {
281
- var a = this.conditionStack.length - 1;
282
- return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
283
- }, "popState"),
284
- // produce the lexer rule set which is active for the currently active lexer condition state
285
- _currentRules: /* @__PURE__ */ s(function() {
286
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
287
- }, "_currentRules"),
288
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
289
- topState: /* @__PURE__ */ s(function(a) {
290
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
291
- }, "topState"),
292
- // alias for begin(condition)
293
- pushState: /* @__PURE__ */ s(function(a) {
294
- this.begin(a);
295
- }, "pushState"),
296
- // return the number of states currently on the stack
297
- stateStackSize: /* @__PURE__ */ s(function() {
298
- return this.conditionStack.length;
299
- }, "stateStackSize"),
300
- options: { "case-insensitive": !0 },
301
- performAction: /* @__PURE__ */ s(function(a, d, u, y) {
302
- switch (u) {
303
- case 0:
304
- break;
305
- case 1:
306
- break;
307
- case 2:
308
- return 10;
309
- case 3:
310
- break;
311
- case 4:
312
- break;
313
- case 5:
314
- return 4;
315
- case 6:
316
- return 11;
317
- case 7:
318
- return this.begin("acc_title"), 12;
319
- case 8:
320
- return this.popState(), "acc_title_value";
321
- case 9:
322
- return this.begin("acc_descr"), 14;
323
- case 10:
324
- return this.popState(), "acc_descr_value";
325
- case 11:
326
- this.begin("acc_descr_multiline");
327
- break;
328
- case 12:
329
- this.popState();
330
- break;
331
- case 13:
332
- return "acc_descr_multiline_value";
333
- case 14:
334
- return 17;
335
- case 15:
336
- return 21;
337
- case 16:
338
- return 20;
339
- case 17:
340
- return 6;
341
- case 18:
342
- return "INVALID";
343
- }
344
- }, "anonymous"),
345
- rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s[^:\n]+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
346
- conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: !0 } }
347
- };
348
- return f;
349
- }();
350
- p.lexer = x;
351
- function _() {
352
- this.yy = {};
353
- }
354
- return s(_, "Parser"), _.prototype = p, p.Parser = _, new _();
355
- }();
356
- X.parser = X;
357
- var Tt = X, at = {};
358
- wt(at, {
359
- addEvent: () => yt,
360
- addSection: () => ht,
361
- addTask: () => pt,
362
- addTaskOrg: () => gt,
363
- clear: () => ct,
364
- default: () => It,
365
- getCommonDb: () => ot,
366
- getSections: () => dt,
367
- getTasks: () => ut
368
- });
369
- var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
370
- Y.length = 0, U.length = 0, V = "", W.length = 0, Et();
371
- }, "clear"), ht = /* @__PURE__ */ s(function(n) {
372
- V = n, Y.push(n);
373
- }, "addSection"), dt = /* @__PURE__ */ s(function() {
374
- return Y;
375
- }, "getSections"), ut = /* @__PURE__ */ s(function() {
376
- let n = rt();
377
- const t = 100;
378
- let e = 0;
379
- for (; !n && e < t; )
380
- n = rt(), e++;
381
- return U.push(...W), U;
382
- }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
383
- const l = {
384
- id: lt++,
385
- section: V,
386
- type: V,
387
- task: n,
388
- score: t || 0,
389
- //if event is defined, then add it the events array
390
- events: e ? [e] : []
391
- };
392
- W.push(l);
393
- }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
394
- W.find((e) => e.id === lt - 1).events.push(n);
395
- }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
396
- const t = {
397
- section: V,
398
- type: V,
399
- description: n,
400
- task: n,
401
- classes: []
402
- };
403
- U.push(t);
404
- }, "addTaskOrg"), rt = /* @__PURE__ */ s(function() {
405
- const n = /* @__PURE__ */ s(function(e) {
406
- return W[e].processed;
407
- }, "compileTask");
408
- let t = !0;
409
- for (const [e, l] of W.entries())
410
- n(e), t = t && l.processed;
411
- return t;
412
- }, "compileTasks"), It = {
413
- clear: ct,
414
- getCommonDb: ot,
415
- addSection: ht,
416
- getSections: dt,
417
- getTasks: ut,
418
- addTask: pt,
419
- addTaskOrg: gt,
420
- addEvent: yt
421
- }, Nt = 12, Z = /* @__PURE__ */ s(function(n, t) {
422
- const e = n.append("rect");
423
- return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
424
- }, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
425
- const l = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = n.append("g");
426
- r.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
427
- function h(m) {
428
- const p = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
429
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
430
- }
431
- s(h, "smile");
432
- function c(m) {
433
- const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
434
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
435
- }
436
- s(c, "sad");
437
- function g(m) {
438
- m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
439
- }
440
- return s(g, "ambivalent"), t.score > 3 ? h(r) : t.score < 3 ? c(r) : g(r), l;
441
- }, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
442
- const e = n.append("circle");
443
- return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
444
- }, "drawCircle"), ft = /* @__PURE__ */ s(function(n, t) {
445
- const e = t.text.replace(/<br\s*\/?>/gi, " "), l = n.append("text");
446
- l.attr("x", t.x), l.attr("y", t.y), l.attr("class", "legend"), l.style("text-anchor", t.anchor), t.class !== void 0 && l.attr("class", t.class);
447
- const r = l.append("tspan");
448
- return r.attr("x", t.x + t.textMargin * 2), r.text(e), l;
449
- }, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
450
- function e(r, h, c, g, m) {
451
- return r + "," + h + " " + (r + c) + "," + h + " " + (r + c) + "," + (h + g - m) + " " + (r + c - m * 1.2) + "," + (h + g) + " " + r + "," + (h + g);
452
- }
453
- s(e, "genPoints");
454
- const l = n.append("polygon");
455
- l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
456
- }, "drawLabel"), Pt = /* @__PURE__ */ s(function(n, t, e) {
457
- const l = n.append("g"), r = D();
458
- r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = e.width, r.height = e.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, Z(l, r), mt(e)(
459
- t.text,
460
- l,
461
- r.x,
462
- r.y,
463
- r.width,
464
- r.height,
465
- { class: "journey-section section-type-" + t.num },
466
- e,
467
- t.colour
468
- );
469
- }, "drawSection"), it = -1, At = /* @__PURE__ */ s(function(n, t, e) {
470
- const l = t.x + e.width / 2, r = n.append("g");
471
- it++;
472
- const h = 300 + 5 * 30;
473
- r.append("line").attr("id", "task" + it).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", h).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(r, {
474
- cx: l,
475
- cy: 300 + (5 - t.score) * 30,
476
- score: t.score
477
- });
478
- const c = D();
479
- c.x = t.x, c.y = t.y, c.fill = t.fill, c.width = e.width, c.height = e.height, c.class = "task task-type-" + t.num, c.rx = 3, c.ry = 3, Z(r, c), mt(e)(
480
- t.task,
481
- r,
482
- c.x,
483
- c.y,
484
- c.width,
485
- c.height,
486
- { class: "task" },
487
- e,
488
- t.colour
489
- );
490
- }, "drawTask"), Ct = /* @__PURE__ */ s(function(n, t) {
491
- Z(n, {
492
- x: t.startx,
493
- y: t.starty,
494
- width: t.stopx - t.startx,
495
- height: t.stopy - t.starty,
496
- fill: t.fill,
497
- class: "rect"
498
- }).lower();
499
- }, "drawBackgroundRect"), Ht = /* @__PURE__ */ s(function() {
500
- return {
501
- x: 0,
502
- y: 0,
503
- fill: void 0,
504
- "text-anchor": "start",
505
- width: 100,
506
- height: 100,
507
- textMargin: 0,
508
- rx: 0,
509
- ry: 0
510
- };
511
- }, "getTextObj"), D = /* @__PURE__ */ s(function() {
512
- return {
513
- x: 0,
514
- y: 0,
515
- width: 100,
516
- anchor: "start",
517
- height: 100,
518
- rx: 0,
519
- ry: 0
520
- };
521
- }, "getNoteRect"), mt = /* @__PURE__ */ function() {
522
- function n(r, h, c, g, m, p, x, _) {
523
- const f = h.append("text").attr("x", c + m / 2).attr("y", g + p / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(r);
524
- l(f, x);
525
- }
526
- s(n, "byText");
527
- function t(r, h, c, g, m, p, x, _, f) {
528
- const { taskFontSize: i, taskFontFamily: a } = _, d = r.split(/<br\s*\/?>/gi);
529
- for (let u = 0; u < d.length; u++) {
530
- const y = u * i - i * (d.length - 1) / 2, o = h.append("text").attr("x", c + m / 2).attr("y", g).attr("fill", f).style("text-anchor", "middle").style("font-size", i).style("font-family", a);
531
- o.append("tspan").attr("x", c + m / 2).attr("dy", y).text(d[u]), o.attr("y", g + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, x);
532
- }
533
- }
534
- s(t, "byTspan");
535
- function e(r, h, c, g, m, p, x, _) {
536
- const f = h.append("switch"), a = f.append("foreignObject").attr("x", c).attr("y", g).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
537
- a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, f, c, g, m, p, x, _), l(a, x);
538
- }
539
- s(e, "byFo");
540
- function l(r, h) {
541
- for (const c in h)
542
- c in h && r.attr(c, h[c]);
543
- }
544
- return s(l, "_setTextAttrs"), function(r) {
545
- return r.textPlacement === "fo" ? e : r.textPlacement === "old" ? n : t;
546
- };
547
- }(), Rt = /* @__PURE__ */ s(function(n) {
548
- n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
549
- }, "initGraphics");
550
- function tt(n, t) {
551
- n.each(function() {
552
- var e = q(this), l = e.text().split(/(\s+|<br>)/).reverse(), r, h = [], c = 1.1, g = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", g).attr("dy", m + "em");
553
- for (let x = 0; x < l.length; x++)
554
- r = l[l.length - 1 - x], h.push(r), p.text(h.join(" ").trim()), (p.node().getComputedTextLength() > t || r === "<br>") && (h.pop(), p.text(h.join(" ").trim()), r === "<br>" ? h = [""] : h = [r], p = e.append("tspan").attr("x", 0).attr("y", g).attr("dy", c + "em").text(r));
555
- });
556
- }
557
- s(tt, "wrap");
558
- var zt = /* @__PURE__ */ s(function(n, t, e, l) {
559
- var _;
560
- const r = e % Nt - 1, h = n.append("g");
561
- t.section = r, h.attr(
562
- "class",
563
- (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + r)
564
- );
565
- const c = h.append("g"), g = h.append("g"), p = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), x = (_ = l.fontSize) != null && _.replace ? l.fontSize.replace("px", "") : l.fontSize;
566
- return t.height = p.height + x * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(c, t, r, l), t;
567
- }, "drawNode"), Ft = /* @__PURE__ */ s(function(n, t, e) {
568
- var g;
569
- const l = n.append("g"), h = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), c = (g = e.fontSize) != null && g.replace ? e.fontSize.replace("px", "") : e.fontSize;
570
- return l.remove(), h.height + c * 1.1 * 0.5 + t.padding;
571
- }, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
572
- n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
573
- "d",
574
- `M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
575
- ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
576
- }, "defaultBkg"), H = {
577
- drawRect: Z,
578
- drawCircle: Mt,
579
- drawSection: Pt,
580
- drawText: ft,
581
- drawLabel: $t,
582
- drawTask: At,
583
- drawBackgroundRect: Ct,
584
- getTextObj: Ht,
585
- getNoteRect: D,
586
- initGraphics: Rt,
587
- drawNode: zt,
588
- getVirtualNodeHeight: Ft
589
- }, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
590
- var O, v;
591
- const r = xt(), h = r.leftMargin ?? 50;
592
- T.debug("timeline", l.db);
593
- const c = r.securityLevel;
594
- let g;
595
- c === "sandbox" && (g = q("#i" + t));
596
- const p = (c === "sandbox" ? q(g.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
597
- p.append("g");
598
- const x = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
599
- T.debug("task", x), H.initGraphics(p);
600
- const f = l.db.getSections();
601
- T.debug("sections", f);
602
- let i = 0, a = 0, d = 0, u = 0, y = 50 + h, o = 50;
603
- u = 50;
604
- let S = 0, k = !0;
605
- f.forEach(function(E) {
606
- const b = {
607
- number: S,
608
- descr: E,
609
- section: S,
610
- width: 150,
611
- padding: 20,
612
- maxHeight: i
613
- }, L = H.getVirtualNodeHeight(p, b, r);
614
- T.debug("sectionHeight before draw", L), i = Math.max(i, L + 20);
615
- });
616
- let M = 0, P = 0;
617
- T.debug("tasks.length", x.length);
618
- for (const [E, b] of x.entries()) {
619
- const L = {
620
- number: E,
621
- descr: b,
622
- section: b.section,
623
- width: 150,
624
- padding: 20,
625
- maxHeight: a
626
- }, A = H.getVirtualNodeHeight(p, L, r);
627
- T.debug("taskHeight before draw", A), a = Math.max(a, A + 20), M = Math.max(M, b.events.length);
628
- let R = 0;
629
- for (const z of b.events) {
630
- const w = {
631
- descr: z,
632
- section: b.section,
633
- number: b.section,
634
- width: 150,
635
- padding: 20,
636
- maxHeight: 50
637
- };
638
- R += H.getVirtualNodeHeight(p, w, r);
639
- }
640
- P = Math.max(P, R);
641
- }
642
- T.debug("maxSectionHeight before draw", i), T.debug("maxTaskHeight before draw", a), f && f.length > 0 ? f.forEach((E) => {
643
- const b = x.filter((z) => z.section === E), L = {
644
- number: S,
645
- descr: E,
646
- section: S,
647
- width: 200 * Math.max(b.length, 1) - 50,
648
- padding: 20,
649
- maxHeight: i
650
- };
651
- T.debug("sectionNode", L);
652
- const A = p.append("g"), R = H.drawNode(A, L, S, r);
653
- T.debug("sectionNode output", R), A.attr("transform", `translate(${y}, ${u})`), o += i + 50, b.length > 0 && st(
654
- p,
655
- b,
656
- S,
657
- y,
658
- o,
659
- a,
660
- r,
661
- M,
662
- P,
663
- i,
664
- !1
665
- ), y += 200 * Math.max(b.length, 1), o = u, S++;
666
- }) : (k = !1, st(
667
- p,
668
- x,
669
- S,
670
- y,
671
- o,
672
- a,
673
- r,
674
- M,
675
- P,
676
- i,
677
- !0
678
- ));
679
- const B = p.node().getBBox();
680
- T.debug("bounds", B), _ && p.append("text").text(_).attr("x", B.width / 2 - h).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), d = k ? i + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", h).attr("y1", d).attr("x2", B.width + 3 * h).attr("y2", d).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), kt(
681
- void 0,
682
- p,
683
- ((O = r.timeline) == null ? void 0 : O.padding) ?? 50,
684
- ((v = r.timeline) == null ? void 0 : v.useMaxWidth) ?? !1
685
- );
686
- }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, r, h, c, g, m, p, x) {
687
- var _;
688
- for (const f of t) {
689
- const i = {
690
- descr: f.task,
691
- section: e,
692
- number: e,
693
- width: 150,
694
- padding: 20,
695
- maxHeight: h
696
- };
697
- T.debug("taskNode", i);
698
- const a = n.append("g").attr("class", "taskWrapper"), u = H.drawNode(a, i, e, c).height;
699
- if (T.debug("taskHeight after draw", u), a.attr("transform", `translate(${l}, ${r})`), h = Math.max(h, u), f.events) {
700
- const y = n.append("g").attr("class", "lineWrapper");
701
- let o = h;
702
- r += 100, o = o + Bt(n, f.events, e, l, r, c), r -= 100, y.append("line").attr("x1", l + 190 / 2).attr("y1", r + h).attr("x2", l + 190 / 2).attr(
703
- "y2",
704
- r + h + (x ? h : p) + m + 120
705
- ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
706
- }
707
- l = l + 200, x && !((_ = c.timeline) != null && _.disableMulticolor) && e++;
708
- }
709
- r = r - 10;
710
- }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, r, h) {
711
- let c = 0;
712
- const g = r;
713
- r = r + 100;
714
- for (const m of t) {
715
- const p = {
716
- descr: m,
717
- section: e,
718
- number: e,
719
- width: 150,
720
- padding: 20,
721
- maxHeight: 50
722
- };
723
- T.debug("eventNode", p);
724
- const x = n.append("g").attr("class", "eventWrapper"), f = H.drawNode(x, p, e, h).height;
725
- c = c + f, x.attr("transform", `translate(${l}, ${r})`), r = r + 10 + f;
726
- }
727
- return r = g, c;
728
- }, "drawEvents"), Ot = {
729
- setConf: /* @__PURE__ */ s(() => {
730
- }, "setConf"),
731
- draw: Wt
732
- }, jt = /* @__PURE__ */ s((n) => {
733
- let t = "";
734
- for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
735
- n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], vt(n["lineColor" + e]) ? n["lineColor" + e] = _t(n["lineColor" + e], 20) : n["lineColor" + e] = bt(n["lineColor" + e], 20);
736
- for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
737
- const l = "" + (17 - 3 * e);
738
- t += `
739
- .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
740
- fill: ${n["cScale" + e]};
741
- }
742
- .section-${e - 1} text {
743
- fill: ${n["cScaleLabel" + e]};
744
- }
745
- .node-icon-${e - 1} {
746
- font-size: 40px;
747
- color: ${n["cScaleLabel" + e]};
748
- }
749
- .section-edge-${e - 1}{
750
- stroke: ${n["cScale" + e]};
751
- }
752
- .edge-depth-${e - 1}{
753
- stroke-width: ${l};
754
- }
755
- .section-${e - 1} line {
756
- stroke: ${n["cScaleInv" + e]} ;
757
- stroke-width: 3;
758
- }
759
-
760
- .lineWrapper line{
761
- stroke: ${n["cScaleLabel" + e]} ;
762
- }
763
-
764
- .disabled, .disabled circle, .disabled text {
765
- fill: lightgray;
766
- }
767
- .disabled text {
768
- fill: #efefef;
769
- }
770
- `;
771
- }
772
- return t;
773
- }, "genSections"), Gt = /* @__PURE__ */ s((n) => `
774
- .edge {
775
- stroke-width: 3;
776
- }
777
- ${jt(n)}
778
- .section-root rect, .section-root path, .section-root circle {
779
- fill: ${n.git0};
780
- }
781
- .section-root text {
782
- fill: ${n.gitBranchLabel0};
783
- }
784
- .icon-container {
785
- height:100%;
786
- display: flex;
787
- justify-content: center;
788
- align-items: center;
789
- }
790
- .edge {
791
- fill: none;
792
- }
793
- .eventWrapper {
794
- filter: brightness(120%);
795
- }
796
- `, "getStyles"), qt = Gt, Jt = {
797
- db: at,
798
- renderer: Ot,
799
- parser: Tt,
800
- styles: qt
801
- };
802
- export {
803
- Jt as diagram
804
- };