@altimateai/ui-components 0.0.77-beta.4 → 0.0.77-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +62488 -24049
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2826 -2276
  5. package/dist/Switch.js +128 -87
  6. package/dist/ToggleGroup.js +5956 -4781
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/abap.js +6 -0
  10. package/dist/actionscript-3.js +6 -0
  11. package/dist/ada.js +6 -0
  12. package/dist/andromeeda.js +4 -0
  13. package/dist/angular-html.js +32 -0
  14. package/dist/angular-ts.js +21 -0
  15. package/dist/apache.js +6 -0
  16. package/dist/apex.js +6 -0
  17. package/dist/apl.js +16 -0
  18. package/dist/applescript.js +6 -0
  19. package/dist/ara.js +6 -0
  20. package/dist/arc.js +53 -53
  21. package/dist/architectureDiagram-VXUJARFQ.js +480 -4315
  22. package/dist/architectureDiagram-VXUJARFQ2.js +831 -0
  23. package/dist/asciidoc.js +6 -0
  24. package/dist/asm.js +6 -0
  25. package/dist/assets/icons/index.js +1 -1
  26. package/dist/astro.js +18 -0
  27. package/dist/aurora-x.js +4 -0
  28. package/dist/awk.js +6 -0
  29. package/dist/ayu-dark.js +4 -0
  30. package/dist/ballerina.js +6 -0
  31. package/dist/band.js +46 -0
  32. package/dist/bat.js +6 -0
  33. package/dist/beancount.js +6 -0
  34. package/dist/berry.js +6 -0
  35. package/dist/bibtex.js +6 -0
  36. package/dist/bicep.js +6 -0
  37. package/dist/blade.js +20 -0
  38. package/dist/blockDiagram-VD42YOAC.js +1 -1
  39. package/dist/blockDiagram-VD42YOAC2.js +2266 -0
  40. package/dist/bsl.js +8 -0
  41. package/dist/c.js +6 -0
  42. package/dist/c3.js +6 -0
  43. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  44. package/dist/c4Diagram-YG6GDRKO2.js +1582 -0
  45. package/dist/cadence.js +6 -0
  46. package/dist/cairo.js +8 -0
  47. package/dist/catppuccin-frappe.js +4 -0
  48. package/dist/catppuccin-latte.js +4 -0
  49. package/dist/catppuccin-macchiato.js +4 -0
  50. package/dist/catppuccin-mocha.js +4 -0
  51. package/dist/channel.js +2 -2
  52. package/dist/chatbotV2/index.d.ts +57 -19
  53. package/dist/chatbotV2/index.js +120 -56
  54. package/dist/chunk-4BX2VUAB.js +1 -1
  55. package/dist/chunk-4BX2VUAB2.js +9 -0
  56. package/dist/chunk-55IACEB6.js +2 -2
  57. package/dist/chunk-55IACEB62.js +9 -0
  58. package/dist/chunk-B4BG7PRW.js +1 -1
  59. package/dist/chunk-B4BG7PRW2.js +1377 -0
  60. package/dist/chunk-DI55MBZ5.js +14 -14
  61. package/dist/chunk-DI55MBZ52.js +1382 -0
  62. package/dist/chunk-FMBD7UC4.js +1 -1
  63. package/dist/chunk-FMBD7UC42.js +19 -0
  64. package/dist/chunk-QN33PNHL.js +5 -5
  65. package/dist/chunk-QN33PNHL2.js +20 -0
  66. package/dist/chunk-QZHKN3VN.js +1 -1
  67. package/dist/chunk-QZHKN3VN2.js +15 -0
  68. package/dist/chunk-TZMSLE5B.js +1 -1
  69. package/dist/chunk-TZMSLE5B2.js +64 -0
  70. package/dist/clarity.js +6 -0
  71. package/dist/classDiagram-2ON5EDUG.js +1 -1
  72. package/dist/classDiagram-2ON5EDUG2.js +17 -0
  73. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  74. package/dist/classDiagram-v2-WZHVMYZB2.js +17 -0
  75. package/dist/clojure.js +6 -0
  76. package/dist/cmake.js +6 -0
  77. package/dist/cobol.js +10 -0
  78. package/dist/code-block-37QAKDTI.js +27 -0
  79. package/dist/codeowners.js +6 -0
  80. package/dist/codeql.js +6 -0
  81. package/dist/coffee.js +8 -0
  82. package/dist/common-lisp.js +6 -0
  83. package/dist/coq.js +6 -0
  84. package/dist/cose-bilkent-S5V4N54A.js +160 -2535
  85. package/dist/cose-bilkent-S5V4N54A2.js +231 -0
  86. package/dist/cpp.js +18 -0
  87. package/dist/crystal.js +18 -0
  88. package/dist/csharp.js +6 -0
  89. package/dist/css.js +6 -0
  90. package/dist/csv.js +6 -0
  91. package/dist/cue.js +6 -0
  92. package/dist/cypher.js +6 -0
  93. package/dist/cytoscape-cose-bilkent.js +2380 -0
  94. package/dist/cytoscape-fcose.js +3840 -0
  95. package/dist/d.js +6 -0
  96. package/dist/dagre-6UL2VRFP.js +44 -44
  97. package/dist/dagre-6UL2VRFP2.js +447 -0
  98. package/dist/dark-plus.js +4 -0
  99. package/dist/dart.js +6 -0
  100. package/dist/dax.js +6 -0
  101. package/dist/dayjs.min.js +2 -2
  102. package/dist/defaultLocale.js +3 -3
  103. package/dist/desktop.js +6 -0
  104. package/dist/diagram-PSM6KHXK.js +198 -414
  105. package/dist/diagram-PSM6KHXK2.js +319 -0
  106. package/dist/diagram-QEK2KX5R.js +26 -26
  107. package/dist/diagram-QEK2KX5R2.js +221 -0
  108. package/dist/diagram-S2PKOQOG.js +12 -12
  109. package/dist/diagram-S2PKOQOG2.js +143 -0
  110. package/dist/diff.js +6 -0
  111. package/dist/docker.js +6 -0
  112. package/dist/dotenv.js +6 -0
  113. package/dist/dracula-soft.js +4 -0
  114. package/dist/dracula.js +4 -0
  115. package/dist/dream-maker.js +6 -0
  116. package/dist/edge.js +12 -0
  117. package/dist/elixir.js +8 -0
  118. package/dist/elm.js +8 -0
  119. package/dist/emacs-lisp.js +6 -0
  120. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  121. package/dist/erDiagram-Q2GNP2WA2.js +843 -0
  122. package/dist/erb.js +10 -0
  123. package/dist/erlang.js +8 -0
  124. package/dist/everforest-dark.js +4 -0
  125. package/dist/everforest-light.js +4 -0
  126. package/dist/fennel.js +6 -0
  127. package/dist/fish.js +6 -0
  128. package/dist/flowDiagram-NV44I4VS.js +6 -6
  129. package/dist/flowDiagram-NV44I4VS2.js +1628 -0
  130. package/dist/fluent.js +6 -0
  131. package/dist/fortran-fixed-form.js +8 -0
  132. package/dist/fortran-free-form.js +6 -0
  133. package/dist/fsharp.js +8 -0
  134. package/dist/ganttDiagram-JELNMOA3.js +1788 -0
  135. package/dist/ganttDiagram-LVOFAZNH.js +843 -1718
  136. package/dist/gdresource.js +10 -0
  137. package/dist/gdscript.js +6 -0
  138. package/dist/gdshader.js +6 -0
  139. package/dist/genie.js +6 -0
  140. package/dist/gherkin.js +6 -0
  141. package/dist/git-commit.js +8 -0
  142. package/dist/git-rebase.js +8 -0
  143. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  144. package/dist/gitGraphDiagram-NY62KEGX2.js +713 -0
  145. package/dist/github-dark-default.js +4 -0
  146. package/dist/github-dark-dimmed.js +4 -0
  147. package/dist/github-dark-high-contrast.js +4 -0
  148. package/dist/github-dark.js +4 -0
  149. package/dist/github-light-default.js +4 -0
  150. package/dist/github-light-high-contrast.js +4 -0
  151. package/dist/github-light.js +4 -0
  152. package/dist/gleam.js +6 -0
  153. package/dist/glimmer-js.js +14 -0
  154. package/dist/glimmer-ts.js +14 -0
  155. package/dist/glsl.js +8 -0
  156. package/dist/gn.js +6 -0
  157. package/dist/gnuplot.js +6 -0
  158. package/dist/go.js +6 -0
  159. package/dist/graph.js +17 -18
  160. package/dist/graph2.js +246 -0
  161. package/dist/graphql.js +14 -0
  162. package/dist/groovy.js +6 -0
  163. package/dist/gruvbox-dark-hard.js +4 -0
  164. package/dist/gruvbox-dark-medium.js +4 -0
  165. package/dist/gruvbox-dark-soft.js +4 -0
  166. package/dist/gruvbox-light-hard.js +4 -0
  167. package/dist/gruvbox-light-medium.js +4 -0
  168. package/dist/gruvbox-light-soft.js +4 -0
  169. package/dist/hack.js +10 -0
  170. package/dist/haml.js +10 -0
  171. package/dist/handlebars.js +14 -0
  172. package/dist/haskell.js +6 -0
  173. package/dist/haxe.js +6 -0
  174. package/dist/hcl.js +6 -0
  175. package/dist/hjson.js +6 -0
  176. package/dist/hlsl.js +6 -0
  177. package/dist/houston.js +4 -0
  178. package/dist/html-derivative.js +8 -0
  179. package/dist/html.js +10 -0
  180. package/dist/http.js +14 -0
  181. package/dist/hurl.js +12 -0
  182. package/dist/hxml.js +8 -0
  183. package/dist/hy.js +6 -0
  184. package/dist/imba.js +6 -0
  185. package/dist/index.d.ts +2 -2
  186. package/dist/index.js +37 -37
  187. package/dist/index2.js +216 -684
  188. package/dist/index3.js +689 -0
  189. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  190. package/dist/infoDiagram-WHAUD3N6.js +24 -0
  191. package/dist/ini.js +6 -0
  192. package/dist/java.js +6 -0
  193. package/dist/javascript.js +6 -0
  194. package/dist/jinja.js +11 -0
  195. package/dist/jison.js +8 -0
  196. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  197. package/dist/journeyDiagram-XKPGCS4Q2.js +837 -0
  198. package/dist/json.js +6 -0
  199. package/dist/json5.js +6 -0
  200. package/dist/jsonc.js +6 -0
  201. package/dist/jsonl.js +6 -0
  202. package/dist/jsonnet.js +6 -0
  203. package/dist/jssm.js +6 -0
  204. package/dist/jsx.js +6 -0
  205. package/dist/julia.js +16 -0
  206. package/dist/kanagawa-dragon.js +4 -0
  207. package/dist/kanagawa-lotus.js +4 -0
  208. package/dist/kanagawa-wave.js +4 -0
  209. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  210. package/dist/kanban-definition-3W4ZIXB72.js +720 -0
  211. package/dist/katex2.js +11691 -0
  212. package/dist/kdl.js +6 -0
  213. package/dist/kotlin.js +6 -0
  214. package/dist/kusto.js +6 -0
  215. package/dist/laserwave.js +4 -0
  216. package/dist/latex.js +8 -0
  217. package/dist/layout.js +567 -678
  218. package/dist/layout2.js +1224 -0
  219. package/dist/lean.js +6 -0
  220. package/dist/less.js +6 -0
  221. package/dist/light-plus.js +4 -0
  222. package/dist/lineage/index.js +1234 -1241
  223. package/dist/linear.js +1 -1
  224. package/dist/liquid.js +14 -0
  225. package/dist/llvm.js +6 -0
  226. package/dist/log.js +6 -0
  227. package/dist/logo.js +6 -0
  228. package/dist/lua.js +8 -0
  229. package/dist/luau.js +6 -0
  230. package/dist/main.css +1 -1
  231. package/dist/main.js +82 -82
  232. package/dist/make.js +6 -0
  233. package/dist/markdown.js +6 -0
  234. package/dist/marko.js +14 -0
  235. package/dist/material-theme-darker.js +4 -0
  236. package/dist/material-theme-lighter.js +4 -0
  237. package/dist/material-theme-ocean.js +4 -0
  238. package/dist/material-theme-palenight.js +4 -0
  239. package/dist/material-theme.js +4 -0
  240. package/dist/matlab.js +6 -0
  241. package/dist/mdc.js +12 -0
  242. package/dist/mdx.js +6 -0
  243. package/dist/mermaid-4DMBBIKO.js +4 -0
  244. package/dist/mermaid-parser.core.js +155 -155
  245. package/dist/mermaid.js +6 -0
  246. package/dist/min-dark.js +4 -0
  247. package/dist/min-light.js +4 -0
  248. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  249. package/dist/mindmap-definition-VGOIOE7T2.js +786 -0
  250. package/dist/mipsasm.js +6 -0
  251. package/dist/mojo.js +6 -0
  252. package/dist/monokai.js +4 -0
  253. package/dist/moonbit.js +6 -0
  254. package/dist/move.js +6 -0
  255. package/dist/narrat.js +6 -0
  256. package/dist/nextflow.js +6 -0
  257. package/dist/nginx.js +8 -0
  258. package/dist/night-owl.js +4 -0
  259. package/dist/nim.js +20 -0
  260. package/dist/nix.js +9 -0
  261. package/dist/nord.js +4 -0
  262. package/dist/nushell.js +6 -0
  263. package/dist/objective-c.js +6 -0
  264. package/dist/objective-cpp.js +6 -0
  265. package/dist/ocaml.js +6 -0
  266. package/dist/one-dark-pro.js +4 -0
  267. package/dist/one-light.js +4 -0
  268. package/dist/openscad.js +6 -0
  269. package/dist/pascal.js +6 -0
  270. package/dist/perl.js +16 -0
  271. package/dist/php.js +18 -0
  272. package/dist/pie.js +45 -0
  273. package/dist/pieDiagram-ADFJNKIX.js +68 -108
  274. package/dist/pieDiagram-ADFJNKIX2.js +123 -0
  275. package/dist/pkl.js +6 -0
  276. package/dist/plastic.js +4 -0
  277. package/dist/plsql.js +6 -0
  278. package/dist/po.js +6 -0
  279. package/dist/poimandres.js +4 -0
  280. package/dist/polar.js +6 -0
  281. package/dist/postcss.js +6 -0
  282. package/dist/powerquery.js +6 -0
  283. package/dist/powershell.js +6 -0
  284. package/dist/prisma.js +6 -0
  285. package/dist/prolog.js +6 -0
  286. package/dist/proto.js +6 -0
  287. package/dist/pug.js +12 -0
  288. package/dist/puppet.js +6 -0
  289. package/dist/purescript.js +6 -0
  290. package/dist/python.js +6 -0
  291. package/dist/qml.js +8 -0
  292. package/dist/qmldir.js +6 -0
  293. package/dist/qss.js +6 -0
  294. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  295. package/dist/quadrantDiagram-AYHSOK5B2.js +1025 -0
  296. package/dist/r.js +6 -0
  297. package/dist/racket.js +6 -0
  298. package/dist/raku.js +6 -0
  299. package/dist/razor.js +10 -0
  300. package/dist/red.js +4 -0
  301. package/dist/redux-toolkit.modern.js +563 -555
  302. package/dist/reg.js +6 -0
  303. package/dist/regexp.js +6 -0
  304. package/dist/rel.js +6 -0
  305. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  306. package/dist/requirementDiagram-UZGBJVZJ2.js +852 -0
  307. package/dist/riscv.js +6 -0
  308. package/dist/rose-pine-dawn.js +4 -0
  309. package/dist/rose-pine-moon.js +4 -0
  310. package/dist/rose-pine.js +4 -0
  311. package/dist/rosmsg.js +6 -0
  312. package/dist/rst.js +22 -0
  313. package/dist/ruby.js +30 -0
  314. package/dist/rust.js +6 -0
  315. package/dist/sankeyDiagram-TZEHDZUN.js +229 -622
  316. package/dist/sankeyDiagram-TZEHDZUN2.js +418 -0
  317. package/dist/sankeyLinkHorizontal.js +403 -0
  318. package/dist/sas.js +8 -0
  319. package/dist/sass.js +6 -0
  320. package/dist/scala.js +6 -0
  321. package/dist/scheme.js +6 -0
  322. package/dist/scss.js +8 -0
  323. package/dist/sdbl.js +6 -0
  324. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  325. package/dist/sequenceDiagram-WL72ISMW2.js +2523 -0
  326. package/dist/shadcn/index.d.ts +24 -40
  327. package/dist/shadcn/index.js +7330 -5516
  328. package/dist/shaderlab.js +8 -0
  329. package/dist/shellscript.js +6 -0
  330. package/dist/shellsession.js +8 -0
  331. package/dist/slack-dark.js +4 -0
  332. package/dist/slack-ochin.js +4 -0
  333. package/dist/smalltalk.js +6 -0
  334. package/dist/snazzy-light.js +4 -0
  335. package/dist/solarized-dark.js +4 -0
  336. package/dist/solarized-light.js +4 -0
  337. package/dist/solidity.js +6 -0
  338. package/dist/soy.js +8 -0
  339. package/dist/sparql.js +8 -0
  340. package/dist/splunk.js +6 -0
  341. package/dist/sql.js +6 -0
  342. package/dist/ssh-config.js +6 -0
  343. package/dist/stata.js +8 -0
  344. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  345. package/dist/stateDiagram-FKZM4ZOC2.js +264 -0
  346. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  347. package/dist/stateDiagram-v2-4FDKWEC32.js +17 -0
  348. package/dist/storybook/Typography.stories.tsx +93 -120
  349. package/dist/stylus.js +6 -0
  350. package/dist/svelte.js +14 -0
  351. package/dist/swift.js +6 -0
  352. package/dist/synthwave-84.js +4 -0
  353. package/dist/system-verilog.js +6 -0
  354. package/dist/systemd.js +6 -0
  355. package/dist/talonscript.js +6 -0
  356. package/dist/tasl.js +6 -0
  357. package/dist/tcl.js +6 -0
  358. package/dist/templ.js +12 -0
  359. package/dist/terraform.js +6 -0
  360. package/dist/tex.js +8 -0
  361. package/dist/time.js +900 -0
  362. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  363. package/dist/timeline-definition-IT6M3QCI2.js +802 -0
  364. package/dist/tokyo-night.js +4 -0
  365. package/dist/toml.js +6 -0
  366. package/dist/ts-tags.js +41 -0
  367. package/dist/tsv.js +6 -0
  368. package/dist/tsx.js +6 -0
  369. package/dist/turtle.js +6 -0
  370. package/dist/twig.js +18 -0
  371. package/dist/{types-ByRPUpXR.d.ts → types-BZH4Xw79.d.ts} +1 -1
  372. package/dist/typescript.js +6 -0
  373. package/dist/typespec.js +6 -0
  374. package/dist/typst.js +6 -0
  375. package/dist/union.js +8 -0
  376. package/dist/v.js +6 -0
  377. package/dist/vala.js +6 -0
  378. package/dist/vb.js +6 -0
  379. package/dist/verilog.js +6 -0
  380. package/dist/vesper.js +4 -0
  381. package/dist/vhdl.js +6 -0
  382. package/dist/viml.js +6 -0
  383. package/dist/vitesse-black.js +4 -0
  384. package/dist/vitesse-dark.js +4 -0
  385. package/dist/vitesse-light.js +4 -0
  386. package/dist/vue-html.js +8 -0
  387. package/dist/vue-vine.js +18 -0
  388. package/dist/vue.js +31 -0
  389. package/dist/vyper.js +6 -0
  390. package/dist/wasm.js +6 -0
  391. package/dist/wasm2.js +7 -0
  392. package/dist/wenyan.js +6 -0
  393. package/dist/wgsl.js +6 -0
  394. package/dist/wikitext.js +6 -0
  395. package/dist/wit.js +6 -0
  396. package/dist/wolfram.js +6 -0
  397. package/dist/xml.js +8 -0
  398. package/dist/xsl.js +8 -0
  399. package/dist/xychartDiagram-PRI3JC2R.js +449 -491
  400. package/dist/xychartDiagram-PRI3JC2R2.js +1299 -0
  401. package/dist/yaml.js +6 -0
  402. package/dist/zenscript.js +6 -0
  403. package/dist/zig.js +6 -0
  404. package/dist/zipObject.js +128 -0
  405. package/package.json +1 -1
