@vunk/plus 1.6.11 → 1.7.1

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 (411) hide show
  1. package/components/_baseUniq-BXtq6_NW.mjs +239 -0
  2. package/components/abap-B7h4dtBh.mjs +6 -0
  3. package/components/actionscript-3-Bmm7RA3Y.mjs +6 -0
  4. package/components/ada-BZS802Se.mjs +6 -0
  5. package/components/agent-chat-provider/index.mjs +74 -39
  6. package/components/andromeeda-CrngpmZk.mjs +3 -0
  7. package/components/apache-D4roVlsU.mjs +6 -0
  8. package/components/apex-D6mfw0H5.mjs +6 -0
  9. package/components/apl-DDK-VObo.mjs +18 -0
  10. package/components/applescript-C43Knf0G.mjs +6 -0
  11. package/components/ara-DRBH84ND.mjs +6 -0
  12. package/components/arc-Js_tyW10.mjs +131 -0
  13. package/components/architecture-O4VJ6CD3-ZoZ2IAk2.mjs +13 -0
  14. package/components/architectureDiagram-SUXI7LT5-kyYGGrHN.mjs +8676 -0
  15. package/components/asm-3tg4MVib.mjs +6 -0
  16. package/components/astro-v4FYbRud.mjs +19 -0
  17. package/components/aurora-x-wJ4-eM2h.mjs +3 -0
  18. package/components/awk-ChreaG-G.mjs +6 -0
  19. package/components/ayu-dark-BEKp3oqs.mjs +3 -0
  20. package/components/ballerina-B0yt0TYU.mjs +6 -0
  21. package/components/batch-Ce_EX3Sx.mjs +14 -0
  22. package/components/beancount-BRIsdQEB.mjs +6 -0
  23. package/components/berry-Brv4WWdL.mjs +14 -0
  24. package/components/bibtex-BLeFwAes.mjs +6 -0
  25. package/components/bicep-BVrgfErX.mjs +6 -0
  26. package/components/blade-By3Sw_Ex.mjs +22 -0
  27. package/components/blockDiagram-6J76NXCF-IAr4zDV3.mjs +3608 -0
  28. package/components/bubble-list/index.css +22 -0
  29. package/components/bubble-list/index.mjs +7 -134
  30. package/components/bubble-templates/index.mjs +11438 -101
  31. package/components/c-C4VtT7JA.mjs +6 -0
  32. package/components/c4Diagram-6F6E4RAY-Dv27rXcJ.mjs +2490 -0
  33. package/components/catppuccin-frappe-zLMNRRUx.mjs +3 -0
  34. package/components/catppuccin-latte-CdF5jC3c.mjs +3 -0
  35. package/components/catppuccin-macchiato-DyjXeyRt.mjs +3 -0
  36. package/components/catppuccin-mocha-66IdYxR8.mjs +3 -0
  37. package/components/cdc-30ktANo3.mjs +14 -0
  38. package/components/channel-BBZy6zOT.mjs +7 -0
  39. package/components/chat-independent/index.mjs +4 -4
  40. package/components/chunk-353BL4L5-Dn_Y_Yna.mjs +17 -0
  41. package/components/chunk-67H74DCK-Br5U8bfD.mjs +102 -0
  42. package/components/chunk-AACKK3MU-DH_MKxca.mjs +17 -0
  43. package/components/chunk-BFAMUDN2-DHLCoYMN.mjs +13 -0
  44. package/components/chunk-E2GYISFI-DQPHyyga.mjs +19 -0
  45. package/components/chunk-OW32GOEJ-CQOSE6Bn.mjs +1924 -0
  46. package/components/chunk-SKB7J2MH-BlwHRDiW.mjs +25 -0
  47. package/components/chunk-SZ463SBG-DEp8buKJ.mjs +1823 -0
  48. package/components/clarity-6uBl6Vpb.mjs +6 -0
  49. package/components/classDiagram-M3E45YP4-D0ySDe-v.mjs +30 -0
  50. package/components/classDiagram-v2-YAWTLIQI-D0ySDe-v.mjs +30 -0
  51. package/components/clojure-COBRmwo8.mjs +14 -0
  52. package/components/clone-CEJtuQzg.mjs +8 -0
  53. package/components/cmake-CDfQILeU.mjs +6 -0
  54. package/components/cobol-BOOIiISO.mjs +13 -0
  55. package/components/coffee-DO_RGoZp.mjs +9 -0
  56. package/components/cpp-DAK8ktHO.mjs +25 -0
  57. package/components/crystal-CBGbbyVp.mjs +19 -0
  58. package/components/cs-h3ksD6-P.mjs +14 -0
  59. package/components/css-BtVcDqlU.mjs +6 -0
  60. package/components/cue-BFSVLV6N.mjs +6 -0
  61. package/components/cypher-Dl2CXoXF.mjs +14 -0
  62. package/components/cytoscape.esm-BojS1z60.mjs +30216 -0
  63. package/components/d-9qSZPw74.mjs +6 -0
  64. package/components/dagre-JOIXM2OF-5zx0JY2T.mjs +705 -0
  65. package/components/dark-plus-DmZ1Dzd4.mjs +3 -0
  66. package/components/dart-CCSsOg9l.mjs +6 -0
  67. package/components/dax-CvsmLV-B.mjs +6 -0
  68. package/components/defaultLocale-DVr69WTU.mjs +202 -0
  69. package/components/diagram-5UYTHUR4-C19nyAKc.mjs +213 -0
  70. package/components/diagram-VMROVX33-DkGwo-hj.mjs +859 -0
  71. package/components/diagram-ZTM2IBQH-CBgHCu9L.mjs +315 -0
  72. package/components/diff-BEdzuHlE.mjs +6 -0
  73. package/components/dockerfile-B3DP334t.mjs +14 -0
  74. package/components/dracula-B8-AVrwI.mjs +3 -0
  75. package/components/dracula-soft-BHeefow7.mjs +3 -0
  76. package/components/dream-maker-CNLQpoF-.mjs +6 -0
  77. package/components/elixir-0rTCSSfp.mjs +11 -0
  78. package/components/elm-BhwiZPvf.mjs +10 -0
  79. package/components/erDiagram-3M52JZNH-cttdAJXW.mjs +1167 -0
  80. package/components/erb-Lra8TlYM.mjs +27 -0
  81. package/components/erlang-D2NNgvtR.mjs +17 -0
  82. package/components/everforest-dark-Cg1xdODP.mjs +3 -0
  83. package/components/everforest-light-BmTD3bxe.mjs +3 -0
  84. package/components/fish-BU5HSdZy.mjs +6 -0
  85. package/components/flowDiagram-KYDEHFYC-9HpsqDdB.mjs +2343 -0
  86. package/components/fs-CdBSddpF.mjs +17 -0
  87. package/components/ganttDiagram-EK5VF46D-8QB3ofs6.mjs +3495 -0
  88. package/components/gdresource-CAbkn6H_.mjs +11 -0
  89. package/components/gdscript-Be_cubqt.mjs +6 -0
  90. package/components/gdshader-BEzE4j_3.mjs +6 -0
  91. package/components/gherkin-xCNF9gh8.mjs +6 -0
  92. package/components/git-commit-PP9xCApN.mjs +9 -0
  93. package/components/git-rebase-DqdGofLo.mjs +9 -0
  94. package/components/gitGraph-ZV4HHKMB-BSmtVGRu.mjs +13 -0
  95. package/components/gitGraphDiagram-GW3U2K7C-DNzc0Vx_.mjs +1225 -0
  96. package/components/github-dark-O22yVQaY.mjs +3 -0
  97. package/components/github-dark-default-DB2Hkvqn.mjs +3 -0
  98. package/components/github-dark-dimmed-CMZ_OfqC.mjs +3 -0
  99. package/components/github-dark-high-contrast-DmxWVmCU.mjs +3 -0
  100. package/components/github-light-BTbR9xVK.mjs +3 -0
  101. package/components/github-light-default-DWEonwFe.mjs +3 -0
  102. package/components/github-light-high-contrast-WJ_cPDts.mjs +3 -0
  103. package/components/glimmer-js-BkPYTyD4.mjs +23 -0
  104. package/components/glsl-CGsiYPcu.mjs +9 -0
  105. package/components/gnuplot-tV8vezdE.mjs +6 -0
  106. package/components/go-CBmVHZBz.mjs +6 -0
  107. package/components/graph-3zJxsO-i.mjs +425 -0
  108. package/components/graphql-D4pgneW3.mjs +15 -0
  109. package/components/groovy-Bn4MhXgW.mjs +6 -0
  110. package/components/gruvbox-dark-hard-C89wZ4s3.mjs +3 -0
  111. package/components/gruvbox-dark-medium-swz85q_b.mjs +3 -0
  112. package/components/gruvbox-dark-soft-BYHBHQJW.mjs +3 -0
  113. package/components/gruvbox-light-hard-DEF_ZxYZ.mjs +3 -0
  114. package/components/gruvbox-light-medium-ziUMnHJx.mjs +3 -0
  115. package/components/gruvbox-light-soft-Cuwp0tsB.mjs +3 -0
  116. package/components/gts-d3WsqAZM.mjs +23 -0
  117. package/components/hack-CwaBuF5l.mjs +13 -0
  118. package/components/haml-gLijj4rW.mjs +11 -0
  119. package/components/hbs-CFi5SpI3.mjs +23 -0
  120. package/components/hcl-axoq0Ycu.mjs +6 -0
  121. package/components/hjson-I7LcauIB.mjs +6 -0
  122. package/components/hlsl-TRzjajlb.mjs +6 -0
  123. package/components/houston-CF_ws8Cq.mjs +3 -0
  124. package/components/hs-DXSGqUFF.mjs +14 -0
  125. package/components/html-CLq-n30c.mjs +11 -0
  126. package/components/html-derivative-C8POX8SL.mjs +9 -0
  127. package/components/http-BYUKZ6kX.mjs +20 -0
  128. package/components/imba-C4923lSV.mjs +6 -0
  129. package/components/index3.mjs +79528 -0
  130. package/components/info-63CPKGFF-C8sYWczU.mjs +13 -0
  131. package/components/infoDiagram-LHK5PUON-C-vFFPTf.mjs +42 -0
  132. package/components/init-ZxktEp_H.mjs +15 -0
  133. package/components/java-BfXh-0uJ.mjs +6 -0
  134. package/components/jinja-html-BmW4v_vu.mjs +11 -0
  135. package/components/jison-C9kAT_Oj.mjs +9 -0
  136. package/components/journeyDiagram-EWQZEKCU-BJrw4-AG.mjs +1262 -0
  137. package/components/js-CN_xSsjU.mjs +14 -0
  138. package/components/json-TjWBGEk1.mjs +6 -0
  139. package/components/json5-DCGCKrmX.mjs +6 -0
  140. package/components/jsonc-DLVLp8id.mjs +6 -0
  141. package/components/jsonl-B-R_pDGg.mjs +6 -0
  142. package/components/jsonnet-Cs8BnnC6.mjs +6 -0
  143. package/components/jssm-D_YBQ_cM.mjs +14 -0
  144. package/components/jsx-BPmvoin2.mjs +6 -0
  145. package/components/julia-C-JjBobP.mjs +19 -0
  146. package/components/kanagawa-dragon-DU8n2NNT.mjs +3 -0
  147. package/components/kanagawa-lotus-Byd0CDet.mjs +3 -0
  148. package/components/kanagawa-wave-DExoagcR.mjs +3 -0
  149. package/components/kanban-definition-ZSS6B67P-BptAnqU-.mjs +1057 -0
  150. package/components/kotlin-BM2ZNTMh.mjs +6 -0
  151. package/components/kusto-D9MF7CZf.mjs +14 -0
  152. package/components/laserwave-DF03wMlf.mjs +3 -0
  153. package/components/latex-BsqkLZB_.mjs +10 -0
  154. package/components/layout-sGZIJplX.mjs +2043 -0
  155. package/components/less-BAzLMJNR.mjs +6 -0
  156. package/components/light-plus-DS08Xg5J.mjs +3 -0
  157. package/components/linear-DqgVh5FN.mjs +336 -0
  158. package/components/liquid-f2VHt0dg.mjs +15 -0
  159. package/components/lisp-DAq1kaby.mjs +6 -0
  160. package/components/logo-D9l7oEJ8.mjs +6 -0
  161. package/components/lua-CH3ttzl_.mjs +9 -0
  162. package/components/makefile-D2qLe7q0.mjs +14 -0
  163. package/components/marko-DwRyI_--.mjs +15 -0
  164. package/components/material-theme-B8B2U48Q.mjs +3 -0
  165. package/components/material-theme-darker-BV0iY_T3.mjs +3 -0
  166. package/components/material-theme-lighter-DrzybSTF.mjs +3 -0
  167. package/components/material-theme-ocean-BRPLVReX.mjs +3 -0
  168. package/components/material-theme-palenight-DSJwsR_D.mjs +3 -0
  169. package/components/matlab-7XHduepk.mjs +6 -0
  170. package/components/md-BIvDPr-W.mjs +14 -0
  171. package/components/mdc-Rx6hWSHn.mjs +16 -0
  172. package/components/mdx-D5wExp-O.mjs +6 -0
  173. package/components/mermaid-CUjtoYEe.mjs +6 -0
  174. package/components/mermaid-parser.core-CH9ryA1K.mjs +16987 -0
  175. package/components/mermaid.core-CAqkCmS1.mjs +20975 -0
  176. package/components/min-BngCxx8g.mjs +109 -0
  177. package/components/min-dark-BNaN9fWk.mjs +3 -0
  178. package/components/min-light-CMrjentn.mjs +3 -0
  179. package/components/mindmap-definition-6CBA2TL7-Cp_EeEsh.mjs +5854 -0
  180. package/components/mojo-CrbF881p.mjs +6 -0
  181. package/components/monokai-DelygWXa.mjs +3 -0
  182. package/components/narrat-DOwkIbBe.mjs +14 -0
  183. package/components/nf-DHfvJ2gH.mjs +14 -0
  184. package/components/nginx-B_jWsywZ.mjs +10 -0
  185. package/components/night-owl-DSS199ra.mjs +3 -0
  186. package/components/nim-yzbnZKJd.mjs +22 -0
  187. package/components/nix--3K2gyjg.mjs +6 -0
  188. package/components/nord-CvDbBq5M.mjs +3 -0
  189. package/components/objective-c-DkOBZg1J.mjs +14 -0
  190. package/components/objective-cpp-DEoN9Fe5.mjs +6 -0
  191. package/components/ocaml-B1kfGk9Y.mjs +6 -0
  192. package/components/one-dark-pro-CsMf0BoJ.mjs +3 -0
  193. package/components/one-light-BwwAsfsj.mjs +3 -0
  194. package/components/ordinal-DSZU4PqD.mjs +76 -0
  195. package/components/packet-HUATNLJX-bfFWFja0.mjs +13 -0
  196. package/components/pascal-CU8Kjkr_.mjs +6 -0
  197. package/components/perl-FH6su6vZ.mjs +18 -0
  198. package/components/php-Dnl1TfYH.mjs +20 -0
  199. package/components/pie-WTHONI2E-QPrWs3SR.mjs +13 -0
  200. package/components/pieDiagram-NIOCPIFQ-C46Y_4C6.mjs +248 -0
  201. package/components/plastic-BjwMpBc0.mjs +3 -0
  202. package/components/plsql-B3Na24V4.mjs +6 -0
  203. package/components/poimandres-ChWyhPrn.mjs +3 -0
  204. package/components/postcss-kj1IbjVd.mjs +6 -0
  205. package/components/powerquery-B-e1fO-k.mjs +6 -0
  206. package/components/prisma-bmxcSDxq.mjs +6 -0
  207. package/components/prolog-BT9GCzqD.mjs +6 -0
  208. package/components/properties-D6yKO1eW.mjs +14 -0
  209. package/components/proto-BIXM0k1a.mjs +6 -0
  210. package/components/ps1-aFyNx8UH.mjs +18 -0
  211. package/components/pug-BrOx0bSt.mjs +21 -0
  212. package/components/puppet-N15G4Usj.mjs +6 -0
  213. package/components/purescript-DrwsEYNH.mjs +6 -0
  214. package/components/python-D2s92fRP.mjs +14 -0
  215. package/components/ql-DTm-NCRo.mjs +14 -0
  216. package/components/quadrantDiagram-2OG54O6I-Dgf6d6F_.mjs +1347 -0
  217. package/components/r-oprfD2-9.mjs +6 -0
  218. package/components/radar-NJJJXTRR-BnUCJhQL.mjs +13 -0
  219. package/components/raku-xArQd_rF.mjs +14 -0
  220. package/components/razor-BoXCAbWQ.mjs +13 -0
  221. package/components/red-DByOl5N0.mjs +3 -0
  222. package/components/reg-CULnG2WX.mjs +6 -0
  223. package/components/rel-CHRwzjd4.mjs +6 -0
  224. package/components/requirementDiagram-QOLK2EJ7-CSF6N7HA.mjs +1171 -0
  225. package/components/riscv-BNQ9cVpw.mjs +6 -0
  226. package/components/rose-pine-LL9gXmP2.mjs +3 -0
  227. package/components/rose-pine-dawn-CH9zdisO.mjs +3 -0
  228. package/components/rose-pine-moon-B1oKSfEJ.mjs +3 -0
  229. package/components/rst-bEtD1v7N.mjs +36 -0
  230. package/components/ruby-BmfBy6EV.mjs +44 -0
  231. package/components/rust-Bf_fdNdL.mjs +14 -0
  232. package/components/sankeyDiagram-4UZDY2LN-BAHB7dMS.mjs +1199 -0
  233. package/components/sas-BLBgC3TA.mjs +9 -0
  234. package/components/sass-BheygBdF.mjs +6 -0
  235. package/components/scala-B-_7vFVn.mjs +6 -0
  236. package/components/scheme-BSHdPinv.mjs +6 -0
  237. package/components/scss-Dq-LbI_c.mjs +9 -0
  238. package/components/sequenceDiagram-SKLFT4DO-10gLJ50N.mjs +3422 -0
  239. package/components/shaderlab-BOQRTiQi.mjs +17 -0
  240. package/components/shellsession-Cu3c0QAc.mjs +17 -0
  241. package/components/slack-dark-BEe10hxO.mjs +3 -0
  242. package/components/slack-ochin-BKmu9pBc.mjs +3 -0
  243. package/components/smalltalk-qxcGy4fT.mjs +6 -0
  244. package/components/snazzy-light-Dcvd-ZyI.mjs +3 -0
  245. package/components/solarized-dark-BBl5y5sR.mjs +3 -0
  246. package/components/solarized-light-DW9b_AY8.mjs +3 -0
  247. package/components/solidity-CewKZgp-.mjs +6 -0
  248. package/components/sparql-DswowMAp.mjs +9 -0
  249. package/components/splunk-gK6Iw_P9.mjs +14 -0
  250. package/components/sql-DzUuSofg.mjs +6 -0
  251. package/components/ssh-config-Bk_I5wDR.mjs +6 -0
  252. package/components/stata-Dl7wDdBE.mjs +9 -0
  253. package/components/stateDiagram-MI5ZYTHO-D6p6nCaj.mjs +459 -0
  254. package/components/stateDiagram-v2-5AN5P6BG-DaN5hC-t.mjs +29 -0
  255. package/components/stylus-qRNkxrFU.mjs +14 -0
  256. package/components/svelte-B9qv3vkS.mjs +15 -0
  257. package/components/swift-BRQRsam8.mjs +6 -0
  258. package/components/synthwave-84-CoUef9sh.mjs +3 -0
  259. package/components/system-verilog-BcESSvRn.mjs +6 -0
  260. package/components/tasl-DfOr2qHi.mjs +6 -0
  261. package/components/tcl-CTsc4-t7.mjs +6 -0
  262. package/components/tex-CumJx1zu.mjs +9 -0
  263. package/components/timeline-definition-MYPXXCX6-gLqnWxDu.mjs +1234 -0
  264. package/components/tokyo-night-DjtLpAEY.mjs +3 -0
  265. package/components/toml-vHPzWDj6.mjs +6 -0
  266. package/components/treemap-75Q7IDZK-B2atdfMH.mjs +13 -0
  267. package/components/tsx-CmGGo4Hm.mjs +6 -0
  268. package/components/turtle-BnC7StHY.mjs +6 -0
  269. package/components/twig-0XKNpXN1.mjs +35 -0
  270. package/components/typescript-CgxwwAuC.mjs +14 -0
  271. package/components/v-Bmdjo9cy.mjs +6 -0
  272. package/components/vb-DuF6ZenW.mjs +14 -0
  273. package/components/verilog-CCb_iTfF.mjs +6 -0
  274. package/components/vesper-4Q1cEwPL.mjs +3 -0
  275. package/components/vhdl-DMqk4T2s.mjs +6 -0
  276. package/components/vimscript-aKp9YbYm.mjs +18 -0
  277. package/components/vitesse-black-BqNLki8b.mjs +3 -0
  278. package/components/vitesse-dark-jJ32WhwH.mjs +3 -0
  279. package/components/vitesse-light-476zM4e6.mjs +3 -0
  280. package/components/vue-DVNNTw2l.mjs +40 -0
  281. package/components/vue-html-Cr5wciIP.mjs +16 -0
  282. package/components/vyper-DYedWgAE.mjs +14 -0
  283. package/components/wasm-BBh6f151.mjs +6 -0
  284. package/components/wasm-DDgzZJey.mjs +7 -0
  285. package/components/wenyan-BdqozpMZ.mjs +6 -0
  286. package/components/wgsl-Vo-hHVWH.mjs +6 -0
  287. package/components/wolfram-CRmjUoI4.mjs +6 -0
  288. package/components/xml-BMzZeaqs.mjs +9 -0
  289. package/components/xsl-CAhvzxWv.mjs +10 -0
  290. package/components/xychartDiagram-H2YORKM3-Whqa4ezL.mjs +1893 -0
  291. package/components/yml-BhSrWWMS.mjs +14 -0
  292. package/components/zenscript-DFINJL6j.mjs +6 -0
  293. package/components/zig-CS4FMAZp.mjs +6 -0
  294. package/components/zsh-hcK4TBd7.mjs +26 -0
  295. package/index.css +23 -0
  296. package/package.json +4 -1
  297. package/components/agent-chat-provider/index.d.ts +0 -7
  298. package/components/agent-chat-provider/src/api.d.ts +0 -3
  299. package/components/agent-chat-provider/src/const-roles.d.ts +0 -8
  300. package/components/agent-chat-provider/src/const.d.ts +0 -1
  301. package/components/agent-chat-provider/src/index.vue.d.ts +0 -22
  302. package/components/agent-chat-provider/src/types.d.ts +0 -50
  303. package/components/agent-chat-provider/src/use.d.ts +0 -5
  304. package/components/avatar/index.d.ts +0 -4
  305. package/components/avatar/src/ctx.d.ts +0 -6
  306. package/components/avatar/src/index.vue.d.ts +0 -180
  307. package/components/avatar/src/types.d.ts +0 -1
  308. package/components/broadcasting-markdown/index.d.ts +0 -7
  309. package/components/broadcasting-markdown/src/const.d.ts +0 -13
  310. package/components/broadcasting-markdown/src/ctx.d.ts +0 -129
  311. package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +0 -104
  312. package/components/broadcasting-markdown/src/index.vue.d.ts +0 -439
  313. package/components/broadcasting-markdown/src/paragraph.vue.d.ts +0 -79
  314. package/components/broadcasting-markdown/src/speech-error.vue.d.ts +0 -67
  315. package/components/broadcasting-markdown/src/types.d.ts +0 -26
  316. package/components/broadcasting-markdown/src/use.d.ts +0 -21
  317. package/components/bubble-list/index.d.ts +0 -5
  318. package/components/bubble-list/src/ctx.d.ts +0 -32
  319. package/components/bubble-list/src/index.vue.d.ts +0 -810
  320. package/components/bubble-list/src/types.d.ts +0 -4
  321. package/components/bubble-templates/index.d.ts +0 -4
  322. package/components/bubble-templates/src/index.vue.d.ts +0 -595
  323. package/components/bubble-templates/src/types.d.ts +0 -40
  324. package/components/chat-independent/index.d.ts +0 -4
  325. package/components/chat-independent/src/const.d.ts +0 -13
  326. package/components/chat-independent/src/ctx.d.ts +0 -21
  327. package/components/chat-independent/src/index.vue.d.ts +0 -2429
  328. package/components/chat-independent/src/types.d.ts +0 -13
  329. package/components/index.d.ts +0 -0
  330. package/components/lottie-animation/index.d.ts +0 -4
  331. package/components/lottie-animation/src/ctx.d.ts +0 -10
  332. package/components/lottie-animation/src/index.vue.d.ts +0 -21
  333. package/components/lottie-animation/src/types.d.ts +0 -4
  334. package/components/metahuman-broadcasting/index.d.ts +0 -5
  335. package/components/metahuman-broadcasting/src/ctx.d.ts +0 -57
  336. package/components/metahuman-broadcasting/src/index.vue.d.ts +0 -885
  337. package/components/metahuman-broadcasting/src/types.d.ts +0 -1
  338. package/components/monaco-editor/index.d.ts +0 -5
  339. package/components/monaco-editor/src/ctx.d.ts +0 -23
  340. package/components/monaco-editor/src/index.vue.d.ts +0 -40
  341. package/components/monaco-editor/src/types.d.ts +0 -1
  342. package/components/monaco-environment/index.d.ts +0 -4
  343. package/components/monaco-environment/src/ctx.d.ts +0 -8
  344. package/components/monaco-environment/src/index.vue.d.ts +0 -2
  345. package/components/monaco-environment/src/types.d.ts +0 -1
  346. package/components/pixi-frame/index.d.ts +0 -11
  347. package/components/pixi-frame/src/apng.vue.d.ts +0 -161
  348. package/components/pixi-frame/src/bitmap.vue.d.ts +0 -158
  349. package/components/pixi-frame/src/core.vue.d.ts +0 -173
  350. package/components/pixi-frame/src/ctx.d.ts +0 -55
  351. package/components/pixi-frame/src/index.vue.d.ts +0 -591
  352. package/components/pixi-frame/src/provider.vue.d.ts +0 -2
  353. package/components/pixi-frame/src/types.d.ts +0 -17
  354. package/components/pixi-frame/src/use.d.ts +0 -16
  355. package/components/pixi-frame/src/useSprite.d.ts +0 -12
  356. package/components/pixi-frame/src/video.vue.d.ts +0 -159
  357. package/components/pixi-frame/src/view.vue.d.ts +0 -29
  358. package/components/recorder-button/index.d.ts +0 -4
  359. package/components/recorder-button/src/ctx.d.ts +0 -41
  360. package/components/recorder-button/src/index.vue.d.ts +0 -333
  361. package/components/recorder-button/src/speech-to-text.d.ts +0 -1
  362. package/components/recorder-button/src/types.d.ts +0 -7
  363. package/components/routes-menu-content/index.d.ts +0 -4
  364. package/components/routes-menu-content/src/ctx.d.ts +0 -17
  365. package/components/routes-menu-content/src/index.vue.d.ts +0 -350
  366. package/components/routes-menu-content/src/item/core/ctx.d.ts +0 -18
  367. package/components/routes-menu-content/src/item/core/index.vue.d.ts +0 -185
  368. package/components/routes-menu-content/src/item/ctx.d.ts +0 -14
  369. package/components/routes-menu-content/src/item/index.vue.d.ts +0 -316
  370. package/components/routes-menu-content/src/types.d.ts +0 -1
  371. package/components/sender/index.d.ts +0 -4
  372. package/components/sender/src/SenderHeader.vue.d.ts +0 -270
  373. package/components/sender/src/ctx.d.ts +0 -64
  374. package/components/sender/src/index.vue.d.ts +0 -779
  375. package/components/sender/src/types.d.ts +0 -1
  376. package/components/speech-button/index.d.ts +0 -4
  377. package/components/speech-button/src/LoadingIcon.vue.d.ts +0 -2
  378. package/components/speech-button/src/RecordingIcon.vue.d.ts +0 -2
  379. package/components/speech-button/src/ctx.d.ts +0 -10
  380. package/components/speech-button/src/index.vue.d.ts +0 -22
  381. package/components/speech-button/src/types.d.ts +0 -1
  382. package/components/table-columns/index.d.ts +0 -5
  383. package/components/table-columns/src/ctx.d.ts +0 -59
  384. package/components/table-columns/src/el-ctx.d.ts +0 -57
  385. package/components/table-columns/src/index.vue.d.ts +0 -266
  386. package/components/table-columns/src/types.d.ts +0 -21
  387. package/components/tables-v1/index.d.ts +0 -5
  388. package/components/tables-v1/src/ctx.d.ts +0 -280
  389. package/components/tables-v1/src/el-ctx.d.ts +0 -262
  390. package/components/tables-v1/src/index.vue.d.ts +0 -3054
  391. package/components/tables-v1/src/types.d.ts +0 -3
  392. package/components/tables-v1-checkbox/index.d.ts +0 -5
  393. package/components/tables-v1-checkbox/src/ctx.d.ts +0 -313
  394. package/components/tables-v1-checkbox/src/index.vue.d.ts +0 -3831
  395. package/components/tables-v1-checkbox/src/types.d.ts +0 -1
  396. package/components/text/index.d.ts +0 -4
  397. package/components/text/src/ctx.d.ts +0 -341
  398. package/components/text/src/index.vue.d.ts +0 -4593
  399. package/components/text/src/types.d.ts +0 -1
  400. package/components/typing-markdown/index.d.ts +0 -4
  401. package/components/typing-markdown/src/core.d.ts +0 -2
  402. package/components/typing-markdown/src/ctx.d.ts +0 -41
  403. package/components/typing-markdown/src/index.vue.d.ts +0 -75
  404. package/components/typing-markdown/src/types.d.ts +0 -1
  405. package/components/vditor/index.d.ts +0 -5
  406. package/components/vditor/src/ctx.d.ts +0 -38
  407. package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
  408. package/components/vditor/src/handle-value.vue.d.ts +0 -18
  409. package/components/vditor/src/index.vue.d.ts +0 -143
  410. package/components/vditor/src/types.d.ts +0 -9
  411. package/components/vditor/src/use.d.ts +0 -4