@@ -0,0 +1,802 @@
1
+ import { aG as s, b5 as xt, bn as kt, b0 as vt, aM as bt, aS as E, bo as _t, Y as wt, $ as St, a0 as Et } from "./CoachForm.js";
2
+ import { s as q } from "./redux-toolkit.modern.js";
3
+ import { d as nt } from "./arc.js";
4
+ var X = function() {
5
+ var n = /* @__PURE__ */ s(function(f, i, a, h) {
6
+ for (a = a || {}, h = f.length; h--; a[f[h]] = i) ;
7
+ return a;
8
+ }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], r = [1, 11], d = [1, 12], c = [1, 13], g = [1, 16], m = [1, 17], p = {
9
+ trace: /* @__PURE__ */ s(function() {
10
+ }, "trace"),
11
+ yy: {},
12
+ 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 },
13
+ 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" },
14
+ 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]],
15
+ performAction: /* @__PURE__ */ s(function(i, a, h, u, y, o, S) {
16
+ var k = o.length - 1;
17
+ switch (y) {
18
+ case 1:
19
+ return o[k - 1];
20
+ case 2:
21
+ this.$ = [];
22
+ break;
23
+ case 3:
24
+ o[k - 1].push(o[k]), this.$ = o[k - 1];
25
+ break;
26
+ case 4:
27
+ case 5:
28
+ this.$ = o[k];
29
+ break;
30
+ case 6:
31
+ case 7:
32
+ this.$ = [];
33
+ break;
34
+ case 8:
35
+ u.getCommonDb().setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
36
+ break;
37
+ case 9:
38
+ this.$ = o[k].trim(), u.getCommonDb().setAccTitle(this.$);
39
+ break;
40
+ case 10:
41
+ case 11:
42
+ this.$ = o[k].trim(), u.getCommonDb().setAccDescription(this.$);
43
+ break;
44
+ case 12:
45
+ u.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
46
+ break;
47
+ case 15:
48
+ u.addTask(o[k], 0, ""), this.$ = o[k];
49
+ break;
50
+ case 16:
51
+ u.addEvent(o[k].substr(2)), this.$ = o[k];
52
+ break;
53
+ }
54
+ }, "anonymous"),
55
+ 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: d, 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: d, 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])],
56
+ defaultActions: {},
57
+ parseError: /* @__PURE__ */ s(function(i, a) {
58
+ if (a.recoverable)
59
+ this.trace(i);
60
+ else {
61
+ var h = new Error(i);
62
+ throw h.hash = a, h;
63
+ }
64
+ }, "parseError"),
65
+ parse: /* @__PURE__ */ s(function(i) {
66
+ var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2, J = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), N = { yy: {} };
67
+ for (var L in this.yy)
68
+ Object.prototype.hasOwnProperty.call(this.yy, L) && (N.yy[L] = this.yy[L]);
69
+ v.setInput(i, N.yy), N.yy.lexer = v, N.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
70
+ var _ = v.yylloc;
71
+ o.push(_);
72
+ var $ = v.options && v.options.ranges;
73
+ typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
74
+ function R(T) {
75
+ h.length = h.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
76
+ }
77
+ s(R, "popStack");
78
+ function A() {
79
+ var T;
80
+ return T = u.pop() || v.lex() || J, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
81
+ }
82
+ s(A, "lex");
83
+ for (var w, H, I, K, z = {}, j, P, et, G; ; ) {
84
+ if (H = h[h.length - 1], this.defaultActions[H] ? I = this.defaultActions[H] : ((w === null || typeof w > "u") && (w = A()), I = S[H] && S[H][w]), typeof I > "u" || !I.length || !I[0]) {
85
+ var Q = "";
86
+ G = [];
87
+ for (j in S[H])
88
+ this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
89
+ v.showPosition ? Q = "Parse error on line " + (M + 1) + `:
90
+ ` + v.showPosition() + `
91
+ 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, {
92
+ text: v.match,
93
+ token: this.terminals_[w] || w,
94
+ line: v.yylineno,
95
+ loc: _,
96
+ expected: G
97
+ });
98
+ }
99
+ if (I[0] instanceof Array && I.length > 1)
100
+ throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + w);
101
+ switch (I[0]) {
102
+ case 1:
103
+ h.push(w), y.push(v.yytext), o.push(v.yylloc), h.push(I[1]), w = null, C = v.yyleng, k = v.yytext, M = v.yylineno, _ = v.yylloc;
104
+ break;
105
+ case 2:
106
+ if (P = this.productions_[I[1]][1], z.$ = y[y.length - P], z._$ = {
107
+ first_line: o[o.length - (P || 1)].first_line,
108
+ last_line: o[o.length - 1].last_line,
109
+ first_column: o[o.length - (P || 1)].first_column,
110
+ last_column: o[o.length - 1].last_column
111
+ }, $ && (z._$.range = [
112
+ o[o.length - (P || 1)].range[0],
113
+ o[o.length - 1].range[1]
114
+ ]), K = this.performAction.apply(z, [
115
+ k,
116
+ C,
117
+ M,
118
+ N.yy,
119
+ I[1],
120
+ y,
121
+ o
122
+ ].concat(O)), typeof K < "u")
123
+ return K;
124
+ P && (h = h.slice(0, -1 * P * 2), y = y.slice(0, -1 * P), o = o.slice(0, -1 * P)), h.push(this.productions_[I[1]][0]), y.push(z.$), o.push(z._$), et = S[h[h.length - 2]][h[h.length - 1]], h.push(et);
125
+ break;
126
+ case 3:
127
+ return !0;
128
+ }
129
+ }
130
+ return !0;
131
+ }, "parse")
132
+ }, x = /* @__PURE__ */ function() {
133
+ var f = {
134
+ EOF: 1,
135
+ parseError: /* @__PURE__ */ s(function(a, h) {
136
+ if (this.yy.parser)
137
+ this.yy.parser.parseError(a, h);
138
+ else
139
+ throw new Error(a);
140
+ }, "parseError"),
141
+ // resets the lexer, sets new input
142
+ setInput: /* @__PURE__ */ s(function(i, a) {
143
+ 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 = {
144
+ first_line: 1,
145
+ first_column: 0,
146
+ last_line: 1,
147
+ last_column: 0
148
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
149
+ }, "setInput"),
150
+ // consumes and returns one char from the input
151
+ input: /* @__PURE__ */ s(function() {
152
+ var i = this._input[0];
153
+ this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
154
+ var a = i.match(/(?:\r\n?|\n).*/g);
155
+ 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;
156
+ }, "input"),
157
+ // unshifts one char (or a string) into the input
158
+ unput: /* @__PURE__ */ s(function(i) {
159
+ var a = i.length, h = i.split(/(?:\r\n?|\n)/g);
160
+ this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
161
+ var u = this.match.split(/(?:\r\n?|\n)/g);
162
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1);
163
+ var y = this.yylloc.range;
164
+ return this.yylloc = {
165
+ first_line: this.yylloc.first_line,
166
+ last_line: this.yylineno + 1,
167
+ first_column: this.yylloc.first_column,
168
+ last_column: h ? (h.length === u.length ? this.yylloc.first_column : 0) + u[u.length - h.length].length - h[0].length : this.yylloc.first_column - a
169
+ }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
170
+ }, "unput"),
171
+ // When called from action, caches matched text and appends it on next action
172
+ more: /* @__PURE__ */ s(function() {
173
+ return this._more = !0, this;
174
+ }, "more"),
175
+ // 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.
176
+ reject: /* @__PURE__ */ s(function() {
177
+ if (this.options.backtrack_lexer)
178
+ this._backtrack = !0;
179
+ else
180
+ 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).
181
+ ` + this.showPosition(), {
182
+ text: "",
183
+ token: null,
184
+ line: this.yylineno
185
+ });
186
+ return this;
187
+ }, "reject"),
188
+ // retain first n characters of the match
189
+ less: /* @__PURE__ */ s(function(i) {
190
+ this.unput(this.match.slice(i));
191
+ }, "less"),
192
+ // displays already matched input, i.e. for error messages
193
+ pastInput: /* @__PURE__ */ s(function() {
194
+ var i = this.matched.substr(0, this.matched.length - this.match.length);
195
+ return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
196
+ }, "pastInput"),
197
+ // displays upcoming input, i.e. for error messages
198
+ upcomingInput: /* @__PURE__ */ s(function() {
199
+ var i = this.match;
200
+ return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
201
+ }, "upcomingInput"),
202
+ // displays the character position where the lexing error occurred, i.e. for error messages
203
+ showPosition: /* @__PURE__ */ s(function() {
204
+ var i = this.pastInput(), a = new Array(i.length + 1).join("-");
205
+ return i + this.upcomingInput() + `
206
+ ` + a + "^";
207
+ }, "showPosition"),
208
+ // test the lexed token: return FALSE when not a match, otherwise return token
209
+ test_match: /* @__PURE__ */ s(function(i, a) {
210
+ var h, u, y;
211
+ if (this.options.backtrack_lexer && (y = {
212
+ yylineno: this.yylineno,
213
+ yylloc: {
214
+ first_line: this.yylloc.first_line,
215
+ last_line: this.last_line,
216
+ first_column: this.yylloc.first_column,
217
+ last_column: this.yylloc.last_column
218
+ },
219
+ yytext: this.yytext,
220
+ match: this.match,
221
+ matches: this.matches,
222
+ matched: this.matched,
223
+ yyleng: this.yyleng,
224
+ offset: this.offset,
225
+ _more: this._more,
226
+ _input: this._input,
227
+ yy: this.yy,
228
+ conditionStack: this.conditionStack.slice(0),
229
+ done: this.done
230
+ }, 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 = {
231
+ first_line: this.yylloc.last_line,
232
+ last_line: this.yylineno + 1,
233
+ first_column: this.yylloc.last_column,
234
+ last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
235
+ }, 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], h = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h)
236
+ return h;
237
+ if (this._backtrack) {
238
+ for (var o in y)
239
+ this[o] = y[o];
240
+ return !1;
241
+ }
242
+ return !1;
243
+ }, "test_match"),
244
+ // return next match in input
245
+ next: /* @__PURE__ */ s(function() {
246
+ if (this.done)
247
+ return this.EOF;
248
+ this._input || (this.done = !0);
249
+ var i, a, h, u;
250
+ this._more || (this.yytext = "", this.match = "");
251
+ for (var y = this._currentRules(), o = 0; o < y.length; o++)
252
+ if (h = this._input.match(this.rules[y[o]]), h && (!a || h[0].length > a[0].length)) {
253
+ if (a = h, u = o, this.options.backtrack_lexer) {
254
+ if (i = this.test_match(h, y[o]), i !== !1)
255
+ return i;
256
+ if (this._backtrack) {
257
+ a = !1;
258
+ continue;
259
+ } else
260
+ return !1;
261
+ } else if (!this.options.flex)
262
+ break;
263
+ }
264
+ 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.
265
+ ` + this.showPosition(), {
266
+ text: "",
267
+ token: null,
268
+ line: this.yylineno
269
+ });
270
+ }, "next"),
271
+ // return next match that has a token
272
+ lex: /* @__PURE__ */ s(function() {
273
+ var a = this.next();
274
+ return a || this.lex();
275
+ }, "lex"),
276
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
277
+ begin: /* @__PURE__ */ s(function(a) {
278
+ this.conditionStack.push(a);
279
+ }, "begin"),
280
+ // pop the previously active lexer condition state off the condition stack
281
+ popState: /* @__PURE__ */ s(function() {
282
+ var a = this.conditionStack.length - 1;
283
+ return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
284
+ }, "popState"),
285
+ // produce the lexer rule set which is active for the currently active lexer condition state
286
+ _currentRules: /* @__PURE__ */ s(function() {
287
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
288
+ }, "_currentRules"),
289
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
290
+ topState: /* @__PURE__ */ s(function(a) {
291
+ return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
292
+ }, "topState"),
293
+ // alias for begin(condition)
294
+ pushState: /* @__PURE__ */ s(function(a) {
295
+ this.begin(a);
296
+ }, "pushState"),
297
+ // return the number of states currently on the stack
298
+ stateStackSize: /* @__PURE__ */ s(function() {
299
+ return this.conditionStack.length;
300
+ }, "stateStackSize"),
301
+ options: { "case-insensitive": !0 },
302
+ performAction: /* @__PURE__ */ s(function(a, h, u, y) {
303
+ switch (u) {
304
+ case 0:
305
+ break;
306
+ case 1:
307
+ break;
308
+ case 2:
309
+ return 10;
310
+ case 3:
311
+ break;
312
+ case 4:
313
+ break;
314
+ case 5:
315
+ return 4;
316
+ case 6:
317
+ return 11;
318
+ case 7:
319
+ return this.begin("acc_title"), 12;
320
+ case 8:
321
+ return this.popState(), "acc_title_value";
322
+ case 9:
323
+ return this.begin("acc_descr"), 14;
324
+ case 10:
325
+ return this.popState(), "acc_descr_value";
326
+ case 11:
327
+ this.begin("acc_descr_multiline");
328
+ break;
329
+ case 12:
330
+ this.popState();
331
+ break;
332
+ case 13:
333
+ return "acc_descr_multiline_value";
334
+ case 14:
335
+ return 17;
336
+ case 15:
337
+ return 21;
338
+ case 16:
339
+ return 20;
340
+ case 17:
341
+ return 6;
342
+ case 18:
343
+ return "INVALID";
344
+ }
345
+ }, "anonymous"),
346
+ 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],
347
+ 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 } }
348
+ };
349
+ return f;
350
+ }();
351
+ p.lexer = x;
352
+ function b() {
353
+ this.yy = {};
354
+ }
355
+ return s(b, "Parser"), b.prototype = p, p.Parser = b, new b();
356
+ }();
357
+ X.parser = X;
358
+ var Tt = X, at = {};
359
+ xt(at, {
360
+ addEvent: () => yt,
361
+ addSection: () => ht,
362
+ addTask: () => pt,
363
+ addTaskOrg: () => gt,
364
+ clear: () => ct,
365
+ default: () => It,
366
+ getCommonDb: () => ot,
367
+ getSections: () => dt,
368
+ getTasks: () => ut
369
+ });
370
+ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
371
+ Y.length = 0, U.length = 0, V = "", W.length = 0, vt();
372
+ }, "clear"), ht = /* @__PURE__ */ s(function(n) {
373
+ V = n, Y.push(n);
374
+ }, "addSection"), dt = /* @__PURE__ */ s(function() {
375
+ return Y;
376
+ }, "getSections"), ut = /* @__PURE__ */ s(function() {
377
+ let n = rt();
378
+ const t = 100;
379
+ let e = 0;
380
+ for (; !n && e < t; )
381
+ n = rt(), e++;
382
+ return U.push(...W), U;
383
+ }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
384
+ const l = {
385
+ id: lt++,
386
+ section: V,
387
+ type: V,
388
+ task: n,
389
+ score: t || 0,
390
+ //if event is defined, then add it the events array
391
+ events: e ? [e] : []
392
+ };
393
+ W.push(l);
394
+ }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
395
+ W.find((e) => e.id === lt - 1).events.push(n);
396
+ }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
397
+ const t = {
398
+ section: V,
399
+ type: V,
400
+ description: n,
401
+ task: n,
402
+ classes: []
403
+ };
404
+ U.push(t);
405
+ }, "addTaskOrg"), rt = /* @__PURE__ */ s(function() {
406
+ const n = /* @__PURE__ */ s(function(e) {
407
+ return W[e].processed;
408
+ }, "compileTask");
409
+ let t = !0;
410
+ for (const [e, l] of W.entries())
411
+ n(e), t = t && l.processed;
412
+ return t;
413
+ }, "compileTasks"), It = {
414
+ clear: ct,
415
+ getCommonDb: ot,
416
+ addSection: ht,
417
+ getSections: dt,
418
+ getTasks: ut,
419
+ addTask: pt,
420
+ addTaskOrg: gt,
421
+ addEvent: yt
422
+ }, Nt = 12, Z = /* @__PURE__ */ s(function(n, t) {
423
+ const e = n.append("rect");
424
+ 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;
425
+ }, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
426
+ 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");
427
+ 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");
428
+ function d(m) {
429
+ const p = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
430
+ m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
431
+ }
432
+ s(d, "smile");
433
+ function c(m) {
434
+ const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
435
+ m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
436
+ }
437
+ s(c, "sad");
438
+ function g(m) {
439
+ 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");
440
+ }
441
+ return s(g, "ambivalent"), t.score > 3 ? d(r) : t.score < 3 ? c(r) : g(r), l;
442
+ }, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
443
+ const e = n.append("circle");
444
+ 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;
445
+ }, "drawCircle"), ft = /* @__PURE__ */ s(function(n, t) {
446
+ const e = t.text.replace(/<br\s*\/?>/gi, " "), l = n.append("text");
447
+ 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);
448
+ const r = l.append("tspan");
449
+ return r.attr("x", t.x + t.textMargin * 2), r.text(e), l;
450
+ }, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
451
+ function e(r, d, c, g, m) {
452
+ return r + "," + d + " " + (r + c) + "," + d + " " + (r + c) + "," + (d + g - m) + " " + (r + c - m * 1.2) + "," + (d + g) + " " + r + "," + (d + g);
453
+ }
454
+ s(e, "genPoints");
455
+ const l = n.append("polygon");
456
+ 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);
457
+ }, "drawLabel"), Ht = /* @__PURE__ */ s(function(n, t, e) {
458
+ const l = n.append("g"), r = D();
459
+ 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)(
460
+ t.text,
461
+ l,
462
+ r.x,
463
+ r.y,
464
+ r.width,
465
+ r.height,
466
+ { class: "journey-section section-type-" + t.num },
467
+ e,
468
+ t.colour
469
+ );
470
+ }, "drawSection"), it = -1, Pt = /* @__PURE__ */ s(function(n, t, e) {
471
+ const l = t.x + e.width / 2, r = n.append("g");
472
+ it++;
473
+ const d = 300 + 5 * 30;
474
+ r.append("line").attr("id", "task" + it).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", d).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(r, {
475
+ cx: l,
476
+ cy: 300 + (5 - t.score) * 30,
477
+ score: t.score
478
+ });
479
+ const c = D();
480
+ 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)(
481
+ t.task,
482
+ r,
483
+ c.x,
484
+ c.y,
485
+ c.width,
486
+ c.height,
487
+ { class: "task" },
488
+ e,
489
+ t.colour
490
+ );
491
+ }, "drawTask"), At = /* @__PURE__ */ s(function(n, t) {
492
+ Z(n, {
493
+ x: t.startx,
494
+ y: t.starty,
495
+ width: t.stopx - t.startx,
496
+ height: t.stopy - t.starty,
497
+ fill: t.fill,
498
+ class: "rect"
499
+ }).lower();
500
+ }, "drawBackgroundRect"), Ct = /* @__PURE__ */ s(function() {
501
+ return {
502
+ x: 0,
503
+ y: 0,
504
+ fill: void 0,
505
+ "text-anchor": "start",
506
+ width: 100,
507
+ height: 100,
508
+ textMargin: 0,
509
+ rx: 0,
510
+ ry: 0
511
+ };
512
+ }, "getTextObj"), D = /* @__PURE__ */ s(function() {
513
+ return {
514
+ x: 0,
515
+ y: 0,
516
+ width: 100,
517
+ anchor: "start",
518
+ height: 100,
519
+ rx: 0,
520
+ ry: 0
521
+ };
522
+ }, "getNoteRect"), mt = /* @__PURE__ */ function() {
523
+ function n(r, d, c, g, m, p, x, b) {
524
+ const f = d.append("text").attr("x", c + m / 2).attr("y", g + p / 2 + 5).style("font-color", b).style("text-anchor", "middle").text(r);
525
+ l(f, x);
526
+ }
527
+ s(n, "byText");
528
+ function t(r, d, c, g, m, p, x, b, f) {
529
+ const { taskFontSize: i, taskFontFamily: a } = b, h = r.split(/<br\s*\/?>/gi);
530
+ for (let u = 0; u < h.length; u++) {
531
+ const y = u * i - i * (h.length - 1) / 2, o = d.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);
532
+ o.append("tspan").attr("x", c + m / 2).attr("dy", y).text(h[u]), o.attr("y", g + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, x);
533
+ }
534
+ }
535
+ s(t, "byTspan");
536
+ function e(r, d, c, g, m, p, x, b) {
537
+ const f = d.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%");
538
+ 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, b), l(a, x);
539
+ }
540
+ s(e, "byFo");
541
+ function l(r, d) {
542
+ for (const c in d)
543
+ c in d && r.attr(c, d[c]);
544
+ }
545
+ return s(l, "_setTextAttrs"), function(r) {
546
+ return r.textPlacement === "fo" ? e : r.textPlacement === "old" ? n : t;
547
+ };
548
+ }(), Rt = /* @__PURE__ */ s(function(n) {
549
+ 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");
550
+ }, "initGraphics");
551
+ function tt(n, t) {
552
+ n.each(function() {
553
+ var e = q(this), l = e.text().split(/(\s+|<br>)/).reverse(), r, d = [], 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");
554
+ for (let x = 0; x < l.length; x++)
555
+ r = l[l.length - 1 - x], d.push(r), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || r === "<br>") && (d.pop(), p.text(d.join(" ").trim()), r === "<br>" ? d = [""] : d = [r], p = e.append("tspan").attr("x", 0).attr("y", g).attr("dy", c + "em").text(r));
556
+ });
557
+ }
558
+ s(tt, "wrap");
559
+ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
560
+ var b;
561
+ const r = e % Nt - 1, d = n.append("g");
562
+ t.section = r, d.attr(
563
+ "class",
564
+ (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + r)
565
+ );
566
+ const c = d.append("g"), g = d.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 = (b = l.fontSize) != null && b.replace ? l.fontSize.replace("px", "") : l.fontSize;
567
+ 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;
568
+ }, "drawNode"), zt = /* @__PURE__ */ s(function(n, t, e) {
569
+ var g;
570
+ const l = n.append("g"), d = 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;
571
+ return l.remove(), d.height + c * 1.1 * 0.5 + t.padding;
572
+ }, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
573
+ n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
574
+ "d",
575
+ `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`
576
+ ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
577
+ }, "defaultBkg"), F = {
578
+ drawRect: Z,
579
+ drawCircle: Mt,
580
+ drawSection: Ht,
581
+ drawText: ft,
582
+ drawLabel: $t,
583
+ drawTask: Pt,
584
+ drawBackgroundRect: At,
585
+ getTextObj: Ct,
586
+ getNoteRect: D,
587
+ initGraphics: Rt,
588
+ drawNode: Ft,
589
+ getVirtualNodeHeight: zt
590
+ }, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
591
+ var O, v, N;
592
+ const r = bt(), d = ((O = r.timeline) == null ? void 0 : O.leftMargin) ?? 50;
593
+ E.debug("timeline", l.db);
594
+ const c = r.securityLevel;
595
+ let g;
596
+ c === "sandbox" && (g = q("#i" + t));
597
+ const p = (c === "sandbox" ? q(g.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
598
+ p.append("g");
599
+ const x = l.db.getTasks(), b = l.db.getCommonDb().getDiagramTitle();
600
+ E.debug("task", x), F.initGraphics(p);
601
+ const f = l.db.getSections();
602
+ E.debug("sections", f);
603
+ let i = 0, a = 0, h = 0, u = 0, y = 50 + d, o = 50;
604
+ u = 50;
605
+ let S = 0, k = !0;
606
+ f.forEach(function(L) {
607
+ const _ = {
608
+ number: S,
609
+ descr: L,
610
+ section: S,
611
+ width: 150,
612
+ padding: 20,
613
+ maxHeight: i
614
+ }, $ = F.getVirtualNodeHeight(p, _, r);
615
+ E.debug("sectionHeight before draw", $), i = Math.max(i, $ + 20);
616
+ });
617
+ let M = 0, C = 0;
618
+ E.debug("tasks.length", x.length);
619
+ for (const [L, _] of x.entries()) {
620
+ const $ = {
621
+ number: L,
622
+ descr: _,
623
+ section: _.section,
624
+ width: 150,
625
+ padding: 20,
626
+ maxHeight: a
627
+ }, R = F.getVirtualNodeHeight(p, $, r);
628
+ E.debug("taskHeight before draw", R), a = Math.max(a, R + 20), M = Math.max(M, _.events.length);
629
+ let A = 0;
630
+ for (const w of _.events) {
631
+ const H = {
632
+ descr: w,
633
+ section: _.section,
634
+ number: _.section,
635
+ width: 150,
636
+ padding: 20,
637
+ maxHeight: 50
638
+ };
639
+ A += F.getVirtualNodeHeight(p, H, r);
640
+ }
641
+ _.events.length > 0 && (A += (_.events.length - 1) * 10), C = Math.max(C, A);
642
+ }
643
+ E.debug("maxSectionHeight before draw", i), E.debug("maxTaskHeight before draw", a), f && f.length > 0 ? f.forEach((L) => {
644
+ const _ = x.filter((w) => w.section === L), $ = {
645
+ number: S,
646
+ descr: L,
647
+ section: S,
648
+ width: 200 * Math.max(_.length, 1) - 50,
649
+ padding: 20,
650
+ maxHeight: i
651
+ };
652
+ E.debug("sectionNode", $);
653
+ const R = p.append("g"), A = F.drawNode(R, $, S, r);
654
+ E.debug("sectionNode output", A), R.attr("transform", `translate(${y}, ${u})`), o += i + 50, _.length > 0 && st(
655
+ p,
656
+ _,
657
+ S,
658
+ y,
659
+ o,
660
+ a,
661
+ r,
662
+ M,
663
+ C,
664
+ i,
665
+ !1
666
+ ), y += 200 * Math.max(_.length, 1), o = u, S++;
667
+ }) : (k = !1, st(
668
+ p,
669
+ x,
670
+ S,
671
+ y,
672
+ o,
673
+ a,
674
+ r,
675
+ M,
676
+ C,
677
+ i,
678
+ !0
679
+ ));
680
+ const B = p.node().getBBox();
681
+ E.debug("bounds", B), b && p.append("text").text(b).attr("x", B.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), h = k ? i + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", h).attr("x2", B.width + 3 * d).attr("y2", h).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), _t(
682
+ void 0,
683
+ p,
684
+ ((v = r.timeline) == null ? void 0 : v.padding) ?? 50,
685
+ ((N = r.timeline) == null ? void 0 : N.useMaxWidth) ?? !1
686
+ );
687
+ }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, r, d, c, g, m, p, x) {
688
+ var b;
689
+ for (const f of t) {
690
+ const i = {
691
+ descr: f.task,
692
+ section: e,
693
+ number: e,
694
+ width: 150,
695
+ padding: 20,
696
+ maxHeight: d
697
+ };
698
+ E.debug("taskNode", i);
699
+ const a = n.append("g").attr("class", "taskWrapper"), u = F.drawNode(a, i, e, c).height;
700
+ if (E.debug("taskHeight after draw", u), a.attr("transform", `translate(${l}, ${r})`), d = Math.max(d, u), f.events) {
701
+ const y = n.append("g").attr("class", "lineWrapper");
702
+ let o = d;
703
+ 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 + d).attr("x2", l + 190 / 2).attr("y2", r + d + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
704
+ }
705
+ l = l + 200, x && !((b = c.timeline) != null && b.disableMulticolor) && e++;
706
+ }
707
+ r = r - 10;
708
+ }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, r, d) {
709
+ let c = 0;
710
+ const g = r;
711
+ r = r + 100;
712
+ for (const m of t) {
713
+ const p = {
714
+ descr: m,
715
+ section: e,
716
+ number: e,
717
+ width: 150,
718
+ padding: 20,
719
+ maxHeight: 50
720
+ };
721
+ E.debug("eventNode", p);
722
+ const x = n.append("g").attr("class", "eventWrapper"), f = F.drawNode(x, p, e, d).height;
723
+ c = c + f, x.attr("transform", `translate(${l}, ${r})`), r = r + 10 + f;
724
+ }
725
+ return r = g, c;
726
+ }, "drawEvents"), Ot = {
727
+ setConf: /* @__PURE__ */ s(() => {
728
+ }, "setConf"),
729
+ draw: Wt
730
+ }, jt = /* @__PURE__ */ s((n) => {
731
+ let t = "";
732
+ for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
733
+ n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], wt(n["lineColor" + e]) ? n["lineColor" + e] = St(n["lineColor" + e], 20) : n["lineColor" + e] = Et(n["lineColor" + e], 20);
734
+ for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
735
+ const l = "" + (17 - 3 * e);
736
+ t += `
737
+ .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
738
+ fill: ${n["cScale" + e]};
739
+ }
740
+ .section-${e - 1} text {
741
+ fill: ${n["cScaleLabel" + e]};
742
+ }
743
+ .node-icon-${e - 1} {
744
+ font-size: 40px;
745
+ color: ${n["cScaleLabel" + e]};
746
+ }
747
+ .section-edge-${e - 1}{
748
+ stroke: ${n["cScale" + e]};
749
+ }
750
+ .edge-depth-${e - 1}{
751
+ stroke-width: ${l};
752
+ }
753
+ .section-${e - 1} line {
754
+ stroke: ${n["cScaleInv" + e]} ;
755
+ stroke-width: 3;
756
+ }
757
+
758
+ .lineWrapper line{
759
+ stroke: ${n["cScaleLabel" + e]} ;
760
+ }
761
+
762
+ .disabled, .disabled circle, .disabled text {
763
+ fill: lightgray;
764
+ }
765
+ .disabled text {
766
+ fill: #efefef;
767
+ }
768
+ `;
769
+ }
770
+ return t;
771
+ }, "genSections"), Gt = /* @__PURE__ */ s((n) => `
772
+ .edge {
773
+ stroke-width: 3;
774
+ }
775
+ ${jt(n)}
776
+ .section-root rect, .section-root path, .section-root circle {
777
+ fill: ${n.git0};
778
+ }
779
+ .section-root text {
780
+ fill: ${n.gitBranchLabel0};
781
+ }
782
+ .icon-container {
783
+ height:100%;
784
+ display: flex;
785
+ justify-content: center;
786
+ align-items: center;
787
+ }
788
+ .edge {
789
+ fill: none;
790
+ }
791
+ .eventWrapper {
792
+ filter: brightness(120%);
793
+ }
794
+ `, "getStyles"), qt = Gt, Kt = {
795
+ db: at,
796
+ renderer: Ot,
797
+ parser: Tt,
798
+ styles: qt
799
+ };
800
+ export {
801
+ Kt as diagram
802
+ };