@@ -0,0 +1,1234 @@
1
+ import { _ as __name, D as __export, ag as commonDb_exports, z as clear$2, d as select, c as getConfig2, l as log, ac as setupGraphViewbox, ad as isDark, ae as lighten, af as darken } from './mermaid.core-CAqkCmS1.mjs';
2
+ import { d as d3arc } from './arc-Js_tyW10.mjs';
3
+ import './index3.mjs';
4
+ import 'vue';
5
+ import '@vunk/plus/components/bubble-templates';
6
+ import '@vunk/core/components/spread-to';
7
+ import 'element-plus';
8
+ import '@vunk/shared/function';
9
+ import './_plugin-vue_export-helper.mjs';
10
+ import '@vunk/plus/components/agent-chat-provider';
11
+
12
+ var parser = function() {
13
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
14
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
15
+ return o2;
16
+ }, "o"), $V0 = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], $V1 = [1, 9], $V2 = [1, 10], $V3 = [1, 11], $V4 = [1, 12], $V5 = [1, 13], $V6 = [1, 16], $V7 = [1, 17];
17
+ var parser2 = {
18
+ trace: /* @__PURE__ */ __name(function trace() {
19
+ }, "trace"),
20
+ yy: {},
21
+ 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 },
22
+ 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" },
23
+ 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]],
24
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
25
+ var $0 = $$.length - 1;
26
+ switch (yystate) {
27
+ case 1:
28
+ return $$[$0 - 1];
29
+ case 2:
30
+ this.$ = [];
31
+ break;
32
+ case 3:
33
+ $$[$0 - 1].push($$[$0]);
34
+ this.$ = $$[$0 - 1];
35
+ break;
36
+ case 4:
37
+ case 5:
38
+ this.$ = $$[$0];
39
+ break;
40
+ case 6:
41
+ case 7:
42
+ this.$ = [];
43
+ break;
44
+ case 8:
45
+ yy.getCommonDb().setDiagramTitle($$[$0].substr(6));
46
+ this.$ = $$[$0].substr(6);
47
+ break;
48
+ case 9:
49
+ this.$ = $$[$0].trim();
50
+ yy.getCommonDb().setAccTitle(this.$);
51
+ break;
52
+ case 10:
53
+ case 11:
54
+ this.$ = $$[$0].trim();
55
+ yy.getCommonDb().setAccDescription(this.$);
56
+ break;
57
+ case 12:
58
+ yy.addSection($$[$0].substr(8));
59
+ this.$ = $$[$0].substr(8);
60
+ break;
61
+ case 15:
62
+ yy.addTask($$[$0], 0, "");
63
+ this.$ = $$[$0];
64
+ break;
65
+ case 16:
66
+ yy.addEvent($$[$0].substr(2));
67
+ this.$ = $$[$0];
68
+ break;
69
+ }
70
+ }, "anonymous"),
71
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, o($V0, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: $V1, 12: $V2, 14: $V3, 16: $V4, 17: $V5, 18: 14, 19: 15, 20: $V6, 21: $V7 }, o($V0, [2, 7], { 1: [2, 1] }), o($V0, [2, 3]), { 9: 18, 11: $V1, 12: $V2, 14: $V3, 16: $V4, 17: $V5, 18: 14, 19: 15, 20: $V6, 21: $V7 }, o($V0, [2, 5]), o($V0, [2, 6]), o($V0, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, o($V0, [2, 11]), o($V0, [2, 12]), o($V0, [2, 13]), o($V0, [2, 14]), o($V0, [2, 15]), o($V0, [2, 16]), o($V0, [2, 4]), o($V0, [2, 9]), o($V0, [2, 10])],
72
+ defaultActions: {},
73
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
74
+ if (hash.recoverable) {
75
+ this.trace(str);
76
+ } else {
77
+ var error = new Error(str);
78
+ error.hash = hash;
79
+ throw error;
80
+ }
81
+ }, "parseError"),
82
+ parse: /* @__PURE__ */ __name(function parse(input) {
83
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
84
+ var args = lstack.slice.call(arguments, 1);
85
+ var lexer2 = Object.create(this.lexer);
86
+ var sharedState = { yy: {} };
87
+ for (var k in this.yy) {
88
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
89
+ sharedState.yy[k] = this.yy[k];
90
+ }
91
+ }
92
+ lexer2.setInput(input, sharedState.yy);
93
+ sharedState.yy.lexer = lexer2;
94
+ sharedState.yy.parser = this;
95
+ if (typeof lexer2.yylloc == "undefined") {
96
+ lexer2.yylloc = {};
97
+ }
98
+ var yyloc = lexer2.yylloc;
99
+ lstack.push(yyloc);
100
+ var ranges = lexer2.options && lexer2.options.ranges;
101
+ if (typeof sharedState.yy.parseError === "function") {
102
+ this.parseError = sharedState.yy.parseError;
103
+ } else {
104
+ this.parseError = Object.getPrototypeOf(this).parseError;
105
+ }
106
+ function popStack(n) {
107
+ stack.length = stack.length - 2 * n;
108
+ vstack.length = vstack.length - n;
109
+ lstack.length = lstack.length - n;
110
+ }
111
+ __name(popStack, "popStack");
112
+ function lex() {
113
+ var token;
114
+ token = tstack.pop() || lexer2.lex() || EOF;
115
+ if (typeof token !== "number") {
116
+ if (token instanceof Array) {
117
+ tstack = token;
118
+ token = tstack.pop();
119
+ }
120
+ token = self.symbols_[token] || token;
121
+ }
122
+ return token;
123
+ }
124
+ __name(lex, "lex");
125
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
126
+ while (true) {
127
+ state = stack[stack.length - 1];
128
+ if (this.defaultActions[state]) {
129
+ action = this.defaultActions[state];
130
+ } else {
131
+ if (symbol === null || typeof symbol == "undefined") {
132
+ symbol = lex();
133
+ }
134
+ action = table[state] && table[state][symbol];
135
+ }
136
+ if (typeof action === "undefined" || !action.length || !action[0]) {
137
+ var errStr = "";
138
+ expected = [];
139
+ for (p in table[state]) {
140
+ if (this.terminals_[p] && p > TERROR) {
141
+ expected.push("'" + this.terminals_[p] + "'");
142
+ }
143
+ }
144
+ if (lexer2.showPosition) {
145
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
146
+ } else {
147
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
148
+ }
149
+ this.parseError(errStr, {
150
+ text: lexer2.match,
151
+ token: this.terminals_[symbol] || symbol,
152
+ line: lexer2.yylineno,
153
+ loc: yyloc,
154
+ expected
155
+ });
156
+ }
157
+ if (action[0] instanceof Array && action.length > 1) {
158
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
159
+ }
160
+ switch (action[0]) {
161
+ case 1:
162
+ stack.push(symbol);
163
+ vstack.push(lexer2.yytext);
164
+ lstack.push(lexer2.yylloc);
165
+ stack.push(action[1]);
166
+ symbol = null;
167
+ {
168
+ yyleng = lexer2.yyleng;
169
+ yytext = lexer2.yytext;
170
+ yylineno = lexer2.yylineno;
171
+ yyloc = lexer2.yylloc;
172
+ }
173
+ break;
174
+ case 2:
175
+ len = this.productions_[action[1]][1];
176
+ yyval.$ = vstack[vstack.length - len];
177
+ yyval._$ = {
178
+ first_line: lstack[lstack.length - (len || 1)].first_line,
179
+ last_line: lstack[lstack.length - 1].last_line,
180
+ first_column: lstack[lstack.length - (len || 1)].first_column,
181
+ last_column: lstack[lstack.length - 1].last_column
182
+ };
183
+ if (ranges) {
184
+ yyval._$.range = [
185
+ lstack[lstack.length - (len || 1)].range[0],
186
+ lstack[lstack.length - 1].range[1]
187
+ ];
188
+ }
189
+ r = this.performAction.apply(yyval, [
190
+ yytext,
191
+ yyleng,
192
+ yylineno,
193
+ sharedState.yy,
194
+ action[1],
195
+ vstack,
196
+ lstack
197
+ ].concat(args));
198
+ if (typeof r !== "undefined") {
199
+ return r;
200
+ }
201
+ if (len) {
202
+ stack = stack.slice(0, -1 * len * 2);
203
+ vstack = vstack.slice(0, -1 * len);
204
+ lstack = lstack.slice(0, -1 * len);
205
+ }
206
+ stack.push(this.productions_[action[1]][0]);
207
+ vstack.push(yyval.$);
208
+ lstack.push(yyval._$);
209
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
210
+ stack.push(newState);
211
+ break;
212
+ case 3:
213
+ return true;
214
+ }
215
+ }
216
+ return true;
217
+ }, "parse")
218
+ };
219
+ var lexer = /* @__PURE__ */ function() {
220
+ var lexer2 = {
221
+ EOF: 1,
222
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
223
+ if (this.yy.parser) {
224
+ this.yy.parser.parseError(str, hash);
225
+ } else {
226
+ throw new Error(str);
227
+ }
228
+ }, "parseError"),
229
+ // resets the lexer, sets new input
230
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
231
+ this.yy = yy || this.yy || {};
232
+ this._input = input;
233
+ this._more = this._backtrack = this.done = false;
234
+ this.yylineno = this.yyleng = 0;
235
+ this.yytext = this.matched = this.match = "";
236
+ this.conditionStack = ["INITIAL"];
237
+ this.yylloc = {
238
+ first_line: 1,
239
+ first_column: 0,
240
+ last_line: 1,
241
+ last_column: 0
242
+ };
243
+ if (this.options.ranges) {
244
+ this.yylloc.range = [0, 0];
245
+ }
246
+ this.offset = 0;
247
+ return this;
248
+ }, "setInput"),
249
+ // consumes and returns one char from the input
250
+ input: /* @__PURE__ */ __name(function() {
251
+ var ch = this._input[0];
252
+ this.yytext += ch;
253
+ this.yyleng++;
254
+ this.offset++;
255
+ this.match += ch;
256
+ this.matched += ch;
257
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
258
+ if (lines) {
259
+ this.yylineno++;
260
+ this.yylloc.last_line++;
261
+ } else {
262
+ this.yylloc.last_column++;
263
+ }
264
+ if (this.options.ranges) {
265
+ this.yylloc.range[1]++;
266
+ }
267
+ this._input = this._input.slice(1);
268
+ return ch;
269
+ }, "input"),
270
+ // unshifts one char (or a string) into the input
271
+ unput: /* @__PURE__ */ __name(function(ch) {
272
+ var len = ch.length;
273
+ var lines = ch.split(/(?:\r\n?|\n)/g);
274
+ this._input = ch + this._input;
275
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
276
+ this.offset -= len;
277
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
278
+ this.match = this.match.substr(0, this.match.length - 1);
279
+ this.matched = this.matched.substr(0, this.matched.length - 1);
280
+ if (lines.length - 1) {
281
+ this.yylineno -= lines.length - 1;
282
+ }
283
+ var r = this.yylloc.range;
284
+ this.yylloc = {
285
+ first_line: this.yylloc.first_line,
286
+ last_line: this.yylineno + 1,
287
+ first_column: this.yylloc.first_column,
288
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
289
+ };
290
+ if (this.options.ranges) {
291
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
292
+ }
293
+ this.yyleng = this.yytext.length;
294
+ return this;
295
+ }, "unput"),
296
+ // When called from action, caches matched text and appends it on next action
297
+ more: /* @__PURE__ */ __name(function() {
298
+ this._more = true;
299
+ return this;
300
+ }, "more"),
301
+ // 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.
302
+ reject: /* @__PURE__ */ __name(function() {
303
+ if (this.options.backtrack_lexer) {
304
+ this._backtrack = true;
305
+ } else {
306
+ 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).\n" + this.showPosition(), {
307
+ text: "",
308
+ token: null,
309
+ line: this.yylineno
310
+ });
311
+ }
312
+ return this;
313
+ }, "reject"),
314
+ // retain first n characters of the match
315
+ less: /* @__PURE__ */ __name(function(n) {
316
+ this.unput(this.match.slice(n));
317
+ }, "less"),
318
+ // displays already matched input, i.e. for error messages
319
+ pastInput: /* @__PURE__ */ __name(function() {
320
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
321
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
322
+ }, "pastInput"),
323
+ // displays upcoming input, i.e. for error messages
324
+ upcomingInput: /* @__PURE__ */ __name(function() {
325
+ var next = this.match;
326
+ if (next.length < 20) {
327
+ next += this._input.substr(0, 20 - next.length);
328
+ }
329
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
330
+ }, "upcomingInput"),
331
+ // displays the character position where the lexing error occurred, i.e. for error messages
332
+ showPosition: /* @__PURE__ */ __name(function() {
333
+ var pre = this.pastInput();
334
+ var c = new Array(pre.length + 1).join("-");
335
+ return pre + this.upcomingInput() + "\n" + c + "^";
336
+ }, "showPosition"),
337
+ // test the lexed token: return FALSE when not a match, otherwise return token
338
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
339
+ var token, lines, backup;
340
+ if (this.options.backtrack_lexer) {
341
+ backup = {
342
+ yylineno: this.yylineno,
343
+ yylloc: {
344
+ first_line: this.yylloc.first_line,
345
+ last_line: this.last_line,
346
+ first_column: this.yylloc.first_column,
347
+ last_column: this.yylloc.last_column
348
+ },
349
+ yytext: this.yytext,
350
+ match: this.match,
351
+ matches: this.matches,
352
+ matched: this.matched,
353
+ yyleng: this.yyleng,
354
+ offset: this.offset,
355
+ _more: this._more,
356
+ _input: this._input,
357
+ yy: this.yy,
358
+ conditionStack: this.conditionStack.slice(0),
359
+ done: this.done
360
+ };
361
+ if (this.options.ranges) {
362
+ backup.yylloc.range = this.yylloc.range.slice(0);
363
+ }
364
+ }
365
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
366
+ if (lines) {
367
+ this.yylineno += lines.length;
368
+ }
369
+ this.yylloc = {
370
+ first_line: this.yylloc.last_line,
371
+ last_line: this.yylineno + 1,
372
+ first_column: this.yylloc.last_column,
373
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
374
+ };
375
+ this.yytext += match[0];
376
+ this.match += match[0];
377
+ this.matches = match;
378
+ this.yyleng = this.yytext.length;
379
+ if (this.options.ranges) {
380
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
381
+ }
382
+ this._more = false;
383
+ this._backtrack = false;
384
+ this._input = this._input.slice(match[0].length);
385
+ this.matched += match[0];
386
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
387
+ if (this.done && this._input) {
388
+ this.done = false;
389
+ }
390
+ if (token) {
391
+ return token;
392
+ } else if (this._backtrack) {
393
+ for (var k in backup) {
394
+ this[k] = backup[k];
395
+ }
396
+ return false;
397
+ }
398
+ return false;
399
+ }, "test_match"),
400
+ // return next match in input
401
+ next: /* @__PURE__ */ __name(function() {
402
+ if (this.done) {
403
+ return this.EOF;
404
+ }
405
+ if (!this._input) {
406
+ this.done = true;
407
+ }
408
+ var token, match, tempMatch, index;
409
+ if (!this._more) {
410
+ this.yytext = "";
411
+ this.match = "";
412
+ }
413
+ var rules = this._currentRules();
414
+ for (var i = 0; i < rules.length; i++) {
415
+ tempMatch = this._input.match(this.rules[rules[i]]);
416
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
417
+ match = tempMatch;
418
+ index = i;
419
+ if (this.options.backtrack_lexer) {
420
+ token = this.test_match(tempMatch, rules[i]);
421
+ if (token !== false) {
422
+ return token;
423
+ } else if (this._backtrack) {
424
+ match = false;
425
+ continue;
426
+ } else {
427
+ return false;
428
+ }
429
+ } else if (!this.options.flex) {
430
+ break;
431
+ }
432
+ }
433
+ }
434
+ if (match) {
435
+ token = this.test_match(match, rules[index]);
436
+ if (token !== false) {
437
+ return token;
438
+ }
439
+ return false;
440
+ }
441
+ if (this._input === "") {
442
+ return this.EOF;
443
+ } else {
444
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
445
+ text: "",
446
+ token: null,
447
+ line: this.yylineno
448
+ });
449
+ }
450
+ }, "next"),
451
+ // return next match that has a token
452
+ lex: /* @__PURE__ */ __name(function lex() {
453
+ var r = this.next();
454
+ if (r) {
455
+ return r;
456
+ } else {
457
+ return this.lex();
458
+ }
459
+ }, "lex"),
460
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
461
+ begin: /* @__PURE__ */ __name(function begin(condition) {
462
+ this.conditionStack.push(condition);
463
+ }, "begin"),
464
+ // pop the previously active lexer condition state off the condition stack
465
+ popState: /* @__PURE__ */ __name(function popState() {
466
+ var n = this.conditionStack.length - 1;
467
+ if (n > 0) {
468
+ return this.conditionStack.pop();
469
+ } else {
470
+ return this.conditionStack[0];
471
+ }
472
+ }, "popState"),
473
+ // produce the lexer rule set which is active for the currently active lexer condition state
474
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
475
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
476
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
477
+ } else {
478
+ return this.conditions["INITIAL"].rules;
479
+ }
480
+ }, "_currentRules"),
481
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
482
+ topState: /* @__PURE__ */ __name(function topState(n) {
483
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
484
+ if (n >= 0) {
485
+ return this.conditionStack[n];
486
+ } else {
487
+ return "INITIAL";
488
+ }
489
+ }, "topState"),
490
+ // alias for begin(condition)
491
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
492
+ this.begin(condition);
493
+ }, "pushState"),
494
+ // return the number of states currently on the stack
495
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
496
+ return this.conditionStack.length;
497
+ }, "stateStackSize"),
498
+ options: { "case-insensitive": true },
499
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
500
+ switch ($avoiding_name_collisions) {
501
+ case 0:
502
+ break;
503
+ case 1:
504
+ break;
505
+ case 2:
506
+ return 10;
507
+ case 3:
508
+ break;
509
+ case 4:
510
+ break;
511
+ case 5:
512
+ return 4;
513
+ case 6:
514
+ return 11;
515
+ case 7:
516
+ this.begin("acc_title");
517
+ return 12;
518
+ case 8:
519
+ this.popState();
520
+ return "acc_title_value";
521
+ case 9:
522
+ this.begin("acc_descr");
523
+ return 14;
524
+ case 10:
525
+ this.popState();
526
+ return "acc_descr_value";
527
+ case 11:
528
+ this.begin("acc_descr_multiline");
529
+ break;
530
+ case 12:
531
+ this.popState();
532
+ break;
533
+ case 13:
534
+ return "acc_descr_multiline_value";
535
+ case 14:
536
+ return 17;
537
+ case 15:
538
+ return 21;
539
+ case 16:
540
+ return 20;
541
+ case 17:
542
+ return 6;
543
+ case 18:
544
+ return "INVALID";
545
+ }
546
+ }, "anonymous"),
547
+ 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]|:(?!\s))+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
548
+ conditions: { "acc_descr_multiline": { "rules": [12, 13], "inclusive": false }, "acc_descr": { "rules": [10], "inclusive": false }, "acc_title": { "rules": [8], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], "inclusive": true } }
549
+ };
550
+ return lexer2;
551
+ }();
552
+ parser2.lexer = lexer;
553
+ function Parser() {
554
+ this.yy = {};
555
+ }
556
+ __name(Parser, "Parser");
557
+ Parser.prototype = parser2;
558
+ parser2.Parser = Parser;
559
+ return new Parser();
560
+ }();
561
+ parser.parser = parser;
562
+ var timeline_default = parser;
563
+ var timelineDb_exports = {};
564
+ __export(timelineDb_exports, {
565
+ addEvent: () => addEvent,
566
+ addSection: () => addSection,
567
+ addTask: () => addTask,
568
+ addTaskOrg: () => addTaskOrg,
569
+ clear: () => clear2,
570
+ default: () => timelineDb_default,
571
+ getCommonDb: () => getCommonDb,
572
+ getSections: () => getSections,
573
+ getTasks: () => getTasks
574
+ });
575
+ var currentSection = "";
576
+ var currentTaskId = 0;
577
+ var sections = [];
578
+ var tasks = [];
579
+ var rawTasks = [];
580
+ var getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb");
581
+ var clear2 = /* @__PURE__ */ __name(function() {
582
+ sections.length = 0;
583
+ tasks.length = 0;
584
+ currentSection = "";
585
+ rawTasks.length = 0;
586
+ clear$2();
587
+ }, "clear");
588
+ var addSection = /* @__PURE__ */ __name(function(txt) {
589
+ currentSection = txt;
590
+ sections.push(txt);
591
+ }, "addSection");
592
+ var getSections = /* @__PURE__ */ __name(function() {
593
+ return sections;
594
+ }, "getSections");
595
+ var getTasks = /* @__PURE__ */ __name(function() {
596
+ let allItemsProcessed = compileTasks();
597
+ const maxDepth = 100;
598
+ let iterationCount = 0;
599
+ while (!allItemsProcessed && iterationCount < maxDepth) {
600
+ allItemsProcessed = compileTasks();
601
+ iterationCount++;
602
+ }
603
+ tasks.push(...rawTasks);
604
+ return tasks;
605
+ }, "getTasks");
606
+ var addTask = /* @__PURE__ */ __name(function(period, length, event) {
607
+ const rawTask = {
608
+ id: currentTaskId++,
609
+ section: currentSection,
610
+ type: currentSection,
611
+ task: period,
612
+ score: length ? length : 0,
613
+ //if event is defined, then add it the events array
614
+ events: event ? [event] : []
615
+ };
616
+ rawTasks.push(rawTask);
617
+ }, "addTask");
618
+ var addEvent = /* @__PURE__ */ __name(function(event) {
619
+ const currentTask = rawTasks.find((task) => task.id === currentTaskId - 1);
620
+ currentTask.events.push(event);
621
+ }, "addEvent");
622
+ var addTaskOrg = /* @__PURE__ */ __name(function(descr) {
623
+ const newTask = {
624
+ section: currentSection,
625
+ type: currentSection,
626
+ description: descr,
627
+ task: descr,
628
+ classes: []
629
+ };
630
+ tasks.push(newTask);
631
+ }, "addTaskOrg");
632
+ var compileTasks = /* @__PURE__ */ __name(function() {
633
+ const compileTask = /* @__PURE__ */ __name(function(pos) {
634
+ return rawTasks[pos].processed;
635
+ }, "compileTask");
636
+ let allProcessed = true;
637
+ for (const [i, rawTask] of rawTasks.entries()) {
638
+ compileTask(i);
639
+ allProcessed = allProcessed && rawTask.processed;
640
+ }
641
+ return allProcessed;
642
+ }, "compileTasks");
643
+ var timelineDb_default = {
644
+ clear: clear2,
645
+ getCommonDb,
646
+ addSection,
647
+ getSections,
648
+ getTasks,
649
+ addTask,
650
+ addTaskOrg,
651
+ addEvent
652
+ };
653
+ var MAX_SECTIONS = 12;
654
+ var drawRect = /* @__PURE__ */ __name(function(elem, rectData) {
655
+ const rectElem = elem.append("rect");
656
+ rectElem.attr("x", rectData.x);
657
+ rectElem.attr("y", rectData.y);
658
+ rectElem.attr("fill", rectData.fill);
659
+ rectElem.attr("stroke", rectData.stroke);
660
+ rectElem.attr("width", rectData.width);
661
+ rectElem.attr("height", rectData.height);
662
+ rectElem.attr("rx", rectData.rx);
663
+ rectElem.attr("ry", rectData.ry);
664
+ if (rectData.class !== void 0) {
665
+ rectElem.attr("class", rectData.class);
666
+ }
667
+ return rectElem;
668
+ }, "drawRect");
669
+ var drawFace = /* @__PURE__ */ __name(function(element, faceData) {
670
+ const radius = 15;
671
+ const circleElement = element.append("circle").attr("cx", faceData.cx).attr("cy", faceData.cy).attr("class", "face").attr("r", radius).attr("stroke-width", 2).attr("overflow", "visible");
672
+ const face = element.append("g");
673
+ face.append("circle").attr("cx", faceData.cx - radius / 3).attr("cy", faceData.cy - radius / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
674
+ face.append("circle").attr("cx", faceData.cx + radius / 3).attr("cy", faceData.cy - radius / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
675
+ function smile(face2) {
676
+ const arc = d3arc().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2);
677
+ face2.append("path").attr("class", "mouth").attr("d", arc).attr("transform", "translate(" + faceData.cx + "," + (faceData.cy + 2) + ")");
678
+ }
679
+ __name(smile, "smile");
680
+ function sad(face2) {
681
+ const arc = d3arc().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2);
682
+ face2.append("path").attr("class", "mouth").attr("d", arc).attr("transform", "translate(" + faceData.cx + "," + (faceData.cy + 7) + ")");
683
+ }
684
+ __name(sad, "sad");
685
+ function ambivalent(face2) {
686
+ face2.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", faceData.cx - 5).attr("y1", faceData.cy + 7).attr("x2", faceData.cx + 5).attr("y2", faceData.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
687
+ }
688
+ __name(ambivalent, "ambivalent");
689
+ if (faceData.score > 3) {
690
+ smile(face);
691
+ } else if (faceData.score < 3) {
692
+ sad(face);
693
+ } else {
694
+ ambivalent(face);
695
+ }
696
+ return circleElement;
697
+ }, "drawFace");
698
+ var drawCircle = /* @__PURE__ */ __name(function(element, circleData) {
699
+ const circleElement = element.append("circle");
700
+ circleElement.attr("cx", circleData.cx);
701
+ circleElement.attr("cy", circleData.cy);
702
+ circleElement.attr("class", "actor-" + circleData.pos);
703
+ circleElement.attr("fill", circleData.fill);
704
+ circleElement.attr("stroke", circleData.stroke);
705
+ circleElement.attr("r", circleData.r);
706
+ if (circleElement.class !== void 0) {
707
+ circleElement.attr("class", circleElement.class);
708
+ }
709
+ if (circleData.title !== void 0) {
710
+ circleElement.append("title").text(circleData.title);
711
+ }
712
+ return circleElement;
713
+ }, "drawCircle");
714
+ var drawText = /* @__PURE__ */ __name(function(elem, textData) {
715
+ const nText = textData.text.replace(/<br\s*\/?>/gi, " ");
716
+ const textElem = elem.append("text");
717
+ textElem.attr("x", textData.x);
718
+ textElem.attr("y", textData.y);
719
+ textElem.attr("class", "legend");
720
+ textElem.style("text-anchor", textData.anchor);
721
+ if (textData.class !== void 0) {
722
+ textElem.attr("class", textData.class);
723
+ }
724
+ const span = textElem.append("tspan");
725
+ span.attr("x", textData.x + textData.textMargin * 2);
726
+ span.text(nText);
727
+ return textElem;
728
+ }, "drawText");
729
+ var drawLabel = /* @__PURE__ */ __name(function(elem, txtObject) {
730
+ function genPoints(x, y, width, height, cut) {
731
+ return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
732
+ }
733
+ __name(genPoints, "genPoints");
734
+ const polygon = elem.append("polygon");
735
+ polygon.attr("points", genPoints(txtObject.x, txtObject.y, 50, 20, 7));
736
+ polygon.attr("class", "labelBox");
737
+ txtObject.y = txtObject.y + txtObject.labelMargin;
738
+ txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;
739
+ drawText(elem, txtObject);
740
+ }, "drawLabel");
741
+ var drawSection = /* @__PURE__ */ __name(function(elem, section, conf) {
742
+ const g = elem.append("g");
743
+ const rect = getNoteRect();
744
+ rect.x = section.x;
745
+ rect.y = section.y;
746
+ rect.fill = section.fill;
747
+ rect.width = conf.width;
748
+ rect.height = conf.height;
749
+ rect.class = "journey-section section-type-" + section.num;
750
+ rect.rx = 3;
751
+ rect.ry = 3;
752
+ drawRect(g, rect);
753
+ _drawTextCandidateFunc(conf)(
754
+ section.text,
755
+ g,
756
+ rect.x,
757
+ rect.y,
758
+ rect.width,
759
+ rect.height,
760
+ { class: "journey-section section-type-" + section.num },
761
+ conf,
762
+ section.colour
763
+ );
764
+ }, "drawSection");
765
+ var taskCount = -1;
766
+ var drawTask = /* @__PURE__ */ __name(function(elem, task, conf) {
767
+ const center = task.x + conf.width / 2;
768
+ const g = elem.append("g");
769
+ taskCount++;
770
+ const maxHeight = 300 + 5 * 30;
771
+ g.append("line").attr("id", "task" + taskCount).attr("x1", center).attr("y1", task.y).attr("x2", center).attr("y2", maxHeight).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666");
772
+ drawFace(g, {
773
+ cx: center,
774
+ cy: 300 + (5 - task.score) * 30,
775
+ score: task.score
776
+ });
777
+ const rect = getNoteRect();
778
+ rect.x = task.x;
779
+ rect.y = task.y;
780
+ rect.fill = task.fill;
781
+ rect.width = conf.width;
782
+ rect.height = conf.height;
783
+ rect.class = "task task-type-" + task.num;
784
+ rect.rx = 3;
785
+ rect.ry = 3;
786
+ drawRect(g, rect);
787
+ _drawTextCandidateFunc(conf)(
788
+ task.task,
789
+ g,
790
+ rect.x,
791
+ rect.y,
792
+ rect.width,
793
+ rect.height,
794
+ { class: "task" },
795
+ conf,
796
+ task.colour
797
+ );
798
+ }, "drawTask");
799
+ var drawBackgroundRect = /* @__PURE__ */ __name(function(elem, bounds) {
800
+ const rectElem = drawRect(elem, {
801
+ x: bounds.startx,
802
+ y: bounds.starty,
803
+ width: bounds.stopx - bounds.startx,
804
+ height: bounds.stopy - bounds.starty,
805
+ fill: bounds.fill,
806
+ class: "rect"
807
+ });
808
+ rectElem.lower();
809
+ }, "drawBackgroundRect");
810
+ var getTextObj = /* @__PURE__ */ __name(function() {
811
+ return {
812
+ x: 0,
813
+ y: 0,
814
+ fill: void 0,
815
+ "text-anchor": "start",
816
+ width: 100,
817
+ height: 100,
818
+ textMargin: 0,
819
+ rx: 0,
820
+ ry: 0
821
+ };
822
+ }, "getTextObj");
823
+ var getNoteRect = /* @__PURE__ */ __name(function() {
824
+ return {
825
+ x: 0,
826
+ y: 0,
827
+ width: 100,
828
+ anchor: "start",
829
+ height: 100,
830
+ rx: 0,
831
+ ry: 0
832
+ };
833
+ }, "getNoteRect");
834
+ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
835
+ function byText(content, g, x, y, width, height, textAttrs, colour) {
836
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("font-color", colour).style("text-anchor", "middle").text(content);
837
+ _setTextAttrs(text, textAttrs);
838
+ }
839
+ __name(byText, "byText");
840
+ function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {
841
+ const { taskFontSize, taskFontFamily } = conf;
842
+ const lines = content.split(/<br\s*\/?>/gi);
843
+ for (let i = 0; i < lines.length; i++) {
844
+ const dy = i * taskFontSize - taskFontSize * (lines.length - 1) / 2;
845
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y).attr("fill", colour).style("text-anchor", "middle").style("font-size", taskFontSize).style("font-family", taskFontFamily);
846
+ text.append("tspan").attr("x", x + width / 2).attr("dy", dy).text(lines[i]);
847
+ text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
848
+ _setTextAttrs(text, textAttrs);
849
+ }
850
+ }
851
+ __name(byTspan, "byTspan");
852
+ function byFo(content, g, x, y, width, height, textAttrs, conf) {
853
+ const body = g.append("switch");
854
+ const f = body.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height).attr("position", "fixed");
855
+ const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
856
+ text.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
857
+ byTspan(content, body, x, y, width, height, textAttrs, conf);
858
+ _setTextAttrs(text, textAttrs);
859
+ }
860
+ __name(byFo, "byFo");
861
+ function _setTextAttrs(toText, fromTextAttrsDict) {
862
+ for (const key in fromTextAttrsDict) {
863
+ if (key in fromTextAttrsDict) {
864
+ toText.attr(key, fromTextAttrsDict[key]);
865
+ }
866
+ }
867
+ }
868
+ __name(_setTextAttrs, "_setTextAttrs");
869
+ return function(conf) {
870
+ return conf.textPlacement === "fo" ? byFo : conf.textPlacement === "old" ? byText : byTspan;
871
+ };
872
+ }();
873
+ var initGraphics = /* @__PURE__ */ __name(function(graphics) {
874
+ graphics.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");
875
+ }, "initGraphics");
876
+ function wrap(text, width) {
877
+ text.each(function() {
878
+ var text2 = select(this), words = text2.text().split(/(\s+|<br>)/).reverse(), word, line = [], lineHeight = 1.1, y = text2.attr("y"), dy = parseFloat(text2.attr("dy")), tspan = text2.text(null).append("tspan").attr("x", 0).attr("y", y).attr("dy", dy + "em");
879
+ for (let j = 0; j < words.length; j++) {
880
+ word = words[words.length - 1 - j];
881
+ line.push(word);
882
+ tspan.text(line.join(" ").trim());
883
+ if (tspan.node().getComputedTextLength() > width || word === "<br>") {
884
+ line.pop();
885
+ tspan.text(line.join(" ").trim());
886
+ if (word === "<br>") {
887
+ line = [""];
888
+ } else {
889
+ line = [word];
890
+ }
891
+ tspan = text2.append("tspan").attr("x", 0).attr("y", y).attr("dy", lineHeight + "em").text(word);
892
+ }
893
+ }
894
+ });
895
+ }
896
+ __name(wrap, "wrap");
897
+ var drawNode = /* @__PURE__ */ __name(function(elem, node, fullSection, conf) {
898
+ var _a;
899
+ const section = fullSection % MAX_SECTIONS - 1;
900
+ const nodeElem = elem.append("g");
901
+ node.section = section;
902
+ nodeElem.attr(
903
+ "class",
904
+ (node.class ? node.class + " " : "") + "timeline-node " + ("section-" + section)
905
+ );
906
+ const bkgElem = nodeElem.append("g");
907
+ const textElem = nodeElem.append("g");
908
+ const txt = textElem.append("text").text(node.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, node.width);
909
+ const bbox = txt.node().getBBox();
910
+ const fontSize = ((_a = conf.fontSize) == null ? void 0 : _a.replace) ? conf.fontSize.replace("px", "") : conf.fontSize;
911
+ node.height = bbox.height + fontSize * 1.1 * 0.5 + node.padding;
912
+ node.height = Math.max(node.height, node.maxHeight);
913
+ node.width = node.width + 2 * node.padding;
914
+ textElem.attr("transform", "translate(" + node.width / 2 + ", " + node.padding / 2 + ")");
915
+ defaultBkg(bkgElem, node, section, conf);
916
+ return node;
917
+ }, "drawNode");
918
+ var getVirtualNodeHeight = /* @__PURE__ */ __name(function(elem, node, conf) {
919
+ var _a;
920
+ const textElem = elem.append("g");
921
+ const txt = textElem.append("text").text(node.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, node.width);
922
+ const bbox = txt.node().getBBox();
923
+ const fontSize = ((_a = conf.fontSize) == null ? void 0 : _a.replace) ? conf.fontSize.replace("px", "") : conf.fontSize;
924
+ textElem.remove();
925
+ return bbox.height + fontSize * 1.1 * 0.5 + node.padding;
926
+ }, "getVirtualNodeHeight");
927
+ var defaultBkg = /* @__PURE__ */ __name(function(elem, node, section) {
928
+ const rd = 5;
929
+ elem.append("path").attr("id", "node-" + node.id).attr("class", "node-bkg node-" + node.type).attr(
930
+ "d",
931
+ `M0 ${node.height - rd} v${-node.height + 2 * rd} q0,-5 5,-5 h${node.width - 2 * rd} q5,0 5,5 v${node.height - rd} H0 Z`
932
+ );
933
+ elem.append("line").attr("class", "node-line-" + section).attr("x1", 0).attr("y1", node.height).attr("x2", node.width).attr("y2", node.height);
934
+ }, "defaultBkg");
935
+ var svgDraw_default = {
936
+ drawRect,
937
+ drawCircle,
938
+ drawSection,
939
+ drawText,
940
+ drawLabel,
941
+ drawTask,
942
+ drawBackgroundRect,
943
+ getTextObj,
944
+ getNoteRect,
945
+ initGraphics,
946
+ drawNode,
947
+ getVirtualNodeHeight
948
+ };
949
+ var draw = /* @__PURE__ */ __name(function(text, id, version, diagObj) {
950
+ var _a, _b, _c;
951
+ const conf = getConfig2();
952
+ const LEFT_MARGIN = ((_a = conf.timeline) == null ? void 0 : _a.leftMargin) ?? 50;
953
+ log.debug("timeline", diagObj.db);
954
+ const securityLevel = conf.securityLevel;
955
+ let sandboxElement;
956
+ if (securityLevel === "sandbox") {
957
+ sandboxElement = select("#i" + id);
958
+ }
959
+ const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
960
+ const svg = root.select("#" + id);
961
+ svg.append("g");
962
+ const tasks2 = diagObj.db.getTasks();
963
+ const title = diagObj.db.getCommonDb().getDiagramTitle();
964
+ log.debug("task", tasks2);
965
+ svgDraw_default.initGraphics(svg);
966
+ const sections2 = diagObj.db.getSections();
967
+ log.debug("sections", sections2);
968
+ let maxSectionHeight = 0;
969
+ let maxTaskHeight = 0;
970
+ let depthY = 0;
971
+ let sectionBeginY = 0;
972
+ let masterX = 50 + LEFT_MARGIN;
973
+ let masterY = 50;
974
+ sectionBeginY = 50;
975
+ let sectionNumber = 0;
976
+ let hasSections = true;
977
+ sections2.forEach(function(section) {
978
+ const sectionNode = {
979
+ number: sectionNumber,
980
+ descr: section,
981
+ section: sectionNumber,
982
+ width: 150,
983
+ padding: 20,
984
+ maxHeight: maxSectionHeight
985
+ };
986
+ const sectionHeight = svgDraw_default.getVirtualNodeHeight(svg, sectionNode, conf);
987
+ log.debug("sectionHeight before draw", sectionHeight);
988
+ maxSectionHeight = Math.max(maxSectionHeight, sectionHeight + 20);
989
+ });
990
+ let maxEventCount = 0;
991
+ let maxEventLineLength = 0;
992
+ log.debug("tasks.length", tasks2.length);
993
+ for (const [i, task] of tasks2.entries()) {
994
+ const taskNode = {
995
+ number: i,
996
+ descr: task,
997
+ section: task.section,
998
+ width: 150,
999
+ padding: 20,
1000
+ maxHeight: maxTaskHeight
1001
+ };
1002
+ const taskHeight = svgDraw_default.getVirtualNodeHeight(svg, taskNode, conf);
1003
+ log.debug("taskHeight before draw", taskHeight);
1004
+ maxTaskHeight = Math.max(maxTaskHeight, taskHeight + 20);
1005
+ maxEventCount = Math.max(maxEventCount, task.events.length);
1006
+ let maxEventLineLengthTemp = 0;
1007
+ for (const event of task.events) {
1008
+ const eventNode = {
1009
+ descr: event,
1010
+ section: task.section,
1011
+ number: task.section,
1012
+ width: 150,
1013
+ padding: 20,
1014
+ maxHeight: 50
1015
+ };
1016
+ maxEventLineLengthTemp += svgDraw_default.getVirtualNodeHeight(svg, eventNode, conf);
1017
+ }
1018
+ if (task.events.length > 0) {
1019
+ maxEventLineLengthTemp += (task.events.length - 1) * 10;
1020
+ }
1021
+ maxEventLineLength = Math.max(maxEventLineLength, maxEventLineLengthTemp);
1022
+ }
1023
+ log.debug("maxSectionHeight before draw", maxSectionHeight);
1024
+ log.debug("maxTaskHeight before draw", maxTaskHeight);
1025
+ if (sections2 && sections2.length > 0) {
1026
+ sections2.forEach((section) => {
1027
+ const tasksForSection = tasks2.filter((task) => task.section === section);
1028
+ const sectionNode = {
1029
+ number: sectionNumber,
1030
+ descr: section,
1031
+ section: sectionNumber,
1032
+ width: 200 * Math.max(tasksForSection.length, 1) - 50,
1033
+ padding: 20,
1034
+ maxHeight: maxSectionHeight
1035
+ };
1036
+ log.debug("sectionNode", sectionNode);
1037
+ const sectionNodeWrapper = svg.append("g");
1038
+ const node = svgDraw_default.drawNode(sectionNodeWrapper, sectionNode, sectionNumber, conf);
1039
+ log.debug("sectionNode output", node);
1040
+ sectionNodeWrapper.attr("transform", `translate(${masterX}, ${sectionBeginY})`);
1041
+ masterY += maxSectionHeight + 50;
1042
+ if (tasksForSection.length > 0) {
1043
+ drawTasks(
1044
+ svg,
1045
+ tasksForSection,
1046
+ sectionNumber,
1047
+ masterX,
1048
+ masterY,
1049
+ maxTaskHeight,
1050
+ conf,
1051
+ maxEventCount,
1052
+ maxEventLineLength,
1053
+ maxSectionHeight,
1054
+ false
1055
+ );
1056
+ }
1057
+ masterX += 200 * Math.max(tasksForSection.length, 1);
1058
+ masterY = sectionBeginY;
1059
+ sectionNumber++;
1060
+ });
1061
+ } else {
1062
+ hasSections = false;
1063
+ drawTasks(
1064
+ svg,
1065
+ tasks2,
1066
+ sectionNumber,
1067
+ masterX,
1068
+ masterY,
1069
+ maxTaskHeight,
1070
+ conf,
1071
+ maxEventCount,
1072
+ maxEventLineLength,
1073
+ maxSectionHeight,
1074
+ true
1075
+ );
1076
+ }
1077
+ const box = svg.node().getBBox();
1078
+ log.debug("bounds", box);
1079
+ if (title) {
1080
+ svg.append("text").text(title).attr("x", box.width / 2 - LEFT_MARGIN).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20);
1081
+ }
1082
+ depthY = hasSections ? maxSectionHeight + maxTaskHeight + 150 : maxTaskHeight + 100;
1083
+ const lineWrapper = svg.append("g").attr("class", "lineWrapper");
1084
+ lineWrapper.append("line").attr("x1", LEFT_MARGIN).attr("y1", depthY).attr("x2", box.width + 3 * LEFT_MARGIN).attr("y2", depthY).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)");
1085
+ setupGraphViewbox(
1086
+ void 0,
1087
+ svg,
1088
+ ((_b = conf.timeline) == null ? void 0 : _b.padding) ?? 50,
1089
+ ((_c = conf.timeline) == null ? void 0 : _c.useMaxWidth) ?? false
1090
+ );
1091
+ }, "draw");
1092
+ var drawTasks = /* @__PURE__ */ __name(function(diagram2, tasks2, sectionColor, masterX, masterY, maxTaskHeight, conf, maxEventCount, maxEventLineLength, maxSectionHeight, isWithoutSections) {
1093
+ var _a;
1094
+ for (const task of tasks2) {
1095
+ const taskNode = {
1096
+ descr: task.task,
1097
+ section: sectionColor,
1098
+ number: sectionColor,
1099
+ width: 150,
1100
+ padding: 20,
1101
+ maxHeight: maxTaskHeight
1102
+ };
1103
+ log.debug("taskNode", taskNode);
1104
+ const taskWrapper = diagram2.append("g").attr("class", "taskWrapper");
1105
+ const node = svgDraw_default.drawNode(taskWrapper, taskNode, sectionColor, conf);
1106
+ const taskHeight = node.height;
1107
+ log.debug("taskHeight after draw", taskHeight);
1108
+ taskWrapper.attr("transform", `translate(${masterX}, ${masterY})`);
1109
+ maxTaskHeight = Math.max(maxTaskHeight, taskHeight);
1110
+ if (task.events) {
1111
+ const lineWrapper = diagram2.append("g").attr("class", "lineWrapper");
1112
+ let lineLength = maxTaskHeight;
1113
+ masterY += 100;
1114
+ lineLength = lineLength + drawEvents(diagram2, task.events, sectionColor, masterX, masterY, conf);
1115
+ masterY -= 100;
1116
+ lineWrapper.append("line").attr("x1", masterX + 190 / 2).attr("y1", masterY + maxTaskHeight).attr("x2", masterX + 190 / 2).attr("y2", masterY + maxTaskHeight + 100 + maxEventLineLength + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
1117
+ }
1118
+ masterX = masterX + 200;
1119
+ if (isWithoutSections && !((_a = conf.timeline) == null ? void 0 : _a.disableMulticolor)) {
1120
+ sectionColor++;
1121
+ }
1122
+ }
1123
+ masterY = masterY - 10;
1124
+ }, "drawTasks");
1125
+ var drawEvents = /* @__PURE__ */ __name(function(diagram2, events, sectionColor, masterX, masterY, conf) {
1126
+ let maxEventHeight = 0;
1127
+ const eventBeginY = masterY;
1128
+ masterY = masterY + 100;
1129
+ for (const event of events) {
1130
+ const eventNode = {
1131
+ descr: event,
1132
+ section: sectionColor,
1133
+ number: sectionColor,
1134
+ width: 150,
1135
+ padding: 20,
1136
+ maxHeight: 50
1137
+ };
1138
+ log.debug("eventNode", eventNode);
1139
+ const eventWrapper = diagram2.append("g").attr("class", "eventWrapper");
1140
+ const node = svgDraw_default.drawNode(eventWrapper, eventNode, sectionColor, conf);
1141
+ const eventHeight = node.height;
1142
+ maxEventHeight = maxEventHeight + eventHeight;
1143
+ eventWrapper.attr("transform", `translate(${masterX}, ${masterY})`);
1144
+ masterY = masterY + 10 + eventHeight;
1145
+ }
1146
+ masterY = eventBeginY;
1147
+ return maxEventHeight;
1148
+ }, "drawEvents");
1149
+ var timelineRenderer_default = {
1150
+ setConf: /* @__PURE__ */ __name(() => {
1151
+ }, "setConf"),
1152
+ draw
1153
+ };
1154
+ var genSections = /* @__PURE__ */ __name((options) => {
1155
+ let sections2 = "";
1156
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1157
+ options["lineColor" + i] = options["lineColor" + i] || options["cScaleInv" + i];
1158
+ if (isDark(options["lineColor" + i])) {
1159
+ options["lineColor" + i] = lighten(options["lineColor" + i], 20);
1160
+ } else {
1161
+ options["lineColor" + i] = darken(options["lineColor" + i], 20);
1162
+ }
1163
+ }
1164
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1165
+ const sw = "" + (17 - 3 * i);
1166
+ sections2 += `
1167
+ .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} path {
1168
+ fill: ${options["cScale" + i]};
1169
+ }
1170
+ .section-${i - 1} text {
1171
+ fill: ${options["cScaleLabel" + i]};
1172
+ }
1173
+ .node-icon-${i - 1} {
1174
+ font-size: 40px;
1175
+ color: ${options["cScaleLabel" + i]};
1176
+ }
1177
+ .section-edge-${i - 1}{
1178
+ stroke: ${options["cScale" + i]};
1179
+ }
1180
+ .edge-depth-${i - 1}{
1181
+ stroke-width: ${sw};
1182
+ }
1183
+ .section-${i - 1} line {
1184
+ stroke: ${options["cScaleInv" + i]} ;
1185
+ stroke-width: 3;
1186
+ }
1187
+
1188
+ .lineWrapper line{
1189
+ stroke: ${options["cScaleLabel" + i]} ;
1190
+ }
1191
+
1192
+ .disabled, .disabled circle, .disabled text {
1193
+ fill: lightgray;
1194
+ }
1195
+ .disabled text {
1196
+ fill: #efefef;
1197
+ }
1198
+ `;
1199
+ }
1200
+ return sections2;
1201
+ }, "genSections");
1202
+ var getStyles = /* @__PURE__ */ __name((options) => `
1203
+ .edge {
1204
+ stroke-width: 3;
1205
+ }
1206
+ ${genSections(options)}
1207
+ .section-root rect, .section-root path, .section-root circle {
1208
+ fill: ${options.git0};
1209
+ }
1210
+ .section-root text {
1211
+ fill: ${options.gitBranchLabel0};
1212
+ }
1213
+ .icon-container {
1214
+ height:100%;
1215
+ display: flex;
1216
+ justify-content: center;
1217
+ align-items: center;
1218
+ }
1219
+ .edge {
1220
+ fill: none;
1221
+ }
1222
+ .eventWrapper {
1223
+ filter: brightness(120%);
1224
+ }
1225
+ `, "getStyles");
1226
+ var styles_default = getStyles;
1227
+ var diagram = {
1228
+ db: timelineDb_exports,
1229
+ renderer: timelineRenderer_default,
1230
+ parser: timeline_default,
1231
+ styles: styles_default
1232
+ };
1233
+
1234
+ export { diagram };